Repository navigation
[experimental] cli: experimental render is now experimental export - #12302
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Changes requested. The rename follows the rules for experimental commands, but five blocking issues remain.
- In
packages/cli/clients/cli/lib/unknown-command.mjs(lines 67-87 and 311-324), stable unknown-command answers such asastryx render page.tsxandastryx share page.tsxnow nameastryx experimental export, and the release spec's experimental-isolation rule (AST-017 FR27) forbids that for any experimental command but the theme editor, so remove the table or add an approved FR27 exception in this pull request. pnpm exec vitest run --project node packages/cli/clients/clifails at this head and passes at its base, becausecommand-result-coverage.test.mjs:94flags the hiddenexperimental rendercommand for reporting no result andstartup-imports.test.mjs:197counts 74 modules forastryx --version(limit 73) now thatclients/cli/index.mjsimportslib/renamed-commands.mjsat startup.- The moved error's suggestion (
commands/experimental/index.mjs:78) drops leading options such as--jsonand--baseand quotes nothing, soastryx --json experimental render 'Q3 final.tsx'suggestsastryx experimental export Q3 final.tsx; build the line as the root unknown-command answer does, withquoteCommandArgument. - An unknown experimental subcommand such as
astryx experimental rendrlists the hiddenexperimental renderas an "available subcommand" in text and JSON, becausecommands/experimental/index.mjs:34-36andclients/cli/index.mjs:822-824keep hidden commands (servedSubcommandsdrops them). - The changeset says more than the code does: bare
astryx packstill suggestsintegration pack, the text lineRender it again:is nowExport it again:, and the old name does not always print "the same line", so reword those sentences once the fixes land.
Not blocking here: after #12039 lands, moving this branch onto main also means renaming the old command in docs/architecture/cli-surface.md (INV10 and DEC-16) and in the render code main has gained since, which conflicts in three files today.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: the command is renamed and still writes one self-contained HTML file, and
--reversestill restores the page. Verified:commands/experimental/export.mjscalls the unchangedrender(), and theapi/rendersuites pass. - Claim: its options and output are the same. Partly false: the options match, but the text line
Render it again:is nowExport it again:(export.mjs:157). - Claim: every reference moves in this push. Verified at this head;
mainhas newer references (non-blocking). - Claim: the old name is no alias and fails with exit 1 and
ERR_UNKNOWN_SUBCOMMAND, also as JSON. Verified by running it and byexport-name.test.mjs:42-53. - Claim: the old name prints the same line with
export. False with--json,--baseor quoted arguments (experimental/index.mjs:78). - Claim: an unknown top-level
export,render,share,bundle,snapshot,packorstandalonesuggests the new command, as a suggestion only. It never runs the command, but barepacksuggestsintegration pack, and the behavior conflicts with FR27. - Claim: the command stays under
experimental. Verified (experimental.doc.mjs:20). - Claim: the result types, the
ERR_RENDER_*codes and therender()name are unchanged. Verified (render.type.mjs,error-codes.mjs,api/experimental.mjs:12). - Claim: the JSON fields that carry the command name now say
experimental export. Verified in the manifest, in--json experimental --helpand in the suggestions. - Claim: the guide and reference routes are renamed. Verified:
docs cli/experimental/export-pagesanddocs cli/commands/experimental-exportanswer. - Claim: a file written before the rename names the old command, and
--reversereads it as before. Verified: the reader and the render format are unchanged. - Claim: the new test proves no published file, help or docs page names the old command. Verified: it passes, and it covers published files only.
- Claim: the render suites pass under the new name. Verified.
- Claim: the Testing command passes. False: 4 failures in
packages/cli/clients/cliat this head. - Claim: the public text has no internal context. Verified.
- Claim: the changeset is a patch with an
[experimental]note. Verified. - File
.changeset/render-is-now-export.md: claim wording (blocking 5). - File
packages/cli/clients/cli/lib/unknown-command.mjs: FR27 (blocking 1). - File
packages/cli/clients/cli/commands/experimental/index.mjs: blocking 2, 3 and 4. - File
packages/cli/clients/cli/index.mjs: blocking 2 and 4. - File
packages/cli/clients/cli/lib/renamed-commands.mjs: blocking 2 (on the startup path). - File
packages/cli/test/export-name.test.mjs: asserts the FR27-conflicting answer, and missespack,standalone, the typo case and the quoting case. - Files clear, the rename only, consistent with each other:
- the command and its docs:
commands/experimental/export.mjs,experimental-export.doc.mjs,experimental.doc.mjs,experimental-theme.doc.mjs; - the render API:
api/render/render.mjs,render.doc.mjs,render.type.mjs,_adapter.mjs; - error codes and discovery:
foundation/response/error-codes.mjs,error-codes.doc.mjs,foundation/discovery/runner-allowlist.mjs; - render internals:
foundation/render/file-header.mjs,rebuild.mjs,assets.mjs,component-map.mjs,css-cut.mjs,embedded-imports.mjs,esbuild-dependency.mjs,html-reader.mjs,markup-edits.mjs,page-host.mjs,page-worker.mjs,render-page.mjs,ts-paths.mjs; - theme editing:
api/theme-edit/_catalog.mjs,_parts.mjs; - guides and README:
assets/docs/tree/export-pages.doc.mjs,share-a-page.doc.mjs,packages/cli/README.md; - the docs site:
apps/docsite/scripts/generate-landing-template-previews.mjs,apps/docsite/src/__tests__/route-resolution.test.ts; - the draft record
docs/specs/AST-114-bases/spec.md; - tests:
render.interactive.test.mjs,render.notes.test.mjs,render.test.mjs,bases.test.mjs,text-json-parity.test.mjs,doc-loads.test.mjs,hosted-runtime.test.mjs,global-local.test.mjs,.github/scripts/render-interaction-parity.browser.test.mjs.
- the command and its docs:
f763f3b to
fa6bed4
Compare
|
Owner decision (engineering owner, covering this pull request): |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision, and two fixes are needed either way. The rename follows the release rules for experimental commands, and the earlier quoting, startup-import, test-failure and changeset issues are fixed.
The new FR27 sentence in docs/specs/AST-017/spec.md lets an unknown top-level export, render, share, bundle, snapshot or standalone suggest astryx experimental export, which the current FR27 does not allow. An engineering owner records approval by commenting /approve-spec <full head SHA> on this pull request (the author may, as an engineering owner); if it is not approved, the word table in packages/cli/clients/cli/lib/unknown-command.mjs comes out.
astryx --json experimental rendrstill lists the hiddenexperimental renderas an available subcommand, andastryx help experimental renderprints its usage with exit 0, because the JSON gate inpackages/cli/clients/cli/index.mjs(lines 832-834) filters withcommandAvailableinstead ofservedSubcommands.- The description says
packages/cli/test/export-name.test.mjscovers the JSON error, kept leading options, quoting and the typo list, but the file tests only the text error and five of the six share words, so add those cases or narrow the claim.
Claims and files checked
Review mode: full; reason: rebase
- Claim: the command is renamed and still writes one self-contained HTML file, and
--reversestill restores the page. Verified:commands/experimental/export.mjscalls the unchangedrender(), and the render suites pass. - Claim: its options are the same, and the text line
Render it again:is nowExport it again:. Verified (experimental-export.doc.mjs,export.mjs:161). - Claim: every reference moves. Verified: no file names the old command apart from the old-name tests, at this head and in a merge with
main. - Claim: the old name is no alias; it fails with exit 1 and
ERR_UNKNOWN_SUBCOMMANDand suggests the same run withexport, keeping leading options and quoting each word, also as JSON. Verified by running it. - Claim: an unknown top-level
export,render,share,bundle,snapshotorstandalonesuggests the experimental command, labeled experimental, and never runs it; barepackstill meansintegration pack. Verified by running each; whether it may ship waits on the FR27 decision. - Claim: FR27 gains one sentence for that suggestion. Present; not yet approved at this head.
- Claim: the FR27 sentence is the maintainers' decision. Not established: an owner comment states it, but no
/approve-specor approving review exists at this head. - Claim: the result types, the
ERR_RENDER_*codes and therender()name are unchanged. Verified (render.type.mjsanderror-codes.mjschange comments only). - Claim: the JSON fields that carry the command name say
experimental export. Verified in the manifest, in--json experimental --helpand in the suggestions. - Claim: the guide and reference routes are renamed. Verified: the new routes answer, and the old ones fail and suggest the new ones.
- Claim: a file written before the rename still reads back with
--reverse. Verified: the reader and the render format are unchanged. - Claim: the new test proves the JSON error, kept options, quoting, the share words and the typo list. Partly false (second finding).
- Claim: the render suites pass under the new name. Verified.
- Claim: the description's test command passes (4,190 tests) and the knowledge check passes. Verified: 4,180 pass, 1 is an expected failure and 9 skip, and the knowledge check passes.
- Claim: the public text has no internal context. Verified.
- Claim: the changeset is a patch with an
[experimental]note naming both commands and routes. Verified. - Claim: agents guessed
exportin the author's naming tests. The author's research; not checkable here. - File
docs/specs/AST-017/spec.md: the unapproved FR27 sentence (owner decision). - File
packages/cli/clients/cli/lib/unknown-command.mjs: the word table that sentence covers. - File
packages/cli/clients/cli/index.mjs: first finding (JSON typo list). - File
packages/cli/test/export-name.test.mjs: second finding. - Files clear, consistent with each other:
- the old name:
commands/experimental/index.mjs,lib/renamed-commands.mjs,command-result-coverage.test.mjs; - the command and its docs:
commands/experimental/export.mjs,experimental-export.doc.mjs,experimental.doc.mjs,experimental-theme.doc.mjs,lib/stray-option.mjs; - the render API:
api/render/render.mjs,render.doc.mjs,render.type.mjs,_adapter.mjs; - error codes and discovery:
foundation/response/error-codes.mjs,error-codes.doc.mjs,foundation/discovery/runner-allowlist.mjs; - render internals:
foundation/render/assets.mjs,component-map.mjs,css-cut.mjs,embedded-imports.mjs,esbuild-dependency.mjs,file-header.mjs,html-reader.mjs,markup-edits.mjs,page-host.mjs,page-worker.mjs,rebuild.mjs,render-page.mjs,ts-paths.mjs; - theme editing:
api/theme-edit/_catalog.mjs,_parts.mjs; - guides, README and release note:
assets/docs/tree/export-pages.doc.mjs,share-a-page.doc.mjs,packages/cli/README.md(regenerated table),.changeset/render-is-now-export.md; - records:
docs/architecture/cli-surface.md,docs/specs/AST-114-bases/spec.md; - the docs site:
apps/docsite/scripts/generate-landing-template-previews.mjs,apps/docsite/src/__tests__/route-resolution.test.ts; - tests:
render.interactive.test.mjs,render.notes.test.mjs,render.test.mjs,bases.test.mjs,text-json-parity.test.mjs,doc-loads.test.mjs,hosted-runtime.test.mjs,global-local.test.mjs,.github/scripts/render-interaction-parity.browser.test.mjs.
- the old name:
fa6bed4 to
1464543
Compare
|
/approve-spec 1464543 |
PR Analysis Report🔎 Preview ·
|
| Before | After | Change | |
|---|---|---|---|
| Job-minutes per PR update | 219 | 219 | 0 |
| Runner pool, runner-minutes a day | 71,349 | 71,349 | 0 (0%) |
| Average concurrent jobs | 49.5 | 49.5 | 0 |
| Time to green (median → this run) | 64.5 min | 53.9 min | −10.6 min |
| Runs a day | 326 | 326 | 0 |
Not measured (the jobs that use these keep their recent minutes above): .github/scripts/render-interaction-parity.browser.test.mjs, .github/scripts/template-noscript-first-paint.browser.test.mjs.
Assumptions: before is each job's average over the last 20 pull-request runs; after keeps that for unchanged jobs and uses this run's minutes for added or changed ones, weighted by how often each changed job ran in those runs; runs a day averages the seven whole days before today; time to green compares this run with the median of those runs that ran the same jobs.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
Changes requested. The rename follows the release rules for experimental commands, and the new FR27 exception for the share words has an engineering owner's approval for this head; three blocking issues remain.
- Miss: the Lint workflow fails because
packages/cli/clients/cli/commands/experimental/index.mjs(line 56) registers the old name withexperimental.command(...), which the lint rule for command files forbids, so register it throughdefineCommandwithhidden: trueas the hiddenpostinstallcommand does. astryx --json experimental rendroffers the hiddenexperimental renderfirst as an available subcommand (and--json experimental nopelists it last), because the JSON list inpackages/cli/clients/cli/index.mjs(lines 832-834) filters withcommandAvailablewhile the text answer already usesservedSubcommands.- The description says
packages/cli/test/export-name.test.mjscovers the JSON error, kept leading options, quoting, all six share words and the typo list, but the file tests only the text error and five of the words, so add those cases or narrow the claim.
astryx help experimental render also still prints the old command's usage with exit 0.
Claims and files checked
Review mode: full; reason: merge-touches-pr-files
- Claim: the command is renamed and still writes one self-contained HTML file, and
--reversestill restores the page. Verified:commands/experimental/export.mjscalls the unchangedrender(), and the render suites pass. - Claim: its options are the same, and the text line
Render it again:is nowExport it again:. Verified (experimental-export.doc.mjs,export.mjs:161). - Claim: the old name is no alias; it fails with exit 1 and
ERR_UNKNOWN_SUBCOMMANDand suggests the same run withexport, keeping leading options and quoting each word, also as JSON. Verified by running it in text and JSON, with--json --baseand a quoted path. - Claim: an unknown top-level
export,render,share,bundle,snapshotorstandalonesuggests the experimental command, labeled experimental, and never runs it, whilepackstill meansintegration pack. Verified by running each in text and JSON; no file is written. - Claim: the guide and reference routes are renamed. Verified:
docs cli/experimental/export-pagesanddocs cli/commands/experimental-exportanswer. - Claim: the JSON fields that carry the command name say
experimental export. Verified in--json experimental --helpand the suggestions; the manifest skips hidden commands. - Claim: the result types, the
ERR_RENDER_*codes and therender()name are unchanged. Verified (render.type.mjsanderror-codes.mjschange comments only). - Claim: a file written before the rename still reads back with
--reverse. Verified: the reader does not read the note's command, and the render format is unchanged. - Claim: every reference moves in this push. Verified: no shipped file, help text or doc names the old command; only the old-name tests and earlier release notes do.
- Claim: FR27 gains one sentence, and it is the maintainers' decision. Verified: the sentence is present, and an engineering owner approved this exact head.
- Claim: the command stays under
experimental. Verified. - Claim: the new test proves no published file, help text or docs page names the old command. Verified.
- Claim: the new test proves the JSON error, kept options, quoting, that the share words never run, and the typo list. False (third finding).
- Claim: the render suites pass under the new name, the description's test command passes and the knowledge check passes. Verified: 4,181 pass, 1 is an expected failure and 9 skip, and the knowledge check passes.
- Claim: agents guessed
exportin the author's naming tests. The author's research; not checkable here. - Claim: one change, and the public text has no internal context. Verified.
- File
packages/cli/clients/cli/commands/experimental/index.mjs: first finding (lint). - File
packages/cli/clients/cli/index.mjs: second finding (JSON typo list). - File
packages/cli/test/export-name.test.mjs: third finding. - File
docs/specs/AST-017/spec.md: clear, owner-approved; a non-blocking note on the "One named exception" wording. - File
packages/cli/clients/cli/lib/unknown-command.mjs: clear; a non-blocking note on a stale comment. - Files clear, consistent with each other:
- the old name:
lib/renamed-commands.mjs,command-result-coverage.test.mjs; - the command and its docs:
commands/experimental/export.mjs,experimental-export.doc.mjs,experimental.doc.mjs,experimental-theme.doc.mjs,lib/stray-option.mjs; - the render API:
api/render/render.mjs,render.doc.mjs,render.type.mjs,_adapter.mjs; - error codes and discovery:
foundation/response/error-codes.mjs,error-codes.doc.mjs,foundation/discovery/runner-allowlist.mjs; - render internals:
foundation/render/assets.mjs,component-map.mjs,css-cut.mjs,embedded-imports.mjs,esbuild-dependency.mjs,file-header.mjs,html-reader.mjs,markup-edits.mjs,page-host.mjs,page-worker.mjs,rebuild.mjs,render-page.mjs,ts-paths.mjs; - theme editing:
api/theme-edit/_catalog.mjs,_parts.mjs; - guides, README and release note:
assets/docs/tree/export-pages.doc.mjs,share-a-page.doc.mjs,packages/cli/README.md(regenerated table, in sync),.changeset/render-is-now-export.md; - records:
docs/architecture/cli-surface.md,docs/specs/AST-114-bases/spec.md; - the docs site:
apps/docsite/scripts/generate-landing-template-previews.mjs,apps/docsite/src/__tests__/route-resolution.test.ts; - tests:
render.interactive.test.mjs,render.notes.test.mjs,render.test.mjs,bases.test.mjs,text-json-parity.test.mjs,doc-loads.test.mjs,hosted-runtime.test.mjs,global-local.test.mjs,.github/scripts/render-interaction-parity.browser.test.mjs.
- the old name:
|
/approve-spec 5f9deb5 |
There was a problem hiding this comment.
Changes requested. The three blockers from the last review are fixed, and the new FR27 exception has an engineering owner's approval for this head; one blocking issue remains, caused by a change that has since landed on main.
- Regression:
mainnow says inarchitecture:cli-surfacestep 3 that the unknown-command answer "never names an experimental command", but this pull request's word table inpackages/cli/clients/cli/lib/unknown-command.mjs(lines 67-87 and 310-323) namesexperimental export, so mergemain, amend that step to name FR27's shareable-page exception (with the comments and theexperimental rendertest fixture that still say otherwise), and record an engineering owner's/approve-spec <full head SHA>for the new head.
One symptom to fix with it: astryx render experimental suggests experimental export experimental, which passes the group's name as the page and fails when run. Non-blocking: FR27 could say "Two named exceptions" now, and the six-word test could pass page.tsx so it would catch a word that runs the command.
Claims and files checked
Review mode: incremental; reason: none
- Claim: the command is renamed and still writes one self-contained HTML file, and
--reversestill restores the page, with the same options. Verified:commands/experimental/export.mjscalls the unchangedrender(), and the render suites pass. - Claim: the text line
Render it again:is nowExport it again:. Verified (export.mjs:161). - Claim: the old name is no alias; it fails with exit 1 and
ERR_UNKNOWN_SUBCOMMAND, suggests the same run withexport, keeps leading options such as--jsonand--base, and quotes each word, also as JSON. Verified by running it in text and JSON, with--baseand a quoted path. - Claim: an unknown top-level
export,render,share,bundle,snapshotorstandalonesuggests the experimental command, labeled experimental, and never runs it, whilepackstill meansintegration pack. Verified by running each in text and JSON; no file is written. - Claim: the guide and reference routes are renamed. Verified: both new routes answer and the old guide route is unknown.
- Claim: the JSON fields that carry the command name say
experimental export. Verified inmanifest --json,--json experimental --helpand the suggestions. - Claim: the result types, the
ERR_RENDER_*codes and therender()name are unchanged. Verified (render.type.mjsanderror-codes.mjschange comments only). - Claim: a file written before the rename still reads back with
--reverse. Verified: the reader does not read the note's command, and the render format is unchanged. - Claim: every reference moves in this push. Verified: no published file, help text, doc or record names the old command; only the old-name test does.
- Claim: FR27 gains one sentence, and it is the maintainers' decision. Verified: the sentence is present and an engineering owner approved this exact head; it still has to be mirrored in cli-surface step 3 (the blocking finding).
- Claim: the command stays under
experimental. Verified. - Claim: the new test proves that no published file, help or docs page names the old command; that the old name answers the moved error in text and JSON with kept options and quoting; that the share words suggest the new name; and that an unknown experimental subcommand lists only the served ones. Verified (
export-name.test.mjs:20-91,:93-100); its six-word case would also pass if a word ran the command (non-blocking). - Claim: the render suites pass under the new name, the description's test command passes and the knowledge check passes. Verified: 4,186 pass, 1 is an expected failure and 9 skip, and the knowledge check passes.
- Claim: agents guessed
exportin the author's naming tests. The author's research; not checkable here. - Claim: one change, and the public text has no internal context. Verified.
- File
packages/cli/clients/cli/lib/unknown-command.mjs: the blocking finding. - File
docs/specs/AST-017/spec.md: owner-approved; the blocking finding's record amendment belongs beside it; non-blocking wording note. - File
docs/architecture/cli-surface.md: clear for its INV10 and DEC-16 renames; step 3 onmainneeds the amendment. - File
packages/cli/test/export-name.test.mjs: clear; non-blocking note on the six-word case. - Files clear, consistent with each other:
- the old name:
commands/experimental/index.mjs,lib/renamed-commands.mjs,clients/cli/index.mjs,lib/stray-option.mjs,command-result-coverage.test.mjs; - the command and its docs:
commands/experimental/export.mjs,experimental-export.doc.mjs,experimental.doc.mjs,experimental-theme.doc.mjs; - the render API:
api/render/render.mjs,render.doc.mjs,render.type.mjs,_adapter.mjs; - error codes and discovery:
foundation/response/error-codes.mjs,error-codes.doc.mjs,foundation/discovery/runner-allowlist.mjs; - render internals:
foundation/render/assets.mjs,component-map.mjs,css-cut.mjs,embedded-imports.mjs,esbuild-dependency.mjs,file-header.mjs,html-reader.mjs,markup-edits.mjs,page-host.mjs,page-worker.mjs,rebuild.mjs,render-page.mjs,ts-paths.mjs; - theme editing:
api/theme-edit/_catalog.mjs,_parts.mjs; - guides, README and release note:
assets/docs/tree/export-pages.doc.mjs,share-a-page.doc.mjs,packages/cli/README.md(generated table, in sync),.changeset/render-is-now-export.md; - records:
docs/specs/AST-114-bases/spec.md; - the docs site:
apps/docsite/scripts/generate-landing-template-previews.mjs,apps/docsite/src/__tests__/route-resolution.test.ts; - tests:
render.interactive.test.mjs,render.notes.test.mjs,render.test.mjs,bases.test.mjs,text-json-parity.test.mjs,doc-loads.test.mjs,hosted-runtime.test.mjs,global-local.test.mjs,.github/scripts/render-interaction-parity.browser.test.mjs.
- the old name:
5f9deb5 to
bfcf85e
Compare
|
Owner decision update (engineering owner, covering this pull request at its current head): |
|
/approve-spec bfcf85e |
There was a problem hiding this comment.
Changes requested: one sentence in the release note and the description overstates the new share-word suggestion. The rename, the moved error and the record changes check out, and the engineering owner's approval covers this head.
.changeset/render-is-now-export.mdand the description say every unknown top-levelexport,render,share,bundle,snapshotorstandalonesuggestsastryx experimental export, butastryx export Buttonandastryx share Cardstill suggestastryx component Buttonandastryx component Card, asunknown-command.test.mjsexpects, so add "unless the next word is a namecomponent,hook,templateordocsreads" to both.
Non-blocking:
- Miss: in a project whose active base is an integration that does not serve
render.page,astryx share page.tsxsuggestsexperimental export page.tsx, which that base refuses; checking that the base serves the command before suggesting it (as the rest of the answer does) keeps the answer to runs that work.
A new commit needs a fresh /approve-spec for its head, since the approval binds this exact head.
Claims and files checked
Review mode: full; reason: spec-record
-
Description: FR27 gains a share-word exception, the CLI architecture record's dispatch step says the same, and the bases record's table follows the name: verified
-
Description: the new name test and the CLI suites pass: verified (246 files, 4,236 tests at this head; the description's counts are from earlier heads)
-
Description: agents in naming tests guessed
exportfirst: not checkable here (the author's research) -
Description: the command is renamed, still writes one HTML file and reverses it, with the same options: verified
-
Description: every reference (command, doc, guide, help, notes, error suggestions, tests) moves: verified; pending release notes keep the old name as changelog history
-
Description and changeset: the old name is no alias, exits 1 with
ERR_UNKNOWN_SUBCOMMANDand suggests the same run withexport, keeping leading options and quoting, in text and JSON: verified -
Description and changeset: an unknown top-level share word suggests
experimental exportand never runs it: false as worded (astryx export Buttonstill suggestsastryx component Button); never runs it: verified -
Description: bare
packstill meansintegration pack: verified -
Description: FR27 gains one sentence beside the theme editor's exception: verified; the theme exception's lead-in is also reworded, as the owner's comment says
-
Description and changeset: the text line
Render it again:is nowExport it again:: verified -
Description: the command stays under
experimental, and the record change is an engineering owner's decision: verified -
Description and changeset: result types,
ERR_RENDER_*codes andrender()keep their names; JSON fields that carry the command name sayexperimental export: verified -
Description and changeset: a file written before the rename names the old command, and
--reversereads it as before: verified (exact round trip) -
Changeset: patch,
[experimental], and the guide and reference routes are renamed: verified -
Description: no internal context in public text, and the knowledge check passes: verified
-
.changeset/render-is-now-export.md: finding (the share-word sentence) -
docs/specs/AST-017/spec.md,docs/architecture/cli-surface.md: clear (owner-approved for this head) -
docs/specs/AST-114-bases/spec.md: clear (table rows follow the name) -
packages/cli/clients/cli/lib/unknown-command.mjs: non-blocking note (base check); otherwise clear -
packages/cli/clients/cli/commands/experimental/index.mjs,packages/cli/clients/cli/lib/renamed-commands.mjs,packages/cli/clients/cli/index.mjs: clear -
packages/cli/clients/cli/commands/experimental/export.mjs,experimental-export.doc.mjs,experimental.doc.mjs,experimental-theme.doc.mjs,packages/cli/clients/cli/lib/stray-option.mjs: clear -
packages/cli/api/render/render.mjs,render.doc.mjs,render.type.mjs,_adapter.mjs: clear -
packages/cli/foundation/render/assets.mjs,component-map.mjs,css-cut.mjs,embedded-files.mjs,embedded-imports.mjs,esbuild-dependency.mjs,file-header.mjs,html-reader.mjs,markup-edits.mjs,page-host.mjs,page-worker.mjs,rebuild.mjs,render-page.mjs,source-block.mjs,ts-paths.mjs: clear -
packages/cli/foundation/response/error-codes.mjs,error-codes.doc.mjs,packages/cli/foundation/discovery/runner-allowlist.mjs: clear -
packages/cli/api/theme-edit/_catalog.mjs,_parts.mjs: clear (comments) -
packages/cli/assets/docs/tree/export-pages.doc.mjs,share-a-page.doc.mjs: clear -
packages/cli/README.md: clear (generated table in sync) -
Tests
packages/cli/test/export-name.test.mjs,packages/cli/test/global-local.test.mjs,packages/cli/clients/cli/lib/unknown-command.test.mjs,packages/cli/clients/cli/bases.test.mjs,packages/cli/clients/cli/command-result-coverage.test.mjs,packages/cli/clients/cli/commands/text-json-parity.test.mjs,packages/cli/foundation/doc-compiler/doc-loads.test.mjs,packages/cli/foundation/runtime/hosted-runtime.test.mjs,packages/cli/api/render/render.test.mjs,render.notes.test.mjs,render.interactive.test.mjs,hosted-packages.test.mjs: clear (pass at this head) -
.github/scripts/render-interaction-parity.browser.test.mjs,.github/scripts/template-noscript-first-paint.browser.test.mjs,apps/docsite/scripts/generate-landing-template-previews.mjs,apps/docsite/src/__tests__/route-resolution.test.ts: clear (comments and the route slug)
68bb743 to
f673ae9
Compare
|
/approve-spec f673ae9 |
There was a problem hiding this comment.
Changes requested: one sentence in the release note and the description says more than the share-word suggestion does. The rename, the moved error for the old name and the record changes check out, and the engineering owner's approval covers this head.
.changeset/render-is-now-export.mdand the description say every unknown top-levelexport,render,share,bundle,snapshotorstandalonesuggestsastryx experimental export, butastryx export Buttonandastryx share Cardstill suggestastryx component Buttonandastryx component Card(asunknown-command.test.mjsexpects), so add "unless the next word is a name another command reads" to both.
Non-blocking:
- Miss: in a project whose active base is an integration that does not serve
render.page,astryx share page.tsxstill suggestsexperimental export page.tsx, which that base refuses. Checking that the base servesexportbefore suggesting it would keep the answer to runs that work, as the rest of the answer already does.
A new commit needs a fresh /approve-spec for its head, because the approval binds this exact head.
Claims and files checked
Review mode: full; reason: rebase
-
Description: FR27 gains a share-word exception, the CLI architecture record's dispatch step says the same, and the bases record's table follows the name: verified
-
Description: the name test and the CLI suites pass: verified (246 files, 4,245 tests at this head); the two counts in the description (4,228 and 4,190) come from earlier heads and disagree with each other
-
Description: agents in naming tests guessed
exportfirst: not checkable here (the author's research) -
Description: the command is renamed, still writes one HTML file and turns it back, with the same options: verified (exact round trip)
-
Description: every reference moves (command, doc, guide, help, notes, error suggestions, tests): verified; pending release notes and the changelog keep the old name as history
-
Description and changeset: the old name is no alias, exits 1 with
ERR_UNKNOWN_SUBCOMMANDand suggests the same run withexport, keeping leading options and quoting each word, in text and JSON: verified -
Description and changeset: an unknown top-level share word suggests
experimental export, labeled experimental, and never runs it: false as worded (astryx export Buttonstill suggestsastryx component Button); labeled and never runs it: verified -
Description: bare
packstill meansintegration pack: verified -
Description: FR27 gains one sentence beside the theme editor's exception: verified; the theme exception's wording is also scoped to sit beside it
-
Description and changeset: the text line
Render it again:is nowExport it again:: verified -
Description: the command stays under
experimental, and the record change is an engineering owner's decision: verified (approval for this head) -
Description and changeset: result types,
ERR_RENDER_*codes andrender()keep their names, and JSON fields that carry the command name sayexperimental export: verified (manifest, group help, suggestions) -
Description and changeset: a file written before the rename names the old command, and
--reversereads it as before: verified (a file from the base CLI restores exactly) -
Description: the name test checks published files, help and docs, the moved error in text and JSON, the share words with a real page, and the group's unknown-word list: verified by reading the test
-
Changeset: patch and
[experimental], and the guide and reference routes are renamed: verified -
Description: no internal context in public text: verified
-
.changeset/render-is-now-export.md: finding (the share-word sentence) -
docs/specs/AST-017/spec.md,docs/architecture/cli-surface.md: clear (owner-approved for this head) -
docs/specs/AST-114-bases/spec.md: clear (table rows follow the name) -
packages/cli/clients/cli/lib/unknown-command.mjs: non-blocking note (base check); otherwise clear -
packages/cli/clients/cli/commands/experimental/index.mjs,packages/cli/clients/cli/lib/renamed-commands.mjs,packages/cli/clients/cli/index.mjs,packages/cli/clients/cli/lib/stray-option.mjs: clear -
packages/cli/clients/cli/commands/experimental/export.mjs,experimental-export.doc.mjs,experimental.doc.mjs,experimental-theme.doc.mjs: clear -
packages/cli/api/render/render.mjs,render.doc.mjs,render.type.mjs,_adapter.mjs: clear -
packages/cli/foundation/render/assets.mjs,component-map.mjs,css-cut.mjs,embedded-files.mjs,embedded-imports.mjs,esbuild-dependency.mjs,file-header.mjs,html-reader.mjs,markup-edits.mjs,page-host.mjs,page-worker.mjs,rebuild.mjs,render-page.mjs,source-block.mjs,ts-paths.mjs: clear -
packages/cli/foundation/response/error-codes.mjs,error-codes.doc.mjs,packages/cli/foundation/discovery/runner-allowlist.mjs: clear -
packages/cli/api/theme-edit/_catalog.mjs,_parts.mjs: clear (comments) -
packages/cli/assets/docs/tree/export-pages.doc.mjs,share-a-page.doc.mjs: clear -
packages/cli/README.md: clear (generated table in sync) -
Tests
packages/cli/test/export-name.test.mjs,packages/cli/test/global-local.test.mjs,packages/cli/clients/cli/lib/unknown-command.test.mjs,packages/cli/clients/cli/bases.test.mjs,packages/cli/clients/cli/command-result-coverage.test.mjs,packages/cli/clients/cli/commands/text-json-parity.test.mjs,packages/cli/foundation/doc-compiler/doc-loads.test.mjs,packages/cli/foundation/runtime/hosted-runtime.test.mjs,packages/cli/api/render/render.test.mjs,render.notes.test.mjs,render.interactive.test.mjs,hosted-packages.test.mjs: clear (pass at this head) -
.github/scripts/render-interaction-parity.browser.test.mjs,.github/scripts/template-noscript-first-paint.browser.test.mjs,apps/docsite/scripts/generate-landing-template-previews.mjs,apps/docsite/src/__tests__/route-resolution.test.ts: clear (comments and the route slug)
|
/approve-spec b8b4933 |
b8b4933 to
3f350af
Compare
|
/approve-spec 3f350af |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because its run was refused for capacity ("CI is full"); re-run all jobs before merging.
The rename, the moved error for the old name and the share-word suggestion check out, and the release-note sentence and the active-base check raised on the last revision are fixed. The engineering owner's spec approval covers this exact head, so a new commit needs a fresh /approve-spec.
Claims and files checked
Review mode: full; reason: rebase
-
Description: FR27 gains a share-word exception, the CLI architecture record's dispatch step says the same, and the bases record's table follows the name: verified
-
Description: the name test and the CLI suites pass: verified (246 files, 4,247 tests at this head); the two counts in the description (4,228 and 4,190) disagree with each other and with this run
-
Description: agents in naming tests guessed
exportfirst: not checkable here (the author's research) -
Description and changeset: the command is renamed, still writes one HTML file and turns it back, with the same options: verified (exact round trip)
-
Description: every reference moves (command, doc, guide, help, notes, error suggestions, tests): verified; pending release notes and the changelog keep the old name as history
-
Description and changeset: the old name is no alias, exits 1 with
ERR_UNKNOWN_SUBCOMMANDand suggests the same run withexport, keeping leading options and quoting each word, in text and JSON: verified -
Description and changeset: an unknown top-level share word suggests
experimental export, labeled experimental, and never runs it, unless the next word is a name another command reads or the active base does not serve the command: verified (probes, and a base test that fails without the check) -
Description: bare
packstill meansintegration pack: verified -
Description: FR27 gains one sentence beside the theme editor's exception: verified; the theme exception's wording is also scoped to sit beside it
-
Description and changeset: the text line
Render it again:is nowExport it again:: verified -
Description: the command stays under
experimental, and the record change is an engineering owner's decision: verified (approval for this head) -
Description and changeset: result types,
ERR_RENDER_*codes andrender()keep their names, and JSON fields that carry the command name sayexperimental export: verified (manifest, group help, suggestions) -
Description and changeset: a file written before the rename names the old command, and
--reversereads it as before: verified (a file from the base CLI restores exactly) -
Description: the name test checks published files, help and docs, the moved error in text and JSON, the share words with a real page, and the group's unknown-word list: verified by reading the test
-
Description: the writing rubric reports no narration, research, evidence or project status in the records: verified
-
Changeset: patch and
[experimental], and the guide and reference routes are renamed: verified -
Description: no internal context in public text: verified
-
.changeset/render-is-now-export.md: clear -
docs/specs/AST-017/spec.md,docs/architecture/cli-surface.md: clear (owner-approved for this head) -
docs/specs/AST-114-bases/spec.md: clear (table rows follow the name) -
packages/cli/clients/cli/lib/unknown-command.mjs: clear -
packages/cli/clients/cli/commands/experimental/index.mjs,packages/cli/clients/cli/lib/renamed-commands.mjs,packages/cli/clients/cli/index.mjs,packages/cli/clients/cli/lib/stray-option.mjs: clear -
packages/cli/clients/cli/commands/experimental/export.mjs,experimental-export.doc.mjs,experimental.doc.mjs,experimental-theme.doc.mjs: clear -
packages/cli/api/render/render.mjs,render.doc.mjs,render.type.mjs,_adapter.mjs: clear -
packages/cli/foundation/render/assets.mjs,component-map.mjs,css-cut.mjs,embedded-files.mjs,embedded-imports.mjs,esbuild-dependency.mjs,file-header.mjs,html-reader.mjs,markup-edits.mjs,page-host.mjs,page-worker.mjs,rebuild.mjs,render-page.mjs,source-block.mjs,ts-paths.mjs: clear -
packages/cli/foundation/response/error-codes.mjs,error-codes.doc.mjs,packages/cli/foundation/discovery/runner-allowlist.mjs: clear -
packages/cli/api/theme-edit/_catalog.mjs,_parts.mjs: clear (comments) -
packages/cli/assets/docs/tree/export-pages.doc.mjs,share-a-page.doc.mjs: clear -
packages/cli/README.md: clear (generated table in sync) -
Tests
packages/cli/test/export-name.test.mjs,packages/cli/test/global-local.test.mjs,packages/cli/clients/cli/lib/unknown-command.test.mjs,packages/cli/clients/cli/bases.test.mjs,packages/cli/clients/cli/command-result-coverage.test.mjs,packages/cli/clients/cli/commands/text-json-parity.test.mjs,packages/cli/foundation/doc-compiler/doc-loads.test.mjs,packages/cli/foundation/runtime/hosted-runtime.test.mjs,packages/cli/api/render/render.test.mjs,render.notes.test.mjs,render.interactive.test.mjs,hosted-packages.test.mjs: clear (pass at this head) -
.github/scripts/render-interaction-parity.browser.test.mjs,.github/scripts/template-noscript-first-paint.browser.test.mjs,apps/docsite/scripts/generate-landing-template-previews.mjs,apps/docsite/src/__tests__/route-resolution.test.ts: clear (comments and the route slug)
…ved error, and JSON lists only served subcommands
…d before the group names experimental export once
… word leaves a name another command reads to the name lookup, and drops only a leading experimental; FR27 scopes each exception's wording
…it; the changeset names both cases it leaves alone
3f350af to
709b653
Compare
|
/approve-spec 709b653 |
There was a problem hiding this comment.
Approved pending CI: six test-node shards are still running on this head, so wait for them before merging.
The rename, the moved error for the old name and the share-word suggestion behave as the changeset describes, and the record changes carry an engineering owner's approval for this exact head. A new commit needs a fresh /approve-spec.
Claims and files checked
Review mode: full; reason: rebase
-
Description: FR27 gains a share-word exception, the CLI architecture record's dispatch step says the same, and the bases record's tables follow the new name: verified
-
Description: the name test and the CLI suites pass: verified (247 files, 4,255 tests at this head); the two counts in the description (4,228 and 4,190) differ from each other and from this run
-
Description: agents in naming tests guessed
exportfirst: not checkable here (the author's research) -
Description and changeset: the command is renamed and still writes one HTML file and turns it back, with the same options: verified (options unchanged; a page round-trips exactly)
-
Description: every reference moves (command, doc, guide, help, notes, error suggestions, tests): verified; pending release notes and the changelog keep the old name as history
-
Description and changeset: the old name is no alias, exits 1 with
ERR_UNKNOWN_SUBCOMMANDand suggests the same run withexport, keeping leading options and quoting each word, in text and JSON: verified -
Description and changeset: an unknown top-level share word suggests
experimental export, labeled experimental, and never runs it, unless the next word is a name another command reads or the active base does not serve the command: verified (runs and a base test) -
Description: bare
packstill meansintegration pack: verified -
Description: FR27 gains one sentence beside the theme editor's exception: verified; the theme exception's wording is also scoped to sit beside it
-
Description and changeset: the text line
Render it again:is nowExport it again:: verified -
Description: the command stays under
experimental, and the record change is an engineering owner's decision: verified (approval for this head) -
Description and changeset: result types,
ERR_RENDER_*codes andrender()keep their names, and JSON fields that carry the command name sayexperimental export: verified (manifest, group help, suggestions) -
Description and changeset: a file written before the rename names the old command, and
--reversereads it as before: verified (a file from the previous CLI restores exactly) -
Description: the name test checks published files, help and docs, the moved error in text and JSON, the share words with a real page, and the group's unknown-word list: verified by reading the test
-
Description: the writing rubric reports no narration, research, evidence or project status in the records: verified
-
Changeset: patch and
[experimental], and the guide and reference routes are renamed: verified -
Description: no internal context in public text: verified
-
.changeset/render-is-now-export.md: clear -
docs/specs/AST-017/spec.md,docs/architecture/cli-surface.md: clear (owner-approved for this head) -
docs/specs/AST-114-bases/spec.md: clear (table rows follow the name) -
packages/cli/clients/cli/lib/unknown-command.mjs: clear -
packages/cli/clients/cli/commands/experimental/index.mjs,packages/cli/clients/cli/lib/renamed-commands.mjs,packages/cli/clients/cli/index.mjs,packages/cli/clients/cli/lib/stray-option.mjs: clear -
packages/cli/clients/cli/commands/experimental/export.mjs,experimental-export.doc.mjs,experimental.doc.mjs,experimental-theme.doc.mjs: clear -
packages/cli/api/render/render.mjs,render.doc.mjs,render.type.mjs,_adapter.mjs: clear -
packages/cli/foundation/render/assets.mjs,component-map.mjs,css-cut.mjs,embedded-files.mjs,embedded-imports.mjs,esbuild-dependency.mjs,file-header.mjs,html-reader.mjs,markup-edits.mjs,page-host.mjs,page-worker.mjs,rebuild.mjs,render-page.mjs,source-block.mjs,ts-paths.mjs: clear -
packages/cli/foundation/response/error-codes.mjs,error-codes.doc.mjs,packages/cli/foundation/discovery/runner-allowlist.mjs: clear -
packages/cli/api/theme-edit/_catalog.mjs,_parts.mjs: clear (comments) -
packages/cli/assets/docs/tree/export-pages.doc.mjs,share-a-page.doc.mjs: clear -
packages/cli/README.md: clear (generated table in sync) -
Tests
packages/cli/test/export-name.test.mjs,packages/cli/test/global-local.test.mjs,packages/cli/clients/cli/lib/unknown-command.test.mjs,packages/cli/clients/cli/bases.test.mjs,packages/cli/clients/cli/command-result-coverage.test.mjs,packages/cli/clients/cli/commands/text-json-parity.test.mjs,packages/cli/foundation/doc-compiler/doc-loads.test.mjs,packages/cli/foundation/runtime/hosted-runtime.test.mjs,packages/cli/api/render/render.test.mjs,render.notes.test.mjs,render.interactive.test.mjs,hosted-packages.test.mjs: clear (pass at this head) -
.github/scripts/render-interaction-parity.browser.test.mjs,.github/scripts/template-noscript-first-paint.browser.test.mjs,apps/docsite/scripts/generate-landing-template-previews.mjs,apps/docsite/src/__tests__/route-resolution.test.ts: clear (comments and the route slug)
Record change: AST-017 FR27 gains a named exception: a share word (export, render, share, bundle, snapshot, standalone) at the top level may suggest
experimental export, never run it; cli-surface step 3 says the same; AST-114's command table renames the row. Proof:test/export-name.test.mjsand the CLI suites (4,228 tests) pass.User need
People and agents who want a page as one shareable HTML file look for an export command. In naming tests, agents asked which command turns
page.tsxinto one self-contained shareable HTML file guessedastryx exportfirst in 12 of 12 runs, andrenderin none of 24 guesses; a separate guess-the-API test typedexport page.tsx --out page.html. The command's name is the first thing a caller must find.Problem and solution fit
astryx experimental renderbecomesastryx experimental export. It still writes a page as one self-contained HTML file, and--reversestill turns that file back into its page; its options and output are the same.experimental/export.mjs,experimental-export.doc.mjs), the guide (cli/experimental/export-pages), help, notes, error suggestions and tests.astryx experimental render …fails withERR_UNKNOWN_SUBCOMMANDand suggests the same run withexportin its place, keeping leading options (--json,--base) and quoting each word as typed (also as a JSON error with--json).export,render,share,bundle,snapshotorstandalonesuggestsastryx experimental exportand never runs it, unless the next word is a name another command reads (astryx export Buttonstill suggestsastryx component Button) or the active base does not serve the command. It is labeled experimental, andpackstill meansintegration pack.spec:AST-017FR27 gains one sentence for it beside the theme editor's exception: people and agents who type those words mean that command; it ends when the command graduates or goes away.experimental.Current specification
Experimental CLI command (
spec:AST-017FR27): its name may change in a patch release. FR27's new sentence is the maintainers' decision (11-17). JSON stays the contract: the result types stayrender.pageandrender.reverse, the error codes stayERR_RENDER_*, and therender()function keeps its name. The JSON fields that carry the command name (astryx manifest --json,astryx --json experimental --help, suggestion names) now sayexperimental export.Public delta and caller burden
astryx experimental render→astryx experimental export; a caller that runs the old name gets the new line to run.--reversereads it as before.Evidence
packages/cli/test/export-name.test.mjs: no published file, help text or docs page namesexperimental render(the changelog and the old-name mapping excepted); the old name answers the moved error in text and JSON, keeping leading options and quoting; the share words suggest the new name and never run it; an unknown experimental subcommand lists only the served ones.Writing rubric results
R1 narration: none; the FR27 sentence states when a stable answer may name the command, in the present tense.
R2 research: none in the record; the naming evidence stays in this description.
R3 evidence: none in the record.
R4 rejected alternatives: none added.
R5 change references: none.
R6 open questions: none touched.
R7 project status: none; the end condition is a lifecycle rule, as in the theme editor's exception.
Scope
Testing
pnpm exec vitest run --project node packages/cli/clients/cli packages/cli/test packages/cli/api/render(4,190 tests).pnpm check:knowledge.