You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow-ups from the independent re-review of #5992 (PAN-5966), comment #5992 (comment).
1. The promote guard must survive a restart (data integrity)
Gap. The promote-in-flight set is in-process only. If the dashboard restarts mid-promote, the set is lost. The reconciler ignores the per-repo promoted_at already written, so it can invalidate a half-landed batch and delete the remaining repos' uat/* branches, which blocks the retry.
Fix. Never invalidate, void or reap a ready generation that has any member repo with promoted_at set. Surface the generation as "partially promoted: resume promote" instead.
2. Train-off evidence order
Gap. With the train off, merged-ids evidence is checked before the ready set (uat-reconciler.ts:335). An old merged PR on a reused feature/<id> branch can invalidate a batch whose member is still ready, which the train-on path would keep.
Fix. Check the ready set first.
3. Cleanup backoff
A failed cleanup retries every tick with no backoff. Add an exponential backoff, capped at about 1 hour, recorded per generation.
4. Smaller items
The worktree "already gone" pattern is broad (uat-generation-deps.ts:47); tighten it to git's exact message.
Residue-sweep repo keys like ../uat-other could reach a sibling uat-* folder. Reject repo keys containing path separators or ...
Acceptance
Each item gets a test that fails when the fix is reverted.
workspace removed; feature branch kept (close_out.delete_feature_branch is off); No tmux sessions or Herdr panes found; No shadow state found; No legacy planning directory found; Stopped Docker containers; No orphaned processes found; No worker worktrees; Removed workspace directory after worktree removal failed; Pruned 2 agent directories (transcripts and state kept); No strike branch strike/pan-5995 found; Pruned 0 checkpoint ref(s) for agent-pan-5995, planning-pan-5995, strike-pan-5995; No specialist registry entries for PAN-5995
Activity
eltmon commentedon Dec 4, 2026
Closed via close-out ceremony
Definition of Done
Gate: passed — misses: review