Repository navigation
Description
From the Oct 11–16 2026 Run retrospective, finding 11. Tracking issue: #721.
The evidence below is historical and attributed to the supplied report (repository snapshot 5504c97); it has not all been independently reproduced. Limited current-checkout checks were made at 53bb9c6. This is filed for maintainer triage, not automatic Pickup.
Requested outcome and validation
Retry read-only CI check retrieval when a transient transport/API response failure occurs, using a small bounded attempt count and backoff (the report proposes three attempts; choose and document exact semantics). A temporary read failure must never be interpreted as green or an empty successful check set.
Keep the original error and retry evidence visible when the budget is exhausted. Cancellation must interrupt both reads and backoff. Permanent/authentication errors need clear handling rather than an uncontrolled retry loop. Use the existing CI seam for deterministic tests.
Validate a transient malformed/truncated JSON read followed by success, repeated failure to exhaustion, cancellation during retry, and unchanged behavior for genuine failing/pending checks. Recovery must not consume Repair slots or repeat external mutations.
The report's early CI-fix dispatch and checking Base movement during the watch are lower-confidence follow-up ideas; evaluate separately rather than making them prerequisites for this retry fix. This is distinct from temporary Harness service recovery in #584.
Current checkout check: CI code directly propagates errors from checks_on(sha)?. The reported #671 failure was unexpected end of JSON input after 18.8 minutes of waiting.
Original finding, including evidence, proposed fixes, and confidence
11. One failed CI read fails the whole Run (Factory)
- Evidence: release.sh resumes only its own bump PR from this repository #671 died 18.8 min into a CI watch on "gh api …/check-runs failed: unexpected end of JSON input". Evidence-backed review findings #486 died the same way on Oct 7.
src/ci.rspasses upchecks_on(sha)?with no retry. - Fix:
- Retry read-only check reads 3 times with backoff; checks that can't be read still never count as green.
- Lower confidence: start the CI-fix Repair as soon as one of the branch's own checks fails. make prompts and skills page sections fold closed and open on header click #683 waited 11.75 min for macOS shards after
site-testwas already red. - Lower confidence: check
base_branch_moved()during the watch, not only after it.
- Confidence: high for the retry.
Activity
JacobStephens2 commentedon Oct 17, 2026
Agent Brief
Category: bug
Summary: Recover from transient read-only CI check failures within a bounded, interruptible retry budget.
Current behavior:
The CI watcher propagates a failed
checks_on()call immediately. The retro reports a Run failing after 18.8 minutes of waiting because a check read returned truncated JSON. Code inspection confirmed direct error propagation and no check-read retry; this triage did not independently reproduce the service failure.Desired behavior:
Give a transiently failing check read at most three total attempts: the original read and up to two retries, with one-second then two-second interruptible delays. Transient cases include transport failures, HTTP 429 or server errors, and truncated response JSON. Known permanent authentication, authorization, configuration, and validation failures should fail without repeated requests. Preserve meaningful diagnostics for unsupported or unclassified errors rather than treating them as valid check data.
Apply the same read policy to check observations used by the initial watch, pending-check polling, Base comparison, and Check re-run reconciliation. Each retry must read the same repository and full commit. Retrying reads never consumes a Repair slot or causes a workflow re-run request to be repeated. Preserve ADR 0010's Check re-run semantics and all existing checks against stale or disappearing results.
Key interfaces:
Outside::checks_on()and the GitHub observation adapter: keep transient-read recovery testable through the existing seam.rerun(), and Base-check comparison: consume successful fresh observations or a causal error.Acceptance criteria:
Out of scope:
Source and historical evidence: #721, finding 11. The exact three-attempt budget and delays above settle the original body's retry-budget question for this implementation.