Repository navigation
fix(self-driving): honor the enabled-scout cap when sizing the troop - #414
Merged
andrewm4894 merged 2 commits intoSep 26, 2026
Conversation
Step 6 and step 6b now read max_enabled_scouts from scout-metadata-get, count the free slots after enabled operational and custom scouts, and cap both picks by that number. Step 6 does its disables before its enables, and it does not disable custom scouts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Generated-By: PostHog Desktop Task-Id: 73b9b10f-e3c8-4ea1-a3d0-577e49f41eda
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Test against a wizard branch:
Add Results will be posted here when complete. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Generated-By: PostHog Desktop Task-Id: 73b9b10f-e3c8-4ea1-a3d0-577e49f41eda
andrewm4894
approved these changes
Sep 26, 2026
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.
Problem
max_enabled_scoutsoverride can approve scouts that setup then cannot start. The server rejects the enable, and the planned coverage is absent.max_enabled_scouts, whichscout-metadata-getreturns._reject_if_enabled_cap_reached,enabled_scout_count). Operational scouts seed enabled past the cap but still use a slot. Existing custom scouts use slots too.Origin
Changes
max_enabled_scouts, thenslots = cap − enabled operational − enabled custom. The step 6 pick and the step 6b room (min(10, budget, slots) − step 6 count) both stay insideslots.max_enabled_scoutsor disable a scout). Step 6b skips the proposal when no slot remains.scout_origin: "custom"): they use a slot but setup never disables them.general+ 2 specialists, 6b room 0Note
Instruction-only change.
npm test(215 passed) andnpm run buildpass.Agent context
master(limits.py,team_limits.py,config_registry.py,views.py,serializers.py). The serializer help text says operational scouts are exempt from the cap, but the enforcement code counts them. The guide follows the enforcement code.Created with PostHog Desktop from this inbox report.
🤖 Generated with Claude Code