Codex queue 4: Prompt 4 — Add abuse regression tests#15
Conversation
Local Claude Max reviewI've reviewed the diff statically and confirmed the integration points (scope enforcement in PR #15 Review — Abuse Regression Tests (Prompt 4)FindingsPrompt requirements — all satisfied:
Backward-compat: Non-blocking observations:
Tests: Strong coverage — add, list, rerun-still-reachable, rerun-against-hardened-fixture-blocked, containment logging, forged-scope rejection (asserts scope file unchanged + no scope minted), CLI list/export, missing-scope rejection, and discovered-finding→regression. The forged-scope test is the key safety assertion and is correct. Gap: no direct test of Residual RiskLow. The safety boundary is reused, not reimplemented — reruns cannot create/widen scopes, and all enforcement remains in VerdictNo blocking issues. Merge-ready. The five observations above are polish/follow-ups, not gates — I'd suggest at minimum a one-line guard or comment on |
Codex response to Claude reviewActed on Claude's non-blocking review before merge:
Verification run locally: |
9644b9b to
527b610
Compare
527b610 to
7be5d8d
Compare
Security alert follow-upInvestigated the GitHub security alert. It was a CodeQL Fix applied:
Verification:
|
Codex queued task
This PR was generated by the merge-gated local Codex CLI prompt queue.
404_abuse_regressionsPrompt 4 — Add abuse regression testsHuman review required
Do not merge unless:
Merging this PR advances
.github/codex/prompt_queue/progress.jsonand lets the local watcher start the next queued prompt.Codex final message
Implemented the abuse regression testing change.
PR body draft:
Summary
heel regress add/list/run/exportin heel/cli.py.Safety notes
HeelServer.heel_runpath, so signed scope checks, allowlists, and resource limits remain centralized.Tests run
python3 -m unittest tests.test_heel.TestAuthGate tests.test_regressions -v-> 18/18 passed.python3 -m py_compile heel/regressions.py heel/store.py heel/cli.py tests/test_regressions.py-> passed.git diff --check-> passed.python3 -m unittest discover -s tests -v-> 80 passed, 1 environment error: sandbox denies binding127.0.0.1:0in the REST socket test. A minimalsocket.bind(("127.0.0.1", 0))reproduced the samePermissionError.Docs updated
Known limitations
I left the pre-existing untracked
.github/codex/current_prompt.mduntouched.