Skip to content

docs(skills): JSON forms in the sections served to MCP clients, and a check that pins their headings - #35131

Merged
os-zhuang merged 5 commits into
mainfrom
claude/issue-34771-skills-json-forms
Nov 18, 2026
Merged

os-zhuang merged 5 commits into
mainfrom
claude/issue-34771-skills-json-forms

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #34771
Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:托管 MCP 门按标题读取的 24 个技能章节里,8 个章节的示例改为 JSON(或 JSON 与 TypeScript 并列),其余 16 个是纯文字和表格、对两类客户端读法一致;新增一份 24 行清单和一个检查,标题被改名、删除或重复时 CI 变红,章节里的每个 JSON 块都要通过 spec 的 schema。
  • 为什么改:通过 MCP 搭建的客户端写的是 JSON,却只能看到带 import 的 TypeScript 示例;而这些标题一旦改名,托管产品启动即失败,本仓此前没有任何检查知道哪些标题被读取([Decision] The published skills: who reviews a change, how they are verified, one catalog or two for code-first and MCP, and the E2 premise reading #34691 S3 = A)。
  • 风险与回滚:只动文档、一个检查脚本、一行 CI 步骤和 token 棘轮的 7 行;风险在 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:

# File Heading Form What changed
1 objectstack-data/rules/naming.md Critical Rules neutral item 2 no longer says "TypeScript" (the rule holds for JSON keys too); item 6 untouched
2 objectstack-data/SKILL.md Object Definition json new: one object as JSON, with the TypeScript wrapper named in one line
3 objectstack-data/SKILL.md Field Type Selection neutral the expression envelope is named beside the TypeScript tag
4 objectstack-data/SKILL.md Relationship Patterns neutral untouched (a table)
5 objectstack-data/SKILL.md Validation Patterns neutral untouched (prose)
6 objectstack-data/rules/validation.md State Machine Validation json the rule is JSON; its two comments became one sentence
7 objectstack-data/rules/relationships.md Roll-up Summaries json the summary field and the permission set are JSON; commented-out alternatives became a sentence and a second field entry
8 objectstack-data/references/seeds.md Seed best practices neutral the defineSeed() row says it is the TypeScript form
9 objectstack-data/rules/lifecycle.md Save Notice neutral untouched (prose)
10 objectstack-ui/SKILL.md List Views neutral untouched (prose)
11 objectstack-ui/SKILL.md Actions json the write-button action is one JSON object; the inline fragment it replaces left the paragraph
12 objectstack-ui/rules/list-views.md Adding a board, calendar, gallery or gantt beside the list neutral untouched (prose)
13 objectstack-automation/SKILL.md Data Operations neutral untouched (a table)
14 objectstack-automation/SKILL.md External Integration neutral untouched (a table)
15 objectstack-automation/SKILL.md notify json the node is JSON; the block's comments are a key list under it
16 objectstack-automation/SKILL.md Failure routing & runAs neutral untouched (prose)
17 objectstack-automation/SKILL.md Filter operands (config.filter) neutral untouched (prose)
18 objectstack-automation/SKILL.md Valid-but-silently-wrong (passes build, fails at runtime) json+ts the two nodes of item 3 are a JSON array; the function registration stays TypeScript and says it has no JSON form
19 objectstack-automation/SKILL.md Integrations are declared, not coded neutral untouched (prose)
20 objectstack-automation/references/examples-flows.md Time-relative triggers — scheduled per-record date sweep json+ts the TypeScript flow stays; its start node is added as JSON; the window filter is JSON
21 objectstack-automation/references/state-machines-and-approvals.md Approvals (Flow Nodes) json the whole flow is JSON; the block's comments are three list items above it
22 objectstack-automation/references/state-machines-and-approvals.md Approver Types neutral untouched (a table)
23 objectstack-automation/references/state-machines-and-approvals.md Node Config (ApprovalNodeConfigSchema) neutral untouched (a table)
24 objectstack-automation/references/state-machines-and-approvals.md Approval Best Practices neutral untouched (prose)

"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.ts in the cloud repository). Both replaced passages are byte for byte as on main and occur exactly once in their sections; no line containing runAs: '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.json lists 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.ts applies 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 in lint.yml beside check:skill-refs, as pnpm --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:

File Bytes before -> after Row before -> after Cut first
objectstack-automation/SKILL.md 27988 -> 28199 6992 -> 7045 the block's import line, type annotation and check marker
objectstack-automation/references/examples-flows.md 5957 -> 6170 1494 -> 1543 two clauses restating the paragraph and block above them
objectstack-automation/references/state-machines-and-approvals.md 23652 -> 23744 5916 -> 5936 the import line, the defineFlow wrapper and the check marker
objectstack-data/SKILL.md 26678 -> 26859 6665 -> 6710 the sentence restating the sharingModel row; the namespace row's wrapper clause and example
objectstack-ui/SKILL.md 8974 -> 9128 2239 -> 2277 the inline type / body fragment the JSON block replaces
objectstack-data/rules/relationships.md 16884 -> 16811 4221 -> 4203 (shrank)
objectstack-data/references/seeds.md 6985 -> 6984 1747 -> 1746 (shrank)

Skills 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 --numstat prints them); net across skills/** +11 (169 added, 158 removed). All SKILL.md files 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, then 24 served section(s) ... 10 JSON fence(s) parse and pass their spec validators.
  • Ablation, one run: ### List Views renamed to ### List views in skills/objectstack-ui/SKILL.md through scripts/ablation-replace.mjs (anchor 1 -> 0, blob changed); the gate exits 1 with found 0 (renamed or removed); restored, blob equals HEAD and git diff HEAD is 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 (covers scripts/).

Acceptance notes

Verification

Head 84cede3db5 (merged with origin/main 958ee03594).

Local gate subset

node scripts/pm/dispatch-gates.mjs --commands derived 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 them check-skills-token-ratchet and 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 for skills/** and a new workflow step. test:repo and the full farm are left to CI.


Generated by Claude Code

@github-actions github-actions Bot added size/l ci/cd dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

Nothing 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): node scripts/docs-audit/affected-docs.mjs --json 6f2bd4f84c98dcac81b0d745fcc16a35641ecc45 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

Contract-review-claim: session_01JQwxbWDsbbJizuYnDwBxT8 · head 635b74b2259ef7ad4795440cc9d953b54f4b3d5e · 2026-11-18T07:08Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 635b74b2259ef7ad4795440cc9d953b54f4b3d5e
Local-runs: probe — two read-only scripts over git show blobs (heading, fence and runAs counts for the 24 listed sections at origin/main and at the head; the two hosted replaced passages counted inside their sections). Nothing built, no gate or test run.
Scope: skills/objectstack-automation/SKILL.md, skills/objectstack-automation/references/examples-flows.md, skills/objectstack-automation/references/state-machines-and-approvals.md, skills/objectstack-data/SKILL.md, skills/objectstack-data/references/seeds.md, skills/objectstack-data/rules/naming.md, skills/objectstack-data/rules/relationships.md, skills/objectstack-data/rules/validation.md, skills/objectstack-ui/SKILL.md, .github/workflows/lint.yml + packages/spec/scripts/check-skill-served-sections.ts, packages/spec/scripts/skill-served-sections.json, packages/spec/package.json (the check:skill-served-sections script line), packages/spec/scripts/check-generated.ts (the ledger row), scripts/check-skills-token-ratchet.mjs (the seven rows)
Security-touching: yes

Reviewed from: card #34771 (body and all five comments), PR #35131 (body, 16-file list, net diff against main, merge base 958ee03594), the check-runs on the head. Read, not reviewed: the spec on origin/main (b1eb500dc7), and the hosted table and reader the card cites (published-refs.ts, published-skills.ts, cloud aa67666).

Check-runs on the head at 07:16Z: 60 success, 10 skipped (opt-in or schedule-only), 0 red, none pending (Test Core (9/10) was the last to conclude). Every gate that reads the reviewed files has concluded: Type Check · source gates is success, with its steps Check the skill sections served to MCP clients keep their headings and valid JSON, Published skills token ratchet, the skill docs / refs / links / compatibility checks and Lane verdict all success; Check Changeset, Governed Surface Queue Guard, Lint · PM dispatch-gates and the PR-body guards are success.

Why Security-touching: yes: three changed hunks teach permission or sharing behaviour. skills/objectstack-data/rules/relationships.md rewrites the permission-set example (field read mask, rollupSourceUnreadableReason); skills/objectstack-data/SKILL.md adds an object example with an authored sharingModel and deletes a sentence on what an omitted sharingModel resolves to; skills/objectstack-ui/SKILL.md moves the capabilities: ['api.write'] action into a JSON block. The seat adopting this record adds the security label; the PR does not carry it now.

① Derived judgments

  • Published surface: @objectstack/skills text only, nine files. No schema, no accept-set, no runtime path changes. Right.
  • packages/spec: one script alias, one new script and one list file under scripts/, which the package's files array does not publish; one NO_GENERATOR ledger row. No published spec surface moves. Right, and the row's class is right: the check writes no artifact.
  • New gate in a required lane (typecheck-source-gates, behind TypeScript Type Check): a rename, removal or duplicate of one of 24 headings, an undeclared JSON fence, or a JSON fence the spec refuses is now red for every contributor. That is the tightening the card orders. Right.
  • The list against the hosted table: the 24 rows equal the 24 distinct file + heading pairs of published-refs.ts (9 data, 3 ui, 12 automation), and item: 6 sits on the one row the table gives it. Right.
  • Heading rule: readSection is the hosted readPublishedSection line for line (same HEADING regex, same fence toggle, same "next heading of the same or a higher level"), and the item test is the hosted listItem start regex. A verdict here is the verdict there. Right.
  • Example coverage: two os:check TypeScript blocks left the type-check population (notify, the approval flow). Their JSON is held by FlowNodeSchema plus flowNodeConfigRefusals, and by FlowSchema, whose superRefine runs the same refusals per node (flow.zod.ts L1741). Not weaker than the type check it replaces. Right.
  • Token ratchet: five rows raised, two lowered. Bytes re-read at both refs: 27988 to 28199, 5957 to 6170, 23652 to 23744, 26678 to 26859, 8974 to 9128, 16884 to 16811, 6985 to 6984; each row equals the ceiling of the priced bytes over four (7045, 1543, 5936, 6710, 2277, 4203, 1746). Ruling record 6513306068 letter B is quoted in each raised row and in the PR body, and each raised file shows deletions in the same file. Right. Two of the five paydowns (objectstack-automation/SKILL.md, state-machines-and-approvals.md) are syntax that left with the TypeScript block, not restatement; the ratchet's own rows carry the precedent "no same-file restatement was left to cut", and the gate is green on the head.
  • Reading of ruling [Decision] The published skills: who reviews a change, how they are verified, one catalog or two for code-first and MCP, and the E2 premise reading #34691 S3 = A ("a JSON form beside the TypeScript") and the card's scope line ("beside its TypeScript form, or a form neutral to both"): six sections now show JSON alone with a one-line TypeScript wrap note, not two blocks. Judged right: a JSON object literal is the TypeScript literal, each note names the wrapper (ObjectSchema.create, defineFlow, definePermissionSet, defineAction, FlowNode), and two copies of one shape would contradict the same ruling's "one copy of the shape knowledge". The dev did not flag it as a deviation; it is named here so the adopting seat sees the reading.

② Semver level

@objectstack/skills: patch, Clause-②: no, Metadata-protocol: none. Matches what the diff publishes: wording and examples in shipped skill files, no behaviour. packages/spec needs no entry: nothing it publishes changed. Check Changeset is success on the head.

③ Boundary flags

  • open_questions: empty in both reports. Nothing to answer.
  • Dev flag, carrier cloud: the check does not pin the two replaced passages. Answered: both occur exactly once in their sections at the head, byte for byte as the hosted table spells them (type: 'schedule' / runAs: 'system' in the time-relative flow; "a flow that must react to those too declares runAs: 'system'" in Approval Best Practices), and no diff line containing runAs is added or removed. The card's input list assigns that check to the cloud side. No action here.
  • Dev flag, carrier cloud: five served sections now show JSON where the hosted pin shows TypeScript. Escalate to the cloud seat through objectstack-ai/cloud#4842: its tests on the delivered text are re-read when the pin moves past this PR. Not judged here.
  • Dev flag, docs(skills, spec): the ui and i18n skills teach an action's refusals catalogue and its translation keys; action.zod.ts gains a module description #35087 conflict in scripts/check-skills-token-ratchet.mjs: the lane seat's sequencing; whichever lands second re-measures.
  • Dev flag, node labels added in item 3: answered, FlowNodeSchema.label is a required string (flow.zod.ts L693).
  • Dev flag (second report): dispatch-gates --commands did not derive the check:generated ledger reconcile for a diff that adds a check: script. Out of this PR's scope; the seat files it as a tooling follow-up or records why not.
  • Deviations (interrupted gate run resumed, footer per AGENTS.md, first commits' trailers, 133 families not re-run on the one-row fix commit): the check-runs on the head answer the gate question; nothing for this record.
  • SQL push-down: no query, id materialisation or in-app join in the diff.

④ Design judgment

No must-fix, no should-fix.

Per hits file:

  • skills/objectstack-automation/SKILL.md: notify JSON keeps every key of the old block, and the four list items carry every old comment (required recipients and the emailField form, title XOR template, the RAW keys and defaults, the source pair and actionUrl). Item 3's two nodes match the old fragment plus the required label; the function registration stays TypeScript and says it has no JSON form. Holds.
  • references/examples-flows.md: the TypeScript flow and its runAs line are untouched; the start node JSON equals the flow's start node; the window filter equals the old fragment with the 30 / 60 tiers moved to prose. Holds. See N3.
  • references/state-machines-and-approvals.md: node for node and edge for edge the old flow; each cel tag is the envelope cel() returns (expression.zod.ts L490); the three comments are the three list items. Approver Types, Node Config and Approval Best Practices are untouched. Holds.
  • skills/objectstack-data/SKILL.md: the object example follows the section's own rule (a team-shared business object is public_read_write) and authors every key the tables call for; the expression envelope is what F returns. Holds. See N1.
  • references/seeds.md, rules/naming.md: one phrase each; item 6 of Critical Rules is untouched and still starts exactly one line. Holds.
  • rules/relationships.md: the summary field keeps its three keys, and the optional two moved to prose with their meaning; the permission set shows the warned, masked and acknowledged cases the paragraph above it names, with the reason on a readable: true entry as the schema requires (permission.zod.ts L1039 to L1046). Holds.
  • rules/validation.md: same rule, same seven states; initialStates and the terminal marker moved to one sentence. Holds.
  • skills/objectstack-ui/SKILL.md: the action carries objectName, a locations value the schema lists (record_header), and the same body and capability as the old inline fragment. Holds.
  • .github/workflows/lint.yml: one added step, nothing removed or reordered. It has an id and continue-on-error: true, which is the lane's contract: lane-verdict.mjs reads the roster from the workflow and each gate's outcome, so a red here fails the lane and a missing id would itself be red. No if:, no paths filter, so it runs on every trigger the workflow has (push to main, pull_request, merge_group, schedule, workflow_dispatch). It cannot weaken an existing gate. It ran and passed on the head (step 27 of the lane).

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):

  • N1 (nit) — skills/objectstack-data/SKILL.md drops "A custom object that omits it resolves to private at runtime, but the publish door rejects it before that". The ratchet row calls it a restatement of the sharingModel row; the refusal half is, the runtime half (ADR-0090 D1, the fail-closed default) is stated nowhere else in the published skills. What remains is correct and still orders the key authored on every object. Leave as an accepted deviation, or restore the clause in a later skills card.
  • N2 (nit) — check-skill-served-sections.ts header says a JSON example cannot enter a served section unvalidated. A fence tagged jsonc or json5, or an untagged fence, is neither JSON nor TypeScript to fencesOf and passes in any form. Also nothing pins the list at 24 rows: a deleted row unpins its heading with the gate green (it is visible in the diff of a hand-kept file). Follow-up card, not this head.
  • N3 (nit) — examples-flows.md: "As JSON the flow is that literal without defineFlow(...)" is loose, since the literal above carries comments and a placeholder edges. The start node that follows is exact.
  • N4 (nit) — PR body: the Verification head still reads 84cede3db5, and the body does not name the check-generated.ts row the fix commit added. The changeset says three neutral sections "drop a TypeScript-only phrase"; one of the three it means (seeds) labels the phrase rather than dropping it.

Implemented-by: claude/issue-34771-skills-json-forms
Reviewed-by: area o1-C isolated reviewer (sub-agent of session_01JQwxbWDsbbJizuYnDwBxT8)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

Final green head · 2026-11-18T07:15Z: 635b74b2259ef7ad4795440cc9d953b54f4b3d5e (one fix round over 84cede3: a check:generated ledger row for the new check:skill-served-sections; report 6971178251 on #34771). CI: 60 success, 10 skipped, 0 red. Contract review PASS at this head: 6971812048 (no must-fix, no should-fix; Security-touching: yes, so security label added). Owed: L1-b, then the Tier H seat record and os-zhuang. The PR body's verification head still reads 84cede3 (nit N4).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbXr9wLAH24MEgxaLud

席位核对

L1 full · ACCEPT · Head-sha: 635b74b2259ef7ad4795440cc9d953b54f4b3d5e · card #34771 (Fixes #34771) · read 2026-11-18T07:19Z

Net diff against merge base 958ee03594: 16 files, +708 / -165. Governed (skills/**, .github/workflows/lint.yml), Tier H.

Against the card

Read at the head

  • check-skill-served-sections.ts, read in full.
    • readSection uses the same heading regex, fence toggle and same-or-higher-level end as the header says. The L2 compared it line for line with the hosted reader.
    • judge reds a missing file, a heading found 0 or 2+ times, a repeated item number, a form the fences contradict, a JSON-fence count that differs from the declared validators, unparseable JSON, and a validator refusal.
    • FlowNode adds flowNodeConfigRefusals and TimeRelativeTriggerSchema on top of the schema, and both are exported on main.
    • assertWatchHintsNameTheList keeps the literal DECLARED_WATCH_HINTS equal to the list's files.
    • The self-test has 8 batteries, each with a floor and named cases.
  • The gate ran on this head. The CI log of job 134627624077 shows "self-test: 33 cases pass in 8 batteries" and "24 served section(s) … (6 json, 2 json+ts, 16 neutral); 10 JSON fence(s) parse and pass their spec validators". The step has an id and continue-on-error: true like its neighbours, so Lane verdict reads its outcome. The lane is success.
  • The skill hunks, read one by one.
    • notify: every key and every old comment survive, as JSON plus a list.
    • Script plus update_record: same nodes, plus the label that FlowNodeSchema requires.
    • The approval flow: node for node and edge for edge the old one, and each cel`…` is now its { dialect, source } envelope.
    • Summary field: same three keys, and the two optional keys moved to prose.
    • Permission set: the warned, masked and acknowledged cases, with the reason only on a readable: true entry.
    • State machine: same seven states.
    • Action: same body and api.write capability, now with a locations value.
    • No added or removed line contains runAs. The two passages the hosted door replaces are untouched.
  • Token ratchet, re-measured with wc -c at the head. The rows are 7045, 1543, 5936, 6710, 2277, 4203 and 1746. Each equals ceil(bytes / 4), or ceil((bytes − 20) / 4) for the three SKILL.md files with a stamp line. Five rows go up and two go down, under ruling 6513306068 letter B, and each raised file also cuts lines.
  • Changeset. This PR's own file. @objectstack/skills: patch, Clause-②: no, Metadata-protocol: none. No spec surface is published (the new files sit under packages/spec/scripts/, outside the files array). No content/docs/releases/ path. No changeset already on main is edited.
  • Merges cleanly onto origin/main aef42cba4e. Main has not touched any of these paths since the base.
  • Check-runs at this head: 75 in total, all completed, none failed. The rest are skipped (opt-in, schedule or filter). Lint & Repo Gates, TypeScript Type Check, Governed Surface Queue Guard, Check Changeset, PR-body guards, Test Core and Test UI are all success.

Nits (none blocks)

  • I agree with L2 N1: the runtime half of the deleted sharingModel clause ("resolves to private") is not restated anywhere else in the published skills.
  • I agree with L2 N2: an untagged, jsonc or json5 fence escapes the form check, and nothing pins the list at 24 rows. Both belong in a follow-up card.
  • examples-flows.md drops "because the window is evaluated every day, a threshold is never missed". The spec still says it (TIME_RELATIVE_DEFAULT_CRON doc), and the cut is a token paydown, not a correction. It can be left out.
  • The PR body's verification head still reads 84cede3d (L2 N4), and the body has no attribution lines. The PR-body guards are green.

Not mine, still owed before landing

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY

Seat record · 2026-11-18T07:21Z · Head-sha: 635b74b

维护者速读

  • 改了什么:托管 MCP 按标题读取的 24 个技能章节里,8 个章节的示例改为 JSON(其中 2 个 JSON 与 TypeScript 并列),其余 16 个是纯文字和表格、对两类客户端一样;新增一份 24 行清单和一个检查(check:skill-served-sections,接进 lint.yml),标题被改名、删除或重复时 CI 变红,章节里每个 JSON 块都要通过 spec 的 schema。
  • 为什么改:经 MCP 搭建的客户端写的是 JSON,却只看到带 import 的 TypeScript 示例;而这些标题一旦改名,托管产品启动即失败,本仓此前没有检查知道哪些标题被读取(skills: a JSON form beside the TypeScript in the sections served to MCP clients, and a pin on those section headings #34771,[Decision] The published skills: who reviews a change, how they are verified, one catalog or two for code-first and MCP, and the E2 premise reading #34691 S3 = A)。
  • 风险与回滚:只动技能文档、一个检查脚本、lint.yml 一个步骤和 token 棘轮 7 行;风险在 notify 与审批流两个示例改成 JSON 后措辞是否仍准确。无数据或运行时影响,回滚 = revert 本 PR。
  • 先看:① skills/objectstack-automation/references/state-machines-and-approvals.md 的审批流 JSON;② skills/objectstack-automation/SKILL.md 的 notify 节;③ .github/workflows/lint.yml 新增的一步。
  • 两分钟验证: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。
  • 需要你做的:用 os-zhuang 审读并批准本 PR(skills/** 与 workflow 属 Tier H,工作流路径不在低风险放权范围内)。L1-b ACCEPT 6971909532,契约复审 PASS 6971812048(CONTRACT_REVIEW_TIER),均钉在 Head-sha 635b74b2259ef7ad4795440cc9d953b54f4b3d5e。批准在案后由席位落地。

席位意见:同意合并。纯文档和一个只读检查,示例换成客户端真实写法,并第一次把托管读取的标题钉住。

席位核对

  1. 形态:16 个文件,+708/−165,Fixes #34771;Clause-②: no,Metadata-protocol: none;draft,base main。
  2. 前提实测:章节清单取自卡上 6967385705 的 24 行;两段被托管替换的段落在本 diff 中逐字未动、各在章节内恰出现一次,没有任何含 runAs: 'system' 的行被增删改(复审者在 origin/main 与 head 上用脚本数过)。
  3. 门禁 check-runs:head 635b74b2 上 75 条,61 成功、14 跳过、0 红。check-governed-merges --pr 35131:16 个路径中 10 个命中受管面,Tier H;低风险放权不适用(含 .github/workflows/**)。
  4. 接受的偏差:复审无分级发现。备忘 N1 删掉一句 sharingModel 默认值的重复说明;N2 检查放过非 json 标注的代码块、清单行数无钉子;N4 正文「Verification」写的是旧 head 84cede3db5,不是现 head;现 head 以本条第 3 项的 check-runs 为准。三项都不挡合并。
  5. 范围外去向:五个被托管读取的章节改为 JSON 形态,托管侧的跟进由复审指向 cloud#4842,本 PR 不改 cloud。与 docs(skills, spec): the ui and i18n skills teach an action's refusals catalogue and its translation keys; action.zod.ts gains a module description #35087 在 scripts/check-skills-token-ratchet.mjs 冲突,后落地者重测其行。Skills-docs: check:skill-docs、check:skill-refs、check:skill-links 由 dev 在 84cede3db5 本地全过,本 head CI 0 红。
  6. 落地条款:Tier H,等 os-zhuang 的 APPROVED 审核在案于本 head(或其后仅合 main 的 head),再由席位翻 ready、经合并队列落地;head 若有内容变动则撤挂回等。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 18, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 18, 2026 07:51
@os-zhuang
os-zhuang enabled auto-merge November 18, 2026 07:51
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 6ec3a73 Nov 18, 2026
81 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-34771-skills-json-forms branch November 18, 2026 08:28
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 18, 2026
os-warren pushed a commit that referenced this pull request Nov 18, 2026
…#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd dependencies Pull requests that update a dependency file 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.

skills: a JSON form beside the TypeScript in the sections served to MCP clients, and a pin on those section headings

3 participants