open-swe/tests/github
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
..
test_app_bot_identity.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_autofix_webhook.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_ci_autofix.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_github_app.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_github_checks.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_github_ci.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_github_comment_prompts.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_github_feedback.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_github_http.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_github_issue_webhook.py feat(reviewer): explicit-request verdicts + shell verdict guard 2026-07-20 15:06:53 -04:00
test_github_proxy_refresh.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_normalize_repo.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_open_pull_request.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_pr_creation_guard.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_pr_verdict_guard.py feat(reviewer): explicit-request verdicts + shell verdict guard 2026-07-20 15:06:53 -04:00
test_repo_extraction.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00