Skip to content

docs(skills): the objectstack-data skill names the platform's exchange-rate table and teaches unitConfig - #38980

Merged
os-zhuang merged 2 commits into
mainfrom
claude/issue-38939-data-skill-rate-unit
Dec 2, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/issue-38939-data-skill-rate-unit

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Part of #38939
Claim for this branch: #38939 comment 7314913435
Clause-②: no
Metadata-protocol: none

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ

维护者速读

  • 用户能看到什么变化:用户无感,界面和运行行为都没变;照着数据建模技能文档做多币种报价或带计量单位的产品的作者和 AI,现在能直接读到平台已经自带汇率表和计量单位规则,不会再自己另建一张汇率表、写一段换算逻辑,或做一个随手填写的单位字段。
  • 为什么做:正式发布前的验收评测里,有两道题带着技能也答错;这两条事实以前只写在项目管理技能的平台清单里,只装数据建模技能的人读不到。
  • 出错会怎样:只改文字,不改任何运行行为;如果新说法有误,作者会照着写错汇率或单位的声明,撤回本次合并即可复原。
  • 要你做什么:这是对外发布的技能包,需要你审阅后亲手合并。
  • 本 PR 之后卡片仍开着:卡片第 3 条(评测题 objects 22、24 带技能重跑通过)未测,由评测席重跑后再关卡。

What changes

Two published files of skills/objectstack-data, two rows of the token ratchet, and one changeset. No eval fixture, no file of skills/objectstack-project, no schema and no runtime file is touched.

Place Before After
rules/field-types.md, § Currency, the homeAmount paragraph Said the engine stores the home amount at the rateDate rate. It did not say where the rates live. Adds: the rates are the platform's sys_exchange_rate, which an administrator keeps in Setup; never an app rate object or a conversion hook; a foreign amount with no rate on or before rateDate is refused (ERR_EXCHANGE_RATE_MISSING).
rules/field-types.md, new § Unit of measure (under Common Field Configurations, after Currency) No file of the skill outside evals/ held unitConfig, unitMode, H87, KGM or sys_unit. One type-checked example with the three shapes: unitMode: 'code' on a text field, and on a number field 'fixed' with unit: 'KGM' and 'record' with unitField. One paragraph: a unit is never free text, a picklist or an app unit object; unitMode has no default; the stored code is exact uppercase, a standard UN/ECE Rec 20 code (H87, KGM, XBX named) or one the organization adds to sys_unit in Setup; the two write refusals; unitDimension; the free-text conversion run.
rules/field-types.md, the text and number rows Config lists without unitConfig. Each list ends with unitConfig and a pointer to the new section, as the currency row points at Currency.
rules/field-types.md, ## Choosing a type and ## Changing a field that has data, first line of each Each carried a parenthetical that repeated a fact stated elsewhere. Both parentheticals are cut (the paydown, below).
SKILL.md, ## Where to go, the Field Types row "A field's type and config, a default, changing a field that has data" The same, plus "exchange rates (sys_exchange_rate), units of measure (unitConfig)".
SKILL.md, ## Where to go, the sentence above the table "Open the file for your task first." Cut (the paydown, below). The table's "Open first" column header says the same; the platform and ui entries have no such sentence.
scripts/check-skills-token-ratchet.mjs SKILL.md 2224, rules/field-types.md 4200 2233 and 4566, each pinned at its measurement, each with its accounting comment.

Why the entry file changes at all. A request to "create an exchange-rate object and a conversion hook" is routed by the entry to the object and hook files, which do not mention the rate table. Without a word in the routing table, nothing sends that request to § Currency. The row now names both identifiers, so the request meets them before it builds anything.

Every added sentence, and the code it was read from

Sentence Source
The rates are sys_exchange_rate packages/objectql/src/home-amount-projection.ts, EXCHANGE_RATE_OBJECT; packages/platform-objects/src/system/sys-exchange-rate.object.ts
An administrator keeps it in Setup packages/platform-objects/src/apps/setup-nav.contributions.ts, nav_exchange_rates; the object's "Who writes" note (organization administrators)
No app rate object or conversion hook The projection converts at write and is the only writer of the home and rate fields (same file, "Who writes the two fields")
A foreign amount with no rate on or before rateDate is refused, ERR_EXCHANGE_RATE_MISSING Same file: the latest effective_date on or before the document date, else refused; an amount in the home currency needs no rate row, hence "foreign"
unitConfig on a number field ('fixed', 'record') or a text field ('code'); no default unitMode packages/spec/src/data/field.zod.ts, UnitConfigSchema, UNIT_CONFIG_MODES_BY_FIELD_TYPE, unitModeMessage
The field unitField names is a text field of the same object with no unitConfig or valueDomain packages/spec/src/data/object.zod.ts, refuseDishonestRecordUnitField
Exact uppercase; H87 piece, KGM kilogram, XBX box; STANDARD_UNITS in @objectstack/spec/data packages/spec/src/data/standard-units.ts
An organization's own unit lives in sys_unit, added in Setup, and cannot be a fixed unit sys-unit.object.ts; setup-nav.contributions.ts, nav_units_of_measure; fixedUnitMessage in field.zod.ts
ERR_UNIT_CODE_UNKNOWN (pcs, kg, C62, EA), ERR_UNIT_CODE_REQUIRED packages/objectql/src/validation/unit-code-membership.ts; C62 and EA are in no standard row and cannot be organization codes
unitDimension on 'record' and 'code' only The three closed shapes in field.zod.ts
os migrate unit-codes packages/cli/src/commands/migrate/unit-codes.ts

The same facts are in the generated platform catalog (skills/objectstack-project/references/platform-catalog.md, the sys_exchange_rate and sys_unit rows), which this PR does not touch.

Size

File Lines Bytes Tokens (ceil(utf8 bytes / 4))
skills/objectstack-data/rules/field-types.md 318 to 346 16799 to 18262 (+1463) 4200 to 4566 (+366)
skills/objectstack-data/SKILL.md 167 to 165 8923 to 8958 (+35) 2224 to 2233 (+9; the 27-byte stamp line is not priced)
All SKILL.md files of the catalog 2141 to 2139 120425 to 120460
skills/objectstack-data, authored files outside evals/ 3696 to 3722 175542 to 177040
Whole shipped tree, the ratchet's own total 287587 to 287962 (+375)

The entry file stays inside its router budget of 9 KB: 8958 bytes.

The ratchet raise

Both rows had zero headroom. Raise path: ruling record 6513306068, letter B. The standing ruling, verbatim and untranslated: 「A:先削重复,余额按实测提高」.

  • rules/field-types.md: +1560 bytes of new text. Paid down first by two restatement cuts in the same file, 97 bytes (45 + 52): the secret parenthetical under ## Choosing a type (its home is the secret row of the same file, which says encrypted at rest and names ADR-0100) and the parenthetical under ## Changing a field that has data that repeated the entry's first trap, which the same line already points at. The row moves by the measured remainder, +366, to 4566.
  • SKILL.md: +71 bytes on the routing row. Paid down first by the sentence above the routing table, 36 bytes. The row moves by the measured remainder, +9, to 2233.

Tests

Read on head bf4e7c2be3 (the branch with origin/main at d38006b9b3 merged in).

  • node scripts/check-skills-token-ratchet.mjs: exit 0; skills/objectstack-data/SKILL.md is 2233 tokens (ceiling 2233; headroom 0), skills/objectstack-data/rules/field-types.md is 4566 tokens (ceiling 4566; headroom 0). --self-test: exit 0, 111 cases pass.
  • pnpm --filter @objectstack/spec run check:skill-examples: exit 0, "342 prose examples type-check across 3 surface(s)". The new block carries the check marker and is one of them: with unitMode misspelled in it on disk (a one-time check, restored and hash-compared to the committed blob), the same command exits 1 with error TS2561 at skills/objectstack-data/rules/field-types.md:228:41.
  • pnpm --filter @objectstack/spec run check:skill-docs, check:skill-served-sections, check:skill-refs: exit 0 each. pnpm check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:doc-authoring, check:nul-bytes: exit 0 each.
  • A runtime parse of the example by the built spec (ObjectSchema.safeParse): accepted. The same probe confirmed each refusal the paragraph states at the build door: a lowercase unit, C62, a missing unitMode, 'code' on a number field, 'fixed' on a text field, unitConfig on a currency field, unitDimension under 'fixed', and a pointed-at field that carries unitConfig or valueDomain.
  • The write refusals were not booted. Their codes were read from source, and the two test files that pin them pass on this head: unit-code-membership.test.ts and home-amount-projection.test.ts, 70 tests.
Derived gate set: 70 commands, 68 run, 2 not measured

node scripts/pm/dispatch-gates.mjs --ran on bf4e7c2be3: "70 derived famil(ies) accounted for — 68 run, 2 NOT-MEASURED (1 DERIVED from a recorded exit 3, 1 claimed)". All 68 exited 0.

  • NOT MEASURED: pnpm check:dual-build-cjs-loads, exit 3, PREREQUISITE NOT MET. It reads the built output of every dual-build package, and this diff touches no package, so no workspace build is owed locally. CI runs it after its build.
  • NOT MEASURED: pnpm check:pm-dispatch-gates. It did not finish inside the 10-minute foreground limit (stopped at 570 s, exit 124, every check printed until then green). CI runs it.
  • pnpm --filter @objectstack/lint run check:doc-formula-expressions and pnpm check:lean-entry-closure first answered exit 3; each exited 0 after the targeted build its refusal names.
  • The derivation is from bf4e7c2be3. origin/main has moved three commits since; none touches a path of this PR.
Token read for eval objects #22 and #24

Counts of each assertion token in the lines this PR adds, and in the two files after the change.

Case Token Added lines SKILL.md rules/field-types.md
22 must contain unitConfig 8 1 7
22 must contain unitMode 4 0 4
22 must contain H87 1 0 1
22 must contain KGM 2 0 2
24 must contain sys_exchange_rate 2 1 1
24 must contain homeAmount 0 0 4 (already there)
24 must contain currencyMode: 'record' 0 0 3 (already there)

No forbidden token of either case is in an added line: uom: Field.select(, type: 'select', name: 'exchange_rate', event: 'afterInsert', 0 each. The new paragraph says "a picklist" and "an app rate object" for that reason, so an answer that copies it writes no forbidden literal.

The with-skill re-run of the two cases is NOT MEASURED here. A model run is the eval seat's round, and this PR ran none.

What remains on #38939, so this PR is Part of: card note 3, the with-skill re-run of eval objects 22 and 24. The card stays open with pm:dispatched until the eval seat records that re-run.

Acceptance notes

Verification

Read first, by risk:

  1. skills/objectstack-data/rules/field-types.md, the new ### Unit of measure paragraph: every clause is a claim about what the write path refuses.
  2. Same file, the sentence added to the homeAmount paragraph: "never an app rate object or a conversion hook" is the instruction an agent will follow.
  3. skills/objectstack-data/SKILL.md, ## Where to go: the routing row, and the sentence that was cut above the table.

Two-minute check: node scripts/check-skills-token-ratchet.mjs prints "skills/objectstack-data/rules/field-types.md is 4566 tokens (ceiling 4566; headroom 0)" and "skills/objectstack-data/SKILL.md is 2233 tokens (ceiling 2233; headroom 0)", and git diff origin/main...HEAD --stat lists four files.

Governed surface (skills/**, Tier H): this PR stays draft. No reviewer is requested and nothing is queued or armed by the author.


Generated by Claude Code

…itConfig

rules/field-types.md: the currency section says the rates homeAmount
converts with are the platform's sys_exchange_rate, kept in Setup, and
never an app rate object or a conversion hook; a new Unit of measure
section teaches unitConfig on a text field ('code') and on a number
field ('fixed' with unit, 'record' with unitField), the stored
uppercase UN/ECE codes (H87, KGM), the organization's own units in
sys_unit and the two write refusals.

SKILL.md: the Field Types routing row names both. The sentence above
the routing table, which its column header restates, is cut.

Token ratchet: both rows move by the measured remainder after
same-file restatement cuts (ruling record 6513306068, letter B).

Claude-Session: https://claude.ai/code/session_01WGufzeatqKfTRUzTJVa9jQ
Co-authored-by: Claude <noreply@anthropic.com>
@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 Dec 1, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ

Final green head · 2026-12-01T16:58Z · zone osa-ai
Head-sha: bf4e7c2

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head bf4e7c2 · 2026-12-01T16:59Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: bf4e7c2be3abcf9a3a96c867f92c15f85816c4ab
Local-runs: none
Scope: skills/objectstack-data/SKILL.md, skills/objectstack-data/rules/field-types.md + scripts/check-skills-token-ratchet.mjs
Security-touching: no

Review time: 2026-12-01T17:05Z. PR #38980, card #38939. Read: the card body and its four comments (triage 7313849064, claim 7314913435, dev report 7317863030, claim amendment 7317913389), the PR body and its two comments, the net diff of the four files against the merge base d38006b9b3, ruling record 6513306068 on #27847 in its own words, and the 47 check-runs on the head (29 success, 18 skipped, 0 failure). main has moved past the merge base; none of its commits touches a path of this PR. Code outside the diff was read in the live tree, never reviewed.

① Derived judgments

  • Accept set: unchanged. Right. No schema, no runtime file and no eval fixture is in the diff. The text teaches what main already parses and refuses.
  • Published surface: two files of the objectstack-data bundle. rules/field-types.md gains four sentences in § Currency, a new § Unit of measure (one checked example, one paragraph) and a unitConfig pointer on the text and number rows; it loses two parentheticals. SKILL.md gains 71 bytes on the Field Types routing row and loses the 36-byte lead sentence of ## Where to go. Right, and each is inside the claim's file surface as amended by 7317913389.
  • Gate rows: two ceilings of scripts/check-skills-token-ratchet.mjs rise. Recomputed from the blobs by the script's own formula:
  • Raise path: ruling record 6513306068, letter B, part 2. Its words: a PR "whose diff shows deletion of restatement in the same file and whose body quotes the 2026-10-27 ruling ... may move that file's row by the measured remainder, pinned AT the measurement, with no per-card ruling". The diff shows a deletion in each of the two files, the PR body quotes the ruling verbatim and names the record, and each row is pinned at its measurement. Right. Whether each deletion is restatement is judged in ④.

② Semver level

'@objectstack/skills': patch: right. The change is teaching text of a published bundle; nothing a consumer imports or authors changes shape.

Clause-②: no. Right: no accept set widens or narrows. The same line is on the PR body, the changeset and the claim.
Metadata-protocol: none. Right: no metadata key, default or refusal changes.

The changeset, sentence by sentence, against the tree:

  • Paragraph 1 (the data skill never named the rate table or the unit vocabulary; both facts lived only in the project skill's catalog): true. skills/objectstack-project/references/platform-catalog.md lines 59 and 60 hold the two rows, and the card's git grep reading stands on the merge base. "A free-text or picklist unit field" is one word wider than the measurement (the failing answer of case 22 was a bare text field), which changes nothing a reader acts on.
  • Paragraph 2 (§ Currency): true. EXCHANGE_RATE_OBJECT = 'sys_exchange_rate' and ERR_EXCHANGE_RATE_MISSING are in packages/objectql/src/home-amount-projection.ts, whose header states the rate row is the latest effective_date on or before the document date and that an amount in the home currency needs no rate row, hence "foreign".
  • Paragraph 3 (§ Unit of measure): true clause by clause, see ④. C62 or EA "for a piece" matches fixedUnitMessage and the write-time hint.
  • Paragraph 4 (SKILL.md): true. The row names both identifiers; the lead sentence is gone; the header reads Open first.
  • Paragraph 5 (ceilings): true. 4200 to 4566 and 2224 to 2233, each after a same-file deletion; the entry is 8958 bytes.

③ Boundary flags

  • Dev open question (does the SKILL.md fence admit the paydown cut?): option A stands. Claim amendment 7317913389 widened the fence to the same-file paydown. The cut is a true restatement (④), so the amendment's reading holds. Option B is a raise with no deletion shown, which the ruling leaves red. Option C leaves a rate-object request with no route to § Currency.
  • Deviation, two changes in SKILL.md: answered above.
  • Deviation, two derived gates not measured locally (check:dual-build-cjs-loads, check:pm-dispatch-gates): answered by the head's check-runs. Build Core, Lint · PM dispatch-gates and every other lint and type lane concluded success.
  • Deviation, the with-skill re-run of cases 22 and 24 is NOT MEASURED: not answered by this PR. See S1.
  • Deviation, bare case numbers in the PR body's token-read summary link two unrelated old cards: a PR-body spelling, the seat's to respell ("case 22", "case 24"). No effect on the diff.
  • Out-of-scope note, case 22 forbids type: 'select': read and confirmed. The carrier is skills evals: eleven cases across five bundles fail a right answer, by forbidding a literal the bundle itself writes as the trap, matching a legitimate key, or demanding one spelling (GA test 3) #38941. The added text says "a picklist" and writes no forbidden literal of either case.
  • Out-of-scope note, two homes for the two facts (the generated catalog and the hand-written data skill, no gate between them): true, noted, no carrier. Not a finding on this diff.
  • SQL push-down: not applicable. The diff adds no query, no id materialisation and no in-app join.
  • Security arm: no. The added text names who keeps a reference table ("an administrator keeps in Setup") and teaches no permission, sharing, credential, token or authentication behaviour. One deleted clause mentioned that secret is encrypted at rest; it was a restatement, and the same fact stays in the secret row of the same file and in SKILL.md § Field Type Selection, both untouched.

④ Design judgment

skills/objectstack-data/rules/field-types.md, against the spec and engine on main. Every added clause holds:

  • "The rates are the platform's sys_exchange_rate, which an administrator keeps in Setup": EXCHANGE_RATE_OBJECT; sys-exchange-rate.object.ts ("the only source the write-time home-currency projection reads"; "Who writes: organization administrators"); nav_exchange_rates in setup-nav.contributions.ts.
  • "never an app rate object or a conversion hook": the projection is the only writer of the home and rate fields, which the spec makes readonly: true; a hook's value for either is stripped or recomputed over.
  • "A foreign amount with no rate on or before rateDate is refused (ERR_EXCHANGE_RATE_MISSING)": the projection header and EXCHANGE_RATE_MISSING_CODE.
  • The example: UNIT_CONFIG_MODES_BY_FIELD_TYPE admits fixed and record on number and code on text; KGM is a key of STANDARD_UNITS; refuseDishonestRecordUnitField wants unitField to name a text sibling with no unitConfig and no valueDomain, which is what the comment on unit_code says. The block carries the check marker, and the type-check lanes on the head are green.
  • "unitMode has no default": unitModeMessage ("it has no default: the platform never guesses a unit").
  • "exact uppercase ... H87 piece, KGM kilogram, XBX box; STANDARD_UNITS in @objectstack/spec/data": standard-units.ts lines 125, 161, 171 and the names table; standardUnitOf is an exact own-property lookup; the module is re-exported from data/index.ts.
  • "one the organization adds to the platform's sys_unit in Setup (not under 'fixed')": ORGANIZATION_UNIT_OBJECT, nav_units_of_measure, and fixedUnitMessage ("an organization's own unit cannot be a field's fixed unit").
  • "The write refuses any other value (ERR_UNIT_CODE_UNKNOWN: pcs, kg, C62, EA) and a quantity beside a blank code (ERR_UNIT_CODE_REQUIRED)": unit-code-membership.ts, points 1 and 3 and membershipOf. A lower-case spelling "is refused, never folded"; C62 and EA are in no standard row and cannot match ORGANIZATION_UNIT_CODE_PATTERN. assertUnitCodes is wired into engine-insert.ts, engine-update.ts and engine-validate.ts.
  • "unitDimension ('mass', 'count', ...; 'record' and 'code')": UNIT_DIMENSIONS; the fixed shape refuses the key.
  • "os migrate unit-codes": packages/cli/src/commands/migrate/unit-codes.ts.
  • The two cuts are restatements with a home. The secret parenthetical: the secret row of the same file says encrypted at rest and names ADR-0100. The trap-1 parenthetical: SKILL.md trap 1 says "The sync only adds ... and the column wins at write time", and the line still points at it.

Tried to break it: a retired organization unit and a member of another dimension are refused under two further codes (ERR_UNIT_CODE_RETIRED, ERR_UNIT_DIMENSION_MISMATCH) that the paragraph does not name. Neither makes a written sentence false: "any other value" is a value that is neither standard nor the organization's. Left as written; the budget argues against two more codes.

skills/objectstack-data/SKILL.md, against the card's eval prompts.

  • The routing row: a request to build an exchange_rate object with a hook, or a uom text field, now meets sys_exchange_rate and unitConfig in the entry and is sent to Field Types, where the remaining tokens live (homeAmount, currencyMode: 'record', unitMode, H87, KGM). Holds.
  • The lead-sentence cut is a true restatement. "Open the file for your task first." says three things: open a file, the one for your task, before writing. The section heading ## Where to go, the left column (the task) and the right column header Open first say the same three. The objectstack-platform and objectstack-ui entries on main carry the same table with no lead sentence. No other file quotes the sentence. Nothing a reader needs is lost.

Eval cases of this skill against the changed text (75 cases in three files; no fixture is in the diff, so no case is touched):

  • No must_not_contain token of any case appears in its own expected_output.
  • No must_not_contain token of any case appears in an added line, and no must_contain token of any case appears in a removed line.
  • Case 22: its expected output and the new paragraph agree on every point (unitMode: 'code' on the text field; H87, KGM, XBX; an organization's own unit added in Setup; a pointed-at field carries no unitConfig; fixed with unit).
  • Case 24: its expected output and § Currency agree (sys_exchange_rate, maintained in Setup, no object and no hook; homeAmount; currencyMode: 'record').
  • The currency cases (18, 20) and the value-domain case (23) read text this PR does not change.

scripts/check-skills-token-ratchet.mjs, the two row comments, sentence by sentence. Both are true: +71 and -36 bytes on SKILL.md (counted), +1560 and -97 (45 + 52, counted) on the rule file, the byte and token figures above, "zero headroom", "pinned AT the measurement", the ruling record and letter, and the standing ruling quoted verbatim. "The entry stays inside the 9 KB budget its row above pinned": 8958 bytes, and the row above does pin it.

Findings

S1 (should-fix) — the Fixes trailer closes card #38939 on merge, and the card's third acceptance note is not delivered by this PR. The note reads "Eval objects 22 and 24 pass with the skill on a re-run"; the dev report and the PR body both state that re-run as NOT MEASURED, and no carrier for it is named. The card's own evidence for case 22 is that the failing turn "read no skill file", a cause that added text in rules/field-types.md reaches only if the turn opens the entry and follows the row, which is exactly what the re-run measures. The L1 checklist rule applies: Fixes only when the merge should close the card; half landed means Part of. Fix, on the prose face, with no move of the head: the PR body names the card with Part of and no closing verb beside its number, and the card stays open until the eval seat's re-run of the two cases is recorded on it; or the re-run is recorded on the card before the merge and the trailer stays.

No must-fix. One should-fix: S1.

Implemented-by: claude/issue-38939-data-skill-rate-unit
Reviewed-by: session_01WGufzhGA3zoCFquQgku4pm

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

L1 review · PR #38980 (#38939) · head bf4e7c2 · 2026-12-01T17:07Z

VERDICT: should-fix, 1 item (S1, carried from L2; a paper item, so the head does not move). No must-fix.

  • Face. l1-face is CLEAN at bf4e7c2, with 13 items read and none flagged. Checks are 29 success, 18 expected skip and 0 failed, and mergeable_state is clean. '@objectstack/skills': patch is the right changeset entry, and Clause-②: no and Metadata-protocol: none are right.

  • L2. I adopt contract-tier record 7318741202. It PASSES with one should-fix, S1. Two points the zone asked about:

    • The SKILL.md lead-sentence cut is a true restatement. The heading ## Where to go, the task column and the Open first header carry the same sentence. The platform and ui entries have the same table without it.
    • Both ratchet raises equal their measured deltas. SKILL.md is 2224 → 2233, +9. rules/field-types.md is 4200 → 4566, +366. Both have zero headroom, under ruling 6513306068 letter B, and both row comments are true.
    • Every added sentence about exchange rates and units is checked against the code on main. No eval case is touched.
  • S1 (should-fix, paper): Fixes #38939 over-closes. Card acceptance note 3 is "Eval objects 22 and 24 pass with the skill on a re-run". It is NOT MEASURED, and nothing carries it. The card's own evidence for case 22 is that the turn read no skill file, so that re-run is exactly what shows whether the new text is reached. Close S1 in one of two ways:

    • rewrite the first line to Part of #38939, with no closing verb beside the number; or
    • record a with-skill re-run of objects 22 and 24 on the card before merge, and keep Fixes.

    I will confirm on the same head.

  • Not graded: the changeset's "or picklist" is wider than the measured failure, which was a bare text field. The paragraph also does not name ERR_UNIT_CODE_RETIRED or ERR_UNIT_DIMENSION_MISMATCH. Neither makes a written sentence false.

Next: after S1, the PR goes to the seat as Tier H (governed skills/**).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

L1 confirm · PR #38980 · head bf4e7c2 (unchanged) · 2026-12-01T17:13Z

S1 is closed, and L1 is ACCEPT on this head.

  • The first line now reads Part of #38939. No closing keyword binds the card.
  • The body's "What remains" line names card note 3, the with-skill re-run of eval objects 22 and 24, and assigns it to the eval seat. The card keeps pm:dispatched until that re-run is recorded.
  • l1-face is CLEAN at bf4e7c2: 31 success, 0 failed, 0 pending, with the PR-body guards re-run green.
  • With L2 7318741202 adopted, the PR goes to the seat as Tier H (governed skills/**).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

席位核对

ACCEPT — PR #38980 @ bf4e7c2be3 (Part of #38939; zone osa-ai). Checked 2026-12-01T17:14Z against GitHub.

  • Shape: draft, mergeable_state clean; skills/objectstack-data/SKILL.md, rules/field-types.md, two ratchet rows, one changeset (+82/-11).
  • Read myself: § Currency now says rates live in the platform's sys_exchange_rate (kept in Setup), never an app rate object or hook, and a missing rate is refused (ERR_EXCHANGE_RATE_MISSING); a new § Unit of measure teaches unitConfig (code on text; fixed/record on number), no default unitMode, exact uppercase UN/ECE codes or org codes in sys_unit. The Where-to-go row routes both. The two cuts are true restatements (L2).
  • Part of: card note 3 (with-skill re-run of eval objects 22/24) is the eval seat's; skills(objectstack-data): the bundle never names sys_exchange_rate or unitConfig, so an agent hand-builds an exchange-rate object and a free-text unit field (eval objects #22, #24) #38939 stays open and pm:dispatched.
  • Ratchet: SKILL.md 2224 → 2233 (+9) and rules/field-types.md 4200 → 4566 (+366), each the measured delta after in-file cuts, under ruling record 6513306068 letter B; no ruled cap is crossed.
  • Ungraded note carried: the changeset's "or picklist" is wider than the measured failure (L1); it is release prose only, the rule text it describes says the same, so it stands.
  • Gates: 31 success · 20 expected skip · 0 failed. Reviews: L2 PASS 7318741202; L1 7318801929, S1 closed by confirm 7318975967.
  • Landing: Tier H (skills/** plus a ratchet path). Handed off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: bf4e7c2be3abcf9a3a96c867f92c15f85816c4ab
Local-runs: none
Scope: skills/objectstack-data/SKILL.md, skills/objectstack-data/rules/field-types.md + scripts/check-skills-token-ratchet.mjs
Security-touching: no

Review time: 2026-12-01T17:18Z. Delta record on the same head as the first record of this session: the head did not move, and the PR body alone changed. Read: the PR body as it now stands, the commit messages of the branch, the card's state, and the check-runs on the head.

① Derived judgments

Unchanged from the first record: the diff is the same four files on the same head.

② Semver level

Unchanged. '@objectstack/skills': patch is right.

Clause-②: no. Unchanged, and still on the PR body.
Metadata-protocol: none. Unchanged, and still on the PR body.

③ Boundary flags

Unchanged, but for the one flag S1 carried: the with-skill re-run of eval cases 22 and 24 now has a carrier, the card itself, which stays open. SQL push-down: not applicable.

④ Design judgment

S1: closed

  • The PR body names the card as Part of, on its own line, with no closing verb beside the number. No closing keyword followed by an issue number is anywhere in the body, and no commit message of the branch binds the card.
  • The note is carried twice. The body's "What remains" line names card note 3, the with-skill re-run of eval objects 22 and 24, and says the card stays open with pm:dispatched until the eval seat records that re-run. The maintainer summary carries the same in one line.
  • The PR-body guards (claim · duplicate · Part-of · single-writer path) check-run re-ran on this head after the body edit and concluded success, as did Check Changeset. The card is open and still carries pm:dispatched.

The judgment of the two hits files and of the ratchet rows stands as written in the first record: nothing they rest on changed.

No must-fix, no should-fix.

Implemented-by: claude/issue-38939-data-skill-rate-unit
Reviewed-by: session_01WGufzhGA3zoCFquQgku4pm

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

维护者速读

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

2026-12-01T23:43Z · Landing seat: taking this Tier H pull out of the merge queue and back to draft (Governed Surface Queue Guard, remedy 1).

  • Reading: this pull is governed (Tier H) and has no APPROVED review from an account in GOVERNED_APPROVERS (os-zhuang). It was enqueued from an account outside that set, so every queue group that holds it fails the guard (docs(skills): the objectstack-automation entry carries a save notice's translation key and names the gate that judges a grant made from a flow #38971's group: run 46771525309), and the groups behind it fail with it. This is not a code failure.
  • Stroke: the seat sends the relay's pr_dequeue (cause seat-asks), then disables auto-merge and converts the pull to draft. Out of the queue and in draft is where a governed pull waits for its approval.
  • To land it: an APPROVED review from os-zhuang on this pull (any head; a later push does not expire it). The seat then lands it as ruling C says. Or the maintainer merges it by hand from an authorized account. The hand-off request above still holds.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 1, 2026
@objectstack-fleet
objectstack-fleet Bot marked this pull request as draft December 1, 2026 23:47
@os-zhuang
os-zhuang marked this pull request as ready for review December 2, 2026 01:31
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 4203db7 Dec 2, 2026
60 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-38939-data-skill-rate-unit branch December 2, 2026 01:54
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 2, 2026
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 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.

3 participants