finish: hand-off/journey-fault locator misses deploy-failed, so a real fault hangs 900s #503
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.
Blocks
Reference
Matou/idss#503
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?
Failure
The
finishleg reds at the fullFINISH_BUDGETceiling:(
artifacts/legs.json:{"leg":"finish","status":"red","ms":900056})But the app is not hung — it is showing the correct fault screen.
test-failed-1.pnganderror-context.md's accessibility snapshot (captured at the 900s timeout) show:artifacts/journey.jsonis{"rows": null, "fault": null}— the harvest found nothing either, for the same reason below.Root cause (harness layer, actionable)
This screen is a different, deliberately distinct state from
journey-fault. Per ADR 0127, a mid-deploy worker fault (journey-fault, retriable by re-driving stand-up) and a deploy-outcome failure (S11 per-mode recovery: resume/reinstall/rescue-boot) are separate branches. The rescue-boot panel isFoundingDeployOutcome.vue, rendered withdata-status="deploy-failed"(notjourney-fault), and both standup parents guard it as the sibling of the fault frame:<FoundingDeployOutcome v-if="!standup?.fault" ... />(FoundingStandupOwnVPS.vue / FoundingStandupPrivate.vue).[data-status="journey-fault"]and[data-status="deploy-failed"]never coexist in the DOM.journey.droplet.spec.ts:270-272only raceshand-offagainstjourney-fault:so a genuine
deploy-failedoutcome is invisible to this assertion and the test burns the entire 900000ms budget instead of reding in seconds — exactly what the test's own comment at spec line 264 says should happen ("a faulted finish reds in seconds, not at the 15m ceiling").readJourney()/readFault()(tests/e2e/fixtures/journey.ts) likewise only read the folded progress bar and[data-field="fault-line"], neither of which this frame sets (it uses[data-field="failure-headline"]/[data-field="no-rollback"]instead) — hence the null/null harvest.What triggered the underlying deploy failure (infra layer, not swarm-actionable without droplet access)
The deploy itself genuinely failed at
public-entry.logs/founding-state.log(standup.deploy.failure):logs/droplet-journal.txtshows why: acme-dns bound its UDP DNS listener but its HTTP API (127.0.0.1:8081) never came up — no further log line from that process ever again:Caddy never started (requires/afters
acme-dns-register.service), so the public-entry door probe never got an answer across its own ~600s budget.logs/healer-claude.outshows an automated healer already ran on this exact directory: it fixed an unrelated leg-ordering bug (public-entry false-greening, commite18c853) and left aresidualnote on this same acme-dns/TLS failure withconfident:false— droplet/DNS timing, not a code defect in this checkout.Suspected layer
journey.droplet.spec.ts's finish-leg locator doesn't cover[data-status="deploy-failed"], so a legitimate S11 deploy-outcome fault is indistinguishable from a hang and costs the full 15-minute budget.0bfb054's territory; GOTCHAS.md has no entry yet for thejourney-faultvsdeploy-failedlocator-vocabulary split despite ADR 0160 requiring it.What plugging it needs
Extend the finish-leg assertion to also treat
[data-status="deploy-failed"]as a terminal (expected-red) outcome alongsidejourney-fault— e.g.handOff.or(faultFrame).or(live.page.locator('[data-status="deploy-failed"]'))plus reading[data-field="failure-headline"]/[data-field="no-rollback"]for the failure detail — so a real deploy failure reds in seconds. Separately, add thejourney-fault/deploy-faileddistinction todocs/GOTCHAS.mdper ADR 0160. This is not the known pairing/carrier frontier — pairing and every deploy row beforefinishare green inartifacts/legs.json.drive
20260813T025903Zred atfinish: `[Nmexpect([Nm[Nmlocator[Nm[Nm).[NmtoBeVisible[Nm([Nm[Nm)[Nm failedLocator: locator('[data-status="hand-off"]').or(locator('[data-status="journey-fault"]'))
Expected: visible
Timeout: Nms
Error: element(s) not found
Call log:
[Nm - Expect "toBeVisible" with timeout Nms[Nm
[Nm - waiting for locator('[data-status="hand-off"]').or(locator('[data-status="journey-fault"]'))[Nm
evidence:test-results/…/20260813T025903Z/` on matou-workstation (legs.json, droplet-journal.txt, trace)swarm-claim host=matou-dev-server-01 run=5548
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #503 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope