feat: reject stale already-landed controller handoff fields (Closes #299) #371

Merged
sysadmin merged 7 commits from feat/issue-299-already-landed-handoff into master 2026-07-07 09:00:07 -05:00
Owner

Summary

Implements issue #299: when the already-landed gate fires, controller handoffs must not retain stale review/merge fields and must stay consistent with the narrative report.

Changes

  • Add reviewer_already_landed_handoff.py with assess_already_landed_handoff_report()
  • Reject Pinned reviewed head, Scratch worktree used, legacy Mutations/Workspace mutations: None when git fetch or other mutations occurred
  • Require Candidate head SHA, Reviewed head SHA: none, Review worktree used: false
  • Detect narrative vs controller handoff drift on eligibility class, reviewed SHA, and worktree usage
  • Wire verifier into build_final_report and export from review_proofs
  • Tests in tests/test_reviewer_already_landed_handoff.py

Verification

pytest tests/test_reviewer_already_landed_handoff.py tests/test_llm_workflow_split.py::test_already_landed_handoff_verifier_exported -q

12 passed

## Summary Implements issue #299: when the already-landed gate fires, controller handoffs must not retain stale review/merge fields and must stay consistent with the narrative report. ## Changes - Add `reviewer_already_landed_handoff.py` with `assess_already_landed_handoff_report()` - Reject `Pinned reviewed head`, `Scratch worktree used`, legacy `Mutations/Workspace mutations: None` when git fetch or other mutations occurred - Require `Candidate head SHA`, `Reviewed head SHA: none`, `Review worktree used: false` - Detect narrative vs controller handoff drift on eligibility class, reviewed SHA, and worktree usage - Wire verifier into `build_final_report` and export from `review_proofs` - Tests in `tests/test_reviewer_already_landed_handoff.py` ## Verification ``` pytest tests/test_reviewer_already_landed_handoff.py tests/test_llm_workflow_split.py::test_already_landed_handoff_verifier_exported -q ``` 12 passed
jcwalker3 added 1 commit 2026-07-07 04:42:21 -05:00
Add assess_already_landed_handoff_report verifier to block Pinned reviewed
head, Scratch worktree used, legacy Mutations/Workspace mutations None when
git fetch or other mutations occurred, and narrative/handoff drift after the
already-landed gate fires. Wire into build_final_report and review_proofs.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Author
Owner

Ready for review. Closes #299.

Verifier: reviewer_already_landed_handoff.assess_already_landed_handoff_report()
Tests: pytest tests/test_reviewer_already_landed_handoff.py -q (12 passed)

Ready for review. Closes #299. Verifier: `reviewer_already_landed_handoff.assess_already_landed_handoff_report()` Tests: `pytest tests/test_reviewer_already_landed_handoff.py -q` (12 passed)
jcwalker3 added 1 commit 2026-07-07 08:17:40 -05:00
jcwalker3 added 1 commit 2026-07-07 08:31:49 -05:00
jcwalker3 added 1 commit 2026-07-07 08:37:20 -05:00
jcwalker3 added 1 commit 2026-07-07 08:44:47 -05:00
sysadmin approved these changes 2026-07-07 08:50:13 -05:00
Dismissed
sysadmin left a comment
Owner

Review summary (PR #371 / #299)

Workflow: skills/llm-project-workflow/workflows/review-merge-pr.md (hash c20091c5a5fb)

Scope: Adds reviewer_already_landed_handoff.py verifier and wires it into build_final_report to reject stale controller-handoff fields after the already-landed gate fires. Conflict resolution with master correctly retains both this verifier and the #289 assess_infra_stop_handoff_report export.

Files reviewed:

  • reviewer_already_landed_handoff.py
  • review_proofs.py
  • tests/test_reviewer_already_landed_handoff.py
  • tests/test_llm_workflow_split.py

Validation (official PR-head, worktree branches/review-pr371-issue-299-already-landed-handoff, head 3c2dd055fa3a):

  • Targeted: 13 passed
  • Related regressions: 24 passed, 1 failed (test_clean_reviewer_report_passes)
  • Full suite: 1371 passed, 1 failed, 6 skipped
  • Baseline master e7a1e18: same single failure — pre-existing, not introduced by this PR

Checks: author-safety pass (reviewer sysadmin ≠ author jcwalker3); not already-landed; linked issue #299 open; no prior REQUEST_CHANGES; worktree clean before/after validation.

Approved.

## Review summary (PR #371 / #299) **Workflow:** `skills/llm-project-workflow/workflows/review-merge-pr.md` (hash `c20091c5a5fb`) **Scope:** Adds `reviewer_already_landed_handoff.py` verifier and wires it into `build_final_report` to reject stale controller-handoff fields after the already-landed gate fires. Conflict resolution with master correctly retains both this verifier and the #289 `assess_infra_stop_handoff_report` export. **Files reviewed:** - `reviewer_already_landed_handoff.py` - `review_proofs.py` - `tests/test_reviewer_already_landed_handoff.py` - `tests/test_llm_workflow_split.py` **Validation (official PR-head, worktree `branches/review-pr371-issue-299-already-landed-handoff`, head `3c2dd055fa3a`):** - Targeted: 13 passed - Related regressions: 24 passed, 1 failed (`test_clean_reviewer_report_passes`) - Full suite: 1371 passed, 1 failed, 6 skipped - Baseline master `e7a1e18`: same single failure — pre-existing, not introduced by this PR **Checks:** author-safety pass (reviewer `sysadmin` ≠ author `jcwalker3`); not already-landed; linked issue #299 open; no prior REQUEST_CHANGES; worktree clean before/after validation. Approved.
jcwalker3 added 1 commit 2026-07-07 08:55:42 -05:00
Merge prgs/master and keep both already-landed-handoff (#299) and
inventory-worktree (#293) verifiers wired in build_final_report.
jcwalker3 added 1 commit 2026-07-07 08:58:49 -05:00
sysadmin approved these changes 2026-07-07 08:59:52 -05:00
sysadmin left a comment
Owner

All tests pass successfully after merging master (1417 passed, 1 failed [pre-existing]). Reviewed the implementation of assess_already_landed_handoff_report in reviewer_already_landed_handoff.py and the test coverage in tests/test_reviewer_already_landed_handoff.py. It correctly detects and rejects stale review / merge / worktree fields in the controller handoff and prevents narrative / handoff drift when the already-landed gate fires. Verified that the remaining failure is pre-existing on master.

All tests pass successfully after merging master (1417 passed, 1 failed [pre-existing]). Reviewed the implementation of `assess_already_landed_handoff_report` in `reviewer_already_landed_handoff.py` and the test coverage in `tests/test_reviewer_already_landed_handoff.py`. It correctly detects and rejects stale review / merge / worktree fields in the controller handoff and prevents narrative / handoff drift when the already-landed gate fires. Verified that the remaining failure is pre-existing on master.
sysadmin merged commit ae566d5cd1 into master 2026-07-07 09:00:07 -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#371