Repository navigation
Description
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Filing gate: ③ maintainer-directed · Source: ADR-0162 Execution item 6 (accepted by merge 972114d)
维护者速读
- 问题:平台会有两个「这条记录锁了吗」的查询,老的只知道审批中,不知道已关闭;只问老查询的客户端会给已关闭单据显示编辑入口,点了才被拒。
- 选项:A 老查询保留不动,文档提示改用新查询;B 老查询改成返回新查询的答案,已发布的返回内容会变宽;C 老查询下线,调用方必须迁移,是破坏性变更。
- 推荐:待决策分析给出,本卡先不预设;在裁定之前老查询保持原样。
- 不定会怎样:两个查询长期并存,平台自己的界面已迁到新查询不受影响,受影响的只有仍调用老查询的第三方客户端。
What happens
ADR-0162 D9 adds one lock read owned by the data layer (item 2) and leaves the approvals-family read exactly as published: its two routes in packages/rest/src/approvals-routes.ts, the SDK methods client.approvals.getRecordLock and getRecordLocks, and the contract members IApprovalService.getRecordLock and getRecordLocks (packages/spec/src/contracts/approval-service.ts). They answer whether a record is held by a locking approval, and say nothing of closed states.
The record did not change them in passing, for two reasons it states. Serving them from the new read would widen a published answer. And it would hand a closed record's lockSource: 'record' to clients that read that member as "may still be deleted", which is false for a closed record. A seat ruling the contract records (7152650156) had already declined to narrow a published answer on this read.
The maintainer adopted that on 2026-11-26, 「全部按推荐」 (ruling record 7200732942 on #36253): the approvals-family read stays as published, and whether its routes retire or are redirected is a card filed with the build cards. This is that card.
Expected
A ruling on one question: what becomes of the approvals-family lock read once the one read exists.
- Keep. Both reads stay. A client that asks only the approvals read offers edits on closed documents and meets the server's refusal. Cost: two reads to maintain, and a standing note in the docs.
- Redirect. The approvals routes answer from the one read. A published answer widens:
locked: truefor closed states, and a client that readslockSource: 'record'as "may still be deleted" is wrong for a closed record unless it also readslockReason. - Retire. The routes, SDK methods and contract members are removed on the deprecation path. A breaking change with its migration and its ADR-0087 disposition.
The card is prepared as a decision analysis (four axes, the four-facet block, effort with precedent) by a decision thread, reviewed at the ceiling tier, and put to the maintainer. Until it is ruled, nothing changes.
Done when
- The analysis is on this card with its quick-read block and its four-facet block.
- It counts who asks the approvals-family read today: first-party askers after item 2 and item 4 have landed, and any named external client.
- The maintainer's ruling is recorded on this card.
- The build card the ruling implies is filed (none for "keep", beyond the docs note).
Category ③: maintainer-directed. A card ADR-0162 files with its build cards, child of #36253. In substance it is a decision card: the seat files it into the decision box rather than the build queue.
Grade: area:data · Feature · n/a (not a defect) · reach: clients that ask only the approvals-family read · evidence: read (ADR-0162 D9, the two routes on main at 972114df)
Suggested-grade: p3 · nothing waits for it; until it is ruled the routes stay as published and first-party clients have moved to the one read
Size: S for the analysis. The build size depends on the ruling: none, M or L.
Business reason: two reads with different answers for the same question is a standing trap for client authors, and each way out changes a published surface.
Reader: a decision thread opened by the coordinator, then the maintainer.
Blocked-by: #37770 (item 2, the one read has to exist), #37773 (item 4 (so that the count of remaining askers is true).
Clause-②: not judged before the ruling. Keep: no change. Redirect: yes, a published answer widens. Retire: yes (narrowing), breaking.
Metadata-protocol: none in every option
Dedupe: searched getRecordLock (open issues): #37195 is a neighbour on the record page's approvals part, not this question.
Related: #36253, PR #37606 (ADR-0162), seat ruling 7152650156, #25934, #37195.
Activity
objectstack-fleet commentedon Nov 27, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:data · domain:spec · Feature · priority:p3 ·
pm:blocked· size S; rationale: closedStates. Whether the approvals-family lock-read routes retire, redirect or stay; a later decision inside ADR-0162. p3 as suggested. It keeps its named blocker.