Skip to content

Commit 4d07ddb

Browse files
docs(skills): the objectstack-platform entry file becomes a router (#38434)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X7GWETDi9u4dvkUQScG3bFd)_ 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 (PR 1 of the per-skill split in claim 7247529795). **Eval parity is settled by ruling record 7249189592** (see Eval parity under Tests): the three cases that read as misses on single runs, cases 6, 11 and 20, flip on `main`'s own text too and do not block. ## 维护者速读 - 用户能看到什么变化:用户无感。发给 AI 的平台技能说明,入口文件从约 25 KB 缩到 9 KB:入口只留开工前四项检查、能通过校验却在运行时出错的坑、和「要做什么就去读哪个文件」的路由表;其余原文搬进同一技能的参考文件,教的内容不变。 - 为什么做:这是「技能目录瘦身」的第四份(数据、界面、自动化三份已完成)。入口文件每次都整份装进 AI 的上下文,越长越贵,也越容易漏读。 - 出错会怎样:只动教 AI 的文字,没有产品行为变化;风险是 AI 少读一段后答错。改动前后都跑了评测:23 题里有三题在单次运行里时过时不过,改动前的文字上也一样,按你的裁定算两边都不稳,不拦这笔改动。可整笔撤回。 - 要你做的:无。席位核对与合约审查通过后,会按治理规则请审批人批准。 ## Rulings this executes - **Card Scope** (decision record on the card, S3 = A): the entry file holds first checks, at most about 8 traps that pass the schema and fail at run time, and a routing list; 6–9 KB, hard cap 500 lines; restated option lists and key tables go behind a pointer; no trap is removed until a publish-time check covers it or it stays inline. - **7128031203** fork 4 = A, verbatim: "A ratchet ceiling raised because text MOVED between files is accepted when (a) each raised row equals the measured bytes moved in, with zero headroom, and (b) the sum of ceilings does not rise. It covers PR #36158's seven rows (re-measured on its final head) and later moves of the same kind; any row outside (a)/(b) still goes to the maintainer." Beside the standing 2026-10-27 ruling 「A:先削重复,余额按实测提高」 (record 6513306068). - **7128031203** fork 2 = A, the parity rule, verbatim: "the same set of failing cases counts as \"not lower\"; a case that flips between the rounds is rerun once and its second reading counts." - No new file under `skills/` (a split needs new ratchet rows, which that ruling left to a human): text moved only into files that already have a row. - **Ruling record 7249189592** (on the card; the maintainer's answer, verbatim 「4」, to the option 「把技能瘦身那个时好时坏的评测按「两边都不稳」放行,#34770 后面 7 个 PR 才能接着走。」): "a `config-plugins-ops` case whose result flips between runs on both trees (main and head) is treated as unstable on both and does not block the PR. On PR #38434, case 6 (`driver-sql`: main 3/5, head 5/5) and case 11 (`new similar`: main 4/5, head 3/5) pass the parity gate on this ruling. ... A case that fails on every run of head while main passes is still a regression." ## What changes **The entry file becomes a router.** `skills/objectstack-platform/SKILL.md`: 24,659 → 9,025 bytes, 421 → 105 lines, 6,158 → 2,250 tokens. Frontmatter (description, triggers) is byte-identical. It now holds: - `## First checks`: version, read what exists, read the contract (`references/_index.md`), `os validate`. - `## Traps`, five, each one passing `os validate` and failing at run time: no driver in `plugins:`; an installed package is customized from its paired `.custom` package; who owns the HTTP server and that `prefix` does not move auth; `manifest.engines.protocol`; `manifest.namespace`. - Three sections a gate binds to this file, each cut to its enumeration plus what fails silently: the `defineStack()` key list (`check-skill-top-level-keys`), the `requires:` provider table with three rules, and `## Seed Data` with the `demoStaff` trap (both Leg 2 of `check-skill-identifier-liveness`). - `## Where to go`: one row per task, naming the file to open. **Where each old section went.** | Old entry section | Now | |:--|:--| | Full Configuration Reference (key list, phantom keys, queues / assignment rules) | stays inline, compacted (gate-bound) | | Strict Validation | `references/bootstrap.md` § Strict Validation, verbatim | | Compile Artifact and Runtime Metadata Boundary | one paragraph in `references/operations.md`, above Verify your work | | Manifest Reference | the two rules are traps 4 and 5; the rest is `references/bootstrap.md` § Manifest; the annotated example is cut (see Acceptance notes) | | Customizing an installed package | trap 2 inline; the three paragraphs verbatim in `references/bootstrap.md` § Customizing an installed package | | The App / Platform Boundary | cut to a pointer at objectstack-project, which states it; the two sentences it does not have are `references/bootstrap.md` § App or platform | | The Template | `references/bootstrap.md`, under Scaffolding Command | | Project Structure Conventions, Naming Conventions | `references/bootstrap.md` § Project Structure Conventions; the naming table is cut to a pointer at objectstack-data | | Driver Selection Guide, Wiring a driver | trap 1 inline; the table verbatim and the remainder in `references/operations.md` | | HTTP Layer (Hono) | trap 3 inline; the two-package table and the remainder in `references/operations.md`; the usage snippet is cut | | Runtime Boot Sequence | `references/bootstrap.md` § Runtime Boot Sequence, verbatim | | `requires:` | provider table and three rules inline; the remainder is `references/bootstrap.md` § `requires:` in detail | | `onEnable` | `references/bootstrap.md`, verbatim | | Seed Data, Demo accounts | inline (modes, and that a seed cannot create a person); the example and detail in `references/bootstrap.md` § Demo accounts | | References | replaced by the routing table | **Two restatements cut inside the skill** to pay for the move: in `references/plugin-development.md`, the `Plugin` interface block and the hook example with its event list are one pointer each to `rules/plugin-lifecycle.md` and `references/plugin-hooks.md`, which carry the same text. **Sizes** (bytes · lines · ratchet tokens): | | before (`ff69bcab`) | after (`cb8b7cd1`) | |:--|--:|--:| | `SKILL.md` (entry) | 24,659 · 421 · 6,158 | 9,025 · 105 · 2,250 | | `references/bootstrap.md` | 5,425 · 188 · 1,340 | 17,621 · 375 · 4,389 | | `references/operations.md` | 13,556 · 179 · 3,389 | 16,075 · 223 · 4,019 | | `references/plugin-development.md` | 12,505 · 358 · 3,127 | 11,360 · 320 · 2,840 | | `skills/objectstack-platform/**` (9 files) | 107,525 · 2,398 | 105,461 · 2,275 | | all 14 `SKILL.md` together | 228,159 · 4,386 | 212,525 · 4,070 | | whole `skills/` tree (115 files) | 1,230,467 | 1,228,403 | | whole tree without `evals/` | 872,675 | 870,611 | | ratchet: authored tokens = sum of all ceilings | 200,510 | 199,994 | | ratchet: bundle total, tokens | 304,822 | 304,306 | **Budget reading:** entry 9,025 B, over 9,000 B by 25 B. 9,000 B is the top of the card's Scope line ("Budget 6–9 KB, hard cap 500 lines", the maintainer-approved filing); the overrun is the `@objectstack/driver-sql` literal the case-6 behaviour depends on, kept inline on the seat's choice (B) of 2026-11-29, and is for the approver to accept or refuse. No ratchet ceiling rises for it. The 500-line cap holds (105 lines). The row is unchanged at 2,250 tokens (8,998 priced bytes), still at the measure. **Contract review fix (review record 7249357427, S1 and N1), paid inside the entry, 9,027 → 9,025 B:** the AI-door rule names the gated call again (`run_action` on an action declaring `ai.requiresConfirmation: true` is what is refused 428 with no confirmation service), and the host-default sentence says `pinyin-search` mounts for a `zh-*` locale in `i18n`. The skill directory falls 2,064 bytes. The cut is small beside the move because three of the entry's enumerations are gate-bound and stay (see Acceptance notes). **Ratchet rows** (`scripts/check-skills-token-ratchet.mjs`), each pinned AT its measurement, zero headroom: entry 6158 → 2250 (−3908), `references/bootstrap.md` 1340 → 4389 (+3049), `references/operations.md` 3389 → 4019 (+630), `references/plugin-development.md` 3127 → 2840 (−287). The four rows sum 14,014 → 13,498; the sum of all ceilings goes 200,510 → 199,994, so both conditions of fork 4 = A hold. ## Tests ### Eval parity Judged by ruling record 7249189592, quoted under Rulings: a case that 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. **No case fails on every run of the head while `main` passes.** Skill evals, both arms, one command line for every round (`skill-evals --skills objectstack-platform --repeats 1 --model sonnet --effort medium --concurrency 4`; served `claude-sonnet-5-5`, CLI 2.1.332, subscription login). 23 cases in `evals/config-plugins-ops.json`, untouched. | reading | tree | with-skill | no-skill | with-skill failing cases | |:--|:--|--:|--:|:--| | before round | `ff69bcab` | 20/23 | 0/23 | 2, 5, 9 | | after round | `9129aa7d` | 20/23 | 0/23 | 5, 9, 11 | | second reading of each flipped case, once | `9129aa7d` | | | 11 fail · 2 fail | | after set by the one-rerun rule | | | | 2, 5, 9, 11 | | round on the final head | `cb8b7cd1` | 19/23 | 0/23 | 2, 5, 9, 20 | | case 20 read three more times | `cb8b7cd1` | 1/3 | 0/3 | | Cases 2, 5 and 9 fail on `main` and on the head alike (case 2 misses `destroy`; case 5 carries `os rollback`; case 9 misses `queues:` and `assignmentRules:`). The two cases that read as misses on single runs, each read five times on each tree (`--case` with `--repeats 5`; for the `main` side the four skill files were checked out from `ff69bcab` over the worktree for the run, then restored): | case | what it asks | `main`'s skill files | this PR | literal missed | |:--|:--|--:|--:|:--| | 6 | a production deployment plan | 3/5 | 5/5 on `989821ef`; on `9129aa7d` it passed its own reading and the round | `driver-sql` | | 11 | a dependent package wants to override an installed package's view and permission set | 4/5 | 3/5 on `9129aa7d` | `new similar` | Both flip on both trees. In every reading of either case the answer gives the right course; what comes and goes is one literal. Case 20 (must `storage` and `settings` be listed in `requires:`) is the third of the kind. On `main`'s skill files it passed the before round and 2 of 4 turns of the five-repeat round; on this branch it read 3/5 on `9129aa7d` and, on `cb8b7cd1`, failed the round and passed 1 of 3 further readings. Each failing answer says no, they are always-on, and then shows the forbidden literal `requires: ['storage', 'settings']` as what to add under `--preset minimal`, which is what the case's own expected answer says to do there. The sentence it reads ("every boot mounts them, and only `--preset minimal` drops them") is the same text on every head. **Six cases changed verdict at least once across the five single-repeat rounds on this branch: 2, 6, 9, 11, 19, 20.** | case | `ff69bcab` (before) | `74592fbd` | `989821ef` | `9129aa7d` | `cb8b7cd1` | |:--|:--|:--|:--|:--|:--| | 2 | fail | fail | fail | pass, rerun fail | fail | | 6 | pass | pass | fail, rerun fail | pass | pass | | 9 | fail | fail | pass, rerun fail | fail | fail | | 11 | pass | pass | fail, rerun pass | fail, rerun fail | pass | | 19 | pass | fail, rerun pass | pass | pass | pass | | 20 | pass | pass | fail, rerun pass | pass | fail, then 1 of 3 | Round totals, with-skill: `ff69bcab` 20/23, `74592fbd` 19/23, `989821ef` 18/23, `9129aa7d` 20/23, `cb8b7cd1` 19/23; no-skill 0/23 in every round. <details><summary>Round records and what each with-skill turn read</summary> - Before round: 46/46 turns, 3 min. 8 of 23 with-skill turns read a reference file (`operations.md` 8, one each of `bootstrap.md`, `plugin-development.md`, `plugin-hooks.md`, `plugin-lifecycle.md`, `service-registry.md`). - After round on `74592fbd`: 46/46 turns, 2.9 min. 13 of 23 with-skill turns read a reference file (`operations.md` 6, `bootstrap.md` 5, `_index.md` 2). - After rounds on `989821ef` and `9129aa7d`: 46/46 turns, 3 min each. Round on `cb8b7cd1`: 46/46 turns, 2.8 min; cases 17 and 23, whose sentences the last commit shortened or extended, pass. - A five-repeat round, started under a method the ruling then replaced, is on record as taken and is not the basis of the verdict. It completed on `9129aa7d`: with-skill 95/115, no-skill 0/115; cases 2, 5 and 9 at 0/5, case 11 at 3/5, case 19 at 4/5, case 20 at 3/5, every other case 5/5. On `main`'s skill files it was stopped at 206 of 230 turns when the ruling arrived; in the turns that ran, cases 2, 5 and 9 were at 0/5, case 6 at 3/5, case 11 at 4/5, case 20 at 2/4, every other case passing. - Every `must_contain` literal of the 23 cases that the skill's files carried before is still carried after (77 literals checked; 0 lost). Two left the entry for a reference: `os lint` (case 5), `manager: '` (case 8). </details> ### Other tests `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 scripts/platform-catalog.test.ts` (the suite that names the ratchet script), on `cb8b7cd1`: `Test Files 1 passed (1)`, `Tests 21 passed (21)`, under the verify lock (`VERDICT command-exit 0`). No ablation: the diff changes prose and one ledger, no tested behaviour. ## Acceptance notes Decided here (small, no shipped behaviour), each open to reversal in review: - **A mechanism assumption of the dispatch did not hold for three blocks.** The key list, the `requires:` provider table and `## Seed Data` are restated contract lists, but the gates that keep them true bind to the entry file by path and heading. Moving them behind a pointer needs gate edits outside this claim's file surface, so they stay inline in compact form (the UI router kept its bound enumerations the same way). This is why the directory falls 2.1 KB and not more. - **"No trap is removed" was read as: silent or degraded-at-run-time facts stay inline; loud ones may sit one link away.** Inline: the five traps, the dropped-key warning, `triggers` without `job`, the confirmation service, `hierarchy-security` without its provider (a boot warning, scopes fall back to owner-only), `demoStaff` (a seed cannot create a person; only `os dev` creates the accounts), and the `data:*` hook that never fires (in the routing row). One link away, each refused loudly when hit: `automation` missing while `plugins:` lists a connector (boot fails), a query capability the Memory or MongoDB driver refuses, the unknown `requires` token (refused by `defineStack`), route-literal names and the legacy double-underscore prefix (refused by `os validate` / `defineStack`). - **The App / Platform Boundary section is cut to a pointer.** objectstack-project states the same test and steps; the two sentences it does not have are kept in `references/bootstrap.md` § App or platform. - **The annotated manifest example is cut**, so the type-checked example count falls by one (351 marked examples pass). Every key it showed is in `kernel/manifest.zod.ts`; the barrel example in `references/bootstrap.md` gained `engines` so one checked example still shows it. - **Three counts left the template paragraph** ("three" executors, "eight" barrels, "five" retired templates): the lists themselves are printed, and a count beside a list drifts. - **The pinyin-search row folded into the plugin- row** of the provider table (same package rule, 41 bytes), to pay for the two facts that went back inline. - **Trap 1 names `@objectstack/driver-sql` again** (36 bytes), the seat's choice after the case-6 miss; the entry is 25 bytes over the card's 9 KB budget line for it (see Budget reading). - **The review fix was paid with four phrases of the entry**, none of them a trap: "an error-in-waiting" after the dropped-key warning (the warning itself stays), "on the stack root turns it on" beside `requires: [...]` (the key list above it names `requires`), the `@objectstack/core` home of `CAPABILITY_PROVIDERS` (the name stays), and "to your Cloud environment" in the routing row, now "to Cloud" (`references/operations.md` names the environment). Noted, not changed (outside this claim's file surface): - Other skills name sections of this skill in prose: objectstack-i18n ("Runtime Boot Sequence"), objectstack-api ("Driver Selection Guide"), objectstack-automation and objectstack-data ("Customizing an installed package"), several ("Verify your work"). Each heading keeps its name and now lives in a reference file the routing table or a trap links; no link gate reads these prose pointers, and their files sit at zero ratchet headroom. - `packages/spec/scripts/lib/skill-map-guards.ts`: the `objectstack-platform` rows of `TRANSITIVE_ALLOWLIST` go stale, not only their comment. The list's header says a row means the SKILL.md teaches that schema, and the rows are "kept iff" the entry names one of the module's exported names; at this head three rows lose the only export the entry named (`data/field.zod.ts` `FieldSchema`, `security/rls.zod.ts` `RLS`, `data/object.zod.ts` `ObjectSchema`), and `data/hook.zod.ts` was already unmatched on main. `check:skill-refs` stays green because it does not ask reachability. Carrier: #38451 (drop or re-justify the rows and regenerate `references/_index.md` after this PR merges). - The version PR #38192 touches the same two files on the stamp line and the five body pins only; `overlap-check` reads it as merging cleanly. ## Verification Read first, by risk: 1. `skills/objectstack-platform/SKILL.md`, the whole file: is anything a model needs before opening a second file missing? The risk hunks are `## Traps` and the three rule bullets under the provider table. 2. `skills/objectstack-platform/references/bootstrap.md` § `requires:` in detail and § Manifest: these were rewritten as the complement of the entry, not moved verbatim. 3. `scripts/check-skills-token-ratchet.mjs`: the four `objectstack-platform` rows. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints `ratcheted (authored) 199994 / 199994 (+0)` and every `objectstack-platform` row at `(+0)`; `wc -c skills/objectstack-platform/SKILL.md` prints 9025. Gates, local (each exit code captured before any pipe). The whole derived list ran on `989821ef`; `cb8b7cd1` differs from it by five sentences of the entry, one ratchet row with its comments and one number in the changeset, so only the families that read those were run again on it. <details><summary>On `cb8b7cd1`: the families the last two commits reach, all exit 0</summary> - `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) 199994 / 199994 (+0)`). - `pnpm check:skill-top-level-keys`: `skills/objectstack-platform/SKILL.md:44 enumerates all 56 authorable top-level keys of ObjectStackDefinitionSchema`. - `pnpm check:skill-identifier-liveness`: `Leg 1: 544 citation(s) over 76 published file(s) ...; Leg 2: 11 registered exhaustive section(s), 0 ledgered gap(s).` - `pnpm check:skill-links`: `285 relative link(s) in 76 published skill file(s) resolve; 157 fragment(s) name a real heading under GitHub's slug rule.` - `pnpm --filter @objectstack/spec run check:skill-docs`: `Skill docs in sync`. `check:skill-refs`: `10 generated files in sync with packages/spec`. - `pnpm --filter @objectstack/spec run check:skill-examples`: `351 prose examples type-check across 3 surface(s)`. - `pnpm check:nul-bytes`: `no raw ASCII control bytes`. `pnpm check:role-word`: exit 0. - `node scripts/pm/overlap-check.mjs --branch=claude/project-thread-lqv7wj`: `VERDICT clean exit 0` before the push. </details> <details><summary>On `989821ef`: derived families, 70 derived, 69 run green, 1 NOT MEASURED</summary> - Reconciliation: `✓ dispatch-gates --ran: 70 derived famil(ies) accounted for — 69 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).` - NOT MEASURED: `pnpm check:dual-build-cjs-loads`, exit 3, `PREREQUISITE NOT MET`. It reads every package's built `dist/`, and this container holds only two packages' build closures. The diff touches no package source; CI's run is the reading. - Exit 0 in that run, beside the families listed above: `check:role-word`, `check:doc-authoring`, `check:published-files`, `check:scaffold-emission-policy`, `check:skill-compatibility`, `check:corpus-claim-drift`, the changeset gates, `check:pm-dispatch-gates` (fast tier, 2459 cases). - Beside the derived list, exit 0: `check:doc-anchors` (`1175 internal #fragment link(s) across 367 source file(s) all resolve to a real heading`), `check:skill-served-sections` (the hosted door serves no section of this skill), `check:published-readme-links`, `node scripts/check-platform-checklist.mjs --changed-from origin/main` (`0 anchored files in the change set — nothing judged.`). `check:published-readme-exports`: NOT MEASURED, exit 3, the same missing-build prerequisite; not derived for this diff. </details> CI on `cb8b7cd1`, read while it ran: 17 check-runs success, 16 skipped by the path filter, 10 in progress, none failing; the seat reads its conclusion. On `9129aa7d` it ended 32 success and 20 skipped, none failing. The earlier run on `989821ef` (46210313609) was cancelled when `9129aa7d` was pushed; its two aggregate jobs read `failure` only because four lanes concluded `cancelled` (no lane failed). --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5kaby17PRNj45xGyDc)_ <!-- signed: repo:objectstack#5 · os-project-manager · session_01FEkQ5kaby17PRNj45xGyDc --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent bc110e1 commit 4d07ddb

6 files changed

Lines changed: 369 additions & 410 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): the objectstack-platform entry file becomes a router
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-platform/SKILL.md` goes from 24.7 KB to 9.0 KB (421 lines to 105). It now holds three things: four first checks (the installed `@objectstack/spec` version, what the project already has, the contract, `os validate`), the traps that pass `os validate` and then fail at run time, and a table that says which file to open for the task at hand. No rule's teaching changes. Text moved, and this entry says where it went. The skill's files are 2.1 KB smaller together (107.5 KB to 105.5 KB).
11+
12+
**What the entry keeps.** Five traps: no driver in `plugins:`, an installed package is customized from its paired `.custom` package, who owns the HTTP server (`createHonoApp` or `HonoServerPlugin`), `manifest.engines.protocol`, and `manifest.namespace`. Then the full list of `defineStack()` top-level keys with the rule that an undeclared key is refused, the `requires:` provider table with the three rules that bite most often, and `Seed Data` (the three import modes; a seed cannot create a person, `demoStaff` does).
13+
14+
**What left, and where it is now.**
15+
16+
- `references/bootstrap.md` now also holds `Strict Validation` (`#strict-validation`), the manifest notes the entry's two traps do not repeat (`#manifest`), `Project Structure Conventions`, what the `blank` template scaffolds (under `#scaffolding-command`), `Runtime Boot Sequence` (`#runtime-boot-sequence`), the `requires:` tokens that have no provider row and the remaining rules (`#requires-in-detail`), `onEnable`, `Customizing an installed package` in full (`#customizing-an-installed-package`), and `demoStaff` with its example (`#demo-accounts--demostaff-vs-devlogins`).
17+
- `references/operations.md` now also holds `Driver Selection Guide` (`#driver-selection-guide`), when to construct `DriverPlugin` yourself (`#wiring-a-driver-yourself`), `HTTP Layer (Hono)` (`#http-layer-hono`), and the note that `os compile` writes `dist/objectstack.json`.
18+
- Anchors that no longer exist in `SKILL.md`: `#definestack--the-core-configuration` (now `#definestack-keys`), `#full-configuration-reference`, `#strict-validation`, `#compile-artifact-and-runtime-metadata-boundary`, `#manifest-reference`, `#the-app--platform-boundary`, `#the-template`, `#project-structure-conventions`, `#naming-conventions`, `#driver-selection-guide`, `#wiring-a-driver--you-usually-do-not`, `#http-layer-hono`, `#usage-pattern-hono`, `#architecture`, `#runtime-boot-sequence`, `#onenable--where-an-app-binds-runtime-code`, `#demo-accounts--demostaff-vs-devlogins`, `#references`. `#requires--which-service-plugins-boot` and `#seed-data` still do.
19+
20+
**Not carried over, because another file already says it.** The `App / Platform Boundary` section (objectstack-project owns that decision; `references/bootstrap.md#app-or-platform` keeps the two sentences it does not have), the naming-convention table (objectstack-data's naming rules), the annotated manifest example (every key is in `kernel/manifest.zod.ts`, which the entry's third check points at; the barrel example in `references/bootstrap.md` now shows `engines`), the Hono usage snippet, and the closing list of the other files (the routing table replaces it). In `references/plugin-development.md`, the `Plugin` interface block and the hook example are now one pointer each to `rules/plugin-lifecycle.md` and `references/plugin-hooks.md`, which carry the same text.

‎scripts/check-skills-token-ratchet.mjs‎

Lines changed: 66 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,38 @@ export const CEILINGS = new Map([
11241124
// row adds 20 bytes, so the LANDED priced text is 24632 bytes -> 6158
11251125
// tokens: the ceiling moves 6153 -> 6158 (+5). Pinned AT the measurement.
11261126
// ceil(($(wc -c < skills/objectstack-platform/SKILL.md) - 27) / 4) == ceil(24632 / 4)
1127-
['skills/objectstack-platform/SKILL.md', 6158],
1127+
// 6158 -> 2241 (#34770, the entry file becomes a router; authority as the
1128+
// `skills/objectstack-data/SKILL.md` row): LOWERED. The entry keeps four first checks, five
1129+
// traps that pass `os validate` and fail at run time (a driver in `plugins:`, customizing an
1130+
// installed package from its pair, who owns the HTTP server, `manifest.engines.protocol`,
1131+
// `manifest.namespace`), the routing table, and the three sections a gate binds to this file:
1132+
// the `defineStack()` key enumeration (`check-skill-top-level-keys`), the `requires:` provider
1133+
// table and `## Seed Data` (both Leg 2 of `check-skill-identifier-liveness`), each cut to the
1134+
// enumeration and what fails silently. What left, and its home: Strict Validation, the
1135+
// manifest notes, Project Structure Conventions, the template paragraph, Runtime Boot
1136+
// Sequence, the `requires:` detail, `onEnable`, Customizing an installed package and Demo
1137+
// accounts -> `references/bootstrap.md`; Driver Selection Guide, HTTP Layer (Hono) and the
1138+
// compile / alias paragraph -> `references/operations.md`. Gone, each restating a file the
1139+
// entry now names: the App / Platform Boundary section (objectstack-project), the naming
1140+
// table (objectstack-data), the annotated manifest example (`manifest.zod.ts`), the Hono
1141+
// usage block, the References list. 24659 bytes (24632 priced) -> 8991 (8964 priced) -> 2241
1142+
// tokens; the ceiling follows the file down to the measurement, which also pins the 9 KB
1143+
// budget from here on.
1144+
// ceil(($(wc -c < skills/objectstack-platform/SKILL.md) - 27) / 4) == ceil(8964 / 4)
1145+
// 2241 -> 2250 (#34770, the parity round): trap 1 names again the package the CLI resolves
1146+
// for a SQL database URL (`@objectstack/driver-sql`), the literal the entry's driver table
1147+
// carried before the split; without it a deployment plan described the driver and did not
1148+
// name it. Nothing else in the entry is cut to pay for it, on the owning seat's choice: the
1149+
// file is 8991 -> 9027 bytes (8964 -> 9000 priced), +36, 27 bytes over the 9 KB target the
1150+
// row above pinned, -> 2250 tokens, pinned AT the measurement. The row still falls 3908 from
1151+
// the 6158 before this change, so no raise path is spent.
1152+
// ceil(($(wc -c < skills/objectstack-platform/SKILL.md) - 27) / 4) == ceil(9000 / 4)
1153+
// 2250 stays (#34770, the review round): the AI-door rule names the gated call again (an
1154+
// action declaring `ai.requiresConfirmation: true`) and `pinyin-search` its `zh-*` locale
1155+
// condition, both paid inside the entry: 9027 -> 9025 bytes (9000 -> 8998 priced), 25 over
1156+
// the 9 KB target, the same 2250 tokens, still AT the measurement.
1157+
// ceil(($(wc -c < skills/objectstack-platform/SKILL.md) - 27) / 4) == ceil(8998 / 4)
1158+
['skills/objectstack-platform/SKILL.md', 2250],
11281159
// `skills/objectstack-pm-dispatch/SKILL.md` (9708) and its
11291160
// `rules/dev-template.md` (1838) left this table on 2026-09-10 with the files:
11301161
// the maintainer deleted the published PM skill whole (verbatim:
@@ -2421,7 +2452,25 @@ export const CEILINGS = new Map([
24212452
['skills/objectstack-data/references/seeds.md', 1895], // -3 to the measurement (was 1898)
24222453
// 1351 -> 1343: the body-pin values left the count (#31115, ruling B; see
24232454
// BODY_PIN_REPIN); the file's count fell by the same 8, headroom unchanged.
2424-
['skills/objectstack-platform/references/bootstrap.md', 1340], // -3 to the measurement (was 1343)
2455+
// 1340 -> 4389 (#34770): RECEIVES from SKILL.md, no new teaching: `### Strict Validation`,
2456+
// `### Manifest`, `### Project Structure Conventions`, the template paragraph under
2457+
// Scaffolding Command, `## Runtime Boot Sequence`, `### requires: in detail`, `### onEnable`,
2458+
// `## Customizing an installed package`, `## Demo accounts` and `## App or platform`. PAID
2459+
// DOWN FIRST: the manifest, `requires:` and demo-account sections arrive as the complement of
2460+
// what the entry still states, and the template paragraph without its three counts. The file
2461+
// is 5425 -> 17621 bytes (+12196; 5360 -> 17556 priced, the five body pins excluded) -> 4389
2462+
// tokens, zero headroom before, ceiling +3049, pinned AT the measurement.
2463+
// Authority: the decision record that orders the entry file down to router size (as the
2464+
// `skills/objectstack-data/SKILL.md` row) and the maintainer's ruling of 2026-11-24 (ruling
2465+
// record 7128031203, fork 4 = A), which names "later moves of the same kind": a ceiling
2466+
// raised because text MOVED between files is accepted when each raised row equals the
2467+
// measured bytes moved in, with zero headroom, and the sum of ceilings does not rise. Both
2468+
// hold: the four objectstack-platform rows this change moves are each pinned AT their
2469+
// measurement and sum to 13498, under the 14014 before it (-3908 entry, +3049 here, +630
2470+
// `references/operations.md`, -287 `references/plugin-development.md`); the sum of all
2471+
// ceilings goes 200510 -> 199994.
2472+
// ceil(($(wc -c < skills/objectstack-platform/references/bootstrap.md) - 65) / 4) == ceil(17556 / 4)
2473+
['skills/objectstack-platform/references/bootstrap.md', 4389],
24252474
// 3108 -> 3287: `os deploy`, the managed-package dev loop — when to deploy
24262475
// rather than publish a release, its entry points, how it picks the
24272476
// environment, its flags, and how to read its exit 1 (refusal before any
@@ -2478,8 +2527,21 @@ export const CEILINGS = new Map([
24782527
// pinned at the measurement. Same maintainer ruling, verbatim and
24792528
// untranslated: 「A:先削重复,余额按实测提高」 (ruling record 6513306068 on
24802529
// #27847).
2481-
['skills/objectstack-platform/references/operations.md', 3389], // -5 to the measurement (was 3394)
2482-
['skills/objectstack-platform/references/plugin-development.md', 3127], // -10 to the measurement (was 3137)
2530+
// 3389 -> 4019 (#34770): RECEIVES from SKILL.md, no new teaching: `## Driver Selection
2531+
// Guide` (the table whole; of the wiring section only what the entry's trap no longer says),
2532+
// `## HTTP Layer (Hono)` (the two-package table whole, the remainder in three sentences, the
2533+
// usage block cut) and the compile / alias paragraph above Verify your work. The file is
2534+
// 13556 -> 16075 bytes (+2519) -> 4019 tokens, zero headroom before, ceiling +630, pinned AT
2535+
// the measurement. Authority and the sum as the `references/bootstrap.md` row.
2536+
// ceil($(wc -c < skills/objectstack-platform/references/operations.md) / 4) == ceil(16075 / 4)
2537+
['skills/objectstack-platform/references/operations.md', 4019],
2538+
// 3127 -> 2840 (#34770): LOWERED, the deletion that pays part of the two rows above. Two
2539+
// blocks restated a sibling file and are now one pointer each: the `Plugin` interface
2540+
// (`rules/plugin-lifecycle.md` § Plugin Interface carries the same block) and the hook
2541+
// example with its event list (`references/plugin-hooks.md`); the `data:*` warning keeps the
2542+
// silent failure and links the rest. 12505 -> 11360 bytes (-1145) -> 2840 tokens.
2543+
// ceil($(wc -c < skills/objectstack-platform/references/plugin-development.md) / 4) == ceil(11360 / 4)
2544+
['skills/objectstack-platform/references/plugin-development.md', 2840],
24832545
['skills/objectstack-upgrade/references/examples-upgrade.md', 1193], // -4 to the measurement (was 1197)
24842546
// NEW FILE, pinned AT the measurement: the context pack (`ai_context`, ADR-0160)
24852547
// is a metadata kind no published skill taught beyond its key name. Card #37177

0 commit comments

Comments
 (0)