Repository navigation
docs(skills): JSON forms in the sections served to MCP clients, and a check that pins their headings - #35131
Conversation
…pin on their headings Claude-Session: https://claude.ai/code/session_01JQwxbWDsbbJizuYnDwBxT8 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbWDsbbJizuYnDwBxT8 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbWDsbbJizuYnDwBxT8 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbWDsbbJizuYnDwBxT8 Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
…d ledger Claude-Session: https://claude.ai/code/session_01JQwxbWDsbbJizuYnDwBxT8 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8 Contract-review-claim: session_01JQwxbWDsbbJizuYnDwBxT8 · head |
|
repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8 Contract reviewServed-tier: Reviewed from: card #34771 (body and all five comments), PR #35131 (body, 16-file list, net diff against Check-runs on the head at 07:16Z: 60 Why ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. Per
Implementing files: the script agrees with its header and with the hosted reader sentence by sentence, apart from N2; the list file agrees with the hosted table; the ledger row and the ratchet rows agree with the tree. Nits (none changes correctness or the contract):
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8 Final green head · 2026-11-18T07:15Z: |
|
repo:objectstack#1 · os-warren · session_01JQwxbXr9wLAH24MEgxaLud 席位核对L1 full · ACCEPT · Head-sha: Net diff against merge base Against the card
Read at the head
Nits (none blocks)
Not mine, still owed before landing
|
|
repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY Seat record · 2026-11-18T07:21Z · Head-sha: 635b74b 维护者速读
席位意见:同意合并。纯文档和一个只读检查,示例换成客户端真实写法,并第一次把托管读取的标题钉住。 席位核对
|
…#35131) A clean merge: #35131 edits other rows of scripts/check-skills-token-ratchet.mjs and none of this branch's skill files. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbWDsbbJizuYnDwBxT8
Fixes #34771
Clause-②: no
Metadata-protocol: none
维护者速读
notify与审批流两个示例从 TypeScript 改成 JSON 后措辞是否仍准确。回滚 = revert 本 PR,无数据或运行时影响。skills/objectstack-automation/references/state-machines-and-approvals.md的审批流 JSON(整块替换,最大的一处);②skills/objectstack-automation/SKILL.md的notify节(原注释改成了块下的键说明列表);③scripts/check-skills-token-ratchet.mjs的 5 行上调。pnpm --filter @objectstack/spec run check:skill-served-sections,预期末行24 served section(s) ... (6 json, 2 json+ts, 16 neutral); 10 JSON fence(s) parse and pass their spec validators。skills/**与 workflow 属 Tier H 受管面)。What changes
JSON forms. The 24 sections are the ones listed in #34771 comment 6967385705. Each section's chosen form:
objectstack-data/rules/naming.mdobjectstack-data/SKILL.mdobjectstack-data/SKILL.mdexpressionenvelope is named beside the TypeScript tagobjectstack-data/SKILL.mdobjectstack-data/SKILL.mdobjectstack-data/rules/validation.mdobjectstack-data/rules/relationships.mdsummaryfield and the permission set are JSON; commented-out alternatives became a sentence and a second field entryobjectstack-data/references/seeds.mddefineSeed()row says it is the TypeScript formobjectstack-data/rules/lifecycle.mdobjectstack-ui/SKILL.mdobjectstack-ui/SKILL.mdobjectstack-ui/rules/list-views.mdobjectstack-automation/SKILL.mdobjectstack-automation/SKILL.mdobjectstack-automation/SKILL.mdnotifyobjectstack-automation/SKILL.mdrunAsobjectstack-automation/SKILL.mdconfig.filter)objectstack-automation/SKILL.mdobjectstack-automation/SKILL.mdobjectstack-automation/references/examples-flows.mdobjectstack-automation/references/state-machines-and-approvals.mdobjectstack-automation/references/state-machines-and-approvals.mdobjectstack-automation/references/state-machines-and-approvals.mdApprovalNodeConfigSchema)objectstack-automation/references/state-machines-and-approvals.md"neutral" means the section holds prose and tables and no fenced TypeScript; inline key fragments in prose (
{ type: 'boolean', defaultValue: false }) are left as they are.The two sections the hosted door serves with passages replaced are rows 20 and 24 (read from the hosted table,
packages/service-ai-studio/src/skills/published-refs.tsin the cloud repository). Both replaced passages are byte for byte as onmainand occur exactly once in their sections; no line containingrunAs: 'system'is added, removed or changed anywhere in this diff. That is why row 20 keeps its TypeScript flow, and why its JSON is the start node alone: a whole-flow JSON would have to declare the identity that the replaced variant tells its reader not to declare.The pin.
packages/spec/scripts/skill-served-sections.jsonlists the 24 sections (file, heading, the numbered item where the door reads one, form, and the validator of each JSON block in document order).packages/spec/scripts/check-skill-served-sections.tsapplies the hosted door's rule line for line: the heading text must occur exactly once in its file outside code fences, and the section runs to the next heading of the same or a higher level. It also parses every JSON block in a listed section and validates it against the spec schema for its kind (a flow node also against its node type's config contract), and fails when a section carries a JSON block the list does not declare, or a TypeScript block its declared form does not allow. It runs inlint.ymlbesidecheck:skill-refs, aspnpm --filter @objectstack/spec check:skill-served-sections, self-test first.Token ratchet. Raise path: ruling record 6513306068 on #27847, letter B (「A:先削重复,余额按实测提高」). Paid down first in each file, then five rows moved by the measured remainder and two rows re-locked lower:
objectstack-automation/SKILL.mdobjectstack-automation/references/examples-flows.mdobjectstack-automation/references/state-machines-and-approvals.mddefineFlowwrapper and the check markerobjectstack-data/SKILL.mdsharingModelrow; thenamespacerow's wrapper clause and exampleobjectstack-ui/SKILL.mdtype/bodyfragment the JSON block replacesobjectstack-data/rules/relationships.mdobjectstack-data/references/seeds.mdSkills readings, lines: the nine changed files, before -> after: 468 -> 478, 138 -> 145, 412 -> 392, 472 -> 478, 175 -> 175, 25 -> 25, 409 -> 411, 330 -> 331, 164 -> 169 (in the order
git diff --numstatprints them); net acrossskills/**+11 (169 added, 158 removed). AllSKILL.mdfiles together: 4596 -> 4617 lines. Tokens, by the ratchet's own count: authored 191485 -> 191677, whole bundle 263501 -> 263693.Tests
pnpm --filter @objectstack/spec run check:skill-served-sections: self-test 33 cases in 8 batteries, then24 served section(s) ... 10 JSON fence(s) parse and pass their spec validators.### List Viewsrenamed to### List viewsinskills/objectstack-ui/SKILL.mdthroughscripts/ablation-replace.mjs(anchor 1 -> 0, blob changed); the gate exits 1 withfound 0 (renamed or removed); restored, blob equalsHEADandgit diff HEADis empty; the gate is green again.pnpm --filter @objectstack/spec run check:skill-examples:345 prose examples type-check across 3 surface(s)(two marked TypeScript blocks left with the conversion; the JSON that replaces them is validated by the new check instead).pnpm --filter @objectstack/spec typecheck: exit 0 (coversscripts/).Acceptance notes
label: the TypeScript fragment it replaces had none, and the flow node schema requires one.scripts/check-skills-token-ratchet.mjs(overlap-check); whichever lands second re-measures its row. docs(skills): objectstack-ask follows list_datasets nextStep and cites query_dataset sourceLine as given #35100 and docs(skills): teach the fault edge on a write after an approval decision and the RESUME_FAILED refusal members #35002 merge cleanly.Verification
Head
84cede3db5(merged withorigin/main958ee03594).Local gate subset
node scripts/pm/dispatch-gates.mjs --commandsderived 133 families; all were run on this head and reconciled:dispatch-gates --ran: 133 derived famil(ies) accounted for — 133 run, 0 NOT-MEASURED. Among themcheck-skills-token-ratchetand its self-test (104 cases),check:skill-docs,check:skill-refs,check:skill-links,check:skill-compatibility,check:doc-authoring,check:pm-dispatch-gates,bare-root-worklist --self-test.check-governed-merges --branch HEAD: Tier H, as expected forskills/**and a new workflow step.test:repoand the full farm are left to CI.Generated by Claude Code