Skip to content

docs(skills): the objectstack-ai entry file becomes a router - #38911

Merged
os-zhuang merged 13 commits into
mainfrom
claude/project-thread-96llpb
Dec 1, 2026
Merged

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

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Part of #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 (#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 #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 #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.
  • chore: version packages (next) #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 docs(knowledge): the docs and the AI skill state the document unit (documentBy) and the held knowledge service #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.

Derived families on head `3342d3d1`: 69 derived, 69 run green, 0 NOT MEASURED
  • Reconciliation: ✓ dispatch-gates --ran: 69 derived famil(ies) accounted for — 69 run, 0 NOT-MEASURED (a DERIVED zero — all 69 recorded an exit code and none of them is 3). 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.
Beside the derived list, on head `3342d3d1`, all exit 0
  • 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.

node scripts/pm/overlap-check.mjs before the push of 3342d3d1: VERDICT clean exit 0 (origin/main at 8338d070 merges cleanly; #38915 shares the ratchet script and merges cleanly; #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

claude added 11 commits December 1, 2026 07:16
The entry keeps four first checks, one skill and one knowledge-source
example, the confirmation rule of every AI door, two pitfalls and a
routing list. Key tables and option lists go behind the contract, the
door's own tool list or the published AI pages.

Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS
Co-authored-by: Claude <noreply@anthropic.com>
…ement, with its changeset

The entry is 8,998 bytes (185 lines). Its ratchet row moves 7247 -> 2243,
pinned at the measurement with no headroom; the sum of all ceilings falls
by the same 5,004. The changeset names what the entry keeps, what left it
and what answers each cut part now, and the anchors that no longer exist.

The "Where to go" list now routes the two platform agents to the published
agents page and names objectstack-ask for answering as the connected agent.

Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS
Co-authored-by: Claude <noreply@anthropic.com>
Two conflicts, both on the objectstack-ai entry, which main changed the
same day (the document unit and the held knowledge service).

skills/objectstack-ai/SKILL.md: the router text stands, and the two new
facts are folded in as one clause each, paid for with cuts in the same
file: mounted is not enabled (held sources, `os knowledge status`), and an
app that cuts its own passages indexes the child records with
`documentBy`. The file is 8,993 bytes, 186 lines.

scripts/check-skills-token-ratchet.mjs: main's three dated notes stay, and
the row is re-pinned at the measurement, 7499 -> 2242.

Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS
Co-authored-by: Claude <noreply@anthropic.com>
…dded and where the rest of each lives

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

The split rule said only that passages never overlap; an agent asked for a
100-character overlap declined it while saying it could not tell whether a
key exists. `KnowledgeSplitSchema` is strict over `strategy`, `maxChars`
and `minChars`, so the entry now says no key adds one. Paid for in the
same file; 8,997 bytes, row re-pinned at the measurement (2243).

Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 1, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB
L1-b, the seat's L1 thread · 2026-12-01T12:56Z · first review

席位核对

ACCEPT @ 100417a. Part of #34770 is right. Draft. This is PR 8, the last of the split.

① File surface and merges.

  • Surface. Against main at the last merge, ac97540f, the head differs in exactly 3 files: the entry, the changeset and the one ratchet row.
  • Merges. The head's last parent is ac97540f. main has since moved to 05da5bdb (4 commits: flows, a list-view fix, seat-numbers.mjs), and none of them touches skills/, the ratchet script or the eval runner. A git merge-tree trial against 05da5bdb is clean.
  • What stays unchanged:
    • the frontmatter is byte-identical;
    • the title and the five kept headings are too, including the three other bundle files name: Actions as AI Tools, MCP, Common Pitfalls;
    • references/context-packs.md is untouched.
  • Size: 8,997 B and 186 lines.
  • Ratchet: the row goes 7499 → 2243, which is ceil(8970 / 4). main's three dated notes stay above it. No row rises and none is added.

② The correction of main's pending_approval sentence is right.

  • packages/spec/src/contracts/ai-service.ts retires the stored pending_approval answer: "That answer is retired …".
  • ActionConfirmationPending is pending_confirmation with a pendingId.
  • ACTION_CONFIRMATION_REFUSAL_REASONS is exactly declined, cancelled, timed_out, no_confirmation_service and service_account.
  • The refusing door answers 428. ActionConfirmationRefusalReason is exported through @objectstack/spec/contracts, as the routing line says.
  • The stale content/docs/ai/actions-as-tools.mdx is confirmed: line 126 lists confirmText as a destructive signal, and line 252 says pending_approval. It is correctly left out of this PR as an out-of-scope finding. It needs a card, which is the seat's step.

③ I checked every phrase new to the entry against the source; each holds.

  • A skill has no permissions key. skill.zod.ts says "deliberately NO per-skill permissions field"; the schema is strict, with guidance.
  • The MCP prompt is offered only when every bound tool is listed. skill.zod.ts says "offered only on a server that serves every tool it binds".
  • Passages never overlap: no key adds one. KnowledgeSplitSchema is a strictObject over strategy, maxChars and minChars.
  • granularity: 'record' without groupBy gives one hit per parent. That is the documentBy docblock.
  • The name lists and rule ids exist. PLATFORM_PROVIDED_TOOL_NAMES and the four sibling lists the changeset names are in system/constants/platform-tool-names.ts, re-exported from @objectstack/spec/system. ai-skill-tool-unresolved and agent-authoring-withdrawn are live rule ids.
  • Everything else is carried from main's entry. That covers the UI-only types, "an API key or token (even their own)", "a script lists the queue", unmounted-or-held 503, ≥ 40 chars, ToolSchema with no handler, and the five context fields. The docs pages named under Where to go all exist.
  • The two ☁️ claims stay main's. They are under seat ruling 3 and not verified against the cloud source, as the body says.

④ Measured in a scratchpad worktree at this head.

  • Gates:
    • check-skills-token-ratchet ✓ (181699 / 181699 (+0), row 2243 / 2243);
    • check-skill-links ✓;
    • check-skill-identifier-liveness OK (Leg 1: 455);
    • check:skill-docs, check:skill-refs and check:doc-anchors all 0;
    • check:skill-served-sections 0 (24);
    • check:skill-examples 0 (341);
    • spec guards 57/57;
    • create-objectstack created-summary + scaffold-skills-single-copy 34/34.
  • Eval literals (no model).
    • must_contain is 49 in all. main's entry carries 44, and this head's carries the same 44, with none lost and none gained.
    • Of the other 5, three are in references/. Case 12's context: and policy_document are in neither entry, on either tree.
    • must_not_contain is 62 in all. main's entry carried one (case 11 aiReadable); the head carries none.
  • Ablations:
    • A. The base ratchet row goes red (2243 / 7499 (-5256)).
    • C. A permissions key in the skill example makes check:skill-examples 1 at SKILL.md:47, so that block's keys are type-checked.

⑤ Notes for the seat. None is a must-fix.

  • The knowledge example's keys are not type-checked. It is written KnowledgeSourceSchema.parse({ … }), which takes unknown. My ablation B (an overlap key added) left check:skill-examples at exit 0. main's block has the same shape, so this is not new. const supportKb = { … } satisfies KnowledgeSource would make the pass read its keys.
  • The split bullet no longer says where split lives. main's key table had source.split. A split written at the top level is refused by the strict KnowledgeSourceSchema, so the mistake is loud, not silent.
  • Eval parity: the card thread measured it, I did not.
    • Its figures, from one window: main 42/45, head 39/45.
    • They meet 7249189592: no case fails all three runs at the head while main passes. Case 5 is 0/3 on both trees.
    • Cases 7 and 9 lose on forbidden literals quoted inside correct refusals. The seat ruled A on case 7.
    • The bundle and runner are byte-identical between the judged commit 66c16628 and this head (git diff empty).
  • About ten traps against the card's ~8: the seat ruled A. I found each of the ten listed in the body in the entry. Whether each is of the accepted-then-wrong class is the contract review's to judge.

⑥ Face. l1-face is clean except CI, which is still running: 27 success, 1 pending and 0 failed when read. The floor checks are green. The PR touches no published package, so no changeset is owed (as for PR 7). The dogfood battery is not owed. The STALE TREE in the gate reconciliation is scripts/pm/seat-numbers.mjs from main, which is outside this PR.

Not covered by this ACCEPT:

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-steve · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract review

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

Read: card #34770 (body and all 72 comments, rulings 7128031203, 7168461386, 7176941587, 7249189592, claim amendment 7303236509 and dev report 7311567880 in full), PR #38911 (body, three files, the net diff against main at 05da5bdb), and the check-runs on this head. main moved four commits past the merge base ac97540f; none touches skills/, the ratchet script, content/docs/ai/, the lint rules or the contracts the entry cites.

① Derived judgments

  • No accept-set moves. The diff holds no schema, validator, lint rule or runtime file. Right.
  • Published surface: the text of one file of @objectstack/skills. 30,020 to 8,997 bytes, 518 to 186 lines. Lines 1 to 21 (frontmatter and title) are byte-identical to main, so the name, the description that loads the skill, the compatibility line and the version stamp do not move. Right.
  • Anchors. Nine headings leave, three are new. No file in the repository links a removed anchor, and the served-section table names no section of this file. The three headings other bundle files name in prose stay: Actions as AI Tools (objectstack-automation/references/integration-recipes.md), MCP (objectstack-platform/references/bootstrap.md, for the elicitation outcomes) and Common Pitfalls (objectstack-automation/references/state-machines-and-approvals.md); the pitfall title the eval runner's prompt quotes is unchanged. Right.
  • The size gate narrows for one file. One CEILINGS row, 7499 to 2243. Right (④, item 7).
  • One teaching change, the pending answer. Right (④, item 2).
  • Eval literals, counted statically on evals/skills-tools-knowledge.json (untouched; references/ untouched too): 15 cases carry 49 must_contain literals and 6 must_contain_any groups. The entry carries 44 of the 49 and satisfies 6 of the 6 on main, and the same 44 and 6 on this head: none is lost. The five it carries on neither tree are case 11's opportunity, stage, notes and case 12's context: and policy_document. Inside the groups three alternatives leave (knowledge_source and knowledge-source in case 3, lower-case egress in case 13, aggregate_data in case 15); each group keeps another member. One forbidden literal leaves the entry: aiReadable (case 11).

② Semver level

  • '@objectstack/skills': patch, as the two sibling changesets of this card on main. The diff publishes skill text only, so patch is the level. Check Changeset is green on this head.
  • Clause-②: no and Metadata-protocol: none stand on the body and the changeset: nothing an app may write is narrowed or widened.
  • The changeset's "what left, and what answers it now" list was read against main entry by entry: every contract file, docblock, lint rule id, exported name list, published page and page section it names exists and carries what the list leaves to it, with the one exception graded as S1 below.

③ Boundary flags

  • open_questions (one): the contract review on this head. Answered by this record.
  • Stale-tree warning at the push. Answered: the four commits main gained touch none of the paths this diff changes or the entry cites, and the check-runs on this head are the gate verdicts.
  • The main eval arm ran main's entry text inside the head checkout. Answered: the diff is three files, so the runner, evals/ and references/ are the same bytes on both trees and the arm is main's bundle.
  • No new round for the pushed head. Answered: 66c16628 is an ancestor of the head and the two do not differ under skills/objectstack-ai or packages/qa/scenarios.
  • Parity, ruling record 7249189592. Judged pair 42/45 on main, 39/45 on the head. No case fails every run of the head while main passes it: case 7 reads 1 of 3 against 3 of 3, case 9 reads 2 of 3 against 3 of 3, case 5 reads 0 of 3 on both. Case 7 is recorded, not a finding, under that ruling. The head's total is three lower and is reported as lower.
  • Ruling 7168461386 used on a softer signal (the "no key adds one" clause). Answered: the clause is true (the split schema is strict over strategy, maxChars, minChars) and is paid inside the entry.
  • Two cloud-marked claims not verified against the cloud source. Answered within this repository's reach: the five context fields and enableActionApproval: true say no more than main's entry said.
  • Out-of-scope finding, the published page actions-as-tools. Confirmed on main, and it bears on this diff: S1.
  • SQL push-down. No query code in the diff.
  • Check-runs on this head, 46: 26 success, 18 skipped, 0 failed, 2 still running (Test Core (1/12), Test Core (2/12)). Every lint, type-check, changeset and guard run is complete and green.

④ Design judgment

skills/objectstack-ai/SKILL.md

  1. Every remaining sentence, read against main. True: the surface values and default, the strict skill shape and its refused permissions key (ai/skill.zod.ts); the three resolution sources and the warning ai-skill-tool-unresolved (packages/lint/src/validate-ai-tool-references.ts, name lists exported from @objectstack/spec/system); the warning on a stack-authored agent (agent-authoring-withdrawn) and the strict agent shape that refuses tools and knowledge; temperature 0 to 2 and the retired provider (ai/agent.zod.ts); the opt-in with its 40-character description (ui/action.zod.ts); the two declared destructive signals (actionLooksDestructive, packages/runtime/src/action-execution.ts); the five-minute elicitation bound (packages/mcp/src/action-confirmation-elicitation.ts); the knowledge facts (ai/knowledge-source.zod.ts, content/docs/ai/knowledge-rag.mdx), the bare sourceIds example included, since the tool resolves a bare name to the one package's source and refuses an unknown one. Both examples are type-checked by a green run. The two cloud-marked claims say no more than main.
  2. The pending answer. Correct. ActionConfirmationPending is status: 'pending_confirmation' with pendingId and message; the same file retires the stored pending_approval answer ("no door gives it") and makes the merge the contract from 19.0.0; the protocol-19 migration entry exists. The five bullets match rules 3 to 6 of that contract: the retired confirm member, the hand-off as a success, no_confirmation_service on the open build, the three elicitation refusals, service_account, and the deciding doors that take a signed-in session only.
  3. The traps kept. Ten are of the class ruling 1 names, each accepted and then inert or wrong: a tool record (parses, no reader); ai.exposed on a url, modal or form action (parses, no tool); an action written for an AI button; a stack-authored agent (warning only, never served); an unresolved tools name (warning only, prompt withheld); triggerConditions as a gate; the confirmation rule (instructions or a script that parse and are refused at the door); a file field or short values in content; a shipped source with no embedder (held); a gated action with no lock on its field. The eleventh is N1.
  4. Accepted-then-wrong inputs now behind a pointer. Each of these has a home that says it: whole on a document over the embedder budget (the KnowledgeSplitSchema docblock, the page's splitting section); blank instructions, active: false and mcpPrompt: false withholding the MCP prompt (the ai/skill.zod.ts docblocks); surface and triggerConditions inert on the open edition (same docblocks, and the cloud mark). One does not: S1.
  5. Cut with no other home. Each is safe to drop: the in-app allow-set paragraph (cloud runtime behaviour, reported by a diagnostic, and the allow-set was defined nowhere in this repository); the cloud host's plugin options and two predicates (host code, not stack metadata); the built-in skills table (the tool names stay exported in PLATFORM_TOOLS_BY_PACKAGE); approval: 'always' and the guardrails pitfall (a stack authors no agent; dropping a statement that a gate exists creates no trap); AI edits landing as drafts (objectstack-mcp-build says its door saves drafts only).
  6. The text folded in from docs(knowledge): the docs and the AI skill state the document unit (documentBy) and the held knowledge service #38855. Each kept fact is present and true: held with no embedder at boot; listed, never searched, search_knowledge not offered; a run-time save refused 503 unmounted or held; os knowledge status; requires: ['knowledge']; child records indexed with strategy: 'whole' and documentBy, one hit per parent under granularity: 'record' without groupBy. What left (the store half, the rebuild exit, the two restarts, the documentBy row) is in the page's "Turning it on" and "An app that cuts its own passages" sections and the documentBy docblock.

S1 (should-fix) — the confirmText trap is cut, and the page the entry names for approval teaches the opposite. main's entry said in its skip rule that confirmText is dialog copy and not a destructive signal. The head lists the signals and drops that sentence, and Where to go sends the reader to actions-as-tools for "dispatch, approval". On main that page says, under What gets exposed, that destructive actions are confirmText, mode: 'delete', variant: 'danger' or ai.requiresConfirmation: true; the runtime and the ai.requiresConfirmation docblock read the two declared values only. The input is of the ruled class: confirmText on an ai.exposed action parses, no os validate rule reads the pair, and the AI call then runs unasked. The card's Scope keeps a trap inline until a publish-time check covers it, and none does. Two homes say it right (objectstack-ui rules/actions.md: "It gates no AI call"; the docblock), but neither is what the entry names for approval. The same page's ObjectOS callout still answers pending_approval; the entry states pending_confirmation itself, under the MCP heading, without saying the in-app door answers the same. Close it inside the entry, paid by a cut with the row re-pinned at the measure: say confirmText is no signal, and either say the pending answer is every AI door's or stop naming that page for approval until it is corrected. Correcting the page is outside this PR's file surface.

N1 (nit) — pitfall 1 is not of the ruled class. A provider key is refused at parse with its fix (only the 'openai' residue parses, and is stripped). The PR body says so and keeps it for temperature and maxTokens, which eval case 2 reads. Left as the seat's accepted deviation; no change on this head.

N2 (nit) — one changeset sentence. "No rule's teaching changes" sits above the same file's own note that the pending answer was corrected. The note is right; the summary sentence overstates.

scripts/check-skills-token-ratchet.mjs

  1. One row moves, down: skills/objectstack-ai/SKILL.md 7499 to 2243. The file is 8,997 bytes, the unpriced stamp line is 27, and ceil(8970 / 4) is 2243: pinned at the measure, zero headroom. Summed statically over the 61 rows: 186,955 on main, 181,699 on the head, the same 5,256 lower. No row rises, none is added, references/context-packs.md stays 1453. The comment's arithmetic and its list of kept traps agree with the file; the lint rule ids it names exist. The code agrees with the contract (ruling 7128031203 fork 4, and the card's 6 to 9 KB and 500-line budget).

Why the security line above reads yes, and it is meant. The changed hunks teach that trigger conditions are never access control and a skill has no permissions key; who may decide a pending AI action and which credentials are refused; the AI service-account refusal; the field lock, requiredPermissions and field-permission reading of pitfall 2; and they correct the pending answer. Removed hunks covered OAuth scopes and row-level security on the MCP tools, manage_knowledge_sources, and the agent-level gate.

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

VERDICT: PASS

…all and the pending answer is every AI door's

The router listed the two destructive signals and dropped the sentence that
`confirmText` is not one, while its routing list named the published
actions-as-tools page for approval; that page still lists `confirmText` as
a signal and still gives the retired pending answer. `confirmText` on an
exposed action parses, no validate rule reads it, and the AI call runs
unasked (`actionLooksDestructive` reads `ai.requiresConfirmation`,
`mode: 'delete'` and `variant: 'danger'` only).

The entry now carries the trap inline, says the pending answer holds at
every AI door, and names that page for dispatch only. Paid by wording cuts
in the same file: 8,997 -> 8,995 bytes, row re-pinned at the measurement
(2243 -> 2242). The changeset no longer says no rule's teaching changes.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-steve · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract review

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

Delta review of record 7311924709 (head 100417af). Read: the two commits since that head (ef824b4a, the fix; 3342d3d1, a plain merge of main at 8338d070), the net diff of this head against main, the dev's delta report 7313523147, the newer card comment 7313459788 (the eval seat's reading of the data and automation entries, not of this file), the rewritten PR body, and the check-runs on this head. main is one commit past the merge base; that commit and the three the merge brought in touch none of this PR's three files, the eval fixture, the runner, or the sources the entry cites, except skills/objectstack-ui/rules/actions.md, which still carries its confirmText sentence.

① Derived judgments

  • No accept-set moves. The diff is still three files: the entry, one ratchet row and the changeset. No schema, validator, lint rule or runtime file. Right.
  • The merge brought nothing into this PR's diff. The three files are byte-identical between ef824b4a and this head, and the net diff against the merge base is those three files only. Right.
  • Published surface. The entry is 8,995 bytes and 184 lines (8,997 and 186 on the reviewed head; 30,020 and 518 on main). Lines 1 to 21 are byte-identical to main. No heading moved in this round. Right.
  • Eval literals, recounted statically. Unchanged by the round: the entry carries 44 of the 49 must_contain literals and satisfies 6 of the 6 groups, as on main and on the reviewed head. No forbidden literal is in the entry.

② Semver level

  • '@objectstack/skills': patch, unchanged and right: text only. Clause-②: no and Metadata-protocol: none stand.
  • The changeset's three edits are true on this head: 184 lines; the confirmText rule kept in the entry; the actions-as-tools page named for dispatch only, with the reason given. Its summary sentence now says one sentence of the old entry is corrected and no other rule's teaching changes. N2: closed.
  • Check Changeset is green on this head; a second run of it, started when the body was rewritten, is still running.

③ Boundary flags

  • open_questions 1, the re-review of the fix. Answered by this record.
  • open_questions 2, the new PR body. Answered: the PR shows the rewritten body, with its Review round section and this head's sizes.
  • Two optional notes declined. They are not findings of record 7311924709, so this record has nothing to close on them. The body's correction is accurate and applies to that record's wording too: the skill example is typed by defineSkill, while the knowledge example's literal is an untyped argument of .parse. Read by hand against ai/knowledge-source.zod.ts, every key of that literal is declared.
  • Eval rounds from two windows. Answered: main's entry, the fixture, references/ and the runner are the same bytes as at main's round, so the pair compares the two entry texts.
  • Parity, ruling record 7249189592, read against the delta report. Head 40/45 on this head, main 42/45. Below 3 of 3 on the head: case 5 at 0 of 3 and case 7 at 1 of 3. Case 5 is 0 of 3 on main too, and case 7 passes one run, so no case fails every run of the head while main passes it. Case 9 reads 3 of 3. The head's total is two lower and is reported as lower. Case 7 stays recorded, not a finding.
  • Quota at 0.90 under the 0.99 guard. Answered by the claim's own line on the maintainer's choice for this series.
  • Out-of-scope finding, the published page actions-as-tools. Still stale on main, untouched here; the entry no longer leans on it for either stale fact.
  • SQL push-down. No query code in the diff.
  • Check-runs on this head, 50: 27 success, 20 skipped, 0 failed, 3 still running (Test Core (1/12), Test Core (2/12), and the second Check Changeset run). Every lint, type-check and guard run is complete and green.

④ Design judgment

skills/objectstack-ai/SKILL.md

S1: closed. All three parts of the fix hold against main:

  • The new trap under Actions, "confirmText is dialog copy: it gates no AI call; ai.requiresConfirmation: true does." actionLooksDestructive (packages/runtime/src/action-execution.ts) returns the declared ai.requiresConfirmation when it is set and otherwise reads mode: 'delete' and variant: 'danger'; it never reads confirmText. The ai.requiresConfirmation docblock in ui/action.zod.ts says the same in its own words, and the confirmation gate reads the declared flag alone. The trap is of the ruled class: the key parses, no os validate rule reads the pair, and the call runs unasked.
  • "at every AI door, status: 'pending_confirmation' with a pendingId is a success". The contract in contracts/ai-service.ts has every AI door answer the one pending literal from 19.0.0, the in-app door included.
  • Where to go names actions-as-tools for dispatch only. The page's dispatch table is right on main; its two stale sentences are now contradicted by the entry's own text, not left to the page.

The other hunks of the round are wording cuts, each read against main:

  • instructions: 'Check for duplicates first.' in the skill example: still a valid string, typed by defineSkill.
  • "have whatever extracts it write a textarea field": the fact (a file field adds no file text; list a text field) is kept.
  • The routing list drops its glosses after connect-mcp and knowledge-rag and reads "Answering as the agent: objectstack-ask". All four pages exist.
  • The tool-name pointer: N3.

N3 (nit) — the tool-name pointer now names one of the two lists. The cut of "and its siblings" leaves PLATFORM_PROVIDED_TOOL_NAMES alone in the parenthesis. A name only MCP_DOOR_TOOL_NAMES holds (aggregate_records, which the entry itself sends counts to, or run_action) also resolves for a skill offered over MCP, and os validate does not warn on it. The sentence errs on the cautious side and names os validate as the judge, so no author ends with a wrong result. Left as an accepted deviation or a follow-up; no change on this head.

N1 stands as the seat's accepted deviation. The PR body now counts eleven traps of the ruled class and pitfall 1 as the twelfth item, of the refused kind; the count matches the file.

scripts/check-skills-token-ratchet.mjs

  • One row differs from main: skills/objectstack-ai/SKILL.md 7499 to 2242. The file is 8,995 bytes, the unpriced stamp line is 27, and ceil(8968 / 4) is 2242: pinned at the measure, zero headroom.
  • Summed statically over the 61 rows: 186,955 on main (unchanged by the merge), 181,698 on this head, 5,257 lower. No row rises, none is added, references/context-packs.md stays 1453.
  • The comment's figures (8995, 8968, 2242, 5257, and 8997 to 8995 for the round) and its trap list, which now names confirmText, agree with the file.

The security line above stays yes, and it is meant: the round's own hunks teach which key gates an AI call and what the pending answer is at every AI door.

No must-fix, no should-fix.

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

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB
L1-b, the seat's L1 thread · 2026-12-01T14:09Z · delta review (100417a → 3342d3d)

席位核对

ACCEPT @ 3342d3d. This covers what changed since my ACCEPT 7311883564 at 100417af: the content commit ef824b4a (S1 and N2 of contract review 7311924709), and one plain merge of main (8338d070).

① S1 is true to the code.

  • The new bullet: "confirmText is dialog copy: it gates no AI call; ai.requiresConfirmation: true does."
  • The contract agrees. ui/action.zod.ts says, on ai.requiresConfirmation: "confirmText is dialog copy, not a destructive signal"; the bridge's default is mode: 'delete' / variant: 'danger'. objectstack-ui rules/actions.md:52 says the same at this head.
  • "At every AI door" on the pending_confirmation bullet matches the confirmation contract I cited in 7311883564.
  • Narrower pointer. The routing line now names actions-as-tools for dispatch only. That fits, because the page still carries the two stale sentences. The changeset says so and points the approval paragraph at ActionConfirmationRefusalReason.

② The paying cuts drop no fact:

  • the example's instructions string is shorter;
  • the sibling-list mention narrows to PLATFORM_PROVIDED_TOOL_NAMES (the changeset still names all five lists);
  • "the flow, hook or import that extracts it" becomes "whatever extracts it";
  • the docs-page parentheticals are cut.

N2 (the changeset wording) matches the entry: "One sentence of the old entry is corrected", and the line count is 184.

③ The merge took main whole and kept the PR's side.

  • The head differs from main 8338d070 in exactly the PR's 3 files, each byte-identical to ef824b4a.
  • main's new skills edits (objectstack-i18n, objectstack-ui rules/actions.md and an eval file) came in untouched, and main did not touch the ratchet script.
  • A git merge-tree trial against the current main, 2e0d3d72, is clean.

④ Measured in a scratchpad worktree at this head.

  • Size: 8,995 B and 184 lines. The row is 2242 (ceil(8968 / 4)).
  • Unchanged from the base: the frontmatter is byte-identical, and so are the six kept headings.
  • Gates:
    • check-skills-token-ratchet ✓ (181698 / 181698 (+0));
    • check-skill-links ✓;
    • check-skill-identifier-liveness OK (Leg 1: 456);
    • check:skill-docs, check:skill-refs and check:doc-anchors all 0;
    • check:skill-served-sections 0 (24);
    • check:skill-examples 0 (341);
    • spec guards 57/57;
    • create-objectstack 34/34.
  • Eval literals are unchanged from 100417af:
    • must_contain: main's entry carries 44 of 49 and so does this head's, with none lost or gained;
    • must_not_contain: main's entry carries 1 of 62 (case 11 aiReadable); this head's carries none.
  • Ablations:
    • A. The base ratchet row goes red (2242 / 7499 (-5257)).
    • C. A permissions key in the skill example makes check:skill-examples 1 at SKILL.md:47.

⑤ Notes.

  • The satisfies note from 7311883564 was declined, with the reason given in the delta report 7313523147: .parse is main's form, and case 9 expects it. That is fine. It was a note, not a must-fix, and the knowledge example's keys stay unchecked as on main.
  • Eval parity: the card thread measured it, I did not. Its figures are 40/45 at this head against main's 42/45, which meets 7249189592.

Not covered by this ACCEPT:

  • CI at this head;
  • the L2 contract re-review and the governed approval (Tier H), which are the seat's;
  • the finding card for content/docs/ai/actions-as-tools.mdx, which is the seat's.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-steve · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

维护者速读

  • 用户能看到什么变化: 只改技能文字。objectstack-ai 技能(AI 技能、知识库、助手接入)的入口从 30,020 字节削到 8,995 字节,改成「路由」:只留开工前四项检查、两段可照抄的写法、约十个「写得通过、跑起来却不生效或做错」的坑和一份指路清单。frontmatter 和标题不变,没有新文件。这是技能瘦身卡 skills: SKILL.md becomes a router with a size budget, and points to the contract instead of restating it #34770 的最后一个 PR。
  • 为什么做: 入口文件每次都整份装进 AI 的上下文,越长越贵,也越容易漏读。评测同窗:main 42/45,这个 head 40/45,没有「main 过、本 head 每遍都挂」的题。
  • 顺带改正: main 上的入口教的是已退役的 pending_approval 答复,这里改成源码里的 pending_confirmation 加 pendingId;还补了一句「confirmText 只是弹窗文字,不拦 AI 调用」(复审 S1)。已发布的文档页 actions-as-tools.mdx 仍是旧说法,记在 docs + skills: teach the one pending-confirmation service and the pending_confirmation answer (#33806 step 4) #38324 上,不在本 PR 改。
  • 出错会怎样: 不改代码行为,最坏是 AI 少读一段后答错。撤销合并即可恢复。
  • 要你做什么: 动了 skills/**,属于受管路径,按 Tier H 需要你批准。不走低风险技能通道:有安全相关句子(AI 动作的确认与谁能批、触发条件不是权限控制、技能没有 permissions 键),还改了 scripts/ 的 ratchet 行,已加 security 标签。批准后由席位落地。

Seat opinion: land as is.

席位核对

ACCEPT at head 3342d3d10834a8bd1da0f68c68ee8eff634817b4 · Tier H (governed skills/**; low-risk skills arm refused: security-touching text, scripts/ path) · Part of #34770

  1. Shape: three files: skills/objectstack-ai/SKILL.md cut to a router (30,020 → 8,995 bytes, 518 → about 186 lines), its CEILINGS row lowered 7499 → 2242 with zero headroom (sum 186,955 → 181,698, no row rises), and .changeset/34770-ai-skill-router.md (@objectstack/skills patch). Nothing moved into a reference file; references/context-packs.md is untouched.
  2. Premise: every sentence left is true on main, every pointer target exists and says what the entry leaves to it, each "cut, with no other home" item is safe to drop, and docs(knowledge): the docs and the AI skill state the document unit (documentBy) and the held knowledge service #38855's folded facts are present (L2 7311924709). The one trap the first cut left behind a pointer that teaches the opposite, confirmText, is back inline with the every-door pending answer (L2 delta 7313692403, closing S1).
  3. Gates: on this head 30 success, 20 skipped, 0 failed, Test Core still running at hand-off; the dev's dispatch-gates run 69/69, 0 NOT-MEASURED, no stale tree.
  4. Eval parity (ruling 7249189592), read by the seat: with-skill main 42/45 → head 40/45; no case fails every run of the head while main passes (case 5 fails on both trees; case 7 1/3, its forbidden-literal issue recorded in the body under the seat's ruling A, not carded). Static must_contain literals carried: 44 of 49 and 6 of 6 groups, equal on both trees.
  5. Accepted deviations: N1 (pitfall 1, provider, is refused at parse, kept for eval case 2), N3 (the tool-name pointer names PLATFORM_PROVIDED_TOOL_NAMES alone; os validate stays the judge). The two ☁️ claims stay as on main and are flagged in the body as not verified against the cloud source (seat ruling A). Out of scope: content/docs/ai/actions-as-tools.mdx lines 126 and 252, noted on docs + skills: teach the one pending-confirmation service and the pending_confirmation answer (#33806 step 4) #38324 (7311908756), no new card.
  6. Landing: L1-b delta ACCEPT 7313811879 and L2 delta PASS 7313692403 on this head (earlier: L1-b 7311883564, L2 7311924709). Security-touching: yes ⇒ security label. Lands after os-zhuang approves.

ACCEPT → comment 7313811879 · Contract review → comment 7313692403

Merged via the queue into main with commit 665dfc4 Dec 1, 2026
65 of 66 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-96llpb branch December 1, 2026 15:08
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation security size/l tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants