wizard-rent reds on raw DigitalOcean 404 during S4a rent-create (recurrence of #678) #680

Closed
opened 2026-08-22 19:10:54 +00:00 by matou-build-agent · 2 comments

Failing leg: wizard-rent (rented-gateway journey, tests/e2e/journey.rented.spec.ts:237 -> assertion at :173), red after 480525ms. rent-fails-clean (the fault-injection leg) stayed green.

What happened. S4a's rent card never advanced to [data-status="address"]; it had already settled on a terminal, unretried DigitalOcean refusal well before the 8-minute Playwright timeout expired -- the timeout is just how long the assertion polled uselessly after the UI was already stuck. From artifacts/journey.rented-rented-gate-014d4--on-a-broker-rented-droplet/error-context.md:

Error: expect(locator).toBeVisible() failed
Locator: locator('[data-status="address"]')
Expected: visible
Timeout: 480000ms
Error: element(s) not found

and the page snapshot at failure time:

paragraph: "provision -- broker: DigitalOcean refused: Not Found: {\"id\":\"not_found\",\"message\":\"The resource you were accessing could not be found.\"}"
button "Retry"

artifacts/journey.json confirms founding never got far enough to record rows ({"rows": null, "fault": null}), and every logs/guest-*.log is empty or a local-connection failure (e.g. guest-unit.log: "Failed to connect to user scope bus via local transport") -- consistent with no droplet ever having existed to harvest from, since the create call itself was refused.

Corroborating evidence already in this run directory. logs/healer-claude.out (the in-run rehearsal healer's own diagnosis, produced before this report) traces the same error-context line to a signature (3b0b824f61b8) STATUS.md already records from an earlier drive (20260822T181240Z). That drive produced two outcomes: #677, shipped, which added a bounded retry to ensureSSHKey's POST /v2/account/keys (safe to retry because the key fingerprint is computed locally, so a true duplicate always 422s); and #678, left open/needs-info, for the sibling gap -- DigitalOcean.Create's POST /v2/droplets (provider_do.go:139) is still unretried, because blindly retrying a droplet-create risks provisioning a second droplet if the first POST succeeded but its response was lost (an ADR 0047 no-half-rented violation from the other direction). #678 explicitly predicted this exact recurrence.

What this run cannot pin. There's no broker-process stdout/log captured anywhere under logs/ or artifacts/ in this run directory, so the d.do method/path/status line (added by #677) that would say whether this refusal hit the un-retried /v2/droplets POST or ensureSSHKey exhausting its now-3-retry budget on an unusually long blip is not available. No "Live droplet" section was supplied for this diagnosis and the box is not known to still be up, so this can't be checked live either -- this report rests entirely on the harvested artifacts.

Suspected layer. Infra-triggered (a transient DigitalOcean API refusal) surfaced through a product/broker gap: the droplet-create call path lacks the retry-with-safety-check that ensureSSHKey already got in #677. The harness itself behaved correctly -- Playwright waited the full configured timeout on a UI that had already reached a legitimate terminal error state, which is expected behavior, not a harness bug. This is not the known own-VPS pairing-never-flips frontier (no skip reasons are present in legs.json; both legs ran with skip: 0).

What plugging it needs. This is not a fresh mechanical fix -- the healer log records that it drafted the obvious "wrap /v2/droplets in the same retry as ensureSSHKey" patch, then reverted it on finding that this exact retry was already considered and deliberately rejected without an idempotency/existence-check guard. Closing this needs a design decision already scoped in #678: before retrying the create POST, list droplets by the idss-gateway/idss-rental tag and match the request's own generated name (or use a DO create-endpoint idempotency key, if one exists) to detect a landed-but-unacknowledged create. Separately, the drive harness should start capturing the broker process's stdout/log into the run directory -- its absence here is why this recurrence can't be pinned to a specific call site.

Recommend triaging as a duplicate/reinforcement of #678 rather than opening parallel work.

drive 20260822T185236Z red at wizard-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 480000ms
evidence: test-results/…/20260822T185236Z/ on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)

**Failing leg:** `wizard-rent` (rented-gateway journey, `tests/e2e/journey.rented.spec.ts:237` -> assertion at `:173`), red after 480525ms. `rent-fails-clean` (the fault-injection leg) stayed green. **What happened.** S4a's rent card never advanced to `[data-status="address"]`; it had already settled on a terminal, unretried DigitalOcean refusal well before the 8-minute Playwright timeout expired -- the timeout is just how long the assertion polled uselessly after the UI was already stuck. From `artifacts/journey.rented-rented-gate-014d4--on-a-broker-rented-droplet/error-context.md`: ``` Error: expect(locator).toBeVisible() failed Locator: locator('[data-status="address"]') Expected: visible Timeout: 480000ms Error: element(s) not found ``` and the page snapshot at failure time: ``` paragraph: "provision -- broker: DigitalOcean refused: Not Found: {\"id\":\"not_found\",\"message\":\"The resource you were accessing could not be found.\"}" button "Retry" ``` `artifacts/journey.json` confirms founding never got far enough to record rows (`{"rows": null, "fault": null}`), and every `logs/guest-*.log` is empty or a local-connection failure (e.g. `guest-unit.log`: "Failed to connect to user scope bus via local transport") -- consistent with no droplet ever having existed to harvest from, since the create call itself was refused. **Corroborating evidence already in this run directory.** `logs/healer-claude.out` (the in-run rehearsal healer's own diagnosis, produced before this report) traces the same error-context line to a signature (`3b0b824f61b8`) STATUS.md already records from an earlier drive (`20260822T181240Z`). That drive produced two outcomes: **#677**, shipped, which added a bounded retry to `ensureSSHKey`'s `POST /v2/account/keys` (safe to retry because the key fingerprint is computed locally, so a true duplicate always 422s); and **#678**, left open/`needs-info`, for the sibling gap -- `DigitalOcean.Create`'s `POST /v2/droplets` (`provider_do.go:139`) is still unretried, because blindly retrying a droplet-create risks provisioning a *second* droplet if the first POST succeeded but its response was lost (an ADR 0047 no-half-rented violation from the other direction). #678 explicitly predicted this exact recurrence. **What this run cannot pin.** There's no broker-process stdout/log captured anywhere under `logs/` or `artifacts/` in this run directory, so the `d.do` method/path/status line (added by #677) that would say whether *this* refusal hit the un-retried `/v2/droplets` POST or `ensureSSHKey` exhausting its now-3-retry budget on an unusually long blip is not available. No "Live droplet" section was supplied for this diagnosis and the box is not known to still be up, so this can't be checked live either -- this report rests entirely on the harvested artifacts. **Suspected layer.** Infra-triggered (a transient DigitalOcean API refusal) surfaced through a product/broker gap: the droplet-create call path lacks the retry-with-safety-check that `ensureSSHKey` already got in #677. The harness itself behaved correctly -- Playwright waited the full configured timeout on a UI that had already reached a legitimate terminal error state, which is expected behavior, not a harness bug. This is **not** the known own-VPS pairing-never-flips frontier (no skip reasons are present in `legs.json`; both legs ran with `skip: 0`). **What plugging it needs.** This is not a fresh mechanical fix -- the healer log records that it drafted the obvious "wrap `/v2/droplets` in the same retry as `ensureSSHKey`" patch, then reverted it on finding that this exact retry was already considered and deliberately rejected without an idempotency/existence-check guard. Closing this needs a design decision already scoped in #678: before retrying the create POST, list droplets by the `idss-gateway`/`idss-rental` tag and match the request's own generated name (or use a DO create-endpoint idempotency key, if one exists) to detect a landed-but-unacknowledged create. Separately, the drive harness should start capturing the broker process's stdout/log into the run directory -- its absence here is why this recurrence can't be pinned to a specific call site. Recommend triaging as a duplicate/reinforcement of #678 rather than opening parallel work. drive `20260822T185236Z` red at `wizard-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 480000ms ` evidence: `test-results/…/20260822T185236Z/` on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596) <!-- rehearsal-sig: 3b0b824f61b8 -->
Author
Member

Ruled by agent under ADR 0174 — veto anytime.

This ticket is its own filer's honest self-assessment: it reproduces
#678's exact fault-line (sig 3b0b824f61b8) and explicitly concludes "This
report rests entirely on the harvested artifacts" and "Recommend triaging
as a duplicate/reinforcement of #678 rather than opening parallel work." I
verified that against #678 directly:

  • #678 (open, needs-info) already tracks precisely this gap — the
    droplet-create POST /v2/droplets is deliberately left un-retried
    (blind retry risks a second real droplet, ADR 0047 no-half-rented) until
    a raw refusal's d.do method/path/status log (added by #677) pins it as
    the actual culprit rather than ensureSSHKey exhausting its own retry
    budget.
  • This recurrence does not supply that pinning evidence — no broker
    log reached the run directory (confirmed: logs/ in this run holds only
    empty/local-connection-failure guest logs, no broker output at all). So
    #678 stays exactly as scoped; there's nothing new to rule on the retry
    guard itself.
  • What IS new: the evidence gap has a name now. Filed #681
    (ready-for-session) for the drive harness to start harvesting the
    broker's journal into the run directory (same SSH-harvest shape already
    used for the droplet's own caddy log), and linked it as blocking #678 —
    closing #681 is what makes the next occurrence of this pinnable.

Why this is a two-way door: closing #680 as a duplicate is revertible
(reopen) and provable by direct comparison against #678's body/labels,
which I did above. No code changes, no infrastructure touched. Posting
this ruling and closing.

Closing this ticket. Nothing further to action here beyond what #678 and
#681 already track.

**Ruled by agent under ADR 0174 — veto anytime.** This ticket is its own filer's honest self-assessment: it reproduces #678's exact fault-line (sig `3b0b824f61b8`) and explicitly concludes "This report rests entirely on the harvested artifacts" and "Recommend triaging as a duplicate/reinforcement of #678 rather than opening parallel work." I verified that against #678 directly: - #678 (open, `needs-info`) already tracks precisely this gap — the droplet-create `POST /v2/droplets` is deliberately left un-retried (blind retry risks a second real droplet, ADR 0047 no-half-rented) until a raw refusal's `d.do` method/path/status log (added by #677) pins it as the actual culprit rather than `ensureSSHKey` exhausting its own retry budget. - This recurrence does **not** supply that pinning evidence — no broker log reached the run directory (confirmed: `logs/` in this run holds only empty/local-connection-failure guest logs, no broker output at all). So #678 stays exactly as scoped; there's nothing new to rule on the retry guard itself. - What IS new: the evidence gap has a name now. Filed **#681** (`ready-for-session`) for the drive harness to start harvesting the broker's journal into the run directory (same SSH-harvest shape already used for the droplet's own caddy log), and linked it as blocking #678 — closing #681 is what makes the *next* occurrence of this pinnable. **Why this is a two-way door:** closing #680 as a duplicate is revertible (reopen) and provable by direct comparison against #678's body/labels, which I did above. No code changes, no infrastructure touched. Posting this ruling and closing. Closing this ticket. Nothing further to action here beyond what #678 and #681 already track.
Author
Member

Close-report.

Ruling: duplicate/reinforcement of #678, per this ticket's own filer's
recommendation (verified above) — closed, not superseded by any new fix.

What landed:

  • A corroborating comment on #678 recording this recurrence (drive
    20260822T185236Z, same sig) and confirming it still doesn't supply the
    pinning evidence #678 is gated on.
  • #681 filed: the drive harness doesn't capture the broker's own log
    into the run directory (it's a remote systemd service, never spawned
    locally — confirmed via scripts/lib/rehearsal-droplet.sh and
    broker/README.md), which is why neither #678's original occurrence
    nor this recurrence could be pinned to a specific DO call site. #681
    carries the exact existing harness pattern to mirror
    (rehearsal-droplet.sh:341-345's SSH/journalctl harvest) and is linked
    as blocking #678.
  • No code changes — this ticket contributed evidence and routing, not a
    fix. The actual /v2/droplets retry-guard design (#678) and the
    broker-log-capture gap (#681) remain open, correctly gated on further
    information neither this session nor this ticket's own artifacts could
    supply.

Proof: #678's body/state and #680's own artifacts (legs.json,
artifacts/journey.json, logs/) compared directly; #681 created with a
native Forgejo dependency (GET /issues/678/dependencies lists it) so
.sandcastle/list-ready-tasks.sh reflects the block correctly.

STATUS.md: not updated — no code/project-state change landed in this
ticket (routing + a new tracked gap only); #678's existing STATUS.md entry
already covers the retry-guard design gap accurately.

No human step needed here — this was a two-way-door triage ruling
(ADR 0174 rule 1), not a one-way door.

**Close-report.** **Ruling:** duplicate/reinforcement of #678, per this ticket's own filer's recommendation (verified above) — closed, not superseded by any new fix. **What landed:** - A corroborating comment on #678 recording this recurrence (drive `20260822T185236Z`, same sig) and confirming it still doesn't supply the pinning evidence #678 is gated on. - **#681** filed: the drive harness doesn't capture the broker's own log into the run directory (it's a remote systemd service, never spawned locally — confirmed via `scripts/lib/rehearsal-droplet.sh` and `broker/README.md`), which is *why* neither #678's original occurrence nor this recurrence could be pinned to a specific DO call site. #681 carries the exact existing harness pattern to mirror (`rehearsal-droplet.sh:341-345`'s SSH/journalctl harvest) and is linked as blocking #678. - No code changes — this ticket contributed evidence and routing, not a fix. The actual `/v2/droplets` retry-guard design (#678) and the broker-log-capture gap (#681) remain open, correctly gated on further information neither this session nor this ticket's own artifacts could supply. **Proof:** #678's body/state and #680's own artifacts (`legs.json`, `artifacts/journey.json`, `logs/`) compared directly; #681 created with a native Forgejo dependency (`GET /issues/678/dependencies` lists it) so `.sandcastle/list-ready-tasks.sh` reflects the block correctly. **STATUS.md:** not updated — no code/project-state change landed in this ticket (routing + a new tracked gap only); #678's existing STATUS.md entry already covers the retry-guard design gap accurately. No human step needed here — this was a two-way-door triage ruling (ADR 0174 rule 1), not a one-way door.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#680
No description provided.