Repository navigation
docs(adr): ADR-0162 closed states on an object close the record and its lines - #37606
objectstack-fleet[bot] wants to merge 2 commits into
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 |
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 names the reason to a caller who may read the state field. The approvals-family read stays exactly as published.Four points go past the ruling's words. Each is marked in the text, listed in "Points the ruling does not settle" with the other reading beside it, and can be struck without touching the rest:
Read first, by risk:
readonlyWhen.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 readingTests
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.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 revised head
fe9a850c.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