Live Copilot proof - OpenRouter / DeepSeek V4 Flash
Retired. The Copilot this record proves was removed before 2.0.0 (ADR 0041). Nothing in the product answers under
/api/v1/ainow. The record stays as dated history only. It is not release evidence for 2.0.0, and the Playwright report it cites was deleted with the feature. The current agent proof is the Claude Code record.
Evidence from 2026-09-27 for the retired optional Copilot. Proved live once against a real provider, on a disposable local stack; nothing on Atlas or the public demo was touched.
What was verified
| Date | 2026-09-27 (UTC; same day IST) |
| Code | branch fm/karyo-copilot-openrouter-live-proof on top of commit 8a9d59d40f3de558fc013abb3372ad06b116d41d (then current main). The spec that ran was tests/e2e/operational/copilot-live.operational.ts, deleted with the feature, hash b370c3580587d99445321120f15f44d82e159d11 |
| Provider | OpenRouter (https://openrouter.ai/api/v1) |
| Model | deepseek/deepseek-v4-flash-0731 - the PR #81 default, present in OpenRouter's live catalog as "DeepSeek: DeepSeek V4 Flash 0731" |
| Application-reported provider | GET /api/v1/ai/config -> {"enabled":true,"provider":"openrouter"} |
| Stack | isolated prod-profile Compose stack, NGINX_HTTP_PORT=18088, fresh volumes, seeded with the open-demand demo profile (40 locations, 30 real UCI SKUs, 461 orders) |
| Command | KARYO_AI_PROVIDER=openrouter BASE_URL=http://localhost:18088 ./scripts/run-e2e.sh --config=playwright.operational.config.ts copilot-live.operational.ts |
| Result | passed - the live operational check ran green |
The OpenRouter key came from the password store (voyagerforge/karyo/openrouter-copilot) and
was injected only into the karyo-app container environment at process start. It was never
written to the repository, printed, or logged, and it appears nowhere in this record or the
report. The Playwright report had every password fill redacted to [redacted]; a
scan of the report's decoded embedded zip showed no OpenRouter key prefix, no bearer token, and
none of this run's generated KARYO_E2E_*_PASSWORD values.
The questions asked and the answers
The quotes below are verbatim from the attachments this run's spec wrote into the report
(testInfo.attach); they come from the very run whose green result is recorded here, not
from a separate session.
Q1 - "What is my warehouse occupancy?"
Here's your current warehouse occupancy:
Zone Occupied Total Occupancy Overall 32 40 80.0% Main Storage 8 10 80.0% Picking Zone 8 10 80.0% Receiving Dock 8 10 80.0% Shipping Dock 8 10 80.0% The warehouse is at 80% capacity overall, with every zone uniformly at 8/10 occupied.
These are the live numbers from the occupancy tool: GET /api/v1/insights/occupancy returned
occupied: 32, total: 40, pct: 0.8 for the same user at the same moment. A provider that does
not call the tool cannot produce them.
Q2 - "Receive 100 of 22197 into unit load 37" (a receive proposal for the open-demand product POPCORN HOLDER)
Confirm card shown before anything executed:
Receive 100 × 22197 (POPCORN HOLDER) into unit load 37
Approve / Decline
After Approve:
Received - stock unit 38 created.
The confirm round trip and its database result
| What | Value |
|---|---|
Journal (inventory_journals) |
id 1618, AI_COPILOT, product 22197, amount 100.0000, stock_unit_id 38, to_unit_load DEMO-UL-036, operator e2e-suite-manager, created 2026-09-27 06:48:01 UTC |
| Stock unit | id 38: amount 100.0000, item 22197, unit load 37 |
| Decline arm | after Decline, the spec asserts the stock count is unchanged and that no new AI_COPILOT journal appeared (expect.poll on the newest journal id equals the prior one), so the decline really wrote nothing |
The spec also proves the propose step never executes on its own: the confirm card appears, and only Approve lands the journal row and the stock unit.
Playwright report summary
The report is no longer in the repository. It read passed -
total 1, expected 1, unexpected 0, flaky 0, skipped 0, ok true. Test "answers from live data
and completes a confirm round trip" started 2026-09-27T06:47:18.076Z, duration 44.0 s.
Harness adjustments and earlier failed attempts
- The spec derives the product number and unit load from the manager's live stock list
(profile-agnostic: the open-demand profile seeds the real UCI catalog, not the synthetic
DEMO-SKU-*), asserts each ground-truth occupancy figure at a digit boundary, asserts the decline arm journals nothing, and raises the test timeout to 420 s because the suite default (60 s) is below the spec's own 120 s provider waits. - The occupancy check traded the adjacent
occupied/totalstring of the original spec for per-figure digit-boundary matches plus the percentage figure: occupied, total and the percentage are asserted separately (adjacency is no longer required, but each figure must appear at a digit boundary, and the one-decimal percentage form is also accepted). - Earlier attempts failed on genuine harness defects, not on the product: Playwright's
toContainTextreadstextContent, which joins table cells with no separator, so the strict whole-number check on "40" failed against the model's table render ("Overall32/4080.0%") even though the answer carried the real numbers. The spec now reads the renderedinnerText- where the cells are separated - and runs the same strict digit-boundary match against it. One attempt was also killed by the 60 s suite test timeout on a slow but honest provider;test.setTimeoutfixes that. A review pass found the percentage figure was computed without rounding (0.56 * 100is56.00000000000001), which would fail a correct "56%" reply; the spec now rounds to one decimal, matching the tool's%.1fform, and asserts the rounding formula itself (Math.round(0.56 * 1000) / 10 === 56). - The evidence record names this run's date (2026-09-27) because the earlier 2026-09-26 run was superseded: it used a spec that was later revised, so it was discarded rather than recorded as the proof. The final spec (with the rounding and date fixes above) is the one recorded here, and it is the spec that ran green.
Scope notes
- Egress: demo warehouse rows were sent to OpenRouter/DeepSeek for this proof (approved 2026-09-26). Anthropic and Ollama remain not verified live; this record proves only the OpenRouter/DeepSeek configuration.
- The stack was torn down after the run; the record is the only artifact kept.