Repository navigation
Verify claim evidence during Strict review and retain unresolved blockers - #458
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cbb36230fd
ℹ️ 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".
| if (status in ("missing", "inaccessible", "mismatched") and statement | ||
| and _policy_path(policy, "", records) and records.tracked(records.base, policy, statement) | ||
| and any(_requires_path(statement, path) for path in failed_paths if path)): |
There was a problem hiding this comment.
Check acceptance-policy scope against the affected artifact
When a required artifact is governed by a nested policy such as model/AGENTS.md, passing an empty target to _policy_path always rejects that policy: its directory cannot prefix "". A confirmed missing model/raw.tsv therefore loses its valid acceptance citation, and apply_review_evidence can leave the verdict as APPROVE despite the documented requirement. Pass the affected artifact path into the scope check so scoped acceptance requirements can affect the verdict.
Useful? React with 👍 / 👎.
| if records.repo and records.live: | ||
| common["extra_tools"]["read_review_ci"] = records.log_tool() |
There was a problem hiding this comment.
Expose the CI evidence reader through the harness bridge
For a Claude Code-backed Strict review, this registers read_review_ci only in the in-process tool dictionary. The harness branch in agent_runtime/runner.py does not forward extra_tools, and tool_bridge.py reconstructs the repository tools without this reader. Since providers/claude_code.py also disables native tools, that reviewer cannot retrieve the raw Actions evidence requested by the new claim contract; runtime claims remain unverified and requested scores are withheld even when matching logs are available. Carry the pinned record context through the bridge and register the CI reader there as well.
Useful? React with 👍 / 👎.
Strict now collects revision-bound evidence during the existing investigation, including on reviews with zero inline findings. Callers can request a five-dimension advisory score through
include_scoreon the CLI, MCP, or SDK. The host calculates the total and withholds it when the head moves or a material check is incomplete.The investigation starts with the PR description and issue acceptance criteria. After findings are frozen, the host reconciles active same-head inline threads. An unresolved blocker still affects the verdict when a duplicate or the display budget suppresses its inline comment. Structured and Markdown results use the same verdict.
Tests cover scored and unscored requests on real Git checkouts with scripted model responses, empty and failed ensemble reductions, moved heads, duplicate blockers, negated policy citations, archived SDK results, and frozen replay workers. The Direct counterpart shipped in #457.
The SDK portability matrix also exposed a pre-existing import of the Unix-only
fcntlmodule when selecting an unrelated provider on Windows. The fix defers the import to the trust-store write and requires locking there. All 307 RFC portability cases passed locally with the provider'sfcntlimport unavailable. The native Windows matrix runs on this PR.