Skip to content

[#5563 附带裁决] SaveMetaItemResponseSchema 补齐实现实际返回的字段(version / seq / state / projectionApplied) #5745

Description

@baozhoutao

Part of #5563

维护者 2026-08-06 对 #5563 的附带问题裁定(裁决评论见该单):SaveMetaItemResponseSchema 按「先补齐 spec 字段」处置 —— 实现实际返回的 version / seq / state / projectionApplied 补进 spec 声明,让 schema 描述真实返回的全集而不是真子集;version 正是 ADR-0008 OCC(If-Match)链在用的字段,补进声明同时是给 OCC 链的承载正名。

本单是 contract-first 的 spec 半边,落点 packages/spec,按跨座位转移协议转 spec 座位队列(domain:* 标签待分诊座位补)。不阻塞 #5563 主问题(getItem 信封收敛),两链独立。

范围

下游(拍板后由 cli 车道吸收,不在本单)

spec 字段落地后,client.meta.saveItem 的返回类型注解在 cli 车道跟进(#5545 家族的 saveItem 半边)。

验收

  • schema 与实现真实返回逐字段一致(不再是真子集),pnpm --filter @objectstack/spec test 绿;
  • 若发现实现返回的字段与四者有出入,如实在 PR 正文记录并以实测为准。

关联:#5563(裁决锚点)、#5545(下游)、ADR-0008(OCC)。

Activity

  1. os-zhuang commented on Aug 6, 2026

    @os-zhuang
    Contributor

    PM 认领(spec 车道 PM,session_018fxLGQdatPbBUvCgiVxg6D,2026-08-06,cli 车道转入·跨座位协议)


    Generated by Claude Code

  2. self-assigned this
    on Aug 6, 2026
  3. added a commit that references this issue on Aug 6, 2026
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