GeezerVison is showing github.com — fix(server): retain consumed immutable check failures by osnoser1 · Pull Request #35394 · pingdotgg/t3code
Conversation
A watch can announce an already consumed GitHub Actions job failure again after a pending/read fluctuation, while missing a newer job with the same check name. It remembers only the current failed names.
Retain consumed immutable failure keys in the existing watch state and carry them across rewatching. The watch's PR/repository context, observed head, run/job URL and terminal outcome identify the result; GitHub allocates a new job ID for each attempt. URL query/fragment decoration does not create another result. Hosts without immutable job URLs retain the existing transition-based behavior. Existing queued stale-head/merge guards and completion delivery remain their current owners.
Verification:
- Extended the existing failure case in
pullRequestWatch.test.ts: the consumed-job replay fails on main, then passes with the fix. It also verifies same-name new jobs/runs, a late old-job replay, and URL decoration. The complete policy file passes, 23 tests.
- Extended the existing runtime watch case to retain the field through persisted replay and stop/rewatch.
vp test run apps/server/src/orchestration-v2/runtimeLayer.test.ts -t 'starts, records, and stops a pull request watch|watching a dismissed stack layer again' passes, 2 cases.
- The existing known completion regression passes:
vp test run apps/server/src/orchestration-v2/DelegatedCompletionDelivery.test.ts -t 'does not re-offer when wake-policy upgrades'.
vp run check:changed origin/main passes format, lint, both knip checks, GraphQL, typechecks for 37 affected packages, and 211 tests in 7 files. Rebased on 371963ce0b4cfe8bac3911efd57ae3af90750b41 and reran the check on the final source.
- Additional diagnostic selection
runtimeLayer.test.ts -t 'pull request|watch' hits six existing pagination-cache assertions on both untouched main and this patch; the pagination owner/test is unchanged across the rebase. The changed persistence cases pass in isolation. Full CI remains authoritative for the complete runtime suite.
This is a server-state bug fix with no UI or user configuration change. No running T3 installation or live database was modified. History and original notifications remain available; new attempts/jobs and current-head news remain deliverable. Related to #26987's repeated wake observations; this change addresses consumed immutable check failures only.
Model: GPT-6.1 Sol, reasoningEffort=max, serviceTier=priority. Harness: Codex in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at 9742513
Macroscope's review found this PR approvable — Retains previously reported GitHub Actions job failures across polling fluctuations and rewatching, reducing duplicate agent wakes while distinguishing new jobs. The change is confined to watch bookkeeping and preserves reporting behavior for checks without immutable job URLs.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 12, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The pull-request watch tracks reported failures by pull-request head, immutable job URL, and check status. It preserves those keys in watch state across restarts and uses the prior check-name transition rule when immutable identity information is unavailable.
Changes: Pull-request failure tracking
| Layer / File(s) |
Summary |
Identify and suppress repeated failures packages/contracts/src/threadPullRequest.ts, apps/server/src/orchestration-v2/pullRequestWatch.ts, apps/server/src/orchestration-v2/pullRequestWatch.test.ts |
The contract adds optional reportedFailures. The watch uses immutable failure keys to identify previously reported failures, with a check-name transition fallback. Tests cover pending reads, URL query and fragment variations, and changed job or run IDs. |
Preserve failure history across restarts apps/server/src/orchestration-v2/pullRequestWatch.ts, apps/server/src/orchestration-v2/PullRequestWatchReactor.ts, apps/server/src/orchestration-v2/Orchestrator.ts, apps/server/src/orchestration-v2/runtimeLayer.test.ts |
The watch persists reported failure keys, includes them in watch equality checks, and carries them into restarted watches. Runtime tests cover persistence and repeated failure cycles. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge, maria-rcks
Merge Risk: Minimal · up to cf84b
-
This fix stops an already-reported GitHub Actions failure from being announced again after a pending/read fluctuation. It still reports newer jobs that share a check name. The change is limited to server-side watch state, and the new field is optional, so existing watches are unaffected. No actionable merge-blocking risk remains.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title "fix(server): retain consumed immutable check failures" matches the main change. The watch now keeps consumed immutable GitHub Actions job failure keys in its state across rewatching, so a p… |
| Description check |
 |
The description follows the repository template. It has a Problem section with the bug and its effect, a Change section explaining the retained failure keys and fallback for hosts without immutable jo… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title "fix(server): retain consumed immutable check failures" matches the main change. The watch now keeps consumed immutable GitHub Actions job failure keys in its state across rewatching, so a previously reported failure is not announced again. The title is a conventional commit, short, and specific to the server.
Full details: Description check
-
Explanation
The description follows the repository template. It has a Problem section with the bug and its effect, a Change section explaining the retained failure keys and fallback for hosts without immutable job URLs, a Scope section that gives context but does not link an issue, and a detailed Verification section with commands and results. It also names the model and harness at the end, as the template asks.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 9742513 and cf84ba2.
Files selected for processing: 6
-
apps/server/src/orchestration-v2/Orchestrator.ts
apps/server/src/orchestration-v2/PullRequestWatchReactor.ts
apps/server/src/orchestration-v2/pullRequestWatch.test.ts
apps/server/src/orchestration-v2/pullRequestWatch.ts
apps/server/src/orchestration-v2/runtimeLayer.test.ts
packages/contracts/src/threadPullRequest.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.
See the conflict window.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note Written by gpt-6.1-sol on behalf of Maria
merged main without rebasing and preserved its watch baseline and pending-check behavior. added the missing reportedFailures equality comparison so existing watches persist migrated failure history instead of repeating a consumed failure notice.
the two existing recovery test cases failed before that comparison and passed afterward, including a pending-to-failure transition without another notification. blacksmith vp run check:changed github/main passed on node 26.13.1: format, lint, knip, graphql, typechecks for 37 packages, and 259 tests across seven files.
verified head cf84ba22cff05dad06b0b698cf5d7689961f3ad4: all 32 reported checks pass, github reports MERGEABLE / CLEAN, no unresolved review threads, and two independent code reviews approve this head. coderabbit reports no actionable findings. no live external failure-to-agent-wake cycle was exercised; the server runtime tests cover persistence and duplicate suppression.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
maria-rcks
commented
Nov 18, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Note Written by gpt-6.1-sol on behalf of Maria
Verified in a real dev environment
verified head cf84ba22cff05dad06b0b698cf5d7689961f3ad4 on linux, with isolated github/main (b648395fa5) and pr installations. drove the real web client using the repo's playwright and /usr/bin/google-chrome. created the project, thread and real codex gpt-6.1-sol turns through the app. no mocks or fixtures.
used this pr's context-budget workflow to create real cancelled attempts with the same check name. main consumed job 134694310726, then missed newer jobs, including 134700140692, even after rewatching forced a fresh read. its client opened the latest job's actual github details url while the watch produced no new notice.
the pr consumed job 134695243123 as its baseline without a notice. after a server restart forced a fresh read, it retained that key, announced new job 134700140692, rendered “checks failed”, and resumed codex, which replied “checks failed”. stopping and rewatching retained both immutable keys and produced no duplicate notice after another fresh read.
restored the workflow normally: job 134704537992 succeeded. final checks: 23 successful, 9 skipped, none failing or pending. blacksmith ran the existing watch-policy file (48 passed) and two focused persistence/rewatch cases (2 passed). no source edits or pushes were needed.
before: main misses the newer same-name job.

after: the pr delivers the new job through the server and codex path.

command transcript and persisted-state observations
Not verified
could not induce github's exact failed-job → pending/missing-row → same failed-job read fluctuation or decorated-url replay without mocking host reads. focused policy tests cover those cases; the live proof covers same-name new attempts, persistence, baseline suppression, rewatch suppression and provider delivery.
a fast rerun that ends in the same state can leave the existing aggregate watch fingerprint unchanged. stop/rewatch or server restart forced fresh reads here. passive polling latency for that case remains unverified.
native desktop/mobile clients, remote/tunnel connections and new-head transitions were not exercised on this linux vm.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.
See the conflict window.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This branch has not been deployed
No deployments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
needs-rebase
Conflicts with its base branch. Closes after 7 days with no activity.
size:M
30-99 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|