GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(core): #1014 runner policy — step.ts failover gates (retry/outputStarted) and credential-switch proximity order · Issue #1379 · developing-today-forks/opencode

fix(core): #1014 runner policy — step.ts failover gates (retry/outputStarted) and credential-switch proximity order #1379

New issue
Copy link
New issue
Copy link
Closed
#1392
Closed
fix(core): #1014 runner policy — step.ts failover gates (retry/outputStarted) and credential-switch proximity order#1379
#1392
Copy link
Labels
expediteImportant - do this very soon, before anything not expeditedpriority/highImportant and time-sensitive

Description

@dezren39
dezren39
opened on Nov 2, 2026
Issue body actions

Follow-up implementation issue for #1014 (routed by triage task 6187, 2026-11-02; the umbrella #1014 stays open and tracks the full set — this issue owns only the runner-policy items below, ported from it, not a re-file of the umbrella).

Items (from #1014 gap analysis comment 6562786500, items 2–3, and PR #1364 "Still owed")

  1. step.ts failover gates: in packages/core/src/session/runner/step.ts, route-failure failover is gated on retry?.retry and !outputStarted (verified on main 52ac2c2 at ~527–541: failover requires routing && !recorded.outputStarted && routeFailure, and retry?.retry === true). A quota failure after output started, or one the retry hook declines, never cascades even with eligible candidates remaining.
  2. Credential-switch proximity deviation: step.ts ~552–569 caps the credential switch at one per provider per assistant message (credentialSwitchUsed, defined ~194), so a second quota failure on the switched credential falls to a different target instead of the next credential on the same provider. Drew's order is: credential → leaf → sibling plan → next route.

Acceptance

  • Failover no longer dies solely because output had started or the retry hook declined when an eligible candidate remains — or any retained gate is justified in the PR against the cascade doctrine with a test pinning the intended behavior.
  • A second quota failure on a switched credential tries the next credential on the same provider before a different target (proximity order), with tests.
  • packages/core session-runner + model-resolver suites pass; no regression to the PR2 cascade (feat(core): cascade to the nesting parent route when a sub-route exhausts (#1014) #1364, merged 3955ad3).
  • Do not close ensure(core+openchamber): repeated errors of ANY class remove a model from rotation for escalating time, or until its expected resolution #1014 from this issue's PR; link it. PR3 (dynamic pull-out, queue task 6188) and the CodeRabbit balance-hold follow-ups are separate, already-routed items.

Activity

  1. dezren39
    added
    priority/highImportant and time-sensitive
    expediteImportant - do this very soon, before anything not expedited
    queue/queuedHas a queued task in the Supabase agent queue
    work/assignedAn agent holds this item via the queue (claimed task)
    queue/claimedA queue worker has claimed the task for this item
    status/in-progressActively being worked
    and removed
    queue/queuedHas a queued task in the Supabase agent queue
    on Nov 2, 2026
  2. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    Author
    More actions

    Picked up by the OpenChamber scheduled lane as queue task 6191. Fresh GitHub check: #1379 is open; #1364 is merged and is scope context only; no open PR for #1379 was found. Next: reproduce the two step.ts policy gaps and implement the scoped runner-policy tests.

  3. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    and removed
    queue/claimedA queue worker has claimed the task for this item
    on Nov 2, 2026
  4. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    Author
    More actions

    PR #1392 opened (head 5571ec0) and queue task 6191 parked pending review.

    The implementation was already drafted in the laptop worktree (fleet/task-6191); this shift finished it: merged current main into the branch (conflicts with PR #1384's step.ts changes resolved — #1384's outer failover wrapper retained, the ungated inner condition and proximity credential walk kept; the test file was reconstructed as main's version plus this task's 3 new tests), updated the session-runner scenario that pinned the old one-switch cap to the new proximity walk, and verified: session-step 34/34, session-runner 241/241, model-resolver + model-route + session-runner-model 181/181, typecheck clean, pre-push pass. Codex review requested on the PR; task resumes on review landing.

  5. dezren39
    added a commit that references this issue on Nov 2, 2026

    fix(core): track attempted credentials across the failover chain (#1379)

    3e0f57d
  6. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    Author
    More actions

    Update from queue task 6191: PR #1392 was behind main and Codex had one unresolved P2 on head 5571ec0 (credentialFallback could cycle between credentials whose short cooldowns expire mid-chain). Fixed on the laptop worktree: merged current main (incl. PR #1393) and added a chain-local attempted-credential set in model-resolver.ts (commit 3e0f57d); the finding thread is answered with the disposition. Tests: model-resolver + session-step 108 pass, session-runner + session-step-failure + model-route 358 pass, tsgo clean. PR is MERGEABLE/CLEAN, 0 behind; @codex review requested on the new head. Task 6191 parked pending that re-review.

  7. chatgpt-codex-connector commented on Nov 2, 2026

    @chatgpt-codex-connector
    chatgpt-codex-connectorBot
    on Nov 2, 2026 – with ChatGPT Codex Connector
    More actions

    To use Codex here, create an environment for this repo.

  8. dezren39
    added
    queue/claimedA queue worker has claimed the task for this item
    and removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 2, 2026
  9. dezren39
    added a commit that references this issue on Nov 2, 2026

    Merge pull request #1392 from developing-today/queue/6191-1379-runner…

    abe4e5b
  10. dezren39
    closed this as completedin #1392on Nov 2, 2026
  11. dezren39
    removed
    status/in-progressActively being worked
    queue/claimedA queue worker has claimed the task for this item
    work/assignedAn agent holds this item via the queue (claimed task)
    on Nov 2, 2026
  12. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    Author
    More actions

    Merged: PR #1392 landed with merge commit abe4e5b (2026-11-02T14:57:54Z), closing this issue. Codex review clean on head 3e0f57d (codex-review-state:v1: completed 2026-11-02T14:25:44Z, has_unresolved_findings=false; receipt: no major issues); CodeRabbit check passed with no actionable comments. The earlier Codex P2 on credentialFallback cycling was fixed in 3e0f57d (chain-local attempted set) and its thread answered. At merge the branch was 2 commits behind main — only the PR #1378 deps merge (bun.lock + packages/util/package.json), disjoint from this PR's files — and MERGEABLE/CLEAN was verified twice. Tests recorded on the queue checkpoint: session-step 34/34, session-runner 241/241, model-resolver/model-route batches, tsgo and pre-push pass. Queue task 6191 completed as fixed_merged.

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

    expediteImportant - do this very soon, before anything not expeditedpriority/highImportant and time-sensitive

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.