Skip to content

docs(skills): the objectstack-formula entry file becomes a router - #38795

Merged
os-zhuang merged 8 commits into
mainfrom
claude/project-thread-96llpb
Nov 30, 2026
Merged

os-zhuang merged 8 commits into
mainfrom
claude/project-thread-96llpb

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Part of #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 (docs(skills): the objectstack-i18n entry file becomes a router #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.

Round records
  • 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).

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:

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.

Derived families on `50530b6b`: 69 derived, 69 run green, 0 NOT MEASURED
  • 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.
Beside the derived list, on `50530b6b`, all exit 0 but the last

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

The entry keeps three first checks, one type-checked block of the three
tags, the roots and the advertised function names, eight traps and a
routing table. The rest is cut behind a pointer to the contract, to
os validate / os build, or to the published formulas page. The ratchet
row follows the measurement down: 6088 -> 2242.

Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS
Co-authored-by: Claude <noreply@anthropic.com>
…the date wraps as code

The first head's eval round lost case 10: the answers gave the right
formula and then quoted the refused form. The date trap reads as it did
before (wrap in date() first), the wraps and the label formula are
lines of the type-checked block, and first check 2 says which tag a
formula, a predicate and a seed value take. Paid inside the entry;
the row follows the measurement, 2242 -> 2237.

Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS
Co-authored-by: Claude <noreply@anthropic.com>
…t records every cut

First check 1 is the version check the other router entries open with,
paid inside the entry by dropping the cron grammar sentence (the
contract and the validator hold it) and two parentheticals. The row
follows the measurement, 2237 -> 2238. The changeset lists what the
entry keeps, what left and what answers it now, and every anchor that
no longer exists.

Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS
Co-authored-by: Claude <noreply@anthropic.com>
…e is not the field

A bare name in a flow condition reads the trigger record's field only
where no flow variable or node id holds it, as the entry said before
the cut. Paid inside the entry by five small trims; the row follows
the measurement, 2238 -> 2243, and the file is 8998 bytes.

Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS
Co-authored-by: Claude <noreply@anthropic.com>
…cates

The final-head eval round showed an answer carrying the action guard
over to a form-view visibleWhen, because one trap named both as
client-side. The trap is about action visible / disabled alone again;
the form-view fact (client-side, faults open, never access control)
sits on the routing row that sends view predicates to objectstack-ui.
The row follows the measurement, 2243 -> 2237; the file is 8974 bytes.

Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS
Co-authored-by: Claude <noreply@anthropic.com>
The entry is 136 lines, and the form-view visibleWhen fact sits on the
routing table beside the formula-field and view-filter facts; the
changeset says so. No skill text changes.

Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l 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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对

ACCEPT @ 77804a7 (#34770, split PR 4: the objectstack-formula entry becomes a router). The PR is Tier H: it stays a draft, and the contract review and the hand-over belong to the seat.

The file surface is the three files the hand-over names:

  • skills/objectstack-formula/SKILL.md;
  • the formula row of scripts/check-skills-token-ratchet.mjs;
  • .changeset/34770-formula-skill-router.md (@objectstack/skills patch).

No new file sits under skills/, and no other ratchet row moves. It has the same shape as #38663.

The card's shape line, measured at this head:

  • 8974 bytes and 136 lines (inside 6–9 KB and the 500-line cap).
  • Eight traps, four first checks, one checked block and a six-row routing table.
  • Frontmatter unchanged apart from nothing: the description and tags are byte-identical to the base.

What stayed is true, and what left has somewhere to go.

  • Old-entry phrases. I checked 28 phrases of the new entry against the base f576dee5. Every fact the router keeps was in the old entry, with three exceptions:
    • the version first check;
    • the seed sentence, reworded;
    • the flow bare-name clause "unless a flow variable or node id holds it". That clause is the old ⚠️ paragraph's own wording, now shorter.
  • Pointer targets on main:
    • The published page content/docs/data-modeling/formulas.mdx carries every one of the 42 advertised functions' entries I sampled (addWorkingHours, rmbUpper, joinNonEmpty, isoDatetime). It also carries the UTC-midnight and month-end clamp notes, the legacy table (ISCHANGED, CONCAT) and the formatter list.
    • skills/objectstack-data/references/data-hooks.md carries the previous table and MULTI_UPDATE_HOOK_KEY_DIVERGENCE.
    • @objectstack/spec publishes src/**/*.zod.ts, so the node_modules/@objectstack/spec/src/shared/expression.zod.ts row resolves in an installed project.
  • Every CEL form the entry teaches parses on main's @objectstack/formula with no unknown function. That is the 8 lines of the checked block plus 9 inline forms from the traps, checked with parseCelToAstWithReason and firstUnknownFunctionCall.

Gates, measured in a scratchpad worktree at this head:

  • check-skills-token-ratchet: 61 within ceilings.
  • check-skill-links: 290 resolve.
  • check:skill-docs exit 0, and check:skill-served-sections exit 0.
  • check:skill-examples: 347 type-check.
  • formula skill-catalog-sync and cel-stdlib-drift: 5/5.
  • spec platform-catalog and skill-map-guards: 57/57.

Ablations, each restored after:

  • addWorkingHours dropped from the function list: skill-catalog-sync goes red ("documents every advertised stdlib function"). So the inline list is held by a test, which is the reason the PR gives for keeping it.
  • The base row (6088) restored: the ratchet goes red, "above the measurement by 3851".

Eval parity, read by ruling record 7249189592 from the PR's round table. I did not re-run the evals.

  • No case fails every run of the head while main passes.
  • Case 11 is the one case where main is steadier: 9/9 against 16/21. It fails on every run of no head, so it does not block, and the PR reports it as such.
  • The three restorations under 7168461386 are each paid inside the entry.

For the contract review (a note, not a must-fix). The checked block's transition line, P`previous.status != 'escalated' && record.status == 'escalated'`, is unguarded. In the old entry it sat under the heading "Update hook condition", where previous is bound. The router dropped that heading, and trap 3, about 40 lines below, says a read off a null previous on insert faults and aborts the write. A model that copies the line into a validation rule or an insert-and-update hook gets exactly that fault. Either of two fixes, about 5 tokens paid in the entry, would close it:

  • previous != null && in front;
  • a trailing // update hook comment.

The other judgment calls the PR lists are the seat's to rule on: the inline function list, the four build-refused traps kept, and the wrong forms described rather than spelled.

CI at this head: 18 success, 18 skipped, 9 in progress, 0 failed. This ACCEPT does not cover the runs still in progress.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 77804a7ae09334ca6edd7b6a331d14ef9650d920
Local-runs: none
Scope: skills/objectstack-formula/SKILL.md + scripts/check-skills-token-ratchet.mjs
Security-touching: yes

PR #38795, card #34770 (PR 4 of the per-skill split). Read: the card body and its 58 comments, the PR body and its one comment (L1 ACCEPT 7286117663), the net diff of three files against main, and the check-runs on this head. The remainder of the diff, .changeset/34770-formula-skill-router.md, is the lane seat's ACCEPT at TIER_DEFAULT; it is read in ② for its level only.

Check-runs on this head at the last read: 28 success, 18 skipped, 1 in progress (Test Core (1/12)), 0 failed. Check Changeset, Governed Surface Queue Guard, the Lint lanes (the skill gates among them), the Type Check lanes and PR-body guards are success. This record does not cover the one run still in progress.

Security-touching is yes on purpose: the changed hunks reword what the entry teaches about a SharingRule condition (trap 4: it compiles to a query filter, and which membership form lowers), and about a form-view visibleWhen (routing row 6: client-side, faults open, never access control). They also remove two sentences of the same kind: that access control belongs to permission-set field-level security, and that a sharing rule whose condition does not lower grants nothing at run time. The seat adopting this record adds the security label.

① Derived judgments

  • Accept set: unchanged. Right. No schema, validator or engine file is in the diff. Every expression that built before builds after.
  • Published skill text (@objectstack/skills): one entry file rewritten, 24,377 to 8,974 bytes, 485 to 136 lines. Right, under the card's Scope and decision record [Decision] The published skills: who reviews a change, how they are verified, one catalog or two for code-first and MCP, and the E2 premise reading #34691 S3 = A. Frontmatter is byte-identical to main (lines 1 to 17 compared), so the trigger surface does not move.
  • Advertised function set: unchanged. Right. All 42 names of CEL_STDLIB_FUNCTIONS (packages/formula/src/validate.ts) appear in the entry as call forms, and the entry names no bare function outside that list. The receiver methods it uses (.contains, .getFullYear, .getMinutes) are methods, not catalogue names.
  • Anchors: 17 section anchors leave the entry, 4 arrive, the title's anchor stays. Right. No file on main links one of the 17, and the link gate is green on this head.
  • Ratchet: one CEILINGS row moves, 6088 to 2237. Right. See ④.
  • Wrong: none at the level of an accept set or a public surface. The two findings in ④ are about what two kept sentences teach.

② Semver level

'@objectstack/skills': patch. Right: prose of a published skill, no API, no schema, no behaviour. It is the level the four earlier router changesets of this card carry. Check Changeset is success on this head.

Clause-②: no. Agreed: the diff narrows no accept set and adds no refusal. Metadata-protocol: none is agreed for the same reason.

③ Boundary flags

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

The dev's open questions (report 7285923217):

  • Contract review needed at this head. Answered by this record.
  • Should the function-name list leave the entry too? Ruled A, keep it inline. Three reasons. (1) packages/formula/src/skill-catalog-sync.test.ts requires each catalogue name in this file as a call form, and that test is outside the claim's file surface. (2) @objectstack/formula ships dist only, so an installed project has no source to read the names from, and the entry's own first check 2 forbids recalling a function. (3) The card's Scope sends restated tables behind a pointer to a generated reference or to the contract; neither carries this list today. What each function returns did go behind the pointer, and the public page carries it. Option B is not ordered here: it needs a change in packages/formula first, and a generated function reference under skills/ would need a new ratchet row, which stays with a human.
  • Is the brace example worth restoring? Ruled A, keep the mistake in words. First check 3 still states the rule and the reason ({…} is a CEL map literal, a parse error), and the public page spells the wrong form in its callout. Twelve of the fourteen eval cases forbid the brace literal, so spelling it in the entry raises the chance that a correct answer quotes it.

The dev's flags, each answered:

  • "No trap is removed unless a publish-time check covers it" read as "an expression that parses and then fails or reads wrong at run time stays inline": accepted. It is the card's own wording of a trap.
  • Four build-refused traps kept inline (nullable operand, list against scalar, date text in a timestamp call, date arithmetic): accepted. The card caps traps at about eight and does not forbid keeping one the build also refuses; the entry carries the form to write, which the refusal alone does not teach before the first build.
  • Wrong forms described and not spelled: accepted, as ruled above for the brace form.
  • A version check opens the first checks, paid by the cron grammar sentence: accepted. The card's Scope names the version check. The cron grammar the old entry carried described a validator that, by the contract's own docblock, no schedule path calls; schedules route to objectstack-automation, which carries cron examples.
  • Section anchors changed: accepted, see ①.
  • Four lines in the maintainer summary, the footer form, and the tier the authoring ran at: process matters for the seat, not judged here.
  • main was not merged in: noted. main has moved one ratchet row since the base (its ceiling sum is now 196,275), so the sum after merge is 192,424, one below the PR's figure. The row's comment states the fall as a difference (3851), which stays true. No action.

Out of scope, noted only: eval cases 4, 7 and 11 forbid literals that a correct answer can quote; the public page's legacy table has no row for MID, LEFT, RIGHT and SUBSTITUTE.

④ Design judgment

skills/objectstack-formula/SKILL.md, read against packages/formula (validate.ts, stdlib.ts), packages/lint (validate-null-guards.ts, validate-working-day-sites.ts, validate-expressions.ts), packages/spec/src/shared/expression.zod.ts, packages/spec/src/data/field-value.zod.ts, the public formulas page and skills/objectstack-data/references/data-hooks.md, all on main, and against the card's 14 eval prompts.

(1) Truth of what remains. Every sentence was checked. They hold, with the one exception graded S2:

  • The envelope, the three dialects and no js: ExpressionDialect is exactly cel, cron, template.
  • F, P and cel are one constructor under three names; a bare-string defaultValue is a literal.
  • Trap 1: the null-guard gate fires on ordering and arithmetic operators only, has() does not satisfy it, and a flow condition's fault fails the run while the write lands.
  • Trap 4: the three membership forms are character for character what listMembershipSource prescribes for a CEL site, a flow's bare name and a filter-compiled site. The list types are the three inherently multi types plus the six multi-capable types with multiple: true.
  • Trap 5: daysBetween, addDays and addMonths are registered over dyn and take the field's text; isoDate takes a timestamp only; the validator's own prescription is isoDate(addDays(FIELD, N)).
  • Trap 6: label is a macro that refuses any argument that is not a record field, and throws where the evaluation context carries no option labels; the working-day functions get a calendar at a formula field's and a stored field's expression only, and are refused at the other sites.
  • Trap 8 and the routing rows: TEMPLATE_FORMATTERS is exported from @objectstack/formula; @objectstack/spec publishes src/**/*.zod.ts, so the node_modules path resolves in an installed project.

(2) What left, and whether the pointers answer it. Each pointer target exists on main and says what the entry leaves to it:

  • The public page carries what each function returns, the UTC-midnight and month-end notes, the working-day counting rules, the inclusive-span rewrite, the hours recipe, the legacy table (IF, CONCAT, IN, ISCHANGED, TODAY and NOW) and the formatter list.
  • expression.zod.ts carries the envelope, the helpers (cron and tmpl included) and, in the docblock of the evaluated-input schema, the list of keys that take an expression.
  • data-hooks.md carries the insert and unbound cases of previous, the per-row dispatch and MULTI_UPDATE_HOOK_KEY_DIVERGENCE.
  • The #conditional-field-rules anchor exists in the data skill's entry.

No removed rule was found that an author needs and cannot recover.

(3) L1's hint, judged and graded:

S1 (should-fix) — the block's transition line, P`previous.status != 'escalated' && record.status == 'escalated'`, is now an unscoped exemplar that the entry's own trap 3 contradicts. On main the line sat under the heading "Update hook condition", where previous is bound. The router dropped the heading and left the line bare among seven lines an author copies from. Applied where an insert reaches it, the result is an error, not a wrong boolean:

  • in a validation rule, or a hook whose events include an insert, previous is null, previous.status faults, and the write is refused on every insert;
  • in a record-triggered flow, the create leg binds previous to null, and the run fails after the write has landed.

The build does not catch it: the null-guard gate judges ordering and arithmetic operators, and this line uses !=. So this is exactly the class the card keeps inline, a predicate that passes the build and fails at run time, and here the entry's exemplar is the instance. Trap 3 states the guard about 40 lines below, which is why this is not a false sentence and not a must-fix. Either fix closes it: previous != null && in front of the line (the form trap 3 itself prescribes; eval case 3's required literals still match), or a trailing comment that scopes the line to an update. The fix is paid inside the entry and the ratchet row follows the new measurement; one byte is free in the doubled blank line after the frontmatter.

S2 (should-fix) — trap 3's sentence "A condition that cannot evaluate (a typo'd key, a read off a null previous) ABORTS the write, with no onError escape" is true of a hook condition and a validation predicate, and not of the third site the same trap lists one sentence earlier, a record-change trigger. There the run fails and the write lands (validate-null-guards.ts, outcome run-fails; the entry's own trap 1 says so for a flow). On main the sentence was scoped: it named the hook. The cut widened it. Name the site again ("A hook condition that cannot evaluate …" is enough); about seven bytes.

Nits, none affecting correctness or the contract:

  • N1 — routing row 6 keeps "never access control" for a form-view visibleWhen and drops what the old entry named in its place, permission-set field-level security. The prohibition, which is the part that protects, stays; the remedy is reachable through the objectstack-data row ("sharing") and its security rules. Left as an accepted deviation unless bytes allow.
  • N2 — first check 2 parenthesises references/_index.md after "the contract of the key that takes the expression". That generated index names expression.zod.ts and how to read a schema under node_modules, not the key's own schema; routing row 1 gives the right path. Accepted deviation.
  • N3 — trap 4 writes "any multiple: true field" for the six multi-capable types. True wherever the flag has an effect. Accepted deviation.

scripts/check-skills-token-ratchet.mjs (implementing file: the gate that enforces the size rule on the entry). The code agrees with the contract, sentence by sentence:

  • One row moves and none is added: the map holds 61 rows on the base and on the head.
  • The row is pinned at the measurement with zero headroom: the entry is 8,974 bytes, the release-stamp line is 27, and ceil(8947 / 4) is 2237. The old row checks the same way: ceil(24350 / 4) is 6088.
  • The sum of ceilings, read from the map on both trees, is 196,276 on the base and 192,425 on the head, a fall of 3851, equal to the row's fall. No row rises, so ruling 7128031203 fork 4 is met without needing its moved-text allowance.
  • The comment carries the arithmetic, the reason nothing moved (the skill has no hand-written reference file) and the authority (decision record [Decision] The published skills: who reviews a change, how they are verified, one catalog or two for code-first and MCP, and the E2 premise reading #34691 S3 = A). Its list of what the build refuses matches the validator's codes.

A fix for S1 or S2 moves this row again; it is re-pinned at the new measurement, and the delta review reads it.

No must-fix. S1 and S2 are open on this head and earn a delta review of their fix.

Implemented-by: claude/project-thread-96llpb
Reviewed-by: session_01ADHkmSAjFEZHRpRq3WCj6z

VERDICT: PASS

…ts abort sentence

Two should-fix items from the contract review of the router PR, paid inside the
entry:

- the checked block's transition line now carries `previous != null && `, the
  form trap 3 prescribes: unguarded it faults on insert, where `previous` is
  null, and the build does not refuse it;
- trap 3's sentence on a condition that cannot evaluate names the hook again.
  A record-change trigger's run fails while the write lands, so "aborts the
  write" is a hook `condition`'s outcome, not every site's.

The entry is 8999 bytes (was 8974), 135 lines; one blank line and one comma pay
part of it. The CEILINGS row follows the measurement, 2237 -> 2243, zero
headroom. The changeset's line count and its matching sentence are corrected.

Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 50530b6be4286c9debe9359350c303ea7f3b5208
Local-runs: none
Scope: skills/objectstack-formula/SKILL.md + scripts/check-skills-token-ratchet.mjs
Security-touching: yes

Delta review of PR #38795 (card #34770, PR 4 of the per-skill split) against record 7286361695 on 77804a7a. Read: the compare of 77804a7a to this head (two commits: b9e30211, a merge of main at 6cc2024e, and 50530b6b, the fix), the delta report 7287965353, the PR body draft for this round (not yet on the PR), and the check-runs on this head. The changeset stays the lane seat's ACCEPT at TIER_DEFAULT; it is read in ② and for the two corrected sentences only.

Check-runs on this head at the last read: 27 success, 20 skipped, 3 in progress (Test Core (1/12), Test Core (2/12), Lint · CI, release & engine gates), 0 failed. Lint · docs & code guards (the skill gates), Governed Surface Queue Guard, every Type Check lane, Lint · PM dispatch-gates, Check Changeset and PR-body guards are success. This record does not cover the three runs still in progress.

Security-touching stays yes: the reason given in 7286361695 is unchanged by the delta (the entry rewords what it teaches about a SharingRule condition and about a form-view visibleWhen never being access control). The PR carries the security label at this read.

① Derived judgments

  • Accept set: unchanged. Right. The delta holds no schema, validator or engine change of this PR. Against main the PR is still three files.
  • The exemplar block: one line changes. Right. The transition predicate gains previous != null && in front. It is one more conjunct of the same predicate, and the skill-example gate is green on this head.
  • Trap 3: one sentence narrows from "a condition" to "a hook condition". Right. See ④.
  • Frontmatter: byte-identical to main (lines 1 to 17 compared again). The one blank line removed sits after the closing fence, outside it.
  • Advertised function set: unchanged. The same call forms as on 77804a7a.
  • Ratchet: the same single row, now 2243. Right. See ④.
  • Wrong: none.

② Semver level

'@objectstack/skills': patch, unchanged and right. Clause-②: no, agreed; the delta adds no refusal and narrows nothing.

The two corrected changeset sentences agree with the tree: the entry is 135 lines at this head, and the kept-traps sentence now says a hook condition that cannot evaluate aborts the write, the same scope trap 3 carries.

③ Boundary flags

SQL push-down: not applicable; the delta holds no query.

The delta report's one open question, a contract review of the fixes at this head, is answered by this record. Rulings ② A (the function-name list stays inline) and ③ A (the brace form stays in words) of 7286361695 stand; the delta touches neither.

Flags of the delta report, each answered:

  • overlap-check answered overlap for PR feat(objectql): a record in a closed state, and its lines, are closed to change (closedStates, ADR-0162) — trunk #38497 alone, and the push went ahead: accepted on the report's own measurement (that PR conflicts with main on another skill's row and does not touch this one). It is that PR's owner's matter; not judged further here.
  • A full eval round was run where the order asked for three cases: accepted, and it is the better reading, since the edited line sits in the block answers copy from. With-skill 39 of 42 on this head. Case 7 flips on both trees. Case 13 read 2 of 3 and then 6 of 6 on a second reading, and its one miss is a correct condition without the tag literal. No case fails on every run of the head while main passes, so parity holds by ruling record 7249189592. Case 3, the transition case, is 3 of 3 with the guarded form.
  • The PR body: the draft for this round states the sizes, the row and the sum as measured below. The seat sent it to the PR after this review (26,671 bytes read back identical); not judged as a face here.

④ Design judgment

skills/objectstack-formula/SKILL.md

S1: closed. The line reads P`previous != null && previous.status != 'escalated' && record.status == 'escalated'`. On an insert previous is null, the first conjunct answers false and the read off previous is never reached, at every site the entry lists: a validation rule, a hook that includes an insert, and a record-triggered flow's create leg. It is the form trap 3 prescribes and the form validate-null-guards.ts names as the full guard for a previous operand. The exemplar and the trap now agree.

S2: closed. The sentence reads "A hook condition that cannot evaluate (a typo'd key, a read off a null previous) ABORTS the write with no onError escape." The thread's two reasons for naming the hook alone were checked against the tree and both hold:

  • a record-triggered flow's condition fault fails the run and the write lands (validate-null-guards.ts, outcome run-fails);
  • an advisory validation rule that cannot evaluate is skipped and the write proceeds (the same file, outcome fail-open; only an error-severity rule refuses the write).

So "a hook condition" is the widest scope the sentence is true at, and it is the scope main's text had. Record 7286361695 wrote that the sentence was also true of a validation predicate; that holds for an error-severity rule only, and the thread's narrower wording is the correct one. Nothing an author needs is lost: trap 1 carries the guard for a validation predicate.

N1, N2 and N3 of 7286361695 stay as accepted deviations. The entry is 8,999 of the card's 9,000 bytes, no nit affects correctness or the contract, and none is worth cutting a trap sentence to pay for. No new finding in the delta.

scripts/check-skills-token-ratchet.mjs

  • One row moves and none is added: 61 rows on main and on the head.
  • The row is 2243, pinned at the measurement with zero headroom: the entry is 8,999 bytes, the release-stamp line is 27, and ceil(8972 / 4) is 2243.
  • The byte account in the comment adds up: 8,974, plus 20 for the guard, plus 7 for the hook wording, minus 1 for the blank line, minus 1 for a comma, is 8,999.
  • The sum of ceilings, read from the map on both trees, is 196,275 on main (at 6cc2024e, and unchanged at the tip of main at this read) and 192,430 on the head: a fall of 3845, equal to this row's fall from 6088. No row rises against main. The rise from 2237 to 2243 is inside this PR and follows the two fixes the review asked for, each paid in the entry.
  • The comment's fall figure and the trailing ledger note both read 3845 and agree with the row.

The merge of main. b9e30211 is a plain two-parent merge. For the three files of this PR its result equals 77804a7a, plus the one row of another skill that main lowered by one token. Between the PR's base and 6cc2024e, main changed none of what the entry depends on: packages/formula, packages/lint/src/validate-null-guards.ts, packages/spec/src/shared/expression.zod.ts, the public formulas page, skills/objectstack-data/references/data-hooks.md and this skill's own directory are untouched. The truth reading of 7286361695 therefore carries over to this head.

S1: closed
S2: closed

No must-fix, no should-fix.

Implemented-by: claude/project-thread-96llpb
Reviewed-by: session_01ADHkmSAjFEZHRpRq3WCj6z

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB
L1-b, the seat's L1 thread · 2026-11-30T18:40Z · delta review

席位核对

ACCEPT @ 50530b6 (#34770 PR 4). This reviews the delta on my ACCEPT at 77804a7 (7286117663).

The merge b9e30211 (main 6cc2024e) is clean. Its tree differs from 6cc2024e only in this PR's three files. Against 77804a7 it brings in main's own CEILINGS rows and nothing else, and the formula row is untouched by it.

50530b6b fixes two things:

  • S1: the checked block's transition line is now P`previous != null && previous.status != 'escalated' && record.status == 'escalated'`. That closes the note I raised: copied into a validation rule or an insert-and-update hook, it no longer faults on insert. It parses on main's @objectstack/formula with no unknown function.
  • S2: trap 3's abort sentence names the hook condition again. That is the seat's contract-review point (PASS 7288139918).
  • The changeset corrects its line count (136 → 135) and one sentence. The ratchet comment states the +27/−2 bytes.

Measured in a scratchpad worktree at this head:

  • SKILL.md is 8999 bytes and 135 lines.
  • check-skills-token-ratchet: 61 within ceilings, with the formula row 2243 pinned at the measurement.
  • check-skill-links: 290 resolve.
  • formula skill-catalog-sync and cel-stdlib-drift: 5/5.
  • The fence's TypeScript is unchanged (only the CEL inside the tag moved), so the earlier check:skill-examples reading stands.

CI at this head: 30 success, 20 skipped, 1 in progress. Tier H: it stays a draft, and the hand-over is the seat's.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

维护者速读

  • 用户能看到什么变化: 只改技能文字。objectstack-formula 技能的入口从 24,377 字节削到 8,999 字节,改成「路由」:只留作者做决定要用的规则和陷阱,其余指向表达式契约、os validate 和公开的 formulas 文档页。没有新文件,frontmatter 不变。
  • 为什么做: 卡 skills: SKILL.md becomes a router with a size budget, and points to the contract instead of restating it #34770 第 4 个 PR(技能瘦身,一次一个技能)。评测:main 32/42,这个 head 39/42,没有「main 过、本 head 每遍都挂」的题。
  • 出错会怎样: 不改代码行为,最坏是 AI 写公式时少了某条提示。撤销合并即可恢复。
  • 要你做什么: 动了 skills/**,属于受管路径,按 Tier H 需要你批准。不走低风险技能通道:有 security 标签(入口讲共享规则 condition 和 visibleWhen 不是权限控制),还改了 scripts/ 的 ratchet 行。批准后由席位落地。

Seat opinion: land as is.

席位核对

ACCEPT at head 50530b6be4286c9debe9359350c303ea7f3b5208 · Tier H (governed skills/**; low-risk skills arm refused: security label, scripts/ path) · Part of #34770

  1. Shape: three files: skills/objectstack-formula/SKILL.md cut to a router (24,377 → 8,999 bytes, 2243 tokens), its CEILINGS row in scripts/check-skills-token-ratchet.mjs lowered 6088 → 2243 with zero headroom (ceiling sum 196,275 → 192,430 against main), and the changeset .changeset/34770-formula-skill-router.md (@objectstack/skills patch).
  2. Premise: every sentence left is true on main, and every removed rule an author needs is recoverable from a pointer that exists (L2 7286361695 ①–④). The round-1 fixes: the example's transition predicate guards previous != null, and trap 3 names a hook condition as the only site that aborts the write (L2 delta 7288139918).
  3. Gates: on this head 32 success, 20 skipped, 0 failed; mergeable clean. Clause-②: no, Metadata-protocol: none; frontmatter byte-identical to main.
  4. Accepted deviations: N1 (routing row 6 drops the field-level-security remedy; recoverable via the data skill), N2 (a parenthesised index path), N3 (trap 4's "any multiple: true field"). The entry is at 8,999 of 9,000 bytes.
  5. Out of scope and where it went: eval cases 4, 7 and 11 forbid literals a correct answer can quote, and the formulas page's legacy table lacks MID, LEFT, RIGHT, SUBSTITUTE. Both are named in the records and left uncarded under the maintainer's no-new-cards order.
  6. Landing: L1-b delta ACCEPT 7288221795 and L2 delta PASS 7288139918 on this head (first L2 7286361695). Lands after os-zhuang approves.

ACCEPT → comment 7288221795 · Contract review → comment 7288139918

@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:45
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 2fba834 Nov 30, 2026
60 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-96llpb branch November 30, 2026 19:07
@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
…stack-ai#38802)

<!-- 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 5 of the per-skill split,
under claim 7280537583 and its amendments 7280758590 and 7288186602.

## 维护者速读

- 用户能看到什么变化:用户无感。发给 AI 的「接口设计」技能说明,入口文件从约 21 KB 缩到 9
KB:入口只留开工前四项检查、平台自动提供的接口清单、一个对象可以开放的六种操作、一段可照抄的自定义接口示例、六个「写得通过、上线后却答错或被拒」的坑,以及其余内容去哪里查的指路表。
- 为什么做:这是「技能目录瘦身」的第八份(界面、数据、自动化、平台、跨大版本升级、多语言翻译、表达式与公式七份已完成)。入口文件每次都整份装进
AI 的上下文,越长越贵,也越容易漏读。
- 出错会怎样:只动教 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 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. Not used: the two full rounds show no
fact the entry lost (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. Read below: no case is one.
- **Seat order for this PR** (claim amendment 7288186602, PR 5 =
`objectstack-api`): same shape as PR 3 (objectstack-ai#38663) and PR 4 (objectstack-ai#38795); 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-api/SKILL.md`:
21,359 → 8,986 bytes, 438 → 151 lines, 5,333 → 2,240 tokens. Frontmatter
(description, tags) is byte-identical. It now holds:

- `## First checks`, four: the installed contract wins over the
`compatibility` line, and an `apis:` block written before protocol 17
turns live; read the stack's `apis`, its `manifest.namespace` and the
object's `apiMethods`, and prefer a generated route; read the contract
and never recall a key or a code; verify with `os validate` or `os
build` and read the publish rejection, which carries the fix.
- `## Generated routes`: one listing (the `data` routes, the two `batch`
routes, import and export, the metadata read), the two routes that do
not exist (`/bulk`, a `GET` aggregate), and the two request contracts a
client gets wrong: the metadata list's closed query set with `?names=`,
and an import mapping's entry form, the only one that carries `applyOn`.
- `## API Methods (Operations)`: the six authorable primitives and what
each of the eight derived operations derives from. The heading and the
six names are held by a gate (see Acceptance notes).
- `## A declared endpoint`: the two servable `type` values, one
type-checked example (the path carve-out, `object_operation` with
`objectParams`, `cacheTtlSeconds`), and the mapping rule (move and
rename only; `transform` is rejected).
- `## Traps`, six: an anonymous endpoint needs an armed budget
(`rateLimit.enabled: true`); an app never mounts on `http.server`,
handler code runs in a flow, an inbound webhook is a `type: 'api'` flow,
and three cases have no app surface; `DELETE` is not final (the recycle
bin, the restore door, the two grants); a `PATCH` with no version token
skips the concurrency check; a public form answers `404 FORM_NOT_FOUND`
unless its `sharing` declares all three keys, strips fields outside its
sections, and is withheld on a walled posture with only a warning;
`userMessage` is the sentence for a person.
- `## Where to go`: six rows (the endpoint contract and its page, the
HTTP protocol page, the error contracts and catalog, the auth contract,
the forms page, the three sibling skills).

**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 |
|:--|:--|
| Skill Boundaries | The frontmatter description and the last routing
row. |
| Auto-Generated APIs | The routes listing, with the two absent routes.
|
| Metadata API (`/meta`) | The first note under the listing: the closed
query set, `?names=`, the two refusals. Cut to the HTTP protocol page:
the one metadata type whose list refuses `names`. |
| Public (anonymous) Form Endpoints | Trap 5: the three `sharing` keys,
the two doors, what the declaration grants, the stripped fields and the
hook to write, the walled-posture withholding. Cut to the forms page:
the file-field rule (an error at `os validate` and at publish), the
`guest_portal` name, the two form contracts. |
| Declarative Endpoints; Choosing between `apis:` and a code handler |
`## A declared endpoint` and trap 2. |
| The path carve-out | The example's two comments (`manifest.namespace`
is required and never derived; the path shape). |
| Five publish gates, each with a prescription | First check 4 (read the
rejection, it carries the fix) and routing row 1. The entry no longer
counts the gates. |
| `authRequired` and the D6 pairing | Trap 1, whole: the default, the
armed budget, why `windowMs` / `maxRequests` alone meter nothing, the
separate metering. |
| Mapping keys: projection only | One sentence under the example. Cut,
each a publish refusal that names the key: `inputMapping` on a `find` /
`get` / `delete` operation, two entries writing one target path. |
| Upgrading a pre-17 stack | First check 1 names the upgrade guide's
entry; the steps are there. |
| Endpoint Naming Conventions | Cut. Its two patterns are not paths an
app can declare (see Acceptance notes). |
| API Methods (Operations) | Kept under the same heading, as prose: the
six primitives, the eight derived operations and their sources, `upsert`
having no route. Cut: the per-primitive route table (the routes listing
carries the routes) and the size of the `ApiOperation` vocabulary. |
| Discovery & Health | Cut: discovery to the HTTP protocol page; the
health routes are not a thing a stack declares. |
| Dispatcher Error Codes | Routing row 3 (`api/dispatcher.zod.ts`). |
| Realtime Subscriptions | Cut: `references/_index.md` lists both
contract files, and first check 3 sends there. |
| Authentication & Authorization | Routing row 4: `AuthProvider` with
its six members, `LoginRequestSchema`, and that an endpoint has
`authRequired` and no nested `auth` block. Cut to the contract: the
login request's field list, and the flat `public` + `permissions` pair
of the plugin route registry. |
| Error Envelopes & the Code Ledger | Routing row 3 (a code in no ledger
fails CI) and trap 6. Cut to the contract and the error catalog: the two
envelope shapes, the two-tier vocabulary, the downstream-ledger recipe,
the locale ladder's subtag steps, the `advisories[]` element. |
| Best Practices | First check 2 (prefer a generated route), the
`upsert` clause, and the routes listing. Cut: the envelope shapes (the
contract). |
| Common Pitfalls | Traps 4 and 3. Cut to the two protocol pages, each
loud when hit: the quoted-empty entity tag, the four restore refusals,
the list / purge / empty doors. |
| Verify your work; References | First checks 4 and 3. |

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

| | before (`main` at `2fba8349`, merged in) | after (head `2b912f16`) |
|:--|--:|--:|
| `SKILL.md` (entry) | 21,359 · 438 · 5,333 | 8,986 · 151 · 2,240 |
| `skills/objectstack-api/**` (3 files) | 33,220 · 569 | 20,847 · 282 |
| all 14 `SKILL.md` together | 165,278 · 3,056 | 152,905 · 2,769 |
| whole `skills/` tree (115 files) | 1,200,447 | 1,188,074 |
| whole tree without `evals/` (73 files) | 841,293 | 828,920 |
| ratchet: authored tokens = sum of all ceilings | 192,665 | 189,572 |
| ratchet: bundle total, tokens | 297,316 | 294,223 |

The head column is measured. The tree and bundle figures of the `main`
column are the head's reading plus this entry's fall: the entry is the
only file under `skills/` that differs (`git diff --stat origin/main
HEAD -- skills`: 1 file). The sum of ceilings on `main` is read from
`main`'s own table (61 rows).

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

**Ratchet row** (`scripts/check-skills-token-ratchet.mjs`), pinned AT
its measurement, zero headroom: `skills/objectstack-api/SKILL.md` 5333 →
2240 (−3,093): `ceil((8986 − 27) / 4) = ceil(8959 / 4) = 2240`. It is
the skill's only row. The sum of all ceilings goes 192,665 → 189,572. No
row rises and none is added.

## Tests

### Eval parity

Judged by ruling record 7249189592. **No case fails on every run of the
head while `main` passes.** The with-skill arm passes 10 of 24 turns on
the head against 9 of 24 on `main`'s text. Three cases pass 3/3 on both
trees, four fail 3/3 on both trees for the same reason on each, and one
(case 6) goes 0/3 → 1/3.

Both arms, one command line for both rounds: `pnpm --filter
@objectstack/scenarios skill-evals --skills objectstack-api --repeats 3
--concurrency 4 --max-utilization 0.99`, with the model and effort flags
PR 3's rounds used; CLI 2.1.333, subscription login. The two rounds ran
back to back in one window (2026-12-01 00:32Z to 00:38Z), each from a
clean checkout of its commit. 8 behaviour cases in
`evals/endpoints-auth-routes.json`, untouched; this skill has no trigger
file, so there is no trigger reading to give.

| reading | tree | with-skill | no-skill | with-skill cases below 3/3 |
|:--|:--|--:|--:|:--|
| before round | `2fba8349` (`main`'s text; the entry is unchanged on
`main` since) | 9/24 | 0/24 | 3 (0/3) · 4 (0/3) · 5 (0/3) · 6 (0/3) · 8
(0/3) |
| **after round** | `2b912f16` (this head) | **10/24** | 0/24 | 3 (0/3)
· 4 (0/3) · 5 (0/3) · 6 (1/3) · 8 (0/3) |

| case | subject | `main` | head | what the failing answers have in
common, on both trees |
|:--|:--|--:|--:|:--|
| 1 | a declared `GET` feed | 3/3 | 3/3 | |
| 2 | an anonymous endpoint's budget | 3/3 | 3/3 | |
| 3 | a signed inbound webhook | 0/3 | 0/3 | Every answer refuses to
mount on `http.server` and sends the Stripe callback to a `type: 'api'`
flow whose start node declares the vendor header as `config.signature`.
That is what both entries and the contract say; the case requires the
literal `x-objectstack-signature`, the platform's own header, which a
Stripe answer has no reason to name. Two of three answers on `main` and
one of three on the head also leave out `functions`. |
| 4 | sign-in providers | 0/3 | 0/3 | Every answer names `AuthProvider`,
`auth.zod.ts`, `google` and `github` and stops because the project has
no files; none names `LoginRequestSchema`, the fifth required literal.
Both entries carry it. |
| 5 | `apiMethods`, `/batch`, the recycle bin | 0/3 | 0/3 | Every answer
gives the primitives, the absent `/bulk` route, the derived `restore`
and the recycle-bin restore route; none writes the table name
`sys_recycle_bin`. Both entries carry it. One head answer also names the
import route and not `/batch` (all three `main` answers name `/batch`).
|
| 6 | an import mapping's `applyOn` | 0/3 | 1/3 | Two of three turns on
each tree answer without opening the skill, and fail. The one turn that
opens it passes on the head and fails on `main`, where the entry form
(`sourceField`, `targetField`) was not in the entry. |
| 7 | the metadata list's `?names=` | 3/3 | 3/3 | |
| 8 | `userMessage` on a batch publish | 0/3 | 0/3 | No turn on either
tree opens the skill; every answer builds the per-code translation table
the case forbids. The description that decides whether the skill is
opened is the frontmatter, byte-identical in this PR. |

- **No restoration under ruling 7168461386**: no failing answer on the
head traces to a sentence the cut removed. The literals the failing
answers miss (`x-objectstack-signature`, `LoginRequestSchema`,
`sys_recycle_bin`, `userMessage`) are all carried by the head's entry,
and by `main`'s.
- **Case 5, one observation that is not a regression under the rule**:
one of the three head answers does not name `/batch`. The case fails on
every run of both trees on another literal, so the rule does not read
it; the head's entry names `/batch` in the routes listing and in the
`apiMethods` paragraph. It is reported as seen, one run.
- **Cases 3, 4, 5 and 8 cannot show a regression as they stand**: they
fail on every run of `main`. Cases 3 to 5 fail on a literal a correct
answer need not write, and cases 6 and 8 mostly on the skill not being
opened. The parity rule treats the cases as fixed, so this PR does not
touch them (see Acceptance notes).
- **No extra repeats were run**: no case flips in the direction the rule
reads, and the window is short.

Before the full rounds, the same check that calls no model: of the 27
`must_contain` literals of the 8 cases, the entry carried 24 before and
after, lost 0 and gained 2 (`sourceField`, `targetField`, case 6); 1 is
in neither tree (`/api/v1/meta/object`, which an answer composes from
the route). No `must_not_contain` literal appears in either tree's
entry.

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

- Before round on `2fba8349`: 48 of 48 turns, 2.4 min, exit 0. After
round on `2b912f16`: 48 of 48 turns, 2.6 min, exit 0. No turn timed out.
- Quota: the runner's guard was raised from its default 0.9 to 0.99 for
these two rounds, on the maintainer's answer in the project chat
(2026-12-01 00:30Z, option B of the three put to him: run now past the
0.9 line). Seven-day window as each turn reported it: 0.95 on every turn
of the before round; 0.95 rising to 0.96 during the after round; status
`allowed_warning` throughout, no turn rejected.
- The first attempt, on 2026-11-30, was stopped by the guard at its
default after 4 of 48 turns on each tree (utilization 0.90 and 0.91;
cases 1 and 2 passed once each on both trees). Those stopped rounds ran
on CLI 2.1.332 and are not counted in the table above.

</details>

### Other tests

On tree `d53fb207` (local head `57c7738b`, the same tree as the pushed
head `2b912f16`), under the verify lock (`VERDICT command-exit 0` each):

- `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 skill-map guards): `Test
Files 2 passed (2)`, `Tests 57 passed (57)`.
- `pnpm --filter create-objectstack exec vitest run --maxWorkers=2
src/created-summary.test.ts` (the one test file in the tree that names
this skill): `Test Files 1 passed (1)`, `Tests 12 passed (12)`.

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

## Acceptance notes

Held by a gate, recorded here as it stands in the entry:

- **The heading `## API Methods (Operations)` and the six primitive
names stay inline.** `scripts/check-skill-identifier-liveness.mjs`
registers that section of this file as exhaustive for `ApiMethod` and
requires every member in it. That script is outside this claim's file
surface. So the section became four lines of prose under its old
heading, and the route table went to the routes listing. If the section
should leave too, the registration 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: a declaration or a call that passes and then
answers wrong at run time stays inline.** Inline: the six traps and the
two request contracts under the routes listing. Cut to a pointer, each
loud when hit: a wrong endpoint key (the strict shape refuses it and
names the key to write), the publish gates one by one, the two further
mapping refusals, the restore refusals, the quoted-empty entity tag.
- **Two traps stay inline although a check exists.** Trap 1: the gate
refuses `authRequired: false` without an armed budget, and the entry
carries the form to write, which is what eval case 2 asks for. Trap 5's
walled-posture sentence: its check only warns at save and publish, and a
warning is not a refusal, so the consequence (the form is withheld) and
the declaration that resolves it stay, the standard PR 3 applied to its
own warning-only rules.
- **The endpoint naming table is cut, not moved.** Its two patterns (an
object-scoped action path and a domain action path) are not paths an app
can declare: a declared path lives under the app's own carve-out, and
the endpoint matcher has no path-template syntax. The table taught a
form the publish gate rejects.
- **`AuthProvider` keeps its six members inline** (0.1 KB): a provider
name that is not a member is an authoring mistake the entry can stop
before the contract is opened, and eval case 4 asks for the names.
- **The health routes are cut with no pointer.** Nothing in a stack
declares them, and the HTTP protocol page has no health section, so a
pointer there would be untrue.
- **The entry no longer counts the publish gates.** The published pages
count them differently (four on one, five on another, for the same
checks); the entry says the rejection arrives one gate at a time and
carries its fix.
- **Trap 6 is scoped to the sites where it is true**: "show
`userMessage`, never `message`" is said of a batch publish's
`probes.issues[]` alone, and the flow door's order (`userMessage`, then
`details.innerRefusal`, then `message`) is given beside it. The locale
sentence is said of platform text.
- **A version check opens the first checks**, as in the other router
entries; here it also carries the one upgrade fact that changes what an
old `apis:` block does.
- **Section anchors of the entry changed.** The changeset lists every
anchor that left `SKILL.md` (24) and the five new ones;
`#api-methods-operations` stays. No file in this repository links one of
the old ones.
- **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:

- Four eval cases fail on every run of both trees (Eval parity). Case
3's expected answer says an inbound `type: 'api'` flow verifies only the
platform's own signature header, while `main`'s entry and the contract
(`automation/api-trigger-signature.zod.ts`) also give a vendor's HMAC
header declared as `config.signature`, and every answer on both trees
follows the contract. Cases 4 and 5 each require one name
(`LoginRequestSchema`, `sys_recycle_bin`) that a correct answer leaves
out. Case 8 never opens the skill, and case 6 does in one turn of three.
The parity rule treats the cases as fixed and the frontmatter is
byte-identical by order, so this PR touches neither. Carrier: none;
noted for whoever owns the case file and the description.
- `main` moved during the work: PR 4 of this split (objectstack-ai#38795) and a rise
of one `objectstack-data` row merged. `main` is merged in (`2fba8349`, a
plain merge commit); the textual merge was clean and the workspace was
rebuilt before any gate ran.

## Verification

Read first, by risk:

1. `skills/objectstack-api/SKILL.md`, the whole file: is anything a
model needs before opening the contract missing? The risk hunks are `##
Traps` (six items replace most of the old file) and trap 2, which
carries the whole "no handler code" teaching.
2. `.changeset/34770-api-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-api`
row.

Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints
`ratcheted (authored) 189572 / 189572 (+0)` and
`skills/objectstack-api/SKILL.md 2240 / 2240 (+0)`; `wc -c
skills/objectstack-api/SKILL.md` prints 8986.

Gates, local, each exit code captured before any pipe. The whole derived
list ran on tree `d53fb207` (local head `57c7738b`; the pushed head
`2b912f16` carries the same tree, `main` unmoved at `2fba8349`), after
the merge of `main` and a full rebuild.

<details><summary>Derived families on tree `d53fb207`: 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).` No STALE TREE warning.
- `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) 189572 / 189572 (+0)`, `bundle
total 294223`); 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; 160 fragment(s) name a real heading under GitHub's slug
rule.`
- `pnpm check:skill-identifier-liveness`: `Leg 1: 517 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`, `check:ratchet-remedy-authority`:
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 tree `d53fb207`, all exit
0</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`.
- `pnpm check:doc-anchors`: `1186 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 four
pages the entry links are among them.
- `pnpm check:skill-top-level-keys`: exit 0.
- `pnpm --filter @objectstack/spec check:generated` after the merge and
the rebuild: `All 14 generated artifacts are up to date`.
- `node scripts/check-platform-checklist.mjs --changed-from
origin/main`: `0 anchored files in the change set — nothing judged.`
- `node scripts/check-nul-bytes.mjs`: exit 0; a control-byte scan of the
three changed files finds none.

</details>

Not run locally: `test:repo` (CI's).

Base: the router commit was written on a local branch cut from
`f7252bc3` while PR objectstack-ai#38795 held this branch; after objectstack-ai#38795 landed, the
thread branch took `main` at `2fba8349` (merge `840c3aa8`) and the
router commit was cherry-picked onto it as `2b912f16`, whose tree is the
gated tree `d53fb207`. `overlap-check` before the push: origin/main,
objectstack-ai#38797, objectstack-ai#38790 and objectstack-ai#38192 merge cleanly; objectstack-ai#38497 conflicts in the ratchet
file against `main` itself (another skill's row), not this branch's. 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/l 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