standing: S4a rent 422s at DO droplet-create — just-registered SSH key not yet resolvable #1179

Closed
opened 2026-09-03 04:40:14 +00:00 by matou-build-agent · 1 comment

The failure

Drive drive-device/20260903T042240Z (target device, commit 8237a0db) reds on its first leg, standing, after 9.5s, and again on wizard-rent (8.1s). Both legs carry the identical fault — the rent was refused in place by the broker at stage S4a, so the journey never reached S5 (provision), never stood a droplet up, and never got near pairing.

artifacts/verdict.json:

"verdict": "red", "legs": { "total": 2, "green": 0, "red": 2, "skip": 0 }, "firstRedLeg": "standing"

artifacts/legs.json (both entries, verbatim; artifacts/journey.json repeats it as the drive's fault):

S4a rent was declined in place by the broker (rent-error), never reaching S5 — provision —
broker: DigitalOcean refused: Unprocessable Entity:
{"id":"unprocessable_entity","message":"f3:5d:78:b6:37:3b:1f:a7:f5:f3:27:b4:af:65:a8:46 are
invalid key identifiers for Droplet creation."}

This is not the drive's known frontier. legs.json records zero skips and no skip reasons at all — the own-VPS carrier issue that keeps pairing from flipping is downstream of S5 and was never reached. This red is a new, upstream stop.

The app-side surface was correct

artifacts/journey.device-*/error-context.md page snapshot shows the wizard parked cleanly on the rent step with a retriable error, not a crash or a hang:

- paragraph [ref=f1e20]: Create · 3 of 5
- generic [ref=f1e27]: DigitalOcean / syd1     # preset s-2vcpu-4gb
- paragraph [ref=f1e39]: "provision — broker: DigitalOcean refused: Unprocessable Entity: ..."
- button "Retry" [ref=f1e41] [cursor=pointer]

logs/founding-state.log corroborates: "founded": false, draft parked at "step": "access" for rehearsal-e.idss.nz. The operator app raised the rent, surfaced the broker's own words, and offered Retry — nothing to fix there.

Evidence that is absent (and why)

  • No live box, and none was ever rented. No live-box section was appended to this diagnosis, and there is nothing to append: logs/device-do-forensics.txt ends === DO API: no droplet at 170.64.219.52 in this account — it is already gone ===, with 3 packets transmitted, 0 received and tcp/22: no fresh connect inside 5s. That IP is stale state from an earlier drive, not this one's box.
  • No logs/droplet-journal.txt. The device-side harvesters all produced ssh-timeout stubs against that same stale IP: ssh: connect to host 170.64.219.52 port 22: Connection timed out in device-journal.txt, device-units.txt, device-caddy.txt, device-keri.txt, device-stall.txt.
  • No broker journal. logs/broker-journal.txt is a refusal: dev@100.98.48.68: Permission denied (publickey). — the executor is off the admin mesh (ADR 0208, #681). This is the load-bearing gap: the broker's own timeline of the key POST and the create POST is exactly what would confirm the mechanism below, and it is missing.
  • Nothing VM-side to read (expected — no guest was built): guest-journal.log -- No entries --, guest-unit-file.log No such file or directory, guest-failed-units.log "the guest was never created", qemu.log no process, state/ empty, clan-config-snapshot.log "a drive that never built one".

Suspected layer — the deployed broker's DO provider (product/infra), not harness, not app

The rent ran against the live broker, so the DO calls happen on the broker droplet, not the executor. This run's healer record (logs/healer-claude.out) checked all three links against the live DO account and reports:

  • the app-minted key at state/rent-operator/id_ed25519.pub has MD5 f3:5d:78:…:a8:46 — byte-for-byte the fingerprint DO refused, so the fingerprint computation is right;
  • that key is on the account: id 59072583, name idss-gateway-rehearsal-e-dac8 — so the key POST succeeded;
  • GET /v2/account/keys/f3:5d:… resolves 200 — MD5 fingerprints are still valid DO key identifiers.

(These three checks are from the healer's log, not re-verified here — the broker source and the sibling standing-rented/ state are outside this session's read scope.)

Key registered, identifier form valid, create refused. The remaining explanation is read-after-write: at the moment of POST /v2/droplets the create validator had not yet observed the key registered milliseconds earlier by ensureSSHKey. The create POST deliberately bypasses the retry policy (ADR 0047 / #682 — a 5xx replay could leak a second box), so a 422 there is terminal with no settle window. That makes it the one hop in the same DO-propagation family as #677 and #672 that never got a settle gate.

What plugging this needs

  1. A confirm-gate before create — after the key POST, poll the idempotent GET /v2/account/keys/{fingerprint} (which can ride the existing retry policy) until it resolves, then create. This adds no retry to the droplet-create POST, so the ADR 0047 / #682 fence stays intact. Optionally also carry DO's own numeric ssh_key.id out of the POST response instead of the locally-computed fingerprint, though the id alone does not dodge propagation lag.
  2. A ruling first. Two things stop a swarm agent acting unassisted: the fix sits directly against the ADR 0047 / #682 no-retry fence on the create path (a design boundary), and the broker is a deployed service — a commit changes nothing until the broker-deploy rail runs, and the unit tests stub DO via httptest, so they pass either way.
  3. Restore the missing evidence — broker journal access from the executor (ADR 0208 / #681), or a broker-side log line pairing the key-POST and create-POST timestamps. Without it the propagation-lag mechanism is inferred by elimination, not observed.
  4. Sweep the orphan. No droplet leaked, but account key 59072583 is stranded: key reaping resolves the key from its droplet, and here no droplet ever existed — one stale key per red rent of this shape (#708 family).
  5. Do not paper over it. The red is honest: the rent must not proceed on a key the provider cannot resolve. Widening the fixture wait or softening the s4aRent fault check would hide a real broker defect.

drive 20260903T042240Z red at wizard-rent: S4a rent was declined in place by the broker (rent-error), never reaching S5 — provision — broker: DigitalOcean refused: Unprocessable Entity: {"id":"unprocessable_entity","message":"f3:5d:78:b6:3
evidence: /home/swarm/swarm/Matou/idss/test-results/drive-device/20260903T042240Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure Drive `drive-device/20260903T042240Z` (target `device`, commit `8237a0db`) reds on its **first** leg, `standing`, after 9.5s, and again on `wizard-rent` (8.1s). Both legs carry the identical fault — the rent was refused in place by the broker at stage S4a, so the journey never reached S5 (provision), never stood a droplet up, and never got near pairing. `artifacts/verdict.json`: ```json "verdict": "red", "legs": { "total": 2, "green": 0, "red": 2, "skip": 0 }, "firstRedLeg": "standing" ``` `artifacts/legs.json` (both entries, verbatim; `artifacts/journey.json` repeats it as the drive's `fault`): ``` S4a rent was declined in place by the broker (rent-error), never reaching S5 — provision — broker: DigitalOcean refused: Unprocessable Entity: {"id":"unprocessable_entity","message":"f3:5d:78:b6:37:3b:1f:a7:f5:f3:27:b4:af:65:a8:46 are invalid key identifiers for Droplet creation."} ``` **This is not the drive's known frontier.** `legs.json` records **zero skips** and no skip reasons at all — the own-VPS carrier issue that keeps pairing from flipping is downstream of S5 and was never reached. This red is a new, upstream stop. ## The app-side surface was correct `artifacts/journey.device-*/error-context.md` page snapshot shows the wizard parked cleanly on the rent step with a retriable error, not a crash or a hang: ```yaml - paragraph [ref=f1e20]: Create · 3 of 5 - generic [ref=f1e27]: DigitalOcean / syd1 # preset s-2vcpu-4gb - paragraph [ref=f1e39]: "provision — broker: DigitalOcean refused: Unprocessable Entity: ..." - button "Retry" [ref=f1e41] [cursor=pointer] ``` `logs/founding-state.log` corroborates: `"founded": false`, draft parked at `"step": "access"` for `rehearsal-e.idss.nz`. The operator app raised the rent, surfaced the broker's own words, and offered Retry — nothing to fix there. ## Evidence that is absent (and why) - **No live box, and none was ever rented.** No live-box section was appended to this diagnosis, and there is nothing to append: `logs/device-do-forensics.txt` ends `=== DO API: no droplet at 170.64.219.52 in this account — it is already gone ===`, with `3 packets transmitted, 0 received` and `tcp/22: no fresh connect inside 5s`. That IP is stale state from an earlier drive, not this one's box. - **No `logs/droplet-journal.txt`.** The device-side harvesters all produced ssh-timeout stubs against that same stale IP: `ssh: connect to host 170.64.219.52 port 22: Connection timed out` in `device-journal.txt`, `device-units.txt`, `device-caddy.txt`, `device-keri.txt`, `device-stall.txt`. - **No broker journal.** `logs/broker-journal.txt` is a refusal: `dev@100.98.48.68: Permission denied (publickey).` — the executor is off the admin mesh (ADR 0208, #681). **This is the load-bearing gap**: the broker's own timeline of the key POST and the create POST is exactly what would confirm the mechanism below, and it is missing. - **Nothing VM-side to read** (expected — no guest was built): `guest-journal.log` `-- No entries --`, `guest-unit-file.log` `No such file or directory`, `guest-failed-units.log` "the guest was never created", `qemu.log` no process, `state/` empty, `clan-config-snapshot.log` "a drive that never built one". ## Suspected layer — the deployed broker's DO provider (product/infra), not harness, not app The rent ran against the live broker, so the DO calls happen on the broker droplet, not the executor. This run's healer record (`logs/healer-claude.out`) checked all three links against the live DO account and reports: - the app-minted key at `state/rent-operator/id_ed25519.pub` has MD5 `f3:5d:78:…:a8:46` — byte-for-byte the fingerprint DO refused, so the fingerprint computation is right; - that key **is** on the account: id `59072583`, name `idss-gateway-rehearsal-e-dac8` — so the key POST succeeded; - `GET /v2/account/keys/f3:5d:…` resolves 200 — MD5 fingerprints are still valid DO key identifiers. (These three checks are from the healer's log, not re-verified here — the broker source and the sibling `standing-rented/` state are outside this session's read scope.) Key registered, identifier form valid, create refused. The remaining explanation is **read-after-write**: at the moment of `POST /v2/droplets` the create validator had not yet observed the key registered milliseconds earlier by `ensureSSHKey`. The create POST deliberately bypasses the retry policy (ADR 0047 / #682 — a 5xx replay could leak a second box), so a 422 there is terminal with no settle window. That makes it the one hop in the same DO-propagation family as #677 and #672 that never got a settle gate. ## What plugging this needs 1. **A confirm-gate before create** — after the key POST, poll the idempotent `GET /v2/account/keys/{fingerprint}` (which can ride the existing retry policy) until it resolves, then create. This adds **no** retry to the droplet-create POST, so the ADR 0047 / #682 fence stays intact. Optionally also carry DO's own numeric `ssh_key.id` out of the POST response instead of the locally-computed fingerprint, though the id alone does not dodge propagation lag. 2. **A ruling first.** Two things stop a swarm agent acting unassisted: the fix sits directly against the ADR 0047 / #682 no-retry fence on the create path (a design boundary), and the broker is a deployed service — a commit changes nothing until the `broker-deploy` rail runs, and the unit tests stub DO via `httptest`, so they pass either way. 3. **Restore the missing evidence** — broker journal access from the executor (ADR 0208 / #681), or a broker-side log line pairing the key-POST and create-POST timestamps. Without it the propagation-lag mechanism is inferred by elimination, not observed. 4. **Sweep the orphan.** No droplet leaked, but account key `59072583` is stranded: key reaping resolves the key from its droplet, and here no droplet ever existed — one stale key per red rent of this shape (#708 family). 5. **Do not paper over it.** The red is honest: the rent must not proceed on a key the provider cannot resolve. Widening the fixture wait or softening the `s4aRent` fault check would hide a real broker defect. drive `20260903T042240Z` red at `wizard-rent`: `S4a rent was declined in place by the broker (rent-error), never reaching S5 — provision — broker: DigitalOcean refused: Unprocessable Entity: {"id":"unprocessable_entity","message":"f3:5d:78:b6:3` evidence: `/home/swarm/swarm/Matou/idss/test-results/drive-device/20260903T042240Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 3b0b824f61b8 -->
Owner

Duplicate of #1178 — same drive (20260903T042240Z), same fault, byte-identical DO refusal; the healer-refusal filing and the reporter filing raced each other (the leg::error dedup evidently does not span the two filing paths — noting here rather than minting a third ticket; if a future drive double-files again, that's the ticket). The fix landed as 0fc29770 and deploy-then-close is tracked on #1178.

Duplicate of #1178 — same drive (20260903T042240Z), same fault, byte-identical DO refusal; the healer-refusal filing and the reporter filing raced each other (the leg::error dedup evidently does not span the two filing paths — noting here rather than minting a third ticket; if a future drive double-files again, that's the ticket). The fix landed as 0fc29770 and deploy-then-close is tracked on #1178.
ben closed this issue 2026-09-03 04:48:27 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1179
No description provided.