Skip to content

[spec] 为 action body 的 ctx.session 立契约 schema(按现状声明)—— #5613 契约先行裁定的第一阶段 #5697

Description

@os-zhuang

维护者 2026-08-06 对 #5613 裁定「契约先行(C 骨架 + A 语义)」的第一阶段,由 spec 车道 PM 拆立(session_018fxLGQdatPbBUvCgiVxg6D)。

任务

为 action body 的 ctx.session 声明契约 schema——按现状声明,不在本单改运行时行为:

背景

#5613 三问题:ADR-0090 D3 禁的 roles 拼法在边界被翻译回来;「mirroring hook ctx.session」注释在 #5050 后已失真;action ctx 完全无 schema(declared-nowhere/produced-anyway)。裸 any 面是漂移根因,故契约先行。

第二阶段(#5613,cli 车道,Blocked-by: 本单):roles → positions 更名 + 弃用窗口 + ADR-0087 语义迁移 + 注释修正。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions