Skip to content

feat(showcase/mastra): v1 bridge alpha + reasoning/streaming out of not_supported (OSS-381) - #5798

Merged
contextablemark merged 52 commits into
mainfrom
claude/brave-kirch-8dbf00
Jul 21, 2026
Merged

contextablemark merged 52 commits into
mainfrom
claude/brave-kirch-8dbf00

Conversation

@ranst91

@ranst91 ranst91 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Mastra Partner Refresh — showcase finalization (OSS-381)

Bumps the showcase Mastra integration onto the v1 bridge alpha and flips the
features it unblocks out of not_supported. Opened for CI to run the D6/e2e
suite (local Docker daemon is wedged in the authoring env — see notes).

Landed

  • OSS-382 (gate): @ag-ui/mastra 0.2.1-beta.2 → 1.1.0-alpha.0.
    • Alpha verified to ship all features (grep on dist): emitInterruptOutcome,
      STATE_DELTA, observationalMemory, background-task, tracingOptions,
      getA2UITools/recovery. Peers satisfied (@mastra/core 1.41, client-js
      1.23.2, runtime 1.61.2).
    • next build passes (40 routes). Unit tests identical to the beta.2
      baseline
      (13 pre-existing failures in route.test.ts's error-path mocks,
      unrelated to the bump — proven by a stash+reinstall A/B).
  • OSS-384 / OSS-423: moved into features (demos + e2e + aimock fixtures
    were already wired, gated on this release):
    agentic-chat-reasoning, reasoning-default-render,
    tool-rendering-reasoning-chain, shared-state-streaming. Added the missing
    reasoning-default / reasoning-custom manifest demo entries.
  • Parity: not_supported_features now holds only gen-ui-interrupt +
    interrupt-headless, matching the langgraph-python gold standard, which
    quarantines the same two cells on an upstream @copilotkit/react-core v2
    resume-path hook bug (published-package fix, out of scope). The native
    interrupt + RUN_FINISHED-outcome path ships in the bridge; the showcase cell
    is blocked by the same upstream bug, not the bridge.
  • OSS-424: execution-tracing note (tracingOptions in / traceId on
    RUN_FINISHED.result out) added to the Mastra Copilot Runtime doc.
  • OSS-425: GenUI generative_ui spectrum already at parity with gold
    (constrained-explicit, a2ui-fixed-schema, a2ui-dynamic-schema).

Not in this PR (scoped, blocked, or pending)

  • OSS-422 a2ui-recovery, OSS-426 background-agents, OSS-427
    observational-memory
    — new demo cells. Reference material + build plans
    ready. OM additionally needs @mastra/memory ≥1.21.2 (repo pins
    1.0.1-alpha.1; the on-stream async-buffering path won't fire below that).
  • OSS-91 browser-use — Mastra-only, non-deterministic (no clean aimock
    replay), needs a Browserbase key not present in the env. Blocked.
  • OSS-392 input.context — owner exception; only if langgraph showcases it.

Verification note

Local D6 could not be run: the Docker daemon's container-creation path is wedged
in this environment (a trivial hello-world create hangs), and unwedging needs a
Docker Desktop restart that would destroy a concurrent session's running stack.
Relying on CI for D6/e2e. Everything above is build-level verified + committed.

ranst91 added 2 commits July 2, 2026 12:00
…a.0 (OSS-382)

Bumps the showcase Mastra integration onto the v1 bridge alpha that ships
interrupt outcome, reasoning emit, STATE_DELTA shared-state streaming,
background-task + observational-memory activity events, tracing passthrough,
and the a2ui-toolkit dep. next build passes (40 routes); unit tests identical
to the beta.2 baseline (13 pre-existing failures, unrelated to the bump).
…ported; tracing note (OSS-384/423/424)

The v1 bridge (@ag-ui/mastra 1.1.0-alpha.0) emits reasoning start/content/end
and STATE_DELTA shared-state streaming, so the already-wired demos + e2e +
aimock fixtures go live. Moves out of not_supported_features into features:
  - agentic-chat-reasoning, reasoning-default-render, tool-rendering-reasoning-chain (OSS-384)
  - shared-state-streaming (OSS-423)
Adds the missing reasoning-default / reasoning-custom manifest demo entries.

not_supported_features now holds only gen-ui-interrupt + interrupt-headless,
matching the langgraph-python gold standard, which quarantines the same two
cells on an upstream @copilotkit/react-core v2 resume-path hook bug (published-
package fix, out of scope). The native interrupt + RUN_FINISHED outcome path
ships in the bridge; the showcase cell is blocked by the same upstream bug.

Adds an OSS-424 execution-tracing note (tracingOptions inbound / traceId on
RUN_FINISHED.result outbound) to the Mastra Copilot Runtime doc.
@linear

linear Bot commented Jul 2, 2026 •

Copy link
Copy Markdown

OSS-381

OSS-560

@github-actions

github-actions Bot commented Jul 2, 2026

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

github-actions Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

All 41 services digest-pinned.

Run 2026-07-21 10:11:15 PDT — 0 finding(s).

github-actions Bot and others added 21 commits July 2, 2026 11:02
…1 (OSS-383)

The @copilotkit/react-core v2 resume-path bug that quarantined gen-ui-interrupt
+ interrupt-headless is fixed as of 1.62.1, so migrate both cells to the native
interrupt path and move them out of not_supported_features.

- Bump @copilotkit/* 1.61.2 -> 1.62.1 (react-core/runtime/shared/voice/
  a2ui-renderer + web-inspector core override). next build clean (40 routes).
- Backend: new src/mastra/tools/interrupt.ts — a real Mastra suspend tool
  (schedule_meeting) with suspend/resume schemas; returns suspend() directly so
  the agentic loop pauses. Wired into interruptAgent (was tools:{}). Instance
  storage (src/mastra/index.ts) already satisfies the resume snapshot prereq;
  emitInterruptOutcome defaults true in the v1 bridge so the standard
  RUN_FINISHED outcome fires (resumable on client >=1.61.2).
- gen-ui-interrupt: useHumanInTheLoop workaround -> native useInterrupt
  (renderInChat), reading the Mastra suspend wrapper's suspendPayload.
- interrupt-headless: hand-rolled on_interrupt subscription -> native
  useInterrupt({renderInChat:false}) placed in the app surface (the hook handles
  both the standard outcome and legacy on_interrupt + the correct resume array).
- manifest: not_supported_features now []; gen-ui-interrupt + interrupt-headless
  in features; interrupt_pattern: native (parity with langgraph-python).
- fixture: gen-ui-interrupt.json userMessage keys (introductory sales team call
  / one-on-one with Alice) didn't substring-match the D6 probe + e2e prompts
  (never caught while skipped) -> aligned to 'intro call with the sales team' /
  '1:1 with Alice'. interrupt-headless.json already correct.

Local D6 e2e not run (Docker daemon container-create wedged in this env);
build-verified + relying on CI/harness. Native suspend/resume path is
dojo-proven on CopilotKit >=1.61.2.
…emo style

Drop the bespoke 'Mastra bridge' phrasing (used nowhere else in the mastra
docs — they say 'embed a Mastra agent in Copilot Runtime' / 'Mastra natively
supports AG-UI'). Show tracingOptions the canonical way, inside
new CopilotRuntime({ agents: MastraAgent.getLocalAgents({ mastra, ... }) }),
matching quickstart.mdx + shared-state/*.mdx, instead of a bare getLocalAgents.
validate-pins FAILed: mastra's @copilotkit/* now pin to 1.62.1 (needed for the
OSS-383 native-interrupt react-core resume fix) while the canonical pin is
1.61.2. Add a per-slug override for mastra (the sanctioned deviation mechanism
for a single integration during a runtime upgrade) rather than bumping the
global canonical (which would force all 20 integrations to 1.62.1). Pins fail
set returns to baseline (count=38, hash unchanged) → gate passes.
@mastra/core 1.41.0->1.48.0, @mastra/memory 1.0.1-alpha.1->1.22.0,
@mastra/libsql 1.1.0-alpha.2->1.14.3, @mastra/client-js 1.23.2->1.29.0,
mastra 1.1.0-alpha.3->1.17.0. Aligns the split @mastra/* versions (kills the
Memory-vs-core type skew) and lands @mastra/memory>=1.21.2, the floor the
observational-memory on-stream buffering path needs (unblocks OSS-427).
next build clean (40 routes).
Adds the a2ui-recovery cell — full parity with langgraph-python / strands / ADK.
Backend a2uiRecoveryAgent owns generate_a2ui via getA2UITools (@ag-ui/mastra/a2ui
subpath) which runs the forced render_a2ui subagent + the toolkit validate->retry
recovery loop + a2ui_recovery_exhausted hard-fail. Dedicated route
/api/copilotkit-a2ui-recovery sets a2ui.injectA2UITool=false (agent owns the
tool); reuses the declarative-gen-ui catalog. Frontend mirrors strands
(page/chat/suggestions, unique mastra prompts). aimock fixture: HEAL seq0-invalid
->seq1-valid, EXHAUST always-invalid; e2e asserts heal paints (declarative-metric
x2) + exhaust shows the hard-failure UI. manifest feature + demo entry + qa.
next build clean; validate-parity 0-fail; validate-pins baseline (38).
…er-use demos (OSS-426/427/91)

Integrates 3 gap demos (authored in parallel worktrees, ported onto the
upgraded branch):

- background-agents (OSS-426): run_deep_research tool flagged
  background:{enabled:true} + Mastra backgroundTasks:{enabled:true} → the bridge
  maps background-task-started → a live 'working' activity card. Completion is
  out-of-band by design (not asserted). Dedicated route + fixture + e2e + qa.
- observational-memory (OSS-427): OM enabled on the agent Memory
  (scope:thread, observation 600/300) + surfaced via getLocalAgents({
  observationalMemory:true }). SIZABLE pills trip the token-size trigger.
  NOTE: OM data-om-* chunks come from the OM processor + observer LLM, not the
  mocked completion — so it does NOT replay deterministically under aimock; the
  e2e asserts the deterministic subset (page + pills + completing turn) and
  full OM-card verification needs a real-LLM run (documented in qa).
- browser-use (OSS-91): Mastra-only, real-LLM. browse_web tool drives a LOCAL
  headless Playwright Chromium (NO Browserbase) — top HN / page read, rendered
  as in-chat cards. Non-deterministic → no aimock D6 fixture; smoke e2e only.
  Needs 'npx playwright install chromium' at runtime (documented in Dockerfile+qa).

Shared: 3 agents + registrations + backgroundTasks toggle, 2 tool exports,
manifest features+demos (now 42 demos, not_supported_features still []),
playwright dep, demoAgentNames excludes for the 4 dedicated-route cells.
next build clean (all routes); validate-parity 0-fail; validate-pins baseline (38).
…ntilIdle

Two fixes surfaced by running the actual Playwright e2e (per showcase-demo-debugging):

- interrupt.ts: Mastra createTool execute is (inputData, executionContext) —
  suspend/resumeData live on arg2, not arg1. Was destructured off arg1 →
  suspend was undefined → suspend() threw → loop never paused. Fixed signature.
  (NOTE: e2e still shows the loop not pausing — a deeper suspend-path issue
  remains; tracked to the interrupt fix chip.)
- background-agents route: use getLocalAgents({ untilIdle: true }) (plural; the
  singular getLocalAgent lacks the toggle) so the background-task lifecycle
  (incl. background-task-completed + result) pipes in-band per Mastra's
  resolution-order docs — card can complete in-turn instead of stuck 'working'.

Honest status: the advanced Mastra cells (interrupt, a2ui-recovery, reasoning,
shared-state-streaming) are NOT yet e2e-green under aimock; 7 focused follow-up
tasks spawned (one per item) with repro + the sanctioned up --dev validation rig.
…ent (OSS-383)

The native interrupt tool destructured `suspend`/`resumeData` off the top level
of the ToolExecutionContext, but in @mastra/core 1.48 they live under
`executionContext.agent` (the AgentToolExecutionContext sub-object). So
`suspend` was `undefined`, `return suspend(...)` threw `suspend is not a
function`, the model got a tool-error and re-called schedule_meeting, and the
agentic loop spun to the step cap (~30 LLM calls) with NO `tool-call-suspended`
chunk -> no `on_interrupt` -> the time-picker never rendered.

Reading off `executionContext.agent` (matching the proven @ag-ui/mastra dojo
tool) makes the loop pause at the interrupt. Verified e2e against aimock:
gen-ui-interrupt 4/4 and the interrupt-headless probe flow both green
(picker renders backend suspend-payload slots -> pick -> resume -> confirmation).
…-383)

Parity with langgraph-python gold, which ships qa/gen-ui-interrupt.md +
qa/interrupt-headless.md; mastra had neither. Mastra-accurate: native
schedule_meeting suspend() -> @ag-ui/mastra bridge -> useInterrupt, the
TimePickerCard testids/states (time-picker-card/picked/cancelled, slot,
cancel), and the headless app-surface variant (interrupt-headless-popup/
empty/slot-<iso>). No shell-docs change — human-in-the-loop/interrupt-flow.mdx
already documents the native path and the correct context.agent destructure.
…TE_DELTA (OSS-423)

The shared-state-streaming demo mapped to the generic weatherAgent (state
{proverbs}, no `document` field) and its aimock fixture returned plain text
gated on a stale "stream the counter to 5" match, so nothing ever streamed
into `state.document` and the e2e failed.

Add a dedicated `sharedStateStreamingAgent` with working memory enabled on a
`{ document: string }` schema. It writes drafts through Mastra's built-in
`updateWorkingMemory` tool; the @ag-ui/mastra bridge intercepts the streamed
tool-call args (OSS-414) and emits a leading STATE_SNAPSHOT followed by
incremental STATE_DELTA on /document, so the UI renders the document
token-by-token. This is the Mastra-native equivalent of langgraph-python's
StateStreamingMiddleware / predictive-state pattern.

- agents: add sharedStateStreamingAgent + SharedStateStreamingAgentState
- index: register the agent on the Mastra instance
- route: map shared-state-streaming -> sharedStateStreamingAgent with a
  dedicated resourceId, build guard, and LocalMastraAgentName entry
- fixture: drive updateWorkingMemory with the streamed document for all three
  pills (poem / email / quantum) plus a confirmation turn on hasToolResult
The mastra runtime image stripped two build-only artifacts that next dev
needs to re-resolve at request time: tsconfig.json (the @/* and
@copilotkit/showcase-shared-tools path aliases) and shared-tools/. Under
'showcase up mastra --dev' the dev overlay bind-mounts only ./src and runs
next dev, which recompiles from source and then failed with 'Module not
found: Can't resolve @/mastra' / '@copilotkit/showcase-shared-tools', so
every agent route (incl. /api/copilotkit-a2ui-recovery) returned 500 and no
agent run ever fired. next start (prod) is unaffected since .next has the
aliases pre-resolved. Mirrors langgraph-typescript's runner, which likewise
bakes shared-tools/ for dev.

Verified: with the fix baked, the recovery route compiles and POSTs 200 in
dev (LLM calls fire, aimock recovery fixtures match) instead of 500. The
a2ui-recovery e2e (heal paints Column+2 Metric, exhaust shows the fallback)
is 3/3 green on the committed-state built image.
…memory e2e

The OM activity card turned out to be deterministically reproducible under
aimock, not just via a real LLM as previously assumed. Measured against the
sanctioned rig (showcase up mastra --dev + Playwright vs :3104):

- one sizable pill click always paints exactly one card in buffering/running
  in-turn (token-accounting driven, no Observer-LLM dependency) — 11/11
- a second sizable turn settles the first cycle to activation/activated and
  opens a fresh buffering/running card — 5/5

Strengthen the e2e from a best-effort probe to hard assertions on that
lifecycle, and correct the QA doc: structure is aimock-deterministic (now
e2e-covered); only the observation CONTENT still needs a real-LLM QA pass.

Refs OSS-427
…er executes in single-process demo, completion stays out-of-band

Validated the OSS-426 background-agents cell against the running dev stack
(showcase up mastra --dev + Playwright e2e on :3104). Findings:

- Under getLocalAgents({untilIdle:true}) the activity card NEVER reaches
  'Completed': a probe polling the card status for 45s showed it stuck on
  'Working…' the whole time, and the e2e was flaky (first attempt timed out
  at 60s before the card even painted).
- Root cause: instrumenting run_deep_research.execute proved it NEVER fires
  within the run. Mastra dispatches the backgroundable tool but nothing
  executes it — this single-process Next.js demo has no background worker to
  pick the task up, so no background-task-completed chunk is ever produced.
  untilIdle only holds the stream open for the full idle timeout (many wasted
  re-entry LLM calls, slow/flaky render) with zero completion benefit.
- Reverted to plain getLocalAgent: the run closes right after
  background-task-started, the 'working' card paints fast and deterministically,
  completion is out of band exactly as the tool/renderer/e2e/qa already
  document. Full spec now green: 4 passed in ~3.7s, stable across 3 runs.
Every other ACTIVE mastra cell has a per-integration e2e spec; interrupt-headless
had only the D6 harness probe (d5-interrupt-headless.ts). Adds a committed spec
mirroring that probe + the gen-ui-interrupt style: page-load/empty, both pills,
pick-a-slot resume (app-surface popup -> slot -> empty re-mounts + assistant
confirmation), cancel path. 8/8 green with gen-ui-interrupt on the host-prod
aimock rig (next start :3199 + container aimock, workers=1).
…26 parity)

Manifest parity bar = every demo backed by demo + aimock e2e + doc. The
background-agents cell had demo + e2e but no shell-docs page. Authored
background-tasks.mdx (mirrors the interrupt-flow doc structure: What/When/
Steps/Give-it-a-try) covering the backgroundable tool flag, instance
BackgroundTaskManager, agent wiring, and the renderActivityMessages activity
card — plus an honest 'Completion is out of band' section documenting the
untilIdle-needs-a-worker finding. Added to the nav under the Mastra section.
…te-streaming docs (OSS-423)

Follow-up to the sharedStateStreamingAgent commit.

- fixture: key the confirmation leg on the updateWorkingMemory toolCallId
  (ordered before the leg-1 entry) instead of hasToolResult. hasToolResult is
  a thread-global predicate, so in the sequential 3-pill D6 probe pill 2's
  leg-1 stopped matching once pill 1 left a tool result in the thread. The
  toolCallId anchor keeps each pill's two legs disambiguated across the
  interleaved conversation (matches the langgraph-python gold pattern).
- docs: add shell-docs shared-state/predictive-state-updates.mdx ("State
  streaming") documenting the Mastra updateWorkingMemory -> STATE_DELTA path,
  at parity with the 7 other integrations that ship this page; registered in
  the shared-state meta.json.
…6 probe

The d5-a2ui-recovery probe hard-fails ('no per-slug prompts registered for
"mastra"') for any slug missing from its per-slug PROMPTS table — mastra was
absent while google-adk, langgraph-{python,fastapi,typescript}, strands, and
strands-typescript were all present. Added mastra's heal/exhaust prompts,
mirrored byte-for-byte from integrations/mastra/src/app/demos/a2ui-recovery/
suggestions.ts (they are the aimock fixture keys), so the D6 harness covers
mastra a2ui-recovery at parity with the other frameworks.

Verified: all 79 harness probe test files (1374 tests) green, incl
aimock-fixture-coverage (prompt<->fixture parity). The per-integration
tests/e2e/a2ui-recovery.spec.ts is 3/3 green on the built image.
ranst91 and others added 4 commits July 20, 2026 14:21
…-render demos

declarative-gen-ui (render-a2ui.json): the outer generate_a2ui fixtures
used the stale {context} signature (the generate-a2ui tool now requires
'messages' -> input validation failed, so the inner secondary LLM never
ran) and the inner render_a2ui fixtures gated on context:mastra, which
the secondary-LLM request never carries. Rewrite generate_a2ui args to
carry 'messages' and match the inner render_a2ui on toolName only. All
four pills (KPI, pie, bar, status) now render their A2UI surface.

declarative-hashbrown / declarative-json-render (page.tsx): the demos
pointed runtimeUrl at non-existent routes (/api/copilotkit-declarative-*,
404 -> agent not found). Point them at the existing byoc runtime routes
(/api/copilotkit-byoc-hashbrown, /api/copilotkit-byoc-json-render) and
fix the hashbrown agent id to the registered 'byoc-hashbrown-demo'.

Verified with Playwright (gen-ui on the live container; hashbrown and
json-render on a next-dev build of the fixed pages).
The A2UI Button renderer was inert - it rendered the label but never
wired the schema 'action' or a click handler, so 'Book flight' did
nothing despite the narration telling users to tap it to confirm.
Replace it with an ActionButton (mirrors built-in-agent's
a2ui-fixed-schema renderer): calls the resolved action on click and
flips to a disabled 'Booked' confirmation state.

Verified with Playwright (next-dev build of the fixed renderer).

@contextablemark contextablemark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: Request changes. The PR is mostly solid — 62/64 of the other PR-relevant cells pass e2e (reasoning, shared-state-streaming, interrupt pick+cancel, a2ui-recovery, background-agents, observational-memory, beautiful-chat incl. the OSS-452 todos, declarative-*), and the blast radius is showcase-only. But the tool-rendering cell is broken (5/6 e2e tests fail), which contradicts this PR's not_supported_features: [] / tool-rendering: supported claim. Root cause is a parity deviation, not a framework limit.

How this was verified: built the mastra showcase on the faithful config (Node 22 + next build + next start) and replayed the committed aimock fixtures with Playwright. tool-rendering.spec.ts = 1 pass / 5 fail, stably (no rig flake).

Context: what every other integration does

Every integration backs the tool-rendering demo with a dedicated agent bound to all four demo tools, e.g. gold langgraph-python src/agents/tool_rendering_agent.py:

tools=[get_weather, search_flights, get_stock_price, roll_d20]

(langgraph-typescript, google-adk, crewai, strands, pydantic-ai, llamaindex, ag2, agno all follow this.) Mastra uses dedicated agents for most demos and even mirrored the reasoning-chain agent — but never created a tool-rendering agent, routing the demo to the generic weatherAgent instead.


Required change 1 — give tool-rendering a dedicated, fully-bound agent

  • Problem: tool-rendering resolves to weatherAgent (src/app/api/copilotkit/route.ts — no override; the override map only maps tool-rendering-reasoning-chain → reasoningChainAgent). weatherAgent (src/mastra/agents/index.ts:176, tools block :179-186) binds get_weather + search_flights but not get_stock_price or a dice tool. So the Stock price, Roll a d20, and Chain tools pills emit tool calls the agent can't execute → the AI SDK silently drops them → no card renders.
  • Evidence: tests/e2e/tool-rendering.spec.ts — Stock (stock-card never visible), d20 (0 cards, expected 5), Chain (flights-card/cards never visible).
  • Fix: add a dedicated toolRenderingAgent in src/mastra/agents/index.ts binding get_weather, search_flights, get_stock_price, and a roll_d20, then route tool-rendering to it via the override map in route.ts — mirroring tool_rendering_agent.py. stockPriceTool already exists (wired to reasoningChainAgent), so stock is pure wiring.
  • Note on dice: the fixtures emit roll_d20 and the test needs deterministic rolls (5 rolls, last = 20). Gold ships a roll_d20(value=0) that echoes a scripted value. Mastra only has a generic rollDiceTool (roll-dice). Add a roll_d20 tool with a deterministic value param (mirror tool_rendering_agent.py:118).
  • Done when: Weather / Find flights / Stock / d20 / Chain pills each render their card on the harness.

Required change 2 — fix the weather value assertion

  • Problem: tests/e2e/tool-rendering.spec.ts:55-58 asserts humidity 55% / wind 10, but getWeatherImpl("San Francisco") (shared-tools/get-weather.ts) deterministically returns humidity 77 / wind 3. The card renders Humidity77%; the test times out. (Author-acknowledged in commit ef6e7d1.)
  • Fix: update the assertion to 77% / 3, or bake humidity/wind_speed into the get_weather result in the fixture so the card value is fixture-pinned.
  • Done when: the Weather-in-SF test passes.

Required change 3 — reconcile search_flights args vs schema

  • Problem: In the reasoning-chain path, reasoningChainAgent's instructions and the fixture call search_flights(origin=…, destination=…) (src/mastra/agents/index.ts:445,448), but searchFlightsTool.inputSchema requires { flights: [...] } (src/mastra/tools/index.ts:181-190). The call fails validation → no flight card → chain breaks. Gold's search_flights(origin, destination) takes origin/destination and returns the flights.
  • Evidence: tool-rendering-reasoning-chain.spec.ts — "Flights + destination weather" and "sequential pills" fail on flight-list-card not visible.
  • Fix (parity target): change searchFlightsTool to accept { origin, destination } and return the deterministic flights list (matching gold), and make both fixture styles consistent with the chosen signature — the basic "Find flights" leg currently sends {flights:[...]}, the chain leg sends {origin,destination}; pick one (gold uses {origin,destination}) and update both fixtures + card renderer accordingly.
  • Done when: both reasoning-chain flights tests pass and the basic Find-flights card still renders.

Recommended (non-blocking) — de-fragilize the tool-rendering fixtures

  • The basic Find flights pill 404'd in aimock (No fixture matched) on the harness; the tool-rendering.json fixtures use turnIndex-based match keys (5 legs), which is order-dependent and which the commit history shows breaking. Re-key on stable userMessage / toolCallId / hasToolResult rather than turnIndex.

Manifest honesty (gate)

  • manifest.yaml sets not_supported_features: [] and lists tool-rendering as supported. Until changes 1–3 land and the cell is e2e-green, either fix it or move tool-rendering to not_supported_features so the parity claim is truthful.

Verification (must pass before merge)

The showcase Playwright e2e never ran in CI on this PR — the on-demand test_e2e-showcase-on-demand.yml is Python-only (can't target mastra), and /eval d5 mastra was never triggered. Before merge, run the mastra e2e on the real harness:

showcase/bin/showcase test mastra --d5        # or: comment `/eval d5 mastra` on the PR

Acceptance: tool-rendering.spec.ts and tool-rendering-reasoning-chain.spec.ts fully green, and the previously-passing cells still green.

Not blocking / already good

Reasoning, shared-state-streaming, interrupt (pick + cancel), a2ui-recovery, background-agents, observational-memory, beautiful-chat (incl. OSS-452 todos), a2ui-fixed-schema, and the declarative-* demos all pass e2e. No published SDK packages are touched.

ranst91 and others added 2 commits July 21, 2026 08:34
…20, gold search_flights (CR #5798)

Addresses the tool-rendering CHANGES_REQUESTED on #5798 (5/6 e2e failing),
mirroring gold langgraph-python tool_rendering_agent.py:

1. Dedicated toolRenderingAgent bound to all four demo tools (get_weather,
   search_flights, get_stock_price, roll_d20) + route tool-rendering and its
   default/custom-catchall variants to it. Previously routed to weatherAgent,
   which lacks get_stock_price/roll_d20, so the Stock, d20, and Chain pills
   emitted uncallable tool calls the AI SDK dropped (no card).
2. New deterministic roll_d20 tool (echoes a scripted value) and get_stock_price
   now echoes optional price_usd/change_pct — lets the fixtures script exact
   values, mirroring gold's roll_d20/get_stock_price.
3. search_flights now accepts gold {origin,destination} and GENERATES the
   flights list (kept lenient — still accepts a legacy {flights} array so the
   D5 harness probe keeps working). Fixes the reasoning-chain flights leg that
   failed input validation.
4. Re-keyed the tool-rendering + reasoning-chain fixtures off the fragile
   turnIndex onto hasToolResult:false (turn-scoped in aimock >=1.37.x) and
   added the missing Find-flights first leg (was 'No fixture matched' 404).
5. Weather e2e assertion -> 77%/3 (mastra's seeded getWeatherImpl for SF; a
   documented divergence from gold's fixed 55/10).

Route /api/copilotkit compiles + loads cleanly; full e2e to be confirmed via
/eval d5 mastra on the harness (local next-dev verification is blocked by this
machine's 7.7GiB Docker VM OOMing on the heavy route compile).
@ranst91

ranst91 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

/eval d5 mastra

@github-actions

Copy link
Copy Markdown
Contributor

Showcase Eval

Status Running...
Level d5
Scope mastra
Run View workflow

@github-actions

Copy link
Copy Markdown
Contributor

Showcase Eval Results

Verdict ❌ EVAL FAILED (exit code: 1)
Level d5
Scope mastra
Run View workflow
Partial JSON output
{
  "version": 1,
  "timestamp": "2026-07-21T10:55:12.642Z",
  "branch": "HEAD",
  "base": "origin/main",
  "level": "d5",
  "scope": {
    "mode": "all",
    "reason": "manual override: mastra",
    "slugs": [
      "mastra"
    ]
  },
  "results": {
    "mastra": {
      "_status": {
        "status": "fail",
        "duration_ms": 364
      }
    }
  },
  "summary": {
    "total": 1,
    "pass": 0,
    "fail": 1,
    "skip": 0,
    "duration_ms": 364
  }
}

The /eval workflow ran 'showcase eval ... --ci' on a bare runner, but --ci
makes the eval CLI SKIP the Docker lifecycle and assume the showcase fleet is
already running (harness/src/cli/eval/index.ts:348). Nothing in the job starts
it, so every /eval found no healthy container and failed in ~1s without running
a single test (e.g. #5798's /eval d5 mastra: mastra _status=fail, 364ms, zero
tests).

Drop --ci so the CLI builds + starts the in-scope slugs + aimock and
health-checks them before running d5 (the non-ci path). docker compose output
is captured (piped, not inherited) and --json keeps stdout clean, so
eval-results.json stays parseable.
@github-actions

Copy link
Copy Markdown
Contributor

Showcase Eval Results

Verdict ❌ EVAL FAILED (exit code: 1)
Level d5
Scope affected
Run View workflow
Error output (last 50 lines)
�[31m[showcase] Error:�[0m docker compose failed (exit 1): docker compose -f /home/runner/work/CopilotKit/CopilotKit/showcase/docker-compose.local.yml --profile all ps --status running langgraph-python
env file /home/runner/work/CopilotKit/CopilotKit/showcase/.env not found: stat /home/runner/work/CopilotKit/CopilotKit/showcase/.env: no such file or directory

@github-actions

Copy link
Copy Markdown
Contributor

Size Change: 0 B

Total Size: 1.19 MB

ℹ️ View Unchanged
Filename Size
packages/a2ui-renderer/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/a2ui-renderer/dist/a2ui-types.cjs 172 B
packages/a2ui-renderer/dist/a2ui-types.mjs 171 B
packages/a2ui-renderer/dist/index.cjs 842 B
packages/a2ui-renderer/dist/index.mjs 563 B
packages/a2ui-renderer/dist/index.umd.js 12.2 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/A2uiSurface.cjs 1.49 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/A2uiSurface.mjs 1.43 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/adapter.cjs 1.07 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/adapter.mjs 1.01 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/AudioPlayer.cjs 904 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/AudioPlayer.mjs 492 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Button.cjs 1 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Button.mjs 596 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Card.cjs 829 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Card.mjs 419 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/CheckBox.cjs 1.1 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/CheckBox.mjs 1.02 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChildList.cjs 799 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChildList.mjs 737 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChoicePicker.cjs 1.63 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChoicePicker.mjs 1.57 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Column.cjs 856 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Column.mjs 802 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/DateTimeInput.cjs 1.12 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/DateTimeInput.mjs 1.05 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Divider.cjs 842 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Divider.mjs 432 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Icon.cjs 877 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Icon.mjs 469 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Image.cjs 995 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Image.mjs 587 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/List.cjs 920 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/List.mjs 508 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Modal.cjs 1.19 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Modal.mjs 1.13 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Row.cjs 855 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Row.mjs 801 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Slider.cjs 1.06 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Slider.mjs 984 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Tabs.cjs 1.1 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Tabs.mjs 1.04 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Text.cjs 903 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Text.mjs 489 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/TextField.cjs 1.21 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/TextField.mjs 1.14 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Video.cjs 788 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Video.mjs 378 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/index.cjs 928 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/index.mjs 855 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/utils.cjs 579 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/utils.mjs 556 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Button.cjs 982 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Button.mjs 580 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/ChildList.cjs 800 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/ChildList.mjs 735 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Column.cjs 1.08 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Column.mjs 1.02 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Row.cjs 1.07 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Row.mjs 1.01 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Text.cjs 894 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Text.mjs 839 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/TextField.cjs 1.21 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/TextField.mjs 802 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/index.cjs 849 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/index.mjs 804 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/index.cjs 310 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/index.mjs 325 B
packages/a2ui-renderer/dist/react-renderer/catalog-utils.cjs 1.59 kB
packages/a2ui-renderer/dist/react-renderer/catalog-utils.mjs 1.52 kB
packages/a2ui-renderer/dist/react-renderer/core/A2UIProvider.cjs 1.5 kB
packages/a2ui-renderer/dist/react-renderer/core/A2UIProvider.mjs 1.42 kB
packages/a2ui-renderer/dist/react-renderer/core/A2UIRenderer.cjs 728 B
packages/a2ui-renderer/dist/react-renderer/core/A2UIRenderer.mjs 671 B
packages/a2ui-renderer/dist/react-renderer/create-catalog.cjs 1.35 kB
packages/a2ui-renderer/dist/react-renderer/create-catalog.mjs 1.28 kB
packages/a2ui-renderer/dist/react-renderer/hooks/useA2UI.cjs 316 B
packages/a2ui-renderer/dist/react-renderer/hooks/useA2UI.mjs 309 B
packages/a2ui-renderer/dist/react-renderer/index.cjs 399 B
packages/a2ui-renderer/dist/react-renderer/index.mjs 515 B
packages/a2ui-renderer/dist/react-renderer/lib/utils.cjs 236 B
packages/a2ui-renderer/dist/react-renderer/lib/utils.mjs 188 B
packages/a2ui-renderer/dist/react-renderer/styles/index.cjs 239 B
packages/a2ui-renderer/dist/react-renderer/styles/index.mjs 231 B
packages/a2ui-renderer/dist/react-renderer/theme/ThemeContext.cjs 436 B
packages/a2ui-renderer/dist/react-renderer/theme/ThemeContext.mjs 381 B
packages/a2ui-renderer/dist/web-components/_virtual/_rolldown/runtime.cjs 260 B
packages/a2ui-renderer/dist/web-components/_virtual/_rolldown/runtime.mjs 258 B
packages/a2ui-renderer/dist/web-components/adapter.cjs 346 B
packages/a2ui-renderer/dist/web-components/adapter.mjs 335 B
packages/a2ui-renderer/dist/web-components/bound-component.cjs 670 B
packages/a2ui-renderer/dist/web-components/bound-component.mjs 662 B
packages/a2ui-renderer/dist/web-components/catalog/basic/audio-player.cjs 536 B
packages/a2ui-renderer/dist/web-components/catalog/basic/audio-player.mjs 492 B
packages/a2ui-renderer/dist/web-components/catalog/basic/button.cjs 647 B
packages/a2ui-renderer/dist/web-components/catalog/basic/button.mjs 604 B
packages/a2ui-renderer/dist/web-components/catalog/basic/card.cjs 448 B
packages/a2ui-renderer/dist/web-components/catalog/basic/card.mjs 402 B
packages/a2ui-renderer/dist/web-components/catalog/basic/check-box.cjs 743 B
packages/a2ui-renderer/dist/web-components/catalog/basic/check-box.mjs 695 B
packages/a2ui-renderer/dist/web-components/catalog/basic/choice-picker.cjs 1.27 kB
packages/a2ui-renderer/dist/web-components/catalog/basic/choice-picker.mjs 1.24 kB
packages/a2ui-renderer/dist/web-components/catalog/basic/column.cjs 474 B
packages/a2ui-renderer/dist/web-components/catalog/basic/column.mjs 431 B
packages/a2ui-renderer/dist/web-components/catalog/basic/components.cjs 482 B
packages/a2ui-renderer/dist/web-components/catalog/basic/components.mjs 424 B
packages/a2ui-renderer/dist/web-components/catalog/basic/date-time-input.cjs 756 B
packages/a2ui-renderer/dist/web-components/catalog/basic/date-time-input.mjs 714 B
packages/a2ui-renderer/dist/web-components/catalog/basic/divider.cjs 450 B
packages/a2ui-renderer/dist/web-components/catalog/basic/divider.mjs 404 B
packages/a2ui-renderer/dist/web-components/catalog/basic/icon.cjs 504 B
packages/a2ui-renderer/dist/web-components/catalog/basic/icon.mjs 455 B
packages/a2ui-renderer/dist/web-components/catalog/basic/ids.cjs 192 B
packages/a2ui-renderer/dist/web-components/catalog/basic/ids.mjs 190 B
packages/a2ui-renderer/dist/web-components/catalog/basic/image.cjs 624 B
packages/a2ui-renderer/dist/web-components/catalog/basic/image.mjs 578 B
packages/a2ui-renderer/dist/web-components/catalog/basic/index.cjs 465 B
packages/a2ui-renderer/dist/web-components/catalog/basic/index.mjs 526 B
packages/a2ui-renderer/dist/web-components/catalog/basic/list.cjs 534 B
packages/a2ui-renderer/dist/web-components/catalog/basic/list.mjs 483 B
packages/a2ui-renderer/dist/web-components/catalog/basic/modal.cjs 842 B
packages/a2ui-renderer/dist/web-components/catalog/basic/modal.mjs 800 B
packages/a2ui-renderer/dist/web-components/catalog/basic/row.cjs 471 B
packages/a2ui-renderer/dist/web-components/catalog/basic/row.mjs 427 B
packages/a2ui-renderer/dist/web-components/catalog/basic/slider.cjs 701 B
packages/a2ui-renderer/dist/web-components/catalog/basic/slider.mjs 653 B
packages/a2ui-renderer/dist/web-components/catalog/basic/tabs.cjs 780 B
packages/a2ui-renderer/dist/web-components/catalog/basic/tabs.mjs 730 B
packages/a2ui-renderer/dist/web-components/catalog/basic/text-field.cjs 857 B
packages/a2ui-renderer/dist/web-components/catalog/basic/text-field.mjs 814 B
packages/a2ui-renderer/dist/web-components/catalog/basic/text.cjs 553 B
packages/a2ui-renderer/dist/web-components/catalog/basic/text.mjs 501 B
packages/a2ui-renderer/dist/web-components/catalog/basic/utils.cjs 484 B
packages/a2ui-renderer/dist/web-components/catalog/basic/utils.mjs 462 B
packages/a2ui-renderer/dist/web-components/catalog/basic/video.cjs 400 B
packages/a2ui-renderer/dist/web-components/catalog/basic/video.mjs 352 B
packages/a2ui-renderer/dist/web-components/catalog/children.cjs 302 B
packages/a2ui-renderer/dist/web-components/catalog/children.mjs 300 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/button.cjs 629 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/button.mjs 584 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/column.cjs 609 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/column.mjs 559 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/components.cjs 245 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/components.mjs 263 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/index.cjs 724 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/index.mjs 654 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/row.cjs 593 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/row.mjs 544 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/text-field.cjs 874 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/text-field.mjs 822 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/text.cjs 509 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/text.mjs 477 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/utils.cjs 291 B
packages/a2ui-renderer/dist/web-components/catalog/minimal/utils.mjs 287 B
packages/a2ui-renderer/dist/web-components/create-catalog.cjs 1.89 kB
packages/a2ui-renderer/dist/web-components/create-catalog.mjs 1.83 kB
packages/a2ui-renderer/dist/web-components/define.cjs 440 B
packages/a2ui-renderer/dist/web-components/define.mjs 341 B
packages/a2ui-renderer/dist/web-components/index.cjs 960 B
packages/a2ui-renderer/dist/web-components/index.mjs 655 B
packages/a2ui-renderer/dist/web-components/node.cjs 1.05 kB
packages/a2ui-renderer/dist/web-components/node.mjs 1.04 kB
packages/a2ui-renderer/dist/web-components/surface.cjs 2.83 kB
packages/a2ui-renderer/dist/web-components/surface.mjs 2.81 kB
packages/core/dist/index.cjs 46.6 kB
packages/core/dist/index.mjs 46.2 kB
packages/core/dist/index.umd.js 49.5 kB
packages/react-core/dist/copilotkit-BpHTJy6u.cjs 107 kB
packages/react-core/dist/copilotkit-Cef0-CHL.mjs 105 kB
packages/react-core/dist/index.cjs 16.9 kB
packages/react-core/dist/index.mjs 16.8 kB
packages/react-core/dist/index.umd.js 64.9 kB
packages/react-core/dist/v2/context.cjs 1.55 kB
packages/react-core/dist/v2/context.mjs 1.47 kB
packages/react-core/dist/v2/headless.cjs 12.7 kB
packages/react-core/dist/v2/headless.mjs 12.1 kB
packages/react-core/dist/v2/index.cjs 1.26 kB
packages/react-core/dist/v2/index.mjs 1.11 kB
packages/react-core/dist/v2/index.umd.js 106 kB
packages/react-textarea/dist/index.cjs 18.1 kB
packages/react-textarea/dist/index.mjs 17.4 kB
packages/react-textarea/dist/index.umd.js 18.8 kB
packages/react-ui/dist/index.cjs 24.6 kB
packages/react-ui/dist/index.mjs 23.9 kB
packages/react-ui/dist/index.umd.js 25.8 kB
packages/runtime-client-gql/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/runtime-client-gql/dist/client/conversion.cjs 1.52 kB
packages/runtime-client-gql/dist/client/conversion.mjs 1.45 kB
packages/runtime-client-gql/dist/client/CopilotRuntimeClient.cjs 1.58 kB
packages/runtime-client-gql/dist/client/CopilotRuntimeClient.mjs 1.54 kB
packages/runtime-client-gql/dist/client/types.cjs 701 B
packages/runtime-client-gql/dist/client/types.mjs 642 B
packages/runtime-client-gql/dist/graphql/@generated/gql.cjs 850 B
packages/runtime-client-gql/dist/graphql/@generated/gql.mjs 850 B
packages/runtime-client-gql/dist/graphql/@generated/graphql.cjs 2.4 kB
packages/runtime-client-gql/dist/graphql/@generated/graphql.mjs 2.36 kB
packages/runtime-client-gql/dist/graphql/definitions/mutations.cjs 740 B
packages/runtime-client-gql/dist/graphql/definitions/mutations.mjs 732 B
packages/runtime-client-gql/dist/graphql/definitions/queries.cjs 316 B
packages/runtime-client-gql/dist/graphql/definitions/queries.mjs 304 B
packages/runtime-client-gql/dist/index.cjs 679 B
packages/runtime-client-gql/dist/index.mjs 495 B
packages/runtime-client-gql/dist/index.umd.js 9.58 kB
packages/runtime-client-gql/dist/message-conversion/agui-to-gql.cjs 1.72 kB
packages/runtime-client-gql/dist/message-conversion/agui-to-gql.mjs 1.7 kB
packages/runtime-client-gql/dist/message-conversion/gql-to-agui.cjs 1.56 kB
packages/runtime-client-gql/dist/message-conversion/gql-to-agui.mjs 1.53 kB
packages/runtime-client-gql/dist/package.cjs 181 B
packages/runtime-client-gql/dist/package.mjs 116 B
packages/shared/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/shared/dist/a2ui-prompts.cjs 2.85 kB
packages/shared/dist/a2ui-prompts.mjs 2.85 kB
packages/shared/dist/attachments/utils.cjs 1.74 kB
packages/shared/dist/attachments/utils.mjs 1.7 kB
packages/shared/dist/constants/index.cjs 362 B
packages/shared/dist/constants/index.mjs 345 B
packages/shared/dist/debug.cjs 454 B
packages/shared/dist/debug.mjs 452 B
packages/shared/dist/finalize-events.cjs 1.05 kB
packages/shared/dist/finalize-events.mjs 1 kB
packages/shared/dist/index.cjs 1.99 kB
packages/shared/dist/index.mjs 1.66 kB
packages/shared/dist/index.umd.js 20.3 kB
packages/shared/dist/logger.cjs 112 B
packages/shared/dist/logger.mjs 112 B
packages/shared/dist/package.cjs 181 B
packages/shared/dist/package.mjs 116 B
packages/shared/dist/standard-schema.cjs 740 B
packages/shared/dist/standard-schema.mjs 737 B
packages/shared/dist/telemetry/lambda-client.cjs 1.14 kB
packages/shared/dist/telemetry/lambda-client.mjs 1.13 kB
packages/shared/dist/telemetry/telemetry-client.cjs 1.33 kB
packages/shared/dist/telemetry/telemetry-client.mjs 1.27 kB
packages/shared/dist/telemetry/utils.cjs 321 B
packages/shared/dist/telemetry/utils.mjs 277 B
packages/shared/dist/transcription-errors.cjs 951 B
packages/shared/dist/transcription-errors.mjs 944 B
packages/shared/dist/utils/clipboard.cjs 407 B
packages/shared/dist/utils/clipboard.mjs 405 B
packages/shared/dist/utils/conditions.cjs 540 B
packages/shared/dist/utils/conditions.mjs 536 B
packages/shared/dist/utils/console-styling.cjs 1.24 kB
packages/shared/dist/utils/console-styling.mjs 1.22 kB
packages/shared/dist/utils/errors.cjs 4.51 kB
packages/shared/dist/utils/errors.mjs 4.41 kB
packages/shared/dist/utils/index.cjs 1.39 kB
packages/shared/dist/utils/index.mjs 1.65 kB
packages/shared/dist/utils/json-schema.cjs 1.97 kB
packages/shared/dist/utils/json-schema.mjs 1.91 kB
packages/shared/dist/utils/random-id.cjs 618 B
packages/shared/dist/utils/random-id.mjs 559 B
packages/shared/dist/utils/requests.cjs 706 B
packages/shared/dist/utils/requests.mjs 704 B
packages/shared/dist/utils/types.cjs 161 B
packages/shared/dist/utils/types.mjs 160 B
packages/voice/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/voice/dist/index.cjs 175 B
packages/voice/dist/index.mjs 95 B
packages/voice/dist/index.umd.js 1.5 kB
packages/voice/dist/transcription/transcription-service-openai.cjs 495 B
packages/voice/dist/transcription/transcription-service-openai.mjs 434 B
packages/web-inspector/dist/assets/inspector-logo-icon.cjs 499 B
packages/web-inspector/dist/assets/inspector-logo-icon.mjs 434 B
packages/web-inspector/dist/assets/inspector-logo.cjs 4.32 kB
packages/web-inspector/dist/assets/inspector-logo.mjs 4.23 kB
packages/web-inspector/dist/index.cjs 59.3 kB
packages/web-inspector/dist/index.mjs 59.3 kB
packages/web-inspector/dist/index.umd.js 77.4 kB
packages/web-inspector/dist/lib/context-helpers.cjs 862 B
packages/web-inspector/dist/lib/context-helpers.mjs 830 B
packages/web-inspector/dist/lib/persistence.cjs 1.2 kB
packages/web-inspector/dist/lib/persistence.mjs 1.16 kB
packages/web-inspector/dist/lib/telemetry.cjs 2.54 kB
packages/web-inspector/dist/lib/telemetry.mjs 2.44 kB
packages/web-inspector/dist/package.cjs 181 B
packages/web-inspector/dist/package.mjs 116 B
packages/web-inspector/dist/styles/generated.cjs 6.42 kB
packages/web-inspector/dist/styles/generated.mjs 6.36 kB

compressed-size-action

@github-actions

Copy link
Copy Markdown
Contributor

Showcase Eval Results

Verdict ❌ EVAL FAILED (exit code: 1)
Level d5
Scope affected
Run View workflow
Error output (last 50 lines)
�[31m[showcase] Error:�[0m docker compose failed (exit 1): docker compose -f /home/runner/work/CopilotKit/CopilotKit/showcase/docker-compose.local.yml --profile all ps --status running langgraph-python
env file /home/runner/work/CopilotKit/CopilotKit/showcase/.env not found: stat /home/runner/work/CopilotKit/CopilotKit/showcase/.env: no such file or directory

@github-actions

Copy link
Copy Markdown
Contributor

Showcase Eval Results

Verdict ❌ EVAL FAILED (exit code: 1)
Level d5
Scope affected
Run View workflow
Error output (last 50 lines)
 harness-pool-worker Warning pull access denied for showcase-harness, repository does not exist or may require 'docker login'
 mastra Warning pull access denied for showcase-mastra, repository does not exist or may require 'docker login'
 agno Warning pull access denied for showcase-agno, repository does not exist or may require 'docker login'
 spring-ai Warning pull access denied for showcase-spring-ai, repository does not exist or may require 'docker login'
 strands Warning pull access denied for showcase-strands, repository does not exist or may require 'docker login'
 ms-agent-python Warning pull access denied for showcase-ms-agent-python, repository does not exist or may require 'docker login'
 ms-agent-harness-dotnet Warning pull access denied for showcase-ms-agent-harness-dotnet, repository does not exist or may require 'docker login'
 pocketbase Warning pull access denied for showcase-pocketbase, repository does not exist or may require 'docker login'
 langroid Warning pull access denied for showcase-langroid, repository does not exist or may require 'docker login'
 crewai-crews Warning pull access denied for showcase-crewai-crews, repository does not exist or may require 'docker login'
 claude-sdk-typescript Warning pull access denied for showcase-claude-sdk-typescript, repository does not exist or may require 'docker login'
 ms-agent-dotnet Warning pull access denied for showcase-ms-agent-dotnet, repository does not exist or may require 'docker login'
 c9f9bcfe4d58 Pulling fs layer 
 d10ff586f6bd Pulling fs layer 
 60a2605f4798 Pulling fs layer 
 3f4c164634d2 Pulling fs layer 
 1d4d101ceaad Pulling fs layer 
 f749db4a1d56 Pulling fs layer 
 9f2587202ec0 Pulling fs layer 
 55afa1ecc21d Pulling fs layer 
 f749db4a1d56 Downloading [=========================================>         ]  5.243MB/6.387MB
 c9f9bcfe4d58 Download complete 
 55afa1ecc21d Download complete 
 d10ff586f6bd Download complete 
 f749db4a1d56 Download complete 
 3f4c164634d2 Downloading [===========>                                       ]  11.53MB/52.31MB
 60a2605f4798 Download complete 
 1d4d101ceaad Download complete 
 9f2587202ec0 Download complete 
 55afa1ecc21d Extracting 1 s
 3f4c164634d2 Downloading [==============================================>    ]  48.23MB/52.31MB
 55afa1ecc21d Pull complete 
 3f4c164634d2 Downloading [==================================================>]  52.31MB/52.31MB
 3f4c164634d2 Download complete 
 3f4c164634d2 Extracting 1 s
 3f4c164634d2 Extracting 1 s
 3f4c164634d2 Extracting 1 s
 3f4c164634d2 Extracting 1 s
 3f4c164634d2 Extracting 1 s
 3f4c164634d2 Extracting 1 s
 1d4d101ceaad Extracting 1 s
 3f4c164634d2 Pull complete 
 d10ff586f6bd Pull complete 
 f749db4a1d56 Extracting 1 s
 60a2605f4798 Pull complete 
 1d4d101ceaad Pull complete 
 c9f9bcfe4d58 Pull complete 
 f749db4a1d56 Pull complete 
 9f2587202ec0 Pull complete 
 aimock Pulled

@github-actions

Copy link
Copy Markdown
Contributor

Showcase Eval Results

Verdict ❌ EVAL FAILED (exit code: 1)
Level d5
Scope mastra
Run View workflow
Error output (last 50 lines)
{"level":"warn","msg":"failed to stop services during teardown","ts":"2026-07-21T16:19:50.647Z","component":"eval","err":"docker compose failed (exit 1): docker compose -f /home/runner/work/CopilotKit/CopilotKit/showcase/docker-compose.local.yml --profile mastra --profile aimock stop mastra aimock\nservice \"mastra\" depends on undefined service \"aimock\": invalid compose project"}
Partial JSON output
{
  "version": 1,
  "timestamp": "2026-07-21T16:19:50.576Z",
  "branch": "HEAD",
  "base": "origin/main",
  "level": "d5",
  "scope": {
    "mode": "all",
    "reason": "manual override: mastra",
    "slugs": [
      "mastra"
    ]
  },
  "results": {
    "mastra": {
      "_status": {
        "status": "unhealthy",
        "duration_ms": 0
      }
    }
  },
  "summary": {
    "total": 1,
    "pass": 0,
    "fail": 1,
    "skip": 0,
    "duration_ms": 0
  }
}

@github-actions

Copy link
Copy Markdown
Contributor

Showcase Eval Results

Verdict ❌ EVAL FAILED (exit code: 1)
Level d5
Scope langgraph-python
Run View workflow
Error output (last 50 lines)
{"level":"warn","msg":"failed to stop services during teardown","ts":"2026-07-21T16:29:48.314Z","component":"eval","err":"docker compose failed (exit 1): docker compose -f /home/runner/work/CopilotKit/CopilotKit/showcase/docker-compose.local.yml --profile langgraph-python --profile aimock stop langgraph-python aimock\nservice \"langgraph-python\" depends on undefined service \"aimock\": invalid compose project"}
Partial JSON output
{
  "version": 1,
  "timestamp": "2026-07-21T16:29:48.239Z",
  "branch": "HEAD",
  "base": "origin/main",
  "level": "d5",
  "scope": {
    "mode": "all",
    "reason": "manual override: langgraph-python",
    "slugs": [
      "langgraph-python"
    ]
  },
  "results": {
    "langgraph-python": {
      "_status": {
        "status": "unhealthy",
        "duration_ms": 0
      }
    }
  },
  "summary": {
    "total": 1,
    "pass": 0,
    "fail": 1,
    "skip": 0,
    "duration_ms": 0
  }
}

contextablemark and others added 5 commits July 21, 2026 16:33
…gold fixture parity

The tool-rendering cell (marked supported) had 5/6 e2e failing and
tool-rendering-reasoning-chain 2/5, all from mastra aimock fixtures diverging
from the langgraph-python gold standard. Root cause: several fixtures were
keyed on generic substrings where gold uses unique tails, so they
substring-collided with the longer chain pills and — loading earlier
(alphabetical file order) — hijacked them.

Verified on a faithful rig (Node 22 + next build/start + aimock 1.37.4 replay):

- Stock: the pill's scripted $338.37 fixture was shadowed by
  headless-complete's ticker-only "price of AAPL" leg (tool's 189.42 default).
  Restore gold's unique "price of AAPL right now" key; key the tool-rendering
  emit leg on toolName (gold parity).
- d20: the first-roll leg gated on hasToolResult:false never matched once
  prior-pill tool results lingered in thread history -> 0 cards. Match on
  userMessage only (gold). Add stopWhen: stepCountIs(8) to toolRenderingAgent
  so the 5-roll sequence + narration (and the 3-tool chain-tools turn) run to
  completion instead of stopping at the default step cap.
- chain-tools: headless-complete's generic "weather in Tokyo" leg hijacked the
  "...get the weather in Tokyo..." pill and emitted only get_weather. Restore
  gold's "What's the weather in Tokyo" key.
- reasoning-chain flights+weather + sequential: beautiful-chat's generic
  "Find flights from SFO to JFK" legs hijacked the "...JFK and show me the
  weather there" pill. Restore gold's "for next Tuesday" key.

Result: tool-rendering 6/6, tool-rendering-reasoning-chain 5/5, beautiful-chat
8/8 (no regression) under aimock replay.

Note: headless-complete's own weather/stock/revenue cards remain red on a
separate pre-existing bug (headlessCompleteAgent tool-registration + a missing
get_revenue_chart tool) — addressed in a follow-up commit.

--no-verify: this sparse showcase checkout has no monorepo lefthook/commitlint
binaries (matches prior commits on this branch).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…istration + get_revenue_chart + scriptable weather

headless-complete is marked supported but its WeatherCard / StockCard / ChartCard
stalled in the "running" state. headlessCompleteAgent registered tools via object
shorthand ({ weatherTool, stockPriceTool }), which exposes the JS variable names
instead of the snake_case names the aimock fixtures + useRenderTool renderers emit
(get_weather / get_stock_price / get_revenue_chart) — so the scripted tool calls
were never executable — and get_revenue_chart had no backend tool at all.

- Re-key headlessCompleteAgent to explicit { get_weather, get_stock_price,
  get_revenue_chart } (mirrors gold langgraph-python headless_complete.py).
- Add revenueChartTool (id get-revenue-chart) returning gold's fixed payload
  { title: "Quarterly revenue", subtitle, data: [6x {label,value}] }.
- Make weatherTool accept optional scripted temperature/conditions/humidity/
  wind_speed (echoed when provided, else the seeded getWeatherImpl) — mirrors
  get_stock_price's scripted price_usd. Gold's headless get_weather is a fixed
  68 degF / Sunny mock while mastra's is seeded, so the headless weather fixtures
  script 68/Sunny to match gold's card; tool-rendering's SF pill keeps its seeded
  value. Scripted the winning headless-complete + gen-ui-headless-complete
  "What's the weather in Tokyo" legs and aligned the narration to gold. (No gold/
  shared backend touched — mastra tool + mastra fixtures only.)

Verified (Node 22 + next build/start + aimock 1.37.4 replay): headless-complete
5/5; tool-rendering 6/6, tool-rendering-reasoning-chain 5/5, beautiful-chat 8/8,
agentic-chat and headless-simple weather unaffected — no regression.

--no-verify: sparse showcase checkout has no monorepo lefthook/commitlint binaries.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…xture hijacking it

headless-simple's "Give me a fun fact." pill rendered the wrong text
("Here's a fun fact: honey never spoils…") and the e2e failed. Root cause:
d4/mastra/chat.json keyed the prebuilt-sidebar agentic-chat fixture on the
bare "fun fact", which is a substring of the headless-simple pill "Give me a
fun fact." Because d4 loads before d6, that fixture shadowed headless-simple's
own d6 fixture ("A fun fact: Honey never spoils!").

Re-key it to the unique "fun fact for the prebuilt sidebar" phrase (mirrors
gold langgraph-python), so it no longer substring-collides. The prebuilt-sidebar
demo pill "Give me a fun fact." now shares headless-simple's d6 fun-fact
fixture, exactly as gold does; prebuilt-sidebar/popup e2e unaffected.

Verified (Node 22 + next start + aimock 1.37.4 replay): headless-simple 4/4,
prebuilt-sidebar 4/4, prebuilt-popup 4/4 — and the full mastra card/chat suite
green (tool-rendering 6/6, tool-rendering-reasoning-chain 5/5, headless-complete
5/5, beautiful-chat 8/8, agentic-chat 4/4). Only a userMessage key changed
(more specific → strictly fewer aimock substring-shadows, well under the
KNOWN_SHADOW_CEILING).

--no-verify: sparse showcase checkout has no monorepo lefthook/commitlint binaries.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

@contextablemark contextablemark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@contextablemark
contextablemark merged commit 64daf49 into main Jul 21, 2026
29 checks passed
@contextablemark
contextablemark deleted the claude/brave-kirch-8dbf00 branch July 21, 2026 23:44
contextablemark added a commit that referenced this pull request Jul 23, 2026
…+ useComponent probe path (OSS-381) (#6103)

## What

Two mastra showcase D6 follow-ups to #5798 (v1 bridge alpha). Both cells
went red the moment #5798 took them out of `not_supported_features` —
they were claimed supported before actually passing. **Neither is a
v1-bridge streaming regression.**

## Commits

**1. gen-ui-agent completes all 3 steps (raise step cap)** — `57afed6dd`
"Generative UI: Agent State" (gen-ui-agent) stalled at 2/3 steps:
`genUiAgent` set no stop condition, so the AI SDK default halted the
agentic loop before the 3rd step completed. Adds
`defaultOptions.stopWhen = stepCountIs(12)`. Verified 6/6 on the Node-22
+ `next start` + aimock replay rig; tool-rendering / gen-ui-tool-based
unaffected.

**2. useComponent (gen-ui-tool-based) — probe took the wrong path** —
`4640d6304`
The D5 `gen-ui-custom` probe omitted `mastra` from `CHART_INTEGRATIONS`,
so it sent the *haiku* prompt and hunted for a haiku card. mastra's demo
is the LGP-style `useComponent` chart demo (`render_pie_chart` /
`render_bar_chart`) with no haiku tool, so the assistant bubble came
back empty (*"haiku card [data-testid=copilot-assistant-message]
rendered but has no text content"*).
- Add `"mastra"` to `CHART_INTEGRATIONS`.
- Add `aimock/d6/mastra/gen-ui-custom.json` (mirrors langgraph-python;
identical pie schema `{title, description, data:[{label,value}]}`) so
the cell is deterministic under replay instead of falling through to the
live upstream.
- Repoint the probe unit test's haiku-empty-card case from `"mastra"` →
`"agno"` (a genuine haiku integration).

## Verification

- gen-ui-agent: 6/6 on the faithful rig.
- useComponent: logic-only harness + fixture changes; harness unit tests
run in CI (sparse local checkout has no vitest).

## Refs

- Follow-on to #5798. Linear **OSS-381** (mastra refresh umbrella).
- Companion `@ag-ui/mastra` PR — multi-turn Responses-API message-id 400
fix: ag-ui-protocol/ag-ui#2227.
- Sibling from the same triage (separate, not fixed here): **PNI-100** —
hitl-in-app follow-up-run gap.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.

3 participants