feat: gate author work on early duplicate-work detection (Closes #400) #414

Closed
jcwalker3 wants to merge 1 commits from feat/issue-400-early-duplicate-work-gate into master
Owner

Summary

Closes #400.

Moves duplicate-work detection before claim, lock, and PR creation so author sessions cannot implement and push duplicate work when an open PR already exists.

Changes

  • author_duplicate_work_gate.py — shared assessment for open PRs, matching branches, and active claims
  • gitea_mark_issue, gitea_lock_issue, gitea_create_pr — server-side enforcement
  • gitea_assess_author_duplicate_work — read-only preflight for commit/push/edit stages
  • work-issue.md — early gate workflow requirements
  • Tests: tests/test_author_duplicate_work_gate.py (7 cases)

Validation

venv/bin/python -m pytest tests/test_author_duplicate_work_gate.py tests/test_review_proofs.py::TestWorkIssueFinalReport -q

17 passed

Worktree

branches/issue-400-early-duplicate-work-gate @ 6ca879d

## Summary Closes #400. Moves duplicate-work detection before claim, lock, and PR creation so author sessions cannot implement and push duplicate work when an open PR already exists. ## Changes - `author_duplicate_work_gate.py` — shared assessment for open PRs, matching branches, and active claims - `gitea_mark_issue`, `gitea_lock_issue`, `gitea_create_pr` — server-side enforcement - `gitea_assess_author_duplicate_work` — read-only preflight for commit/push/edit stages - `work-issue.md` — early gate workflow requirements - Tests: `tests/test_author_duplicate_work_gate.py` (7 cases) ## Validation ``` venv/bin/python -m pytest tests/test_author_duplicate_work_gate.py tests/test_review_proofs.py::TestWorkIssueFinalReport -q ``` **17 passed** ## Worktree `branches/issue-400-early-duplicate-work-gate` @ `6ca879d`
jcwalker3 added 1 commit 2026-07-07 12:08:19 -05:00
Add author_duplicate_work_gate and enforce it at claim, lock, and PR
creation. Expose gitea_assess_author_duplicate_work for pre-commit/push
checks and extend work-issue final-report verification.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
jcwalker3 force-pushed feat/issue-400-early-duplicate-work-gate from 6ca879d298 to 7f97de1ed6 2026-07-07 12:08:19 -05:00 Compare
sysadmin closed this pull request 2026-07-07 16:17:30 -05:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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