Repository navigation
feat(cli): template results carry isReady, and text says (not ready) - #11931
Conversation
A template whose doc sets isReady: false stays in search's answer, in the same place. Its text record marks its kind (not ready), and its JSON result adds isReady: false after its other fields. Ready templates and every other result are unchanged. The kept gather and the catalog stored at publish carry the mark, so a template that becomes ready drops it on the next run.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| + | cli |
./api · Types · type BlockEntry |
isReady: boolean |
import type {BlockEntry} from '@astryxdesign/cli/api'; const x: BlockEntry = {isReady: …} |
| + | cli |
./api · Types · type BuildAlternative |
isReady: boolean |
import type {BuildAlternative} from '@astryxdesign/cli/api'; const x: BuildAlternative = {isReady: …} |
| + | cli |
./api · Types · type BuildStart |
isReady: boolean |
import type {BuildStart} from '@astryxdesign/cli/api'; const x: BuildStart = {isReady: …} |
| + | cli |
./api · Types · type SearchResultEntry |
isReady?: boolean | undefined |
import type {SearchResultEntry} from '@astryxdesign/cli/api'; const x: SearchResultEntry = {isReady: …} |
| ~ | cli |
./api · Types · type TemplateCopyResponse |
data: { template: string; outputDir: string; fileName: string; filesCopied: number; demoMediaReplaced: number; demoContentReplaced: number; notes: string[]; missingPa … #85043f1b → data: { template: string; outputDir: string; fileName: string; filesCopied: number; demoMediaReplaced: number; demoContentReplaced: number; notes: string[]; missingPa … #7b7c20d9 |
import type {TemplateCopyResponse} from '@astryxdesign/cli/api'; const x: TemplateCopyResponse = {data: …} |
| ~ | cli |
./api · Types · type TemplateShowResponse |
data: { template: string; description: string; type: "page" | "block"; components: string[]; source: string; demoMediaReplaced: number; demoContentReplaced: number; icons?: TemplateIconsReport | undefined } → data: { template: string; description: string; type: "page" | "block"; components: string[]; source: string; demoMediaReplaced: number; demoContentReplaced: number; i … #997816e9 |
import type {TemplateShowResponse} from '@astryxdesign/cli/api'; const x: TemplateShowResponse = {data: …} |
| ~ | cli |
./api · Types · type TemplateSkeletonResponse |
data: { template: string; description: string; components: string[]; skeleton: string } → data: { template: string; description: string; components: string[]; skeleton: string; isReady: boolean } |
import type {TemplateSkeletonResponse} from '@astryxdesign/cli/api'; const x: TemplateSkeletonResponse = {data: …} |
Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
Approval waits on an engineering owner's decision, because no current spec decides what astryx search returns for each result, and a new response field needs that authority even when it is optional (AST-017 DEC-4).
What the owner needs to settle:
- Whether search reports template readiness as
isReady: falseon an unready template's result. The same entry also reachesastryx build --jsonunderdata.pages. - Which text form search prints:
kind: page (not ready)as in this pull request, the(WIP)thatastryx template --listalready prints for the same templates, or a separateisReady: falsetext field that mirrors the JSON key.
An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. I found no blocking defect, and the new unit and packed-CLI tests pass. CI's test jobs did not run on this head because the runner pool was full, so they still need a re-run.
- Non-blocking: in
search.not-ready.test.mjs, the "keeps its place" test compares only names and scores. Also asserting that the flipped template no longer carriesisReadywould prove that the second search saw the flip.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
- Search marks an unready template in text and JSON, keeps its place, and leaves every other result unchanged: verified (
packages/cli/api/search/_result.mjs:82,packages/cli/clients/cli/commands/search.mjs:206-210, the new unit test). astryx template --list --jsonalready reports readiness: verified (packages/cli/api/template/list/list.mjs:67).- A template whose doc leaves readiness out reads as ready, as before: verified (template discovery defaults it to true; first case of the new unit test).
- Ranking does not read the flag: verified (only
_result.mjsreads the private mark). - The result type gains an optional
isReady: falseafter every existing field: verified (packages/cli/api/search/search.type.mjs:36; key-order assertion in the new test). - The kept gather and the stored catalog carry the mark without a codec change, and a doc edit drops it: verified (both caches copy every candidate key; both new packed-CLI tests pass).
- A replay over 1,265 queries leaves every ranked list the same: verified by code reading (ranking reads nothing new); the replay itself was not re-run.
- The listed test runs pass: verified for the search, command-contract and packed-catalog files re-run here.
- Typecheck shows no new errors: verified (the JSON API typecheck is clean; the strict typecheck reports only two template pages that need an unbuilt theme output, none in a changed file).
- The spec lookup routes no concern-specific claim: verified (no concern match for the added lines).
- No knowledge record changed: verified.
Files:
.changeset/search-marks-unready-templates.md: clearpackages/cli/api/search/_gather-templates.mjs: clearpackages/cli/api/search/_lexical.mjs: clearpackages/cli/api/search/_result.mjs: needs the owner decision on the new fieldpackages/cli/api/search/search.doc.mjs: clearpackages/cli/api/search/search.not-ready.test.mjs: non-blocking note abovepackages/cli/api/search/search.type.mjs: needs the owner decision on the new public memberpackages/cli/clients/cli/commands/search.mjs: needs the owner decision on the text formpackages/cli/test/packed-gather-cache.changes.test.mjs: clearpackages/cli/test/packed-search-catalog.test.mjs: clear
Every --json result that lists or returns a template gives it isReady: search results, build's pages, blocks, start and alternatives, template show, skeleton and copy, and component --blocks entries. Text marks an unready template (not ready) in each of those results, and template --list says (not ready) instead of (WIP). cli-surface INV28 states the rule; a test walks every response type that lists or returns a template.
…emplates # Conflicts: # packages/cli/api/template/template.doc.mjs # packages/cli/foundation/response/response-types.doc.mjs
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about template readiness in CLI results. Two fixes are also needed.
- The description still describes the first commit. It says
isReadyappears only on unready search results, thatisReady: trueon every template was rejected, that text changes nowhere else, and that no knowledge record changed, but this head does all of those (api/search/_result.mjs:80and the INV28 edit indocs/architecture/cli-surface.md). Update the description, its Scope line and its writing-rubric results to match. - The new
isReadymembers onBuildStart,BuildAlternative,BlockEntryand the template show, skeleton and copy responses fall outside the declared scope (Components: CLI search). Name them in the scope for the owner decision, or split them into their own pull request.
No current spec decides readiness in CLI results, and a new response field needs that authority (AST-017 DEC-4). The owner settles whether every template result carries isReady or only unready ones, whether it reaches build, template and component results or only search, which word text uses, and the new INV28 sentence. An engineering owner records that by commenting /approve-spec <full head SHA>, and the author may do so as an engineering owner. CI's test jobs did not run on this head because the runner pool was full, so they need a re-run.
- Non-blocking: the template doc type now says an unready template shows
(not ready)in the gallery, but the gallery hides unready templates. The new(WIP)guard test also runsgit ls-files, so it fails outside a git checkout.
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- An unready template can ship with
isReady: false, and search did not report it before: verified (three Core page templates; the base search result has no such field). template --list --jsonalready reports readiness: verified (api/template/list/list.mjs:67).- Search keeps an unready template in the same place, and ranking ignores the flag: verified (the order test passes; ranking code never reads the mark).
- Search text reads
page (not ready)and its JSON addsisReady: falsefor an unready template: verified (commands/search.mjs:202-211). - Ready templates and non-template results print exactly as before: false for JSON, where every ready template row now carries
isReady: true(api/search/_result.mjs:80); true for non-template results. - The field is optional and present only on an unready template's result: false (
search.type.mjs:36types itboolean, and it is on every template result). - In text, nothing else changes: false (build, template show, skeleton and copy,
component --blocks, andtemplate --listchange too). - A field on every template result was rejected: false (the head ships it).
- The caches carry the mark without a codec change, and a doc edit drops it: verified (both packed-CLI tests pass).
- The unit test shows only the unready template carries the field: false (the test asserts
trueon the others). - The query replay is byte-identical apart from
isReady: falserows: false at this head (every template row carries the field); the replay itself was not checked. - No current record describes search's result fields: true at the base, but this head proposes one (INV28) without saying so.
- Scope is CLI search only: false (build, template and component results change).
- Consumer docs and tests ship with the feature: verified (command docs, response-type docs and the regenerated README are in sync).
- Public text has no internal context: verified.
- No knowledge record changed: false (
docs/architecture/cli-surface.mdchanges), and the writing-rubric results for that edit are missing. - The listed test runs pass: verified for the search, command-contract, golden and packed-CLI test files; the
(WIP)guard needs a git checkout. - Typecheck shows no new errors: verified (the JSON API typecheck is clean; the strict typecheck reports only two unchanged template pages that need a theme build).
- The spec lookup found no concern-routed claims: not checked.
- Changeset: search and build JSON carry
isReady, search text marks(not ready), andtemplate --listswaps(WIP)for(not ready): verified; it leaves out the template and component JSON fields and text marks.
Files:
.changeset/search-marks-unready-templates.md: non-blocking: omits the template show/skeleton/copy and component --blocks fields and text marksdocs/architecture/cli-surface.md: needs the owner decision (new INV28 rule); no writing-rubric resultspackages/cli/README.md: clear (generated, in sync)packages/cli/api/build/_adapter.mjs: outside the declared scopepackages/cli/api/build/blocks/blocks.mjs: outside the declared scopepackages/cli/api/build/build.doc.mjs: outside the declared scopepackages/cli/api/build/build.type.mjs: outside the declared scope; start and alternative isReady is always truepackages/cli/api/build/kit/signals.mjs: outside the declared scopepackages/cli/api/build/kit/start.mjs: clear (type only)packages/cli/api/component/component.type.mjs: outside the declared scopepackages/cli/api/component/detail/blocks/blocks.mjs: outside the declared scopepackages/cli/api/search/_gather-templates.mjs: clearpackages/cli/api/search/_lexical.mjs: clearpackages/cli/api/search/_result.mjs: needs the owner decision (true on every template result)packages/cli/api/search/search.doc.mjs: clearpackages/cli/api/search/search.not-ready.test.mjs: clearpackages/cli/api/search/search.type.mjs: needs the owner decision (new public member)packages/cli/api/template/copy/copy.mjs: outside the declared scopepackages/cli/api/template/show/show.mjs: outside the declared scopepackages/cli/api/template/skeleton/skeleton.mjs: outside the declared scopepackages/cli/api/template/template.doc.mjs: outside the declared scopepackages/cli/api/template/template.type.mjs: outside the declared scopepackages/cli/authoring/doctypes/template/template.doc.mjs: non-blocking: the gallery hides unready templatespackages/cli/authoring/doctypes/template/type.ts: non-blocking: same gallery wordingpackages/cli/clients/cli/commands/build.mjs: outside the declared scopepackages/cli/clients/cli/commands/component.mjs: outside the declared scopepackages/cli/clients/cli/commands/not-ready.test.mjs: non-blocking: the (WIP) guard needs a git checkoutpackages/cli/clients/cli/commands/search.mjs: needs the owner decision (text form)packages/cli/clients/cli/commands/search.test.mjs: clearpackages/cli/clients/cli/commands/template.mjs: needs the owner decision ((WIP) becomes (not ready)); show, skeleton and copy marks outside the declared scopepackages/cli/clients/cli/commands/text-json-parity.test.mjs: clearpackages/cli/clients/cli/lib/not-ready.mjs: clearpackages/cli/foundation/response/response-types.doc.mjs: clearpackages/cli/test/__golden__/no-icon-set/search-delete.json: clear (regenerated; golden suites pass)packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear (regenerated; golden suites pass)packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear (regenerated; golden suites pass)packages/cli/test/__golden__/no-icon-set/search-icon.json: clear (regenerated; golden suites pass)packages/cli/test/__golden__/no-icon-set/search-search.json: clear (regenerated; golden suites pass)packages/cli/test/__golden__/no-icon-set/search-trash-can.json: clear (regenerated; golden suites pass)packages/cli/test/__golden__/no-icon-set/template-copy.json: clear (regenerated; golden suites pass)packages/cli/test/__golden__/no-icon-set/template-show.json: clear (regenerated; golden suites pass)packages/cli/test/__golden__/search.json: clear (regenerated; golden suites pass)packages/cli/test/__golden__/template.json: clear (regenerated; golden suites pass)packages/cli/test/packed-gather-cache.changes.test.mjs: clearpackages/cli/test/packed-search-catalog.test.mjs: clear
…emplates # Conflicts: # packages/cli/README.md # packages/cli/api/build/build.doc.mjs # packages/cli/foundation/response/response-types.doc.mjs
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about template readiness in CLI results, and two fixes are also needed.
- The description still describes the first commit: it says
isReadyappears only on unready search results, thatisReady: trueon every template was rejected, that text changes nowhere else and that no knowledge record changed, but this head does all of those (packages/cli/api/search/_result.mjs:80and the INV28 edit indocs/architecture/cli-surface.md), so update the description, its Scope line and its writing-rubric results to match. - The new
isReadymembers onBuildStart,BuildAlternative,BlockEntryand the template show, skeleton and copy responses fall outside the declared scope (Components: CLI search), so name them in the scope for the owner decision or split them into their own pull request.
No current spec decides readiness in CLI results, and a new response field needs that authority (AST-017 DEC-4). The owner settles whether every template result carries isReady or only unready ones, whether build, template and component results carry it, which word text uses, and the new INV28 sentence. An engineering owner records that by commenting /approve-spec <full head SHA>, and the author may do so as an engineering owner.
- Non-blocking: since the merge of main, build's start, alternatives and pages only ever hold ready templates, so their
isReadyis alwaystrue, and theif (unready)check inpackages/cli/api/search/search.not-ready.test.mjs:101-102never runs.
Claims and files checked
Review mode: full; reason: merge-touches-pr-files
Claims:
- A template can ship with
isReady: false, and search did not mark it: verified (three Core page templates; the base search result has no field and no mark). template --list --jsonalready reports readiness: verified (api/template/list/list.mjs:67).- Search keeps an unready template in the same place, and ranking does not read the flag: verified (the order test passes; only
_result.mjsreads the private flag). - Search text reads
page (not ready)and its JSON carriesisReady: falsefor an unready template: verified (commands/search.mjs:202-211,_result.mjs:80). - Ready templates and non-template results print exactly as before: false for JSON, where every ready template row now carries
isReady: true; true for non-template results. - The field is optional and present only on an unready template's result: false (it is on every template result).
- In text, nothing else changes: false (build, template show, skeleton and copy,
component --blocksandtemplate --listchange too). - A field on every template result was rejected: false (the head ships it).
- The kept gather and the stored catalog carry the mark with no codec change, and a doc edit drops it: verified (both packed-CLI tests pass).
- The unit test shows only the unready template carries the field: false (it asserts
trueon the others). - The query replay is byte-identical apart from
isReady: falserows and the text mark: false at this head (every template row carries the field, and theicon setcount moves from 398 to 399). - No current record describes search's result fields: true at the base, but this head proposes one (INV28) without saying so.
- Scope is CLI search only: false (build, template and component results change).
- Consumer docs and focused tests ship with the feature: verified (command docs, response-type docs and the regenerated README are in sync).
- Public text has no internal context: verified.
- No knowledge record changed: false (
docs/architecture/cli-surface.mdchanges), and its writing-rubric results are missing. - The listed test runs pass: verified, except the
(WIP)guard, which needs a git checkout. - Typecheck shows no new errors: verified (the JSON API typecheck is clean; the strict typecheck reports only two unchanged template pages that need a built theme).
- The spec lookup found no concern-routed claims: not checked.
- Changeset: search and build JSON carry
isReady, search text marks(not ready), andtemplate --listswaps(WIP)for(not ready): verified; it leaves out the template show, skeleton and copy andcomponent --blocksfields and marks.
Files:
.changeset/search-marks-unready-templates.md: non-blocking: omits the template and component fields and marksdocs/architecture/cli-surface.md: needs the owner decision (new INV28 rule); no writing-rubric resultspackages/cli/README.md: clear (generated, in sync)packages/cli/api/build/_adapter.mjs: outside the declared scope; pageisReadyis always true after the ready filterpackages/cli/api/build/blocks/blocks.mjs: outside the declared scopepackages/cli/api/build/build.doc.mjs: outside the declared scopepackages/cli/api/build/build.type.mjs: outside the declared scope; start and alternativeisReadyis always truepackages/cli/api/build/kit/signals.mjs: outside the declared scopepackages/cli/api/build/kit/start.mjs: clear (type only)packages/cli/api/component/component.type.mjs: outside the declared scopepackages/cli/api/component/detail/blocks/blocks.mjs: outside the declared scopepackages/cli/api/search/_gather-templates.mjs: clearpackages/cli/api/search/_lexical.mjs: clearpackages/cli/api/search/_result.mjs: needs the owner decision (true on every template result)packages/cli/api/search/search.doc.mjs: clearpackages/cli/api/search/search.not-ready.test.mjs: non-blocking: the build check behindif (unready)never runspackages/cli/api/search/search.type.mjs: needs the owner decision (new public member)packages/cli/api/template/copy/copy.mjs: outside the declared scopepackages/cli/api/template/show/show.mjs: outside the declared scopepackages/cli/api/template/skeleton/skeleton.mjs: outside the declared scopepackages/cli/api/template/template.doc.mjs: outside the declared scopepackages/cli/api/template/template.type.mjs: outside the declared scopepackages/cli/authoring/doctypes/template/template.doc.mjs: non-blocking: the gallery hides unready templatespackages/cli/authoring/doctypes/template/type.ts: non-blocking: same gallery wordingpackages/cli/clients/cli/commands/build.mjs: outside the declared scopepackages/cli/clients/cli/commands/component.mjs: outside the declared scopepackages/cli/clients/cli/commands/not-ready.test.mjs: non-blocking: the(WIP)guard needs a git checkoutpackages/cli/clients/cli/commands/search.mjs: needs the owner decision (text form)packages/cli/clients/cli/commands/search.test.mjs: clearpackages/cli/clients/cli/commands/template.mjs: needs the owner decision ((WIP)becomes(not ready)); show, skeleton and copy marks outside the declared scopepackages/cli/clients/cli/commands/text-json-parity.test.mjs: clearpackages/cli/clients/cli/lib/not-ready.mjs: clearpackages/cli/foundation/response/response-types.doc.mjs: clearpackages/cli/test/__golden__/no-icon-set/search-delete.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear (regenerated; golden suite passes)packages/cli/test/__golden__/no-icon-set/search-icon.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/no-icon-set/search-search.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/no-icon-set/search-trash-can.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/no-icon-set/template-copy.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/no-icon-set/template-show.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/search.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/template.json: clear (regenerated; golden suite passes)packages/cli/test/packed-gather-cache.changes.test.mjs: clearpackages/cli/test/packed-search-catalog.test.mjs: clear
…emplates # Conflicts: # packages/cli/api/build/kit/start.mjs
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about template readiness in CLI results, and two fixes are also needed.
- The description still describes the first commit: it says
isReadyappears only on unready search results, thatisReady: trueon every template was rejected, that text changes nowhere else and that no knowledge record changed, but this head does all of those (packages/cli/api/search/_result.mjs:80and the INV28 edit indocs/architecture/cli-surface.md), so update the description, its Scope line and its writing-rubric results to match. - The new
isReadymembers onBuildStart,BuildAlternative,BlockEntryand the template show, skeleton and copy responses fall outside the declared scope (Components: CLI search), so name them in the scope for the owner decision or split them into their own pull request.
No current spec decides readiness in CLI results, and a new response field needs that authority (AST-017 DEC-4). The owner settles whether every template result carries isReady or only unready ones, whether build, template and component results carry it, which word text uses, and the new INV28 sentence. An engineering owner records that by commenting /approve-spec <full head SHA>, and the author may do so as an engineering owner.
- Non-blocking: build's start, alternatives and pages only ever hold ready templates, so their
isReadyis alwaystrue, and theif (unready)check inpackages/cli/api/search/search.not-ready.test.mjs:101-102never runs.
Claims and files checked
Review mode: full; reason: merge-touches-pr-files
Claims:
- A page template can ship marked not ready, and search did not mark it: verified (three Core page templates; the base search result has no field and no mark).
template --list --jsonalready reports readiness: verified (api/template/list/list.mjs:67).- Search keeps an unready template in the same place, and ranking does not read the flag: verified (identical ranked names and scores on base and head; only
_result.mjsreads the private flag). - Search text reads
page (not ready)and its JSON carriesisReady: falsefor an unready template: verified (commands/search.mjs:207-211,_result.mjs:80). - Ready templates and non-template results print exactly as before: false for JSON, where every ready template row now carries
isReady: true; true for text. - The field is optional and present only on an unready template's result: false (it is on every template result).
- In text, nothing else changes: false (build, template show, skeleton and copy,
component --blocksandtemplate --listchange too). - A field on every template result was rejected: false (this head ships it).
- The kept gather and the stored catalog carry the mark with no codec change, and a doc edit drops it: verified (both packed-CLI tests pass).
- The unit test shows only the unready template carries the field: false (it asserts
trueon the others). - The query replay is byte-identical apart from
isReady: falserows and the text mark: false at this head (every template row carries the field, and theicon setcount moves from 398 to 399). - No current spec describes search's result fields: true at the base, but this head proposes one (INV28) without saying so.
- Scope is CLI search only: false (build, template and component results change).
- Consumer docs and focused tests ship with the feature: verified (command docs, response-type docs and the regenerated README are in sync).
- Public text has no internal context: verified.
- No knowledge record changed: false (
docs/architecture/cli-surface.mdchanges), and its writing-rubric results are missing. - The listed test runs pass: verified, except the
(WIP)guard, which needs a git checkout. - Typecheck shows no new errors: partly verified (the JSON API typecheck is clean; the strict typecheck was not rerun).
- The spec lookup over the diff found no concern-routed claims: not checked.
- Changeset: search and build JSON carry
isReady, search text marks(not ready), andtemplate --listswaps(WIP)for(not ready): verified; it leaves out the template show, skeleton and copy andcomponent --blocksfields and marks.
Files:
.changeset/search-marks-unready-templates.md: non-blocking: omits the template show, skeleton and copy andcomponent --blocksfields and marksdocs/architecture/cli-surface.md: needs the owner decision (new INV28 rule); no writing-rubric results in the descriptionpackages/cli/README.md: clear (generated, in sync)packages/cli/api/build/_adapter.mjs: outside the declared scope; pageisReadyis always true after the ready filterpackages/cli/api/build/blocks/blocks.mjs: outside the declared scopepackages/cli/api/build/build.doc.mjs: outside the declared scopepackages/cli/api/build/build.type.mjs: outside the declared scope; start and alternativeisReadyis always truepackages/cli/api/build/kit/signals.mjs: outside the declared scope; consistent with the ready-only start frommainpackages/cli/api/build/kit/start.mjs: clear (type only; merge resolution keeps the base logic)packages/cli/api/component/component.type.mjs: outside the declared scopepackages/cli/api/component/detail/blocks/blocks.mjs: outside the declared scopepackages/cli/api/search/_gather-templates.mjs: clearpackages/cli/api/search/_lexical.mjs: clearpackages/cli/api/search/_result.mjs: needs the owner decision (trueon every template result)packages/cli/api/search/search.doc.mjs: clearpackages/cli/api/search/search.not-ready.test.mjs: non-blocking: the build check behindif (unready)never runspackages/cli/api/search/search.type.mjs: needs the owner decision (new public member)packages/cli/api/template/copy/copy.mjs: outside the declared scopepackages/cli/api/template/show/show.mjs: outside the declared scopepackages/cli/api/template/skeleton/skeleton.mjs: outside the declared scopepackages/cli/api/template/template.doc.mjs: outside the declared scopepackages/cli/api/template/template.type.mjs: outside the declared scopepackages/cli/authoring/doctypes/template/template.doc.mjs: non-blocking: the gallery hides unready templatespackages/cli/authoring/doctypes/template/type.ts: non-blocking: same gallery wordingpackages/cli/clients/cli/commands/build.mjs: outside the declared scopepackages/cli/clients/cli/commands/component.mjs: outside the declared scopepackages/cli/clients/cli/commands/not-ready.test.mjs: non-blocking: the(WIP)guard needs a git checkoutpackages/cli/clients/cli/commands/search.mjs: needs the owner decision (text form)packages/cli/clients/cli/commands/search.test.mjs: clearpackages/cli/clients/cli/commands/template.mjs: needs the owner decision ((WIP)becomes(not ready)); show, skeleton and copy marks outside the declared scopepackages/cli/clients/cli/commands/text-json-parity.test.mjs: clearpackages/cli/clients/cli/lib/not-ready.mjs: clearpackages/cli/foundation/response/response-types.doc.mjs: clearpackages/cli/test/__golden__/no-icon-set/search-delete.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear (regenerated; golden suite passes)packages/cli/test/__golden__/no-icon-set/search-icon.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/no-icon-set/search-search.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/no-icon-set/search-trash-can.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/no-icon-set/template-copy.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/no-icon-set/template-show.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/search.json: clear (regenerated; golden suite passes)packages/cli/test/__golden__/template.json: clear (regenerated; golden suite passes)packages/cli/test/packed-gather-cache.changes.test.mjs: clearpackages/cli/test/packed-search-catalog.test.mjs: clear
…emplates # Conflicts: # packages/cli/api/build/build.doc.mjs # packages/cli/api/build/kit/signals.mjs
|
/approve-spec fe68644 |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about template readiness in CLI results, and three fixes are needed whatever that decision is.
- Regression:
packages/cli/test/packed-search-catalog.test.mjs:264andpackages/cli/test/packed-gather-cache.changes.test.mjs:112fail at this head, because the unreadyrun-consolepage that came in frommainappears in their searches; assert on the flipped template's own record instead of the whole output. - Miss:
discoverreturns and lists an installed integration's templates with noisReadyand no(not ready)mark, although the title and the new INV28 sentence say every result that lists or returns a template carries them, so either coverdiscoveror narrow the sentence, the title and the walk test'sdiscovercomment (packages/cli/clients/cli/commands/not-ready.test.mjs:81-87). - The description's replay evidence is wrong at this head, because
search "icon set"reports 399 matches instead of 398 after the new search doc wording and Core now has four unready pages, not three, so update that paragraph.
No current spec decides isReady on CLI results or the (not ready) word, and a new response field needs that authority (AST-017 DEC-4). The owner settles whether every template result carries isReady or only results where it can be false, which word text uses, and the new INV28 sentence; an engineering owner records that by commenting /approve-spec <full head SHA>, and the author may do so as one.
Claims and files checked
Review mode: full; reason: merge-touches-pr-files
Claims:
- A template can ship marked not ready: verified (four Core page templates at this head).
- Before this change only
template --listshowed readiness, as(WIP): verified. - The architecture rule gains one sentence and a verification row naming the walk test: verified (
docs/architecture/cli-surface.md:584-588,:1043). template --listnow says(not ready)instead of(WIP): verified.- Search JSON carries
isReadyon every template result and its text kind readspage (not ready): verified (api/search/_result.mjs:80,commands/search.mjs:207-211). - Build JSON carries
isReadyon the start, alternatives, pages and blocks, and its text tags unready names: verified (api/build/kit/signals.mjs:316-336,api/build/blocks/blocks.mjs:717,commands/build.mjs:189-311). template --listJSON is unchanged: verified.template <id>addsdata.isReadyand a stderr line, and stdout stays the source: verified (api/template/show/show.mjs:64,commands/template.mjs:307-310).- The skeleton header and the copy receipt carry the tag: verified (
commands/template.mjs:284-288,:345-348). component --blockscarriesisReadyon the showcase, examples and related blocks and tags their names: verified (api/component/detail/blocks/blocks.mjs:32,commands/component.mjs:186-217).- Build keeps its own sentence about an unready direct match: verified (a run names the unready page and the start it chose instead).
- Every other response type lists or returns no template, and discover's lists are manifest-only: false (
discoverreturns and lists an installed integration's templates, read from their docs). - Ranking does not read the flag, and a doc with no
isReadyis ready: verified. - Additive only, with
isReadyafter every existing field and nothing renamed, removed or reordered: verified (key-order tests and goldens). - Ready templates print as before in text: verified.
- The stored catalog and kept gather hold a private flag only on unready templates: verified (
api/search/_gather-templates.mjs:139); the size figure was not checked. isReadygoes on every template, and a text lineisReady: truewas rejected: verified as a description of the design.- The walk test places every response type in one of two lists: true, but it files
discoveras naming no template, which is wrong for installed packages. - No shipped or documented file still says
(WIP): verified by searching the tree; the test needs a git checkout. - The search test covers ready, unready and unmarked templates, order, text, build and the flip: verified, except that its build pages check never runs (
search.not-ready.test.mjs:101-102). - The stored-catalog and kept-gather packed tests pass: false at this head (both fail on the unready
run-consolepage). - The replay differs from the base only by
isReady,falseon three templates, and by the text mark: false (search "icon set"reports 399 matches instead of 398, and four Core pages are unready). - The Scope line names every command whose results change: verified.
- One capability, with unrelated changes removed: verified.
- Consumer docs and focused tests ship with the feature: verified; the changeset leaves some results out.
- Public text has no internal context: verified.
- The record edit meets the writing rubric: verified.
- The knowledge check passes: verified.
- The listed test runs pass: false at this head for the two packed tests; the rest pass apart from the git-only guard.
- A full CLI run fails only on theme tests that fail the same way on the base: not checked.
- Typechecks add no errors: verified for the JSON API typecheck; the strict typecheck shows two errors from unbuilt themes in untouched templates.
- The spec lookup over the diff found no concern-routed claims: not checked.
- Changeset: search and build carry
isReady, search andtemplate --listtext show(not ready), and search keeps the order: verified; it leaves out build's start and alternatives,templateshow, skeleton and copy, andcomponent --blocks.
Files:
.changeset/search-marks-unready-templates.md: non-blocking: leaves out build's start and alternatives, template show, skeleton and copy, and component --blocksdocs/architecture/cli-surface.md: needs the owner decision (new INV28 sentence and verification row)packages/cli/README.md: clear (generated, in sync)packages/cli/api/build/_adapter.mjs: non-blocking: page isReady is always true after the ready filterpackages/cli/api/build/blocks/blocks.mjs: clearpackages/cli/api/build/build.doc.mjs: clearpackages/cli/api/build/build.type.mjs: needs the owner decision; start and alternative isReady is always truepackages/cli/api/build/kit/signals.mjs: clear (merge resolution keeps main's ready-only pages)packages/cli/api/build/kit/start.mjs: clear (type only)packages/cli/api/component/component.type.mjs: needs the owner decision (new public member)packages/cli/api/component/detail/blocks/blocks.mjs: clearpackages/cli/api/search/_gather-templates.mjs: clearpackages/cli/api/search/_lexical.mjs: clearpackages/cli/api/search/_result.mjs: needs the owner decision (true on every template result)packages/cli/api/search/search.doc.mjs: clear; its new wording adds one doc match for queries containing "set"packages/cli/api/search/search.not-ready.test.mjs: non-blocking: the build pages check never runspackages/cli/api/search/search.type.mjs: needs the owner decision (new public member)packages/cli/api/template/copy/copy.mjs: clearpackages/cli/api/template/show/show.mjs: clearpackages/cli/api/template/skeleton/skeleton.mjs: clearpackages/cli/api/template/template.doc.mjs: clearpackages/cli/api/template/template.type.mjs: needs the owner decision (new public members)packages/cli/authoring/doctypes/template/template.doc.mjs: non-blocking: the gallery hides unready templatespackages/cli/authoring/doctypes/template/type.ts: non-blocking: same gallery wordingpackages/cli/clients/cli/commands/build.mjs: clearpackages/cli/clients/cli/commands/component.mjs: clearpackages/cli/clients/cli/commands/not-ready.test.mjs: blocking: files discover as naming no template; non-blocking: the (WIP) guard needs a git checkoutpackages/cli/clients/cli/commands/search.mjs: needs the owner decision (text form)packages/cli/clients/cli/commands/search.test.mjs: clearpackages/cli/clients/cli/commands/template.mjs: needs the owner decision ((WIP) becomes (not ready))packages/cli/clients/cli/commands/text-json-parity.test.mjs: clearpackages/cli/clients/cli/lib/not-ready.mjs: clearpackages/cli/foundation/response/response-types.doc.mjs: clearpackages/cli/test/__golden__/no-icon-set/search-delete.json: clear (regenerated; suite passes)packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear (regenerated; records the 398 to 399 count)packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear (regenerated; records the 398 to 399 count)packages/cli/test/__golden__/no-icon-set/search-icon.json: clear (regenerated; suite passes)packages/cli/test/__golden__/no-icon-set/search-search.json: clear (regenerated; suite passes)packages/cli/test/__golden__/no-icon-set/search-trash-can.json: clear (regenerated; suite passes)packages/cli/test/__golden__/no-icon-set/template-copy.json: clear (regenerated; suite passes)packages/cli/test/__golden__/no-icon-set/template-show.json: clear (regenerated; suite passes)packages/cli/test/__golden__/search.json: clear (regenerated; suite passes)packages/cli/test/__golden__/template.json: clear (regenerated; suite passes)packages/cli/test/packed-gather-cache.changes.test.mjs: blocking: fails at this head (line 112)packages/cli/test/packed-search-catalog.test.mjs: blocking: fails at this head (line 264)
|
/approve-spec fe68644 |
…says what discover carries
|
/approve-spec 97d0e99 |
There was a problem hiding this comment.
Changes requested: the pull request description no longer matches what this commit does; no code change is required.
- The description is out of date:
search "icon set"now reports 399 matches rather than "no other difference", Core has four unready pages rather than three,discoverdoes list and return installed templates by id (as the new spec sentence says), the spec gains two sentences rather than one, and the stored catalog grows by 654 bytes rather than under 600.
An engineering owner approved the readiness rule in the CLI surface spec for this commit, so no spec decision is pending, and the two packed-CLI tests that failed before now pass. Four earlier non-blocking notes still apply: the dead build check in the search test, the git-only (WIP) guard, the gallery wording in the template doc type, and the changeset naming only some of the commands.
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- Changeset: every template result in
search --json, and every page and block inbuild --json, carriesisReady— verified (base and head probes;search.not-ready.test.mjs). - Changeset:
searchtext marks an unready template's kind(not ready)andtemplate --listsays(not ready)instead of(WIP)— verified (probes). - Changeset: search still lists an unready template in the same place — verified (order test after the flip; JSON equal to the base apart from
isReady). - Description table: each listed response type carries
isReadyon every template and its text marks an unready one as described — verified (walk test passes; probes of search, build, template list, show, skeleton and component blocks). - Build keeps its own sentence for an unready direct match — verified (build probe for an incident console page).
- Every other response type lists or returns no template, discover's lists being manifest-only — false (discover lists and returns an installed package's template ids, read from its template docs).
- Ranking does not read the flag — verified (the private flag is read only where the result is built).
- A template doc without
isReadyis ready — verified (test with a doc that leaves it out). isReadyis appended after every existing field and nothing is renamed, removed or reordered — verified (in every probed objectisReadyis the last key; JSON otherwise equals the base).- Ready templates print as before in text — verified (probes).
- The stored catalog grows by under 600 bytes, about 0.03% — false (it grows by 654 bytes, about 0.04%, measured from the generated catalog in both trees).
- The walk test covers every response type and fails on an unplaced new one — verified (test code and run).
- The search test covers ready, unready and unmarked templates, field order, the text tag and the order after a flip — verified (passes).
- The packed stored-catalog and kept-gather tests mark and then drop the tag — verified (19 of 19 pass).
- Replay: JSON equals the base plus
isReadywith no other difference, false only on three templates, and text differs only by the tag — false (search "icon set"counts 399 instead of 398 in JSON and the text header; Core has four unready pages). - Replay:
buildandcomponent Table --blockstext is unchanged — verified (probes). - Writing rubric: INV28 gains one sentence and its verification row — false (it gains two sentences).
- Targeted vitest runs and
typecheck:json-apipass — verified, apart from the(WIP)guard, which needs a git checkout. - Full-suite,
typecheck:strict, routing-helper and knowledge-check results — not rerun.
Files:
.changeset/search-marks-unready-templates.md— accurate, narrower than the change (non-blocking)docs/architecture/cli-surface.md— clear (owner-approved at this commit)packages/cli/README.md— clear (generated rows, in sync)packages/cli/api/build/_adapter.mjs,blocks/blocks.mjs,build.doc.mjs,build.type.mjs,kit/signals.mjs,kit/start.mjs— clear; start, alternatives and pages always readtrue(non-blocking)packages/cli/api/component/component.type.mjs,detail/blocks/blocks.mjs— clearpackages/cli/api/search/_gather-templates.mjs,_lexical.mjs,_result.mjs,search.type.mjs— clearpackages/cli/api/search/search.doc.mjs— clear; its new wording adds the extraicon setmatch the description omitspackages/cli/api/search/search.not-ready.test.mjs— dead build-pages check (non-blocking)packages/cli/api/template/copy/copy.mjs,show/show.mjs,skeleton/skeleton.mjs,template.doc.mjs,template.type.mjs— clearpackages/cli/authoring/doctypes/template/template.doc.mjs,type.ts— gallery wording (non-blocking)packages/cli/clients/cli/commands/build.mjs,component.mjs,search.mjs,template.mjs— clearpackages/cli/clients/cli/commands/not-ready.test.mjs— git-only(WIP)guard (non-blocking)packages/cli/clients/cli/commands/search.test.mjs,text-json-parity.test.mjs— clearpackages/cli/clients/cli/lib/not-ready.mjs— clearpackages/cli/foundation/response/response-types.doc.mjs— clearpackages/cli/test/__golden__/(ten snapshots) — clearpackages/cli/test/packed-gather-cache.changes.test.mjs,packed-search-catalog.test.mjs— clear (pass)
…(WIP) guard reads the shipped files; doc type and changeset wording
|
/approve-spec d65fafd |
There was a problem hiding this comment.
Changes requested: the pull request description, and one sentence of the changeset, no longer match what this commit does; no code change is required.
- The description's replay says JSON differs from the base only by
isReady,falseon three templates, butsearch "icon set"now reports 399 matches instead of 398 (the new search doc wording matches "set") and Core has six unready pages at this commit. - The description says every other response type lists or returns no template and calls
discover's lists manifest-only, butdiscoverlists and returns an installed integration's templates by id, as the new INV28 sentence says. - The changeset's "Every
--jsonresult that lists or returns a template gives itisReady" needs the samediscoverexception. - The description says the stored search catalog grows by under 600 bytes (about 0.03%); at this commit it grows by 705 bytes (about 0.04%).
- The writing rubric says INV28 gains one sentence, but it gains two, and the evidence list says the walk test proves no documented file says
(WIP), while the guard now reads only the CLI's published folders.
An engineering owner approved the readiness rule in the CLI surface spec for this commit, so no spec decision is pending. The four earlier non-blocking notes are fixed, and the walk, search and packed-catalog tests pass.
Claims and files checked
Review mode: full; reason: merge-touches-pr-files
Claims:
- Changeset: every JSON result that lists or returns a template carries
isReady(search, build's start, alternatives, pages and blocks, template show, skeleton and copy, component blocks) — verified for the listed commands (walk test, probes); false for "every":discover's template items carry none. - Changeset: text marks an unready template
(not ready), andtemplate --listsays(not ready)instead of(WIP)— verified (probes). - Changeset: search still lists an unready template in the same place — verified (order test after the flip; JSON equal to the base apart from
isReady). - Before this change only
template --listmarked an unready template — verified (base probes). - Each response type in the description's table carries
isReadyand the text form it names — verified (walk test; probes of search, build, template list, show, skeleton and component blocks). - Build keeps its own sentence for an unready direct match — verified (its words are "isn't ready yet, so build started from").
- Every other response type lists or returns no template,
discover's lists being manifest-only — false (discoverreturns installed template items by id). - Ranking does not read the flag — verified (the private flag is read only where the result is built).
- A template doc without
isReadyis ready — verified (test with a doc that leaves it out). isReadyis appended after every existing field and nothing is renamed, removed or reordered — verified (last key in every probed object; JSON otherwise equals the base).- Ready templates print as before — verified (probes).
- The stored catalog and kept gather hold a private flag only on unready templates — verified (six flags at this commit, none on the base).
- The stored catalog grows by under 600 bytes, about 0.03% — false (705 bytes, about 0.04%, generated in both trees).
isReadyon every template, true or false, by design — verified.- The walk test covers every response type and fails on an unplaced new one — verified (test code and run).
- The same file proves no shipped or documented file says
(WIP)— false for documented files (the guard reads only the CLI's published folders; no doc says(WIP)today). - The search test covers ready, unready and unmarked templates, field order, the text tag, build's pages and blocks, and the order after a flip — verified (passes).
- The packed stored-catalog and kept-gather tests mark and then drop the tag — verified (19 of 19 pass).
- Replay: JSON equals the base plus
isReadywith no other difference, false only on three templates — false (search "icon set"counts 399 instead of 398; six unready Core pages). - Replay:
buildandcomponent Table --blockstext unchanged in a Core-only project — verified (no Core block is unready); the integration-project replay was not rerun. - Writing rubric: INV28 gains one sentence and its verification row — false (two sentences).
- Targeted vitest runs and
typecheck:json-apipass — verified; full-suite,typecheck:strict, knowledge-check and routing-helper results — not rerun.
Files:
.changeset/search-marks-unready-templates.md— "every" overstates (discover)docs/architecture/cli-surface.md— clear (owner-approved at this commit)packages/cli/README.md— clear (generated rows, in sync)packages/cli/api/build/_adapter.mjs,blocks/blocks.mjs,build.doc.mjs,build.type.mjs,kit/signals.mjs,kit/start.mjs— clearpackages/cli/api/component/component.type.mjs,detail/blocks/blocks.mjs— clearpackages/cli/api/search/_gather-templates.mjs,_lexical.mjs,_result.mjs,search.type.mjs— clearpackages/cli/api/search/search.doc.mjs— clear; its new wording adds the extraicon setmatch the description omitspackages/cli/api/search/search.not-ready.test.mjs— clearpackages/cli/api/template/copy/copy.mjs,show/show.mjs,skeleton/skeleton.mjs,template.doc.mjs,template.type.mjs— clearpackages/cli/authoring/doctypes/template/template.doc.mjs,type.ts— clearpackages/cli/clients/cli/commands/build.mjs,component.mjs,search.mjs,template.mjs— clearpackages/cli/clients/cli/commands/not-ready.test.mjs— clear (the description overstates what its guard covers)packages/cli/clients/cli/commands/search.test.mjs,text-json-parity.test.mjs— clearpackages/cli/clients/cli/lib/not-ready.mjs— clearpackages/cli/foundation/response/response-types.doc.mjs— clearpackages/cli/test/__golden__/(ten snapshots) — clearpackages/cli/test/packed-gather-cache.changes.test.mjs,packed-search-catalog.test.mjs— clear (pass)
|
/approve-spec edac751 |
There was a problem hiding this comment.
Changes requested: one sentence of the pull request description misstates what the new doc wording does to search results; no code change is required.
- The replay paragraph says
search "ready"andsearch "not ready"each list one more doc with rankings otherwise unchanged, butnot readystill reports 20 of 371 matches with the search command doc moving from 223rd to 4th, andreadyalso moves thebuildandtemplatecommand docs from 13th and 14th to 3rd and 5th.
An engineering owner approved the readiness rule in the CLI surface spec for this commit, and the changeset now names discover's exception. Two optional wording fixes ride along: the quoted build sentence actually reads "isn't ready yet, so build started from …", and the header comment of clients/cli/lib/not-ready.mjs leaves out component --blocks.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
Claims:
- Changeset: every JSON result that lists or returns a template carries
isReady, false when its doc says so, anddiscover, which names templates by id, carries neither — verified (walk test; base and head runs;discoverunchanged). - Changeset: that covers search, build's start, alternatives, pages and blocks, template show, skeleton and copy, and component blocks, with
template --listalready carrying it — verified. - Changeset: text marks an unready template
(not ready), andtemplate --listsays(not ready)instead of(WIP)— verified (runs). - Changeset: search still lists an unready template in the same place — verified (order test; JSON equal to the base apart from
isReady). - Before this change only
template --listmarked an unready template — verified (base runs). - Each response type in the description's table carries
isReadyand the text form it names — verified (walk test; runs of search, template list, show and skeleton, build and component blocks). - Build keeps its own sentence for an unready direct match — verified; its words are "isn't ready yet, so build started from …", not the quoted ones.
discovernames templates only by id and carries neither, as the record says — verified.- Every other response type lists or returns no template — verified as the record reads listing results; the pack-check report lists template identities by id, as
discoverdoes. - Ranking does not read the flag — verified (the private flag is read only where the result is built).
- A template doc without
isReadyis ready — verified (test). isReadyis appended after every existing field, and nothing is renamed, removed or reordered — verified (last key in every object; JSON otherwise equal to the base).- Ready templates print as before, and the list's
(WIP)becomes(not ready)— verified (runs). - The stored catalog and kept gather hold a private flag only on unready templates, and the stored catalog grows by 705 bytes, about 0.04% — verified (measured at the previous commit; the code is unchanged since).
isReadysits on every template, true or false, by design — verified.- The walk test covers every response type in the table and fails on an unplaced new one — verified (test code; passes).
- The walk test proves no file in the CLI's published folders says
(WIP), with no git checkout — verified (it reads the six folders the package publishes). - The search test covers ready, unready and unmarked templates, field order, the text tag, build's pages and blocks, and the order after a flip — verified (passes).
- The packed stored-catalog and kept-gather tests mark and then drop the tag — verified (passed at the previous commit; unchanged since).
- Replay in a Core-only project: JSON equals the base plus a trailing
isReady, false only on six Core pages; text differs only by(not ready); build and component blocks text unchanged — verified (base and head runs). - Replay:
icon setlists one more doc, 399 instead of 398 — verified. - Replay:
readyandnot readyeach list one more doc, rankings otherwise unchanged — false (not readykeeps 20 of 371 with the search doc moving from 223rd to 4th;readyalso moves the build and template docs up). - Replay in a project with an integration installed found no other difference — not rerun (that integration is not available to this review).
- Record: the CLI surface invariant gains two sentences and a verification row naming the walk test — verified.
- Writing rubric: present tense, no project status, one owner, testable — verified.
- Knowledge check aligned — verified.
- Targeted tests and the JSON API typecheck pass, and the strict typecheck shows no new errors — verified (476 of 476 tests; the strict run's only errors are two unbuilt-theme imports in templates this change does not touch); the full-suite and spec-routing results were not rerun.
- No internal context in public text — verified (scan of the added lines, commit messages, title and body).
Files:
.changeset/search-marks-unready-templates.md— clear (namesdiscover's exception)docs/architecture/cli-surface.md— clear (owner-approved at this commit)packages/cli/README.md— clear (generated rows, in sync)packages/cli/api/build/_adapter.mjs,blocks/blocks.mjs,build.doc.mjs,build.type.mjs,kit/signals.mjs,kit/start.mjs— clearpackages/cli/api/component/component.type.mjs,detail/blocks/blocks.mjs— clearpackages/cli/api/search/_gather-templates.mjs,_lexical.mjs,_result.mjs,search.type.mjs,search.not-ready.test.mjs— clearpackages/cli/api/search/search.doc.mjs— clear; its new wording causes thereadyandnot readyreranking the description understatespackages/cli/api/template/copy/copy.mjs,show/show.mjs,skeleton/skeleton.mjs,template.doc.mjs,template.type.mjs— clearpackages/cli/authoring/doctypes/template/template.doc.mjs,type.ts— clearpackages/cli/clients/cli/commands/build.mjs,component.mjs,search.mjs,template.mjs— clearpackages/cli/clients/cli/commands/not-ready.test.mjs— clear (optional comment on the pack-check entry)packages/cli/clients/cli/commands/search.test.mjs,text-json-parity.test.mjs— clearpackages/cli/clients/cli/lib/not-ready.mjs— clear (optional: its header comment leaves outcomponent --blocks)packages/cli/foundation/response/response-types.doc.mjs— clearpackages/cli/test/__golden__/(ten snapshots) — clearpackages/cli/test/packed-gather-cache.changes.test.mjs,packed-search-catalog.test.mjs— clear
| * @position Used by every command whose result lists or returns a template: | ||
| * search, build, and template (list, show, skeleton, copy). |
There was a problem hiding this comment.
Non-blocking: clients/cli/commands/component.mjs imports this helper too, so the list could read "search, build, template (list, show, skeleton, copy), and component --blocks".
| 'init.user', | ||
| 'integration.add', | ||
| 'integration.check', | ||
| 'integration.pack-check', |
There was a problem hiding this comment.
Non-blocking: integration.pack-check lists the package's templates as {id, type, name} identities (contributions.local and .packed) with neither package nor isReady, much as discover names templates by id. A comment here, like the one above discover at line 81, would say why it belongs in this list.
|
/approve-spec d402ed0 |
There was a problem hiding this comment.
Approved pending CI: the CI capacity check refused the run on this head, so its jobs still need a re-run before merge.
An engineering owner approved the readiness rule in the CLI surface spec for this commit, and the description's replay paragraph now states the not ready and ready rank moves. The two open inline notes, on the header comment of clients/cli/lib/not-ready.mjs and on the walk test's integration.pack-check entry, are optional.
- Optional: the
readyreplay sentence could add that the search command doc becomes a new 4th match (19 instead of 18) and that the publishing checks' "get ready to list" section moves from 6th to 13th.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
Claims:
- Changeset: every JSON result that lists or returns a template gives it
isReady(false when its doc says so, else true), anddiscover, which names templates by id, carries neither — verified (walk test; base and head runs;discoveroutput unchanged). - Changeset: that covers search, build's start, alternatives, pages and blocks, template show, skeleton and copy, and component blocks, with
template --listalready carrying it — verified (walk test; runs). - Changeset: text marks an unready template
(not ready), andtemplate --listsays(not ready)instead of(WIP)— verified (runs). - Changeset: search still lists an unready template in the same place — verified (order test; JSON equal to the base apart from
isReady). - Before this change only
template --listmarked an unready template — verified (base runs). - Each response type in the description's table carries
isReadyand the text form it names — verified (walk test; runs of search, template list, show and skeleton, build and component blocks). - Build keeps its own sentence for an unready direct match, "isn't ready yet, so build started from …" — verified (build's start code).
discovernames templates only by id and carries neither, as the record says — verified.- Every other response type lists or returns no template — verified as the record reads listing results; the pack-check report lists template identities by id, as
discoverdoes. - Ranking does not read the flag — verified (the private flag is read only where the result is built).
- A template doc without
isReadyis ready — verified (test). isReadyis appended after every existing field, and nothing is renamed, removed or reordered — verified (last key in every new object; JSON otherwise equal to the base).- Ready templates print as before, and the list's
(WIP)becomes(not ready)— verified (runs). - The stored catalog and kept gather hold a private flag only on unready templates, and the stored catalog grows by 705 bytes, about 0.04% — verified (packed build of base and head: 705 bytes, 0.042%).
isReadysits on every template, true or false, by design — verified.- The walk test covers every response type in the table and fails on an unplaced new one — verified (test code; passes).
- The walk test proves no file in the CLI's published folders says
(WIP), with no git checkout — verified (it reads the six folders the package publishes). - The search test covers ready, unready and unmarked templates, field order, the text tag, build's pages and blocks, and the order after a flip, with a later search seeing
isReady: true— verified (passes). - The packed stored-catalog and kept-gather tests mark and then drop the tag — verified (pass).
- Replay in a Core-only project: JSON equals the base plus a trailing
isReady, false only on six Core pages; text differs only by(not ready); build and component blocks text is unchanged — verified (base and head runs). - Replay:
icon setreports 399 matches instead of 398 — verified. - Replay:
not readykeeps 20 of 371 matches, with the search command doc moving from 223rd to 4th — verified. - Replay:
readymoves the build and template command docs from 13th and 14th to 3rd and 5th — verified; the same run also adds the search command doc as a 4th match and moves one checks section from 6th to 13th. - Replay in a project with a third-party integration installed found no other difference — not rerun (that integration is not available to this review).
- Record: the CLI surface invariant gains two sentences and a verification row naming the walk test — verified.
- Writing rubric: present tense, no project status, one owner, testable — verified.
- Knowledge check aligned — verified.
- Targeted tests pass, and the strict and JSON API typechecks show no new errors — verified (495 of 495 tests in nine files; JSON API typecheck clean; the strict typecheck's only errors are two unbuilt-theme imports in page templates this change does not touch).
- The named suites (template, search, build, component, commands, response, goldens, packed catalog) pass, a full CLI run fails only tests that fail the same way on the base, and the spec routing lookup finds no concern-routed claim — verified for the suites (243 files, 3,808 tests, plus the packed tests) and the full run (1,087 of 1,090 files pass; the three that fail are temp-folder, release-lock and git-listing tests that fail the same way on the base here; no theme test fails here); the routing lookup over the diff was not rerun (it needs a git checkout).
- No internal context in public text — verified (scan of the added lines, commit messages, title and body).
Files:
.changeset/search-marks-unready-templates.md— cleardocs/architecture/cli-surface.md— clear (owner-approved at this commit)packages/cli/README.md— clear (generated rows, in sync)packages/cli/api/build/_adapter.mjs,blocks/blocks.mjs,build.doc.mjs,build.type.mjs,kit/signals.mjs,kit/start.mjs— clearpackages/cli/api/component/component.type.mjs,detail/blocks/blocks.mjs— clearpackages/cli/api/search/_gather-templates.mjs,_lexical.mjs,_result.mjs,search.doc.mjs,search.type.mjs,search.not-ready.test.mjs— clearpackages/cli/api/template/copy/copy.mjs,show/show.mjs,skeleton/skeleton.mjs,template.doc.mjs,template.type.mjs— clearpackages/cli/authoring/doctypes/template/template.doc.mjs,type.ts— clearpackages/cli/clients/cli/commands/build.mjs,component.mjs,search.mjs,template.mjs— clearpackages/cli/clients/cli/commands/not-ready.test.mjs— clear (optional comment on the pack-check entry)packages/cli/clients/cli/commands/search.test.mjs,text-json-parity.test.mjs— clearpackages/cli/clients/cli/lib/not-ready.mjs— clear (optional: its header comment leaves outcomponent --blocks)packages/cli/foundation/response/response-types.doc.mjs— clearpackages/cli/test/__golden__/(no-icon-set/search-delete.json,search-icon-set.json,search-icon-set.txt,search-icon.json,search-search.json,search-trash-can.json,template-copy.json,template-show.json,search.json,template.json) — clearpackages/cli/test/packed-gather-cache.changes.test.mjs,packed-search-catalog.test.mjs— clear
User need
A template can ship with
isReady: falsein its doc. Commands that list or return templates showed such a template like any other (template --listsaid(WIP), everything else said nothing), so an agent or person picking one could not tell it is not ready.Problem and solution fit
One rule, stated in
architecture:cli-surfaceINV28: a--jsonresult gives each template it lists or returnsisReady(falsewhen the doc setsisReady: false,trueotherwise; no other artifact carries it), and text marks an unready template(not ready)wherever a result lists or returns it. One state, one word:template --listnow says(not ready)instead of(WIP).Results that list or return a template, and what each now carries:
searchisReadyon every template resultkind: page (not ready)build.kitisReadyonstart, eachstart.alternativesentry, eachpagesandblockstemplatetemplate.listisReady(unchanged)(not ready)after the name (was(WIP))template.showdata.isReadytemplate: <id> (not ready)on stderr; stdout stays the sourcetemplate.skeletondata.isReady# <id> (not ready)headertemplate.copydata.isReadyCopied template <id> (not ready) to …component.detail.blocksisReadyon the showcase, each example and each related blockBuild's TEMPLATE section keeps its own sentence about an unready direct match ("… isn't ready yet, so build started from …").
discovernames a package's templates only by id (for an installed integration, read from its template docs; often for a package the project has not installed), so its results carry neither, as INV28 now says. Every other response type lists or returns no template; a template there appears only inside a message, hint, suggestion or command string (not-found suggestions, integration checks, doc links, experimental preview hints), and is not tagged.Ranking does not read the flag. A template doc with no
isReadyis ready (true), as before.Current specification
architecture:cli-surfaceINV28 (current) gains two sentences (the rule above, and thatdiscovercarries neither) and a verification row naming the walk test.Public delta and caller burden
isReadyis appended after every existing field of each object above. No field is renamed, removed or reordered.(not ready)on unready templates in the results above;template --list's(WIP)becomes(not ready). Ready templates print as before.Design and alternatives
isReadyon every template (true or false), not only on unready ones, so a caller never has to know that absence means ready. A text lineisReady: trueon every template was rejected: it costs bytes on every row an agent reads, for a fact that matters only on the rare unready row.Evidence
clients/cli/commands/not-ready.test.mjswalks every response type in the table with a made-up unready page and block: each JSON template has a booleanisReady, the unready ones arefalse, and each text output carries the tag. Every other response type in the CLI manifest is listed as naming no template, so a new response type fails the test until it is placed. The same file proves no file in the CLI's published folders still says(WIP); it reads those folders directly, so it needs no git checkout.search.not-ready.test.mjs: ready, unready and no-isReadytemplates (field, field order, text tag), build's pages and blocks, and the same order and scores once the unready template becomes ready, with the second search seeingisReady: true.true/ untagged, equal to a live gather.isReady: true, in text and JSON.searchandbuild, plustemplate <id>andtemplate <id> --skeletonfor every template,template --listandcomponent Table --blocks, base vs head, text and JSON, one fresh process each. In the Core-only project (complete): every ranked list is the same, except for queries that match the new docs wording (below); JSON equals the base plus one trailing booleanisReadyon each template object,falseonly on the templates whose doc setsisReady: false(six Core pages at this commit); text differs only by(not ready)on those rows (intemplate --listit replaces(WIP));buildandcomponent Table --blockstext is unchanged. The only other differences come from the new docs wording that describes the field.icon setreports 399 matches instead of 398 (the wording says "sets").not readystill reports 20 of 371 matches, but thesearchcommand doc moves from 223rd to 4th.readymoves thebuildandtemplatecommand docs from 13th and 14th to 3rd and 5th. The run in the project with a large TypeScript integration installed found no other difference before it reached its time bound.Scope
Components: CLI search, build, template, component blocks
Writing rubric results
Record changed:
docs/architecture/cli-surface.mdINV28 (two sentences and its verification row). Rubric fromdocs/contributing/spec-writing.md:clients/cli/commands/not-ready.test.mjsand the failure it catches.pnpm check:knowledge: knowledge templates and records are aligned.Testing
vitest run --project nodeoverpackages/cli/api/{template,search,build,component},packages/cli/clients/cli/commands,packages/cli/foundation/response, the golden and experimental-isolation snapshots, and the packed stored-catalog and kept-gather tests: all pass.packages/clirun: the only failures are theme-editor and theme-build tests that fail the same way on the base commit on this machine.pnpm -F @astryxdesign/cli typecheck:strictandtypecheck:json-api: no new errors.pnpm specs:for --diff origin/main: no concern-routed claims.