Skip to content

feat: quota aware routing keeps peer subscriptions busy (0.0.85) - #112

Merged
okisdev merged 2 commits into
mainfrom
peer-utilization
Nov 20, 2026
Merged

okisdev merged 2 commits into
mainfrom
peer-utilization

Conversation

@okisdev

@okisdev okisdev commented Nov 20, 2026

Copy link
Copy Markdown
Owner

routing ignored quota headroom: one host burned 79 percent of its codex weekly window in two days while its devin plan sat almost unused (72 jobs and 2.6M tokens in three weeks against 3291 codex jobs), and 171 claude worker dispatches in two weeks carried no fallback reason.

  • companions answer quota --json; codex reads rate_limits from its rollout log, and session start plus the prompt hook name pools that are over pace
  • while codex is over pace, quick and volume packages go to the breadth engine's prepaid burst pool; no rule picks a metered pool unless the user named it
  • devin pools come from the catalog cost_tier (free, credits), and planner plus swe-2 pairings run for write jobs with a non claude planner
  • claude worker dispatches need an enumerated claude-fallback reason, and no-healthy-lane passes only when every write lane is down
  • one engine health function keyed by engine, mode, and pool replaces the two breakers
  • peer timeouts get one wind down salvage after the original process group exits; the job collector continues across slices to 960 seconds
  • devin, antigravity, and cursor wrappers run an async review, and a settled implementation wave suggests one cross family review
  • antigravity prompts state the command limits and permission failures name the refused command with credentials redacted
  • panels seat every healthy track and adjudicate once codex and one other family return

not fixed here: grok stays blocked on hosts where /var/run/docker.sock links to a socket outside the orbstack and docker desktop paths; the grok 1.0.89 binary refuses that symlink itself.

verification: npm test 3096 tests, 3090 pass, 3 skipped (linux only), 3 timing flakes that pass alone and sit in untouched files. claude plugin validate passes for every plugin and . --strict. node bench/manifest.mjs --check and node shared/sync.mjs clean. real host: codex-companion quota --json reports 81 percent used, pacing 2.9, and session start prints the over pace line.

routing ignored quota headroom: one host burned 79 percent of its codex weekly window in two days while its devin plan sat almost unused (72 jobs and 2.6M tokens in three weeks against 3291 codex jobs), and 171 claude worker dispatches in two weeks carried no fallback reason.

- companions answer `quota --json`; codex reads `rate_limits` from its rollout log, and session start plus the prompt hook name pools that are over pace
- while codex is over pace, quick and volume packages go to the breadth engine's prepaid burst pool; no rule picks a metered pool unless the user named it
- devin pools come from the catalog `cost_tier` (`free`, `credits`), and planner plus swe-2 pairings run for write jobs with a non claude planner
- claude worker dispatches need an enumerated `claude-fallback` reason, and `no-healthy-lane` passes only when every write lane is down
- one engine health function keyed by engine, mode, and pool replaces the two breakers
- peer timeouts get one wind down salvage after the original process group exits; the job collector continues across slices to 960 seconds
- devin, antigravity, and cursor wrappers run an async `review`, and a settled implementation wave suggests one cross family review
- antigravity prompts state the command limits and permission failures name the refused command with credentials redacted
- panels seat every healthy track and adjudicate once codex and one other family return
ci runners have 7 GB, so host peer capacity is 2 and the earlier dispatches in each test held the slots the later ones needed. each dispatch now gets its own sandbox; the tests pass with total memory faked to 7 GB and fail without the change.
@okisdev
okisdev merged commit 79eeffe into main Nov 20, 2026
6 of 7 checks passed
@okisdev
okisdev deleted the peer-utilization branch November 20, 2026 04:40
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.

1 participant