Skip to content

feat(cli): deprecate the astryx layout command group (DEP-0006) - #7136

Merged
josephfarina merged 1 commit into
mainfrom
deprecate-layout-command
Oct 7, 2026
Merged

josephfarina merged 1 commit into
mainfrom
deprecate-layout-command

Conversation

@josephfarina

@josephfarina josephfarina commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Deprecates the astryx layout command group (expand, check, grammar) per spec:AST-017/DEP-0006. Joey's word: "oh also removing layout from the cli" (2026-10-07 13:22 PT).

What users see

  • Human mode: each invocation of astryx layout expand|check|grammar prints a one-time stderr warning naming the replacement commands. Canonical stdout, exit codes, and behavior are unchanged.
  • JSON mode: the response envelope carries a meta.deprecation object with id, cleanup, and replacement. The type, data, and apiVersion fields are unchanged.

Replacement pointer

Old New Why
astryx layout expand "<expr>" astryx build "<idea>" → astryx template <name> <path> build is the recommended entry point (agent-docs WORKFLOW). Templates provide production-quality starter code; the XLE expression language was an intermediate notation.
astryx layout check "<expr>" Not needed Checking an expression only made sense to validate input for expand.
astryx layout grammar Not needed The grammar described the language expand and check consumed.
Layout principles astryx docs layout The guide survives the command removal and is being split into focused guides.

Changes

  1. AST-017 spec: adds DEP-0006 and CLN-0006 records (deprecation + cleanup)
  2. CLI command (layout.mjs): stderr warning (human), meta.deprecation metadata (JSON)
  3. Command docs: deprecated field on all four CommandDocs (group + 3 subcommands)
  4. Agent docs: stops recommending astryx layout as a command to run; keeps the docs topic reference
  5. Changeset: [feat] / patch

What is NOT changed

  • The layout guide (astryx docs layout) — unaffected; a separate PR splits it into focused guides
  • The API exports (layoutExpand, layoutCheck, layoutGrammar) — still exported from @astryxdesign/cli
  • Canonical stdout, exit codes, and response schemas — identical to 0.6.5
  • The experimental.xle.components config surface — removal is deferred to CLN-0006

Manifest comparison against published 0.6.5

Response types layout.expand, layout.check, layout.grammar are unchanged. The API barrel and api/index.mjs exports are identical.

Tests

  • Full CLI suite: 5,839 passed (366 test files, 2 expected fail)
  • Layout-specific: 29 API tests + 19 CLI command tests — all pass
  • check:changesets: valid (patch mode, 99 changesets)
  • check:knowledge: aligned
  • copyright, sync-exports, readme:check, cli-api-types-verify, typecheck:json-api: all pass

Writing rubric results

  • R1: present tense, no "today"/"before this record"
  • R2: no research in the record
  • R3: evidence names facts (Joey's word, CLI surface), not PRs
  • R4: no rejected alternatives in the DEP record (it is not a DEC)
  • R5: no PR/issue refs in the record
  • R6: no open questions with listed options

@vercel

vercel Bot commented Oct 7, 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 Oct 7, 2026 11:10pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🔄 In progress (for maintainers only) Oct 7, 2026, 11:35 PM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 7, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR

🧪 Sandbox Preview

View Sandbox for this PR

No new or modified components detected.

Bundle Size Summary

No component packages changed.

Accessibility Audit

Status: No accessibility violations detected.

Visual Regression

20 of 436 shot(s) changed.

A change here is a question, not a failure: check whether the after is the
picture you intended. Record that review on the PR. Baseline maintenance is an
explicit dispatch of CI; this report never rewrites the baseline or adds a release gate.

component story theme mode pixels
Selector Indicator Space Bottom Sheet Narrow End RTL neutral light 754,077
Selector Indicator Space Bottom Sheet Wide Start neutral light 740,188
Chat Full AI Chat probe light 155,733
Chat Full AI Chat probe dark 155,005
Chat Default neutral dark 33,205
Chat Default neutral light 32,876
Chat Empty State probe light 23,531
Chat Empty State probe dark 22,622
ChatAutoScroll Scroll Behavior Comparison neutral dark 15,378
ChatAutoScroll Scroll Behavior Comparison neutral light 14,107
Chat With Attachments probe light 13,229
Chat With Attachments probe dark 11,065
SideNav Resizable in AppShell probe dark 3,208
SideNav Resizable in AppShell probe light 3,208
Markdown Default probe dark 897
Markdown Default probe light 897
Markdown Default neutral dark 882
Markdown Default neutral light 858
FileInput Default neutral light 44
FileInput Default neutral dark 42

Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@josephfarina
josephfarina force-pushed the deprecate-layout-command branch 3 times, most recently from 81a35e7 to c5b42b6 Compare October 7, 2026 21:09
@josephfarina josephfarina changed the title feat(cli): deprecate the astryx layout command group (DEP-1) feat(cli): deprecate the astryx layout command group (DEP-0006) Oct 7, 2026
@josephfarina
josephfarina force-pushed the deprecate-layout-command branch 2 times, most recently from 328fa4e to f747571 Compare October 7, 2026 21:52

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

Thanks for staging this carefully — old invocations, canonical stdout, and exit codes all stay intact, and the pointers to astryx build, astryx template, and astryx docs layout are consistent throughout.

Approval needs a maintainer decision first. The governing release spec on main explains how a deprecation must be staged, but it does not yet decide that the astryx layout group itself is deprecated — that decision currently exists only in this PR. A maintainer needs to provide or identify the governing spec for deprecating this command group (for example, by settling the DEP-0006 decision in the governing spec) before this can be approved.

While that is pending, a few actionable items are already visible:

  • The new deprecated field on the four command docs does not appear anywhere a reader looks: --help, the capability manifest, and astryx docs output all omit it, so the deprecation is only discoverable by running the command. Wiring that field into help, the manifest, and docs (with a test) would fix it.
  • No test yet proves the new behaviour — the stderr warning, the JSON deprecation metadata, or that stdout and exit codes are unchanged for a deprecated invocation. Adding CLI tests for those would lock it in.
  • JSON error responses (for example an empty or unparsable expression) return an error envelope without the deprecation metadata, so the metadata currently appears only on successful results. Either carrying it there too, or scoping the wording to successful results, would make the claim exact.
  • The DEP-0006 record omits the direct-authority field the staging spec requires for a deprecation record; adding it once the maintainer decision above is settled would complete the record.

None of this asks you to remove or split the change; it can move forward once the maintainer decision above is settled.

[Automated review]

@josephfarina
josephfarina force-pushed the deprecate-layout-command branch 2 times, most recently from 4256dee to 511b006 Compare October 7, 2026 22:32
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 4217508

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Oct 7, 2026
@josephfarina
josephfarina merged commit 68795f5 into main Oct 7, 2026
42 checks passed
@github-actions
github-actions Bot deleted the deprecate-layout-command branch October 8, 2026 06:25

This branch was successfully deployed

1 active deployment
Preview — 4217508e Deployed Oct 7, 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