Repository navigation
fix(server): explain PR watcher read failures - #19254
andrewfree wants to merge 2 commits into
Conversation
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This is a focused diagnostic fix that changes persisted agent-facing messages on PR watch failures and handles potentially credential-bearing host errors. The summaries are allowlisted and well tested, but the sensitive-data boundary warrants human review. You can add or adjust custom eligibility rules. Learn more. |
|
Evidence for the requested human review at
Claude Opus 5.5 and Claude Fable 5.1 independently reviewed this exact commit through the Claude app provider and found no blocking code issues. GPT-6 Astra through Codex independently reran the focused tests. This evidence supports maintainer review; the requested human approval remains outstanding. |
|
Note Written by Thanks for improving the watcher diagnostics. This PR adds categorized text to an existing failure notification; it does not repair failed reads or watch behavior. Under Read this first, right now we are only taking focused bug fixes from outside contributors. Please raise the missing diagnostic context in an issue and agree on scope with a maintainer before requesting reconsideration. |
When a pull-request watch exhausts eight failed reads, its agent wake currently says only that the host could not be read. The typed failure is still available, but the agent gets no reason to distinguish unavailable credentials, inaccessible pull requests, and host request failures.
Append a safe summary of the last failed read to that wake. Use typed error categories and the existing fixed unavailable-host guidance; never copy arbitrary error details, URLs, tokens, or command output. The eight-failure threshold, successful-read reset, rate-limit exemption, and original failure cause stay unchanged.
This is a focused diagnostic fix to an existing failure path, submitted under the small obvious-bug exception in CONTRIBUTING.md.
Verification on macOS arm64 with Node 24.21.0:
apps/server,vp test run src/orchestration-v2/runtimeLayer.test.ts src/orchestration-v2/pullRequestWatch.test.ts: 100 tests passed. Coverage includes the exact eighth failure, reset after recovery, rate-limit exemption, one persisted wake, known categories, unknown fallback, and exclusion of synthetic token/URL/stdout/stderr values.tsc-rs --noEmitand targetedvp lintfor the two changed files passed.Implemented and independently tested with GPT-6 Astra through the Codex harness in T3 Code. Reviewed by Claude Opus 5.5 and Claude Fable 5.1 through the Claude app provider. Both passed the exact commit; maintainer human approval remains outstanding.