feat: require post-merge cleanup safety-gate proof in reviewer reports (Closes #402) #415

Merged
sysadmin merged 3 commits from feat/issue-402-post-merge-cleanup-proof into master 2026-07-08 03:13:43 -05:00
Owner

Summary

Closes #402.

Reviewer final reports could claim post-merge remote branch deletion and local worktree removal without proving the safety gates that make that cleanup safe. This PR adds report-time validation for the cleanup checklist.

Changes

  • post_merge_cleanup_proof.py — branch deletion and worktree removal checklist verifier with CLEANUP_SKIPPED outcome support
  • final_report_validator.py — reviewer.post_merge_cleanup_proof rule for review_pr handoffs
  • review-merge-pr.md — §28A documents the cleanup proof checklist
  • Tests: tests/test_post_merge_cleanup_proof.py (15 cases)

Validation

python3 -m unittest tests.test_post_merge_cleanup_proof -v

All 15 tests passed.

Worktree

branches/feat-issue-402-post-merge-cleanup-proof @ aa1baf8

## Summary Closes #402. Reviewer final reports could claim post-merge remote branch deletion and local worktree removal without proving the safety gates that make that cleanup safe. This PR adds report-time validation for the cleanup checklist. ## Changes - post_merge_cleanup_proof.py — branch deletion and worktree removal checklist verifier with CLEANUP_SKIPPED outcome support - final_report_validator.py — reviewer.post_merge_cleanup_proof rule for review_pr handoffs - review-merge-pr.md — §28A documents the cleanup proof checklist - Tests: tests/test_post_merge_cleanup_proof.py (15 cases) ## Validation python3 -m unittest tests.test_post_merge_cleanup_proof -v All 15 tests passed. ## Worktree branches/feat-issue-402-post-merge-cleanup-proof @ aa1baf8
jcwalker3 force-pushed feat/issue-402-post-merge-cleanup-proof from aa1baf8fe9 to 74f2db4d6a 2026-07-07 12:08:00 -05:00 Compare
jcwalker3 added 2 commits 2026-07-07 16:19:52 -05:00
Adds post_merge_cleanup_proof validation so cleanup claims must carry the
branch deletion and worktree removal checklists, or report CLEANUP_SKIPPED
with an exact blocker.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Rebase onto current prgs/master and fix cleanup-mutations regex so
"Cleanup mutations: none" does not false-positive the proof checklist.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
jcwalker3 force-pushed feat/issue-402-post-merge-cleanup-proof from 74f2db4d6a to 44a7c62dc3 2026-07-07 16:19:52 -05:00 Compare
Author
Owner

pr: #415
branch: feat/issue-402-post-merge-cleanup-proof
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/fix-pr415-conflicts
profile: prgs-author
session_id: unknown
phase: claimed
head_before: 44a7c62dc3
expires_at: 2026-07-08T08:20:13Z
reviewer_active: no

<!-- mcp-conflict-fix-lease:v1 --> pr: #415 branch: feat/issue-402-post-merge-cleanup-proof worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/fix-pr415-conflicts profile: prgs-author session_id: unknown phase: claimed head_before: 44a7c62dc3648291bb68bc5080fc01d548607ce7 expires_at: 2026-07-08T08:20:13Z reviewer_active: no
jcwalker3 added 1 commit 2026-07-08 01:20:39 -05:00
sysadmin approved these changes 2026-07-08 03:02:47 -05:00
sysadmin left a comment
Owner

APPROVED: PR #415 correctly implements post-merge cleanup safety-gate validation and schema requirements. All tests pass with no regressions.

CLEANUP_SKIPPED
cleanup blocker: PR #415 is not merged yet.

APPROVED: PR #415 correctly implements post-merge cleanup safety-gate validation and schema requirements. All tests pass with no regressions. CLEANUP_SKIPPED cleanup blocker: PR #415 is not merged yet.
sysadmin merged commit 4d24c34548 into master 2026-07-08 03:13:43 -05:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Scaled-Tech-Consulting/Gitea-Tools#415