Skip to content

fix(acp): enforce authentication discriminator boundaries - #184

Merged
YoungSx merged 4 commits into
mainfrom
fix/acp-auth-discriminator-boundaries
Sep 10, 2026
Merged

fix(acp): enforce authentication discriminator boundaries#184
YoungSx merged 4 commits into
mainfrom
fix/acp-auth-discriminator-boundaries

Conversation

@YoungSx

@YoungSx YoungSx commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

鉴权列表中空白或未知 type 不能获得默认 agent 的执行资格;只有缺省或精确 agent 可发送 authenticate。单项类型错误仍被拒绝,initialize.authMethods 按官方 schema 跳过坏项并保留其余合法登录方式,列表本身类型错误时取空列表。

所有根使用同一版本化源生成转换:v1 id / v2 methodId,未知扩展载荷保留。补充原始 initialize → 真实 transport 出网断言;单项严格解析、未知值往返及 v2 必填判别独立验证。共享指标测试按 trace 隔离,避免并行用例串扰。

验证:

  • 已 rebase 到 main 4a4e3c53;独立 Standards 与 Spec 复审通过父列表修正。
  • 新增/调整边界在修复前 18/61 失败,修复后 61/61;SDK 全套 605/605、零跳过,格式、分析器、构建零警告零错误。
  • 1.0.0 包兼容基线与真实 nupkg 消费通过;37 个草案类型拒绝未抑制消费、两种文档化抑制通过。
  • 最终提交 9219430c 的完整 CI 16 项成功、1 项原有条件跳过;已 rebase merge,main 合并提交 ceb25cff

Refs #147。终端交互登录及独立 Agent 验收属于后续工作,本 PR 不关闭总单。依据 ACP schema 的 authMethods default-on-error / skip-invalid-items(上游 367c56fb6115f391bc7550288363f87416cd0af8)。

@vercel

vercel Bot commented Sep 8, 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 10, 2026 10:09am UTC

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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
@YoungSx
YoungSx force-pushed the fix/acp-auth-discriminator-boundaries branch from 4de1fbc to 9219430 Compare September 10, 2026 10:00
@YoungSx
YoungSx merged commit ceb25cf into main Sep 10, 2026
17 checks passed
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