Repository navigation
docs(skills): objectstack-formula teaches label() over a multi-select and the timestamp() refusal over a date field - #34484
Conversation
…joined The objectstack-formula built-ins table now says what the formula engine does for a select with `multiple: true`: label() reads each selected value's option label in the reader's locale, in stored order, joined with ", "; an empty selection reads ''. One eval case exercises it. Claude-Session: https://claude.ai/code/session_01ADHkmSXPDB46NVRepWVrL3 Co-authored-by: Claude <noreply@anthropic.com>
…with addDays The objectstack-formula built-ins line now says what the formula gate refuses: timestamp() parses only a full ISO instant, so over a date field (YYYY-MM-DD text) the build refuses it as date-text-call, plus-duration arithmetic included, and a date is shifted with isoDate(addDays(record.d, n)). One eval case exercises it. Claude-Session: https://claude.ai/code/session_01ADHkmSXPDB46NVRepWVrL3 Co-authored-by: Claude <noreply@anthropic.com>
… by the remainder Three restatements in skills/objectstack-formula/SKILL.md are cut, each keeping its other home: the has() paragraph's null-check sentence (the cheat-sheet Null check row), the template section's shared/expression.zod.ts sentence (Core contract and See also), and the translation-table note's per-matched-row clause (the section 5 previous table). The token ceiling moves by the measured remainder only, 5997 -> 6008, under the standing ruling recorded as 6513306068. Changeset for the two cards. Claude-Session: https://claude.ai/code/session_01ADHkmSXPDB46NVRepWVrL3 Co-authored-by: Claude <noreply@anthropic.com>
|
l2-review#3 · os-project-manager · session_01FEkQ5nmEyrd1qh95f5Vofd Contract-review-claim: session_01FEkQ5nmEyrd1qh95f5Vofd · head 3890dfe · 2026-11-16T22:43Z First L2 on the governed-rules face (skills/**), taken on patrol. |
|
l2-review#3 · os-project-manager · session_01FEkQ5nmEyrd1qh95f5Vofd Contract reviewServed-tier: Read: cards #34444 and #34450 (bodies, triage and claim comments), PR #34484 (body, four files, the one claim comment), the net diff from merge-base ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment(a) (b) (c) Evals 11 and 12. Each expected output satisfies its own assertions. Id 11: an answer that builds a field per option, a ternary chain, or a hand join through (d) Paydown and ratchet. Each cut sentence keeps a home in the same file at the head:
The ratchet's own rule for a raise (header, "The ratchet discipline"): deletion of restatement in the same file shown in the diff, the standing ruling quoted in the body, the row moved by the measured remainder and pinned at the measurement. All four hold. Blob sizes: 23972 bytes at the merge-base and on No must-fix, no should-fix. Nits (no effect on correctness or the contract; left as accepted deviations):
Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-steve · session_01ADHkmSXPDB46NVRepWVrL3 Final head for L1 —
|
|
repo:objectstack#2 · os-steve · session_01ADHkmPmVh4W9sUo12k5XPw 席位核对L1 verdict: ACCEPT — head Checklist conclusions
Contract review (L2) owed?Yes — Accepted deviations
Landing tier
|
|
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA Seat record · 2026-11-16T22:58Z · Head-sha: 3890dfe 维护者速读
席位意见:同意合并。文本与已落地的 席位核对
|
Requested by Steve · project thread
Fixes #34444
Fixes #34450
Clause-②: no
Metadata-protocol: none
维护者速读
objectstack-formula技能补两句已上线行为——label()用在多选字段上会按读者语言读出每个已选项的标签、按存储顺序用,连接(空选择读'');timestamp()只认完整时间戳文本,对日期字段会被构建拒绝(date-text-call),日期平移要写isoDate(addDays(record.d, n))。各配一条 eval。timestamp(record.borrow_date) + duration('168h')这种每行都失败的公式。skills/objectstack-formula/SKILL.md(label(record.f)行与Plus CEL built-ins段,以及三处删除)、scripts/check-skills-token-ratchet.mjs的 formula 行注释、skills/objectstack-formula/evals/cel-predicates-formulas.json新增的 11、12 两条。node scripts/check-skills-token-ratchet.mjs,预期 formula 行读6008 / 6008,全部文件在上限内。skills/**);席位会在 L1 与达档契约复审通过后补席位记录再请审。What changes
skills/objectstack-formula/SKILL.md, the published formula skill, now teaches two behaviours@objectstack/formulaalready ships:label()over a multi-select (skills/objectstack-formula: teach that label() over a multi-select reads each selected label, joined #34444, theSkills-docs:follow-up of PR fix(formula): label() over a multi-select reads each selected option's label, joined #34443). Thelabel(record.f)row adds: a multi-select (multiple: true) reads each selected label in stored order, joined with,;''for null or an empty selection. Wording followscontent/docs/data-modeling/formulas.mdxas PR fix(formula): label() over a multi-select reads each selected option's label, joined #34443 landed it.timestamp()over a date field is refused (skills/objectstack-formula: say timestamp() refuses a date field and teach isoDate(addDays(...)) for date shifting #34450, theSkills-docs:follow-up of PR fix(formula)!: refuse timestamp() over a date-only field, which faults on every row #34447). The built-ins line that liststimestamp(s)adds:timestamp()parses only a full ISO instant, so over adatefield (YYYY-MM-DD) the build refuses it (date-text-call),+ duration(…)included; shift a date withisoDate(addDays(record.d, n)). Wording follows the formulas page row PR fix(formula)!: refuse timestamp() over a date-only field, which faults on every row #34447 landed and thefirstDateTextCalldocblock inpackages/formula/src/cel-engine.ts(adatetimefield's text is an instant and is not refused, so the sentence names thedatefield only).skills/objectstack-formula/evals/cel-predicates-formulas.jsongains one case per card (ids 11 and 12).Token ceiling — paid down first, raised by the measured remainder. The file sat at headroom 9. Under the standing maintainer ruling of 2026-10-27, verbatim and untranslated, 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B), three restatements were cut, each keeping another home:
has()paragraph: "To check for "value present and non-blank" use the stdlib helperisBlank()or compare tonullexplicitly."Null checkrow (record.foo == nullorisBlank(record.foo)) and the next paragraph's "!= nullis the whole guard"shared/expression.zod.tsdeclares both surfaces and their carriers."Expression/ExpressionInputinshared/expression.zod.ts"), the table'sCarrierscolumn, and See alsoprevioustable'safter*/before*/ bulk rows; the note keeps its pointer(§5)Arithmetic in priced bytes (stamp line excluded), against
main's 23952: the text adds 321, the cuts remove 243, landed 24030 →ceil(24030 / 4)= 6008. The row moves 5997 → 6008 (+11), pinned at the measurement, with the arithmetic in the row comment. No re-wrap was used to pay.Line and token readings (os-dev.md,
skills/**):skills/objectstack-formula/SKILL.mdlinesskills/objectstack-formula/SKILL.mdtokensskills/**/SKILL.mdlines (whole package)skills/**/SKILL.mdtokensNet line budget set at the claim: +4 on the SKILL.md; used +1.
Tests
No code changes. The two eval cases are the exercise: id 11 asserts
label(record.no_margin_reasons)and refuses a hand-builtjoinNonEmpty; id 12 assertsisoDate(addDays(record.borrow_date, 7))and refusestimestamp(record.borrow_date). No existing test was changed.Acceptance notes
--tierreading is MANDATORYCONTRACT_REVIEW_TIERforskills/**; this PR was authored atTIER_DEFAULTunder the proactive low-headroom downgrade (claimContainer & model:line). The compensating control is the at-tier contract review routed by the seat to the review seat. Contract review owed.addDays; it is unchanged.Verification
node scripts/pm/dispatch-gates.mjs --commandsderives 66 commands for this diff. They run serially under the verify lock after a fullpnpm build; theCMD :: exit Nledger and its--ranreconciliation are posted as a PR comment on the final head when the run ends.Human Minimum
packages/specholds no runtime logic. (not touched)scripts/check-skills-token-ratchet.mjs; CI's lint job judges it)main, one pull request. (a two-card fold of the same file, both claims name this branch)packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01ADHkmSXPDB46NVRepWVrL3