feat: add root checkout guard for contaminated control checkout (Closes #475) #488

Merged
sysadmin merged 1 commits from feat/issue-475-root-checkout-guard into master 2026-07-08 10:12:53 -05:00
1 Commits
Author SHA1 Message Date
sysadminandClaude Opus 4.8 be592d6d4d feat: add root checkout guard for contaminated control checkout (Closes #475)
Introduce root_checkout_guard helper and enforce it in verify_preflight_purity
so author, reviewer, and merger mutations fail closed when the stable control
checkout is on the wrong branch, detached, dirty, or diverged from prgs/master.
Isolated branches/... worktrees and reconciler paths remain allowed.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-07-08 02:23:27 -04:00