An open source design system that's fully customizable and agent ready
schema_version: 4 template_version: 2 kind: system-spec id: spec:AST-084 authority: current archive_reason: null superseded_by: null approved_by: josephfarina approved_at: 2026-10-20 phase: accepted owners: [josephfarina] affects_architecture: [architecture:cli-surface] affects_families: [] affects_contributing: [contributing:cli-conventions] affects_consumer_docs: [cli/experimental]
Icon set integrations system spec
Intent
An icon set is an experimental integration item: icon components a package
exports, plus one data file that says which icon draws each icon definition.
Astryx ships icon definitions, one typed doc file per thing an icon can stand
for (close, delete, rocket). A set registers its icons against them, and
may add definitions of its own. With a set installed:
- an agent or engineer finds an icon by meaning with
astryx experimental icon <words>and gets the exact import line; - a template copied into a project that opts in with
experimental.iconSetuses the set's icons for the definitions the template declares; and - a theme points the shared semantic icon names at the set's artwork.
The CLI encodes no icon library: the author, or the author's agent, picks each icon, and the CLI verifies it, writes the files, and checks the set.
Non-goals
- Choose a variant at render time; that belongs to the Icon component contract.
- Declare sizes in the data file: icon size is CSS, and the artwork scales with its box.
- Grow the shared
IconNameset: the built-in definitions are exactly its values. - Make each icon its own discoverable item: the set is the item.
- Edit, redraw, or bundle artwork: every icon is a component the package exports.
- Equivalent internal implementations remain valid when they satisfy this contract.
Requirements
Experimental placement
FR0 — Every icon-set surface is experimental and isolated. Under
spec:AST-017/FR21–FR27:- the commands are
astryx experimental iconand its subcommands, under theexperimentalcommand group; no stable command gains an icon-set subcommand or option value, and the one icon-set kind on a stable command is discover'sicon-set, read only with the opt-in (FR17, DEC-8); astryx experimentalis a top-level command group admitted here underspec:AST-042/FR4. It answers one question: where does a CLI control live while it may still change in a patch release? No existing command can hold such controls, becausespec:AST-017/FR27keeps experimental controls off every stable command and its output; extendinghelpor any stable family would change that command. Its one job is to group experimental commands. It performs no operation itself, sospec:AST-042/FR1names no function for it; each command under it names its own. It has no result of its own: each command under it returns data, a typed JSON response that agents and tools act on, while the reasons behind experimental features are prose in their docs undercli/experimental;- configuration is
experimental.iconSetinastryx.config, the project's opt-in, andexperimental.iconSetsin the integration manifest; - the guides and schemas live under
cli/experimental(the guide, theicon-set-filesreference of the descriptor, data file, and definition schemas, which the stable field reference never lists, and theicon-definitionsnamespace); the reference docs of the experimental commands and API functions live with every other command and function reference (cli/api/functions/...and the command docs), listed only in theastryx docs clilisting, the same exception this requirement makes for help; every one of these docs carriesstability: 'experimental', and API functions and authoring types carry@experimental; and - every change ships as an
[experimental]patch Changeset. Promotion to stable needs the owner's approval and a[feat]Changeset (spec:AST-017/FR23).
Without
experimental.iconSet, help (apart from the markedexperimentalgroup line),astryx manifest(apart from that group: its command, and itsresponseTypesandjsonSupportedentries), theastryx docs clilistings (apart from the markedexperimentalnamespace and the experimental command and function references),astryx template,astryx discover, and Doctor, itsdoctor integrationsubcommands for an installed package included, give the output they give without this feature, whatever sets are installed, and so dointegration checkandverifyfor a package that declares noexperimental.iconSets, with two differences, both because a CLI without this feature does not know the manifest keyexperimental. With a package that declaresexperimental.iconSetsinstalled, that CLI warns about the key in Doctor'sintegration-issuescheck and indoctor integration validate <package>, and in text mode every command that prints the integration-issue nudge (component,discover,search,template,theme list,theme add,theme remove,theme use,theme eject, andupgrade) prints "Warning: has 1 integration issue(s)" to stderr; this CLI does neither. Discover refuses--type icon-setand ignoresicon-setcatalog items and their fields exactly as it does any unknown kind or field. With the opt-in,icon-setis a discover kind (FR17).astryx searchnever reads icon sets, with or without the opt-in, and returns no experimental doc. No stable doc names an experimental route, an icon set, or an icon definition, and a stable docs node's previous and next links skip experimental neighbors; the one stable addition is the field reference'sstabilityfield (FR18), which a search for "experimental" finds.- the commands are
What a set declares
FR1 — One manifest root. The manifest MAY set
experimental.iconSets, a relative directory. Each lower-kebab directory under it is one set, named by the directory; the manifest never lists sets or icons (spec:AST-039/FR11).FR2 — One typed descriptor. Each set directory holds
<name>.doc.mjs, a default-exportedIconSetDoc(type: 'icon-set',nameequal to the directory,displayName,description,maintained, andlicense, an SPDX expression for the artwork).FR3 — One data file, read by every icon surface. Each set directory holds
<name>.icons.json(schemaVersion: 1):module: the import specifier every export is read from, the package's name or one of itsexportssubpaths;icons: each with a unique lower-kebabid, anexport, at least one search word inwords, optionalvariants(each a declared variant and the export that draws it, at most one export per variant), and optionalmatches, reviewed equivalents in other installed sets with a confidence ofexact,strong, orlikely;map: icon definition name to iconid; one icon MAY draw several definitions;- optional
variants, the lower-kebab variant names the set declares, anddefault.variant, the one each icon's ownexportdraws. A variant is a named look the set supplies (for example outline or solid); size comes from CSS; - optional
source(the upstream library and version),exclude(library exports that are not icons, FR13),generated(FR13),adapter(FR13), andthemeMap(FR12).
A data file that fails this shape, repeats an
id, maps a name that is neither an Astryx definition nor one of the set's own, maps to a missing icon, or names a variant the set does not declare is invalid, and the set is withdrawn from every surface.FR4 — Icon definitions are typed doc files in folders. An
IconDefinitionDoc(type: 'icon-definition') has a camelCasename, a one-sentencedescription,words, andbuiltIn: trueexactly for anIconName. Astryx ships one file per definition in the CLI's definitions folder; a set adds its own in<set>/definitions/<name>.doc.mjs. The doc compiler reads every file in a folder; there is no index. A set's own definition needs no change to Astryx and maps only within that set; proposing it for every set is a pull request that copies its file into the CLI's folder. When names collide, Astryx's wins. The experimentalicon-definitionsnamespace lists Astryx's definitions and, in a project that setsexperimental.iconSet, each installed set's own.FR5 — The directory is the boundary. Discovery reads the descriptor, data file, and definitions statically, never runs the icon module, and rejects a path that escapes the package (
spec:AST-039/FR5, FR6).
Finding and choosing
- FR6 —
astryx experimental icon <words>ranks icons by meaning. It answersicon.search, each match with itsset,id,package,module,export,importline,words,definitions,variants,reason, andscore: 100 for a definition the set maps to the icon, 90 or 80 for an exact name or meaning match (the reading most of the searched icons use leads), 60 when the query starts one of its words, 40 for a partial match (three letters or more inside a word). A word's plural or singular is an exact match (starsforstar); a word that only starts with the query (start) answers only when nothing matches a whole word, and a partial match only when nothing scores 60 or more. A query is scored as typed first; only when nothing answers it with a whole word are the words that only phrase it (go,the,icon) left out of a query of several words, sogo homeasks forhomeandarrow up to linestill namesarrow-up-to-line. An icon also answers to the name and words of every definition it draws. Equal scores are ordered by set order (FR8), so the project's set leads; then, within a set, an exact name match on the whole id, then on its plural or singular, before one on an id part, and an exact meaning match by its tag position; then byid.--setkeeps one set and--limitcaps the list;--setwith--all-iconsand no words lists every icon of that set (icon.setIcons), and--definitionslists every Astryx definition (icon.definitions). - FR7 — One icon and the installed sets.
<set>/<id>answersicon.detailwith every variant's import line;--listanswersicon.listwith each set's coverage of built-in, Astryx, and its own definitions, the project's icon-set state, and each withdrawn set. A set is named by its name or<package>/<set>; a name two packages ship needs the qualified form. - FR8 — The project's set.
experimental.iconSetnames the project's set ("<set>"or"<package>/<set>") and opts the project in. Withinastryx experimental icon, a project without it treats its only installed set as its set. A name two installed packages ship names no set. Lookups put the project's set first, then the integration load order.
Templates and themes
- FR9 — Templates declare definitions. A template or block descriptor
declares, in
icons, the definition each imported icon draws ({TrashIcon: 'delete'}), keyed by the name a named import reads ({Trash as TrashIcon}isTrash) or by a default import's local name. In a project with a set (FR8, opted in),astryx template(printed or copied) rewrites each declared icon, and each icon another installed set ships, to the project set's icon that names it in anexactorstrongmatch, else the icon itsmapnames for the definition. Every reference uses the mapped export, under an alias when the name is taken; a mapped default import becomes the set's named import aliased to its local name. Nothing is guessed from names, and alikelymatch is only suggested. One key covers a name imported from two modules (outline and solidTrashIcon); each keeps its variant when its module belongs to an installed set. A mapped icon's elements lose the library's sizing props (size,strokeWidth,absoluteStrokeWidth): size comes from CSS (FR14). Comments on a rewritten import line are kept. - FR10 — The template reports every icon. The result, and the copy
receipt, gain
icons: the set state, each iconmapped(source, target, the rule, and the sizing propsdropped) orkept(with why, and alikelysuggestion when one exists). With a set, every declared key is mapped or kept: a key bound only by a namespace import, a type-only import, a re-export, or an import from an Astryx package or the project's set, or by no import at all (modulenull), is kept with the reason; a side-effect import binds nothing. An unmapped icon keeps its import, and its library stays a needed dependency. Printed source keeps the report on stderr. Without the opt-in there is noiconsfield and no rewrite.integration checknotes each key a template's source never imports (template_icon_not_imported), never counted or failing, under--strictor--next. - FR11 — Search stays stable.
astryx searchhas no icon domain and no--type icon, and returns no experimental doc, with or without the opt-in. Icons join it only at promotion. - FR12 — The theme map. A set exports the map
themeMapnames: one entry per built-in definition inmap, each its icon's artwork, so a theme setsicons: themeIcons. Each entry is sized to the theme's icon box by CSS (stylewidth and height1em) as well as by attributes, so an icon whose component writes its own size attributes still draws at the box's size.
Authoring
- FR13 — The CLI writes the set, one verified icon at a time. Every
icon command refuses, with
ERR_INVALID_OPTIONand before it writes a file, two options it would not both honor: a listing (--list,--definitions,--all-icons) with a query, another listing, or an option it ignores; a<set>/<id>query with--setor--limit;add --allwith an export name,--definition,--new-definition,--description,--words,--default, or--id;add --definitionwith--new-definition;add --descriptionor--wordswithout--new-definition;map --pairswith a definition, an icon, or--remove, andmap --removewith an icon; andnew-set --excludewithout--fromor--default-variantwithout--variants. Every command reads modules statically, and its writes are all or nothing: when it fails, every file is as it was and the error has a stable code (ERR_WRITE_FAILEDfor a write that fails). It writes only the set's own files, the manifest root, and the set's root and manifest in an existing package.jsonfiles(architecture:cli-surface INV16); every other change the package needs, it names as the exact text to add:experimental icon new-set <name>writes the descriptor, an empty data file, the generated module (generated) with its declaration file and an empty theme map, and the manifest root.--from <module>wraps every component the module exports, and every data export through the set'sadapter, as<Name>Iconexports, fillingmaponly where a definition's name is an icon's wholeid, and lists those entries for review. For an unmapped definition it returns, never writes, up to three suggestions, in this order: an icon whoseidis the definition's name spelled with or without hyphens or with a plurals(light-bulbforlightbulb,languagesforlanguage); an icon whose library gives it the definition's name as another name; icons whoseidstarts with the definition's name as written, most of its words first; an icon whoseidis one of its words; an icon whose library gives it one of its words as another name; then two-word ids whose first word is a one-word word exactly and whose second word only sizes, shapes, or numbers it (grid-2x2,plus-circle; nevercard-simorfast-forward). A plural joins only its own singular, never a longer id (usersis notuser-plus), and no other ending is taken off (draftingis notdraft). Never an iconmapalready uses, one whoseidis another definition's name, a negated form (lock-open,bell-off), or the opposite direction (ellipsis-verticalformoreHorizontal). A library whose export names end in look words (a style, a size, a weight:XOutline24WGHT500Icon), read from its trailing words that a few values fill on nearly every export and that are numbered or include a style word, never a direction word (ArrowUpandArrowDownare two glyphs), gives one icon per glyph, named without them (x,XIcon), in the look the default variant names, else the library's usual default (outline,regular), else the middle of a numbered series; the receipt names the looks it found and how many exports draw the icons. Reading a module of a thousand exports or more, here, on a refresh, and inadd, prints its progress on stderr in text mode, naming the module as given. Ids keep a dimension as one word (Squares2X2Iconissquares-2x2) and split a one-letter word from a digit (CalendarX2iscalendar-x-2); a shared library prefix is left out of ids and names; an icon exported under several names is recorded once, its other names as words;…Providerand…Contextcomponents are never icons; and--excludeadds exports that are not icons to the data file'sexclude, which every refresh honors. An icon whose id would start with a digit once the shared prefix comes off keeps the prefix (fa0is idfa-0, exported asFa0Icon), and an id that starts with a digit with no prefix to keep is refused withERR_INVALID_ARGUMENT. From an installed package it recordssource(the library and version), copies the library's license notices into the set, and takes the library's license for the descriptor; when the library ships none and the set and package have none, the receipt names the NOTICE file to add underlicenseNoticeMissing, and nothing is written. Its receipt names, as the exact text to add, the entry change that makes the generated module public (anexport *line for an entry file in the package, relative to it; for a package with no entry,index.js,index.d.ts, and their package.jsonmain,types, andexports; for a built or CommonJS entry, the line for the source it is built from, never the built file), thereactand optional@types/reactand@astryxdesign/clipeers it does not declare, and atypecheckscript runningintegration check --strictwhen it has none.--variantsand--default-variantdeclarevariantsanddefault;--display-nameand--descriptionfill the descriptor. Without--from, over an existing set, those four options update it in place and leave its icons,map, and generated module as they are; a variant an icon has must stay declared, a set with icons keeps its default variant (in a library of looks the refusal names the--fromrun that moves it), and the receipt carriesupdated. A set whose icons' export names name no looks keeps its default variant on a refresh too, since its icons keep their exports; the refusal names theadd --variant <name> --from <module> --all --set <set>run that adds the look. Over an existing set,--variantswithout--default-variantkeeps the set's default variant while it stays declared; in a library of looks, it takes the look the icons' exports draw, which--variantsmust list. Run again with--from, it refreshes the icons that module supplies (those the generated module re-exports or adapts from it) and keepsmapentries whose icon exists; every other icon (the author's./artwork, another library's) is kept with itsmapentries and variants, a library icon whoseidor export one of those has is left out and named, and each icon the module no longer exports, or thatexcludenow names, is removed and named for that reason, with themapentries that named it. An existing icon is known by the library export its generated module re-exports, then by its own export, then by itsid; one matched this way keeps its export unchanged, itsmapentries, and every other field, and anidthe current rule spells differently from the same library name is reported underrenamed(add --variant <name> --allmeets an icon the same way). A refresh from a package root also refreshes an icon the generated module reads from a file of that package, and each such variant of an icon it refreshes, when the root exports the same icon: an export that resolves to the same file and binding, or an export of the same name when the file export does not resolve. It moves to the root import, keeps its id, export, and other fields, and the icon is reported undermoved. It is matched only through that root export, and a root icon with its id or export is left out. An export stays on its file, and the receipt says so, when another export of the set already reads that root export or an earlier move takes it. Every export the refresh does not write again stays in the generated module. A refresh copies the library's license notices the set lacks, and the run that first recordssourcetakes the library's license for the descriptor when itslicenseis still the onenew-setwrote (the package's own, orUNLICENSED); alicensethe author changed is kept, and the receipt names both. Later runs keep the descriptor'slicense. The package's ownlicenseis never written. In a library of looks, a look the set already wraps keeps its icon andid, so a set wrapped one look at a time loses and renames nothing, and a new glyph comes in once; a new--default-variantmoves each glyph's own icon to the look it names, and the icon keeps itsidand export. A new--default-variantthat is none of the library's look words is refused, the look words named, and nothing is written.experimental icon add <Export> --from <module>verifies the export, lists the definitions that fit it, and with--definitionor--new-definitionadds it and maps it;--variant <name>adds it as that declared variant of an existing icon, and names a variant the set does not declare with the command that declares it, which names the set's default variant. Each command it lists names the set with--setand repeats--defaultand--idas passed, so it runs as printed. A new definition is named in camelCase or kebab-case and written in camelCase. From a library of looks it names the icon by its glyph; when the set already exports that glyph's name for another export of the library, the export keeps its look words in its id and name, or takes its name from--id, and when its first look word that differs from the wrapped export's is a declared variant other than the default, the listing adds the command that adds it as that icon's variant. With--variant <name> --alland no export, it adds that variant in one write for every icon from that module's package whoseidan export of the module has (in a library of looks, the glyph's look of that name), and for every icon from another package whose library export the module exports under the same name and kind (a library that ships each look as its own package). Once one icon of another package matches this way, the other icons of that package are matched as icons of the module's package, and each one the module has no export for is listed as missing. Any other icon from another module is left alone and not listed as missing, and a glyph drawn in no look of that name, or whose own export is that look, is listed as missing. For a./file outside package.jsonfiles, it names thefilesarray that publishes it.experimental icon map <definition> <icon>writes onemapentry,--removeremoves one, and--pairswrites many in one checked write; here and inadd --definitiona definition may be named by its kebab id.mapnames an icon only by itsid, its export name in any case, or another name its library exports it as (a word it carries that is not a part of itsid); a part of anidalone (glassformagnifying-glass) is refused with the icons that carry it;new-definitionwrites one of the set's own definitions;use <set>writesexperimental.iconSet.- The generated module re-exports each library component, or wraps a data export with the adapter, and rewrites its declaration file and theme map with every change. It and its declaration file are read statement by statement however a formatter left them, with or without semicolons, so a formatted module is rewritten and checked like the one the CLI wrote.
- FR14 — The export contract. Every icon and variant is a named
<Name>Iconexport of the package's public entry: a React component, or an adapter call, that takes SVG props, draws withcurrentColor, and fills its box. The module, name, and component shape are checked statically; color and size are documented with a render test authors can copy.
Checks and catalogs
FR15 —
integration checkproves the set matches the package. For each set it reports, without running the package:Code Severity When invalid_icon_seterror the descriptor, data file, or a definition file is invalid icon_builtin_definition_missingerror a built-in definition is not in mapicon_definition_unusedwarning a definition the set declares is not in mapicon_definition_shadowedwarning a definition the set declares has an Astryx definition's name icon_module_not_publicerror an icon is read from outside the package's public entry icon_export_namewarning an export is not named <Name>Iconicon_not_componenterror an export is a literal, not a component or adapter call icon_export_missingerror an export, the generated module, or the adapter does not exist icon_module_invaliderror the set's module, a file it re-exports, or the generated module does not parse icon_generated_types_mismatcherror the generated declaration file is missing or stale icon_theme_map_mismatcherror the theme map disagrees with the built-in entries of mapicon_source_version_driftwarning the data names another upstream version than the package depends on icon_license_notice_missingwarning a set with an upstream ships no license notice A definition finding names the definition's description and words and the
icon mapcommand, with--set, that fixes it, and suggests icons by the rulenew-setuses (FR13), never from part of a word. When the package's entry exports neither the set's theme map nor any of its icons, oneicon_export_missingnames the same entry change thenew-setreceipt names (FR13), in place of a finding per icon: for a built entry, the source it is built from, never the built file. A CommonJS entry the reader cannot read is listed as not checked instead. Errors fail the check; warnings fail under--strict. Re-exports are followed through relative files and installed packages for these checks only, and an export fails only when the reader proves it absent. Neither of these is an issue, never counted and never failing, even under--strictor--next, in the validate result's additive fieldiconSets(each `{set, unmappedDefinitions, suggestions,
unchecked}): the optional Astryx definitions a set leaves unmapped, printed as "Unmapped icon definitions (optional)"; and what a check cannot judge, each {icon}, {adapter}, or {entry}with itsreason, printed under "Not checked" (architecture:cli-surfaceINV35, DEC-7): an icon export whose module is a packageexportstarget not built yet; an icon or adapter export the reader cannot prove either way (behind a re-export it cannot follow, bound to a default or namespace import, or imported from a package that does not resolve); and a theme map or theme-map entry the reader cannot read. An export a module the reader fully reads lacks is still icon_export_missing`.
- FR16 — Older CLIs. Published CLI 0.7.3 refuses
stabilityon page and block templates, namespace docs, and theme descriptors, and refuses a template'sicons, dropping the descriptor. No integration descriptor this feature writes setsstabilitythere. For the package being authored, the validate result's additive fieldolderCliNotes(each{file, kind, field, message}) names each template or namespace doc that setsstability, and each template that declaresicons, while the package's CLI peer range admits a release before 0.7.4; a note is never counted and never fails a check (DEC-9). A CLI before 0.7.4 also refuses an astryx.config that setsexperimental.iconSet("Unrecognized key"), so commands that load the project configuration, such asdoctoranddiscover, fail in that project.experimental icon useaddswarningto its receipt, printed as a[warn]line, when the project declares an@astryxdesign/clirange (in any dependency field) that admits such a release; a project that declares no range, or aworkspace:,file:, orlink:one, gets none. A CLI reads a set's data file strictly: a key it does not know withdraws the set, naming the key (FR17).excludeis read only by a CLI whose data-file reference lists it, andnew-setwrites it only when--excludeis given; a set without it is read by every CLI that hasastryx experimental icon. - FR17 — Doctor and discover read sets only with the opt-in. In a project
that sets
experimental.iconSet, the project's set is one of: valid (selected), not installed (missing), or installed but withdrawn (withdrawn: invalid, or its module does not resolve, with that reason). Doctor'sicon-setscheck fails when it names a set that is not installed or one that was withdrawn, saying which and why, and warns when two packages ship that name or another set is withdrawn. The templateiconsreport andexperimental icon --listcarry the same status and reason, andexperimental iconwith--set(with words or--all-icons) or<set>/<id>,experimental icon use, anddiscover <package>/<set>name a withdrawn set as withdrawn, with its reason, rather than as not installed, each withERR_NOT_FOUND;add,map, andnew-definitionname a withdrawn set in the package being authored the same way.astryx discoverreadsicon-setas a kind:--type icon-set, catalog entries withiconCountanddefinitions, anddiscover <package>/<set>; a withdrawn set is not listed. Without the opt-in, Doctor has no such check and reports no icon-set issue,doctor integrationchecks an installed package's icon sets only with it (the package being authored, read bydoctor integration validatewith no package,integration check, andverify, is always checked), and discover treatsicon-setas an unknown kind andiconCountanddefinitionsas unknown fields before it validates a catalog, so a malformed icon-set item never fails a source (spec:AST-051/FR7).
Supporting pieces
- FR18 — Additive docs support. Every doc type except
ThemeDocandIconSetDoc, and every schema field and enum value, acceptsstability: 'experimental': help shows a marked command as[experimental], stable tables leave out a marked field or value, search leaves out a marked doc, and Doctor's doc counts leave marked docs out. A namespace'ssource.packages: 'all'adopts a doc group from every package only on a CLI namespace marked experimental (the icon definitions); DEC-7 owns that exception tospec:AST-046/FR2.
Platform support
- Supported engines: the CLI's Node floor.
- Unsupported behavior: a set whose module does not resolve does not answer lookups, and templates keep their icons.
- Browser evidence: none; every behavior is CLI output, written source, or a module's exports.
Current-state impact
architecture:cli-surface: theexperimentalcommand group andexperimental iconcommands with their response types, theexperimental.iconSetsmanifest root, theicon-setandicon-definitiondescriptor kinds, thecli/experimentaldocs namespace, theicon-setsDoctor check, the icon-set checks and theiconSetsandolderCliNotesvalidate fields.contributing:cli-conventions:IconSetDoc,IconSetData, andIconDefinitionDocjoin the authoring types.- Consumer docs:
cli/experimental/icon-sets,cli/experimental/icon-set-files, andcli/experimental/icon-definitions. spec:AST-051: discover'sicon-setkind, read only with the opt-in.
Verification
| Contract | Verification | Representative states | Mutation or failure expectation |
|---|---|---|---|
| FR0, FR11 | experimental-isolation tests against the output of the CLI without the feature | help; the manifest; every stable docs topic and tree node, the cli listings, and every stable cli docs node; search for delete, close, icon, trash can, search, experimental, and icon set, with no set and with a set opted in; template printed and copied; discover, Doctor, and doctor integration validate <package> with a set and no opt-in; stderr of every command that prints the integration-issue nudge, with a set and no opt-in. Goldens hold identities, structure, counts, every stability, and every sentence or link that names an experimental surface, an icon set, or an icon definition, not prose |
a stable output gains a result, field, section, count, stability, or a sentence or link naming an experimental surface that the CLI without the feature lacks (apart from FR18's stability field); or a stable command gains an icon-set subcommand or kind |
| FR1–FR5 | descriptor, data-file, and definition parser and discovery tests | valid set; invalid data; definitions Astryx and the set both have | an invalid set answers, or a definition file is not read |
| FR6–FR8 | experimental icon text and JSON tests |
definition, name, and meaning matches; <set>/<id>; --list; two sets of one name |
ranking or tie order changes, or a bare ambiguous name answers |
| FR9–FR10 | template mapping tests | mapped by match and by definition; kept with a suggestion; no opt-in | a name is guessed, or a project without the opt-in gets a rewrite |
| FR12–FR14 | writer and command tests | wrap and refresh; adapter; generated types and theme map | a write is left half done, or the theme map drifts from map |
| FR15 | integration check tests, with and without --strict |
every code; unmapped optional definitions | an export the module lacks passes, or the optional list fails a check |
| FR16 | validate tests; a scratch project on published CLI 0.7.3 | stability on a template and namespace doc; template icons; peer range from 0.7.4 |
a note fails a check, or a dropped descriptor goes unnoted |
| FR17 | Doctor and discover tests | opted in; installed set and no opt-in; invalid set and no opt-in | a project without the opt-in sees an icon-set check, issue, or kind |
| FR18 | docs tree, help, and search tests | marked command; stable and experimental namespace with packages: 'all' |
a stable namespace adopts another package's doc, or a marked doc reaches search |
Decision log
DEC-1 — The set is the item; its data file is the payload
Reference: spec:AST-084/DEC-1
Decider: josephfarina, 2026-10-20
One descriptor per set keeps the no-catalog rule, and every surface reads the one data file, so lookup, templates, and themes agree on what an icon means.
Rejected: one doc file per icon, which thousands of hand-kept files cannot keep in step with a library.
DEC-2 — Find icons with a dedicated command
Reference: spec:AST-084/DEC-2
Decider: josephfarina, 2026-10-20
An icon answer needs its import line, variants, and definitions, so
astryx experimental icon answers with the full record. astryx search is a
stable surface the experiment never feeds; icons join it at promotion.
DEC-3 — Templates keep their icon when nothing maps
Reference: spec:AST-084/DEC-3
Decider: josephfarina, 2026-10-20
A wrong icon is worse than a familiar one, so an unmapped icon keeps its import and the report says so.
DEC-4 — Astryx owns the definitions; sets map to them
Reference: spec:AST-084/DEC-4
Decider: josephfarina, 2026-10-20
Shared definitions let templates name meanings, not libraries. A set extends them with its own files, and the CLI never encodes a library.
DEC-5 — Every icon is a component the package exports
Reference: spec:AST-084/DEC-5
Decider: josephfarina, 2026-10-20
Apps, templates, and theme maps import every icon from the set's package; the generated module and adapter make data-only libraries work the same way.
DEC-6 — Icon sets ship experimental
Reference: spec:AST-084/DEC-6
Decider: josephfarina, 2026-10-20
The commands, keys, data file, and output may change in a patch release while real sets prove the design. Each surface uses its kind's experimental boundary, and a project that does not opt in sees the output it saw before.
DEC-7 — Experimental namespaces may adopt docs from every package
Reference: spec:AST-084/DEC-7
Decider: josephfarina, 2026-10-20
A set adds its own icon definitions, and they belong beside the Astryx ones,
so a namespace's source.packages: 'all' adopts a doc group from every
package. It is an experimental exception to spec:AST-046/FR2, read only on a
CLI namespace marked stability: 'experimental'; every stable namespace
adopts only its own package's docs, exactly as spec:AST-046/FR2 says.
Rejected: placing each set's definitions under its own package, which splits one vocabulary across as many namespaces as there are sets.
DEC-8 — icon-set is a seventh discover kind, behind the opt-in
Reference: spec:AST-084/DEC-8
Decider: josephfarina, 2026-10-20
A set is an item a package adds, so discover lists it like the six kinds of
spec:AST-051/FR5, with the additive catalog fields iconCount and
definitions. Only a project that sets experimental.iconSet reads them.
Without it, --type icon-set fails with ERR_INVALID_OPTION, unknown-kind
errors list the six kinds, and the kind and its fields are unknown under
spec:AST-051/FR7, so the output matches a CLI without icon sets.
DEC-9 — olderCliNotes is additive and never fails
Reference: spec:AST-084/DEC-9
Decider: josephfarina, 2026-10-20
An author whose peer range admits an older CLI needs to know what that CLI
drops, but the package is valid for the CLI that checks it. So validate adds
the field olderCliNotes: it is never counted in a summary and never fails a
check, with or without --strict or --next.
Open questions
None.