Skip to content

feat(cli): template results carry isReady, and text says (not ready) - #11931

Merged
josephfarina merged 14 commits into
mainfrom
search/mark-unready-templates
Nov 16, 2026
Merged

josephfarina merged 14 commits into
mainfrom
search/mark-unready-templates

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

User need

A template can ship with isReady: false in its doc. Commands that list or return templates showed such a template like any other (template --list said (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-surface INV28: a --json result gives each template it lists or returns isReady (false when the doc sets isReady: false, true otherwise; 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 --list now says (not ready) instead of (WIP).

Results that list or return a template, and what each now carries:

Response type JSON Text
search isReady on every template result kind: page (not ready)
build.kit isReady on start, each start.alternatives entry, each pages and blocks template name tagged in the "Keyword search matched these page templates" line and in template/block records (build lists only pages it could start from, so in practice an unready block)
template.list isReady (unchanged) (not ready) after the name (was (WIP))
template.show data.isReady template: <id> (not ready) on stderr; stdout stays the source
template.skeleton data.isReady # <id> (not ready) header
template.copy data.isReady Copied template <id> (not ready) to …
component.detail.blocks isReady on the showcase, each example and each related block block name tagged

Build's TEMPLATE section keeps its own sentence about an unready direct match ("… isn't ready yet, so build started from …"). discover names 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 isReady is ready (true), as before.

Current specification

architecture:cli-surface INV28 (current) gains two sentences (the rule above, and that discover carries neither) and a verification row naming the walk test.

Public delta and caller burden

  • Additive only: isReady is appended after every existing field of each object above. No field is renamed, removed or reordered.
  • Text: (not ready) on unready templates in the results above; template --list's (WIP) becomes (not ready). Ready templates print as before.
  • The stored search catalog and the kept search gather hold a private flag only on unready templates (readiness is derived from it), so their size changes only by those rows (the stored catalog grows by 705 bytes, about 0.04%, including the docs that describe the field).

Design and alternatives

isReady on every template (true or false), not only on unready ones, so a caller never has to know that absence means ready. A text line isReady: true on 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.mjs walks every response type in the table with a made-up unready page and block: each JSON template has a boolean isReady, the unready ones are false, 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-isReady templates (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 seeing isReady: true.
  • Stored catalog (packed CLI): the stored answer equals a live gather with the tag and field; after an in-place flip to ready the store misses and both are true / untagged, equal to a live gather.
  • Kept gather (packed CLI): marked on warm runs; after a same-size, same-time flip to ready the next run misses and equals a fresh run, and the next warm run hits with isReady: true, in text and JSON.
  • Replay over public queries (every component, template, display and category name, the repository's own search and build test strings, and queries that hit the docs describing the field) for search and build, plus template <id> and template <id> --skeleton for every template, template --list and component 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 boolean isReady on each template object, false only on the templates whose doc sets isReady: false (six Core pages at this commit); text differs only by (not ready) on those rows (in template --list it replaces (WIP)); build and component Table --blocks text is unchanged. The only other differences come from the new docs wording that describes the field. icon set reports 399 matches instead of 398 (the wording says "sets"). not ready still reports 20 of 371 matches, but the search command doc moves from 223rd to 4th. ready moves the build and template command 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

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

Writing rubric results

Record changed: docs/architecture/cli-surface.md INV28 (two sentences and its verification row). Rubric from docs/contributing/spec-writing.md:

  • Present tense, describes the system: yes ("gives", "marks", "names").
  • No proposals, history, pull requests, research or project status: none.
  • One owner: INV28 already owns what each artifact in a result names; readiness is another per-artifact fact of the same results, so no new record.
  • Testable: yes; the verification row names clients/cli/commands/not-ready.test.mjs and the failure it catches.
  • Plain words, one topic per sentence: the first sentence is the rule (JSON field, then its text mark); the second names the one result that carries neither, and why.
  • No internal context: none.

pnpm check:knowledge: knowledge templates and records are aligned.

Testing

  • vitest run --project node over packages/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.
  • Full packages/cli run: 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:strict and typecheck:json-api: no new errors.
  • pnpm specs:for --diff origin/main: no concern-routed claims.

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.
@vercel

vercel Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 16, 2026 6:52am UTC

Request Review

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

astracat-bot Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 16, 2026, 7:35 AM UTC

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · d402ed0

Storybook · Sandbox · built from this PR's head

Package size: measured; main has no measurement of the merge base to compare yet.

API changes: cli +4 · ~3 · −0; unknown (base surface unavailable): richtext, theme-butter, theme-chocolate, theme-gothic, theme-matcha, theme-neutral, theme-stone, theme-y2k

7 API changes (advisory)
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

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval waits on an engineering owner'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: false on an unready template's result. The same entry also reaches astryx build --json under data.pages.
  • Which text form search prints: kind: page (not ready) as in this pull request, the (WIP) that astryx template --list already prints for the same templates, or a separate isReady: false text 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 carries isReady would 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 --json already 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.mjs reads the private mark).
  • The result type gains an optional isReady: false after 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: clear
  • packages/cli/api/search/_gather-templates.mjs: clear
  • packages/cli/api/search/_lexical.mjs: clear
  • packages/cli/api/search/_result.mjs: needs the owner decision on the new field
  • packages/cli/api/search/search.doc.mjs: clear
  • packages/cli/api/search/search.not-ready.test.mjs: non-blocking note above
  • packages/cli/api/search/search.type.mjs: needs the owner decision on the new public member
  • packages/cli/clients/cli/commands/search.mjs: needs the owner decision on the text form
  • packages/cli/test/packed-gather-cache.changes.test.mjs: clear
  • packages/cli/test/packed-search-catalog.test.mjs: clear

Automated review (maintainer link)

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.
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 15, 2026
…emplates

# Conflicts:
#	packages/cli/api/template/template.doc.mjs
#	packages/cli/foundation/response/response-types.doc.mjs

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval waits on an engineering owner's decision about template readiness in CLI results. Two fixes are also needed.

  • The description still describes the first commit. It says isReady appears only on unready search results, that isReady: true on 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:80 and the INV28 edit in docs/architecture/cli-surface.md). Update the description, its Scope line and its writing-rubric results to match.
  • The new isReady members on BuildStart, BuildAlternative, BlockEntry and 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 runs git 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 --json already 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 adds isReady: false for 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:36 types it boolean, and it is on every template result).
  • In text, nothing else changes: false (build, template show, skeleton and copy, component --blocks, and template --list change 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 true on the others).
  • The query replay is byte-identical apart from isReady: false rows: 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.md changes), 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), and template --list swaps (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 marks
  • docs/architecture/cli-surface.md: needs the owner decision (new INV28 rule); no writing-rubric results
  • packages/cli/README.md: clear (generated, in sync)
  • packages/cli/api/build/_adapter.mjs: outside the declared scope
  • packages/cli/api/build/blocks/blocks.mjs: outside the declared scope
  • packages/cli/api/build/build.doc.mjs: outside the declared scope
  • packages/cli/api/build/build.type.mjs: outside the declared scope; start and alternative isReady is always true
  • packages/cli/api/build/kit/signals.mjs: outside the declared scope
  • packages/cli/api/build/kit/start.mjs: clear (type only)
  • packages/cli/api/component/component.type.mjs: outside the declared scope
  • packages/cli/api/component/detail/blocks/blocks.mjs: outside the declared scope
  • packages/cli/api/search/_gather-templates.mjs: clear
  • packages/cli/api/search/_lexical.mjs: clear
  • packages/cli/api/search/_result.mjs: needs the owner decision (true on every template result)
  • packages/cli/api/search/search.doc.mjs: clear
  • packages/cli/api/search/search.not-ready.test.mjs: clear
  • packages/cli/api/search/search.type.mjs: needs the owner decision (new public member)
  • packages/cli/api/template/copy/copy.mjs: outside the declared scope
  • packages/cli/api/template/show/show.mjs: outside the declared scope
  • packages/cli/api/template/skeleton/skeleton.mjs: outside the declared scope
  • packages/cli/api/template/template.doc.mjs: outside the declared scope
  • packages/cli/api/template/template.type.mjs: outside the declared scope
  • packages/cli/authoring/doctypes/template/template.doc.mjs: non-blocking: the gallery hides unready templates
  • packages/cli/authoring/doctypes/template/type.ts: non-blocking: same gallery wording
  • packages/cli/clients/cli/commands/build.mjs: outside the declared scope
  • packages/cli/clients/cli/commands/component.mjs: outside the declared scope
  • packages/cli/clients/cli/commands/not-ready.test.mjs: non-blocking: the (WIP) guard needs a git checkout
  • packages/cli/clients/cli/commands/search.mjs: needs the owner decision (text form)
  • packages/cli/clients/cli/commands/search.test.mjs: clear
  • packages/cli/clients/cli/commands/template.mjs: needs the owner decision ((WIP) becomes (not ready)); show, skeleton and copy marks outside the declared scope
  • packages/cli/clients/cli/commands/text-json-parity.test.mjs: clear
  • packages/cli/clients/cli/lib/not-ready.mjs: clear
  • packages/cli/foundation/response/response-types.doc.mjs: clear
  • packages/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: clear
  • packages/cli/test/packed-search-catalog.test.mjs: clear

Automated review (maintainer link)

Comment thread packages/cli/api/build/build.type.mjs Resolved
…emplates

# Conflicts:
#	packages/cli/README.md
#	packages/cli/api/build/build.doc.mjs
#	packages/cli/foundation/response/response-types.doc.mjs

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval waits on an engineering owner's decision about template readiness in CLI results, and two fixes are also needed.

  • The description still describes the first commit: it says isReady appears only on unready search results, that isReady: true on 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:80 and the INV28 edit in docs/architecture/cli-surface.md), so update the description, its Scope line and its writing-rubric results to match.
  • The new isReady members on BuildStart, BuildAlternative, BlockEntry and 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 isReady is always true, and the if (unready) check in packages/cli/api/search/search.not-ready.test.mjs:101-102 never 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 --json already 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.mjs reads the private flag).
  • Search text reads page (not ready) and its JSON carries isReady: false for 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 --blocks and template --list change 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 true on the others).
  • The query replay is byte-identical apart from isReady: false rows and the text mark: false at this head (every template row carries the field, and the icon set count 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.md changes), 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), and template --list swaps (WIP) for (not ready): verified; it leaves out the template show, skeleton and copy and component --blocks fields and marks.

Files:

  • .changeset/search-marks-unready-templates.md: non-blocking: omits the template and component fields and marks
  • docs/architecture/cli-surface.md: needs the owner decision (new INV28 rule); no writing-rubric results
  • packages/cli/README.md: clear (generated, in sync)
  • packages/cli/api/build/_adapter.mjs: outside the declared scope; page isReady is always true after the ready filter
  • packages/cli/api/build/blocks/blocks.mjs: outside the declared scope
  • packages/cli/api/build/build.doc.mjs: outside the declared scope
  • packages/cli/api/build/build.type.mjs: outside the declared scope; start and alternative isReady is always true
  • packages/cli/api/build/kit/signals.mjs: outside the declared scope
  • packages/cli/api/build/kit/start.mjs: clear (type only)
  • packages/cli/api/component/component.type.mjs: outside the declared scope
  • packages/cli/api/component/detail/blocks/blocks.mjs: outside the declared scope
  • packages/cli/api/search/_gather-templates.mjs: clear
  • packages/cli/api/search/_lexical.mjs: clear
  • packages/cli/api/search/_result.mjs: needs the owner decision (true on every template result)
  • packages/cli/api/search/search.doc.mjs: clear
  • packages/cli/api/search/search.not-ready.test.mjs: non-blocking: the build check behind if (unready) never runs
  • packages/cli/api/search/search.type.mjs: needs the owner decision (new public member)
  • packages/cli/api/template/copy/copy.mjs: outside the declared scope
  • packages/cli/api/template/show/show.mjs: outside the declared scope
  • packages/cli/api/template/skeleton/skeleton.mjs: outside the declared scope
  • packages/cli/api/template/template.doc.mjs: outside the declared scope
  • packages/cli/api/template/template.type.mjs: outside the declared scope
  • packages/cli/authoring/doctypes/template/template.doc.mjs: non-blocking: the gallery hides unready templates
  • packages/cli/authoring/doctypes/template/type.ts: non-blocking: same gallery wording
  • packages/cli/clients/cli/commands/build.mjs: outside the declared scope
  • packages/cli/clients/cli/commands/component.mjs: outside the declared scope
  • packages/cli/clients/cli/commands/not-ready.test.mjs: non-blocking: the (WIP) guard needs a git checkout
  • packages/cli/clients/cli/commands/search.mjs: needs the owner decision (text form)
  • packages/cli/clients/cli/commands/search.test.mjs: clear
  • packages/cli/clients/cli/commands/template.mjs: needs the owner decision ((WIP) becomes (not ready)); show, skeleton and copy marks outside the declared scope
  • packages/cli/clients/cli/commands/text-json-parity.test.mjs: clear
  • packages/cli/clients/cli/lib/not-ready.mjs: clear
  • packages/cli/foundation/response/response-types.doc.mjs: clear
  • packages/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: clear
  • packages/cli/test/packed-search-catalog.test.mjs: clear

Automated review (maintainer link)

…emplates

# Conflicts:
#	packages/cli/api/build/kit/start.mjs

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval waits on an engineering owner's decision about template readiness in CLI results, and two fixes are also needed.

  • The description still describes the first commit: it says isReady appears only on unready search results, that isReady: true on 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:80 and the INV28 edit in docs/architecture/cli-surface.md), so update the description, its Scope line and its writing-rubric results to match.
  • The new isReady members on BuildStart, BuildAlternative, BlockEntry and 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 isReady is always true, and the if (unready) check in packages/cli/api/search/search.not-ready.test.mjs:101-102 never 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 --json already 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.mjs reads the private flag).
  • Search text reads page (not ready) and its JSON carries isReady: false for 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 --blocks and template --list change 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 true on the others).
  • The query replay is byte-identical apart from isReady: false rows and the text mark: false at this head (every template row carries the field, and the icon set count 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.md changes), 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), and template --list swaps (WIP) for (not ready): verified; it leaves out the template show, skeleton and copy and component --blocks fields and marks.

Files:

  • .changeset/search-marks-unready-templates.md: non-blocking: omits the template show, skeleton and copy and component --blocks fields and marks
  • docs/architecture/cli-surface.md: needs the owner decision (new INV28 rule); no writing-rubric results in the description
  • packages/cli/README.md: clear (generated, in sync)
  • packages/cli/api/build/_adapter.mjs: outside the declared scope; page isReady is always true after the ready filter
  • packages/cli/api/build/blocks/blocks.mjs: outside the declared scope
  • packages/cli/api/build/build.doc.mjs: outside the declared scope
  • packages/cli/api/build/build.type.mjs: outside the declared scope; start and alternative isReady is always true
  • packages/cli/api/build/kit/signals.mjs: outside the declared scope; consistent with the ready-only start from main
  • packages/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 scope
  • packages/cli/api/component/detail/blocks/blocks.mjs: outside the declared scope
  • packages/cli/api/search/_gather-templates.mjs: clear
  • packages/cli/api/search/_lexical.mjs: clear
  • packages/cli/api/search/_result.mjs: needs the owner decision (true on every template result)
  • packages/cli/api/search/search.doc.mjs: clear
  • packages/cli/api/search/search.not-ready.test.mjs: non-blocking: the build check behind if (unready) never runs
  • packages/cli/api/search/search.type.mjs: needs the owner decision (new public member)
  • packages/cli/api/template/copy/copy.mjs: outside the declared scope
  • packages/cli/api/template/show/show.mjs: outside the declared scope
  • packages/cli/api/template/skeleton/skeleton.mjs: outside the declared scope
  • packages/cli/api/template/template.doc.mjs: outside the declared scope
  • packages/cli/api/template/template.type.mjs: outside the declared scope
  • packages/cli/authoring/doctypes/template/template.doc.mjs: non-blocking: the gallery hides unready templates
  • packages/cli/authoring/doctypes/template/type.ts: non-blocking: same gallery wording
  • packages/cli/clients/cli/commands/build.mjs: outside the declared scope
  • packages/cli/clients/cli/commands/component.mjs: outside the declared scope
  • packages/cli/clients/cli/commands/not-ready.test.mjs: non-blocking: the (WIP) guard needs a git checkout
  • packages/cli/clients/cli/commands/search.mjs: needs the owner decision (text form)
  • packages/cli/clients/cli/commands/search.test.mjs: clear
  • packages/cli/clients/cli/commands/template.mjs: needs the owner decision ((WIP) becomes (not ready)); show, skeleton and copy marks outside the declared scope
  • packages/cli/clients/cli/commands/text-json-parity.test.mjs: clear
  • packages/cli/clients/cli/lib/not-ready.mjs: clear
  • packages/cli/foundation/response/response-types.doc.mjs: clear
  • packages/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: clear
  • packages/cli/test/packed-search-catalog.test.mjs: clear

Automated review (maintainer link)

@josephfarina josephfarina changed the title feat(cli): search marks an unready template feat(cli): every template result carries isReady, and text says (not ready) Nov 16, 2026
…emplates

# Conflicts:
#	packages/cli/api/build/build.doc.mjs
#	packages/cli/api/build/kit/signals.mjs
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec fe68644

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

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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:264 and packages/cli/test/packed-gather-cache.changes.test.mjs:112 fail at this head, because the unready run-console page that came in from main appears in their searches; assert on the flipped template's own record instead of the whole output.
  • Miss: discover returns and lists an installed integration's templates with no isReady and 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 cover discover or narrow the sentence, the title and the walk test's discover comment (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 --list showed 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 --list now says (not ready) instead of (WIP): verified.
  • Search JSON carries isReady on every template result and its text kind reads page (not ready): verified (api/search/_result.mjs:80, commands/search.mjs:207-211).
  • Build JSON carries isReady on 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 --list JSON is unchanged: verified.
  • template <id> adds data.isReady and 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 --blocks carries isReady on 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 (discover returns and lists an installed integration's templates, read from their docs).
  • Ranking does not read the flag, and a doc with no isReady is ready: verified.
  • Additive only, with isReady after 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.
  • isReady goes on every template, and a text line isReady: true was rejected: verified as a description of the design.
  • The walk test places every response type in one of two lists: true, but it files discover as 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-console page).
  • The replay differs from the base only by isReady, false on 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 and template --list text show (not ready), and search keeps the order: verified; it leaves out build's start and alternatives, template show, skeleton and copy, and component --blocks.

Files:

  • .changeset/search-marks-unready-templates.md: non-blocking: leaves out build's start and alternatives, template show, skeleton and copy, and component --blocks
  • docs/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 filter
  • packages/cli/api/build/blocks/blocks.mjs: clear
  • packages/cli/api/build/build.doc.mjs: clear
  • packages/cli/api/build/build.type.mjs: needs the owner decision; start and alternative isReady is always true
  • packages/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: clear
  • packages/cli/api/search/_gather-templates.mjs: clear
  • packages/cli/api/search/_lexical.mjs: clear
  • packages/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 runs
  • packages/cli/api/search/search.type.mjs: needs the owner decision (new public member)
  • packages/cli/api/template/copy/copy.mjs: clear
  • packages/cli/api/template/show/show.mjs: clear
  • packages/cli/api/template/skeleton/skeleton.mjs: clear
  • packages/cli/api/template/template.doc.mjs: clear
  • packages/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 templates
  • packages/cli/authoring/doctypes/template/type.ts: non-blocking: same gallery wording
  • packages/cli/clients/cli/commands/build.mjs: clear
  • packages/cli/clients/cli/commands/component.mjs: clear
  • packages/cli/clients/cli/commands/not-ready.test.mjs: blocking: files discover as naming no template; non-blocking: the (WIP) guard needs a git checkout
  • packages/cli/clients/cli/commands/search.mjs: needs the owner decision (text form)
  • packages/cli/clients/cli/commands/search.test.mjs: clear
  • packages/cli/clients/cli/commands/template.mjs: needs the owner decision ((WIP) becomes (not ready))
  • packages/cli/clients/cli/commands/text-json-parity.test.mjs: clear
  • packages/cli/clients/cli/lib/not-ready.mjs: clear
  • packages/cli/foundation/response/response-types.doc.mjs: clear
  • packages/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)

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec fe68644

@josephfarina josephfarina changed the title feat(cli): every template result carries isReady, and text says (not ready) feat(cli): template results carry isReady, and text says (not ready) Nov 16, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 16, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 97d0e99

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

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: 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, discover does 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 in build --json, carries isReady — verified (base and head probes; search.not-ready.test.mjs).
  • Changeset: search text marks an unready template's kind (not ready) and template --list says (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 isReady on 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 isReady is ready — verified (test with a doc that leaves it out).
  • isReady is appended after every existing field and nothing is renamed, removed or reordered — verified (in every probed object isReady is 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 isReady with 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: build and component Table --blocks text 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-api pass — 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 read true (non-blocking)
  • packages/cli/api/component/component.type.mjs, detail/blocks/blocks.mjs — clear
  • packages/cli/api/search/_gather-templates.mjs, _lexical.mjs, _result.mjs, search.type.mjs — clear
  • packages/cli/api/search/search.doc.mjs — clear; its new wording adds the extra icon set match the description omits
  • packages/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 — clear
  • packages/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 — clear
  • packages/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 — clear
  • packages/cli/clients/cli/lib/not-ready.mjs — clear
  • packages/cli/foundation/response/response-types.doc.mjs — clear
  • packages/cli/test/__golden__/ (ten snapshots) — clear
  • packages/cli/test/packed-gather-cache.changes.test.mjs, packed-search-catalog.test.mjs — clear (pass)

Automated review (maintainer link)

joeyfarina added 2 commits November 15, 2026 20:09
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec d65fafd

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: 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, false on three templates, but search "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, but discover lists and returns an installed integration's templates by id, as the new INV28 sentence says.
  • The changeset's "Every --json result that lists or returns a template gives it isReady" needs the same discover exception.
  • 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), and template --list says (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 --list marked an unready template — verified (base probes).
  • Each response type in the description's table carries isReady and 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 (discover returns 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 isReady is ready — verified (test with a doc that leaves it out).
  • isReady is 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).
  • isReady on 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 isReady with no other difference, false only on three templates — false (search "icon set" counts 399 instead of 398; six unready Core pages).
  • Replay: build and component Table --blocks text 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-api pass — 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 — clear
  • packages/cli/api/component/component.type.mjs, detail/blocks/blocks.mjs — clear
  • packages/cli/api/search/_gather-templates.mjs, _lexical.mjs, _result.mjs, search.type.mjs — clear
  • packages/cli/api/search/search.doc.mjs — clear; its new wording adds the extra icon set match the description omits
  • packages/cli/api/search/search.not-ready.test.mjs — clear
  • packages/cli/api/template/copy/copy.mjs, show/show.mjs, skeleton/skeleton.mjs, template.doc.mjs, template.type.mjs — clear
  • packages/cli/authoring/doctypes/template/template.doc.mjs, type.ts — clear
  • packages/cli/clients/cli/commands/build.mjs, component.mjs, search.mjs, template.mjs — clear
  • packages/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 — clear
  • packages/cli/clients/cli/lib/not-ready.mjs — clear
  • packages/cli/foundation/response/response-types.doc.mjs — clear
  • packages/cli/test/__golden__/ (ten snapshots) — clear
  • packages/cli/test/packed-gather-cache.changes.test.mjs, packed-search-catalog.test.mjs — clear (pass)

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec edac751

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: one 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" and search "not ready" each list one more doc with rankings otherwise unchanged, but not ready still reports 20 of 371 matches with the search command doc moving from 223rd to 4th, and ready also moves the build and template command 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, and discover, which names templates by id, carries neither — verified (walk test; base and head runs; discover unchanged).
  • Changeset: that covers search, build's start, alternatives, pages and blocks, template show, skeleton and copy, and component blocks, with template --list already carrying it — verified.
  • Changeset: text marks an unready template (not ready), and template --list says (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 --list marked an unready template — verified (base runs).
  • Each response type in the description's table carries isReady and 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.
  • discover names 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 discover does.
  • Ranking does not read the flag — verified (the private flag is read only where the result is built).
  • A template doc without isReady is ready — verified (test).
  • isReady is 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).
  • isReady sits 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 set lists one more doc, 399 instead of 398 — verified.
  • Replay: ready and not ready each list one more doc, rankings otherwise unchanged — false (not ready keeps 20 of 371 with the search doc moving from 223rd to 4th; ready also 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 (names discover'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 — clear
  • packages/cli/api/component/component.type.mjs, detail/blocks/blocks.mjs — clear
  • packages/cli/api/search/_gather-templates.mjs, _lexical.mjs, _result.mjs, search.type.mjs, search.not-ready.test.mjs — clear
  • packages/cli/api/search/search.doc.mjs — clear; its new wording causes the ready and not ready reranking the description understates
  • packages/cli/api/template/copy/copy.mjs, show/show.mjs, skeleton/skeleton.mjs, template.doc.mjs, template.type.mjs — clear
  • packages/cli/authoring/doctypes/template/template.doc.mjs, type.ts — clear
  • packages/cli/clients/cli/commands/build.mjs, component.mjs, search.mjs, template.mjs — clear
  • packages/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 — clear
  • packages/cli/clients/cli/lib/not-ready.mjs — clear (optional: its header comment leaves out component --blocks)
  • packages/cli/foundation/response/response-types.doc.mjs — clear
  • packages/cli/test/__golden__/ (ten snapshots) — clear
  • packages/cli/test/packed-gather-cache.changes.test.mjs, packed-search-catalog.test.mjs — clear

Automated review (maintainer link)

Comment on lines +8 to +9
* @position Used by every command whose result lists or returns a template:
* search, build, and template (list, show, skeleton, copy).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec d402ed0

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: 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 ready replay 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), and discover, which names templates by id, carries neither — verified (walk test; base and head runs; discover output unchanged).
  • Changeset: that covers search, build's start, alternatives, pages and blocks, template show, skeleton and copy, and component blocks, with template --list already carrying it — verified (walk test; runs).
  • Changeset: text marks an unready template (not ready), and template --list says (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 --list marked an unready template — verified (base runs).
  • Each response type in the description's table carries isReady and 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).
  • discover names 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 discover does.
  • Ranking does not read the flag — verified (the private flag is read only where the result is built).
  • A template doc without isReady is ready — verified (test).
  • isReady is 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%).
  • isReady sits 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 set reports 399 matches instead of 398 — verified.
  • Replay: not ready keeps 20 of 371 matches, with the search command doc moving from 223rd to 4th — verified.
  • Replay: ready moves 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 — clear
  • 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
  • packages/cli/api/component/component.type.mjs, detail/blocks/blocks.mjs — clear
  • packages/cli/api/search/_gather-templates.mjs, _lexical.mjs, _result.mjs, search.doc.mjs, search.type.mjs, search.not-ready.test.mjs — clear
  • packages/cli/api/template/copy/copy.mjs, show/show.mjs, skeleton/skeleton.mjs, template.doc.mjs, template.type.mjs — clear
  • packages/cli/authoring/doctypes/template/template.doc.mjs, type.ts — clear
  • packages/cli/clients/cli/commands/build.mjs, component.mjs, search.mjs, template.mjs — clear
  • packages/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 — clear
  • packages/cli/clients/cli/lib/not-ready.mjs — clear (optional: its header comment leaves out component --blocks)
  • packages/cli/foundation/response/response-types.doc.mjs — clear
  • packages/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) — clear
  • packages/cli/test/packed-gather-cache.changes.test.mjs, packed-search-catalog.test.mjs — clear

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 5e5ddde into main Nov 16, 2026
125 of 131 checks passed
@github-actions
github-actions Bot deleted the search/mark-unready-templates branch November 17, 2026 06:03

This branch was successfully deployed

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant