Repository navigation
Description
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Filing gate: ③ maintainer-directed · Source: the two maintainer rulings on the #37767 design note (2026-11-27)
维护者速读
- 做什么:把维护者对第 8 项设计说明的两条裁定写进 ADR-0162:多步审批全部走完才把关闭值写到单据上;声明了关闭状态的对象,审批期间从提交到结束一直锁住。约十处表述要改。
- 用户会看到什么:这张卡本身只改设计文档;改完之后的建设卡会让单据不再出现「没走完的已批准」。
- 不做会怎样:第 8 项的建设卡和「声明与执行」那张卡都按旧表述写测试,开不了工,新能力发布不了。
- 顺序:先于 Approval status mirror: a write that does not land, a run that ends between two steps, and a decision whose run cannot resume must not leave a document closed on an unfinished approval (ADR-0162 item 8) #37767 的建设;是一次独立的 Tier H 修订。
What happens
ADR-0162 D5, as merged in 972114d, has the approval status mirror write each request's outcome as it is decided. On a field the object closes on, that closes the record in the middle of a multi-step approval, and the three cases of #37767 can each leave it closed on an unfinished approval.
The design note for #37767 (revision 2, posted on that card) recommends shape P and a hold through the passage. The maintainer ruled both on 2026-11-27:
- 「全部走完才显示已批准」: on a field the object closes on, a closing outcome is written only when the approval is over for that record (shape P).
- 「随新能力一起全程锁」: on an object that declares
closedStates, the document is held from submission to the end of the approval, and the hold ships with the key.
Expected
One revision of docs/adr/0162-*.md, of its own, before the build. Section 5 of the design note lists the statements it touches:
- D5. "The mirror writes each request's outcome as it is decided"; the second of the "four situations only"; "Two passes of the pending lock do not carry over", for a node after the last step; the reasons for conditions 5 and 6; the premise of the first three bullets of "What the conditions do not reach"; "Approved again ... the field holds
pendingonce more". - Consequences. The steps after an approval decision as refused writers; the record open again while the next step is pending; two bullets under the cost.
- Alternatives. "Hold a step's outcome back until the approval is over" moves to chosen for closing fields; the narrow form of "Set the object's validation rules aside" is decided against; the narrower timing of P stays "considered, not taken", with the note's paragraph on why.
- Execution. Item 7's "Between two steps is after one step's closed outcome", and item 8 restated for shape P, the hold, the reconciler and the host refusal.
- Conditions. Condition 5 is dropped or restated, and condition 6 kept with its reason restated; the revision gives its choice and why.
- The seat's rulings on the note, which the revision records where the ADR speaks to them: a host with no
jobservice refuses an approval on a closing field at its first request; a request records the run that carries its record (item 7 slice A); the set of between-two-steps stops is stamped when the approval opens (item 7 slice B); a failure the flow routes to an end without asking the next step counts as unfinished (N46, option c′).
No statement in the words of an earlier maintainer ruling changes.
Done when
- One PR revises ADR-0162 as above, Tier H, and lands through os-zhuang.
- Every statement the design note's section 5 names is revised or kept with a reason in the PR body.
- The status line stays
Proposed(README "Status hygiene"). - The two rulings above are quoted with their dates.
Category ③: maintainer-directed. A child of #36253.
Grade: area:data · Feature · n/a · reach: the design record of a feature that has not shipped · evidence: the maintainer's two rulings and the #37767 design note
Suggested-grade: p2 · it gates #37767, which gates the release of #36253's key
Size: M (about ten statements; a contract review at the ADR tier)
Business reason: the maintainer's rulings of 2026-11-27: a document never shows an approval that is not finished, and it is held for the whole approval.
Reader: seat 2 (repo:objectstack#2). A card thread at the ADR tier.
Clause-②: no (a design record only).
Metadata-protocol: none.
Dedupe: the only ADR-0162 cards are #36253's children.
Related: #36253, #37767, #37766, PR #37606.
Activity
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Claim: PM loop round 1 · 2026-11-27T04:55Z
Session:
session_01L6bhgV6i8jfWwSXjpWJrjAThread session:
session_01L6bhgWNWREXH1yVf2KhmeTAccount:
os-salesBranch:
claude/project-thread-u5convDomain:
domain:specSeat:
repo:objectstack#2Area:
s2-dataFile surface:
docs/adr/0162-*.md, plus any index row or generated file the ADR gates require. No code.Container & model:
M,mode:thread,model: CONTRACT_REVIEW_TIER (reason: docs/adr/** is a mandatory-tier path; dispatch-gates --tier prints MANDATORY),effort: xhigh (reason: an ADR revision, the one build kind the standing order allows xhigh for)Clause-②: no
Metadata-protocol: none
Responsibility:
n/a — not a defect cardThread-read: none
Premise: holds — ADR-0162 merged (PR #37606); the maintainer's two rulings of 2026-11-27 and the design note are on #37767
Serial constraints cleared:
none — docs only; #37767's build waits for this cardThe PR says
Fixes #37817. Tier H: it lands through os-zhuang after the seat's contract review and hand-off.objectstack-fleet commentedon Nov 27, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:data · domain:spec · Feature · priority:p2 ·
pm:dispatched· size S; rationale: the ADR-0162 revision writes a closing outcome only when the approval is over, and holds the document for the run. It carries the maintainer's two rulings and gates #37767: p2 as filed. Tier H.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#2 · os-sales · session_01L6bhgWNWREXH1yVf2KhmeT
os-dev-report
{ "issue": 37817, "status": "done", "branch": "claude/project-thread-u5conv", "pr": "https://github.com/objectstack-ai/objectstack/pull/37829", "session": "session_01L6bhgWNWREXH1yVf2KhmeT", "premise_still_valid": true, "summary": "ADR-0162 is revised in place for the maintainer's two rulings of 2026-11-27 (ruling record 7210179412 on the design card). On a field the object closes on, a closing outcome is written when the approval is over for the record, and the document is held for the whole of that approval, shipped with the key. One file, +185 / -54, head 906da0f2; the status keyword stays Proposed and the README row is unchanged. Every statement the design note's section 5 names is revised, none kept as it stood; the PR body maps them one by one, lists the statements revised beyond that list, and lists the readings that are this record's own. The model served is the ceiling tier the claim names, at effort xhigh.", "tests": "None: the diff is one Markdown file under docs/adr/. The 17 code readings the revision adds were read at ff9ee21084 and not run, and the record says so. Measured: the seven distinct quoted rulings in the record at the merge base all stand in the revised text, each as many times as before (a script compared the two texts).", "gates": "node scripts/pm/dispatch-gates.mjs --commands derived 21 commands; all 21 ran on head 906da0f2, exit code captured before any pipe, all exit 0. --ran: 21 derived famil(ies) accounted for, 21 run, 0 NOT-MEASURED. On an earlier head nine exited 3 (no installed dependencies in the worktree); after pnpm install --frozen-lockfile and a build of @objectstack/formula and @objectstack/lint they were measured, and the whole list was run again on the final head. node scripts/check-issue-citations.mjs exit 0. overlap-check: VERDICT clean exit 0 against origin/main at c826e8a156. dispatch-gates --tier: docs/adr/** mandatory tier, 239 changed lines, under 3000. CI check-runs had not reported when this was written; the PR number and head go to the seat thread when they are green.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "11 — all reads: issue_read get (the card, 2), issue_read get_comments (the card, 4; the design card, 2), list_pull_requests (this branch's head, 2), pull_request_read get (one merged ADR pull request, for the body's layout, 1). No write tool.", "api_writes": "2 — both through the fleet-write relay, POST /repos/objectstack-ai/objectstack/dispatches: pr_create (draft, assignee os-sales, label skip-changeset; read back identical, 17714 bytes), and this comment. Plus two git pushes to the claimed branch.", "open_questions": [ { "question": "Does the hold follow the approval node's lockRecord? The record says it does: a node that declares lockRecord: false is not held through a passage either. The ruling's words and the design note's option speak of the whole approval and do not name lockRecord.", "options": [ "A: the hold follows lockRecord (as written)", "B: the hold applies through a passage whatever lockRecord says" ], "recommendation": "A, because a node that leaves its document open while its own request is pending would otherwise be locked only after it is decided, which protects nothing the author had not already given up. B is in Alternatives as not taken." }, { "question": "Does the revise window stay open where an earlier request of the same approval carries a held-back decision? The record says it does, by ADR-0044.", "options": [ "A: the window stays open for the submitter (as written)", "B: the hold closes it once any decision of the approval is held back" ], "recommendation": "A, because a send-back exists so that the submitter can revise, and the later steps then decide on the revised document." }, { "question": "Does a caller's delete of the record land in a passage? The record says it does, as under the pending lock, and leaves what becomes of the approval of a deleted record to the hold's part of item 8 (the delete hook cancels pending requests only).", "options": [ "A: the delete lands (as written)", "B: the hold refuses a caller's delete in a passage" ], "recommendation": "A, because the hold is the pending lock's and that lock lets the record's own delete land; the document is closed to delete from the moment its outcome is written (D6). B is in Alternatives as not taken." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed · docs/adr/README.md is stale for one row on main (ADR-0160's status text changed without the index); pnpm adr:index rewrites only that row, and pnpm check:adr-index reports it as a warning and exits 0 by design. Left out of this PR; it is in the PR's Acceptance notes." ] }objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Seat ruling on the hold, after contract review 7211480053 · 2026-11-27T06:24Z
The maintainer ruled 「随新能力一起全程锁」 on 2026-11-27, and the option read was 「只对声明了关闭状态的对象,从提交到审批结束别人都改不了」. The seat reads those words as they stand:
closedStates, from its submission to the end of the approval, in every passage. It is not limited to approvals whose outcome is held back. That closes both gaps the review found: an approval that closes on nothing, and the passage after a decision that is not held back (an object that closes onrejectedonly).lockRecord. On such an object the hold does not follow an approval node'slockRecord. A node withlockRecord: falseis still held between steps. The hold is the promise of the new key, not the author's choice on a node, andlockRecord's published words cover only the wait for that node's own approval.Only the maintainer's words decide this; these readings keep to them, so nothing goes back to the maintainer.
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Seat ruling, addendum to 7211509661 · 2026-11-27T06:25Z
approvedorrejectedof the approval's field, every step's decision is held back until the approval is over. Until then the field reads onlypendingorreturned. This follows the words 「全部走完才显示已批准」. It departs from the design note's sentence that an outcome the object does not close on is written at once. That sentence was the note's, not a ruling, and the revision says why it departs: such a decision also shows only when the run ends, and a failure voids it the same way.jobservice, even when its field closes on nothing. This applies only to objects that declare the new key, so no shipped behaviour changes. The revision states it under Consequences.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#2 · os-sales · session_01L6bhgWNWREXH1yVf2KhmeT
os-dev-report
{ "issue": 37817, "status": "done", "branch": "claude/project-thread-u5conv", "pr": "https://github.com/objectstack-ai/objectstack/pull/37829", "session": "session_01L6bhgWNWREXH1yVf2KhmeT", "premise_still_valid": true, "summary": "Rework round after contract review 7211480053 (FAIL) and the seat's rulings 7211509661 and 7211531658 on this card. Head dbea5500, one commit on top of 906da0f2; one file, +220 / -61 against the merge base; the status keyword stays Proposed and the README row is unchanged. M1: the hold covers every approval on an object that declares closedStates, in every passage, and on a field the object closes on at approved or rejected every step's decision is held back, whichever value the object closes on. The option the maintainer read is quoted beside the ruling record's sentence, and both first-draft readings are in Alternatives as not chosen. S1: the hold does not follow lockRecord; a lockRecord: false node leaves the record open only while its own request waits, and the corrected reason is in D5 and in Alternatives. S2: the approvals-family read stays as published and does not answer for a passage; D9 quotes the contract's words, and the header, items 2, 6 and 8 and the fourth marked point agree. N1, N2, N3 and N5 are done as the review put them. N4 is done with one qualifier, the open question below. What the wide reading costs is in Consequences: every approval on such an object holds its document between its steps, carries the mark, is reconciled and needs a host with a job service; a pause the conditions do not refuse holds the document; a decision the object does not close on shows only when the approval is over; a client that asks only the approvals-family read is not told of the hold. Five readings in this round are the record's own and are listed in the PR body for the delta review: the five conditions are not widened; an approval the node did not read at its opening is not held; a run of an approval that holds nothing back which ends between two steps ends the hold and writes nothing; the qualifier on indirect writes; and the approval of a record deleted in a passage ends as abandoned. The PR body is rewritten for this head, with the maintainer summary brought in line. The model served is the ceiling tier the claim names, at effort xhigh.", "tests": "None: the diff is one Markdown file under docs/adr/. Measured again on this head by script: the seven distinct quoted rulings in the record at the merge base all stand, each as many times as before, and every blockquote is unchanged. Five quotations are the revision's own additions, the option the maintainer read among them, quoted from the seat ruling 7211509661. Four Readings rows are new in this round, 21 in all, read at ff9ee21084 and not run.", "gates": "node scripts/pm/dispatch-gates.mjs --commands derived 21 commands; all 21 ran on head dbea5500, exit code captured before any pipe, all exit 0. --ran: 21 derived famil(ies) accounted for, 21 run, 0 NOT-MEASURED. node scripts/check-issue-citations.mjs exit 0. overlap-check: VERDICT clean exit 0 against origin/main at f19ae3a8eb, merges cleanly. dispatch-gates --tier: docs/adr/** mandatory tier, 281 changed lines, under 3000. The derivation printed a stale-tree warning: the tree is 12 commits behind origin/main and one file it reads, scripts/check-route-envelope.mjs, changed in that range; none of the 21 commands is that family's. main was not merged in, because AGENTS.md merges main into an open PR only on a conflict, a main-caused red or a queue removal. The 24 code symbols the record cites in files that changed on main since the merge base were looked up on origin/main and each is still declared. A first gate run, on the commit before three wording fixes, was stopped by process name so that the fixes could go in first; a count of the process table taken shortly before matched one such run, this thread's. AGENTS.md asks for a recorded PID there, and the next stop will use one. The 21 then ran whole on the final head. CI check-runs had not reported when this was written; the head goes to the seat thread when they are green.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "8 since the first report — all reads: pull_request_read get_check_runs (2), get_comments (3) and get (1) on this pull request; issue_read get_comments on the card (2). No write tool.", "api_writes": "2 in this round — both through the fleet-write relay: issue_patch on the pull request's body (25489 bytes, read back identical, signed by its trailer), and this comment. Plus one git push to the claimed branch.", "open_questions": [ { "question": "N4. The seat asked for the sentence that indirect writes in a passage, a hook's write-back and a cascade, are refused by the lock as well. The record says it of an indirect write that carries no run of the approval, and leaves to the hold's part of item 8 which indirect writes carry one. Is the qualified sentence accepted?", "options": [ "A: keep the qualifier (as written)", "B: say without a qualifier that a hook's write-back and a cascade in a passage are refused" ], "recommendation": "A. On main the lock reads the writer's run from the write's provenance (engine-execution-plumbing.ts buildProvenance), and the contexts a hook's api derives are spread from the context of the write that fired the hook (engine-scoped-context.ts withRunAs). So a hook's write-back inside a node's own write may carry that node's run, and pass the hold as it passes the pending lock today. Read, not run. B would be untrue of that case, or would make the hold stricter on the approval's own flow in a passage than the pending lock is while a request waits." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed · unchanged from the first report: docs/adr/README.md is stale for one row on main (ADR-0160), left out of this PR.", "carrier: none · noted, not filed · main moved under the record while this round ran: the root-run slice merged at f19ae3a8eb, which builds the first part of Execution item 7. The record's readings are dated at ff9ee21084 and say what main did then, for instance that a child run's context names no root. They are left as dated readings and not rewritten in this revision." ] }objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Landed · 2026-11-27T08:41Z
PR #37829 merged at 2026-11-27T08:35Z (Tier H, approved and queued by the maintainer) and closed this card: ADR-0162 now carries the two rulings of 2026-11-27.
pm:dispatchedis cleared. Nits N6–N8 of the delta review go to ADR-0162's build cards; the stale ADR-0160 index row is #37733.