Repository navigation
ci(showcase): guard against dead-on-load demos (runtime-route wiring check) [OSS-451 prevention] - #5884
Merged
Conversation
…check) OSS-451 shipped because nothing linked a demo page's CopilotKit runtimeUrl to the existence of the /api route it names. The only automatic pre-merge gate for showcase/** is a Docker build, which compiles a page that references a non-existent route just fine (runtimeUrl is an unchecked string) — so the page-404-on-load class was invisible. Add a static validator (validate-runtime-routes.ts) that, for every SHIPPED demo (a demo listed in its integration's manifest `features`), asserts its runtimeUrl resolves to a real route dir under src/app/api. Unshipped / experimental demos (not in `features`) and not_supported_features are skipped, so incomplete placeholders don't fail the gate — but promoting one into `features` immediately starts enforcing it. A baseline file can grandfather pre-existing violations; the fleet is currently clean (0). Wire it into a new pre-merge workflow (showcase_validate-wiring.yml) that runs on every showcase/integrations PR alongside the build check. Add it to branch-protection required checks to make it blocking. Regression test proves it flags the exact OSS-451 shape (shipped demo, missing route) while passing existing/base routes and skipping unshipped. Verified: npm run validate-routes -> clean fleet-wide; removing the 3 OSS-451 routes -> flags exactly those 3; full showcase/scripts vitest suite (2151 tests) green. Refs OSS-451
contextablemark
requested review from
jpr5,
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
July 8, 2026 21:31
Contributor
📣 Social Copy GeneratorGenerate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.
|
Contributor
Production Digest-Pinning AuditAll 41 services digest-pinned. Run 2026-07-09 23:06:08 PDT — 0 finding(s). |
Contributor
|
Size Change: 0 B Total Size: 1.17 MB ℹ️ View Unchanged
|
@copilotkit/a2ui-renderer
@copilotkit/agentcore-runner
@copilotkit/angular
@copilotkit/channels
@copilotkit/channels-discord
@copilotkit/channels-intelligence
@copilotkit/channels-slack
@copilotkit/channels-teams
@copilotkit/channels-telegram
@copilotkit/channels-ui
@copilotkit/channels-whatsapp
@copilotkit/core
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/react-textarea
@copilotkit/react-ui
@copilotkit/runtime
@copilotkit/runtime-client-gql
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-components
@copilotkit/web-inspector
commit: |
tylerslaton
approved these changes
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a pre-merge guard that prevents the OSS-451 dead-on-load failure class from recurring:
showcase/scripts/validate-runtime-routes.ts— static validator +validate-routesnpm scriptshowcase/scripts/__tests__/validate-runtime-routes.test.ts(+ fixture integration) — regression coverage.github/workflows/showcase_validate-wiring.yml— runs it on everyshowcase/integrations/**PRWhy
OSS-451 shipped because nothing linked a demo page's
runtimeUrlstring to the existence of the/apiroute it names. The only automatic pre-merge gate forshowcase/**isshowcase_build_check.yml— a Docker build — and a page that references a non-existent route compiles perfectly cleanly. So three demos went dead-on-load in production undetected (the e2e specs that would have caught it run on-demand only, post-deploy, and exclude TS-only Mastra).How it works
For every shipped demo — a demo directory whose slug is in its integration's
manifest.yamlfeatures— the validator asserts everyruntimeUrlit declares resolves to a real route dir undersrc/app/api/.features) andnot_supported_featuresare skipped — they aren't claimed to work, so they don't fail the gate. Promoting one intofeaturesimmediately starts enforcing it (this is the safety net for the still-unshippeddeclarative-hashbrown/declarative-json-render).validate-runtime-routes.baseline.jsoncan grandfather pre-existing violations (same pattern as the pin-driftfail-baseline.json). The fleet is currently clean — 0 violations, no baseline needed./api/copilotkitroute and catch-all routes (copilotkit-auth,copilotkit-voice) by asserting the top-level route dir exists.Verification
npm run validate-routes→ clean across all 21 integrations.showcase/scriptsvitest suite: 2151 tests green.contents: readonly; no secrets.Follow-up for a maintainer
Add "Showcase: Runtime-Route Wiring (PR)" to the branch-protection required checks so it blocks merge like the build check does.
🤖 Generated with Claude Code