Repository navigation
chore: version packages (next) - #38857
Open
github-actions[bot] wants to merge 1 commit into
Open
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
December 1, 2026 12:14
f8fc220 to
f3c0dc5
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
December 1, 2026 18:13
f3c0dc5 to
3b9f016
Compare
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…jectstack-ai#38868) <!-- 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 7 of the per-skill split, under claim 7280537583 and its amendments 7280758590, 7288186602, 7296541080 and 7298747104. ## 维护者速读 - 用户能看到什么变化:用户无感。发给 AI 的「项目流程」技能说明(一个应用项目怎么立需求、怎么测、怎么给客户写变更说明、怎么升级平台),入口文件从约 12 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 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 one row falls, 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 four times**, once after each of the first four after-rounds (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 on full rounds of both trees in one window: no case fails on every run of the head. - **Seat rulings on this PR's two questions** (the seat's resume order in this card thread, 2026-12-01, after the local round's report): the budget question is **A**, the entry stands at 9,000 B as delivered, with each cut named beside what answers it and "cut, with no other home" said plainly where that is the case; the case 8 question is **A**, the entry is left as is and the conditional mentions are recorded as measured (Eval parity). - **Seat order for this PR** (claim amendment 7298747104, PR 7 = `objectstack-project`): the PR 4 and PR 5 shape. This skill has no hand-written rules or reference file (its one reference, the platform catalog, is generated), so text is cut behind a pointer, not moved; no new file under `skills/` (a new file needs a new ratchet row, which stays with a human). ## Review round The contract review of `06f27f0f` (record 7304362531, verdict PASS) left one should-fix open and two nits; commit `d4b240c0` takes the should-fix and one nit. - **S1, fixed.** The entry named `stack.rows` as the call that tests who sees which records and no longer said the read is made as a user. Verified in the code first: `rows` in `packages/verify/src/handle.ts` takes its caller from `as` and otherwise uses the system context, so a visibility test written without it reads every row past sharing and row-level security, and passes or fails for the wrong reason. That is accepted input answering wrong, the class this entry keeps inline. The paragraph now reads "`stack.rows` with `as`: without it the read is the system's". Paid inside the entry with wording that carries no fact ("what the bump may have settled" in the sweep step, "too", "are in", and "Relief for customers" became "Customer relief"); the file is 9,000 bytes before and after, so the ratchet row and its comment do not move. The changeset sentence that left "`rows` reads as a user" to the README is corrected: the entry keeps it inline. - **N2, taken in the lists.** `main`'s stage table said a product's design note "always answers" installed data and upgrade steps. The table below and the changeset now list that line among the cuts (the two are starred items of the design list, and the breaking-change and backfill rules require both). - **N1, not taken.** The pointer for the full check lists stays the bare page URL: a fragment costs bytes that would have to come out of kept text, and the api, formula and query entries point at their pages the same way. The lists sit under the page's "Build & Validate" and "Quality" headings. ## What changes **The entry file becomes a router.** `skills/objectstack-project/SKILL.md`: 11,987 → 9,000 bytes, 214 → 184 lines, 2,990 → 2,244 tokens. Frontmatter (description, tags, `compatibility`) is byte-identical. The title and all seven section headings are byte-identical too, so no anchor leaves the file and "§0, question 3" still names the same place. It holds: - One line under the title: where the installed `@objectstack/cli` differs from the `compatibility` line, the installed command is right. This is the one new sentence; the frontmatter says the check lists are that version's, and the lists are now mostly behind a pointer. - `## 0`, the three questions asked before any work: app or platform (three answers, as a list instead of a table), own use or product (recorded as one line in the project's `AGENTS.md`; an own-use app is not asked for a requirement record, a design note or a changeset), and whether the platform already ships it (the generated catalog; the `PLATFORM-CANDIDATE` marker). - `## 1`, four stages as a list: requirement, design, build, acceptance. - `## 2`, the four checks in one command line; that only errors fail `validate` and `lint`, with the two warnings that pass; what `os validate`, `os lint` and `os verify` each check, in three bullets, with the published CLI page for the full lists; the rule against hand-writing a platform check and the `PLATFORM-GAP` / `RETIRED` markers; what the app tests with `bootStack`, with the handle call for each kind of fact and one type-shaped example. - `## 3`, the five platform-gap rules. - `## 4`, the customer changeset, the breaking-change statement and the release steps. - `## 5`, the four bump steps, and the rules for data already installed (the schema-change pointer, and the backfill script's five rules). - `## 6`, nine routing rows, as a list. **No text moved.** What left the entry was cut, each behind what now answers it; the changeset lists the cuts. | Old entry section | Now | |:--|:--| | Opening sentence (the domain skills teach metadata; this one teaches how a change moves) | Cut: the frontmatter description says both. The version line takes its place. | | §0 question 1, a three-row table | Three list items with the same three answers. Cut: two examples ("how a case is routed", "labels are translated") and the qualifier "and the app pays for it". | | §0 questions 2 and 3; the MCP line | Kept. Question 3's last sentence is shorter: a defect is different, never worked around (§3). | | §1 stage table, nine rows | Four list items. The rows that only named a later section (Test, Release, Upgrade) are cut; "one issue, one PR" and the user-docs row are folded into Build and Acceptance. Cut, with no other home: the product column's line that the design note "always answers" installed data and upgrade steps (the two are starred items of the design list; §4 and §5 require both on a breaking change). | | §1 design checklist | The same seven items, inline in the Design item. | | §1 requirement-file template | Cut, with no other home: a five-line file template. The entry keeps that a customer-visible feature also gets a file in `docs/requirements/`. | | §2 opening paragraph | "Run all four before calling a change done, and in CI", the warning sentence with both examples, and the set-up sentence (vitest, a `test` script, `@objectstack/verify`). Cut: "an older scaffold may lack the `pnpm test` step". | | §2 table "What the platform checks" | Three bullets and the published page `https://objectstack.ai/docs/deployment/cli` for the full lists. `os validate` keeps its rule families in one sentence; cut to the page: the kinds of reference, dataset members, package docs, the capability-provider check. `os lint` keeps the shared author-time rules and its style families; cut to the page: `--i18n-strict`. `os verify` keeps the round-trip and `--rls`; cut to the page: the six other opt-in proofs. The `pnpm typecheck` row said only what the name says. The table's heading dated the lists "at 18.x" while the frontmatter says 19.x; the heading is gone. | | §2 `os verify` is not one of the four | Kept, as the end of the `os verify` bullet. Cut: "or as a CI step", and the note that `npx os explain` lists only the rules that carry an explanation. | | §2 what the app tests, the example, the handle sentence | Kept. The paragraph now names the call for each kind of fact (`stack.hooks.run`, `stack.flows.run`, `stack.actions.run`, `stack.rows`), and keeps inline that `stack.rows` reads as a user only with `as`. Cut to the README that `@objectstack/verify` ships, which the entry names: the `automation` boot option (a flow run without the service is refused loudly). Cut: the pointer to the scaffold's starter test (see Acceptance notes) and the `LiteKernel` sentence (the routing list sends a plugin's tests to objectstack-platform). | | §2 the hand-written-check rule and the gap markers | Kept, one paragraph. | | §3 Platform gaps | All five rules kept. Cut: "a workaround outlives the fix" and the stale-bot note. | | §4 Describing a change for customers | Kept. Cut: the changesets set-up command, "no issue numbers, no internal names" (the same bullet says the note is in the administrator's words), the examples of a breaking change, "the notes customers read", and the objectstack-platform pointer after `os package publish` (the routing list has it). | | §5 Bump | All four steps kept. The sweep step names the three things to sweep and the section that says what to do with each. | | §5 Data already installed | The schema bullet keeps `renamedFrom`, `os migrate plan` then `os migrate apply`, and `--allow-destructive` for a drop, and points to objectstack-data `rules/field-types.md` § Changing a field that has data for which change takes which. The backfill rules are kept, all five. Cut: "so it works on any installed metadata", and the line that the release note names the script (§4's breaking-change bullet orders the steps, a backfill first). | | §6 routing table, twelve rows | Nine list rows. Cut: objectstack-upgrade (the frontmatter description and bump step 2 name it), and objectstack-ask and objectui (answering from the app's records and rendering in React are not changes to the metadata project; each skill is still found by its own description). | **Sizes** (bytes · lines · ratchet tokens): | | before (`main` at `5bd786e4`, the branch point) | after (head `d4b240c0`) | |:--|--:|--:| | `SKILL.md` (entry) | 11,987 · 214 · 2,990 | 9,000 · 184 · 2,244 | | `skills/objectstack-project/**` (4 files) | 38,199 | 35,212 | | all 14 `SKILL.md` together | 143,430 · 2,494 | 140,443 · 2,464 | | whole `skills/` tree (115 files) | 1,184,461 | 1,181,474 | | ratchet: authored tokens = sum of all ceilings | 187,449 | 186,703 | | ratchet: bundle total, tokens | 293,321 | 292,575 | The `main` column is measured from `main`'s files and its own ratchet table (61 rows), except the bundle total, which is the head's reading plus the 746 tokens this entry lost. The head column is measured from the head's tree; the review round changed no size (the entry is 9,000 bytes on both `06f27f0f` and `d4b240c0`). **Budget reading:** the entry is 9,000 B, on the card's 6–9 KB line, and 184 lines against the 500-line cap. The whole catalog is 2,987 bytes smaller, all of it cut. The cut is smaller than the other entries' because nearly all of this file is process teaching that no contract, rules file or check holds (see the budget note in Acceptance notes). **Ratchet row** (`scripts/check-skills-token-ratchet.mjs`), pinned AT its measurement, zero headroom. One row moves, down: - `skills/objectstack-project/SKILL.md` 2990 → 2244 (−746): `ceil((9000 − 27) / 4) = ceil(8973 / 4) = 2244`. Why: the entry became a router. The sum of all ceilings goes 187,449 → 186,703 (−746). No row rises and none is added. ## Tests ### Eval parity Command, every full round: `pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-project --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. 10 behaviour cases in `evals/project-process.json` on both arms and 14 trigger cases in `evals/triggers.json`, both files untouched: 102 turns a round. **The reading the rule is judged on**: one full round on each tree, the same day (2026-12-01): `main`'s entry at 04:34Z, the pushed head at 08:18Z. | case | subject | `main`'s entry, at `7d6742ae` (with-skill · no-skill) | head `d4b240c0` (with-skill · no-skill) | |:--|:--|--:|--:| | 1 | a platform defect behind a wrong dashboard total, due Friday | 3/3 · 0/3 | 3/3 · 0/3 | | 2 | asked to hand-write a reference-integrity test | 3/3 · 0/3 | 3/3 · 0/3 | | 3 | a test for a discount ceiling with manager approval | 1/3 · 0/3 | 1/3 · 0/3 | | 4 | removing a field from a product customers installed | 2/3 · 0/3 | 3/3 · 0/3 | | 5 | a platform bump within a major | 3/3 · 0/3 | 3/3 · 0/3 | | 6 | a one-person app renaming a label | 3/3 · 0/3 | 3/3 · 0/3 | | 7 | an attachments table the platform ships | 3/3 · 0/3 | 3/3 · 0/3 | | 8 | a business-hours calendar the platform ships | 3/3 · 0/3 | 2/3 · 0/3 | | 9 | an audit trail the platform ships | 3/3 · 0/3 | 3/3 · 0/3 | | 10 | a to-do list the platform ships | 3/3 · 0/3 | 3/3 · 0/3 | | **all** | | **27/30 · 0/30** | **27/30 · 0/30** | | triggers | loaded when it should · left alone when it should not | 24/24 · 0/18 | 24/24 · 1/18 | Both rounds ran 102 of 102 turns (4.8 and 5.0 minutes). The head's round ran on the pushed head after the review fix. `main`'s entry is byte-identical at `7d6742ae`, at the branch point `5bd786e4` and on `main` today, so its round was not repeated. **Reading under the parity rule: no regression.** No case fails on every run of the head. The cases below 3 of 3: - **Case 3, 1 of 3 on both trees.** Unstable on both trees. The project directory of the case is empty, so most answers decline to write the test and describe it; the case passes only when the description happens to name both `@objectstack/verify` and `hooks.run`. A separate six-run reading of this case alone on `main`'s text passed 0 of 6 (each run missed `hooks.run`), so `main` is 1 of 9 over all runs. - **Case 4, `main` 2 of 3**, head 3 of 3. `main`'s failing answer missed `os migrate`. - **Case 8, head 2 of 3, `main` 3 of 3.** The failing answer uses the platform's calendar objects and working-hours functions, as the case asks, and then offers, if something were missing from the platform calendar, to build that part marked `PLATFORM-CANDIDATE`; the case forbids that literal. The rule the answer quotes is byte-identical on both trees. Across all six after-rounds this happened on 5 of 18 runs, on `main` on 0 of 3. No fact is lost, so nothing goes back into the entry (the seat's ruling A on this question); the literal is the eval seat's (Acceptance notes). - **Triggers.** Triggers 7, 8, 9, 12, 13 and 14 (which should not load this skill) load it on every run of both trees, with this bundle the only one installed in the turn; the one exception is one run of trigger 13 on the head, which left it alone. The frontmatter that decides loading is byte-identical on both trees. **Earlier rounds**, kept as the record of how the text got here. Every round ran 102 of 102 turns; the no-skill arm was 0 of 30 in every round. | reading | tree | with-skill | with-skill cases below 3 of 3 | |:--|:--|--:|:--| | before round | `main` at `7d6742ae` | 27/30 | case 3, 1 of 3 (missed `hooks.run`); case 4, 2 of 3 (missed `os migrate`) | | after round 1 | local `c48f0b10` (`dab69a78` on this branch), the first router commit | 25/30 | case 2, 2 of 3 (missed `lint`); **case 3, 0 of 3**; case 8, 2 of 3 | | after round 2 | local `3410efb1` (`f40780d5`) | 24/30 | case 2, 1 of 3 (missed `lint`); case 3, 1 of 3; case 8, 1 of 3 | | after round 3 | local `acf9240f` (`6ebcaaff`) | 25/30 | **case 3, 0 of 3**; case 4, 2 of 3 (missed `REST`); case 6, 2 of 3 (missed `validate`) | | after round 4 | local `4c448d41` (`9474093d`) | 25/30 | case 3, 2 of 3; **case 4, 0 of 3** (missed `os migrate`); case 5, 2 of 3 | | after round 5 | local `12819c3d` (`06f27f0f`, the head before the review round) | 27/30 | case 3, 2 of 3; case 4, 2 of 3 (one answer spelled the graded literal "Changeset"); case 8, 2 of 3 | | after round 6, the review round | `d4b240c0`, the head | 27/30 | case 3, 1 of 3; case 8, 2 of 3 | Three six-run readings of case 3 alone were taken between rounds 3 and 4, 12 turns each: the working text before the handle calls were placed beside the facts, 0 of 6; the text that became `9474093d`, 1 of 6; `main`'s text, 0 of 6. **The restorations (ruling 7168461386).** Each put text of `main`'s entry back and paid for it inside the entry. 1. After round 1, case 3 failed all three runs and case 2 lost `lint` once. Back: `os lint` as its own bullet, and a sentence naming `stack.hooks.run` and `stack.flows.run`. Paid: the design list is shorter, "or as a CI step" and the objectui routing row are cut. 2. After round 2, case 2 passed 1 of 3. `main`'s answers reach `validate --strict` and `lint --strict` through the sentence that names label case and an unresolved navigation target as warnings that pass; the first cut had dropped the two examples as examples. An unresolved page, report or dashboard target is a warning (rule `nav-target-unresolved`), so this is a fact that passes the check and fails later. Back: the two examples, and "author-time" on the `os lint` line. Paid: the sweep step's last parenthetical and the objectstack-platform pointer after `os package publish`. Case 2 has read 3 of 3 in every round since. 3. After round 3, case 3 failed all three runs again. The answers named `@objectstack/verify` on 5 of 9 runs where `main`'s text names it on every run: `main`'s set-up sentence (add vitest, a `test` script and `@objectstack/verify` where missing) had been cut as a convention. Back: that sentence; and the handle calls moved from a sentence after the example to the facts each one tests. Paid: "no issue numbers, no internal names", and `--allow-destructive` (moved behind the objectstack-data pointer). 4. After round 4, case 4 failed all three runs: with `--allow-destructive` for a drop behind the pointer, no answer named `os migrate` for the column. Back: the flag, beside the drop. Paid: a `--help` parenthetical on the version line (new text of this PR, never on `main`). **Quota readings** (the login's seven-day window, status `allowed_warning`, reset 2026-12-06 14:00 UTC; guard `--max-utilization 0.99` by the maintainer's choice recorded in claim amendments 7296541080 and 7298747104, never raised). Before round 0.59; after round 1 0.60; round 2 0.61; round 3 0.61 → 0.62; the three case-3 readings 0.62; round 4 0.62 → 0.63; round 5 0.63; round 6 0.72 (another PR of this split ran its rounds in between). No round was stopped by the guard. One check that calls no model, beside the rounds: of the 27 `must_contain` literals of the 10 cases, `main`'s entry carries 18 and the head's entry the same 18 (unchanged by the review round); the other 9 are in the generated platform catalog, which this PR does not touch. Of the 24 `must_not_contain` literals, `main`'s entry carries six and the head's five (`REQ-` left with the requirement-file template). ### Other tests On the head `d4b240c0`, under the verify lock (`VERDICT command-exit 0`): - `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 this skill, 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 scaffold summary that sends a new project to this skill): `Test Files 1 passed (1)`, `Tests 12 passed (12)`. No ablation: the diff changes prose and one ledger row, no tested behaviour. ## Acceptance notes Held by another file, recorded here as it stands: - **The seven numbered headings are kept byte-identical, and `## 6` stays last.** The scaffold's `AGENTS.md` template tells a new project that this skill's "last section names the skill for each kind of metadata"; eval expected outputs cite "§0" by number. - **The link to `references/platform-catalog.md` is kept.** The catalog is generated; this PR does not touch it. 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 fact that passes every check and goes wrong later stays inline.** Inline: every ⛔ of `main`'s entry, the two warnings that pass, `--rls` proves consistency and not intent, a Studio change never ships, the unblock rule, `manifest.version` by hand, the `--copy` re-sync, and the backfill-before-removal rules. The changeset lists them. - **The budget against this file's content: ruled A by the seat.** Nearly all of this entry is process teaching with no other home: there is no contract, rules file or check that holds "what to write at each stage" or "what a backfill script must do". With every unique rule and convention kept, the smallest text measured 9.9 KB. Reaching the 9 KB line took cutting small conventions and examples (the requirement-file template, the stale-bot note, "no issue numbers, no internal names", two routing rows and others); the table above and the changeset name each, and say "with no other home" where nothing else holds it. The two ways not taken: keeping them at about 9.6 to 9.9 KB, over the line (the platform entry stands at 9,025 B and the automation entry at 10,703 B), or a new hand-written reference file, which needs a new ratchet row and so a human. - **The routing list lost two rows that route outside the metadata project** (objectstack-ask, objectui). They paid for restored text. If review wants them back, they cost 63 and 44 bytes. - **The `os validate` bullet summarises** flow trigger readiness, undeclared flow cycles, sharing and row-level-security enforceability and seed rows against state machines as "flows, sharing rules and seed rows that cannot work as declared". The published page holds each by name. - **The handle calls are named beside the facts they test.** `main`'s entry listed them in one sentence after the example. The mapping (a rule's numbers through `hooks.run`, a flow or an action through `flows.run` or `actions.run`, who sees which records through `rows`) is the one the package's README shows. - **Word-level tightenings that drop no fact are not itemised in the changeset** (for example "the notes customers read" after `CHANGELOG.md`, "one-line" before the `RETIRED` marker, "what the bump may have settled" in the sweep step). - **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: - `main`'s entry names the scaffold's starter test `note.test.ts`; the template's file is `starter.test.ts` (`packages/create-objectstack/src/templates/blank/`). The cut removes the stale name with the pointer. Carrier: none. - `main`'s entry dates its check table "at 18.x" under a frontmatter that says 19.x. The heading left with the table. Carrier: none. - Three eval cases grade a literal that a correct answer can miss or carry: cases 2, 3 and 4 run in an empty project directory, where most answers decline to write code and describe the work, and pass only when the description names every graded literal in its exact casing; case 8 forbids `PLATFORM-CANDIDATE` and so fails an answer that uses the platform's objects and mentions the marker as a conditional offer. The parity rule treats the cases as fixed, so this PR does not touch them. Carrier: none; noted for whoever owns the case file. - Six trigger cases that should not load this skill load it on every run of both trees. Carrier: none; the eval seat's reading. - The branch was restarted from `main` at `5bd786e4` after PR 6 of this split merged, and the five commits of the local round were cherry-picked onto it by the seat, cleanly. The workspace was reinstalled and rebuilt and every gate below ran on the result. `main` is three commits further on (`6d163f41`); the gate derivation reports no STALE TREE for them, and none touches a file of this PR, so they are not merged in. - Two open PRs share a file with this one and merge cleanly with it (`overlap-check`, exit 0): objectstack-ai#38857, the release PR that restamps every entry's `version` line (the stamp line is the same length and is not priced by the ratchet), and objectstack-ai#38855, a wording change to the AI skill that moves a different ratchet row. ## Verification Read first, by risk: 1. `skills/objectstack-project/SKILL.md`, the whole file: is anything a model needs to run a project missing, and is every kept sentence true on its own? The risk hunks are `## 2` (three bullets replace the check table; the paragraph before the example now carries the handle calls) and `## 1` (four list items replace a nine-row table). 2. `.changeset/34770-project-skill-router.md`: the "what left, and what answers it now" list is the record of the cuts. 3. `scripts/check-skills-token-ratchet.mjs`: the `objectstack-project` row and its comment. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints `ratcheted (authored) 186703 / 186703 (+0)` and `skills/objectstack-project/SKILL.md 2244 / 2244 (+0)`; `wc -c skills/objectstack-project/SKILL.md` prints 9000. Gates, local, each exit code captured before any pipe. The whole derived list ran again on the pushed head `d4b240c0` (tree `d499e661`); the workspace build is the one made on `06f27f0f`, and the review commit changes no package. <details><summary>Derived families on head `d4b240c0`: 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 on this head. - `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) 186703 / 186703 (+0)`, `bundle total 292575`); its `--self-test`: `111 cases pass`. - `pnpm check:dual-build-cjs-loads`: `127 published require entry point(s) across 75 package(s) load; 2594 emitted CommonJS file(s) parse`. It reads every package's built `dist/`; `pnpm build --concurrency=2` ran on the branch under the verify lock before the first push (`VERDICT command-exit 0`, `124 successful, 124 total`). - `pnpm check:dts-closure`: `124 built package(s) swept - 326/326 declared declaration file(s) present`. - `pnpm check:skill-links`: `286 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: 494 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 (574 s on a shared box). - The remaining derived commands, each exit 0: the other `--self-test` runs and the whole-tree families the list names on every card. </details> <details><summary>Outside the derived list, run because they read these paths: all exit 0</summary> - `pnpm --filter @objectstack/spec run check:skill-refs`, `check:skill-served-sections`, `check:skill-examples` (`341 prose examples type-check across 3 surface(s)`), `check:generated` (the last two under the verify lock). - `pnpm check:doc-anchors` (`1190 internal #fragment link(s) across 368 source file(s) all resolve`), `check:skill-top-level-keys`, `check:changeset-fixed`, `check:engine-double-contract`, `check:i18n-stale-fill`, `check:published-readme-exports`, `node scripts/check-published-list-mirrors.mjs`, `node scripts/check-dts-references.mjs --self-test`. - `node scripts/check-platform-checklist.mjs --changed-from origin/main`: `0 anchored files in the change set — nothing judged`. - Local-only families: `pnpm check:dev-prereqs`, `pnpm check:skill-frame-freshness`: exit 0. - A control-byte scan of the three changed files: no hit. - `node scripts/pm/overlap-check.mjs` before the push: `VERDICT clean exit 0` against `origin/main` and the two open PRs that share a file. </details> Not run locally, CI's: `test:repo`, the type-check lanes, the build job's own steps and the dogfood jobs, as the derivation lists them. --- _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>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…tack-ai#38911) <!-- 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 ## 维护者速读 - 用户能看到什么变化:用户无感;发给 AI 的「AI 技能、知识库、助手接入」技能说明,入口文件从约 30 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 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; text may move into `references/context-packs.md` only when it is about context packs. Here one row falls, no row rises, none is added, and nothing moved: that reference file already held every context-pack fact the entry had. - **7168461386** = A: text an eval shows the entry lost goes back into the entry, paid inside the entry. **Used once, on a softer signal than the rule requires**: after the merge of `main`, two of three answers to the passage-overlap case declined the overlap while saying they could not tell whether a key for it exists. The split rule now says no key adds one (the split schema is strict over `strategy`, `maxChars`, `minChars`), paid by two cuts in the same section. - **Ruling record 7249189592**, the parity rule: a case that fails on every run of the head while `main` passes is a regression; a case whose result flips between runs does not block. Read below on a full round of each text: no case fails on every run of the head while `main` passes it. - **Seat order for this PR** (PR 8, `objectstack-ai`, the last of the split): the same shape as the earlier entry files; no new file under `skills/`. **Seat rulings on this PR's three open questions** (given on the local report, before this PR was opened): 1. **Trap count: A.** About ten traps is accepted (eleven since the review round added the `confirmText` trap the review asked for), provided each is of the accepted-then-wrong class; the contract review checks each one. The list is under Budget reading below. 2. **Eval case 7: A.** The PR lands under ruling record 7249189592. The forbidden-literal issue of case 7 is recorded here and in the report only; no card. 3. **The two ☁️ claims: A.** They stay as on `main`, and are **not verified against the cloud source**: the five trigger context fields and `enableActionApproval: true`. The facts are `main`'s own and the wording is `main`'s shortened (the same five field names; the same option, on the same skip rule), so they are not new claims of this PR. See Acceptance notes. ## Review round **First round** (contract review 7311924709 on `100417af`: passed, with one should-fix and nits), commit `ef824b4a`, pushed head `3342d3d1` after one plain merge of `main` at `8338d070`. - **S1, fixed.** The router listed the two destructive signals and dropped `main`'s sentence that `confirmText` is not one, while "Where to go" named the published `actions-as-tools` page for approval; that page still lists `confirmText` as a signal and still gives the retired pending answer. Checked against the code first: `actionLooksDestructive` (`packages/runtime/src/action-execution.ts`) returns the declared `ai.requiresConfirmation` when it is set, and otherwise `mode === 'delete' || variant === 'danger'`; nothing reads `confirmText`, and no `os validate` rule reads the pair, so `confirmText` on an exposed action parses and the AI call runs unasked. Three changes inside the entry: - a new trap under Actions: "**`confirmText` is dialog copy**: it gates no AI call; `ai.requiresConfirmation: true` does." - the pending answer is now stated for every door (`## MCP`, second bullet): "at every AI door, `status: 'pending_confirmation'` with a `pendingId` is a success, so relay its message and do not retry." - "Where to go" names that page for dispatch only: "`actions-as-tools` (dispatch)". The confirmation contract stays the first item of the list. Paid inside the entry by wording cuts that carry no fact ("the flow, hook or import that extracts it" became "whatever extracts it"; "and its siblings in" the tool-name pointer; the routing list's parentheticals after `connect-mcp` and `knowledge-rag`; "connected" in "the connected agent"; a shorter `instructions` string in the skill example). The file is 8,997 to 8,995 bytes, 186 to 184 lines; the row is re-pinned at the measurement, 2243 to 2242. The page itself is untouched (outside the surface; reported as an out-of-scope finding). - **N2, fixed.** The changeset no longer says no rule's teaching changes. It now reads: "One sentence of the old entry is corrected (the pending answer, below); no other rule's teaching changes." It also names the page for dispatch only and records that the `confirmText` rule stays in the entry. - **N1, not taken.** Pitfall 1 (a `provider` key) stays as the seat's accepted deviation. - **L1-b, the `satisfies` note: not taken.** The knowledge example keeps `KnowledgeSourceSchema.parse({...})`: it is `main`'s form and the one the fixed eval case 9 names as the expected answer, so changing the idiom is a teaching change this round did not need. The note is right that the type-checker does not judge the literal's keys under `.parse` (its argument is untyped); the run-time parse does. This body no longer calls that example "type-checked": it is compiled by `check:skill-examples`, and its keys are judged at run time. - **L1-b, the `split` note: not taken.** The split rule does not say the key sits under `source`. The strict source schema refuses a `split` anywhere else with the key's place, and the sentence would cost a kept fact at this size. ## What changes `skills/objectstack-ai/SKILL.md` becomes a router. The frontmatter and the title are byte-identical, so what loads the skill does not change. The file's sections are now: First checks, Skills, Actions as AI Tools, MCP, Context packs, Knowledge Sources (RAG), Common Pitfalls, Where to go. | Old entry section | Now | |:--|:--| | The note on what ☁️ marks | Kept, shorter. | | Skill Configuration (two key tables, the in-app `ask` paragraph) | One type-checked example and three rules under `## Skills`. The key tables are the contract's (`ai/skill.zod.ts`, whose docblocks say which edition reads each key). The in-app `ask` paragraph (a package skill loads for the app the user is in; a tool it names outside the allow-set is dropped with a diagnostic): **cut, with no other home in this repository.** | | Naming the tools: the resolution ladder | One rule: every `tools` name resolves to a platform tool, an exposed action or a `stack.tools` record, or `os validate` warns (`ai-skill-tool-unresolved`). The four rungs are that warning's own text; the name lists are exported from `@objectstack/spec/system`. | | Skill Example | The example under `## Skills`, shorter. | | Trigger Conditions | One rule: conditions route on the five context fields the client reports and are never access control. The operator table is the contract's. | | Actions as AI Tools — the default path | Heading kept (another bundle file names it). The opt-in and four traps stay: a tool record runs nothing, an opted-in action can still be no tool, `confirmText` gates no AI call, no page declares an AI button. The dispatch table is the published page's (`docs/ai/actions-as-tools`, named for dispatch only); the approval paragraph is the confirmation contract's (`@objectstack/spec/contracts`); the request-body keys of an `api` action are the contract's (`ui/action.zod.ts`). The cloud host's plugin options (`apiActionBaseUrl`, `apiActionHeaders`, `apiClient`) and its two predicates (`actionSkipReason`, `actionRequiresApproval`): **cut, with no other home in this repository.** | | MCP — the open-edition AI path | Heading kept (another bundle file names it for the elicitation outcomes). The confirmation rule stays, as five bullets, for every AI door. The plugin snippet, the switches and the tool table are the published page's (`docs/ai/connect-mcp`) and each tool's own description in `tools/list`. | | Context packs — one record's material | Kept, as a pointer to `references/context-packs.md` (untouched). | | Knowledge Sources (RAG) | Heading kept. One compiled example (its keys are judged by `.parse` at run time) and four rules: shipping and "mounted is not enabled", what `content` is, one source per corpus, `split` and the document unit. The key table, the retired keys, the splitting detail and the five `knowledge-source-*` rules are the contract's (`ai/knowledge-source.zod.ts`), the published page's (`docs/ai/knowledge-rag`) and `os validate`'s. | | Tool metadata (`defineTool`) — not the default path | One trap under Actions ("Write no tool record"). The rest is the contract's (`ai/tool.zod.ts`) and the published page's (`docs/ai/tools`). | | Model Configuration | Pitfall 1 ("Naming a provider"). The table is `AIModelConfigSchema` in `ai/agent.zod.ts`. | | Common Pitfalls | Heading kept (another bundle file and the eval runner's prompt name it). "Gating the action, not the state" stays whole, under the same title. The `guardrails` pitfall is cut: a stack does not author an agent, and the keys with their prescriptions are in `ai/agent.zod.ts`. Two of its clauses, that `approval: 'always'` on an MCP tool binding is an enforced gate and that AI metadata edits land as drafts a person publishes: **cut, with no other home in the published skills.** | | Platform agents — reference only | The published page (`docs/ai/agents`). The table of the built-in skills: **cut, with no other home in this repository**; they are the cloud runtime's. | | Verify your work, References | First checks 4 and 3. | ### A correction of a wrong sentence on `main` This is the one place where the entry's teaching differs from `main`'s, and it is its own review item. - **What `main` says** (Actions as AI Tools, the Human-in-the-loop paragraph): a queued call answers `{ status: 'pending_approval', pendingActionId }` from an `ai_pending_actions` row. - **What the source says**: that answer is retired from 19.0.0. `packages/spec/src/contracts/ai-service.ts` carries the note ("A stored `pending_approval` answer … That answer is retired"), `ActionConfirmationPending` is `status: 'pending_confirmation'` with a `pendingId`, and `packages/spec/src/migrations/entries/semantic/19.ai-pending-action-queue-merged-into-confirmation-service.ts` is the migration that merges the in-app queue into the confirmation service every door uses. - **What the entry says now**, once, for every AI door (`## MCP`, second bullet): "at every AI door, `status: 'pending_confirmation'` with a `pendingId` is a success, so relay its message and do not retry." - **Not corrected here**: the published page `content/docs/ai/actions-as-tools.mdx` still carries the retired answer and lists `confirmText` as a destructive signal. It is outside this PR's surface and is reported as an out-of-scope finding; since the review round the entry names that page for dispatch only. **The two additions `main` gained the same day** (objectstack-ai#38855, the document unit and the held knowledge service) were folded in after its merge, by the router's standard (true, and an author needs it before opening the contract): | What objectstack-ai#38855 added to the old entry | In the router | |:--|:--| | A shipped item mounts the knowledge service, which does not enable it: the service is held until an embedder provider is saved, the store is mounted and the server restarts | **Kept**, one clause in the Shipping rule: "Mounted is not enabled: with no embedder at boot, sources are held". Scoped to the half that is always true; the store half is the published page's. | | Held sources are listed, never built or searched; `search_knowledge` is not offered; a search or a run-time save answers 503 naming the missing half | **Kept**, same clause: "listed, never searched, no `search_knowledge`. Unmounted or held, a run-time save is refused (`503`)". A skill that binds `search_knowledge` is the author-side consequence. | | `os knowledge status` prints the state and why; `os knowledge rebuild` exits 1 with it | `os knowledge status` **kept** (three words); the `rebuild` exit is the published page's. | | The remedy where an app ships none: add `requires: ['knowledge']`, restart, save an embedder provider, restart again | The `requires` half **kept**; the two restarts are the refusal's own text and the published page's. | | The `source.documentBy` table row | **Pointer**: the key table left the entry; the `documentBy` docblock in the contract and the published page say which field it may name and what rebuilds. | | An app that cuts its own passages writes each as a child record indexed with `split: { strategy: 'whole' }` and `documentBy`; `granularity: 'record'` then counts and groups by parent | **Kept**, one sentence in the split rule. | | "`maxChars`, in characters" (a wording cut) | Not applicable: the sentence left the entry. | **Sizes** (bytes; tokens are the ratchet's, the release-stamp line unpriced): | | `main` at `8338d070` | head `3342d3d1` | |:--|--:|--:| | `skills/objectstack-ai/SKILL.md` | 30,020 B · 518 lines · 7,499 tokens | 8,995 B · 184 lines · 2,242 tokens | | `skills/objectstack-ai/**` (4 files) | 59,051 B | 38,026 B | | the same without `evals/` (3 files) | 40,120 B | 19,095 B | | all 14 `SKILL.md` | 141,450 B · 2,475 lines | 120,425 B · 2,141 lines | | `skills/` (115 files) | 1,182,544 B | 1,161,519 B | | `skills/` without `evals/` (73 files) | 818,440 B | 797,415 B | | ratchet, authored sum (61 rows) | 186,955 tokens | 181,698 tokens | | ratchet, bundle total | 292,844 tokens | 287,587 tokens | **Ratchet rows.** `skills/objectstack-ai/SKILL.md`: 7499 to 2242, pinned at the measurement (`ceil((8995 - 27) / 4)`), headroom 0 (2243 on the first head, 2242 after the review round). `skills/objectstack-ai/references/context-packs.md`: 1453, untouched. The sum of all ceilings falls by 5,257; no row rises and none is added. `main`'s three dated notes on this row (the document unit, mounted is not enabled, their review round) stay above the new one. **Budget reading.** 8,995 bytes is on the 9 KB line, as PR 7's 9,000 was. The trap count is eleven since the review round, not about eight (seat ruling 1 above accepts it; the review checks each is accepted and then wrong): 1. A tool record (`defineTool`) parses and runs nothing. 2. An opted-in action can still be no tool (a UI-only type; a destructive one skipped in-app). 3. `confirmText` on an exposed action: parses, and the AI call runs unasked (added in the review round). 4. An action written as an "Ask AI" button: no page declares one. 5. A stack-authored agent parses and is never served; skills are the one extension. 6. A `tools` name that resolves to nothing only warns; over MCP the prompt is then not offered. 7. `triggerConditions` used as access control: they only route. 8. `confirm` sent to `run_action`, a pending answer retried, a script deciding a pending item (the confirmation rule). 9. A knowledge source whose `content` holds a `file` field or short values: accepted, and nothing useful is indexed. 10. A shipped source on a deployment with no embedder: mounted, held, never searched. 11. A gate on the action with no lock on the state (pitfall 2). Pitfall 1 (a `provider` key) is a twelfth item of the loud kind (a retired key, refused with its fix); it is kept for the sampling keys named beside it. ## Tests ### Eval parity Command, every full round: `pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-ai --repeats 3 --concurrency 4 --max-utilization 0.99`, with the model and effort flags the ruling names; CLI 2.1.333, subscription login. 15 behaviour cases in `evals/skills-tools-knowledge.json` on both arms; the bundle has no trigger cases. The file is untouched. 90 turns a round. **The reading the rule is judged on**: one full round on each text, 90 of 90 turns each. `main`'s round is the one of the first head's judged pair (09:19Z; `main`'s entry has not changed since). The head's round is new, on the pushed head `3342d3d1` after the review round (13:50Z to 13:57Z); the seat's order for this round was one after round and no new before round. | case | subject | `main`'s entry, 30,020 B (with-skill · no-skill) | head `3342d3d1`, 8,995 B (with-skill · no-skill) | |:--|:--|--:|--:| | 1 | a triage skill with tools and trigger conditions | 3/3 · 0/3 | 3/3 · 0/3 | | 2 | provider, temperature and token cap | 3/3 · 0/3 | 3/3 · 0/3 | | 3 | a knowledge source over published articles | 3/3 · 0/3 | 3/3 · 0/3 | | 4 | a tool record for an existing action | 3/3 · 0/3 | 3/3 · 0/3 | | 5 | a stack-authored agent with tools and knowledge | 0/3 · 0/3 | 0/3 · 0/3 | | 6 | a script that approves pending actions | 3/3 · 0/3 | 3/3 · 0/3 | | 7 | an agent that retries with `confirm: true` | 3/3 · 0/3 | 1/3 · 0/3 | | 8 | elicitation outcomes on a stdio server | 3/3 · 0/3 | 3/3 · 0/3 | | 9 | Markdown splitting with a requested overlap | 3/3 · 0/3 | 3/3 · 0/3 | | 10 | an Ask AI button on a record page | 3/3 · 0/3 | 3/3 · 0/3 | | 11 | a context pack with a related list | 3/3 · 0/3 | 3/3 · 0/3 | | 12 | a skill that names its context pack | 3/3 · 0/3 | 3/3 · 0/3 | | 13 | "index every text field" | 3/3 · 0/3 | 3/3 · 0/3 | | 14 | sources created at run time | 3/3 · 0/3 | 3/3 · 0/3 | | 15 | two corpora, numbers and a file field | 3/3 · 0/3 | 3/3 · 0/3 | | **all** | | **42/45 · 0/45** | **40/45 · 0/45** | The `main` round ran with `main`'s entry text in the working tree of the head checkout (the runner reads `skills/` from disk), and the tree was restored and confirmed clean afterwards. The head round ran on the pushed commit itself; its record names `3342d3d1` with no uncommitted change. **Reading under the parity rule: no regression.** No case fails on every run of the head while `main` passes it. The head's total is two lower, in one case: - **Case 7: head 1 of 3; `main` 3 of 3.** Both failing answers are correct: they refuse the retry and name `pending_confirmation`, `pendingId` and `no_confirmation_service`. One quotes the user's own step ("ask in chat and then retry with `confirm: true`"), which is the case's forbidden literal `then retry with`; the other writes that the agent "should not retry", where the case wants `do not retry`. Across every round: head 7 of 15, `main` 8 of 9 (its one failure is the same quotation). Not a regression under the rule, and the fact the case tests is in every answer; the count is lower on the head and is reported as such. Seat ruling 2: recorded here and in the report only. - **Case 9: 3 of 3 on both** in this round (2 of 3 on the first head's round, 1 of 3 before the "no key adds one" clause). - **Case 5: 0 of 3 on both.** Every answer refuses the agent and declares a skill; they miss the literals `surface` and `aiExposed`, which the entry carries on both trees. Head 1 of 15 across rounds, `main` 0 of 9. **Quota, read from each turn's record.** Guard `--max-utilization 0.99` on every round; window `seven_day`, status `allowed_warning` throughout. This round: 0.90 at its first turn and 0.90 at its last. The first head's judged pair: 0.74 to 0.75. Earlier rounds: 0.67 (06:57Z) rising to 0.71 (07:42Z), 0.74 (09:12Z). **Earlier rounds**, kept as the record of how the text got here: | reading | text | with-skill | no-skill | with-skill cases below 3 of 3 | |:--|:--|--:|--:|:--| | before, two halves, 48 + 42 turns, 06:57Z | `main` at `5bd786e4`, 29,014 B | 42/45 | 0/45 | case 5, 0 of 3 | | after 1, 90 turns, 07:17Z | local `3535c42b`, 8,999 B | 40/45 | 1/45 | case 5, 0 of 3; case 7, 1 of 3 | | after 2, 90 turns, 07:31Z | local `2ba55dab`, 8,998 B | 41/45 | 0/45 | case 5, 0 of 3; case 11, 2 of 3 (a `filter:` in prose) | | before 2, 90 turns, 07:36Z | `main`'s 29,014 B text | 41/45 | 0/45 | case 5, 0 of 3; case 7, 2 of 3 | | after 3, 90 turns, 09:12Z | local `9d96b284`, 8,993 B, the first text with objectstack-ai#38855 folded in | 39/45 | 0/45 | case 5, 1 of 3; case 7, 1 of 3; case 9, 1 of 3 | | after 4, 90 turns, 09:26Z (the first head's judged round, one window with `main`'s) | `66c16628`, 8,997 B, the text of head `100417af` | 39/45 | 0/45 | case 5, 0 of 3; case 7, 1 of 3; case 9, 2 of 3 | ### Other tests All on the pushed head `3342d3d1`, 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`: 2 files, 57 tests passed. - `pnpm --filter create-objectstack exec vitest run --maxWorkers=2 src/created-summary.test.ts src/scaffold-skills-single-copy.test.ts`: 2 files, 34 tests passed. `created-summary.test.ts` is the one test file that names this skill. - `pnpm --filter @objectstack/spec run check:skill-examples`: `341 prose examples type-check across 3 surface(s)`. The entry's two blocks are among them (the skill example is typed by `defineSkill`; the knowledge example's literal is an untyped argument of `.parse`). No behaviour a test pins changed, so no ablation is owed. ## Acceptance notes - **Anchors.** Gone from the entry: `#skill-configuration`, `#naming-the-tools-the-resolution-ladder`, `#skill-example`, `#trigger-conditions`, `#tool-metadata-definetool--not-the-default-path`, `#model-configuration`, `#verify-your-work`, `#references` and the anchor of "Platform agents — reference only". New: `#first-checks`, `#skills`, `#where-to-go`. No file in this repository linked an anchor of the old entry; five places name a heading or a pitfall in prose (`objectstack-automation` twice, `objectstack-platform`, `objectstack-ui`, the eval runner's prompt), and each still resolves. - **Cut, with no other home** (also marked in the table above): the in-app `ask` allow-set paragraph; the cloud host's plugin options and two predicates; the built-in skills table; `approval: 'always'` on an MCP tool binding as an enforced gate; AI metadata edits landing as drafts. Each describes the cloud runtime or a host option, none is authorable metadata of a stack. - **Two ☁️ claims: not verified against the cloud source; the facts are identical to `main`'s** (seat ruling 3). This session cannot read the cloud repository. They are the five trigger context fields (`appName`, `objectName`, `recordId`, `selectionKind`, `userRole`; `main`: "The client sends all five") and `enableActionApproval: true` (`main`: a destructive action is skipped "unless the plugin runs with `enableActionApproval: true`"). The wording is shortened, the facts are not changed. Every open-edition claim in the entry was checked against `main`'s contract, runtime or lint source. - **A published page teaches two retired facts** (outside this PR's surface; untouched, reported as an out-of-scope finding, and since the review round named by the entry for dispatch only): `content/docs/ai/actions-as-tools.mdx` lists `confirmText` among the destructive signals and says a queued call answers `{ status: 'pending_approval', … }`. The runtime's destructive test reads `ai.requiresConfirmation`, `mode: 'delete'` and `variant: 'danger'` only, and the contract retired `pending_approval` in 19. The entry states both rules itself. - **Eval literals that a correct answer can trip** (cases untouched; recorded here and in the report only, no card, seat ruling 2): case 7 forbids `then retry with`, which an answer quoting the user's own step contains; case 9 forbids `overlap: 100`, which a refusal can quote; case 5 requires `aiExposed` in an answer about agents. - **objectstack-ai#38857** (the release bot's version PR) shares this file through the frontmatter stamp line only; `overlap-check` merges it cleanly. - **Not done here**: the published AI pages are not edited; `evals/**` is untouched; no file is added under `skills/`. ## Verification Read first, by risk: 1. `skills/objectstack-ai/SKILL.md`, the whole file: is anything a model needs before opening the contract missing? The risk hunks are `## Actions as AI Tools` (the `confirmText` trap added in the review round), `## MCP` (five bullets replace the old section and correct the pending answer) and `## Knowledge Sources (RAG)` (four rules replace about 130 lines, and carry the two facts folded in from objectstack-ai#38855). 2. `.changeset/34770-ai-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 `objectstack-ai` row. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints `ratcheted (authored) 181698 / 181698 (+0)` and `skills/objectstack-ai/SKILL.md 2242 / 2242 (+0)`; `wc -c skills/objectstack-ai/SKILL.md` prints 8995. Gates, local, each exit code captured before any pipe. The whole derived list ran on the pushed head `3342d3d1` (tree `e6dacb82`), after one plain merge of `main` at `8338d070` (the list was STALE before it) and a rebuild of the merged workspace. <details><summary>Derived families on head `3342d3d1`: 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: the head's merge base is `main`'s tip at the reconciliation. - `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) 181698 / 181698 (+0)`, `bundle total 287587`); its `--self-test`: `111 cases pass`. - `pnpm check:dual-build-cjs-loads`: `127 published require entry point(s) across 75 package(s) load; 2594 emitted CommonJS file(s) parse`. It reads every package's built `dist/`; `pnpm build --concurrency=2` ran first on the merged tree under the verify lock (`VERDICT command-exit 0`, `124 successful, 124 total`). - `pnpm check:dts-closure`: `124 built package(s) swept - 326/326 declared declaration file(s) present`. - `pnpm check:skill-links`: `286 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: 456 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`: 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 head `3342d3d1`, all exit 0</summary> - `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`: `1197 internal #fragment link(s) across 368 source file(s) all resolve to a real heading`. - `pnpm check:published-readme-links`: `567 outbound link(s) across 169 published markdown file(s)`. It does not read `skills/`. - `pnpm check:skill-top-level-keys`, `pnpm check:skill-frame-freshness`, `pnpm check:dev-prereqs`, `pnpm check:changeset-fixed`, `node scripts/check-published-list-mirrors.mjs`, `pnpm check:published-readme-exports`, `pnpm check:engine-double-contract`, `pnpm check:i18n-stale-fill`: exit 0. - `pnpm --filter @objectstack/spec run 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.` - A control-byte scan of the three changed files finds none. </details> `node scripts/pm/overlap-check.mjs` before the push of `3342d3d1`: `VERDICT clean exit 0` (`origin/main` at `8338d070` merges cleanly; objectstack-ai#38915 shares the ratchet script and merges cleanly; objectstack-ai#38857, the release bot's version PR, shares the entry's stamp line and merges cleanly). Not run locally: `test:repo` (CI's). --- _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>
github-actions
Bot
force-pushed
the
changeset-release/main
branch
2 times, most recently
from
December 2, 2026 06:15
2c76535 to
cda7872
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
2 times, most recently
from
December 2, 2026 18:12
94692da to
4749f55
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
December 3, 2026 00:23
4749f55 to
6c1d155
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
mainis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonmain.Releases
@objectstack/cli@19.0.0-next.4
@objectstack/client@19.0.0-next.4
@objectstack/formula@19.0.0-next.4
@objectstack/lint@19.0.0-next.4
@objectstack/metadata-core@19.0.0-next.4
@objectstack/metadata-protocol@19.0.0-next.4
@objectstack/objectql@19.0.0-next.4
@objectstack/platform-objects@19.0.0-next.4
@objectstack/plugin-approvals@19.0.0-next.4
@objectstack/plugin-auth@19.0.0-next.4
@objectstack/rest@19.0.0-next.4
@objectstack/runtime@19.0.0-next.4
@objectstack/spec@19.0.0-next.4
@object-ui/console@19.0.0-next.4
@object-ui/core@19.0.0-next.4
@object-ui/types@19.0.0-next.4
@objectstack/hono@19.0.0-next.4
@objectstack/account@19.0.0-next.4
@objectstack/setup@19.0.0-next.4
@objectstack/studio@19.0.0-next.4
@objectstack/client-react@19.0.0-next.4
@objectstack/cloud-connection@19.0.0-next.4
@objectstack/connector-mcp@19.0.0-next.4
@objectstack/connector-openapi@19.0.0-next.4
@objectstack/connector-rest@19.0.0-next.4
@objectstack/connector-slack@19.0.0-next.4
@objectstack/core@19.0.0-next.4
@objectstack/driver-memory@19.0.0-next.4
@objectstack/driver-mongodb@19.0.0-next.4
@objectstack/driver-odata@19.0.0-next.4
@objectstack/driver-sql@19.0.0-next.4
@objectstack/driver-sqlite-wasm@19.0.0-next.4
@objectstack/driver-turso@19.0.0-next.4
@objectstack/mcp@19.0.0-next.4
@objectstack/metadata@19.0.0-next.4
@objectstack/metadata-fs@19.0.0-next.4
@objectstack/observability@19.0.0-next.4
@objectstack/embedder-openai@19.0.0-next.4
@objectstack/knowledge-memory@19.0.0-next.4
@objectstack/knowledge-pgvector@19.0.0-next.4
@objectstack/knowledge-turso@19.0.0-next.4
@objectstack/organizations@19.0.0-next.4
@objectstack/plugin-audit@19.0.0-next.4
@objectstack/plugin-dev@19.0.0-next.4
@objectstack/plugin-email@19.0.0-next.4
@objectstack/plugin-hono-server@19.0.0-next.4
@objectstack/plugin-pinyin-search@19.0.0-next.4
@objectstack/plugin-security@19.0.0-next.4
@objectstack/plugin-sharing@19.0.0-next.4
@objectstack/plugin-webhooks@19.0.0-next.4
@objectstack/scenarios@19.0.0-next.4
@objectstack/service-analytics@19.0.0-next.4
@objectstack/service-automation@19.0.0-next.4
@objectstack/service-cache@19.0.0-next.4
@objectstack/service-cluster@19.0.0-next.4
@objectstack/service-cluster-redis@19.0.0-next.4
@objectstack/service-datasource@19.0.0-next.4
@objectstack/service-i18n@19.0.0-next.4
@objectstack/service-job@19.0.0-next.4
@objectstack/service-knowledge@19.0.0-next.4
@objectstack/service-mailbox@19.0.0-next.4
@objectstack/service-messaging@19.0.0-next.4
@objectstack/service-package@19.0.0-next.4
@objectstack/service-print@19.0.0-next.4
@objectstack/service-push@19.0.0-next.4
@objectstack/service-queue@19.0.0-next.4
@objectstack/service-realtime@19.0.0-next.4
@objectstack/service-record-context@19.0.0-next.4
@objectstack/service-segmenter@19.0.0-next.4
@objectstack/service-settings@19.0.0-next.4
@objectstack/service-sms@19.0.0-next.4
@objectstack/service-storage@19.0.0-next.4
@objectstack/skills@19.0.0-next.4
@objectstack/trigger-api@19.0.0-next.4
@objectstack/trigger-record-change@19.0.0-next.4
@objectstack/trigger-schedule@19.0.0-next.4
@objectstack/types@19.0.0-next.4
@objectstack/verify@19.0.0-next.4
@object-ui/auth@19.0.0-next.4
@object-ui/cli@19.0.0-next.4
@object-ui/collaboration@19.0.0-next.4
@object-ui/components@19.0.0-next.4
@object-ui/data-objectstack@19.0.0-next.4
@object-ui/fields@19.0.0-next.4
@object-ui/i18n@19.0.0-next.4
@object-ui/layout@19.0.0-next.4
@object-ui/mobile@19.0.0-next.4
@object-ui/permissions@19.0.0-next.4
@object-ui/plugin-calendar@19.0.0-next.4
@object-ui/plugin-charts@19.0.0-next.4
@object-ui/plugin-chatbot@19.0.0-next.4
@object-ui/plugin-dashboard@19.0.0-next.4
@object-ui/plugin-designer@19.0.0-next.4
@object-ui/plugin-detail@19.0.0-next.4
@object-ui/plugin-editor@19.0.0-next.4
@object-ui/plugin-form@19.0.0-next.4
@object-ui/plugin-gantt@19.0.0-next.4
@object-ui/plugin-grid@19.0.0-next.4
@object-ui/plugin-kanban@19.0.0-next.4
@object-ui/plugin-list@19.0.0-next.4
@object-ui/plugin-map@19.0.0-next.4
@object-ui/plugin-markdown@19.0.0-next.4
@object-ui/plugin-report@19.0.0-next.4
@object-ui/plugin-timeline@19.0.0-next.4
@object-ui/plugin-timesheet@19.0.0-next.4
@object-ui/plugin-tree@19.0.0-next.4
@object-ui/plugin-view@19.0.0-next.4
@object-ui/react@19.0.0-next.4
@objectstack/connector-imap@19.0.0-next.4
@objectstack/console@19.0.0-next.4
create-objectstack@19.0.0-next.4
@objectstack/sdui-parser@19.0.0-next.4
@object-ui/create-plugin@19.0.0-next.4
@object-ui/react-runtime@19.0.0-next.4
@object-ui/app-shell@18.6.0-next.4
@objectstack/example-crm@4.0.107-next.4
@objectstack/example-multi-package@0.0.14-next.4
@objectstack/example-showcase@0.3.29-next.4
@objectstack/example-starter@0.1.1-next.4
@objectstack/example-todo@4.0.107-next.4
@objectstack/example-embed-objectql@0.0.47-next.4
@objectstack/connector-app-docusign@0.1.5-next.4
@objectstack/connector-app-github@0.1.5-next.4
@objectstack/connector-app-stripe@0.1.5-next.4
@objectstack/dogfood@0.0.55-next.4
@objectstack/downstream-contract@0.0.53-next.4
@objectstack/http-conformance@0.1.15-next.4