deploy-archive: the archive reconciler's readiness gate polls a PROXY verb fail-open — module:enable went "ready" three seconds before Omeka's installer created the admin user, so the key mint died on User not found and starved archive-brand #1320
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1320
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
20260908T105026Z(drive 8, #1277, on409b233e): 5 legs green, red atdeploy-archive—masked_exit, the remote switch dead at exit 4 (artifacts/legs.json,artifacts/verdict.jsonfirstRedLeg: deploy-archive).Two archive-port units failed inside the switch:
Both units succeeded on the clean-retry switch a minute later (
Finished …11:19:32 and 11:19:35,logs/guest-system-journal.log:298-306). That is the tell: nothing was misconfigured — the first switch was simply too early.Evidence
internal/clan/archive.go:559-590— the #1254 readiness gate polls the reconciler's OWN first verb,module:enable LocalContexts, as a proxy for the erseco image's asynchronous first-boot install.internal/clan/archive.go:580-585— it classifies with a keep-waiting DENYLIST (not installed,doesn't exist or not readable,Failed to initialize,no container with name or ID,no such container) plus a*)catch-all that promotes everything else toready=1; break. Fail-open.logs/guest-omeka-container.log— the entrypoint downloads LocalContexts only after the install finishes:Installing Omeka S via CLI...11:18:22 →Installation completed.11:18:28 →Processing LocalContexts...11:18:28 →Module 'LocalContexts' successfully installed.11:18:33.logs/guest-omeka-reconcile.log— the poll's execs: 11:18:18, 11:18:21 (both classified keep-waiting,sleep 3), then 11:18:25 → catch-all → ready, and the mint at 11:18:26 →User not found. The gate broke out 3 s beforeInstallation completed.and 8 s before the module existed.internal/clan/archive.go:598(pre-fix) — the mint was one bare exec underset -e, inheriting the proxy poll's verdict with no gate of its own.internal/clan/archive.go:684-695—archive-brand's 30×2 s store wait then ran out on a key that was never minted and exited 1. A consequence, not a second defect.The defect
Two compounding faults in one gate. (1) The classification is a denylist with a fail-open default, so the first unanticipated upstream string is read as ready — mid-install
module:enablefails because the module directory is absent, not because the install is unfinished, and that string was never listed. (2) The gate protects the wrong operation:module:enable's readiness and the mint's readiness are two different facts about the same install, and the mint's real precondition is that the installer has created the admin user it mints as.Suspected layer
The declarative render of the archive port's post-start reconciler —
renderOmekaReconcileininternal/clan/archive.go. Not the harness, not the health check, not the brand carrier.The repair
The
module:enablepoll is left untouched (it remains its own leg's gate). The MINT now rides its own bounded retry on the same 100×3 s = 300 s ceiling, treating the CLI'sUser not found— and podman's rc-125 transient (GOTCHAS #177) — as install-not-ready, and every other failure as terminal. stderr is captured to its own file so$outstays pure stdout for jq. Loudness is unchanged: at the ceiling the unit still exits non-zero naming the CLI's last words (ADR 0100), so a genuinely broken install still reds the deploy. GOTCHAS #193.Proposed ruling (Ruled by the healer under ADR 0174 — veto anytime)
Two-way door, and a mechanical repair rather than a design decision. It changes nothing about what the archive port MEANS to do — the reconciler already meant to mint the admin API key only after the first-boot install had created the admin user; that is the whole stated purpose of the #1254 gate it sits behind (
internal/clan/archive.go:559-569). The commit makes the code do what it already meant by waiting on the mint's own precondition instead of a proxy verb's fail-open verdict. No new default, no changed message at a trust moment, no route shape, no secrets shape, no security posture: the minted key, its label, its store path, its two-line format and its single-live-key idempotency are all byte-identical, and the unit's loud-at-the-ceiling contract (ADR 0100) is preserved verbatim — only the message now also names the CLI's stdout/stderr. Revertible bygit revert dd2dc672alone: the change is confined to one render function's shell body plus its test and a GOTCHAS entry, with no state, schema, secret or on-box artifact that a revert would strand — a reverted box simply returns to the pre-fix race. Proven here byTestRenderArchive_MintRidesItsOwnReadinessGate(internal/clan/archive_test.go:484-529), written red-first: it failed atarchive_test.go:507before the edit and passes after, pinning that the mint sits inside its own bounded retry rendered after the module:enable ceiling, thatUser not foundand the rc-125 transient are keep-waiting, that jq still parses pure stdout, and that the ceiling still fails loud. The nine existingTestRenderArchive_Reconciler*assertions — including the #1254 gate, the #1213 loudness and idempotency contracts and the #1255 --json parse — are unmodified and still pass, so the fix is additive to what the suite already proves. Built on the workstation (never the drive host) and closed through the close-report gate — the same gate a swarm worker passes.drive
20260908T105026Zred atdeploy-archive(sig 5401f695e3a1) — self-fixed on the fast lane, commita948f6ed5589e23da8e4681984415d26c2297dd1; checks: targeted (red-first):go test ./internal/clan/ -run TestRenderArchive_MintRidesItsOwnReadinessGate→ FAIL before the fix (archive_test.go:507: the key mint must run inside its OWN bounded retry loop, not one bare exec trusting the fail-open module:enable poll (#1277 drive-8)), PASS after. package:go test ./internal/clan/→ ok (18.009s), allTestRenderArchive_*pass including the nine pre-existingReconciler*gates. trees:go test ./internal/...→ no failures;go test ./control-plane/...→ no failures. nix syntax on the rendered artifact: dumpedRenderArchive(sampleArchive())and rannix-instantiate --parse→ NIX PARSE OK (the new shell block does not break the Nix indented string).go build ./...→ clean;gofmt -l internal/clan/→ clean;go vet ./internal/clan/→ clean. Commit shape: 3 files, 39 changed non-test lines (internal/clan/archive.go29/2,docs/GOTCHAS.md8/0), one commit, not pushed; rails self-check →internal/clan/archive_test.gois additions only (47/0), zero removed lines, no removed or edited assertion/expectation, no removed test or leg declaration, no added skip.. evidence:/home/swarm/swarm/Matou/idss/test-results/private-path/20260908T105026Zon matou-workstation.close-report for #1320 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
surveys-healthyred for the full 360s warm-up: LimeSurvey ships its RemoteControl JSON-RPC interface OFF, and OFF answers an empty HTTP 200 — the port's own health gate can never open a session #1321