Repository navigation
fix(alpha): enforce the launcher's run cap on hosts - #337
Merged
Merged
Conversation
Generated-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;started_at=2026-11-15T16:51:11Z;surface=cli
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.
Why
The run host read
max_concurrent_runsfrom the agent account's own config, which can predate the launcher's cap or lack the host. On a Linux build host the default of 3 applied while the launcher's cap was 1, so three review runs held slots at once.Behavior change
The launcher now writes its
max_concurrent_runsfor the resolved host into the run request, andadmission.reserveuses that value only. The run host refuses a request without a cap, and a negative cap fails validation. A request saved before this change still parses, then the run host refuses it for lacking a cap. A cap of 0 still disables the host.Deviations from the task
The launcher sends only the cap.
load_limitstays a launcher-side check, because the launcher enforces it before the run starts.Risk
A run request written by an older driver fails closed on the run host until the launcher updates. Mixed-version fleets must sync before launching.
Verification
pytestpasses for the admission, request, driver, limits and run-host files with 100% line and branch coverage on the changed modules.ruffandpyreflypass. CI runs the full Bazel suite.Opened-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;surface=cli
Generated-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;started_at=2026-11-15T16:51:11Z;surface=cli