Repository navigation
Commit ce0d0da
docs(skills): mcp-build says a rename repair leaves the old-name draft (#39005)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBG4YD4RMAt72Ga5PdYYZDAQ)_
Part of #38932
Claim for this branch: #38932 comment 7324940841
Clause-②: no
Metadata-protocol: none
What remains: acceptance 2 of the card, the cloud repro (rename after a
namespace-prefix refusal, then publish the package) publishing whole on
the next cloud pin. It belongs to cloud#5304 task 1.1 run 2 and is NOT
MEASURED here.
## 维护者速读
- 通过 MCP
让助手搭建应用的客户:助手按发布判定给对象改名重存后,会删掉旧名字的草稿,或明说它还在;收尾汇报按最后一次查到的草稿判定说话,不再拿第一次保存的回复说「已通过校验」。
- 属于云端「助手搭建应用」专题第二阶段,替第一次整包发布就被旧草稿挡住的客户解决。
- 只改一份对外技能说明的文字,不动任何代码;写错了助手的汇报仍可能不准,可直接撤回本 PR。
- 请你审批合并本 PR(技能文档须你批准)。
## What changes
`skills/objectstack-mcp-build/SKILL.md`, steps 4 and 5 only:
- **Step 4, refusals row.** One sentence added: a fix that renames the
item leaves the old-name draft, which blocks the package's publish, so
the agent deletes it with `delete_metadata_draft` or says it remains.
Card evidence: after `NAMESPACE_PREFIX` on `supplier`, the re-save as
`proc_supplier` left the `supplier` draft, and `POST
/api/v1/packages/com.local.procure/publish-drafts` answered `outcome:
refused`, `publishedCount: 0`, `failed: [supplier, NAMESPACE_PREFIX]`.
- **Step 5, report bullet.** Rewritten: each draft is reported as the
closing `list_drafts` judges it, not as a save's reply did, and is
called publishable, or said to have passed a check, only where that
verdict says so. This is the rule the reply in the repro broke ("passed
pre-publish checks" over a package whose other draft was refused).
- **Restatement cut first**, each said elsewhere: "the whole item" in
the refusals row (step 2 says it); the `list_drafts` bullet's gloss of
its reply and of `delete_metadata_draft`'s scope (the tools' own
descriptions, which the skill names the authority); the `verdict: null`
row's "do not call it publishable" (the new step 5 rule covers it);
"Console routes where a person reviews and publishes" (the opening
paragraph says it).
- Nothing says every draft carries a verdict, and nothing names a bound
on verdict work: the existing `verdict: null` row (with
`verdictWithheld`) still covers a draft answered without one.
- **Token ratchet.** `scripts/check-skills-token-ratchet.mjs`, the
`skills/objectstack-mcp-build/SKILL.md` row only: 1226 to 1229 (+3), the
measured remainder, pinned at the measurement with zero headroom. Raise
path: ruling record 6513306068, letter B, 「A:先削重复,余额按实测提高」. Arithmetic
in the row comment: `ceil((4942 - 27) / 4) = ceil(4915 / 4) = 1229`, net
+13 bytes (+150 and +85 added, -15, -122, -32 and -53 cut).
- **Eval.**
`skills/objectstack-mcp-build/evals/draft-door-procedure.json` gains
case 5, the rename repair: `must_contain` `Studio`, `must_contain_any`
`delete_metadata_draft` or `remains` (deleting and saying plainly it
remains are both right answers), and a `must_not_contain` list that
refuses calling `supplier` or both drafts publishable. None of the
forbidden tokens occurs in its own `expected_output`.
- **Changeset.** `.changeset/38932-mcp-build-rename-old-draft.md`,
`@objectstack/skills` patch.
### Skills readings (the published bundle)
| Reading | Before | After |
|:--|--:|--:|
| `skills/objectstack-mcp-build/SKILL.md` lines | 94 | 93 |
| same file, bytes / priced tokens | 4929 / 1226 | 4942 / 1229 |
| every `skills/**/SKILL.md`, lines | 2146 | 2145 |
| every `skills/**/SKILL.md`, bytes / ceil(bytes/4) | 121094 / 30274 |
121107 / 30277 |
| ratcheted authored subtotal (gate) | 181865 | 181868 |
| whole shipped tree (gate, eval fixtures included) | 288828 | 289534 |
The whole-tree growth beyond the +3 is the eval case (unpriced
population, the eval fixtures subtotal).
## Tests
- Eval case 5 graded by hand against the grader's literal rules
(case-sensitive substring): its own `expected_output` passes; a deleting
answer and a "the old draft remains" answer both pass; the repro shape
(old draft never mentioned, "passed pre-publish checks") fails on the
any-of group; an answer calling `supplier` publishable fails on
`must_not_contain`.
- `loadSkillEvalCatalog` over `skills/` (packages/qa/scenarios):
refusals `[]`, 380 cases, 11 for this bundle, case
`objectstack-mcp-build/draft-door-procedure#5` loaded.
- The eval-token oracle (`ui/scripts/check-skill-eval-tokens.mjs`
`analyze`, rooted at this repository): case 5's tokens are taught by the
bundle (no red row for case 5, no shape finding).
- `packages/types` `studio-review-links.callers.test.ts` (reads this
eval file's review links byte for byte): 3 passed.
## Acceptance notes
- The eval-token gate runs in CI over `ui/skills` only. Rooted at this
repository it lists four rows already red on `main` in this bundle's
cases 1 and 3 (`record-after-create`, `changes=review`, `synonyms`,
`/studio/com.acme.crm/data?changes=review`): tokens the SKILL.md does
not teach. Pre-existing, untouched here, not filed (no CI gate reads
that population).
- `overlap-check` before push: clean against `origin/main` and the three
open PRs that share a file (#38980 and #38971 on other ratchet rows, the
Version Packages PR on the stamp line).
## Verification
Read first, by risk:
1. `skills/objectstack-mcp-build/SKILL.md` step 5, the report bullet:
the rule that replaces the save reply's verdict with `list_drafts`'.
2. The same file, step 4: the refusals row's new sentence, and the
`verdict: null` row's cut.
3. `scripts/check-skills-token-ratchet.mjs`, the row comment's
arithmetic.
Two minutes: `node scripts/check-skills-token-ratchet.mjs` prints
`skills/objectstack-mcp-build/SKILL.md is 1229 tokens (ceiling 1229;
headroom 0)` and exits 0.
<details><summary>Local gates (at 87251b8)</summary>
`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 69 families for the 4 paths; each
was run and its exit code recorded before any pipe. `--ran`: `69 derived
famil(ies) accounted for — 67 run, 2 NOT-MEASURED (1 DERIVED from a
recorded exit 3, 1 claimed)`.
- 67 exit 0, among them `check-skills-token-ratchet.mjs` and
`--self-test` (111 cases pass), `check:skill-links`, `pnpm --filter
@objectstack/spec run check:skill-docs`,
`check-adr-0087-registration.mjs`, `check-changeset-no-major.mjs`,
`check-empty-changeset.mjs`, `check:changeset-gate-self-tests`,
`check:nul-bytes`, `check:doc-authoring`, `check:pm-skill-id-lint`,
`check:published-files`, `check:lean-entry-closure` (after building
`@objectstack/objectql`), `check:doc-formula-expressions` (after
building `@objectstack/formula` and `@objectstack/lint`).
- NOT MEASURED: `check:dual-build-cjs-loads` (exit 3, PREREQUISITE NOT
MET: needs the whole workspace built; the diff builds no package) and
`check:pm-dispatch-gates` (killed by a 570 s timeout mid self-test,
twice, on the shared box; the diff does not edit `dispatch-gates.mjs`).
Both carried to CI `Lint & Repo Gates`.
</details>
---
_Generated by [Claude
Code](https://claude.ai/code/session_01WGufzeatqKfTRUzTJVa9jQ)_
<!-- signed: repo:objectstack@os-support-ai · os-support-ai ·
session_01WGufzeatqKfTRUzTJVa9jQ -->
Co-authored-by: Claude <noreply@anthropic.com>1 parent 571b494 commit ce0d0da
4 files changed
Lines changed: 49 additions & 9 deletions
File tree
- .changeset
- scripts
- skills/objectstack-mcp-build
- evals
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2976 | 2976 | | |
2977 | 2977 | | |
2978 | 2978 | | |
2979 | | - | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
| 2993 | + | |
| 2994 | + | |
| 2995 | + | |
| 2996 | + | |
| 2997 | + | |
2980 | 2998 | | |
2981 | 2999 | | |
2982 | 3000 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
| 83 | + | |
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
90 | 88 | | |
91 | | - | |
92 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
93 | 92 | | |
94 | | - | |
| 93 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
43 | 54 | | |
44 | 55 | | |
45 | 56 | | |
0 commit comments