The orphaned standing home at app/test-results/standing-rented holds the only key to a live rehearsal-c reservation the next drive will re-claim #887

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

Failure

Drive 20260827T035855Z red at leg 1 because the standing home had two addresses (healed in d2a7113e). That bug left a real orphan behind, and the fix does not clean it up — nothing will ever read that directory again.

Evidence

  • test-results/drive-device/20260827T035855Z/logs/founding-state.log — harvested by evidence.ts guestCollectors (cat <live.stateDir>/founding-state.json) — records a community that reached S5 and S4a rent:
    • draft.details.slug = rehearsal-c, draft.details.name = Rehearsal C
    • draft.access = {kind: rented, ip: 168.144.170.129} — a real DigitalOcean syd1 gateway was rented
    • draft.address = {kind: subdomain, host: rehearsal-c.idss.nz, secret: <present>} — the subdomain is reserved and the claim secret is in that file
  • On the executor, that state lives at <root>/app/test-results/standing-rented/state/ (also clan-config/, rent-operator/, sops/), written 03:40–03:43 by the drive before this one.
  • <root>/test-results/standing-rented — the directory the bash half owns — does not exist. scripts/lib/rehearsal-standing-lib.sh oc_standing_facts_read, oc_standing_secret, oc_standing_renew and oc_standing_teardown all address that path, so none of them can see this community.

Why the next drive re-fires

journey.device.spec.ts:191 picks the slug as facts?.slug ?? process.env.REHEARSAL_SLUG ?? 'standing-5'. facts.json was absent, and 'standing-5' does not fold to Rehearsal C — communityNameForSlug (app/tests/e2e/fixtures/rented.ts:149) maps rehearsal-c → Rehearsal C, which is exactly the name in the founding state. So the executor exports REHEARSAL_SLUG=rehearsal-c, and the next device drive will walk S5 and claim rehearsal-c.idss.nz again — a reservation that is already held, whose secret the fresh state dir will not carry. That is the #626 shape (S5 re-claiming a reservation as if it were someone else's), and it costs a full stand-up plus a member droplet to rediscover.

Suspected layer

Harness state, not product code. There is no defect left in the scripts — d2a7113e makes both halves agree from here on. What is missing is a one-time sweep of the home orphaned before that commit, plus the #757 failsafe that never fired for it (oc_slug_secret_remember is only called from oc_standing_teardown, which never saw this directory, so test-results/slug-claims has no record of the rehearsal-c key either).

What plugging it needs

  1. Mine the claim secret from <root>/app/test-results/standing-rented/state/founding-state.json (draft.address.secret) — do not copy it into this issue.
  2. Remember it first (oc_slug_secret_remember rehearsal-c <secret>, scripts/lib/rehearsal-droplet.sh), then spend it, in oc_standing_teardown's order: POST $IDSS_BROKER_URL/v1/gateways/release {"host":"rehearsal-c.idss.nz"} before POST /v1/subdomains/offboard — offboard drops the reservation the release route authenticates against.
  3. Confirm no droplet answers at 168.144.170.129 (doctl compute droplet list --format PublicIPv4 --no-header). The rental's lease is unrenewed, so ADR 0208 ruling 5's TTL reaper is the failsafe for the box; the subdomain reservation has no such timer and is the part that actually strands the slug.
  4. rm -rf <root>/app/test-results/standing-rented once the secret is spent or remembered.
  5. Optional hardening worth a line in the ticket: the offboard step has no TTL failsafe, unlike the lease — a stranded reservation blocks its slug indefinitely, which is what makes an orphaned home more expensive than ruling 5 assumes.

drive 20260827T035855Z red at standing: page.click: Timeout 30000ms exceeded. Call log: - waiting for locator('[data-action="create-a-community"]')
evidence: /home/swarm/swarm/Matou/idss/test-results/drive-device/20260827T035855Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## Failure Drive `20260827T035855Z` red at leg 1 because the standing home had two addresses (healed in `d2a7113e`). That bug left a **real orphan** behind, and the fix does not clean it up — nothing will ever read that directory again. ## Evidence - `test-results/drive-device/20260827T035855Z/logs/founding-state.log` — harvested by `evidence.ts` `guestCollectors` (`cat <live.stateDir>/founding-state.json`) — records a community that reached S5 **and** S4a rent: - `draft.details.slug` = `rehearsal-c`, `draft.details.name` = `Rehearsal C` - `draft.access` = `{kind: rented, ip: 168.144.170.129}` — a real DigitalOcean syd1 gateway was rented - `draft.address` = `{kind: subdomain, host: rehearsal-c.idss.nz, secret: <present>}` — the subdomain is **reserved** and the claim secret is in that file - On the executor, that state lives at `<root>/app/test-results/standing-rented/state/` (also `clan-config/`, `rent-operator/`, `sops/`), written 03:40–03:43 by the drive before this one. - `<root>/test-results/standing-rented` — the directory the bash half owns — **does not exist**. `scripts/lib/rehearsal-standing-lib.sh` `oc_standing_facts_read`, `oc_standing_secret`, `oc_standing_renew` and `oc_standing_teardown` all address that path, so none of them can see this community. ## Why the next drive re-fires `journey.device.spec.ts:191` picks the slug as `facts?.slug ?? process.env.REHEARSAL_SLUG ?? 'standing-5'`. `facts.json` was absent, and `'standing-5'` does not fold to `Rehearsal C` — `communityNameForSlug` (`app/tests/e2e/fixtures/rented.ts:149`) maps `rehearsal-c` → `Rehearsal C`, which is exactly the name in the founding state. So the executor exports `REHEARSAL_SLUG=rehearsal-c`, and the **next** device drive will walk S5 and claim `rehearsal-c.idss.nz` again — a reservation that is already held, whose secret the fresh state dir will not carry. That is the `#626` shape (S5 re-claiming a reservation as if it were someone else's), and it costs a full stand-up plus a member droplet to rediscover. ## Suspected layer Harness state, not product code. There is no defect left in the scripts — `d2a7113e` makes both halves agree from here on. What is missing is a one-time sweep of the home orphaned *before* that commit, plus the `#757` failsafe that never fired for it (`oc_slug_secret_remember` is only called from `oc_standing_teardown`, which never saw this directory, so `test-results/slug-claims` has no record of the `rehearsal-c` key either). ## What plugging it needs 1. Mine the claim secret from `<root>/app/test-results/standing-rented/state/founding-state.json` (`draft.address.secret`) — do **not** copy it into this issue. 2. Remember it first (`oc_slug_secret_remember rehearsal-c <secret>`, `scripts/lib/rehearsal-droplet.sh`), then spend it, in `oc_standing_teardown`'s order: `POST $IDSS_BROKER_URL/v1/gateways/release {"host":"rehearsal-c.idss.nz"}` **before** `POST /v1/subdomains/offboard` — offboard drops the reservation the release route authenticates against. 3. Confirm no droplet answers at `168.144.170.129` (`doctl compute droplet list --format PublicIPv4 --no-header`). The rental's lease is unrenewed, so ADR 0208 ruling 5's TTL reaper is the failsafe for the box; the **subdomain reservation has no such timer** and is the part that actually strands the slug. 4. `rm -rf <root>/app/test-results/standing-rented` once the secret is spent or remembered. 5. Optional hardening worth a line in the ticket: the offboard step has no TTL failsafe, unlike the lease — a stranded reservation blocks its slug indefinitely, which is what makes an orphaned home more expensive than ruling 5 assumes. drive `20260827T035855Z` red at `standing`: `page.click: Timeout 30000ms exceeded. Call log: - waiting for locator('[data-action="create-a-community"]')` evidence: `/home/swarm/swarm/Matou/idss/test-results/drive-device/20260827T035855Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 25304f657c24 -->
Author
Member

Blocked — host-side operational sweep, not a sandbox-runnable slice

Confirmed from the Sandcastle sandbox (057b2668059c):

  • IDSS_BROKER_URL is unset — the release (POST /v1/gateways/release) and offboard (POST /v1/subdomains/offboard) calls this needs cannot be made from here.
  • matou-workstation does not resolve — the orphaned home <root>/app/test-results/standing-rented/state/founding-state.json, which holds the only copy of the rehearsal-c claim secret, lives on that executor. It is not in the worktree (test-results are runtime artifacts) and there is no path to it from the sandbox.
  • test-results/slug-claims has no rehearsal-c record here either, so the #757 failsafe cannot be replayed from the sandbox.

The issue itself rules the scripts already correct (d2a7113e reconciled both halves; "There is no defect left in the scripts"). What remains is a one-time host-side sweep whose every step is a one-way door — spending a live claim secret, releasing a live gateway rental, offboarding a live subdomain reservation (drops it — data destruction), and rm -rf of the state that holds the only key. Under ADR 0174 those are one-way-door / data-destruction / non-routine-live-infra actions — not an autonomous agent's to rule, and not reachable from here.

Why human

An operator on matou-workstation (live $IDSS_BROKER_URL, doctl) must run the sweep, in oc_standing_teardown's order — remember, then release, then offboard, then rm — because offboard drops the reservation the release route authenticates against:

  1. Mine draft.address.secret from <root>/app/test-results/standing-rented/state/founding-state.json (slug rehearsal-c, host rehearsal-c.idss.nz).
  2. oc_slug_secret_remember rehearsal-c <secret> (scripts/lib/rehearsal-droplet.sh) — first, so the name is freeable even if offboard fails.
  3. POST $IDSS_BROKER_URL/v1/gateways/release {"host":"rehearsal-c.idss.nz"} (204 = released/idempotent) — before step 4.
  4. POST $IDSS_BROKER_URL/v1/subdomains/offboard {"host":"rehearsal-c.idss.nz"}.
  5. Confirm no droplet answers at 168.144.170.129 (doctl compute droplet list --format PublicIPv4 --no-header); the unrenewed lease's box is caught by ADR 0208 ruling 5's TTL reaper, but the subdomain reservation has no timer and is the part that strands the slug.
  6. rm -rf <root>/app/test-results/standing-rented once the secret is remembered/spent.

Urgency: until this runs, the next device drive re-fires — journey.device.spec.ts:191 folds the absent facts.json to REHEARSAL_SLUG=rehearsal-c (via communityNameForSlug → Rehearsal C) and re-claims rehearsal-c.idss.nz, a reservation already held whose secret the fresh state dir won't carry (the #626 shape). That costs a full stand-up plus a member droplet to rediscover.

Hardening worth its own ticket (per the issue's step 5): the broker's /v1/subdomains/offboard reservation has no TTL failsafe, unlike the gateway lease (ADR 0208 ruling 5). A stranded reservation blocks its slug indefinitely — which is exactly what makes an orphaned home more expensive than ruling 5 assumes. A session could file this as a follow-up broker feature.

## Blocked — host-side operational sweep, not a sandbox-runnable slice Confirmed from the Sandcastle sandbox (`057b2668059c`): - `IDSS_BROKER_URL` is **unset** — the release (`POST /v1/gateways/release`) and offboard (`POST /v1/subdomains/offboard`) calls this needs cannot be made from here. - `matou-workstation` does not resolve — the orphaned home `<root>/app/test-results/standing-rented/state/founding-state.json`, which holds the **only** copy of the `rehearsal-c` claim secret, lives on that executor. It is not in the worktree (test-results are runtime artifacts) and there is no path to it from the sandbox. - `test-results/slug-claims` has no `rehearsal-c` record here either, so the `#757` failsafe cannot be replayed from the sandbox. The issue itself rules the scripts already correct (`d2a7113e` reconciled both halves; "There is no defect left in the scripts"). What remains is a **one-time host-side sweep** whose every step is a one-way door — spending a live claim secret, releasing a live gateway rental, **offboarding a live subdomain reservation (drops it — data destruction)**, and `rm -rf` of the state that holds the only key. Under ADR 0174 those are one-way-door / data-destruction / non-routine-live-infra actions — not an autonomous agent's to rule, and not reachable from here. ## Why human An operator on **matou-workstation** (live `$IDSS_BROKER_URL`, `doctl`) must run the sweep, in `oc_standing_teardown`'s order — **remember, then release, then offboard, then rm** — because offboard drops the reservation the release route authenticates against: 1. Mine `draft.address.secret` from `<root>/app/test-results/standing-rented/state/founding-state.json` (slug `rehearsal-c`, host `rehearsal-c.idss.nz`). 2. `oc_slug_secret_remember rehearsal-c <secret>` (`scripts/lib/rehearsal-droplet.sh`) — **first**, so the name is freeable even if offboard fails. 3. `POST $IDSS_BROKER_URL/v1/gateways/release {"host":"rehearsal-c.idss.nz"}` (204 = released/idempotent) — **before** step 4. 4. `POST $IDSS_BROKER_URL/v1/subdomains/offboard {"host":"rehearsal-c.idss.nz"}`. 5. Confirm no droplet answers at `168.144.170.129` (`doctl compute droplet list --format PublicIPv4 --no-header`); the unrenewed lease's box is caught by ADR 0208 ruling 5's TTL reaper, but the **subdomain reservation has no timer** and is the part that strands the slug. 6. `rm -rf <root>/app/test-results/standing-rented` once the secret is remembered/spent. **Urgency:** until this runs, the next device drive re-fires — `journey.device.spec.ts:191` folds the absent `facts.json` to `REHEARSAL_SLUG=rehearsal-c` (via `communityNameForSlug` → `Rehearsal C`) and re-claims `rehearsal-c.idss.nz`, a reservation already held whose secret the fresh state dir won't carry (the `#626` shape). That costs a full stand-up plus a member droplet to rediscover. **Hardening worth its own ticket (per the issue's step 5):** the broker's `/v1/subdomains/offboard` reservation has **no TTL failsafe**, unlike the gateway lease (ADR 0208 ruling 5). A stranded reservation blocks its slug indefinitely — which is exactly what makes an orphaned home more expensive than ruling 5 assumes. A session could file this as a follow-up broker feature.
Owner

Swept by agent under ADR 0174, on Ben's explicit go-ahead — closing.

The orphan is gone and the community it stranded is fully released.

Sequence run on elitebook-03, in oc_standing_teardown's own order (release FIRST, while the claim secret still authorises the host — offboard drops the reservation the release route authenticates against):

  1. Remembered before spending (#757). The secret from app/test-results/standing-rented/state/founding-state.json is now in test-results/slug-claims/rehearsal-c.secrets, so nothing was destroyed while it existed in only one place.
  2. POST /v1/gateways/release → 204.
  3. POST /v1/subdomains/offboard → 204.
  4. Wiped both homes — app/test-results/standing-rented (the real one) and $root/test-results/standing-rented (already absent).

Verified after the fact rather than trusted:

  • Droplet destroyed — the idss-gateway tag returns an empty list; 595495831 / 168.144.170.129 is gone.
  • DNS clean. Worth recording precisely, because it briefly looked like a defect and is not one: rehearsal-c.idss.nz, *.rehearsal-c, and _acme-challenge.rehearsal-c all still resolve to 143.198.134.168 — but so does totally-nonexistent-zzz9.idss.nz, and so does the apex. There is a zone-level wildcard *.idss.nz pointing at the product front door, so every name under the zone answers with it whether or not it exists. dig CNAME at those names returns empty and ANY is refused (RFC8482), so name-resolution alone cannot distinguish "record deleted" from "record present" in this zone. The offboard did its job; Issuer.Offboard → CloudflareZone.DeleteRecords deletes the full probe set unconditionally and would have returned an error rather than 204 had it failed. Do not read a resolving <slug>.idss.nz as evidence that an offboard failed.

The live broker is current, incidentally — deployed today 03:17 UTC, and its binary carries DeleteRecordsForIP (#758). Its unit Description still reads build 86d5ef7, which 16c29d78 has since established is hand-placed text that outlived four deploys — not a version. Do not trust that string.

#854 is unblocked and the device drive re-fires on the next tick; with no standing home the carrier will set OC_STANDING_REFOUND=1 and found a fresh community on the freed rehearsal-c name.

**Swept by agent under ADR 0174, on Ben's explicit go-ahead — closing.** The orphan is gone and the community it stranded is fully released. Sequence run on `elitebook-03`, in `oc_standing_teardown`'s own order (release FIRST, while the claim secret still authorises the host — offboard drops the reservation the release route authenticates against): 1. **Remembered before spending (#757).** The secret from `app/test-results/standing-rented/state/founding-state.json` is now in `test-results/slug-claims/rehearsal-c.secrets`, so nothing was destroyed while it existed in only one place. 2. **`POST /v1/gateways/release`** → **204**. 3. **`POST /v1/subdomains/offboard`** → **204**. 4. **Wiped both homes** — `app/test-results/standing-rented` (the real one) and `$root/test-results/standing-rented` (already absent). Verified after the fact rather than trusted: - **Droplet destroyed** — the `idss-gateway` tag returns an empty list; `595495831` / `168.144.170.129` is gone. - **DNS clean.** Worth recording precisely, because it briefly looked like a defect and is not one: `rehearsal-c.idss.nz`, `*.rehearsal-c`, and `_acme-challenge.rehearsal-c` all still *resolve* to `143.198.134.168` — but so does `totally-nonexistent-zzz9.idss.nz`, and so does the apex. **There is a zone-level wildcard `*.idss.nz` pointing at the product front door**, so every name under the zone answers with it whether or not it exists. `dig CNAME` at those names returns empty and `ANY` is refused (RFC8482), so name-resolution alone cannot distinguish "record deleted" from "record present" in this zone. The offboard did its job; `Issuer.Offboard` → `CloudflareZone.DeleteRecords` deletes the full probe set unconditionally and would have returned an error rather than 204 had it failed. **Do not read a resolving `<slug>.idss.nz` as evidence that an offboard failed.** The live broker is current, incidentally — deployed today 03:17 UTC, and its binary carries `DeleteRecordsForIP` (#758). Its unit Description still reads `build 86d5ef7`, which `16c29d78` has since established is hand-placed text that outlived four deploys — not a version. Do not trust that string. `#854` is unblocked and the device drive re-fires on the next tick; with no standing home the carrier will set `OC_STANDING_REFOUND=1` and found a fresh community on the freed `rehearsal-c` name.
ben closed this issue 2026-08-27 04:44:24 +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#887
No description provided.