Skip to content

docs(showcase/aimock): document fixture sync policy - #4015

Closed
jpr5 wants to merge 1 commit into
mainfrom
docs/aimock-sync-policy
Closed

jpr5 wants to merge 1 commit into
mainfrom
docs/aimock-sync-policy

Conversation

@jpr5

@jpr5 jpr5 commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds showcase/aimock/README.md — the missing operator doc for the showcase aimock fixture server. Action inventory reference: J6.

Covers:

  • What aimock is — deterministic LLM fixture server, deployed as a Railway sidecar in --proxy-only mode so unmatched requests fall through to the real provider.
  • Fixture layout — feature-parity.json (per-package test_e2e-showcase-on-demand fixtures for the 9 demos across 17 packages) vs smoke.json (minimal /api/smoke round-trip fixture).
  • Sync policy — fixtures are hand-maintained. No automated capture, no scheduled re-recording, no behavioral drift detection. Two load-time safety nets (Dockerfile --validate-on-load from fix(aimock): validate fixtures at load time to prevent runtime 500s #3973, CI aimock-fixtures.test.ts schema check) catch schema breakage but not semantic drift.
  • Add/update workflow — manual; includes local validation command and the per-package E2E runner script.
  • Drift risk — drift surfaces as flaky E2E failures, not as a dedicated signal. Doc enumerates symptoms + fix paths.
  • Related workflows — test_e2e-showcase-on-demand.yml (formerly showcase_aimock-e2e.yml), showcase_validate.yml, showcase_deploy.yml, showcase_smoke-monitor.yml.

Key finding

The sync policy is not automated. When a package's agent changes what it prompts the LLM with (new tool name, new prompt prefix), nothing in CI notices that the existing feature-parity.json fixture now matches the wrong request or returns a now-inappropriate response. The only signal is a downstream Playwright assertion failure, and a human has to trace the failure back to the fixture. Surfacing this explicitly is the main value of the doc; if we want real drift detection, the path is to wire aimock's --record mode into a periodic workflow that re-captures against live providers and diffs — but that is not built today.

Test plan

  • Local: pnpm --filter @copilotkit/showcase-scripts test aimock-fixtures passes (no fixture changes)
  • Doc renders cleanly on GitHub
  • Reviewer spot-checks that the described policy matches reality (no hidden automation missed)

Adds showcase/aimock/README.md covering: what aimock is and why the
showcase uses it; the roles of feature-parity.json and smoke.json;
the hand-maintained sync policy and its two layers of load-time
schema validation (Dockerfile --validate-on-load + CI fixture test
from #3973); how to add/update a fixture; drift risk surfaces and
response; and the CI workflows that exercise the fixtures.
@vercel

vercel Bot commented Apr 16, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
chat-with-your-data Ready Ready Preview, Comment Apr 16, 2026 9:22pm
docs Ready Ready Preview, Comment Apr 16, 2026 9:22pm
form-filling Ready Ready Preview, Comment Apr 16, 2026 9:22pm
research-canvas Ready Ready Preview, Comment Apr 16, 2026 9:22pm
travel Ready Ready Preview, Comment Apr 16, 2026 9:22pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📣 Social Copy Generator

Generate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.

  • Generate social media copies

@jpr5

jpr5 commented Apr 16, 2026

Copy link
Copy Markdown
Contributor Author

Consolidated into #4021 (Bundle 5).

@jpr5 jpr5 closed this Apr 16, 2026
@jpr5
jpr5 deleted the docs/aimock-sync-policy branch April 16, 2026 22:36

This branch was successfully deployed

5 active deployments
Preview – research-canvas — 41668711 Deployed Apr 16, 2026 by vercel[bot]
Preview – travel — 41668711 Deployed Apr 16, 2026 by vercel[bot]
Preview – docs — 41668711 Deployed Apr 16, 2026 by vercel[bot]
Preview – chat-with-your-data — 41668711 Deployed Apr 16, 2026 by vercel[bot]
Preview – form-filling — 41668711 Deployed Apr 16, 2026 by vercel[bot]
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