Skip to content

Verify claim evidence during Strict review and retain unresolved blockers - #458

Merged
tzhouam merged 4 commits into
mainfrom
feat/strict-evidence-review
Nov 25, 2026
Merged

tzhouam merged 4 commits into
mainfrom
feat/strict-evidence-review

Conversation

@tzhouam

@tzhouam tzhouam commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

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_score on 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 fcntl module 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's fcntl import unavailable. The native Windows matrix runs on this PR.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T13:09:58.286337Z cbb3623 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: 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".

Comment on lines +200 to +202
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)):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Comment on lines +189 to +190
if records.repo and records.live:
common["extra_tools"]["read_review_ci"] = records.log_tool()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@tzhouam
tzhouam merged commit 14bee9e into main Nov 25, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant