feat(profile): X4 — selective-up profile resolver (Q-PROFILE resolved) - #53
Merged
Conversation
… RESOLVED) New internal/profile.Resolve(model, requested) → the active service set + the shared instances those services transitively use, per the resolved Q-PROFILE decision: both planes (per-service `profiles:` tags + workspace `groups:`), unioned by name; `defaultProfile` opt-in; the reserved `all` is the no-config default. An explicit `--profile X` activates exactly the X slice (group members + tagged services), not the whole workspace — selective-up. `--profile a,b` and `--profile a --profile b` union identically. Pure logic, no daemon. Unblocks X5 (saga slices compose-up to Active) and the profile-aware DAG pruning (X2 + spec 10). The saga `--profile` wiring is the next step. Tests: default-profile slice, explicit tag slice (+ its shared union), comma/repeat union, reserved `all`, no-config default = all, Has/shared. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Chunk X4 (M6)
internal/profile.Resolve(model, requested)→ the active service set + the shared instances they transitively use, per the resolved Q-PROFILE decision: both planes (per-serviceprofiles:+ workspacegroups:) unioned by name;defaultProfileopt-in; reservedall= no-config default. An explicit--profile Xactivates exactly the X slice (group members + tagged services), not the whole workspace.--profile a,b≡--profile a --profile b.Pure logic. Unblocks X5 (saga slices compose-up to
Active) + profile-aware DAG pruning (X2/spec 10). The saga--profilewiring is next.Tests
default-profile slice, explicit tag slice + shared union, comma/repeat union, reserved
all, no-config-default=all, Has/shared.Gate
make cigreen (race).🤖 Generated with Claude Code