rehearsal: retiring a standing slug never releases its rental — the broker renews the retired gateway's lease every pass, so rehearsal-c/-d billed for a day past retirement (rental-reap kept them by rule) #991
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#991
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?
Symptom
doctl compute droplet liston 2026-08-29 14:30Z:idss-gateway-rehearsal-c-b655(24 h past its slug's retirement, #941) andidss-gateway-rehearsal-d-ec79(retired this afternoon, LE-walled #986–#989) both active and billing.rental-reap.shkeeps both every hour — correctly, by its own rule: each carries a liveidss-rental-expires-*lease that advances +3600 s every sweep (1788093909 → 1788097509).Cause
The broker's reaper renews the lease of every healthy box on every pass (
rentals_release_owed_test.go:19, #741). A rented gateway therefore lives until something callsPOST /v1/gateways/releasewith the wizard's claim secret. Retiring a standing slug is done by hand —mv test-results/standing-rented standing-rented.retired-<slug>-<date>+ editingREHEARSAL_SLUG— and nothing in that procedure releases the rental. The executor's next tick then saysstanding renew: no host/secret on record — nothing to renewand forgets the box, while the broker keeps it alive forever. The claim secret is right there in the retired dir (state/…claimSecret), andoc_rented_teardownalready knows the call.Rule it needs
retire-standing.sh(or an executor verb) that does the slug rotation atomically: release the rental through the broker with the retired state's claim secret (POST $IDSS_BROKER_URL/v1/gateways/release {"host":"<slug>.idss.nz"}→ 204; the broker destroys the box and clears its DNS, #758), then move the standing home, then rewriteREHEARSAL_SLUG. Loud on a non-204 — a retired slug whose rental is still open must be named, never silent.rental-reap.shnames a kept box whose slug is not the executor's currentREHEARSAL_SLUGand whose lease is only alive because the broker keeps renewing it (flagged=, notkept=) — the leak this ticket found would then be visible in the hourly log instead of on the DO bill.mvleaves the broker renewing its gateway forever".The two
clan-lab-rehearsal-*boxes in the same listing are member-device targets carryingclan-lab-expires-*tags;clan-lab-reap.shreaped a sibling at 13:17Z and will take those when they lapse — not this ticket.swarm-claim host=elitebook-distributed-server-03 run=14150
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #991 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
rehearsal-e.idss.nzreds "already taken" — the single-sourcedREHEARSAL_SLUGis permanently held by the device target's LIVE standing community #1401rehearsal-e.idss.nzreds "already taken" — the single-sourcedREHEARSAL_SLUGis permanently held by the device target's LIVE standing community #1401