Repository navigation
Extract the shared container-matching rule onto ComposeProject - #172
Merged
Merged
Conversation
Mcrich23
requested changes
Nov 14, 2026
ps (Mcrich23#141) established the rule — labels are authoritative; candidate names identify only unlabeled pre-label containers — as a private helper inside ComposePs. Promote it to the shared layer so every command resolves containers the same way: ComposeProject.ownsContainer answers project ownership (the write-side guard stop/remove paths need), and ServiceTarget.matches answers service-level matching built on it (what listing and exec-style lookups need). ps now delegates to ServiceTarget.matches; behavior is unchanged, and the rule's unit coverage moves with it.
adrum
force-pushed
the
feat/next/shared-matching
branch
from
November 14, 2026 16:49
afc0c11 to
0e54e4b
Compare
Mcrich23
requested changes
Nov 14, 2026
Co-authored-by: Morris Richman <[email protected]>
Mcrich23
approved these changes
Nov 14, 2026
This was referenced Nov 14, 2026
1 task
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.
#141 established the rule (labels authoritative; candidate names identify only unlabeled pre-label containers) as a private helper inside ComposePs. This promotes it to the shared layer — ComposeProject.ownsContainer for project ownership, ServiceTarget.matches for service-level matching built on it — so upcoming commands (exec, logs) resolve containers identically instead of growing copies. ps now delegates; no behavior change, tests move with the rule.