Skip to content

skills(project): the platform catalog lists units of measure as shipped - #36059

Merged
os-zhuang merged 1 commit into
mainfrom
claude/area-a4A-35970
Nov 21, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/area-a4A-35970

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Fixes #35970
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:做应用的人(和他们的 AI)查「平台已经提供什么」这一页时,计量单位现在列在「已提供」里,并写明字段上怎样声明单位;这一页不再教他们先自己做一个临时的单位下拉字段。
  • 为什么做:计量单位已经上线,这一页却还写着「不可用」,属于计量单位交付的收尾,和上一次工作日历那一页的修正是同一类事。
  • 出错会怎样:只是文档一页和一道评测题,写错了会误导应用作者,可以直接撤回,不影响运行中的系统。
  • 要你做什么:这是对外发布的技能包,并且改了生成这一页的脚本,属于 Tier H:需要你本人合并,或由授权审批人批准后落地。

What changes

  • packages/spec/scripts/lib/platform-catalog.ts: one object row, sys_unit, joins the "Money, imports and approvals" table beside sys_exchange_rate, the object ADR-0158 U3 compares it to. The row names the declaration that uses it: unitConfig on a number field (unitMode: 'fixed' with unit, 'record' with unitField) or on a text field ('code'); a stored code is a standard one (UN/ECE Rec 20: KGM, H87) or a row the organization adds in Setup; data API, no delete.
  • The Planned row narrows to what ADR-0158 still leaves unbuilt: "Unit display, totals and conversion", state "contract accepted; a quantity shows and sums as a bare number". The link stays ADR-0158.
  • The Planned paragraph loses its interim unit field (a select whose option values are H87, KGM). The platform now ships the declaration, and the advice did not parse either: a select option value H87 is refused ("System identifier must be lowercase"), measured on this head.
  • skills/objectstack-project/references/platform-catalog.md is regenerated from that source (gen:skill-refs), not edited by hand.
  • skills/objectstack-data/evals/objects-fields-relationships.json case 22 now expects the shipped answer (see Evals).
  • Changeset: @objectstack/skills patch. @objectstack/spec takes none: packages/spec/scripts/** is not in that package's files.

The hand-written ceiling is paid, not raised. The page's hand-written text is capped at 1581 tokens (6324 bytes) and stood at 6322 bytes. The new row costs 255 bytes (24 + 231). It is paid by:

Change Bytes Why
Planned paragraph: the interim-unit clause ("an interim unit field stores the contract's UN/ECE Rec 20 codes (H87, KGM) as option values, the business's spellings as labels") -131 no longer true, and the option values it taught are refused
Planned row: "Units of measure (a standard unit table, organization units, a quantity field with its unit)" / "contract accepted, nothing shipped" becomes "Unit display, totals and conversion" / "contract accepted; a quantity shows and sums as a bare number" -30 the narrowing itself
Planned paragraph: "Each row is not available:" -31 every row's State cell, written by the generator, opens with the same words
Intro: "(objectstack-project §0, question 3)" -38 the page's one inbound link is that question, so it restates where the reader came from
Capability rows ai-seat, governance, audit-compliance, access-policy-console: "cloud " -24 the derived Edition column prints cloud on the same four rows

Result: 6322 + 255 - 254 = 6323 bytes, 1581 tokens, at the ceiling. The ceiling constant and the test file are untouched.

Read first (by risk):

  1. packages/spec/scripts/lib/platform-catalog.ts, the sys_unit row and the Planned row: every claim on a published page, and the only place under skills/ that names unitConfig.
  2. The three restatement cuts in the table above, in the same file's PROSE and CAPABILITY_ROWS.
  3. Eval case 22 in objects-fields-relationships.json, its two token lists.

Evals

Case 22 keeps its prompt ("Add a uom text field to our product object"). Its reference answer is now the shipped one: uom is a text field declaring unitConfig: { unitMode: 'code' }, it stores a standard code (H87, KGM, XBX) or one of the organization's own units, and the app declares no unit object and no option list.

  • must_contain: unitConfig, unitMode, H87, KGM (was PLATFORM-CANDIDATE, select, H87, KGM).
  • must_not_contain: uom: Field.select( and type: 'select' (was uom: Field.text( and uom: { type: 'text', which the correct answer now writes).
  • Neither forbidden token is in the case's own reference answer, and all four required tokens are.
  • Graded with the repository's grader (gradeAnswer): the reference answer passes; the old interim answer fails (two tokens missing, one forbidden); a bare Field.text answer fails; the variant where a quantity points at uom and uom carries no declaration passes.

No case was added or removed (24 ids). The eval was not run against a model here.

Tests

Readings on head e3a7561
  • Net added lines: +6 (34 added, 28 deleted, 4 files, changeset included; budget 40).
  • Generator test, under the verify lock: pnpm --filter @objectstack/spec exec vitest run --project local --maxWorkers=2 scripts/platform-catalog.test.ts: Test Files 1 passed (1), Tests 20 passed (20), VERDICT command-exit 0.
  • pnpm --filter @objectstack/spec run check:skill-refs exit 0: 10 generated files in sync with packages/spec.
  • Hand-written text: 6322 -> 6323 bytes (ceiling 6324), 1581 -> 1581 tokens (ceiling 1581).
  • Generated page: 10855 -> 10888 bytes, 2714 -> 2722 tokens, 154 -> 153 lines (generator-owned, measured, not ratcheted).
  • Eval fixture: 28586 -> 28835 bytes, 7147 -> 7209 tokens, 437 -> 437 lines (measured, not ratcheted).
  • Whole skills/ tree: 22829 -> 22828 lines; every SKILL.md together 4944 -> 4944 lines.
  • node scripts/check-skills-token-ratchet.mjs exit 0: authored 197411 -> 197411 of 202541; whole shipped tree 288604 -> 288674.
  • The eval catalog loads with the repository's loader: 14 bundles, 341 cases, 0 refusals.
  • dispatch-gates --commands derived 76 commands; all 76 were started (--ran: 76 derived, 76 run, 0 UNRUN). 71 exited 0. check:doc-formula-expressions exited 3 (prerequisite) and exited 0 after building its two packages under the lock. The other four are the next line.
  • NOT MEASURED, left to CI: check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content. Each exits 3 asking for a full build, and reads built output this diff does not change.
  • overlap-check --branch=claude/area-a4A-35970: VERDICT clean exit 0, 0 PR heads.
  • No ablation: the diff changes generator data, a generated page, an eval fixture and a changeset, and no behaviour a test pins.

Acceptance notes

  • The row sits under "Money, imports and approvals" without renaming the group: a title change costs bytes under the same ceiling.
  • "A stored code" covers record and code fields. A fixed unit takes a standard code only, checked at build; an organization code written there is refused with a message that names unitMode: 'record'.
  • The row does not teach unitDimension, retiring a unit, or os migrate unit-codes. At the merge base no file under skills/ names unitConfig, so this row is the catalog's whole teaching of it; a fuller treatment in the data skill is not part of this card.
  • The Planned state is measured by absence at 8145424b53: the readers of unitConfig are the schema (field.zod.ts, object.zod.ts), the write check and the backfill (packages/objectql), os migrate unit-codes, and three metadata plumbing files. None is under ui/, the analytics service or the lint package; the control, currencyConfig, is read in 108 files under ui/.
  • When the display, aggregate or base-quantity work lands, that PR owes the Planned row and case 22's last sentence.

Verification

Two-minute check: pnpm --filter @objectstack/spec run check:skill-refs prints 10 generated files in sync with packages/spec.

Premise, measured on origin/main 8145424b53:

  • sys_unit is in PLATFORM_OBJECTS_BY_PACKAGE (platform-object-names.ts:102), in the always-registered manifest of the platform-objects plugin (plugin.ts:241, beside SysExchangeRate), and in the Setup navigation as "Units of Measure" (setup-nav.contributions.ts:141). Its apiMethods are get, list, create, update and bulk.
  • unitConfig is a key of FieldSchema (field.zod.ts): three closed shapes, fixed and record on a number field, code on a text field. Parsed from source on this head: a text field with unitMode: 'code', a number with unitMode: 'record' pointing at a text field, and unitMode: 'fixed' with KGM all parse; unit: 'EA', an organization code under fixed, and a code marker on a field a quantity points at are refused.
  • The write check is assertUnitCodes (packages/objectql/src/validation/unit-code-membership.ts), called from the insert, update and validate paths.
  • Still unbuilt from ADR-0158's release plan: display of the value with its unit, the refusal of a raw aggregate over a record quantity, and the base-quantity projection (0 files name factorField under packages/, ui/, skills/, examples/ or content/; control unitField, 24 lines in field.zod.ts).

Generated by Claude Code

sys_unit joins the shipped object rows with the unitConfig declaration that
uses it; the Planned row narrows to unit display, totals and conversion; the
interim unit field leaves the Planned paragraph. Paid in place under the
hand-written ceiling. objectstack-data eval 22 expects the shipped answer.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4d1ZJL93Kin2UHFXbFv
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

Nothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs.

What this run could not see

Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 7ba22bb6ee8d82a95df9cffecee46746f9aaa95d → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4cyFzxtKk2q3dE8qte3

L1 verdict (L1-a): ACCEPT at head e3a7561397ea3d0e4016c03c7a48165325a4d79b (Fixes #35970). Full read.

席位核对

Shape and gates. l1-face --pr 36059: 12 items ok, 1 flag (changeset, judged false below). Check-runs at e3a7561: 58 success, 11 expected skip, 0 failed, 0 pending. Lint & Repo Gates and TypeScript Type Check both success. mergeable_state clean. First line Fixes #35970, no closing keyword near another card. 4 files: packages/spec/scripts/lib/platform-catalog.ts, the regenerated skills/objectstack-project/references/platform-catalog.md, skills/objectstack-data/evals/objects-fields-relationships.json (case 22) and an '@objectstack/skills': patch changeset. l1-face flags @objectstack/spec as owing a changeset. That flag is false: packages/spec files[] is dist, json-schema, liveness, prompts, llms.txt, README.md, src/**/*.zod.ts, CHANGELOG.md, api-surface, spec-changes.json, protocol-upgrade-guide.md, and scripts/ ships in none of them (same reading as #35966).

Fixes is right: every Ask line of #35970 is delivered, in #35966's shape: the shipped object moves into the shipped table, the Planned row narrows, the page is regenerated, case 22 is flipped, and the changeset is skills-only.

Every new claim, checked against origin/main 8145424b:

  • sys_unit "every boot": packages/platform-objects/src/plugin.ts:241 mounts SysUnit in the same object list as SysExchangeRate and SysWorkCalendar.
  • "data API, no delete": sys-unit.object.ts:120 has userActions: { delete: false }, and lines 89-95 and 293 say a hard delete is not served (apiMethods has no delete). Retiring is the delete. "Setup" matches pluralLabel: 'Units of Measure' (feat(spec, platform-objects): the standard unit table and the organization unit object sys_unit (ADR-0158 U1-U3) #35581).
  • unitConfig modes: field.zod.ts has three closed variants: fixed with unit (a standard code, checked at build), record with unitField, and code (lines 1058-1122). The type check at line 3160 allows unitConfig on number and text only. The row's "'fixed' with unit, 'record' with unitField on number; 'code' on text" is exact.
  • "a stored code is standard (UN/ECE Rec 20) or a row added here": the unitConfig describe (line 2718) says "a code must be a standard code or one of the organization's own non-retired units (sys_unit)". True.
  • Planned narrowing, "Unit display, totals and conversion … a quantity shows and sums as a bare number": ADR-0158 U7 leaves R1 "display of the value with its unit" and "a build-time refusal of a raw aggregate over a record-mode quantity", and R2 base-quantity conversion. On main no file under ui/ or packages/ outside the unit check, backfill and schema reads unitConfig. No aggregate refusal or base-quantity projection exists. The row is true.
  • The interim paragraph's removal is right as well as cheap: it taught H87/KGM as select option values, and SelectOptionSchema.value is a lowercase SystemIdentifierSchema (field.zod.ts:382), so that advice could not parse.

The byte-ceiling cuts (the area asked for a judgement on each):

  • Intro "(objectstack-project §0, question 3)": keep the cut. It was a back-pointer. The forward pointer lives in objectstack-project/SKILL.md §0 question 3 ("Before adding an object, a field or a flow, read [the platform catalog]"), which is how an agent reaches the page. Eval 22's expected_output still cites §0 q3, which stays true.
  • "Each row is not available:" → "Nothing below can be declared or installed.": no meaning lost. Every Planned row still prints not available in its State cell.
  • "cloud " on the four capability rows (ai-seat, governance, audit-compliance, access-policy-console): no meaning lost. The derived Edition column still prints cloud on each.

Eval 22, read against its own tokens (the #35665 lesson). The expected_output declares uom: Field.text({ unitConfig: { unitMode: 'code' } }) and names H87/KGM/XBX, Setup units, the write-path refusal, and the record-mode quantity beside it with no second declaration on uom (true per the code-mode TSDoc: "the object door refuses a second declaration"). It also points to Planned for display, totals and conversion. must_contain unitConfig, unitMode, H87, KGM are all in the expected_output. Neither must_not_contain token (uom: Field.select(, type: 'select') occurs in it. The case cannot fail its own reference answer.

Changeset, sentence by sentence: every sentence matches the diff. The sys_unit row sits beside sys_exchange_rate, the three modes are named, a code is standard or the organization's own and is added in Setup, the Planned row narrows to display/totals/conversion, the interim field is gone, and eval 22 is flipped.

Customer-seat value read (skills/):** an agent that loads objectstack-project and reaches the catalog now finds units as shipped, with the exact declaration, instead of being told to build a select that would not parse. Net +6 lines.

Body form: following os-dev.md (footer and section order) is accepted; no L1 item depends on the old frame.

Landing: Tier H (skills/** + packages/spec/scripts, so the low-risk skills arm does not apply). The seat's contract read is next.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e3a7561397ea3d0e4016c03c7a48165325a4d79b
Local-runs: none
Scope: skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-project/references/platform-catalog.md + packages/spec/scripts/lib/platform-catalog.ts
Security-touching: no

Isolated, read-only sub-agent record, written 2026-11-21T12:40Z. Face: governed rule text (skills/**), two hits files, plus the one file in the diff that produces one of them (the generator's data module). The changeset was read as well, as the prose face. Inputs: card #35970 with its thread (triage 7055380805, claim 7061763410, dev report 7062196087), the PR body and file list, the net diff against main, L1 ACCEPT 7062544484, and the check-runs on this head: 69 runs, 58 success, 11 skipped, none red, none pending. The merge base is 8145424. Main has since moved five commits to 1c87956; none of them touches the PR's four files, the generator's inputs, the unit schema, the unit write check, sys_unit or its grants, and every "on main" reading below holds at 1c87956. The head has not moved. No earlier record and no review claim line was on this head, on the PR or on the card. Every statement below was derived from the tree and the check-runs; the PR body, the dev report and the ACCEPT were read as claims to test.

No must-fix, no should-fix. N1 to N4 are nits, and none of them moves the head. In the seat's letters: F none, S none, N four.

① Derived judgments

  1. Accept set and public surface: unchanged. The diff is a generator data module (one new row, four capability descriptions, the Planned row and two paragraphs), the page generated from it, one eval case and a changeset (34 added, 28 deleted). No schema, type, export, route, lint rule or gate moves, and no executable line of the module changes. Clause-②: no and Metadata-protocol: none are right: the row states what already ships and adds nothing an author can write.
  2. The new sys_unit row, clause by clause on main:
    • The name. PLATFORM_OBJECTS_BY_PACKAGE['platform-objects'] holds sys_unit (platform-object-names.ts:102), and catalogProblems refuses a row the registry does not hold.
    • "every boot". Derived, not written: platform-objects backs no capability token, so mountedBy prints it. The plugin registers SysUnit in its always-registered manifest beside SysExchangeRate (plugin.ts:241).
    • "a unit table or picklist". The object holds the organization's own units (code, label, dimension, ratio, decimal places, retired); the standard codes are the spec's closed table.
    • The declaration. UnitConfigSchema is a union of three closed shapes: fixed with unit and record with unitField, both read on a number field only, and code, read on a text field only (field.zod.ts). The row's pairing of mode, companion key and field type is exact.
    • "a stored code is standard (UN/ECE Rec 20: KGM, H87) or a row added here in Setup". assertUnitCodes admits a standard code or one of the organization's non-retired units, in exact uppercase, on insert (every row of a batch), by-id update, bulk update and validate. KGM and H87 are members (the base units of mass and count). Setup carries "Units of Measure" on sys_unit (setup-nav.contributions.ts:141).
    • "data API, no delete". apiMethods is get, list, create, update and bulk; userActions.delete is false; the engine refuses a direct delete. This is the column's own defined sense.
  3. The narrowed Planned row, "Unit display, totals and conversion", "contract accepted; a quantity shows and sums as a bare number": true. No file under ui/ names unitConfig, unitMode or sys_unit; outside the schema the readers are the write check, the backfill, os migrate unit-codes and metadata plumbing. No file names factorField. ADR-0158 is Accepted and on main at the linked path, and its R1 display and aggregate members and R2 are unbuilt (Units of measure R1: show a quantity with its unit label #35490 and Units of measure R1: refuse at build a raw total over a record-mode quantity unless it groups by the unit field #35491 are open). The state carries none of the words the guard refuses and renders behind "not available".
  4. The generated page equals the generator's output: check:skill-refs runs in the required TypeScript Type Check job, green on this head. By reading, the page's ten added and eleven removed lines each map to one changed entry of the module, and nothing else on the page moves.
  5. The ceiling is paid, by arithmetic over the diff's own strings: the row costs 255 bytes (24 and 231); the cuts return 24 (four capability rows), 30 (the Planned row), 38 (the intro) and 162 (the Planned paragraph, 131 and 31). Net plus 1: 6322 to 6323 bytes, 1581 tokens, against a ceiling of 1581. The constant and the test file are not in the diff. platform-catalog.test.ts is in the spec package's local vitest project (scripts/**/*.test.ts), and Test Core is green.
  6. The cuts, each checked for whether it removes something still true that the reader needs, and for a pin:
    • The interim unit clause: superseded by the row, and it taught option values the schema refuses (a select option value is a lowercase identifier). It never reached a release: the page's first changeset is still pending on main, so no published version carried the advice.
    • "Each row is not available:": the generator writes those words into every State cell, and the test pins them per row.
    • The intro's "(objectstack-project §0, question 3)": a back-pointer. The forward pointer is SKILL.md §0 question 3, the page's one inbound link under skills/**.
    • "cloud " on four capability rows: the Edition cell is derived from the provider table and prints cloud on the same four rows.
    • No test, eval or other skill quotes any removed string (git grep at this head).
  7. Eval case 22. The file parses and its 24 ids are unique. The grader is a literal, case-sensitive substring match, and expected_output is neither sent to the model nor graded.
    • The reference answer, sentence by sentence: Field.text takes unitConfig and unitMode: 'code' parses on a text field; H87, KGM and XBX are standard codes (piece, kilogram, box); organization codes are exact uppercase too, and an administrator adds them in Setup; the write path refuses a non-member; a record quantity points at uom, and the object door refuses a unitConfig on the field it points at; fixed takes unit. The last sentence is N2.
    • Tokens: all four required tokens are in the reference answer and neither forbidden one is. The old interim answer and a bare Field.text answer both lack unitConfig. The unanchored type: 'select' follows case 23 of the same file.
    • What the case's own turn can read is N1.

② Semver level

One changeset, '@objectstack/skills': patch: present, and the level owed for text under skills/** with kind none (packages/skills ships the skills/** tree). No @objectstack/spec entry is owed: that package's files list is dist, json-schema, liveness, prompts, llms.txt, README.md, src/**/*.zod.ts, CHANGELOG.md, api-surface, spec-changes.json and protocol-upgrade-guide.md; scripts/ is outside it, and the only importers of the changed module are the generator and its test. So @objectstack/spec publishes the same bytes before and after, and L1 was right to call the l1-face changeset flag false. Both declaration lines stand once, at a line start, bare, in the PR body and in the changeset. The body has one closing keyword, Fixes #35970. No .claude/** path is in the diff, so the body owes no rule-change line and this record carries none. The changeset's sentences match the diff; its "totals per unit" is N2.

③ Boundary flags

  • Dev report 7062196087, open question 2 (keep the cut of the intro's cross-reference): answered A, keep the cut (① 6).
  • Open question 1 (the order frame against os-dev.md for the body's footer and section order): the lane seat's, and L1 accepted the os-dev.md form. No contract face depends on it.
  • Dev flag, four build-output gates not measured locally: answered by CI. Build Core is green, and the diff changes no built output.
  • Dev flag, the eval was not run against a model: the eval seat's round. See N1 before reading its result.
  • Out of scope, "no file under skills/ names unitConfig", reported with no carrier: there is one. skills: teach unitConfig and the unit-code write refusals in the data skill (follow-up of PR #35805) #35808 asks the data skill to teach the key and was moved into the weekly skills card Skills revisions · week of 2026-11-20: shipped skills/** text fixes batched into one PR #35769 (triage comment 7035440892). N1 and N3 go there.
  • Out of scope, the display and aggregate cards owe this page a second edit: N4.
  • Why the security line reads no. The hunks add one catalog row that names a field declaration and the data routes sys_unit serves, narrow one Planned row, cut restated fragments, drop the word "cloud" from four capability descriptions whose Edition cell still prints it, and rewrite one eval reference answer. No permission, sharing, credential, token or authentication teaching is added, removed or changed in meaning. Two places come near and were weighed. Three of the reworded capability rows name governance, audit-compliance and the access-policy console: the change is one redundant word, and what each token mounts reads as before. The reference answer says an administrator adds an organization's units in Setup: that states where the data is kept, it matches the grants on main (the administrator set creates and edits, the member baseline reads), and it is neither sent nor graded. "no delete" states which routes the object declares. No label on the PR or on skills: the platform catalog still lists units of measure as Planned ("nothing shipped") although sys_unit and unitConfig ship #35970 is security. The seat adds that label if it reads the rows differently. The landing does not turn on this line.
  • No security item arose in this review.
  • Author is objectstack-fleet[bot]. SQL push-down: the diff adds no query. The implementer is recorded by its branch, as the claim names it; this review ran in a separate sub-agent that drafted nothing.
  • Landing tier, stated for the seat and not decided here: check-governed-merges.mjs --pr 36059 reads GOVERNED, Tier H. The low-risk skills arm does not apply (a path outside skill wording, packages/spec/scripts/lib/platform-catalog.ts), and the generated-surface exception does not lift the page, because the PR edits the generator that exception trusts. The whole PR waits for the maintainer's hand or an authorised approval.
  • State as read while writing: open, draft, mergeable clean, labels documentation, size/s, tooling; no review, no auto-merge, and no needs:contract-review label to take off.
  • Instruments read; nothing built, tested or re-run, and no worktree: object contents at the merge base, at main and at this head through git show and git grep, the three-dot diff, byte counts of the strings the diff changes, a parse of the eval file, check-governed-merges.mjs --pr, record-recognisers.mjs --template --paths, and the check-runs.

④ Design judgment

  • skills/objectstack-project/references/platform-catalog.md, with packages/spec/scripts/lib/platform-catalog.ts that produces it: holds against the code it cites and against the card's scenario. The page has one job, to stop an app from building what the platform ships, and before this PR it told the reader of case 22's prompt to build a unit picklist the schema would refuse. The split it now draws is the true one on main: the unit table, the declaration and the write check ship; display, unit-aware totals and conversion do not. The module is pinned where a pin can hold (registered names, both columns, an exhaustive capability table, a Planned state that cannot read as usable, the byte ceiling); the truth of the two prose columns is held by review, as the module's header says, and ① 2 is that reading.

    Tried to break it, each read on main:

    • a row naming an object the registry lacks, or a wrong mount: the name is a registry member and the mount cell is derived;
    • the declaration written exactly as the row spells it, in each of the three modes: each parses; the wrong pairings (an organization code or EA as a fixed unit, a code marker on a field a quantity points at, any mode on another field type) are each refused with a message that names the right spelling;
    • a write that skips the unit check: the four call sites in ① 2 cover single and batched writes;
    • a delete door: no route, no Setup action, and the engine refuses;
    • the Planned row reading as usable, or wider than what is missing: ① 3;
    • a reader left holding the removed interim advice: it was never released (① 6);
    • a contradiction elsewhere under skills/**: the row and case 22 are the tree's only unit teaching, and they agree;
    • a cut string pinned by a test or quoted by an eval: none;
    • the group title, "Money, imports and approvals", does not say units: the row is found by its third column, and a rename costs bytes under the same ceiling. Accepted.
  • skills/objectstack-data/evals/objects-fields-relationships.json: case 22 holds against the page, the schema and the write path, and its token lists separate the old answer from the new one in both directions. No other case is touched.

Notes:

Implemented-by: claude/area-a4A-35970
Reviewed-by: session_016WV4d1PJ4isQ3eD7Fk1fnF

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF

席位核对 — ACCEPT · repo:objectstack#4 · head e3a7561397ea3d0e4016c03c7a48165325a4d79b

  • 速读:the platform catalog stops listing units of measure as shipped where they aren't. The change covers the skills catalog rows, the generator data in packages/spec/scripts/lib/platform-catalog.ts and eval case 22.
  • 档:Tier H (governed skills/**; the low-risk arm is refused by the spec/scripts path);L1 ACCEPT 7062544484;合约复审 PASS 7062738872 (CONTRACT_REVIEW_TIER, F0/S0, four nits).
  • Security-touching: no —— no hunk teaches permission, sharing, credential or auth behaviour.
  • 席位意见:可合。
  1. 形态 — one card (skills: the platform catalog still lists units of measure as Planned ("nothing shipped") although sys_unit and unitConfig ship #35970), 62 changed lines; generator change is data-only and CI-pinned.
  2. 前提实测 — every new catalog claim was checked against main by L1 and by the contract read.
  3. 门禁 — L1 ACCEPT, contract PASS with tier evidence, CI green (58/0), mergeable clean.
  4. 接受的偏差 — three byte-ceiling cuts judged safe; N2/N3 wording nits accepted.
  5. 范围外去向 — N1: eval case 22 cannot reach the unit keys from the objectstack-data bundle alone, same as before this diff. Carried by Skills revisions · week of 2026-11-20: shipped skills/** text fixes batched into one PR #35769 (absorbed skills: teach unitConfig and the unit-code write refusals in the data skill (follow-up of PR #35805) #35808); a4-A notes it there. N4: Units of measure R1: show a quantity with its unit label #35490, Units of measure R1: refuse at build a raw total over a record-mode quantity unless it groups by the unit field #35491 and the R2 card owe the Planned row and case 22's last sentence when they land.
  6. 落地条款 — Tier H: pm:awaiting-merge + os-zhuang/hotlong; an authorized APPROVED, then the owning seat or area lands.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1ZJL93Kin2UHFXbFv

Awaiting a governed merge · 2026-11-21T12:41Z · head e3a7561397ea3d0e4016c03c7a48165325a4d79b

  • check-governed-merges --pr 36059 reads GOVERNED Tier H (人合). I re-ran it after the contract record. The low-risk skills arm does not apply: the diff also edits the generator module packages/spec/scripts/lib/platform-catalog.ts. That edit cannot be split out, because a generator-only PR fails check:skill-refs. This is the same shape as skills(project): the platform catalog lists working calendars as shipped #35966.
  • Records at this head:
    • L1 ACCEPT 7062544484.
    • Seat 4 contract PASS 7062738872 (CONTRACT_REVIEW_TIER, Security-touching: no). It has no F or S findings and four nits, and none of them moves the head.
  • CI: 58 success, 11 skipped, 0 failed.
  • Requested reviewers: os-zhuang and hotlong. The PR stays a draft until a governed approver APPROVES. No seat readies it, enqueues it, or arms auto-merge before then.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 21, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 21, 2026 12:43
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 1d934ff Nov 21, 2026
75 checks passed
@os-zhuang
os-zhuang deleted the claude/area-a4A-35970 branch November 21, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skills: the platform catalog still lists units of measure as Planned ("nothing shipped") although sys_unit and unitConfig ship

2 participants