Skip to content

fix(showcase): D6 reds remediation on built-in-agent — testid backfill + PARITY_NOTES + aimock fixtures + STATE_DELTA wiring - #5413

Merged
jpr5 merged 6 commits into
mainfrom
fix/built-in-agent-d6
Jun 12, 2026
Merged

jpr5 merged 6 commits into
mainfrom
fix/built-in-agent-d6

Conversation

@jpr5

@jpr5 jpr5 commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Scope

Built-in-agent integration D6 readiness pass — companion to PR #5407 (merged) which fixed the claude-sdk-python integration. This PR follows the same PARITY_NOTES pattern.

What changed

  • ~28 testids backfilled across 13 demos: declarative-gen-ui renderers, headless-complete (assistant-bubble, user-bubble, weather-card, highlight-note, input-bar), headless-simple, gen-ui-agent, a2ui-fixed-schema (definitions + renderers), auth (new sign-in-card component), chat-slots welcome, gen-ui-interrupt cancel.
  • New components: shared not-supported-banner for NSF demos (hitl, shared-state-streaming); subagents extraction into LGP-mirror components (subagent-activity-card, delegation-log, supervisor-activity-banner).
  • 2 aimock fixtures: gen-ui-a2ui-fixed.json (new — routes display_flight pill through the Card mount); gen-ui-declarative.json (reshaped to BIA's two-call sequence + flat catalog shape).
  • 1 backend wire-up: set_steps tool registered in state-tools and wired through tanstack-factory so gen-ui-agent emits STATE_DELTA events on its agent-plan stream.
  • PARITY_NOTES.md: tracks BIA-vs-LGP feature parity + a Known Issues section.
  • feature-registry.json: adds threadid-frontend-tool-roundtrip feature entry.

D6 verify status

  • 3 GREEN: auth, chat-slots, subagents.
  • 1 expected-NSF: gen-ui-interrupt (cancel testid verified).
  • 3 still RED with documented downstream root causes (all require fixes in packages/react-core, outside this PR's scope — see PARITY_NOTES.md "Known Issues"):
    • a2ui-fixed-schema: renderer host doesn't mount Card.
    • gen-ui-agent: STATE_DELTA stream emits, but useAgent state-subscription gap prevents the React side from observing the delta.
    • declarative-gen-ui: same renderer-host class as a2ui-fixed-schema.
  • 2 additional reds are pre-existing harness issues NOT introduced here: headless-complete aimock fixture, headless-simple chip-text drift.

Verify reports: /tmp/cr/verify-5425/d6-direct-v2-REPORT.md.

Builds on

PR #5407's PARITY_NOTES pattern for documenting integration-vs-LGP gaps with downstream-tracked known issues.

jpr5 added 5 commits June 12, 2026 05:02
Backfills data-testid attributes to enable D6 cross-integration test
coverage for the built-in-agent integration. Covers:

- declarative-gen-ui renderers (5 testids)
- headless-complete demo components (6 testids: assistant-bubble,
  user-bubble, weather-card, highlight-note, input-bar)
- headless-simple page (3 testids)
- gen-ui-agent page (3 testids including agent-step)
- a2ui-fixed-schema definitions + renderers (chat-slots, auth flow)
- new sign-in-card component for auth demo
- gen-ui-interrupt cancel testid on time-picker-card
- shared not-supported-banner component for hitl +
  shared-state-streaming NSF demos
…LGP-mirror components

Extracts the inline subagents page DelegationCard into three reusable
components that mirror the LGP integration layout, enabling D6 testid
coverage:

- subagent-activity-card.tsx: per-subagent activity panel
- delegation-log.tsx: cumulative delegation event log
- supervisor-activity-banner.tsx: supervisor-level status banner

The subagents page now composes these components instead of inlining
the markup, with data-testid hooks for D6 selectors.
…ive fixtures for built-in-agent D6

Two aimock fixture updates to unblock built-in-agent D6 verification:

- gen-ui-a2ui-fixed.json: new fixture so display_flight pill routes
  the Card mount through the a2ui-fixed-schema renderer host
- gen-ui-declarative.json: reshaped to the built-in-agent two-call
  sequence with the flat catalog shape the BIA route emits
…ATE_DELTA stream

Adds the set_steps tool definition to state-tools and wires it through
the tanstack factory so the gen-ui-agent demo emits STATE_DELTA events
on its agent-plan stream the same way the LGP integration does.
…id-frontend-tool-roundtrip + known issues

Documentation companion to the BIA D6 readiness work:

- PARITY_NOTES.md: tracks built-in-agent feature parity vs LGP +
  a 'Known Issues' section documenting 3 D6 demos that remain red
  due to downstream renderer/state gaps in @copilotkit/react-core
  (a2ui renderer host doesn't mount Card; STATE_DELTA → useAgent
  state-subscription gap; declarative-gen-ui renderer host shares
  the same class). All three require fixes outside this PR's scope.
- feature-registry.json: adds threadid-frontend-tool-roundtrip
  feature entry covering the new gen-ui-agent STATE_DELTA wiring.
@vercel

vercel Bot commented Jun 12, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jun 12, 2026 12:15pm
research-canvas Ready Ready Preview, Comment Jun 12, 2026 12:15pm
travel Ready Ready Preview, Comment Jun 12, 2026 12:15pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
chat-with-your-data Skipped Skipped Jun 12, 2026 12:15pm
form-filling Skipped Skipped Jun 12, 2026 12:15pm

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

@github-actions

github-actions Bot commented Jun 12, 2026 •

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

12 of 41 service(s) not digest-pinned.

Service Source.image Status
starter-adk ghcr.io/copilotkit/starter-adk:latest mutable-tag
starter-agno ghcr.io/copilotkit/starter-agno:latest mutable-tag
starter-crewai-crews ghcr.io/copilotkit/starter-crewai-crews:latest mutable-tag
starter-langgraph-fastapi ghcr.io/copilotkit/starter-langgraph-fastapi:latest mutable-tag
starter-langgraph-js ghcr.io/copilotkit/starter-langgraph-js:latest mutable-tag
starter-langgraph-python ghcr.io/copilotkit/starter-langgraph-python:latest mutable-tag
starter-llamaindex ghcr.io/copilotkit/starter-llamaindex:latest mutable-tag
starter-mastra ghcr.io/copilotkit/starter-mastra:latest mutable-tag
starter-ms-agent-framework-dotnet ghcr.io/copilotkit/starter-ms-agent-framework-dotnet:latest mutable-tag
starter-ms-agent-framework-python ghcr.io/copilotkit/starter-ms-agent-framework-python:latest mutable-tag
starter-pydantic-ai ghcr.io/copilotkit/starter-pydantic-ai:latest mutable-tag
starter-strands-python ghcr.io/copilotkit/starter-strands-python:latest mutable-tag

Run 2026-06-12 05:12:56 PDT — 12 finding(s).

@vercel
vercel Bot temporarily deployed to Preview – form-filling June 12, 2026 12:12 Inactive
@vercel
vercel Bot temporarily deployed to Preview – chat-with-your-data June 12, 2026 12:12 Inactive
@jpr5
jpr5 merged commit 9984c82 into main Jun 12, 2026
33 of 34 checks passed
@jpr5
jpr5 deleted the fix/built-in-agent-d6 branch June 12, 2026 14:57
jpr5 added a commit that referenced this pull request Jun 12, 2026
…TA op:add (#5421)

## Summary

Small followups to PR #5413 (BIA D6 readiness, merged 2026-06-12).

- **`PARITY_NOTES.md` NSF naming**: corrected `hitl` (which is supported
in BIA via Strategy-B `useFrontendTool`) to call out the actual
NSF-quarantined demos `gen-ui-interrupt` and `shared-state-streaming`
per the manifest. PR #5413's NSF banner commit (`3585c33b8`) mounted the
banners on the correct demos.
- **Sub-Agents TODO removed**: post-merge staging dashboard showed
sub-agents RED; diagnose confirmed code on `5e828aed9` is correct (local
`--direct` D6 PASSES). The staging RED was stale dashboard image /
fixture cache, not code. PARITY_NOTES no longer claims sub-agents is a
known-issue.
- **gen-ui-agent STATE_DELTA op fix**: BIA's `set_steps` tool emission
used RFC-6902 `op: "replace"` on path `/steps`, but the agent's initial
state is `{}` and `fast-json-patch` rejects unresolvable paths in strict
mode (`@ag-ui/[email protected]` swallows the throw with `console.warn`).
Changing to `op: "add"` creates the path on first emission and
idempotently overwrites on subsequent calls. Single-line fix in
`tanstack-factory.ts`.

## Out-of-scope (tracked separately)

- **a2ui-fixed-schema + declarative-gen-ui** (PR #5413 documented
known-issues): root cause is in `@copilotkit/runtime/v2` v2-stack
pipeline OR `@ag-ui/[email protected]` JSON.parse gap — one upstream
fix likely unblocks both. Diagnose reports at
`/tmp/cr/bia-rxr-diagnose/{a2ui-fixed-schema,declarative-gen-ui}.md`.
Needs separate packages PR.
- **tool-rendering port + headless-complete missing components**: BIA
needs StockCard, ChartCard, `get_revenue_chart` server tool, UI
primitives. Separate component-port PR.
- **shadcn catchall**: product/design call pending (escalate to PM).

## Test plan

- [x] Local `--direct` D6 verify on `gen-ui-agent` after the JSON-Patch
op fix
- [x] CI green on PR
jpr5 added a commit that referenced this pull request Jun 15, 2026
… + headless-complete + LGP-canonical naming (#5427)

## Summary

BIA D6 component port (#4 from PR #5413 followup list). Companion to PR
#5407 (claude-sdk-python), PR #5413 (initial BIA D6), PR #5421 (BIA D6
small follow-ups). Brings BIA closer to LGP gold-standard parity.

### What's in

- **tool-rendering**: 5 LGP-mirrored companion components
(`weather-card`, `flight-list-card`, `stock-card`, `d20-card`,
`custom-catchall-renderer`) + extracted `tool-renderers.tsx` wiring.
**D6 GREEN.**
- **headless-complete**: 2 new components (`stock-card`, `chart-card`) +
`get_revenue_chart` server tool + LGP-aligned 4 pill suggestions +
`data-message-role` on bubble cascade + `get_weather` tool name fix in
tool-renderers. Turns 1 (weather) + 2 (stock) GREEN.
- **roll_dice → roll_d20 rename** across BIA backend + reasoning-chain
references (LGP canonical naming).
- **aimock fixtures**: BIA-namespaced `tool-rendering.json` updated +
`tool-rendering-reasoning-chain.json` realigned to the rename.
- **PARITY_NOTES**: documents the server-tool reprompt loop
architectural gap blocking turns 3+4 of headless-complete.

### Known issue (documented in PARITY_NOTES.md, out-of-PR-scope)

headless-complete turns 3 (highlight_note) and 4 (revenue_chart) RED due
to BIA's TanStack multi-turn server-tool reprompt cycle + aimock
userMessage-keyed fixtures looping until timeout. Three remediation
options identified — all require changes outside this PR's scope (BIA
agent architecture / aimock matcher precedence / fixture matcher
gating).

### Test plan

- [x] Local `--direct` D6 on tool-rendering: GREEN (2.8s)
- [x] Local `--direct` D6 on headless-complete: turns 1+2 GREEN, turns
3+4 RED (documented)
- [x] CI green on PR

This branch was successfully deployed

3 active and 2 inactive deployments
Preview – travel — 1427475a Deployed Jun 12, 2026 by vercel[bot]
Preview – research-canvas — 1427475a Deployed Jun 12, 2026 by vercel[bot]
Preview – docs — 1427475a Deployed Jun 12, 2026 by vercel[bot]
Preview – form-filling — 1427475a Deployed Jun 12, 2026 by vercel[bot]
Preview – chat-with-your-data — 1427475a Deployed Jun 12, 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