Skip to content

Retry infrastructure-classified CI failures once the outage clears instead of parking the task in review - #8697

Merged
orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-23189-68cf6189
Nov 8, 2026
Merged

orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-23189-68cf6189

Conversation

@danieljhkim

Copy link
Copy Markdown
Member

Task

ORB-23189 — Retry infrastructure-classified CI failures once the outage clears instead of parking the task in review

Description

Observed 2026-11-08 between 08:45 and 11:20Z on dk-server-2 (ORB-23110). A GitHub release-download outage turned the required CI red on every open ws_orbit PR. With workflow.ci_infrastructure_signatures = ["ci-download: outcome=failed class=transient"] set, pr_complete correctly stops with auto_fix_stopped and no repair agent runs. Two examples:

handoff_land also classifies the failure as transient (jrun-20261108-1034-t1).

The gap. After the one rerun the signature allows, the task is parked in review, with its PR open and red. Nothing reruns its CI or re-attempts landing once the outage has cleared. At 11:13–11:19Z the operator had to:

  • rerun the failed jobs by hand on 19 PRs;
  • land ORB-23113 by hand with orbit.workflow.land.

Requeueing blocked tasks is refused until the required checks pass, which needs the same manual rerun first.

Wanted. A PR whose latest failure was classified infrastructure or transient gets a bounded, backed-off re-attempt: rerun its failed jobs and then land, or hand back to pr_complete. That re-attempt comes from the existing review or landing machinery, with no operator action. It stops after a configurable number of attempts or a time window, and then records a clear hold. A candidate failure, where the log shows the candidate is at fault, must never be retried this way.

Coordinate with ORB-23164 (GitHub API budget and log caching) so the retries don't drain the REST quota. Spawned from on-call ORB-23110.

Acceptance Criteria

  • A review task whose PR's required checks failed with an infrastructure- or transient-classified log is re-attempted automatically (failed jobs rerun, then landing or completion retried) without operator action, with a bounded attempt count and backoff that are configurable in workspace config and documented in docs/CONFIG.md.
  • A failure classified candidate is never re-attempted by this path; a test proves it.
  • When the retry budget is exhausted the task records a distinct hold reason naming the classification and attempt count, visible in orbit task show.
  • Retries go through the existing GitHub read/deferral path, so a rate-limited read defers instead of failing; a test covers the deferral case.

Execution Summary

Click to expand

Outcome: success.
Changes: Repaired the resumed PR #8670 candidate on base a5f26b4. Both run-debugging.md conflicts now preserve the newer base's partial-log-read classification rule together with the candidate's bounded transient retry behavior. Regenerated plugin skills and preserved all inherited implementation files.
Assessment: Complete and freshly validated; no conflict markers remain, and canonical/plugin references match.

Acceptance criteria:

  1. Passed: review-watch, completion and claimed-landing regressions recover after repeated transient failures. Configurable attempt limits and exponential backoff are wired through workspace configuration and documented in docs/CONFIG.md and the public reference.
  2. Passed: candidate and candidate-sibling regressions authorize no infrastructure rerun; quoted infrastructure signatures retain the candidate route.
  3. Passed: exhaustion persists ci_infrastructure_retry_exhausted with classification=transient and the attempt count. Completion-restart and public claim-runtime scenarios verify durable budgets, replay and hold-history persistence.
  4. Passed: throttled log reads follow recorded deferral without spending an attempt, then retry after the reset. This base includes ORB-23164 commit 5c94c43; its caching and rate-limit regressions also pass.

Validation passed:

  • scripts/build-budget.py -- cargo test -p orbit-engine --test engine ci_rerun -- --nocapture: 31 passed.
  • scripts/build-budget.py -- cargo test -p orbit-engine --test engine review_watch -- --nocapture: 2 passed.
  • scripts/build-budget.py -- cargo test -p orbit-core --test runtime distributed_drain::rebased_landing -- --nocapture: 5 public tables passed.
  • scripts/build-budget.py -- cargo test -p orbit-config: 100 passed.
  • make goldens; make ci-guards; cargo fmt --all -- --check; explicit rustfmt checks for all changed integration-test Rust files; scripts/generate-doc-indexes.sh --check.
  • Required production Clippy, all-targets Clippy and rustdoc commands passed for orbit-types, orbit-config, orbit-store, orbit-engine, orbit-runtime, orbit-core and orbit-cli. Exact commands and outputs are attached in conflict-execution-checks.json and conflict-validation-logs.json.
  • Staged/unstaged whitespace checks, new-source whitespace inspection, canonical/plugin identity and conflict-marker inspection passed.
    No required checks failed or were deferred. Effective workflow.required_validation_commands is empty; no final_validation_commands were injected. Two initial private-row core filters selected zero tests and provide no acceptance evidence; the five public runtime tables supersede them. The runtime linker emitted a non-fatal __eh_frame size warning; all selected tables passed.

Manual visual QA passed in light/dark themes at 1280px and 375px. Screenshots: screenshots/config-reference-light-1280.png, screenshots/config-reference-light-375.png, screenshots/config-reference-dark-1280.png and screenshots/config-reference-dark-375.png. Initial preview/theme attempts were superseded; the ps EPERM and corrected foreground cleanup route are recorded in conflict-visual-qa.json. The final preview stopped, was awaited, and its loopback port was confirmed closed.

Reconciliation: the baseline already contained 39 modified tracked files and one new review_retry.rs. All 40 delivery paths remain; this repair changed only the two conflict-listed skill copies. Companion paths support admission, claim history, callers, regressions, configuration documentation and generated outputs. Additive selectors are returned; docs/CONFIG.md remains excluded per the guide. No pre-existing candidate file or selector was removed. No unwanted output remains outside .orbit/tmp; ignored build/dependency caches were retained. Changes remain uncommitted. No lifecycle transition, commit, push, dispatch or merge was performed.

Limits: provider behavior was exercised through public automation/runtime boundaries and the real private adapter against an offline forge and local bare Git remote. No live GitHub CI run or deployment was mutated. Detailed execution summary, plan, baseline, resolution, validation logs, visual evidence and reconciliation are attached.

Context selectors the implementer reported (advisory; owner-validated widening is derived from Git):

  • file:crates/orbit-config/src/registry/settings/table/mod.rs
  • file:crates/orbit-core/assets/activities/pr_checks_watch.yaml
  • file:crates/orbit-core/assets/jobs/task_pr_watch_pipeline.yaml
  • file:crates/orbit-core/assets/skills/orbit-orchestrate/references/run-debugging.md
  • file:crates/orbit-core/assets/skills/orbit-orchestrate/references/workflows.md
  • file:crates/orbit-core/src/adapter/engine_host/runtime_host/host/implementation.rs
  • file:crates/orbit-core/src/application/job/pr_repair/admission.rs
  • file:crates/orbit-core/tests/runtime/distributed_drain/rebased_landing.rs
  • file:crates/orbit-engine/src/context/hosts/null_host/defaults/host.rs
  • file:crates/orbit-engine/src/context/hosts/null_host/runtime_host.rs
  • file:crates/orbit-engine/src/context/hosts/runtime_host/review.rs
  • file:crates/orbit-engine/src/executor/automation/vcs/landing/checks/mod.rs
  • file:crates/orbit-engine/src/executor/automation/vcs/landing/checks/recovery.rs
  • file:crates/orbit-engine/src/executor/automation/vcs/landing/review_watch.rs
  • file:crates/orbit-engine/src/executor/automation/vcs/pr/auto_fix/checks.rs
  • file:crates/orbit-engine/src/executor/automation/vcs/pr/complete/ci_rerun_hold.rs
  • file:crates/orbit-engine/src/executor/automation/vcs/pr/mod.rs
  • file:crates/orbit-engine/tests/engine/handoff_landing.rs
  • file:crates/orbit-engine/tests/engine/pr_landing.rs
  • file:crates/orbit-engine/tests/engine/pr_landing/ci_rerun.rs
  • file:crates/orbit-engine/tests/engine/pr_landing/ci_rerun_gh.py
  • file:crates/orbit-store/src/repository/task/coordination/lifecycle/mutate/admission.rs
  • file:crates/orbit-store/src/repository/task/coordination/lifecycle/mutate/apply.rs
  • file:crates/orbit-types/src/workflow/pr_recovery/ci_rerun.rs
  • file:crates/orbit-types/src/workflow/pr_recovery/mod.rs
  • file:docs/runbooks/distributed-drain.md
  • file:plugin/skills/orbit-orchestrate/references/run-debugging.md
  • file:plugin/skills/orbit-orchestrate/references/workflows.md
  • file:website/src/content/docs/reference/config.md

Claimed execution delivered candidate 01c379d on base 35d608d; no required validation commands are configured, so no check ran.

Validation

  • Not reported

Branch Freshness

  • Base ref: origin/agent-main
  • Head ref: orbit/ORB-23189-68cf6189
  • Behind base: 0
  • Ahead of base: 1

Orchestrated-By: opus

…rs… [ORB-23189]

Retry infrastructure-classified CI failures once the outage clears instead of parking the task in review

Orchestrated-By: opus
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