Repository navigation
Description
This was generated by AI during triage.
Problem
The Spec run on #427 completed 13 of 17 Tickets but failed when #544's conflict Repair hit a temporary service failure. Ticket PR #582 had passed CI, then needed another merge because the Spec branch moved. During Repair 1, Codex reported repeated HTTP 503 errors, fell back from WebSockets to HTTPS, and ended with “Selected model is at capacity. Please try a different model.” thirdshift propagated the session failure and ended the Ticket's Run.
Existing Resume behavior handles a session ending with background work still running. It does not recover from capacity failures. Failed work is already preserved, and Continuations already pick it up; this proposal builds on those contracts.
Proposed behavior
- Recognize a narrow set of temporary Harness service failures, including the observed capacity failure, and retry with increasing delays.
- Give service recovery its own attempt and elapsed-time budget, separate from the Repair cap.
- Preserve the checkout, edits, and logs across attempts. Continue the recorded session where the Harness supports it; any recovery without session continuation must account for existing work and partially completed operations.
- Keep the chosen Harness and Model by default. Any Model fallback is an explicit operator configuration.
- Make recovery attempts and budget exhaustion visible in progress, logs, and the final notification.
- When the budget is exhausted, take the existing Failed run preservation path with the underlying cause.
Decisions needed
- Which structured Harness errors qualify, and what narrowly defined fallback classification is needed where structured codes are unavailable?
- What are the default attempt, delay, and total-time limits?
- What is the recovery contract when a conversation cannot be resumed or an operation's completion is uncertain?
- Should optional Model fallback be included here or handled separately?
Validation targets
- A temporary failure followed by recovery can finish the same logical session and Delivery without losing prior work.
- Repeated temporary failures stop within the configured budget and retain the causal error and each attempt's log.
- Recovery consumes no additional Repair slots.
- Command interruption cancels waits and prevents further attempts.
- Refusals, invalid configuration, and ordinary implementation failures do not qualify for temporary-service retries.
- Retrying does not blindly repeat external mutations or treat an incomplete session as successful.
Scope
Recovery within an already authorized Command. No new daemon, automatic retries of failed issues on later scheduled passes, or changes to review and merge requirements.
Evidence
- Parent: Security runs and the Security review: thirdshift finds, reproduces and fixes vulnerabilities #427; Spec PR: Security runs and the Security review: thirdshift finds, reproduces and fixes vulnerabilities #556; affected Ticket: A failed fix pauses Security runs; the notification offers fixing; Fencing is documented #544; Ticket PR: Pause Security after failed fixes and offer fixing #582.
- Command log:
/home/jacob/.thirdshift/logs/JacobStephens2/thirdshift/commands/issue/427-20261007T231713-0400.log, lines 3072–3130. - Session log:
/home/jacob/.thirdshift/logs/JacobStephens2/thirdshift/sessions/544-20261007T231713-0400-repair-1.jsonl, lines 97–103. - Related existing behavior: Resume and interrupt Codex sessions #395, The Sessions module owns its Resume rules, tested in-process behind a seam #407, and the Continuation contract in ADR 0002.
Activity
JacobStephens2 commentedon Nov 10, 2026
Investigation summary
The retry gap remains on Base commit 9eea88c (main). Recommend keeping #584 open for Day shift decisions and a Spec split.
Confirmed evidence:
Open #1546 covers optional Model/Harness fallback; #583 concerns subscription routing. Neither replaces bounded recovery with the chosen Harness and Model. Keep fallback outside #584 and coordinate its scope with #1546. Preserve ADR 0021's existing Security review fallback rules and refusal exclusions.
Recommended next steps
Resolve the questionnaire, then shape a Spec with dependent Tickets delivering: (1) narrow terminal classification and bounded pre-work retries, including unique attempt evidence; (2) continuation after partial work with explicit reconciliation and conservative failure when continuation is unsafe; (3) agreed additional Harness/Step coverage and final integration. Each Ticket should include its own progress reporting and regression coverage.
Acceptance must cover recovery to Delivery, finite exhaustion with the causal error retained, interruption, unchanged Repair accounting, interaction with background-work Resume, preserved edits and attempt logs, and exclusion of configuration, authentication, quota, refusal and ordinary implementation failures. A recovered intermediate error must not trigger another attempt. Incomplete work must never become success. Update glossary/configuration guidance, generated manual sources and relevant hand-written site pages with the final behavior.
The original #544 incident remains supplied issue evidence: its historical logs are outside this worktree and were not inspected. No live provider outage was induced.
Questionnaire
For the Day shift deciding #584: investigation confirms that terminal Harness failures still stop the Run, while capacity/503 reporting, failure preservation and background-work Resume already exist. The following decisions are needed before unattended implementation.
JacobStephens2 commentedon Nov 10, 2026
Investigation of #1546 against Base 0009a53 confirms that capacity/overload/503/529 already normalize to rate_limit events (src/harness/interpretation/event.rs:154; focused test passed), while ordinary session failures still propagate through src/session.rs:370. Existing switching is limited to eligible Security-review startup failures. Recommend coordinating #584's recovery budget with #1546's explicit fallback targets and handoff contract, keeping authentication and safeguard refusals distinct from temporary-service retries.