Skip to content

fix(examples): derive assemble-examples list from the capability registry (drift guard)#626

Open
blove wants to merge 1 commit into
mainfrom
claude/harden-examples-deploy-drift
Open

fix(examples): derive assemble-examples list from the capability registry (drift guard)#626
blove wants to merge 1 commit into
mainfrom
claude/harden-examples-deploy-drift

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented Jun 8, 2026

Summary

Follow-up to #619. The production smoke revealed the three new AG-UI examples never deployed — partly because scripts/assemble-examples.ts (which stages apps into the threadplane-examples Vercel deploy) hardcoded the capability list and had drifted: tool-views, json-render, and a2ui were added to the capability registry but never to this list, so their frontends 404'd.

This derives the staged list from the capability registry — the documented single source of truth ("Used by serve, build, test, and deploy scripts"), already used by the Railway deploy generator. Now a new cockpit cap is automatically included in the examples deploy; the list can't drift again.

Verified

  • Derives all 36 caps, incl. ag-ui interrupts, streaming, tool-views, json-render, a2ui.
  • The ../apps/cockpit/scripts/capability-registry import resolves; the script runs past list derivation (the build-output guard then fires only because --skip-build skipped the 36-app build, which production performs first).

Not covered here (your infra)

The threadplane-examples Vercel project's build trigger / Ignored Build Step is a dashboard setting (the repo's root vercel.json builds the website, a different project). It didn't rebuild on #619's scripts-only change — so a manual redeploy of threadplane-examples is still needed to publish the 3 frontends; this PR just ensures the contents are correct and drift-proof.

🤖 Generated with Claude Code

…stry

The examples deploy (threadplane-examples) hardcoded which apps to stage,
and drifted from the registry — tool-views/json-render/a2ui were added to
the registry but never to this list, so they 404'd in production. Derive the
staged-example list from the capability registry (the documented single
source of truth, already used by the Railway deploy generator) so a new cap
can never be silently dropped from the frontend deploy again.

Verified: derives all 36 caps incl. the 3 new ag-ui examples; import resolves
and the script runs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@blove blove enabled auto-merge (squash) June 8, 2026 01:19
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 8, 2026

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

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview, Comment Jun 8, 2026 1:23am

Request Review

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