rent-fails-clean: DO 500 on image lookup pre-empts the provision-fault assertion #752
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.
Blocks
Reference
Matou/idss#752
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?
Leg:
rent-fails-clean(the only leg run this drive) — RED after 35863ms.What the leg expects (from
journey.rented.spec.ts:345,s4aRentExpectFail): the rehearsal fault slug should make the broker Create-then-Destroy the droplet and surface a retriablerent-errorwhose fault-line opens with theprovisionstage token (/^\s*provision\s+—\s/i), per ADR 0047 ("no half-rented server") / DDR 0190.What actually happened —
artifacts/legs.json:The same DO error persisted across all 64 polls of the 30s assertion window (
legs/rent-fails-clean.pngconfirms visually: provider DigitalOcean, regionsyd1, fault-lineimage — broker: DigitalOcean refused: Internal Server Error: {"error":"unable to process request, please try again"}, with a Retry button, i.e. the UI correctly labelled it retriable).The honesty half of the contract held:
state/founding-state.jsonshows the draft still parked at"step": "access"(S4), never advanced — the under-report guard the leg also checks did not fire.No droplet was ever created for this leg:
logs/guest-*.logandlogs/qemu.logall report "no SSH hostfwd ... the guest was never created, so there is nothing to ask" and noqemu-system-x86_64process — consistent with the real DO call failing before any Create.host.json's qemu ENOENT is unrelated noise (this host has no qemu binary at all; irrelevant to a rented-droplet leg). Nodroplet-journal.txtwas produced and no "Live droplet" section was supplied, so there is nothing live to SSH into — diagnosis rests on the harvested artifacts alone.Suspected layer: infra (DigitalOcean), surfaced through a harness/product ordering gap. The rehearsal-fault mechanism for
rent-fails-cleandepends on reaching the broker's synthetic Create-then-Destroy step to manufacture theprovision-stage error under test. Before that step runs, the broker does a real DigitalOcean call —LatestImageID's snapshot-list GET — to resolve the gateway image. That call itself got a genuine DO 500 ("unable to process request, please try again"), so the leg observed stageimage, a real broker error, instead of ever reaching the injectedprovisionfault.This is the exact call/signature the most recent commit on this repo targeted:
ca972a4— "LatestImageID's snapshot-list GET rides out a transient DO 5xx; a lone 500 no longer reds rent-fails-clean atimage" — yet this run reds at that same spot with that same message. Two live possibilities, both actionable: (1) DigitalOcean's snapshot-list endpoint had more than "a lone" 500 — a sustained outage onsyd1that outlasted whatever retry/backoff budget #751 gaveLatestImageID, or (2) that retry isn't actually being exercised on this code path/timing and the fix under-covers it. The 64-poll, unchanging error over the full 30s window argues for (1)-or-(2) rather than a single transient blip that got silently retried away.What plugging it needs: a swarm agent should (a) check DO's status/incident history for
syd1/ the snapshot-list endpoint around 2026-08-24T18:33–18:34Z to rule in/out a live outage, (b) inspect theLatestImageIDretry added in #751 — attempt count and backoff — and extend it if a single retry is insufficient for sustained 5xx runs, and (c) consider whetherrent-fails-clean's fault-injection should be decoupled from a real image lookup succeeding, so an unrelated DO hiccup can't pre-empt the specificprovision-stage assertion the leg exists to test.This is not the known own-VPS/pairing frontier (that names a skip reason in
legs.json's own-VPS carrier leg; this run has a single leg, no skips, and no pairing step was reached).drive
20260824T183333Zred atrent-fails-clean:expect(locator).toHaveText(expected) failed Locator: locator('[data-status="rent-error"] [data-field="fault-line"]') Expected pattern: /^\s*provision\s+—\s/i Received string: "image — broker: Digievidence:
test-results/…/20260824T183333Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)Steer from the #720 watch (ruled by agent under ADR 0174 — veto anytime): this is the THIRD DigitalOcean transient-5xx call-site in one evening — #749 (Destroy, 504), #751 (Create, 500), now the image lookup (500). DO's API is degraded tonight and each un-wrapped call-site costs a full drive + a ticket + a red streak reset on #720.
Rather than a third per-call patch, consider closing the CLASS: wrap the provider's DigitalOcean API surface in one shared bounded-retry policy (transient 5xx/429 → short exponential backoff, ~3 attempts, loud log line per retry; 4xx and permanent errors excluded so real refusals still fail fast — the #682 'errored create' lesson means a create that RETURNS but errors is NOT retried by this, only transport-level 5xx). #749's Destroy retry and #751's Create fix presumably already carry the pattern — lifting it to the provider boundary means the next flaky endpoint (snapshot list, tag ops, actions log…) never files #753.
swarm-claim host=elitebook-distributed-server-03 run=9806
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime
Root cause (confirmed from the harvested artifacts). Drive
20260824T183333Zred atrent-fails-cleanafter #751 (ca972a4) had already routedLatestImageID's snapshot-list GET throughdoRetryTransient. The call WAS wrapped — but the DO 500 (unable to process request, please try again) was sustained across all 64 polls of the 30s window, so it outlasted the fixed 3-attempt (≈10s) retry budget and still surfaced as animage-stage*ProvisionError, pre-empting the leg's own injectedprovision-stage fault. This is possibility (1) in the ticket: a sustained outage, not a lone blip. A fixed retry budget can never outlast an arbitrarily long outage.Fix (option (c) — decouple, not a bigger budget guess). In
Rentals.Rent, arehearsal-rentfailhost whose pre-create image lookup fails now surfaces aprovision-stage rehearsal fault (errRehearsalFaultNoLiveCreate) instead of the incidentalimage-stage error. No live create happens that drive, so nothing leaks (ADR 0047 holds vacuously); the leg still proves the retriable-provision+ untouched-draft surface it exists to test. Therehearsal-rentfailprefix is test-only, so this masks nothing for a real member —TestRent_ImageFailureOnRealHostStillSurfacesImageStagepins that a real host's image failure is still surfaced honestly atimage.Why this is a two-way door. Revertible by a later commit; changes only the
rehearsal-rentfailtest path; provable offline by a red→green rent-seam unit test (TestRentFailHost_ImageBlipStillSurfacesProvisionFault). Not on the one-way-door list — no credential, no security-posture widening, no member-facing trust accept, no data destruction, no spend.On Ben's steer (thank you). Consolidating the DO transient-5xx class into one provider-boundary retry policy is a good forward-looking refactor — but it would not have fixed this red: the image call was already wrapped, and the outage outlasted any fixed ~3-attempt budget. So I kept #752 to the focused decoupling that actually closes the red durably, and filed the class-closing consolidation as #753 (labelled
enhancement) so Ben's steer is tracked and not lost.Verified:
go test ./broker/internal/broker/PASS,go build ./...+go vet ./...clean undernix develop .#go-ci.close-report for #752 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
idss-rental-expires-tag on a LIVE rental once the broker actually deploys (#741's broker half is merged but not installed) #745