wizard-rent 409s on rehearsal-b.idss.nz — a red claim leg leaks the gateway rental with no release path short of 24h TTL reap #686
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.
Reference
Matou/idss#686
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
wizard-rent(leg 2 ofjourney.rented.spec.ts) reds immediately onPOST /v1/gateways/rent:(run
test-results/drive-rented/20260823T033712Z, signature3b0b824f61b8,[data-status="address"]never appears within the 480s ceiling —app/tests/e2e/journey.rented.spec.ts:173).Root cause
The rehearsal harness reuses one fixed slug across every drive by design (
REHEARSAL_SLUGdefaults torehearsal-b,scripts/lib/swarm-identity.sh:41, single-sourced per #575). The broker's rental ledger refusesRent()for a host that already has an unreleased rental —ErrAlreadyRented,broker/internal/broker/rentals.go:126, checked atrentals.go:172-176.The previous drive,
20260823T032037Z, bound that exact host:wizard-rentwent green (droplet134.199.150.252rented —test-results/drive-rented/20260823T032037Z/state/founding-state.json), but the next leg,claim, reded before[data-status="review-and-create"]appeared (legs.jsonin that run dir) — the bug already fixed by a prior healer pass in commit626a0a51.That claim-leg failure had a second consequence nobody healed:
journey.rented.spec.ts:319-321only setsreservedHost/reservedSecretafters5AddressSubdomainsucceeds, so when that call throws, the JS variables stay empty.afterAll's best-effort release block (journey.rented.spec.ts:179-203) is gated onif (reservedSecret), so it never even attempts the release POST — despite the app itself already having durably committed the identical claim secret to disk well before the rent call:Orchestrator.RentServerclaims the subdomain and commitsdraft.Addressto disk atinternal/founding/access.go:387-389, then callsbroker.Rentataccess.go:405(confirmed: that old run'sfounding-state.jsoncarriesaddress.secret = "Y-nJYZwlvxQ8qY1ggydL3_LV1rjqFnxZBLCLr-2LLJY"forrehearsal-b.idss.nzeven though the test's own JS never read it).Traced every real (non-test) call site of the broker's release: the only two are
Orchestrator.ReopenAccess(internal/founding/standup.go:844, fires only on an explicit operator UI action to switch away from a rented access) and the broker's TTL reaper (Rentals.Reap,broker/internal/broker/rentals.go:304-358, default 24h). Neither runs for a drive process that reds and exits mid-sequence. So the rental forrehearsal-b.idss.nzstays bound until ~2026-08-24T03:20:50Z (24h after the leaking drive'sstartedAt) or a manual release — everywizard-rentleg in between will 409 exactly like this one, no code fix in this checkout changes that.Suspected layer
Two distinct gaps, one operational and one in test robustness:
rehearsal-b.idss.nzbound to droplet134.199.150.252. The claim secret needed to call the official release endpoint is recoverable fromtest-results/drive-rented/20260823T032037Z/state/founding-state.json(address.secret) — releasing it (or destroying the droplet and waiting for the next TTL reap to mark the ledger entry released) unblocks the fixed slug immediately. This is a live-infra action, not a code change, and outside a healer's authority to perform unilaterally.journey.rented.spec.tsshould capturereservedHost/reservedSecretright afters4aRentsucceeds (in thewizard-rentleg body,journey.rented.spec.ts:295-305) by readingfounding-state.json— mirroring whatRentServeralready persists ataccess.go:387-389— rather than waiting for theclaimleg to finish. That way a claim-leg failure (or any later leg failure) still letsafterAllrelease the bound rental instead of leaking it for a full TTL window. This fix needs a live broker + real droplet rental to verify (no offline/unit check covers it), so it doesn't meet the healer's "verifiable here" bar either.Worth a design gate too: with
REHEARSAL_SLUGfixed by design (#575), any red between a successful rent and the explicit release leg now wedges every subsequent drive for up to 24h — that tradeoff may be worth revisiting.What plugging it needs
rehearsal-b.idss.nz/ droplet134.199.150.252at the live broker, using the secret above.reservedHost/reservedSecretcapture injourney.rented.spec.tsto right afters4aRentsucceeds, so a later leg's red no longer skips theafterAllrelease attempt.drive
20260823T033712Zred 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/…/20260823T033712Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)swarm-claim host=elitebook-distributed-server-03 run=9093
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #686 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope