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
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#1578
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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: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.bootstrap/cmd/bootstrapregistersGET /getand a catch-allGET /that answers the install script for EVERY other path.https://get.idss.nz/channel/testing.jsonreturns 200text/x-shellscripttoday (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.channel/<name>/<role>— one fixed path per role.matourelease.Publishcorrectly 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 plainos.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.IDSS_RELEASE_SEEDis 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>.jsonandGET /channel/<name>/<revision>/<role>from the artifacts dir; everything else under/channel/is a 404, never the install script. FeedContent-Type: application/json, short cache; artifacts immutable, long cache. Path traversal refused. The/getdoorway 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 besidereseed-publish.yml, same runner, own schedule, OFF the push path — GOTCHAS #123 is why):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 aspublish.shdoes. 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;CGO_ENABLED=0control plane + agent,pnpm --filter dashboard buildwith theidip/member bundle folded in the wayscripts/assemble-payload.shdoes, the control panel packed as #1576's deterministic tarball;release-cut --channel testing, thenmatourelease.Verifys its own output before it leaves the runner;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 aPINoverride the wayreseed.sh pin <sha>does.stableis never touched by automation (ADR 0248 decision 3).publish.sh promote <revision>re-cuts an already-publishedtestingrevision's exact bytes ontostable, 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 stablefrom a workflow.Release notes on
testing. Titletesting · <short sha>, kindpatch, notes = the commit subjects in the published range — authored upstream and signed, which is all ADR 0068 asks; asecuritykind is always a human's call and only ever set at promote.Decisions this ticket carries
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) Atestingchannel 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 bypromote. A gateway pins exactly one public key, so a community's channel and its trusted key move together.Why human
testingchannel 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.!.Acceptance
Offline (scripted, the way
scripts/tests/bootstrap-reseed-test.shproves the agent rail):GET /channel/testing.jsonserves the feed as JSON;GET /channel/nope.jsonandGET /channel/testing/<rev>/nopeare 404, not the install script;/and/getare unchangedorigin/main's tip once--channel stablefrom the workflow, Then the rail refuses;promotere-serves byte-identical artifacts under the production signaturepublishedLive:
main,https://get.idss.nz/channel/testing.jsonserves a feed that verifies against thetestingpublic key and names that revision, with no human step, within two cron ticks — and the advance is announcedNotes
docs/GOTCHAS.md#96/#98/#123 (cancelled runs starve publish jobs), #221 (the wrong-200 fall-through) and the runner notes inreseed-publish.ymlall apply. Forgejo can silently stop firing a cron —workflow_dispatchstays the manual door.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:IDSS_RELEASE_SEEDis unset when cutting for get.idss.nz.testingchannel key — seed as a secret readable only by this rail's workflow; Whakatōhea Demo pins its public half (viaset-release-channel, #1569).promoteuses it.Still Ben's hands, unchanged: minting the
testingkey + placing the secret, and installing the pull half on the droplet. The session stages the exact commands. The production key stays unminted until thetestinglane is green live.One more consumer of the
testingkey's public half — #1582 (Ben's ruling, 2026-09-18: founding pinstesting). Founding's channel constant ships empty until this rail's key is minted. When Ben mints thetestingkey, 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.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 hostnamematou-dev-server-01(noSWARM_HOSToverride 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.mdstill recommends the name that never matches.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-humanfor the two one-way doorsRuled by agent under ADR 0174 — veto anytime. Landed on
mainasd7b14c7a(rebased onto the concurrent #1587/#1596/#1598 landings).What landed (all revertible + offline-proven)
Serve half —
bootstrap/cmd/bootstrapnow answersGET /channel/<name>.json(feed,application/json, short cache) andGET /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/getuntouched).Versioned, atomic, GC'd publish —
cmd/release-cutserves 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.Publishwrites every file temp-file +rename(2)(the feed swap is the single commit point) and garbage-collects old revision dirs keeping the served + previous.stablerefused from a workflow —release-cutrefuses--channel stablewithout a human--promoteand 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 packageidss-fleet-release;scripts/release-rail/pull.sh(idss-release-pull.timer) +cmd/release-installverify the feed signature and every artifact digest against the pinned channel key before install (the same verified/atomic/GCPublishpath — 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,…(offreseed-publish's:3,:13,…). All revertible by editing the file and re-cutting.Proof (offline)
go build ./.../go vet/gofmtclean.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.Why human — the residue (two one-way doors, both prepared)
testingchannel 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 secretRELEASE_TESTING_SEED(the workflow'sIDSS_RELEASE_SEED), pin the public half wherever atestingcommunity is founded and in the droplet env. Exact one-liner + the pin steps:scripts/release-rail/README.md→ "Mint thetestingchannel key". Until minted, the workflow signs with the committed TEST key — fine for a throwaway rehearsal gateway, never pinned by a kept community.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-humanrather than closing.Labels:
agent-working+ready-for-session→ready-for-human(via/labels).removableon the catalogue read, and the live client's two verbs — the UI is on main and draws no button until this lands #1590stablepromote cannot work — it dropsidss-idp, reports success on a 409 while the production-signed feed never publishes, and nothing can servestable(fix + provepublish.sh promotebefore the production key is minted) #1971Closing — both human doors are through and both live legs have passed (session on Ben's word, 2026-09-28)
This ticket went
ready-for-humanon 2026-09-18 for two steps, and both were done that day:testingchannel key minted, seed placed as the repo secretRELEASE_TESTING_SEED; the public half is pinned in founding since9d7fbe8e(#1582).idss-release-pull.timeron).Live acceptance:
mainis served as a signed feed with no human step. Read today:https://get.idss.nz/channel/testing.jsonanswers 200application/jsonand namesbe126a6b(seq 3011, published 18:25:01Z) —origin/main's tip, committed 18:09:38Z. First verified outside-in against thetestingkey 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.real-railleg, GREEN 9/9 — runs20260920T171007Zand20260921T064206Z(founded the production way, #1675). Beyond the acceptance: Whakatōhea Demo tookcef28743unattended in its window on 2026-09-22 (recorded on #1562).https://get.idss.nz/channel/stable.jsonis 404, as it should be — nothing has been promoted.Not covered by this close: the
stablehalf of the rail.publish.sh promotehas never been run and cannot work as written (dropsidss-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.testingrelease of kindfeature— a test aid so the ask-me-first review path is walked on a real community (the rail only ever cutspatch) #1973