Repository navigation
feat: let dispatch profiles select Codex quota seats - #31
Merged
Merged
Conversation
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.
Intent
Crew-dispatch profiles choose a worker's harness, model and effort, but they cannot name which Codex plan a candidate belongs to.
The fleet runs two Codex plans with separate quotas. A profile naming a model that is available on the cheap plan is currently evaluated against the main plan's window - exhausted - so the candidate is rejected even though the plan it was intended for has capacity. Dispatch therefore cannot choose the plan whose quota is actually healthy, and the seat has to be named by hand at every spawn.
This adds an optional seat to a dispatch profile, so a rule can name the plan a candidate belongs to, and resolution scores that candidate against the quota of the plan it names rather than against whichever account happens to be default.
What changed
Testing
One of the four scenarios was exercised against the primary configuration, its API and its quota; the other three were exercised through the same resolver and validator against a configuration copy, because the field this change introduces cannot exist in the primary configuration until it lands. Each scenario's exact command, capture time and output is recorded in the manifest kept with this task's records: data/firstmate-dispatch-profile-seat-r1/seat-evidence/manifest.md