Skip fork `pull_request` completions in `Agent Provider Health`

Merged
DS
2mo ago
+49-1

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

Fork PRs do not receive our provider secret, but their unknown-quota artifacts were promoted to provider-wide incidents. Those incidents blocked trusted agent workflows with healthy quota, as seen in #9751, #9753, and #9755.

Exclude fork pull_request completions at the trusted Agent Provider Health monitor job. Enforce that condition in the existing workflow policy checker so the former repository-only gate fails CI.

New public surface: none.

User-visible behavior: Before: a fork pull_request completion could reach the monitor without provider credentials and publish quota_unknown. After: the monitor job is skipped for that completion.

Verification: The regression accepts the current monitor and rejects the condition that opened #9753. The targeted policy tests, live repository policy check, strict type check, commit hooks including YAML and Zizmor, and CI pass.

Existing users: Library behavior is unchanged. Same-repository and privileged workflow completions, scheduled quota checks, and manual recovery retain their existing behavior.

The GitHub skip behavior takes effect after merge because workflow_run uses the default-branch workflow. Fresh quota-gated recovery already closed #9753 and #9755.

Checklist

  • No breaking changes in accordance with the version policy.
  • Any permitted compatibility impact has a label, warning, migration, release note, and exact API-check waiver.
  • PR title is fit for the release changelog.