feat(agent): added implementation authorization gate for branch/PR tools
- Added `is_implementation_authorizer` check requiring OWNER or allowlisted maintainer to authorize implementation work. - Blocked `gh_push_branch` and `gh_open_pr` for unclassified/enhancement/proposal issues without explicit directive authorization. - Auto-allowed bug and documentation issues without requiring a directive. - Propagated `authorizes_impl` flag through events, server, tasks, and worker bindings.
This commit is contained in:
@@ -1500,7 +1500,7 @@ def test_webhook_directive_on_unknown_issue_is_queued_with_metadata(env) -> None
|
||||
assert row is not None
|
||||
assert row.state == "queued"
|
||||
directive = row.payload.get("_robomp_directive")
|
||||
assert directive == {"body": "please refactor X", "author": "can1357", "pragmas": []}
|
||||
assert directive == {"body": "please refactor X", "author": "can1357", "pragmas": [], "authorizes_impl": True}
|
||||
|
||||
|
||||
def test_webhook_maintainer_bypasses_rate_limit(
|
||||
|
||||
Reference in New Issue
Block a user