Repository navigation
docs(adr): ADR-0158 records the R1 unit key, write check and backfill door as shipped - #35903
Conversation
… door as shipped L3 records `unitConfig` as the three-member union that shipped, with the type-to-mode rule and the object door's record-pointer refusals. Open items 3, 6, 8, 9, 11 and 12 gain the R1 settlements of the membership card and the backfill card: the five unit error codes, no required scale, the standalone `code` marker, the write check's cases and its point 7 remedy and destructive findings, the engine-level sys_unit delete refusal with the organization-delete exemption, and the backfill door's rules. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibvMi1U7R2kBd3JbTPu
|
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu Contract-review-claim: session_01L9qibvMi1U7R2kBd3JbTPu · head f69f3d0 · 2026-11-20T17:34Z |
|
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu Contract review brief — PR #35903 @
|
|
repo:objectstack#7 · os-tesla · session_01L9qibyQBB3KuDoNobNq9LH L1: REWORK at
|
|
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu Contract reviewServed-tier: Inputs read: cards #35489 and #35492 (each body and all 7 comments), the L2 records 7036451051 and 7037493853 on PR #35805 and 7041994401, 7043808549 and 7045119376 on PR #35865, PR #35903 (body, its one-file list, the net diff against Check-runs on this head (51 runs, read twice, last at 17:40Z): none failed. Security-touching is ① Derived judgments
② Semver levelClause-②: no
③ Boundary flags
④ Design judgment
S1 (should-fix) — Open item 11's note states an exemption that is not built. The sentence reads: "The one exemption, ruled by the maintainer (option B), is the organization delete's own cascade, which removes its units (#35812)." The ruling is real (7035627429 on #35812). The behaviour is not on S2 (should-fix) — Open item 6's note says "A unit's own decimal places are U6, which R1 does not ship (#35498), so a required scale would serve nothing in R1." The card it cites is titled "Units of measure R1: an organization setting for how many decimal places each standard unit displays" and says "the ruled R1 display needs it"; the Releases table lists "display of the value with its unit" under R1; Everything else holds, sentence by sentence:
Nits (no effect on correctness or the contract; fold into the S1 and S2 fix, since this is a prose face):
No must-fix. S1 and S2 are open on this head and each earns a delta review of its fix. Implemented-by: VERDICT: PASS |
…n as ruled and not yet built Review fixes on the amendment: Open item 11 says the cascade exemption (#35812) is ruled but not built in R1, so the refusal still holds for an organization delete; Open item 6 no longer places unit decimals outside R1; and the smaller prose corrections of both reviews (the hint's spelling rule, the alias split per variant, the picker not yet built, when a backfill target is judged, the two older L3 bullets dated). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibvMi1U7R2kBd3JbTPu
|
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu Contract-review-claim: session_01L9qibvMi1U7R2kBd3JbTPu · head 1f0f9a8 · 2026-11-20T17:48Z |
|
repo:objectstack#7 · os-tesla · session_01L9qibyQBB3KuDoNobNq9LH L1 delta: ACCEPT at
|
|
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu Contract reviewServed-tier: Delta record on 7046431113 (PASS at Check-runs on this head (40 runs when read, 17:49Z): none failed. Security-touching stays S1: closed ① Derived judgments
② Semver levelClause-②: no Unchanged and still right: ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Nothing new of substance. One nit, carried: N2's U4 pointer. Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · os-tesla · session_01L9qibvvVzM5KhCWkT5f45c 维护者速读
席位核对Seat 7: hand-off for the maintainer's approval · head
|
|
repo:objectstack#7 · os-tesla · session_01L9qibvvVzM5KhCWkT5f45c Tier H hand-off: |
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu
Fixes #35489
Fixes #35492
Clause-②: no
Metadata-protocol: none
维护者速读
docs/adr/**,属 Tier H,需要你批准后合并。ADR-0158 amendment for the R1 membership card (#35489, PR #35805, merged
e1143241de) and the R1 backfill card (#35492, PR #35865, mergedf44758b21e). Each card's PR wasPart of, so each card closes with this record. This PR changesdocs/adr/0158-…mdonly, one file, +162 / −9. It implements nothing.What changes
**Amended**clause, in the form ADR-0144 uses.docs/adr/README.mdis unchanged, becauseadr-indexreads the first Status sentence only (node scripts/adr-index.mjs --checkexits 0).unitConfigshipped as (fixedandrecordon anumber,codeon atext). A dated lead line says the block was replaced. Three bullets follow Cross-refusals: the discriminated union and its did-you-mean answers; which type carries which mode; and the object door's six record-pointer refusals plus the shared-unit-field dimension rule (object.zod.ts#refuseDishonestRecordUnitField).ERR_UNIT_DELETE_REFUSEDanswers 405.unitConfigneeds noscale, following ADR-0144's currency precedent. The display half stays with R1's display card.7008524997) as built: theunitMode: 'code'marker on atextfield. It is the third member of the one unit key, not a value domain. The backfill reaches it, and its blank is never written.7013996288). Point 7 is carried to Units of measure R1: a backfill door that converts existing free-text units to codes #35492 and built: (a) the remedy in two refusals, and (b) the two destructive findingsunit_code_field_declaredandunit_mode_to_record, keyed on the code field and reported once. The R1 gaps are disclosed (re-points, a narrowedunitDimension; follow-up units: a unitField re-pointed at a field new in the same save raises no finding, and two backfill report gaps (follow-up of PR #35865) #35885). It also records release pairing A (7037347112).sys_unitdelete in every context. This closes the "not closed by this mechanism" sentence of the 2026-11-19 note. The maintainer ruled one exemption, the organization delete's own cascade (Units of measure: deleting an organization also deletes its units (the one exemption from the sys_unit delete refusal) #35812, ruling B), and it is not built in R1: until Units of measure: deleting an organization also deletes its units (the one exemption from the sys_unit delete refusal) #35812 lands, an organization that holds a unit cannot be deleted.7014013098) and built by Units of measure R1: a backfill door that converts existing free-text units to codes #35492: targets, rows left as stored (retired and other-dimension codes counted apart, and the standalone-field wording), blanks, what "complete" means, dry run and apply, scope, and writes. The aggregate half stays with Units of measure R1: refuse at build a raw total over a record-mode quantity unless it groups by the unit field #35491.The text was drafted by each card's dev report (
adr_amendment: 7035276751 with its fix-round delta for #35489; 7044992828, round 3, for #35492). Each was reviewed with its PR's L1 and L2: #35805 L2 7036451051 / 7037493853, and #35865 L2 7041994401 / 7043808549 / 7045119376.Not in this PR
Verification
Final head
1f0f9a8b55(two commits frommainatf44758b21e; the second applies both reviews' prose fixes). CI at this head: 25 success, 19 expected skip, 0 failed; mergeable clean.Reviews: L1 REWORK 7046347694 → delta ACCEPT 7046638729 · L2 PASS 7046431113 (S1, S2) → delta PASS 7046644989 (S1, S2 closed; no must-fix, no should-fix).
securitylabel per the L2's Security-touching: yes.node scripts/adr-index.mjs --check: OK.node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack docs/adr/0158-…mdderives 21 commands, all run, all exit 0 (afterpnpm --filter '@objectstack/lint...' buildforcheck:doc-formula-expressions). Among them:check:adr-anchors,check:adr-symbol-anchors,check:adr-index,check-adr-links,check:doc-authoring,check:pm-governed-mergesandcheck:pm-prior-rulings. Reconciliation:dispatch-gates --ranreports "21 derived famil(ies) accounted for — 21 run, 0 NOT-MEASURED".Governed:
docs/adr/**is Tier H (Prime Directive #14). This lands by an authorised approval and the maintainer's merge.🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibvMi1U7R2kBd3JbTPu