Repository navigation
feat(cli): search lists the installed icons that answer an icon ask - #12183
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Not ready yet: approval waits on an owner decision about letting stable astryx search list installed icons before promotion, and three fixes are needed whatever that decision is.
packages/cli/api/search/_adapter.mjs:21importsfoundation/integrations/icon-features.mjs, which is in neither this branch normain(it arrives with #12176), soastryx search,astryx build,astryx experimental iconand the@astryxdesign/cli/apientry fail withERR_MODULE_NOT_FOUND, and CI's smoke test, typecheck and node tests fail on it.packages/cli/api/search/_icons.mjs:14-18imports the disk-reading icon ranker outside the search adapter, whicharchitecture:cli-surfaceINV21 forbids and the Lint guardrail check rejects, so the section should be computed from_adapter.mjs(or_icons.mjsimported only there).- The edited
spec:AST-084still says in FR0, FR11 and DEC-2 that search never reads icon sets and that icons join it only at promotion, which contradicts the new FR6 sentence, so those claims need amending in this pull request if the direction is approved.
Approval needs an engineering owner to decide whether search may read icon sets before promotion, reversing spec:AST-084 FR0, FR11 and DEC-2, and to record that decision by commenting /approve-spec <full head SHA> on the pull request; the author may do so as an engineering owner. The new IconSearchEntry, SearchIconSection and SearchResponse.data.icons types would also read better tagged @experimental, like the icon finder's own response types.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
- Experimental icon search answers a multi-word phrase with word matches at score 20, rarest words first: verified in the ranker (
icon-ranking.mjsrankWords) and by a direct run of it; theastryx experimental iconcommand itself fails to load at this head. - Words naming a mapped definition count twice: verified (
mappedNameWords; the copy/pile case ranks the mapped icon first). - A word no icon carries counts for nothing: verified in effect (it is in no icon's sum).
- An export-name word such as
SearchIconorChevronDownIconreads as its words: verified (both answer at 90). - A query that already had an answer keeps it: verified for the tested cases (
arrow up to linekeeps 90). - With an icon set installed, search lists up to three icons after the results in JSON and text: false at this head (search fails to load); the code shape matches (
_icons.mjs,iconBlock). - Results and their count do not change: verified in code (
search.mjsappendsiconsafter the ranked answer); its tests cannot run at this head. - A search with
--typelists no icons: verified in code (search.mjs:84). - With no icon set installed, every search answers as before: false at this head (every search fails to load).
- The section needs the icon feature gate and reads sets only for an icon ask: the gate module is missing (false at this head); reading sets only after the ask test is verified (
_icons.mjs). - The ask rule (icon words, set names, export names, declared names excluded) lives beside the finder's filler words: verified (
asksForIcon). - The icon section is an experimental surface under the experimental-isolation rule: false against the current icon-set record, whose FR0, FR11 and DEC-2 keep search off icon sets until promotion.
- Search's own doc,
searchCore, build, the search index and the gather cache are untouched: verified in the diff. - Outputs are byte-identical to the base without a set, and the search, icon and return-type tests pass: false at this head (the test suite's global setup fails on the missing module; the CLI smoke test fails); the latency figures were not reproducible.
Files:
.changeset/icon-search-words.md: clear..changeset/search-icon-section.md: its "every search answers as before" line is false at this head (missing module).docs/specs/AST-083-result-order/spec.md: proposed FR1 sentence awaits the owner decision.docs/specs/AST-084-icon-sets/spec.md: proposed FR6 text awaits the owner decision; FR0, FR11 and DEC-2 left contradicting it (blocking).packages/cli/api/icon/icon.doc.mjs: clear (describes the held behavior).packages/cli/api/icon/icon.test.mjs: clear in content; cannot load at this head.packages/cli/api/search/_adapter.mjs: imports a missing module (blocking).packages/cli/api/search/_icons.mjs: disk discovery outside the adapter, INV21 (blocking).packages/cli/api/search/search-return-type.test.mjs: clear.packages/cli/api/search/search.icons.test.mjs: clear in content; cannot run at this head.packages/cli/api/search/search.mjs: clear apart from calling_icons.mjsdirectly (see INV21).packages/cli/api/search/search.type.mjs: new types lack@experimental(non-blocking).packages/cli/clients/cli/commands/search.mjs: clear.packages/cli/foundation/discovery/icon-ranking.mjs: clear; the proposed FR6 weight wording is imprecise (non-blocking).packages/cli/foundation/discovery/icon-set-discovery.mjs: clear (same set-name rule, extracted).
PR Analysis Report🔎 Preview ·
|
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| + | cli |
./api · Types · type IconSearchEntry |
type IconSearchEntry |
import type {IconSearchEntry} from '@astryxdesign/cli/api' |
| + | cli |
./api · Types · type SearchIconSection |
type SearchIconSection |
import type {SearchIconSection} from '@astryxdesign/cli/api' |
| + | cli |
./json · Also exported from an earlier entry point · IconSearchEntry |
IconSearchEntry (./api) |
import {IconSearchEntry} from '@astryxdesign/cli/json' |
| + | cli |
./json · Also exported from an earlier entry point · SearchIconSection |
SearchIconSection (./api) |
import {SearchIconSection} from '@astryxdesign/cli/json' |
| ~ | cli |
./api · Types · type SearchResponse |
data: { query: string; matchCount: number; results: SearchResultEntry[] } → data: { query: string; matchCount: number; results: SearchResultEntry[]; icons?: SearchIconSection | undefined } |
import type {SearchResponse} from '@astryxdesign/cli/api'; const x: SearchResponse = {data: …} |
Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
Not ready yet: approval waits on an engineering owner's decision to let stable astryx search list installed icons before promotion, and two fixes are needed whatever that decision is.
packages/cli/api/search/_adapter.mjs:21importsfoundation/integrations/icon-features.mjs, which is in neither this branch normain(it arrives with #12176), soastryx search,astryx build,astryx experimentaland the@astryxdesign/cli/apientry fail to load, and until #12176's opt-in sentence lands, showing icons in a project with noexperimental.iconSetgoes againstspec:AST-017FR27.- Miss:
iconQuerynow splits every mixed-case word, not only export names, before it drops filler words (packages/cli/foundation/discovery/icon-ranking.mjs:300), soPaperClip iconfinds nothing andGitHub iconfalls from 90 to a score-20 word match or to nothing, where the base answers both at 90, which makes the changeset line "A query that already had an answer keeps it" untrue.
Approval needs an engineering owner to decide whether search may read icon sets for an icon ask before promotion, as the amended spec:AST-084 FR0, FR6, FR11 and DEC-2 and spec:AST-083 FR1 now say, and to record that by commenting /approve-spec <full head SHA> on a head that also carries #12176; the author may do so as an engineering owner. #12138, which the description plans to rebase onto, describes keeping the typed reading on ties and keeping word matches out of missing-icon suggestions, so taking its ranking would address both. The earlier INV21 and record-consistency findings are fixed at this head.
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- Phrase queries in the icon finder return word matches at score 20, rarest words first: verified (
rankWords; the finder's phrase tests pass). - Words that name a mapped definition count twice: verified (
mappedNameWords; its test passes). - A word no icon carries counts for nothing: verified in effect (it is in no icon's sum); the record's reason for it is worded wrongly (non-blocking).
- An export-name word such as
SearchIconorChevronDownIconreads as its words: verified. - A query that already had an answer keeps it: false (
PaperClip icon,GitHub icon). - With a set installed, search adds up to three icons after the results, in JSON and text: false at this head (search does not load); verified on this head merged with #12176.
- Results and their count do not change: verified on the merged tree (tests and equal match counts).
- A search with
--typelists no icons: verified. - With no set installed, every search answers as before: false at this head (search does not load); the no-set test passes on the merged tree.
- The ask rule (icon words, set names, export names, component and hook names excluded) lives beside the filler words: verified (
asksForIcon). - The block needs the icon feature gate, is computed in the adapter, reads only set directory names for the ask test and reads sets only for an ask: verified in code; the gate module is missing at this head.
- Ranking is the finder's own, capped at three or
limit: verified (_icons.mjs, tests). - Entry fields, the
Icons (n)text block and the trailing position: verified on the merged tree. - The amended records state one rule for search: verified; the amendments still need an owner's approval.
- The block is an experimental surface under the isolation rule: false on the current records until #12176's opt-in sentence lands; the types carry
@experimental(verified). SearchDomain,--type, search's own doc,searchCore, build, the search index and the gather cache are untouched, and sets are read on each call: verified in the diff and by the install-and-remove test.- Byte-identical outputs, the four-large-set comparison and the latency figures: not reproduced.
- The search, icon and return-type tests pass: the icon and return-type tests pass at this head; the search icon tests pass only with #12176 merged in.
Files:
.changeset/icon-search-words.md: false claim "A query that already had an answer keeps it" (blocking)..changeset/search-icon-section.md: "every search answers as before" is false at this head (missing module).docs/specs/AST-083-result-order/spec.md: proposed sentence awaits the owner decision.docs/specs/AST-084-icon-sets/spec.md: proposed rule awaits the owner decision; "icon features are on" needs #12176 (blocking); weight wording (non-blocking).packages/cli/api/icon/icon.doc.mjs: clear.packages/cli/api/icon/icon.test.mjs: clear (passes); no test pinsPaperClip icon.packages/cli/api/search/_adapter.mjs: imports a missing module (blocking).packages/cli/api/search/_icons.mjs: clear.packages/cli/api/search/search-return-type.test.mjs: clear.packages/cli/api/search/search.icons.test.mjs: clear in content; loads only with #12176.packages/cli/api/search/search.mjs: clear.packages/cli/api/search/search.type.mjs: clear.packages/cli/clients/cli/commands/search.mjs: clear.packages/cli/foundation/discovery/icon-ranking.mjs: export-name split drops answers (blocking); word matches reach missing-icon suggestions (non-blocking).packages/cli/foundation/discovery/icon-set-discovery.mjs: clear (same behavior).packages/cli/test/experimental-isolation.test.mjs: clear.
fb7d653 to
7fac55f
Compare
There was a problem hiding this comment.
Not ready yet: approval waits on an engineering owner's decision to let stable astryx search list installed icons before promotion, and two fixes are needed whatever that decision is.
packages/cli/api/search/_adapter.mjs:21importsfoundation/integrations/icon-features.mjs, which is in neither this branch normain(it arrives with #12176), soastryx search,astryx build,astryx experimentaland the@astryxdesign/cli/apientry fail to load, and until #12176's opt-in sentence lands, showing icons in a project with noexperimental.iconSetgoes againstspec:AST-017FR27.rankIconsranks word matches over the export-name reading alone (packages/cli/foundation/discovery/icon-ranking.mjs:449), soastryx experimental icon PaperClip buttonandastryx search PaperClip button iconfind nothing where the same queries in lower case findpaperclip, which goes against the proposed FR6 text that counts every icon carrying one of the query's words.
Approval needs an engineering owner to decide whether search may read icon sets for an icon ask before promotion, as the amended spec:AST-084 FR0, FR6, FR11 and DEC-2 and spec:AST-083 FR1 now say, and to record it by commenting /approve-spec <full head SHA> on a head that also carries #12176; the author may do so as an engineering owner. Rebasing onto #12176 and onto #12138's current head, which already reads both readings for word matches, addresses both fixes. The earlier PaperClip icon regression, the adapter-boundary finding and the missing @experimental tags are fixed at this head.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- An icon ask is a query with
iconoricons, an installed set's name, or an icon export name as typed, never the exact name of a component or hook, and the rule sits beside the finder's filler words: verified (asksForIcon,icon-ranking.mjs:263-282, and its tests). - The section needs the icon features on and a set that loads, and the search adapter computes it: verified in code; the gate module is missing at this head.
- The ask test reads only set directory names, the sets are read only for an ask, and with no set search reads no icon data: verified (
_icons.mjs:35-40,_adapter.mjs:54-82). - Ranking is the finder's own over the sets in tie order, at most three icons and fewer under a smaller
limit: verified (_icons.mjs:41-45and the tests). - The icons trail the results, and
resultsandmatchCountdo not change: verified on this branch merged with #12176 (tests). - The icon-set record states one rule for search, and the result-order record gains one sentence: verified; both await an owner decision.
- The section is an experimental surface shown only where icon features are on, with experimental types: the types are tagged; on the current records the opt-in is
experimental.iconSet, so this needs #12176. - Entry fields, the trailing
Icons (n)text block, no--type icon, and unchanged search domains and--type: verified. - Search's own doc is not edited, and the section is documented in the icon finder's doc and the types: verified.
- The lexical ranker, build, the search index and the gather cache are untouched, and sets are read on each call: verified (diff, and the install-and-remove test on the merged tree).
- With no set installed, the listed queries print what the base prints: false at this head (search does not load); the no-set test passes on the merged tree.
- An integration component that declares the keyword
iconkeeps its place: verified on the merged tree (test). - With four large sets the other queries are unchanged, and the latency figures: not reproduced.
- The search, icon and return-type tests pass: the icon and return-type tests pass at this head; the search icon tests pass only with #12176 merged in.
- Finder changeset, phrases: word matches at score 20, the project's set first, rarer words first, mapped definition words counted twice: verified (tests and a ranking probe).
- Finder changeset, scope: word matches only in the finder's own answer and only where nothing answered before: verified (other callers pass no word option).
- Finder changeset, export names: an export-name word is also read as its words, and an answered query changes only when the split reading scores higher: verified for the scored tiers; the word-match step reads only the split reading (blocking above).
- Search changeset: with a set installed an icon ask lists up to three icons after the results, and a typed search lists none: verified on the merged tree.
- Search changeset: with no icon set installed every search answers as before: false at this head (search does not load).
Files:
.changeset/icon-search-words.md: clear..changeset/search-icon-section.md: "every search answers as before" is false at this head (missing module).docs/specs/AST-083-result-order/spec.md: proposed sentence awaits the owner decision.docs/specs/AST-084-icon-sets/spec.md: proposed rule awaits the owner decision; "icon features are on" needs #12176 (blocking); the word-match sentence is not met by the code (blocking, code side); weight wording (non-blocking).packages/cli/api/icon/icon.doc.mjs: clear.packages/cli/api/icon/icon.test.mjs: clear (passes); no test for a mixed-case word in a phrase.packages/cli/api/icon/search/search.mjs: clear.packages/cli/api/search/_adapter.mjs: imports a missing module (blocking).packages/cli/api/search/_icons.mjs: clear.packages/cli/api/search/search-return-type.test.mjs: clear.packages/cli/api/search/search.icons.test.mjs: clear in content; loads only with #12176.packages/cli/api/search/search.mjs: clear.packages/cli/api/search/search.type.mjs: clear.packages/cli/clients/cli/commands/search.mjs: clear.packages/cli/foundation/discovery/icon-ranking.mjs: word matches read only the split reading (blocking).packages/cli/foundation/discovery/icon-set-discovery.mjs: clear (same behavior).packages/cli/test/experimental-isolation.test.mjs: clear (passes on the merged tree).
7fac55f to
246ac99
Compare
|
Owner decision (icon-set owner, covering this pull request): where icon features are on (an icon-set package is installed), |
|
/approve-spec 246ac99 |
There was a problem hiding this comment.
Changes requested for one record fix; nothing else in this review blocks approval.
The direction is settled: an engineering owner approved the amended icon-set and result-order records at this exact head, and the code matches them, with results and matchCount unchanged and every search in a project without an icon-set package printing exactly what main prints.
- Miss: the
FR0, FR11verification row ofdocs/specs/AST-084-icon-sets/spec.md(line 781) still says that search foriconandicon setwith a set opted in gains no field or section and that search with a set installed answers as with no set, which contradicts the amended FR11 (andastryx search icon setwith a set installed now appends acogicon), so please amend that row to the new rule and retitle the isolation suite "with an icon set installed and configured, search is unchanged" to match.
Two optional wording fixes: FR6 and the icon-ranking.mjs header still say word matches serve only the finder's own answer, and FR0 and the icon-features.mjs header do not list search among the readers of the icon gate.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- An icon ask is a word typed as
iconoricons, an installed set's name, or an icon export name, never an exact component or hook name, and the rule sits beside the finder's filler words: verified (icon-ranking.mjs:274-287, ask-rule tests). - The block needs the icon gate on and a set that loads, and the search adapter computes it: verified (
_adapter.mjs:54-82, CLI structure check). - The ask test reads only set directory names, the sets are read only for an ask, and with no set no icon data is read: verified (
_icons.mjs:35-40). - Ranking is the finder's own over the sets in tie order, at most three icons and fewer under a smaller
limit: verified (_icons.mjs:41-46, tests). - The icons trail the results, and
resultsandmatchCountdo not change: verified (tests, CLI runs with and without a set). - The icon-set record states one rule for search in FR0, FR6, FR11 and DEC-2: false, its FR0/FR11 verification row still states the old rule (blocking above).
- The result-order record gains one sentence: verified.
- The block appears only where icon features are on and its types are marked experimental: verified (
search.type.mjs:43,:58,:72). - Entry fields, the trailing
Icons (n)text block, no--type icon, and unchanged search domains and--type: verified. - Search's own doc is not edited, and the block is documented in the experimental icon finder doc and the types: verified (
icon.doc.mjs:14,:19). - The lexical ranker, build, the search index and the gather cache are untouched, and sets are read on each call: verified (diff, install-and-remove test).
- With no set installed, the listed queries print exactly what
mainprints, stdout and stderr: verified (ten queries, text and JSON, on this branch merged intomain). - With a fixture set installed, queries that do not ask answer as with none,
IconButton,NavIconandIconincluded: verified (test). - With four large sets, other queries stay unchanged, and the latency figures: not reproduced.
- An integration component that declares the keyword
iconkeeps its place: verified (test). - No query in the search tests that is not about icons opens the block: consistent (search tests pass).
- The listed tests pass and the CLI structure check is clean: verified.
- Changeset: with an icon set installed, an icon ask lists up to three icons after the results, the results and their count do not change, a typed search lists none, and with no set every search answers as before: verified.
Files:
.changeset/search-icon-section.md: clear.docs/specs/AST-083-result-order/spec.md: clear.docs/specs/AST-084-icon-sets/spec.md: FR0/FR11 verification row left unamended (blocking); FR6 word-match wording and FR0 reader list (non-blocking).packages/cli/api/icon/icon.doc.mjs: clear.packages/cli/api/search/_adapter.mjs: clear.packages/cli/api/search/_icons.mjs: clear.packages/cli/api/search/search-return-type.test.mjs: clear.packages/cli/api/search/search.icons.test.mjs: clear.packages/cli/api/search/search.mjs: clear.packages/cli/api/search/search.type.mjs: clear.packages/cli/clients/cli/commands/search.mjs: clear.packages/cli/foundation/discovery/icon-ranking.mjs: header wording (non-blocking).packages/cli/foundation/discovery/icon-set-discovery.mjs: clear (same behavior).packages/cli/test/experimental-isolation.test.mjs: suite title states the old rule (part of the blocking finding).
|
/approve-spec 62e55e1 |
There was a problem hiding this comment.
Approved. CI's test-node legs, and the test summary that waits on them, fail at this head before running any test, because the Node leg-planning budget is already exceeded on main without this change; every other CI job passes, so those checks need a fix on main and a re-run here before merge.
The earlier request is resolved: the icon-set record's verification row now states the search rule, and the isolation suite is retitled to match. An engineering owner approved the amended icon-set and result-order records at this exact head, and the code matches them: results and matchCount are unchanged, and with no icon-set package installed, search prints exactly what main prints.
- Optional: name
packages/cli/api/search/search.icons.test.mjsin that verification row (or in the record'sverified_by), since it is the test that proves the appendediconsblock.
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- An icon ask is a word typed as
iconoricons, an installed set's name, or an icon export name, never an exact component or hook name, and the rule sits beside the finder's filler words: verified (icon-ranking.mjs:244-288, ask-rule tests). - The block needs icon features on and a set that loads, and search's adapter computes it: verified (
_adapter.mjs:54-82, CLI structure check). - The ask test reads only set directory names, the sets are read only for an ask, and with no set no icon data is read: verified (
_adapter.mjs:66-77,_icons.mjs:36-40). - Ranking is the finder's own over the sets in tie order, then the answering matches, at most three and fewer under a smaller
limit: verified (_icons.mjs:41-46, tests). - The icons trail as a separate
data.icons, andresultsandmatchCountdo not change: verified (tests; runs with and without a set). - The icon-set record states one rule for search in FR0, FR6, FR11 and DEC-2: verified (record lines 119-120, 158-160, 268-275, 397-402, 812-815 and the verification row at 783).
- The result-order record gains one sentence: verified (lines 55-57).
- The block appears only where icon features are on, and its types are marked experimental: verified (
search.type.mjs:43,:58,:72). - Entry fields, the trailing
Icons (n)text block, no--type icon, and unchanged search domains and--type: verified (_icons.mjs:47-57,commands/search.mjs:222-235, tests). - Search's own doc is not edited, and the block is documented in the experimental icon finder doc and the types: verified (
icon.doc.mjs:19). - The lexical ranker, build, the search index pair and the gather cache are untouched, and sets are read on each call: verified (diff; install-and-remove test).
- With no set installed, the ten listed queries print exactly what
mainprints, text and JSON, stdout and stderr: verified (this branch merged intomain, compared withmain). - With a fixture set installed, queries that do not ask answer as with none,
IconButton,NavIconandIconincluded: verified (tests; runs). - With four large sets installed, the five listed queries stay byte-identical: verified (runs with four synthetic sets of the listed sizes).
- An integration component that declares the keyword
iconkeeps its place: verified (test). - No query in the search and build tests that is not about icons opens the block: verified (no other search or build test installs an icon set).
- Added time: a query that does not ask adds no measurable time, and an icon ask over four large sets adds tens of milliseconds: consistent (about 0 ms and about 50 ms, measured on a loaded machine).
- The listed tests pass and the CLI structure check is clean: verified (this head, and this head merged into
main). - The writing-rubric results match the record edits: verified.
- Changeset: with an icon set installed, an icon ask lists up to three icons after the results, the results and their count do not change, a typed search lists none, and with no set every search answers as before: verified.
Files:
.changeset/search-icon-section.md: clear.docs/specs/AST-083-result-order/spec.md: clear.docs/specs/AST-084-icon-sets/spec.md: clear; one optional note on the verification row.packages/cli/api/icon/icon.doc.mjs: clear.packages/cli/api/search/_adapter.mjs: clear.packages/cli/api/search/_icons.mjs: clear.packages/cli/api/search/search-return-type.test.mjs: clear.packages/cli/api/search/search.icons.test.mjs: clear.packages/cli/api/search/search.mjs: clear.packages/cli/api/search/search.type.mjs: clear.packages/cli/clients/cli/commands/search.mjs: clear.packages/cli/foundation/discovery/icon-ranking.mjs: clear.packages/cli/foundation/discovery/icon-set-discovery.mjs: clear (same behavior).packages/cli/foundation/integrations/icon-features.mjs: clear.packages/cli/test/experimental-isolation.test.mjs: clear.
62e55e1 to
e6e41b5
Compare
|
/approve-spec e6e41b5 |
There was a problem hiding this comment.
Approved pending CI: CI's capacity check found no room at this head, so test-node and typecheck have not run yet. Re-run the CI workflow and merge once the required checks pass.
An engineering owner approved the amended icon-set and result-order records at this exact head, and the code matches them. results and matchCount are unchanged, a typed search lists no icons, and with no icon-set package installed search prints exactly what main prints.
- Optional: name
packages/cli/api/search/search.icons.test.mjsin the icon-set record's FR0/FR11 verification row (or in itsverified_by), since that test proves the appendediconsblock.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- An icon ask is a word typed as
iconoricons, an installed set's name or an icon export name, never an exact component or hook name, and the rule sits beside the finder's filler words: verified (icon-ranking.mjs:244-288, ask-rule tests). - The block needs icon features on and a set that loads, and search's adapter computes it: verified (
_adapter.mjs:54-81, CLI structure check). - The ask test reads only set directory names, the sets are read only for an ask, and with no set no icon data is read: verified (
_adapter.mjs:61-76,_icons.mjs:36-40). - Ranking is the finder's own over the sets in tie order, then the answering matches, at most three and fewer under a smaller
limit: verified (_icons.mjs:41-46, tests). - The icons trail as a separate
data.icons, andresultsandmatchCountdo not change: verified (tests; runs with no set, one set and four sets). - The icon-set record states one rule for search in FR0, FR6, FR11 and DEC-2: verified (record lines 119-120, 158-160, 236, 268-275, 397-402, 827-831 and the verification row at 798).
- The result-order record gains one sentence: verified (lines 55-57).
- The block appears only where icon features are on, and its types are marked experimental: verified (
_adapter.mjs:61,search.type.mjs:43,:58,:72). - Entry fields, the trailing
Icons (n)text block, no--type icon, and unchanged search domains and--type: verified (_icons.mjs:47-57,commands/search.mjs:222-235, tests; the heading readsIcons (n of m)when capped). - Search's own doc is not edited, and the block is documented in the experimental icon finder doc and the types: verified (
icon.doc.mjs:19). - The lexical ranker, build, the search index pair and the gather cache are untouched, and sets are read on each call: verified (diff; install-and-remove test).
- With no set installed, the ten listed queries print exactly what
mainprints, stdout and stderr: verified (this head's CLI againstmain's, text and JSON, exit codes included). - With a fixture set installed, queries that do not ask answer as with none,
IconButton,NavIconandIconincluded: verified (tests; runs). - With four large sets installed, the five listed queries stay byte-identical: verified (runs with four synthetic sets of the listed sizes).
- An integration component that declares the keyword
iconkeeps its place: verified (test). - No query in the search and build tests that is not about icons opens the block: verified (those suites pass unchanged).
- Added time: a query that does not ask adds about a millisecond, and an icon ask over four large sets adds tens of milliseconds: consistent (within noise, and 54 to 63 ms in a four-set project here).
- The listed tests pass and the CLI structure check is clean: verified (this head; CI lint).
- The writing-rubric results match the record edits: verified.
- Changeset: with an icon set installed, an icon ask lists up to three icons after the results, the results and their count do not change, a typed search lists none, and with no set every search answers as before: verified.
Files:
.changeset/search-icon-section.md: clear.docs/specs/AST-083-result-order/spec.md: clear.docs/specs/AST-084-icon-sets/spec.md: clear; one optional note on the verification row.packages/cli/api/icon/icon.doc.mjs: clear.packages/cli/api/search/_adapter.mjs: clear.packages/cli/api/search/_icons.mjs: clear.packages/cli/api/search/search-return-type.test.mjs: clear.packages/cli/api/search/search.icons.test.mjs: clear.packages/cli/api/search/search.mjs: clear.packages/cli/api/search/search.type.mjs: clear.packages/cli/clients/cli/commands/search.mjs: clear.packages/cli/foundation/discovery/icon-ranking.mjs: clear.packages/cli/foundation/discovery/icon-set-discovery.mjs: clear (same behavior).packages/cli/foundation/integrations/icon-features.mjs: clear.packages/cli/test/experimental-isolation.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI found no room at this head, so its test, typecheck and build jobs did not run; re-run all jobs (or push) so they run before merge.
The earlier finding is fixed: search's icons block now comes from the icon finder's own ranking with the project's look, so a project with experimental.iconVariant: 'solid' gets TrashSolidIcon from astryx search trash icon, as from astryx experimental icon trash, and the new test covers it. An engineering owner approved the icon-set and result-order record changes at this exact head, and with no icon set installed search prints exactly what the base prints.
Optional: the Testing section counts 10 tests in search.icons.test.mjs; there are 11 now.
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- An icon ask is a word typed as
iconoricons, an installed set's name, or an icon export name, never an exact component or hook name, and the rule sits beside the finder's filler words: verified (icon-ranking.mjs:243-288, ask-rule tests). - The block needs icon features on and a set that loads, search's adapter computes it, the ask test reads only set directory names, and the sets are read only for an ask: verified (
_adapter.mjs:54-86,_icons.mjs:43-48). - With no set, search reads no icon data: verified (the gate is off before any set read; 20 base-against-head runs identical).
- Ranking is the finder's own over the sets in tie order, capped at three and fewer under a smaller limit: verified (
_icons.mjs:49-52calls the finder's ranking with the project's look; cap tests;--limit 2run). - The icons trail as a separate
data.icons, andresultsandmatchCountdo not change: verified (tests; head JSON equals the base apart fromicons). - The icon-set record states one rule for search across its placement, finder, search and decision clauses, and the result-order record gains one sentence: verified (record diff).
- The block appears only where icon features are on, and its types are marked experimental: verified (
_adapter.mjs:61,search.type.mjs:43,:58,:72). - Entry fields, no description field, the trailing
Icons (n)text block, no--type icon, and unchanged search domains and--type: verified (_icons.mjs:55-65,commands/search.mjs:223-236, JSON and text runs). - Search's own doc is unchanged, and the block is documented in the icon finder's doc and the types: verified (
icon.doc.mjs:19). - The lexical ranker, build, the search index and the gather cache are untouched, and sets are read on each call: verified (diff; install-and-remove test).
- With no set installed, the ten listed queries print exactly what the base prints, stdout and stderr: verified (head CLI against base CLI, text and JSON).
- With a fixture set installed, queries that do not ask answer as with none,
Icon,IconButtonandNavIconincluded: verified (tests;buttonandIconButtonruns). - With four large sets installed, five non-ask queries stay byte-identical: verified by code path (a query with no ask word returns before any set read,
_icons.mjs:44-46); not re-measured with large sets. - A component that declares the keyword
iconkeeps its place: verified (test). - No non-icon query in the search and build tests opens the block: verified (none of their 134 literal queries holds an ask word).
- The listed suites pass and the CLI structure check is clean: verified (search.icons 11, search-return-type 1, experimental-isolation 54, icon 52, search 78; structure check passes); the stated count of 10 for search.icons predates the added look test.
- The added-time figures: not re-measured warm; cold runs show about 8 ms more import time and no measurable change in a whole search.
- The writing-rubric results match the record edits: verified.
- Changeset: with an icon set installed an icon ask lists up to three icons after the results, results and count do not change, a typed search lists none, and with no set every search answers as before: verified.
Files:
.changeset/search-icon-section.md: clear.docs/specs/AST-083-result-order/spec.md: clear.docs/specs/AST-084-icon-sets/spec.md: clear.packages/cli/api/icon/icon.doc.mjs: clear.packages/cli/api/search/_adapter.mjs: clear.packages/cli/api/search/_icons.mjs: clear.packages/cli/api/search/search-return-type.test.mjs: clear.packages/cli/api/search/search.icons.test.mjs: clear.packages/cli/api/search/search.mjs: clear.packages/cli/api/search/search.type.mjs: clear.packages/cli/clients/cli/commands/search.mjs: clear.packages/cli/foundation/discovery/icon-ranking.mjs: clear.packages/cli/foundation/discovery/icon-set-discovery.mjs: clear (same behavior).packages/cli/foundation/integrations/icon-features.mjs: clear.packages/cli/test/experimental-isolation.test.mjs: clear.
With an icon set installed, a search with no type whose query asks for an icon (a word as typed that is icon or icons, a set's name, or an icon export name that is not a component or hook name) also returns up to three icons, ranked by the icon finder, as a trailing icons section. The results and their count do not change; with no set installed, search answers as before.
…ch rule in the icon-set record The adapter computes the section, so disk-backed discovery stays in it. FR0, FR11 and DEC-2 state the same rule as FR6: search reads icon sets only for an icon ask where icon features are on, appends at most three icons in its own block, and never changes results or matchCount. The section's types are marked experimental.
…r headers name search's icons block The FR0/FR11 verification row checks search's results and matchCount with a set installed and lets an icon ask append its icons block. FR0 and the gate's header list search among the gate's readers; FR6 and the ranker's header say the icons block takes word matches too. The isolation suite's title says it checks search's results.
The block takes the icon finder's own answer (rankIconSets with the project's looks), so with experimental.iconVariant it prints the look's import, as astryx experimental icon <words> does.
c948e48 to
4442093
Compare
|
/approve-spec 4442093 |
There was a problem hiding this comment.
Changes requested: two small fixes in search's icon block. The icon-set and result-order record changes are owner-approved at this head, and with no icon set installed search still prints exactly what the base prints.
- Miss:
packages/cli/foundation/discovery/icon-ranking.mjs:262-263redefines the icon export-name pattern thaticon-set-discovery.mjsalready exports asICON_EXPORT_NAME_RE(used by Doctor's import check and the integration export-name check), so import it besidedefinitionsByIconand delete the copy so search's ask test cannot drift from that contract. - Miss: when two installed packages ship a set of one name,
packages/cli/api/search/_icons.mjs:58and:65give both entries the barenameglyphs/trashand the commandastryx experimental icon glyphs/trash, which exits 1 because the icon-set record requires the qualified<package>/<set>form for such a name, so qualify the set in both fields when another installed set shares it and add a test for that case.
Optional: after the rebase, "Icons are not among them" in the result-order record's FR1 follows the searchCore sentence, so "Icons are not among the results:" keeps its subject.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- The icon-set record states one search rule across its placement, finder, search and decision clauses, and the result-order record says the block changes neither results nor count: verified (record diff).
- The CLI structure check, the knowledge check and a strict typecheck of the touched files pass, and the touched tests pass: verified (both checks pass; strict typecheck errors only in two untouched page templates that need a built theme; 116 test files, 2,214 tests pass).
- An icon ask is a word typed as
iconoricons, an installed set's name, or an icon export name, never an exact component or hook name, and the rule lives once beside the finder's filler words: verified (icon-ranking.mjs:243-288, ask-rule tests); its export-name pattern is the copy named above. - The block needs icon features on and a set that loads, search's adapter computes it, the ask test reads only set directory names, the sets are read only for an ask, and with no set no icon data is read: verified (
_adapter.mjs:54-86,_icons.mjs:43-47). - Ranking is the finder's own over the sets in tie order, capped at three and fewer under a smaller limit: verified (
_icons.mjs:49-52;--limit 1printsIcons (1 of 2)). - The icons trail as a separate
data.icons, andresultsandmatchCountdo not change: verified (tests; head JSON withouticonsequals the base JSON). - The block appears only where icon features are on, and its types are marked experimental: verified (
_adapter.mjs:61,search.type.mjs). - Entry fields, no description field, the trailing
Icons (n)text block, no--type icon, and unchanged search domains: verified (_icons.mjs:56-66,commands/search.mjs:223-236, text and JSON runs); thenameandcommandfields are wrong for two sets of one name (finding above). - Search's own doc is unchanged, and the block is documented in the icon finder's doc and the types: verified (
icon.doc.mjs:19). - The lexical ranker, build, the search index and the gather cache are untouched, and sets are read on each call: verified (diff; install-and-remove test).
- With no set installed, the ten listed queries print exactly what the base prints, stdout and stderr: verified (20 base-against-head runs, text and JSON).
- With a fixture set installed, queries that do not ask answer as with none,
IconandIconButtonincluded: verified (tests; base-against-head runs). - With four large sets installed, five non-ask queries stay byte-identical: verified by code path (a query with no ask word returns before any set read); not re-run with large sets.
- A component that declares the keyword
iconkeeps its place: verified (test). - No non-icon query in the search and build tests opens the block: verified (none of their literal queries holds an ask word).
- The listed suite counts (11, 78, 33, 7, 54, 52 and 1): verified.
- The added time per search: not re-measured at that precision; whole runs here stayed within noise of the base.
- The writing-rubric results match the record edits: verified.
- Changeset: with an icon set installed an icon ask lists up to three icons after the results, results and count do not change, a typed search lists none, and with no set every search answers as before: verified.
Files:
.changeset/search-icon-section.md: clear.docs/specs/AST-083-result-order/spec.md: optional wording note (line 62).docs/specs/AST-084-icon-sets/spec.md: clear.packages/cli/api/icon/icon.doc.mjs: clear.packages/cli/api/search/_adapter.mjs: clear.packages/cli/api/search/_icons.mjs: blocking finding (lines 58 and 65).packages/cli/api/search/search-return-type.test.mjs: clear.packages/cli/api/search/search.icons.test.mjs: clear.packages/cli/api/search/search.mjs: clear.packages/cli/api/search/search.type.mjs: clear.packages/cli/clients/cli/commands/search.mjs: clear.packages/cli/foundation/discovery/icon-ranking.mjs: blocking finding (lines 262-263).packages/cli/foundation/discovery/icon-set-discovery.mjs: clear (same behavior).packages/cli/foundation/integrations/icon-features.mjs: clear.packages/cli/test/experimental-isolation.test.mjs: clear.
…age>/<set> An entry's name and command qualify its set when another installed set shares the name, so the command runs (iconSetName, shared with the unlisted sets fix). The ask rule reads the icon export-name pattern the icon-set discovery exports instead of a copy.
|
/approve-spec f7757f1 |
There was a problem hiding this comment.
Changes requested: the shipped guides and the description still need to catch up with search's icon block. The icon-set and result-order record changes are owner-approved at this head, both earlier code findings are fixed, and with no icon set installed search still prints exactly what the base prints.
- Miss:
packages/cli/assets/docs/tree/icon-sets.doc.mjs:35and:517andpackages/cli/authoring/config/config.doc.mjs:83still sayastryx searchnever returns icons, and the icon-sets guide's "Where icon sets show up" table has no search row, so readers in projects with an icon set are told the opposite of what search now does; restate those sentences, add a search row, and add search'sdata.iconsto that table's JSON types row. - The description's Testing section counts 11 tests in
search.icons.test.mjs("new, 11" and "11/11"), but the file has 12 at this head, including the new two-packages test, so update the count and list that case (a description edit, no commit needed).
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- The icon-set record states one search rule across its placement, finder, search and decision clauses, and the result-order record says the block changes neither results nor count: verified (record diff).
- The CLI structure check, the knowledge check and a strict typecheck of the touched files pass, and the touched tests pass: verified (both checks pass; strict typecheck errors only in two untouched page templates that need a built theme; 116 test files, 2,215 tests pass).
- An icon ask is a word typed as
iconoricons, an installed set's name, or an icon export name, never an exact component or hook name, and the rule lives once beside the finder's filler words: verified (icon-ranking.mjs:244-288, ask-rule tests; the export-name pattern is now the shared one). - The block needs icon features on and a set that loads, search's adapter computes it, the ask test reads only set directory names, the sets are read only for an ask, and with no set no icon data is read: verified (
_adapter.mjs:54-86,_icons.mjs:44-48). - Ranking is the finder's own over the sets in tie order, capped at three and fewer under a smaller limit: verified (
_icons.mjs:50-53;--limit 1printsIcons (1 of 2)). - The icons trail as a separate
data.icons, andresultsandmatchCountdo not change: verified (tests; head JSON withouticonsequals the base JSON). - The block appears only where icon features are on, and its types are marked experimental: verified (
_adapter.mjs:61,search.type.mjs). - Entry fields, no description field, the trailing
Icons (n)text block, no--type icon, and unchanged search domains: verified (_icons.mjs:56-71,commands/search.mjs:223-236, text and JSON runs); a set two packages ship is written<package>/<set>, as the icon-set record names such a set. - Search's own doc is unchanged, and the block is documented in the icon finder's doc and the types: verified (
icon.doc.mjs:19); the icon-sets guide and the config field reference still contradict it (first finding). - The lexical ranker, build, the search index and the gather cache are untouched, and sets are read on each call: verified (diff; install-and-remove test).
- With no set installed, the ten listed queries print exactly what the base prints, stdout and stderr: verified (20 base-against-head runs, text and JSON).
- With a fixture set installed, queries that do not ask answer as with none,
Icon,NavIconandIconButtonincluded: verified (tests; base-against-head runs). - With four large sets installed, five non-ask queries stay byte-identical: verified by code path (a query with no ask word returns before any set read); not re-run with large sets.
- A component that declares the keyword
iconkeeps its place: verified (test). - No non-icon query in the search and build tests opens the block: verified (no other search or build test installs an icon set).
- The listed suite counts: false for the icon-section file (12 tests, not 11, second finding); the search, command text, discover line, isolation, icon and return-type counts are verified.
- Consumer docs ship with the feature: false (first finding).
- The added time per search: not re-measured.
- The writing-rubric results match the record edits: verified.
- Changeset: with an icon set installed an icon ask lists up to three icons after the results, results and count do not change, a typed search lists none, and with no set every search answers as before: verified.
Files:
.changeset/search-icon-section.md: clear.docs/specs/AST-083-result-order/spec.md: clear.docs/specs/AST-084-icon-sets/spec.md: clear.packages/cli/api/icon/icon.doc.mjs: clear; the guides it should agree with are the first finding.packages/cli/api/search/_adapter.mjs: clear.packages/cli/api/search/_icons.mjs: clear.packages/cli/api/search/search-return-type.test.mjs: clear.packages/cli/api/search/search.icons.test.mjs: clear (12 tests; second finding is about the description).packages/cli/api/search/search.mjs: clear.packages/cli/api/search/search.type.mjs: clear.packages/cli/clients/cli/commands/search.mjs: clear.packages/cli/foundation/discovery/icon-ranking.mjs: clear.packages/cli/foundation/discovery/icon-set-discovery.mjs: clear (same behavior for the existing callers).packages/cli/foundation/integrations/icon-features.mjs: clear.packages/cli/test/experimental-isolation.test.mjs: clear.
… shows icons Where icon features are on, an icon ask in astryx search also lists up to three installed icons in its own icons block after the results; results and matchCount never hold an icon, and a --type search lists none. The guide's table gains a search row.
|
/approve-spec d999f8c |
There was a problem hiding this comment.
Approved pending CI: CI found no room at this head, so its test, typecheck and build jobs did not run; re-run all jobs. Both earlier findings are fixed: the icon-sets guide and the experimental.iconSet field reference now say where search shows icons, and the description's test count matches the file. The icon-set and result-order record changes are owner-approved at this head, and with no icon set installed search prints exactly what the base prints.
- Non-blocking: the guide's new
astryx searchrow (packages/cli/assets/docs/tree/icon-sets.doc.mjs:541) could add that a component or hook name such asNavIconis not an icon ask, and that the follow-up command appears only in--json.
Claims and files checked
Review mode: incremental; reason: none
Claims:
- The icon-set record states one search rule across its placement, finder, search and decision clauses, and the result-order record says the block changes neither results nor count: verified (record diff).
- The CLI structure check, the knowledge check and a strict typecheck of the touched files pass, and the touched tests pass: verified (both checks pass; strict typecheck errors only in two untouched page templates that need a built theme; 116 test files, 2,215 tests pass).
- An icon ask is a word typed as
iconoricons, an installed set's name, or an icon export name, never an exact component or hook name, and the rule lives once beside the finder's filler words: verified (icon-ranking.mjs:244-288, ask-rule tests). - The block needs icon features on and a set that loads, search's adapter computes it, the ask test reads only set directory names, the sets are read only for an ask, and with no set no icon data is read: verified (
_adapter.mjs:54-86,_icons.mjs:44-48). - Ranking is the finder's own over the sets in tie order, capped at three and fewer under a smaller limit: verified (
_icons.mjs:50-53through the finder's ranking;--limit 1printsIcons (1 of 3)). - The icons trail as a separate
data.icons, andresultsandmatchCountdo not change: verified (tests; head JSON withouticonsequals the base JSON). - The block appears only where icon features are on, and its types are marked experimental: verified (
_adapter.mjs:61,search.type.mjs:43,:58,:72). - Entry fields, no description field, the trailing
Icons (n)text block, no--type icon, and unchanged search domains and--type: verified (_icons.mjs:55-71,commands/search.mjs:223-236, text and JSON runs). - Search's own doc is unchanged, and the block is documented in the icon finder's doc and the types: verified (
icon.doc.mjs:19; the icon-sets guide and the config field now describe it too). - The lexical ranker, build, the search index and the gather cache are untouched, and sets are read on each call: verified (diff; install-and-remove test).
- With no set installed, the ten listed queries print exactly what the base prints, stdout and stderr: verified (16 queries in text and JSON, and the stable field reference, against the base).
- With a fixture set installed, queries that do not ask answer as with none,
Icon,NavIconandIconButtonincluded: verified (tests; base-against-head runs). - With four large sets installed, five non-ask queries stay byte-identical: verified by code path (a query with no ask word returns before any set read) and fixture runs; not re-run with large sets.
- A component that declares the keyword
iconkeeps its place: verified (test). - No non-icon query in the search and build tests opens the block: verified (no other search or build test installs an icon set).
- The listed suite counts (12, 78, 33, 7, 54, 52 and 1): verified (vitest at this head).
- The added time per search: partly verified (re-timed with a small fixture set: about 1 to 2 ms for a query that does not ask; the large-set figure for an icon ask was not reproduced).
- The writing-rubric results match the record edits: verified.
- One capability, no unrelated changes, consumer docs and tests ship with it, and no internal context in public text: verified (one formatting reflow in
_adapter.mjs; guides updated; scan of added lines, commits, title, body and branch). - Changeset: with an icon set installed an icon ask lists up to three icons after the results, results and count do not change, a typed search lists none, and with no set every search answers as before: verified.
Files:
.changeset/search-icon-section.md: clear.docs/specs/AST-083-result-order/spec.md: clear.docs/specs/AST-084-icon-sets/spec.md: clear.packages/cli/api/icon/icon.doc.mjs: clear.packages/cli/api/search/_adapter.mjs: clear.packages/cli/api/search/_icons.mjs: clear.packages/cli/api/search/search-return-type.test.mjs: clear.packages/cli/api/search/search.icons.test.mjs: clear.packages/cli/api/search/search.mjs: clear.packages/cli/api/search/search.type.mjs: clear.packages/cli/assets/docs/tree/icon-sets.doc.mjs: clear, with the non-blocking note above; agrees with the icon finder doc and the field reference.packages/cli/authoring/config/config.doc.mjs: clear.packages/cli/clients/cli/commands/search.mjs: clear.packages/cli/foundation/discovery/icon-ranking.mjs: clear.packages/cli/foundation/discovery/icon-set-discovery.mjs: clear (same behavior for the existing callers).packages/cli/foundation/integrations/icon-features.mjs: clear.packages/cli/test/experimental-isolation.test.mjs: clear.
| ], | ||
| [ | ||
| '`astryx search`', | ||
| "A search with no `--type` that asks for an icon (a word `icon` or `icons`, an installed set's name, or an export name such as `SearchIcon`) lists up to three installed icons in an `icons` block after its results, ranked as `astryx experimental icon <words>` ranks them, each with its import line and the command that reads it. The results and their count never hold an icon, and a search with `--type` lists none.", |
There was a problem hiding this comment.
Non-blocking: this row defines an ask without the exception the finder doc states, that a component or hook name (NavIcon, Icon) is not one (icon-ranking.mjs:279), and the text view prints only id (set): import, so the command is JSON-only. Suggested: "...or an export name such as SearchIcon that is not a component or hook name..." and "each with its import line (and, in --json, the command that reads it)".
Record change:
spec:AST-084FR0, FR6, FR11 and DEC-2 state one rule (search reads icon sets only for an icon ask where icon features are on, and appends at most three icons in its owniconsblock without changingresultsormatchCount);spec:AST-083FR1 says the block changes neither. Gates: CLI structure check,pnpm check:knowledgeand strict typecheck of the touched files pass; the touched test files pass locally (Testing below).User need
An agent building a page asks
astryx searchfor the parts it needs, and often for an icon in the same breath (trash icon,SearchIcon). With an icon set installed, search answers the components and docs but never the installed icons, so the agent guesses an import or runs a second command it may not know exists. The icon finder already ranks the installed icons by meaning; search should hand its best few back when the query asks for one.Problem and solution fit
iconoricons, an installed set's name, or an icon export name (SearchIcon), and is not the exact name of a component or hook search reads (Icon,NavIcon,IconButtonstay lookups). The rule lives once, beside the finder's filler words (asksForIcon).iconFeatureGate(project)) and an installed set that loads (project.iconSets()). Search's adapter computes it, so disk-backed discovery stays in the adapter. The ask test reads only the sets' directory names; the sets themselves are read only for a query that asks. With no set, search reads no icon data.rankIconsover the installed sets in tie order (project set first), thenansweringMatches. At most 3 icons, fewer whenlimitis smaller.data.icons = {matchCount, results}.data.resultsanddata.matchCountdo not change.Current specification
spec:AST-084states one rule for search and icon sets in FR0, FR6, FR11 and DEC-2:astryx searchreads icon sets only for an icon ask where icon features are on, appends at most three icons in its owniconsblock, and never changesresultsormatchCount; promotion decides every other stable listing of icons. FR6 describes the section; FR0, FR11 and DEC-2 are amended to the same rule.spec:AST-083FR1 gains one sentence: the section changes neitherresultsnormatchCount.spec:AST-017FR27): the section appears only where icon features are on, and its types are marked@experimental.Public delta and caller burden
data.iconsis additive and present only for an icon ask with a set installed and notype. Each entry:domain: 'icon',name(<set>/<id>),set,id,package,score,reason,import,command(astryx experimental icon <set>/<id>). The finder has no description field, so entries carry none.IconSearchEntryandSearchIconSection, andSearchResponse.data.icons?, all marked@experimental.SearchDomainand--typeare unchanged.Icons (n)block, one line per icon:trash (glyphs): import {TrashIcon} from '@acme/glyphs';.--type iconis not added: icons are not gathered candidates, and a typed search keeps to its one domain, so it lists no icons.search()'s own doc is not edited: its text is itself a search result, and any icon wording there makes it match icon queries with no set installed. The section is documented inicon()'s experimental doc and the types.searchCore,build,exportSearchIndex,rankSearchIndex, the persisted gather cache. Icon sets are read on each call, so installing or removing one shows on the next search.Design and alternatives
results(moves scores, counts and order for every query; search's contract is thatresultsare the lexical matches).iconword (IconButtonwould open the section).Evidence
--jsonand text output ofbutton,dark mode,trash icon,SearchIcon,IconButton,icons,delete,data table,glyphs home,chevron down iconare byte-identical to main (stdout and stderr).IconButton,NavIconandIconincluded. With four large sets installed,--jsonand text output ofbutton,dark mode,IconButton,deleteanddata tableare byte-identical to the output with no set.iconkeeps its place: foriconandicons,resultsandmatchCountserialize byte-identically with and without a set, andiconsis only appended after them.Scope
Components: cli search (api, text view), icon finder ask rule
Testing
search.icons.test.mjs(new, 12): ask rule; no set → noiconskey for icon and other queries; set installed → other queries deep-equal the no-set answer; icon asks keepresults/matchCountand add the trailing section with the exact entry shape; an integration component that declares the keywordiconkeeps its place; cap 3 andlimit: 1;type→ none; install → section, remove → none on the next call; a project look (experimental.iconVariant: 'solid') → the block prints the look's import, asastryx experimental icondoes; two packages that each ship a set namedglyphs→ each entry'snameandcommandread<package>/glyphs/trash, and each command answers; CLI text: trailing block, otherwise identical.CI=1:search.icons12/12,search78/78, search command text 33/33, search discover line 7/7,experimental-isolation54/54,icon52/52,search-return-type1/1.Writing rubric results
R1 narration: FR11 and DEC-2 said icons join search "at promotion" as a plan; rewritten as present-tense rules (what search reads, what it appends, what promotion decides). The FR6 and AST-083 sentences state what search does.
R2 research: none in the records; latency numbers live in this description.
R3 evidence: the FR0, FR11 verification row now names what the isolation tests check (search's
resultsandmatchCountwith a set installed; an icon ask may append itsiconsblock); it cites facts, no change.R4 rejected alternatives: none in the records; two listed in this description.
R5 change references: none in the records.
R6 open questions: none added.
R7 project status: none; no release or promotion timing is stated.