Skip to content

feat(runtime): add Agent Document contracts - #140

Merged
ScriptedAlchemy merged 1 commit into
mainfrom
wave2/96-contracts
Sep 1, 2026
Merged

feat(runtime): add Agent Document contracts#140
ScriptedAlchemy merged 1 commit into
mainfrom
wave2/96-contracts

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • add immutable, versioned v1 AgentDocument nodes and the frozen Agent.* protocol vocabulary
  • add bounded shell | progress | replace | error | complete event sequencing with typed post-completion handoff failures
  • add discriminated render-invocation props for all five invocation kinds while preserving existing request-store and sync-lowerer behavior

Test plan

  • pnpm exec rstest --config rstest.unit.config.ts packages/rsc-runtime/tests (40 passed)
  • pnpm --filter @agent-bundle/runtime typecheck
  • pnpm --filter @agent-bundle-example/audiobook-curator typecheck
  • pnpm --filter @agent-bundle/rsc-agent-runtime-demo typecheck
  • pnpm exec rslint packages/rsc-runtime/src packages/rsc-runtime/tests

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

Establish the immutable v1 protocol vocabulary, bounded render-event sequence, and discriminated invocation props that the Flight dispatcher and later projectors can share without disturbing the synchronous lowerers.
@changeset-bot

changeset-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c7583b8

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

@ScriptedAlchemy
ScriptedAlchemy merged commit 6c8b1a8 into main Sep 1, 2026
9 checks passed
@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-01T06:47:13.380145Z c7583b8 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.

@ScriptedAlchemy
ScriptedAlchemy deleted the wave2/96-contracts branch September 1, 2026 06:44

@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: c7583b8e00

ℹ️ 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/agent-document.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