Skip to content

feat(skills): objectstack-mcp-build, the order of work for a client that builds through the MCP draft door - #35665

Merged
os-zhuang merged 4 commits into
mainfrom
claude/issue-34778-build-over-mcp-skill
Nov 20, 2026
Merged

os-zhuang merged 4 commits into
mainfrom
claude/issue-34778-build-over-mcp-skill

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Part of #34778

This PR delivers the skill, its evals and its catalog registration. The card's Done-when is a live round (a build scenario through the draft door, with the skill and without it), and no model is called here, so the card stays open for that round after this lands.

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:只用 AI 客户端连着运行中的环境搭应用、手里没有项目代码的人,他的 AI 助手多了一份干活顺序(先看现有内容,再查写法,存成草稿,把发布预检指出的问题改到通过,最后把审核入口交给人),此前助手只有各类元数据的写法。
  • 为什么做:属于「MCP 二期与问数」专题,替只通过 MCP 搭应用的用户解决助手不知道这扇门只存草稿、也不知道该按什么顺序做的问题,写法知识仍然只保留一份。
  • 出错会怎样:这份说明写错的话,助手可能漏改预检指出的问题,或把还没发布的草稿说成已经上线,撤回这次改动即可恢复原样。
  • 要你做什么:审阅并批准这份新增的对外技能(受管内容,你点头后才由席位落地)。

What changes

  • New skill skills/objectstack-mcp-build/SKILL.md (94 lines, 1226 priced tokens). Its reader is a client connected to an environment over MCP with no project files. It gives the order of work at a door that only saves drafts:
    1. Check the door: the five tools as packages/runtime/src/domains/mcp-authoring.ts registers them (list_metadata_items, get_metadata_item, list_drafts, save_metadata_draft, delete_metadata_draft). Not listed: say so and stop. A call refused PERMISSION_DENIED: relay its message and stop what it refuses.
    2. Read what exists, with describe_object where the connection lists it.
    3. Load the type's domain skill: a six-row table sends each type to its domain skill (objectstack-data, objectstack-ui, objectstack-automation, objectstack-ai, objectstack-i18n, objectstack-formula). That skill's text is the contract; its node_modules pointers are followed only where files can be read, and a published item of the same type and the save's own reply stand in otherwise.
    4. Save, then read the verdict: a three-row table for verdict.refusals, verdict.publishable: true and verdict: null.
    5. Hand over: never say a draft is live, report each draft the client saved, give the reply's review routes as written.
  • It restates no shape and no tool argument (ruling S3 = A on the decision card of this epic, record 6943107981: "one copy of the shape knowledge, two thin procedures"; "pointers to the contract instead of restated lists"). The first paragraph says each tool's own description is the authority on its arguments and reply. The members it does name (verdict.refusals, rule, path, hint, verdict.advisories, verdictWithheld, verdictError, review) are the ones the procedure branches on.
  • Tool names: the card's are older than the code. The card and the design table say list_metadata and get_metadata. The door registers list_metadata_items and get_metadata_item, because list_metadata is a hosted platform tool (the file's own header, "The names"). The skill uses the registered names. describe_object is a data tool: a connection granted only metadata:write does not list it, so the skill says "where the connection lists it".
  • Evals in skills/objectstack-mcp-build/evals/, in the shape of skills/objectstack-ask/evals/*.json:
    • draft-door-procedure.json, four behaviour cases: (1) a record_change flow draft whose start node has no triggerType, refused by flow-trigger-unroutable in the verdict (expect: read the verdict, repair as the hint says, save again, hand the Studio routes to a person, no claim that it is live); (2) add a field to an existing object (expect: read first, load objectstack-data, save the whole object); (3) a publishable verdict with one advisory (expect: the hand-over reply); (4) a connection that lists no authoring tool (expect: say so and stop).
    • triggers.json, six trigger cases: three that should load the skill and three that should not (a project-file edit, a question for objectstack-ask, a metadata question for objectstack-ai).
  • Catalog registration. One DISPLAY row in packages/spec/scripts/build-skill-docs.ts; skills/README.md's index and content/docs/ai/skills-reference.mdx regenerated by gen:skill-docs. One hand-written routing bullet in skills/README.md. One ceiling row in scripts/check-skills-token-ratchet.mjs: the new file's measurement, pinned at it with zero headroom, citing ruling S3 = A (record 6943107981). No existing row moves and no other skill file is edited.
  • Changeset .changeset/34778-mcp-build-skill.md: @objectstack/skills at patch, as the two earlier new-skill changesets were (objectstack-ask, objectstack-project).
  • Nothing under packages/runtime/** or packages/mcp/**. packages/spec/scripts/ is not in that package's files, so the one row there publishes nothing.

Net added lines outside generated files: 220 (budget 250). The generated ones are content/docs/ai/skills-reference.mdx (+18 −3) and one index row in skills/README.md.

Fix round on the contract review (record 7024514720, PASS with two should-fixes and four nits)

One commit, 98d947251d, on top of the reviewed head 08223b6d90. Each item, where it landed, before and after:

Item Where Before After
S1 SKILL.md section 3, heading and first paragraph; frontmatter description "Read the type's contract": "follow its pointer to the contract. Never write a key from memory." The domain skills' pointers lead to node_modules/@objectstack/spec/src/ (their references/_index.md; objectstack-ui also names a REST route), which a client holding only the door's tools and the skill loader cannot read. "Load the type's domain skill": "its text is your contract. Follow its pointers into node_modules only where you can read files. Where you cannot, read a published item of the same type, and let the save check you (step 4). Never write a key none of these shows." Every target is reachable with the door's tools and a loaded skill.
S2 evals/draft-door-procedure.json, must_not_contain of cases 1, 3 and 4 Case 4 held has been added, which the right answer "no field has been added" contains. Cases 1, 3 and 4 held is now live, which "nothing is now live" contains. Case 3 held is now available, which "the draft is now available for review" contains. Tokens bound to a subject or a first person, which a right answer does not write: case 1 flow is now live / active / published and the same three on the flow's backticked name; case 3 dataset is now live / published, the same two on the dataset's backticked name, and now available to query; case 4 I added, I have added, I've added, field is now live and the field's backticked name with is now live. successfully published stays in cases 1 and 3.
N1 SKILL.md section 1 "Not listed, or refused PERMISSION_DENIED: say you cannot author here and stop." Two bullets: not listed, stop; refused PERMISSION_DENIED, "relay its message and stop what it refuses, the door or one type or item."
N2 evals/draft-door-procedure.json case 2, expected_output (prose, not graded) get_metadata_item reads "the package it belongs to". The package is read off the list entry's packageId; the field's shape comes from the domain skill's text and the object that was read, as S1 now says.
N3 SKILL.md sections 4 and 5 "list_drafts before you report: every pending draft with its verdict."; "Report each draft's type, name and package". "every pending draft in the environment, each with its verdict. Not all are yours."; "Report each draft you saved".
N4 SKILL.md frontmatter compatibility "Requires an environment served by @objectstack/mcp 18.x, on a connection granted metadata:write" "Requires an environment whose @objectstack/runtime 18.x serves the MCP draft door (none through 18.6.0 does), on a connection granted metadata:write"
  • N4, measured. The five tools are registered by packages/runtime/src/domains/mcp-authoring.ts. On the tree of the release tag of @objectstack/runtime 18.6.0 (commit 958ee03594) that file does not exist and git grep save_metadata_draft over packages/runtime and packages/mcp answers exit 1; the positive control describe_object hits on the same tree. Their two changesets are still pending on main. The changeset of this PR never named a package version, so only one phrase in it moved (it no longer says "read its contract"). The eval prompts still abridge each finding (no where member); that has no effect on grading and is left as it was.
  • Token ratchet row, re-measured on this same PR under the same ruling (S3 = A, record 6943107981). SKILL.md went 4622 to 4921 bytes (+299) and 90 to 94 lines; less the 20-byte stamp line, ceil(4901 / 4) is 1226. The row moves 1151 to 1226, +75 tokens, the measured delta only, still zero headroom. No other row moves.
  • Generated pages. gen:skill-docs rewrote the description in skills/README.md (one index row) and content/docs/ai/skills-reference.mdx (two lines); gen:skill-refs changed nothing.
  • Not changed. skills/objectstack-ask/** is untouched. triggers.json and the DISPLAY row are as reviewed.

Read first

  1. skills/objectstack-mcp-build/SKILL.md, section 3's first paragraph: what stands in for a contract the reader cannot open. Then section 4's table and section 5: the wording that keeps a client from calling a draft live, and the verdict: null row.
  2. scripts/check-skills-token-ratchet.mjs, the new row and its comment (the pricing act is the maintainer's).
  3. skills/objectstack-mcp-build/evals/draft-door-procedure.json, the must_contain and must_not_contain tokens of cases 1 and 4.

Two-minute check

node scripts/check-skills-token-ratchet.mjs: exit 0, with the line "skills/objectstack-mcp-build/SKILL.md is 1226 tokens (ceiling 1226; headroom 0)" and "60 authored bundle file(s) within their ceilings".

Skills size readings

Reading Before (2495486fd5) Reviewed head (08223b6d90) After the fix round (98d947251d)
skills/objectstack-mcp-build/SKILL.md lines no file 90 94
skills/objectstack-mcp-build/SKILL.md bytes no file 4622 4921
skills/objectstack-mcp-build/SKILL.md priced tokens (ceiling) no file 1151 (1151) 1226 (1226)
SKILL.md files in the catalog 13 14 14
All SKILL.md files, lines summed 4853 4943 4947
Whole shipped bundle, tokens 274972 278179 278372
of which the two new eval files (measured, not ratcheted) 0 1706 + 350 1824 + 350

Tokens are the ratchet's own convention, ceil(utf8 bytes / 4) with the 20-byte release-stamp line unpriced. The before column was read on cf6bb70e2d; skills/** is byte-identical between that commit and 2495486fd5 (git diff --quiet, exit 0).

Tests

All readings are on head 98d947251d, with the working tree clean.

Command Result
node scripts/check-skills-token-ratchet.mjs and --self-test exit 0 both; row 1226 / 1226 (+0); "104 cases pass"
pnpm --filter @objectstack/spec run check:skill-docs and check:skill-refs exit 0 both; "Skill docs in sync"; "9 generated files in sync"
pnpm check:skill-links, check:skill-identifier-liveness, check:skill-compatibility exit 0 each; 269 relative links resolve; 487 citations checked; the @objectstack/runtime 18.x pin reconciles
pnpm --filter @objectstack/spec run check:skill-examples exit 0 after the @objectstack/client-react closure was built; "346 prose examples type-check" (the first run, before that build, exited 3, prerequisite not met)
pnpm --filter @objectstack/scenarios skill-evals --self-test exit 0; "30 rows pass"
pnpm --filter @objectstack/scenarios skill-evals --dry-run --skills objectstack-mcp-build exit 0; "10 case(s)": 4 behaviour cases on 2 arms and 6 trigger cases, 14 turns planned; no refusal from the case reader
Eval self-consistency and token probes, a one-off script, not committed 4 behaviour cases, 0 violations: every must_contain token is in its expected_output, and no must_not_contain token is. Probe sentences: "No field has been added, and nothing is now live", "Nothing is now live", "The draft is now available for review in Studio" hit no token; "The flow is now live", "I've added the renewal_date field", "The dataset is now live and now available to query" each hit at least one
Token ratchet on the merge of this head with origin/main 03865ae995 (a merge-tree tree extracted to a scratch directory) exit 0; this row 1226 / 1226, objectstack-project 2990 / 2990

No ablation: the diff changes no behaviour that a test pins. The catalog tests of the first round (create-objectstack, @objectstack/scenarios, the @objectstack/spec repo project) were not re-run locally: this round changes no file name, no skill count and no frontmatter key, and CI runs them.

Acceptance notes

  • The Done-when round is not run here, and the merge does not end the card. The card's Done-when ("a build scenario through the draft door passes more often with the skill than without it") is a live with-skill and without-skill round. No model was called for this PR. The round is handed to the seat for an eval-domain run: door mode with --modes door --door-skills over the repository's skills/ directory, and the same with --door-skill-omit objectstack-mcp-build; the four behaviour cases and six trigger cases run with skill-evals --skills objectstack-mcp-build.
  • Governed. check-governed-merges --branch HEAD answers GOVERNED, landing tier H, from the skills/** hit (exit 3). The PR stays draft and is never readied, queued or armed by the author. The contract review record 7024514720 is on head 08223b6d90; this push moves the head.
  • Claim. This branch is claimed by comment 7013718135 on the card.
  • File surface, one addition to declare. The claim lists the new skill directory, skills/README.md, the ratchet row, the generated pages and the changeset. The generated pages cannot be produced without the DISPLAY row in packages/spec/scripts/build-skill-docs.ts (the generator exits 1 on a SKILL.md with no row), so that one line is in the diff too. Both earlier new-skill PRs carry the same line.
  • Not touched, on purpose. packages/create-objectstack/src/created-summary.test.ts holds a list of skill names as a scaffold fixture; objectstack-project is not in it either and its tests pass, so no check asks for the new name. No other skill gains a pointer line to this one: each would be priced against another file's ceiling, and the claim's surface is the new directory.
  • Overlap. overlap-check first answered exit 1 at 18b917cb13: the ceiling row sat directly under the objectstack-project row, which open PR 35572 rewrites. The row moved up beside the objectstack-ask row (same text, same number). Re-run at 98d947251d before the push: VERDICT clean, exit 0, against origin/main 03865ae995 and 0 PR heads (the tool found no open PR sharing a file with this branch).
  • Not merged with main. The branch is 16 commits behind origin/main; two files the gate derivation reads changed there (scripts/check-skills-token-ratchet.mjs, scripts/pm/check-governed-merges.mjs). GitHub reported the PR mergeable and clean before the push, the text merge is clean, and the ratchet is green on the merged tree (Tests), so no merge commit was added.
  • Eval tokens that the skill does not spell. Case 1 requires record-after-create and case 3 requires synonyms: both come from the hint in the case's own prompt, which is what the skill tells the client to follow. The route tokens come from the prompt's review member.
  • Read-only note from the fix round, not filed. Now that section 4 says list_drafts lists other people's drafts too, the skill still does not say to discard only a draft the client saved. The review record did not ask for that line, and it would be priced, so it is left for the seat to weigh. The door has no schema read; whether it should serve one is the seat's card to open, as the record says under S1.
  • Read-only note, not filed. The door's refusal for an unreadable package list says to "list them with list_metadata_items, type "package"". A list entry carries name, label, packageId and draft, and no writable. The skill therefore sends a client with no package named to the save's own refusal, which names the writable packages. Not reproduced against a running server.

Verification

Build closure and locked runs
  • pnpm --filter @objectstack/spec build under the verify lock: VERDICT command-exit 0.
  • pnpm exec turbo run build filtered to the @objectstack/scenarios dependencies and to the @objectstack/client-react closure, --concurrency=2, under the verify lock: 16 and 43 tasks successful, all from cache, VERDICT command-exit 0 both.
Derived gates (dispatch-gates --commands, no paths, then --ran)
  • At 98d947251d: 114 derived; 113 exit 0. Among them: check-skills-token-ratchet.mjs and its --self-test, check:skill-docs, check:skill-examples (346 prose examples, on its second run), check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check-changeset-no-major.mjs, check-adr-0087-registration.mjs, check-empty-changeset.mjs, check:nul-bytes, check:doc-authoring, check:issue-citations, check:pm-dispatch-gates (365 s), check:pm-governed-merges.
  • 1 NOT MEASURED: pnpm check:dual-build-cjs-loads exit 3, "Run pnpm build first": it reads every package's dist/, and a whole-workspace build was not run here. CI runs this gate.
  • --ran: "114 derived famil(ies) accounted for — 113 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)". check:skill-refs was run beyond the derived set.
  • The derivation printed a stale-tree note: the branch is at least 16 commits behind origin/main, and two files it derives from changed in that range (Acceptance notes).
  • CI check-runs on 98d947251d: started by the push, not concluded at the time of writing.

Generated by Claude Code

…ft door

A short process skill for a client that builds through the open MCP draft
door with no project files: read what exists, read the type's contract in
its domain skill, save a draft, read the publish verdict, repair, and hand
the Studio review routes to a person. It names the door's five tools as
packages/runtime/src/domains/mcp-authoring.ts registers them and restates
no shape and no tool argument.

Registered in the docs generator's display list, the generated catalog
index and skills reference, and the token ratchet (initial measurement,
1133, zero headroom). Eval cases: four behaviour cases and six trigger
cases.

Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2
Co-authored-by: Claude <noreply@anthropic.com>
… objectstack-ask row

The row sat directly under the objectstack-project row, which an open pull
request rewrites; two edits on adjacent lines do not merge. The row and its
number are unchanged.

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

An item that is changed stays in the package its list entry names; for a new
item with no package named, the save's own refusal lists the writable ones.
The bullet no longer sends the client to a `package` listing, whose entries
carry no writability. A refused save is read from its `error`. The ceiling
row follows the measurement: 1133 -> 1151, still the new file's initial
measurement on the pull request that adds it, zero headroom.

Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m 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 19, 2026
@github-actions

github-actions Bot commented Nov 19, 2026 •

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 03865ae9952e33c2de912f9b0fb0b1a369cd312a → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1Dv2AVwokgRqfdKp2

Final head for L1 (2026-11-19T22:44Z): 08223b6d901dccdeaa35f1b31aef678869b30984. CI on this head: 60 success, 10 skipped, 0 failed, 0 pending. Handed to L1 review; Tier H, the area does not land.
Notes for the reviewer (dev report 7023745520): the skill names the tools the open draft door registers (list_metadata_items, get_metadata_item), not the card's list_metadata / get_metadata (hosted-platform names). One line outside the claim's file list: the DISPLAY row in packages/spec/scripts/build-skill-docs.ts, which the docs generator requires for a new skill (precedent: #34792, #35221). The Done-when live with/without-skill round is not run here; it is handed to the seat for an eval-domain run.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1H9ixhgepGZ7fawhL

L1 verdict (L1-a): ACCEPT at head 08223b6d901dccdeaa35f1b31aef678869b30984 (announced in 7024330475).

Gates on this head: 70 check-runs: 60 success, 10 skipped, 0 failed, 0 pending. Lint & Repo Gates and TypeScript Type Check both passed.

Shape:

  • Draft, Fixes #34778.
  • One patch changeset for @objectstack/skills, the only published package whose shipped text changes.
  • The skill moves with its docs: skills-reference.mdx goes from 13 to 14 skills, skills/README.md lists it, and build-skill-docs.ts gains its display row.
  • Token ratchet row 1151 = ceil(4602 bytes / 4), the new file's initial measurement with zero headroom. CI's ratchet gate passes.

What I checked myself, against origin/main:

  • Tool names. The five tools the skill names (list_metadata_items, get_metadata_item, list_drafts, save_metadata_draft, delete_metadata_draft) are the ones registered in packages/runtime/src/domains/mcp-authoring.ts:195-289. The metadata:write scope gate is in mcp-http-tools.ts, and a refusal is PERMISSION_DENIED (403).
  • Package rule. package is required on a save (seat ruling D4), and a save without one is refused with the writable packages named. "A save names a package" and "the save's own refusal lists the writable ones" match that.
  • Verdict table. A save replies {saved, verdict, verdictWithheld?, verdictError?, review}. verdict is verdictOf(...) = {publishable: refusals.length === 0, refusals, advisories}, or null when withheld or errored. The three rows (refusals not empty, publishable: true, verdict: null) cover every reply shape. The refusal fields the skill reads (rule, path, hint) exist on the issue shape in packages/spec/src/api/protocol.zod.ts (~1030).
  • Review routes. reviewRoutes returns changes (/studio/<pkg>/interfaces?changes=review) and item (/studio/<pkg>/metadata/<type>/<name>?review=1). The skill passes them on as written.
  • Delete. "Discards a draft, never a published item" matches "The published version, if any, is not touched".
  • Nothing is live. The skill never calls a draft published, which matches the draft-only door.
  • Evals. The four draft-door-procedure.json cases and triggers.json each target one step of the procedure. I found no bare-token must_not_contain that a correct answer could trip.

Notes (non-blocking):

  1. The registered tool names differ from the ones on the card. The skill uses the real names, which is right.
  2. The display row in build-skill-docs.ts is outside the claim list. It has precedent, since every skill added so far carries one.
  3. The card's Done-when live eval round is handed to the seat, not run on this PR.

Next: Tier H (skills/**), handed to the seat for the os-zhuang/hotlong approval and landing.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4cxgb3PKFkt8y5FigJn

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 08223b6d901dccdeaa35f1b31aef678869b30984
Local-runs: none
Scope: skills/objectstack-mcp-build/SKILL.md, skills/objectstack-mcp-build/evals/draft-door-procedure.json, skills/objectstack-mcp-build/evals/triggers.json, skills/README.md + scripts/check-skills-token-ratchet.mjs, packages/spec/scripts/build-skill-docs.ts
Security-touching: yes

Read: card #34778 (body and all five comments: two triage notes, the claim, the progress note, the os-dev-report), PR #35665 (body, its 8 files, the net diff against main at this head), the 70 check-runs on this head, the ruling record the diff cites (comment 6943107981 on #34691), and on main (986a0f20) the code the skill teaches: packages/runtime/src/domains/mcp-authoring.ts, packages/mcp/src/mcp-http-tools.ts, packages/spec/src/api/protocol.zod.ts, packages/lint/src/validate-flow-trigger-readiness.ts, packages/qa/scenarios/src/skill-evals/grade.ts.

① Derived judgments

  • Gate verdicts, read off the head's check-runs. 70 check-runs, all completed: 60 success, 10 skipped, none failed, cancelled or pending. Green among them: Lint · repo & tooling gates, Lint · docs & code guards, Check Changeset, Governed Surface Queue Guard, PR-body guards, Build Docs, Build Core, Test Core 1 to 10, Check Documentation Links, Spec property liveness. The skipped ones are path-filtered or queue-only lanes (Lint UI, Queue verdict, Borrowed queue verdict, the opt-in harnesses, Temporal Conformance, Dogfood Verify CLI, UI Published Artifacts).
  • Tier. reviewFace on the 8 paths returns the four skills/** paths as hits (confirmed with record-recognisers --template --paths): rules face, CONTRACT_REVIEW_TIER. The PR is governed, Tier H, and stays draft.
  • Security-touching: yes, and meant. SKILL.md section 1 teaches which OAuth scope lists the tools (metadata:write), that the user must be able to manage metadata, and what a client does on PERMISSION_DENIED; eval case 4 asserts on it. That is permission and scope behaviour, so the low-risk skills arm does not apply. What it teaches is true to the code: resolveOpenAuthoringInjection injects nothing without metadata:write, getAll() lists nothing for a user without the authoring capability, and a call that reaches the registry anyway answers 403 PERMISSION_DENIED.
  • Every tool, reply member and refusal the skill names exists on main and behaves as taught.
    • The five names are OPEN_AUTHORING_READ_TOOL_NAMES and OPEN_AUTHORING_WRITE_TOOL_NAMES, letter for letter. The card's list_metadata and get_metadata are not this door's tools (the file header, "The names", seat ruling D3 A); the skill follows the code.
    • describe_object is a data tool of packages/mcp/src/mcp-http-tools.ts, not one of the five; "where the connection lists it" is the right condition.
    • No publish tool, no force: the registry's switch has five cases and saves with mode: 'draft'.
    • A save naming no package is refused VALIDATION_ERROR with the writable packages named (packageRequiredMessage); a list entry carries packageId (summaryOf). Section 2's package paragraph holds.
    • A refused save answers { error: { code, message, status, issues } } with isError; the skill's "error" is the member.
    • An accepted save answers saved, verdict (publishable, refusals, advisories, with publishable meaning no refusal) and review (changes, item, note); verdict: null comes with verdictWithheld or verdictError, and with the saved identity. Section 4's three rows are the three shapes save_metadata_draft can answer.
    • rule, path and hint are members of RuntimeAuthoringIssueSchema.
    • list_drafts answers each draft with its gated verdict; delete_metadata_draft calls deleteMetaItem with state: 'draft' only.
    • The order the skill gives (reads, then save, then the verdict loop) is an order the server accepts; I found no step it refuses.
  • Eval fixtures against the code. Case 1's refusal is the real finding: rule id, path shape, both halves of the message and the hint match validate-flow-trigger-readiness.ts word for word, and record_change and autolaunched are members of the flow type enum. Case 3's dataset-member-no-vocabulary is a real warning rule that publishes as an advisory. The review routes in both prompts are the shapes reviewRoutes builds.
  • Ratchet row. git show of the head's SKILL.md is 4622 bytes; its stamp line version: "18.6.0" plus newline is 20 bytes; ceil(4602 / 4) is 1151. The row is 1151, the comment's audit line is right, headroom is zero. It follows the header's discipline for a new file as the two precedent rows state it (objectstack-ask, objectstack-project): an initial measurement pinned at the measurement, evals unpriced (population 1b, no eval row added), no existing row moved, and the pricing act left to the Tier H approval. The ruling it cites exists and says what the comment quotes (S3 = A: "One copy of the shape knowledge, two thin procedures", "pointers to the contract instead of restated lists").
  • Generator row. One DISPLAY entry, between Ask and Project; the generated index row in skills/README.md and the regenerated content/docs/ai/skills-reference.mdx follow that order, and check:skill-docs is inside the green lint lane.

② Semver level

@objectstack/skills at patch: accepted. The package publishes a file catalog (dist, no code export), the change is add-only (one new skill directory, no file of another skill edited), and both earlier new-skill changesets are patch: objectstack-ask (entry 581c916 under Patch Changes in packages/skills/CHANGELOG.md) and objectstack-project (.changeset/35218-objectstack-project-skill.md). Clause-②: no and Metadata-protocol: none are right: no schema, no protocol member and no runtime behaviour changes. Check Changeset is green.

③ Boundary flags

  • Done-when is NOT met by this PR. Escalated to the seat. The card's only Done-when is a live round: a build scenario through the draft door passing more often with the skill than without. No model was called; the dev says so in the report and in the PR's Acceptance notes. The PR body carries Fixes #34778, so a merge closes the card with its Done-when unrun. The seat owes one of: route the round to an eval-domain card before or with the landing (the claim names the precedent, docs(skills): objectstack-ask follows list_datasets nextStep and cites query_dataset sourceLine as given #35100's round moved to eval: a daily MCP ask round on the open-source runner — local boot, subscription login, no cloud access #34869) or keep the card open past the merge. This record's PASS is on the text against the code, not on that round.
  • Dev flag: tool names differ from the card. Answered: the code and its ruling D3 A decide, the skill is right, the card's Scope line is stale wording.
  • Dev flag: describe_object conditional. Answered: correct, see ①.
  • Dev flag: the DISPLAY line is outside the claim's file surface. Answered: it is the implementing file of the generated index, the generator refuses a SKILL.md with no row, both earlier new-skill PRs carry it, and packages/spec/scripts is not published. Reviewed in ④.
  • Dev flag: ceiling row moved beside the objectstack-ask row after an overlap-check exit 1. Answered: placement only, same text and number. main has moved 40 lines of this file since the merge base (the objectstack-project row); a git merge-tree of this head onto main 986a0f20 is clean, and none of the 8 files' generated blocks moved on main since the base.
  • Dev flag: no pointer line to the new skill in any other skill. Accepted for this PR: skills/README.md routes to it, and a pointer elsewhere is priced in another file's row. Whether objectstack-ai (which teaches the server side of MCP) should point at it is the seat's call, not a finding here.
  • Out-of-scope notes in the report, for the seat to file or drop (none is this PR's to fix): (a) the door's "packages could not be listed" refusal sends a client to list_metadata_items type package, whose summary carries no writability; (b) door mode's reader copies a bundle's evals/ beside its SKILL.md; (c) packages/create-objectstack/src/created-summary.test.ts keeps a hand list of skills that no check reads against the tree; (d) a stray /push2.log outside every repository.
  • Process deviations in the report (commit trailer form, PR footer form, the maintainer summary shape, no reviewer request): seat matters, no contract content.
  • open_questions: none in the report.
  • Not measured locally by the dev, check:dual-build-cjs-loads: Build Core is green on this head.
  • Prose faces. The mdx agrees with the skill: the count (14), the Quick Reference row, and the MCP Build section's description, "Use when", "Do not use" and tags are the SKILL.md frontmatter, text for text. The changeset describes the skill as the tree has it. Its compatibility wording is nit N4.
  • SQL push-down check: no code path, no query, no id materialisation in this diff. Nothing to flag.

④ Design judgment

Against the card's scenario (a client holding only the MCP connection and its skills, building through the draft door) and the code on main, the skill holds: it is thin (4.6 KB, 90 lines, under the S3 = A target), it restates no shape, every server fact in it is true, and its two hard rules (never call a draft live, never clear a refusal by dropping the ask) are the ones the door's design needs from a client. The implementing files agree with their contracts: the ratchet row is the measurement, the DISPLAY row is the registration the generator requires.

No must-fix.

S1 (should-fix) — skills/objectstack-mcp-build/SKILL.md section 3: "follow its pointer to the contract. Never write a key from memory." The pointer the domain skills carry on main leads to node_modules/@objectstack/spec/src/ (their references/_index.md) and, in objectstack-ui, to a REST route. This skill's own reader has no project files, the draft door serves no schema read, and the card's acceptance client (door mode) is given mcp__app and Skill and no file tool. So on this skill's premise the instruction has no reachable target, and a client that takes "never from memory" literally has nothing to read. Say what stands in when the contract cannot be read (the domain skill's own text, then a published item of the same type, with the verdict as the check), in the same file and inside a re-measured row. If the real answer is a schema read at the door, that is a card for the seat, and the sentence should still not promise a pointer the reader cannot follow.

S2 (should-fix) — skills/objectstack-mcp-build/evals/draft-door-procedure.json case 4: must_not_contain holds has been added. The grader (packages/qa/scenarios/src/skill-evals/grade.ts) matches a literal, case-sensitive substring, and the correct answer the case itself describes ("it adds no field, and it claims no change") is naturally written "no field has been added", which fails the case. The same shape is weaker but present in cases 1 and 3 (is now live inside "nothing is now live"). Drop the token, or replace it with a first-person claim a correct refusal cannot contain (I added is already there; I have added is another), so the Done-when round is not scored down on right answers.

N1 (nit) — section 1 tells the client to stop authoring on any PERMISSION_DENIED. The door also answers that code for one type or one item (the datasource write capability, a read gate on one dashboard), where the other types stay writable. Stopping is the safe direction; relaying the refusal's own message would lose less.

N2 (nit) — eval case 2's expected_output says get_metadata_item reads "the package it belongs to"; the door's read answers type, name, draft, version, item, and the package is on the list entry (packageId), which is where SKILL.md section 2 sends the client. Prose only, not graded.

N3 (nit) — section 4's list_drafts line reads as "your drafts"; the tool lists every pending draft in the environment, or one package's with package. A client following section 5 could report a colleague's draft as its own.

N4 (nit) — frontmatter compatibility and the changeset say @objectstack/mcp 18.x. The five tools are registered by @objectstack/runtime and are not in the published 18.6.0 (their changesets are still pending on main). Step 1 already handles a server that does not list them, so nothing breaks; the line is wider than the truth. The eval fixtures also abridge each finding (no where member), with no effect on grading.

No must-fix; two should-fix (S1, S2); four nits.

Implemented-by: claude/issue-34778-build-over-mcp-skill
Reviewed-by: session_016WV4cxgb3PKFkt8y5FigJn

VERDICT: PASS

Contract-review fix round on the new skill.

- Section 3: the domain skill's own text is the contract a client with
  no file tool can reach; its node_modules pointers are followed only
  where files can be read, a published item of the same type stands in
  otherwise, and the save is the check.
- Section 1: a PERMISSION_DENIED call may refuse one type or one item,
  so the client relays the message and stops only what it refuses.
- Section 4/5: list_drafts lists every pending draft in the environment;
  the client reports the drafts it saved.
- compatibility: the draft door is served by @objectstack/runtime and is
  in no release through 18.6.0.
- Evals: the must_not_contain tokens of cases 1, 3 and 4 are claims a
  correct answer cannot contain ("no field has been added" and "nothing
  is now live" no longer fail a right answer); case 2's expected output
  reads the package off the list entry.
- Token ratchet row re-measured on the same PR: 1151 -> 1226 (+75),
  zero headroom. Skills index and reference page regenerated.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF

Contract review — delta

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 98d947251ddf7a3e1ee95eb619d8db5e99b7de4e
Prior-record: 7024514720
Local-runs: none
Scope: delta 08223b6d..98d94725 (one commit, six files): skills/objectstack-mcp-build/SKILL.md, skills/objectstack-mcp-build/evals/draft-door-procedure.json, scripts/check-skills-token-ratchet.mjs, .changeset/34778-mcp-build-skill.md, skills/README.md + content/docs/ai/skills-reference.mdx (generated)
Security-touching: yes

Read: the prior record, the dev report (comment 7025274239 on #34778), the PR body, the diff between the two heads, the head's SKILL.md and eval file whole, and on main (03865ae9) packages/runtime/src/domains/mcp-authoring.ts and packages/qa/scenarios/src/skill-evals/grade.ts. Git and gh reads only; nothing was built or run.

Prior items

Item State Evidence
S1 resolved Section 3 is now "Load the type's domain skill": its text is the contract, node_modules pointers "only where you can read files", otherwise "a published item of the same type" and the save as the check. Each stand-in is reachable with the door's tools and a skill loader: get_metadata_item serves a published item (default read is previewDrafts, behind the item gate), and the save answers error.issues or a verdict. The frontmatter description, the changeset phrase and the ratchet comment follow.
S2 resolved, one residue (N5) has been added, is now live, is now available and now published are gone from cases 1, 3 and 4. The new tokens are bound to a subject (flow is now live, `crm_sales_metrics` is now published, now available to query) or a first person. Against grade.ts (answer.includes(t), literal, case-sensitive): the right answers the cases describe ("no field has been added", "nothing is live yet", "the draft is now available for review in Studio") contain none; the wrong ones ("the flow is now live", "I added the field") contain one.
N1 resolved Two bullets: not listed, stop; refused PERMISSION_DENIED, "relay its message and stop what it refuses, the door or one type or item". True to the code: the whole-door refusal (no admission) and the per-type ones (walledCatalogWriteVerdict, the type read refusal, the item gate) all answer that code with a message. "Never write records instead" is kept.
N2 resolved Case 2's expected_output reads the package off the list entry's packageId (summaryOf carries it) and no longer says get_metadata_item answers it. Prose, not graded; the assertions are unchanged.
N3 resolved Section 4: "every pending draft in the environment, each with its verdict. Not all are yours."; section 5: "Report each draft you saved". Matches list_drafts (listDrafts({}) or one package's, ungated as a list, "every draft is saved environment-wide").
N4 resolved compatibility names @objectstack/runtime 18.x and "(none through 18.6.0 does)". On main the registrar is packages/runtime/src/domains/mcp-authoring.ts, packages/runtime/package.json is at 18.6.0, and the two changesets that ship the door (34766-mcp-open-draft-door-read, 34766-mcp-draft-door-write-tools) are pending at patch, so the first serving release is an 18.x after 18.6.0. I did not re-read the 18.6.0 tag tree (no release tag in this checkout); the dev's measurement on it stands unrepeated.

New in the delta

  • Nothing new teaches untrue behaviour, and no permission or scope claim is wider. The scope sentence (metadata:write, a user who may manage metadata) is untouched. N1's change narrows what a client stops on a per-type refusal from "everything" to "what it refuses"; the server enforces each refusal either way, and the rule against writing records instead stays. The hand-over rules of section 5 are untouched apart from "you saved".
  • Ratchet row. The head's SKILL.md is 4921 bytes and 94 lines (git show | wc); less the 20-byte stamp line, ceil(4901 / 4) is 1226. The row is 1226, +75 over the reviewed 1151, zero headroom, no other row moved, same ruling cited (S3 = A, record 6943107981 on [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). The pricing act stays the Tier H approval's.
  • Generated faces. skills/README.md (one index row) and content/docs/ai/skills-reference.mdx (two lines) carry the new description text for text.
  • Merge. git merge-tree of this head onto main 03865ae9 is clean.
  • PR body. Reads Part of #34778; no closing keyword on the card is left, and the first paragraph says the card stays open for the live round. That answers the boundary flag of the prior record (Done-when unmet by this PR). The body's numbers (94 lines, 1226 tokens, 98d947251d on 08223b6d90, the six-item table) match the head. The PR is still a draft.

N5 (nit) — eval case 4: I have added and I've added still sit inside a correct refusal written "I have added nothing" or "I've added no field". Far less likely than the token it replaces, and the prior record proposed I have added itself. If the live round scores a right answer down on it, drop the two and keep I added.

N6 (nit) — cases 1 and 3: the subject-bound tokens no longer catch a wrong answer phrased "it is now live" or "is live now". The trade is the right one for a literal grader (no false failure on a right answer); the live round should not read a pass on those cases as proof no liveness claim was made.

N7 (nit, for the seat; the dev report carries it as out of scope) — section 4 now says not every listed draft is the client's, and the next sentence names delete_metadata_draft with no word on whose draft to discard. The server admits the delete for any holder of the authoring capability. One clause ("discard only a draft you saved, unless asked") would close it; it is priced, so it is the seat's call.

Gate verdicts

Check-runs on this head, read 2026-11-19T23:39Z: 70 runs, 23 success, 12 skipped, 35 in_progress, none failed or cancelled. Still pending: Build Core, Build & E2E UI, Live E2E UI, Check Changeset, Lint · CI, release & engine gates, Lint · PM dispatch-gates, Test Core 1 to 10, Test UI 1 to 16, Type Check UI, Type Check · workspace, Type Check · consumer gates. This record's verdict is on the text against the code; it derives no verdict from the pending lanes, and the seat reads them green before any landing step.

No must-fix; no should-fix; three nits (N5, N6, N7).

Implemented-by: claude/issue-34778-build-over-mcp-skill
Reviewed-by: session_016WV4d1PJ4isQ3eD7Fk1fnF

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1Dv2AVwokgRqfdKp2

Final head for the L1 delta read (2026-11-20T00:01Z): 98d947251ddf7a3e1ee95eb619d8db5e99b7de4e (was 08223b6d90). CI on this head: 74 check-runs, 62 success, 12 skipped, 0 failed, 0 pending. Fix round for contract record 7024514720 (S1, S2, N1–N4); contract delta PASS 7025359365. Tier H, the area does not land.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1H9ixhgepGZ7fawhL

L1 delta verdict (L1-a): ACCEPT at head 98d947251ddf7a3e1ee95eb619d8db5e99b7de4e. This supersedes my ACCEPT 7024383578 at 08223b6d. The delta answers contract record 7024514720 (S1, S2, N1–N4). The PR body now reads Part of #34778, with the Done-when live eval round still owed on the card.

Gates on this head: 74 check-runs: 62 success, 12 skipped, 0 failed, 0 pending (announced in 7025740981). Lint & Repo Gates and TypeScript Type Check both passed.

What I checked in the delta (08223b6d..98d94725, 6 files, +34 / -24):

  • S1, section 3. It no longer promises a pointer the reader cannot follow. Now: the domain skill's text is the contract, the node_modules pointers apply only where files can be read, otherwise read a published item of the same type and let the save check it, and "Never write a key none of these shows". The old "a published item … is a second pattern" line is folded in rather than repeated. The description line in the frontmatter, skills/README.md, both skills-reference.mdx rows, the ratchet comment and the changeset all say "load the type's domain skill". No copy of "read the type's contract" is left.
  • S2, eval tokens. Case 4 drops has been added and the bare is now live. Its remaining tokens (I added, I have added, I've added, field is now live, `renewal_date` is now live) are claims a correct refusal does not contain. Cases 1 and 3 narrow is now live / is now available to the flow, the dataset or the item by name. This is the bare-token shape I should have caught in my first ACCEPT, so credit to the contract review.
  • N1. "Not listed" and PERMISSION_DENIED are split. A refusal is relayed, and the client stops only what it refuses: the door, or one type or item.
  • N2. Eval case 2 now takes the package from the list entry's packageId, which matches SKILL.md section 2.
  • N3. list_drafts lists every pending draft in the environment ("Not all are yours"), and the report covers "each draft you saved".
  • N4. compatibility now names @objectstack/runtime 18.x serving the door "(none through 18.6.0 does)". The changeset carries no package-version claim.
  • Ratchet. wc -c = 4921, so ceil((4921 − 20) / 4) = 1226. That equals the row, still zero headroom. The comment cites the record and keeps the measurement formula.

Notes (non-blocking): none new. The live eval round stays with the seat.

Next: Tier H (skills/**), handed to the seat.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF

席位核对 — ACCEPT · repo:objectstack#4 · head 98d947251ddf7a3e1ee95eb619d8db5e99b7de4e

  • 速读:新技能 objectstack-mcp-build:教外部 AI 客户端通过 MCP 草稿门读、存、查元数据草稿(不发布),按存稿回复的 verdict 迭代;Part of skills: a thin "build over MCP" procedure skill for the open draft door #34778。
  • 档:Tier H(skills/**);L1 ACCEPT 7024383578,delta 7025752463;合约复审 PASS 7024514720,S1/S2/N1–N4 修后 delta PASS 7025359365。
  • Security-touching: yes(教 metadata:write 范围与 PERMISSION_DENIED 处理,均与代码一致),已加 security 标签;非漏洞,无公告。
  1. 形态:SKILL.md、两份 eval、README、生成的 mdx、token ratchet 行(1226,零余量,依 6943107981)、changeset。
  2. 前提实测:复审逐条对照 main 的 mcp-authoring.ts、mcp-http-tools.ts 与 grader(字面、区分大小写)。
  3. 门禁:现 head 74 个 check-run,0 失败、0 进行中。
  4. 接受的偏差:N5–N7(eval 词形与草稿归属措辞)随落地后的实测 eval 轮一起处理。
  5. 范围外去向:卡片 Done-when 的有/无技能实测 eval 轮由本席落地后交 eval 席,凭其记录关 skills: a thin "build over MCP" procedure skill for the open draft door #34778;草稿门不提供 schema 读取,另立席位卡。
  6. 落地条款:os-zhuang 或 hotlong 批准后由批准人入队;Clause-②: no,@objectstack/skills patch。

@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 44678014572 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Dogfood Regression Gate (2/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/colleague-lookup-over-mcp.dogfood.test.ts > a member's agent finds a colleague through the read-only sys_user over MCP (ruling B) > ⭐ the query tool's
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: expected 'Query records from an object with opt…' to contain 'sys_user'
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 12 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue security size/m 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