Skip to content

feat: one route family — every capability is a docs page - #1010

Merged
blove merged 12 commits into
mainfrom
blove/docs-one-route-family
Sep 5, 2026
Merged

feat: one route family — every capability is a docs page#1010
blove merged 12 commits into
mainfrom
blove/docs-one-route-family

Conversation

@blove

@blove blove commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Part A of docs/superpowers/specs/2026-09-04-docs-workspace-unification-design.md (plan: docs/superpowers/plans/2026-09-04-docs-workspace-unification.md).

What

  • Every registry capability now publishes a unique docs path; the PRIMARY_CAPABILITY_BY_DOCS_PATH override table is gone and the manifest validator rejects a duplicate or missing docs path.
  • The six formerly workspace-only capabilities get their own guides: LangGraph guides/durable-execution; AG-UI guides/client-tools, guides/tool-views, guides/json-render (titled Generative UI), guides/subagents; Render guides/repeat-loops.
  • The /workspace/[product]/[topic] route is deleted (old URLs 404 by design), WebsiteWorkspace always uses documentation labels, and WorkspaceIdentity.docsPath is non-nullable.
  • Mirrored docsPath constants in the twelve example descriptors and the generated deployments/ag-ui-dev artifacts are updated so both drift gates stay green.
  • The cockpit deploy smoke and the production smoke drop their workspace-only cases (398 probes); cockpit-shell joins the CI test list.
  • The docs index's Run link is now derived only from a mapped resolution (a moved docs path disables it instead of linking to a 404), with a unit test.

Verification

Website unit suite 1212/1212; cockpit, cockpit-registry, cockpit-shell, workspace-react green; workflow guards 41/41; website build succeeds with no workspace routes emitted; npx nx e2e website green locally; deployments regeneration is a no-op.

Follow-ups: Part B (surface rename), Part C (redirect service retirement), Part D (Vercel/DNS/secrets cleanup).

🤖 Generated with Claude Code

blove and others added 11 commits September 5, 2026 09:03
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Six capabilities used to share a docs page with a sibling
(durable-execution/persistence, ag-ui tool-views/json-render/
client-tools/subagents, render repeat-loops/specs) and relied on
PRIMARY_CAPABILITY_BY_DOCS_PATH to pick a primary owner for the
route. Give each its own docs path instead, so the override table
and its validate-manifest ambiguity check can go away.

The six new docs paths (e.g. /docs/langgraph/guides/
durable-execution) do not have pages yet - that lands in a
follow-up task alongside removing the /workspace route.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The durable-execution capability fixture in
workspace-presentation.spec.ts still pinned the old shared docs
path (/docs/langgraph/guides/persistence) that the registry no
longer publishes for it. Update the expectation to
/docs/langgraph/guides/durable-execution, its own path. No other
cockpit-shell/workspace-react fixture pins one of the other five
moved capabilities' old shared paths (the one remaining hit on
/docs/render/guides/specs belongs to spec-rendering, the primary
sibling, and is unaffected).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ar descriptors

The Python siblings for the six capabilities that got their own docs
path (durable-execution, ag-ui tool-views/json-render/client-tools/
subagents, render repeat-loops) were updated, but each Angular
mirror in cockpit/*/*/angular/src/index.ts still carried the old
shared path. The Website drift guard
(apps/website/src/lib/cockpit-docs-links.spec.ts) scans every
cockpit/**/src/index.ts, so the Angular copies needed the same
update.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…h move

deployments/ag-ui-dev/deps/** is a generated mirror of the
cockpit/ag-ui/*/python sources. The docsPath moves for tool-views,
json-render, client-tools, and subagents (plus the earlier prettier
reflow of two of those sources) left the generated copies stale,
which .github/workflows/deploy-ag-ui.yml would have caught post-merge
via `git diff --exit-code -- deployments/ag-ui-dev/`. Regenerated with
scripts/generate-ag-ui-deployment-config.ts.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…moke and wires cockpit-shell into CI

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…nerative UI title

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…s page

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…swap; drop dead workspace helpers

- resolveDocsWorkspace never returns null (a miss resolves docs-only), so
  the docs index's Run href guard is now gated on resolution.kind ===
  'mapped' instead of a dead null check, moved into a lib module with a
  unit test that would have caught the regression
- drop dead ?? fallbacks on the now-nonnullable WorkspaceIdentity.docsPath
  in workspace-presentation.ts
- delete the unused getWebsiteWorkspaceHref helper
- fix WebsiteWorkspace.spec.tsx tests that override docsSlot: undefined
  even though the docs route they model always supplies a slot
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
threadplane Ready Ready Preview Sep 5, 2026 4:38pm UTC

Request Review

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

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Claude finished @blove's task in 0s —— View job


I'll analyze this and get back to you.

…th; docsPath is non-nullable

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Claude finished @blove's task in 0s —— View job


I'll analyze this and get back to you.

@blove
blove merged commit 0cffb70 into main Sep 5, 2026
43 checks passed
@blove
blove deleted the blove/docs-one-route-family branch September 5, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant