rent-fails-clean: raw DO 404 leaks through as rent-error, masking the intended /provision/i fault #672
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.
Reference
Matou/idss#672
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
Leg
rent-fails-clean(the honesty leg for DDR 0190's rented-gateway path) went RED on the message-pattern assertion, not on the "stayed at S4" assertion:(
artifacts/legs.json,artifacts/journey.rented-rented-gate-014d4--on-a-broker-rented-droplet/error-context.md)The test's own comment states the intended behaviour precisely (
tests/e2e/journey.rented.spec.ts:179-184, captured in the error-context test-source excerpt):The "draft untouched" half of that contract held —
state/founding-state.jsonstill shows"founded": false, "draft": {"step": "access", ...}with the per-drive slugrehearsal-rentfail-20260822t170850zcorrectly stamped (confirming #671's per-drive slug fix is working as intended and did not itself cause this red). Only the message-pattern half failed: the card surfaced DigitalOcean's raw create/poll error instead of the broker's labeledprovision-stage rehearsal fault.Evidence considered and found empty/absent
artifacts/journey.json—{"rows": null, "fault": null}: founding never reached, consistent with the failure happening during S4a rent, before any guest boot.logs/guest-*.log,logs/qemu.log— all empty or host-side "no such device" errors: no guest VM was ever involved (this is the rented-droplet path, and the droplet in question was destroyed before or during provisioning).logs/droplet-journal.txtis present in this run directory, and no "Live droplet" section was supplied to this task — falling back to the harvested logs above per instructions; nothing in them speaks to the droplet's own systemd state since it never got that far.Corroborating evidence — an automated healer already ran on this failure
logs/healer-claude.out(from a separate~/rehearsal-heal/idssworktree, invoked against this same run) recorded a specific root-cause diagnosis and a candidate fix, commit510090a370c0891cdf49b287bb762e0ddc8016da— not present in this repo's history (current HEAD is09fcf2b;git cat-file -t 510090a...fails here), so treat it as an unlanded candidate, not a confirmed fix:This diagnostic session's sandbox only has access to the run directory, not
broker/internal/broker/*.go, so the file:line claims above are reported as corroboration rather than independently re-verified against source — but they line up exactly with the observed symptom (a bare DO "Not Found" message in place of theprovision-stage rehearsal fault), and the healer claims a reproducing regression test (TestDO_CreateRetriesTransientPollNotFound, 7/7internal/broker/...passing, fullgo test ./...green).The healer also flagged a related but distinct residual:
BrokerError.Error()(internal/founding/access.go:169) discards the broker'sStagefield, so even a correctly-surfaced fault only passes the/provision/iassertion by coincidence (the literal fault string happens to contain "provision"); any other provision-stage failure whose message doesn't contain that word would fail the same honesty check for the same underlying reason. That's a separate, lower-severity gap (the stage never reaching the UI) and is not what turned this specific run red.Suspected layer
Product (broker), not harness or infra:
pollActive's poll-loop inbroker/internal/broker/provider_do.gotreats a transient GET error during Create's poll as fatal rather than retrying it within the existing poll budget, so real DigitalOcean read-after-write lag races ahead of and masks the broker's own intentional rehearsal-fault injection. This is not the known own-VPS pairing-carrier frontier named in legs.json's skip reasons — that carrier issue doesn't apply here; this run only exercised the singlerent-fails-cleanleg.What plugging it needs
Land the retry-on-GET-error fix in
pollActive(the healer's unlanded510090a...describes it precisely and claims a passing regression test) inMatou/idssproper, then re-run this leg to confirm the rent-error text reverts to naming theprovisionstage. Separately, file theBrokerError/stage-propagation gap as its own follow-up (a design decision on howStagereaches the Vue card — not mechanical, per the healer's own note) rather than folding it into this fix.drive
20260822T170850Zred 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/…/20260822T170850Z/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=8906
(automated multi-host claim — lowest live claim id works this ticket)
Head-start from the phase-4 session — the healer's diagnosis checks out; please land it rather than re-labelling the message.
broker/internal/broker/provider_do.gopollActivereturns on the first GET error (if err != nil { return "", err }), and DO'sGET /v2/droplets/<id>can 404 for a moment right after aPOST /v2/droplets(read-after-write lag). So the create succeeded, the first poll 404'd,Createreturned the raw refusal, the rentals path destroyed the live droplet (good — DO shows no leak, I checked), and therehearsal-rentfailfault hook never ran. The healer's fix — retry GET errors inside the existingPollTries/PollIntervalbudget, the same way "not yet active" is retried — is the right shape. Its commit is510090a3in/home/swarm/rehearsal-heal/idsson elitebook-03 (not on origin); cherry-pick it (or re-derive it with a unit test inprovider_do_test.go: a scripted doer that 404s once then returnsactivemust yield the IP, and one that 404s for all tries must fail loud — ADR 0100, never a fabricated IP).Two things for the close-report:
ssh dev@100.98.48.68, build + install recipe in the #647 close-report). That is a hands step — the mail droplet's SSH door has been refusing connections since ~16:45Z today, so note it asready-for-humanresidue rather than claiming the drive will re-fire green.provision) in the S4a card — todayBrokerError.Error()rendersMessageonly, so even a correctly-labelled provision fault reads as a bare DO string. Worth a one-line fix (prefix the stage) if the worker is already in that file — but the retry is the real fix, not the label.close-report for #672 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
provision — DigitalOcean refused: Not Found#682provision — DigitalOcean refused: Not Found#682