Repository navigation
docs(skills): the data skill says precision is total digits and decimal places are scale - #39247
objectstack-fleet[bot] wants to merge 1 commit into
Conversation
…places are scale Claude-Session: https://claude.ai/code/session_01Utp6CbSkUoxdjW4XWwxBn4 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-bill · os-bill · session_01Utp6CYUove7YBXgHy4iEsr Contract reviewServed-tier: Inputs read: card #39213 (body and its 4 comments: first touch, unblock 7365687157, claim 7365744569, dev report 7366203157), PR #39247 (body, 3 files, net diff against ① Derived judgments
② Semver levelOne ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Nits (no effect on correctness or the contract; fix on a prose face or leave as a follow-up):
Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CYUove7YBXgHy4iEsr 维护者速读
席位核对ACCEPT — head
|
|
repo:objectstack@os-bill · os-bill · session_01Utp6CYUove7YBXgHy4iEsr 维护者速读
席位意见:ACCEPT。 |
Requested by Bill · project thread
Fixes #39213
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-data/rules/field-types.md: thenumberrow and thepercentrow (the only two lines underskills/**that nameprecision) now sayprecisionis the total digit count, at least 1, and that decimal places arescale. This followsPRECISION_LOWER_BOUND_MESSAGEinpackages/spec/src/data/field.zod.tsonmain.currencyrow is unchanged. It names neitherprecisionnorscale, so the skill still does not teachscaleon a currency field, where the spec refuses it.Field.*factory (the same sentence says "same schema"), and "and it implies nothing about the column" (the paragraph's bold opening already saysrequiredis not theNOT NULLdial).scripts/check-skills-token-ratchet.mjs: the file's row moves 4566 to 4576, pinned at the measurement.patchchangeset for@objectstack/skills.Size readings
main57d7b96)rules/field-types.mdskills/*/SKILL.mdtogetherThe gloss adds 100 bytes (50 a row). The two cuts remove 58 (11 and 47). Net +42 bytes, which is +10 tokens.
Token ratchet raise
The remainder after the cuts is 10 tokens. The row is raised by that measured remainder under the standing ruling of 2026-10-27, verbatim: 「A:先削重复,余额按实测提高」 (ruling record 6513306068), and under the standing note 7216253348 on the ratchet card for a remainder of at most 10 tokens, the maintainer's words of 2026-11-27 05:20Z, verbatim: 「后续遇到这种问题,能适当放宽token 的限制」.
Tests
No test changes: the diff is skill text, a ratchet row and a changeset. The skill's eval files were searched for a
precisionorscaleexpectation and none exists, so no eval contradicts the spec and none was edited.Local run at head
5339e262, the 67 familiesnode scripts/pm/dispatch-gates.mjs --commandsderives from this diff;--ranreconciliation:67 derived famil(ies) accounted for.node scripts/check-skills-token-ratchet.mjs(61 authored bundle file(s) within their ceilings) and its--self-test,pnpm check:role-word,pnpm check:skill-links,pnpm check:skill-identifier-liveness,pnpm check:skill-compatibility,pnpm check:doc-authoring,pnpm check:published-files,pnpm check:nul-bytes,node scripts/check-empty-changeset.mjs --base origin/main.PREREQUISITE NOT MET(they read builtdist/and this diff builds no package):check:doc-formula-expressions,check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure,check:sourcemap-no-sources-content. CI owns them.pnpm check:pm-dispatch-gatesdid not finish inside a 240 s local limit (exit 124). CI owns it.All six are derived only because the diff touches a file under
scripts/(the ratchet row).Live check
One paired probe, one repetition per arm,
claude -pon the container's subscription login (oauth_token, no API key set),--model haiku --effort medium, tools limited to reading files. Each arm is a scratch directory holding theobjectstack-databundle under.claude/skills/: the base arm withrules/field-types.mdfrommain57d7b96, the head arm with this branch's.Question asked: write the field definitions for
quantity, a number holding whole units with no decimal places, anddiscount, a percent shown with no decimal places.scale: 0on both, with a comment that the percent row does not listscaleand should be confirmed against the installed specscale: 0on both, no hedgeNeither arm wrote
precision: 0in this one repetition, so the probe does not reproduce the card's failure on the base text. It shows the head text gives the right spelling and removes the doubt onpercent.skill-evalswas not run: no eval case of the bundle asks about digit counts or decimal places, so there is no touched case to select.Acceptance notes
precision) says total digits, at least 1, decimal places arescale." Both rows naming it now say so in the same words.ratingandslider. Their rows list neither key and are left as they are.currencyrow does not say thatprecisionis accepted there or thatscaleis refused. Adding that is new teaching outside this card's acceptance; noted, not filed.Verification
Read first:
skills/objectstack-data/rules/field-types.mdlines 51 and 53 (the gloss), then lines 11 and 334 (the two cuts), then the row comment inscripts/check-skills-token-ratchet.mjs.Two-minute check:
node scripts/check-skills-token-ratchet.mjsprints61 authored bundle file(s) within their ceilings, andwc -c skills/objectstack-data/rules/field-types.mdprints 18304.Generated by Claude Code