Repository navigation
docs(adr): ADR-0158 units of measure records ruling U1–U8 and settles L1–L4 - #35370
Conversation
…ems pending Records the maintainer's units-of-measure ruling (record 7001193034) as ADR-0158: a closed standard unit table in packages/spec beside the value domains (U1, U2), organization units in sys_unit (U3), a unit declaration on number fields mirroring currencyConfig (U4), the write-path membership check (U5), unit decimals (U6), the R1/R2 release plan (U7) and no formula conversion function (U8), each quoted verbatim. The ruling's three "Left to the ADR" items, and U6's sentence on the field's scale, are sections marked PENDING that state the question only; their settlement comes from the seat. docs/adr/README.md is regenerated by scripts/adr-index.mjs: the new row, the summary counts, and ADR-0137's row, which was stale on main. Claude-Session: https://claude.ai/code/session_01Utp6CajiB6BSQKWowy6YLB Co-authored-by: Claude <noreply@anthropic.com>
…detail follow yet
Writes in the owning seat's settlement of the ruling's third "Left to
the ADR" item, a technical one: the unit declaration is spelled
unitConfig: { unitMode, unit, unitField, unitDimension }, with unitMode
required and no default, unit rather than defaultUnit, and unitDimension
rather than dimension, which already means a group-by axis. A child
quantity does not follow its parent's unit through master_detail in this
record; the two-segment spelling is reserved for a later amendment.
Adds two consequences under U3 (sys_unit readable by members; labelled
"unit of measure") and states the R2 open item that the suite-supplied
factor pointer and the engine-written factor field get distinct names.
L1, L2 and L4 stay PENDING.
Claude-Session: https://claude.ai/code/session_01Utp6CajiB6BSQKWowy6YLB
Co-authored-by: Claude <noreply@anthropic.com>
…nit decimals only display Writes in the owning seat's settlement of U6's sentence on the field's scale, a technical item, quoted as the seat's text: the field's scale governs storage and is the ceiling; a unit's decimal places are only the display default for that unit and never exceed it; nothing is rounded at write by a unit's decimal places; in R2 the projected base quantity rounds to the base field's scale. The open item on R2 rounding leaves the list, which renumbers the last open item; one Consequences line states the rule. L1 and L2 stay PENDING with the maintainer. Claude-Session: https://claude.ai/code/session_01Utp6CajiB6BSQKWowy6YLB Co-authored-by: Claude <noreply@anthropic.com>
L1 (ratio lock) and L2 (org-unit label translation) now quote the maintainer's picks from ruling record 7003532733 verbatim: an org unit's ratio stays editable and affects later writes only, deleting an org unit leaves its rows readable and refuses new saves with its code, a unit's code and dimension are immutable after create, and an org unit has one label with translation deferred to its own card. Both PENDING markers are gone. Open items gain two unsettled questions for the R2 and R1/R2 cards (an edited old row's stored factor; a quantity field with no scale), and the list is renumbered with its cross-references. Claude-Session: https://claude.ai/code/session_01Utp6CajiB6BSQKWowy6YLB Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB Final head for review · area data-2 · 2026-11-19T08:40Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head
|
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewServed-tier: Read for this record: card #35339 (body and all six comments), PR #35370 (body, file list, net diff against ① Derived judgments
② Semver level
③ Boundary flagsDev flags, from the report on the card (7003941232) and the PR body:
SQL push-down: nothing in the diff builds a query. Of what the record declares, U5 is a keyed read of one organization table plus a constant, the R1 door groups on the stored code column, and L1 removes the one scan the ruling feared ("no quantity table is scanned"). No id materialisation and no in-app join is declared. The membership card carries the check for bulk writes: one read per batch of distinct codes. Escalations:
Settlement items, by name, for the seat to adopt or strike:
④ Design judgment
Against its first consumers, the R1 cards, it breaks in four places. Each is closable on this face by an Open item or a marked settlement; none needs code. No must-fix. S1 (should-fix) — a unit code with no quantity beside it has no declaration, and the card's first evidence is one. S2 (should-fix) — which writes U5 judges is not stated, and the two precedents the record mirrors answer opposite to L1. S3 (should-fix) — U6's org-editable decimal places have no home for a standard code. S4 (should-fix) — "code and dimension are immutable after create" does not survive delete-then-create, and the record does not say so. Nits, none moving the contract:
S1 to S4 each earn a delta review of their fix. A fix on the record moves the head; the index is untouched by any of them unless the title or status line changes. Implemented-by: VERDICT: PASS |
L1 now keeps the maintainer's pick to the maintainer's own words on the decision card, 「可改,只影响以后」. The rest of what ruling record 7003532733 writes out (the recompute, the admin edit and its audit, the UI sentence, the delete, and all of 2A) is marked as settled by the seat per the analysis recommendation, and the immutability bullet as the seat's technical item. The edited-old-row question is named as R2's. Open items gain five entries from the contract review: a unit code with no quantity beside it and U6's decimal places for a standard code, each owed a ruling by the maintainer; which writes U5 judges; a deleted code created again; and R1's backfill and raw aggregates. Items 2, 4 and 6 name the write grants, the R2 arithmetic and base field, and the display default at render. The Consequences line on immutability is narrowed to what holds, and the U3 notes are marked as the seat's settlement. Claude-Session: https://claude.ai/code/session_01Utp6CajiB6BSQKWowy6YLB Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewServed-tier: Delta review from ① Derived judgments
② Semver levelUnchanged. ③ Boundary flagsDev flags, from report 7005510172:
SQL push-down: unchanged. The delta declares no query, no id materialisation and no in-app join. Escalations:
④ Design judgment
No must-fix, no should-fix.
N1 to N8 are folded where the PR body says; each was read in the tree. N1: the immutability bullet is marked the seat's technical item. N2: the mirror table has the row for D5's third bullet and D7 parameter 2. N3 and N6: Open item 4. N4: Open item 9. N5: Open item 6. N7: Open item 12, with the pointer from the backfill row. N8: the heading under U3, Open item 2 and the New at this head, nits only:
Settlement items by name, with their marking on this head:
Nits alone end the round. A fix for any of N9 to N12 moves the head and is covered by no record until one names that head. Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ 维护者速读
席位核对 — ACCEPT · repo:objectstack#5 · head
|
Fixes #35339
Clause-②: no
Metadata-protocol: none
维护者速读
席位核对
What changes
docs/adr/0158-units-of-measure-standard-unit-table-org-units-quantity-unit-declaration-base-quantity.md(581 lines), Status Accepted by ruling record 7001193034 on Units of measure on the platform: a standard unit list, quantity fields that carry their unit, and conversion #35339. Decision quotes U1 to U8 verbatim with the ruling's own labels; Non-goals quotes "Out of scope". It declares and implements nothing.db734f1d, answers the seat's contract review (comment 7005127062 on this PR):Where each review item was closed
master_detailbulletsys_unitcard; L1's immutability part and the Consequences line narrowed to a unit rowunitDimensionmaster_detailbullet says "a code on the row" instead of "a sibling code on the row". Open items keep their numbers 1 to 7, and items 8 to 12 are new.bce0263dand checked to say the same at3819afec, so the record's Evidence line stands: the two validation headers inpackages/objectql/src/validation/,sys_exchange_rate'scurrencyfield,backfillRecordCurrencyCodes's header,os migrate recompute-home-amounts, and ADR-0144 D5, D7 and D8 and ADR-0148 D4.docs/adr/README.mdregenerated bynode scripts/adr-index.mjs(generator-owned). This round leaves it unchanged, because the index reads only the start of the Status line.Tests
No code. Gates derived by
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackfor this diff, run at headdb734f1d: 21 of 21 exit 0, reconciled by--ran(21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN).Gate verdict lines at db734f1
check-adr-links: 1173 relative link destination(s) under docs/adr/ resolvecheck:adr-symbol-anchors: 3804 anchors across 159 records resolve, 0 line anchorscheck:adr-index: docs/adr/README.md is current, every record parsedcheck:adr-anchors: OK, 153 decision numbers each naming one decisioncheck:nul-bytes: OK, no raw ASCII control bytescheck:doc-formula-expressions: exit 3 first in this fresh worktree (PREREQUISITE NOT MET:@objectstack/formulaand@objectstack/lintnot built; nothing measured). Afterturbo run buildof those two under the verify lock (VERDICT command-exit 0) it exits 0 ("26 record-scoped formula example(s) ... judged clean").check:doc-authoring,check:pm-prior-rulings,check:pm-governed-merges,check:closed-ceremony-textand the rest of the 21: exit 0Verbatim check of the quotations
A script compared every quoted line of ruling record 7001193034 with the ADR text, blockquote markers and line wraps collapsed: 32 of 32 present at
db734f1d(earlier bodies said "33 of 33", a miscount). A second script did the same for ruling record 7003532733: its four "Picked" bullets, the two card questions and the ruling reference, 7 of 7 present. Control: a copy with "writes" changed to "write" in 1A reports 1A missing. The seat's L4 text is present byte for byte.Acceptance notes
origin/mainb3247ddbstill ends at 0156; 0158 stays unique, and docs(adr): ADR-0157 working calendars are organization-editable runtime data, resolved by code or refused #35364 (0157) is still open, so the README was left alone this round.scripts/adr-index.mjs, never hand-edited;check:adr-indexis report-only.dispatch-gates --commandsderives the same 21 commands as the earlier rounds, the ADR families among them.node scripts/pm/overlap-check.mjsexits 1 against docs(adr): ADR-0157 working calendars are organization-editable runtime data, resolved by code or refused #35364 ondocs/adr/README.mdonly;origin/mainmerges cleanly. Whichever lands second mergesmainand re-runspnpm adr:index.dispatch-gateswarns that the tree is 7 commits behindorigin/mainand that 1 file it derives from changed in that range (scripts/pm/check-skill-line-ratchet.mjs, which none of the 21 commands runs).sys_unitbecausescripts/adr-index.mjsstrips underscores from titles; filed as tooling: the generated ADR index drops underscores from titles (sys_metadata shows as sysmetadata) #35372.Verification
Read first: L1 and L2 (whose each part is), then Open items 8 to 11 against the review's S1 to S4, then the U3 notes and Consequences.
Two-minute check: open the ADR and search for
a ruling is owed; expect 2 hits, Open items 8 and 10. Search forper the analysis recommendation; expect 6 hits. Search forPENDING; expect 0.Governed (Tier H): stays draft; landing is the maintainer's.
Generated by Claude Code