clan-lab reap destroys a droplet that is still being CREATED — a newborn's clan-lab-expires tag is not yet visible, labs() reads expiry 0, and the hourly :17 sweep kills it mid-create --wait (drive 20260831T231010Z parked at preflight, nothing filed) #1092
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.
Dependencies
No dependencies set.
Reference
Matou/idss#1092
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
20260831T231010Z(targetdevice, the first drive carrying the #1088 fix) never ran a leg. Aftereval gate: GREENthe preflight'soc_device_createranclan-lab create --purpose rehearsal --fresh --ttl 6and died:The 404 came from
doctl compute droplet create --wait's own readiness poll — the POST had succeeded and DO had issued id 596747206.Diagnosis — it was destroyed, from outside, 18 seconds after it was born
DO's action log (
doctl compute action list, resource 596747206):The destroy STARTED before the create COMPLETED. The only thing that destroys
clan-lab-tagged droplets out of band is the hourly reaper on matou-workstation:17 * * * * … scripts/clan-lab-reap.sh— i.e. a tick at 00:17:0x, squarely inside the ~30 s create window.Why the reaper thought a 6-hour-TTL newborn was expired —
.claude/skills/clan-lab/clan-lab:DO attaches
--tag-namesto a droplet AFTER the resource exists; during the create windowdroplet list --tag-name clan-labcan already return the droplet (theclan-labtag lands first) whileclan-lab-expires-<epoch>is not yet on it.labs()then prints expiry 0, and0 -lt nowis always true → destroyed.cmd_reap's own comment already names this hole for the tag-DELETION case ("labs() then reads expiry 0, and the next hourly reap destroys a running lab … Unknown must mean 'leave it', never 'orphan'") — the newborn case is the same hole from the other side, and the reap loop never applied the rule it states.Two second-order effects:
PARKED (exit 3) host-local refusalis by design silent (#1035) — correct for a genuinely local refusal, but here it masked an external destroy and cost a full prep cycle (~40 min rebuild + gate) plus the 30-min backoff with zero record on the tracker. Session found it only by reading the executor log.Fix (two-way door, ADR 0174 — strictly LESS destructive)
cmd_reap: a lab with no parsable expiry (exp= 0) is never reaped — log it loud (skipping <name>: no clan-lab-expires tag (still being created, or its tag object was deleted) — refusing to treat unknown as expired) and count it in the summary, so the next hourly tick gets it once the tag is visible or a human sees the anomaly.--allkeeps its explicit semantics. Guard with a red-before-green case inscripts/tests/clan-lab-reap-test.sh(the stubdoctlreturns aclan-lab-tagged droplet whose Tags column carries noclan-lab-expires-*; assert nodroplet deleteis issued and the skip line is printed). GOTCHAS entry in the same commit.Evidence: elitebook
rehearsal-executor.log(the84ebd887create + 404), DO action ids 3380153541 / 3380154493, workstation crontab line17 * * * *.Blocks nothing structurally (#854 is already re-driving: the 00:50 cycle's device
clan-lab-rehearsal-957f2755survived because no reaper tick fell in its create window) — filed asrehearsal-183because it can eat any future device drive at random.