Skip to content

test(codex): require agent review coverage before AUTO_OK - #108

Merged
t3chn merged 2 commits into
mainfrom
codex/agent-review-parity-gate
May 16, 2026
Merged

test(codex): require agent review coverage before AUTO_OK#108
t3chn merged 2 commits into
mainfrom
codex/agent-review-parity-gate

Conversation

@t3chn

@t3chn t3chn commented May 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Require recorded agent review coverage before medium/high-risk Codex Signum AUTO_OK.
  • Add offline Codex prompt eval fixtures for missing/reduced agent review evidence.
  • Update Codex skill guidance so final human PR review is not treated as a substitute for AUDIT review artifacts.
  • Refresh Codex prompt eval baseline and smoke checks for the new metric.

Issue

Related: #107

Test plan

  • python3 -m py_compile evals/codex_prompt/checks_codex_prompt.py evals/codex_prompt/run_codex_prompt_eval.py evals/codex_prompt/compare_codex_prompt_eval.py
  • bash tests/test-codex-prompt-evals.sh
  • bash tests/test-codex-prompt-eval-compare.sh
  • bash tests/test-codex-plugin-metadata.sh
  • bash tests/test-policy-scanner-evals.sh
  • bash tests/test-policy-scanner-eval-compare.sh
  • bash tests/test-test-plan-check.sh
  • bash scripts/run-deterministic-tests.sh

Scope

  • No scanner behavior changes.
  • No policy rule changes.
  • No Claude overlay runtime changes.
  • No CI wiring changes.
  • No signum-evolve mutation changes.

Notes

This PR adds prompt/eval guidance and offline invariant coverage. It does not yet implement automatic reviewer CLI orchestration inside Codex runtime.

Why:

- Codex Signum could previously treat medium/high-risk audit output as safe even when agent review evidence was absent or materially reduced.

- Final human PR review should not substitute for review artifacts produced inside the Signum AUDIT phase.

What changed:

- Adds Codex prompt eval invariants and fixtures for agentReviewCoverage and agentReviewArtifacts before medium/high-risk AUTO_OK.

- Updates Codex skill guidance to require recorded agent review evidence and to avoid AUTO_OK when coverage is missing or reduced.

- Refreshes the Codex prompt eval baseline and smoke checks for the new metric.

Testing:

- python3 -m py_compile evals/codex_prompt/checks_codex_prompt.py evals/codex_prompt/run_codex_prompt_eval.py evals/codex_prompt/compare_codex_prompt_eval.py

- bash tests/test-codex-prompt-evals.sh

- bash tests/test-codex-prompt-eval-compare.sh

- bash tests/test-codex-plugin-metadata.sh

- bash tests/test-policy-scanner-evals.sh

- bash tests/test-policy-scanner-eval-compare.sh

- bash tests/test-test-plan-check.sh

- bash scripts/run-deterministic-tests.sh

Risk:

- narrow - this changes Codex prompt guidance and offline eval expectations, not scanner/runtime implementation or CI wiring.
@github-actions github-actions Bot added the intake/pass PR intake passed label May 15, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 139dba52a9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread evals/codex_prompt/checks_codex_prompt.py
Comment thread evals/codex_prompt/checks_codex_prompt.py Outdated
Comment thread evals/codex_prompt/checks_codex_prompt.py Outdated
Why:
- Codex Review found that the new agent review AUTO_OK gate could be bypassed with degraded provider states, placeholder artifact paths, or empty reviewer IDs.
- These are offline eval invariant gaps, not runtime scanner or catalog behavior changes.

What changed:
- Infer reduced agent review coverage directly from non-ready agentReviewCoverage provider states.
- Require medium/high AUTO_OK agent review artifacts to live under the active contract reviews root and be recorded in artifactLayout.artifactRefs.
- Require ready agent review coverage to include a non-empty reviewer ID.
- Add regression fixtures for the three review findings and refresh the Codex prompt eval baseline to 41 fixtures.

Testing:
- python3 -m py_compile evals/codex_prompt/checks_codex_prompt.py evals/codex_prompt/run_codex_prompt_eval.py evals/codex_prompt/compare_codex_prompt_eval.py
- python3 evals/codex_prompt/run_codex_prompt_eval.py --json-output /tmp/codex-agent-review-fix.json
- python3 evals/codex_prompt/compare_codex_prompt_eval.py --baseline evals/codex_prompt/baselines/current.json --candidate /tmp/codex-agent-review-fix.json
- bash tests/test-codex-prompt-evals.sh
- bash tests/test-codex-prompt-eval-compare.sh
- bash tests/test-codex-plugin-metadata.sh
- bash tests/test-policy-scanner-evals.sh
- bash tests/test-policy-scanner-eval-compare.sh
- bash tests/test-test-plan-check.sh
- bash scripts/run-deterministic-tests.sh

Risk:
- narrow - only offline Codex prompt eval checks, fixtures, docs, and baseline are changed.
@t3chn
t3chn merged commit 4b864ed into main May 16, 2026
3 checks passed
@t3chn
t3chn deleted the codex/agent-review-parity-gate branch May 16, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

intake/pass PR intake passed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant