updates (#1562-8): the publish rail — cut a signed testing release from green main and serve it at get.idss.nz/channel (CI publishes, the droplet pulls); stable by human promote only #1578

Closed
opened 2026-09-18 14:24:28 +00:00 by ben · 6 comments
Owner

Parent: #1562 — contract: ADR 0248 (decisions 2 + 3), ADR 0185 (the shape this rail copies), ADR 0054

What's true today (verified on main @ d8de67c9)

The lane has a cutter and nothing that runs it. cmd/release-cut (#1563) cuts, signs and writes a served tree into a directory; no workflow, script or timer ever invokes it, and get.idss.nz cannot serve what it writes:

  1. Nothing cuts a release. reseed-publish.yml + scripts/bootstrap-reseed/ publish only the bootstrap AGENT for new foundings. No rail builds the control-plane binary + control panel + agent, cuts a release, or moves it anywhere.
  2. get.idss.nz cannot serve a channel. bootstrap/cmd/bootstrap registers GET /get and a catch-all GET / that answers the install script for EVERY other path. https://get.idss.nz/channel/testing.json returns 200 text/x-shellscript today (probed 2026-09-17/18) — the GOTCHAS #221 shape: a wrong 200 instead of a 404. A gateway polling it gets a shell script where a signed feed should be.
  3. Artifact URLs are not versioned, so publishing B corrupts A in flight. The cutter serves each file at channel/<name>/<role> — one fixed path per role. matourelease.Publish correctly writes artifacts first and the feed last, but it writes B's files OVER A's while A's feed is still the one served, and with plain os.WriteFile (no temp + rename). Every gateway mid-rollout on A — or polling in that gap — fetches B's bytes against A's signed fingerprints and refuses. Under DDR 0250 that burns one of the release's two tries on every community at once; a slow upload could quarantine a good release fleet-wide.
  4. No key has a home. The cutter signs with the committed throwaway TEST key unless IDSS_RELEASE_SEED is set. Nothing holds a seed anywhere. This rail IS the custody home the production key has been waiting for (#1562).

What to build

Copy ADR 0185's proven shape — CI publishes, the droplet pulls, no new inbound doors — rather than inventing a second one.

Serve (the bootstrap server). GET /channel/<name>.json and GET /channel/<name>/<revision>/<role> from the artifacts dir; everything else under /channel/ is a 404, never the install script. Feed Content-Type: application/json, short cache; artifacts immutable, long cache. Path traversal refused. The /get doorway and the root script are untouched.

Versioned, atomic publish (the cutter + matourelease.Publish). Artifact URLs become …/channel/<name>/<revision>/<role> — immutable once written, so a release's files never change under a gateway that is fetching them. Every write is temp-file + rename(2) in the same directory; the feed swap is the single commit point. Old revisions are garbage-collected, keeping at least the served release and the one before it (a gateway may be mid-rollout on the previous feed).

Publish half (scripts/release-rail/publish.sh + a workflow beside reseed-publish.yml, same runner, own schedule, OFF the push path — GOTCHAS #123 is why):

  • fires when origin/main's tip touches the fleet-software set and the newest published release does not carry it — diffed from the newest PUBLISHED revision so lost runs self-backfill, exactly as publish.sh does. The set is one shared constant (proposed: control-plane/ dashboard/ agent/ internal/ packages/ go.mod go.sum, the keri-web bundle's sources, tests and testdata excluded), sourced by both halves so they cannot drift;
  • builds reproducibly: CGO_ENABLED=0 control plane + agent, pnpm --filter dashboard build with the idip/ member bundle folded in the way scripts/assemble-payload.sh does, the control panel packed as #1576's deterministic tarball;
  • cuts with release-cut --channel testing, then matourelease.Verifys its own output before it leaves the runner;
  • publishes the served tree as ONE immutable version per revision to the Forgejo generic package registry (a new package, e.g. idss-fleet-release).

Pull half (on the droplet, beside reseed.sh — same timer pattern, same artifacts dir): poll the registry over outbound HTTPS, download, verify the feed's signature against the channel's pinned public key AND every artifact against its signed sha256 before anything is installed — the droplet never serves what it has not verified — install artifacts first, swap the feed last, self-probe the served feed, announce the advance to Mattermost, and raise the staleness alarm when the served release falls behind. Honour a PIN override the way reseed.sh pin <sha> does.

stable is never touched by automation (ADR 0248 decision 3). publish.sh promote <revision> re-cuts an already-published testing revision's exact bytes onto stable, with human-authored notes and kind (ADR 0068), signed by the production key, run by a human on a machine that holds it. The rail refuses --channel stable from a workflow.

Release notes on testing. Title testing · <short sha>, kind patch, notes = the commit subjects in the published range — authored upstream and signed, which is all ADR 0068 asks; a security kind is always a human's call and only ever set at promote.

Decisions this ticket carries

  • Two-way (ADR 0174, agent rules): the registry package name, the fleet-software path set, the GC depth, the cache headers, the workflow's cron offset.
  • Needs Ben's ruling — proposed default attached. Which key signs testing? Today that would be the committed TEST key, whose private seed is in the repo (matourelease.TestReleaseSeedB64). Any community pinned to it accepts a release signed by anyone who can read the repo — and Whakatōhea Demo is a kept community people are invited into. Proposed: three keys, three homes. (1) The committed TEST key — seam tests and throwaway rehearsal gateways only, never a kept community. (2) A testing channel key — seed held as a Forgejo Actions org secret readable only by this workflow's runner; Whakatōhea Demo pins its public half. (3) The production key — never on a runner; held by Ben, used only by promote. A gateway pins exactly one public key, so a community's channel and its trusted key move together.

Why human

  • Minting the testing channel key and placing its seed as an org secret, and later the production key (#1562) — personal credentials + a security-posture decision. One command each; the session prepares the exact command and the public half to pin.
  • Installing the pull half on the mail droplet. The artifacts dir is root-owned and only Ben's laptop reaches that box (#597/#598); the classifier blocks remote sudo from a session. The session stages the unit files + an install script; Ben runs it with !.

Acceptance

Offline (scripted, the way scripts/tests/bootstrap-reseed-test.sh proves the agent rail):

  • GET /channel/testing.json serves the feed as JSON; GET /channel/nope.json and GET /channel/testing/<rev>/nope are 404, not the install script; / and /get are unchanged
  • Given release A served and B being published, Then A's artifact URLs keep returning A's exact bytes until B's feed lands, and a reader never observes a partially written file
  • Given a range that does not touch the fleet-software set, Then nothing is cut; given three lost runs, Then the next tick publishes origin/main's tip once
  • Given a registry version whose feed signature or any artifact digest does not verify, Then the pull half installs nothing, keeps serving the previous release, and alarms
  • Given --channel stable from the workflow, Then the rail refuses; promote re-serves byte-identical artifacts under the production signature
  • The same tree cut twice yields byte-identical artifacts and an identical manifest apart from published

Live:

  • After a fleet-affecting commit lands on main, https://get.idss.nz/channel/testing.json serves a feed that verifies against the testing public key and names that revision, with no human step, within two cron ticks — and the advance is announced
  • A rehearsal gateway pinned to that feed takes the release end to end (this is #1562's live leg; it cannot run before this rail exists)

Notes

  • Depends on #1576 for the control-panel tarball shape; the two can be built together but the rail must not ship a second packer.
  • docs/GOTCHAS.md #96/#98/#123 (cancelled runs starve publish jobs), #221 (the wrong-200 fall-through) and the runner notes in reseed-publish.yml all apply. Forgejo can silently stop firing a cron — workflow_dispatch stays the manual door.
  • Architecture 11 + STATUS.md in the same commit; ADR 0248 gains an amendment for the versioned artifact path and the key-per-channel ruling once Ben rules it.
## Parent: #1562 — contract: ADR 0248 (decisions 2 + 3), ADR 0185 (the shape this rail copies), ADR 0054 ## What's true today (verified on `main` @ `d8de67c9`) The lane has a cutter and nothing that runs it. `cmd/release-cut` (#1563) cuts, signs and writes a served tree into a directory; no workflow, script or timer ever invokes it, and get.idss.nz cannot serve what it writes: 1. **Nothing cuts a release.** `reseed-publish.yml` + `scripts/bootstrap-reseed/` publish only the bootstrap AGENT for new foundings. No rail builds the control-plane binary + control panel + agent, cuts a release, or moves it anywhere. 2. **get.idss.nz cannot serve a channel.** `bootstrap/cmd/bootstrap` registers `GET /get` and a catch-all `GET /` that answers the install script for EVERY other path. `https://get.idss.nz/channel/testing.json` returns **200 `text/x-shellscript`** today (probed 2026-09-17/18) — the GOTCHAS #221 shape: a wrong 200 instead of a 404. A gateway polling it gets a shell script where a signed feed should be. 3. **Artifact URLs are not versioned, so publishing B corrupts A in flight.** The cutter serves each file at `channel/<name>/<role>` — one fixed path per role. `matourelease.Publish` correctly writes artifacts first and the feed last, but it writes B's files OVER A's while A's feed is still the one served, and with plain `os.WriteFile` (no temp + rename). Every gateway mid-rollout on A — or polling in that gap — fetches B's bytes against A's signed fingerprints and **refuses**. Under DDR 0250 that burns one of the release's two tries on every community at once; a slow upload could quarantine a good release fleet-wide. 4. **No key has a home.** The cutter signs with the committed throwaway TEST key unless `IDSS_RELEASE_SEED` is set. Nothing holds a seed anywhere. This rail IS the custody home the production key has been waiting for (#1562). ## What to build Copy ADR 0185's proven shape — **CI publishes, the droplet pulls, no new inbound doors** — rather than inventing a second one. **Serve (the bootstrap server).** `GET /channel/<name>.json` and `GET /channel/<name>/<revision>/<role>` from the artifacts dir; **everything else under `/channel/` is a 404**, never the install script. Feed `Content-Type: application/json`, short cache; artifacts immutable, long cache. Path traversal refused. The `/get` doorway and the root script are untouched. **Versioned, atomic publish (the cutter + `matourelease.Publish`).** Artifact URLs become `…/channel/<name>/<revision>/<role>` — immutable once written, so a release's files never change under a gateway that is fetching them. Every write is temp-file + `rename(2)` in the same directory; the feed swap is the single commit point. Old revisions are garbage-collected, keeping at least the served release and the one before it (a gateway may be mid-rollout on the previous feed). **Publish half** (`scripts/release-rail/publish.sh` + a workflow beside `reseed-publish.yml`, same runner, own schedule, OFF the push path — GOTCHAS #123 is why): - fires when `origin/main`'s tip touches the **fleet-software set** and the newest published release does not carry it — diffed from the newest PUBLISHED revision so lost runs self-backfill, exactly as `publish.sh` does. The set is one shared constant (proposed: `control-plane/ dashboard/ agent/ internal/ packages/ go.mod go.sum`, the keri-web bundle's sources, tests and testdata excluded), sourced by both halves so they cannot drift; - builds reproducibly: `CGO_ENABLED=0` control plane + agent, `pnpm --filter dashboard build` with the `idip/` member bundle folded in the way `scripts/assemble-payload.sh` does, the control panel packed as #1576's deterministic tarball; - cuts with `release-cut --channel testing`, then `matourelease.Verify`s its own output before it leaves the runner; - publishes the served tree as ONE immutable version per revision to the Forgejo generic package registry (a new package, e.g. `idss-fleet-release`). **Pull half** (on the droplet, beside `reseed.sh` — same timer pattern, same artifacts dir): poll the registry over outbound HTTPS, download, **verify the feed's signature against the channel's pinned public key AND every artifact against its signed sha256 before anything is installed** — the droplet never serves what it has not verified — install artifacts first, swap the feed last, self-probe the served feed, announce the advance to Mattermost, and raise the staleness alarm when the served release falls behind. Honour a `PIN` override the way `reseed.sh pin <sha>` does. **`stable` is never touched by automation** (ADR 0248 decision 3). `publish.sh promote <revision>` re-cuts an already-published `testing` revision's exact bytes onto `stable`, with human-authored notes and kind (ADR 0068), signed by the production key, run by a human on a machine that holds it. The rail refuses `--channel stable` from a workflow. **Release notes on `testing`.** Title `testing · <short sha>`, kind `patch`, notes = the commit subjects in the published range — authored upstream and signed, which is all ADR 0068 asks; a `security` kind is always a human's call and only ever set at promote. ## Decisions this ticket carries - **Two-way (ADR 0174, agent rules):** the registry package name, the fleet-software path set, the GC depth, the cache headers, the workflow's cron offset. - **Needs Ben's ruling — proposed default attached.** *Which key signs `testing`?* Today that would be the committed TEST key, whose private seed is in the repo (`matourelease.TestReleaseSeedB64`). Any community pinned to it accepts a release signed by anyone who can read the repo — and Whakatōhea Demo is a kept community people are invited into. **Proposed: three keys, three homes.** (1) The committed TEST key — seam tests and throwaway rehearsal gateways only, never a kept community. (2) A **`testing` channel key** — seed held as a Forgejo Actions org secret readable only by this workflow's runner; Whakatōhea Demo pins its public half. (3) The **production key** — never on a runner; held by Ben, used only by `promote`. A gateway pins exactly one public key, so a community's channel and its trusted key move together. ## Why human - **Minting the `testing` channel key and placing its seed as an org secret**, and later the production key (#1562) — personal credentials + a security-posture decision. One command each; the session prepares the exact command and the public half to pin. - **Installing the pull half on the mail droplet.** The artifacts dir is root-owned and only Ben's laptop reaches that box (#597/#598); the classifier blocks remote sudo from a session. The session stages the unit files + an install script; Ben runs it with `!`. ## Acceptance Offline (scripted, the way `scripts/tests/bootstrap-reseed-test.sh` proves the agent rail): - [ ] `GET /channel/testing.json` serves the feed as JSON; `GET /channel/nope.json` and `GET /channel/testing/<rev>/nope` are **404**, not the install script; `/` and `/get` are unchanged - [ ] Given release A served and B being published, Then A's artifact URLs keep returning A's exact bytes until B's feed lands, and a reader never observes a partially written file - [ ] Given a range that does not touch the fleet-software set, Then nothing is cut; given three lost runs, Then the next tick publishes `origin/main`'s tip once - [ ] Given a registry version whose feed signature or any artifact digest does not verify, Then the pull half installs nothing, keeps serving the previous release, and alarms - [ ] Given `--channel stable` from the workflow, Then the rail refuses; `promote` re-serves byte-identical artifacts under the production signature - [ ] The same tree cut twice yields byte-identical artifacts and an identical manifest apart from `published` Live: - [ ] After a fleet-affecting commit lands on `main`, `https://get.idss.nz/channel/testing.json` serves a feed that verifies against the `testing` public key and names that revision, with no human step, within two cron ticks — and the advance is announced - [ ] A rehearsal gateway pinned to that feed takes the release end to end (this is #1562's live leg; it cannot run before this rail exists) ## Notes - Depends on #1576 for the control-panel tarball shape; the two can be built together but the rail must not ship a second packer. - `docs/GOTCHAS.md` #96/#98/#123 (cancelled runs starve publish jobs), #221 (the wrong-200 fall-through) and the runner notes in `reseed-publish.yml` all apply. Forgejo can silently stop firing a cron — `workflow_dispatch` stays the manual door. - Architecture 11 + STATUS.md in the same commit; ADR 0248 gains an amendment for the versioned artifact path and the key-per-channel ruling once Ben rules it.
Author
Owner

RULED by Ben, 2026-09-18 — three keys, three homes (recorded as ADR 0248's decision 3 amendment, commit ceccdba1). The 'Needs Ben's ruling' item in the body is closed; build to it:

  1. Committed TEST key — seam tests and throwaway rehearsal gateways only. The rail must never sign a served channel with it, and should refuse to if IDSS_RELEASE_SEED is unset when cutting for get.idss.nz.
  2. testing channel key — seed as a secret readable only by this rail's workflow; Whakatōhea Demo pins its public half (via set-release-channel, #1569).
  3. Production key — never on a runner. Ben holds it; only promote uses it.

Still Ben's hands, unchanged: minting the testing key + placing the secret, and installing the pull half on the droplet. The session stages the exact commands. The production key stays unminted until the testing lane is green live.

**RULED by Ben, 2026-09-18 — three keys, three homes** (recorded as ADR 0248's decision 3 amendment, commit `ceccdba1`). The 'Needs Ben's ruling' item in the body is closed; build to it: 1. **Committed TEST key** — seam tests and throwaway rehearsal gateways only. The rail must never sign a served channel with it, and should refuse to if `IDSS_RELEASE_SEED` is unset when cutting for get.idss.nz. 2. **`testing` channel key** — seed as a secret readable only by this rail's workflow; Whakatōhea Demo pins its public half (via `set-release-channel`, #1569). 3. **Production key** — never on a runner. Ben holds it; only `promote` uses it. Still Ben's hands, unchanged: minting the `testing` key + placing the secret, and installing the pull half on the droplet. The session stages the exact commands. The production key stays unminted until the `testing` lane is green live.
Author
Owner

One more consumer of the testing key's public half — #1582 (Ben's ruling, 2026-09-18: founding pins testing). Founding's channel constant ships empty until this rail's key is minted. When Ben mints the testing key, the staged commands should also produce the one-line commit that fills the founding constant with the public half — otherwise newly founded communities stay untuned even with the rail live.

**One more consumer of the `testing` key's public half — #1582 (Ben's ruling, 2026-09-18: founding pins `testing`).** Founding's channel constant ships empty until this rail's key is minted. When Ben mints the `testing` key, the staged commands should also produce the one-line commit that fills the founding constant with the public half — otherwise newly founded communities stay untuned even with the rail live.
Author
Owner

Host marker corrected (2026-09-18). This ticket sat unclaimed because its marker named matou-workstation, but the runner on that box answers to its hostname matou-dev-server-01 (no SWARM_HOST override is set), so every tick logged declared for host(s) matou-workstation — this host is matou-dev-server-01; skipped. The marker now lists both names. #1090 carries the same marker and is skipped for the same reason; docs/agents/triage-labels.md still recommends the name that never matches.

**Host marker corrected (2026-09-18).** This ticket sat unclaimed because its marker named `matou-workstation`, but the runner on that box answers to its hostname `matou-dev-server-01` (no `SWARM_HOST` override is set), so every tick logged *declared for host(s) matou-workstation — this host is matou-dev-server-01; skipped*. The marker now lists both names. #1090 carries the same marker and is skipped for the same reason; `docs/agents/triage-labels.md` still recommends the name that never matches.
Author
Owner

Host pin removed (2026-09-18). Nothing in this ticket needs the workstation: the publish workflow runs on elitebook-03 and the mail droplet is reachable only from Ben's laptop, so the pin only kept elitebook-03's session-runner from claiming it while the workstation's capacity was held by a rehearsal drive. Any host may take it now.

**Host pin removed (2026-09-18).** Nothing in this ticket needs the workstation: the publish workflow runs on elitebook-03 and the mail droplet is reachable only from Ben's laptop, so the pin only kept elitebook-03's session-runner from claiming it while the workstation's capacity was held by a rehearsal drive. Any host may take it now.

Two-way tier landed; routing to ready-for-human for the two one-way doors

Ruled by agent under ADR 0174 — veto anytime. Landed on main as d7b14c7a (rebased onto the concurrent #1587/#1596/#1598 landings).

What landed (all revertible + offline-proven)

Serve half — bootstrap/cmd/bootstrap now answers GET /channel/<name>.json (feed, application/json, short cache) and GET /channel/<name>/<revision>/<role> (immutable, long cache); everything else under /channel/ is a 404, never the catch-all install script (the GOTCHAS #221 wrong-200 shape closed one layer up — new GOTCHAS #251; path traversal refused; / and /get untouched).

Versioned, atomic, GC'd publish — cmd/release-cut serves each artifact at the immutable …/channel/<name>/<revision>/<role>, so publishing B never overwrites A's bytes under a gateway mid-rollout (retires the item-3 corruption). matourelease.Publish writes every file temp-file + rename(2) (the feed swap is the single commit point) and garbage-collects old revision dirs keeping the served + previous.

stable refused from a workflow — release-cut refuses --channel stable without a human --promote and the production seed.

The rail (ADR 0185's shape, one channel over) — scripts/release-rail/publish.sh (workflow .forgejo/workflows/release-publish.yml, off the push path — GOTCHAS #123) cuts + Verifys + publishes the served tree as one immutable version per revision to the new Forgejo generic package idss-fleet-release; scripts/release-rail/pull.sh (idss-release-pull.timer) + cmd/release-install verify the feed signature and every artifact digest against the pinned channel key before install (the same verified/atomic/GC Publish path — the droplet never serves what it has not verified). The fleet-software path set is one shared constant (scripts/lib/release-rail-lib.sh, tests/testdata excluded).

Two-way rulings (ADR 0174, this ticket's list): registry package idss-fleet-release; the fleet-software path set (control-plane/ dashboard/ agent/ internal/ packages/ go.mod go.sum app/src/keriweb/ app/vite.keriweb.config.ts, tests/testdata excluded); GC depth = served + previous; cache headers (short feed / long-immutable artifacts); workflow cron offset :7,:17,… (off reseed-publish's :3,:13,…). All revertible by editing the file and re-cutting.

Proof (offline)

  • go build ./... / go vet / gofmt clean.
  • go test ./internal/matourelease ./internal/matouchannel ./bootstrap/... ./cmd/release-cut ./cmd/release-install — covers the acceptance offline criteria: serve routes 404-not-script; A-served/B-publishing keeps A's exact bytes with no torn write; GC two-behind; the stable guard; verify-refuses-tampered → installs nothing.
  • scripts/tests/release-rail-test.sh — 36 checks: the pure decision core, the fleet-affected diff incl. _test.go/testdata exclusion, the docs-only publish refusal, and the workflow's starvation-proof properties.
  • Docs in the same commit: ADR 0248 decision-1 amendment, architecture 11 rail diagram, GOTCHAS #251, STATUS.md.

Why human — the residue (two one-way doors, both prepared)

  1. Mint the testing channel key + place its seed as an org secret. Personal credential + security-posture. Generate a raw Ed25519 keypair, set the seed as the Forgejo Actions org secret RELEASE_TESTING_SEED (the workflow's IDSS_RELEASE_SEED), pin the public half wherever a testing community is founded and in the droplet env. Exact one-liner + the pin steps: scripts/release-rail/README.md → "Mint the testing channel key". Until minted, the workflow signs with the committed TEST key — fine for a throwaway rehearsal gateway, never pinned by a kept community.
  2. Install the pull half on the mail droplet. Root-owned artifacts dir; only Ben's laptop reaches the box (#597/#598); the classifier blocks remote sudo. Staged unit files + a step-by-step install ritual (build release-install, write /etc/idss-release-pull.env, systemctl enable --now idss-release-pull.timer): scripts/release-rail/README.md → "Install on the mail droplet".

The live acceptance legs (a fleet commit → a served signed feed within two ticks; a rehearsal gateway takes the release end to end — #1562's live leg) cannot run before both doors are through, so this ticket routes to ready-for-human rather than closing.

Labels: agent-working + ready-for-session → ready-for-human (via /labels).

## Two-way tier landed; routing to `ready-for-human` for the two one-way doors Ruled by agent under ADR 0174 — veto anytime. Landed on `main` as **`d7b14c7a`** (rebased onto the concurrent #1587/#1596/#1598 landings). ### What landed (all revertible + offline-proven) **Serve half** — `bootstrap/cmd/bootstrap` now answers `GET /channel/<name>.json` (feed, `application/json`, short cache) and `GET /channel/<name>/<revision>/<role>` (immutable, long cache); **everything else under `/channel/` is a 404, never the catch-all install script** (the GOTCHAS #221 wrong-200 shape closed one layer up — new GOTCHAS #251; path traversal refused; `/` and `/get` untouched). **Versioned, atomic, GC'd publish** — `cmd/release-cut` serves each artifact at the immutable `…/channel/<name>/<revision>/<role>`, so publishing B never overwrites A's bytes under a gateway mid-rollout (retires the item-3 corruption). `matourelease.Publish` writes every file temp-file + `rename(2)` (the feed swap is the single commit point) and garbage-collects old revision dirs keeping the served + previous. **`stable` refused from a workflow** — `release-cut` refuses `--channel stable` without a human `--promote` **and** the production seed. **The rail (ADR 0185's shape, one channel over)** — `scripts/release-rail/publish.sh` (workflow `.forgejo/workflows/release-publish.yml`, off the push path — GOTCHAS #123) cuts + `Verify`s + publishes the served tree as one immutable version per revision to the new Forgejo generic package **`idss-fleet-release`**; `scripts/release-rail/pull.sh` (`idss-release-pull.timer`) + `cmd/release-install` verify the feed signature **and** every artifact digest against the pinned channel key before install (the same verified/atomic/GC `Publish` path — the droplet never serves what it has not verified). The fleet-software path set is one shared constant (`scripts/lib/release-rail-lib.sh`, tests/testdata excluded). **Two-way rulings (ADR 0174, this ticket's list):** registry package `idss-fleet-release`; the fleet-software path set (`control-plane/ dashboard/ agent/ internal/ packages/ go.mod go.sum app/src/keriweb/ app/vite.keriweb.config.ts`, tests/testdata excluded); GC depth = served + previous; cache headers (short feed / long-immutable artifacts); workflow cron offset `:7,:17,…` (off `reseed-publish`'s `:3,:13,…`). All revertible by editing the file and re-cutting. ### Proof (offline) - `go build ./...` / `go vet` / `gofmt` clean. - `go test ./internal/matourelease ./internal/matouchannel ./bootstrap/... ./cmd/release-cut ./cmd/release-install` — covers the acceptance offline criteria: serve routes 404-not-script; A-served/B-publishing keeps A's exact bytes with no torn write; GC two-behind; the stable guard; verify-refuses-tampered → installs nothing. - `scripts/tests/release-rail-test.sh` — 36 checks: the pure decision core, the fleet-affected diff incl. `_test.go`/testdata exclusion, the docs-only publish refusal, and the workflow's starvation-proof properties. - Docs in the same commit: ADR 0248 decision-1 amendment, architecture 11 rail diagram, GOTCHAS #251, STATUS.md. ### Why human — the residue (two one-way doors, both prepared) 1. **Mint the `testing` channel key + place its seed as an org secret.** Personal credential + security-posture. Generate a raw Ed25519 keypair, set the seed as the Forgejo Actions org secret **`RELEASE_TESTING_SEED`** (the workflow's `IDSS_RELEASE_SEED`), pin the public half wherever a `testing` community is founded and in the droplet env. Exact one-liner + the pin steps: `scripts/release-rail/README.md` → "Mint the `testing` channel key". Until minted, the workflow signs with the committed TEST key — fine for a throwaway rehearsal gateway, never pinned by a kept community. 2. **Install the pull half on the mail droplet.** Root-owned artifacts dir; only Ben's laptop reaches the box (#597/#598); the classifier blocks remote sudo. Staged unit files + a step-by-step install ritual (build `release-install`, write `/etc/idss-release-pull.env`, `systemctl enable --now idss-release-pull.timer`): `scripts/release-rail/README.md` → "Install on the mail droplet". The live acceptance legs (a fleet commit → a served signed feed within two ticks; a rehearsal gateway takes the release end to end — #1562's live leg) cannot run before both doors are through, so this ticket routes to `ready-for-human` rather than closing. Labels: `agent-working` + `ready-for-session` → `ready-for-human` (via `/labels`).
Author
Owner

Closing — both human doors are through and both live legs have passed (session on Ben's word, 2026-09-28)

This ticket went ready-for-human on 2026-09-18 for two steps, and both were done that day:

  1. testing channel key minted, seed placed as the repo secret RELEASE_TESTING_SEED; the public half is pinned in founding since 9d7fbe8e (#1582).
  2. Pull half installed on the mail droplet (doorway binary swapped, idss-release-pull.timer on).

Live acceptance:

  • A fleet-affecting commit on main is served as a signed feed with no human step. Read today: https://get.idss.nz/channel/testing.json answers 200 application/json and names be126a6b (seq 3011, published 18:25:01Z) — origin/main's tip, committed 18:09:38Z. First verified outside-in against the testing key on 2026-09-18 (the committed TEST key refused). Today's read is of the manifest only; the signature was not re-verified in this session.
  • A rehearsal gateway pinned to that feed takes the release end to end. #1614 real-rail leg, GREEN 9/9 — runs 20260920T171007Z and 20260921T064206Z (founded the production way, #1675). Beyond the acceptance: Whakatōhea Demo took cef28743 unattended in its window on 2026-09-22 (recorded on #1562).

https://get.idss.nz/channel/stable.json is 404, as it should be — nothing has been promoted.

Not covered by this close: the stable half of the rail. publish.sh promote has never been run and cannot work as written (drops idss-idp, treats the feed's 409 as success, and the pull half cannot follow a second channel). That is #1971, which now blocks #1562 in this ticket's place.

## Closing — both human doors are through and both live legs have passed (session on Ben's word, 2026-09-28) This ticket went `ready-for-human` on 2026-09-18 for two steps, and both were done that day: 1. **`testing` channel key minted**, seed placed as the repo secret `RELEASE_TESTING_SEED`; the public half is pinned in founding since `9d7fbe8e` (#1582). 2. **Pull half installed on the mail droplet** (doorway binary swapped, `idss-release-pull.timer` on). **Live acceptance:** - [x] *A fleet-affecting commit on `main` is served as a signed feed with no human step.* Read today: `https://get.idss.nz/channel/testing.json` answers 200 `application/json` and names `be126a6b` (seq 3011, published 18:25:01Z) — `origin/main`'s tip, committed 18:09:38Z. First verified outside-in against the `testing` key on 2026-09-18 (the committed TEST key refused). Today's read is of the manifest only; the signature was not re-verified in this session. - [x] *A rehearsal gateway pinned to that feed takes the release end to end.* #1614 `real-rail` leg, GREEN 9/9 — runs `20260920T171007Z` and `20260921T064206Z` (founded the production way, #1675). Beyond the acceptance: Whakatōhea Demo took `cef28743` unattended in its window on 2026-09-22 (recorded on #1562). `https://get.idss.nz/channel/stable.json` is 404, as it should be — nothing has been promoted. **Not covered by this close:** the `stable` half of the rail. `publish.sh promote` has never been run and cannot work as written (drops `idss-idp`, treats the feed's 409 as success, and the pull half cannot follow a second channel). That is #1971, which now blocks #1562 in this ticket's place.
ben 2026-09-28 19:09:36 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1578
No description provided.