FR-001checkpassingA layer MUST be a function of a store to a store; compose MUST apply layers in the order given, and the capabilities of the result MUST be those the layers say they keep, in the type and in the set of the store.
0004-anyfs-middleware · owner if · domain commons
FR-001checkpassingA layer MUST be a function of a store to a store; compose MUST apply layers in the order given, and the capabilities of the result MUST be those the layers say they keep, in the type and in the set of the store.
FR-002checkpassingtraced MUST make one span for each operation through a tracer port, named for the operation, with the path, the kind of outcome and the size of the bytes, and MUST NOT give a span any bytes or any text of a file; it MUST keep every capability of its argument.
FR-003checkpassingaudited MUST make one record for each operation, a refused one included, with the instant, the operation, the path, the outcome kind and the size, and give it to a sink; where the sink fails the result MUST be unavailable and the operation's effect MUST stand, so that a gap in the audit is never silent; it MUST keep every capability.
FR-004checkpassingretrying MUST repeat an operation that is safe to repeat (read, stat, list, history, rangeRead, and a write or delete with the expectation any) when it ends unavailable with a retry possible, at most the attempts of its policy, waiting by capped exponential backoff through the sleep port; it MUST NOT repeat a conflict, a refusal or any other operation.
FR-005checkpassingrateLimited MUST allow at most the operations of its limit in each interval of its clock, by a token bucket, waiting through the sleep port and never failing an operation for the limit.
FR-006checkpassingcached MUST read through a cache store: a read MUST ask the origin for the revision of the path and give the cached bytes where the revision is the one cached, and fetch and keep the bytes otherwise; a write or a delete through it MUST go to the origin and drop the cached copy; its result MUST have the capabilities of its origin less batch, rename, append, rangeRead and search, in the type and in the set.
read and the path, and its outcome is missing, per FR-002.audited, Then the result is unavailable and the bytes were written, per FR-003.retrying with three attempts, Then it succeeds after two waits, per FR-004.encrypted, signed, mirror, overlay): later specifications.SC-001success criterionEvery layer is tested with a clock the test holds and no real time passes.