Skip to content

feat(cli): experimental icon names each match's meaning import - #12750

Closed
josephfarina wants to merge 5 commits into
mainfrom
josephfarina/icon-meaning-import
Closed

josephfarina wants to merge 5 commits into
mainfrom
josephfarina/icon-meaning-import

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Record change: spec:AST-084 FR6 adds two sentences: a match whose icon set maps it for a definition also has meaningImport, its import under the meaning name; and, when the set maps the icon for several definitions, which one names it.
Checks: the icon and search tests pass locally, and the new tests fail without the change; on a fixed set of agent-style requests across four published icon sets, every answer keeps the same icons in the same order.

User need

App code that imports an icon by its icon set's own export (TrashIcon) names the glyph, not what it means. When the project moves to another icon set, the name no longer fits (another set draws delete with a different glyph and export), and code copied from templates names the same meaning in another way. Agents paste the import line that astryx experimental icon prints, so the finder is where the meaning name has to come from.

Problem and solution fit

Each icon.search match whose set maps it for a definition gains meaningImport: the match's export imported under the definition's name in PascalCase ending in Icon, the same rule a set uses for its export names. Text prints it on a meaningImport line under import:

import:        import {TrashIcon} from '…';
meaningImport: import {TrashIcon as DeleteIcon} from '…';

The import comes from the icon set's own module, in the look the project picks. When the export already has the meaning name (SearchIcon for search), the line has no alias. When the set maps the icon for several definitions, the one that the query ranks first names it, then a built-in one, then the first by name; the set's own definitions rank with Astryx's, by their names, the names they replaced, and their words.

Current specification

docs/specs/AST-084-icon-sets/spec.md FR6 owns the icon.search answer and its fields. This PR adds two sentences to FR6 (the meaningImport field, and which definition names it when several map the icon) and names meaning imports in the FR6–FR8 verification row.

Public delta and caller burden

  • JSON: icon.search matches gain an optional meaningImport string (experimental). Every other field, the order, and matchCount stay the same. rankIconIndex() answers as icon() does, so its matches carry the field too.
  • Text: one meaningImport line under import for each match that a definition names; text labels mirror the JSON keys.
  • Unchanged: ranking, matches whose icon no definition names, the answer with no icon set installed, and the icons block of astryx search (it prints its own fields).
  • Callers decide nothing new: either line works; the meaningImport line keeps its name when the project changes icon sets.

Design and alternatives

  • The meaning comes from the set's own map, the data that template copies already map icons with, so the name is the one templates use for that meaning.
  • import stays as it is, so callers that read it keep working. Both lines come from one formatter: importLine takes an optional local name.
  • Rejected: a separate meaning-name field beside import. The caller would still have to build the line.

Evidence

  • Before: experimental icon close, in a project whose set maps close to x, prints only import {XIcon} from '…'. After: it also prints meaningImport: import {XIcon as CloseIcon} from '…'.
  • Unchanged path: delete answers trash, which no definition names in the test set, with no meaningImport.
  • Several definitions: an icon mapped for many definitions takes the one the query names (check gives CheckIcon, chevron down gives ChevronDownIcon), else the first built-in one by name.
  • Project look: with experimental.iconVariant: 'solid', the line names the solid export (TrashSolidIcon as DeleteIcon).
  • A definition the set declares itself: with farewell (words farewell, goodbye) declared by the set and mapped to x, both farewell and goodbye give XIcon as FarewellIcon, and close still gives CloseIcon.
  • On a fixed set of agent-style requests across four published icon sets, every answer keeps the same icons in the same order, and most first answers carry a meaning import.
  • Agent check: agents with no context did the same five icon tasks (a delete button, a close button, a settings button, a new-tab link icon, a search field icon) with the old and the new finder output. Both arms wrote a working import every time; with the new output every agent imported the icon under its meaning name (DeleteIcon, CloseIcon, SettingsIcon, ExternalLinkIcon, SearchIcon), and with the old output none did.

Scope

Components: cli (api/icon/search/search.mjs, clients/cli/commands/experimental/icon.mjs, icon docs and types), AST-084 FR6

  • One capability is added.
  • Unrelated fixes, cleanup, and policy changes were removed or split.
  • Consumer docs, focused tests, and migration evidence ship with the feature.
  • Public text and artifacts contain no internal Meta context.

Testing

  • CI=1 pnpm exec vitest run --project node packages/cli/api/icon packages/cli/clients/cli/commands/icon.test.mjs packages/cli/clients/cli/commands/icon-bare-subcommand.test.mjs packages/cli/api/search/search.icons.test.mjs packages/cli/api/search/search.test.mjs packages/cli/test/experimental-isolation.test.mjs
  • The new tests that check the field fail on the base branch and pass with this change.
  • pnpm check:knowledge

Writing rubric results

R1 narration: none; the two FR6 sentences state the field and the choice of definition in the present tense.
R2 research: none in the record; the measurement and the agent check stay in this description.
R3 evidence: the FR6–FR8 verification row names meaning imports among what the experimental icon tests cover; it cites tests, not changes.
R4 rejected alternatives: none added to the record.
R5 change references: none.
R6 open questions: none touched.
R7 project status: none.

preflight: pass f369e6b

@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 19, 2026 1:39pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 19, 2026
@astracat-bot

astracat-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 19, 2026, 1:46 PM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner deciding the sentence this pull request adds to spec:AST-084 FR6, which defines meaningImport, its naming and its choice among several definitions; the current record does not state it. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), or says what FR6 should state instead. Two code fixes are needed either way:

  • A set's own definition never names the meaning import: meaningRank in packages/cli/api/icon/search/search.mjs ranks only Astryx definitions, so a set that maps the built-in close and its own farewell to one icon answers astryx experimental icon farewell with import {XIcon as CloseIcon} … even though the match's reason is definition "farewell"; rank the set's own definitions with the query too and add a test with a declared definition.
  • The aliased line is built inline in search.mjs instead of extending importLine in packages/cli/foundation/discovery/icon-ranking.mjs, so import and meaningImport come from two formatters; give importLine an optional local name and use it for both branches.
Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: matches whose set maps the icon for a definition gain a meaning import, printed as a by meaning line under import — verified (search code and the new API and CLI tests).
  • Claim: the import uses the set's module in the project's look, with no alias when the export already has the name — verified (solid-look and search tests).
  • Claim: of several definitions, the query's best match names it, then a built-in one, then the first by name — false for a definition the set declares itself (first finding).
  • Claim: ranking, order, the match count, other fields, the no-set answer and the astryx search icons block are unchanged — verified (code and the experimental-isolation tests).
  • Claim: stored-index ranking returns the field too — verified (it calls the same ranking).
  • Claim: the label keeps the column width — verified (the formatter pads to the longest label, and definitions is always present with it).
  • Claim: the icon and search tests pass, and the new tests fail without the change — verified (all pass on the head; five of six fail on the base, the sixth guards the absent field).
  • Claim: the knowledge check passes — verified.
  • Claim: the multi-set measurement and the agent check — not reproduced (author's own runs).
  • Claim (changeset): the release note describes the meaning import and its patch bump for an experimental entry — verified.
  • Files: the changeset, the three doc files, the type file, the CLI command and both test files are clear; the spec record holds the owner decision; search.mjs carries both findings.

Automated review (maintainer link)

Comment thread packages/cli/api/icon/search/search.mjs Resolved
Comment thread packages/cli/api/icon/search/search.mjs Resolved
@josephfarina

Copy link
Copy Markdown
Contributor Author

Owner decision (engineering owner, covering this pull request): the AST-084 FR6 sentence on meaning-named imports and its FR6–FR8 verification row stand as written here. experimental icon names each match's meaning import, and every other answer stays the same.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec d7c85d2

@josephfarina

Copy link
Copy Markdown
Contributor Author

Owner decision (engineering owner, covering this pull request): the AST-084 FR6 sentence on meaning-named imports and its FR6–FR8 verification row stand as written here. experimental icon names each match's meaning import, and every other answer stays the same.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec b701386

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: one fix remains. An engineering owner approved the spec:AST-084 FR6 sentence at this head, and the shared importLine change from the last review is in.

  • A set's own definition that the query reaches by one of its words still loses the meaning import to a built-in one: definitionSet in packages/cli/api/icon/search/search.mjs passes definitions: [], so the ranking never reads a set definition's words, and in a set that maps close and its own farewell (words farewell, goodbye) to icon x, astryx experimental icon goodbye prints by meaning: import {XIcon as CloseIcon} … although the match's reason is word "goodbye"; pass definitions: docs.map(doc => ({doc})) there and add a test for goodbye giving FarewellIcon.
Claims and files checked

Review mode: incremental; reason: none

  • Claim: the FR6 record gains one sentence on the meaning import and the verification row names it — verified.
  • Claim: matches whose set maps the icon for a definition gain a meaning import, printed as a by meaning line under import that keeps the column — verified (code, tests and a CLI run).
  • Claim: the import uses the set's module in the project's look, with no alias when the export already has the name — verified (solid-look and search tests).
  • Claim: of several definitions, the query's best match names it, then a built-in one, then the first by name, with the set's own definitions ranked alongside Astryx's — false for a set's own definition reached by its words (finding above); verified when the query names it.
  • Claim: ranking, order, the match count, other fields, the no-set answer and the astryx search icons block are unchanged — verified (code and the isolation and search tests).
  • Claim: stored-index ranking returns the field too — verified (same ranking, same answers).
  • Claim: importLine takes an optional local name, so both lines come from one formatter — verified.
  • Claim: the icon and search tests pass, and the new tests fail without the change — verified (six of seven fail on the base; the seventh guards the absent field).
  • Claim: the knowledge check passes — verified.
  • Claim: the multi-set measurement and the agent check — not reproduced (the author's own runs).
  • Claim (release note): describes the meaning import with a patch bump for an experimental entry — verified.
  • Files: the release note, the spec record, the three doc files, the type file, icon-ranking.mjs, the CLI command and both test files are clear; search.mjs carries the finding.

Automated review (maintainer link)

Comment thread packages/cli/api/icon/search/search.mjs Resolved
@josephfarina
josephfarina force-pushed the josephfarina/icon-meaning-import branch from b701386 to a09a40e Compare November 19, 2026 03:52
@josephfarina
josephfarina changed the base branch from josephfarina/icon-connector-words to main November 19, 2026 03:52
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 19, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

Owner decision (engineering owner, covering this pull request): the AST-084 FR6 sentence on meaning-named imports and its FR6–FR8 verification row stand as written here. experimental icon names each match's meaning import, and every other answer stays the same.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec a09a40e

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 19, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: two fixes remain. The spec:AST-084 FR6 sentence on meaning imports is approved by an engineering owner at this head, so only code changes are needed.

  • A set's own definition reached by one of its words never names the meaning import: definitionSet (packages/cli/api/icon/search/search.mjs:303) passes definitions: [], so with the set's own farewell (words farewell, goodbye) mapped to x beside close, astryx experimental icon goodbye prints XIcon as CloseIcon; pass definitions: docs.map(doc => ({doc})) there and add a goodbye test.
  • Miss: the text output prints the meaningImport field under the label by meaning (packages/cli/clients/cli/commands/experimental/icon.mjs:284), which breaks architecture:cli-surface INV5 ("Text field names mirror JSON keys one to one"), so drop the labels override and update the CLI test, the command description and the changeset to match.

Everything else checks out: ranking, order and the match count are unchanged, the new tests fail on the base and pass here, and stable output is untouched.

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • The FR6 record gains one sentence defining the meaning import: verified (the record at lines 278-284).
  • The icon and search tests pass, and the new tests fail without the change: verified; 481 tests pass on this head, and 6 of the 7 new tests fail on the base (the absent-field guard passes on both).
  • Each mapped match gains a meaning import, the export under the definition name in PascalCase plus Icon, from the set's module in the project's look: verified (search.mjs:110-121, the solid-look test).
  • The text output prints it on a by meaning line under import: verified, but the label breaks INV5 (finding 2).
  • No alias when the export already has the meaning name: verified (icon-ranking.mjs:93-98, the search test).
  • Among several definitions the query's best match names it, then a built-in one, then the first by name, with the set's own definitions ranked alongside Astryx's: false for a set's own definition reached by its words (finding 1); true by name.
  • JSON gains one optional field; every other field, the order and the match count stay the same: verified (search.mjs:198-202).
  • rankIconIndex() carries the field too: verified (icon-index.mjs:25 uses the same ranking).
  • The label is no longer than definitions, so the columns keep their width: verified (10 against 11 characters).
  • Ranking, unmapped matches, the no-set answer and the icons block of astryx search are unchanged: verified (api/search/_icons.mjs:67-80, existing tests).
  • importLine takes an optional local name, so both lines share one formatter: verified.
  • The listed before/after cases (close, delete, check, chevron down, home, solid look, a set's own definition by name): verified by the new tests.
  • Same icons in the same order across four published sets, and the five-task agent check: not reproduced; order is unchanged in code.
  • Writing rubric: the record sentence is present tense and the verification row cites tests: verified.
  • Changeset: the command names each mapped match's meaning import in JSON and text: verified; its by meaning wording changes with finding 2.

Files:

  • .changeset/icon-search-meaning-import.md: clear apart from the label wording (finding 2).
  • docs/specs/AST-084-icon-sets/spec.md: clear; owner-approved at this head.
  • packages/cli/api/icon/icon.doc.mjs: clear.
  • packages/cli/api/icon/icon.test.mjs: clear; lacks a test for a word of the set's own definition (finding 1).
  • packages/cli/api/icon/icon.type.mjs: clear.
  • packages/cli/api/icon/search/search.mjs: finding 1.
  • packages/cli/clients/cli/commands/experimental-icon.doc.mjs: names the by meaning label (finding 2).
  • packages/cli/clients/cli/commands/experimental/icon.mjs: finding 2.
  • packages/cli/clients/cli/commands/icon.test.mjs: pins the by meaning label (finding 2).
  • packages/cli/foundation/discovery/icon-ranking.mjs: clear.
  • packages/cli/foundation/response/response-types.doc.mjs: clear.

Automated review (maintainer link)

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 19, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

Owner decision (engineering owner, covering this pull request at its current head): the AST-084 FR6 sentences on meaning-named imports and its FR6–FR8 verification row stand as written here. experimental icon names each match's meaning import, under the JSON key meaningImport, imported as the definition's name in PascalCase ending in Icon, as a set names its exports; a set's own definition words name it too. Every other answer stays the same.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec acfe88f

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 19, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet, because every commit skips it. Both earlier findings are fixed, and an engineering owner approved the spec:AST-084 FR6 meaning-import sentences at this head.

  • Next: rebase onto main, where the only conflict is the import list of packages/cli/api/icon/search/search.mjs (main adds discoverListsIconSet beside this branch's iconExportName; keep both), then let CI run and have an engineering owner comment /approve-spec again with the rebased head's SHA, since an approval covers only the head it names.
Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • The FR6 record gains sentences that define the meaning import and say which definition names it, and its verification row names meaning imports: verified (the record's FR6 and its FR6–FR8 row).
  • The icon and search tests pass, and the new tests fail without the change: verified; 481 tests pass on this head, and 6 of the 7 new tests fail on the base (the absent-field guard passes on both).
  • Each mapped match gains a meaning import, the export under the definition name in PascalCase ending in Icon by the rule a set uses for its export names: verified (search.mjs:122 calls the shared export-name helper).
  • Text prints it on a meaningImport line under import, and text labels mirror the JSON keys: verified (experimental/icon.mjs:276, the CLI text test).
  • The import comes from the set's own module, in the look the project picks: verified (the solid-look test).
  • No alias when the export already has the meaning name: verified (the search and dwelling cases).
  • Of several definitions, the query's best match names it, then a built-in one, then the first by name, with the set's own definitions ranked beside Astryx's: verified (check, chevron down, home; farewell, goodbye, close).
  • JSON gains one optional field, and every other field, the order and the match count stay the same: verified (search.mjs:202-206).
  • rankIconIndex() carries the field too: verified (a stored index answers goodbye with the set's own meaning name).
  • Ranking, matches no definition names, the no-set answer and the icons block of astryx search are unchanged: verified (api/search/_icons.mjs:70-82, the isolation and search tests).
  • importLine takes an optional local name, so both lines come from one formatter: verified (icon-ranking.mjs:93-96).
  • The listed before and after cases (close, delete, several definitions, the solid look, a set's own definition by name and by word): verified by the tests and a CLI run.
  • Same icons in the same order across four published sets: verified by construction (search.mjs:202-206 only adds a field to the ranked, cut list); the share of first answers with a meaning import and the five-task agent check are the author's own runs and were not reproduced.
  • The knowledge check passes: verified (records aligned).
  • The description and changes carry no internal context: verified.
  • Writing rubric: the record sentences are present tense, the verification row cites tests, and no status line is added: verified.
  • Changeset: the command names each mapped match's meaning import, such as TrashIcon as DeleteIcon: verified.

Files:

  • .changeset/icon-search-meaning-import.md: clear.
  • docs/specs/AST-084-icon-sets/spec.md: clear; owner-approved at this head.
  • packages/cli/api/icon/icon.doc.mjs: clear.
  • packages/cli/api/icon/icon.test.mjs: clear.
  • packages/cli/api/icon/icon.type.mjs: clear.
  • packages/cli/api/icon/search/search.mjs: clear; conflicts with main in its import list.
  • packages/cli/clients/cli/commands/experimental-icon.doc.mjs: clear.
  • packages/cli/clients/cli/commands/experimental/icon.mjs: clear.
  • packages/cli/clients/cli/commands/icon.test.mjs: clear.
  • packages/cli/foundation/discovery/icon-ranking.mjs: clear.
  • packages/cli/foundation/response/response-types.doc.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/icon-meaning-import branch from acfe88f to 96ff68f Compare November 19, 2026 08:24
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 19, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

Owner decision (engineering owner, covering this pull request at its current head): the AST-084 FR6 sentences on meaning-named imports and its FR6–FR8 verification row stand as written here. experimental icon names each match's meaning import, under the JSON key meaningImport, imported as the definition's name in PascalCase ending in Icon, as a set names its exports; a set's own definition words name it too. Every other answer stays the same.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 96ff68f

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 19, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet, because its head commit message carries [skip ci]. A push without it starts CI, and the merge guard waits for it to pass.

An engineering owner approved the new spec:AST-084 FR6 sentences for this head, and the earlier findings are fixed: a set's own definition words now name the meaning import, and both import lines come from importLine. Ranking, matchCount, the no-set answer and the astryx search icons block answer as before.

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Changeset: astryx experimental icon prints, for a match its set maps for a definition, an import under the meaning name (TrashIcon as DeleteIcon) — verified: head transcript for delete; icon.test.mjs:921-933.
  • The record gains the meaningImport field and the rule for several definitions, and the FR6–FR8 verification row names meaning imports — verified: spec.md:309-316 and the FR6–FR8 row.
  • The icon and search tests pass, and the new tests fail without the change — verified: 481 tests pass; 6 of the 7 new tests fail on the base, and the seventh checks that an unmapped icon has no field, which the base also meets.
  • Answers keep the same icons in the same order — verified on 700 queries in five fixture projects, base against head (the published sets were not checked here).
  • Text prints a meaningImport line under import, and text labels mirror JSON keys — verified: experimental/icon.mjs:319; head transcripts.
  • The import comes from the set's module, in the look the project picks — verified: icon.test.mjs:921-933.
  • No alias when the export already has the meaning name — verified: icon.test.mjs:847-852 and :913-918.
  • Of several definitions, the query's first names it, then a built-in one, then the first by name, and the set's own definitions rank with Astryx's — verified: search.mjs:141-155; icon.test.mjs:860-919.
  • JSON gains an optional field; every other field, the order and matchCount stay the same — verified: fixture comparison above.
  • rankIconIndex() matches carry the field too — verified: icon-index.mjs:151 calls the same ranking.
  • Unmapped matches, the answer with no set, and the astryx search icons block are unchanged — verified: fixture comparison; _icons.mjs:72-82 copies its own fields.
  • Both lines come from one formatter with an optional local name — verified: icon-ranking.mjs:96, search.mjs:123-127 and :274.
  • Before and after for close in a set that maps it to x — verified: base and head transcripts.
  • delete with no mapping answers trash with no field — verified: icon.test.mjs:854-858.
  • check, chevron down and home pick CheckIcon, ChevronDownIcon and the first built-in by name — verified: icon.test.mjs:860-879.
  • A set-declared farewell names the import by its name and by its word goodbye, and close still gives CloseIcon — verified: icon.test.mjs:881-912.
  • Most first answers on published sets carry a meaning import, and agents used the meaning name in a five-task trial — not reproducible here; on the fixtures most first answers carry the field.
  • One capability, no unrelated changes, docs and tests ship with it, no internal context — verified: 11 files; the command, function and response-type docs describe the field; the text scan is clean.
  • pnpm check:knowledge passes — verified.
  • Writing rubric results — verified against the record diff: present tense, no research, status, change references or open questions; the verification row cites tests.

Files:

  • .changeset/icon-search-meaning-import.md — clear: [experimental] patch.
  • docs/specs/AST-084-icon-sets/spec.md — clear: owner-approved at this head; no approval line changed.
  • packages/cli/api/icon/icon.doc.mjs — clear: matches the code.
  • packages/cli/api/icon/icon.test.mjs — clear: the new FR6 tests.
  • packages/cli/api/icon/icon.type.mjs — clear: optional meaningImport on IconMatchEntry.
  • packages/cli/api/icon/search/search.mjs — clear: the field, the definition ranking, and the set's own definition words.
  • packages/cli/clients/cli/commands/experimental-icon.doc.mjs — clear: description only.
  • packages/cli/clients/cli/commands/experimental/icon.mjs — clear: the text field, named as the JSON key.
  • packages/cli/clients/cli/commands/icon.test.mjs — clear: the text test.
  • packages/cli/foundation/discovery/icon-ranking.mjs — clear: optional local name on importLine.
  • packages/cli/foundation/response/response-types.doc.mjs — clear: description only.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

Owner decision (engineering owner, covering this pull request at its current head): the AST-084 FR6 sentences on meaning-named imports and its FR6–FR8 verification row stand as written here. experimental icon names each match's meaning import, under the JSON key meaningImport, imported as the definition's name in PascalCase ending in Icon, as a set names its exports; a set's own definition words name it too. Every other answer stays the same.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 19e30b3

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet, because its head commit message carries [skip ci]. A push without it starts CI, and the merge guard waits for it to pass.

An engineering owner approved the new spec:AST-084 FR6 sentences for this head. The new commit makes a name that a set's own definition replaced (planet) name its successor's meaning import (MeteorIcon), matching the match's reason, and its test covers both the live search and a stored index.

Claims and files checked

Review mode: incremental; reason: none

Claims:

  • Changeset: astryx experimental icon prints, for a match its set maps for a definition, an import under the meaning name (TrashIcon as DeleteIcon) — verified: icon.test.mjs:954-966; head transcripts.
  • The record gains the meaningImport field and the rule for several definitions, and the FR6–FR8 verification row names meaning imports — verified: spec.md:309-316, :885.
  • The icon and search tests pass, and the new tests fail without the change — verified: the targeted suites pass; 7 of the 8 new tests fail on the base, the eighth checks that an unmapped icon has no field, which the base also meets, and the replaced-name test fails on the previous revision.
  • Answers keep the same icons in the same order across published icon sets — verified on fixtures only: 704 queries in six fixture projects answer as on the base apart from the new field; the published sets were not checked.
  • Text prints a meaningImport line under import, and text labels mirror JSON keys — verified: experimental/icon.mjs:319; commands/icon.test.mjs:72-79.
  • The import comes from the set's own module, in the look the project picks — verified: icon.test.mjs:954-966.
  • No alias when the export already has the meaning name — verified: icon.test.mjs:848-853, :914-919.
  • Of several definitions, the query's first names it, then a built-in one, then the first by name; the set's own definitions rank with Astryx's by name, replaced name and word — verified: search.mjs:149-166; icon.test.mjs:861-952.
  • JSON gains an optional field; every other field, the order and matchCount stay the same — verified: the fixture comparison above.
  • rankIconIndex() matches carry the field too — verified: icon-index.mjs:151 calls the same ranking; icon.test.mjs:941-946.
  • Unmapped matches, the answer with no set, and the astryx search icons block are unchanged — verified: the fixture comparison; _icons.mjs:72-82 copies its own fields.
  • Both lines come from one formatter with an optional local name — verified: icon-ranking.mjs:96, search.mjs:129-133 and :285.
  • Before and after for close in a set that maps it to x — verified: icon.test.mjs:835-846; head transcript.
  • delete with no mapping answers trash with no field — verified: icon.test.mjs:855-859.
  • check, chevron down and home pick CheckIcon, ChevronDownIcon and the first built-in by name — verified: icon.test.mjs:861-880.
  • A set-declared farewell names the import by its name and by its word goodbye, and close still gives CloseIcon — verified: icon.test.mjs:882-913.
  • Most first answers on published sets carry a meaning import, and agents used the meaning name in a five-task trial — not reproducible here; on the fixtures most first answers carry the field.
  • One capability, no unrelated changes, docs and tests ship with it, no internal context — verified: 11 files; the command, function and response-type docs describe the field; the text scan is clean.
  • pnpm check:knowledge passes — verified.
  • Writing rubric results — verified against the record diff: present tense, no research, status, change references or open questions; the verification row cites tests.

Files:

  • .changeset/icon-search-meaning-import.md — clear: [experimental] patch.
  • docs/specs/AST-084-icon-sets/spec.md — clear: owner-approved at this head; no approval line changed.
  • packages/cli/api/icon/icon.doc.mjs — clear: matches the code.
  • packages/cli/api/icon/icon.test.mjs — clear: the new FR6 tests, including replaced names live and from a stored index.
  • packages/cli/api/icon/icon.type.mjs — clear: optional meaningImport on IconMatchEntry.
  • packages/cli/api/icon/search/search.mjs — clear: the field, the definition ranking, and the set's own words and replaced names.
  • packages/cli/clients/cli/commands/experimental-icon.doc.mjs — clear: description only.
  • packages/cli/clients/cli/commands/experimental/icon.mjs — clear: the text field, named as the JSON key.
  • packages/cli/clients/cli/commands/icon.test.mjs — clear: the text test.
  • packages/cli/foundation/discovery/icon-ranking.mjs — clear: optional local name on importLine.
  • packages/cli/foundation/response/response-types.doc.mjs — clear: description only.

Automated review (maintainer link)

…ng import

The definition ranking behind the meaning import now carries the set's own old definition names (a live set's aliases, a stored index's replaced names), as the icon ranking does, so an old name gives the successor's name (planet gives XIcon as MeteorIcon) instead of falling back to a built-in one. A test covers the live search and a stored index.

[skip ci]
@josephfarina
josephfarina force-pushed the josephfarina/icon-meaning-import branch from 19e30b3 to f369e6b Compare November 19, 2026 13:29
@josephfarina

Copy link
Copy Markdown
Contributor Author

Owner decision (engineering owner, covering this pull request at its current head): the AST-084 FR6 sentences on meaning-named imports and its FR6–FR8 verification row stand as written here. experimental icon names each match's meaning import, under the JSON key meaningImport, imported as the definition's name in PascalCase ending in Icon, as a set names its exports; a set's own definition words name it too. Every other answer stays the same.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec f369e6b

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet, because its head commit message carries [skip ci]. A push without it starts CI, and the merge guard waits for it to pass.

An engineering owner approved the spec:AST-084 FR6 sentences on meaning imports for this head, each new clause has a test that fails without the change, and the earlier inline findings stay fixed. Nothing else is needed from the author.

Claims and files checked

Review mode: full; reason: history

  • Claim: FR6 gains two sentences, on meaningImport and on which definition names it: verified (spec.md:309-316).
  • Claim: the new tests fail without the change: verified (seven of eight fail on the base; the eighth checks the no-field case, which the base also meets).
  • Claim: answers keep the same icons in the same order: verified on fixture projects (every answer equals the base apart from meaningImport); the published-set measurement was not reproduced.
  • Claim: text prints a meaningImport line under import, labelled as its JSON key: verified (experimental/icon.mjs:319, commands/icon.test.mjs:72-79).
  • Claim: no alias when the export already has the meaning name: verified (icon.test.mjs:848-853).
  • Claim: of several definitions, the query's best names it, then a built-in one, then the first by name, and the set's own definitions rank by name, replaced names and words: verified (icon.test.mjs:861-952).
  • Claim: the JSON field is optional and rankIconIndex() carries it: verified (icon.type.mjs:66, icon.test.mjs:942).
  • Claim: ranking, unmapped matches, the answer with no set and the icons block of astryx search stay unchanged: verified (fixture comparison; _icons.mjs:70-83).
  • Claim: importLine takes an optional local name: verified (icon-ranking.mjs:96-100).
  • Claim: the project look names its own export: verified (icon.test.mjs:954-966).
  • Claim: agents imported under the meaning name with the new output: not reproducible in review; not relied on.
  • Claim: the icon, search and knowledge checks pass: verified (482 tests; pnpm check:knowledge).
  • Changeset: an [experimental] patch that names meaningImport: verified.
  • Files: .changeset/icon-search-meaning-import.md, docs/specs/AST-084-icon-sets/spec.md, packages/cli/api/icon/icon.doc.mjs, packages/cli/api/icon/icon.test.mjs, packages/cli/api/icon/icon.type.mjs, packages/cli/api/icon/search/search.mjs, packages/cli/clients/cli/commands/experimental-icon.doc.mjs, packages/cli/clients/cli/commands/experimental/icon.mjs, packages/cli/clients/cli/commands/icon.test.mjs, packages/cli/foundation/discovery/icon-ranking.mjs, packages/cli/foundation/response/response-types.doc.mjs: each clear.

Automated review (maintainer link)

josephfarina added a commit that referenced this pull request Nov 19, 2026
josephfarina added a commit that referenced this pull request Nov 19, 2026
josephfarina added a commit that referenced this pull request Nov 19, 2026
josephfarina added a commit that referenced this pull request Nov 19, 2026
- #12895 experimental theme: a saved --only on a part styled on its own opens
  Author: @josephfarina
- #12706 fix(cli): template reads ~/ as the home folder, never a folder named ~
  Author: @josephfarina
- #12750 feat(cli): experimental icon names each match's meaning import
  Author: @josephfarina
- #12307 fix(core): keep anchored layers on screen when their trigger runs past the viewport
  Author: @josephfarina
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed in #12940.

@github-actions
github-actions Bot deleted the josephfarina/icon-meaning-import branch November 20, 2026 06:06

This branch was successfully deployed

1 active deployment
Preview — f369e6b2 Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant