Skip to content

Account failover: move work to the next account in a set order before one runs out #881

Open

Description

@scuttletoby

What: account failover. When an account is nearly out of usage, T3 moves work to the next account in a person-set order instead of letting sub-agents stop with "out of usage".

Why the owner wants it: sub-agents stop and wait for a person when one account runs out, and the owner gets "out of usage" noise. The owner said yes to moving work between accounts (#68) and gave the order to use.

Already built: usage readings and history (#24 #42 #294 #502), the pacer and the pacing gate on delegate_task with reserve and "burn first" settings (#52 #73 #566 and fixes), usage per agent run (#588). Moving work to another account is not built.

Left (checklist):

  • Reserve check: an account counts as "spent" when any window is at or above 100 minus its reserve (default from Owner check: defaults agents picked without asking (say no to any) #215 row 1)
  • Account order in Settings (replaces the single fallback); new drafts, delegated tasks and auto-resumes take the first account that is not spent; projects can override
  • Per-thread rule: follow the order (default), pin to this account, or pause instead of moving
  • Clean pause: hold the next tool call, then move the thread and resume with "paused before tool X; it did not run"
  • Never move a thread twice in one reset window; stale or unknown usage places no new work there
  • Sub-agents that hit a limit report once to the parent, not every turn

Done when: an orchestrator and its sub-agents keep working across an account running out, the owner sees one line saying what moved, and no tool runs twice because of a move.

Related: #860 (hard budgets), #877 (a handoff before the limit).

🤖 Generated with Claude Code

Activity

  1. scuttletoby commented on Nov 28, 2026

    @scuttletoby
    OwnerAuthor

    Working on "projects can override" the account order: a project's own accountOrder replaces the server's for that project's delegated tasks (contracts, the delegate_task read, Settings row for the project, docs). One fork PR.

    🤖 Generated with Claude Code

  2. scuttletoby commented on Nov 28, 2026

    @scuttletoby
    OwnerAuthor

    Later item, from the #1231 review: pacing follows the project order. With usagePacingGate on, the pacing gate runs after the account order step, reads no order (neither the project's nor the server's), and can move a task to any account of the same provider with room, also past the order or out of a project's empty one. It should pick only from the order that applies to the task.

    🤖 Generated with Claude Code

  3. scuttletoby commented on Nov 28, 2026

    @scuttletoby
    OwnerAuthor

    Working on "pacing follows the project order": with usagePacingGate on, the pacing gate's account move on delegate_task picks only from the account order that applies to the task (the project's own, else the server's), and never moves a task out of it. One fork PR.

    🤖 Generated with Claude Code

  4. added
    area:agents
    size:big
    type:feature
    on Nov 29, 2026
  5. scuttletoby commented on Nov 29, 2026

    @scuttletoby
    OwnerAuthor

    Working on the account order for create_threads: a thread an agent creates naming no instance, on a spent account, starts on the first account in the order (the project's own, else the server's) that has room and can run the same model, options and runtime mode, as delegate_task does. One fork PR, in the fork's create_threads seat (no new upstream lines).

    🤖 Generated with Claude Code

  6. 30 remaining items

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

    area:agentssize:bigtype:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions