Repository navigation
spec: define complete multi-selector lookup receipts - #6868
Merged
josephfarina merged 1 commit intoOct 1, 2026
Merged
Conversation
Contributor
Author
|
/approve-spec 75e5138 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
AI review status for this pull request.
|
Contributor
PR Analysis Report
|
4 tasks done
github-actions
Bot
deleted the
joeyfarina/ast-053-multi-selector-lookups-20261001
branch
October 2, 2026 06:24
This branch was successfully deployed
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.
Exact decision needed
When one lookup accepts several exact selectors, what must it return for successes, misses, ambiguity, ordering, duplicates, version-qualified packages, and process failure?
Existing authority searched
spec:AST-042owns CLI/API parity and the shared text-output vocabulary.architecture:cli-surfaceowns the response envelope, error codes, generated help, and command structure. Neither settles a multi-selector receipt's row states, ordering, compatibility boundary, or exit status.#6867 implements the first adopter in
astryx component. #6802 owns free-text package discovery and remains separate.Decision
A lookup that opts into several exact selectors returns one complete ordered receipt. It keeps duplicates, gives every selector one
found,not_found,ambiguous, orerrorrow, exposes every ambiguity candidate, and never falls through from an exact package version to another installed version.The CLI prints every row before it exits nonzero for any unresolved row. Existing zero and one selector CLI responses do not change. A programmatic API uses input shape explicitly: omitted means browse, a string means single lookup, and an array always means batch, including empty and one-item arrays.
Rejected alternatives
Claim scope and non-goals
This record owns the generic complete-receipt contract only for lookup commands that opt in. It does not require every lookup command to support batches, change free-text search, rank ambiguity candidates, add network discovery, or prescribe an internal implementation.
Evidence and implementation relationship
#6867 exercises ordered and duplicate selectors, every row state, exact package versions, mixed and all-failed receipts, every focused component projection, detail and language controls, empty and one-item arrays, JSON/text parity, and zero/one CLI compatibility. The specification remains valid for any equivalent implementation and for later lookup adopters.
Scope
Validation
pnpm check:knowledgegit diff --check