Skip to content

add fallback model setting for provider issues, like codex model at capacity #1546

Open

Description

@JacobStephens2

Another Example:

Result:       failed
Issue:        https://github.com/JacobStephens2/thirdshift/issues/1564
Title:        Spec: keep working Ready issues - a Failure limit for pickup and a Command limit for Passes
Command:      Spec run
Pull request: https://github.com/JacobStephens2/thirdshift/pull/1579
Cause:        claude exited 1: Failed to authenticate: OAuth session expired and could not be refreshed
Session trace:  /home/jstephens/.thirdshift/logs/JacobStephens2/thirdshift/commands/issue/1564-20261028T182952-0400~aZPBunblAhoKD9wX-repair-1.logs.jsonl
Command log:  /home/jstephens/.thirdshift/logs/JacobStephens2/thirdshift/commands/issue/1564-20261028T182952-0400~aZPBunblAhoKD9wX.log
Built with claude 2.1.312 · claude-opus-5-5 · high (configured)
Sent by:      thirdshift
Host:         [orchestrate.etadventures.com](http://orchestrate.etadventures.com/)
Took:         8h 19m 34s

another example from dev, thirdshift show '/home/jstephens/.thirdshift/logs/Educational-Travel-Adventures/tourbot/commands/pickup/1721-20261029T172901-0400~TQKAnpVD0M2fEPnM.command.json::pickup-20261029T172901-0400' --json, gave codex exited 1: This content was flagged for possible cybersecurity risk. If this seems wrong, try rephrasing your request. If you’re doing authorized security work that requires more cyber permissive safeguards, apply for Daybreak access via https://platform.openai.com/settings/organization/status-and-access before retrying. - in this case I might for example want to fall back to grok

Activity

  1. added
    enhancement
    needs-triage
    on Oct 29, 2026
  2. added
    in-progress
    and removed
    needs-triage
    on Nov 10, 2026
  3. JacobStephens2 commented on Nov 10, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Investigation summary

    Investigated #1546 against selected Base commit 0009a53, matching local main. The configuration gap is confirmed; the historical service incidents were not independently reproduced.

    • src/harness.rs:116 and src/config.rs:1281 support one Model/Effort pair per Harness, with strict key validation and no general fallback configuration.
    • src/harness/interpretation/event.rs:154 already classifies capacity, overload and HTTP 503/529 errors as rate_limit events. This classification does not initiate recovery.
    • src/session.rs:370 propagates ordinary session failures. The existing exception at src/session.rs:539 switches a non-default Security review to the default Harness once, before observed work, and excludes typed safeguard refusals. Tests confirm successful fallback, separate attempt records, and no further fallback after work or default-Harness failure.
    • src/processes.rs:335 replaces only fields explicitly specified by a Step. Cross-Harness fallback needs an explicit target Model/Effort contract to avoid carrying incompatible settings across CLIs.

    The examples require different decisions: changing Models cannot itself restore expired Harness authentication, and a cybersecurity refusal is distinct from temporary capacity exhaustion. Command elapsed time alone does not establish whether the failing session had already performed work.

    Proposed next steps

    Keep #1546 for configurable fallback targets and the switching/handoff contract. Coordinate bounded transient recovery with #584, refusal outcomes with #1972, and leave proactive subscription-usage routing with #583. These overlap without making the whole request a duplicate.

    Recommend an initial opt-in, startup-only fallback with independently validated target settings, preserved attempt traces, bounded attempts, interruption handling and existing review/Delivery requirements. Decide the scope through the questionnaire before producing an Agent Brief or implementation Tickets.

    Questionnaire

    For the Day shift: #1546 requests configurable fallback after capacity errors, expired authentication and cybersecurity refusals. The repository currently switches Harnesses only for an eligible Security-review startup failure.

    1. Approve this proposed split, or name the canonical issue for combined work: add fallback model setting for provider issues, like codex model at capacity #1546 owns fallback configuration and switching/handoff; Recover from temporary Harness service failures within a bounded retry budget #584 owns bounded transient retries; A Harness's cybersecurity refusal on a Security finding fails the Triage run and counts toward the Failure limit #1972 owns refusal outcomes; Spec: view subscription Plan usage and route Steps across Harnesses #583 owns proactive subscription-usage routing. This determines the Spec/Ticket boundaries.
    2. Which failures may trigger a switch? Recommend capacity/overload initially. Should startup authentication failure also permit switching to an independently authenticated Harness? Recommend retaining the current safeguard-refusal exclusion and deciding refusal handling separately under A Harness's cybersecurity refusal on a Security finding fails the Triage run and counts toward the Failure limit #1972.
    3. What scope and precedence should configuration have? Recommend an ordered list of explicit Harness/Model/Effort targets, disabled by default. Decide how explicit Command and Process Step choices interact with it, and whether a successful switch affects only that session or later Steps too.
    4. May fallback occur after a session has performed work? Recommend startup-only initially. If later switching is required, specify how edits and completed external operations are handed over without blindly repeating them; a different Harness cannot reuse the original CLI's session identity. Specify attempt/time caps, or delegate those defaults to Recover from temporary Harness service failures within a bounded retry budget #584.
  4. added
    ready-for-human
    and removed
    in-progress
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions