Skip to content

feat(acp): project draft session updates into immutable snapshots - #192

Draft
YoungSx wants to merge 25 commits into
mainfrom
feat/acp-v2-session-projection
Draft

feat(acp): project draft session updates into immutable snapshots#192
YoungSx wants to merge 25 commits into
mainfrom
feat/acp-v2-session-projection

Conversation

@YoungSx

@YoungSx YoungSx commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Agent 的整消息、工具和终端更新现在投影到每个 session 的不可变快照。使用协议 ID 合并 upsert、区分缺省/清空/替换,并保留流式追加、重放和未知 payload;会话状态仍由同一个 runtime owner 管理。

草案访问器与公开类型统一受 SEACP002 保护,稳定签名不引用草案类型。生产默认和公开 live initialize 继续只服务 V1。此 PR 是 #149 的更新投影阶段,包含 #184#187#186#189 的前置及共享权限归属、连接取消和 WASM 门禁修复;权限主体接线与 batch 在后续 PR。

验证:当前整合提交 85e10d2e 的 SDK 964/964 通过,Release 分析器构建零警告、零错误。混合重放、清空、terminal bytes、快照不可变、旧连接回调有行为测试;对应保护的反向验证已失败并恢复通过。功能阶段外部 nupkg consumer 覆盖 44 个草案类型和离线投影;当前提交包兼容、外部消费及各平台门禁由 CI 再验。

保持 draft。离线报文与模拟对端不代表真实 V2 Agent 互操作;公开 live V2 持续禁用,不关闭 #149

Default only an absent v1 type to agent, reject non-string discriminators, and preserve unsupported strings and payload fields. Share version-aware authentication serialization across DTO, collection, and initialize roots so unknown fields cannot override the negotiated method identity.

Add raw initialize transport regressions, presentation selection coverage, and schema round-trip properties. Validation: 593 SDK tests, 26 presentation authentication tests, analyzer and package validation, external nupkg consumer, and a 9-case failing whitelist mutation.

Refs #147
Apply negotiated identifiers and required message identities across direct, collection, and parent contracts. Preserve unknown command and resource metadata, honor explicit schema recovery rules, and keep v1-only state off draft wire.

Keep live v2 disabled and preserve the published serialization surface. Validate 680 SDK tests, package compatibility against 1.0.0, and 38 draft consumer diagnostics; version-rule mutations fail 45 targeted cases.
@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
salmonegg Ready Ready Preview Sep 9, 2026 3:09pm UTC

Wait for the native canvas and splash removal within the existing boot deadline before enabling accessibility once. Uno 6.7.103 (cd452e3ee242c9a2a8dee5e65ad8088b6f5dbf83) can retain initial sibling bounds when ancestor layout moves after early semantic activation, causing pointer gates to click an adjacent card.

Validated against the same Debug product with CPU throttle 4: early activation fails, late activation passes, restoring early fails, restoring late passes. The unchanged two-round pointer gate passes with the final helper at CPU rates 4 and 1. Product focus code is unchanged.
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