Repository navigation
Only use the group's owning stage for entitlement lock on ASG page - #1974
Merged
mitchellngoodman merged 1 commit intoOct 28, 2026
Merged
mitchellngoodman merged 1 commit into
mitchellngoodman merged 1 commit into
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
yongwen
approved these changes
Oct 28, 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.
Summary
The ASG page (
/groups/<group>/config/) greyed out its capacity fields if any stage deploying to the group was onboarded to entitlements, and linked "View Entitlement" to that stage.Entitlements onboard a cluster by name (
<env>-<stage>, which is also the group name), so only the stage owning the group should count. Other stages, such as agents installed on many groups, only deploy onto its hosts and don't control its capacity.Example:
granulate/agent-canaryhas no cluster of its own but deploys tomodel-farm-notification_gpu_canary_4e0d50and many other groups. Because it is onboarded, all of those ASG pages were locked and linked to granulate's entitlement, even thoughmodel-farm-notification_gpu_canary_4e0d50is not onboarded.Change
In
get_asg_config, pick the entitlement env only among stages whoseclusterNamematches the group name. This matches the stage capacity page, which uses the stage's ownuseEntitlements.Made with Cursor