feat: move duplicate-work detection before author mutations (Closes #400) #413

Merged
sysadmin merged 3 commits from feat/issue-400-duplicate-work-preflight into master 2026-07-07 15:40:24 -05:00
Showing only changes of commit 0bad26230b - Show all commits
+2 -1
View File
@@ -189,7 +189,8 @@ class TestMcpDuplicateRecheck(unittest.TestCase):
"forbidden_operations": [],
"audit_label": "test-author",
})
def test_create_pr_returns_handoff_on_duplicate(self, _profile, mock_gate):
@patch("mcp_server.get_auth_header", return_value="token x")
def test_create_pr_returns_handoff_on_duplicate(self, _auth, _profile, mock_gate):
self._write_lock()
mock_gate.return_value = {
"block": True,