broker: wizard-rent reds on 'claim already taken' — the current REHEARSAL_SLUG (rehearsal-c) is orphan-claimed at the broker, no code path releases it #757
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#757
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Failure
Drive
20260824T232052Z, legwizard-rent, red on the S4a rent step:error-context.md's DOM snapshot at timeout shows the rent card never advanced past the claim step:This is
internal/founding/access.go:379-384—RentServercallso.broker.ClaimSubdomain(access.go:375) for the community slug, gets backclaim.Available == false, and returns aBrokerError{Stage: "claim"}without ever reaching the rent/provision step the test atjourney.rented.spec.ts:173waits on (s4aRent,fixtures/wizard.ts:171-173).Root cause
The slug being claimed is
rehearsal-c(confirmed bytest-results/.../state/founding-state.json:draft.details.slug == "rehearsal-c"), which isREHEARSAL_SLUGfrom the environment (app/tests/e2e/journey.rented.spec.ts:207, falling back toscripts/lib/swarm-identity.sh:41'srehearsal-bdefault only when unset — here it's overridden torehearsal-c). Perdocs/GOTCHAS.md#32, the slug rotates by hand fromrehearsal-bwhen Let's Encrypt walls the identifier set, which happened 2026-08-24 (drive20260824T003513Z).rehearsal-cis now itself claimed at the broker and stuck:broker/internal/broker/broker.go:379-384's claim path 409s whenever a reservation is REDEEMED or still inside its unredeemed TTL (broker.go:219-225 lapsedLocked). Issue #754 (commit9d38ccbdd0456603109755526b903f1a4eac8c0f, landed 2026-08-24T19:50:42Z, hours before this drive) added a 24h TTL (DefaultReservationTTL,broker.go:106) so an abandoned unredeemed claim self-heals — but by design it does NOT add any admin/force-release path (the #754 commit message explicitly rejected that option for security-posture reasons), and a v1/v2 legacy record is grandfathered as permanently REDEEMED with no TTL at all (broker/internal/broker/store.go:23-39,broker.go:114-118).So whichever of these is true, there is currently no way for this checkout or a rehearsal drive to unstick
rehearsal-con its own:rehearsal-cwas claimed by an earlier orphaned drive in v3 format, it self-heals only after its own 24h TTL — which may not have elapsed yet (the slug only rotated torehearsal-cearlier the same day);What plugging it needs
This is broker/ops state outside this checkout (the broker's own reservation ledger), not a defect I can name an exact line fix for or verify with a local test. A human/ops worker needs to:
rehearsal-c.idss.nz— is it v3-unredeemed-and-within-TTL, or a grandfathered legacy record?REHEARSAL_SLUGagain (per GOTCHAS #32's documented procedure, in.sandcastle/.envon the executor — outside this checkout).rehearsal-*slug family, which are never real communities, without widening the security posture for real slugs).No code in this checkout is mechanically wrong;
RentServer's claim-then-persist logic and the broker's TTL/redeem model are both behaving as designed against a live ledger this run's evidence can't fully inspect.drive
20260824T232052Zred atwizard-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 480000msevidence:
test-results/…/20260824T232052Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)rehearsal-c.idss.nz+ its wildcard resolve to a droplet DigitalOcean has taken back #758Close report — #757
Ruled by agent under ADR 0174 — veto anytime.
Landed:
bb8eecffonorigin/main(session: #757 — a slug's claim secret now OUTLIVES the run that minted it; #754's reservation TTL never reached this wedge).The ticket's diagnosis was right about the symptom and wrong about the cure
The ticket offered two readings of the stuck
rehearsal-creservation — v3-unredeemed-and-within-TTL (wait 24h) or v1/v2-grandfathered (needs a new admin path) — and said neither could be settled without the broker's ledger. Both readings are wrong, and it turns outdigsettles it from outside the ledger entirely.Against the authoritative NS (
dolly.ns.cloudflare.com), 2026-08-25T00:2xZ:That is exactly the set
Zone.PutRecordswrites (ADR 0128 + #508's acme-dns delegation). OnlyIssuer.Pointwrites it — andPointcallsRegistry.Redeemthe moment the zone write lands (broker.go). Sorehearsal-cis REDEEMED, and a redeemed reservation never lapses (#278).DefaultReservationTTLbounds only an UNREDEEMED claim — one that died before S5's point. Every drive that reaches S5 redeems. #754 healed a case the standing drive does not hit; the drive's own wedge is permanent, not a 24-hour wait. GOTCHAS #80's rule ("an abandoned claim self-heals in one lease window — no human ever reads the ledger") was too broad and is amended.A second probe pins it further:
POST /v1/subdomains/offboardforrehearsal-c.idss.nzbearing a freshly generated secret answers 403, not 400 and not 204 — the name is held and its stored secret is non-empty, so it is not a v1 legacy record awaiting trust-on-first-use adoption either. (403 is a pure read; nothing was mutated.)Reading trap, now recorded in GOTCHAS #80:
*.idss.nzanswersA 143.198.134.168(the mail droplet) for every unclaimed name at any depth (RFC 4592). "The A record resolves" proves nothing about a slug. Only a value differing from the wildcard's, or a CNAME/NS the wildcard cannot serve, proves a specific record exists.The real defect, and the fix
The offboard that frees a redeemed name needs its claim secret. That secret is the wizard's — minted at S5 into that run's state dir, which was the only place it ever lived, and which retention prunes. A red drive whose teardown offboard failed took the one key with it. That is the whole wedge.
Fixed harness-side (
scripts/lib/rehearsal-droplet.sh), needing no new broker authority:oc_slug_secret_remember/oc_slug_claim_secrets— a per-slug store attest-results/slug-claims/<slug>.secrets, 0700/0600, gitignored. These are secrets: never the repo, never an issue body — the cert store's posture (#532).oc_slug_secrets_harvestis the bootstrap for a slug wedged before the store existed: it mines the retained run dirs, taking a secret only from a run whose state names this slug.oc_rented_offboard_stale_slugspends them inoc_rented_preflight, before the wizard claims.OC_RENTED_SWEEP_STALE=0stands it down alongside the droplet sweep.The sweep probes with offboard, never a claim-check — 400 = nobody holds it, 403 = not ours, 204 = freed. A claim-check of a free slug MINTS a reservation whose secret the sweep would throw away, wedging the very name it came to free for the whole TTL. I know because I did it: my first read of the broker claim-checked
rehearsal-b, which was free, and minted a reservation on it. Undone immediately — offboard with the minted secret returned 204, anddigconfirmed the delete touched nothing, becauserehearsal-bhad no specific records at all (it was the apex wildcard answering all along). Net state onrehearsal-b: unchanged. That trap is now a test and a GOTCHAS line.Red-before-green in
scripts/tests/rehearsal-rented-target-test.sh(new Half 4, suite now 21 checks): store round-trip + perms, harvest picks only this slug's runs and walks newest-first, the sweep stops at the first 204, never calls/claim, is never fatal when every secret is refused, honours the hatch, and a failed teardown still remembers. Siblings re-run green (swarm-identity-test.sh,rehearsal-rented-certs-test.sh,check-harness-drift.sh).On the ticket's step 3 — does the gap need a broker ticket?
Ruling: no admin/force-release. It is a security-posture widening — a new authority that can take a name from its holder — which is a one-way door under ADR 0174 and which #754 rejected for the same reason. And nothing needs it: the drive already legitimately holds the secret, it was simply throwing it away. Narrowing such a path to the
rehearsal-*family would put rehearsal semantics inside the production broker to buy something the harness can do for free.What is NOT closed — read this before the next drive
rehearsal-cwas still held at close (403 above). The fix gives the next rented drive the first chance to free it:oc_slug_secrets_harvestwill mine the retainedtest-results/drive-rented/*/statedirs on the executor for the secret that minted this reservation, and the sweep will spend it. I could not verify that any retained run dir still holds it — this session runs onmatou-dev-server-01, and the drive host's run dirs, the executor's.sandcastle/.env, and the mail droplet's ledger are all unreachable from here (no netbird peer to the mail droplet; noREHEARSAL_SLUG/DO token in this host's.sandcastle/.env).REHEARSAL_SLUG(GOTCHAS #32,.sandcastle/.envon the executor) or read the broker ledger by hand. No new ticket is pre-filed for that — the standing drive's own reporter will file it with live evidence if it happens.needs-triage): the broker destroys a rented gateway without touching the DNS that names it.rehearsal-c.idss.nzand its wildcard still resolve to168.144.165.255, anddoctl compute droplet listshows noidss-gateway-*droplet in the account at all — that address is back in DigitalOcean's pool while our zone still points a wildcard and an ACME delegation at it. Rehearsal blast radius today; the same code path carries a real community's name.STATUS.md lead and GOTCHAS #80 updated in the same commit.
rehearsal-c.idss.nz+ its wildcard resolve to a droplet DigitalOcean has taken back #758rehearsal-cslug with no pre-rent reservation sweep, andoc_standing_teardownbins the claim secret on a red re-found — the name is now permanently wedged (GOTCHAS #80 / #757) #896rehearsal-e.idss.nzreds "already taken" — the single-sourcedREHEARSAL_SLUGis permanently held by the device target's LIVE standing community #1401