Questions, scenarios and what to deliver
10. Questions the model must answer
These are not requirements. None is open: the last, how a Nix closure maps onto artifacts and the cache (52, 54), is answered by timber’s record that a Nix closure is one artifact naming its roots and the fleet’s cache holds its paths (rule core.70).
11. Scenarios the model must satisfy
- S1. sluice lands a revision on the shared branch. A publisher publishes it. The build’s outputs are read from the cache, two packages are packed with the version the history derives, the index is offered, the provenance and sluice’s verdicts are attached, and the publisher’s answer names every digest. No channel moved.
- S2. The same publisher publishes the same revision again. Nothing is written, and the answer names the same index.
- S3. The gate reads the offered index, finds the provenance from the fleet’s signer and the verdicts from the host’s signer the policy requires, and accepts it. The acceptance is attached; the bytes are the ones offered. The beta channel moves to the version, and the ledger holds the move before any consumer reads beta.
- S4. A consumer on a laptop asks for its repository’s lockfile’s versions. The layouts fill with those versions and no other; the client installs with no change to its configuration beyond the one that names the layout; the lockfile names no host.
- S5. A version is offered with a verdict signed by a signer the policy does not name. The gate refuses it naming that claim, nothing moves, and the version stays readable by digest as offered.
- S6. An approver promotes a version to stable. The policy requires a rebuild by a second signer; a peer host rebuilt it with no shared cache and attached a claim that the digests matched. The move is recorded, stable moves, and every environment that follows stable and moves on its own converges; one that waits follows its own channel bound to stable, shows the promotion, and waits for its own.
- S7. A promotion names stable at a version stable has already left. It is refused naming the version stable is at, and nothing is retried.
- S8. stable is moved back to the previous version. The ledger holds both moves; the newer version is still accepted and readable; the environments converge back.
- S9. A build host’s credential is stolen. The thief can offer and write cache entries, and can neither accept, promote nor reach an environment; what it offered sits unaccepted and attributable.
- S10. The store is unreachable. Asking what timber holds answers from what it keeps; a layout answers what it holds and when it was rendered; nothing is reported as refused.
- S11. A person at the command line, an agent in its session and the pane beside them ask what runs where. All three get the same answer, each environment with what it should run, what it runs, and whether they differ.
- S12. Everything timber keeps but the record of claimed versions is deleted. The next question answers the same from the store and git.
- S13. A repository runs no landing gate. A revision on its branch is published with no verdicts attached; a policy that requires verdicts refuses it, naming the claim; one that requires provenance alone accepts it.
- S14. A build’s cache entry is removed. The next landing’s checks build again under the landing gate, its verdicts name the new build identity, the publish offers those outputs, and nothing accepted or released changed.
- S15. A repository declares two components. A landing touches one component’s paths alone; the publish derives that component’s next version from its own tags, claims it under its prefix and offers its index, while the other component gets no version and none of its channels move (123, 124, 125).
- S16. One environment waits on an approver, and a second comes after it. An approver’s yes moves the first environment’s channel, and the second’s channel does not move. The first converges and its report names the version; the gate then moves the second’s channel to that version, and the second converges. The first’s channel is moved back, and the first converges back and reports it; the second’s channel follows it back. The second’s channel is never moved to a version the first did not last report it runs (37, 41, 43, 91, 97, C.10).
12. What to deliver
A model of timber that satisfies Parts A and B: its components, the answers each surface gives, how a landing becomes a version, how a verdict is reached from attached claims and a policy, how a channel moves and an environment follows, how a consumer layout is rendered, with fixed examples, and how a store, a build, a signer, a projection and a target are added. A conformance suite whose scenarios each cite the clauses they exercise, failing when a clause is cited by nothing and named by no unit of the plan that will cite it: a clause a later unit builds is named in the suite’s register with that unit, or with the phase of the plan while that phase has no units carved, reported as waiting on every run, and leaves the register with the commit that cites it. The profiles of Part C, each passing the suite.