Skip to content

Targets

A target is where an environment runs. An environment is a target, a channel it subscribes to, a policy, auto or manual, and a reconciler, push or pull; the target answers what the environment wants, what it runs, and converges the two. Any number of targets are bound at once, by the repository’s authors (92).

An environment names its target by its profile: its target table holds exactly one key, the profile’s name, and that key’s table is the target’s own settings, which the target reads and timber’s core never does (C.10, 136). Every target profile built is bound, and each environment picks one by that key; an environment naming a profile no binding holds is answered absent, naming the profile.

[environments.example-srv.cache]
channel = "beta"
target.nix_cache = { attic = "fleet:example", closures = ["example-srv"] }

The seam is four operations (88 to 91). desired takes an environment and answers the digest its channel names, or that the channel is empty. current answers the digest the environment runs, or that it cannot be read, with the reason. apply takes an environment and a version the reconciler has verified and leaves the environment converged, or says what stopped it. report records what the environment runs and when it last converged, where every asker reads it. A reconciler verifies the claims it is told to require before any apply, and an environment is never handed a version except through its channel.

A target that can keep a marker of the digest it applied reports what runs from it; one that can keep none answers current and report unread, with the reason, never a guess (119). A target reads no setting but its own: a key of its table it does not read is unreadable naming it, so a credential has nowhere in the repository’s file to sit (45).

target reconciler status
a package registry: CodeArtifact, npmjs, PyPI, Maven Central push: publish the version’s projection with the target’s own credential; current is what the registry lists designed
a static site: a bucket behind a distribution push: sync the version’s bundle; current is a marker the sync writes designed
a CloudFormation stack or StackSet push: one stack operation on the version’s template with the environment’s parameters, which a StackSet carries to every stack instance it holds, a list kept outside timber; current is the stack’s or the StackSet’s recorded version designed
a function push: point the function at the version’s image by digest designed
Kubernetes, via Flux or Argo pull: the channel’s tag, verified by Flux or Argo against the gate’s signature; current reported by a watcher designed
a Nix fleet, via Clan, pushed push: one machine switched with clan machines update to the one root its version’s closure names, checked against the revision’s flake and realised from substituters alone, from the host that holds the machine’s key; a marker on the machine, and a report claim beside the version; see below built, clan
a Nix fleet, via Clan, pulled pull: each machine verifies and applies the release assigned to it, realising store paths from the cache designed
a Nix binary cache, through Attic or Cachix push: the version’s closures pushed to the cache with attic push or cachix push, from the host that built them, with the cache’s own credential; current and report unread, since a cache keeps no marker; see below built, nix_cache
Dash0’s dashboards push: each dashboard the version holds applied to one dataset by its fixed identifier with Dash0’s own CLI, from the host that holds the dataset’s write token, and each one an earlier version applied that this one does not hold removed; a marker dashboard in the dataset; see below built, dash0
a GitHub release push: the release of the version’s tag made or updated in the checkout’s repository with gh, GitHub’s own CLI, its notes as the release’s text and the outputs the table names as its assets, from the host that holds a token that may write its releases; current is the release GitHub marks latest; see below built, github_release

A target’s credential is the environment’s, reached at the moment of use; timber keeps none. Where a target’s own tool reads its credential from a file, the host’s bindings file names that file’s path in [credentials], by the name the environment’s table gives it, and timber hands the path to the tool, which alone reads it (118; see the host’s bindings). Where the tool takes a credential only in a variable, as gh and cachix do, the target reads the file when it runs and hands the credential to that operation’s runs of the tool alone, writing it nowhere (64).

The Nix cache target, nix_cache, pushes a version’s closures to a Nix binary cache, the fleet’s own with attic or one on Cachix with cachix, so a closure built on one host is realised on another from the cache alone (C.12).

A closure is one artifact naming its roots. A machine’s build task leaves one file naming its closure’s root store paths, one absolute store path per line, as nix build --print-out-paths prints them, and declares that file as the task’s output. The component declares it as an output packed by the file projection, as any file is, so its digest, its provenance and the landing’s verdicts name it as they name any output:

[[component]]
name = "example-srv"
outputs = ["example-srv"]
paths = ["machines/srv/**"]
prefix = "example-srv-v"
projections = { example-srv = "file" }

The store holds that file and no store path of the closure. The paths, and the references among them, are the cache’s, kept and collected by the cache; a machine that misses a path the cache has collected builds it again (54).

The environment’s nix_cache table names one cache, by attic, or by cachix with credential, and closures, and no other key:

key what
attic an attic cache, as attic’s own command names it, <server>:<cache>
cachix a cache on Cachix, by its name, as cachix push takes it: one or more lowercase letters, digits and -, beginning with no -, and never its address
credential with cachix alone: the name of the host’s credential, which its bindings file’s [credentials] gives the path of, a file holding a token that may push to that cache
closures one or more of the component’s outputs whose artifacts name closures

Boomdrive’s cache on Cachix, for one system:

[environments.boomdrive.cachix-x86_64-linux]
channel = "beta"
target.nix_cache = { cachix = "boomdrive", credential = "cachix-boomdrive", closures = ["boomdrive-x86_64-linux"] }

Any other key, both caches or neither, a credential beside attic, a cachix with no credential, an empty closures, an attic that is not <server>:<cache>, or a cachix or credential of another form is unreadable naming the environment and the key, or the table where it names no cache, and nothing is pushed. There is no key for a token.

An attic cache’s token is not the host’s credential. attic’s own configuration holds it, on the host that pushes, $XDG_CONFIG_HOME/attic/config.toml, with the server’s address and a token that may push and pull on the cache:

[servers.fleet]
endpoint = "https://cache.example.org/"
token = "…"

timber passes attic no token, sets none of its variables and reads nothing of its configuration: attic reads it at the push (45).

A Cachix cache’s token is the host’s. The host’s bindings file names the path of a file holding only it, under the name the table’s credential gives, a token that may push to that cache alone:

[credentials]
cachix-boomdrive = "~/.local/share/secrets/cachix-boomdrive"

cachix reads no token file, so apply looks the credential up once the table is read, before the store is asked anything, reads the file when it pushes, once every root is held, trims its trailing whitespace, and hands the token to that one run of cachix alone, in CACHIX_AUTH_TOKEN: in no argument, no answer and no file (64). A credential the host’s file does not name is unreadable, naming it and the bindings file; a file that cannot be read is unreadable, naming the credential and the path in the operating system’s words; a file of whitespace alone is unreadable, naming the credential. cachix runs in none of them. current, report and desired read no credential.

The run takes nothing of the host’s own cachix: every CACHIX_* variable of the host’s is removed from its environment, its signing key among them, and it runs

Terminal window
cachix --config <run>/cachix.dhall push boomdrive <root> <root>…

with --config naming a file never made, in an empty folder of the run’s own under the system’s temporary directory, removed when apply answers. So the host’s ~/.config/cachix/cachix.dhall, which cachix authtoken writes and which holds a token for every cache its owner holds, is never read. cachix push pushes each root with its closure, at cachix.org, with Cachix’s own defaults, and skips what the cache holds already.

The cachix run is the one on PATH. Run timber apply in the repository’s own shell, so the cachix it runs is the one the repository pins.

A cache whose owner holds its signing key, rather than Cachix, also wants that key, which the table has no key for: such a cache is not pushed to, and cachix refuses the push in its own words.

A host pushes only the closures it holds, so a repository releasing for several systems declares a cache environment per system, each naming that system’s closure output, and applies each from a host of that system.

timber apply <environment> converges the environment on its channel’s head, with --component <name> where the repository declares components, --branch for a governed branch other than main, and --json for the answer as one document. It reads the policy at the branch’s landed head, the channel’s head from its chain, and judges the claims the channel’s policy requires of the head’s index before the target is handed the version; a claim found wanting refuses the apply, naming it, and the target is asked nothing (42). It moves no name.

Run it from the host that built the closure. The target reads the version’s index and each closure’s file through the store by digest, checks every root valid in this host’s Nix store with nix-store --check-validity, and only then runs attic push <server>:<cache> <roots…>, or cachix push as above, which pushes each root with its closure and skips what the cache holds already. A root this host’s store does not hold refuses the apply, naming the root and the host, and nothing is pushed: the target builds nothing, substitutes nothing and fetches nothing (15). attic’s or cachix’s words on a failure are the answer, unread, as the tool wrote them.

Terminal window
timber apply cache --component example-srv
cache of example-srv follows beta: 0.4.0 (sha256:…) applied
before:
the target (nix_cache) could not read what environment cache of example-srv runs
the Nix binary cache fleet:example holds store paths by their hash and keeps no marker of what was pushed to it
runs:
the target (nix_cache) could not read what environment cache of example-srv runs
the Nix binary cache fleet:example holds store paths by their hash and keeps no marker of what was pushed to it
report:
the target (nix_cache) could not read what environment cache of example-srv runs
the Nix binary cache fleet:example holds store paths by their hash and keeps no marker of what was pushed to it

A Nix binary cache holds store paths by their hash and keeps no name a marker could be held under, so current and report are always unread, saying so and naming the cache, fleet:example or boomdrive on Cachix, never the digest last pushed and never converged (119, 89). Apply therefore runs whenever it is asked, and an apply of a version already pushed uploads nothing. With no report, no report claim is signed and no gate is told, and the apply exits as unreadable, 3, after every push it makes: apply’s exit is the worst of its parts, and the report is one. Nothing in timber runs it when the channel moves: the host names what does (C.16).

The clan push profile, clan, converges one machine of a clan fleet on the closure its version names, from the host that holds the machine’s key, with clan’s own deploy (C.12). It builds nothing: what runs is the one root the version’s closure file names, which the landing’s checks and the version’s claims named (42).

Each machine’s build task leaves a closure file naming its toplevel, one store path, as for the Nix binary cache, and the component declares it as an output packed by the file projection. The environment’s clan table names two keys and no others:

key what
machine the machine as the fleet’s inventory names it: letters, digits, - and _, beginning with a letter or a digit
closure the component’s output whose artifact names the machine’s closure, of exactly one root
[environments.example-srv.srv]
channel = "stable"
target.clan = { machine = "example-srv", closure = "example-srv" }

Any other key is unreadable naming it and the two the table reads, and a machine of any other form is unreadable naming machine; nothing runs. There is no key for a host, a user or a key: clan holds the machine’s address in the fleet’s own inventory, and the host’s ssh holds the key to it (45).

Run timber apply on the host that holds the machine’s key, in the fleet’s shell, so the clan, nix and nix-store on its path are the ones the fleet pins. The machine’s host key must already be in that host’s known hosts: clan runs with --host-key-check strict, which asks no one and refuses a machine it does not know, in ssh’s words. timber reads, writes and passes no key, and keeps nothing of the session (45, 64).

Apply judges the channel’s head as for any target, then runs these steps, and nothing runs on the machine until every check before it holds:

  1. It reads the version’s index by digest, the revision and the publishing repository the index names, and the closure file of the table’s output, which must name exactly one root. An index with no artifact of that output is absent, naming the output and the index; one naming no revision, or another publishing repository than the checkout’s, is refused.
  2. It makes a detached worktree of the checkout at that revision, under the repository’s common git directory, <common>/timber/fleet/<revision>, once, and reuses it after.
  3. It evaluates the machine’s toplevel from that worktree’s flake with nix eval --raw, under nixosConfigurations.<machine>, or darwinConfigurations.<machine> where the flake holds no NixOS machine of that name. A path other than the root is refused, naming both.
  4. It realises the root in this host’s Nix store from its substituters alone, nix-store --realise <root> --option max-jobs 0. A path no substituter holds is refused in Nix’s words, naming the path, and nothing is built in its place (I3).
  5. It runs one clan machines update <machine> --flake <worktree> --build-host localhost --host-key-check strict, which finds the root in this host’s store, copies it to the machine, uploads the machine’s vars and switches it. clan’s words on a failure are the answer, as clan wrote them.
  6. It leaves the marker on the machine, then reads the machine back: it must run the root, and its marker name the index.

After the switch, apply writes one JSON object on the machine, in the state directory of the user the fleet deploys as, so neither a Mac’s user nor a NixOS machine’s root needs any privilege beyond the deploy’s:

${XDG_STATE_HOME:-$HOME/.local/state}/timber/markers/<owner>/<name>/<component>/<environment>.json
{"index":"sha256:…","version":"0.4.0","closure":"/nix/store/…-nixos-system-example-srv-…","at":"2026-11-06T18:04:11Z"}

<owner>/<name> is the repository the checkout is of, as its landing’s remote names it, so a machine that is an environment of two repositories keeps a marker for each. It is written through clan ssh to a temporary file renamed into place, so a reader never reads part of one, and at is the machine’s own clock at the write. A marker that cannot be written makes the apply unreadable, naming the marker and the machine’s words, and saying the switch was made.

current and report read readlink /run/current-system and the marker in one clan ssh. They answer the marker’s index where the machine runs the closure the marker names; where it holds no marker, runs another closure, or cannot be reached, they answer unread, naming what it runs and what the marker says, or ssh’s words, and never guess (89, 91, 119). A machine switched by hand after timber reads unread until its next apply.

Once the machine’s report names the index applied, timber apply signs a report claim as the host’s [signing] signer, the given host key where the host binds none, and attaches it beside the version’s index, where every reader of the store reads it (43, 91). It says what the host observed the machine answer: the environment, its component and channel, the version and index, the digest the machine reports it runs, when the machine converged, and the moment of the apply. A report is a claim of timber’s own kind, report, since the public catalogue of claim kinds carries none that says an environment runs a digest (141), and timber verify lists it with its signer and its environment. An apply that finds the machine already running the head signs one only where the environment’s newest report names another index or none, so a report the store refused to hold is made by the next apply and never twice.

A report counts only where its signer may claim one: report among the kinds of its [signers.<name>] table (116):

[signers.deployer]
ssh = "ssh-ed25519 DDDD… deployer@box"
kinds = ["provenance", "acceptance", "promotion", "report"]

A report by a signer whose kinds lack report stays attached and is never counted, and the one host a file with no acceptance signer makes its gate gains no report by being the gate.

An environment’s after names the environments it must never be ahead of, and gives it a channel of its own, bound to theirs, that moves to the version every environment it names last reported it runs (37, 43, 91, C.10). One environment that waits on a yes, and a second after it, both machines of one fleet whose version names both closures:

[[component]]
name = "boxes"
outputs = ["box-1", "box-2"]
paths = ["machines/**", "flake.nix", "flake.lock"]
prefix = "boxes-v"
projections = { box-1 = "file", box-2 = "file" }
# first waits on a yes: its own channel, first, bound to stable.
[environments.boxes.first]
channel = "stable"
policy = "manual"
approvers = ["deployer"]
target.clan = { machine = "box-1", closure = "box-1" }
# second comes after first: its own channel, second, bound to first,
# moving only to what first last reported it runs.
[environments.boxes.second]
channel = "stable"
after = ["first"]
target.clan = { machine = "box-2", closure = "box-2" }

The policy for second requires, after the gate’s acceptance and any claim its line adds, a report of first by every signer that may claim one, and by no signer where none may, so second never moves on a report nobody may make. A require entry of kind report is unreadable naming its table, since an entry has no key to name the environment a report is of.

A yes moves first’s channel, and second’s stays where it is. Then timber apply first --component boxes switches box-1, signs its report, and tells the gate as a publish does, under the host’s [gate] binding: with no [gate], or [gate] publish = {}, this host’s gate moves every channel that comes after first, as its own act, to the version first last reported, and the apply’s answer carries each one:

first of boxes follows first: 0.2.0 (sha256:…) applied
before: sha256:…
runs: sha256:…, converged 2026-11-06T18:04:11Z
report: sha256:…
after:
second moved from 0.1.0 (sha256:…) to 0.2.0 (sha256:…): claim sha256:… after sha256:…; the store followed

timber apply second --component boxes then converges box-2. Moved back and applied, first reports the older version and second follows it back, one more promotion each (34). The gate reads each named environment’s newest report across its channel’s chain, the one whose apply came last, so second is never moved to a version first did not last report it runs, nor to one first’s channel never held. Where the environments a channel comes after last reported different versions, or one has no report that counts, the channel is held, and the answer names each environment and what it last reported. The host’s signer must be among the channel’s promoters, or the channel is refused naming it and them, with no report read. The promotion names the host’s signer as who asked and the reports among its counted claims. No one asks for such a channel to move: timber promote 0.2.0 --to second is refused naming second and first, whoever asks, with nothing signed or appended.

Where [gate] job = "<words>" names a job that tells the gate, the answer carries the words, timber runs nothing for it, and no channel moves. An unread report signs nothing and tells no gate. The exit is the worst of the apply’s answer, the report’s and each channel’s, a held channel counting as refused.

The Dash0 target, dash0, converges one dataset of Dash0 on the dashboards a version holds, each by its fixed identifier, from the host that holds the dataset’s write token, with Dash0’s own CLI (C.12). A repository of dashboards keeps one Perses file each, every one naming its identifier, and its build task leaves them as one or more files the component declares as outputs, packed by the file projection as any file is. A file may hold one dashboard or several, separated by ---.

The environment’s dash0 table names four keys, all required, and no others:

key what
api the address of Dash0’s API, https:// and a host, since the token is sent there
dataset the dataset’s identifier: no whitespace, no /, not beginning -
credential the name of the host’s credential, which its bindings file’s [credentials] gives the path of
dashboards one or more of the component’s outputs whose files are dashboard files, each once
[environments.dashboards.production]
channel = "stable"
target.dash0 = { api = "https://api.us-east-1.aws.dash0.com", dataset = "production", credential = "dash0-dashboards", dashboards = ["dashboards"] }

Any other key, a key missing, or one of another form is unreadable at every operation, naming the environment, the key and the four the table reads, never the key’s value, and nothing runs. There is no key for a token, a path or a profile (45).

The token is the host’s. The host’s bindings file names the path of a file holding only it, under the name the table’s credential gives:

[credentials]
dash0-dashboards = "~/.local/share/secrets/dash0-dashboards"

An environment whose credential the host’s file does not name is unreadable, naming the credential and the bindings file, and nothing runs. timber never opens, copies or passes the file’s contents: it hands the path to Dash0’s CLI as --auth-token-file, which alone reads it, when a run reaches Dash0’s API (64).

Every run of the CLI takes each setting as a flag and nothing of the host’s own dash0: it runs in a folder of its own under the system’s temporary directory, removed when it ends, with an empty configuration folder, and with every DASH0_* variable removed from its environment:

dash0 --agent-mode --no-skill-hint --config-dir <run>/config \
--auth-token-file <path> <subcommand…> --api-url <api> --dataset <dataset>

The dash0 run is the one on PATH. Run timber apply in the dashboards repository’s own shell, so the CLI that validated its dashboards in the repository’s checks is the CLI that applies them. A dash0 that hands a token of its own, such as a read-only one, is refused by Dash0 at the first write, and the apply answers Dash0’s words; it never writes with a token the table did not name.

Apply judges the channel’s head as for any target, then runs these steps, and stops at the first that fails, answering it:

  1. It reads the version’s index by digest, refused where it names another publishing repository than the checkout’s, or none, and the file of each output dashboards names, by digest. An output the index names no file of is refused, naming the output and the version (42).
  2. It writes the files into its own folder and reads every document’s kind and identifier from one dry run of the CLI, dash0 apply -f <folder> --dry-run, which takes no token, address or dataset and reaches no API. The version is refused, naming the output and the document, where a document is neither a Dashboard nor a PersesDashboard, a dashboard has no identifier, two documents give one identifier, one gives the marker’s, or an output’s file holds no dashboard; a dry run the CLI refuses is answered in its words. Nothing has reached Dash0.
  3. It reads the marker, and what it names.
  4. It writes the marker naming those together with every identifier of the version, and the version it is applying, before any dashboard is applied.
  5. It applies every file with one dash0 apply, which creates or updates each dashboard by its identifier.
  6. It deletes, with dash0 dashboards delete <id> --force, each dashboard the marker named that the version does not hold, and no other. One already gone counts as deleted.
  7. It writes the marker naming the version and its identifiers alone.

Dash0’s words on a failure are the answer, unread, as the CLI wrote them, and nothing after the failed step runs (59).

What timber applied to a dataset for an environment is a dashboard of timber’s own in that dataset, beside the dashboards it records, so any reader of the dataset reads it with no timber process running (20, 119). Its identifier is timber- and the first 32 hexadecimal characters of the SHA-256 of <owner>/<name>/<component>/<environment>, the checkout’s repository, so each environment of each repository keeps one. It sits in Dash0’s folder /timber, named timber: <owner>/<name> <component> <environment>, and its description holds the record:

{ "marker": "timber/dash0/v1",
"repository": "example/dashboards", "component": "dashboards", "environment": "production",
"index": "sha256:…", "version": "1.3.0",
"dashboards": ["overview", "sluice"],
"applying": { "index": "sha256:…", "version": "1.4.0" } }

index and version are the version last applied in full. dashboards names every identifier timber may have applied there and not removed. applying is there only while an apply runs, or after one that did not finish.

current and report read the marker with dash0 dashboards get <id> -o json. They answer its version applied in full, and report when Dash0 says the marker was last written. They answer unread, never a digest, where there is no marker, naming the dataset; where Dash0 holds it deleted, naming when; where it names an apply that did not finish, naming both versions; and where it is no record of this form or names another repository, component or environment, saying what it holds (89, 91, 119). A report claim is signed once the marker names the index applied, as for the clan push profile.

An apply removes only what the marker names and the version does not hold. Since the marker names every dashboard before it is applied, an apply that stops anywhere leaves each dashboard it applied named for the next apply to remove. A dashboard made by hand in Dash0 is never named, so never removed, and where the dataset holds no marker an apply removes nothing (C.12). A marker deleted in Dash0 still names what timber applied: the next apply removes what it names and writes it back. Moved back and applied, an environment loses the dashboards the newer version added (34). An environment moved to another dataset leaves its dashboards and its marker in the old one, for a person to remove there.

The GitHub release target, github_release, makes or updates the GitHub release of a version’s tag in the checkout’s repository on github.com, with gh, GitHub’s own CLI. The release’s text is the version’s notes, and its assets are the outputs the environment’s table names (C.12, 134). A repository whose releases carry its binaries declares each binary as an output, packed by the file projection as any file is, and an environment that follows the channel the authors promote releases to.

The environment’s github_release table names two keys, both required, and no others:

key what
credential the name of the host’s credential, which its bindings file’s [credentials] gives the path of: a token that may write the repository’s releases
assets the component’s outputs the release carries, each once, [] for a release of notes alone
[environments.flume.github]
channel = "stable"
target.github_release = { credential = "flume-releases", assets = ["flume-aarch64-darwin.tar.gz", "flume-aarch64-linux.tar.gz", "flume-x86_64-linux.tar.gz"] }

Each asset is the output’s file, uploaded under the output’s name, so a release that carries flume-x86_64-linux.tar.gz names its output so. An asset’s name is letters, digits, ., - and _, neither beginning nor ending with ., since GitHub renames any other, and a later apply finds each asset by the name it asked for. Any other key, a key missing, or one of another form is unreadable at every operation, naming the environment, the key and the two the table reads, and nothing runs. There is no key for a token, a path, a host or a repository (45).

The token is the host’s. The host’s bindings file names the path of a file holding only it, under the name the table’s credential gives:

[credentials]
flume-releases = "~/.local/share/secrets/flume-releases"

gh reads no token file, so the target reads the file when current, apply or report runs, trims its trailing whitespace, and hands the token to that operation’s runs of gh in GH_TOKEN alone: in no argument, no answer and no file (64). A credential the host’s file does not name is unreadable, naming it and the bindings file; a file that cannot be read is unreadable, naming the credential and the path in the operating system’s words; a file of whitespace alone is unreadable, naming the credential. Nothing runs in any of them, and desired reads no credential.

Every run of gh takes nothing of the host’s own gh: it runs in a folder of its own under the system’s temporary directory, removed when its operation ends, with every GH_* and GITHUB_* variable removed from its environment, and is given

GH_CONFIG_DIR=<run>/config GH_TOKEN=<token> GH_PROMPT_DISABLED=1 GH_NO_UPDATE_NOTIFIER=1

so no sign-in, host or repository of the host’s own gh is read. Each run names the host: --repo github.com/<owner>/<name> for gh release, and --hostname github.com for gh api.

The gh run is the one on PATH. Run timber apply in the repository’s own shell, so the gh it runs is the one the repository pins.

Apply judges the channel’s head as for any target, then runs these steps, and stops at the first that fails, answering it:

  1. It reads the version’s index by digest, refused where it names another publishing repository than the checkout’s, or none, or no revision (42).
  2. It reads the version’s notes, the artifact its index names in the ecosystem notes, and the file of each output assets names, each by digest. An index naming no notes, notes that are not UTF-8, and an output the index names no file of are each refused, naming the version and what it lacks.
  3. It reads the token. Nothing has reached GitHub yet.
  4. It reads the version’s tag on GitHub, gh api repos/<owner>/<name>/git/ref/tags/<tag>, peeled through a tag object to its commit. The version is refused where GitHub holds no such tag, naming the tag and the repository, or holds it at another revision than the index names, naming the tag and both revisions.
  5. It finds the tag’s release, published or a draft, with gh release view <tag>.
  6. Where there is none, it makes one as a draft, titled by the tag, the notes its text: gh release create <tag> --verify-tag --draft.
  7. It uploads, in one gh release upload <tag> --clobber, each named asset the release holds no uploaded asset of with the digest of the output’s bytes, replacing one of that name; none where every one is held.
  8. It publishes the release last, the notes its text and the tag its title, not a prerelease, and marked latest: gh release edit <tag> --verify-tag --draft=false --prerelease=false --latest.

No step makes, moves or deletes a tag: step 4 refuses before any write, and --verify-tag stops gh making one. The release stays a draft until its assets are attached, so a reader of the repository’s latest release never sees one without them, and an apply that stops after making the draft leaves it for the next apply to find by its tag and finish; one tag never takes two releases. gh’s words on a failure are the answer, as it wrote them, and nothing after the failed step runs (59).

A release is never a prerelease and is always marked latest, whatever the version’s form, since GitHub never marks a prerelease latest and current reads the release it does. An apply of a version whose release is published already writes its text and title again and marks it latest, which is how a move back converges (34).

current and report read the release GitHub marks latest, gh api repos/<owner>/<name>/releases/latest, and answer the index the store names the component’s version of its tag at; report answers when GitHub says that release was last updated too. They answer unread, never a digest, where GitHub marks no release latest, naming the repository, and where the latest release’s tag names no version of the component in the store, naming the tag: a release made by hand, or another component’s (89, 91, 119). A report claim is signed once the latest release names the index applied, as for the other targets.

GitHub marks one release latest for the whole repository, so one component per repository takes a GitHub release: a second component’s release environment would read the first’s release as current.

An apply removes no asset, no release and no tag. A release is one version’s, so an asset the version does not name was put there by hand or by an apply under an earlier assets, and it stays. A release’s text or title edited by hand is written back by the next apply.

A target profile implements the one target interface and nothing of the core. It passes the one conformance suite, which holds it to Parts A and B; a profile that fails the suite is not one (93).