open-swe/agent/review
Adam Moussa b9c348ebba
feat(reviewer): explicit-request verdicts + shell verdict guard
Mention-triggered reviews that explicitly ask for a verdict now submit a
real APPROVE/REQUEST_CHANGES through publish_review; auto-reviews stay
advisory (COMMENT). Authorization is enforced in code: publish_review
honors a verdict only when the dispatching webhook set verdict_requested,
which only the explicit-mention path does.

- request_pr_review gains instructions (forwarded verbatim into an escaped
  requester_instructions data block) and request_verdict
- self-review guard downgrades verdicts on Open SWE-authored PRs; stale
  APPROVEs are best-effort dismissed when later findings land
- new PullRequestVerdictGuardMiddleware blocks gh pr review
  --approve/-a/--request-changes/-r, gh api, and curl verdict fallbacks on
  both the coding-agent and reviewer graphs
- shared escape helper moved to agent/utils/prompt_data.py
2026-07-20 15:06:53 -04:00
..
__init__.py refactor: consolidate reviewer modules into agent/review/ 2026-07-17 13:52:03 -04:00
diff.py refactor: consolidate reviewer modules into agent/review/ 2026-07-17 13:52:03 -04:00
eval_store.py refactor: consolidate reviewer modules into agent/review/ 2026-07-17 13:52:03 -04:00
findings.py refactor: consolidate reviewer modules into agent/review/ 2026-07-17 13:52:03 -04:00
groups.py refactor: consolidate reviewer modules into agent/review/ 2026-07-17 13:52:03 -04:00
publish.py feat(reviewer): explicit-request verdicts + shell verdict guard 2026-07-20 15:06:53 -04:00
reconcile.py refactor: consolidate reviewer modules into agent/review/ 2026-07-17 13:52:03 -04:00
style_collector.py refactor: consolidate reviewer modules into agent/review/ 2026-07-17 13:52:03 -04:00
style_guidance.py refactor: consolidate reviewer modules into agent/review/ 2026-07-17 13:52:03 -04:00
trace_context.py refactor: consolidate reviewer modules into agent/review/ 2026-07-17 13:52:03 -04:00