Skip to content

feat(runtime): dispatch final Agent Documents through Flight - #144

Merged
ScriptedAlchemy merged 2 commits into
mainfrom
wave2/96-flight-dispatcher
Sep 1, 2026
Merged

feat(runtime): dispatch final Agent Documents through Flight#144
ScriptedAlchemy merged 2 commits into
mainfrom
wave2/96-flight-dispatcher

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • add the public AgentRenderDispatcher / AgentFlightExecutionHost seam and a separate server Flight entry using the exact proven React 19.2.8 + react-server-dom-rspack 0.1.0 set
  • decode buffered final-only Flight output into immutable Agent Documents without invoking function components, with request AbortSignal propagation through host, decoder, worker render, and request context
  • migrate only the rsc-agent-runtime hook path to Agent.* + final document projection; keep the existing synchronous MCP lowerers operative

Test plan

  • pnpm --filter @agent-bundle/runtime test (44 passed)
  • pnpm --filter @agent-bundle/runtime typecheck
  • pnpm --filter @agent-bundle/rsc-agent-runtime-demo ... rsc-hook.integration.test.ts (7 passed)
  • dev-invocation.integration.test.ts (26 passed, 6 Windows-only skipped)
  • host-artifacts.test.ts (5 passed)
  • runtime/example typechecks, focused rslint, and publint packages/rsc-runtime
  • production example build
  • pnpm eval:spot

Deferred

  • stage 3 live decode, Suspense shell/replacement reconciliation, progress events, and end-to-end backpressure
  • stage 4 MCP projector/task progress and warm-runtime restart/epoch/missing-runtime proofs
  • stage 5 projector seams and stage 6 audiobook migration/sync-lowerer retirement

Delivers stage 2 of #96 under #107 revision 2.

Move route execution behind a public execution-host seam, decode React-owned Flight into one bounded final Agent Document with cancellation, and prove the path through the existing worker-backed hook runtime while leaving MCP compatibility lowerers operative.
@changeset-bot

changeset-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 33b4942

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@agent-bundle/runtime Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T07:03:37.968420Z d74fa2f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Preserve the newly landed state-kernel subpath and request handle alongside the Flight dispatcher exports and combined framework documentation.
@ScriptedAlchemy
ScriptedAlchemy merged commit aad35b3 into main Sep 1, 2026
8 of 9 checks passed
@ScriptedAlchemy
ScriptedAlchemy deleted the wave2/96-flight-dispatcher branch September 1, 2026 07:01

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d74fa2f7a8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/rsc-runtime/src/dispatcher.ts
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