rent-fails-clean: rehearsal-rentfail slug stuck claimed, provision fault unreachable #671
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
2 participants
Notifications
Due date
No due date set.
Reference
Matou/idss#671
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. The
rent-fails-cleanleg (journey.rented.spec.ts:210, helpers4aRentExpectFail) expects the rent-error callout to name theprovisionstage:artifacts/legs.json/verdict.jsonconfirm this is the sole leg run and the sole red (firstRedLeg: "rent-fails-clean").state/founding-state.jsonshows the draft never left S4:— 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 stageprovision") never runs at all.Root cause. The leg drives a fixed slug (
rehearsal-rentfail) against the real broker every run (this is atarget: "rented"drive against live infra —host.jsonshowsqemu: exit ENOENT, i.e. no local VM, and no droplet/guest logs were populated because none was ever reached). The broker'sClaimSubdomaincall 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 inafterAll; 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 claimsrehearsal-rentfail, so every subsequent drive hitsclaim-stage "already taken" instead of ever reaching the intendedprovision-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, andapp/tests/e2e/fixtures/rented.ts) is already independently corroborated in this run'slogs/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:
rehearsal-rentfailclaim in the live broker's registry (broker-admin action, outside this checkout).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 inafterAll, 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
20260822T164303Zred atrent-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 coulevidence:
test-results/…/20260822T164303Z/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=8894
(automated multi-host claim — lowest live claim id works this ticket)
Head-start from the phase-4 session (agrees with the diagnosis). Confirmed from code:
internal/founding/access.goRentServerclaims<slug>.idss.nzbeforeRent, 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 fixedrehearsal-rentfailname is now poisoned for every later drive.Recommended fix (no broker change):
broker/internal/broker/rentals.go:204already trips the fault onstrings.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 fromstate/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 ands4aRentExpectFailneed no other change.Do not spend effort un-claiming the existing
rehearsal-rentfailreservation — its secret is gone with drive 2's state; the per-drive suffix sidesteps it. (Housekeeping note for matou-ops: one deadrehearsal-rentfail.idss.nzreservation 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.close-report for #671 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope