Skip to content

Spec draft: every integration item owns one typed descriptor (AST-039) - #6511

Closed
josephfarina wants to merge 1 commit into
mainfrom
docs/descriptor-spec
Closed

josephfarina wants to merge 1 commit into
mainfrom
docs/descriptor-spec

Conversation

@josephfarina

@josephfarina josephfarina commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Decided (2026-09-24): per-item, with no central catalog in any form. Each item's same-stem .doc.mjs is the only source of its metadata and options; the integration manifest only locates roots. The 0.6 theme catalog (themes/manifest.json) broke this rule and reached stable 0.6.3; #6498 removes it as a breaking change, with a codemod. The new FR11 forbids the pattern outright, and DEC-4 records the decision. It supersedes AST-035 DEC-1 (#6265's manifest map of template replacements): a template's replaces moves into its own descriptor.

The spec says this explicitly on purpose, so that no one adds a central catalog again by accident.

The record stays authority: draft until it is approved.

Numbering: rebased onto #6604, which added INV20 to INV23, so the descriptor invariant is INV24.

What this PR adds:

  • docs/specs/AST-039/spec.md: the draft record (owner: josephfarina), including FR11 (never catalog items centrally) and DEC-4.
  • INV24 in docs/architecture/cli-surface.md: every discoverable integration item owns one typed descriptor, and nothing catalogs items.
  • The typed-doc rule, the no-catalog rule, a checklist line, and a review smell in docs/contributing/cli-conventions.md.
  • A pointer in AGENTS.md for integration contribution work.

The code this record describes (typed ThemeDoc descriptors that replace the theme catalog, the codemod, and .doc.mjs scaffolds) is in #6498. This PR changes no runtime behavior and no published package, so it has no changeset.

Scope

  • This PR has one primary intent: record the per-item descriptor rule.
  • Public text and artifacts contain no internal Meta context.

@vercel

vercel Bot commented Sep 24, 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 Sep 24, 2026 5:29pm UTC

Request Review

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

astracat-bot Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
📝 Draft — not reviewed automatically (for maintainers only) Sep 24, 2026, 5:59 PM UTC

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Preview availability: Storybook is not ready on the exact-head Vercel preview. Sandbox was not published for this CI run.

No new or modified components detected.

Bundle Size Summary

No component packages changed.

Accessibility Audit

Status: No accessibility violations detected.

Visual Regression

25 of 420 shot(s) changed. View the report

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
Chat Full AI Chat probe light 42,708
Chat Empty State probe light 42,708
Chat Full AI Chat probe dark 41,786
Chat Empty State probe dark 41,786
Slider Default probe light 15,617
Slider Default probe dark 15,615
Chat With Attachments probe light 12,964
Chat With Attachments probe dark 12,114
InputGroup With Typeahead probe light 11,012
InputGroup With Typeahead probe dark 9,189
ComplexSelector Tree list with search probe light 6,245
TextArea Vertical Form Alignment probe light 5,634
ComplexSelector Tree list with search probe dark 5,602
TextArea Vertical Form Alignment probe dark 5,047
ComplexSelector Fruit ripeness selector neutral light 4,007
ComplexSelector Fruit ripeness selector neutral dark 3,825
ToggleButton Group Single probe dark 1,538
ToggleButton Group Single probe light 1,538
MediaTheme On Dark neutral dark 838
Banner Collapsible Content (Expanded) probe dark 92

and 5 more.

Chat — Full AI Chat — probe light
BeforeAfterDiff
Before visual regression frame After visual regression frame Pixel difference frame
Chat — Empty State — probe light
BeforeAfterDiff
Before visual regression frame After visual regression frame Pixel difference frame
Chat — Full AI Chat — probe dark
BeforeAfterDiff
Before visual regression frame After visual regression frame Pixel difference frame

Generated by PR Enrichment workflow | View full report

…hing catalogs items

Adds the AST-039 draft record, INV24 in the CLI architecture, the typed-doc and no-catalog rules in the CLI conventions, and a pointer in AGENTS.md. FR11 forbids a catalog file under a root, a per-item map or list in the integration manifest, and a hand-synced registry, for every kind; DEC-4 records why (the 0.6 theme catalog reached stable 0.6.3 and is removed as a breaking change with a codemod) and supersedes AST-035 DEC-1. Rebased onto the AST-042 invariants, so the descriptor invariant is INV24.
@josephfarina

Copy link
Copy Markdown
Contributor Author

Folded into #6498 now that the catalog question is decided, so the spec ships with the code it describes. The same text is the commit "Record the per-item descriptor rule this change follows (AST-039)" there, and #6498's spec-owner approval covers it. Closing to keep one PR.

@github-actions
github-actions Bot deleted the docs/descriptor-spec branch September 25, 2026 06:23

This branch was successfully deployed

1 active deployment
Preview — 87bdd94f Deployed Sep 24, 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. needs:spec-owner-review Current knowledge records await owner approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant