Repository navigation
feat: quota aware routing keeps peer subscriptions busy (0.0.85) - #112
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
quota --json; codex readsrate_limitsfrom its rollout log, and session start plus the prompt hook name pools that are over pacecost_tier(free,credits), and planner plus swe-2 pairings run for write jobs with a non claude plannerclaude-fallbackreason, andno-healthy-lanepasses only when every write lane is downreview, and a settled implementation wave suggests one cross family reviewnot fixed here: grok stays blocked on hosts where
/var/run/docker.socklinks to a socket outside the orbstack and docker desktop paths; the grok 1.0.89 binary refuses that symlink itself.verification:
npm test3096 tests, 3090 pass, 3 skipped (linux only), 3 timing flakes that pass alone and sit in untouched files.claude plugin validatepasses for every plugin and. --strict.node bench/manifest.mjs --checkandnode shared/sync.mjsclean. real host:codex-companion quota --jsonreports 81 percent used, pacing 2.9, and session start prints the over pace line.