rehearsal drive red at deploy-takeover #627
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
Reference
Matou/idss#627
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?
(headless diagnosis unparseable — raw stdout saved to logs/reporter-claude.out)
drive
20260821T013253Zred atdeploy-takeover:the gateway deploy failed — The gateway deploy failed. [There is no old operating system to roll back to — this machine was taken over for the community.]evidence:
test-results/…/20260821T013253Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)Head-start (evidence
test-results/drive-selfhosted/20260821T013253Z, onaa9de31b, pind2c56b6) — first selfhosted drive ever pastports-honestANDpoint(9/10 green). The deploy red is real but its LABEL is a false positive; the real error is hidden.meshdone,public-entrydone,control-planefailed at stageenroll-configure, right after "takeover-ready node config committed". No kexec/disko ever happened — this is the eval/preflight phase, not the wipe.clan: missing_var on gateway: "a required secret has not been generated"withdetailconsisting only of two clan-CLI command-trace lines:internal/clan/errors.go:218-231classifiesFailMissingVarwhen the output merelyContains("sops")(alongside the precise"couldn't find var"/"missing var"matches). The clan CLI echoes$ clan select …?sops…as its own subprocess trace on many failure paths, so that bare-"sops"clause turns any failure that gets that far into "missing secret". The excerpt kept only those trace lines; the actual error line(s) that followed were dropped.Two things to do, in order:
claninvocation against the founding's clan repo forgateway). Suspects given the day's history: rebrand fallout in the generated clan config (ce9f96drenamedourcloud-*units/paths/modulegit.matou.nz/Matou/idss) — the last GREEN deploy on any path wasdrive-droplet 20260815T055256Z, pre-rebrand; or the pinned clan CLI rejecting the?-optional selectors (cf. GOTCHAS #40 on pinned-CLI drift).errors.go): drop the bare"sops"and"vars generate"substrings (or require them outside$-prefixed trace lines) so a missing var is claimed only on clan's real phrases; and make the excerpt keep the lines after the trace, not just the trace — otherwise every future deploy red in this phase will be mislabelled the same way. Add a test with this exact two-line excerpt expecting NOTFailMissingVar.DDR 0188 and the #622/#624/#625 spec retimings are all proven by this drive —
ports-honestrecorded dropped → reachable → name wired → deploying with no hands.Duplicate of #626 (filed 5 min earlier by the #625 session from the prior drive's evidence; the session-runner has already picked #626). Work + close there; this stays as #523's blocker link until #626 closes — whoever closes #626 please close this too (or re-drive: a green at
deploy-takeovercloses both by evidence).Ruled by agent under ADR 0174 — veto anytime.
Diagnosis: this drive's evidence is the same defect #626 already fixed — it is not a new bug.
test-results/drive-selfhosted/20260821T013253Z/state/founding-state.json(
standup.deploy.failure.detail) on matou-workstation:This is byte-for-byte the same
missing_varexcerpt #626 diagnosed and fixed(self-hosted founding never called
SeedCommunity/EnsureOperatorbeforeEnroll, so a fresh self-hosted config repo stayed bare andgateway's sopsvars could never resolve). The
[There is no old operating system to roll back to…]line in this ticket's title isdeploy.go's generic full-installfailure footer (any control-plane deploy failure gets it) — it names no new
failure mode.
Timeline proves this drive predates the fix, not that the fix failed:
2026-08-21T01:34:06Z–2026-08-21T01:34:31Z(artifacts/verdict.json).25c9cb5eat2026-08-21T01:48:59Z— ~15 minutesafter this drive finished.
aa9de31b, landed01:30:53Z, before thisdrive started) — consistent with it clearing
ports-honest/pointandreaching
deploy-takeoverfor the first time, exactly as #626 predicted.Current state:
25c9cb5eis onmainnow.composeSelfHostedGateway(
internal/founding/selfhostedpath.go:168-171) callsSeedCommunity+Secrets().EnsureOperatorbeforeEnroll; regression testTestSelfHosted_SeedsTheCommunityFlakeAndBootstrapsTheOperatorBeforeComposingpasses (
go test ./internal/founding/...green on this checkout).No new code change needed for this ticket — closing as superseded by #626's
fix rather than leaving a stale duplicate open. Live re-proof of the fix is
already tracked as outstanding on #626/STATUS.md (next unattended
selfhostedrehearsal drive); this ticket doesn't need its own copy of thattracking.
Advances #626.