Repository navigation
feat(skills): objectstack-mcp-build, the order of work for a client that builds through the MCP draft door - #35665
Conversation
…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>
📓 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): |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1Dv2AVwokgRqfdKp2 Final head for L1 (2026-11-19T22:44Z): |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1H9ixhgepGZ7fawhL L1 verdict (L1-a): ACCEPT at head Gates on this head: 70 check-runs: 60 success, 10 skipped, 0 failed, 0 pending. Shape:
What I checked myself, against
Notes (non-blocking):
Next: Tier H (skills/**), handed to the seat for the os-zhuang/hotlong approval and landing. Generated by Claude Code |
|
repo:objectstack#4 · os-elon-musk · session_016WV4cxgb3PKFkt8y5FigJn Contract reviewServed-tier: 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 ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentAgainst the card's scenario (a client holding only the MCP connection and its skills, building through the draft door) and the code on No must-fix. S1 (should-fix) — S2 (should-fix) — N1 (nit) — section 1 tells the client to stop authoring on any N2 (nit) — eval case 2's N3 (nit) — section 4's N4 (nit) — frontmatter No must-fix; two should-fix (S1, S2); four nits. Implemented-by: 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>
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF Contract review — deltaServed-tier: 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 Prior items
New in the delta
N5 (nit) — eval case 4: 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 Gate verdictsCheck-runs on this head, read 2026-11-19T23:39Z: 70 runs, 23 No must-fix; no should-fix; three nits (N5, N6, N7). Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1Dv2AVwokgRqfdKp2 Final head for the L1 delta read (2026-11-20T00:01Z): |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1H9ixhgepGZ7fawhL L1 delta verdict (L1-a): ACCEPT at head Gates on this head: 74 check-runs: 62 success, 12 skipped, 0 failed, 0 pending (announced in 7025740981). What I checked in the delta (
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 |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF 席位核对 — ACCEPT · repo:objectstack#4 · head
|
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 44678014572 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
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
维护者速读
What changes
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:packages/runtime/src/domains/mcp-authoring.tsregisters them (list_metadata_items,get_metadata_item,list_drafts,save_metadata_draft,delete_metadata_draft). Not listed: say so and stop. A call refusedPERMISSION_DENIED: relay its message and stop what it refuses.describe_objectwhere the connection lists it.objectstack-data,objectstack-ui,objectstack-automation,objectstack-ai,objectstack-i18n,objectstack-formula). That skill's text is the contract; itsnode_modulespointers 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.verdict.refusals,verdict.publishable: trueandverdict: null.reviewroutes as written.verdict.refusals,rule,path,hint,verdict.advisories,verdictWithheld,verdictError,review) are the ones the procedure branches on.list_metadataandget_metadata. The door registerslist_metadata_itemsandget_metadata_item, becauselist_metadatais a hosted platform tool (the file's own header, "The names"). The skill uses the registered names.describe_objectis a data tool: a connection granted onlymetadata:writedoes not list it, so the skill says "where the connection lists it".skills/objectstack-mcp-build/evals/, in the shape ofskills/objectstack-ask/evals/*.json:draft-door-procedure.json, four behaviour cases: (1) arecord_changeflow draft whose start node has notriggerType, refused byflow-trigger-unroutablein 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, loadobjectstack-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 forobjectstack-ask, a metadata question forobjectstack-ai).DISPLAYrow inpackages/spec/scripts/build-skill-docs.ts;skills/README.md's index andcontent/docs/ai/skills-reference.mdxregenerated bygen:skill-docs. One hand-written routing bullet inskills/README.md. One ceiling row inscripts/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/34778-mcp-build-skill.md:@objectstack/skillsatpatch, as the two earlier new-skill changesets were (objectstack-ask,objectstack-project).packages/runtime/**orpackages/mcp/**.packages/spec/scripts/is not in that package'sfiles, 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 inskills/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 head08223b6d90. Each item, where it landed, before and after:SKILL.mdsection 3, heading and first paragraph; frontmatterdescriptionnode_modules/@objectstack/spec/src/(theirreferences/_index.md;objectstack-uialso names a REST route), which a client holding only the door's tools and the skill loader cannot read.node_modulesonly 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.evals/draft-door-procedure.json,must_not_containof cases 1, 3 and 4has been added, which the right answer "no field has been added" contains. Cases 1, 3 and 4 heldis now live, which "nothing is now live" contains. Case 3 heldis now available, which "the draft is now available for review" contains.flow is now live/active/publishedand the same three on the flow's backticked name; case 3dataset is now live/published, the same two on the dataset's backticked name, andnow available to query; case 4I added,I have added,I've added,field is now liveand the field's backticked name withis now live.successfully publishedstays in cases 1 and 3.SKILL.mdsection 1PERMISSION_DENIED: say you cannot author here and stop."PERMISSION_DENIED, "relay its message and stop what it refuses, the door or one type or item."evals/draft-door-procedure.jsoncase 2,expected_output(prose, not graded)get_metadata_itemreads "the package it belongs to".packageId; the field's shape comes from the domain skill's text and the object that was read, as S1 now says.SKILL.mdsections 4 and 5list_draftsbefore you report: every pending draft with its verdict."; "Report each draft's type, name and package".SKILL.mdfrontmattercompatibilitypackages/runtime/src/domains/mcp-authoring.ts. On the tree of the release tag of@objectstack/runtime18.6.0 (commit958ee03594) that file does not exist andgit grep save_metadata_draftoverpackages/runtimeandpackages/mcpanswers exit 1; the positive controldescribe_objecthits on the same tree. Their two changesets are still pending onmain. 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 (nowheremember); that has no effect on grading and is left as it was.SKILL.mdwent 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.gen:skill-docsrewrote the description inskills/README.md(one index row) andcontent/docs/ai/skills-reference.mdx(two lines);gen:skill-refschanged nothing.skills/objectstack-ask/**is untouched.triggers.jsonand theDISPLAYrow are as reviewed.Read first
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 theverdict: nullrow.scripts/check-skills-token-ratchet.mjs, the new row and its comment (the pricing act is the maintainer's).skills/objectstack-mcp-build/evals/draft-door-procedure.json, themust_containandmust_not_containtokens 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
2495486fd5)08223b6d90)98d947251d)skills/objectstack-mcp-build/SKILL.mdlinesskills/objectstack-mcp-build/SKILL.mdbytesskills/objectstack-mcp-build/SKILL.mdpriced tokens (ceiling)SKILL.mdfiles in the catalogSKILL.mdfiles, lines summedTokens are the ratchet's own convention,
ceil(utf8 bytes / 4)with the 20-byte release-stamp line unpriced. The before column was read oncf6bb70e2d;skills/**is byte-identical between that commit and2495486fd5(git diff --quiet, exit 0).Tests
All readings are on head
98d947251d, with the working tree clean.node scripts/check-skills-token-ratchet.mjsand--self-testpnpm --filter @objectstack/spec run check:skill-docsandcheck:skill-refspnpm check:skill-links,check:skill-identifier-liveness,check:skill-compatibility@objectstack/runtime 18.xpin reconcilespnpm --filter @objectstack/spec run check:skill-examples@objectstack/client-reactclosure 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-testpnpm --filter @objectstack/scenarios skill-evals --dry-run --skills objectstack-mcp-buildmust_containtoken is in itsexpected_output, and nomust_not_containtoken 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 therenewal_datefield", "The dataset is now live and now available to query" each hit at least oneorigin/main03865ae995(amerge-treetree extracted to a scratch directory)objectstack-project2990 / 2990No ablation: the diff changes no behaviour that a test pins. The catalog tests of the first round (
create-objectstack,@objectstack/scenarios, the@objectstack/specrepo 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
--modes door --door-skillsover the repository'sskills/directory, and the same with--door-skill-omit objectstack-mcp-build; the four behaviour cases and six trigger cases run withskill-evals --skills objectstack-mcp-build.check-governed-merges --branch HEADanswers GOVERNED, landing tier H, from theskills/**hit (exit 3). The PR stays draft and is never readied, queued or armed by the author. The contract review record 7024514720 is on head08223b6d90; this push moves the head.skills/README.md, the ratchet row, the generated pages and the changeset. The generated pages cannot be produced without theDISPLAYrow inpackages/spec/scripts/build-skill-docs.ts(the generator exits 1 on aSKILL.mdwith no row), so that one line is in the diff too. Both earlier new-skill PRs carry the same line.packages/create-objectstack/src/created-summary.test.tsholds a list of skill names as a scaffold fixture;objectstack-projectis 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-checkfirst answered exit 1 at18b917cb13: the ceiling row sat directly under theobjectstack-projectrow, which open PR 35572 rewrites. The row moved up beside theobjectstack-askrow (same text, same number). Re-run at98d947251dbefore the push: VERDICT clean, exit 0, againstorigin/main03865ae995and 0 PR heads (the tool found no open PR sharing a file with this branch).main. The branch is 16 commits behindorigin/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.record-after-createand case 3 requiressynonyms: 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'sreviewmember.list_draftslists 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.name,label,packageIdanddraft, and nowritable. 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 buildunder the verify lock:VERDICT command-exit 0.pnpm exec turbo run buildfiltered to the@objectstack/scenariosdependencies and to the@objectstack/client-reactclosure,--concurrency=2, under the verify lock: 16 and 43 tasks successful, all from cache,VERDICT command-exit 0both.Derived gates (dispatch-gates --commands, no paths, then --ran)
98d947251d: 114 derived; 113 exit 0. Among them:check-skills-token-ratchet.mjsand 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.pnpm check:dual-build-cjs-loadsexit 3, "Runpnpm buildfirst": it reads every package'sdist/, 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-refswas run beyond the derived set.origin/main, and two files it derives from changed in that range (Acceptance notes).98d947251d: started by the push, not concluded at the time of writing.Generated by Claude Code