Skip to content

feat(server): opt-in account agent protocol v2 on shared runtimes - #5687

Merged
kojiwakayama merged 4 commits into
mainfrom
feat/account-agent-v2-shared-server
Dec 5, 2026
Merged

kojiwakayama merged 4 commits into
mainfrom
feat/account-agent-v2-shared-server

Conversation

@kojiwakayama

Copy link
Copy Markdown
Contributor

Summary

Adds an operator opt-in, VERYFRONT_HOST_SHARED_ACCOUNT_AGENTS, that lets an unpinned multi-project runtime serve account agent publication protocol version 2.

  • Off by default. Read from the host environment once at startup and logged as a warning; values copied from a project env file are ignored; unrecognized values fail closed.
  • Version 2 still requires the explicit project execution override and a filesystem that can enter another source context, exactly as for pinned runtimes.
  • A pinned runtime (VERYFRONT_HOST_DEDICATED_PROJECT_ID) ignores the opt-in, so it never widens a pinned runtime.
  • The capabilities report and the stream handler's admission claim keep using the same predicate, so a runtime never reports version 2 without claiming.

Tests

  • servesAccountAgentProtocolV2: served with the own-property opt-in; refused without it, with a non-boolean or inherited value, without the execution override, on a single-project filesystem, and when a pin is present.
  • Runtime capabilities report version 2 on a shared host only with the opt-in.
  • The opt-in reader accepts only affirmative host values and ignores env-file copies.
  • The handler context carries the setting.

The new protocol and capabilities tests fail without the predicate change.

@kojiwakayama
kojiwakayama marked this pull request as ready for review December 5, 2026 08:13
@kojiwakayama

Copy link
Copy Markdown
Contributor Author

@codex review

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T09:22:45.644994Z b235cae Manual request
ℹ️ 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.

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

📦 Client bundle boundary

Entrypoint Modules Source size Server leaks
src/index.client.ts 66 371 KiB ✅ 0
src/react/components/Head.tsx 5 74 KiB ✅ 0
src/react/router/index.tsx 5 74 KiB ✅ 0
src/react/context/index.tsx 5 74 KiB ✅ 0
src/react/fonts/index.ts 6 81 KiB ✅ 0
src/react/components/ui/index.ts 111 720 KiB ✅ 0
src/react/components/ui/adapter/contract.ts 1 18 KiB ✅ 0
src/react/components/ui/icons/index.ts 3 17 KiB ✅ 0
src/chat/index.ts 305 2055 KiB ✅ 0
src/chat/ag-ui.ts 61 464 KiB ✅ 0
src/chat/protocol.ts 1 11 KiB ✅ 0
src/chat/types.ts 46 248 KiB ✅ 0
src/chat/message-prep.ts 68 519 KiB ✅ 0
src/markdown/index.ts 6 30 KiB ✅ 0
src/mdx/index.ts 2 2 KiB ✅ 0
src/agent/identity-contracts.ts 1 3 KiB ✅ 0
src/schemas/index.ts 43 222 KiB ✅ 0
src/platform/env.ts 5 55 KiB ✅ 0
src/workflow/claude-code/react/index.ts 9 91 KiB ✅ 0
src/events/index.ts 37 631 KiB ✅ 0
src/events/ag-ui/public.ts 36 624 KiB ✅ 0
src/run-events/index.ts 54 323 KiB ✅ 0

A server module in a client graph aborts hydration in the browser. New leaks fail CI; known leaks are tracked in scripts/lint/client-bundle-baseline.json to burn down.

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 005161c8b8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@kojiwakayama

Copy link
Copy Markdown
Contributor Author

@codex review

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

@codex review

@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: 24b078e6ec

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/server/production-server.ts Resolved
Comment thread src/security/host-execution-policy.ts Resolved
Comment thread src/server/production-server.ts Resolved
@codecov

codecov Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.30159% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/server/production-server.ts 55.55% 8 Missing ⚠️

📢 Thoughts on this report? Let us know!

@kojiwakayama
kojiwakayama force-pushed the feat/account-agent-v2-shared-server branch from 2b549cb to befd2f0 Compare December 5, 2026 08:44
@kojiwakayama

Copy link
Copy Markdown
Contributor Author

@codex review

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

@codex review

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

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/server/production-server.ts Resolved
@kojiwakayama

Copy link
Copy Markdown
Contributor Author

@codex review

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: b235cae58f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@kojiwakayama
kojiwakayama added this pull request to the merge queue Dec 5, 2026
@sonarqubecloud

sonarqubecloud Bot commented Dec 5, 2026

Copy link
Copy Markdown

Merged via the queue into main with commit c66d52a Dec 5, 2026
444 checks passed
@kojiwakayama
kojiwakayama deleted the feat/account-agent-v2-shared-server branch December 5, 2026 09:54
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