Skip to content

How it works

timber answers one question about a landed change: what did it produce, and where may it run. It pushes, it attests, it promotes, and it serves. Where the design pack proposes a mechanism Chuck has not yet ruled on, this page calls it the direction; the design says which is which.

sluice lands a commit on main. timber reads sluice’s refs for the landed commit and moon’s task hashes for what the build left, and gives the result a version. timber publish packages the outputs as OCI artifacts, one manifest each with the payload as layer blobs and the metadata as annotations, signs each one, and offers it by digest in the registry. Its answer is machine-readable: the digest, the version and each attestation’s reference, so another system can take it as its input. Neither sluice nor moon knows timber exists.

timber push, run after the landing in the checkout that ran its checks, puts that landing’s archives in the store’s cache: each task that both the landing passed and that checkout’s own run left becomes a cache entry under its task hash, which any host whose build identity matches replays, and every other is answered absent, naming the checkout. On a sluice host that checkout is the candidate’s place. The branch’s [tests] release command, which sluice runs in the place once it has landed, runs the push there and names the landed revision. A branch with a hold, whose places sluice releases before the landing, names timber push --left there instead. A check job on a runner that keeps nothing runs timber push --left too, before the landing is decided, and pushes what its own run left.

Where the landing carries verdicts, timber publish reads the landing’s outputs from those cache entries: before moon is asked, it renders the entry of each task the landing passed into the checkout it runs in, so moon replays what the landing’s checks built, and it refuses the version, naming the output and its task hash, when the store holds no entry for one. A publish never offers what its own host built in place of what the landing checked, so the push comes first. A branch no landing gate runs carries no verdicts, and its publish builds on the host it runs on.

What takes a version is a component: the outputs the repository’s authors declare to version together, the paths whose changes version them and the prefix their tags carry. A repository that declares none is one component. A landing that touches one component’s paths alone gives that component a version and the others none, so a library, a service image and an infrastructure template in one repository keep their own tag series, and a channel belongs to one component.

Everything timber knows about an artifact is a signed statement attached to the artifact’s digest as an OCI referrer: the build’s provenance, with the commit, the builder’s identity, the machine and the inputs; sluice’s signed check verdicts for the landed commit; the test results; and, later, an independent rebuild that matched and a review’s approval. timber attest adds one. A referrer travels with its subject on a referrers-aware copy, so an artifact carries its evidence wherever it goes, and a policy reads it there.

Signing is bound to an identity rather than a key file. The direction is keyless signing in Sigstore’s shape: a short-lived certificate from the user’s own identity provider, and a transparency log. On a machine a developer controls, the agent’s identity is the developer’s, delegated, and the record says so.

The store is one registry with namespaces drawn along trust and retention, the direction being five: the cache, which any edge machine writes and which expires early; quarantine, where a push lands and from which nothing promotes itself; the artifacts, verified and immutable, which only the gate writes; the releases, the channel ledger; and config, the policies and environment definitions packaged from git. A machine an agent runs on writes only to the cache and to quarantine. A poisoned upload sits in quarantine and goes nowhere.

timber publish offers what a landing made: for a revision the branch has landed, it puts each output’s artifact in the store with one provenance signed in the publisher’s own identity, carrying the landing’s verdicts for that build exactly as the landing made them, and puts the version’s index last, once every artifact and its claims are held. Each version carries its notes: git-cliff, the version rule’s own tool, renders the commits the version was derived from under the repository’s own cliff.toml at that revision, or git-cliff’s default where it keeps none, since timber imposes no template, and the notes are an artifact the index names, with one provenance of the publisher’s. timber publish, timber status and timber verify show them beside the version. A publish accepts nothing and moves no channel; acceptance is the gate’s. timber verify reads a version’s attestations back and says which signer the policy names made each one, and counts none that another signer made, for anyone who wants to read the evidence.

A channel such as beta or stable is a mutable pointer, a name in the store, channel/stable, to a version. Every component has both with no line written, and where the repository declares components a channel is its component and its name, channel/lib/stable in the store and refs/timber/ledger/lib/stable in the git ref ledger, so two components’ channels never share a chain (125, C.13, C.14). A landing on main makes a version, and the gate, once it accepts it, moves beta; timber promote <version> --to stable moves stable to a version beta has held, once the version’s index carries the gate’s acceptance and every claim stable’s policy requires, and the host’s signer is one of the channel’s promoters, the gate’s for stable. Every promotion is a signed record that names the one before it: the version and its digest, the channel, who promoted it, when, and the policy evidence. The chain is the ledger, ordered and tamper-evident wherever it is held, in a git ref the gate pushes by default, and the same records sit in the registry beside the versions they moved; the ledger holds a move before the store does, and the store is rewritten from the ledger. The ledger is the audit trail. --from <version> names where the asker expects the channel, and a channel that has moved since is refused naming where it is. A wrong move is undone by timber promote --back --to stable, one more promotion, to the version the channel moved from: the version left stays accepted and readable by its digest.

Where each channel is, and why. On any machine, timber status shows each channel the policy declares at its version or empty, and under it the chain of promotions that put it there, newest first: the version each moved from, who asked, and when. It reads the channels from the ledger, never from a name in the store, so a clone on a machine that never published, with no bindings file, answers what the machine that promoted answers; where the ledger’s remote cannot be reached, a chain is shown as this host last fetched it, saying when, with the remote’s words. What this host published is shown beside it, from its own record, and is simply absent on a machine that never published.

The direction for stable is an independent rebuild by a builder the first one does not control, with the shared cache off, whose matching digest is one more attestation, and two signatures before stable moves.

timber sync fills each ecosystem’s own local layout from the store: an npm cache, a Maven repository, a PyPI index, a Go module cache, a Cargo registry, a NuGet feed, a container image layout, a directory of CloudFormation templates or site bundles. timber serve is a localhost server speaking the read protocol of the ecosystems that need HTTP, npm first. Both read under a policy: a version is served only when its attestations satisfy it, so a developer’s install and an agent’s build see only what the policy admits. The same store is moon’s remote cache, and the direction is a Nix binary cache over it.

An environment is one target, the channel it follows, whether it moves on its own or waits for an approver, and a reconciler. No environment is told a version: what it should run is its channel’s head, and nothing else, so a channel that moves is the whole of a deploy’s cause.

timber: a channel moves and its environments convergeThe stable channel moves from 1.4.1 to 1.4.2 by a signed promotion, recorded in the ledger. Three environments follow stable. A static site moves on its own: a push reconciler syncs the bundle, and it reports running 1.4.2. A CloudFormation stack waits: it follows its own channel prod, bound to stable, and runs 1.4.1 until an approver promotes prod. A Kubernetes cluster pulls: Flux watches the channel tag, verifies the gate’s signature and applies it, and a watcher reports 1.4.2. Each reports what it runs beside what it should run, and where the two differ the status says so.A PROMOTIONTHE CHANNELENVIRONMENTS THAT FOLLOW ITan approver promotesstable: 1.4.1 → 1.4.2recorded in the ledger firststable→ app 1.4.2one head for every followerstatic site · moves on its ownpush: the bundle is synced by digestconverged when the head movedruns 1.4.2autoCloudFormation stack · waitsfollows prod, bound to stablethe promotion shown; prod not yet promotedruns 1.4.1 · behindmanualKubernetes · pullsFlux watches the tag, verifies the gate’s signaturea watcher reports what runsruns 1.4.2pullno environment is told a version;each follows a channel, and reportswhat it runs beside what it should.push or pull is the target’s own;the ledger and the policy are the same.
timber: a channel moves and its environments convergeThe stable channel moves from 1.4.1 to 1.4.2 by a signed promotion, recorded in the ledger. Three environments follow stable. A static site moves on its own: a push reconciler syncs the bundle, and it reports running 1.4.2. A CloudFormation stack waits: it follows its own channel prod, bound to stable, and runs 1.4.1 until an approver promotes prod. A Kubernetes cluster pulls: Flux watches the channel tag, verifies the gate’s signature and applies it, and a watcher reports 1.4.2. Each reports what it runs beside what it should run, and where the two differ the status says so.A PROMOTIONan approver promotesstable: 1.4.1 → 1.4.2 · in the ledger firststable→ app 1.4.2 · one head for every followerstatic site · moves on its ownpush: the bundle is synced by digestconverged when the head movedruns 1.4.2CloudFormation stack · waitsfollows prod, bound to stablethe promotion shown; prod not yet promotedruns 1.4.1 · behindKubernetes · pullsFlux verifies the gate’s signature, appliesa watcher reports what runsruns 1.4.2each follows a channel; each reports what it runs.

Auto or manual. An environment that moves on its own converges as soon as its channel’s head moves. One that waits follows a channel of its own, bound to the one it waits on: prod follows prod, which takes versions only from stable, and a person’s yes is the promotion of prod. Every approval is a promotion, so the ledger says who let production move and when.

Push or pull. Whether an environment is pushed to or pulls is the target’s own, and the ledger, the channel and the policy are the same either way. Where no good pull tool stands, timber brings a reconciler: a package registry such as CodeArtifact or npmjs is pushed the version’s projection; a static site is synced by digest; a CloudFormation stack gets one stack operation with the environment’s parameters; a function is pointed at the version’s image. Where a pull tool already watches, timber adds nothing but a watcher: a Kubernetes cluster’s Flux or Argo follows the channel’s tag and verifies the gate’s signature before it applies; a Nix fleet’s machines realise the release assigned to them from the cache. The targets lists each.

Verify before apply. A reconciler reads the version’s bytes by digest and verifies the claims its policy requires before it applies anything. It runs with the environment’s own credentials in the environment’s own place; timber holds no credential that reaches a target.

What runs where. Every reconciler reports what the environment runs, by digest, and when it last converged. timber status answers, for 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. Until a target is read, status answers the environments unread, saying no target is read. A rollback is a promotion back to the earlier version, recorded like any other, and the same convergence in reverse.

level means who writes it
a cache hit someone built this any machine an agent runs on
an artifact the merge queue built and signed it, and the gate accepted it sluice, timber, then the gate
a release it was promoted, with proof a promotion under the policy

The bytes that passed the gate are the bytes that run. Trust is centralized only as a thin layer: identity, policy and the signed ledger. Execution stays on the machines the agents run on.

The family’s tools keep their state in git, and timber’s small things go there: manifests, signatures, attestations and the ledger. Large blobs do not: the direction is a file-based OCI layout on disk, synced to object storage, that git only points at by digest. Policies and environment definitions are edited in git and, on landing, packaged as a signed artifact into config, so everything that executes reads from the store.