Skip to content

docs(skills): teach a validation rule message's {{ }} holes - #38787

Merged
os-zhuang merged 2 commits into
mainfrom
claude/project-thread-h25bs8
Nov 30, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/project-thread-h25bs8

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Part of #37909 — PR 3 of the ruling's sequencing (skills and docs), claim amendment 5 (7279412658). PR 1 (#38687, merged as 9cbb41b) is the doors; PR 2 (#38736, merged as 49c09ed) is the render. This PR teaches what the merged tree does.

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:没有运行时变化;技能 objectstack-data 与文档「Validation metadata」页开始教规则提示语里的 {{ record.字段 }} 占位、格式化器、币种规则(你选的 A)、看不到的字段留空、译文先填、提示语是纯文本。
  • 为什么做:维护者已裁(P3);前两步已合入,这是第三步,让写元数据的 AI 和人知道怎么写、写了会显示什么。
  • 出错会怎样:最坏是教错一句,AI 写出的提示语被发布校验拒(会点名正确写法)或某个占位显示为空;不影响任何保存是否被拒。
  • 要你做什么:skills 是受管面,请 os-zhuang 审批;ratchet 行按「A:先削重复,余额按实测提高」抬了 235 个 token(先删了 699 字节重复)。

What changes

Ruling P3 (card comment 7239726323), the currency ruling A (7277046538), and the items PR 1's and PR 2's contract records left to this PR.

  • skills/objectstack-data/rules/validation.md gains § Messages — Record Values in Holes: the record / previous roots (previous empty on insert), one segment, own fields; the formatter whitelist with | currency:EUR; what the doors refuse (a single brace, a read through a field, another root, logic); a bare | currency in the organization's default currency, and with none set that hole empty while the server log names the setting (ruling A); a field holding its own currency names the code or uses | number:2 (PR 2 contract record, E2); a field the person whose write was refused cannot read, or sees masked, renders empty, default: included; the translation takes the same holes and is filled first; the sentence is plain text (PR 2 contract record: "PR 3's docs should say the sentence is text").
  • content/docs/data-modeling/validation.mdx — the message row of Common Properties points at a new § Messages with a worked example, the two roots, the formatter table, currency, the field floor (including writes an automation makes on someone's behalf, and a person-less system write), translations and plain text.
  • content/docs/ui/translations.mdx — the one bullet that said a validation message is "substituted whole — there is no interpolation … {variable} placeholders in it are not filled", false since PR 2, now says a translation fills the same {{ }} holes, translation first, the fallback, and that a single brace is refused at publish.
  • packages/spec/src/migrations/entries/semantic/19.validation-rule-message-template-holes.ts — PR 1's contract record N3: the example renamed the field between FROM ({received}) and TO (record.received_amount); FROM now reads {received_amount}. One word; nothing else in the entry moves.

Token ratchet (scripts/check-skills-token-ratchet.mjs)

skills/objectstack-data/rules/validation.md had no headroom (3862 / 3862). Paid down first inside the file: § Incorrect vs Correct and its table-of-contents entry are deleted, since its one example (a rule with no events runs on insert and update; scope it with events: ['update']) restates § Events, which stays. -699 bytes cut, +1638 added: 15448 -> 16387 bytes (+939) -> ceil(16387 / 4) = 4097 tokens; the row moves 3862 -> 4097, the measured remainder, pinned at the measurement. Raise path: the standing maintainer ruling 2026-10-27 「A:先削重复,余额按实测提高」 (ruling record 6513306068). SKILL.md gains no byte. No other row moves.

Outside the original claimed file surface

The seat widened the surface by its relay of 2026-11-30T13:21Z: content/docs/ui/translations.mdx (that one bullet), the ratchet row, the .changeset note, and the one word in the semantic entry.

Acceptance notes

Verification

Head 17319d01f6c6dfc2eb9b7c9ef0daebf764eed391, on main 49c09ed902.

  • Full build: bash scripts/pm/os-verify-lock.sh -c 'pnpm build --concurrency=2' → VERDICT command-exit 0 (123/123 tasks).
  • Derived gates (node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack, re-derived after the last commit, same 133): each run with stdin closed, recorded cmd :: exit N. All 133 exit 0.
    • First round on 995a1318c6: 132 green, pnpm check:skill-links red — the table-of-contents link #messages--record-values-in-holes did not match the heading, whose code span slugs to messages--record-values-in---holes. Root fix in 17319d01f6: the heading drops the code span (its body shows the holes), the link now resolves, and the ratchet row is pinned at the new measurement (4097). The 15 skills / changeset / ratchet gates were re-run on the new head, all exit 0; no other file changed.
  • node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran=FILE → 133 derived, 133 run, 0 NOT-MEASURED, 0 UNRUN.
  • node scripts/check-skills-token-ratchet.mjs and --self-test → exit 0; node scripts/check-skill-links.mjs → 290 links, 161 fragments resolve.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmQ6vV3YvhJWKF1gSDs

The objectstack-data validation rules, the validation docs page and the
translations page now teach what a refused write's sentence does since rule
messages render: the record and previous roots, the formatters, the tenant
currency (an empty hole with the setting named in the log when none is set),
the field floor, translation first, plain text. The upgrade entry's example
names the same field before and after.

Claude-Session: https://claude.ai/code/session_01ADHkmQ6vV3YvhJWKF1gSDs
Co-authored-by: Claude <noreply@anthropic.com>
The § Messages heading carried a code span whose GitHub slug is
`messages--record-values-in---holes`, so the table-of-contents link went
dead. The heading drops the code span (its body shows the holes), and the
validation.md ratchet row is pinned at the new measurement, 4097.

Claude-Session: https://claude.ai/code/session_01ADHkmQ6vV3YvhJWKF1gSDs
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m 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 30, 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 1 changed package(s)), so this run has no opinion about the docs.

What this run could not see

Coarse fallback — 182 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 c4472c86319818fa588f2748f022d53eff3a1f9a → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB
L1-b, the seat's L1 thread · 2026-11-30T15:54Z · first review

席位核对

ACCEPT @ 17319d0 (#37909 PR 3, Part of). The PR changes 6 files, +109/−37, under claim amendment 5 (7279412658).

I read every teaching sentence against the merged code at this head:

  • rule-message-render.ts
  • engine-rule-message-rendering.ts
  • rule-validator.ts (authoredRuleMessage)
  • the formula FORMATTERS and TEMPLATE_FORMATTERS
  • validate-rule-message-templates.ts
  • secret-fields.ts

The four points the zone asked about:

  • Currency (ruling A) is TRUE. Take an argument-less currency hole when the write carries no tenant currency (currencyDefaultRefusal is non-null). Only that hole is blanked before the engine runs (tenantCurrencyHole), so the rest of the sentence still fills. warn names the rule (the subject) and Setup → Localization localization.currency. A field's own currency is never read: the formatter gets only the value and arg ?? currency, so "name the code or use number:2" is the right remedy. currency:eur is refused, so "ISO 4217 in capitals" is true.
  • default: does not fill a blanked hole: TRUE. blankUnshowableHoles replaces the whole hole, formatter included, with '' before default could run. That covers an unreadable field, a masked field, a credential field (collectMaskedReadFields: secret, and password off a better-auth object), an internal field, and the case where security cannot be asked. Masked means getReadableFields minus getQueryableFields, or the maskingRule fallback. "An elevated write is worded for the person it was made for, and a user-less system write keeps the system's answer" matches readerContext. "Every hole empty and the log says why" matches unanswered.
  • Time zone is TRUE where the write carries the request's context. datetime (short/long) renders in ExecutionContext.timezone, and iso stays UTC. "UTC when none is set" holds because the request context resolver defaults timezone to 'UTC'. The formatter itself falls back to the runtime zone. A nit at most: an in-process write with no timezone renders in the server's zone, and that is out of scope for an author-facing page.
  • The translation goes first: TRUE. authoredRuleMessage renders the translation first. If it does not render, warn names it (objects.<object>._validations.<rule>.message) and the authored message is filled instead. A missing key falls back to the authored message. One case the pages do not need to state: a tenant's rewrite of a packaged rule shows as written in every locale (ADR-0029 D9.2a). That is unchanged, and nothing on the pages contradicts it.

Also checked

  • Roots. previous is empty on insert: values.previous is null, and the hole is ''. "Plain text" is true: the result is the engine's string, with no markup step.
  • Door refusals. The validation.mdx paragraph lists: a single brace or ${}, another root, a read through a field, an undeclared field, and logic in a hole. All match steps 1 to 3 of the lint rule. "A stored rule keeps loading and is judged at its next save" matches its header. "Values are formatted in the language the refusal is negotiated in" matches messages.locale.
  • The formatter table is true row by row: percent is a 0–1 ratio, truncate cuts with …, date:iso, and datetime:long/iso. It omits json and the medium styles, which the door also accepts. It does not claim to be complete, so this is not a defect.
  • translations.mdx. The old "substituted whole, no interpolation" bullet is now false, and its replacement is true.

Ratchet and the removed section

  • validation.md grows from 15448 to 16387 bytes; ceil(16387/4) = 4097, which matches the new ceiling and its comment.
  • The removed § Incorrect vs Correct is covered by § Events (the three events lines, with the insert/update default), so the paydown loses nothing.
  • The entry's one-word fix ({received} → {received_amount}) makes its before and after name the same field. The @objectstack/spec patch line covers it.

Declarations: Clause-②: no and Metadata-protocol: none hold; the diff is text and a ratchet number only. Part of #37909 is right: this is PR 3 of 3, and the card's close is the seat's.

Gates: /mnt/project-files/objectstack-seat3/37909-pr3-gates-ran.txt records 133 lines, all exit 0. Check-runs at this head (filter=all): 12 success, 11 skipped, 28 in progress, 0 failure. This ACCEPT does not cover the runs still in progress.
Governed: Tier H (skills/**), so it stays draft. L2 is the seat's, then os-zhuang.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 17319d01f6c6dfc2eb9b7c9ef0daebf764eed391
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.validation-rule-message-template-holes.ts, skills/objectstack-data/rules/validation.md + scripts/check-skills-token-ratchet.mjs
Security-touching: yes
Rule-change-verified: none

PR #38787, card #37909 (PR 3 of ruling 7239726323: skills and docs). Six files, +109 / -37. Read: the card body and its seventeen comments (rulings 7239726323 and 7277046538, claim amendments 5 and 6, the dev report 7283754747), the PR body, the file list and the net diff, the five changed source files at the head, and the check-runs on the head. main was read at 9bb27620ba, which holds PR 2's merge 49c09ed902. The two docs pages are outside hits; they were read sentence by sentence as well, because the brief's face names them.

① Derived judgments

  • Accept-set: none changes. No schema, no door, no renderer line moves. The diff is prose in a skill and two docs pages, one word in a string of a semantic entry, one CEILINGS row, and a changeset. Right: the doors and the render are PR 1 and PR 2, both on main.
  • Public surface: the replacement text of semantic entry validation-rule-message-template-holes changes by one word in its FROM example ({received} to {received_amount}). It is published text of @objectstack/spec, not a contract member. Right. No other copy of the old example exists on main (one hit for is below {received}, this file).
  • Skill surface: skills/objectstack-data/rules/validation.md gains one section and loses one. 15448 to 16387 bytes at the head, measured on the fetched file; ceil(16387 / 4) = 4097. Right.
  • Ratchet: exactly one CEILINGS row moves, skills/objectstack-data/rules/validation.md 3862 to 4097 (+235), pinned at the measurement with no headroom. The file's diff against main is +11 / -1: ten comment lines and the row. Right.
  • Gate verdicts on the head: 70 check-runs at the time of reading; 21 success, 12 skipped, 37 in progress, none failed. Success so far includes Check Changeset, Check Documentation Links, Governed Surface Queue Guard, the PR-body guards, Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · docs & code guards, Lint · scoped · tooling self-tests, Spec property liveness and Type Check · source gates. Still running: Build Core, the Test Core and Test UI shards, Type Check · workspace, · consumer gates and · debt ledger, Type Check UI, Lint · PM dispatch-gates, Build & E2E UI, Live E2E UI. This record judges the contract; the seat reads the remaining conclusions before it adopts the record.

② Semver level

The changeset .changeset/37909-rule-message-skills-docs.md declares @objectstack/skills patch and @objectstack/spec patch. Both are right: the skill text is taught prose with no accept-set change, and the spec change is one word in an upgrade entry's example. Its body describes the tree as the diff leaves it. Check Changeset is success on the head. Clause-②: no on the PR body is correct: nothing published is narrowed or widened. Metadata-protocol: none is correct for the same reason.

③ Boundary flags

The dev report (7283754747) carries no open_questions and "deviations: none beyond the seat-approved surface amendment". Each item, answered:

  • Surface widened past claim amendment 5 (content/docs/ui/translations.mdx, the ratchet row, the changeset, the semantic entry word): covered by claim amendment 6 (7282407600), which names each file. Accepted.
  • skills/objectstack-data/SKILL.md and references/_index.md are in the claimed surface and not in the diff: correct, the new section sits in a rules file the table of contents of that file already serves, and SKILL.md gains no byte.
  • First round red on check:skill-links, fixed in the head commit by removing the code span from the heading: confirmed in the head file. The heading is ## Messages — Record Values in Holes and the table-of-contents link is #messages--record-values-in-holes. Lint · repo & tooling gates is success on the head.
  • Out of scope as reported (PR 1's N4, PR 2's N3, the deprecated ObjectValidationEngine audit, objectql/service-automation: an elevated context that names a person but carries empty permission arrays is read with the member baseline alone (rule-message reader and runAs:user de-elevation) #38759): none is in this diff, and none is needed for a taught sentence to be true. Left.
  • "No eval case": the card carries no eval prompt and the file surface holds no eval file. Accepted.

SQL push-down: not applicable. The diff holds no query, no id materialisation and no join.

Security: skills/objectstack-data/rules/validation.md is under skills/**, and its new section teaches field-level-security behaviour its path does not show ("A field the person whose write was refused cannot read, or sees masked, renders empty, default: included"). The line above reads yes, and the seat adopting this record adds the security label; the PR carries documentation, size/m and tooling today.

Rule change: no hits path is under .claude/**. The ratchet row is raised on the standing raise path the earlier rows of the same file cite (「A:先削重复,余额按实测提高」, ruling record 6513306068), quoted in the row comment and in the PR body.

④ Design judgment

(1) skills/objectstack-data/rules/validation.md, § Messages, sentence by sentence against main.

  • "message is a {{ }} template: a hole names one of the object's own fields, one segment deep, under record ... or previous ..., with at most one formatter." Holds. authoredRuleMessage (packages/objectql/src/validation/rule-validator.ts) fills the sentence through renderRuleMessage; the roots are VALIDATION_RULE_MESSAGE_TEMPLATE_ROOTS; holeShapeRefusals (packages/lint/src/validate-rule-message-templates.ts) refuses a bare root, a read through a field and an undeclared field; judgeHoleFormatter refuses a second formatter (one-formatter). All five rule types reach the renderer (checkStateMachine, checkPredicate for script and cross_field, the format and json_schema arms, and a conditional branch through the same calls).
  • "previous (the stored row before an update; empty on insert)". Holds on insert (previousBinding answers null; the renderer blanks the hole) and on every by-id update, where the prior row is always read. One narrow seam differs: N1.
  • The example Total {{ record.total_price | currency }} is below what was received ({{ record.received_amount | currency }}). passes the doors and renders. It is an unmarked fragment, which the file's own header says check:skill-examples skips.
  • The formatter list. Every name listed is in FORMATTERS (packages/formula/src/template-engine.ts) with the argument form shown: number:2, currency:EUR, date:long, truncate:80, default:'n/a'. The list is not the whole whitelist: N2.
  • "A single-brace {total}, a hole through a field ... or over another root ... and logic in a hole are refused by os validate and at publish." Holds. ruleMessageTemplateIssues runs closedScopeTemplateRefusal (single brace, other root), then compiles the template (logic, unknown formatter), then judges the hole shape; every finding is an error, and validate-expressions.ts calls it for the authored message and for the publish gate's object and translation writes.
  • "Bare | currency formats in the organization's default currency (Setup → Localization). With none set, that hole renders empty and the server log names the setting." Holds, and it is ruling A (7277046538). blankUnshowableHoles hands an argument-less currency hole with no tenant default to tenantCurrencyHole, which returns the empty string and warns naming the rule, Setup → Localization and localization.currency. The rest of the sentence still renders, because the hole is blanked before the engine's whole-sentence refusal can meet it.
  • "A field holding its own currency names it: | currency:EUR, or | number:2." Holds: the renderer applies no formatting by field type (ruling parameter 5), so a bare | currency never reads a field's own currencyConfig.
  • "A field the person whose write was refused cannot read, or sees masked, renders empty, default: included." Holds. showableFields (packages/objectql/src/engine-rule-message-rendering.ts) is getReadableFields narrowed by getQueryableFields, less credential and internal fields, asked for the person on an elevated write that names one. A hole over a field outside the set is replaced whole by the empty string before the render, so its default: formatter never runs.
  • "The verdict never depends on the sentence." Holds: the rule is judged before its message is rendered, and a template that does not render falls back to text, never to a different verdict.
  • "The translation at objects.<object>._validations.<rule>.message takes the same holes and is filled first; if it does not render, the authored message is filled instead." Holds: authoredRuleMessage renders the translated template first and, on ok: false, warns naming the translation and renders rule.message. The translation is judged at the doors by ruleMessageTranslationIssues with the same three steps.
  • "The sentence is plain text: a value shows as stored, never as markup." Holds for the server: renderRuleMessage returns a string and escapes nothing, and the violation's message is that string.

No taught sentence states something the tree does not do on the write paths an author meets. The section teaches each of the ruling's parameters an author acts on (1, 3, 4, 5, 6, 7) and ruling A, and says nothing of P2 or of implicit formatting.

(2) The removed § Incorrect vs Correct. Its one example is a rule with no events and the same rule with events: ['update']. § Events, which stays, states the default (['insert', 'update']) and shows the ['update'] spelling. Only repeated text left the file: 699 bytes of removed lines (the section, its heading and the two table-of-contents lines the new one replaces). No other file links to validation.md#incorrect-vs-correct.

(3) scripts/check-skills-token-ratchet.mjs. The row comment's arithmetic agrees with the measured file: -699, +1638, 15448 to 16387 bytes, 4097 tokens, +235. The row is pinned at the measurement, so the next byte added to the file fails the gate, as the raise path requires. No other row moves.

(4) 19.validation-rule-message-template-holes.ts. One line changes, one word. FROM is now Total {total_price} is below {received_amount} and TO stays Total {{ record.total_price | currency }} is below {{ record.received_amount | currency }}, so both name the same two fields. This closes PR 1's contract review N3 as the brief states it. The entry's id, version and every other string are untouched.

(5) content/docs/ui/translations.mdx. The replaced bullet now says: both the authored message and its translation are templates over record and previous; the write path picks the translation and fills it first; one that does not render falls back to the authored message, filled the same way, with the translation named in the server log; a key the bundle does not carry falls back to the authored message; a single brace is refused at publish. Each clause agrees with authoredRuleMessage and with the publish gate's translation write. The sentence it replaces ("substituted whole — there is no interpolation") is false on main since PR 2. The link /docs/data-modeling/validation#messages resolves to the heading this PR adds; Check Documentation Links is success.

(6) content/docs/data-modeling/validation.mdx, § Messages. Read against the same code. The roots table, the list of what the doors refuse (including ${total_price} and an undeclared field), "judged at its next save", the formatter table, the currency paragraph, the field floor (the elevated write asked for the person, a person-less system write keeping the system's answer, every hole empty with the cause in the log when the field security cannot be asked), translations and plain text each agree with the tree. The worked example is a valid cross_field rule, and its rendered sentence is what en-US and a USD default produce. One qualifier is loose: N3.

Tried to break it. A hole with default: over an unreadable field (blank, confirmed). A bare | currency with no tenant currency beside a second filled hole (the second fills, confirmed). A translation carrying a single brace (refused at the translation write). A previous hole on an insert-only rule (accepted at the doors, renders empty, as taught). A multi-row update: N1.

Findings.

No must-fix, no should-fix.

  • N1 (nit) — On a predicate (multi-row) update of an object whose only rules are format or json_schema, needsPriorRecord is false, the engine hands the validator previous: null with the payload alone (engine-update.ts, the no-prior branch), so record holds only the written fields and a previous hole renders empty although the write is an update. rendersRuleMessageHoles is not counted in that gate. The skill's "(the stored row before an update; empty on insert)" and the docs page's "the stored row with this write applied" do not describe that seam. A by-id update always has the prior row, and every script, cross_field, state_machine and conditional rule forces the per-row read, so the sentences hold on the paths an author meets. The gap is in merged code outside this diff. Follow-up card for the seat: count a hole-carrying message in the bulk seam's row read, or teach the limit.
  • N2 (nit) — The skill's formatter list and the docs table read as the whitelist and leave out json, and the medium style of date and datetime, which the doors accept. Nothing listed is wrong. Accepted deviation.
  • N3 (nit) — The docs table says a datetime renders "in the organization's time zone, UTC when none is set". That holds wherever the write's context carries the resolved localization, which answers UTC for an unset zone. A write whose context carries no timezone at all renders in the server process's zone (template-engine.ts: "Unset → Intl uses the runtime zone"). Docs page, outside hits. Accepted deviation, or a prose fix with N1's card.
  • N4 (nit) — The skill does not say that an engine or kernel with no security service registered renders every hole empty (fail closed, with the cause in the server log). The docs page says it. An author who tries the example on a bare engine sees blanks and no refusal. Accepted deviation; a prose fix would need the ratchet row re-measured.

Implemented-by: claude/project-thread-h25bs8
Reviewed-by: session_01ADHkmSAjFEZHRpRq3WCj6z

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

维护者速读

  • 用户能看到什么变化: 只改了文字。objectstack-data 技能的 validation 规则文件新增一节,讲校验规则消息里的 {{ }} 占位:可用的根是 record 和 previous,有哪些格式化器,裸 | currency 在组织未设默认币种时渲染为空,读不到的字段渲染为空,以及翻译优先。两页文档也照这个口径改了。语义迁移条目的示例改了一个词。
  • 为什么做: 卡 Validation rules: an authored rule message cannot name record values, so a refusal cannot say "total 8,000 is below received 10,000" #37909 的第 3 个 PR(技能和文档)。第 1 个 PR(占位规则)和第 2 个 PR(渲染)都已在 main 上,这个 PR 教的就是合入后的行为。
  • 出错会怎样: 不改任何代码行为,最坏是文字说得不准。撤销合并即可恢复。
  • 要你做什么: 这个 PR 动了 skills/**,属于受管路径,按 Tier H 需要你批准。它不符合低风险技能通道:有 security 标签(技能里讲了字段级权限的效果),还改了 scripts/ 的 ratchet 行,并发布 @objectstack/spec patch。批准后由席位落地。

Seat opinion: land as is.

席位核对

ACCEPT at head 17319d01f6c6dfc2eb9b7c9ef0daebf764eed391 · Tier H (governed skills/**; low-risk skills arm refused: security label, scripts/ path, @objectstack/spec release) · Part of #37909

  1. Shape: six files, +109 / -37: one new section in skills/objectstack-data/rules/validation.md (one repeated section removed), two docs pages (content/docs/data-modeling/validation.mdx, content/docs/ui/translations.mdx), one word in a semantic entry's FROM example, one CEILINGS row in scripts/check-skills-token-ratchet.mjs (3862 → 4097, pinned at the measurement), and a changeset.
  2. Premise: every taught sentence was read against the merged doors (PR 1, feat(lint)!: a validation rule's message is a {{ }} template over the judged record, and a single brace there is refused #38687) and render (PR 2, feat(objectql): a validation rule's refusal fills its message's {{ }} holes with the judged record's values #38736) on main, and holds on the write paths an author meets (L2 7284010448 ④).
  3. Gates: on this head 63 success, 18 skipped, 0 failed; mergeable clean. patch on @objectstack/skills and @objectstack/spec; Clause-②: no, Metadata-protocol: none. The ratchet row rides the standing raise path (ruling record 6513306068).
  4. Accepted deviations: N2 (the formatter list is not the whole accepted set), N3 (a write context with no time zone renders in the process zone; docs page), N4 (the skill omits the no-security-service fail-closed case; the docs page has it).
  5. Out of scope and where it went: N1, the multi-row update seam where record and previous holes can render empty, → finding objectql: on a predicate (multi-row) update, a rule message's record holes over unwritten fields and every previous hole render empty when the object's only rules are format / json_schema #38788.
  6. Landing: L1-b ACCEPT 7283837367 and L2 PASS 7284010448 on this head; Security-touching: yes, security label added. Lands after os-zhuang approves.

ACCEPT → comment 7283837367 · Contract review → comment 7284010448

@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 30, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 30, 2026 18:14
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit fea0712 Nov 30, 2026
89 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-h25bs8 branch November 30, 2026 18:43
@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 Nov 30, 2026
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…jectstack-ai#38795)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi99QsuPTPkC1uKm2mViUT3Rf)_

Part of objectstack-ai#34770

Clause-②: no
Metadata-protocol: none

`Part of`, not the closing form: the catalog-size line of the card's
Done-when is not met by this PR. This is PR 4 of the per-skill split,
under claim 7280537583 and its amendment 7280758590.

## 维护者速读

- 用户能看到什么变化:用户无感。发给 AI 的「表达式与公式」技能说明,入口文件从约 24 KB 缩到 9
KB:入口只留开工前四项检查、一段可照抄的示例、一份可用函数名单、八个「写得通过却算错或被拒」的坑,以及其余内容去哪里查的指路表。
- 为什么做:这是「技能目录瘦身」的第七份(界面、数据、自动化、平台、跨大版本升级、多语言翻译六份已完成)。入口文件每次都整份装进 AI
的上下文,越长越贵,也越容易漏读。
- 出错会怎样:只动教 AI 的文字,没有产品行为变化;风险是 AI
少读一段后答错。改动前后都跑了评测:十四道题每题三遍共四十二次,最新一版通过三十九次,改动前是三十二次;没有哪一题是改动后才每遍都不过的。合约审查提的两处应改(示例里一条判断在新建记录时会报错;一句「算不出就中止写入」说得过宽)已在入口内改好。可整笔撤回。
- 要你做的:无。席位核对与合约审查通过后,会按治理规则请审批人批准。

## Rulings this executes

- **Card Scope** (decision record on the card, S3 = A): the entry file
holds first checks, at most about 8 traps and a routing list; 6–9 KB,
hard cap 500 lines; restated option lists and function tables go behind
a pointer; no trap is removed until a publish-time check covers it or it
stays inline.
- **7128031203** fork 4 = A: ratchet rows are pinned at the measurement
with zero headroom, and the sum of ceilings does not rise. Here no row
rises and none is added.
- **7168461386** = A: text an eval shows the entry lost goes back into
the entry, paid inside the entry. Used three times in this PR (see Eval
parity).
- **Ruling record 7249189592**, the parity rule: a case whose result
flips between runs on both trees is unstable on both and does not block;
a case that fails on every run of the head while `main` passes is a
regression.
- **Seat order for this PR** (claim amendment 7280758590): same shape as
PR 3 (objectstack-ai#38663); no new file under `skills/` (a new file needs a new
ratchet row, which stays with a human); the cut, not a move, lowers the
catalog total.

## What changes

**The entry file becomes a router.**
`skills/objectstack-formula/SKILL.md`: 24,377 → 8,999 bytes, 485 → 135
lines, 6,088 → 2,243 tokens. Frontmatter (description, tags) is
byte-identical. It now holds:

- `## First checks`, four: the installed contract wins over the
`compatibility` line; read the object's declared fields and the contract
of the key that takes the expression, and never recall a function; bare
CEL under the `F`, `P` or `cel` tag, never braces round a field
reference, with the Salesforce spellings it keeps; verify with `os
validate`, `os build` or the `validate_expression` agent tool.
- One type-checked block, eight lines: a text formula with every
nullable operand coalesced, a guarded divisor, the two date wraps, a
`label()` formula, a null-guarded predicate, the transition predicate
behind its insert guard (`previous != null && …`), a seed value.
- `## Scope and functions`: the roots an expression can read, and every
advertised function name as a call form, in five lines.
- `## Traps`, eight: `has()` is not a null check on a server-evaluated
predicate; action `visible` / `disabled` are the exception; a transition
compares `previous`; a list field is never compared with a scalar; a
`date` / `datetime` field is its ISO text; `label()` and the working-day
functions belong to a formula or a stored field's `expression`; a
dynamic seed value is the `cel` tag; a `template` is not CEL.
- `## Where to go`: six rows (the contract, the published formulas page,
and the four sibling skills). Three run-time facts ride the rows that
send them elsewhere: a `formula` field is virtual; a view filter is not
CEL; a form-view `visibleWhen` faults open.

**No text moved.** This skill has no hand-written reference file
(`references/_index.md` is generated), and a new file needs a new
ratchet row. So what left the entry was cut, each behind what now
answers it:

| Old entry section | Now |
|:--|:--|
| Opening callout (bare CEL, no braces) | First check 3, which describes
the mistake and no longer spells it. |
| Skill Boundaries | The frontmatter description and the routing table.
|
| Core contract | The opening paragraph (the envelope, the three
dialects, no `js`) and first check 3 (structured output carries the
envelope). Cut: the engine behind each dialect and the helper column;
the block shows the three CEL tags, and the `cron` and `tmpl` tags are
in the contract. |
| CEL syntax cheat-sheet | The roots line of `## Scope and functions`,
with `os.org` still limited to `id` and `tier`. Cut: the operator rows,
which are plain CEL. The list-equality paragraph is trap 4, with the
three positive membership forms; the three negated forms are cut (the
same guard, negated). |
| `has()` is NOT a null check | Traps 1 and 2. The publish-time refusal,
the flow condition's bare name and the action guard all stay. |
| ObjectStack CEL standard library | The function list keeps every name.
Cut to the published page: what each function returns and the
per-function notes. Kept as traps: the date text rule and the helpers
that replace date arithmetic (5), the option label and the working-day
placement (6). |
| Mandatory patterns 1 to 5 | The type-checked block carries one line
for each; trap 7 is the seed rule and trap 3 the `previous` rule. Cut:
the wrong-on-purpose examples, and the table of where `previous` is
bound with the per-row rewrite rule, both of which
`skills/objectstack-data/references/data-hooks.md` carries. Kept in trap
3: a hook `condition` that cannot evaluate aborts the write, and the 10
000-row refusal. |
| Mechanical translation table | First check 3 keeps nine rows (the five
operators, `ISBLANK`, `OLD` / `NEW`, the bare field). The rest is on the
published page; each legacy spelling fails the build. The flow exception
is in trap 1. |
| Surfaces that take an Expression | Cut to the contract. Kept: a
bare-string `defaultValue` is a literal (first check 3); a `formula`
field is virtual and a view filter is not CEL (routing row 3); a
form-view `visibleWhen` faults open (routing row 6); a `SharingRule`
condition must lower to a filter (trap 4). |
| Cron and template surfaces | Trap 8 keeps the template grammar, the
empty render of a missing path and the two currency forms. Cut: the cron
grammar and both dialects' carriers (the contract). |
| Verify your work, See also | First check 4 and routing row 1. |

**Sizes** (bytes · lines · ratchet tokens):

| | before (`main` at `6cc2024e`, merged in) | after (`50530b6b`) |
|:--|--:|--:|
| `SKILL.md` (entry) | 24,377 · 485 · 6,088 | 8,999 · 135 · 2,243 |
| `skills/objectstack-formula/**` (4 files) | 37,883 · 701 | 22,505 ·
351 |
| all 14 `SKILL.md` together | 180,656 · 3,406 | 165,278 · 3,056 |
| whole `skills/` tree (115 files) | 1,214,886 | 1,199,508 |
| whole tree without `evals/` (73 files) | 855,732 | 840,354 |
| ratchet: authored tokens = sum of all ceilings | 196,275 | 192,430 |
| ratchet: bundle total, tokens | 300,926 | 297,081 |

The `main` column moved since the first delivery (it was read on
`f576dee5`): `main` lowered another skill's row by one token, so its sum
of ceilings is 196,275. The bundle total on `main` is the head's reading
plus this row's fall; the entry is the only file under `skills/` that
differs.

**Budget reading:** the entry is 8,999 B, inside the card's 6–9 KB line,
and 135 lines against the 500-line cap. The whole catalog is 15,378
bytes smaller, all of it cut.

**Ratchet row** (`scripts/check-skills-token-ratchet.mjs`), pinned AT
its measurement, zero headroom: `skills/objectstack-formula/SKILL.md`
6088 → 2243 (−3,845): `ceil((8999 − 27) / 4) = ceil(8972 / 4) = 2243`.
It is the skill's only row. The sum of all ceilings goes 196,275 →
192,430. The first delivery pinned the row at 2237 (8,974 bytes); the
review round's two fixes cost 27 bytes, one blank line and one comma pay
2, and the row follows the measurement up by 6 tokens. Against `main` no
row rises.

## Tests

### Eval parity

Judged by ruling record 7249189592. **No case fails on every run of the
head while `main` passes.** On the current head (`50530b6b`, the review
round's text) the with-skill arm passes 39 of 42 turns against 32 of 42
on `main`'s text; on the first delivery's text (`327903f6`) it passed 41
of 42. The three misses on the current head are two runs of case 7,
which flips on both trees, and one run of case 13, a correct condition
written without the `P` tag; case 13 read 6 of 6 on a second reading.

Skill evals, both arms, one command line for every full round: `pnpm
--filter @objectstack/scenarios skill-evals --skills objectstack-formula
--repeats 3 --concurrency 4`, with the model and effort flags PR 3's
rounds used (the extra readings add `--case` and `--repeats 6`); CLI
2.1.332, subscription login. 14 behaviour cases in
`evals/cel-predicates-formulas.json` and 7 trigger cases in
`evals/triggers.json`, both untouched.

| reading | tree | with-skill | no-skill | with-skill cases below 3/3 |
|:--|:--|--:|--:|:--|
| before round | `f576dee5` | 32/42 | 0/42 | 4 (0/3) · 7 (2/3) · 8 (2/3)
· 9 (2/3) · 12 (0/3) · 14 (2/3) |
| first router head | `75b00bcc` | 37/42 | 0/42 | 10 (0/3) · 11 (2/3) ·
12 (2/3) |
| second head | `b93fb9bf` | 40/42 | 0/42 | 11 (1/3) |
| third head | `9643441f` | 40/42 | 0/42 | 7 (1/3) |
| third head, cases 7 and 11, six repeats | `9643441f` | 8/12 | 0/12 | 7
(3/6) · 11 (5/6) |
| `main`'s text, cases 7 and 11, six repeats | `f576dee5` text | 7/12 |
0/12 | 7 (1/6) |
| fourth head | `822cd547` | 40/42 | 0/42 | 4 (2/3) · 7 (2/3) |
| first delivery's text, full round | `327903f6` | 41/42 | 0/42 | 11
(2/3) |
| **review round's text, full round** | `50530b6b` | **39/42** | 0/42 |
7 (1/3) · 13 (2/3) |
| review round's text, case 13, six repeats | `50530b6b` | 6/6 | 0/6 |
none |

Trigger cases, every full round on every tree: loaded when it should
15/15, left alone when it should not 6/6.

- **Case 10** (a `datetime` field as `YYYY-MM-DD` text) was a real loss
on the first head: 3/3 on `main`, 0/3 on `75b00bcc`. Every answer gave
the right formula; each then quoted the refused form, which the case
forbids, because the first head's sentence said "the build refuses the
bare field there". The sentence reads as it did before the cut ("wrap it
in `date()` first") and the two wraps are lines of the type-checked
block: 3/3 on every later head.
- **Cases 10 and 11, a missing `F` tag** on the first head (one run each
wrote the formula bare or as an envelope): the first head named no tag
in its first checks. First check 3 now says which tag a formula, a
predicate and a seed value take.
- **Case 3** (the transition predicate, the case the review round's two
fixes bear on) is 3/3 on `50530b6b`, as on every earlier reading. All
three answers write `previous != null && previous.status != 'escalated'
&& record.status == 'escalated'` and say why the guard is there. So did
the three answers on each of `9643441f`, `822cd547` and `327903f6`, from
trap 3's text; on `main`'s text all three wrote the unguarded line. The
fix makes the block agree with what the answers already gave.
- **Case 13** (a hook `condition` on a `tags` field) is 2/3 on
`50530b6b` and was 3/3 on every earlier reading of both trees. The miss
gives the right membership form, null-guarded and parenthesised, in a
fenced block without the `P` tag, the literal the case requires. A
second reading of the case alone, six repeats on the same head, is 6/6:
8 of 9 on this head. The round's edits do not touch the tag sentence or
trap 4.
- **Case 9** (a record-change flow's edge condition, the site S2
separates from a hook) is 3/3 on `50530b6b`.
- **Case 7** (compare the stored value, never the option label) flips on
both trees: 3 of 9 on `main`'s text, 15 of 21 across the first five
heads and 1 of 3 on `50530b6b`. Every failing answer compares the stored
value and then says a predicate cannot call `label()`, which is the
literal the case forbids. One failing answer on `822cd547` did show a
loss of precision: it carried the action guard over to a form-view
`visibleWhen`, because one trap named both as client-side. Trap 2 is
about action `visible` / `disabled` alone again, and the form-view fact
moved to the routing row: 3/3 on `327903f6`. The two failing answers on
`50530b6b` are of the first kind: each compares the stored value and
names `label()` as the thing a predicate cannot call.
- **Case 11** (a multi-select's labels as text) passes 9 of 9 on
`main`'s text, 16 of 21 across the first five heads (by head: 2/3, 1/3,
8/9, 3/3, 2/3) and 3 of 3 on `50530b6b`. Four of the five failing
answers give `label(record.no_margin_reasons)` under the `F` tag and add
a sentence that names `joinNonEmpty` (as the thing not to use, or as an
option for another separator), the literal the case forbids; the fifth
is the first head's missing tag. It fails on every run of no head, so
the parity rule does not block on it. It is the one case where `main` is
steadier than the head, and it is reported as that: a likely cause is
that the function list now sits one section above the trap, where `main`
had it in a table further up a longer file.
- **Cases 4, 9, 12 and 14** pass more often on the head. Case 4 (0/3 on
`main`, 14 of 15 across the first five heads, 3/3 on `50530b6b`) and
cases 9 and 14 failed on `main` when a correct answer quoted a wrong
form the old entry spelled out (the JavaScript date constructor, the
brace form); the router describes those mistakes in words and does not
spell them. Case 12 (0/3 on `main`) failed there because every answer
wrapped the field in `date()` inside `addDays`; the block now carries
`isoDate(addDays(record.due_date, 7))` as a line.

Three restorations under ruling 7168461386 came out of these rounds,
each paid inside the entry: the date sentence (case 10), the tag
sentence (cases 10 and 11), and the action-only guard (case 7). A fourth
edit came from reading the contract text, not from an eval: a flow
condition's bare name is the field only where no flow variable or node
id holds it.

<details><summary>Round records</summary>

- Before round on `f576dee5`: 105 of 105 turns, 4.6 min.
- Rounds on `75b00bcc`, `b93fb9bf`, `9643441f`, `822cd547` and
`327903f6`: 105 of 105 turns each, 4.5 min each.
- Extra reading on `9643441f`, cases 7 and 11, six repeats: 24 of 24
turns, 1.1 min.
- Extra reading on `main`'s text, same cases and repeats: 24 of 24
turns, 1.1 min. The runner has no flag for a second tree, so `main`'s
`SKILL.md` was restored into the working tree for this one reading and
put back (`git hash-object` equal before and after); its round header
names `9643441f` "with uncommitted changes under the runner or skills/".
- No full round ran on `77804a7a`: it differs from `327903f6` by two
sentences of the changeset, and the turn never reads a changeset.
- Review round, full round on `50530b6b`: 105 of 105 turns, 4.3 min.
Extra reading on `50530b6b`, case 13, six repeats: 12 of 12 turns. A
full round was run and not only the cases the two sentences bear on (3,
9 and 13): the edited line sits in the block every answer copies from.
- Every `must_contain` literal of the 14 cases that the entry carried
before, it still carries (35 literals read; 28 carried before and after,
0 lost, 1 gained; 6 appear in neither tree and come from the prompts).

</details>

### Other tests

On `50530b6b`, under the verify lock (`VERDICT command-exit 0` each),
and with the same counts on `9643441f`, `822cd547`, `327903f6` and
`77804a7a`:

- `pnpm --filter @objectstack/formula exec vitest run --maxWorkers=2
src/skill-catalog-sync.test.ts src/cel-stdlib-drift.test.ts` (the first
reads this entry and requires every advertised function in it as a call
form): `Test Files 2 passed (2)`, `Tests 5 passed (5)`.
- `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2
scripts/platform-catalog.test.ts scripts/skill-map-guards.test.ts` (the
suite that names the ratchet script, and the one that names this skill):
`Test Files 2 passed (2)`, `Tests 57 passed (57)`.
- `pnpm --filter create-objectstack exec vitest run --maxWorkers=2
src/created-summary.test.ts` (it names the skill in its catalog list):
`Test Files 1 passed (1)`, `Tests 12 passed (12)`.
- `pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2
src/hook-condition-previous-scope.test.ts` and `pnpm --filter
@objectstack/trigger-record-change exec vitest run --maxWorkers=2
src/bulk-write-per-row-context.test.ts` (each names the skill in a
comment; neither reads it): 25 and 4 tests passed.

No ablation: the diff changes prose and one ledger, no tested behaviour.

## Acceptance notes

Review round (contract review 7286361695 on `77804a7a`, VERDICT PASS, no
must-fix; the L1 note 7286117663 raised S1 first):

- **S1, fixed.** The checked block's transition line carries `previous
!= null && ` in front, the form trap 3 prescribes. Unguarded it faults
on insert, where `previous` is `null`, and the build does not refuse it
(the null-guard gate judges ordering and arithmetic operators, and the
line uses `!=`). Eval case 3's required literals still match, 3/3.
- **S2, fixed.** Trap 3's sentence reads "A hook `condition` that cannot
evaluate (…) ABORTS the write with no `onError` escape". The cut had
widened it to every site the trap lists; a record-change trigger's run
fails while the write lands (`validate-null-guards.ts`, outcome
`run-fails`; trap 1 says so for a flow), and an advisory validation rule
is skipped, so the sentence names the hook alone, as `main`'s text did.
- **Paid inside the entry**: +27 bytes for the two fixes, −1 for the
doubled blank line after the frontmatter, −1 for a comma; 8,974 → 8,999
bytes. The ratchet row is re-pinned at the new measurement. The
changeset's line count (135) and its sentence on the abort are corrected
to match.
- **N1, N2 and N3 are left**, as the review accepts them: no byte is
free under the 9 KB line.
- **`main` is merged in** (`6cc2024e`, a plain merge commit): it moved
one other ratchet row, the textual merge was clean, and the workspace
was rebuilt before any gate ran.

Ruled by the contract review, recorded here as it stands in the entry:

- **The function names stay inline (ruled A)** (about 0.9 KB of the
entry's 9.0 KB) and are not cut to a pointer. The card's shape line
sends function tables behind a pointer, and
`packages/formula/src/skill-catalog-sync.test.ts` requires every name of
`CEL_STDLIB_FUNCTIONS` in this file as a call form. That test is outside
this claim's file surface, and `@objectstack/formula` ships `dist` only,
so an installed project has no source to read the list from. So the
tables became a list of call forms and what each function returns went
to the published page. If the list should leave too, the test moves
first, in its own change.

Decided here (small, no shipped behaviour), each open to reversal in
review:

- **"No trap is removed unless a publish-time check covers it or it
stays inline" was read as: an expression that parses and then fails or
reads wrong at run time stays inline.** Inline: the eight traps and the
three facts on the routing rows. Cut to a pointer, each loud at the
build: an unknown function, a legacy spelling, a malformed envelope, the
retired `titleFormat` key.
- **Four traps stay inline although the build refuses them** (the
nullable operand, the list compared with a scalar, the date text in a
timestamp call, date arithmetic): the refusal says what is wrong, and
the entry carries the form to write instead, which is what the eval
cases about them ask for (2, 4, 5, 9, 10, 12, 13 and 14).
- **The entry describes wrong forms and no longer spells them** (the
brace form, the JavaScript date, a number added to `today()`, `CONCAT`).
An answer that quotes a wrong form fails the cases that forbid it, on
either tree. The contract review ruled the brace example stays in words
(A).
- **A version check opens the first checks**, as in the other router
entries; the old entry had none. Paid by dropping the cron grammar
sentence.
- **Section anchors of the entry changed.** The changeset lists every
anchor that left `SKILL.md`. No file in this repository links one of
them.
- **Four lines in the summary above, not six**: the standing order for
this card thread asks for six, and the agent file that binds the dev
fixes four named lines and wins on conflict.
- **Footer form**: this body ends with the single block AGENTS.md
prescribes for a PR body.

Noted, not changed:

- The literals of eval cases 4, 7 and 11 fail correct answers (above).
The parity rule treats the cases as fixed, so this PR does not touch
them.
- The published formulas page lists the legacy rows the entry dropped,
except four of the five functions the old table marked as having no CEL
counterpart (`MID`, `LEFT`, `RIGHT`, `SUBSTITUTE`; it has `MONTH_DIFF`).
Each fails the build as an unknown function, with or without a row.
- The version PR objectstack-ai#38192 touches the entry's stamp line, and objectstack-ai#38787 and
objectstack-ai#38790 touch other rows of the ratchet table; `overlap-check` reads each
as merging cleanly. It reads objectstack-ai#38497 as a conflict in the ratchet script:
that PR conflicts with `main` itself there, in one hunk on the
`objectstack-ai` row, and the hunk is byte-identical with and without
this branch; the formula row is outside it.

## Verification

Read first, by risk:

1. `skills/objectstack-formula/SKILL.md`, the whole file: is anything a
model needs before opening the contract missing? The risk hunks are `##
Traps` (eight items replace most of the old file) and the function list.
2. `.changeset/34770-formula-skill-router.md`: the "what left, and what
answers it now" list is the record of every cut.
3. `scripts/check-skills-token-ratchet.mjs`: the one
`objectstack-formula` row.

Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints
`ratcheted (authored) 192430 / 192430 (+0)` and
`skills/objectstack-formula/SKILL.md 2243 / 2243 (+0)`; `wc -c
skills/objectstack-formula/SKILL.md` prints 8999.

Gates, local, each exit code captured before any pipe. The whole derived
list ran on `50530b6b`, and before it on `9643441f`, `822cd547`,
`327903f6` and `77804a7a`, 69 of 69 each time.

<details><summary>Derived families on `50530b6b`: 69 derived, 69 run
green, 0 NOT MEASURED</summary>

- Reconciliation: `✓ dispatch-gates --ran: 69 derived famil(ies)
accounted for — 69 run, 0 NOT-MEASURED (a DERIVED zero — all 69 recorded
an exit code and none of them is 3).`
- `node scripts/check-skills-token-ratchet.mjs`: `✓
check-skills-token-ratchet: 61 authored bundle file(s) within their
ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured,
not ratcheted.` (`ratcheted (authored) 192430 / 192430 (+0)`, `bundle
total 297081`); its `--self-test`: `111 cases pass`.
- `pnpm check:dual-build-cjs-loads`: `126 published require entry
point(s) across 74 package(s) load; 2593 emitted CommonJS file(s)
parse`. It reads every package's built `dist/`; a full `pnpm build
--concurrency=2` ran first on the merged tree under the verify lock
(`VERDICT command-exit 0`, 123 tasks).
- `pnpm check:dts-closure`: `123 built package(s) swept - 324/324
declared declaration file(s) present`.
- `pnpm check:skill-links`: `290 relative link(s) in 76 published skill
file(s) resolve; 161 fragment(s) name a real heading under GitHub's slug
rule.`
- `pnpm check:skill-identifier-liveness`: `Leg 1: 527 citation(s) over
76 published file(s) ...; Leg 2: 11 registered exhaustive section(s), 0
ledgered gap(s).`
- `pnpm --filter @objectstack/spec run check:skill-docs`, `pnpm --filter
@objectstack/lint run check:doc-formula-expressions`, `pnpm
check:skill-compatibility`, `check:skill-frame-sync`, `check:role-word`,
`check:corpus-claim-drift`, `check:doc-authoring`,
`check:published-files`, `check:nul-bytes`,
`check:cross-package-test-inputs`: exit 0.
- The changeset gates (`check-changeset-no-major`,
`check-empty-changeset`, `check-adr-0087-registration`,
`check:changeset-gate-self-tests`): exit 0. `pnpm
check:pm-dispatch-gates`: exit 0.

</details>

<details><summary>Beside the derived list, on `50530b6b`, all exit 0 but
the last</summary>

- `pnpm --filter @objectstack/spec run check:skill-examples`: `347 prose
examples type-check across 3 surface(s)`. The entry's one block is among
them.
- `pnpm --filter @objectstack/spec run check:skill-refs`: `10 generated
files in sync with packages/spec`.
- `pnpm --filter @objectstack/spec run check:skill-served-sections`: `24
served section(s), each heading exactly once in its file` (the hosted
door serves no section of this skill).
- `pnpm check:doc-anchors`: `1184 internal #fragment link(s) across 368
source file(s) all resolve to a real heading`.
- `pnpm check:published-readme-links`: `566 outbound link(s) across 168
published markdown file(s)`, `99 docs-site page(s) resolved`; the
formulas page the entry links is one of them.
- `pnpm check:skill-top-level-keys`: exit 0.
- `pnpm --filter @objectstack/spec check:generated` after the merge and
the rebuild: exit 0.
- `node scripts/check-platform-checklist.mjs --changed-from
origin/main`: `0 anchored files in the change set — nothing judged.`
- `node scripts/pm/overlap-check.mjs`: `VERDICT clean exit 0` at each
push of the first delivery (on the second it ran right after). Before
the review round's push: `VERDICT overlap exit 1`, for objectstack-ai#38497 alone,
whose conflict in the ratchet script is its own against `main` (see
Noted above); `main`, objectstack-ai#38787, objectstack-ai#38790 and objectstack-ai#38192 merge cleanly.

</details>

Base: the branch is cut from `f576dee5` and carries one merge of `main`
at `6cc2024e` (merge commit `b9e30211`); `main` had not moved further at
the review round's push. CI on the head is the seat's reading.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS)_

<!-- signed: repo:objectstack@os-steve · os-steve ·
session_01ADHkmSAjFEZHRpRq3WCj6z -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
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 security size/m 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