a failed deploy row persists no error detail — the fault forgets why (fail-loud gap at S11) #546
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#546
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?
Symptom
The 2026-08-14 cold-machine proof drive failed at the deploy checklist's control-plane row. Diagnosing after the fact was blind:
founding-state.jsonpersists only{"id":"control-plane","status":"failed"}— no error text, no output tail. The clan deploy's stderr streams to the UI as the running row'sDetailline, which is documented live-snapshot-only ("derived at publish time and never persisted",internal/founding/deploy.goDeployRow.Detail), and the helper's stderr is captured nowhere on disk. Once the operator navigates away (or takes the S11 recover path, which tears the VM down), the only evidence of WHY the deploy failed is gone.The deploy fault surface (ADR 0100 fail-loud) promises honest, diagnosable failure — a failed step with no persisted reason fails loud but forgets why.
Rule
When a deploy row transitions to
failed, persist the failure evidence in the step record: the final error line plus a bounded tail (say the last 50–100 lines) of the streamed tool output for that row. It should survive app restart and the recover path (it describes the PREVIOUS attempt), and the S11 fault callout should render it (or offer it as expandable detail) so the operator can paste something actionable.Proof
Force a deploy failure (e.g. unreachable guest mid-deploy); relaunch the app; the failed row's persisted record carries the error tail, and it survives choosing "delete and stand up again".
Found during the 2026-08-14 cold proof drive (#500 aftermath) — mesh + public-entry done, control-plane failed, and the cause was unrecoverable post-hoc.
Triage
Category: bug
State: ready-for-agent
Verification (before grilling): checked the claim against the code rather than taking it at face value. The report says persisted state is bare
{"id":...,"status":"failed"}with stderr captured nowhere — that's not quite right:DeployFailure.Detail(a grepped error-token excerpt of the clan CLI's combined stdout+stderr,internal/clan/errors.go) is computed and is persisted tofounding-state.jsonas part ofStandup.Deploy(internal/founding/store.go). So diagnostic text does reach disk today.FoundingDeployOutcome.vue(the S11 failure panel) never rendersfailure.detailanywhere — onlyfailure.headline,failure.noRollback, and the recovery option's own description text. The LOGGED drill-in dialog (FoundingStandup.vue) streams only a terse per-nodeSummary, not the excerpt.DeployRetryVMrecovery path (restandFromReview) setss.Standup = nil, which wipes the persistedFailure.Detailfor the attempt that just failed — so after that recovery choice, even the on-disk copy is gone.internal/clan/cli.goResult.Output) is discarded after classification — only ~8 error-token lines survive, short of the 50–100 line tail this issue asks for.Net: this is a rendering + retention gap, not a capture gap. The design contract already exists —
docs/ux/flows/p1-founding.mermaidanddocs/ux/wireframes/p1-founding/p1-s11-deploy-gateway.htmlboth spec a failed-deploy state with a LOGGED tag/dialog carrying the deploy log with Download — so this doesn't needneeds-design; the implementation just doesn't fully honor the contract yet. No.out-of-scope/entry matches, and it isn't already-implemented.This is a two-way door (revertible by commit, provable by test) with no host creds / live infra / design decision required, so routing
ready-for-agentrather thanready-for-humanorready-for-session.Agent Brief
Category: bug
Summary: A failed deploy step's diagnostic detail is computed and persisted but never reaches the operator, and the VM-retry recovery path destroys it — the S11 fault surface promises diagnosable failure but the operator can't see why.
Current behavior:
Desired behavior:
Key interfaces:
clanpackage's error/output classification) that currently produces a short grepped excerpt — widen what it captures/persists to a bounded line-count tail.DeployFailure's persisted detail field — already reachesfounding-state.json; make sure it (or a similarly-persisted previous-attempt record) is retained across the retry-VM recovery transition instead of being nulled out with the rest of the standup.FoundingDeployOutcome.vue(S11 failure panel) — render the persisted failure detail per the wireframe's LOGGED/Download treatment.Acceptance criteria:
Out of scope:
internal/clan/cli.go's combined capture is already fine as a source).swarm-claim host=matou-dev-server-01 run=6435
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #546 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope
sopstoken mislabels itmissing_varand eats the transport retry #1210sopstoken mislabels itmissing_varand eats the transport retry #1210