Separate `PR Review Gates` publication errors from unmet requirements
This pull request was posted by codex-tui using gpt-6.1-sol on behalf of David.
Why we make these changes
An unmet review requirement makes the publisher job fail even though its commit status was published correctly. Earlier red publisher checks remain after a later evaluation satisfies the gate. Follow-up to #11727 and #11880; no separate issue.
New public surface
None.
User-visible behavior
An unmet gate still publishes a failing Gate: … status, while successful publication now exits 0. Evaluation, validation, PR-resolution and publication errors still fail closed. Gate decisions, status contexts/descriptions, trust checks and fork handling remain unchanged.
Verification
The unmet-gate regression fails against unchanged main code. Targeted gate/review pytest, touched-file Pyright and commit hooks pass. Proving tests: gate status and publisher error handling.
What changes for existing users
No library behavior changes. Existing red publisher check runs on open PRs clear only when those PRs get a new run using the deployed fix. The privileged workflow executes default-branch code, so this PR's live publisher checks cannot exercise the fix before merge.
PR decisions
2026-10-30 · pre-push review 1 of 3 at 39f372115937a3f3258fd4b72c356e1c439a5b53 · iter -
- Decision: Reserved dispatch; outcome pending.
- Why: Reviewed tree 90e0b72b8233fd34dc3ce308f5ec35456783105c; full branch scope 79e157e8b7bbea20d2354740e981478dd54dbb23..39f372115937a3f3258fd4b72c356e1c439a5b53; policy 79e157e8b7bbea20d2354740e981478dd54dbb23.
- Source: https://github.com/pydantic/pydantic-ai/tree/39f372115937a3f3258fd4b72c356e1c439a5b53
- Session: 01a18af0-e77a-72e0-afc5-70fddbe70405
2026-10-30 · pre-push review 1 outcome at 39f372115937a3f3258fd4b72c356e1c439a5b53 · iter -
- Decision: No findings; reviewer returned current at 39f372115937a3f3258fd4b72c356e1c439a5b53.
- Why: Reviewed tree 90e0b72b8233fd34dc3ce308f5ec35456783105c; full branch scope 79e157e8b7bbea20d2354740e981478dd54dbb23..39f372115937a3f3258fd4b72c356e1c439a5b53; fresh Luna reviewer ran from policy-base; candidate remained clean and unchanged.
- Source: https://github.com/pydantic/pydantic-ai/tree/39f372115937a3f3258fd4b72c356e1c439a5b53
- Session: 01a18af0-e77a-72e0-afc5-70fddbe70405
Checklist
- No breaking changes in accordance with the version policy.
- Any permitted compatibility impact has a label, warning, migration and release note, and an exact API-check waiver if the gate reports it.
- PR title is fit for the release changelog.