Repository navigation
Reconcile installed watcher behavior and strict REST evidence - #889
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Code Review
This pull request introduces a strict REST fallback mechanism for GitHub virtual or uncatalogued workflow runs, adding validation for repository, run, job, and step identities, along with robust pagination handling. It also updates the PR watcher to fall back to statusCheckRollup when the GitHub CLI lacks support for certain JSON fields. Feedback on these changes suggests validating that the rollup payload is a dictionary to prevent potential crashes, and tracking an absolute job index across paginated pages to ensure unique error context messages.
The maintained watcher source had diverged from installed behavior. This reconciles the installed improvements with the repository's delivery and queue integrations: distinct workflow-host and validation-target identities, shared authentication handling, deterministic failure evidence, optional provider diagnosis, and blocking waits remain available together.
The combined implementation preserves exact-run head checks and same-run retry settling, discovers failed jobs before a workflow finishes, caches only completed job details by repository/head/run/attempt, and filters unpublished review feedback. Older GitHub CLI versions use strict REST/status-rollup fallbacks that reject malformed or inconsistent evidence. State files retain the restricted basename contract and atomic writes.
Regression coverage includes both installed and repository behavior. The hosted watcher lane runs the PR, workflow, dispatch, delivery, queue, and authentication suites together; fixtures assert stable behavior rather than incidental API call counts or documentation wording. Companion delivery/queue guidance lives in linked references so the core skills remain focused.
Validation: hosted candidate checks and independent semantic review; final required checks and protected merge-queue validation must complete before landing.