You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Units of measure: define the free-text unit backfill mapping and which aggregates count as raw (ADR-0158 Open item 12) #35469
Routed by ADR-0158, Open item 12, to R1's backfill card and the aggregate card. Parent: #35339 (ADR merged in PR #35370, 35bd360).
Question (the ADR's text)
R1's backfill mirrors os migrate record-currency-codes loosely. That door writes one operator-given code into rows whose code is blank (packages/objectql/src/record-currency-backfill.ts#backfillRecordCurrencyCodes); the unit door rewrites free text in place, from a mapping. Where the mapping comes from, and what an unmatched value does, are the backfill card's. Which aggregates count as "raw" under U7 R1's refusal is the aggregate card's, as ADR-0144's Open item 10 was for currency.
Done when
The backfill card states the mapping's source and the unmatched-value behaviour (refuse, skip and report, or leave), and the aggregate card states the raw-aggregate set; ADR-0158 is amended with both.
Grade
p2 · area:data · domain:server. R1 members; Open item 9's choice may make the backfill a precondition for editing old rows.
Triage: lands in domain:server · pm:queue; rationale: area:data · Task (ADR-0158 open item 12: the free-text unit backfill mapping and which aggregates count as raw) · p2 as set: the backfill and aggregate cards under #35339 wait on it.
Seat settlement · ADR-0158 Open item 12 · 2026-11-19T15:42Z
Area: d7-D. PM settlement by governing text and named precedent (SKILL.md 〈升级与决策〉), under the maintainer's veto window. ADR-0158 routes this item to "the backfill card's" and "the aggregate card's"; no ruling is owed. Executed by #35492 (backfill half) and #35491 (aggregate half), each pinning its half and amending ADR-0158.
Governing text: ADR-0158 U4, U5, U7 R1, L3 (a summary over record-mode child quantities is always refused in R1), Open item 12; ADR-0144 D6, Open item 10, Open item 13 (rulings B 6492000994 and C 6670707546 on #8345), D8 rule 4.
The mapping is the operator's, never derived. The run takes an explicit mapping from stored text to code (a file for os migrate, a body field for the REST twin). No platform-shipped synonym table guesses that 「公斤」 is KGM: U1 is the one shipped list, and the currency door's rule is "Exactly one code is written, the one the caller supplies ... never derived" (packages/objectql/src/record-currency-backfill.ts, module header).
Matching is exact. A stored value matches a mapping key only as written; kg, KG and kg are three keys. The dry run lists every distinct stored value with its row count, so the operator sees each spelling before writing.
Targets are judged first. Every mapping target is judged by U5's membership (U1, or that organization's sys_unit rows) before any row is read; a non-member target refuses the whole run, as the currency door judges its code "BEFORE any row is read".
Rows already holding a member code are never touched, and rows with a blank quantity and blank unit are left alone; each is counted, as the currency report counts why every row was or was not written.
An unmatched value refuses --apply before any write. The dry run (the default) lists each unmatched value and its count; the apply run refuses while any non-blank, non-member value has no mapping, naming them. The operator either maps the value or corrects those rows first, the currency door's posture for rows "nothing here can tell apart": "split by the operator's own writes first". So one apply run converts the whole field or nothing, and a rerun is idempotent.
Scope mirrors the currency door as ruled: one organization at a time (--org), --all-organizations as the explicit exclusive alternative, and a tenant-admin REST twin behind the maintenance switch, preview unless apply: true (ADR-0144 Open item 13, ruling C). Org-code targets are judged in each organization the run writes.
Standalone unit fields (Open item 8, ruled A) are reached by the same door.
Raw means sum, avg, min and max over a record-mode quantity; count and count_distinct are not judged. Precedent: packages/objectql/src/record-currency-aggregate-door.ts (module header, ADR-0144 Open item 10).
A fixed-mode quantity is never judged: every row carries the one unit.
Doors mirror D6's: the ObjectQL aggregate beside the aggregate × field-type door, summary registration (always refused for record-mode quantities in R1, L3), and the analytics dataset and cube measure doors (packages/services/service-analytics/src/cube-record-currency-door.ts is the currency counterpart). The refusal codes are Open item 3's (Units of measure R1: a number field declares its unit (unitConfig) and the write path checks the unit code #35489).
Veto: the maintainer may reverse any point on this card; the seat reports this settlement in its round report.
Prior rulings read: backfill, record-currency-codes, raw aggregate, count_distinct, unit field → ADR-0144 Open items 10 and 13 (6492000994, 6670707546), D6 and its 2026-11-11 note (PR #32216), 7001193034, 7008524997; none conflicts.
State: pm:queue → pm:blocked. The card closes when both halves have landed; the later of the two is #35492 or #35491, both behind #35489.
Unlock (daily scan): every Blocked-by: target is closed, so pm:blocked → pm:queue; grade unchanged.
Targets read this round, all closed in this repository: #35492, #35491. The lines lived only in a thread comment. No Unlock-action: line, no assignee; same repository, so no installability check is owed.
Meaning: no point of 7014013098 is vetoed (operator-supplied mapping, exact match, a batch with any unmatched value writes nothing; sum/avg/min/max must group by the unit field; a record-mode quantity summary is refused in R1).
Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server·pm:queue; rationale: area:data · Task (ADR-0158 open item 12: the free-text unit backfill mapping and which aggregates count as raw) · p2 as set: the backfill and aggregate cards under #35339 wait on it.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu
Seat settlement · ADR-0158 Open item 12 · 2026-11-19T15:42Z
Area: d7-D. PM settlement by governing text and named precedent (SKILL.md 〈升级与决策〉), under the maintainer's veto window. ADR-0158 routes this item to "the backfill card's" and "the aggregate card's"; no ruling is owed. Executed by #35492 (backfill half) and #35491 (aggregate half), each pinning its half and amending ADR-0158.
Governing text: ADR-0158 U4, U5, U7 R1, L3 (a
summaryoverrecord-mode child quantities is always refused in R1), Open item 12; ADR-0144 D6, Open item 10, Open item 13 (rulings B 6492000994 and C 6670707546 on #8345), D8 rule 4.Backfill half (#35492)
os migrate, a body field for the REST twin). No platform-shipped synonym table guesses that 「公斤」 isKGM: U1 is the one shipped list, and the currency door's rule is "Exactly one code is written, the one the caller supplies ... never derived" (packages/objectql/src/record-currency-backfill.ts, module header).kg,KGandkgare three keys. The dry run lists every distinct stored value with its row count, so the operator sees each spelling before writing.sys_unitrows) before any row is read; a non-member target refuses the whole run, as the currency door judges its code "BEFORE any row is read".--applybefore any write. The dry run (the default) lists each unmatched value and its count; the apply run refuses while any non-blank, non-member value has no mapping, naming them. The operator either maps the value or corrects those rows first, the currency door's posture for rows "nothing here can tell apart": "split by the operator's own writes first". So one apply run converts the whole field or nothing, and a rerun is idempotent.--org),--all-organizationsas the explicit exclusive alternative, and a tenant-admin REST twin behind the maintenance switch, preview unlessapply: true(ADR-0144 Open item 13, ruling C). Org-code targets are judged in each organization the run writes.Aggregate half (#35491)
sum,avg,minandmaxover arecord-mode quantity;countandcount_distinctare not judged. Precedent:packages/objectql/src/record-currency-aggregate-door.ts(module header, ADR-0144 Open item 10).unitDimensiondoes not admit one (grams and kilograms are one dimension and still add wrongly), and grouping by a parent path does not count (the PR feat(objectql): a child amount follows its parent's currency, a roll-up through its master_detail registers, and the parent's code locks (ADR-0144 D2/D6 amended) #32216 reading of ADR-0144 D6).fixed-mode quantity is never judged: every row carries the one unit.summaryregistration (always refused forrecord-mode quantities in R1, L3), and the analytics dataset and cube measure doors (packages/services/service-analytics/src/cube-record-currency-door.tsis the currency counterpart). The refusal codes are Open item 3's (Units of measure R1: a number field declares its unit (unitConfig) and the write path checks the unit code #35489).Veto: the maintainer may reverse any point on this card; the seat reports this settlement in its round report.
Prior rulings read: backfill, record-currency-codes, raw aggregate, count_distinct, unit field → ADR-0144 Open items 10 and 13 (6492000994, 6670707546), D6 and its 2026-11-11 note (PR #32216), 7001193034, 7008524997; none conflicts.
State:
pm:queue→pm:blocked. The card closes when both halves have landed; the later of the two is #35492 or #35491, both behind #35489.Blocked-by: #35492
Blocked-by: #35491
objectstack-fleet commentedon Nov 23, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Unlock (daily scan): every
Blocked-by:target is closed, sopm:blocked→pm:queue; grade unchanged.Targets read this round, all closed in this repository: #35492, #35491. The lines lived only in a thread comment. No
Unlock-action:line, no assignee; same repository, so no installability check is owed.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM
Ruled · closed completed · 2026-11-25T23:08Z
Ruled: the maintainer confirms the seat settlement 7014013098 (ADR-0158 Open item 12) as landed and closes this card.
pm:queue.