Skip to content

Reconcile installed watcher behavior and strict REST evidence - #889

Merged
GraciousGazelles merged 17 commits into
mainfrom
codex/watcher-contract-reconciliation-20260921
Sep 21, 2026
Merged

GraciousGazelles merged 17 commits into
mainfrom
codex/watcher-contract-reconciliation-20260921

Conversation

@GraciousGazelles

@GraciousGazelles GraciousGazelles commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-21T13:37:32.896857Z 823d333 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 21, 2026
@GraciousGazelles
GraciousGazelles removed this pull request from the merge queue due to a manual request Sep 21, 2026
@GraciousGazelles GraciousGazelles changed the title Validate watcher REST identity and support older gh metadata Reconcile installed watcher behavior and strict REST evidence Sep 21, 2026
@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 21, 2026
Merged via the queue into main with commit 636ed88 Sep 21, 2026
75 checks passed
@GraciousGazelles
GraciousGazelles deleted the codex/watcher-contract-reconciliation-20260921 branch September 21, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants