Repository navigation
docs(adr): ADR-0162 closed states on an object close the record and its lines - #37606
Conversation
…ts lines Proposed record for the card's "ADR first" step. An object declares closedStates: the values of its state fields in which a record, and its direct master_detail lines, are closed to change for every caller. The record settles the four things the card asks for: the key's shape, the unit (the pending-approval lock's unit), the exemptions and delete, and one lock read for both producers. Four points go past the ruling's words and are marked in the text for the maintainer. It declares and implements nothing. docs/adr/README.md is regenerated by scripts/adr-index.mjs. Claude-Session: https://claude.ai/code/session_01L6bhgWPwjheYqchuPwxH8t Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Read for this record: card #36253 with its three comments, the PR body and file list, the net diff against ① Derived judgments
② Semver level
③ Boundary flags
S1 (should-fix) — D4 prescribes list-then-judge for many-row writes, and gives no reason SQL cannot answer. ④ Design judgment
I tried to break it at the doors D5 lists and at a few it does not. Import as a signed-in caller is not a system context, so it is bound, and the import and undo doors refuse a caller's request to take an object's controls off. The upload-link completion writes as the caller. The recycle-bin case in D7 covers re-adding a line through restore. The cascade rule in D6 holds for a junction under one open and one closed master. Those hold. No must-fix. S2 (should-fix) — the record restates ruling ③ with a word the ruling does not carry, and ▲3 rests on that word. S3 (should-fix) — the first consumer changes in more than the two outcomes the record counts. S4 (should-fix) — D9 changes what two published members tell an existing client, and says it changes nothing but an added member. S5 (should-fix) — D5 sorts writers into two kinds and the tree has three. S6 (should-fix) — the record's own example has a way out of a closed state that is not an action, and D5 says there is none. Nits. None moves the decision. Each is fixed on this prose face or carried to its build card.
Summary. The four things the card asks are answered, the readings are true, and the design holds at the doors I tried. Nothing found makes a decision wrong. Six points change what the record tells its builder or its maintainer and each owes a delta review of its fix; the record is Tier H and lands only by the maintainer's merge or an authorized approval. Implemented-by: VERDICT: PASS |
The review of the first head passed with six points to fix and six nits. This revision answers each in the record's own text. - D4: a many-row write is judged by one existence probe asked of the store; listing is kept only for a store that cannot run it. What "cannot be judged" still means is spelled out. - Item 3 of the ruling batch is quoted as the ruling record words it, and the stored-row rule is presented as the point where this record asks the maintainer to scope that item. - D5 defines "bound" by its test, sorts a principal-less write, says which passes of the pending lock do not carry over, and names the approval status mirror as a way out the app controls. - D8: the title is the one served to the writer; the upload-link door words its own refusal. - D9: the reason follows the state field's read permission, lockSource keeps its delete reading only under an approval, and the approvals-family read stays as published. - D10: the judgement comes after the permission and row-access gates. - Execution and Consequences list every outcome the showcase conversion changes. Claude-Session: https://claude.ai/code/session_01L6bhgWPwjheYqchuPwxH8t Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Delta round on the record in comment 7196241005, which passed head ① Derived judgments
② Semver levelUnchanged by the delta. ③ Boundary flags
④ Design judgmentThe six points of the first record.
The six nits. N1 to N6 were each taken on this prose face: the upload-link door's own sentence (D8, Execution item 1, Readings), create with lines (Consequences), the two readability anchors (D9), the pending line lock's narrower condition (D4, Readings), the pending lock's other two passes (Context table, D5, Consequences), and the refusal that names no producer (D8, left open by name). The delta against the code it cites. The new and reworded Readings rows hold: the matched-row memo and the per-row ceiling on a predicate update; the lowering of a related-record condition to a subquery on a read verb and to a bounded id list on a write verb; a context that says nothing about the caller yielding no session; the title of the pending lock's refusal picked from the row as served to the writer; the mirror's values; the grid's delete reading; the upload-link door asking the approvals lock before it issues a link and wording its own refusal; the record page serving I tried to break the three new rules at the doors the record lists. The place D10 names exists in the engine's write path on No must-fix. S7 (should-fix) — D8 and D9 say the reason rule achieves more than the rest of D9 lets it. S8 (should-fix) — D10's new sentence is categorical, and the record's own cascade rule is a case it does not cover. Nits. None moves a decision. Each is fixed on this prose face or carried to its build card.
Summary. The six points of the first record are closed and its six nits are taken. The readings the delta adds are true. Of the three rules new on this head, the title rule holds as written, and the other two are sound in aim but stated more widely than the design delivers. Those are S7 and S8, and each owes a delta review of its fix. Nothing found makes a decision wrong. The record is Tier H and lands only by the maintainer's merge or an authorized approval. Implemented-by: VERDICT: PASS |
The maintainer ruled on the record's four marked points and on the points the second contract review left open: all as recommended (ruling record 7200732942 on the card). - Item 3 of the 2026-11-22 batch is scoped to readonlyWhen; this lock is judged on the stored row (D4, the header, the points table). - The lock read tells every reader of the record `locked` and the reason. D9 states the one bit that discloses and why it is accepted; the earlier rule that withheld the reason is gone, with D8's sentence about the read. - A delete's cascade is judged whole before the first row is removed; its refusal names the record at the root and the label of the object in the way, and D6 states the exception in so many words. - D10 scopes its promise to the object-permission and row-access gates, places field permissions ahead of the engine's hooks, and gives a line write two rules: the caller's read door first for a master the write names, the stored state for a master the line already hangs under. - D5 names the approval round's outcomes, the submitter's own recall among them, and says which actions run elevated. - D7 says what Change Owner and the banned-user hand-over do on a closed record. - Alternatives gain the readings not taken; the per-row ceiling is re-anchored; Execution gains the card for the approvals-family read. Claude-Session: https://claude.ai/code/session_01L6bhgWPwjheYqchuPwxH8t Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Delta round on the record in comment 7197474873, which passed head ① Derived judgments
② Semver levelUnchanged by the delta. Check-runs on the head, read just before this record was written: 48 runs, all completed: 26 success, 22 skipped, none red. The successes include ③ Boundary flags
④ Design judgmentThe points of the second record.
The delta against the code it cites. The new and reworded Readings rows hold: the cascade set collected and its in-cascade The two places where the author departed from the decision text. Both hold against the code.
I tried to break the three rewritten rules. D6 holds for a root the caller may delete over a closed row the caller could not have deleted: the refusal comes before the first write, which is what "refused whole" needs on a store with no unit of work, and the record accepts what it tells. D10's two rules hold at each end of a move, for a named master the read door fails on, and for a value the row already stores. D9 holds against the approvals contract's own promise to readers. One thing did not hold. No must-fix. S9 (should-fix) — D5 says the mirror field always tells what happened, and for a field that declares no The decision to keep the path is the maintainer's and is not reopened here, and the gate the record gives the author still works. What is wrong is the account of the outcome. The maintainer kept the path on that account, and Execution item 5 sends it to the docs by name. The fix is prose: state these outcomes in D5 and in the author's note, say that an author who closes on the mirror field declares Nits. None moves a decision. Each is fixed on this prose face or carried to its build card.
Summary. S7, S8 and N7 to N9 are closed. The ruling is carried into the text as its record states it, every cited record sits where the ADR says, and both departures from the decision text are right against the code. One account in D5 is false for a field that declares no Implemented-by: VERDICT: PASS |
…d value back The maintainer ruled a second time on 2026-11-26 (ruling record 7201405662 on the card): a new approval round stays a way out of a state closed on the approval's status field, and a recall never restores a closed value. The third contract review of this record raised the question. - D5 states the rule for the three writers that abandon a request: the submitter's recall, an administrator's override, and the sweep of a dead run. A field that declares `recalled` is written `recalled`, as today. Otherwise the mirror never puts back a value the object declares closed, and it leaves alone a record that is closed on the field at that moment. - D5 no longer says the pending lock holds every pending round: it holds where the approval node locks, which is a node's default. - Execution gains the approvals card for the put-back, released with the key, and one more reading for the build to run and pin. - Alternatives record the other values the put-back could have written. Consequences tell the author what an abandoned round leaves, and what it costs. - D8 words the cascade's refusal for both cases D6 judges, and says when it takes the label form. D9 states what a line's reader is told. - Both rulings are quoted as given, with an English reading beside each. Claude-Session: https://claude.ai/code/session_01L6bhgWPwjheYqchuPwxH8t Co-authored-by: Claude <noreply@anthropic.com>
The ruling record words the rule as a recall that never writes the state field back to a value in the closed set. D5 now reads it that way: where the object closes on `recalled`, the mirror does not write `recalled` either, and the field is treated as one that declares no `recalled` value. The narrower reading, a rule on the put-back only, moves to Alternatives. Execution, Consequences, the header and the TL;DR follow the wording. Claude-Session: https://claude.ai/code/session_01L6bhgWPwjheYqchuPwxH8t Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Delta round on the record in comment 7201298747, which passed head ① Derived judgments
② Semver levelUnchanged by the delta. Check-runs on the head, read just before this record was written: 48 runs, all completed: 25 success, 22 skipped, 1 cancelled, none failed. The successes include ③ Boundary flags
④ Design judgmentThe points of the third record.
The rule, against the ruling. The head states it the same way in each place it appears: the header, the TL;DR, D5, the D10 table, Execution item 7, the author's note and Alternatives. No value the mirror writes for an abandoned request is a closed value of the mirror field, The fallback order, against
No must-fix. S10 (should-fix) — the "left alone" test strands a record on an in-flight status the object closes on.
The same holds for a field closed on The ruling is not in question: writing nothing never writes a closed value. What is incomplete is the record's own choice inside it. The fix is prose, and which way is the author's: scope the test to a record the round never moved (the field still holds the value it held at submit), so that a field left on a closed in-flight status goes down the order like any other; or keep the test, state this case in D5 and in the author's note, and say what an author who closes on Nits. None moves a decision. Each is fixed on this prose face or carried to its build card.
Summary. S9, N10 and N11 are closed. The second ruling is carried into the text in the maintainer's own words, the rule is stated the same way everywhere it appears, the three writers are the ones the tree has, and the fallback order follows the mirror's code on Implemented-by: VERDICT: PASS |
The fourth contract review found one case the record's own choice did not hold: an object that closes on `pending` or `returned` was left on that status, closed, when its request was abandoned. - D5 scopes "the mirror writes nothing" to a field that still holds its value at submit. A field the round left on a closed in-flight status goes down the order like any other. - D5 and the points list say whose reading it is that a closed `recalled` is not written, and count three things as this record's own inside the second ruling. - Consequences say which abandoned rounds leave a document open. - The header gives the second ruling's recorded time and links the record of the first ruling's original words. - Execution item 1 names a trunk branch in place of a stacked pair. Claude-Session: https://claude.ai/code/session_01L6bhgWPwjheYqchuPwxH8t Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Delta round on the record in comment 7202211190, which passed head ① Derived judgments
② Semver levelUnchanged by the delta. Check-runs on the head, read just before this record was written: 48 runs, all completed: 25 success, 22 skipped, 1 cancelled, none failed. The successes include ③ Boundary flags
④ Design judgmentThe points of the fourth record.
The narrowed test, against
The corner D5 states. Where the order comes down to empty on a required field, the write is refused, the field keeps the value it holds, and where the object closes on that value the record stays closed with no request open. The fourth record's S10 was about this outcome, and here it remains for one configuration. Three questions.
No must-fix. S11 (should-fix) — the "left alone" test reads a value the request does not always carry.
The ruling is not in question: neither completion writes a closed value. What is incomplete is the record's own choice inside it, as with S10, and as the text stands the builder of item 7 makes that choice. The fix is prose, and which way is the author's: say what the mirror does where the request carries no value at submit for the field, for example by judging what the field holds (a closed value that is one of the request's own statuses goes down the order, any other closed value is left alone), and add the case to Execution item 7's test list. How such a request comes about is with the seat. Nits. None moves a decision. Each is fixed with S11's prose or carried to its build card.
Summary. S10 is closed, and so are N16, N18, N19 and N22. The second ruling's widest point now reads as the seat's reading, with the maintainer's own word kept beside it. The narrowed test follows the mirror's code on Implemented-by: VERDICT: PASS |
The fifth contract review found that the "left alone" test read a value a request does not always carry. - D5 leaves alone a closed value the round did not write, judged by what the field holds. A field on the request's own status goes down the order. - D5's order passes over an empty value at submit on a required field. - D5 says this record accepts the case in which a record stays closed with no request open, and names what the case takes. The bullet heading, the author's note, "What it costs" and two alternatives say it too. - Consequences speak of a round that moved a document's state. - Execution item 7's tests gain a request that carries no value at submit, and the approvals guide takes the exception. Claude-Session: https://claude.ai/code/session_01L6bhgWPwjheYqchuPwxH8t Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Delta round on the record in comment 7202670625, which passed head ① Derived judgments
② Semver levelUnchanged by the delta. Check-runs on the head, read at 2026-11-26T21:02Z: 48 runs, all completed: 26 success, 22 skipped, none failed and none cancelled. The successes include ③ Boundary flags
④ Design judgmentThe points of the fifth record.
The one test, against
The step for an empty value at submit on a required field. Three questions.
The step is sound, and the record is right to take it: it is what makes the guidance true. It is under-recorded, not wrong. No must-fix. S12 (should-fix) — the test's premise is true of a request, and a flow run can hold more than one. Take an object that closes on
The same holds for an earlier step's The ruling is not in question, and neither is the choice of one test over two. What is incomplete is the set the test is drawn against. The fix is prose, and which way is the author's: draw the left-alone case against the statuses the run's own requests have had, not against Nits. None moves a decision. Each is fixed with S12's prose or carried to its build card.
Summary. S11 is closed, and so are N23 and N25. The quick-read block now tells the maintainer, in Chinese, the two things the merge adopts beyond the rulings' words. The single test is right in every case of a run with one approval node. It is better than the test the fifth record suggested where the value at submit is itself the request's status, and where a writer outside the run closed the record meanwhile. The new step for an empty value at submit agrees with the validator, stays inside the rulings and changes nothing shipped; it wants booking as a choice. One shape of flow is outside the test's premise: a run with successive approval nodes, where an earlier step's outcome is a closed value the same run wrote. That is S12, and it owes a delta review of its fix. Nothing found departs from a ruling. The record is Tier H and lands only by the maintainer's merge or an authorized approval. Implemented-by: VERDICT: PASS |
The sixth contract review found that the "left alone" test was drawn against one request, while a flow run can hold several. - D5 leaves alone a closed value that no request of the run had as its status. A closed value an earlier step of the same run wrote goes down the order, so a run abandoned at a later step does not leave the document on an earlier step's outcome. - D5 states the case in which a record stays on such a value, and what it takes. Consequences and "What it costs" carry it. - The step for an empty value at submit on a required field is counted as this record's own choice, with its alternative, and D10 says what changes for the mirror. - Execution item 7's tests gain a run abandoned at a later step and the arms that tell the chosen rules from their neighbours. - Readings name where a run opens its requests. Claude-Session: https://claude.ai/code/session_01L6bhgWPwjheYqchuPwxH8t Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Delta round on the record in comment 7203327629, which passed head ① Derived judgments
② Semver levelUnchanged by the delta. Check-runs on the head, read at 2026-11-26T21:31Z: 48 runs, all completed: 26 success, 22 skipped, none failed and none cancelled. The successes include ③ Boundary flags
④ Design judgmentThe points of the sixth record.
The run-wide test, against
The cost the author flags: a decided document, a flow with more than one step. On a field that declares no Turning down the kinder alternative, to leave the earlier step's outcome alone where it equals the value at submit, is sound. The record's reason is that it brings back a reading of the value at submit for one case. There is a stronger one, and the record should give it: the two values being equal does not show that the document stayed closed during the run. On a field that declares No must-fix. S13 (should-fix) — the test is drawn against one flow run, and one record's approval can be spread over several. So where one step of an approval sits in a child run and the next in its parent, or in a second child, the earlier step's outcome is a closed value that no request of the later step's run had as its status. On the configuration D5 calls the usual case of the bullet, a field that declares neither The fix is prose, and the unit is the author's to choose: the record's approval as a whole, which is the root run with the child runs linked to it, or another unit that covers it. Two things the choice should keep. First, the note under ③: a unit the plugin can ask its own table for. Second, D5 should say which way the mirror goes where it cannot tell whether the approval wrote the value; to go down the order costs a decision, and to write nothing keeps one that was not finished. Execution item 7's test list gains a later step abandoned where the earlier step ran in a child run, and the reverse. S14 (should-fix) — the accepted case now holds an outcome of another kind, its five conditions are those of one route, and the record accepts it on its own word. The five conditions, against It is not the only route. The kind of outcome. A record left on What closes it. The maintainer's answer on the card, and D5 following it. If the answer is to accept, the acceptance is marked as ruled, counted in "Points", and stated with its true extent: every write of the mirror that an abandoned request needs and the object refuses, not five conditions. If the answer is that the platform prevents it, the record chooses the way with the ruling in hand. The ways are few and each meets something already decided: a refusal where the object or the flow is authored, of which Alternatives turns down a wider form; a refusal when a request opens on a configuration that leaves the mirror nothing to write; or an order whose last write lands. The record's reasons against a value outside the field's options and against refusing the abandonment stand. Either way D5 or the author's note should say that the mirror's writes meet the object's validation rules, and what an author who puts a Nits. None moves a decision. Each is fixed with the prose of S13 and S14 or carried to its build card.
Summary. S12 is closed, and so are N26 and N27. The run-wide test is right for a flow whose approval steps all sit in its own body, and the cost it adds for a decided document sent round a flow with more than one step is stated exactly; turning down the kinder alternative is sound, for a reason stronger than the one the record gives. Two points are open. S13: the unit of the test is one flow run, and an approval built with Implemented-by: VERDICT: PASS |
The seventh contract review found two things: the "left alone" test was drawn against one flow run while an approval can be spread over several, and the record accepted on its own word a document left reading a decision its approval did not finish. - D5 draws a round as the record's whole approval: the run started for it and every child run under it. Where the mirror cannot tell whether the round wrote a value, it goes down the order. - D5 no longer accepts that outcome. On an object that declares a closed value on the mirror field, a round opens only where the field declares `pending`, the object closes on neither `pending` nor `returned`, and a `state_machine` rule lets a closed value move to `pending`. The point is marked as before the maintainer and not yet ruled. - D5 says the mirror's writes meet the object's validation rules, and what the platform cannot read ahead. - D10, Execution item 7, Points, Consequences, Alternatives and Readings follow. Claude-Session: https://claude.ai/code/session_01L6bhgWPwjheYqchuPwxH8t Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Delta round on the record in comment 7203817706, which passed head ① Derived judgments
② Semver levelUnchanged by the delta. Check-runs on the head, read at 2026-11-26T22:11Z: 48 runs, all completed: 26 success, 22 skipped, none failed and none cancelled. The successes include ③ Boundary flags
④ Design judgmentThe points of the seventh record.
The drafted rule, against
A closed value then stands on the field only from the moment a request is decided until the next request opens. That interval is where S16 sits. The four choices the record books.
The bookkeeping. Recording the approval on the request as it opens is the right way: the request row carries its own run's id, the child's context names only its immediate parent, and nothing at the time of an abandonment could rebuild the tree from the plugin's own table. The executor already tells a child run from a root one and stamps it ( Existing apps. No shipped app is touched: the rule reaches only an object that declares the key. The showcase does not mirror, and nothing else in the tree can declare a key that does not exist yet. For an object that adopts the key on a field its approvals already mirror onto, three things happen. A round in flight runs on unjudged, which D5 and the tests state. Every new approval is refused until the conditions hold, which "What an author has to know" states ("before, or together with"). And the conditions reach further than their reason, which is S17. No must-fix. S15 (should-fix) — the check is made once an approval, and what it judges is set per request.
The fix is prose. The check is made at the first request of the approval that mirrors onto that field of that record; "not judged again" is said of a field the round has already written; the probe names the record; item 7 says where the root's id comes from and its tests gain a first step with no mirror field, a S16 (should-fix) — what the refusal does not reach is wider than the one case D5 states, and its home is a clause.
So D5's sentence "A record is then on a closed value of its approval field only where the last approval to open on it ended there, or where another writer put it there" reads as complete and is not, and the maintainer would adopt the recommended answer on a narrower account of what it leaves than the tree gives. The home. The ruling text gives the mirror's failed write-back a child card (7202242844), so the card exists by ruling. In Execution it is a clause of the first reading ("changing the approvals plugin's behaviour is a card of its own"), not one of the seven items. Nothing says that this case is in its scope, or how it stands to the key's release, where item 7 ties the key to the check and the mirror. It is an adequate home once Execution names it as a card filed with the build cards, with its question worded for this case (a write of the mirror that does not land on a closing field, refused or dropped, and whether it stays silent), says whether the key waits for it, and has the approvals card pin the case with the value the field keeps. The Alternatives entry turns down setting the object's rules aside for every write of the mirror on every object. The narrower form, only the write that takes a record off a closed value its own round wrote, is not weighed, and is that card's first candidate. What closes it: D5 states the cases together and corrects the sentence; "What it costs" and "Points" follow; Execution carries the card; and the question before the maintainer carries the same extent. S17 (should-fix) — the conditions reach further than their reason, and the reach is not booked. Take an object with one status field that carries its business states and the mirror, closed on Either narrow the rule to its reason (the conditions apply where the object closes on a status the mirror writes, and the move is asked of a closed Nits. None moves a decision. Each is fixed with the prose of S15 to S17 or carried to its build card.
Summary. S13 is closed, and so are N28 to N30. S14 stays open until the maintainer answers; the record is in the right state for that, and on the recommended answer S14 would close. The drafted rule is sound in its main line: the two conditions keep a document on an open value from each request's opening to its decision, the one move asked of a Implemented-by: VERDICT: PASS |
Answers the contract review of 4714072 and the seat's rulings on it. - The check reads the whole approval at its first request: every approval step of the flow and of the flows it calls, each on its own mirror field and its own object. An approval that cannot be read whole is refused. Execution item 7 names the automation-service change that hands the plugin the root run. - The conditions concern an object that closes on a status the mirror writes, and the state_machine move is asked of a closed approved or rejected only. - Two more configurations are refused when an approval opens: a readonlyWhen on the mirror field, and a write to the record between two steps by a flow that runs as the user. - D5 states together what the conditions do not reach. Execution item 8 is the status-mirror card, and the key waits for its first answer. - The record's unit is called an approval; the word round is left to ADR-0044. - The status line and Provenance count five marked points, four of them ruled. Claude-Session: https://claude.ai/code/session_01L6bhgWPwjheYqchuPwxH8t Co-authored-by: Claude <noreply@anthropic.com>
…rror card The seat's follow-up on the answer to the contract review of 4714072. - A run that ends between two approval steps, by a failed node or a cancellation, is held to the same bound as a write of the mirror that does not land: neither leaves a record closed on a value its own approval wrote and did not finish. - Execution item 8 carries both, and the key waits for it. - D5, D10, Points and "What it costs" follow. Claude-Session: https://claude.ai/code/session_01L6bhgWPwjheYqchuPwxH8t Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Delta round on the record in comment 7204452910, which passed head ① Derived judgments
② Semver levelUnchanged by the delta. Check-runs on the head, read at 2026-11-26T23:05Z: 48 runs, all completed: 26 success, 22 skipped, none failed and none cancelled. The successes include ③ Boundary flags
④ Design judgmentThe points of the eighth record.
The record's own choices on this head.
The drafted rule, tried against No must-fix. S18 (should-fix) — a later step that mirrors onto another field, or onto none, is asked nothing, and it leaves the record on the earlier step's outcome.
On What closes it is prose. Either the conditions ask it: on one record, a step that can follow a step the conditions concern mirrors onto the same field, and a step the check cannot place counts as following. Or the mirror answers for an earlier step's field as well as its own, which is the larger change. "Points" books the choice, Alternatives keeps the way not taken, "What an author has to know" tells the author, the two sentences are corrected, and item 7's tests say which way the approval of two fields and the later step with no field go. It belongs with the question before the maintainer: the recommended answer is that the platform refuses the configuration, and this is one it does not yet refuse. S19 (should-fix) — one sentence gives the abandonment rule the reach of the opening conditions. Nits. None moves a decision. Each is fixed with the prose of S18 and S19 or carried to its build card.
Summary. S15, S16 and S17 are closed, and so are N31 to N34. S14 stays open until the maintainer answers, and the record is in the right state for that. The record's own three choices on this head are right and booked. Two points are open on the rule as drafted. S18: the conditions judge each step on its own field and ask nothing of a later step that mirrors elsewhere or nowhere, so an approval can still leave a record on an earlier step's outcome, closed, by its definition alone. S19: one sentence lets the mirror of an object that closes only on values of its own write as it does today, against the ruled rule the same section states. Both are prose and each owes a delta review of its fix. Nothing found departs from a ruling's words in the rule's own section. The record is Tier H and lands only by the maintainer's merge or an authorized approval. Implemented-by: VERDICT: PASS |
…a pause between two steps Answers the contract review of bcc8d88, on the seat's rulings. - D5 gains two conditions for an approval on a closing field: every approval step that can act on a record of the object mirrors onto the one field, and no flow of the approval pauses between two steps. - The mirror field's options for a request's status carry no visibleWhen, in the condition that refuses a readonlyWhen. - The rule for an abandoned request holds for every closed value; only the opening conditions are narrowed to the statuses the mirror writes. - A decision whose run cannot be resumed joins the card the key waits for (Execution, item 8). - A request the plugin cannot place as first or later is not judged. - "Between two steps" is defined, and includes the same step opened again under a map. - D10, Execution items 7 and 8, Points, Consequences, Alternatives and Readings follow. Claude-Session: https://claude.ai/code/session_01L6bhgWPwjheYqchuPwxH8t Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Delta round on the record in comment 7205252464, which passed head ① Derived judgments
② Semver levelUnchanged by the delta. Check-runs on the head, read at 2026-11-26T23:43Z: 48 runs, all completed: 25 success, 22 skipped, one cancelled, none failed. The cancelled run is a superseded ③ Boundary flags
④ Design judgmentThe points of the ninth record.
The record's own choices on this head.
The drafted rule, tried against No must-fix. S20 (should-fix) — an approval of another record between two steps holds the parent's record on the earlier step's outcome, closed, and the conditions pass it.
On What closes it is prose. The reading of a Nits. None moves a decision. Each is fixed in the push that closes S14 and S20, or carried to its build card.
Summary. S18 and S19 are closed, and so are N35 to N38. S14 stays open until the maintainer answers, and the record is in the right state for that. Of the record's four own choices on this head, three are right and booked, and the fourth, the reading of a Implemented-by: VERDICT: PASS |
…parent's record Answers the contract review of 0aad3f2, on the seat's rulings. - A map whose body holds an approval step is read both ways: as a step of the parent's record, and as a pause for it, since an item may be a record. It is refused when the approval opens unless the node shows that none of its items is a record. - A node type that publishes no descriptor counts as one that can pause. - What the conditions do not reach is counted one way: a refused write of the mirror, a run that ends between two steps and a decision whose run cannot be resumed go to the card the key waits for. The failures of a node between two steps are named. - The automation service derives the root run of a run started before the change when it resumes it, so every later request records one. - Execution items 7 and 8, Points, Consequences, Alternatives and Readings follow. Claude-Session: https://claude.ai/code/session_01L6bhgWPwjheYqchuPwxH8t Co-authored-by: Claude <noreply@anthropic.com>
…d configuration The maintainer ruled on 2026-11-26 at 23:51Z that the platform refuses the configuration which would leave a document reading a decision its approval did not finish (ruling record 7205949718). - Every passage that called the fifth marked point unruled now cites the ruling: the status line, the header, Provenance, the TL;DR, D5, Points, Alternatives and Refs. - The header and D5 quote the option the maintainer chose, and say that the opening conditions spell the rule out further than the option's words do. Points lists what inside the ruling is this record's own or the seat's. - No decision changes. Claude-Session: https://claude.ai/code/session_01L6bhgWPwjheYqchuPwxH8t Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Delta round on the record in comment 7205803522, which passed head ① Derived judgments
② Semver levelUnchanged by the delta. Check-runs on the head, read at 2026-11-27T00:23Z: 48 runs, all completed: 26 success, 22 skipped, none failed, none still running. The successes include ③ Boundary flags
④ Design judgmentThe points of the tenth record.
The author's four readings.
The drafted rule, tried against No must-fix, no should-fix. Nits. None moves a decision, and none is to be fixed on this head: a change to this file moves the head and owes another round. Each is carried to the build card named, or stands.
Summary. S14 and S20 are closed, and so are N39 to N42. Nothing of the first two grades is open on this head, and the five nits go to the build cards or stand. The record carries the maintainer's third ruling faithfully, and the one place where it takes the narrower of the two moments the option names is stated in the text and in the quick-read block. Nothing is left for a contract review on this head. What is left is not this record's: the PR is Tier H and lands only by the maintainer's merge or an authorized approval, and the build cards are filed after that, items 7 and 8 with N43 to N46 in their text. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head e3283c0 · card #36253 · area s2-data · 2026-11-27T00:25ZL1 checklist
Tier: H. Landing: hand-off to the approver by the next stroke; ⛔ the seat does not merge. |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Tier H hand-off · 2026-11-27T00:25Z · head e3283c0 · approver 维护者速读
|
Requested by Sales · project thread
Part of #36253. This PR is the card's "ADR first" half. The build half stays on the card and starts only after this record is accepted.
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
docs/adr/0162-an-object-declares-its-closed-states-the-record-and-its-lines-are-closed-to-change.md, status Proposed.docs/adr/README.mdwithscripts/adr-index.mjs(one new row, three counts).What the record decides, in the order the card asks:
closedStatesmap from a state field to the values that close a record. Nothing is stored for it; closed is read off the stored row.master_detaillines, the unit the pending-approval lock holds.RECORD_LOCKED, with its own sentence. One read owned by the data layer answers for both producers, and tells every caller who can read the record whether it is locked and which lock holds. The approvals-family read stays exactly as published.Four points go past the ruling's words, and the maintainer has ruled on them. The ruling of 2026-11-26 (record, 「全部按推荐」, all as recommended) adopts each as the record writes it. Each stays marked in the text, with the other reading beside it in "Points the ruling does not settle":
readonlyWhenand not this lock.The same ruling settled three points the second contract review left open:
A second ruling the same day (record, 「平台堵住:撤回不恢复关闭值」, the platform blocks it: a recall does not restore a closed value) answers the point the third contract review raised. The new approval stays a way out, and D5 gains one platform rule. When a request is abandoned, by its submitter's recall, by an administrator's override or by the sweep of a dead run, the approval status mirror never writes a value the object declares closed,
recalledincluded. The approvals-plugin change is a build card (Execution, item 7), released with the key.A third ruling the same day (record, 「平台拒绝这种配置」, the platform refuses this configuration) answers the point the seventh contract review raised. That review found that the record accepted, on its own word, a document left reading a decision, and closed, when its approval was abandoned before it finished. The seat put two answers to the maintainer, that the platform refuse the configuration that allows it or that authors be told how to avoid it, and the maintainer chose the first. The option reads 「字段声明了关闭值、却缺少"审批中"状态或退回路径时,发布或开审批时直接报错;作者补上选项才能用,单据不会假装已批准。」: where a field declares closed values and lacks an in-progress status or a way back, publishing or opening an approval fails with an error; the author adds the options before it can be used, and the document does not pretend to be approved. D5 carries the rule as the conditions on which an approval opens, and keeps the point marked ▲. An approval whose step mirrors onto a field the object closes on, at a status the mirror writes, opens only where six things hold: the field declares
pendingand the object closes on neitherpendingnorreturned; astate_machinerule on the field lets a closedapprovedorrejectedmove topending; the field carries noreadonlyWhen, and its options for a request's statuses carry novisibleWhen; every approval step that can act on a record of the object mirrors onto that one field; no flow of the approval that runs as the user can write the record between two steps; and no flow of the approval pauses between two steps, on a node or on an approval of another record under amap. The whole approval is judged at its first request, from its definition. Otherwise that request is refused, with an error that says what is missing. D5 also states, all of it, what the refusal does not reach. The six conditions go further than the option's words. The option names an in-progress status and a way back, and an error at publish or at the opening of an approval. The record refuses when an approval opens and reports at authoring, and does not refuse at publish. Items 6 to 19 below are every choice inside the ruling that is the thread's or the seat's, and the header, D5 and "Points the ruling does not settle" say so.Small decisions
What earlier heads of this record called a round is called an approval from this head on, because ADR-0044 already numbers the rounds of a request.
The second ruling leaves the thread to say what the mirror writes in place of a closed value. Four choices are the thread's, and one, item 4, is the seat's reading. Each is stated in D5 and listed in "Points the ruling does not settle", with the ones not taken in Alternatives, "What an approval writes on a closing field, and where it may open":
pendingwith no request open.pending,returned,approvedorrejected, the mirror writes nothing: another writer put the record there. Where such a request did have it, the mirror goes down the order. Where the mirror cannot tell, it goes down the order too: that costs a decision, and writing nothing could keep one that was never finished. The test reads what the field holds, and nothing from the value at submit, which a request does not always carry. The seat ruled the unit twice: the whole run after the sixth review, and the whole run tree after the seventh.recalledthe object closes on is not written either (the seat's reading, by the text of the option the maintainer chose, on record). The field is then treated as one that declares norecalledvalue. The maintainer's own word is 恢复, restore, and the narrower reading, a rule on the put-back only, is in Alternatives.readonlyrefuses that write, and one that isreadonlywould be left empty. On a field that is not required the empty value is still put back.Inside the third ruling, fourteen more choices are the thread's or the seat's, and none of them is in the ruling's words. They are listed in "Points the ruling does not settle", with the ways not taken in Alternatives:
returnedis refused besidepending. With both open, no failed write of the mirror leaves a lock behind.state_machinerule one move is asked: from a closedapprovedorrejectedtopending.paidorvoid, is asked nothing, and its state machine may keep such a value final.map's item object included. An approval that cannot be read whole is refused. The automation service hands every run its root run so that the plugin can do this, and Execution item 7 names that change.readonlyWhenat all. The seat's ruling asks that none can hold on a closed value. The platform does not evaluate a predicate ahead, so the record asks that the field carry none.readonlykeeps callers off it.mapbody counts as one that can act on the parent's record, because whether an item is a record is known only as the body runs.visibleWhen(the same ruling). The check refuses it as it refuses areadonlyWhen.mapwhose body holds an approval step is read both ways (the seat's ruling on the tenth review): as a step of the parent's record, which names the field, and as a pause for it, because an item may be a record and the parent's run then waits on an approval of another record. It is refused unless the node shows that none of its items is a record. One collection can hold items of both kinds, so the refusal holds wherever themapstands among the steps. A node whose type publishes no descriptor counts as one that can pause (the same ruling).One cost follows from the second ruling and is stated in Consequences: an approval of a decided document that is then abandoned leaves the document open, also when it was started by mistake, and it has to be approved again.
What the refusal does not reach is stated in D5, in "What it costs" and in "Points", and the record accepts none of it as a design. Three things cannot be read ahead: a rule or a hook of the app that refuses a write of the mirror, a run that ends between two steps because a node fails or the run is cancelled, and a decision that is recorded while its run cannot be resumed. For the three the record fixes what must hold: none leaves a record closed on a value its own approval wrote and did not finish, and a refused write of the mirror is no longer swallowed. It leaves the means to the status-mirror card, which Execution now names as item 8, and the key is not released before that card is built. A change to the object or to the flow after the approval opened is not judged again.
Five things follow for authors and are in Consequences. An object that already runs approvals meets the conditions before, or together with, its closed values: from the moment the declaration is published, a new approval is refused until they hold. An approval that keeps one status field for each stage, or leaves a stage without one, brings its steps onto one field, and a delay or a screen between two approval steps moves out from between them. An approval of each line, or of each of some other records, under a
mapis started as an approval of its own. An approval flow that runs as the user and writes the record between two steps is declared to run as system, or loses the write. And a refused opening reaches the person who submitted as a failed run.Read first, by risk:
locked" and "What that discloses, and why it is accepted".Revised after the contract review of the first head (review, PASS with six points to fix and six nits). Every point is answered in the record's own text:
lockSourcehas a published delete readingRevised after the delta review of
fe9a850c(review, PASS with two points to fix and three nits) and the ruling:Revised after the delta review of
f79eda94(review, PASS with one point to fix and six nits) and the second ruling:lockSourcemember under an approval, a master that a hook supplies, an action's registered handlerRevised after the delta review of
eec0a5e1(review, PASS with one point to fix and seven nits):pendingorreturnedgoes down the order. The author's note, Execution item 7's test list and Alternatives name the case. D5 also states a case in which a record stays closed with no request open, on a required field with no usable default, and has the approvals card run it.AGENTS.mdhas itRevised after the delta review of
32225e8b(review, PASS with one point to fix and three nits):pendingnorreturnedwas left alone, and a field on either went down the order (widened to the run's own requests in the next revision). Execution item 7's test list gains a request that carries no value at submit. Alternatives records the earlier test as not chosen.Revised after the delta review of
3c67c790(review, PASS with one point to fix and two nits) and the seat's choice between the two ways it offers:readonlyRevised after the delta review of
f7d2eb4c(review, PASS with two points to fix and three nits) and the seat's rulings on them:state_machinerule on the field owes the mirror, and what the platform cannot read ahead. The paragraph of five conditions is gone. D10, Execution item 7, Points, Consequences and Alternatives follow.recalledapprovedwhere D5 says "outcome", and gave the ways out as one pairRevised after the delta review of
4714072c(review, PASS with three points to fix and four nits) and the seat's rulings on them, in two commits,cbce67a5and the head:mapitem on another record and a step two levels down.readonlyWhenon the mirror field, and a write to the record between two steps by a flow that runs as the user. Execution item 8 is the status-mirror card: it takes a write of the mirror that does not land and a run that ends between two steps, and the key waits for it. "What it costs", "Points" and Alternatives follow.state_machinemove is asked of a closedapprovedorrejectedonly. Booked in "Points", with the wider form in Alternatives.Revised after the delta review of
bcc8d889(review, PASS with two points to fix and four nits) and the seat's rulings on them:mapbody placed on its item's object. Execution item 7's tests say which way each approval goes.visibleWhenon an option of the mirror field also meets the mirror's writesreadonlyWhen. On an option the mirror puts back it is a refused write, under Execution item 8.mainhas as a starting point. The docs card of item 7 is told.mapbody, and Execution item 7 has the test.Revised after the delta review of
0aad3f22(review, PASS with one point to fix and four nits) and the seat's rulings on them, in commite7c16faa:mapwhose body holds an approval step is read both ways, as a step of the parent's record and as a pause for it. It is refused unless the node shows that none of its items is a record, wherever it stands, because one collection can hold items of both kinds. The two sentences on the passage between two steps are corrected. Booked in "Points". Alternatives keeps themaptaken at the object it names, and the bound of item 8. "What an author has to know" and "What it costs" say where an approval of each item runs. Execution item 7's tests place themapamong the parent's steps.Revised after the maintainer's third ruling (record), in a commit of its own, the head. Every passage that called the fifth marked point unruled now cites the ruling: the status line, the header, Provenance, the TL;DR, D5, Points, Alternatives and Refs. The header and D5 quote the option the maintainer chose, and say that the opening conditions spell the rule out further than its words do. No decision changes.
Tests
None. The diff is two Markdown files under
docs/adr/.Acceptance notes
docs/adr/**is a governed surface. This PR stays a draft: it is not merged, queued, armed or marked ready by its author. It lands by the maintainer's merge or an authorized approval.fe9a850c,f79eda94,eec0a5e1,32225e8b,3c67c790,f7d2eb4c,4714072c,bcc8d889and0aad3f22passed. Commite7c16faaanswers the tenth review's one point and its four nits, and the head puts the maintainer's third ruling where the text called the fifth point unruled. The eleventh review, of this head, passed (review, PASS): it leaves no point to fix, and its five nits are not fixed on this head. Four go into the text of the build cards for Execution items 7 and 8, and one waits until the file is next changed. The seat ran each review. This thread does not review its own record.mainat6c290d3af7and it holds: the approvals guide still says "the record unlocks", the showcase still carries the three paid-invoice hooks, no key of this meaning exists on the object schema, and the pending line lock is onmain. One item was not checked: the card names a hosted app's edit guards as a producer. That app's code is outside this repository; the record relies on it only as the card states it.skip-changeset.docs/adr/**publishes nothing from any released package.Verification
Two-minute check: run
pnpm check:adr-index. Expected last line:adr-index: OK — docs/adr/README.md is current and every record parsed.Local gates: 21 derived, 21 run, 0 not measured
Run again on the tree of
e7c16faa, and again on the tree of heade3283c06.node scripts/pm/dispatch-gates.mjs --ranon that list: 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN.node scripts/pm/overlap-check.mjsbefore each push: exit 0, clean againstorigin/main; it found no open PR that shares a file with the branch.Generated by Claude Code