Repository navigation
docs(adr): ADR-0162 revised on two rulings of 2026-11-27: a closing outcome is written when the approval is over, and the document is held for the whole approval - #37829
Conversation
…al is over and hold the document for the whole approval (WIP) Card 37817. The maintainer's two rulings of 2026-11-27 on the design of Execution item 8, as the seat recorded them on the item's card. Claude-Session: https://claude.ai/code/session_01L6bhgWNWREXH1yVf2KhmeT Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgWNWREXH1yVf2KhmeT Co-authored-by: Claude <noreply@anthropic.com>
…s (WIP) Claude-Session: https://claude.ai/code/session_01L6bhgWNWREXH1yVf2KhmeT Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Read: card #37817 with its three comments, the PR body and its one-file diff against ① Derived judgmentsThe diff publishes nothing: one Markdown file under
② Semver level
③ Boundary flagsWhat the card asked to be confirmed.
The five readings.
The record's other readings. Withdrawing the condition on a write and keeping the one on a pause, restating the reasons of the conditions on Out-of-scope note in the dev report (the stale ADR-0160 row in SQL push-down. No finding. The mark is a field the store filters on, the reconciler scans it oldest first, and the hold and the mirror ask the request table in single probes by a recorded run. Security. Escalated to the maintainer: reading 4 (M1), and reading 1 unless the seat takes the wider hold (S1). The PR body's summary for the maintainer states the hold without either limit; that is the seat's to put right at hand-off. ④ Design judgmentThe first ruling is carried faithfully. The rule, "over" judged for each record, the decision of the latest request, the door's four answers, the mark and the reconciler, the abandonment at once and option c′ all agree with the design note and with the code they cite on M1 (must-fix) — the hold as written is narrower than the words that were ruled, and the record files that as a choice inside the ruling. D5 quotes the ruling record: 「只对声明了
The narrow reading may be the right design. The note keys the hold to the closing field and to the mark, a hold where nothing is held back protects nothing, and in (b) the later step's approvers see the edit. But it gives a user less than the ruled words say, and widening it after release is the change to shipped behaviour the ruling chose to avoid. The header says the list holds what was chosen "inside the two rulings", "Points the ruling does not settle" says none of it is in the rulings' words, and the status line still tells the maintainer that five points go past a ruling's words. Fix: mark the reading ▲ where it stands, with the other reading and what a user sees, as the record does for every reading a ruling leaves open; state case (b); quote the option the maintainer read beside the ruling record's sentence; and have the maintainer's answer before hand-off. Or hold as the words say. S1 (should-fix) — the reason given for following S2 (should-fix) — the approvals-family read is said to stay exactly as published while its answer is widened. D9 adds that the two routes and Nits:
Delta review owed on M1, S1 and S2. Implemented-by: VERDICT: FAIL |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Seat label · 2026-11-27T06:23Z The contract review 7211480053 records |
…ct and hold back every decision on a closing field (WIP) Rework after the contract review of the revision (7211480053) and the seat's rulings on card 37817 (7211509661, 7211531658): - the hold covers every approval on an object that declares closedStates, in every passage, and does not follow a node's lockRecord; - 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 approvals-family lock read stays as published and does not answer for a passage; - every approval on such an object carries the mark, is reconciled, and is refused on a host with no job service; - the review's five nits: two summary sentences, the revise window's callers, two alternatives that argued from the merged timing, indirect writes in a passage, and the mark of a deleted record. Claude-Session: https://claude.ai/code/session_01L6bhgWNWREXH1yVf2KhmeT Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Delta round on record 7211480053 (head ① Derived judgmentsThe diff still publishes nothing: one Markdown file under
② Semver levelUnchanged: ③ Boundary flagsIs each seat ruling inside the words the maintainer tapped? Yes, each one, so nothing goes back to the maintainer.
The rework report's open question, N4. Accepted as the seat accepted it, and the qualified sentence is truthful. On The five readings of this round that are the record's own. Each is the record's to settle, and each is right.
The four carried over from the first head stand as judged there. "Between two steps" is now counted from every decision, which follows from the two seat rulings. Confirmed again on this head. Every statement the design note's section 5 names is still revised. The status keyword is SQL push-down. No finding: the hold is still read off a field the store filters on, in the lock's existing probes. Security. ④ Design judgmentM1: closed N1, N2, N3, N4 and N5 of the first record are each done in the tree.
Tried against the new, wider rule: a pause in an approval the conditions do not concern (held, stated); a non-locking later step (open while it waits, held after, stated); a rejection on an object that closes on No must-fix, no should-fix. Nits, none of which changes the contract; each can go into a build card:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head dbea550 · card #37817 · area s2-data · 2026-11-27T07:23ZL1 checklist
Tier: H. Landing: hand-off to the maintainer follows this record. |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Tier H hand-off · 2026-11-27T07:24Z · head dbea550 · approver 维护者速读
|
Requested by Sales · project thread
Fixes #37817
Clause-②: no
Metadata-protocol: none
Tier: H
维护者速读
What changes
One file:
docs/adr/0162-an-object-declares-its-closed-states-the-record-and-its-lines-are-closed-to-change.md, +220 / −61. No code, no generated file, no changeset. The record's row indocs/adr/README.mddoes not change, because the status line keeps its opening words.The revision writes the maintainer's two rulings of 2026-11-27 into ADR-0162 (ruling record
7210179412on the design card), in place, with the seat's rulings on the design note where the record speaks to them. After the contract review of the first draft, the seat read both rulings by the words that were ruled (seat rulings7211509661and7211531658on the card), and this head carries that reading.Proposed. The line gains "Revised 2026-11-27 …" after the text it had. The header gains one bullet, "Ruled twice more on 2026-11-27", which quotes both rulings with the date, quotes the option the maintainer read for the second, names the four statements they replace, and names the seat's two rulings on how the words are read.approvedorrejected, every step's decision is held back, whichever of the two the object closes on, and the field keepspending. The outcome is written when the approval is over for the record and has finished. Every other status is written as it is onmain. A second paragraph, "How the plugin learns that an approval is over", gives the door's reading of the run, the mark on the request, the reconciler and the host it needs.closedStates, a document under approval is held for the whole of the approval". The pending lock holds on through every passage, from each decision until the next request opens, the approval is over or it is abandoned. The hold covers every approval on such an object, whatever field it mirrors onto, and does not follow a node'slockRecord. It keeps three things of the pending lock: the revise window, a caller's delete of the record, and the passes for a system context and for a write of the mirror field alone. It ships with the key.jobservice is a new ground of refusal at the first request, for every approval on an object that declares the key.approvalin a passage. The approvals-family read stays as published and does not answer for a passage.Rework after the contract review
The contract review of the first draft (
7211480053, on head906da0f2) found one must-fix, two should-fix and five nits. The seat then ruled how the two rulings are read. This head answers each finding:closedStates, in every passage (D5, "It covers every approval on an object that declaresclosedStates"). Every such approval carries the mark, is reconciled, and is refused on a host with nojobservice. The narrow reading is in Alternatives as not chosen, with what the wide one costs.approvedorrejected, every step's decision is held back, whichever value the object closes on (D5, "A decision the object does not close on is held back with the rest"). The three sentences the review found untrue of that case are true of it now. The by-value reading is in Alternatives, with why the record departs from the design note's sentence.lockRecord, on a reason that did not holdlockRecord. A node that declareslockRecord: falseleaves the record open while its own request waits, as the key's published words say, and the passage after its decision is held. D5 and Alternatives give the corrected reason, and the sentence the review quoted is gone.One point for the delta review, on N4. The seat asked for the sentence that indirect writes in a passage are refused. The record says it of an indirect write that carries no run of the approval, and leaves to the build which indirect writes carry one. The reason is a reading of
main, taken and not run. The lock reads a writer's run from the write's provenance (packages/objectql/src/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 (packages/objectql/src/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. An unqualified "refused" could be untrue of that case. The reading is one of the new Readings rows.Every statement the design note's section 5 names
All are revised. None is kept as it stood.
approvedorrejected, a step's decision is written when the approval is over. The rule is the new block that follows.pendingand meet no closed record. This lock refuses what comes after the outcome: a node that runs on after a pause that follows the last step, and any other flow or hook that acts as the caller.pending, held, with no request open, and nobody would have a verb to end it. The note proposes the same.pending; an approval abandoned at once; a decision whose run cannot be resumed, which the reconciler ends.pendingonce more"pending, held, until the approval is over).pendingas the approval's first request opens, and the document readspendinguntil the approval is over, "between two steps too, where nothing is written (ruled 2026-11-27)". The same bullet says where it is held meanwhile.jobservice; a fault between two steps costs a resubmission; a document readspendingfor longer, also for a decision the object does not close on; the hold keeps callers out of every approval on such an object; a pause the conditions do not refuse holds the document; the request gains the mark and the plugin a reconciler.Statements revised beyond that list, so that the record agrees with itself
readonlyWhenand on the one mirror field; what "between two steps" means; the paragraphs "Otherwise the node refuses" and "What the conditions keep out"; the rows "While the request is pending", "Rejected", "Returned" and "Abandoned" of what a decided document shows; the abandoned rule, which now also covers an approval abandoned because its run ended between two steps.lockas the approvals-family read answers it. Two rows of the D10 table.ff9ee21084) and Refs.lockRecord, a decision written at once where the object does not close on it, and an answer for a passage on the approvals-family read.Readings that are this record's own
Neither the rulings nor the seat's rulings speak to these. Each is listed as this record's own in "Points the ruling does not settle". They are for the delta review to confirm or send back.
main.readonlyWhenand on the one mirror field are restated for the new timing. The conditions themselves stand.Why
ADR-0162 was merged on 2026-11-26 with the mirror writing each step's outcome as it is decided. The design of its Execution item 8 showed what that timing costs: a fault in the instant between two steps, or a rule of the app that refuses the put-back, leaves a document closed on an approval that did not finish. The maintainer ruled on 2026-11-27 to write the closing outcome only when the approval is over, and to hold the document for the whole approval, shipped with the key. The build cards cut from the record pin its statements in tests, so the record is revised first.
The first draft of the revision read the second ruling narrowly: a hold only where an outcome is held back, and only under a node that locks. The contract review found that narrower than the words that were ruled, and the seat ruled that the words stand. Widening the hold after the key is released would change shipped behaviour, which is what shipping the hold with the key avoids.
Tests
None: the diff is one Markdown file under
docs/adr/. Every code reading the revision adds was read atff9ee21084and not run, and the record says so above the new Readings table. All 21 new rows are symbol anchors, file anchors or a link to ADR-0044, andpnpm check:adr-symbol-anchorsresolves the anchors.Acceptance notes
Against the card's "Done when":
docs/adr/**is governed, so it stays a draft and lands by the maintainer's hand.Proposed. It does, and the README row is byte-identical.Not done here, on purpose:
Proposed, implements nothing, and the revision is in place, as the card orders.docs/adr/README.mdis not regenerated.pnpm adr:indexrewrites one row, ADR-0160's, whose status text changed onmainwithout the index. That is outside this card.pnpm check:adr-indexreports it as a warning and exits 0 by design.main, the stranded-request reader's bound of 500 rows read in no order, because the reconciler takes that reader's place for an approval on an object that declares the key.Verification
Read first (by risk):
closedStates, a document under approval is held for the whole of the approval": the second ruling as the seat read it. The bullets on its scope, onlockRecordand on what it keeps of the pending lock are where the first draft failed review.Two-minute verification:
pnpm check:adr-symbol-anchorson this head. Expected:✅ check-adr-symbol-anchors: 4452 anchors across 164 records resolve, which covers every symbol the 21 new Readings rows name.Gates on head
dbea5500. The list isnode scripts/pm/dispatch-gates.mjs --commands: 21 commands. Each ran on that head with its exit code captured before any pipe.--ranreconciliation:✓ dispatch-gates --ran: 21 derived famil(ies) accounted for — 21 run, 0 NOT-MEASURED (a DERIVED zero — all 21 recorded an exit code and none of them is 3).node scripts/check-issue-citations.mjs(outside that derivation): exit 0.dispatch-gates --tier:docs/adr/**is the mandatory contract tier; changed lines 281 (+220 / −61) against the human-merge threshold 3000: under.overlap-check --branch=claude/project-thread-u5conv:VERDICT clean exit 0atdbea55003bagainstorigin/mainatf19ae3a8eband 0 PR heads; it merges cleanly.origin/mainwas not merged in, sinceAGENTS.mdmergesmaininto an open PR only on a conflict, amain-caused red or a queue removal. The 24 code symbols the record cites in files that changed onmainsince the merge base were looked up onorigin/main, and each is still declared there.origin/main, and one file the derivation reads,scripts/check-route-envelope.mjs, changed in that range. None of the 21 commands is that family's, and CI derives from the merge ref.906da0f2every one concluded success or skipped. They had not reported on this head when this body was written.Local gates (21 commands on dbea550, exit code beside each)
Human Minimum
packages/specholds no runtime logic. (No schema and no code in this diff.)pnpm lintpasses. (No formatter ran. The diff holds no filepnpm lintreads; CI runs it.)main, one pull request.docs/adr/**ships in no package, so the PR carriesskip-changeset. Both lines are filled in above.)packages/spectouched: its generated artifacts are regenerated and committed. (Not touched.)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code