rent-fails-clean: rehearsal-rentfail slug stuck claimed, provision fault unreachable #671

Closed
opened 2026-08-22 16:50:45 +00:00 by matou-build-agent · 3 comments

Failure. The rent-fails-clean leg (journey.rented.spec.ts:210, helper s4aRentExpectFail) expects the rent-error callout to name the provision stage:

Locator: locator('[data-status="rent-error"]')
Expected pattern: /provision/i
Received string:  "That community name is already taken, so the gateway couldn't be reserved — pick a different name. that name is already takenRetry"

artifacts/legs.json / verdict.json confirm this is the sole leg run and the sole red (firstRedLeg: "rent-fails-clean"). state/founding-state.json shows the draft never left S4:

"founded": false,
"draft": { "step": "access", "details": { "name": "Rehearsal Rentfail", "slug": "rehearsal-rentfail", ... } }

— i.e. the drive never got past the broker's claim step into provisioning, so the fault-injection hook that's supposed to fire (Create → Destroy → 502 stage=provision, per the helper's own comment: "the rehearsal fault slug makes the broker Destroy the droplet after a real Create and return a 502 stage provision") never runs at all.

Root cause. The leg drives a fixed slug (rehearsal-rentfail) against the real broker every run (this is a target: "rented" drive against live infra — host.json shows qemu: exit ENOENT, i.e. no local VM, and no droplet/guest logs were populated because none was ever reached). The broker's ClaimSubdomain call runs before the provision-fault hook, so once the slug is claimed once it stays claimed — nothing in the leg releases it (only the real rented slug's claim gets released in afterAll; the rentfail slug's claim never does), and there's no TTL/expiry on the broker side either. The very first successful drive of this leg permanently claims rehearsal-rentfail, so every subsequent drive hits claim-stage "already taken" instead of ever reaching the intended provision-stage fault — the leg can no longer test what it exists to test.

This exact chain (with file:line citations into internal/founding/access.go, broker/internal/broker/broker.go, broker/internal/broker/rentals.go, and app/tests/e2e/fixtures/rented.ts) is already independently corroborated in this run's logs/healer-claude.out, which reached the same conclusion from a full checkout and drafted (but did not file) an issue with the same root cause.

Suspected layer: cross-cutting harness/product — the test fixture hardcodes a never-released slug (app/tests/e2e/fixtures/rented.ts: RENTFAIL_SLUG = 'rehearsal-rentfail'), and the broker's claim registry has no expiry for rehearsal-prefixed reservations. Neither side alone is "wrong"; the combination poisons the leg after its first run.

What plugging it needs:

  1. Unblock now: release/clear the poisoned rehearsal-rentfail claim in the live broker's registry (broker-admin action, outside this checkout).
  2. Durable fix (pick one): (a) stamp the rentfail slug per-drive, e.g. rehearsal-rentfail-<runid> — the broker's fault hook matches by prefix so this needs no broker change and is the lowest-risk fix; (b) have the leg capture and release its own claim in afterAll, mirroring the real-slug cleanup; (c) give the broker a TTL for rehearsal-prefixed reservations so stale claims self-expire.

This is not the known own-VPS pairing frontier — no pairing/carrier skip reasons appear in legs.json; this is a distinct rented-broker fault-injection leak.

drive 20260822T164303Z red at rent-fails-clean: expect(locator).toContainText(expected) failed Locator: locator('[data-status="rent-error"]') Expected pattern: /provision/i Received string: "That community name is already taken, so the gateway coul
evidence: test-results/…/20260822T164303Z/ on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)

**Failure.** The `rent-fails-clean` leg (`journey.rented.spec.ts:210`, helper `s4aRentExpectFail`) expects the rent-error callout to name the `provision` stage: ``` Locator: locator('[data-status="rent-error"]') Expected pattern: /provision/i Received string: "That community name is already taken, so the gateway couldn't be reserved — pick a different name. that name is already takenRetry" ``` `artifacts/legs.json` / `verdict.json` confirm this is the sole leg run and the sole red (`firstRedLeg: "rent-fails-clean"`). `state/founding-state.json` shows the draft never left S4: ``` "founded": false, "draft": { "step": "access", "details": { "name": "Rehearsal Rentfail", "slug": "rehearsal-rentfail", ... } } ``` — i.e. the drive never got past the broker's *claim* step into *provisioning*, so the fault-injection hook that's supposed to fire (Create → Destroy → 502 `stage=provision`, per the helper's own comment: "the rehearsal fault slug makes the broker Destroy the droplet after a real Create and return a 502 stage `provision`") never runs at all. **Root cause.** The leg drives a *fixed* slug (`rehearsal-rentfail`) against the real broker every run (this is a `target: "rented"` drive against live infra — `host.json` shows `qemu: exit ENOENT`, i.e. no local VM, and no droplet/guest logs were populated because none was ever reached). The broker's `ClaimSubdomain` call runs *before* the provision-fault hook, so once the slug is claimed once it stays claimed — nothing in the leg releases it (only the real rented slug's claim gets released in `afterAll`; the rentfail slug's claim never does), and there's no TTL/expiry on the broker side either. The very first successful drive of this leg permanently claims `rehearsal-rentfail`, so every subsequent drive hits `claim`-stage "already taken" instead of ever reaching the intended `provision`-stage fault — the leg can no longer test what it exists to test. This exact chain (with file:line citations into `internal/founding/access.go`, `broker/internal/broker/broker.go`, `broker/internal/broker/rentals.go`, and `app/tests/e2e/fixtures/rented.ts`) is already independently corroborated in this run's `logs/healer-claude.out`, which reached the same conclusion from a full checkout and drafted (but did not file) an issue with the same root cause. **Suspected layer:** cross-cutting harness/product — the test fixture hardcodes a never-released slug (`app/tests/e2e/fixtures/rented.ts: RENTFAIL_SLUG = 'rehearsal-rentfail'`), and the broker's claim registry has no expiry for rehearsal-prefixed reservations. Neither side alone is "wrong"; the combination poisons the leg after its first run. **What plugging it needs:** 1. Unblock now: release/clear the poisoned `rehearsal-rentfail` claim in the live broker's registry (broker-admin action, outside this checkout). 2. Durable fix (pick one): (a) stamp the rentfail slug per-drive, e.g. `rehearsal-rentfail-<runid>` — the broker's fault hook matches by prefix so this needs no broker change and is the lowest-risk fix; (b) have the leg capture and release its own claim in `afterAll`, mirroring the real-slug cleanup; (c) give the broker a TTL for rehearsal-prefixed reservations so stale claims self-expire. This is not the known own-VPS pairing frontier — no pairing/carrier skip reasons appear in `legs.json`; this is a distinct rented-broker fault-injection leak. drive `20260822T164303Z` red at `rent-fails-clean`: `expect(locator).toContainText(expected) failed Locator: locator('[data-status="rent-error"]') Expected pattern: /provision/i Received string: "That community name is already taken, so the gateway coul` evidence: `test-results/…/20260822T164303Z/` on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596) <!-- rehearsal-sig: dcd9de7c3e06 -->
Author
Member

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

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

Head-start from the phase-4 session (agrees with the diagnosis). Confirmed from code: internal/founding/access.go RentServer claims <slug>.idss.nz before Rent, broker subdomain reservations have no TTL (broker/internal/broker/broker.go:183 — only an offboard with the claim secret frees one), and each drive starts from a fresh state dir, so the fixed rehearsal-rentfail name is now poisoned for every later drive.

Recommended fix (no broker change): broker/internal/broker/rentals.go:204 already trips the fault on strings.HasPrefix(slug, "rehearsal-rentfail"), so give the honesty leg a per-drive slug — rehearsal-rentfail-<drive-stamp> (the spec/fixture reads the run stamp it already has for the evidence dir) — and have the rented cleanup offboard that slug using the claim secret from state/founding-state.json (draft.address.secret), the same way the teardown already offboards the main community host. Keep the community name folding to that slug so the S4a card and s4aRentExpectFail need no other change.

Do not spend effort un-claiming the existing rehearsal-rentfail reservation — its secret is gone with drive 2's state; the per-drive suffix sidesteps it. (Housekeeping note for matou-ops: one dead rehearsal-rentfail.idss.nz reservation remains in the broker ledger — harmless, reaps when the ledger is next pruned by hand.)

Evidence lives on elitebook-03 (/home/swarm/swarm/Matou/idss/test-results/drive-rented/20260822T164303Z), not matou-workstation — #659's hostname-stamping item.

**Head-start from the phase-4 session (agrees with the diagnosis).** Confirmed from code: `internal/founding/access.go` `RentServer` claims `<slug>.idss.nz` *before* `Rent`, broker subdomain reservations have **no TTL** (`broker/internal/broker/broker.go:183` — only an offboard with the claim secret frees one), and each drive starts from a fresh state dir, so the fixed `rehearsal-rentfail` name is now poisoned for every later drive. **Recommended fix (no broker change):** `broker/internal/broker/rentals.go:204` already trips the fault on `strings.HasPrefix(slug, "rehearsal-rentfail")`, so give the honesty leg a **per-drive slug** — `rehearsal-rentfail-<drive-stamp>` (the spec/fixture reads the run stamp it already has for the evidence dir) — and have the rented cleanup **offboard that slug** using the claim secret from `state/founding-state.json` (`draft.address.secret`), the same way the teardown already offboards the main community host. Keep the community *name* folding to that slug so the S4a card and `s4aRentExpectFail` need no other change. Do **not** spend effort un-claiming the existing `rehearsal-rentfail` reservation — its secret is gone with drive 2's state; the per-drive suffix sidesteps it. (Housekeeping note for matou-ops: one dead `rehearsal-rentfail.idss.nz` reservation remains in the broker ledger — harmless, reaps when the ledger is next pruned by hand.) Evidence lives on **elitebook-03** (`/home/swarm/swarm/Matou/idss/test-results/drive-rented/20260822T164303Z`), not matou-workstation — #659's hostname-stamping item.
Author
Member

close-report for #671 — status success

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

envelope
{
  "issue": 671,
  "status": "success",
  "commits": [
    "09fcf2b"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/rented.ts",
    "app/tests/e2e/fixtures/rented.test.ts",
    "app/tests/e2e/journey.rented.spec.ts"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/e2e/fixtures/rented.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Durable fix (a): stamp the rentfail slug per-drive so it is never permanently claimed": "rentfailSlug(token) in app/tests/e2e/fixtures/rented.ts stamps the run-dir stamp onto the RENTFAIL_PREFIX; spec uses rentfailSlug(basename(OC_E2E_RUN_DIR)) at S2 — each drive claims a fresh unclaimed name (commit 09fcf2b)",
    "No broker change needed — the fault hook matches by prefix": "broker/internal/broker/rentals.go:204 uses strings.HasPrefix(slug, 'rehearsal-rentfail'); the stamped slug keeps that prefix, verified by rentfailSlug prefix test in rented.test.ts",
    "Leg releases its own rentfail claim so nothing lingers in the registry": "rent-fails-clean leg captures the rentfail reservation from founding state; afterAll offboards it via OFFBOARD_PATH (journey.rented.spec.ts)",
    "Survivor check still catches any rentfail droplet": "rentfailDropletSurvives now matches RENTFAIL_PREFIX (rented.ts), covered by rented.test.ts parseDropletField case",
    "Proven offline (live spec cannot run in-sandbox, #377)": "npx vitest run tests/e2e/fixtures/rented.test.ts — 14/14 green; npx vue-tsc -p tsconfig.json exit 0"
  },
  "summary": "Stamped the rent-fails-clean rehearsal slug per-drive (RENTFAIL_PREFIX + rentfailSlug), matched the fault hook by prefix, and offboard the rentfail reservation in afterAll, so a poisoned broker claim can no longer wedge the leg — test-side only, no broker change.",
  "blockers": []
}
**close-report** for #671 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 671, "status": "success", "commits": [ "09fcf2b" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/rented.ts", "app/tests/e2e/fixtures/rented.test.ts", "app/tests/e2e/journey.rented.spec.ts" ], "tests": [ { "command": "npx vitest run tests/e2e/fixtures/rented.test.ts", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json", "exit_code": 0 } ], "criteria": { "Durable fix (a): stamp the rentfail slug per-drive so it is never permanently claimed": "rentfailSlug(token) in app/tests/e2e/fixtures/rented.ts stamps the run-dir stamp onto the RENTFAIL_PREFIX; spec uses rentfailSlug(basename(OC_E2E_RUN_DIR)) at S2 — each drive claims a fresh unclaimed name (commit 09fcf2b)", "No broker change needed — the fault hook matches by prefix": "broker/internal/broker/rentals.go:204 uses strings.HasPrefix(slug, 'rehearsal-rentfail'); the stamped slug keeps that prefix, verified by rentfailSlug prefix test in rented.test.ts", "Leg releases its own rentfail claim so nothing lingers in the registry": "rent-fails-clean leg captures the rentfail reservation from founding state; afterAll offboards it via OFFBOARD_PATH (journey.rented.spec.ts)", "Survivor check still catches any rentfail droplet": "rentfailDropletSurvives now matches RENTFAIL_PREFIX (rented.ts), covered by rented.test.ts parseDropletField case", "Proven offline (live spec cannot run in-sandbox, #377)": "npx vitest run tests/e2e/fixtures/rented.test.ts — 14/14 green; npx vue-tsc -p tsconfig.json exit 0" }, "summary": "Stamped the rent-fails-clean rehearsal slug per-drive (RENTFAIL_PREFIX + rentfailSlug), matched the fault hook by prefix, and offboard the rentfail reservation in afterAll, so a poisoned broker claim can no longer wedge the leg — test-side only, no broker change.", "blockers": [] } ``` </details>
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#671
No description provided.