Environments and reconcilers
An environment is one target, the channel it follows, and whether it moves on its own or waits for an approver (glossary). It follows exactly one channel, and what it should run is that channel’s head (40); no environment is told a version directly.
Converging
An environment that moves on its own converges whenever its channel’s
head moves. One that waits follows a channel of its own, bound to the
one it waits on, and converges when an approver promotes it (41): prod
follows prod, bound to stable, and a person’s yes is the promotion
of prod (97). An approval is a promotion, so the ledger records every
yes like every other move, and an environment never converges on a yes
the ledger does not hold. Converging changes nothing in the store and nothing about the version:
the reconciler reads the version’s bytes by digest and verifies the
claims it is told to require before it applies anything (42).
Whether an environment is pushed to or pulls is the environment’s own (44). A static site, a CloudFormation stack, a function and a package registry are pushed to, since no good pull tool stands there (C.12). A Kubernetes cluster pulls: the channel is a tag Flux or Argo already watches and verifies against the gate’s signature, and timber adds only the watcher that reports what runs. A Nix fleet pulls the same way. The ledger, the channel and the policy are the same either way.
An environment may be many machines or many stacks that move as one. A CloudFormation StackSet holds a stack per tenant, and the list of tenants is the StackSet’s, kept outside timber; the environment is the StackSet, one apply carries the version to every stack it holds, and current is what the StackSet records (C.12). timber never learns the list, only the version, so adding a tenant is the StackSet’s operator’s act and nothing in the repository changes.
A reconciler acts with the environment’s own credentials in the environment’s own place (45). timber never holds a credential that reaches a target (64).
What runs where
A reconciler reports what the environment runs, by digest, and when it last converged (43, 91). A target that cannot say what it runs, a bucket or a static site, gets a marker: the reconciler writes the digest it applied where the target can hold one, and reports from the marker; where the target can hold none, it reports unread with the reason, never a guess (119). An asker learns of every environment what it should run, what it runs, and that the two differ where they do; an environment whose state cannot be read is reported unread with the reason, never as converged (98).