Skip to content

docs(cli): give every doc a named home; authoring owns integration authoring - #7835

Merged
josephfarina merged 5 commits into
mainfrom
josephfarina/every-doc-has-a-home
Oct 22, 2026
Merged

josephfarina merged 5 commits into
mainfrom
josephfarina/every-doc-has-a-home

Conversation

@josephfarina

@josephfarina josephfarina commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What users see

  • astryx docs lists three named homes where the catch-all used to be: Authoring, Guides, and Foundations. The generated "Unorganized" level is gone, and no doc was dropped.
  • Everything an integration author reads now lives under one top-level home, astryx docs authoring: the guides that were cli/integrations/… and the field reference that was the flat authoring topic (now authoring/field-reference).
  • astryx docs authoring <name> still opens one field-reference section, through the namespace section read (AST-046 FR6). Typed links to an authoring schema still open its section.
  • The loose topics keep their names. astryx docs getting-started, astryx docs color, and the rest still open; their Up move is now astryx docs guides or astryx docs foundations, picked by the category each topic already declares.
  • An old cli/integrations/… route is unknown, and its error names the new route first: Unknown topic "cli/integrations/quick-start". It moved to "authoring/quick-start", followed by the usual suggestions (FR6). There is no alias: AST-017 FR45 makes docs routes mutable data.
  • Docsite: one Authoring page in the Guide group holds what the CLI Integrations, Writing docs, and Authoring Reference pages held. Every old slug (/docs/cli-integrations, /docs/cli-integrations-*, /docs/cli-writing-docs) redirects to its section there.
  • The managed agent-docs block names docs authoring on its own line, so docs cli no longer claims integration authoring.

The repo check

packages/cli/api/docs/docs-homes.test.mjs fails when:

  • a Core flat topic declares no guide or foundations category. Deleting the category from principles makes it fail and name principles;
  • a catch-all level comes back;
  • an old cli/integrations route stops naming its new one.

Records

  • AST-046: FR9 and FR12 now say authoring owns integration authoring and every Core doc has a named home. FR13 keeps the former topic's keys unique (a test reads all 19 through astryx docs authoring <key>), while integration guides may share their own keys. DEC-8 records the maintainer decision, and OQ1 (where the authoring docs live) is answered. Draft AST-047 FR2 names the new levels. The affects_consumer_docs route lists in the other specs move with it. One stale guide route in the template-authoring architecture record is corrected.
  • One [docs] patch changeset. Under AST-017 FR45 a docs route move is nonbreaking, and the changeset names each replacement route.

Writing rubric results

Run over every record this PR touches: spec:AST-046, draft spec:AST-047, architecture:cli-surface, architecture:template-authoring, and the affects_consumer_docs lists of AST-031, AST-035, AST-039, AST-040, AST-050 and AST-051.

  • R1 narration: DEC-8 named the routes its guides "were"; rewritten in the present tense ("authoring holds the integration guides and the field reference"). FR9, FR12, FR13, INV25, INV26 and AST-047 FR2 state the system. Current-state impact keeps its change list, as that section does.
  • R2 research in the record: none.
  • R3 evidence naming a change: none; the FR12 and FR14 verification rows name tests and behavior.
  • R4 rejected alternatives over one line or outside a decision: one, inside DEC-8, one line.
  • R5 pull request or issue references remaining: none in the changed text.
  • R6 ruled open questions still listing options: OQ1 (where the authoring docs live) is answered by DEC-8 and removed; OQ2 stays open.

Testing

  • New docs-homes.test.mjs (3 tests). The tests that named the old routes or the old level are updated, and five goldens are refreshed: Up guides in place of unorganized, plus the new top-level list.
  • pnpm check:repo, check:knowledge, check:changesets, changeset-coverage against v0.7.2, typecheck:strict, and eslint on the changed files: all pass.
  • Docsite: generate + vitest, all pass. The generated registry has one Authoring page (212 sections), no cli-integrations or cli-writing-docs pages, and every old slug redirects into the page.
  • By hand: astryx docs, astryx docs authoring, astryx docs authoring integration, astryx docs cli/integrations/ship, and astryx doctor (Authoring docs: all 19 schemas readable; Docs tree: no problems).
  • Search: authoring and make an integration both rank the authoring namespace first, and integration manifest fields ranks the field reference's integration section first.

Not in this PR

Docs outside this repository that still name the old cli/integrations routes are tracked separately.

@vercel

vercel Bot commented Oct 21, 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 22, 2026 1:23am UTC

Request Review

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

astracat-bot Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Oct 22, 2026, 1:44 AM UTC

@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Oct 21, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Oct 21, 2026
@github-actions

github-actions Bot commented Oct 21, 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

46 of 486 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 753,933
Selector Indicator Space Bottom Sheet Wide Start neutral light 740,072
Chat Full AI Chat probe light 230,823
Chat Full AI Chat probe dark 229,805
RichTextEditor Markdown parity: side by side probe dark 94,866
RichTextEditor Markdown parity: side by side probe light 89,762
Collapsible Dividers probe dark 66,445
Collapsible Dividers probe light 66,445
Chat Default neutral dark 36,304
Chat Default neutral light 35,767
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,406
Chat With Attachments probe dark 11,232
ProgressBar With Target Mark probe dark 7,895
ProgressBar With Target Mark probe light 7,895
Markdown Default neutral dark 7,573
Markdown Default neutral light 7,566

and 26 more.


Generated by PR Enrichment workflow | Storybook | Sandbox | 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.

This pull request is on hold for an engineering owner. It intentionally rewrites the current spec:AST-046 (FR2, FR9, FR11, FR12, and DEC-8 in place of OQ1) and architecture:cli-surface INV26, so approval needs an owner to approve that spec change on this exact head, or to ask for changes to the records. Separately, three places still disagree with the branch and need a fix:

  • The moved-route error suggests only the new route, but AST-046 FR6 still requires the children of the deepest namespace the route reaches; amend FR6 or keep those suggestions.
  • INV25 and doctor's misfiled-doc messages in cli-self-docs.mjs still name astryx docs authoring as the list of field-reference sections, which now lives at astryx docs authoring/field-reference.
  • Guides below authoring share three section keys (global-mode, run-the-add-command, install-the-packed-package), which FR13 forbids after a split; scope the rule or give those sections unique ids.

[Automated review]

Comment thread packages/cli/api/docs/_adapter.mjs Outdated
if (moved) {
return new AstryxError(
`Unknown topic "${String(topic)}". It moved to "${moved.route}"${notLoaded(catalog)}`,
[{name: moved.route, reason: moved.summary}],

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.

This single suggestion replaces the ones AST-046 FR6 still requires: "An unknown route MUST fail with ERR_UNKNOWN_TOPIC and suggest the children of the deepest namespace the route reaches". For cli/integrations/quick-start that is cli/component-lookups, cli/host-entry, cli/commands and cli/api, which cli/integrations/no-such-guide still gets. Either amend FR6 in this PR so a moved route suggests its new route, or keep FR6's suggestions after the moved one.

so every doc has a home in the tree.
Every flat topic sits in the generated level for its category, Guides or
Foundations, under its own name, so every doc has a named home in the tree.
Everything an integration author reads lives under `authoring`.

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.

INV25 above (line 491) still says authoring docs "are sections of astryx docs authoring and appear in its list". On this branch that command lists the guides and the field reference, and astryx docs authoring --index returns the namespace with no sections. Amend INV25 with this edit to name astryx docs authoring/field-reference; the same pointer is in packages/cli/foundation/discovery/cli-self-docs.mjs lines 44, 495 and 501.

doc MUST have a route under `cli/commands`, and every function, schema, and
enum doc in the `cli/api` group a route under `cli/api/<kind>s`. The
integration guides MUST live under `authoring`, one short guide per task,
beside the field reference whose sections `astryx docs authoring <name>`

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.

Turning the flat authoring topic into this namespace is an FR13 split, and FR13 says "No two guides below the namespace share a section key". The moved guides share global-mode (14 guides), run-the-add-command (2) and install-the-packed-package (2), so astryx docs authoring global-mode is ambiguous. Scope that rule to the split topic's own sections in this rewrite, or give those sections unique ids.

…rence where doctor lists sections; scope FR13 keys
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 1bf96e0

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Oct 21, 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.

The move to one authoring home, the Guides and Foundations levels and the moved-route errors all match the owner-approved records, and CI is green. One small fix remains before this can be approved: three record lines still describe the old layout.

  • docs/specs/AST-046-docs-tree/spec.md Current-state impact says /docs/cli-integrations redirects to the first cli guide, but it now redirects to /docs/authoring.
  • The FR14 verification row in the same record still lists "the Unorganized level", which FR12 no longer has.
  • Draft spec:AST-047 FR2 still sends a flat topic's Up to "the Unorganized level".

A new commit will need a fresh /approve-spec on its head.

[Automated review]

Foundations, as FR12 states;
- a flat topic that becomes a namespace keeps its unambiguous reads inside
its own package, as FR13 and FR6 state;
- the docsite reads the tree through `docs()`: each root namespace is one page

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.

This bullet still ends "and /docs/cli-integrations redirects to the first of them" (line 286), but on this branch /docs/cli-integrations redirects to /docs/authoring (apps/docsite/scripts/docs-pages.mjs, ROOT_PAGE_ALIASES). Suggest naming the Authoring page there.

group MUST be the namespace's own `category`; without one, `foundations`
when every guide below it is a foundations doc, and `guide` otherwise. A
namespace with no guide below it, such as the Unorganized level (FR12), has
namespace with no guide below it, such as a generated topic level (FR12), has

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.

FR14 now says "a generated topic level", but its verification row (line 304) still lists "the Unorganized level" among the representative states, and the docsite test it describes now checks the foundations level. Draft spec:AST-047 FR2 (line 48) has the same leftover.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 0dec58d

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

The move to one authoring home, the Guides and Foundations levels and the moved-route errors match the owner-approved records, every check passes, and the three record lines flagged on the previous head are fixed. One thing remains before approval: the description changes ten knowledge records but has no ## Writing rubric results section, which docs/architecture/knowledge-contracts.md asks every record-changing pull request to report before review. Please add one line per rubric item R1–R6 from docs/contributing/spec-writing.md (the specification.md pull request template carries the section); a description edit needs no new commit, so the current /approve-spec still applies.

[Automated review]

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 6bde770

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

This is ready to merge: moving every integration guide and the field reference under one authoring home, the new Guides and Foundations levels, and the moved-route errors all match the owner-approved spec:AST-046 and architecture:cli-surface records on this head, and the description now reports the writing-rubric results. The docs, doctor, search and CLI tests pass, old cli/integrations routes name where they moved, and old docsite addresses redirect into the new Authoring page. Nothing further is needed from you.

[Automated review]

This branch was successfully deployed

1 active deployment
Preview — 6bde7704 Deployed Oct 22, 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:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant