open-swe/tests/github
Adam Moussa 1ba5ccc65d
harden PR guards + sidebar after security review
- Mirror upstream #1786's nested-shell / executable-normalization hardening
  into the fork-only pr_verdict_guard.py (verdict-gating is a real fork
  control), keeping it in parity with pr_creation_guard.py.
- Close the glued short-flag bypass (bash -c'...') in BOTH guards: a shell's
  -c argument can be concatenated into the same argv token, which the
  space-separated -c detection missed. Diverges pr_creation_guard.py from
  upstream #1786 by design; to be upstreamed.
- Gate the new #1799 sidebar active-thread refresh on ownership so a non-owner
  viewing a shared thread reads last-known state without persisting a metadata
  write (mirrors the is_owner gate on the single-thread read path).
- Fix an F821 in the #1799 cherry-pick (Mapping import / concrete dict type).

Guards remain intentionally fail-open per the honest-agent threat model;
docstrings narrowed to name the residual exotic-shell / stdin-fed vectors.
2026-07-24 16:03:30 -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(open-swe): explicit-request reviewer verdicts + shell verdict guard (#214) 2026-07-20 15:28:00 -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 harden PR guards + sidebar after security review 2026-07-24 16:03:30 -04:00
test_pr_verdict_guard.py harden PR guards + sidebar after security review 2026-07-24 16:03:30 -04:00
test_repo_extraction.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00