Repository navigation
skills(project): the platform catalog lists units of measure as shipped - #36059
Conversation
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
📓 Docs Drift CheckNothing 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): |
|
repo:objectstack#4 · os-elon-musk · session_016WV4cyFzxtKk2q3dE8qte3 L1 verdict (L1-a): ACCEPT at head 席位核对Shape and gates. 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
The byte-ceiling cuts (the area asked for a judgement on each):
Eval 22, read against its own tokens (the #35665 lesson). The expected_output declares Changeset, sentence by sentence: every sentence matches the diff. The 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 Landing: Tier H ( Generated by Claude Code |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF Contract reviewServed-tier: Isolated, read-only sub-agent record, written 2026-11-21T12:40Z. Face: governed rule text ( 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
② Semver levelOne changeset, ③ Boundary flags
④ Design judgment
Notes:
Implemented-by: VERDICT: PASS Generated by Claude Code |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF 席位核对 — ACCEPT · repo:objectstack#4 · head
|
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1ZJL93Kin2UHFXbFv Awaiting a governed merge · 2026-11-21T12:41Z · head
|
Requested by Elon · project thread
Fixes #35970
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
packages/spec/scripts/lib/platform-catalog.ts: one object row,sys_unit, joins the "Money, imports and approvals" table besidesys_exchange_rate, the object ADR-0158 U3 compares it to. The row names the declaration that uses it:unitConfigon anumberfield (unitMode: 'fixed'withunit,'record'withunitField) or on atextfield ('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.selectwhose option values areH87,KGM). The platform now ships the declaration, and the advice did not parse either: aselectoption valueH87is refused ("System identifier must be lowercase"), measured on this head.skills/objectstack-project/references/platform-catalog.mdis regenerated from that source (gen:skill-refs), not edited by hand.skills/objectstack-data/evals/objects-fields-relationships.jsoncase 22 now expects the shipped answer (see Evals).@objectstack/skillspatch.@objectstack/spectakes none:packages/spec/scripts/**is not in that package'sfiles.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:
H87,KGM) as option values, the business's spellings as labels")ai-seat,governance,audit-compliance,access-policy-console: "cloud "cloudon the same four rowsResult: 6322 + 255 - 254 = 6323 bytes, 1581 tokens, at the ceiling. The ceiling constant and the test file are untouched.
Read first (by risk):
packages/spec/scripts/lib/platform-catalog.ts, thesys_unitrow and the Planned row: every claim on a published page, and the only place underskills/that namesunitConfig.PROSEandCAPABILITY_ROWS.objects-fields-relationships.json, its two token lists.Evals
Case 22 keeps its prompt ("Add a
uomtext field to ourproductobject"). Its reference answer is now the shipped one:uomis atextfield declaringunitConfig: { 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(wasPLATFORM-CANDIDATE,select,H87,KGM).must_not_contain:uom: Field.select(andtype: 'select'(wasuom: Field.text(anduom: { type: 'text', which the correct answer now writes).gradeAnswer): the reference answer passes; the old interim answer fails (two tokens missing, one forbidden); a bareField.textanswer fails; the variant where a quantity points atuomanduomcarries 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
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-refsexit 0:10 generated files in sync with packages/spec.skills/tree: 22829 -> 22828 lines; everySKILL.mdtogether 4944 -> 4944 lines.node scripts/check-skills-token-ratchet.mjsexit 0: authored 197411 -> 197411 of 202541; whole shipped tree 288604 -> 288674.dispatch-gates --commandsderived 76 commands; all 76 were started (--ran: 76 derived, 76 run, 0 UNRUN). 71 exited 0.check:doc-formula-expressionsexited 3 (prerequisite) and exited 0 after building its two packages under the lock. The other four are the next line.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.Acceptance notes
recordandcodefields. Afixedunit takes a standard code only, checked at build; an organization code written there is refused with a message that namesunitMode: 'record'.unitDimension, retiring a unit, oros migrate unit-codes. At the merge base no file underskills/namesunitConfig, so this row is the catalog's whole teaching of it; a fuller treatment in the data skill is not part of this card.8145424b53: the readers ofunitConfigare 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 underui/, the analytics service or the lint package; the control,currencyConfig, is read in 108 files underui/.Verification
Two-minute check:
pnpm --filter @objectstack/spec run check:skill-refsprints10 generated files in sync with packages/spec.Premise, measured on origin/main
8145424b53:sys_unitis inPLATFORM_OBJECTS_BY_PACKAGE(platform-object-names.ts:102), in the always-registered manifest of the platform-objects plugin (plugin.ts:241, besideSysExchangeRate), and in the Setup navigation as "Units of Measure" (setup-nav.contributions.ts:141). ItsapiMethodsare get, list, create, update and bulk.unitConfigis a key ofFieldSchema(field.zod.ts): three closed shapes,fixedandrecordon anumberfield,codeon atextfield. Parsed from source on this head: atextfield withunitMode: 'code', anumberwithunitMode: 'record'pointing at atextfield, andunitMode: 'fixed'withKGMall parse;unit: 'EA', an organization code underfixed, and acodemarker on a field a quantity points at are refused.assertUnitCodes(packages/objectql/src/validation/unit-code-membership.ts), called from the insert, update and validate paths.recordquantity, and the base-quantity projection (0 files namefactorFieldunderpackages/,ui/,skills/,examples/orcontent/; controlunitField, 24 lines infield.zod.ts).Generated by Claude Code