Repository navigation
docs(skills): teach a validation rule message's {{ }} holes - #38787
Conversation
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>
📓 Docs Drift CheckNothing 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): |
|
repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB 席位核对ACCEPT @ 17319d0 (#37909 PR 3, I read every teaching sentence against the merged code at this head:
The four points the zone asked about:
Also checked
Ratchet and the removed section
Declarations: 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. |
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract reviewServed-tier: 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. ① Derived judgments
② Semver levelThe changeset ③ Boundary flagsThe dev report (7283754747) carries no
SQL push-down: not applicable. The diff holds no query, no id materialisation and no join. Security: Rule change: no ④ Design judgment(1)
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 (3) (4) (5) (6) Tried to break it. A hole with Findings. No must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z 维护者速读
Seat opinion: land as is. 席位核对ACCEPT at head
ACCEPT → comment 7283837367 · Contract review → comment 7284010448 |
…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>
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
维护者速读
{{ record.字段 }}占位、格式化器、币种规则(你选的 A)、看不到的字段留空、译文先填、提示语是纯文本。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.mdgains § Messages — Record Values in Holes: therecord/previousroots (previousempty 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| currencyin 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— themessagerow 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.mdhad 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 noeventsruns on insert and update; scope it withevents: ['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.mdgains 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.changesetnote, and the one word in the semantic entry.Acceptance notes
rule-message-render.ts,engine-rule-message-rendering.ts, the formulatemplateEngineformatters (TEMPLATE_FORMATTERS,splitHoleFormatter) andExecutionContext.timezone.ui/packagesputs a message throughdangerouslySetInnerHTML(the files that use it are page HTML, rich text, charts, markdown and code blocks).@object-ui/core's deprecatedObjectValidationEnginewas not audited (PR 2 contract record, outside the diff).packages/lint/src/seed-row-refusals.tsprints blank holes), as the seat agreed; PR 2's N2 and N7 stand as recorded; N8 is 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.Verification
Head
17319d01f6c6dfc2eb9b7c9ef0daebf764eed391, on main49c09ed902.bash scripts/pm/os-verify-lock.sh -c 'pnpm build --concurrency=2'→ VERDICT command-exit 0 (123/123 tasks).node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack, re-derived after the last commit, same 133): each run with stdin closed, recordedcmd :: exit N. All 133 exit 0.995a1318c6: 132 green,pnpm check:skill-linksred — the table-of-contents link#messages--record-values-in-holesdid not match the heading, whose code span slugs tomessages--record-values-in---holes. Root fix in17319d01f6: 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.mjsand--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