Repository navigation
feat(cli): an installed icon-set package turns on the experimental icon features (one gate) - #12176
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
/approve-spec 1bf9eaa |
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Requesting changes: one claim in the release note and the description does not match what astryx doctor does.
- The changeset and the description say
astryx doctorruns theicon-placeholderscheck wherever icon features are on, butcheckIconPlaceholdersreturns no check when no main set is decided (packages/cli/api/doctor/doctor.mjs:1269), which this pull request's own test asserts for two icon-set packages and noexperimental.iconSet(packages/cli/api/doctor/icon-sets.test.mjs:369), so state that condition in the changeset, the description and AST-084 FR17 (or run the check without a main set) and skip the source scan when the check cannot run.
Everything else matches the approved records and the tests; a few non-blocking wording notes are inline. A new commit needs a fresh /approve-spec for its head. CI has not run on this head because its pull-request workflow runs only for pull requests into main.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
- Installing an icon-set package turns icon features on with or without the config key: verified (
icon-features.mjs:39-50,icon-features.test.mjs). - A project with no pack and no key sees no change: verified for icon features by the isolation goldens; search now also leaves out other integrations' experimental extension sections (AST-084 FR18).
- Discover lists each package's sets and
--type icon-setworks: verified (isolation discover test,icon-set-kind.test.mjs). - Doctor runs the icon-sets and icon-placeholders checks and reports an invalid set: false for icon-placeholders with two packs and no key (
doctor.mjs:1269,icon-sets.test.mjs:369); the rest verified. doctor integration validate <package>checks an installed package's sets: verified (validate-installed-icon-sets.test.mjs, isolation test).docs iconsgains one section in the set package's name that points atexperimental icon <words>, and search never returns it: verified (docs.icon-set.test.mjs).- Copied templates follow a set only with the config key: verified (
api/template/_adapter.mjs:26,template.icons.test.mjs). - Before this change every icon surface outside
experimental iconwaited for the key: verified (removed checks in discover, doctor, project, integration and upgrade code). - One synchronous gate answers on and why, from a pack, the key or the release switch: verified (
icon-features.mjs). - Project icon sets, integration checks, the docs catalog, discover, doctor, validate and the upgrade nudge all read it: verified (
project.mjs:854,:1133,:1314;discover/_adapter.mjs:915;doctor.mjs:2561;integration/_adapter.mjs:183;upgrade/_adapter.mjs:787). - The gate is not exported from the public API: verified (package exports,
api/index.mjs). - One release constant, off, turns icon features on everywhere when true: verified (
icon-features.mjs:21,:40). - The icon-sets and icon-placeholders checks run wherever the gate is on: false for icon-placeholders (as above).
- With no list, icon-sets passes and names the installed sets: verified (
icon-sets.test.mjs; one-pack and two-pack messages match the description). - Templates and build are unchanged: verified (template adapter; build reads no icon sets).
- The docs section is marked experimental and uses the existing extension mechanism, which prints "sections from ": verified (
installed-icon-set.doc.mjsstability and wording; CLI output); the index row itself carries no marker (inline note). - Search leaves out experimental extension sections and its output is unchanged with a pack: verified (
_gather-docs.mjs, isolation search goldens). - The before-and-after table, the two-pack doctor message, unchanged JSON shapes and no caller burden: verified (CLI output, existing experimental fields).
- Discover lists
iconsamong the set package's docs: verified (discover.docs-names.test.mjs). - The isolation guard passes, its pack block checks the new rule, seven goldens are removed and the reader inventory lists the gate: verified (the isolation test and the changed tests; no reference to the removed goldens remains).
- Knowledge and changeset checks pass: verified; a clean strict typecheck, lint and the full suite are not confirmed (two strict-typecheck errors sit in unchanged template pages that need a built theme).
Files:
.changeset/icon-pack-turns-icon-features-on.md: finding (icon-placeholders claim)docs/specs/AST-017/spec.md: cleardocs/specs/AST-051-discover-integration-manager/spec.md: cleardocs/specs/AST-084-icon-sets/spec.md: finding (FR17 placeholder condition); non-blocking wording note on FR9, FR10 and FR0packages/cli/api/discover/_adapter.mjs: clearpackages/cli/api/discover/icon-set-kind.test.mjs: clearpackages/cli/api/docs/_entry-names.mjs: clearpackages/cli/api/doctor/_adapter.mjs: clearpackages/cli/api/doctor/doctor.mjs: finding (placeholder check skipped without a main set; scan still runs); non-blocking warning wordingpackages/cli/api/doctor/icon-sets.test.mjs: clear (its test documents the skipped case)packages/cli/api/integration/_adapter.mjs: clearpackages/cli/api/integration/validate-installed-icon-sets.test.mjs: clearpackages/cli/api/integration/validate-integration.mjs: clearpackages/cli/api/search/_gather-docs.mjs: clear; non-blocking changeset notepackages/cli/api/upgrade/_adapter.mjs: clearpackages/cli/assets/docs/tree/icon-definitions.doc.mjs: clearpackages/cli/assets/docs/tree/icon-sets.doc.mjs: clearpackages/cli/assets/icons/installed-icon-set.doc.mjs: non-blocking (index row not marked experimental)packages/cli/authoring/config/config.doc.mjs: clearpackages/cli/authoring/discover/parse.mjs: clearpackages/cli/authoring/discover/type.ts: clearpackages/cli/clients/cli/commands/discover.docs-names.test.mjs: clearpackages/cli/clients/cli/commands/docs.icon-set.test.mjs: clearpackages/cli/clients/cli/commands/icon-sets-guide.test.mjs: non-blocking (stale comment)packages/cli/clients/cli/commands/template.icons.test.mjs: clearpackages/cli/foundation/config/project.mjs: clearpackages/cli/foundation/discovery/icon-set-discovery.test.mjs: clearpackages/cli/foundation/discovery/name-roots.mjs: clearpackages/cli/foundation/discovery/template-icons.mjs: clearpackages/cli/foundation/doc-compiler/doc-loads.test.mjs: clearpackages/cli/foundation/doc-compiler/inputs.test.mjs: clearpackages/cli/foundation/integrations/icon-features.mjs: clearpackages/cli/foundation/integrations/icon-features.test.mjs: clearpackages/cli/test/__golden__/no-icon-set/discover-type-bogus.json(deleted): clearpackages/cli/test/__golden__/no-icon-set/discover-type-icon-set.json(deleted): clearpackages/cli/test/__golden__/no-icon-set/discover.json(deleted): clearpackages/cli/test/__golden__/no-icon-set/doctor-installed-set.json(deleted): clearpackages/cli/test/__golden__/no-icon-set/installed-set-stderr.txt(deleted): clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.json(deleted): clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.txt(deleted): clearpackages/cli/test/experimental-isolation.test.mjs: clear
|
/approve-spec abb841f |
|
/approve-spec 8cde040 |
8cde040 to
4c0b321
Compare
|
/approve-spec 4c0b321 |
There was a problem hiding this comment.
Requesting changes: the icon-placeholders condition now reads the same in the changeset, the description, the record and the code, but one testing claim in the description does not hold.
- Miss: The description says prettier ran on the touched files, but
packages/cli/foundation/doc-compiler/inputs.test.mjs:92(the new installed-icon-set test name) is not Prettier-formatted, so runpnpm exec prettier --write packages/cli/foundation/doc-compiler/inputs.test.mjsor drop the claim.
Two non-blocking wording notes are inline. A new commit needs a fresh /approve-spec for its head, and CI runs once this pull request targets main.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Before this change, every icon surface outside the experimental icon commands waited for the config key: verified (the removed key checks in the discover, doctor, project, integration and upgrade code; the deleted goldens).
- One synchronous gate answers whether icon features are on and why (a pack, the key or the release switch) from the loaded project: verified (
icon-features.mjs:39-50,icon-features.test.mjs). - Project icon sets, integration checks, the docs catalog, discover, doctor, validate and the upgrade nudge all read it, and each used to read the key itself: verified (
project.mjs:854,:1133,:1311,:1502;discover/_adapter.mjs:915;doctor.mjs:2573;integration/_adapter.mjs:183;upgrade/_adapter.mjs:787). - The gate is not exported from the public API: verified (package exports unchanged;
api/index.mjsre-exports onlydoctorfrom the doctor module). - One release constant, off, turns icon features on everywhere when true: verified (
icon-features.mjs:21,:40). - The icon-sets check runs wherever the gate is on and, with no list, passes and names the installed sets: verified (
icon-sets.test.mjs; CLI output for one and two packs matches the description). - The icon-placeholders check and its scan run only with the gate on and a main set decided, and not with two packs and no list: verified (
doctor.mjs:1266,:1280,:2627;icon-placeholders-scan.test.mjs). - Templates and build are unchanged: verified (
template/_adapter.mjs:26,template.icons.test.mjs; build reads no icon sets). - The icons topic gains one section, marked experimental, in the set package's name through the existing extension mechanism, pointing at the experimental icon search: verified (
installed-icon-set.doc.mjs,project.mjs:1311-1321,docs.icon-set.test.mjs, CLI output). - Search leaves out experimental extension sections, and its output is unchanged with a pack: verified (
_gather-docs.mjs:77-90,:208-221; isolation search goldens). - The icon-set record's gate claims, the new decision, the one added release-policy sentence and the discover record's two claims describe the gate: verified, except that FR9 is listed as changed but is untouched while FR4 changed (non-blocking).
- The before-and-after table, the two-pack messages, unchanged JSON shapes and no caller burden: verified (CLI output; existing experimental fields).
- Discover lists the icons topic among the set package's docs: verified (
discover.docs-names.test.mjs). - The release switch is a code constant: verified.
- The isolation guard's no-icon-set block passes unchanged, its pack block checks the new rule, seven goldens are removed and the reader inventory lists the gate: verified (test run; no reference to the removed goldens remains).
- The new and updated test files cover no pack, one pack and two packs where it applies: verified (13 files, 275 tests pass).
- Failures in the full node suite also fail on the base branch: not confirmed (only the changed test files were run).
- Strict typecheck, eslint and prettier on touched files, and the knowledge and changeset checks: eslint and both checks verified; prettier false (
inputs.test.mjs:92); strict typecheck not confirmed (two errors in unchanged template pages that need a built theme). - The records add no narration, research, change references, open questions or project status: verified.
- Changeset: installing a pack turns icon features on with or without the key: verified.
- Changeset: a project with no pack and no key sees no change in any command: verified for icon features; search also leaves out other integrations' experimental extension sections (non-blocking).
- Changeset: discover lists each package's sets and the icon-set type works: verified.
- Changeset: doctor runs icon-sets, reports an invalid set and runs icon-placeholders once a main set is decided, and validate checks a package's sets: verified (CLI output; tests).
- Changeset: the icons topic section, which search never returns, with search output unchanged: verified.
- Changeset: copied templates follow a set only once the key names it: verified.
Files:
.changeset/icon-pack-turns-icon-features-on.md: clear; non-blocking note (search side effect not mentioned)docs/specs/AST-017/spec.md: cleardocs/specs/AST-051-discover-integration-manager/spec.md: cleardocs/specs/AST-084-icon-sets/spec.md: clear; non-blocking note (FR9 and FR10 wording)packages/cli/api/discover/_adapter.mjs: clearpackages/cli/api/discover/icon-set-kind.test.mjs: clearpackages/cli/api/docs/_entry-names.mjs: clearpackages/cli/api/doctor/_adapter.mjs: clearpackages/cli/api/doctor/doctor.mjs: clearpackages/cli/api/doctor/icon-placeholders-scan.test.mjs: clearpackages/cli/api/doctor/icon-sets.test.mjs: clearpackages/cli/api/integration/_adapter.mjs: clearpackages/cli/api/integration/validate-installed-icon-sets.test.mjs: clearpackages/cli/api/integration/validate-integration.mjs: clearpackages/cli/api/search/_gather-docs.mjs: clearpackages/cli/api/upgrade/_adapter.mjs: clearpackages/cli/assets/docs/tree/icon-definitions.doc.mjs: clearpackages/cli/assets/docs/tree/icon-sets.doc.mjs: clearpackages/cli/assets/icons/installed-icon-set.doc.mjs: clearpackages/cli/authoring/config/config.doc.mjs: clearpackages/cli/authoring/discover/parse.mjs: clearpackages/cli/authoring/discover/type.ts: clearpackages/cli/clients/cli/commands/discover.docs-names.test.mjs: clearpackages/cli/clients/cli/commands/docs.icon-set.test.mjs: clearpackages/cli/clients/cli/commands/icon-sets-guide.test.mjs: clearpackages/cli/clients/cli/commands/template.icons.test.mjs: clearpackages/cli/foundation/config/project.mjs: clearpackages/cli/foundation/discovery/icon-set-discovery.test.mjs: clearpackages/cli/foundation/discovery/name-roots.mjs: clearpackages/cli/foundation/discovery/template-icons.mjs: clearpackages/cli/foundation/doc-compiler/doc-loads.test.mjs: clearpackages/cli/foundation/doc-compiler/inputs.test.mjs: finding (line 92 not Prettier-formatted)packages/cli/foundation/integrations/icon-features.mjs: clearpackages/cli/foundation/integrations/icon-features.test.mjs: clearpackages/cli/test/__golden__/no-icon-set/discover-type-bogus.json: clearpackages/cli/test/__golden__/no-icon-set/discover-type-icon-set.json: clearpackages/cli/test/__golden__/no-icon-set/discover.json: clearpackages/cli/test/__golden__/no-icon-set/doctor-installed-set.json: clearpackages/cli/test/__golden__/no-icon-set/installed-set-stderr.txt: clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.txt: clearpackages/cli/test/experimental-isolation.test.mjs: clear
|
/approve-spec 64e23af |
There was a problem hiding this comment.
Requesting changes: one blocking issue remains, in the new icon feature gate.
- Miss:
iconFeatureGate(packages/cli/foundation/integrations/icon-features.mjs:44-49) counts the icon-set package being authored as an installed pack, soastryx doctorandastryx docs iconsrun in that package's own folder now report its set as installed and print "Your project installs an icon set", which contradicts AST-084 FR0 and FR17 and the changeset's "sees no change in any command"; skip the package being authored in the gate and add a test for it, or amend FR0, DEC-13, FR17, the changeset and the section text to say icon features are on there too.
The earlier formatting issue is fixed; the block below lists what each other claim was checked against. A new commit needs a new /approve-spec for its head.
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- Changeset: installing an icon-set package turns icon features on, with or without the config key: verified (icon-features.mjs:44-50; base vs head probe, one pack)
- Changeset: a project that installs no icon-set package and sets no key sees no change in any command apart from search: false for an icon-set package's own folder (icon-features.mjs:44-49; probe)
- Changeset: discover lists each package's sets and
--type icon-setworks: verified (isolation test: discover lists the set) - Changeset: doctor runs
icon-sets, reports an invalid set, runsicon-placeholdersonce a main set is decided, anddoctor integration validatechecks installed sets: verified (doctor.mjs:1280, :2627; icon-sets and icon-placeholders-scan tests; isolation validate test) - Changeset:
docs iconsgains one section in the set package's name that search does not return: verified (docs.icon-set test; isolation search goldens) - Changeset: copied templates still need the config key: verified (template/_adapter.mjs:26; template.icons test)
- Changeset: search leaves out sections that experimental extension docs add;
docsstill shows them: verified (_gather-docs.mjs:77-90, :208-222) - Description: one synchronous internal gate with three reasons, read by the project loader, docs catalog, discover, doctor, validate and the upgrade nudge: verified (icon-features.mjs:39-51; project.mjs:854, :1133, :1314; discover/_adapter.mjs:915; doctor.mjs:2573; integration/_adapter.mjs:183; upgrade/_adapter.mjs:787)
- Description: one release switch, off: verified (icon-features.mjs:21; icon-features test)
- Description: doctor behavior with one pack, two packs and no list: verified (probe; icon-sets and icon-placeholders-scan tests)
- Description: templates and build unchanged: verified (template tests; no build module reads icon sets)
- Description: the docs section uses the topic-extension mechanism and names
experimental icon <words>: verified (project.mjs:1314; probe) - Description: search never reads icon sets and is unchanged with a pack: verified (isolation search goldens with a pack)
- Description: the AST-084, AST-017 and AST-051 claims now describe the gate: verified (FR4 and FR10 also changed)
- Description: the before/after table for one and two packs; JSON shapes unchanged: verified (probe)
- Description: discover lists
iconsamong the set package's docs: holds only when another integration ships docs (discover/_adapter.mjs:364-370; probe) - Description: the isolation no-icon-set block passes unchanged; the pack block checks the new rule; seven goldens removed; the reader inventory lists the gate: verified (test run; ICON_SET_READERS)
- Description: new and updated tests pass; eslint, prettier, check:knowledge and check:changesets pass: verified (13 files, 275 tests; each check run)
- Description: typecheck:strict passes; full CLI suite failures also fail on the base: not confirmed here (typecheck needs a theme build; full suite not run)
Files:
.changeset/icon-pack-turns-icon-features-on.md: finding: the no-change claim is false for the package's own folderdocs/specs/AST-017/spec.md: cleardocs/specs/AST-051-discover-integration-manager/spec.md: cleardocs/specs/AST-084-icon-sets/spec.md: clear (its FR0 and FR17 are what the gate contradicts)packages/cli/api/discover/_adapter.mjs: clearpackages/cli/api/discover/icon-set-kind.test.mjs: clearpackages/cli/api/docs/_entry-names.mjs: clearpackages/cli/api/doctor/_adapter.mjs: clearpackages/cli/api/doctor/doctor.mjs: clearpackages/cli/api/doctor/icon-placeholders-scan.test.mjs: clearpackages/cli/api/doctor/icon-sets.test.mjs: clearpackages/cli/api/integration/_adapter.mjs: clearpackages/cli/api/integration/validate-installed-icon-sets.test.mjs: clearpackages/cli/api/integration/validate-integration.mjs: clearpackages/cli/api/search/_gather-docs.mjs: clearpackages/cli/api/upgrade/_adapter.mjs: clearpackages/cli/assets/docs/tree/icon-definitions.doc.mjs: clearpackages/cli/assets/docs/tree/icon-sets.doc.mjs: clearpackages/cli/assets/icons/installed-icon-set.doc.mjs: finding: "Your project installs an icon set" shows in the package's own folderpackages/cli/authoring/config/config.doc.mjs: clearpackages/cli/authoring/discover/parse.mjs: clearpackages/cli/authoring/discover/type.ts: clearpackages/cli/clients/cli/commands/discover.docs-names.test.mjs: clearpackages/cli/clients/cli/commands/docs.icon-set.test.mjs: clearpackages/cli/clients/cli/commands/icon-sets-guide.test.mjs: clearpackages/cli/clients/cli/commands/template.icons.test.mjs: clearpackages/cli/foundation/config/project.mjs: clearpackages/cli/foundation/discovery/icon-set-discovery.test.mjs: clearpackages/cli/foundation/discovery/name-roots.mjs: clearpackages/cli/foundation/discovery/template-icons.mjs: clearpackages/cli/foundation/doc-compiler/doc-loads.test.mjs: clearpackages/cli/foundation/doc-compiler/inputs.test.mjs: clearpackages/cli/foundation/integrations/icon-features.mjs: finding: the gate counts the package being authoredpackages/cli/foundation/integrations/icon-features.test.mjs: finding: no case for the package being authoredpackages/cli/test/__golden__/no-icon-set/ (seven deleted goldens): clear: no remaining readerpackages/cli/test/experimental-isolation.test.mjs: clear
64e23af to
d451584
Compare
|
/approve-spec d451584 |
There was a problem hiding this comment.
Requesting changes: one blocking issue remains, in the new icon feature gate.
- Miss:
iconFeatureGate(packages/cli/foundation/integrations/icon-features.mjs:44-49) counts the icon-set package being authored as an installed pack, soastryx doctorandastryx docs iconsrun in that package's own folder now report its set as installed and print "Your project installs an icon set", which contradicts AST-084 FR0 and FR17 and the changeset's "sees no change in any command"; skip the package being authored in the gate and add a test for it, or amend FR0, DEC-13, FR17, the changeset and the section text to say icon features are on there too.
The rebase onto the updated base branch left this pull request's own changes as they were, so the finding still applies; the block below lists what each other claim was checked against. A new commit needs a new /approve-spec for its head.
Claims and files checked
Review mode: carry-forward; reason: none
Claims:
- Changeset: installing an icon-set package turns icon features on, with or without the config key: verified (icon-features.mjs:44-50; base vs head probe, one pack)
- Changeset: a project that installs no icon-set package and sets no key sees no change in any command apart from search: false for an icon-set package's own folder (icon-features.mjs:44-49; probe)
- Changeset: discover lists each package's sets and
--type icon-setworks: verified (isolation test: discover lists the set) - Changeset: doctor runs
icon-sets, reports an invalid set, runsicon-placeholdersonce a main set is decided, anddoctor integration validatechecks installed sets: verified (doctor.mjs:1280, :2627; icon-sets and icon-placeholders-scan tests; isolation validate test) - Changeset:
docs iconsgains one section in the set package's name that search does not return: verified (docs.icon-set test; isolation search goldens) - Changeset: copied templates still need the config key: verified (template/_adapter.mjs:26; template.icons test)
- Changeset: search leaves out sections that experimental extension docs add;
docsstill shows them: verified (_gather-docs.mjs:77-90, :208-222) - Description: one synchronous internal gate with three reasons, read by the project loader, docs catalog, discover, doctor, validate and the upgrade nudge: verified (icon-features.mjs:39-51; project.mjs:854, :1133, :1314; discover/_adapter.mjs:915; doctor.mjs:2573; integration/_adapter.mjs:183; upgrade/_adapter.mjs:787)
- Description: one release switch, off: verified (icon-features.mjs:21; icon-features test)
- Description: doctor behavior with one pack, two packs and no list: verified (probe; icon-sets and icon-placeholders-scan tests)
- Description: templates and build unchanged: verified (template tests; no build module reads icon sets)
- Description: the docs section uses the topic-extension mechanism and names
experimental icon <words>: verified (project.mjs:1314; probe) - Description: search never reads icon sets and is unchanged with a pack: verified (isolation search goldens with a pack)
- Description: the AST-084, AST-017 and AST-051 claims now describe the gate: verified (FR4 and FR10 also changed)
- Description: the before/after table for one and two packs; JSON shapes unchanged: verified (probe)
- Description: discover lists
iconsamong the set package's docs: holds only when another integration ships docs (discover/_adapter.mjs:364-370; probe) - Description: the isolation no-icon-set block passes unchanged; the pack block checks the new rule; seven goldens removed; the reader inventory lists the gate: verified (test run; ICON_SET_READERS)
- Description: new and updated tests pass; eslint, prettier, check:knowledge and check:changesets pass: verified (13 files, 275 tests; each check run)
- Description: typecheck:strict passes; full CLI suite failures also fail on the base: not confirmed here (typecheck needs a theme build; full suite not run)
Files:
.changeset/icon-pack-turns-icon-features-on.md: finding: the no-change claim is false for the package's own folderdocs/specs/AST-017/spec.md: cleardocs/specs/AST-051-discover-integration-manager/spec.md: cleardocs/specs/AST-084-icon-sets/spec.md: clear (its FR0 and FR17 are what the gate contradicts)packages/cli/api/discover/_adapter.mjs: clearpackages/cli/api/discover/icon-set-kind.test.mjs: clearpackages/cli/api/docs/_entry-names.mjs: clearpackages/cli/api/doctor/_adapter.mjs: clearpackages/cli/api/doctor/doctor.mjs: clearpackages/cli/api/doctor/icon-placeholders-scan.test.mjs: clearpackages/cli/api/doctor/icon-sets.test.mjs: clearpackages/cli/api/integration/_adapter.mjs: clearpackages/cli/api/integration/validate-installed-icon-sets.test.mjs: clearpackages/cli/api/integration/validate-integration.mjs: clearpackages/cli/api/search/_gather-docs.mjs: clearpackages/cli/api/upgrade/_adapter.mjs: clearpackages/cli/assets/docs/tree/icon-definitions.doc.mjs: clearpackages/cli/assets/docs/tree/icon-sets.doc.mjs: clearpackages/cli/assets/icons/installed-icon-set.doc.mjs: finding: "Your project installs an icon set" shows in the package's own folderpackages/cli/authoring/config/config.doc.mjs: clearpackages/cli/authoring/discover/parse.mjs: clearpackages/cli/authoring/discover/type.ts: clearpackages/cli/clients/cli/commands/discover.docs-names.test.mjs: clearpackages/cli/clients/cli/commands/docs.icon-set.test.mjs: clearpackages/cli/clients/cli/commands/icon-sets-guide.test.mjs: clearpackages/cli/clients/cli/commands/template.icons.test.mjs: clearpackages/cli/foundation/config/project.mjs: clearpackages/cli/foundation/discovery/icon-set-discovery.test.mjs: clearpackages/cli/foundation/discovery/name-roots.mjs: clearpackages/cli/foundation/discovery/template-icons.mjs: clearpackages/cli/foundation/doc-compiler/doc-loads.test.mjs: clearpackages/cli/foundation/doc-compiler/inputs.test.mjs: clearpackages/cli/foundation/integrations/icon-features.mjs: finding: the gate counts the package being authoredpackages/cli/foundation/integrations/icon-features.test.mjs: finding: no case for the package being authoredpackages/cli/test/__golden__/no-icon-set/ (seven deleted goldens): clear: no remaining readerpackages/cli/test/experimental-isolation.test.mjs: clear
One gate, iconFeatureGate(project), decides whether icon features are on: a loaded integration that declares experimental.iconSets, or experimental.iconSet in astryx.config. Project.iconSets(), the project's integration checks, discover, doctor, doctor integration validate, upgrade's nudge and the docs catalog read it. ICON_FEATURES_RELEASED is the release switch, off. With a pack installed, discover lists its sets, doctor runs its icon checks, and `astryx docs icons` gains one experimental section in the name of the package that ships the project's set; search leaves out an experimental extension's sections. Copied templates still follow a set only with experimental.iconSet. A project with no pack and no config is byte-identical.
…decided The icon-placeholders check runs only when icon features are on and a main set is decided: the one experimental.iconSet names, or the only installed set. placeholderMainSet() is that condition, read by the check and by the source scan, so a project with two icon-set packages and no list skips the scan as well as the check. The changeset, AST-084 FR17 and the icon-sets guide say so.
The section `astryx docs icons` adds for the project's icon set opens with "Icon sets are experimental.", so its index row and JSON summary carry the marker before the summary is cut. The icon-sets guide test comment says a set's own definitions join the namespace once its package is installed.
…e the search change AST-084 FR9 and FR10 name experimental.iconSet, since installing an icon-set package is an opt-in too. The changeset tells integration authors that search leaves out the sections an experimental extension doc adds. Prettier on the two doc-compiler tests the series touches.
iconFeatureGate counts only installed icon-set packages: the package being authored in the current folder (__local) is not installed there, so doctor and docs icons in its own folder answer as they do with no set, unless its astryx.config sets experimental.iconSet. AST-084 FR0 says so.
d451584 to
f19ca5d
Compare
|
/approve-spec f19ca5d |
f19ca5d to
cf943e0
Compare
|
/approve-spec cf943e0 |
There was a problem hiding this comment.
Requesting changes: one blocking issue remains, in docs that ship with the CLI. The gate, the doctor and discover changes, the records and the tests agree, and the two description claims from the last review now match the code.
- Miss: the
experimental.iconSetJSDoc in the published config type (packages/cli/authoring/config/type.ts:126-131) still says discover and Doctor report icon sets only when the key is set, and the IconDefinitionDoc note (packages/cli/authoring/doctypes/icon-definition/icon-definition.doc.mjs:78) still lists a set's own definitions only with the key, although an installed icon-set package now turns both on; reuse the wording already inconfig.doc.mjs:83andicon-definitions.doc.mjs.
Non-blocking: four internal comments still say the project "opts in" (api/discover/_adapter.mjs:873, api/discover/discover.mjs:180, api/docs/_entry-names.mjs:70, api/upgrade/_adapter.mjs:796), and the section text "Your project installs an icon set" still reads oddly in the icon-set package's own folder when its config sets the key.
Claims and files checked
Review mode: full; reason: rebase
- Claim: installing an icon-set package turns icon features on with or without the config key. Verified:
icon-features.mjs:41-54,icon-features.test.mjs. - Claim: a project with no pack and no key sees no change apart from the search change. Verified: the isolation test's no-icon-set goldens pass.
- Claim: discover lists each package's sets and
--type icon-setworks. Verified: isolation test and a run of the CLI in a one-pack app. - Claim: doctor runs
icon-sets, reports an invalid set, and runsicon-placeholdersonly when a main set is decided;doctor integration validate <package>checks an installed package's sets. Verified:doctor.mjs:1286-1301,:2606,:2662;icon-sets.test.mjs,icon-placeholders-scan.test.mjs, isolation test. - Claim:
docs iconsgains one experimental section in the set package's name, and search never returns it. Verified:project.mjs:1314-1321;docs.icon-set.test.mjs, whose search test fails without the new filter. - Claim: copied templates and
astryx buildare unchanged; templates follow a set only once the key names it. Verified:template/_adapter.mjs:26;template.icons.test.mjs; the build reads no icon set. - Claim: search now leaves out sections that experimental extension docs add, and
astryx docsstill shows them. Verified:_gather-docs.mjs:77-90. - Claim: one synchronous internal gate decides it, with a code-constant release switch that is off, and is not exported. Verified:
icon-features.mjs:21,api/index.mjs. - Claim: discover lists
iconsamong the set package's docs only when another installed integration ships docs. Verified:discover/_adapter.mjs:363-370. - Claim: the before/after table, the two-pack doctor message and the unchanged own folder. Verified: the same commands run on
mainand on this branch. - Claim: JSON shapes are unchanged and caller burden is none. Verified: no exported type, command doc or option changes.
- Claim: the records' changes (AST-084, AST-017, AST-051) and the new decision entry. Verified against the diff; AST-084 FR4 and FR10 also change, a narrower list.
- Claim: the evidence and testing lists, prettier, eslint, the knowledge and changeset checks. Verified: the 13 changed test files pass, as do the related CLI suites, prettier, eslint, the knowledge check and the changeset check.
- Claim: consumer docs ship with the feature. False in part: the config type JSDoc and the IconDefinitionDoc note (the blocking finding).
- Changeset entry: verified line by line against the same evidence.
- Files: the gate and its readers (
icon-features.mjs,project.mjs, discover, integration, upgrade and docs adapters,validate-integration.mjs,template-icons.mjs, discoverparse.mjsandtype.ts): clear. - Files:
doctor.mjsand doctor_adapter.mjs: clear. - Files:
installed-icon-set.doc.mjs,name-roots.mjs,_gather-docs.mjs: clear, with the non-blocking section-text note. - Files: the changeset,
config.doc.mjs,icon-sets.doc.mjs,icon-definitions.doc.mjs: clear, but two docs outside the diff still state the old rule (blocking). - Files: the three spec records: clear, approved by an engineering owner for this head.
- Files: the 13 test files and the seven removed goldens: clear.
…n-set package turns icon features on
|
/approve-spec 51ad81d |
There was a problem hiding this comment.
Requesting changes: two required checks fail at this head, one from the latest commit and one from the golden deletions. The last review's finding is fixed in substance: the config type's iconSet JSDoc and the IconDefinitionDoc note now describe the gate.
- The rewritten IconDefinitionDoc note (
packages/cli/authoring/doctypes/icon-definition/icon-definition.doc.mjs:78) repeats the ten words "in a project that installs an icon-set package or setsexperimental.iconSet" frompackages/cli/assets/docs/tree/icon-sets.doc.mjs:517, sopackages/cli/test/core-doc-quality.test.mjs("repeat no passage word for word") fails intest; rewording it as "where icon features are on (an installed icon-set package orexperimental.iconSet)" passes. - Miss: the required
lintcheck fails because deleting the five JSON goldens underpackages/cli/test/__golden__/no-icon-set/(discover.json,discover-type-icon-set.json,discover-type-bogus.json,doctor-installed-set.json,validate-installed-set.json) removes 88 fields thatscripts/release/changeset-coverage.mjscounts as released v0.7.16 JSON ids, so keep those files with the same fields or add aCompatibility:paragraph to.changeset/icon-pack-turns-icon-features-on.mdthat names each id as the failure prints it and says the commands still return them.
Non-blocking: packages/cli/authoring/config/type.ts:127 still calls the key "the opt-in", and the installed-icon-set section still says "Your project installs an icon set" in an icon-set package's own folder when its config sets the key.
Claims and files checked
Review mode: incremental; reason: none
- Claim: installing an icon-set package turns icon features on with or without the config key, and the package being authored turns nothing on. Verified:
icon-features.mjs:41-54,icon-features.test.mjs. - Claim: a project with no pack and no key sees no change apart from the search change. Verified: the isolation test's no-icon-set goldens pass.
- Claim: discover lists each package's sets and
--type icon-setworks. Verified:icon-set-kind.test.mjsand the isolation test. - Claim: doctor runs
icon-sets, reports an invalid set, and runsicon-placeholdersonly when a main set is decided;doctor integration validate <package>checks an installed package's sets. Verified:doctor.mjs:1286,:2606,:2662;icon-sets.test.mjs,icon-placeholders-scan.test.mjs,validate-installed-icon-sets.test.mjs. - Claim:
docs iconsgains one experimental section in the set package's name, and search never returns it. Verified:project.mjs:1316;docs.icon-set.test.mjs. - Claim: copied templates and
astryx buildare unchanged; templates follow a set only once the key names it. Verified:template/_adapter.mjs:26;template.icons.test.mjs. - Claim: search leaves out sections that experimental extension docs add, and
astryx docsstill shows them. Verified:_gather-docs.mjs:79,:208. - Claim: one synchronous internal gate decides it, with a code-constant release switch that is off, and it is not exported. Verified:
icon-features.mjs:21,api/index.mjs. - Claim: discover lists
iconsamong the set package's docs only beside another docs package. Verified:discover.docs-names.test.mjs. - Claim: JSON shapes are unchanged and caller burden is none. Verified: no exported type, command doc or option changes; the deleted goldens still need classifying for the changeset check (the blocking finding).
- Claim: consumer docs ship with the feature. Verified at this head:
type.ts:126-132,icon-definition.doc.mjs:78,config.doc.mjs:83. - Claim: the record changes (AST-084, AST-017, AST-051) and the new decision entry. Verified against the diff; approved by an engineering owner for this head.
- Claim: the testing and check lists. Verified: the 13 changed test files pass at this head; the doc-quality test outside that list fails (blocking), and the Changeset format check is separate from the failing changeset-coverage step.
- Changeset entry: verified line by line; it lacks the compatibility note the coverage check needs (the blocking finding).
- Files: the gate and its readers (
icon-features.mjs,project.mjs, the discover, integration, upgrade and docs adapters,discover.mjs,validate-integration.mjs,template-icons.mjs, discoverparse.mjsandtype.ts): clear. - Files:
doctor.mjsand doctor_adapter.mjs: clear. - Files:
installed-icon-set.doc.mjs,name-roots.mjs,_gather-docs.mjs: clear, with the non-blocking section-text note. - Files:
icon-definition.doc.mjs: the duplicate-passage finding (blocking). - Files:
config.doc.mjs,config/type.ts,icon-sets.doc.mjs,icon-definitions.doc.mjs: clear, with the non-blocking "opt-in" note. - Files: the changeset, the seven removed goldens and
experimental-isolation.test.mjs: the blocking finding. - Files: the three spec records: clear, approved by an engineering owner for this head.
- Files: the other 12 test files: clear.
PR Analysis Report🔎 Preview ·
|
The five released JSON goldens come back, written for a project whose installed icon-set package turns icon features on: discover lists the set, --type icon-set lists its package, --type bogus is unchanged, and doctor and doctor integration validate run the icon checks. The guard rows assert against them. The changeset names the five ids that --type icon-set no longer returns. The icon-definition note and the config type's JSDoc no longer repeat the icon-sets guide word for word.
|
/approve-spec f61cc02 |
There was a problem hiding this comment.
Requesting changes: one blocking issue remains, in the pull request description. Both findings from the last review are fixed: the IconDefinitionDoc note no longer repeats the icon-sets guide, and the kept goldens with the new Compatibility: paragraph pass the changeset coverage check.
- The description says "The seven goldens only that block read are removed" and that
prettier --checkran on every touched file, but at this head six of those goldens underpackages/cli/test/__golden__/no-icon-set/are kept and rewritten (onlyinstalled-set-stderr.txtis removed) anddiscover.json,discover-type-icon-set.jsonandvalidate-installed-set.jsonfailprettier --check, so please correct both sentences (the goldens are raw CLI output, so the fix is the wording, not formatting).
Non-blocking: the header of packages/cli/test/experimental-isolation.test.mjs still says every golden in no-icon-set/ comes from the CLI without icon sets and holds no prose, while validate-installed-set.json now embeds each icon definition's description and words, so an ordinary definition edit fails the test (see the inline note). The note about the installed-icon-set section text in an icon-set package's own folder still stands.
Claims and files checked
Review mode: full; reason: over-500-lines
- Claim: installing an icon-set package turns icon features on with or without the config key, and the package being authored turns nothing on. Verified:
icon-features.mjs:41-54,icon-features.test.mjs. - Claim: a project with no pack and no key sees no change apart from the search change. Verified: the isolation test's no-icon-set goldens pass.
- Claim: discover lists each package's sets and
--type icon-setworks. Verified:icon-set-kind.test.mjsand the isolation test. - Claim: doctor runs
icon-sets, reports an invalid set, and runsicon-placeholdersonly when a main set is decided;doctor integration validate <package>checks an installed package's sets. Verified:doctor.mjs:1169,:1286,:2606,:2662;icon-sets.test.mjs,icon-placeholders-scan.test.mjs,validate-installed-icon-sets.test.mjs. - Claim: with two packs and no key,
icon-setspasses saying none is the main set, with no placeholder check and no docs section. Verified:icon-sets.test.mjs,docs.icon-set.test.mjs. - Claim:
docs iconsgains one experimental section in the set package's name, and search never returns it. Verified:project.mjs:1314-1321;docs.icon-set.test.mjs; the search test fails with the filter removed. - Claim: copied templates and
astryx buildare unchanged; templates follow a set only once the key names it. Verified:template/_adapter.mjs:26;template.icons.test.mjs; the build code reads no icon sets. - Claim: search leaves out sections that experimental extension docs add, and
astryx docsstill shows them. Verified:_gather-docs.mjs:77-80,:208;docs.icon-set.test.mjs. - Claim: one synchronous internal gate decides it, with a code-constant release switch that is off, and it is not exported. Verified:
icon-features.mjs:21,api/index.mjs. - Claim: discover lists
iconsamong the set package's docs only beside another docs package. Verified:discover.docs-names.test.mjs. - Claim: JSON shapes are unchanged and caller burden is none. Verified: no exported type, command doc or option changes; the changeset's compatibility paragraph names the five error fields
discover --type icon-setdrops in a pack project, and changeset coverage passes against the last release. - Claim: the record changes to the icon-set, experimental-feature and discover specs, and the new decision entry. Verified against the diff; approved by an engineering owner for this head.
- Claim: the rewritten isolation block checks discover, the nudge commands, integration validate, an invalid set in doctor, search and template output with a pack installed. Verified:
experimental-isolation.test.mjs:1295-1504passes. - Claim: the seven goldens that block read are removed. False: six are kept and rewritten, one is removed (the blocking finding).
- Claim: the source-reader inventory lists the gate module. Verified:
experimental-isolation.test.mjs:151. - Claim: the new and updated test files and the typecheck, eslint, prettier, knowledge and changeset checks. Verified (CI's typecheck passes at this head), except: three rewritten goldens fail
prettier --check(the blocking finding). - Changeset entry: verified line by line, including its compatibility paragraph.
- Files: the gate and its readers (
icon-features.mjs,project.mjs, the discover, integration, upgrade and docs adapters,discover.mjs,validate-integration.mjs,template-icons.mjs,name-roots.mjs, discoverparse.mjsandtype.ts): clear. - Files:
doctor.mjsand doctor_adapter.mjs: clear. - Files:
_gather-docs.mjs: clear;installed-icon-set.doc.mjs: the non-blocking section-text note. - Files:
icon-sets.doc.mjs,icon-definitions.doc.mjs,config.doc.mjs,config/type.ts,icon-definition.doc.mjsand the changeset: clear. - Files: the three spec records: clear, approved by an engineering owner for this head.
- Files:
experimental-isolation.test.mjsand the seven goldens: the blocking description finding and the non-blocking header note. - Files: the other 12 test files: clear.
doctor integration validate's JSON golden for an installed icon-set package now passes through the same skeleton as the other goldens, so an icon definition's wording edit rewrites none of it. The guard's header says the installed-pack rows keep their goldens in the same folder.
|
/approve-spec 40689fd |
There was a problem hiding this comment.
Requesting changes: one phrase in the pull request description no longer matches a golden; the code, records and tests agree, and the findings of the earlier reviews are fixed.
- The description's Evidence section says
--type bogusis unchanged, butpackages/cli/test/__golden__/no-icon-set/discover-type-bogus.jsonnow also suggestsicon-setin a project with an installed icon-set package, so say that the error keeps its fields and now also listsicon-set, as the changeset already does.
Miss: the isolation test's comment above that golden ("an unknown type answers as before") needs the same edit (non-blocking). The docs icons section could also say "uses" instead of "installs" so it reads true in an icon-set package's own folder; neither note holds approval.
Claims and files checked
Review mode: full; reason: over-500-lines
- Description: before this change, icon surfaces outside the experimental icon command stayed hidden until the config key was set: verified (the base reads only
experimental.iconSetin discover, doctor, validate and the project loader). - Description: one synchronous gate is on for an installed pack (not the package being authored), the config key, or the release switch: verified (
icon-features.mjs:41-54,icon-features.test.mjs). - Description: the project loader, integration checks, docs catalog, discover, doctor, validate and the upgrade nudge all read the gate: verified (
project.mjs:854,:1133,:1502;discover/_adapter.mjs:917;doctor.mjs:2606;integration/_adapter.mjs:183;upgrade/_adapter.mjs:881). - Description: the gate is internal and not exported: verified (package
exports;api/index.mjs:58re-exports onlydoctor). - Description: one constant, off, is the release switch: verified (
icon-features.mjs:21). - Description: doctor's
icon-setscheck runs wherever the gate is on and passes with no list, naming the installed sets: verified (doctor.mjs:1169-1178,:1256-1261;icon-sets.test.mjs). - Description: the placeholder check and its scan run only with a decided main set, never with two packs and no list: verified (
doctor.mjs:1286-1301,:2662;icon-placeholders-scan.test.mjs). - Description: copied templates and
astryx buildare unchanged: verified (template/_adapter.mjs:26; build reads no icon set;template.icons.test.mjs). - Description:
docs iconsgains one experimental section through the extension path, naming the package and the experimental icon command: verified (project.mjs:1314-1321;docs.icon-set.test.mjs). - Description: search leaves out an experimental extension's sections and is otherwise unchanged with a pack installed: verified (
_gather-docs.mjs:77-80,:208-221; isolation search goldens). - Description: the listed record clauses describe the gate and DEC-13 records the decision: verified (FR4 and FR10 are also edited).
- Description: with no pack and no key every command prints what it printed before: verified (isolation no-icon-set block and its goldens untouched, passing).
- Description: the before/after table for one pack and the two-pack answers: verified (goldens;
icon-set-discovery.mjs:646;docs.icon-set.test.mjs). - Description: JSON shapes are unchanged: verified.
- Description: discover lists
iconsamong the set package's docs beside another docs package: verified (discover.docs-names.test.mjs). - Description: the isolation guard's no-icon-set block passes unchanged and the former block checks the new rule: verified (54 isolation tests pass).
- Description: five JSON goldens stay, rewritten, and only the stderr golden is removed: verified; but "
--type bogusis unchanged": false (discover-type-bogus.json:29-32addsicon-set). - Description: the validate golden holds no prose: verified (passed through
skeleton). - Description: the changeset's Compatibility paragraph names five error fields, and the reader inventory lists the gate: verified.
- Description: the listed new and updated tests exist and pass: verified (57 icon-related test files pass); the whole-suite run in the author's environment was not repeated.
- Description: prettier, eslint, knowledge and changeset checks: verified (prettier on the touched files; required lint passes);
typecheck:strictreports only two errors in untouched templates that need a built theme. - Changeset: installing a pack turns icon features on with or without the key, and a project with neither sees no change apart from the search change: verified.
- Changeset: discover, doctor (including the main-set condition), validate and
docs iconsread installed sets; search does not return the section: verified. - Changeset: copied templates still need the key; search drops experimental extension sections while
docsshows them: verified. - Changeset: Compatibility paragraph (five error fields; unknown types fail with the same fields; no-pack projects get the same error): verified.
.changeset/icon-pack-turns-icon-features-on.md: cleardocs/specs/AST-017/spec.md: cleardocs/specs/AST-051-discover-integration-manager/spec.md: cleardocs/specs/AST-084-icon-sets/spec.md: clearpackages/cli/api/discover/_adapter.mjs: clearpackages/cli/api/discover/discover.mjs: clearpackages/cli/api/discover/icon-set-kind.test.mjs: clearpackages/cli/api/docs/_entry-names.mjs: clearpackages/cli/api/doctor/_adapter.mjs: clearpackages/cli/api/doctor/doctor.mjs: clearpackages/cli/api/doctor/icon-placeholders-scan.test.mjs: clearpackages/cli/api/doctor/icon-sets.test.mjs: clearpackages/cli/api/integration/_adapter.mjs: clearpackages/cli/api/integration/validate-installed-icon-sets.test.mjs: clearpackages/cli/api/integration/validate-integration.mjs: clearpackages/cli/api/search/_gather-docs.mjs: clearpackages/cli/api/upgrade/_adapter.mjs: clearpackages/cli/assets/docs/tree/icon-definitions.doc.mjs: clearpackages/cli/assets/docs/tree/icon-sets.doc.mjs: clearpackages/cli/assets/icons/installed-icon-set.doc.mjs: non-blocking: "Your project installs an icon set" also shows in an icon-set package's own folder when its config setsexperimental.iconSetpackages/cli/authoring/config/config.doc.mjs: clearpackages/cli/authoring/config/type.ts: clearpackages/cli/authoring/discover/parse.mjs: clearpackages/cli/authoring/discover/type.ts: clearpackages/cli/authoring/doctypes/icon-definition/icon-definition.doc.mjs: clearpackages/cli/clients/cli/commands/discover.docs-names.test.mjs: clearpackages/cli/clients/cli/commands/docs.icon-set.test.mjs: clearpackages/cli/clients/cli/commands/icon-sets-guide.test.mjs: clearpackages/cli/clients/cli/commands/template.icons.test.mjs: clearpackages/cli/foundation/config/project.mjs: clearpackages/cli/foundation/discovery/icon-set-discovery.test.mjs: clearpackages/cli/foundation/discovery/name-roots.mjs: clearpackages/cli/foundation/discovery/template-icons.mjs: clearpackages/cli/foundation/doc-compiler/doc-loads.test.mjs: clearpackages/cli/foundation/doc-compiler/inputs.test.mjs: clearpackages/cli/foundation/integrations/icon-features.mjs: clearpackages/cli/foundation/integrations/icon-features.test.mjs: clearpackages/cli/test/__golden__/no-icon-set/discover-type-bogus.json: clear (its newicon-setsuggestion is what the description misstates)packages/cli/test/__golden__/no-icon-set/discover-type-icon-set.json: clearpackages/cli/test/__golden__/no-icon-set/discover.json: clearpackages/cli/test/__golden__/no-icon-set/doctor-installed-set.json: clearpackages/cli/test/__golden__/no-icon-set/installed-set-stderr.txt: clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.txt: clearpackages/cli/test/experimental-isolation.test.mjs: non-blocking: the comment at lines 1352-1353 says an unknown type answers as before
|
/approve-spec e34f57b |
There was a problem hiding this comment.
Approved pending CI: the description now matches the --type bogus golden, the code, records and tests agree, and every earlier blocking finding is fixed. CI has not run its required checks on this head: its admission step found no room under the CI ceiling and cancelled build and test, so re-run all jobs and let them pass.
One optional note: the docs icons section could say "Your project uses an icon set" instead of "installs", so it reads true in an icon-set package's own folder that sets experimental.iconSet (packages/cli/assets/icons/installed-icon-set.doc.mjs). It does not hold approval.
Claims and files checked
Review mode: incremental; reason: none
- Description: before this change, icon surfaces outside the experimental icon command stayed hidden until the config key was set: verified (the base reads only
experimental.iconSetin discover, doctor, validate and the project loader). - Description: one synchronous gate is on for an installed pack (not the package being authored), the config key, or the release switch: verified (
icon-features.mjs:41-54,icon-features.test.mjs). - Description: the project loader, integration checks, docs catalog, discover, doctor, validate and the upgrade nudge all read the gate: verified (
project.mjs:854,:1133,:1502;discover/_adapter.mjs:917;doctor.mjs:2606;integration/_adapter.mjs:183;upgrade/_adapter.mjs:881). - Description: the gate is internal and not exported: verified (package
exports;api/index.mjs:58re-exports onlydoctor). - Description: one constant, off, is the release switch: verified (
icon-features.mjs:21). - Description: doctor's
icon-setscheck runs wherever the gate is on and passes with no list, naming the installed sets: verified (doctor.mjs:1169-1178,:1257-1261;icon-sets.test.mjs). - Description: the placeholder check and its scan run only with a decided main set, never with two packs and no list: verified (
doctor.mjs:1286-1301,:2662;icon-placeholders-scan.test.mjs). - Description: copied templates and
astryx buildare unchanged: verified (template/_adapter.mjs:26; build reads no icon set;template.icons.test.mjs). - Description:
docs iconsgains one experimental section through the extension path, naming the package and the experimental icon command: verified (project.mjs:1314-1321;docs.icon-set.test.mjs). - Description: search leaves out an experimental extension's sections and is otherwise unchanged with a pack installed: verified (
_gather-docs.mjs:77-80,:208-222; isolation search goldens). - Description: the listed record clauses describe the gate and DEC-13 records the decision: verified (FR4 and FR10 are also edited).
- Description: with no pack and no key every command prints what it printed before: verified (isolation no-icon-set block and its goldens untouched, passing).
- Description: the before/after table for one pack and the two-pack answers: verified (goldens;
icon-set-discovery.mjs:638,:646;docs.icon-set.test.mjs). - Description: JSON shapes are unchanged and the fields are the existing experimental ones: verified.
- Description: discover lists
iconsamong the set package's docs beside another docs package: verified (discover.docs-names.test.mjs). - Description: the isolation guard's no-icon-set block passes unchanged and the former block checks the new rule: verified (54 isolation tests pass).
- Description: five JSON goldens stay, rewritten,
--type boguskeeps its error fields and also listsicon-set, and only the stderr golden is removed: verified (discover-type-bogus.json:29-32; file list). - Description: the validate golden holds no prose: verified (passed through
skeleton). - Description: the changeset's Compatibility paragraph names five error fields, and the reader inventory lists the gate: verified.
- Description: the listed new and updated tests exist and pass: verified (14 files, 280 tests pass).
- Description: running the whole CLI suite fails only tests that also fail on the base in that environment: verified in this review's environment (17,859 tests pass; the same five failures, which need git,
/procor the system temp folder, fail on the base too). - Description: typecheck, eslint, prettier, knowledge and changeset checks: verified (prettier on the touched files, eslint,
check:knowledge,check:changesets, required lint passes);typecheck:strictreports only two errors in untouched templates that need a built theme. - Changeset: installing a pack turns icon features on with or without the key, and a project with neither sees no change apart from the search change: verified.
- Changeset: discover, doctor (including the main-set condition), validate and
docs iconsread installed sets; search does not return the section: verified. - Changeset: copied templates still need the key; search drops experimental extension sections while
docsshows them: verified. - Changeset: Compatibility paragraph (five error fields; unknown types fail with the same fields; no-pack projects get the same error): verified.
.changeset/icon-pack-turns-icon-features-on.md: cleardocs/specs/AST-017/spec.md: cleardocs/specs/AST-051-discover-integration-manager/spec.md: cleardocs/specs/AST-084-icon-sets/spec.md: clearpackages/cli/api/discover/_adapter.mjs: clearpackages/cli/api/discover/discover.mjs: clearpackages/cli/api/discover/icon-set-kind.test.mjs: clearpackages/cli/api/docs/_entry-names.mjs: clearpackages/cli/api/doctor/_adapter.mjs: clearpackages/cli/api/doctor/doctor.mjs: clearpackages/cli/api/doctor/icon-placeholders-scan.test.mjs: clearpackages/cli/api/doctor/icon-sets.test.mjs: clearpackages/cli/api/integration/_adapter.mjs: clearpackages/cli/api/integration/validate-installed-icon-sets.test.mjs: clearpackages/cli/api/integration/validate-integration.mjs: clearpackages/cli/api/search/_gather-docs.mjs: clearpackages/cli/api/upgrade/_adapter.mjs: clearpackages/cli/assets/docs/tree/icon-definitions.doc.mjs: clearpackages/cli/assets/docs/tree/icon-sets.doc.mjs: clearpackages/cli/assets/icons/installed-icon-set.doc.mjs: non-blocking: "Your project installs an icon set" also shows in an icon-set package's own folder when its config setsexperimental.iconSetpackages/cli/authoring/config/config.doc.mjs: clearpackages/cli/authoring/config/type.ts: clearpackages/cli/authoring/discover/parse.mjs: clearpackages/cli/authoring/discover/type.ts: clearpackages/cli/authoring/doctypes/icon-definition/icon-definition.doc.mjs: clearpackages/cli/clients/cli/commands/discover.docs-names.test.mjs: clearpackages/cli/clients/cli/commands/docs.icon-set.test.mjs: clearpackages/cli/clients/cli/commands/icon-sets-guide.test.mjs: clearpackages/cli/clients/cli/commands/template.icons.test.mjs: clearpackages/cli/foundation/config/project.mjs: clearpackages/cli/foundation/discovery/icon-set-discovery.test.mjs: clearpackages/cli/foundation/discovery/name-roots.mjs: clearpackages/cli/foundation/discovery/template-icons.mjs: clearpackages/cli/foundation/doc-compiler/doc-loads.test.mjs: clearpackages/cli/foundation/doc-compiler/inputs.test.mjs: clearpackages/cli/foundation/integrations/icon-features.mjs: clearpackages/cli/foundation/integrations/icon-features.test.mjs: clearpackages/cli/test/__golden__/no-icon-set/discover-type-bogus.json: clearpackages/cli/test/__golden__/no-icon-set/discover-type-icon-set.json: clearpackages/cli/test/__golden__/no-icon-set/discover.json: clearpackages/cli/test/__golden__/no-icon-set/doctor-installed-set.json: clearpackages/cli/test/__golden__/no-icon-set/installed-set-stderr.txt: clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.txt: clearpackages/cli/test/experimental-isolation.test.mjs: clear
|
/approve-spec 9f75bc0 |
e34f57b to
9f75bc0
Compare
There was a problem hiding this comment.
Approved pending CI: the code, the amended records (approved by an engineering owner for this head), the changeset and the description agree, and the changed and related tests pass. CI's required build and test have not finished on this head: the first run was cancelled because CI was full, and a re-run is in progress; they need to pass before merging.
One optional note: the docs icons section could say "Your project uses an icon set" instead of "installs", so it reads true in an icon-set package's own folder that sets experimental.iconSet (packages/cli/assets/icons/installed-icon-set.doc.mjs). It does not hold approval.
Claims and files checked
Review mode: full; reason: rebase
- Description: before this change, icon surfaces outside the experimental icon command stayed hidden until the config key was set: verified (the base's discover, doctor, validate, upgrade and project loader read only
experimental.iconSet). - Description: one synchronous gate answers on or off with a reason: on for an installed pack (not the package being authored), the config key, or the release switch: verified (
icon-features.mjs:41-54,icon-features.test.mjs). - Description: the project loader, integration checks, docs catalog, discover, doctor, validate and the upgrade nudge all read the gate: verified (
project.mjs:854,:1133,:1502;discover/_adapter.mjs:917;doctor.mjs:2606;integration/_adapter.mjs:183;upgrade/_adapter.mjs:881). - Description: the gate is internal and not exported: verified (the package
exportsmap;api/index.mjs:58re-exports onlydoctor). - Description: one constant, off, is the release switch, and on it turns icon features on in every project: verified (
icon-features.mjs:21,:42). - Description: doctor's
icon-setscheck runs wherever the gate is on and, with no list, passes naming the installed sets: verified (doctor.mjs:1163-1262,icon-sets.test.mjs; the one-pack message is reproduced at this head). - Description: the placeholder check and its scan run only with a decided main set, never with two packs and no list: verified (
doctor.mjs:1286-1288,:2662;icon-placeholders-scan.test.mjs). - Description: copied templates and
astryx buildare unchanged: verified (template/_adapter.mjs:26; the build command reads no icon set;template.icons.test.mjs). - Description:
docs iconsgains one experimental section through the existing extension path, naming the package and the command that finds icons: verified (project.mjs:1314-1321,installed-icon-set.doc.mjs,docs.icon-set.test.mjs). - Description: search leaves out an experimental extension's sections and is otherwise unchanged with a pack installed: verified (
_gather-docs.mjs:77-80,:208-222; isolation search goldens for three queries). - Description: the listed record clauses describe the gate and DEC-13 records the decision: verified (FR4 and FR10 are edited too).
- Description: with no pack and no key every command prints what it printed before: verified (the isolation no-icon-set block and its goldens are unchanged and pass).
- Description: the before/after table for one pack and the two-pack answers: verified (discover, doctor and
docs icons --indexreproduced at this head; goldens). - Description: JSON shapes are unchanged and the fields are the existing experimental ones: verified (each command keeps its response type;
iconSetsand a section'spackageare fields the base already has; the one error-to-list switch is stated in the changeset). - Description: discover lists
iconsamong the set package's docs when another installed integration ships docs: verified (discover.docs-names.test.mjs). - Description: the isolation guard's no-icon-set block passes unchanged and the former block now checks the new rule: verified (54 isolation tests pass).
- Description: five JSON goldens stay, rewritten as listed,
--type boguskeeps its error fields and also listsicon-set, and only the stderr golden is removed: verified (discover-type-bogus.json:31; file list). - Description: the validate golden holds no prose, the changeset names five error fields, and the reader inventory lists the gate: verified.
- Description: the listed new and updated tests exist and pass: verified (14 files, 280 tests; 316 tests with the head merged into
main). - Description: running the whole CLI suite fails only tests that also fail on the base in that environment: verified in this review's environment (1,127 files: 17,758 tests pass; the 4 failures, which need git,
/procor the system temp folder, fail the same way on the base). - Description: typecheck, eslint, prettier, knowledge and changeset checks: verified (prettier and eslint clean on the touched files; both checks and the required lint pass);
typecheck:strictreports only two errors in untouched templates that need a built theme. - Description: writing rubric results: verified (the record additions are present tense; DEC-13 quotes a dated decision).
- Changeset: installing a pack turns icon features on with or without the key, and a project with neither sees no change apart from the search change: verified.
- Changeset: discover lists sets and takes
--type icon-set; doctor runsicon-sets, reports an invalid set and runsicon-placeholdersonce a main set is decided; validate checks an installed package's sets: verified. - Changeset:
docs iconsadds one section in the set package's name with the command that finds icons, and search does not return it: verified. - Changeset: copied templates still need the key; search drops experimental extension sections while
docsshows them: verified (docs.added-sections.test.mjspasses on the merge withmain). - Changeset: Compatibility paragraph (
--type icon-setlists the package instead of the five error fields; an unknown type fails with the same fields; a project with no pack gets the same error): verified (goldens; reproduced at this head). .changeset/icon-pack-turns-icon-features-on.md: cleardocs/specs/AST-017/spec.md: cleardocs/specs/AST-051-discover-integration-manager/spec.md: cleardocs/specs/AST-084-icon-sets/spec.md: clearpackages/cli/api/discover/_adapter.mjs: clearpackages/cli/api/discover/discover.mjs: clearpackages/cli/api/discover/icon-set-kind.test.mjs: clearpackages/cli/api/docs/_entry-names.mjs: clearpackages/cli/api/doctor/_adapter.mjs: clearpackages/cli/api/doctor/doctor.mjs: clearpackages/cli/api/doctor/icon-placeholders-scan.test.mjs: clearpackages/cli/api/doctor/icon-sets.test.mjs: clearpackages/cli/api/integration/_adapter.mjs: clearpackages/cli/api/integration/validate-installed-icon-sets.test.mjs: clearpackages/cli/api/integration/validate-integration.mjs: clearpackages/cli/api/search/_gather-docs.mjs: clearpackages/cli/api/upgrade/_adapter.mjs: clearpackages/cli/assets/docs/tree/icon-definitions.doc.mjs: clearpackages/cli/assets/docs/tree/icon-sets.doc.mjs: clearpackages/cli/assets/icons/installed-icon-set.doc.mjs: non-blocking: "Your project installs an icon set" also shows in an icon-set package's own folder when its config setsexperimental.iconSetpackages/cli/authoring/config/config.doc.mjs: clearpackages/cli/authoring/config/type.ts: clearpackages/cli/authoring/discover/parse.mjs: clearpackages/cli/authoring/discover/type.ts: clearpackages/cli/authoring/doctypes/icon-definition/icon-definition.doc.mjs: clearpackages/cli/clients/cli/commands/discover.docs-names.test.mjs: clearpackages/cli/clients/cli/commands/docs.icon-set.test.mjs: clearpackages/cli/clients/cli/commands/icon-sets-guide.test.mjs: clearpackages/cli/clients/cli/commands/template.icons.test.mjs: clearpackages/cli/foundation/config/project.mjs: clearpackages/cli/foundation/discovery/icon-set-discovery.test.mjs: clearpackages/cli/foundation/discovery/name-roots.mjs: clearpackages/cli/foundation/discovery/template-icons.mjs: clearpackages/cli/foundation/doc-compiler/doc-loads.test.mjs: clearpackages/cli/foundation/doc-compiler/inputs.test.mjs: clearpackages/cli/foundation/integrations/icon-features.mjs: clearpackages/cli/foundation/integrations/icon-features.test.mjs: clearpackages/cli/test/__golden__/no-icon-set/discover-type-bogus.json: clearpackages/cli/test/__golden__/no-icon-set/discover-type-icon-set.json: clearpackages/cli/test/__golden__/no-icon-set/discover.json: clearpackages/cli/test/__golden__/no-icon-set/doctor-installed-set.json: clearpackages/cli/test/__golden__/no-icon-set/installed-set-stderr.txt: clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.txt: clearpackages/cli/test/experimental-isolation.test.mjs: clear
User need
A project that installs an icon-set package expects Astryx to know about it. Before this change, every icon surface outside
astryx experimental iconstayed hidden until the project also wroteexperimental.iconSetin astryx.config. Discover did not list the pack's sets, doctor did not check them, andastryx docs iconsnever mentioned the pack or how to find its icons. The pack was installed and invisible until a second, easy-to-miss config step.The CLI owner's decision: "for search icons and stuff we should add that now if an integration is sitting there. Maybe that's how all icons stuff works while experimental If icon integration it full works otherwise we keep hidden until we release them make it a flip of the switch".
Problem and solution fit
iconFeatureGate(project)(packages/cli/foundation/integrations/icon-features.mjs) answers{on, reason}. Icon features are on when an installed integration (not the package being authored) declaresexperimental.iconSets(reason: 'pack'), when astryx.config setsexperimental.iconSet('iconSet'), or when the release switch is on ('released'). Otherwise they are off. It is synchronous and reads only the loaded project.Project.iconSets(), the project's integration checks, the docs catalog, discover, doctor,doctor integration validateand upgrade's nudge all read it. Each of these used to checkexperimental.iconSeton its own. It is internal to the CLI and is not exported from its public API.ICON_FEATURES_RELEASED = falsein the same file. Setting it totrueturns icon features on in every project. That one-line change is the promotion, which still needs owner approval and a[feat]Changeset.icon-setscheck runs wherever the gate is on; with no list, it passes and names the installed sets. Theicon-placeholderscheck, and the source scan it reads, run only when the gate is on and a main set is decided: the oneexperimental.iconSetnames, or the only installed set. With two packs and no list there is no placeholder check and no scan.experimental.iconSetnames it, soastryx build's answer is unchanged too.astryx docs iconsgains one section, marked experimental, in the name of the package that ships the project's set. It uses the existing topic-extension mechanism, which already makes a read say "sections from ". The section says to find icons withastryx experimental icon <words>. Search leaves out the sections of an experimental extension, the same way it leaves out an experimental topic.astryx searchis out of scope. It never reads icon sets, and its output is unchanged with a pack installed. Search can build its icon section oniconFeatureGateplusproject.iconSets().Current specification
spec:AST-084FR0, FR9, FR17, DEC-8 and DEC-11 now describe the gate. The new DEC-13 records the decision in the CLI owner's words and dates it.spec:AST-017FR27: one added sentence says that installing a package that declaresexperimental.iconSetsis an opt-in, the same as settingexperimental.iconSet.spec:AST-051FR5 and FR7: discover'sicon-setkind follows the gate.Public delta and caller burden
With no icon-set package and no
experimental.iconSet, every command prints exactly what it printed before. In a project that installs one pack, with no config:astryx discover@acme/glyphswith noiconSetsiconSets: glyphs.--type icon-setlists it instead ofUnknown --type "icon-set"astryx doctor[ok] icon-sets - 1 icon set installed. "@acme/glyphs/glyphs" is the only installed icon set.and[ok] icon-placeholdersastryx docs icons --indexsections from @acme/glyphs: installed-icon-setastryx template,astryx build,astryx searchWith two packs and no config,
doctorhas noicon-placeholderscheck, passesicon-setswith2 icon sets installed. 2 icon sets are installed (...) and astryx.config sets no experimental.iconSet, so none is your main set.anddocs iconsadds no section.JSON shapes are unchanged. The
iconSetsand section fields are the existing experimental ones.Integration authors:
astryx searchnow leaves out the sections that a doc markedstability: 'experimental'adds to another topic withextends, as it already left out an experimental topic.astryx docsstill shows those sections. This applies with or without icon sets.Caller burden: none. Installing a pack is the whole step.
Design and alternatives
cwdargument would have required foundation code to load the project and would have duplicatedproject.iconSets().astryx discoverlistsiconsamong the docs of the project-set package, because that package now adds a section toicons.Evidence
experimental.iconSetmeans unchanged output" block encoded the old rule. It now checks the new rule:doctor integration validatechecks the pack;close,icon setandexperimentalstill equals the no-icon-set goldens;template settings-dialog, printed and copied, has noiconsreport and writes the template's own source.test/__golden__/no-icon-set/stay, rewritten for a project with an installed icon-set package (discover lists the set,--type icon-setlists its package,--type boguskeeps its error fields and now also listsicon-setamong the types, and doctor anddoctor integration validaterun the icon checks); onlyinstalled-set-stderr.txtis removed. The guard rows assert against them, and the validate golden holds no prose. The changeset's Compatibility paragraph names the fivediscover-type-icon-set.jsonerror fields that--type icon-setno longer returns. The source-reader inventory lists the gate module.Scope
Components: CLI (icon feature gate, discover, doctor, docs, search doc gathering)
Testing
pnpm exec vitest run --project node packages/cli. All failures also fail on the base branch in this environment: theme build from a clean checkout, Yarn PnP global run, locale hook examples, and a picture-run test.foundation/integrations/icon-features.test.mjs,api/discover/icon-set-kind.test.mjs,clients/cli/commands/docs.icon-set.test.mjs,api/doctor/icon-placeholders-scan.test.mjs(no scan with no pack or two packs and no list; one scan with one pack). Each covers no pack, one pack and two packs where it applies.test/experimental-isolation.test.mjs,api/doctor/icon-sets.test.mjs,api/integration/validate-installed-icon-sets.test.mjs,clients/cli/commands/template.icons.test.mjs,clients/cli/commands/icon-sets-guide.test.mjs,foundation/discovery/icon-set-discovery.test.mjs,foundation/doc-compiler/inputs.test.mjs,foundation/doc-compiler/doc-loads.test.mjs,clients/cli/commands/discover.docs-names.test.mjs.pnpm -F @astryxdesign/cli typecheck:strict; eslint on touched code;prettier --checkon every touched source file (the goldens are raw CLI output and stay as the CLI prints them);pnpm check:knowledge;pnpm check:changesets.Writing rubric results
experimental.iconSet), not changes.