rent-fails-clean: rent-error shows raw DigitalOcean 404 instead of stage="provision" message #674
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.
Reference
Matou/idss#674
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 only leg in this drive,
rent-fails-clean, went RED on the final content assertion (not the visibility one):The screenshot (
test-failed-1.png) confirms it: the rent card is still up, "Choose a different option" is visible, but the yellow callout body reads the raw DigitalOcean API JSON verbatim instead of aprovision-stage message.What the leg is supposed to prove
From the test source (
tests/e2e/journey.rented.spec.ts, harvested inerror-context.md, the comment aboves4aRentExpectFail):So the fault-injection contract is: real Create → broker deliberately Destroys the droplet → the next poll/GET against that droplet ID legitimately 404s at DigitalOcean → the broker is supposed to recognize that shape and synthesize a friendly 502 whose message names the
provisionstage. Instead the raw DigitalOcean 404 body ("Not Found": {"id":"not_found",...}) is forwarded straight through to the UI.Corroboration from harvested state
logs/founding-state.log:"founded": false,draft.step": "access"— the draft genuinely never advanced past S4, matching the test's own "draft untouched" assertions (those passed; only the message-content assertion failed). Rules out a harness/selector problem — the UI's control flow behaved correctly.logs/guest-*.logfiles are empty andlogs/qemu.log/guest-unit*.logshow no process/unit ever existed — expected, since the droplet was destroyed by design before any provisioning telemetry could exist. Not itself an anomaly.Suspected layer: product (broker)
This is not the known own-VPS pairing-never-flips carrier frontier — that fault isn't referenced anywhere in this run's
legs.json, which has exactly one leg and no skip entries. This looks like a gap in the same seam the last two commits touched:09fcf2b(#671) stamped the rent-fails-clean slug per-drive so a poisoned broker claim can't wedge the leg.b415707(#672) made brokerpollActiveretry a transient post-create droplet-GET 404 "instead of masking the rent-fails-clean fault."#672's own description implies the broker now distinguishes a transient post-create 404 (retry) from the fault-injected post-destroy 404 (which should surface as the synthesized
provision-stage 502). This run shows the fault-injected 404 case is falling through to the generic "broker: DigitalOcean refused: " error formatter rather than being mapped to the expectedstage: "provision"message — i.e. the retry-vs-synthesize branch added in #672 either isn't matching this 404 shape, or the synthesis step that should follow it was never wired up.What plugging it needs
In the broker's rent/provision error path (wherever the DigitalOcean 404 from the post-fault-Destroy poll is caught), add/fix the branch that recognizes "droplet no longer exists after a Create we ourselves issued" and raises the ADR-0047 502 with a message containing
provision, instead of letting the generic DigitalOcean-error passthrough formatter (broker: DigitalOcean refused: <raw JSON>) handle it. A swarm agent can act on this directly: locate the post-#672pollActive/ create-then-destroy fault path in the broker, confirm it currently falls into the raw-passthrough branch for this 404 shape, and route it to the existingprovision-stage error constructor instead.drive
20260822T173839Zred atrent-fails-clean:expect(locator).toContainText(expected) failed Locator: locator('[data-status="rent-error"]') Expected pattern: /provision/i Received string: "broker: DigitalOcean refused: Not Found: {\"id\":\"not_foevidence:
test-results/…/20260822T173839Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)swarm-claim host=matou-dev-server-01 run=8923
(automated multi-host claim — lowest live claim id works this ticket)
Already fixed by #673 (on
origin/main) — no new code changeTraced the full fault-line chain against
origin/main. Therent-fails-cleanred in drive20260822T173839Z(17:38:39Z) is a timing artifact, not a live code gap:6a1b0cb9, committed 17:40:36Z — 2 minutes after this drive) makesBrokerError.Error()compose the failure as"{stage} — {message}". Any create-path rent failure now opens the fault-line withprovision — …, so/provision/i(and the tightened/^\s*provision\s+—\s/i) match regardless of the raw DigitalOcean text.Stage: "provision"on every create-path failure since #647 (8585a954, 04:32Z) —rentals.go&ProvisionError{Stage: "provision", Err: createErr}and the rehearsal-fault return. So the app's#673prefix always has a stage to compose; no broker redeploy is even needed for the leg to go green.b4157077, 17:32Z) additionally stops a transient post-create read-after-write 404 from masking the fault (pollActiveretries within budget, never returns a raw refusal). The live broker binary carrying #672 was blocked on the mail-droplet SSH door (ready-for-human residue), but that only affects whether the underlying message is the rehearsal-fault text vs a wrapped DO error — theprovision —stage prefix from #673 makes the leg pass either way.Full chain, verified on
origin/main:broker provisionErrorBody{Stage:"provision"}→brokerclient.brokerErr→founding.BrokerError{Stage,Message}→Error()="provision — broker: DigitalOcean refused: Not Found: …"→ helperfail()Response.Error→founding.ts:1025 throw new Error(resp.error)→FoundingAccess.vue:294 rentError = e.message→<p data-field="fault-line">. Matches the anchored fixture assertion ins4aRentExpectFail.Seam tests (all green on
origin/main):TestBrokerError_ErrorCarriesStage,TestRent_ProviderFailureAfterCreateDestroysAndLeavesNoRecord(the #674 shape:CreatereturnsServer{ID}+error →Stage:"provision"+ destroy + no ledger record),TestRentFailHostIsDestroyedAndErrors,TestDO_CreateRetriesTransientPollNotFound,TestDO_CreateFailsLoudWhenPollNeverRecovers.The issue's speculated fix — a broker branch that synthesizes a
provisionmessage from the post-destroy 404 — is unnecessary and would contradict #672's accepted retry design: the stage is already set structurally and the app already surfaces it. The next rehearsal drive (rebuilt fromorigin/mainwith #673) will renderprovision — …and pass.Closing as already-resolved (no new code required). Signature
dcd9de7c3e06is shared with #671/#672/#673 — the same recurring leg, now closed in code.close-report for #674 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope