Reap verify containers whose checkout is gone or whose vite stopped, and restart a dead watchdog (#3210) #3324
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 429 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.363
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3324"
general
weight: 0.35
nick-potts
Fixes #3210.
Summary
A verify Postgres or Mailpit container was removed only by its own checkout's
down.sh. A deleted worktree, a killed watchdog, or a run that ended withoutdown.shleft it running, and the container's name, a hash of a path that may no longer exist, gave nothing a way to find it again. The containers already carryployz.verify.checkout=<worktree>. The newscripts/verify/reap.shuses that label, and everyup.shruns it first.up.shcan replace its container under the same name while a reaper runs.dashboard.up.shraced that checkout's ownup.shand other reapers in every form tried (a lock, stale-lock recovery, self-checking watchdogs). Only a checkout's ownup.shstarts its watchdog, as before. That instance is live, not leaked: its ownup.shordown.shrestores or stops it, and once its checkout is deleted this reaps it.Additive: dev tooling only.
up.shgains one call;idle.shanddown.share unchanged. No new daemon, and nothing in Cloud or the Engine changes.Bets touched: none (dev scripts). New refusal: none.
Not covered: processes orphaned with a deleted checkout (the issue's ppid-1 worker) aren't killed. Their containers are removed; their pid files went with the checkout, and matching them by command line risks other checkouts' processes.
Evidence
tools/verify/reap.test.tsruns the realreap.shagainst temporary checkouts, stand-in vite processes and a stubdockerthat records removals by id. It has 11 cases:VERIFY_REAP_DRY=1: lists and removes nothing;up.shcallsreap.shbefore its firstdocker run.reap.shdoesn't exist.shellcheck reap.shand lint are clean.VERIFY_REAP_DRY=1 scripts/verify/reap.shlisted nothing.Merge Danger
Door: two-way
Blast Radius: verify tooling
Every
up.shcan now remove another checkout's verify container, but only one at least 10 minutes old whose checkout is gone or runs no vite of its own.