Separate `PR Review Gates` publication errors from unmet requirements

Merged
DS
1mo ago
+23-5

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 -

2026-10-30 · pre-push review 1 outcome at 39f372115937a3f3258fd4b72c356e1c439a5b53 · iter -

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.