standing: rent red at claim — rehearsal-c slug wedged, device target has no pre-rent sweep #897

Closed
opened 2026-08-27 07:54:06 +00:00 by matou-build-agent · 2 comments

The failure

artifacts/verdict.json — "verdict": "red", "firstRedLeg": "standing", "legs": {"total": 2, "green": 0, "red": 2, "skip": 0}, commit d993806, 07:38:14Z → 07:46:18Z (484s). Both legs in artifacts/legs.json (standing, 482660ms; wizard-rent, 481541ms) carry the same error — they are one failure recorded twice, the rent step inside leg 1, not two independent reds:

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

That locator is a symptom, not the fault. The test source in artifacts/journey.device-device-add--809eb-e-standing-rented-community/error-context.md pins it to s4aRent:

> 212 |     await expect(live.page.locator('[data-status="address"]')).toBeVisible({ timeout: 8 * 60_000 });

What actually happened — the page snapshot

The same file's accessibility snapshot shows the wizard still standing on S4a with an in-place, retriable rent error:

- paragraph: Create · 3 of 5
- text: Gateway preset s-2vcpu-4gb PROVIDER · REGION DigitalOcean syd1 TERMS
- button "Rent this server"
- paragraph: claim — That community name is already taken, so the gateway couldn't be reserved — pick a different name. that name is already taken
- button "Retry"

The broker refused at stage claim, before provision. S5 was never rendered, so [data-status="address"] correctly does not exist — the drive then burned its full 8-minute budget waiting for a screen that could never appear.

logs/founding-state.log corroborates from the app's own state:

"founded": false,
"draft": { "step": "access", "details": { "name": "Rehearsal C", "slug": "rehearsal-c" } }

The draft is untouched at S4 with the fixed rehearsal slug rehearsal-c — exactly the shape DDR 0190 decision 3 requires of a clean rent failure.

Not the KNOWN frontier

This is not the own-VPS carrier / pairing-never-flips frontier. artifacts/legs.json carries no skip reasons at all (skip: 0; neither leg record has a skip/reason field), and the run died at leg 1's rent — hundreds of steps before any pairing leg would run. artifacts/journey.json is {"rows": null, "fault": null}: the founding journey bar never started. The pairing frontier was never reached, let alone re-proven.

Suspected layer — harness/infra lifecycle state, not product

The product behaved correctly: the broker's 409 on a taken name is a true refusal, and the wizard reported it honestly, in place, with the stage token (claim — …) leading the fault line and a Retry beside it, draft not advanced. No product defect is visible in this run.

The defect is that the device target re-founds against a fixed slug (rehearsal-c) whose broker-side reservation is still held from a prior drive, and nothing in the device path frees it before renting. logs/healer-claude.out (this run's own healer pass, which had cross-run filesystem access I do not) locates the residue concretely and I quote it as the leading hypothesis rather than as verified fact:

The previous device drive, test-results/drive-device/20260827T065053Z, rented and claimed rehearsal-c, reached point, and then red at enroll-activate on the #893 cloud-init IsADirectoryError … Because it reached point, the reservation is REDEEMED and never lapses (#278; GOTCHAS #80 amendment).

and names two script-side holes: oc_standing_teardown deriving slug/host only from a facts.json that a red re-found never writes (so the claim secret is silently dropped and rm -rf'd), and scripts/smoke-private-path.sh's device preflight running none of the oc_rented_preflight stale-slug sweeps that --target rented runs. I could not verify those cross-run claims: this session is sandboxed to the run directory, so test-results/drive-device/20260827T065053Z, test-results/standing-rented/, test-results/slug-claims/ and the cited scripts/ line numbers are all outside my reach. What I can confirm independently is everything above the fold: the claim-stage refusal, the fixed slug in the draft, and the drive dying at leg 1.

Live box

No live-box section was appended to this prompt, so I diagnosed from the harvested evidence alone. For the record, logs/device-do-forensics.txt says a box is still up — but it is the member device, not the gateway:

tcp/22: a FRESH connect succeeded — the box answers, whatever ssh did
=== droplet 595534017 ===  name: clan-lab-rehearsal-d47f6f57  status: active  image: 24.04 (LTS) x64

logs/device-units.txt shows it is a bare Ubuntu box — systemctl --failed empty, only sshd and systemd-resolve listening, nginx/phpfpm-nextcloud/nextcloud-setup never installed (-- No entries --). That is correct for a drive that red before founding: the gateway was never rented, so there is no gateway to ask, and this droplet has nothing to add.

Evidence absent from this run

  • No logs/droplet-journal.txt by that name — the droplet journal on this target is logs/device-journal.txt (135KB, the member device's boot; nothing about claim/rent/broker in it, only PCI quirk lines match a grep for "claim").
  • logs/broker-journal.txt is a harvest failure, not a log: dev@100.98.48.68: Permission denied (publickey) — off the admin mesh by design (#681, ADR 0208). It would have carried the broker's own view of the refusal.
  • state/ in the run dir is empty; logs/state-logs.log is ENOENT: … /test-results/standing-rented/state/logs — the app's state lives in the standing home on this target.
  • logs/helper.log is 0 bytes; logs/guest-*.log are QEMU-guest probes that do not apply (logs/qemu.log: exit 1: Command failed: ps -o pid,etime,args -C qemu-system-x86_64, artifacts/host.json: "qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT").

What plugging it needs

  1. Unwedge the name first — no code change frees a redeemed reservation. Either spend the prior drive's claim secret against the broker (release then subdomains/offboard for rehearsal-c.idss.nz) before retention prunes drive-device/20260827T065053Z/logs/founding-state.log, or rotate REHEARSAL_SLUG (GOTCHAS #32). Every device drive stays red at leg 1 until one of the two happens.
  2. Give the device target the same pre-rent sweep --target rented already has (oc_rented_release_stale_slug + oc_slug_secrets_harvest + oc_rented_offboard_stale_slug), placed past the dry-run gate so --dry-run --target device stays side-effect-free.
  3. Make the standing teardown remember the claim secret when facts.json is absent — derive slug/host from state/founding-state.json, remember unconditionally before the rm -rf, and attempt release+offboard whenever a secret exists, so a red re-found cannot bin the only key.
  4. Cap the wasted budget: s4aRent should fail fast when [data-status="rent-error"] appears rather than sitting out the full 480s on address — the drive spent 8 of its 8.1 minutes waiting on a screen the product had already declined to show, and reported a bare locator miss instead of the broker's stage.

drive 20260827T073657Z 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: /home/swarm/swarm/Matou/idss/test-results/drive-device/20260827T073657Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure `artifacts/verdict.json` — `"verdict": "red"`, `"firstRedLeg": "standing"`, `"legs": {"total": 2, "green": 0, "red": 2, "skip": 0}`, commit `d993806`, 07:38:14Z → 07:46:18Z (484s). Both legs in `artifacts/legs.json` (`standing`, 482660ms; `wizard-rent`, 481541ms) carry the **same** error — they are one failure recorded twice, the rent step inside leg 1, not two independent reds: ``` expect(locator).toBeVisible() failed Locator: locator('[data-status="address"]') Expected: visible Timeout: 480000ms Error: element(s) not found ``` That locator is a **symptom**, not the fault. The test source in `artifacts/journey.device-device-add--809eb-e-standing-rented-community/error-context.md` pins it to `s4aRent`: ```ts > 212 | await expect(live.page.locator('[data-status="address"]')).toBeVisible({ timeout: 8 * 60_000 }); ``` ## What actually happened — the page snapshot The same file's accessibility snapshot shows the wizard still standing on S4a with an in-place, retriable rent error: ```yaml - paragraph: Create · 3 of 5 - text: Gateway preset s-2vcpu-4gb PROVIDER · REGION DigitalOcean syd1 TERMS - button "Rent this server" - paragraph: claim — That community name is already taken, so the gateway couldn't be reserved — pick a different name. that name is already taken - button "Retry" ``` The broker refused at stage **`claim`**, before provision. S5 was never rendered, so `[data-status="address"]` correctly does not exist — the drive then burned its full 8-minute budget waiting for a screen that could never appear. `logs/founding-state.log` corroborates from the app's own state: ```json "founded": false, "draft": { "step": "access", "details": { "name": "Rehearsal C", "slug": "rehearsal-c" } } ``` The draft is untouched at S4 with the fixed rehearsal slug `rehearsal-c` — exactly the shape DDR 0190 decision 3 requires of a clean rent failure. ## Not the KNOWN frontier This is **not** the own-VPS carrier / pairing-never-flips frontier. `artifacts/legs.json` carries **no skip reasons at all** (`skip: 0`; neither leg record has a `skip`/`reason` field), and the run died at leg 1's rent — hundreds of steps before any pairing leg would run. `artifacts/journey.json` is `{"rows": null, "fault": null}`: the founding journey bar never started. The pairing frontier was never reached, let alone re-proven. ## Suspected layer — harness/infra lifecycle state, not product The product behaved correctly: the broker's 409 on a taken name is a true refusal, and the wizard reported it honestly, in place, with the stage token (`claim — …`) leading the fault line and a `Retry` beside it, draft not advanced. No product defect is visible in this run. The defect is that the device target re-founds against a **fixed** slug (`rehearsal-c`) whose broker-side reservation is still held from a prior drive, and nothing in the device path frees it before renting. `logs/healer-claude.out` (this run's own healer pass, which had cross-run filesystem access I do not) locates the residue concretely and I quote it as the leading hypothesis rather than as verified fact: > The previous device drive, `test-results/drive-device/20260827T065053Z`, rented and claimed `rehearsal-c`, reached `point`, and then red at `enroll-activate` on the #893 cloud-init `IsADirectoryError` … Because it reached `point`, the reservation is **REDEEMED** and never lapses (#278; GOTCHAS #80 amendment). and names two script-side holes: `oc_standing_teardown` deriving `slug`/`host` only from a `facts.json` that a red re-found never writes (so the claim secret is silently dropped and `rm -rf`'d), and `scripts/smoke-private-path.sh`'s device preflight running none of the `oc_rented_preflight` stale-slug sweeps that `--target rented` runs. **I could not verify those cross-run claims**: this session is sandboxed to the run directory, so `test-results/drive-device/20260827T065053Z`, `test-results/standing-rented/`, `test-results/slug-claims/` and the cited `scripts/` line numbers are all outside my reach. What I can confirm independently is everything above the fold: the claim-stage refusal, the fixed slug in the draft, and the drive dying at leg 1. ## Live box **No live-box section was appended to this prompt**, so I diagnosed from the harvested evidence alone. For the record, `logs/device-do-forensics.txt` says a box *is* still up — but it is the **member device**, not the gateway: ``` tcp/22: a FRESH connect succeeded — the box answers, whatever ssh did === droplet 595534017 === name: clan-lab-rehearsal-d47f6f57 status: active image: 24.04 (LTS) x64 ``` `logs/device-units.txt` shows it is a bare Ubuntu box — `systemctl --failed` empty, only `sshd` and `systemd-resolve` listening, `nginx`/`phpfpm-nextcloud`/`nextcloud-setup` never installed (`-- No entries --`). That is correct for a drive that red before founding: the gateway was never rented, so there is no gateway to ask, and this droplet has nothing to add. ## Evidence absent from this run - **No `logs/droplet-journal.txt`** by that name — the droplet journal on this target is `logs/device-journal.txt` (135KB, the member device's boot; nothing about claim/rent/broker in it, only PCI quirk lines match a grep for "claim"). - `logs/broker-journal.txt` is a harvest failure, not a log: `dev@100.98.48.68: Permission denied (publickey)` — off the admin mesh by design (#681, ADR 0208). It would have carried the broker's own view of the refusal. - `state/` in the run dir is empty; `logs/state-logs.log` is `ENOENT: … /test-results/standing-rented/state/logs` — the app's state lives in the standing home on this target. - `logs/helper.log` is 0 bytes; `logs/guest-*.log` are QEMU-guest probes that do not apply (`logs/qemu.log`: `exit 1: Command failed: ps -o pid,etime,args -C qemu-system-x86_64`, `artifacts/host.json`: `"qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT"`). ## What plugging it needs 1. **Unwedge the name first — no code change frees a redeemed reservation.** Either spend the prior drive's claim secret against the broker (`release` then `subdomains/offboard` for `rehearsal-c.idss.nz`) before retention prunes `drive-device/20260827T065053Z/logs/founding-state.log`, or rotate `REHEARSAL_SLUG` (GOTCHAS #32). Every device drive stays red at leg 1 until one of the two happens. 2. **Give the device target the same pre-rent sweep `--target rented` already has** (`oc_rented_release_stale_slug` + `oc_slug_secrets_harvest` + `oc_rented_offboard_stale_slug`), placed past the dry-run gate so `--dry-run --target device` stays side-effect-free. 3. **Make the standing teardown remember the claim secret when `facts.json` is absent** — derive `slug`/`host` from `state/founding-state.json`, remember unconditionally before the `rm -rf`, and attempt release+offboard whenever a secret exists, so a red re-found cannot bin the only key. 4. **Cap the wasted budget:** `s4aRent` should fail fast when `[data-status="rent-error"]` appears rather than sitting out the full 480s on `address` — the drive spent 8 of its 8.1 minutes waiting on a screen the product had already declined to show, and reported a bare locator miss instead of the broker's stage. drive `20260827T073657Z` 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: `/home/swarm/swarm/Matou/idss/test-results/drive-device/20260827T073657Z` 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 -->
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=12664
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=12664 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #897 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 897,
  "status": "success",
  "commits": [
    "cba376414d01bebd4b35e5e9b959b8ee214906f2"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/wizard.ts",
    "docs/GOTCHAS.md",
    "scripts/lib/rehearsal-standing-lib.sh",
    "scripts/smoke-private-path.sh",
    "scripts/tests/rehearsal-device-target-test.sh",
    "scripts/tests/rehearsal-standing-test.sh"
  ],
  "tests": [
    {
      "command": "bash scripts/tests/rehearsal-standing-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash scripts/tests/rehearsal-device-target-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash scripts/tests/rehearsal-rented-target-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash scripts/tests/device-evidence-order-test.sh",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/vue-tsc --noEmit -p tsconfig.json (in app/)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Give the device target the same pre-rent sweep --target rented has (release_stale_slug + slug_secrets_harvest + offboard_stale_slug), past the dry-run gate": "scripts/smoke-private-path.sh device branch runs the three sweep verbs under the OC_STANDING_REFOUND guard, after oc_standing_teardown and before the drive; harvest points at test-results/drive-device. Proven by rehearsal-device-target-test.sh check 13 (red before, green after).",
    "Make the standing teardown remember the claim secret when facts.json is absent — derive slug/host from state/founding-state.json, remember before rm -rf, attempt release+offboard whenever a secret exists": "scripts/lib/rehearsal-standing-lib.sh oc_standing_teardown falls back to founding-state.json (draft.details.slug / draft.address.host, derived either-from-other) when facts.json is absent. Proven by rehearsal-standing-test.sh checks F+G (remember under the real slug, not empty; red before, green after).",
    "Cap the wasted budget: s4aRent fails fast when a rent-error appears rather than sitting out the full 480s on address": "app/tests/e2e/fixtures/wizard.ts s4aRent races address.or(rentError) and throws with the broker's fault-line stage on rent-error; success wait stays bounded. vue-tsc clean.",
    "Unwedge the name first — no code change frees a redeemed reservation": "Named as operational residue on the issue and in STATUS/GOTCHAS #105 — the rehearsal-c reservation must be released/offboarded by hand or REHEARSAL_SLUG rotated (GOTCHAS #32); its claim secret was binned by the pre-fix teardown, so this sandboxed run cannot free it. The code fixes prevent recurrence."
  },
  "summary": "The device-target drive now runs the rented pre-rent slug sweep on a re-found and the standing teardown falls back to founding-state.json so a red re-found cannot bin the only claim key; s4aRent fails fast on a rent-error.",
  "reason": "Harness/infra lifecycle fix (two-way door, ADR 0174) closing the wedged-slug class the device path had no sweep for; the one un-fixable-in-code item (freeing the already-wedged rehearsal-c) is named as operational residue.",
  "blockers": []
}
**close-report** for #897 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 897, "status": "success", "commits": [ "cba376414d01bebd4b35e5e9b959b8ee214906f2" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/wizard.ts", "docs/GOTCHAS.md", "scripts/lib/rehearsal-standing-lib.sh", "scripts/smoke-private-path.sh", "scripts/tests/rehearsal-device-target-test.sh", "scripts/tests/rehearsal-standing-test.sh" ], "tests": [ { "command": "bash scripts/tests/rehearsal-standing-test.sh", "exit_code": 0 }, { "command": "bash scripts/tests/rehearsal-device-target-test.sh", "exit_code": 0 }, { "command": "bash scripts/tests/rehearsal-rented-target-test.sh", "exit_code": 0 }, { "command": "bash scripts/tests/device-evidence-order-test.sh", "exit_code": 0 }, { "command": "node_modules/.bin/vue-tsc --noEmit -p tsconfig.json (in app/)", "exit_code": 0 } ], "criteria": { "Give the device target the same pre-rent sweep --target rented has (release_stale_slug + slug_secrets_harvest + offboard_stale_slug), past the dry-run gate": "scripts/smoke-private-path.sh device branch runs the three sweep verbs under the OC_STANDING_REFOUND guard, after oc_standing_teardown and before the drive; harvest points at test-results/drive-device. Proven by rehearsal-device-target-test.sh check 13 (red before, green after).", "Make the standing teardown remember the claim secret when facts.json is absent — derive slug/host from state/founding-state.json, remember before rm -rf, attempt release+offboard whenever a secret exists": "scripts/lib/rehearsal-standing-lib.sh oc_standing_teardown falls back to founding-state.json (draft.details.slug / draft.address.host, derived either-from-other) when facts.json is absent. Proven by rehearsal-standing-test.sh checks F+G (remember under the real slug, not empty; red before, green after).", "Cap the wasted budget: s4aRent fails fast when a rent-error appears rather than sitting out the full 480s on address": "app/tests/e2e/fixtures/wizard.ts s4aRent races address.or(rentError) and throws with the broker's fault-line stage on rent-error; success wait stays bounded. vue-tsc clean.", "Unwedge the name first — no code change frees a redeemed reservation": "Named as operational residue on the issue and in STATUS/GOTCHAS #105 — the rehearsal-c reservation must be released/offboarded by hand or REHEARSAL_SLUG rotated (GOTCHAS #32); its claim secret was binned by the pre-fix teardown, so this sandboxed run cannot free it. The code fixes prevent recurrence." }, "summary": "The device-target drive now runs the rented pre-rent slug sweep on a re-found and the standing teardown falls back to founding-state.json so a red re-found cannot bin the only claim key; s4aRent fails fast on a rent-error.", "reason": "Harness/infra lifecycle fix (two-way door, ADR 0174) closing the wedged-slug class the device path had no sweep for; the one un-fixable-in-code item (freeing the already-wedged rehearsal-c) is named as operational residue.", "blockers": [] } ``` </details>
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#897
No description provided.