Skip to content

feat(showcase): add OpenAI Agents SDK (Python) integration - #8242

Merged
mme merged 13 commits into
mainfrom
mme/openai-agents-sdk-showcase
Nov 10, 2026
Merged

mme merged 13 commits into
mainfrom
mme/openai-agents-sdk-showcase

Conversation

@mme

@mme mme commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds the OpenAI Agents SDK (Python) showcase package, showcase/integrations/openai-agents-python. It runs on the AG-UI adapter ag-ui-openai-agents 0.1.0 from PyPI, released today from ag-ui-protocol/ag-ui#2210.

  • Layout. A FastAPI agent server has one AG-UI endpoint per demo at POST /<name>. Each demo is a plain module-level Agent wrapped in the adapter's OpenAIAgentsAgent. The Next runtime routes map each agent name to its path. Inbound x-* mock and diagnostic headers are copied onto every model call, and x-aimock-context is fixed to the slug.
  • Coverage. 39 features are declared, and all 42 D6 cells are green. cli-start is the only feature not supported, because there is no CLI starter yet.
  • What the adapter does. It turns approval pauses into AG-UI interrupts, resumes statelessly from the resume entries, gives tools the run's state through shared_state(), keeps reasoning in MESSAGES_SNAPSHOT, and passes the page's tools to the model as client tools.
  • App-level shims. Two subclasses of OpenAIAgentsAgent cover what the adapter leaves to the app:
    • SchedulerAgent (gen-ui-interrupt, interrupt-headless) hands the picked time from the resume payload to the paused schedule_meeting call.
    • DocumentStreamingAgent (shared-state-streaming) streams the write_document argument into state while the model writes it.
  • Model. Like the other OpenAI-backed integrations since a358fa0, it defaults to gpt-6-luna. The chat agents, the sub-agents and the A2UI render call run with reasoning off (chat_settings() in _common.py), and the reasoning demos keep low effort with summaries.
  • Deployment. Staging only, and the package stays deployed: false until a prod instance exists. The Railway service showcase-openai-agents-python exists in staging, configured like showcase-ag2 with OPENAI_BASE_URL on the env-local aimock. A later commit wires it into showcase_build.yml and railway-envs.ts, so a push to main builds the image and redeploys it.

Commits are split by area: agent server, demo app, e2e and D6 fixtures, registration, CI, docs. Later commits add what the first CI run caught (the config allowlist entry, the compatibility mapping and two count tests), the switch to GPT-6 Luna, the Railway staging wiring and the lifecycle policy bridge.

Known gaps

  • CopilotKit pins. The package is pinned to CopilotKit 1.76.0 through the canonical pins, like google-antigravity. On that version, 4 declarative-gen-ui Playwright tests fail because they need the data-message-role attribute from a newer react-core.
  • CVDIAG. The backend emitter works. D6 test ids aren't UUIDv7, so backend rows don't join probe rows. That's the same for every Python integration.

Related PRs and Issues

Test plan

  • bin/showcase test openai-agents-python --d6 --isolate --rebuild on the rebased branch: 43/43 status records green (42 cells plus the slug aggregate); all 149 aimock calls matched a fixture
  • Package Playwright specs, run the way the on-demand E2E job runs them (native aimock with the CI fixture set and AIMOCK_STRICT_TURN_INDEX=1, uvicorn on the PyPI adapter, next start): 188 passed, 2 skipped, 4 failed. All 4 failures are the declarative-gen-ui data-message-role tests described above.
  • showcase/scripts vitest after merging main (with fix(showcase): warn on unregistered services, unbind runner registry #8287) and adding the lifecycle bridge: 3214/3214. Putting the old d3a7… validator back turns 12 tests red. oxfmt, oxlint and harness tsc are clean.
  • validate-manifests, validate-routes
  • shell-docs vitest: 586/586 (the declarative-hashbrown count moves from 15 to 16 for the new package)
  • shell-dashboard npm test: 1866 passed (the compatibility mapping gains openai-agents, with the adapter excluded)
  • .github/scripts/check-config-allowlist.sh: the package's next.config.ts is on the allowlist
  • pytest tests/python: 20 passed against ag-ui-openai-agents==0.1.0 from PyPI
  • After the Luna switch: D6 is green again (43/43, 149/149 aimock calls matched). Captured request bodies show gpt-6-luna with reasoning: {effort: "none"} for chat agents, sub-agents and the A2UI call, and effort: "low", summary: "auto" for the reasoning demo. aimock's journal doesn't record reasoning, so this was checked against a stub transport.
  • Railway staging wiring: verify-railway-image-refs.ts against live Railway with no records file: 87 env-scoped instances verified. emit-railway-envs-json --check and sync-promote-service-options --check are up to date.
  • CI build check on this PR

Checklist

  • I have read the Contribution Guide
  • If the PR changes or adds functionality, I have updated the relevant documentation
  • If the PR contains a breaking change, the title has ! and the description has a BREAKING CHANGE: line (not breaking)
  • "Allow edits by maintainers" is checked

mme added 6 commits November 6, 2026 13:27
A FastAPI server for the OpenAI Agents SDK (Python), one AG-UI endpoint per
demo, served by the ag-ui-openai-agents adapter from PyPI. Each demo is a
plain module-level Agent wrapped in OpenAIAgentsAgent. Two small subclasses
cover what the adapter leaves to the app: SchedulerAgent hands the picked
time to the paused tool, and DocumentStreamingAgent streams the document
argument into state while the model writes it.

Includes the package manifest, Dockerfile and Python tests (a scripted model
drives the real SDK and adapter).
The Next.js frontend: the shared demo pages, one CopilotKit runtime route per agent group mapping each agent name to its path on the agent server, and the interrupt pages answering approvals with {approved, ...pick}.
Playwright specs for the package and per-slug aimock fixtures for every D6 pill. The interrupt cancel legs are keyed on the tool result saying "not approved".
Adds the slug to the shared package registry, local ports (3122), compose, the canonical CopilotKit pins, the demo region guard and the A2UI recovery probe prompts, plus its shell logo. The script tests' expected counts follow.
Adds the package to the showcase build check and to the on-demand e2e workflow, where its agent server reads the aimock base URL from OPENAI_BASE_URL.
@mme
mme requested review from jpr5 and tylerslaton as code owners November 6, 2026 14:01
@railway-app

railway-app Bot commented Nov 6, 2026

Copy link
Copy Markdown

This PR was not deployed automatically as @mme does not have access to the Railway project.

In order to get automatic PR deploys, please add @mme to your workspace on Railway.

@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords: 4

  • fix(showcase)
  • feat(showcase)
  • chore(release)
  • chore: release

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

All 43 services digest-pinned.

Run 2026-11-10 06:00:25 PST — 0 finding(s).

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Size Change: 0 B

Total Size: 2.47 MB

ℹ️ View Unchanged
Filename Size
packages/a2ui-renderer/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/a2ui-renderer/dist/a2ui-types.cjs 472 B
packages/a2ui-renderer/dist/a2ui-types.mjs 469 B
packages/a2ui-renderer/dist/index.cjs 979 B
packages/a2ui-renderer/dist/index.mjs 637 B
packages/a2ui-renderer/dist/index.umd.js 13.8 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/A2uiSurface.cjs 1.52 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/A2uiSurface.mjs 1.46 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/adapter.cjs 1.87 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/adapter.mjs 1.8 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/AudioPlayer.cjs 920 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/AudioPlayer.mjs 508 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Button.cjs 1.04 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Button.mjs 631 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Card.cjs 845 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Card.mjs 435 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/CheckBox.cjs 1.11 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/CheckBox.mjs 1.04 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.65 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChoicePicker.mjs 1.58 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 856 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Divider.mjs 446 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.21 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Modal.mjs 1.15 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.07 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Slider.mjs 1 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Tabs.cjs 1.11 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Tabs.mjs 1.06 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Text.cjs 919 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Text.mjs 504 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/TextField.cjs 1.22 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/TextField.mjs 1.15 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 594 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/utils.mjs 571 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Button.cjs 998 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Button.mjs 593 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 930 B
packages/a2ui-renderer/dist/react-renderer/catalog-utils.mjs 875 B
packages/a2ui-renderer/dist/react-renderer/core/A2UIProvider.cjs 2.02 kB
packages/a2ui-renderer/dist/react-renderer/core/A2UIProvider.mjs 1.94 kB
packages/a2ui-renderer/dist/react-renderer/core/A2UIRenderer.cjs 909 B
packages/a2ui-renderer/dist/react-renderer/core/A2UIRenderer.mjs 847 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/filter-catalog.cjs 622 B
packages/a2ui-renderer/dist/react-renderer/filter-catalog.mjs 569 B
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 427 B
packages/a2ui-renderer/dist/react-renderer/index.mjs 568 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/core/dist/a2ui-markdown-BxZr1mEU.mjs 13.8 kB
packages/core/dist/a2ui-markdown-DkMXFQih.cjs 13.9 kB
packages/core/dist/generative-ui/index.cjs 37.3 kB
packages/core/dist/generative-ui/index.mjs 37.2 kB
packages/core/dist/index.cjs 94.4 kB
packages/core/dist/index.mjs 93.9 kB
packages/core/dist/index.umd.js 114 kB
packages/mcp-apps-renderer/dist/activity.cjs 259 B
packages/mcp-apps-renderer/dist/activity.mjs 170 B
packages/mcp-apps-renderer/dist/activity.umd.js 2.24 kB
packages/mcp-apps-renderer/dist/constants.cjs 714 B
packages/mcp-apps-renderer/dist/constants.mjs 712 B
packages/mcp-apps-renderer/dist/content-schema.cjs 768 B
packages/mcp-apps-renderer/dist/content-schema.mjs 765 B
packages/mcp-apps-renderer/dist/follow-up.cjs 796 B
packages/mcp-apps-renderer/dist/follow-up.mjs 794 B
packages/mcp-apps-renderer/dist/index.mjs 369 B
packages/mcp-apps-renderer/dist/request-queue.mjs 2.39 kB
packages/mcp-apps-renderer/dist/sandbox.mjs 2 kB
packages/mcp-apps-renderer/dist/session.mjs 6.91 kB
packages/react-core/dist/chat-BnsrQ0VS.cjs 18.4 kB
packages/react-core/dist/chat-IWySXWXP.mjs 18 kB
packages/react-core/dist/copilotkit-C_hENF6p.cjs 136 kB
packages/react-core/dist/copilotkit-DAYYDsMu.mjs 139 kB
packages/react-core/dist/index.cjs 17.8 kB
packages/react-core/dist/index.mjs 17.7 kB
packages/react-core/dist/index.umd.js 85.9 kB
packages/react-core/dist/MarkdownSurfaces-BCVdnDAk.cjs 2.63 kB
packages/react-core/dist/MarkdownSurfaces-CjJduaJR.mjs 2.55 kB
packages/react-core/dist/refs-DiZXJ63p.mjs 495 B
packages/react-core/dist/refs-DL7ITFFD.cjs 590 B
packages/react-core/dist/use-generative-ui-root-CaTyBFNR.cjs 4.53 kB
packages/react-core/dist/use-generative-ui-root-WI9ERMpo.mjs 4.51 kB
packages/react-core/dist/v2/context.cjs 1.58 kB
packages/react-core/dist/v2/context.mjs 1.5 kB
packages/react-core/dist/v2/generative-ui.cjs 47.8 kB
packages/react-core/dist/v2/generative-ui.mjs 46.9 kB
packages/react-core/dist/v2/generative-ui/native.cjs 998 B
packages/react-core/dist/v2/generative-ui/native.mjs 860 B
packages/react-core/dist/v2/headless.cjs 17.7 kB
packages/react-core/dist/v2/headless.mjs 17.2 kB
packages/react-core/dist/v2/index.cjs 4.34 kB
packages/react-core/dist/v2/index.mjs 4.33 kB
packages/react-core/dist/v2/index.umd.js 160 kB
packages/react-native/dist/chunk-C0xms8kb.cjs 546 B
packages/react-native/dist/components/index.cjs 8.81 kB
packages/react-native/dist/components/index.mjs 8.62 kB
packages/react-native/dist/CopilotKitProvider-CXQGv39c.mjs 1.43 kB
packages/react-native/dist/CopilotKitProvider-zSfbWwIg.cjs 1.55 kB
packages/react-native/dist/generative-ui/index.cjs 7.72 kB
packages/react-native/dist/generative-ui/index.mjs 7.48 kB
packages/react-native/dist/headless.cjs 633 B
packages/react-native/dist/headless.mjs 373 B
packages/react-native/dist/index.cjs 6.8 kB
packages/react-native/dist/index.mjs 6.41 kB
packages/react-native/dist/polyfills.cjs 2.35 kB
packages/react-native/dist/polyfills.mjs 2.35 kB
packages/react-native/dist/polyfills/crypto.cjs 373 B
packages/react-native/dist/polyfills/crypto.mjs 381 B
packages/react-native/dist/polyfills/dom.cjs 540 B
packages/react-native/dist/polyfills/dom.mjs 550 B
packages/react-native/dist/polyfills/encoding.cjs 332 B
packages/react-native/dist/polyfills/encoding.mjs 307 B
packages/react-native/dist/polyfills/location.cjs 236 B
packages/react-native/dist/polyfills/location.mjs 244 B
packages/react-native/dist/polyfills/streams.cjs 371 B
packages/react-native/dist/polyfills/streams.mjs 339 B
packages/react-textarea/dist/index.cjs 17.7 kB
packages/react-textarea/dist/index.mjs 17 kB
packages/react-textarea/dist/index.umd.js 18.5 kB
packages/react-ui/dist/index.cjs 25.3 kB
packages/react-ui/dist/index.mjs 24.6 kB
packages/react-ui/dist/index.umd.js 26.6 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-catalog-schema.cjs 4.2 kB
packages/shared/dist/a2ui-catalog-schema.mjs 4.13 kB
packages/shared/dist/a2ui-envelope.cjs 2.44 kB
packages/shared/dist/a2ui-envelope.mjs 2.42 kB
packages/shared/dist/a2ui-prompts.cjs 4.57 kB
packages/shared/dist/a2ui-prompts.mjs 4.54 kB
packages/shared/dist/attachments/content.cjs 255 B
packages/shared/dist/attachments/content.mjs 253 B
packages/shared/dist/attachments/utils.cjs 1.83 kB
packages/shared/dist/attachments/utils.mjs 1.79 kB
packages/shared/dist/constants/index.cjs 501 B
packages/shared/dist/constants/index.mjs 480 B
packages/shared/dist/debug.cjs 454 B
packages/shared/dist/debug.mjs 452 B
packages/shared/dist/event-transforms/index.cjs 335 B
packages/shared/dist/event-transforms/index.mjs 165 B
packages/shared/dist/event-transforms/open-generative-ui-middleware.cjs 2.42 kB
packages/shared/dist/event-transforms/open-generative-ui-middleware.mjs 2.35 kB
packages/shared/dist/event-transforms/recorded-events.cjs 988 B
packages/shared/dist/event-transforms/recorded-events.mjs 925 B
packages/shared/dist/finalize-events.cjs 1.94 kB
packages/shared/dist/finalize-events.mjs 1.88 kB
packages/shared/dist/generative-ui/basic-functions.cjs 2.5 kB
packages/shared/dist/generative-ui/basic-functions.mjs 2.45 kB
packages/shared/dist/generative-ui/catalog/catalog-export.cjs 4.5 kB
packages/shared/dist/generative-ui/catalog/catalog-export.mjs 4.46 kB
packages/shared/dist/generative-ui/catalog/catalog.cjs 4.18 kB
packages/shared/dist/generative-ui/catalog/catalog.mjs 4.14 kB
packages/shared/dist/generative-ui/catalog/errors.cjs 203 B
packages/shared/dist/generative-ui/catalog/errors.mjs 198 B
packages/shared/dist/generative-ui/catalog/json-schema.cjs 466 B
packages/shared/dist/generative-ui/catalog/json-schema.mjs 405 B
packages/shared/dist/generative-ui/catalog/refs.cjs 414 B
packages/shared/dist/generative-ui/catalog/refs.mjs 369 B
packages/shared/dist/generative-ui/catalog/schema.cjs 1.17 kB
packages/shared/dist/generative-ui/catalog/schema.mjs 1.15 kB
packages/shared/dist/generative-ui/child-refs.cjs 2.34 kB
packages/shared/dist/generative-ui/child-refs.mjs 2.27 kB
packages/shared/dist/generative-ui/clone-value.cjs 4.37 kB
packages/shared/dist/generative-ui/clone-value.mjs 4.36 kB
packages/shared/dist/generative-ui/compact-schema.cjs 2.97 kB
packages/shared/dist/generative-ui/compact-schema.mjs 2.94 kB
packages/shared/dist/generative-ui/index.cjs 3.33 kB
packages/shared/dist/generative-ui/index.mjs 2.65 kB
packages/shared/dist/generative-ui/is-record.cjs 308 B
packages/shared/dist/generative-ui/is-record.mjs 301 B
packages/shared/dist/generative-ui/prompt-spec.cjs 8.13 kB
packages/shared/dist/generative-ui/prompt-spec.mjs 8.1 kB
packages/shared/dist/generative-ui/prompt.cjs 1.64 kB
packages/shared/dist/generative-ui/prompt.mjs 1.6 kB
packages/shared/dist/generative-ui/render-ui-args.cjs 1.48 kB
packages/shared/dist/generative-ui/render-ui-args.mjs 1.46 kB
packages/shared/dist/generative-ui/schema-render.cjs 3.92 kB
packages/shared/dist/generative-ui/schema-render.mjs 3.88 kB
packages/shared/dist/generative-ui/standard/chart-config.cjs 3.92 kB
packages/shared/dist/generative-ui/standard/chart-config.mjs 3.88 kB
packages/shared/dist/generative-ui/standard/chart.cjs 985 B
packages/shared/dist/generative-ui/standard/chart.mjs 928 B
packages/shared/dist/generative-ui/standard/checks.cjs 1.21 kB
packages/shared/dist/generative-ui/standard/checks.mjs 1.16 kB
packages/shared/dist/generative-ui/standard/components.cjs 328 B
packages/shared/dist/generative-ui/standard/components.mjs 327 B
packages/shared/dist/generative-ui/standard/composites.cjs 2.06 kB
packages/shared/dist/generative-ui/standard/composites.mjs 1.99 kB
packages/shared/dist/generative-ui/standard/data.cjs 2.33 kB
packages/shared/dist/generative-ui/standard/data.mjs 2.25 kB
packages/shared/dist/generative-ui/standard/declarations.cjs 519 B
packages/shared/dist/generative-ui/standard/declarations.mjs 488 B
packages/shared/dist/generative-ui/standard/feedback.cjs 1.45 kB
packages/shared/dist/generative-ui/standard/feedback.mjs 1.39 kB
packages/shared/dist/generative-ui/standard/inputs.cjs 3.42 kB
packages/shared/dist/generative-ui/standard/inputs.mjs 3.31 kB
packages/shared/dist/generative-ui/standard/layout.cjs 3.31 kB
packages/shared/dist/generative-ui/standard/layout.mjs 3.2 kB
packages/shared/dist/generative-ui/standard/map-helpers.cjs 2.14 kB
packages/shared/dist/generative-ui/standard/map-helpers.mjs 2.1 kB
packages/shared/dist/generative-ui/standard/map.cjs 475 B
packages/shared/dist/generative-ui/standard/map.mjs 426 B
packages/shared/dist/generative-ui/standard/media.cjs 2.37 kB
packages/shared/dist/generative-ui/standard/media.mjs 2.29 kB
packages/shared/dist/generative-ui/standard/parameter-order.cjs 1.71 kB
packages/shared/dist/generative-ui/standard/parameter-order.mjs 1.69 kB
packages/shared/dist/generative-ui/standard/style-helpers.cjs 2.02 kB
packages/shared/dist/generative-ui/standard/style-helpers.mjs 1.98 kB
packages/shared/dist/generative-ui/standard/styles.cjs 1.7 kB
packages/shared/dist/generative-ui/standard/styles.mjs 1.7 kB
packages/shared/dist/generative-ui/standard/text.cjs 2.34 kB
packages/shared/dist/generative-ui/standard/text.mjs 2.25 kB
packages/shared/dist/generative-ui/standard/theme.cjs 1.67 kB
packages/shared/dist/generative-ui/standard/theme.mjs 1.66 kB
packages/shared/dist/generative-ui/standard/tokens.cjs 3.08 kB
packages/shared/dist/generative-ui/standard/tokens.mjs 2.96 kB
packages/shared/dist/generative-ui/standard/url.cjs 792 B
packages/shared/dist/generative-ui/standard/url.mjs 778 B
packages/shared/dist/generative-ui/thrown.cjs 1.18 kB
packages/shared/dist/generative-ui/thrown.mjs 1.17 kB
packages/shared/dist/generative-ui/types.cjs 1.57 kB
packages/shared/dist/generative-ui/types.mjs 1.51 kB
packages/shared/dist/generative-ui/validate-operation.cjs 5.61 kB
packages/shared/dist/generative-ui/validate-operation.mjs 5.55 kB
packages/shared/dist/index.cjs 4.16 kB
packages/shared/dist/index.mjs 3.48 kB
packages/shared/dist/index.umd.js 69.9 kB
packages/shared/dist/intelligence-routing-fields.cjs 778 B
packages/shared/dist/intelligence-routing-fields.mjs 775 B
packages/shared/dist/logger.cjs 112 B
packages/shared/dist/logger.mjs 112 B
packages/shared/dist/open-generative-ui-prompts.cjs 1.59 kB
packages/shared/dist/open-generative-ui-prompts.mjs 1.59 kB
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/index.cjs 358 B
packages/shared/dist/telemetry/index.mjs 250 B
packages/shared/dist/telemetry/lambda-client.cjs 1.59 kB
packages/shared/dist/telemetry/lambda-client.mjs 1.58 kB
packages/shared/dist/telemetry/model-host.cjs 1.63 kB
packages/shared/dist/telemetry/model-host.mjs 1.63 kB
packages/shared/dist/telemetry/sampling.cjs 956 B
packages/shared/dist/telemetry/sampling.mjs 935 B
packages/shared/dist/telemetry/telemetry-client.cjs 1.89 kB
packages/shared/dist/telemetry/telemetry-client.mjs 1.83 kB
packages/shared/dist/telemetry/telemetry-disabled.cjs 454 B
packages/shared/dist/telemetry/telemetry-disabled.mjs 451 B
packages/shared/dist/telemetry/utils.cjs 271 B
packages/shared/dist/telemetry/utils.mjs 268 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.23 kB
packages/shared/dist/utils/console-styling.mjs 1.21 kB
packages/shared/dist/utils/dashboard-url.cjs 415 B
packages/shared/dist/utils/dashboard-url.mjs 413 B
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.5 kB
packages/shared/dist/utils/index.mjs 1.82 kB
packages/shared/dist/utils/inspector-learning.cjs 2.74 kB
packages/shared/dist/utils/inspector-learning.mjs 2.73 kB
packages/shared/dist/utils/inspector-metadata.cjs 1.44 kB
packages/shared/dist/utils/inspector-metadata.mjs 1.43 kB
packages/shared/dist/utils/inspector-visibility.cjs 285 B
packages/shared/dist/utils/inspector-visibility.mjs 282 B
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/row-render-keys.cjs 3.38 kB
packages/shared/dist/utils/row-render-keys.mjs 3.36 kB
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-kite.cjs 2.36 kB
packages/web-inspector/dist/assets/inspector-logo-kite.mjs 2.3 kB
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/components/generative-ui-view.cjs 7.95 kB
packages/web-inspector/dist/components/generative-ui-view.mjs 7.93 kB
packages/web-inspector/dist/components/learning-view.cjs 11.2 kB
packages/web-inspector/dist/components/learning-view.mjs 11.2 kB
packages/web-inspector/dist/index.cjs 132 kB
packages/web-inspector/dist/index.mjs 132 kB
packages/web-inspector/dist/index.umd.js 209 kB
packages/web-inspector/dist/lib/context-helpers.cjs 866 B
packages/web-inspector/dist/lib/context-helpers.mjs 835 B
packages/web-inspector/dist/lib/home-briefing.cjs 2.8 kB
packages/web-inspector/dist/lib/home-briefing.mjs 2.79 kB
packages/web-inspector/dist/lib/hud-config.cjs 1.34 kB
packages/web-inspector/dist/lib/hud-config.mjs 1.33 kB
packages/web-inspector/dist/lib/hud-defaults.cjs 287 B
packages/web-inspector/dist/lib/hud-defaults.mjs 285 B
packages/web-inspector/dist/lib/hud-loader.cjs 557 B
packages/web-inspector/dist/lib/hud-loader.mjs 546 B
packages/web-inspector/dist/lib/inspector-learning.cjs 754 B
packages/web-inspector/dist/lib/inspector-learning.mjs 732 B
packages/web-inspector/dist/lib/inspector-metadata.cjs 760 B
packages/web-inspector/dist/lib/inspector-metadata.mjs 750 B
packages/web-inspector/dist/lib/inspector-nav.cjs 685 B
packages/web-inspector/dist/lib/inspector-nav.mjs 661 B
packages/web-inspector/dist/lib/json-block.cjs 1.95 kB
packages/web-inspector/dist/lib/json-block.mjs 1.91 kB
packages/web-inspector/dist/lib/learning-setup.cjs 1.12 kB
packages/web-inspector/dist/lib/learning-setup.mjs 1.09 kB
packages/web-inspector/dist/lib/notification-loader.cjs 792 B
packages/web-inspector/dist/lib/notification-loader.mjs 786 B
packages/web-inspector/dist/lib/notifications.cjs 2.39 kB
packages/web-inspector/dist/lib/notifications.mjs 2.37 kB
packages/web-inspector/dist/lib/onboarding-prompt.cjs 2.38 kB
packages/web-inspector/dist/lib/onboarding-prompt.mjs 2.37 kB
packages/web-inspector/dist/lib/persistence.cjs 3.61 kB
packages/web-inspector/dist/lib/persistence.mjs 3.52 kB
packages/web-inspector/dist/lib/pop-out.cjs 1.07 kB
packages/web-inspector/dist/lib/pop-out.mjs 1.05 kB
packages/web-inspector/dist/lib/telemetry.cjs 5.59 kB
packages/web-inspector/dist/lib/telemetry.mjs 5.38 kB
packages/web-inspector/dist/lib/thread-selection.cjs 566 B
packages/web-inspector/dist/lib/thread-selection.mjs 563 B
packages/web-inspector/dist/package.cjs 181 B
packages/web-inspector/dist/package.mjs 116 B
packages/web-inspector/dist/styles/generated.cjs 20.1 kB
packages/web-inspector/dist/styles/generated.mjs 20 kB
packages/web-inspector/dist/styles/notification-article.cjs 1.44 kB
packages/web-inspector/dist/styles/notification-article.mjs 1.44 kB

compressed-size-action

mme and others added 2 commits November 6, 2026 15:31
Adds the package's next.config.ts to the build config allowlist and its
framework (openai-agents) to the compatibility mapping, with the AG-UI
adapter excluded the way google-antigravity's is. The dashboard's mapping
tests and the shell-docs count of bundled declarative-hashbrown demos
follow.
mme added 2 commits November 6, 2026 16:43
Follows a358fa0, which moved the OpenAI-backed integrations to
gpt-6-luna. OPENAI_MODEL now defaults to gpt-6-luna. The chat agents, the
sub-agents and the A2UI render call run it with reasoning off
(chat_settings() / CHAT_REASONING in _common.py), and the reasoning demos
keep low effort with summaries. A different OPENAI_MODEL keeps the API's
default effort, since not every model takes one.
The staging service exists (showcase-openai-agents-python, staging
instance only, configured like showcase-ag2 with OPENAI_BASE_URL on the
env-local aimock). This wires it in:

- showcase_build.yml: dispatch option, path filter and ALL_SERVICES row,
  so pushes to main build the image and redeploy the staging instance.
- railway-envs.ts: a staging-only SSOT entry, plus the regenerated JSON
  and golden fixture.
- Fleet-count tests move by one (52 services, one more CI-built and
  redeployed staging target).

Adding a service changes DISPOSABLE_LIFECYCLE_POLICY, whose permanent
services come from SERVICES. railway-lifecycle-records.test.ts fails on
purpose until that policy change is reviewed; it is left unchanged here.
@mme

mme commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

@contextablemark I need your call on the lifecycle policy before this can merge.

301cfa5 adds showcase-openai-agents-python to SERVICES, staging only. The Railway service exists (be6a4cb2-6258-4994-bd20-4c6e0eb37e96). DISPOSABLE_LIFECYCLE_POLICY.permanentServices is built from SERVICES, so the committed policy hash changes:

  • main: d3a7fe0c6eeda2fce0dc73779d2e19fdfbf9174abeaa07468b3aca21bd097410
  • this PR: 5c3ba2cd4f895fb8051a7e33eb55e2cda04bd3ac0b56acc2c205a442815e1b0b

Nothing else in the policy changes: same project, same forbidden environments, same approved images. The one difference is the added permanent service.

SHOWCASE_DISPOSABLE_RUN_RECORDS_FILE is set. Readers accept a matching hash or the docs-preview pair (4ded… → d3a7…), nothing else. If this merged as is, the image-ref gate would get records-policy-mismatch. That fails verify-image-refs and skips redeploy-staging for every service on every push, and the promote workflows read the same registry. railway-lifecycle-records.test.ts (8 tests) fails on this PR for that reason. I left it unchanged.

What I need from you:

  1. Which policy hash does the staging test runner publish today: 4ded… or d3a7…?
  2. Which way should this land?
    • a. A second bounded transition in railway-lifecycle-records.ts (publisher = the runner's current hash, validator = 5c3ba2cd…), modeled on 75abeda. I can add it to this PR for your review.
    • b. A runner policy release coordinated with the merge.
  3. Should every new integration go through this? A new permanent service only adds protection, so a rule like "the validator policy equals the publisher policy plus permanent services" would save writing an exception each time.

With this change and no records file, verify-railway-image-refs.ts passes against live Railway: 87 env-scoped instances verified, 8 skipped.

Comment thread showcase/scripts/railway-envs.ts Resolved
@pkg-pr-new

pkg-pr-new Bot commented Nov 9, 2026

Copy link
Copy Markdown
@copilotkit/a2ui-renderer

pnpm add https://pkg.pr.new/@copilotkit/a2ui-renderer@8242

@copilotkit/agentcore-runner

pnpm add https://pkg.pr.new/@copilotkit/agentcore-runner@8242

@copilotkit/angular

pnpm add https://pkg.pr.new/@copilotkit/angular@8242

@copilotkit/channels

pnpm add https://pkg.pr.new/@copilotkit/channels@8242

@copilotkit/channels-core

pnpm add https://pkg.pr.new/@copilotkit/channels-core@8242

@copilotkit/channels-discord

pnpm add https://pkg.pr.new/@copilotkit/channels-discord@8242

@copilotkit/channels-intelligence

pnpm add https://pkg.pr.new/@copilotkit/channels-intelligence@8242

@copilotkit/channels-slack

pnpm add https://pkg.pr.new/@copilotkit/channels-slack@8242

@copilotkit/channels-teams

pnpm add https://pkg.pr.new/@copilotkit/channels-teams@8242

@copilotkit/channels-ui

pnpm add https://pkg.pr.new/@copilotkit/channels-ui@8242

@copilotkit/channels-whatsapp

pnpm add https://pkg.pr.new/@copilotkit/channels-whatsapp@8242

@copilotkit/core

pnpm add https://pkg.pr.new/@copilotkit/core@8242

@copilotkit/intelligence-langgraph

pnpm add https://pkg.pr.new/@copilotkit/intelligence-langgraph@8242

@copilotkit/intelligence-mastra

pnpm add https://pkg.pr.new/@copilotkit/intelligence-mastra@8242

@copilotkit/learning

pnpm add https://pkg.pr.new/@copilotkit/learning@8242

@copilotkit/mcp-apps-renderer

pnpm add https://pkg.pr.new/@copilotkit/mcp-apps-renderer@8242

@copilotkit/react-core

pnpm add https://pkg.pr.new/@copilotkit/react-core@8242

@copilotkit/react-native

pnpm add https://pkg.pr.new/@copilotkit/react-native@8242

@copilotkit/react-textarea

pnpm add https://pkg.pr.new/@copilotkit/react-textarea@8242

@copilotkit/react-ui

pnpm add https://pkg.pr.new/@copilotkit/react-ui@8242

@copilotkit/runtime

pnpm add https://pkg.pr.new/@copilotkit/runtime@8242

@copilotkit/runtime-client-gql

pnpm add https://pkg.pr.new/@copilotkit/runtime-client-gql@8242

@copilotkit/sdk-js

pnpm add https://pkg.pr.new/@copilotkit/sdk-js@8242

@copilotkit/shared

pnpm add https://pkg.pr.new/@copilotkit/shared@8242

@copilotkit/sqlite-runner

pnpm add https://pkg.pr.new/@copilotkit/sqlite-runner@8242

@copilotkit/voice

pnpm add https://pkg.pr.new/@copilotkit/voice@8242

@copilotkit/vue

pnpm add https://pkg.pr.new/@copilotkit/vue@8242

@copilotkit/web-components

pnpm add https://pkg.pr.new/@copilotkit/web-components@8242

@copilotkit/web-inspector

pnpm add https://pkg.pr.new/@copilotkit/web-inspector@8242

commit: 2b2bd84

@contextablemark

contextablemark commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

@mme thanks, this was exactly the right call to raise.

Revised again on 2026-11-10. This assumes #8287 merges before this PR. #8287 now also contains #8290, which was merged into #8287's branch rather than into main, so both changes land together:

  • the image gate warns, not fails, on a Railway service that isn't in SERVICES yet;
  • the image gate and the promote workflows are disconnected from the runner's registry, so those checks no longer compare policy hashes.

Answers:

  1. The runner publishes 4ded…. Its only live deployment since 2026-10-29 is rich-thread-runner@sha256:0130216d…, built from a918ae01. Recomputing that revision's policy gives 50 permanent services and 4ded223b…c751, which matches tools/railway-runner-deploy/releases/staging.json. (Evidence is in my earlier review comment.)

  2. Still option (a): please add the bounded transition to this PR. With fix(showcase): warn on unregistered services, unbind runner registry #8287 merged it is no longer urgent and no longer blocks the workflows, but it's still needed:

    • This PR's CI. railway-lifecycle-records.test.ts pins the committed policy hash on purpose, so any policy change fails it until it is reviewed. Adding this service changes the hash to 5c3ba2cd…. That's the Validate Showcase failure on this PR (8 tests, e.g. expected 'f858f522…' to be '4ded223b…'). fix(showcase): warn on unregistered services, unbind runner registry #8287 doesn't change those tests.
    • The staging harness. No longer applies: we disconnected the staging harness from the registry on 2026-11-10, so the tests above are now the only reason.

    What to change:

    • Replace the existing 4ded… → d3a7… pair with 4ded… → 5c3ba2cd…. Don't add a second pair: after this merges nothing produces d3a7…, so a publisher still serving d3a7… should be refused, not chained.
    • Cover protection for both docs-preview and openai-agents-python, and refusal of a d3a7… publisher and of the reverse direction.

    My earlier review comment has a reference patch that makes those 8 tests pass. You're welcome to use or adapt it, but it's your change to make and own. Once fix(showcase): warn on unregistered services, unbind runner registry #8287 lands, please merge main.

    Once the readers are fully disconnected, this transition becomes unused. We'll remove it with the rest of the registry code in a later cleanup, not in this PR.

  3. No general rule. It would protect the checks but not the runner's own cleanup, and the runner can't be safely updated right now. Instead, we're parking the runner and disconnecting the Showcase checks from its registry: fix(showcase): warn on unregistered services, unbind runner registry #8287 covers the workflows, and the staging harness follows. After that, new services won't touch this policy at all. fix(showcase): warn on unregistered services, unbind runner registry #8287 covers creating a service before it's registered. Nothing more is needed in this PR.

Once you push, I'll review.

contextablemark added a commit that referenced this pull request Nov 10, 2026
…8290)

## Why

The staging rich-thread runner (the PNI-596 test rig) is parked. In 9
dispatches it has never passed, and nothing depends on it.

Today, every new Showcase service changes the disposable-lifecycle
policy hash. While the Showcase checks read the runner's registry, each
new service needs a hand-reviewed reader transition plus a one-off
runner deploy. That is what #8242 is currently stuck on.

Disconnecting the readers removes that coupling. Tracked in PNI-786
(parent PNI-783).

## What changes

- **Normal reader steps no longer get the registry binding.** That
binding is `SHOWCASE_DISPOSABLE_RUN_RECORDS_FILE` / `_TOKEN` and
`SHOWCASE_REGISTRY_CONSUMER`. The affected steps are:
- the image gate in `showcase_build.yml` and
`showcase_eval-webhook_build.yml`;
  - the promote steps in `showcase_promote.yml` and `docs_promote.yml`.

These readers now run in static-fleet mode, the documented "neither
configured" path. The both-or-neither guards that are no longer needed
are removed.
- **The opt-in `validate_registry_only` dispatch step stays connected**,
so the registry can still be checked before reconnecting. The repo
variable and secret stay configured for it; nothing is deleted.
- **New test in `registry-validation-workflows.test.ts`:** in these four
workflows, only that validation step may reference the binding. Against
main's workflows the test fails 4/4, so reconnecting a normal reader has
to be a deliberate, reviewed change.
- **Image gate: no exception in runner environments** (from CodeRabbit
review). Without registry evidence the gate can't see recorded runs. The
`starter-*` exception would then accept an unregistered starter inside a
runner environment and skip its image check.
`verify-railway-image-refs.ts` now also fetches environment names and
grants no exception in any `rich-…` environment, whether or not the
registry is connected. 4 new tests. Run offline against a 2026-11-10
snapshot of the Railway project, it reports only main's existing
`showcase-openai-agents-python` failure, which #8287 fixes. This
overlaps #8287 in the same function: whichever PR merges second gets
rebased, and the same rule applies to #8287's broader exception.
- **`showcase/scripts/railway-lifecycle.md`** gets a "Registry
disconnected" section and a banner. The section covers the precondition,
the staging-harness step and how to reconnect.

**Safety.** Static mode grants no disposable exemptions. A leftover
runner service would therefore show up as unknown and fail, so this is
stricter, never looser. Precondition, checked read-only at 2026-11-10
06:52Z: all three `rich-*` Railway environments have zero service
instances.

## Not in this PR: staging harness (manual, after merge)

The staging `harness` Railway service reads the same three variables
from its own Railway config, so a PR can't change it. They'll be removed
together and the harness redeployed, step by step, after this merges.
With the registry configured, a failed or mismatched read aborts all
staging discovery. So the harness must be disconnected before #8242
changes the policy hash, unless #8242 carries its reader transition.

## Merge order

- Independent of #8287 (the unregistered-service warning).
- Once this merges and the harness is disconnected, #8242 no longer
needs its `4ded…` → `5c3b…` reader transition.

## Verification

- `registry-validation-workflows.test.ts` passes 9/9. The new cases fail
against main's workflows.
- The full `@copilotkit/showcase-scripts:test` suite passes through Nx
(102 files, 3141 tests).
- actionlint finds nothing new: the same 15 findings as main in these
four files.
- oxlint and oxfmt are clean.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Updates**
* Showcase image verification and promotion workflows now use
static-fleet mode, disconnected from disposable-runner registry
evidence.
* In named Railway runner environments, unregistered starter services
now fail image verification, even when a tolerated staging instance
exists. The starter-service exception remains available outside runner
environments.
* **Documentation**
* Lifecycle guidance explains the disconnection, staging-harness status,
runner-environment limitations, the zero-service precondition, and steps
for reconnecting.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
dongphuongman pushed a commit to dongphuongman/CopilotKit that referenced this pull request Nov 10, 2026
…opilotKit#8287)

> **This PR now also contains CopilotKit#8290.** CopilotKit#8290 was stacked on this branch
and merged into it on 2026-11-10, so it reaches `main` only through this
PR. This PR covers PNI-785 and the workflow part of PNI-786 (parent
PNI-783).

## Why

Adding a Showcase service normally means creating the Railway service
first and adding it to `SERVICES` afterwards. The image gate fails that
in-between state as "untracked". On 2026-11-09,
`showcase-openai-agents-python` was created in staging before CopilotKit#8242
registered it. That turned main red ([run
42607303530](https://github.com/CopilotKit/CopilotKit/actions/runs/42607303530)),
which skipped staging redeploys and blocked other work.

Separately, every new Showcase service changes the disposable-lifecycle
policy hash. While the Showcase checks read the parked rich-thread
runner's registry, each new service needs a hand-reviewed reader
transition plus a one-off runner deploy, and that is what CopilotKit#8242 is stuck
on. The runner (the PNI-596 test rig) has 0 successful runs in 9
dispatches, and nothing depends on it.

## What changes

**1. Unregistered staging/prod services warn instead of failing**
(`verify-railway-image-refs.ts`, PNI-785)
- A service with an instance in staging or prod but no `SERVICES` entry
prints `⚠ WARN unregistered Railway service "<name>" (<id>) in <env>`
plus a GitHub `::warning::`. It passes with no image check.
- Its copies in other environments pass too, because docs-preview
(`CopilotKit-pr-*`) environments copy staging.
- These still fail:
  - a service with no staging or prod instance;
- a registered name with a different ID, or a registered ID under a new
name;
- a recorded disposable environment, or a service a disposable run
claims;
  - invalid lifecycle evidence;
  - image violations on registered services.
- `showcase/RAILWAY.md` now says registering a service is safe in either
order.

**2. Workflow readers disconnected from the runner registry** (PNI-786,
from CopilotKit#8290)
- The image gate in `showcase_build.yml` and
`showcase_eval-webhook_build.yml`, and the normal promote steps in
`showcase_promote.yml` and `docs_promote.yml`, no longer receive these
settings:
  - `SHOWCASE_DISPOSABLE_RUN_RECORDS_FILE`
  - `SHOWCASE_DISPOSABLE_RUN_RECORDS_TOKEN`
  - `SHOWCASE_REGISTRY_CONSUMER`
- Those readers now run in the documented not-connected (static-fleet)
mode. Static mode grants no disposable exemptions, so it is stricter,
never looser.
- The opt-in `validate_registry_only` dispatch step stays connected. The
repo variable and secret stay configured for it; nothing is deleted.
- A test in `registry-validation-workflows.test.ts` enforces that only
that step uses the binding.
- `showcase/scripts/railway-lifecycle.md` gets a "Registry disconnected"
section: the precondition, the staging-harness step, and how to
reconnect.

**3. No exception inside runner environments** (from CodeRabbit review
on CopilotKit#8290)
- Without registry evidence, the gate can't see recorded runs. So it now
also fetches environment names and grants no exception (neither the
`starter-*` one nor the new one) in any `rich-…` environment, whether or
not the registry is connected.

No lifecycle-policy or hash change.

## Staging harness: already disconnected (outside this PR)

The staging `harness` Railway service read the same three variables from
its own Railway settings. On 2026-11-10 at 07:32Z, they were removed
together and the harness was redeployed with the same image. Smoke at
07:35Z: 22/24 passing, which matches the baseline, with
`discoveryFailed=false` and no lifecycle lines. The pre-change values
and restore source are in PNI-786.

So once this merges, no Showcase reader reads the runner registry. CopilotKit#8242
still needs its `4ded…` → `5c3b…` transition, but only because its own
lifecycle tests pin the committed policy hash.

Precondition, checked read-only at 2026-11-10 07:30Z: all three `rich-*`
environments have zero service instances.

## Verification

- `@copilotkit/showcase-scripts:test` passes through Nx (102 files, 3154
tests).
- Mutation checks:
  - The new workflow test fails 4/4 against main's workflows.
  - Removing the runner-environment rule fails 4 tests.
- I ran the gate offline against a 2026-11-10 Railway project snapshot:
- main's gate fails with `untracked: showcase-openai-agents-python`,
matching CI;
- this branch passes, with one warning for that service in staging and
two docs-preview environments.
- oxlint and oxfmt are clean.
- actionlint adds no findings beyond main's in the four workflows.
- The only `tsc` errors are in
`shell-dashboard/scripts/compatibility-audit/xml.ts`, and they are also
on main.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
mme added 2 commits November 10, 2026 14:56
Adding showcase-openai-agents-python to SERVICES changes the committed
lifecycle policy hash to 5c3ba2cd. The staging runner still publishes
4ded223b, the policy before docs-preview was protected.

Replace the reviewed 4ded -> d3a7 pair with 4ded -> 5c3b instead of
adding a second pair: no committed policy produces d3a7 any more, so a
publisher still serving it is refused rather than chained.

Tests cover name, ID, image and forbidden-environment protection for
both docs-preview and showcase-openai-agents-python during the
transition, refusal of a d3a7 publisher, and refusal of the reverse
direction. The runbook section describes the new pair, and both the
comment and the runbook say the exception goes with the registry reader
code now that the runner is parked.
@mme

mme commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

@contextablemark Pushed 2959bfe, on top of a merge of main that includes #8287.

  • I replaced the 4ded… → d3a7… pair with 4ded… → 5c3ba2cd…, based on your patch. The tests cover name, ID, image and environment protection for both services, refusal of a d3a7… publisher, and refusal of the reverse direction.
  • One change from your patch: the code comment and the runbook section said to retire the exception once the runner publishes the current policy. Since the runner is parked, they now say it goes with the registry reader code. The runbook also notes that only the opt-in validate_registry_only step can still use the exception.
  • Local checks: showcase/scripts vitest passes 3214/3214. Putting the d3a7… validator back turns 12 tests red. oxfmt, oxlint and the harness tsc are clean.

Ready for your review.

@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.

Thanks, this looks good. You swapped out the old exception instead of stacking a second one on it, which is what I was hoping for, and the tests cover both services plus the cases that should still be refused. I ran it locally against current main and everything passes. Now that the registry is disconnected, this exception mostly just keeps the test honest, so we can delete it along with the reader code later on.

@mme
mme added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit 35626f5 Nov 10, 2026
90 checks passed
@mme
mme deleted the mme/openai-agents-sdk-showcase branch November 10, 2026 15:27
JadeCong pushed a commit to CloudEngineHub/CopilotKit that referenced this pull request Nov 12, 2026
## What does this PR do?

Adds docs pages for the **OpenAI Agents SDK (Python)** integration,
following the generated-docs pattern of the Google Antigravity pages
(a9ec528). It's stacked on CopilotKit#8242, which adds the showcase package.
The base is that PR's branch, so this diff shows only the docs.

- **Docs mode.** The manifest's `docs_mode` goes from `hidden` to
`generated`, so the integration shows up on the docs site under
`/openai-agents-python`.
- **Landing page.** The record is in
`shell-docs/src/data/frameworks/openai-agents-python.ts` and registered
in `index.ts`. It highlights generative UI, human-in-the-loop
(`needs_approval`) and shared state, plus the runtime route.
- **Quickstart.**
`content/docs/integrations/openai-agents-python/quickstart.mdx` takes an
existing agent all the way to a working chat: `OpenAIAgentsAgent` plus
`add_openai_agents_fastapi_endpoint`, the runtime route and the React
mount. There's no CLI starter, so there's no "start from scratch" path.
A callout notes that `@ag-ui/openai-agents` exports the same client as
`OpenAIAgentsHttpAgent`.
- **Setup snippets.** `integrations/openai-agents-python/docs/setup/`
has one snippet for each of the 11 concepts the shared pages render:
agent setup, frontend tools, human-in-the-loop, shared state, state
streaming, agent context, agent config, programmatic control,
sub-agents, tool rendering and Channels. Each embeds live code from the
package through `@region` markers.
- **New regions.** Two regions back the snippets:
- `shared-state-instructions` (`with_state`, the dynamic instructions
that show the model the state);
- `interrupt-resume-payload` (`SchedulerAgent`, which hands an approved
tool the time the user picked).
- **Feature links.** `docs-links.json` maps all 39 features to their
pages, replacing the placeholder that said no docs existed.
- **Logo.** The OpenAI mark, from Lobe Icons
(`@lobehub/icons-static-svg` 1.102.0, MIT). It is added as `OpenAIIcon`
in the framework icons, registered under the `openai` key and for the
`openai-agents-python` slug, so the landing header and the framework
switcher show it. The docs logo file uses the same mark, dark on light
and white in dark mode.

The snippets describe the adapter as released in `ag-ui-openai-agents`
0.1.0:
- page tools become client tools on a per-request copy of the agent;
- `useAgentContext` entries are appended to the instructions;
- `shared_state()` streams `STATE_SNAPSHOT`s;
- `needs_approval=True` becomes a `tool_approval` interrupt with a
stateless resume.

## Known gaps

- **Showcase logo.** The showcase site's copy of the logo
(`shell/public/logos`, from CopilotKit#8242) is still the "OA" placeholder.
- **Live demos.** The landing page has no live-demo iframe until the
package is deployed (`deployed: false`).

## Related PRs and Issues

- Showcase package (base of this PR): CopilotKit#8242
- Adapter: ag-ui-protocol/ag-ui#2210

## Test plan

- [x] `bundle-setup-content`: all 11 concepts bundle with no unresolved
`<DemoCode>` and no leaked `@region` markers. A new test in
`setup-content.test.ts` checks the key code in each snippet.
- [x] shell-docs vitest: 587/587. Two counts follow the new framework:
channel setups go from 20 to 21, plus the new bundling test.
- [x] shell-docs `tsc --noEmit`
- [x] Local `next dev`: the OpenAI mark renders in the landing header
and in the framework switcher, and `/logos/openai-agents-python.svg` is
served as `image/svg+xml`.
- [x] shell-dashboard `npm test`: 1866 passed
- [x] Local `next dev`: the landing page, quickstart and the shared
concept pages render with our snippets. All 30 distinct
`shell_docs_path`s in `docs-links.json` return 200 under
`/openai-agents-python`.
- [x] `pytest tests/python`: 20 passed (the region markers are comments
only)
- [x] `showcase/scripts` vitest: 3180/3180
- [ ] CI

## Checklist

- [x] I have read the [Contribution
Guide](https://github.com/copilotkit/copilotkit/blob/master/CONTRIBUTING.md)
- [x] If the PR changes or adds functionality, I have updated the
relevant documentation
- [x] If the PR contains a breaking change, the title has `!` and the
description has a `BREAKING CHANGE:` line (not breaking)
- [x] "Allow edits by maintainers" is checked

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Added an OpenAI Agents SDK (Python) integration overview with
supported capabilities, a connection example, and links to setup guides.
  * Listed the integration in the framework directory with its own icon.

* **Documentation**
* Added a quickstart and setup guides covering agent configuration,
context, Channels, frontend tools, approvals, programmatic control,
shared state, streaming, sub-agents, and tool rendering.
  * Added documentation links for integration features.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
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.

2 participants