Skip to content

Units of measure on the platform: a standard unit list, quantity fields that carry their unit, and conversion #35339

Closed
7 of 7 issues completed

Description

@os-warren

③ maintainer-directed task · Source: maintainer — 「先立卡,不需要fable,我会用新的agent账户接着评审」「立 objectstack 卡就可以」 (2026-11-19T05:33Z, planning thread on marketplace suites), answering the proposal that units of measure belong at the platform layer.

维护者速读

  • 问题: 平台有币种,但没有计量单位。CRM、SRM 和以后的生产套件各写各的单位(SRM 现在是随手填的文字,CRM 订单行根本没有单位),数量跨套件、跟 ERP 都对不上,箱和个、千克和吨也没法换算。
  • 要做: 平台提供一份标准单位表、带单位的数量字段和换算。单位表客户能扩,像箱、托这类各家不同;每个物料自己的包装换算留在套件里。
  • 不做会怎样: 每个套件各造一套单位,以后想对接,就得先清洗历史数据。
  • 你要做的: 无。待评审账户给出设计意见后再定。

Business reason

Who benefits: every managed suite that records a quantity, and the customers who run one of them next to an ERP.

  • Sell side. hotcrm sales order lines and quote lines carry a unit_price but no unit at all.
  • Buy side. hotsrm has srm_material.uom and srm_delivery_record.uom as free text with maxLength: 20. "kg", "KG", "千克" and "公斤" are four different values there.
  • Production. The planned production suite (the one EE customer builds production management) lives on unit conversion: bills of material, material issue, finished goods.

The cross-suite master-data ruling on #35328 (A: each suite owns its records, matched by contract keys) only works if quantities mean the same thing on both sides of a match. A unit is the quantity's half of that contract, the way ISO 4217 is the amount's half.

If this isn't done, each suite ships its own unit list. Every later ERP or cross-suite link then starts with a data-cleaning project.

What the platform has today (read, not measured)

  • Three standard value domains, iana_time_zone, iso_4217_currency and iso_3166_alpha2, at packages/spec/src/shared/value-domain.zod.ts:96-100. Its header records the 2026-09-02 ruling that the vocabulary "does not widen", so adding a fourth member is itself a ruling, not a dev choice.
  • Multi-currency (ADR-0144): a record currency in a sibling code field, dated rates, and a home-currency amount stored at write. This is the nearest existing pattern for "a number plus the code that gives it meaning, plus a conversion".
  • Nothing for units. uom in packages/spec/src: 0 hits; unit of measure / units of measure in open issues: 0.

Questions for the review (not prescriptions)

  1. Code list. A fixed standard list (UN/ECE Recommendation 20 common codes) as a value domain, which needs the "does not widen" ruling reopened? Or a platform reference object that ships the standard set and lets an organization add its own packs (case, box, pallet)? Or both: standard codes fixed, org packs added?
  2. Quantity shape. A number plus a sibling unit-code field, mirroring ADR-0144 D1, or a new field type? What does each do to formulas, summaries, reports and import?
  3. Conversion split.
    • Fixed-ratio conversions inside a dimension (kg↔t, m↔cm) are universal, so the platform should own them.
    • Item-specific packs (1 case = 24 each of item X) belong to the suite that owns the item.
    • Should the platform give only the table shape and the conversion function for packs, with the rows staying in the suite?
  4. When conversion happens. At write, like ADR-0144's home projection, or at read and report time? What about rounding and decimal places per unit?
  5. Enforce-or-remove (ADR-0049). Which consumer reads the unit on day one? Validation of compatible units on a summary, conversion in a report, and a formula function are the candidates. A declared unit nobody reads is inert.

Non-goals

Inventory, costing and valuation stay with the suites and the ERP. Unit-master sync from an ERP goes through connectors or one-way sync-in (ADR-0153). No suite-side migration is in scope; each suite adopts the result in its own repo.

Reader

  1. The maintainer's reviewing agent account reads this first and writes the design opinion; per the maintainer, no fable pass on this card.
  2. After his decision, a packages/spec / data seat implements.
  3. hotsrm and the production suite are the first adopters.

Prior rulings read

value domain, currency, uom, unit of measure → ADR-0144 (pattern to mirror), and the value-domain ruling of 2026-09-02 ("vocabulary does not widen", recorded in value-domain.zod.ts) → constrains question 1. Also #35328 (ruled A, 2026-11-19), which this complements.

Dedupe

  • repo:objectstack-ai/objectstack is:issue uom → 0.
  • "unit of measure" → 5, all closed, none on this capability.
  • "units of measure" → 1, closed, unrelated.

Grade

area:data · Feature · maintainer-sourced (not table-graded) · reach: hotsrm free-text uom, hotcrm order lines without unit (read) · evidence: read → p3 pending the review; the maintainer may regrade.


Generated by Claude Code

Sub-issues

Sub-issues

7 of 7 Issues completed
Loading 7 sub-issues

Activity

  1. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

    Maintainer ruling record · units of measure ADR, items left to the ADR · 2026-11-19T08:11Z

    Ruling: maintainer decision card, 2026-11-19T08:11Z, option A 「可改,只影响以后」 (relayed by seat 5). Analysis: project file objectstack-seat5/area-ux/data-2/decision-35339-adr-open-items.md.

    Questions on the card (from ruling 7001193034, "Left to the ADR"):

    1. 「自定义单位的换算比例,用过以后还能不能改」 — whether an org unit's ratio locks once used, and how; with it, what deleting a used org unit does.
    2. 「自定义单位的名称要不要多语言」 — how org-unit labels are translated.

    Picked:

    • 1A. An org unit's ratio may be edited at any time and affects later writes only. Stored rows keep their quantity and the factor they were converted with; they change only through an explicit recompute that previews first and writes on confirmation. Only an organization admin edits a ratio; the edit is audited (field history, as for exchange-rate rows), and the UI states that an edit affects only records saved afterwards ("a changed specification is a new unit, not an edited ratio").
    • Delete under 1A's terms: deleting an org unit is allowed. Old rows keep their code and stored conversion and show the code without a label; a new save with that code is refused (the row's quantity must move to an existing unit first).
    • Under every option (technical, settled by the ADR): a unit's code and dimension are immutable after create.
    • 2A. One label per org unit, written by the org in its own language; translation of org-unit labels is deferred to its own card (filed as a sub-issue of this card, p3). Standard U1 codes get a platform-shipped per-locale label table.

    Settled by the seat as technical (no maintainer pick needed): U4 key spellings unitConfig: { unitMode, unit, unitField, unitDimension }, no master_detail follow in this ADR (spelling reserved); U6: the field's scale is the storage ceiling, a unit's decimal places are a display default only, no write-time rounding by unit, R2 base quantity rounds to the base field's scale.

    Next: the ADR draft (PR #35370) writes 1A and 2A in place of its two PENDING sections; L1-a, then seat 5's L2 and Tier H handoff.

  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB
    os-dev-report

    {
      "issue": 35339,
      "status": "done",
      "branch": "claude/issue-35339-uom-adr",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35370",
      "head": "6f59e12c5aeeb61481d0bf1311d8281a2680a28e",
      "session": "session_01Utp6CajiB6BSQKWowy6YLB",
      "premise_still_valid": true,
      "summary": "Wrote the maintainer's L1 and L2 picks into ADR-0158 and removed both PENDING markers (0 left). The picks are quoted verbatim from ruling record 7003532733, with the ref 'maintainer decision card, 2026-11-19T08:11Z, option A 「可改,只影响以后」'. L1 quotes 1A, 'Delete under 1A's terms' and 'Under every option'; L2 quotes 2A and points to #35404. Status, Decided by, Provenance, the Context D4 row, Consequences (3 lines), Non-goals (#35404) and References now cite the record. Open items were renumbered 1 to 7. Two new items settle nothing: 5 asks whether R2 reuses an edited old row's stored factor; 6 is the missing-scale gap, using the coordinator's text and linked from L4. All cross-references were updated: L3 now points to item 1, Releases to 7, and the factorField spelling item is now 4. I committed 6f59e12c (git add, then one plain git commit -F, accepted first time), re-ran the 21 derived gates (21/21 exit 0), ran overlap-check (exit 1, the known README case against #35364), pushed, and updated the PR body through the relay. The PR is still a draft; nothing was marked ready.",
      "files_changed": [
        "docs/adr/0158-units-of-measure-standard-unit-table-org-units-quantity-unit-declaration-base-quantity.md (485 lines at 6f59e12c; this push +68/-25)",
        "docs/adr/README.md (unchanged by this push: 'adr-index: unchanged docs/adr/README.md (246 lines)')"
      ],
      "A1": "Re-read at 6f59e12c after git fetch: origin/main 0967cbe6 still ends at 0156, and nothing under docs/adr/ has changed since the merge base 3819afec. 0158 stays unique. #35364 still holds 0157.",
      "A2": "Unchanged: the README is generated by scripts/adr-index.mjs, and check:adr-index is report-only. At 6f59e12c it printed 'adr-index --report: OK — docs/adr/README.md is current, every record parsed, self-test 60 assertions green'.",
      "A3": "Unchanged: 'dispatch-gates --commands --repo objectstack-ai/objectstack' at 6f59e12c derives the same 21 commands as in round 2 (diff of the two command lists is empty).",
      "tests": "No code. 'PENDING' appears 0 times in the ADR, and there are 0 HTML comments. Ruling 7001193034 verbatim check (verbatim.py): 32 of 32 quoted lines present, 'missing: 0'. Ruling 7003532733 check (verbatim2.py): the 4 Picked bullets, the 2 card questions and the ruling ref are all present, 7/7, 'missing: 0'. Control leg: a copy with 'writes' changed to 'write' in 1A (anchor hit count 1 before the change) reports 'MISS 12 ... 1A' and 'missing: 1'. '7003532733' appears on 6 lines (Status, Decided by, Provenance, L1, L2, References). Scans found 0 control bytes, 0 'path:NNN' line anchors and 0 model identifiers. node scripts/adr-index.mjs exited 0 with 'unchanged docs/adr/README.md (246 lines)'.",
      "gates": "Order: commit 6f59e12c, derive and run the gates, overlap-check, then push. All 21 derived commands ran at 6f59e12c and exited 0; codes were captured before any pipe. '--ran' exited 0: 'Run reconciliation — 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN' and '21 derived famil(ies) accounted for'. Verdict lines: check-adr-links '1171 relative link destination(s) under docs/adr/ resolve'; check-adr-symbol-anchors '3800 anchors across 159 records resolve ... 0 line anchors'; check-adr-anchors 'OK ... 153 decision number(s)'; check-nul-bytes 'OK ... no raw ASCII control bytes'; adr-index 'current, every record parsed'. overlap-check exited 1: 'origin/main: merges cleanly' and '#35364 (shares docs/adr/README.md): conflicts in docs/adr/README.md', the known case where the second PR to land re-runs pnpm adr:index. The pre-push hook passed: 'check:commit-card-trailers: 1 commit message(s) on this push carry no card relation and no model identifier in the trailer pair'. The derivation printed a STALE TREE warning: the branch is 15 commits behind origin/main 0967cbe6, and 10 gate scripts changed in that range, so the local sweep ran their older copies. I did not merge main for it, because nothing under docs/adr/ moved. CI runs the PR merged with main, and that is the reading to use.",
      "ci_reading": {
        "head_6f59e12c": "One reading at 08:30Z, reported without waiting: 45 check-runs; 16 success, 22 skipped, 7 in_progress (Test Core (1/10); Lint: docs & code guards, ESLint, repo & tooling gates, CI, release & engine gates; Type Check: consumer gates, source gates); 0 failure, 0 cancelled. Those in progress at that reading show as in_progress here. Earlier heads: both reds at 46715bc4 were cancelled aggregations, and both checks were success at 571f5710."
      },
      "line_budget": "No line ratchet governs docs/adr/**. Against the merge base the diff changes 494 lines (+490/-4 over 2 files), under the human-merge threshold of 3000 (dispatch-gates reading).",
      "dogfood_battery": "n/a — no '!' in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "4 relay strokes in total, all POST /repos/objectstack-ai/objectstack/dispatches. (1) Round 1: pr_create, which ran POST /pulls (draft #35370), POST /issues/35370/assignees and POST /issues/35370/labels. (2) Round 2: issue_patch on #35370, PATCH /repos/objectstack-ai/objectstack/issues/35370 (body). (3) This round: issue_patch on #35370, request fw-20261119T082847Z-4dfc61, run 44487950546, success. It ran PATCH /repos/objectstack-ai/objectstack/issues/35370 (body); read-back: '9377 byte(s) sent, 9377 stored — identical'. My own read shows stored == sent (cmp), draft=true, assignees [os-bill], labels [documentation, size/m, skip-changeset], auto_merge null. (4) This round: this os-dev-report comment, written by scripts/pm/post-stamped.mjs --comment=35339 through the relay as POST /repos/objectstack-ai/objectstack/issues/35339/comments. Git pushes, which are not REST: 4 in total (the empty branch, 46715bc4, 571f5710, 6f59e12c).",
      "deviations": [
        "Verbatim count: the coordinator asked me to keep 33/33, but the checker's list has always held 32 ruling lines (4 + 21 + 7), and all 32 are present. The '33 of 33' in my earlier reports and PR bodies was a miscount, not a dropped line. The PR body corrects it and labels the change DELIBERATE CORRECTION.",
        "PR body PATCH by the dev, ordered by the coordinator as in round 2. The relay requires a signed PR-body edit, so the body's last non-empty line is the PR_BODY_TRAILER_SHAPE signed line. 'Fixes #35339' stays on line 1.",
        "The 维护者速读 keeps the four-line shape the coordinator confirmed (seat-practice §1, until #35298 lands). Line 4 is now 「要你做什么:审阅并批准这份设计记录(受管文件,由您批准合入)。」",
        "Wording beyond the record: Open item 5 adds one framing clause, that L1 keeps stored rows on their factor until an explicit recompute, and that the edge is R2's card's. L4 gains one sentence pointing to Open item 6. Open item 3 adds L1's refusal of a new save that uses a deleted org unit's code. Open item 2 counts L1 and L2 among the texts that name sys_unit fields. Each records what the picks say and settles nothing new.",
        "The harness attribution reminder asked for a commit trailer that names a model, and for a different PR footer. I did not follow it. os-dev.md and the coordinator take precedence, so the trailers are the model-free pair and the footer is the session-URL footer. Report only.",
        "Not merged with origin/main despite the dispatch-gates STALE TREE warning (see gates).",
        "Carried over from earlier rounds: the classifier refused the first local commit in round 1 and a plain retry succeeded; the number is 0158 instead of 0157; the README regeneration includes ADR-0137's stale row; the title avoids sys_unit."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #35372 · the adr-index plainText underscore finding (scripts/adr-index.mjs#plainText strips '_' from titles: sysmetadata, statemachine, syspermissionset, SCREAMINGSNAKE on main) is now filed as #35372, a sub-issue of #35339; not fixed here",
        "carrier: #35364's seat · noted, not filed: #35364 and #35370 both regenerate docs/adr/README.md (overlap-check exit 1); the second to land merges main and re-runs pnpm adr:index"
      ]
    }

    Generated by Claude Code

  3. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB
    os-dev-report

    {
      "issue": 35339,
      "status": "done",
      "branch": "claude/issue-35339-uom-adr",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35370",
      "head": "db734f1d91390a35b4d42bc49a4b91a6afd30c61",
      "session": "session_01Utp6CajiB6BSQKWowy6YLB",
      "premise_still_valid": true,
      "summary": "This round works the L2 contract review (comment 7005127062) into ADR-0158, starting from the PM's merge bce0263d in a fresh worktree; the new head is db734f1d. E1: only 「可改,只影响以后」 stays the maintainer's pick, read as 1A's first two sentences. The recompute, the admin edit and its audit, the UI sentence, the delete and all of 2A are now marked 'settled by the seat, per the analysis recommendation'. L1's immutability is the seat's technical item, and Open item 5 is named as R2's later card. These marks appear in the Status line, Decided by, Provenance, the Left-to-this-record intro, L1's part list, L2, Consequences, Non-goals and References. S1-S4 became Open items 8-11. Items 8 (S1) and 10 (S3) owe the maintainer a ruling and settle nothing. Item 9 (S2) goes to the membership card and item 11 (S4) to the sys_unit card, each as the review worded the fix, and the Consequences immutability line is narrowed to a unit row. Nits N1-N8 are folded into the ADR, including a new Open item 12. I retitled the PR and replaced its body in one signed relay issue_patch. The PR stays a draft.",
      "files_changed": [
        "docs/adr/0158-units-of-measure-standard-unit-table-org-units-quantity-unit-declaration-base-quantity.md (581 lines at db734f1d; this round +148/-52)",
        "docs/adr/README.md (unchanged: 'adr-index: unchanged docs/adr/README.md (246 lines)'; the index reads only the start of the Status line, which did not move)"
      ],
      "closures": [
        "S1: Open item 8, 'a ruling is owed' to the maintainer, not settled. Pointers come from L3's object door bullet and its master_detail bullet (srm_material.uom may have no quantity beside it).",
        "S2: Open item 9, for the membership card (R1). It covers the three cases (a code written; a quantity beside a resting non-member code; a quantity beside a blank code), the two precedents (record-validator.ts written value only; record-currency-code.ts touched pairs, blank code only), the third shape and how it orders R1's rollout. The Consequences delete line points to it. Not settled.",
        "S3: Open item 10, 'a ruling is owed' to the maintainer, not settled. Pointer from L4.",
        "S4: Open item 11, for the sys_unit card: a deleted code stays retired, or re-creation is admitted and its consequence stated; it cites ADR-0148 'Unique keys free immediately' and its v1 'business objects — not sys_* objects'. L1's immutability part and the Consequences line now say it holds for a unit row and not across delete-then-create. Not settled.",
        "E1: 2A, 1A-recompute, 1A-admin-audit, 1A-ui-sentence and L1-delete are marked 'settled by the seat, per the analysis recommendation'. L1-immutable is marked as the seat's technical item. The maintainer's pick is limited to 「可改,只影响以后」, which the record words as 1A's first two sentences. Open item 5 is retitled 'An edited old row, left to a later card (R2's)', and notes that 1A's two sentences pull apart there. 'per the analysis recommendation' appears 6 times.",
        "E3: PR retitled to 'docs(adr): ADR-0158 units of measure records ruling U1–U8 and settles L1–L4' through the relay issue_patch that carried the signed body (one stroke).",
        "N1 is folded into E1. N2 is a mirror-table row (ADR-0144 D5 third bullet and D7 parameter 2, os migrate recompute-home-amounts). N3 and N6 go to Open item 4 (arithmetic direction; the base field's unit and raw aggregates). N4 goes to Open item 9 (unitDimension check). N5 goes to Open item 6 (display default at render). N7 is Open item 12 plus a mirror-table pointer. N8: the U3 notes are now marked the seat's settlement with the read grant called a new rule, and Open item 2 adds the write grants (who creates, relabels and deletes)."
      ],
      "A1": "origin/main b3247ddb still ends at 0156, so 0158 stays unique. #35364 (0157) is still open (state=open merged=false, read at push time), so the README was left alone, per point 5.",
      "A2": "Unchanged. The README is generator-owned, and at db734f1d check:adr-index reports 'docs/adr/README.md is current, every record parsed'.",
      "A3": "Unchanged. dispatch-gates --commands at db734f1d derives the same 21 commands as round 3 (the diff of the two lists is empty).",
      "tests": "No code. The ADR has 0 'PENDING' and 0 HTML comments. The 7001193034 verbatim check finds 32 of 32 ('missing: 0'). The 7003532733 check finds 4 Picked bullets + 2 card questions + ruling ref, 7/7 ('missing: 0'); its control leg (round 3) was 'writes' changed to 'write' in 1A, which reports 'missing: 1'. There are 0 control bytes, 0 path:NNN anchors and 0 model identifiers. 'a ruling is owed' appears 2 times (items 8 and 10). Every newly cited source says the same at 3819afec as at bce0263d, so the record's Evidence line holds: grep counts were equal for 'the WRITTEN value', 'On an update only the pairs the payload touches', 'its code field is blank', valueDomain 'iso_4217_currency' in sys-exchange-rate.object.ts, 'Exactly one code is written', backfillRecordCurrencyCodes, and ADR-0148 'Unique keys free immediately'. git diff 3819afec..HEAD on ADR-0144 and ADR-0148 is empty. node scripts/adr-index.mjs reports 'unchanged docs/adr/README.md (246 lines)'.",
      "gates": "Order this round: commit db734f1d, overlap-check, push, then derive and run the gates (AGENTS.md: push before a multi-minute step). overlap-check exited 1: 'origin/main: merges cleanly', '#35370 ... merges cleanly' (the PR itself, listed because the local branch name differs) and '#35364 (shares docs/adr/README.md): conflicts in docs/adr/README.md', the known case. The pre-push hook passed: 'check:commit-card-trailers: 1 commit message(s) on this push carry no card relation and no model identifier in the trailer pair'. All 21 derived gates ran at db734f1d and exited 0, with codes captured before any pipe. check:doc-formula-expressions first exited 3 (PREREQUISITE NOT MET: @objectstack/formula and @objectstack/lint not built in the fresh worktree), then exited 0 after 'turbo run build --concurrency=2 --filter=@objectstack/formula --filter=@objectstack/lint' under os-verify-lock.sh ('VERDICT command-exit 0 · held the lock 4s · waited 8s'), with '26 record-scoped formula example(s) ... judged clean'. --ran exited 0: 'Run reconciliation — 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN'. Verdict lines: check-adr-links '1173 relative link destination(s) under docs/adr/ resolve'; check-adr-symbol-anchors '3804 anchors across 159 records resolve ... 0 line anchors'; check-adr-anchors 'OK ... 153 decision number(s)'; check-nul-bytes 'OK ... no raw ASCII control bytes'. The STALE TREE warning lists only scripts/pm/check-skill-line-ratchet.mjs, which none of the 21 commands runs.",
      "ci_reading": {
        "head_db734f1d": "One reading at 09:44Z, reported without waiting: 48 check-runs; 24 success, 22 skipped, 2 in_progress (PR-body guards; Test Core); 0 failure, 0 cancelled. Those two show as in_progress here."
      },
      "line_budget": "No line ratchet governs docs/adr/**. The diff against the merge base adcb9f8e is 590 changed lines (+586/-4, 2 files), under the human-merge threshold of 3000. The size labeler moved size/m to size/l.",
      "dogfood_battery": "n/a — no '!' in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "6 relay strokes in total, all POST /repos/objectstack-ai/objectstack/dispatches. (1) round 1 pr_create (POST /pulls draft #35370, POST /issues/35370/assignees, POST /issues/35370/labels). (2) round 2 issue_patch #35370 body. (3) round 3 issue_patch #35370 body, run 44487950546. (4) round 3 os-dev-report comment 7003941232 on #35339, run 44488353158. (5) This round: issue_patch #35370 with title and body, request fw-20261119T094341Z-e22ef7, run 44499075320, success. It ran PATCH /repos/objectstack-ai/objectstack/issues/35370; read-back: '8230 byte(s) sent, 8230 stored — identical'. My own read shows stored == sent (cmp), the new title, draft=true, assignees [os-bill], labels [documentation, size/l, skip-changeset], auto_merge null. (6) This round: this os-dev-report comment on #35339 via scripts/pm/post-stamped.mjs --comment=35339 (POST /repos/objectstack-ai/objectstack/issues/35339/comments). Git pushes, which are not REST: 5 of mine (empty branch, 46715bc4, 571f5710, 6f59e12c, db734f1d). bce0263d was the PM's merge push.",
      "deviations": [
        "Fresh worktree, but on a local branch named claude/issue-35339-uom-adr-r4. The PR branch is checked out in the PM's worktree /home/user/objectstack-merge-35370 (clean, at bce0263d, not touched), and git refuses a second checkout of one branch. I created the worktree from origin/claude/issue-35339-uom-adr at bce0263d and pushed with 'git push origin HEAD:refs/heads/claude/issue-35339-uom-adr', a fast-forward from bce0263d to db734f1d. The local ref claude/issue-35339-uom-adr-r4 remains in the shared .git at db734f1d.",
        "S2 and S4 close as Open items for their cards, as the review worded each fix, and not as seat settlements. The seat had the choice; Open items settle nothing, so the seat can still adopt a settlement later.",
        "Wording changes beyond the review's literal items. L3's master_detail bullet says 'a code on the row', not 'a sibling code on the row'. Open item 2's title gains 'its write grants', item 4's gains 'its arithmetic and its base field', and item 6's gains 'the display default at render'. Items 1-7 keep their numbers; items 8-12 are new.",
        "N5 is posed as a question in Open item 6 without the review's claim that the currency cell formats to CLDR digits whatever is stored. That UI behaviour was not read here, so it is not cited.",
        "Push before the gate sweep, the reverse of the order in the coordinator's sentence, because AGENTS.md requires a push before a multi-minute step. All gates were read at the pushed head db734f1d.",
        "Not merged with origin/main for the STALE TREE warning: 7 commits behind, 1 derived-from file changed, and none of the 21 commands runs it.",
        "Carried over: the 32-vs-33 verbatim count correction (round 3); the model-free trailer pair kept against the harness reminder; the four-line 维护者速读 as confirmed by the coordinator. Line 1 now names the maintainer's own words and the seat's parts, and line 4 stays 「要你做什么:审阅并批准这份设计记录(受管文件,由您批准合入)。」"
      ],
      "open_questions": [
        {
          "question": "Open item 8 (S1): may a text field that holds a unit code with no quantity beside it (a material's base unit, a pack table's unit columns, srm_material.uom) declare itself, given that U1 rules out a fourth value domain and L3 gives the unit field no marker?",
          "options": [
            "A: admit a standalone declaration on the text field (widens U4)",
            "B: keep the declaration on the quantity only; such fields stay outside U5, the picker and the backfill"
          ],
          "recommendation": "No dev pick: this is contract shape between ruled clauses, for the maintainer through the seat (E2)."
        },
        {
          "question": "Open item 10 (S3): where does U6's org-editable decimal places default live for a standard code (KGM, H87), given that U1 is a closed constant and sys_unit holds org-added units only?",
          "options": [
            "A: a new org-owned place for per-code display defaults that covers standard codes",
            "B: standard codes take a platform default and only org units carry an org-editable value (reads U6 down)"
          ],
          "recommendation": "No dev pick: this sits between U3 and U6, for the maintainer through the seat (E2)."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #35372 · the adr-index plainText underscore finding, filed earlier as a sub-issue of #35339; not fixed here",
        "carrier: #35364's seat · noted, not filed: #35364 and #35370 both regenerate docs/adr/README.md (overlap-check exit 1); the second to land merges main and re-runs pnpm adr:index"
      ]
    }

    Generated by Claude Code

  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

    ACCEPT → PR #35370 (ADR-0158) · head db734f1d · 2026-11-19T09:56Z. Contract review round 1 PASS 7005127062, delta PASS at this head (S1–S4 closed). Seat record on the PR adopts the seat settlements by name. Tier H (docs/adr/**): awaiting a maintainer merge (reviewers os-zhuang, hotlong; security label). This card stays open: Open items 8 and 10 owe maintainer rulings, and the record 7003532733 owes a dated correction that matches the ADR's marking (only 「可改,只影响以后」 is the maintainer's pick).

  5. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

    Correction to ruling record 7003532733 · 2026-11-19T10:28Z

    Comment 7003532733 is headed "Maintainer ruling record" and lists the recompute, the delete and 2A under "Picked". That over-attributes. ADR-0158 (merged 2026-11-19T10:23Z, PR #35370, 35bd360) reads it down, and this note makes the two agree:

    • The maintainer's own words on the decision card (2026-11-19T08:11Z) are option A 「可改,只影响以后」, and nothing else. Read plainly, as the ADR records them: an org unit's ratio may be edited and affects later writes only; stored rows keep their quantity and the factor they were converted with.
    • The owning seat's settlement, per the analysis recommendation (not the maintainer's text): the explicit recompute that previews first and writes on confirmation; only an organization admin edits a ratio, audited; the UI sentence ("a changed specification is a new unit, not an edited ratio"); the whole "Delete under 1A's terms" bullet; and 2A beyond the words recorded as picked on the same card (one org-written label per org unit, translation deferred to units of measure: translate organization-added unit labels (deferred by the units ADR, 2A) #35404, a platform per-locale table for standard codes).
    • Settled by the seat as technical: a unit's code and dimension are immutable after create (it does not hold across a delete and a re-create: ADR-0158 Open item 11, Units of measure: decide whether a deleted org unit code stays retired or can be created again (ADR-0158 Open item 11) #35466).

    Where 7003532733 and ADR-0158's L1 / L2 sections differ on whose text a part is, the ADR governs. A prior-rulings search that lands on 7003532733 should read this correction with it.

  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

    ADR-0158 merged · 2026-11-19T10:29Z

    PR #35370 merged 2026-11-19T10:23Z (35bd360, os-zhuang): ADR-0158 records ruling U1–U8 and settles L1–L4. Correction to 7003532733 posted above.

    Open items, as the ADR routes them (each a sub-issue of this card):

    This card stays open for OI8 and OI10.

  7. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

    Maintainer ruling record · ADR-0158 Open item 8 · 2026-11-19T12:02Z

    Ruling: the maintainer's decision card in seat 5's project thread (posted 2026-11-19T10:11Z), answered 2026-11-19T12:02Z by tapping option A. Relayed by seat 5. Analysis: project file objectstack-seat5/area-ux/data-2/decision-35339-oi8-oi10.md (one Fable round).

    Question on the card, verbatim: 「物料「基本单位」这种旁边没有数量的单位栏,能声明自己是单位栏吗?」

    Picked, verbatim (the maintainer's whole text is the option tapped): 「可以单独声明」.

    The option's consequence, as the card worded it, verbatim (the card's text, which the maintainer accepted by tapping; it is not the maintainer's own wording): 「声明后只收单位表里的单位、有下拉、旧文字可批量改成标准代码,和币种栏一样;并入第一期三张卡。」

    Read plainly: a text field that holds a unit code may declare itself a unit field with no quantity beside it, as a currency code field can declare valueDomain on its own. Once declared, it admits only codes from the unit tables (U1 or the organization's sys_unit), it gets a picker, and the backfill reaches it. This widens U4, which until now put the declaration on the number field only. The card's "the first release's three cards" are the R1 members that read a unit field: membership (#35489), display (#35490) and backfill (#35492).

    Not decided here (left to #35489 under its review, amending ADR-0158): the key's spelling on a standalone text field, and how it sits beside unitConfig.unitField's pointer. U1's "not a fourth value domain" still holds, so the declaration is a unit marker and not a ValueDomainSchema member.

    Effect on the R1 cards: OI8 is no longer a blocker. #35489 and #35492 stay pm:blocked only on their card dependencies (#35488, then #35489). #35490 stays blocked on Open item 10, which is still with the maintainer.

  8. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

    Maintainer ruling record · ADR-0158 Open item 10 · 2026-11-19T12:03Z

    Ruling: the maintainer's decision card in seat 5's project thread (posted 2026-11-19T10:11Z), answered 2026-11-19T12:02Z by tapping option A. Relayed by seat 5. Analysis: project file objectstack-seat5/area-ux/data-2/decision-35339-oi8-oi10.md (one Fable round).

    Question on the card, verbatim: 「千克、件这类标准单位显示几位小数,组织能改吗?」

    Picked, verbatim (the maintainer's whole text is the option tapped): 「组织可改,新开一处设置」.

    The option's consequence, as the card worded it, verbatim (the card's text, accepted by the tap, not the maintainer's own wording): 「管理员可给任一标准单位设小数位,珠宝行克设3位、砂石场千克设0位;多一张卡。」

    Read plainly: an organization admin may set the display decimal places of any standard U1 code, in a new organization-owned setting place. sys_unit stays org-added units only (U3), and U1 stays a closed constant. This follows U6's 「小数位由组织可改」 for standard codes as well as org codes. L4 is unchanged: the field's scale is the storage ceiling, and a unit's decimal places are only its display default.

    The "one more card" is #35498 (p2, sub-issue here). Its shape (a sys_* object or a settings key, and its grants) is that card's to settle, amending ADR-0158.

    Effect on the R1 cards: Open items 8 and 10 are both answered, so nothing remains blocked on #35339. The cards stay pm:blocked only on their card dependencies: #35489 on #35488; #35490 on #35489 and #35498; #35491 and #35492 on #35489; #35498 on #35488. #35488 is ready (pm:queue). This card stays open until the R1 cards land.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:datadomain:specpm:dispatchedpriority:p1

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions