Repository navigation
Commit 1134519
docs(skills): name the capability advisory, the plugins[] wiring check and os verify --json capabilities (#35281)
<!-- claude-projects-attribution: {"github_login":"os-bill"} -->
_Requested by **Bill** · [project
thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wg1XdbbGasMNVx41tq3hZKV4)_
Fixes #35171
Clause-②: no
Metadata-protocol: none
## 维护者速读
- **改了什么**:两处技能文字各补一句。`objectstack-data` 的层级范围(hierarchy
scope)说明:企业插件要放进 `plugins[]` 才算接上;缺失或没接上只是提示,`os validate` 报警告,`os
verify --json` 列在 `capabilities` 里。`objectstack-project` 的 `os verify`
行:能力检查在这里只是提示,`--json` 字段名 `capabilities`。
- **为什么改**:PR #35168 让 `os verify` 也跑能力检查并加了 `capabilities` 字段,技能还没提到,AI
写应用时不知道去哪看这个提示。
- **风险与回滚**:只改技能文字,不动代码;token 上限一行没动,新增文字由同文件删除的重复句付账。回滚就是 revert 本 PR。
- **先看**:`skills/objectstack-data/SKILL.md`(层级范围那段,看措辞是否与 #35168
实际行为一致);`skills/objectstack-project/SKILL.md`(`os verify` 行与其下的 ⛔
句);`.changeset/35171-skills-verify-capabilities.md`。
- **两分钟验证**:`node scripts/check-skills-token-ratchet.mjs`,预期两文件 `6709 /
6710 (-1)` 与 `2900 / 2901 (-1)`,末行 ✓。
- **需要你做的**:无,席位落地(Tier S 技能文字,等席位合同审核记录)。
## What changes
The card, as narrowed by its premise correction (comment 6974886591):
the skills did not name the capability advisory, the `plugins[]` wiring
check, or the `capabilities` field that PR #35168 added to `os verify
--json`. Wording follows what shipped:
`packages/cli/src/utils/capability-preflight.ts`
(`judgeDeclaredCapabilities`, the unwired-provider message),
`packages/cli/src/commands/verify.ts` (`runCapabilityAdvisories`, never
changes the exit code) and `content/docs/deployment/cli.mdx` (the
`capabilities` member: `token`, `message`, `validate`).
- `skills/objectstack-data/SKILL.md`, access-depth section: the
hierarchy-relative scopes need `@objectstack/security-enterprise` **in
`plugins[]`**; a missing or unwired plugin is only advised, `os
validate` warns and `os verify --json` lists it in `capabilities`.
- `skills/objectstack-project/SKILL.md`, the `os verify` row of the
check table: `os validate`'s capability findings are advisory only there
(`--json`: `capabilities`).
- `.changeset/35171-skills-verify-capabilities.md`:
`@objectstack/skills` patch.
One pointer-grade line per place; the docs are not restated.
### Ratchet payment
Standing ruling, quoted: maintainer 2026-10-27 「A:先削重复,余额按实测提高」 (ruling
record 6513306068, letter B). Restatement was cut first in the same
files, and the remainder by measurement is zero: no ceiling row moves
and `scripts/check-skills-token-ratchet.mjs` is untouched.
Deleted, each a restatement in the same file:
- data: the "Full rules" link to `rules/security.md`, which the Quick
Reference list already gives; the related-title search example's code
comment, which restated the sentence directly above it. (The `private`
row's sharing pointer, cut in the first head, is restored: contract
review 6997435800 S1, it is the served Object Definition section's only
widening pointer.)
- project: "so the app never hand-writes it" above the check table (the
⛔ paragraph under the table says it); "Nothing in its row is checked
until someone runs it", which restated the clause before it.
| File | tokens before → after (ceiling) | lines before → after |
|:--|:--|:--|
| `skills/objectstack-data/SKILL.md` | 6710 → 6709 (6710) | 478 → 477 |
| `skills/objectstack-project/SKILL.md` | 2901 → 2900 (2901) | 207 → 206
|
| all `SKILL.md` in the bundle | — | 4830 → 4828 |
| ratcheted (authored) total | 194843 → 194842 | — |
Readings from the token ratchet at `f4dbcc21` and at head `1e736af7`;
lines by `wc -l`.
## Tests
Text-only change to the published skills; no package source, no test
file. Gate readings at head `1e736af7`:
<details><summary>Derived gate families (dispatch-gates --commands, 49):
45 exit 0, 4 NOT MEASURED</summary>
- `node scripts/check-skills-token-ratchet.mjs` exit 0: "59 authored
bundle file(s) within their ceilings".
- `pnpm --filter @objectstack/spec run check:skill-docs` exit 0: "Skill
docs in sync".
- `pnpm --filter @objectstack/spec run check:skill-served-sections` exit
0: "24 served section(s), each heading exactly once in its file".
- `pnpm check:skill-links` exit 0: "266 relative link(s) in 73 published
skill file(s) resolve".
- `pnpm check:skill-identifier-liveness` exit 0: "484 citation(s) over
73 published file(s)".
- `pnpm --filter @objectstack/lint run check:doc-formula-expressions`
exit 0 after building `@objectstack/formula` and `@objectstack/lint`
(first run exit 3, prerequisite not met).
- `pnpm check:nul-bytes`, `pnpm check:doc-authoring` and the rest: exit
0.
- NOT MEASURED, exit 3, prerequisite not met (they need a
whole-workspace `pnpm build`, and this diff changes no package's build
output): `check:dts-closure`, `check:dual-build-cjs-loads`,
`check:lean-entry-closure`, `check:sourcemap-no-sources-content`. CI's
Lint & Repo Gates runs them.
- `dispatch-gates --ran` with exit codes: "49 derived famil(ies)
accounted for — 45 run, 4 NOT-MEASURED".
</details>
<details><summary>Overlap</summary>
`node scripts/pm/overlap-check.mjs --branch=HEAD`: "VERDICT clean exit
0"; merges cleanly with origin/main, with #35260 and with #35129. The
first draft cut the testing section's opening sentences and conflicted
with #35260, which rewrites that paragraph; the payment was moved
elsewhere in the same file.
</details>
## Acceptance notes
- `skills/objectstack-platform/SKILL.md`, "Declaring is a demand": it
says a declared capability whose provider package is absent is a hard
boot error. For `hierarchy-security`, `os serve` prints a warning and
boots (`serve.ts`, the start-up advisory). The same file's capability
list already says that token loads through `plugins[]`. Not in this
card's file surface; recorded here, not changed.
- `skills/objectstack-data/evals/hooks-security-seeds-datasources.json`
has a case that grades `hierarchy-security`. Its expected output is
still correct and was left alone.
## Verification
- `os verify` stage 1 runs `judgeDeclaredCapabilities` and maps errors
to `validate: 'error'` and warnings to `validate: 'warning'`. The exit
code never reads them (`verify.ts` `runCapabilityAdvisories`).
- An enterprise package that is installed but not provided by any
`plugins[]` entry renders "… is installed, but no entry of `plugins[]`
comes from it …", a warning under `os validate`
(`preflightProviderWiring`).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01Utp6CazXu8zyYD5PC6J2u7
<!-- signed: repo:objectstack#5 · os-bill ·
session_01Utp6CazXu8zyYD5PC6J2u7 -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 3fb7025 commit 1134519
3 files changed
Lines changed: 22 additions & 11 deletions
File tree
- .changeset
- skills
- objectstack-data
- objectstack-project
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | 150 | | |
152 | 151 | | |
153 | 152 | | |
| |||
404 | 403 | | |
405 | 404 | | |
406 | 405 | | |
407 | | - | |
408 | | - | |
409 | 406 | | |
410 | 407 | | |
411 | 408 | | |
| |||
414 | 411 | | |
415 | 412 | | |
416 | 413 | | |
417 | | - | |
418 | | - | |
419 | | - | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
420 | 418 | | |
421 | 419 | | |
422 | 420 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 97 | + | |
| 98 | + | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
| |||
0 commit comments