real-rail: pinning the channel is only HALF the land-step — the running control plane never re-reads it, so the re-tune cannot reach the fleet (#1569) #1661
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.
Reference
Matou/idss#1661
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?
The failure
Drive
20260920T105438Zredded atreal-railon a broken remote command line (healed in1f1cd66d). With that command repaired the leg will now runset-release-channelsuccessfully — and then still time out atwaitForScreen(dash!, 'applied', 'real-rail', ROLLOUT_BUDGET_MS)(app/tests/e2e/journey.updates.spec.ts:600), because pinning the channel does not put it into effect.The evidence
SetGatewayReleaseChannelwrites the feed/key pair into the gateway's render-inputs sidecar and re-renders the machine's surface —machines/gateway/gateway-guest.nixon this VM-mode drive (internal/clan/gateway_attach.go:567-596). It touches nothing that is running.export IDSS_RELEASE_FEED_URL=/export IDSS_RELEASE_PUBLIC_KEY=(internal/clan/vmguest.go:2043-2044).productionReleaseSource(control-plane/cmd/control-plane/main.go:1403-1417), wired intocomposeWholeatmain.go:1571. There is no re-read, no reload path.idss-control-planerestarts, the running process keeps the channel it booted with. This drive's guest journal shows exactly that, unchanged across all three starts:logs/guest-control-plane.log:21,102,183—release source wired … feed=http://10.0.2.2:8091/channel/testing.json.set-release-channel <node> <feed> <key>one-shot, then switches the closure in place withclan machines update… after which productionReleaseSource wires on the next control-plane start" (internal/clan/gateway_attach.go:555-559; the same sentence incontrol-plane/cmd/control-plane/set_release_channel.go:26-28). Itsrerender-gatewaysibling is driven with both halves inscripts/lib/rehearsal-standing-lib.sh:319-323.grep -n 'machines update' app/tests/matches nothing but a comment inrentedPrefix.ts:211— no harness path anywhere switches this guest's own closure.The suspected layer
Harness (the
real-railleg), with a product question attached. Two doors, and the second half is not obviously the harness's to pick:cd /srv/idss/config && nix develop --command clan machines update gateway --build-host localhost --target-host localhost --host-key-check noneon the guest, asrehearsal-standing-lib.sh:322-323does on a standing box. But the control-plane unit is deliberately held off its own switch (restartIfChanged = false, GOTCHAS #3, #86 — a box's self-deploy kills its own driver), so the switch alone will NOT restart the unit and the new exports still will not be read; an explicitsystemctl restart idss-control-planewould have to follow, on a box the drive is mid-journey on.Neither half is testable offline on this workstation, and door 1's restart-on-a-live-box step is the GOTCHAS #86 hazard, so this is handed back for a ruling rather than healed in-lane.
Cost if not ruled
The leg is the drive's LAST (
app/tests/e2e/fixtures/updatesJourney.ts:54), so it reds only after the full founding prefix and all six proof legs have run — this drive spent 62 minutes reaching it. Re-firing without this resolved buys a whole paid drive to rediscover it.drive
20260920T105438Zred atreal-rail:leg real-rail was waiting on set-release-channel to the public testing rail (#1569) — the Updates surface showed instead: the guest refused the re-tune: Command failed: ssh -o BatchMode=yes -o Stricevidence:
/home/swarm/swarm/Matou/idss/test-results/private-path/20260920T105438Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedFrom the #1562 lane session — recommendation put to Ben, awaiting his word (NOT yet a ruling).
Door 1, completed and wrapped — not door 2.
s trust root — the public key every release must verify against. A running control plane that hot-reloads its trust anchor from a file turns a file edit into a change of what the fleet trusts, with no deliberate act. ADR 0248 already says the pair is pinned into the gateways OWN closure; keep it there.restartIfChanged=falsestays exactly as it is.set-release-channel --apply= pin →clan machines update <node>→systemctl restart idss-control-plane→ read back and PRINT the feed the restarted control plane reports (release source wired … feed=), failing loud if it is not the one just pinned. It refuses to start while a rollout or deploy is in flight (ADR 0259 rules 3/4). Without--applyit behaves as today and prints the two remaining steps.real-rail, then proves the gateway takes a release off get.idss.nzstestingfeed. The mid-journey restart is fine: it is the last leg, and the leg can apply Bens ≤60 s bound to it.docs/architecture/11-update-supply-chain.md— it is what Ben runs on Whakatōhea Demo for #1569.If a session picks this up before Ben answers: this is a two-way door on the harness + CLI side (no posture change — the trust root stays in the closure), so building door 1 under ADR 0174 seems in bounds; door 2 is not.
Ruled DOOR 1 + BUILT — agent under ADR 0174 (veto anytime). Landed at
039b0c35, offline-proven; live proof rides #1614's next drive.The ruling. Door 1, not door 2 — adopting the recommendation the prior #1562-lane session put on this ticket, which explicitly sanctioned a session building door 1 under ADR 0174 before Ben answers ("this is a two-way door on the harness + CLI side — no posture change, the trust root stays in the closure"). Door 2 (a running control plane hot-reloading its release feed and pinned key from a mutable file) is rejected: the pair is the fleet's trust root, and ADR 0248 pins it into the gateway's OWN closure by design. This is a two-way door — revertible code/config, no security-posture widening (the trust root stays in the closure exactly as before), proven by the seam suite; live proof is the next drive.
On the #86 concern. It does not reach this restart. GOTCHAS #86's trap is the control plane restarting itself from inside its own switch (a cgroup child drives the switch). Here the switch is driven from the SSH shell, returns, and only THEN is the unit restarted — the exact shape ADR 0259 has proven live.
restartIfChanged=falsestays untouched.What landed. A new
set-release-channel --applyflag makes the documented land-step ONE command that drives both remaining halves itself, each gating the next:update.json+provision-deploy-runs.jsonunderIDSS_STATE_DIRWITHOUT writing them (new read-onlycontrolapi.AnyDeployInFlight, which skips the reconcile-and-rewrite the live store constructor does). An unreadable fence is a loud refusal, never a blind restart (ADR 0100).clan machines update <node> --build-host localhost --target-host localhost --host-key-check noneswitches it in place.systemctl restart --no-block idss-control-plane, then confirm the restarted process wired the feed just pinned — a mismatch fails loud (the re-tune did not take).Without
--applythe one-shot pins only (the first half) and prints the two remaining steps, so nothing restarts unexpectedly.Proof (offline). Red-first
TestRunSetReleaseChannelApply_*— FleetIdle→SwitchClosure→RestartControlPlane→WiredFeed in order; refuses (touching nothing) when not idle or when the fence is unreadable; fails loud on a wrong wired feed / failed switch / failed pin; bad args exit 2 before any step — plusTestRunSetReleaseChannel_PrintsTheTwoRemainingStepsWithoutApply. The live actions sit behind thechannelApplyseam so the fence + ordering + fail-loud are unit-proven with no live box.go build ./...,go vet, andgo test ./control-plane/cmd/control-plane/ ./internal/controlapi/ ./internal/update/ ./internal/clan/green.Harness.
realRailLandStep()now emitsset-release-channel --applywithIDSS_STATE_DIRfor the fence (app/tests/e2e/fixtures/updatesJourney.ts). Fixture vitest 20/20, vue-tsc + eslint + prettier clean.docs/architecture/11-update-supply-chain.md§"Landing the channel…" rewritten to the one--applycommand — the runbook step Ben runs on Whakatōhea Demo (advances #1569).What did NOT happen, honestly (rule 8). The real-rail leg going green is live-only and rides #1614's next drive — the shell-outs (
clan machines update,systemctl restart,journalctlread-back) and the restarted control plane wiringget.idss.nz/channel/testing.jsoncannot be exercised on this workstation. The seam guarantees the orchestration is correct; the drive proves the on-box halves. Founding'stestingpin stays HELD.Closing: the ticket's distinct deliverable (the ruling + the harness/CLI fix) is landed and offline-proven. If the next drive still reds at
real-rail, the healer files a fresh signal with the live evidence.fmt.Fprintfbanner writes in set_release_channel.go fail errcheck (#1661 regression, 039b0c35) #1662set-release-channel --applyland-step hand-rolled anix developclan the gateway's own flake can never provide #1663set-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) #1665