Repository navigation
Commit c2b2e4f
docs(skills): the platform and upgrade skills teach engines.protocol '^19', the major the 19.x boot handshake accepts (#37298)
<!-- claude-projects-attribution: {"github_login":"os-bill"} -->
_Requested by **Bill** · [project
thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wgFiXLbrG7d8JVydkmtSf4Bt)_
Fixes #37460
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 客户项目里的 AI 助手照着技能包写应用配置时,声明的协议大版本从 18 变成 19;技能包的考题也同步改成 19。
- 属于「19.0.0 大版本」这条线:运行时的协议版本升到 19 之后,技能包要教同一个数,否则照抄的配置启动就被拒。
- 若它早于协议升 19 的那个改动上线,照着技能写的新项目会在 18 版运行时上启动被拒;纯文字改动,可以直接撤回。
- 要你做一件事:「进入预发布阶段」和「协议升到 19」两个改动都已合入,请审批这个受管的技能包改动。
## What changes
PR 2 of 2 for the card (seat direction: option A on the shape of the v18
move). This is the `skills/**` half, split off because `skills/**` is a
governed surface. The sibling PR 1 moves `PROTOCOL_VERSION` to `19.0.0`
and every other tracked `'^18'` on branch
`claude/issue-37229-protocol-version-19` (PR #37314). PR 1 and #37230
(pre mode plus the pending `@objectstack/spec` major) are both on
`main`, so the landing order this PR waited on is met. It stays draft
because `skills/**` is Tier H.
Four lines in three files, each rewritten in place at equal byte length:
- `skills/objectstack-platform/SKILL.md` L111: the `defineStack`
manifest example declares `engines: { protocol: '^19' }` (was `'^18'`).
- `skills/objectstack-platform/evals/config-plugins-ops.json` L6 and L7:
eval 1's prompt asks for `protocol 19` and its expected output is
`'^19'`, so the eval stays consistent with the skill it scores.
- `skills/objectstack-upgrade/SKILL.md` L89: the sentence that says what
every scaffold and example writes now says `'^19'`.
- `.changeset/37229-skills-protocol-19.md`: `@objectstack/skills` patch.
`git grep -n "protocol: '\^18'" -- skills/` at head `3536f9ac1c` matches
nothing.
**Rework round (head `3536f9ac1c`).** Two commits on top of `c9ad209e`:
a merge of `origin/main` `a46efa8c62` (clean, no conflict, no generated
artifact deferred) and one sentence in the changeset. The changeset's
last sentence used to end "no conversion is registered at step 19, so
the chain an author replays still ends at 18"; with PR 1 on `main` the
chain ends at 19. It now ends: "step 19 carries no conversion and one
semantic entry (`protocol-18-range-refused`)." The entry id was read on
`origin/main` `a46efa8c62` at
`packages/spec/src/migrations/entries/semantic/19.protocol-18-range-refused.ts`,
the only `19.*` file under `entries/`. The changeset file is new in this
PR, so this is not an edit to a landed note. The PR's own hunks in the
three skill files are unchanged from `c9ad209e`. The eval file and the
upgrade skill keep the same blobs.
`skills/objectstack-platform/SKILL.md` changed blob only by main's
merged hunks (#37409, #37303).
**Declarations, judged from content.** The diff is skill prose and one
eval fixture. It changes nothing a metadata author can write and nothing
the runtime accepts or refuses; the refusal of `'^18'` is PR 1's. So
`Clause-②: no` and `Metadata-protocol: none`, the same pair the v18
skills move (#25688) declared, and the changeset is `patch`. No
`Skills-docs:` line is owed for a `none` kind.
## Published-skills readings
Lines, and tokens as ceil(UTF-8 bytes / 4); `origin/main` `a46efa8c62`
to head `3536f9ac1c`.
| File | Before | After |
|---|---|---|
| `skills/objectstack-platform/SKILL.md` | 422 lines · 6154 tokens | 422
· 6154 |
| `skills/objectstack-platform/evals/config-plugins-ops.json` | 399 ·
6067 | 399 · 6067 |
| `skills/objectstack-upgrade/SKILL.md` | 481 · 6175 | 481 · 6175 |
| Whole bundle (sum of every `skills/*/SKILL.md`) | 4961 · 65472 | 4961
· 65472 |
Net for `skills/**`: 0 lines added, 0 removed.
`check-skills-token-ratchet` at head: `61 authored bundle file(s) within
their ceilings; 11 generator-owned file(s) and 42 eval fixture(s)
measured, not ratcheted.`
## Tests
No workspace package source is touched, so no package test is owed. The
marked `defineStack` example in `objectstack-platform/SKILL.md` is
type-checked by `check:skill-examples`: `350 prose examples type-check
across 3 surface(s)`, exit 0, after a full core build (121 of 121 turbo
tasks, lock `VERDICT command-exit 0`).
## Acceptance notes
- **No 18 → 19 step is added to `objectstack-upgrade`.** The skill does
not walk the majors one by one; it teaches one procedure (`os migrate
meta --from N`, then the residue). On `main` `a46efa8c62` step 19
carries no conversion and one semantic entry
(`protocol-18-range-refused`), whose own replacement text names `migrate
meta --from 18`, the procedure the skill already teaches, so no step-19
text is added.
- **Left unchanged on purpose in `objectstack-upgrade/SKILL.md`:**
- L74, `os migrate meta --from 16 --to 18 --json`. It names the last
ported hop, not the current major. The chain now has steps for 17, 18
and 19. Step 19 carries no conversion, so the `--to 18` replay gives the
same result as the default terminus 19 today. The skill's own eval pins
the same replay form.
- L91, the `'^17'` to `--from 17` worked example (it shows taking the
floor of a range).
- L122 ("not in the 18 catalog") and L178 to L183 ("18.3 drops", "on
18.2 or earlier"): statements about 18.x releases, still true.
- **Frontmatter is the version pass's.** `compatibility: Requires
@objectstack/spec 18.x` and `metadata.version: "18.6.0"` in the skill
frontmatter are stamped at release; `check:skill-compatibility` exits 0
at this head.
- **Order risk, now past.** Before PR 1 the skill would have taught
`'^19'` to an 18 runtime. PR 1 is on `main`.
- Noted, not filed (carrier: none): nothing cross-checks a `protocol:`
literal in skill prose against `PROTOCOL_VERSION`; the v18 skills move
noted the same.
## Verification
Two-minute check: `git diff origin/main...HEAD --stat -- skills/` shows
3 files, 4 insertions, 4 deletions; `node
scripts/check-skills-token-ratchet.mjs` exits 0.
Read first (by risk):
1. `skills/objectstack-platform/evals/config-plugins-ops.json` L6 and
L7: prompt and expected output must move together.
2. `skills/objectstack-platform/SKILL.md` L111: the block is
type-checked.
3. `skills/objectstack-upgrade/SKILL.md` L89, and L74 and L91 beside it,
which stay.
<details><summary>Local gates at 3536f9a (rework head): 50 derived
families, 47 exit 0, 3 NOT MEASURED</summary>
`node scripts/pm/dispatch-gates.mjs --ran` at `3536f9ac1c`: `50 derived
famil(ies) accounted for — 47 run, 3 NOT-MEASURED (3 DERIVED from a
recorded exit 3)`. The three answered `PREREQUISITE NOT MET` (exit 3)
because only `@objectstack/spec` was built in this worktree:
`check:doc-formula-expressions`, `check:dual-build-cjs-loads`,
`check:lean-entry-closure`. This narrowing is declared; CI's `Lint &
Repo Gates` runs them and is `success` at this head. Also run, exit 0:
`check:skill-refs` (`10 generated files in sync with packages/spec`),
`check:skill-served-sections` (`24 served section(s), each heading
exactly once in its file`), `check-skills-token-ratchet` (`61 authored
bundle file(s) within their ceilings`), `check-nul-bytes` (OK).
`check:skill-examples` was not re-run at this head (it needs the full
core build); the PR's own hunks are unchanged from the head it passed
on, and CI's `Lint & Repo Gates` runs it at this head.
</details>
<details><summary>Earlier round, local gates at c9ad209 (main with
#37230 merged in): 56 commands, all exit 0 (50 of 50 derived families
run)</summary>
`node scripts/pm/dispatch-gates.mjs --commands` derived 50 families for
this diff; `--ran`: `50 derived famil(ies) accounted for — 50 run, 0
NOT-MEASURED`. Exit codes were captured before any pipe. All exit 0,
among them `check-adr-0087-registration`, `check-changeset-no-major`,
`check-empty-changeset`, `check-skills-token-ratchet`,
`check:skill-docs`, `check:skill-examples`, `check:skill-refs`,
`check:skill-served-sections`, `check:skill-compatibility`,
`check:skill-frame-freshness`, `check:skill-frame-sync`,
`check:skill-identifier-liveness`, `check:skill-links`,
`check:skill-top-level-keys`, `check:pm-governed-merges`,
`check:test-source-alias`, `overlap-check` (`VERDICT clean exit 0`, also
clean with #35129). `check:skill-examples` first answered exit 3
(PREREQUISITE NOT MET: `packages/client-react/dist` unbuilt in a fresh
worktree) and exit 0 after the full build.
</details>
## Provenance
Opened by seat repo:objectstack#4 on the maintainer's authorization in
the seat session (「#37229 的两个 PR 开 PR 时被拦了:放行」). The dev session
(`session_01QSeKYnFjnB9bU95RVja6w5`, zone a4-S)'s own relay `pr_create`
and report comment were refused by its permission check and not retried;
it sent the prepared body and its os-dev report to the seat. The gate
list above is condensed from the dev's full list (all 56 exit 0). Branch
`claude/issue-37229-skills-protocol-19` @ `c9ad209e` at that point.
The card moved from #37229 (closed when PR 1 merged) to its follow-up
card, and seat repo:objectstack#5 (zone o5-A) took the PR over on the
claim there. The rework round was done by a dev subagent of
`session_01Utp6CZmwqAVSYHM1nQUDTq`.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01Utp6CZmwqAVSYHM1nQUDTq)_
<!-- signed: repo:objectstack#5 · os-bill ·
session_01Utp6CYtTDvfPQDzMbZnN5X -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent a7bf18f commit c2b2e4f
4 files changed
Lines changed: 14 additions & 4 deletions
File tree
- .changeset
- skills
- objectstack-platform
- evals
- objectstack-upgrade
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments