Identify review gate observer runs by workflow path

Merged
DS
1mo ago
+16-9

This pull request was posted by codex-tui using gpt-6.1-sol on behalf of David.

Why we make these changes

Review-event wake-ups fail with Unrecognized review gate wake-up: GitHub returns the observer's custom run title in REST name (observed run). Follow-up to #11727; no separate issue. Identify the source using its server-returned workflow path and permitted event.

New public surface

None.

User-visible behavior

Observer completions with custom titles now reach PR association lookup and refresh the exact observed PR head. Repository identity, unique server association, exact SHA/head repository and current-head write checks remain required. Tests execute the actual resolver and pending-status JavaScript, including misleading titles and rejected source identities.

Verification

The regression fails against main before the fix. Targeted gate pytest, touched-file Pyright and commit hooks pass. Proving workflow execution test.

What changes for existing users

Review events can refresh review-gate statuses; library behavior is unchanged. Deliberately retain the PR Bots verifier's fixed-name check: that workflow has no custom run title, its tests enforce this, and live runs return PR Bots.

PR decisions

2026-10-29 · Retain the unaffected PR Bots verifier · iter -

  • Decision: Keep the PR Bots name check in verified_review_run; only the observer resolver reproduces this defect.
  • Why: bots.yml declares no custom run-name, its tests enforce that constraint, and current REST runs return PR Bots. Changing the verifier would widen this fix without a reproduced failure.
  • Source: https://github.com/pydantic/pydantic-ai/actions/runs/40934105452
  • Session: 01a188fb-4e46-7453-b1b0-5f55bc5bd645

2026-10-29 · pre-push review 1 of 3 at 6fdfd04821df95068cd89d6ec18d4b27312b2c61 · iter -

2026-10-29 · pre-push review 1 outcome at 6fdfd04821df95068cd89d6ec18d4b27312b2c61 · 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.