updates (#1562-11): the live proof drive — a rehearsal gateway takes a signed release end to end (applied, rolled back, refused, replay), then one leg on the real testing rail #1614
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
#1633 updates-open: U1 renders a blank fleet revision and 0 of 0 nodes on a fresh community
Matou/idss
#1646 rolled-back: C crash-loops with nothing to restore it; Updates stays pinned to applied
Matou/idss
Reference
Matou/idss#1614
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 — the one build child its decomposition named and never filed ("… → existing-community step → drive leg")
What's true today (2026-09-18,
main@0425c095)The whole lane is built and the station is on air:
https://get.idss.nz/channel/testing.jsonserves a signed release that tracksmainby itself (#1578), verified outside-in with the fleet's own reader against thetestingchannel key. But no gateway has ever taken a release. Poll → land → staged rollout → the control plane swapping its own binary → resume → applied, and the rollback and refusal paths, are seam-proven only.Nothing will prove it by waiting:
scripts/,app/testsanddashboard/tests/e2econtain no leg that touches the Updates lane;This now gates a decision. Founding's channel pin (#1582) is written but HELD (local branch
pin-testing-1582-held, Ben's ruling 2026-09-18: wait for a rehearsal gateway to take an update). Reason: the rail cuts everytestingrelease as kindpatch;Kind.Automatic()is security|patch; the default policy isSecurity: ModeAuto, window 02:00–04:00 — so with the pin live every newly founded community would install each fleet-affectingmaincommit overnight through a path never run on a real gateway.What to build
A rehearsal drive (the existing executor's shape — author it, get it offline-green, then queue-arm it; do not run it from a one-shot session) on a throwaway gateway:
IDSS_RELEASE_FEED_URL/IDSS_RELEASE_PUBLIC_KEY→founding.WithReleaseChannel). The drive cuts its own releases withcmd/release-cutunder the committed TEST key and serves them from the drive host — a throwaway gateway is exactly what the TEST key is for (ADR 0248 decision 3 amendment), and it lets the drive control what B is. Thetestingchannel seed never leaves the rail.get.idss.nz/channel/testing.json+ thetestingpublic half (FEoWsURiW4Xu6IS/uxAbt28AUH6ioUg2tag/ORtMpoI=) withset-release-channel(#1569) and let it take whatever is newest — this is the rehearsal of the Whakatōhea Demo step, including a 23 MB artifact over the public doorway.docs/ux/wireframes/p4b-updates/.The window. A drive cannot wait for 02:00. Open the window through the operator's own door (the Updates policy screen) — no test-only env that bypasses the scheduler. If no such door exists end to end, say so on this ticket: that is a finding, not something to route around.
Also settle (small, same lane): the default policy names channel
stablewhile the pinned feed istesting, and the reader never compares them — the policy screen would tell the operator "stable". Either derive the displayed channel from what the gateway is actually tuned to, or file it; don't leave it unmentioned.Acceptance
After this is green
Ben decides: push
pin-testing-1582-held, then #1569 on Whakatōhea Demo, then the production key and the firststablepromote (#1562).Filed 2026-09-18 from Ben's ruling to hold founding's pin until a rehearsal gateway has taken an update. No host pin on purpose — any session-runner may take the authoring.
Session-runner report — #1614 (one-shot session, matou-workstation)
What landed this session (two-way, proven, pushed as
e2f4ec60)1. The "small, same lane" defect is FIXED (not filed). The default policy named channel
stablewhile a gateway tuned totesting.jsonactually pulled testing, and the reader never compared them —update.Policy.Channelwas a free-standing string threaded into the U1/U1x display and intosrc.Latest's channel arg, the replay high-water key (store.go:130) and refusal reporting. The production fetch (matouchannel.NewHTTPFetch) hits the fixed feed URL and ignores the channel arg, so the feed URL is the one authority on which channel a gateway is on.matouchannel.Source.Channel()now derives the channel from the pinned feed URL'schannel/<name>.jsonsegment (matourelease.FeedPath's shape),""for an absent/non-conforming URL.composeWholeseedsPolicy.Channelfrom the wired source when it names a channel, else the composed defaultstable(the resting stub, seam fakes and a fork name none → byte-identical). A gateway ontesting.jsonnow reportstestingon U1/U1x, and the replay key + refusals name one real channel.TestSource_ChannelFromFeedURL,TestWholeComposition_NamesTheTunedChannel,TestWholeComposition_KeepsDefaultChannelWhenSourceUnnamed.go test ./internal/update/... ./internal/matouchannel/ ./control-plane/cmd/control-plane/green; vet + gofmt clean.Ruled by agent under ADR 0174 — veto anytime. Two-way: a code+test change reverted by editing
Source.Channel()and thecomposeWholederivation; proven by the tests above.2. The window door — FINDING: it exists end-to-end, no test-only env needed. The ticket asked whether the operator can open the maintenance window through their own door without a scheduler-bypassing env. Yes:
UpdatePolicyScreen.vue(U5) has editable window start/end →POST /api/v1/updates/policy(internal/controlapi/updates.go:70-79) →Orchestrator.SetPolicy(internal/update/policy.go:27) → the liveWindow.Contains(now)gate re-read on every scheduler tick (internal/update/rollout.go:214, impl:557). The drive opens the window by editing U5 to bracketnow; the next tick (≤5 min) rolls. No test-only env exists or is needed.Window.Zero()also means "always in window", and a by-hand retry (RetryByHand, manual=true) bypasses the window — but the clean operator door is the U5 window edit.What did NOT land — and why a one-shot session structurally can't
The drive itself is greenfield and its legs are inherently live, so it cannot be authored to a genuine offline-green nor run from a one-shot session (the ticket itself says "do not run it from a one-shot session"). Confirmed against the machinery:
journey.*.spec.ts, and no drive leg anywhere touches the Updates/release lane today (grep ofscripts/,app/tests,dashboard/tests/e2eforrelease-cut/set-release-channel/IDSS_RELEASE_FEED_URL/testing.json→ nothing). The release rail (scripts/release-rail/,cmd/release-cut) is driven by a systemd timer, never by the rehearsal executor.app/tests/e2e/journey.<target>.spec.ts, orderedJourneyLegs fromfixtures/legs.ts), gated by a target inscripts/smoke-private-path.sh:98-100, and its "offline-green" is ascripts/tests/rehearsal-<target>-target-test.shwired intoscripts/seam-smoke.sh— but that offline test only proves routing/slug/spec-existence. Each leg'srun()(found-from-A, cut-B via release-cut, self-swap, rollback, tamper/refuse, replay, real-rail, screenshots) only executes against a live gateway. Shipping ~hundreds of lines of unverifiable live-only legs and calling it "offline-green" would be false green against the ticket's own "Legs 2–6 green by LEG LIST … zero skips" bar.Authoring plan (the concrete next-session starting point)
updates(orlocal-updates): add to the whitelistcaseinscripts/smoke-private-path.sh:98-100; likely NOTuses_droplet_machineryif it drives the localrelease-railscripts +cmd/release-cutagainst a drive-local fixture feed on alocal-guest-style KVM gateway; else a real throwaway droplet target.IDSS_RELEASE_FEED_URL/IDSS_RELEASE_PUBLIC_KEY→founding.WithReleaseChannel(app/helper/cmd/helper/wiring_prod.go:733-749). The drive founds revision A tuned to its own feed served from the drive host, signed with the committed TEST key (matourelease.TestReleaseSeedB64; ADR 0248 dec 3). Thetestingseed never leaves the rail.journey.updates.spec.tsleg list (model onjourney.droplet.spec.ts:95-112): applied (cut B viacmd/release-cut→ panel/revision/U4 + self-swap-resume proof #1567), rolled-back (cut C failing health → U4x + previous binary+panel back #1576, second failure quarantines), refused (digest tamper + feed-signature tamper → U3x / standing U1 row DDR 0250, two-tries-then-quarantine, no 5-min re-download #1577), replay (re-serve A after B → refused #1579), then one real-rail leg re-tuning viacontrol-plane set-release-channel(#1569) toget.idss.nz/channel/testing.json+FEoWsURiW4Xu6IS/uxAbt28AUH6ioUg2tag/ORtMpoI=.scripts/tests/rehearsal-updates-target-test.sh(model onrehearsal-v2-fleet-target-test.sh) wired intoscripts/seam-smoke.sh:125.<!-- rehearsal-target: updates -->body marker (+ optional<!-- rehearsal-confirm: N -->),ready-for-agent, and add its number to a host'sREHEARSAL_DRIVE_QUEUE— then the executor runs it live (screenshots for Ben's eyes are produced there, not here).Ticket state
Left
ready-for-session(rule 8): the small defect + window finding landed and are proven, but the drive authoring is a multi-file greenfield build whose acceptance ends on a live executor run + Ben's eyeballs — neither reachable from a one-shot ready-for-session drainer. If this is the second unadvanced attempt the runner will escalate to a human; the plan above is the starting point either way. No labels changed by hand (the runner owns theagent-workingclaim lifecycle). Advances #1614.Session-runner ruling — #1614 →
ready-for-human(attempt 2, matou-dev-server-01)Ruled by agent under ADR 0174 — veto anytime. Routing this off the session queue to
ready-for-human, because after mapping the whole Updates-lane machinery the remaining work is (a) an oversized greenfield drive-infrastructure build, (b) whose acceptance is inherently live + Ben's eyeballs, and (c) gated on a spend/host one-way door no session-runner may open. The two small same-lane items the ticket asked to settle are already done (attempt 1). Detail below so the next hands — human or swarm — start from a settled map, not a cold read.What is already landed and green (safe slice, attempt 1 —
elitebook-distributed-server-03,e2f4ec60)matouchannel.Source.Channel()derives the channel from the pinned feed URL'schannel/<name>.jsonsegment;composeWholeseedsPolicy.Channelfrom the wired source. A gateway ontesting.jsonnow reportstesting, not a free-standingstable. Proven byTestSource_ChannelFromFeedURL+TestWholeComposition_NamesTheTunedChannel/…KeepsDefaultChannelWhenSourceUnnamed.UpdatePolicyScreen.vue(U5) editable window →POST /api/v1/updates/policy→Orchestrator.SetPolicy→ the liveWindow.Contains(now)gate re-read every scheduler tick (internal/update/rollout.go). A drive opens the window by bracketingnowthrough U5; the next tick (≤5 min) rolls.go test ./internal/update/... ./internal/matouchannel/re-run this session → ok.Why the rest cannot be a one-shot session ticket
I mapped the machinery in full. Every piece the drive needs already exists:
cmd/release-cutcuts a signed release under the committed TEST key (matourelease.TestReleaseKey()whenIDSS_RELEASE_SEEDis unset) to a local--outtree a drive host can serve over HTTP; artifacts arecontrol-planebinary +control-paneltarball +agent(internal/update/land.gorole consts).app/helper/cmd/helper/wiring_prod.go:738readsIDSS_RELEASE_FEED_URL/IDSS_RELEASE_PUBLIC_KEY→founding.WithReleaseChannel(same env the gateway control-plane reads back atinternal/clan/vmguest.go).set-release-channel <node> <feedURL> <publicKey>(control-plane/cmd/control-plane/set_release_channel.go, #1569).updates_scheduler.go(5-min ticker),productionReleaseSource(wires only when BOTH feed+key env are set),land.go(digest boundary),resume.go(#1567 self-swap resume),rollback.go(#1576 restore,maxAttempts=2→ quarantine;recordRefusalputs a land refusal on the same budget → DDR 0250).data-fields: U1UpdatesScreen.vue(data-field="channel-refused"), U3RollingOutScreen.vue(land rowdata-field="stage-land"), U4AppliedScreen.vue, U4xRolledBackScreen.vue, U3xRefusedScreen.vue(data-field="refusal"/"refused-artifact"/"refused-check").scripts/smoke-private-path.sh:99(+:146if remote), ajourney.updates.spec.ts, and ascripts/tests/rehearsal-updates-target-test.sh(auto-picked by theseam-smoke.shscripts/tests/*.shglob).But the drive itself is genuinely greenfield and un-runnable / un-provable from here:
FakeFleet/FakeReleaseSource. The smoke script never exportsIDSS_RELEASE_FEED_URL, never serves a local feed, and never stands up a gateway whoseproductionReleaseSourceis armed — so on every current drive the scheduler just stamps last-checked and never lands. This drive would be the first end-to-end exercise of the self-swap, and the plumbing to make that happen (serve the drive-localrelease-cuttree, export the feed pair into founding, provision a throwaway gateway with the timer armed) does not exist and must be built.journey.updates.spec.tson disk). Authoring hundreds of lines of live-only legrun()+ new smoke-script feed plumbing that no live gateway has verified, and calling it "offline-green," risks a target that looks armed but whose plumbing is unverified guesswork — which, when the executor picks it up, burns a paid live drive (non-routine spend). That is the opposite of a two-way door.Why human
idip/#1547, not updates. The two ways to run an updates drive both need Ben's ruling: a throwaway DigitalOcean droplet (non-routine spend), or a local-guest KVM onelitebook-03(the #89 affinity host for local-guest drives). Picking the host and authorising the spend is Ben's.docs/ux/wireframes/p4b-updates/— the acceptance says a green leg list alone does not count.pin-testing-1582-held): founding'stestingpin stays held until a rehearsal gateway takes an update. Ben owns that gate and the after-this-is-green sequence (#1569 on Whakatōhea Demo, the production key, the firststablepromote — #1562).Proposed decomposition (so this can be swarmed once Ben rules host+spend)
smoke-private-path.sh+ lib): a new--target updates(droplet or elitebook-03 local-guest per Ben) that (a)release-cuts revision A to a drive-local--outtree under the TEST key, (b) serves it over HTTP from the drive host, (c) exports the feed pair into founding so the gateway founds tuned to the drive-local feed with the scheduler armed. Live-only-verifiable — the swarm proves it on the chosen host.journey.updates.spec.tsleg list: applied (cut B, open window via U5, self-swap +resume#1567, U4 + verbatim notes), rolled-back (cut C fails health → U4x, previous binary+panel back #1576, 2nd failure quarantines), refused (digest tamper + feed-sig tamper → U3x / standing U1 row, two-tries-then-quarantine, no 5-min re-download #1577), replay (re-serve A after B → refused #1579), then the real-rail leg (set-release-channel→get.idss.nz/channel/testing.json+FEoWsURiW4Xu6IS/uxAbt28AUH6ioUg2tag/ORtMpoI=, take newest). Screenshots via the per-legsetLegCapturerhook.scripts/tests/rehearsal-updates-target-test.sh(auto-picked by the seam-smoke glob).Ticket state
Relabelled
ready-for-human(removedready-for-session). This is an honest routing, not a stalled attempt: the safe slice landed in attempt 1, the machinery is fully mapped above, and what remains is a spend/host one-way door + a multi-slice live-and-human-gated feature. Advances #1614.Ben ruled 2026-09-18: Option A — the throwaway gateway is a local KVM guest on elitebook-03 (free and repeatable; the drive takes the exclusive slot; no droplet, no spend). The build is split as the session proposed and chained: #1617 (plumbing) → #1618 (leg list) → #1619 (offline target test + arming this ticket's markers); this ticket is now blocked by #1619. It stays
ready-for-human: once #1619 lands, queueing it on elitebook-03 (REHEARSAL_DRIVE_QUEUE) and eyeballing the screenshots are Ben's.Armed for the executor rail (#1619, slice 3 of 3). The two drive-body markers are now on this issue (
rehearsal-target: local-updates,rehearsal-confirm: 1), the exact form the other queued drives use (#1277). The whole offline tail is green:scripts/lib/rehearsal-updates-feed-lib.sh— the drive-host feed (slice 1, #1617), plus the throwaway-only guard (updates_feed_assert_throwaway): the drive signs release A with the committed TEST key and now refuses to found against any feed pair that is not its own TEST-key feed (a kept community'sIDSS_RELEASE_PUBLIC_KEY/…_FEED_URLleaking in from the host env), before anything is cut or served.app/tests/e2e/journey.updates.spec.ts— the ordered leg list (slice 2, #1618): the documented seven Updates legs after the shared founding prefix.scripts/tests/rehearsal-local-updates-target-test.sh— the offline target test (part ofscripts/seam-smoke.sh): thelocal-updatesroute, the spec's seven-leg list, the feed server + publish helper existence + teardown-on-both-exits, and the throwaway-only guard's accept/refuse behaviour. 9 checks green.Ready to queue on elitebook-03 — the only executor whose local-guest world stands up. This arms alone:
REHEARSAL_DRIVE_QUEUE=<this>(exclusive slot). Setting the host env is a human step (not touched here). On the live run, legs 2–6 must go green by leg list with zero skips, and the per-leg screenshots (U1/U3/U4/U4x/U3x/refused-list) are for Ben's eyeball againstdocs/ux/wireframes/p4b-updates/. Founding's pin stays HELD (pin-testing-1582-held) until this drive is green.rehearsal healer: drive
20260919T131607Zred atupdates-open(sig 7e8181a118ff) fast-lane self-fixed — commit6bfde10961d8ddd96d65f338cf7b299e4be02df9filed and closed #1628 through the close-report gate; checks:pnpm --filter dashboard exec vitest run tests/unit/dashboardComposition.test.ts— RED first withAssertionError: expected 'fleet' to be 'settings'(the leg's own snapshot, exactly), GREEN after: 30 passed (30). Package testspnpm --filter dashboard exec vitest run— 136 files, 1741 passed | 3 skipped (1744), including the previously-greenmountProvisioningUpdates.test.ts,settings.test.tsandnavigatorDialog.test.ts.. The drive stays armed; the next tick re-drives.Run 2 (
20260919T135211Z) — diagnosis from the trace, for whoever heals it (session watching for Ben; NOT fixing this one, to avoid a second double-landing with the healer).The leg got PAST the drill-in (the
updates-openfix holds) and the Updates surface then hit its display-fault frame. Fromtrace.zip:[dashboard] surface display fault TypeError: Cannot read properties of null (reading 'length')GET /api/v1/updates→ 200{"resting":false,"channel":"testing","last_checked":…,"pending":null,"automatic":[ … release A … ], …}"pending": null—internal/update/surface.godeclaresPending/Automatic/Quarantinedas plain slices, so a nil slice marshals as JSONnull;UpdatesScreen.vuereadssurface.pending.length(l.44),.automatic.length(l.76),.quarantined.length(l.118). Every seam fake hands back[], so no unit test saw it. On a real gateway the Updates surface crashes whenever any of the three lists is empty — i.e. almost always. Fix at the source (never marshal a nil list:[]), and the OpenAPI/TS type says array so the panel is right to trust it.Second thing in the same response, not a red yet: the gateway lists release A — the release it was FOUNDED with — under
automatic, as an update waiting to apply.composeWholeseedsupdate.Current{}(empty), so a fresh gateway does not know its own revision and treats its own founding release as new. The drive will probably not trip on it (B supersedes A), but in production every newly founded community pinned to a feed would show an update pending and run a full self-swap rollout onto the bits it already runs, the first night. Worth its own ticket before the pin goes live.GET /api/v1/updates/rollout→ 404no_rolloutis expected at rest.rehearsal healer: drive
20260919T135211Zred atupdates-open(sig 7e8181a118ff) fast-lane self-fixed — commit1035817588cc14a53e9ad6245dc69fafb80ef5d4filed and closed #1630 through the close-report gate; checks: Targeted:go test ./internal/update -run 'TestState_EmptySectionsMarshalAsListsNotNull|TestState_PopulatedSectionLeavesTheOthersAsLists'— RED first (surface_test.go:34: "pending" must marshal as an empty list, got null), GREEN after (ok git.matou.nz/Matou/idss/internal/update 0.005s). Package:go test ./internal/update/...— ok. Consumer package:go test ./internal/controlapi/...— ok (1.039s).gofmt -l internal/update/clean,go vet ./internal/update/clean.. The drive stays armed; the next tick re-drives.Run 3 (
20260919T141551Z) — red atupdates-open, and this one is #1631, not a new defect. Both earlier fixes hold: the drill-in opens and U1 renders. The leg then reads U1 and reports: waiting on the fleet revision on U1 — the Updates surface showed instead: U1 active, fleet on (revision unread). The gateway has no revision to show becausecomposeWholeseedsupdate.Current{}— the same root as run 2's second finding (its own founding release A listed underautomatic). That is ticketed as #1631 (seed the gateway's release identity — revision + signed sequence — from the founding payload; never offer a release that is not newer). It is a carrier decision across founding → sidecar → composition, not a fast-lane patch, so I have made this drive natively blocked by #1631 and given #1631priority: the executor idles instead of burning a 13-minute founding per tick on a red that cannot change until #1631 lands. Do not loosen the leg's gate to get past it — a gateway that does not know what it is running is exactly what the pin must not ship with.drive
20260919T141551ZRED — now blocked by: #1633 (evidence on each). The drive re-fires when the last blocker closes.rehearsal healer: drive
20260919T152807Zred atupdates-open(sig 7e8181a118ff) self-fixed — commita86ff344412f70fac88dd34f6c582e779a2885fd(2 files changed, 121 insertions(+), 4 deletions(-)); checks: pnpm --filter app exec vitest run tests/e2e/fixtures/updatesDrive.test.ts — RED first with the fix stashed (AssertionError: expected '' to be 'testing'on the U1x resting case), GREEN after: 4 passed (4). Wider offline suite pnpm --filter app exec vitest run tests/e2e/fixtures/ — 32 files, 537 passed (537). pnpm --filter app exec vue-tsc -p tsconfig.json — clean; eslint on both touched files — clean. Screen confirmed from the drive's own trace.zip DOM snapshot:data-field="up-to-date" … All 1 nodes are running <code>133b7440…</code> on the <b>testing</b> channel, with no header-meta in the DOM.. The drive stays armed; the next tick re-drives.rehearsal healer: drive
20260919T155510Zred atupdates-open(sig 7e8181a118ff) self-fixed — commit49094cbe80d976e821c1e7f4487a75c93c73778c(3 files changed, 131 insertions(+), 5 deletions(-)); checks: Targeted:pnpm --filter app exec vitest run tests/e2e/fixtures/updatesDrive.test.ts— RED first with the two source files stashed (AssertionError: expected [ 'console.error: Loading the font …' , … ] to deeply equal [], andexpected [ 'console.error: noise from nowhere' ] to deeply equal []): 2 failed | 6 passed (8). GREEN after: 8 passed (8), the new cases driving the drive's verbatim kanidm messages. Wider offline suitepnpm --filter app exec vitest run tests/e2e/fixtures/— 32 files, 541 passed (541).pnpm --filter app exec vue-tsc -p tsconfig.json --noEmit— clean.pnpm exec eslinton all three touched files — clean.. The drive stays armed; the next tick re-drives.rehearsal healer: drive
20260919T161534Zred atapplied(sig b2c402d43d70) self-fixed — commit39f718cc37000293d18287333ca9cb82ba432474(3 files changed, 221 insertions(+), 19 deletions(-)); checks: Targeted:pnpm --filter app exec vitest run tests/e2e/fixtures/updatesDrive.test.ts— RED first with the two source files stashed (TypeError: probeApexStatus is not a function,assertServedPanelHasStringreaching the fake page's throwingrequestgetter): 6 failed | 8 passed (14). GREEN after: 14 passed (14). Wider offline suitepnpm --filter app exec vitest run tests/e2e/fixtures/— 32 files, 547 passed (547).pnpm --filter app exec vue-tsc -p tsconfig.json --noEmit— clean.pnpm exec eslinton all three touched files — clean. No door-leg re-prove: this is not a roles-proof door leg and the box is gone.. The drive stays armed; the next tick re-drives.rehearsal healer: drive
20260919T165607Zred atapplied(sig b2c402d43d70) self-fixed — commit59359ba8229265732b4590ce018ade99f5bf5e6c(2 files changed, 121 insertions(+), 2 deletions(-)); checks: Targeted:pnpm --filter app exec vitest run tests/e2e/fixtures/updatesFeed.test.ts— RED first against the unfixed patcher, reproducing the drive verbatim (expected 'i("label",…' to contain 'The fleet is running · B'/ Received"The fleet is running � B", and the every-occurrence count+0vs2): 2 failed | 2 passed (4). GREEN after: 4 passed (4). Real-bundle check against the drive's own founded payload (/home/swarm/swarm/rehearsal-payload/dashboard, throwaway spec, deleted after): the patchedassets/index-DVoP64yT.jsnow reads back"The fleet is running · B"— exactly the string the applied leg seeks. Wider offline suitepnpm --filter app exec vitest run tests/e2e/fixtures/— 33 files, 551 passed (551).pnpm --filter app exec vue-tsc -p tsconfig.json --noEmit— clean.pnpm exec eslinton both touched files — clean. No door-leg re-prove: this is not a roles-proof door leg and no artifacts/live-box.json was handed over.. The drive stays armed; the next tick re-drives.idss-control-plane, so the landed binary never runs and Resume (#1567, GOTCHAS #241) can never firedrive
20260919T173243ZRED — now blocked by: #1636 (evidence on each). The drive re-fires when the last blocker closes.idss-control-plane, so the landed binary never runs and Resume (#1567, GOTCHAS #241) can never fire #1636idss-control-plane, so the landed binary never runs and Resume (#1567, GOTCHAS #241) can never fire #1636idss-control-plane, so the landed binary never runs and Resume (#1567, GOTCHAS #241) can never fire #1636idss-control-plane, so the landed binary never runs and Resume (#1567, GOTCHAS #241) can never fire #1636preflight PARK (host-local refusal, exit 3) on elitebook-distributed-server-03 — no drive ran, nothing was filed, and #1614 is blocked on nothing:
the payload's dashboard dist is OLDER than the newest dashboard/ commit — the drive would test stale bits (the phase-2 arc's drive 4). Refresh it: scripts/assemble-payload.sh (or rebuild dashboard/ and refresh the payload's dashboard/)This does not heal itself: a preflight park creates no run dir, so neither the healer nor the reporter ever sees it (#918). The executor backs off for ~30 min (#1035) and then retries; until a session or a human clears the refusal the lane reads "blocked by nothing" while nothing drives. Executor log on elitebook-distributed-server-03.
Diagnosis for run
20260920T001206Z(from the #1562 lane session) — harness, one line;appliedPASSED.The good news first: ADR 0259 / #1636 is proven live. The guest journal shows
Started idss-control-plane.serviceat 00:33:39 and, from the new PID,update resumed across a control-plane restart and converged revision=updates-bat 00:33:52. The gateway restarted its own control plane and the new process finished the rollout — the--no-blockescape clears #858.The red is at the start of
rolled-back, before anything touches the box:fixtures/updatesFeed.ts:230brokenControlPlane()runsgo buildin<run>/state/updates-work/C/control-plane.src. It writes its owngo.mod, but the run dir is INSIDE the repo checkout and the repo root has ago.work— workspace mode ignores the nested module, so go answersmain module (git.matou.nz/Matou/idss) does not contain package …/control-plane.src.Fix (reproduced on the laptop, same error, same cure): add
GOWORK: "off"to thatexecFileSyncenv (besideCGO_ENABLED/GOOS/GOARCH). Nothing else. An offline fixture test that callsbrokenControlPlane()into a dir under the repo root would have caught it.rehearsal healer: drive
20260920T001206Zred atrolled-back(sig d4b0dc7b8ac9) self-fixed — commitd57c82892cc1f906ad8fcb12940caf84bd5826de(3 files changed, 79 insertions(+), 2 deletions(-)); checks: Targeted:pnpm --filter app exec vitest run tests/e2e/fixtures/updatesFeed.test.ts— RED first against the unfixed fixture, reproducing the drive's message verbatim (main module (example.test/checkout) does not contain package example.test/checkout/test-results/state/updates-work/C/control-plane.src): 2 failed | 4 passed (6). GREEN after: 6 passed (6), the new cases building under ago.workroot and proving the artifact is an ELF that exits 1. Wider offline suitepnpm --filter app exec vitest run tests/e2e/fixtures/— 33 files, 553 passed (553).pnpm --filter app exec vue-tsc -p tsconfig.json --noEmit— clean.pnpm exec eslinton both touched TS files — clean. Root cause independently reproduced on the host before any edit: a scratch module under the checkout red with the drive's exact string, and the same build withGOWORK=offsucceeded. No door-leg re-prove: this is not a roles-proof door leg and noartifacts/live-box.jsonwas handed over (the guest is torn down;logs/guest-failed-units.logrecorded 0 failed units).. The drive stays armed; the next tick re-drives.drive
20260920T011806ZRED — now blocked by: #1646 (evidence on each). The drive re-fires when the last blocker closes.Diagnosis for run
20260920T011806Z(from the #1562 lane session) — PRODUCT, not harness.appliedpassed again (second live proof of ADR 0259); red at the top ofrolled-back.The leg waited its whole budget for the U5 policy door and the surface showed U4
appliedthroughout. That is not slowness — U4 is a dead end, forever:UpdatesSurface.vuerendersAppliedScreenwheneverrollout && rollout.applied, ahead of the U1x/U1 branches. The refused and rolled-back branches carry&& !returnedToUpdatesand a@return-to-updatesexit; the applied branch has neither, andAppliedScreen.vueoffers onlyopen-logs.Orchestrator.RolloutState()servesstore.lastRollout,retainRolloutonly ever overwrites it, and since #1633 it is durable — so it survives the ADR 0259 restart too. The harness comment inupdatesDrive.ts("a retained rollout screen has none, so poll until it clears") assumes a clearing that does not exist.Operator consequence: after a community takes its FIRST successful update, the Updates surface is U4 on every visit. They can never reach U1 again — not the policy door (U5), not the next pending release`s review (U2), not the history drill-in — until some later rollout overwrites the retained view with a non-applied one. On a kept community that is "after the first night".
Suggested shape (two-way door; the pattern already exists two branches up): give U4 the same
return-to-updatesexit U4x/U3x have ("Back to updates"), guarded by!returnedToUpdatesin the surface — plus one rule worth adding: a retained applied view should not outrank a NEW pending/queued release (U1 with something to review matters more than last nights success). The flow (p4b-updates.mermaid) gives U4 only the hand-off edge to P5; it needs aU4 → U1edge and the wireframep4b-u4-applied.html` the button. Do NOT fix this in the harness by reloading or clearing state — the leg found a real trap.eval gate RED (key 2f0302ab93f00c52) — a rendered config no longer evaluates offline; the cycle parked BEFORE renting a droplet. Fix the eval red on main (evidence: /home/swarm/swarm/Matou/idss/test-results/eval-smoke/2f0302ab93f00c52.log on elitebook-distributed-server-03); the gate re-proves automatically once internal/clan or internal/provision moves.
Eval-gate red cleared from the #1562 lane session —
996e047e. It was not a config that fails to evaluate: every eval passed, and only the committed drvPath baseline drifted (seed-community/fleetgw), because #1639 (da89695e) wired the restore guard into the VM gateways control-plane unit and landed without the baseline (a swarm worker cannot run the nix smoke). Reviewed as the intended change — it is the onlyinternal/clan` commit since the last green gate and the only machine that moved — and regenerated; the laptop and elitebook-03 computed the same value. The gate re-keys on this commit, so the next cycle should drive. Worth a factory follow-up: a render-touching worker commit should flag "baseline needs regenerating" in its close-report rather than let the drive discover it.Diagnosis for run
20260920T034948Zat996e047e(from the #1562 lane session) — two live proofs, one leg-premise problem, one product bug.Proven live this run
u4x-rolled-backscreenshot taken).04:32:07 idss-control-plane-restore-guard: the swapped control plane failed to boot 3 times for updates-c — restoring the previous fleet software, then the restored process loggeda swapped control plane failed to BOOT … attempt=1. First live rollback of a cant-boot binary. (applied` also passed a third time.)**Why it red — the leg
s premise does not hold on this fleet.**journey.updates.spec.ts:~307-330polls the apex every 15 s and reds on ANY 5xx, on the comment "a health check fails on the canary, never the gateway". But the throwaway community is ONE node: the gateway is the whole fleet, and release C breaks the *control plane itself* (os.Exit(1)). Under ADR 0247 the apex IS the control panel, proxied to:8080, so while C crash-loops (3 boots ×RestartSec=5s≈ 15-20 s until the guard acts) the apex is necessarily 502 — caddy loggeddial tcp 127.0.0.1:8080: connection refusedat 04:32:04. A zero-outage assertion can never pass with this C. Options for whoever picks it up: (a) bound it — tolerate an outage no longer than the guards window (say ≤ 60 s, the figure U2 promises the operator), red on anything longer; or (b) split it — C fails a service health check (the #1576 on-disk rollback, community stays up, assert zero outage), and a separate C′ is the can`t-boot case asserting guard-restores-within-N-seconds. (b) proves more; (a) is the one-line unblock.Product bug (against ADR 0067 as written, no new ruling needed): the retry is IMMEDIATE, not "at the next maintenance window". Journal: attempt 1 counted at
04:32:07.970;fleetland: landedC again at04:32:08.880;gateway self-swap: restartingat04:32:18; second crash04:32:19. The schedulers start-up tick sees the window still open (Window.Contains(now),updates_scheduler.go:201/rollout.go:234) and re-runs the failed release one second after the rollback. On a real community (02:00–04:00) a failure at 02:10 retries at 02:10:01 — two back-to-back outages and a quarantine in under a minute, with no time for a transient cause to clear, which is the whole point of the wait. A failed attempt should hold its retry until the next window *occurrence* (e.g. not before the current windows end). The harvest ends right after the second crash, so this run does not show whether attempt 2 → guard → quarantine completes; the next run should.drive
20260920T034948ZRED — now blocked by: #1650 (evidence on each). The drive re-fires when the last blocker closes.Run
20260920T050806Zat9c906f8e(from the #1562 lane session) — two more live proofs, and a harness red in the same leg #1654 is editing.Proven live: (1) Ben
s bounded closed-door window — the leg measured ONE outage,apex 502 12.1s, reopened, well inside 60 s. (2) The durable retry throttle (#1650) — after the guard restored B at05:49:18and the restored process counted attempt 1, there is NO secondfleetland: landed/ self-swap forupdates-cin the journal; last run it re-landed one second later. (applied` green a fourth time; U3/U4/U4x screenshots captured.)The red:
rolled-back→ "waiting on the fleet rolled back to updates-b — showed instead: fleet on (unread)". Harness. After the outage check the leg doesreloadPanelToUpdatesthenreadFleetRevision(journey.updates.spec.ts:~418-427), which only knows U1/U1x selectors (up-to-date/current/convergence—updatesDrive.ts:134-147). But after a reload the surface rightly lands on U4x again (a retained rolled-back view holds the screen until the operator leaves it — unchanged by DDR 0261), and U4x carries none of those fields. The fleet IS on B: U4x says so itself in its rollback detail (view.rollback.nowOn, composed as<channel> · <revision> — all N nodes converged,rolloutview.go:242/268).Fix, to fold into #1654 since it is rewriting this exact stretch: read B off U4x
s own "now on" detail (give that span adata-field, e.g.now-on, and teachreadFleetRevisionabout it) — and keep the leg ON U4x, because #1654s "retry by hand" button lives there. Only after the quarantine check press "Back to updates" and cross-check U1`s header. Do not reorder it the other way round (return-to-updates first) or the retry-by-hand door is gone.drive
20260920T050806ZRED — now blocked by: #1655 (evidence on each). The drive re-fires when the last blocker closes.Diagnosis for run
20260920T070007Zatd7a45ca2(from the #1562 lane session, read off the Playwright trace) — the PRODUCT quarantined C correctly; the screen never learned of it. One product defect, one harness gap.The box did everything right. Journal: first attempt rolled back by the guard at
07:42:13(attempt=1); "Retry now" pressed → C re-landed07:43:05, self-swap07:43:15, guard restore07:43:26, anda swapped control plane failed to BOOT twice — … the release is now quarantined … attempt=2. Retry-by-hand, the second bounded outage, and the ADR 0067 quarantine all worked live.Product defect — "Retry now" always answers with an error when the release carries a control-plane binary. Trace, network:
07:43:05 POST /api/v1/updates/rollout/updates-c/retry-by-hand → 502.RetryByHandruns the staged rollout SYNCHRONOUSLY inside the HTTP handler (internal/controlapi/updates.go:~154-158), and since ADR 0259 the gateway stage ENDS by restarting the process serving that request — so the POST dies with the restart on every self-swapping release, success or failure alike.RolledBackScreen.onRetrythen takes its error branch (if (error.value) return;— noretriedemit, no re-read): the operator is told the retry failed on a button that worked, and the screen sits on the stale "attempt 1 of 2 · Retry now" card. The trace shows no further/api/v1/updates*GET for the remaining 18 minutes. Fix shape: the endpoint starts the retry and returns202(or the UI treats a dropped connection on this call as "started" and goes to U3 polling); the surface must re-read across the restart the way U3 already does for a windowed rollout. Same audit forend-earlyand any other synchronous act that can cross a self-swap.Harness gap (same stretch): after
retryByHandthe leg callswaitForScreen(…, "rolled-back")— but the STALE attempt-1 U4x is already on screen, so it returns at once (07:43:08, 18 s before the quarantine landed), does its onerefreshUpdates, and then waits on a locator with no polling. It should poll-with-refresh until the view is attempt 2 / carriesquarantined-note. Also:[data-field="quarantined-<rev>"]exists only on U1 (UpdatesScreen.vue:127); on U4x the quarantine shows asquarantined-note. So the leg must either assertquarantined-noteon U4x, or press "Back to updates" and then assert the U1 row — as written it could not pass even with fresh data. (Last pre-quarantine reads, for the record:/updatesquarantined=[],/updates/rolloutattempt 1.)Small copy bug seen on the same card: the failure line reads "
's control plane service failed its health check…" — the node name is EMPTY in the boot-failure path (RecordBootFailurecomposes the result without a failing node), and the wording says "failed its health check" wherebootFailedCheckmeans "did not start".rehearsal healer: drive
20260920T070007Zred atrolled-back(sig d4b0dc7b8ac9) self-fixed — commit1ab409f30fc3d1a5cb009880eab1c9f42af48826(3 files changed, 158 insertions(+), 4 deletions(-)); checks: Targeted:pnpm --filter app exec vitest run tests/e2e/fixtures/updatesDrive.test.ts— RED first withapp/tests/e2e/fixtures/updatesDrive.tsstashed (5 failed | 20 passed, 25), GREEN after (25 passed). Wider offline suitepnpm --filter app exec vitest run tests/e2e/fixtures/— 33 files, 578 passed (578).pnpm --filter app exec vue-tsc -p tsconfig.json --noEmit— clean.pnpm exec eslinton all three touched files — clean.pnpm exec prettier --checkon all three — clean. No box query and no door-leg re-prove: noartifacts/live-box.jsonwas handed over (the droplet was torn down) and this is not a roles-proof door leg; the box's own verdict was read fromlogs/guest-control-plane.log:195— "a swapped control plane failed to BOOT twice — the previous fleet software was restored out-of-process and the release is now quarantined (ADR 0259 / #1639) revision=updates-c attempt=2".. The session also named a residual fault — it is being filed and will block the drive.drive
20260920T070007ZRED — now blocked by: #1657 (evidence on each). The drive re-fires when the last blocker closes.Diagnosis for run
20260920T083206Zat12adef99(from the #1562 lane session; trace + guest journal) —rolled-backGREEN for the first time;refused-artifactred on a PRODUCT hang, not a harness timing.New live proofs:
rolled-backgreen in 319 s with TWO measured closed-door windows,apex 502 9.1seach (one per failed attempt, both inside Bens 60 s bound); "Retry now" → second boot failure → guard restore →quarantined(/api/v1/updatesends withquarantined:["updates-c"]). The DDR 0262 policy door worked too: the leg re-opened the window from the standing screen (POST /api/v1/updates/policy → 204` at 09:11:35).The red. D (control-panel artifact tampered by one appended byte) was picked up correctly —
automatic:["updates-d"], rolloutstarted_at 09:15:12.84Z, stagesseed: done,land: current— and then never moved again. The panel was served the byte-identical rollout view (6b24c119…) on every 20 s poll from 09:15:18 to the last read at 09:29:46: not refused, not failed, not rolled back. On the box: the control plane logged zero lines between 09:14 and the 09:29 harvest, andguest-resourcesshows it alive at 0.0 % CPU (pid 6884, started 09:10). A process silently parked in the land stage.**Most likely cause (not proven from the harvest — the feed server
s access log is not in the run dir):** the land stages download has no deadline.internal/update/land.go:107-110—NewHTTPArtifactFetcher(nil)falls back tohttp.DefaultClient, which has no timeout, and the rollouts context carries none either, so any stalled body read (here: over the guests slirp hop to10.0.2.2:8091, right after the file was rewritten under the server) blocks the rollout forever. B and C landed through the same path in seconds on this very run, so it is not a dead route.Why this matters beyond the drive: a stuck land stage is worse than a failed one. It holds the rollout checkpoint, so — by ADR 0259 rule 4 — every operator deploy is refused with "an update is being applied" for as long as it hangs, and nothing ever counts an attempt, refuses, or quarantines. On a real community a half-open connection to get.idss.nz at 02:10 would wedge the fleet until someone restarts the unit.
Fix shape: (1) give the artifact fetch a real budget — a client with a response-header timeout plus a stall-bounded body read (the same lesson as the pull rail
scurl --speed-limit/--speed-time, GOTCHAS #255; a flat total timeout sized for metadata will bite a 25 MB binary on a slow line); a fetch that exceeds it is a transport fault → the attempt FAILS loudly and is counted. (2) Log the land stage: one line per artifact (start, bytes, verified/refused) — fifteen silent minutes is what made this unreadable. (3) Harvest the updates feed servers.server.loginto the runslogs/` so the next red can tell "never asked" from "asked and stalled". (4) Consider a whole-rollout watchdog so no stage can hold the ADR 0259 deploy-refusal indefinitely.rehearsal healer: drive
20260920T083206Zred atrefused-artifact(sig b46830aa93ad) fast-lane self-fixed — commit840e8bfbf637130b1308475ab2d25a49236356edfiled and closed #1659 through the close-report gate; checks: Targeted:go test ./internal/update/ -run 'TestRolloutState_RefusedIsOnTheWireForU3x|TestRolloutState_AppliedCarriesNoRefusedFlag'— RED first against the unfixed view, the absence proven by the compiler itself (internal/update/rolloutview_test.go:289:8: v.Refused undefined (type update.RolloutView has no field or method Refused), build failed); GREEN after: 2 passed, the first readingrefused: trueout of the marshalled JSON beside itsrefusalevidence, the second proving an applied run still omits the key. Package tests:go test ./internal/update/ ./internal/controlapi/— both ok (0.015s / 0.839s).go vet ./internal/update/ ./internal/controlapi/— clean.gofmt -l internal/update/— clean. Panel side unchanged but re-run to prove no drift the other way:pnpm --filter dashboard exec vitest run tests/unit/updatesRefused.test.ts tests/unit/rollout.test.ts tests/unit/updatesLive.test.ts— 3 files, 44 passed (44). No box query and no door-leg re-prove: noartifacts/live-box.jsonwas handed over (the guest was torn down;logs/guest-failed-units.logrecorded 0 failed units andNRestarts=2withResult=success), and this is not a roles-proof door leg.. The drive stays armed; the next tick re-drives.CORRECTION to my comment 51549 — the "land-stage hang" diagnosis was WRONG. The healer
s reading (840e8bfb`, #1659) is the right one.I read
.refusedoff the rollout view, gotnull, and concluded the rollout never ended. The same JSON I had in hand carries the whole refusal:refusal: {check: "fingerprint-mismatch", artifact_role: "control-panel", signed_sha256: d2f5fa55…, received_sha256: 47312b36…, attempt: 1, at: 09:15:13.809Z}andrefused_at. The gateway downloaded D, caught the tampered control panel one second after the rollout started, and refused it — exactly as designed. The control plane was idle at 0 % CPU because it was FINISHED, not parked. What was missing was only the boolean the panel keys on (refused), soUpdatesSurfacedrew U3 over an ended rollout — the healer`s fix.So: no product hang, no evidence of a stalled download. Please disregard the "wedges every deploy" consequence I drew — it does not follow from this run.
What survives from that comment, as hardening rather than a finding:
NewHTTPArtifactFetcher(nil)does fall back tohttp.DefaultClientwith no timeout (internal/update/land.go:107-110), and the land stage logs nothing on a refusal (a refusal that leaves no journal line is what let me misread it). Both are worth a small ticket; neither blocks #1614. I will file it as such, not as a drive blocker.Diagnosis for run
20260920T093955Zat840e8bfb(from the #1562 lane session — whole responses read this time). Six legs green, includingrefused-artifactfor the first time; red atrefused-list.Proven live this run:
rolled-backgreen again (outages 9.1 s + 12.1 s; the fixed "Retry now" #1658 used live);refused-artifactgreen — D refused onfingerprint-mismatch, second refusal through the DDR 0262 policy door,/updates/rolloutendsrefused:true, quarantined:true, refusal.attempt:2, U3x photographed.refused-list: the PRODUCT refused the tampered list correctly; the panel could not show it.10:33:09 WARN update poll failed … matou channel "testing": signature is not valid base64 — refusing (ADR 0100), again at 10:38 and 10:43./api/v1/updatescarrieschannel_refused: {check: "list-signature", channel: "testing", feed_url: …, first_refused_at: 10:33:09, last_checked_at: …}, advancing each tick. Nothing it claims is shown; the fleet stays onupdates-b.[data-status="refused"]— Ds retained, QUARANTINED U3x — for the whole budget. InUpdatesSurface.vuethe channel-refused frame renders only whenview === "refused-list"(:37), and the only thing that sets that view is the standing refused rowsopen-refusalon U1 (UpdatesScreen.vue:36). But a retained refusal holds the surface ahead of U1 andreturnedToUpdatesresets on every mount — so after ANY refused or rolled-back release, a channel whose whole release list stops verifying is invisible unless the operator first thinks to press "Back to updates".Two separable things:
s quarantined screen by its own "Back to updates" door, then open U1s standing refused row (data-action="open-refusal") — the path the flow draws (U1 → the standing refused row opens the same frame).Harness nit:
updates_feed_tamper_feedrotates the base64 signature by one character, which moves the=padding into the middle — so the gateway refuses on "not valid base64" and never reaches Ed25519 verification. The leg is named for a signature that does not VERIFY; rotate only the unpadded body (or flip one character) so the refusal it proves is the cryptographic one.rehearsal healer: drive
20260920T093955Zred atrefused-list(sig ddf30ce2feca) self-fixed — commitb55917dce7a3f2982636714641f0ad55c0dd52e1(3 files changed, 130 insertions(+), 5 deletions(-)); checks: Targeted:pnpm --filter app exec vitest run tests/e2e/fixtures/updatesDrive.test.ts— RED first against the unfixed fixture (4 failed | 27 passed, 31), the waitForScreen case reproducing the drive's own gate string verbatim (leg refused-list was waiting on the channel-refused screen) with zero door-presses recorded; GREEN after: 31 passed (31). Wider offline suitepnpm --filter app exec vitest run tests/e2e/fixtures/— 33 files, 584 passed (584).pnpm --filter app exec vue-tsc -p tsconfig.json --noEmit— clean.pnpm exec eslinton all three touched files — clean.pnpm exec prettier --checkon all three — clean. No box query and no door-leg re-prove: noartifacts/live-box.jsonwas handed over (the guest was torn down;logs/guest-failed-units.logrecorded 0 failed units), and this is not a roles-proof door leg. The box's own verdict was read from the harvested log:logs/guest-control-plane.log:198-200, three polls running —matou channel "testing": signature is not valid base64 — refusing (ADR 0100): illegal base64 data at input byte 85— so the product raised the refusal on time and only the harness could not look at it.. The drive stays armed; the next tick re-drives.Run
20260920T105438Zatb55917dc(from the #1562 lane session) — NINE of ten legs green.refused-listandreplaygreen for the first time; red at the very last leg,real-rail, on a harness path.Green: founding-prefix, operator-session, updates-open, applied, rolled-back (outages 9.1 s + 12.1 s), refused-artifact, refused-list, replay.
The red is before anything touches the product: the leg SSHes into the guest and runs
cd "${IDSS_CONFIG_REPO:-/var/lib/idss/config}"; idss-control-plane set-release-channel gateway <testing feed> <testing key>(journey.updates.spec.ts:588) →bash: cd: /var/lib/idss/config: No such file or directory.Two things wrong with that line:
s config checkout is **/srv/idss/config**, not/var/lib/idss/config— it is the path the control-plane units own start script exports (internal/clan/vmguest.go:if [ -d /srv/idss/config ]; then export IDSS_CONFIG_REPO=/srv/idss/config). A bare SSH session has noIDSS_CONFIG_REPO, so the fallback is what runs.cdis not what the subcommand reads anyway:set_release_channel.go:47takes the repo from the environment (os.Getenv("IDSS_CONFIG_REPO")) and refuses loud without it. So the line mustexport IDSS_CONFIG_REPO=/srv/idss/config(and carry whatever else the units start script exports that the re-render needs —HOME=/root,SOPS_AGE_KEY_FILE— see the unit script), not just change directory. Also confirm the binarys name/path on the guest (/srv/idss/bin/control-planeis where the lander puts it; isidss-control-planeon root`s PATH?).Why it matters past the drive: this leg is the rehearsal of #1569 — the exact act Ben will run on Whakatōhea Demo.
docs/architecture/11-update-supply-chain.md:~136-146says only "with IDSS_CONFIG_REPO pointing at the gateway`s checkout"; once this leg is green, copy its working invocation (real path, real env, real binary) into that runbook so the kept community is not where we find the next missing export.rehearsal healer: drive
20260920T105438Zred atreal-rail(sig 844ba04b38b5) self-fixed — commit9538cb2171118174c592dc5dc0df9b3be7c3d9bb(3 files changed, 99 insertions(+), 6 deletions(-)); checks: Targeted:pnpm --filter app exec vitest run tests/e2e/fixtures/updatesJourney.test.ts— RED first against the unfixed command (5 failed | 15 passed, 20), including the spec-source case proving the leg still carried the hand-rolled/var/lib/idss/configtwin; GREEN after: 20 passed (20). Wider offline suitepnpm --filter app exec vitest run tests/e2e/fixtures/— 33 files, 589 passed (589).pnpm --filter app exec vue-tsc -p tsconfig.json --noEmit— clean.pnpm exec eslinton all three touched files — clean.pnpm exec prettier --checkon all three — clean after a--writeon the test file. No box query and no door-leg re-prove: noartifacts/live-box.jsonwas handed over (logs/qemu.logrecordsexit 1 … ps -C qemu-system-x86_64with no process — the VM-mode guest was torn down), and this is not a roles-proof door leg. The box's own verdict was read from the harvested logs instead:logs/guest-control-plane.log:57names the config repo verbatim — "config repo wired: single-writer config store + clan deploy runner … dir=/srv/idss/config" — and:183shows the release source still wired to the drive-local feedhttp://10.0.2.2:8091/channel/testing.json.. The session also named a residual fault — it is being filed and will block the drive.drive
20260920T105438ZRED — now blocked by: #1661 (evidence on each). The drive re-fires when the last blocker closes.Run
20260920T123207Zat039b0c35(from the #1562 lane session) — nine legs green again;real-railred INSIDE the new--apply, one step further than last run.What worked, live, on the box: the command ran with the right env (
IDSS_CONFIG_REPO=/srv/idss/config IDSS_STATE_DIR=/var/lib/idss /srv/idss/bin/control-plane set-release-channel --apply gateway <testing feed> <testing key>), the fence passed (fleet idle), the pin committed, and the failure was loud and safe —switching the gateways own closure in place failed — the control plane was NOT restarted (the pin is committed but not live)`. Exactly the fail-loud ordering #1661 promised.The red:
clan machines update gateway: exit status 1 — error: flake "git+file:///srv/idss/config" does not provide attribute "devShells.x86_64-linux.default" ….channel_apply.go:112hand-rollsexec "nix" "develop" "--command" "clan" "machines" "update" …in the config repo.nix developneeds a devShell, and a COMMUNITY config flake has none — the dev shell lives in the idss source repo, which is why the same line works inrehearsal-standing-lib.sh:322(run from the drive HOST`s checkout) and cannot work on a gateway.Fix — use the seam the product already has, do not invent a second way to find clan: the gateway
s own deploy runner never usesnix develop.internal/clan/cli.goToolClanresolves "the dev-shellclanwhen one is on PATH, elsenix runof the community flakes clan-core pin (PinnedClanRef, ADR 0125 — clan is never a second bare-PATH tool)".--applyshould drive its switch through that same runner —Invocation{Tool: ToolClan, Args: ["machines","update",node,"--build-host","localhost","--target-host","localhost","--host-key-check","none"], Dir: configRepo}— with the env the control-plane units start script exports for it (HOME=/root,SOPS_AGE_KEY_FILE=/var/lib/sops-nix/key.txt, the unitspath: bash git nix openssh — a bare SSH session has none of these; seeinternal/clan/vmguest.go~:780-850). The seam test should assert the switch goes throughToolClan, so a hand-rolled argv cannot come back.Note for the runbook (#1569): the same applies on Whakatōhea Demo — a rented gateway`s config repo has no devShell either.
rehearsal healer: drive
20260920T123207Zred atreal-rail(sig 844ba04b38b5) fast-lane self-fixed — commit2f368486cbe7343fd6982daa1a2685f994efabb7filed and closed #1663 through the close-report gate; checks: Targeted:go test ./control-plane/cmd/control-plane/ -run 'TestRunSetReleaseChannel|TestExecChannelApply' -v— RED first against the unfixed code, the absence proven by the compiler (set_release_channel_test.go:140:60: unknown field cli in struct literal of type execChannelApply;176:54: too many arguments in call to e.SwitchClosure — have (context.Context, string, string), want (context.Context, string); build failed). GREEN after: 11 passed, including the recording-CLI case proving the invocation is the pinned clan atgit+file://<dir>?rev=abc123with no dev shell anywhere in it. Package tests:go test ./control-plane/cmd/control-plane/ ./internal/clan/— both ok (26.239s / 20.275s).go build ./control-plane/...— clean.go vet ./control-plane/cmd/control-plane/— clean.gofmt -l control-plane/cmd/control-plane/— clean. golangci-lint is not on PATH on this workstation, so the errcheck gate (#1662) was not re-run here; the new code returns every error it produces and adds no writes to an io.Writer.. The drive stays armed; the next tick re-drives.drive
20260920T134755ZRED — now blocked by: #1664 (evidence on each). The drive re-fires when the last blocker closes.Run
20260920T134755Zat2f368486(from the #1562 lane session) — nine green a third time;real-railone step further again.The healer
s fix worked: the switch now goes through the pinned-clan seam, clan ran, and it named the closure it was switching to (dd2be426…). It failed — loud and safe again, control plane NOT restarted — on the next missing piece of the units environment:clan: missing_var on gateway … Failed to get the data key required to decrypt the SOPS file … SOPS_AGE_KEY_FILE …This is the second half of what comment 51622 flagged. The control-plane UNIT runs clan with an environment its start script builds (
internal/clan/vmguest.go~:823-850):export HOME=/root,if [ -f /var/lib/sops-nix/key.txt ]; then export SOPS_AGE_KEY_FILE=/var/lib/sops-nix/key.txt; fi("the deploy runners clan CLI operates sops AS THE MACHINE", drive 20260810T044843Z), git identity for vars commits, and the unitspath(bash git nix openssh).--applyruns from a bare root SSH shell, which has none of it.Fix shape —
--applymust build that environment ITSELF, not ask the caller to: the operator on Whakatōhea Demo will type one command in an SSH session exactly like this leg does; a runbook that says "and also export these four things" is the missing-export trap again. Factor the unit scripts exports into one Go helper (or have the render emit them to a sourced env file, e.g./etc/idss/control-plane.env) that BOTH the unit and--applyuse, so they cannot drift — and let the seam test assert--applys clan invocation carriesSOPS_AGE_KEY_FILEandHOME. Worth doing in one pass rather than one export per drive: diff the unit scripts full export list against what--applysets.set-release-channel --applyneeds eight env exports the operator must know by heart — it should build the gateway's clan environment itself (#1569's runbook step) #1665Run
20260920T150807Zat5134fbb3(from the #1562 lane session; whole responses read) — THE REAL RAIL WORKED. The red is the leg asserting the wrong screen.What the box did:
set-release-channel --applywent all the way through (fence → pin → switch → restart → read-back), and the throwaway gateway then took a REAL release offhttps://get.idss.nz/channel/testing.json, verified against the realtestingkey:/api/v1/updates/rollout:revision 2f368486cbe7…,title "testing · 2f368486cbe7",started_at 16:14:25,applied_at 16:14:35,applied:true,healthy:true, converged 1/1, stagesseed: done,gateway: done./api/v1/updates:current: {channel:"testing", revision:"2f368486cbe7…", converged:1, total:1}, nochannel_refused, nothing pending.2f368486is a realmaincommit the publish rail cut — the first time a gateway has updated itself from the public rail end to end.Why it red: the leg waits for the U4 applied screen (
[data-field="what-happened"]); the surface showed U1 with the fleet on2f368486. That is DDR 0261 rule 2 doing what it says:quarantined: ["updates-c","updates-d"]is still standing from the earlier legs, and a quarantined release outranks a retained applied view, so the visit lands on U1. Product correct; the leg`s expectation predates DDR 0261.Fix (harness):
real-railshould assert the OUTCOME, not the screen — U1s fleet revision equals the real rails served revision (it already read it: "fleet on2f368486…"), and the applied run is in the update history / the rollout read saysapplied && healthyfor that revision. Do not clear the quarantined rows to force U4.rehearsal healer: drive
20260920T150807Zred atreal-rail(sig 844ba04b38b5) self-fixed — commit2372505deaf6abd1e519f4e5fa9b25c37d4effc8(3 files changed, 193 insertions(+), 2 deletions(-)); checks: Targeted:pnpm --filter app exec vitest run tests/e2e/fixtures/updatesDrive.test.ts— RED first against the unfixed source (5 failed | 32 passed, 37), including the case redding through the drive's own gate string verbatim and the spec-source pin that the leg still waited onwaitForScreen(dash!, 'applied', 'real-rail'; GREEN after: 37 passed (37). Wider offline suitepnpm --filter app exec vitest run tests/e2e/fixtures/— 33 files, 595 passed (595).pnpm --filter app exec vue-tsc -p tsconfig.json --noEmit— clean.pnpm exec eslinton all three touched files — clean.pnpm exec prettier --checkon all three — clean after a--writeon the test file. No box query and no door-leg re-prove: noartifacts/live-box.jsonwas handed over (the droplet was torn down;logs/guest-failed-units.logrecords 0 failed units,logs/qemu.logno process), and this is not a roles-proof door leg. The box's own verdict was read from the harvested logs instead —logs/guest-control-plane.log:120wires the feed tohttps://get.idss.nz/channel/testing.json,:187-193verify all three artifacts, land them, self-swap the control plane, and:193recordsupdate resumed across a control-plane restart and converged revision=2f368486cbe7343fd6982daa1a2685f994efabb7at 16:14:35 — and confirmed againstartifacts/legs/real-rail-dash.png, which showschannel: testing,REVISION testing · 2f368486… — all 1 nodes converged, and the two QUARANTINED rows (C and D) that suppress U4.. The drive stays armed; the next tick re-drives.drive
20260920T171007ZGREEN end to end — 9/9 legs green — evidence (legs.json, durations, trace, host facts) intest-results/private-path/20260920T171007Z/on the executor host; a representative screenshot is attached here if one was captured (#596). Closing per the standing instructions: the local-guest journey passes, #183 is ready to be boring.Reopening for one more fire (Ben ruled option B): #1675 (
62c31d95) makes this drive found the production way — stamped payload, no founding-release override — and assert U1x rests on the stamped revision. Thetestingpin on founding stays held until this run is green.preflight PARK (host-local refusal, exit 3) on elitebook-distributed-server-03 — no drive ran, nothing was filed, and #1614 is blocked on nothing:
the payload's control-plane binary at /home/swarm/swarm/rehearsal-payload carries no founding-release stamp (fleetwire.Release unstamped) — a stamped-A founding proves the product path, a test override proves nothing (#1675). Build the payload through scripts/assemble-payload.sh so oc_release_ldflags stamps HEAD onto it (#1674).This does not heal itself: a preflight park creates no run dir, so neither the healer nor the reporter ever sees it (#918). The executor backs off for ~30 min (#1035) and then retries; until a session or a human clears the refusal the lane reads "blocked by nothing" while nothing drives. Executor log on elitebook-distributed-server-03.
Preflight park diagnosed + fixed (
ce1a72a3). The #1675 guard was right: the standing payload was unstamped — and always would be.scripts/rehearsal-cycle.sh's per-fire "refreshing the payload's tree-built artifacts" step rebuilt$IDSS_PAYLOAD_DIR/control-planewith a barego build, a third build site #1674 did not reach. It now builds throughoc_release_ldflagsat HEAD (pinned inrehearsal-local-updates-target-test.sh, red without the fix; round-trip read-back checked by hand). Nothing to do on the host — the next fire after the 30-min preflight backoff syncs main and stamps the payload itself.preflight PARK (host-local refusal, exit 3) on elitebook-distributed-server-03 — no drive ran, nothing was filed, and #1614 is blocked on nothing:
the payload's control-plane binary at /home/swarm/swarm/rehearsal-payload carries no founding-release stamp (fleetwire.Release unstamped) — a stamped-A founding proves the product path, a test override proves nothing (#1675). Build the payload through scripts/assemble-payload.sh so oc_release_ldflags stamps HEAD onto it (#1674).This does not heal itself: a preflight park creates no run dir, so neither the healer nor the reporter ever sees it (#918). The executor backs off for ~30 min (#1035) and then retries; until a session or a human clears the refusal the lane reads "blocked by nothing" while nothing drives. Executor log on elitebook-distributed-server-03.
Second preflight park (04:52Z) — expected to clear by itself, no new defect. That fire was the one that PULLED
ce1a72a3(Updating 62c31d95..56445548,scripts/rehearsal-cycle.sh | 8 +-) — mid-run. The running bash keeps the pre-pull script (git replaces the file; the open inode is the old one), so its payload refresh was still the barego build: the binary it left has no-ldflagsbuild setting and the revision only asvcs.revision. The next fire starts from the new script and stamps. (Checked and ruled out: go 1.26 dropping-ldflagsfrom buildinfo — it records it, same as 1.25.) Hardening worth a ticket later: the cycle re-execs itself when its own sync changesrehearsal-cycle.sh.rehearsal healer: drive
20260921T053406Zred atreal-rail(sig 844ba04b38b5) self-fixed — commitc91520ae38441eafc08fea54fc311af3ece63844(3 files changed, 60 insertions(+), 7 deletions(-)); checks: Targeted:pnpm --filter app exec vitest run tests/e2e/fixtures/updatesJourney.test.ts— RED first against the unfixed spec (1 failed | 21 passed, 22), the spec-source pinguestExec(live, realRailLandStep(), REAL_RAIL_APPLY_BUDGET_MS)absent at updatesJourney.test.ts:342; GREEN after: 22 passed (22). Wider offline suitepnpm --filter app exec vitest run tests/e2e/fixtures/— 33 files, 640 passed (640).pnpm --filter app exec vue-tsc -p tsconfig.json --noEmit— clean.pnpm exec eslinton all three touched files — clean.pnpm exec prettier --checkon all three — clean after a--write. No box query and no door-leg re-prove: noartifacts/live-box.jsonwas handed over (logs/qemu.logrecordsexit 1 … ps -C qemu-system-x86_64with no process — the guest was torn down), and real-rail is not a roles-proof door leg. The box's own words were read from the harvested journals instead:logs/guest-system-journal.log:7027(session accepted 06:34:07),:7055"Connection closed by 10.0.2.2 port 60322" at 06:34:37,:7067-7072switch-to-configuration at 06:34:42-43, andlogs/guest-control-plane.log:189at 06:34:46 "release source wired: the fleet receives updates on the one signed Matou channel … feed=https://get.idss.nz/channel/testing.json" — where:119at 06:09:03 still readfeed=http://10.0.2.2:8091/channel/testing.json.. The drive stays armed; the next tick re-drives.drive
20260921T064206ZGREEN end to end — 9/9 legs green — evidence (legs.json, durations, trace, host facts) intest-results/private-path/20260921T064206Z/on the executor host; a representative screenshot is attached here if one was captured (#596). Closing per the standing instructions: the local-guest journey passes, #183 is ready to be boring.idss-idp— an IDIP community updates its control plane and runs its founding-day sign-in bridge forever #1689idss-idp— an IDIP community updates its control plane and runs its founding-day sign-in bridge forever #1689idss-idp— an IDIP community updates its control plane and runs its founding-day sign-in bridge forever #1689