real-rail — healer loop-guard: a prior heal did not hold #1664
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#1664
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?
A prior drive healed this exact fault (
real-rail:: same normalised error) and it has redded again. Per rail 6 (no heal loops), the healer refused a second heal and filed this blocker so the drive stops re-firing into it.Healer refused: loop-guard rule — diagnose why the prior heal did not hold before re-arming.
ticket-on-refusal under the healer-first regime (#1144)
drive
20260920T134755Zred 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/20260920T134755Zon 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: my reading of this red, and the fix shape I would ask for (build the unit
s whole clan environment inside--apply` from ONE shared source, in one pass — not one export per drive), is on #1614 comment 51647.Close-report — diagnosed and re-armed (not a heal loop). Ruled by agent under ADR 0174 — veto anytime.
Why the prior heal "did not hold": it did. The loop-guard fired on a symptom-level signature (
844ba04b38b5=real-rail :: the guest refused the re-tune), which collapses three distinct root causes into one string. Each prior heal held — its own bug never recurred — and uncovered the next layer of the same land-step (peeled onion, not a loop):9538cb21) — the land-stepcd'd to a config repo the guest never had and called the systemd unit as a binary.2f368486) —--applyhand-rolled anix developthe gateway's own flake can never provide, so nix refused before clan ran.20260920T134755Z) — with clan finally running through the real adapter, the deploy reached the sops decrypt and had no age key:Root cause of this layer (same shape as heal 1's finding).
--apply'sSwitchClosuredrives the same clan deploy adapter the control-plane unit's own runner does (clan.New(OpenConfigRepo(configDir), ExecCLI{}, log),channel_apply.go), andExecCLIbases the clan subprocess env onos.Environ()(internal/clan/cli.go). So the one-shot must run in the same environment the unit's start script sets (internal/clan/vmguest.go:854-867). Heal 1 ported only two of those exports to the SSH wire (IDSS_CONFIG_REPO,IDSS_STATE_DIR); the clan deploy runner also needsHOME=/root(its key store,:854), the machine'sSOPS_AGE_KEY_FILE=/var/lib/sops-nix/key.txt(to decrypt its vars,:860), and root's git identity (vars-generate commits,:864-865). Heals 1 and 2 hid this because the deploy never reached the decrypt.Fix (
5134fbb3).realRailLandStep()now carries the full deploy environment the unit's script gives its own clan runner. Seam test (app/tests/e2e/fixtures/updatesJourney.test.ts) proves the wire red→green; all 591 fixture tests pass. The full QEMU drive is the live proof and runs next on matou-workstation via the runner.Two-way door. No new key material and no posture change: the gateway's sops-nix age key is already a recipient of every gateway var — I only ported the machine's own key path onto the wire. Revertible commit, proven by an existing seam test. Advances #1569.
Re-armed: the next real-rail drive can proceed. Closing this loop-guard blocker.
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) #1665