Skip to content

docs(showcase): correct aimock RAILWAY.md fixtures-recursion claim - #5702

Closed
jpr5 wants to merge 1 commit into
mainfrom
docs/showcase-aimock-railway-fixtures-recursion
Closed

jpr5 wants to merge 1 commit into
mainfrom
docs/showcase-aimock-railway-fixtures-recursion

Conversation

@jpr5

@jpr5 jpr5 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

What was wrong

showcase/aimock/RAILWAY.md §5 (introduced by #5683) claimed:

"The --fixtures flags must point at the three baked-in subdirectories, not the /fixtures parent. A single --fixtures /fixtures does NOT recurse into the subdirectories — it loads nothing useful and every request falls through to the proxy. Pass each of /fixtures/shared, /fixtures/d4, and /fixtures/d6 explicitly."

This is empirically false for every deployed aimock version. The deployed loader (/app/dist/fixture-loader.js, loadFixturesFromDir) recurses fully into every subdirectory at any depth. The false "one level only" behavior matches the locally-installed dev dep @copilotkit/[email protected] (used only for test tooling, NOT deployed) — that mismatch is the likely source of the bad inference. #5683 had a structural-only verification section with no runtime test.

Verified evidence (8107-fixture proof + version note)

  • Loader source: loadFixturesFromDir ends with for (const sub of subdirs) fixtures.push(...loadFixturesFromDir(join(dirPath, sub), logger)) — unbounded recursion — identical in prod 1.33.0 (@sha256:7a35786e…) and staging/:latest 1.34.0 (@sha256:888fa0…).
  • Docker probe (reconfirmed in this PR): running the deployed :latest (1.34.0) image with bare --fixtures /fixtures:
    [aimock] Loaded 8107 fixture(s) from /fixtures
    
    — the identical count to the per-directory form, and it serves the 2-levels-deep d4/llamaindex fixture verbatim ("You said your name is Alice."). Prod 1.33.0 behaves identically (Loaded 8090 fixture(s), same deep tree). Live prod (bare /fixtures) also serves deep fixtures.
  • Per-dir form is equivalent but more verbose, and not required for the deployed versions.

The incident this caused

The false claim led an operator to set staging's startCommand to the per-directory form, creating a staging<->prod startCommand divergence that tripped the promote pipeline's P6 check (aimock REFUSE), which blocked the tier-2 google-adk promote. Resolved out-of-band by reverting staging to bare /fixtures (matching prod); both are now byte-identical and google-adk is live. This PR fixes the doc so the per-dir form isn't silently reintroduced.

RED -> GREEN

  • RED: §5 asserted bare /fixtures "does NOT recurse … loads nothing useful and every request falls through to the proxy."
  • GREEN: §5 now states the deployed loader recurses fully, so --fixtures /fixtures loads the whole tree (/fixtures/{shared,d4,d6}/**), is the canonical/recommended form, and the per-dir form is not required — grounded in the 1.33.0/1.34.0 + 8107-fixture evidence, with a caution to re-verify if a future aimock changes loader recursion.

Source of the bad claim: #5683.

Docs-only change. Edits showcase/aimock/RAILWAY.md only.

@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

@github-actions

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

All 40 services digest-pinned.

Run 2026-06-25 09:30:13 PDT — 0 finding(s).

@jpr5

jpr5 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #5704, which consolidates this aimock RAILWAY.md fixtures-recursion correction together with the full claim-by-claim accuracy audit fixes across showcase/TESTING.md, showcase/RAILWAY.md, and showcase/aimock/RAILWAY.md. Closing in favor of the single consolidated PR.

@jpr5 jpr5 closed this Jun 25, 2026
jpr5 added a commit that referenced this pull request Jun 25, 2026
… (claim audit) (#5704)

## Summary

Claim-by-claim accuracy audit of the three showcase ops docs surfaced 32
WRONG + 2 STALE factual claims. This PR fixes every actionable one,
surgically and consistent with each doc's tone. Each fix was re-verified
against the repo / live Railway before writing (RED = current text
wrong; GREEN = new text matches reality). UNVERIFIABLE claims were left
unchanged.

**Supersedes #5702** — that PR only corrected the aimock recursion
warning; this PR applies BOTH that correction AND the §5 startCommand
code-block fix.

### showcase/TESTING.md (15 fixes)
- QA file count: ~498 across **20** packages (was "153 files, 17
packages"). `ls showcase/integrations/*/qa/*.md | wc -l` => 498.
- "PASS 17 packages" → "PASS 20 packages" (9 cells). `ls -d
showcase/integrations/*/ | grep -v _shared | wc -l` => 20.
- Per-package E2E: ~33–41 specs/package (was "9"); removed fabricated
`renderer-selector.spec.ts` claim + Known-gap #5.
- Aimock fixtures: removed non-existent `feature-parity.json`; fixed
`smoke.json` → `shared/smoke.json`.
- python-sdk: Python 3.10–3.14 matrix (was 3.12).
- Removed `.changeset` from `test_e2e-dojo` and `test_e2e-legacy-v1`
path filters (not in triggers).
- Corrected `showcase_validate.yml` path filter.
- Removed non-existent `test_smoke-starter-deployed.yml` matrix row +
footnote.
- **test/unit paths-ignore reversal:** `test/unit` does NOT fire on
`showcase/**` or `sdk-python/**` PRs — both ARE in `test_unit.yml`
paths-ignore (the doc claimed the opposite). Added `static/quality` to
the sdk-python PR list; fixed danger path to
`sdk-python/copilotkit/langgraph_agent.py`.
- Classic branch protection is fully **disabled** (API returns 404) —
there is no live `required_status_checks.contexts` array.
- Depot footnote: runner is `depot-ubuntu-24.04-4` and most workflows
(not just dojo) run on Depot.

### showcase/RAILWAY.md (8 fixes)
- **Pending Service Provisioning section was fully stale:**
`built-in-agent` is provisioned with real `railway_id f4f8371a-...` in
the `ALL_SERVICES` matrix in `showcase_build.yml`; `grep
PLACEHOLDER-CREATE-RAILWAY-SERVICE` => 0 matches repo-wide. Rewrote
section, removed the fail-loud paragraph.
- Fabricated `generate-starters.ts` → real `extract-starter.ts` /
`provision-starter-fleet.ts`.
- **autoUpdates 41→24/40:** live prod env (b14919f4) has 40 services,
only **24** with `autoUpdates.type=minor`, 16 with none; minor services
carry an all-day/every-day `schedule` array (not "no schedule").
- **showcase_build-vs-deploy attribution:** `serviceInstanceRedeploy`
(via `redeploy-env.ts`) runs from `showcase_build.yml` ("Build & Push");
`showcase_deploy.yml` ("Verify Deploy") only health-checks it. Fixed in
Auto-Updates section, Known Quirks, and the "Add to ALL_SERVICES matrix"
step.
- `smoke.yml` is auto-discovery driven — no edit needed to add a
`showcase-*` service.

### showcase/aimock/RAILWAY.md (6 fixes)
- §1: runs the `showcase-aimock` wrapper image (not the bare
`@copilotkit/aimock` container).
- §3: published `linux/amd64` only (arm64 not published).
- §4 browser-pool: `BROWSER_POOL_MAX_CONTEXTS=24` (was 40); D5 peak
4×4=16 contexts ~4.8 GB; knob is `FEATURE_CONCURRENCY_D6` in
`d6-all-pills.ts` (no `e2e-deep.ts` exists).
- **§5 startCommand:** both live prod (b14919f4) and staging (8edfef02)
aimock instances run a single `--fixtures /fixtures` (before the
provider flags), not three subdir flags. Replaced the code block + flag
table row and **corrected the recursion warning** (a single `--fixtures
/fixtures` loads the whole baked tree — verified live, healthy).
- §7: verify curl payload `"ping"` → `"Respond with exactly: OK"` (the
actual `smoke.json` match string).

## RED→GREEN evidence (highest-impact)
- **qa count:** `ls showcase/integrations/*/qa/*.md | wc -l` => 498; 20
packages.
- **test/unit paths-ignore:** `test_unit.yml` paths-ignore includes both
`showcase/**` and `sdk-python/**` — directly reverses the doc's
parenthetical.
- **showcase_build vs deploy:** `showcase_build.yml:810 npx tsx
showcase/scripts/redeploy-env.ts staging ...`; `showcase_deploy.yml`
name = "Showcase: Verify Deploy", no redeploy call.
- **autoUpdates 24/40:** live GraphQL on prod env b14919f4 — 40
services, 24 minor, 16 none; minor schedule = 7 days, startHour 0 /
endHour 24.
- **aimock §5 startCommand:** live GraphQL on prod + staging — `node
/app/dist/cli.js --proxy-only --fixtures /fixtures --provider-openai ...
--validate-on-load --host 0.0.0.0 --port 4010`.

Audit ref: claim-by-claim audit @ commit 99f24fa. Full fix-log
retained out-of-tree at `aimock-docs-fix-log.md`.

## Test plan
- [ ] `oxfmt --check` passes on the three docs (verified locally).
- [ ] Docs-only change; no code/CI behavior affected.
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