founding (rented, own domain): choosing Access again drops the broker claim recorded for the rental, so the retry is refused with "name already taken" for 24 h #2200
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.
Dependencies
No dependencies set.
Reference
Matou/idss#2200
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?
What happened
TuIA re-founding (own domain
tech.tuia.co, rented Access), app 2026.11.3458 atb2d4ffed, 2026-11-18.tu-iaat the broker as the rental's ledger key, recorded it on Access (RentalHost/RentalSecret, the #2189 fix), then failed at provision. That failure was the DigitalOcean size withdrawal, fixed by #2198 / GOTCHAS #420.claim — That community name is already taken, so it couldn't be claimed — pick a different name. that name is already taken.The draft had no
rental_hostorrental_secretleft ondraft.access. The broker'sreservations.jsonstill heldtu-ia, claimed at 04:06 and never used, under a secret the app had lost. The name was wedged for the full unredeemed TTL (24 h). It was cleared by hand: the reservation was deleted from the broker ledger, backed up atreservations.json.bak-20261118-tu-ia.Why
internal/founding/access.go, the rent step:d.Access.RentalHost/d.Access.RentalSecret(the "Resume" branch).d.Accesswith a fresh choice, so the recorded claim is dropped.ClaimSubdomain(d.Details.Slug)again, and the broker answers "taken". From the broker's side that's correct: an unredeemed claim inside its TTL with a different caller.This affects every own-domain rented founding that steps back to Access after a failed rent. A subdomain Address is probably not affected, because its claim lives on
d.Address, but that's worth checking.Fix (proposed)
When Access is set again on a draft that has an unredeemed rental claim:
RentalHost/RentalSecretover to the new Access choice whenever the community slug is unchanged. This is the simplest fix; orThen the retry takes the Resume branch. Seam: an orchestrator test where the first rent fails at provision, Access is set again with a different region or preset, and the retry rents under the same host and secret with no second
ClaimSubdomain.Related: #2189, GOTCHAS #230, #318, #420;
internal/founding/access.go(rent step,rentClaim,nameTakenError).Triage: bug → ready-for-agent
Verified in code. Reproduced the root cause by reading
internal/founding:d.Access.RentalHost != "", reusingd.Access.RentalHost/d.Access.RentalSecretinstead of re-claiming the slug (the #2189 fix).RentServer(the "choose Access again" path) assigns a freshAccessChoicetod.Accesswith no carry-over ofRentalHost/RentalSecret. So stepping back to Access after a failed rent drops the recorded claim, and the next build callsClaimSubdomain(d.Details.Slug)again → the broker returns "taken" (by us, inside the unredeemed TTL) →nameTakenError. Confirmed exactly as reported.rentClaimreads the claim fromd.Address(Host/Secret), andRentServeronly replacesd.Accessand advances to the Address step — it never touchesd.Address. So a subdomain Address's claim survives re-choosing Access. The bug is specific to own-domain rented foundings whose rental ledger key lives ond.Access.RentalHost.No existing implementation of carry-over/release was found; not already fixed. No matching
.out-of-scope/entry.Ruled by agent under ADR 0174 — veto anytime
The ticket proposes two fixes (carry the claim over vs. release it at the broker). Picking between them is a two-way door: revertible by a later commit and provable by the orchestrator seam test the ticket already specifies; it is not on the one-way-door list (no personal credentials, security widening, member-facing trust accept, data destruction, or non-routine spend).
Ruling: take fix (1) — carry
RentalHost/RentalSecretover to the new Access choice whenever the community slug is unchanged. It is the local, self-contained change; it needs no new broker release door; and it keeps the existing Resume branch as the single reuse path. Fix (2) (release at the broker) is left for a later ticket if an unredeemed-reservation release door is ever added — not required here. What proves it: the orchestrator seam test below.Agent Brief
Category: bug
Summary: Re-choosing Access on a rented, own-domain founding drops the unredeemed broker claim recorded on the draft, so the retry is refused "name already taken" for the full 24 h TTL.
Current behavior:
A rented founding with an own-domain Address records the rental's broker ledger key (the community slug claimed at the broker) onto the Access choice (
RentalHost/RentalSecret, #2189). If the first rent fails after that claim (e.g. provision fails), and the operator steps back to the Access step and picks a new region/size, the Access choice is replaced wholesale and the recorded claim is lost. The next build re-claims the same slug at the broker, which refuses it as already-claimed (by this same app, inside its unredeemed TTL), surfacing a plain-language "that community name is already taken" error that persists for ~24 h until the reservation expires or is cleared by hand.Desired behavior:
When the Access step is set again on a draft that already carries an unredeemed rental claim, and the community slug is unchanged, the new Access choice must retain the existing
RentalHost/RentalSecret. The subsequent build then takes the existing Resume branch and rents under the same host + secret, with no secondClaimSubdomaincall. A genuinely different community slug (if that is even reachable at this step) must not reuse a stale claim.Key interfaces:
AccessChoice. It must carry the prior choice'sRentalHost/RentalSecretonto the new one when the draft's community slug is unchanged.RentalHost/RentalSecretrather than re-claim) is the behavior to preserve and now reach on this path; do not add a second reuse path.rentClaim/ the subdomain-Address path is already correct (claim lives on the Address) and must stay unchanged.Acceptance criteria:
RentalHost/RentalSecret, then fails at provision; Access is set again with a different region or preset; the retry rents under the same host + secret and makes no secondClaimSubdomaincall (assert on the fake broker's claim count).nameTakenError) refusal on this path.go test ./internal/founding/...passes.Out of scope:
reservations.jsoncleanup.Related: #2189, GOTCHAS #230, #318, #420.
swarm-claim host=bens-mac-04 run=66744
(automated multi-host claim — lowest live claim id works this ticket)
⏩ independent reviewer for #2200 — verdict
unauthenticatedreview JSON
close-report for #2200 — status
success✅ close-report gates passed — every claim verified against the pushed worker branch
sandcastle/worker/20261118061530-318464(pre-land — the host promotes it tomainonly after its post-run verify, #193/#283); issue closed.envelope