wizard-rent: DigitalOcean droplet-create action errors asynchronously, stranding S4a rent in provision — DigitalOcean refused: Not Found #682
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#682
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
journey.rented.spec.ts(s4aRent,tests/e2e/journey.rented.spec.ts:158-181, the assertion atjourney.rented.spec.ts:173) times out waiting for[data-status="address"]. The S4a card instead shows arent-errorstate with fault-line:Reproduced identically across 3 consecutive rehearsal drives today (2026-08-22, runs
20260822T181240Z,20260822T185236Z,20260822T192646Z— seetest-results/drive-rented/<run>/artifacts/journey.rented-.../error-context.mdin each). A 4th, earlier run (20260822T175941Z) failed on a different, now-fixed bug (terms-copy regex, commitd607c8f5), so this signature has been consistently red since ~18:12 UTC.Evidence trail
The error text is the raw, unwrapped
*doRefusal.Error()string (broker/internal/broker/provider_do.go:326-328), surfaced throughProvisionError{Stage:"provision"}atbroker/internal/broker/rentals.go:199, rendered byinternal/founding/access.go:174-179("{stage} — {message}"). That shape only occurs on an immediate DO API refusal — notpollActive's timeout path (provider_do.go:272-275), which always prepends "never became reachable in time" / "did not become active", neither of which appears in the captured DOM text.I cross-referenced DigitalOcean's own
/v2/actionslog (using theDIGITALOCEAN_ACCESS_TOKENpresent on this executor) against each drive's timing. For the20260822T192646Zrun, exactly two droplets were created ~30s apart (the deliberaterehearsal-rentfailhonesty leg, then the real rent leg the test asserts on):Both
createactions show DO's own async provisioning ending instatus:"errored"— this is DigitalOcean's platform failing the request after accepting it (200/202 + assigned id), not a bad payload rejected synchronously.GET /v2/droplets/594384942now permanently 404s ({"id":"not_found",...}) — the exact body text in the fault-line — because DO tore the resource down once its own create action errored.Ruled out (account/config is healthy)
Direct DO API checks against the live account:
LatestImageID(provider_do.go:89-116) correctly resolves the newestidss-gateway-*snapshot (idss-gateway-6a1b0cb9b811, id242227844), confirmedstatus:"available", region["syd1"],min_disk_size:80exactly matching sizes-2vcpu-4gb'sdisk:80(boundary, but DO accepts>=normally and this combo is unchanged across all 3 gateway snapshots today).ensureSSHKey(provider_do.go:192-224) works — the rent-operator's fingerprint (a0:22:a2:ff:...) is registered on the account, confirming the 422-dedup path functions.droplet_limit:15, only 5 non-rehearsal droplets active;status:"active"; noidss-gateway-*droplets leaked (all cleanly destroyed).Suspected layer
Genuine DigitalOcean-side provisioning failure — most likely an account-level rate/abuse-review threshold tripped by the cumulative droplet-creation velocity from this DO account today (2 gateway-image rebuild builds + repeated rehearsal drives, each creating 1–2 droplets), given the onset lines up with the second
gateway-image-rebuild.logadvance (17:59:31Z) and every drive since has hit it on both of its creates. This is infra state outside the repo checkout (the DO account itself, not anything in this checkout) — no line in this repo is confirmed defective, and there's no local test that exercises live DO infra to verify a fix.What plugging it needs
Someone with DO account/ops access needs to check the account's dashboard/support notices for a flagged-activity or manual-review banner on new droplet creates, and possibly throttle/space out how many gateway droplets the rehearsal drives create per hour, or move the drive to a different (verified/business) DO account or team. If DO confirms it's transient, the drive should simply be re-fired once clear.
drive
20260822T192646Zred atwizard-rent:expect(locator).toBeVisible() failed Locator: locator('[data-status="address"]') Expected: visible Timeout: 480000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 480000msevidence:
test-results/…/20260822T192646Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)Why human
Ruled ready-for-human under ADR 0174 — this is a one-way door, not a
two-way one: no line in this repo is defective (confirmed below), so there is
no revertible commit/config change to make, and no local test/drive/probe can
prove a fix because the fault is DigitalOcean account-side state that the API
does not expose. What's needed is Ben's eyes on the DO web dashboard
(account/billing notices, flagged-activity or manual-review banners — none of
which surface via the API token this session holds) plus, if DO confirms an
account-level throttle, an account/spend decision (throttle rehearsal
droplet cadence, or move the drive to a different DO account/team) — both
listed one-way-door categories (personal/account access only Ben holds;
non-routine spend).
Independently re-verified live, 2026-08-22T20:02Z (this session, same
DIGITALOCEAN_ACCESS_TOKENthe ticket's evidence trail used):GET /v2/account:status:"active",status_message:"",droplet_limit:15— API-visible account state is clean, which is itself consistent with the
suspected-layer theory: an abuse/manual-review hold would not necessarily
show here, only in the web dashboard or an account email.
GET /v2/actions(last 20): everycreate dropletaction since2026-08-22T18:00:00Zisstatus:"errored"(6 consecutive, latest19:27:30Z, action id3362399327) — zero successes since the17:52:36Zgateway-image-rebuild create. The signature is still live rightnow, not resolved by any auto-recovery.
GET /v2/actions/3362399327(the latest errored create): no error-detailfield beyond
status:"errored"— DO's actions API does not surface areason, confirming the ticket's own conclusion that this can't be root-caused
further from the API alone.
GET /v2/droplets: 5 active droplets, well under the 15 limit; regionsyd1and sizes-2vcpu-4gbboth still reportavailable:truein theerrored action's own region payload — ruling out a capacity/availability
explanation.
No new droplet-create probe was attempted here: it would add cost without new
diagnostic value — the account-state and action-history evidence above already
confirms the ticket's read is still accurate, and a 7th errored create tells us
nothing a dashboard check wouldn't answer directly.
This ticket was routed
ready-for-sessionbecause earlier wizard-rentcommits today (#673, #675, #677, #679) each fixed a real, distinct code-side
bug that shared the same symptom (S4a rent stalling) — this signature is the
first of the four where the evidence rules out a code fix entirely. Its
remainder is pure DO-account investigation, which is out of session standing,
so it routes to
ready-for-human.Ruled by agent under ADR 0174 — veto anytime.
Ruling: relabelled
ready-for-session→ready-for-human. This is aone-way door (
## Why humanadded to the issue body), not a two-way one —independently re-verified the DO account/action state live just now
(2026-08-22T20:02Z, same
DIGITALOCEAN_ACCESS_TOKEN) and it matches theticket's evidence trail exactly:
GET /v2/accountis API-clean (status: "active", nostatus_message), butGET /v2/actionsshows 6 consecutivecreate dropletactions erroring since18:00:00Zwith zero successes sincethe
17:52:36Zgateway-image-rebuild create, and the errored action detailcarries no reason field beyond
status:"errored". Droplet count (5/15),region
syd1, and sizes-2vcpu-4gbare all healthy/available, ruling outcapacity. No repo line is defective, no commit/config change is revertible
here, and no local test/drive/probe can prove a fix — the fault is DO
account-side state (suspected abuse/rate review) only visible from the DO web
dashboard or support, which needs Ben's eyes and possibly a spend/account
decision.
Did not fire an 8th droplet-create probe — the account/action-history
evidence already confirms the signature is still live; another errored create
adds cost with no new diagnostic value.
No commit lands from this session (nothing in the repo needed changing), so
STATUS.mdis untouched.Phase-4 session — correction to the suspected layer (evidence from the same DO action log, 2026-08-23 02:15Z). The account is not under an abuse/rate hold. Splitting today's
create dropletactions by source image:59435572416:20,59435728016:34,59435909216:47,59436946617:52)idss-gateway-*snapshot (rent/rentfail droplets59436303117:09,59436800017:39,59437028018:00,594372835/…90018:13,594379223/…29418:53,594384880/…94219:27)A stock-image create succeeded at 17:52 between failed snapshot creates, and no create from any of the three
idss-gateway-*snapshots has ever completed — including the very first at 17:09 (drive 3's "transient 404", #672, was almost certainly this same errored create, not read-after-write lag). So the fault is specific to creating a droplet from our snapshot, i.e. DO's restore/provisioning of a nixos-anywhere-installed disk (hybridbios_grub+ ESP + ext4 root,nix/gateway-image/disko.nix). Note the only other golden snapshot on the account (clan-lab-golden-20260709-0003, 28.8 GiB, min-disk 160) is an Ubuntu snapshot — the "clan-lab build-golden" precedent in ADR 0189 never covered a NixOS/disko disk, so this is an untested assumption failing, not a regression.Human step that pins it (Ben): create one droplet from
idss-gateway-6a1b0cb9b811(id242227844,syd1,s-2vcpu-4gb) in the DO web dashboard — the dashboard/activity view shows the failure reason the API hides (status:"errored"only). Delete it after. If the reason is "unsupported image/partition layout" (the likely one), ADR 0189 ruling 2 needs a design amendment — candidates: (a) DO custom image upload (doctl compute image create --image-urlof a NixOS qcow2 withservices.cloud-initfor key injection) instead of a droplet snapshot; (b) broker rents a stock droplet and runs the nixos-anywhere takeover itself (slow, ~8 min, moves heavy lifting into the broker); (c) MBR/BIOS-only single-root disko layout if DO's snapshot restore simply wants root on partition 1. That is a Ben design gate (ADR 0047/0189), soready-for-humanstands — but for a different reason than the body says. Also: #681 (capture the broker log in the drive harness) would not have changed this diagnosis; the DO action log was the decisive source.Root-caused, fixed on main, closing (Ben in the loop for the spike).
Cause: DigitalOcean's snapshot provisioning treats GPT partition 1 as the root filesystem; the gateway image carried the takeover numbering (
bios_grub=1,ESP=2,root=3), so DO tried to resize a 1 MB grub stub and destroyed every droplet before first boot — 8/8 creates errored, a dashboard create too, no reason exposed. Not an account hold (stock-image creates completed throughout), not a transient 404 (#672's poll retry was fixing a symptom).Spike:
988c726renumbers only — root = 1 (priority/explicitstart/end), bios_grub = 2, ESP = 3; labels, sizes, filesystems, physical order unchanged. Ben builtidss-gateway-988c726b10e2and created from it in the dashboard: survives, DO grew root to the full 80 G, injected the create's key,idss-agentactive (probe170.64.209.92).Landed on main (
56cf880, mergedf8bfec): durable rationale innix/gateway-image/disko.nix; drift guardgateway_image_disko_test.gonow compares partition FACTS (type/size/filesystem/mountpoint), not verbatim lines — the takeover layout (renderDisko) keeps clan-core's numbering, own-VPS/self-hosted untouched (negative-tested: ext4→xfs drift is caught); ADR 0189 amendment 2026-08-23 (ruling 2 stands + partition-1 constraint; custom-image upload / broker-side takeover remain fallbacks); GOTCHAS #57; STATUS lead.Next: #652 re-fires on elitebook-03.
56cf880touchesinternal/, so the #656 gate will call the spike snapshot stale and the executor rebuilds from main (~10 min) before driving — expected, and it re-proves the build loop on the new layout. #681 (capture the broker log) stays open as the nice-to-have it is.