Repository navigation
Description
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Filing gate: ③ maintainer-directed · Source: ADR-0162 Execution item 5 (accepted by merge 972114d)
维护者速读
- 做什么:在建模文档里讲清楚「已关闭状态」怎么声明、声明后会发生什么,并在审批文档里「审批结束后记录解锁」的地方加上指引。
- 用户会看到什么:应用作者能在文档里查到声明一发布旧单据立刻关闭、动作按钮仍然能改已关闭单据、怎么给用户留一条「重新打开」的路。
- 不做会怎样:作者只能从报错里摸索规则,最容易踩的几处(声明立即生效、审批后的自动化被拒)没有任何预警。
- 顺序:排在声明和执行那张卡之后,文档只写已经上线的行为。
What happens
content/docs/automation/approvals.mdx says a record unlocks when its approval is decided (two passages, git grep -n "the record unlocks" origin/main -- content/docs/automation/approvals.mdx). Nothing in content/docs/data-modeling/ tells an author how to keep a decided document closed, because the platform could not do it.
The recommendations the maintainer adopted on 2026-11-26, 「全部按推荐」 (ruling record 7200732942 on #36253, text on record 7202242844), ask for three authoring notes by name. ADR-0162 "Consequences" lists the rest.
Expected
- The data-modelling guide documents the key: its shape, what a field must be, the unit (the record and its direct
master_detaillines), what is refused and for whom, the refusal's code, and the way out. - Every authoring note of ADR-0162 "What an author has to know", none left out:
- publishing a declaration closes existing records at once;
- automation that acts as the caller is refused on a closed record, the steps after an approval decision included;
- code that calls the engine with no context is bound like a caller;
- an action button still works on a closed document, and an action that must not run on one checks the state in its body;
- the way out is an action with a script body, or a flow that runs as system;
- a closed document keeps its owner;
- line edits go before the closing write, and a finished document is not created together with its lines by a caller;
- the lock read tells every reader of a document that it is closed, so a field whose state is confidential to some readers is not declared;
- a parent is not deleted while a closed document hangs below it.
- The three notes the ruling asks for by name: what an action button does on a closed document, what the lock read tells a reader who may not see the state field, and a new approval of a closed document, with what an abandoned approval leaves behind.
- The approvals guide's "the record unlocks" passages gain a pointer to closed states. What a field and a flow owe an approval on an object that closes on its outcome is written by the approvals card (item 7), which owns that part of the guide; this card links to it and does not restate it.
- An action's registered handler is named beside the script body wherever the docs say what runs elevated: a handler registered for a script action runs through the same context as the body (review note N15).
Done when
- The data-modelling page exists, is linked from the section's navigation, and carries each note above.
- Each of the three notes the ruling names can be found by its own heading.
- Both "the record unlocks" passages point at closed states.
- Every example in the page is a declaration the shipped schema accepts (the doc-authoring gates pass).
- The showcase's declaration (item 3) is the worked example, or the page says why it is not.
- The key's own PR names this card on its
Skills-docs:line, and theskills/**follow-up card is filed apart.
Category ③: maintainer-directed. A build card of ADR-0162, child of #36253.
Grade: area:data · Feature · n/a (not a defect) · reach: every author who declares the key · evidence: read (the approvals guide on main at 972114df, ADR-0162 "Consequences")
Suggested-grade: p2 · part of the feature #36253; the ruling asks for three of the notes by name
Size: M (one new page, edits to the approvals guide, navigation, examples that the doc gates check).
Business reason: carried from #36253. An author who declares the key changes what every user of the document can do, at once and with no grace period.
Reader: seat 2 (repo:objectstack#2), a card thread, effort medium to high.
Blocked-by: #37768 (item 1) (the docs describe shipped behaviour). The lock-read note also waits for item 2.
Clause-②: no. Prose under content/docs/**.
Metadata-protocol: none
Dedupe: searched closedStates (all issues): 1 hit, #36253 itself.
Related: #36253, PR #37606 (ADR-0162), the card for item 7 (its part of the approvals guide).
Activity
objectstack-fleet commentedon Nov 27, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:data · domain:server · Feature · priority:p2 ·
pm:blocked· size S; rationale: closedStates. The data-modelling guide documents the key with every authoring note. Part of #36253; p2. It keeps its named blocker.