Repository navigation
Commit fb3d1ff
docs(spec,qa): OS_PROTOCOL_INCOMPATIBLE ledger comment and manifest-install-contract acceptance[1] name when migrateCommand is absent (#34026)
<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbTGhxJSYAmQXU7efVdNqrpw)_
Fixes #33618
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:两处文字,不动代码。错误码台账里 `OS_PROTOCOL_INCOMPATIBLE` 那一行的注释,以及测试清单
`platform-core.manifest-install-contract` 的 acceptance[1](rev 10 →
11)。两处都改为与已发布的拒绝一致:迁移命令只在迁移下限(16)到运行时主版本之间给出,低于下限或高于运行时都不给。
- 为什么改:#33466 已让低于下限的包不再收到注定失败的 `migrate meta --from
N`,但这两处文字仍写着"总会给迁移命令",照着读的 agent 和 QA 会得出错误预期。
- 风险与回滚:只是注释和 QA 清单文字,运行行为不变;spec 的 `*.zod.ts` 随包发布,所以带一个 patch
changeset。回滚即还原本 PR。
- 先看:① `packages/spec/src/api/error-code-ledger.zod.ts` 的
`OS_PROTOCOL_INCOMPATIBLE` 注释;②
`docs/qa/platform-checklist/areas/platform-core.json` 该项 acceptance[1]
与新增 history 行;③ changeset。
- 两分钟验证:`node scripts/check-platform-checklist.mjs`,预期退出码 0 且打印 OK。
- 需要你做的:无,席位落地。
## What changes
- **`packages/spec/src/api/error-code-ledger.zod.ts`, the comment on the
`OS_PROTOCOL_INCOMPATIBLE` row.** The comment said the remedy is
`objectstack migrate meta --from N`, and listed `migrateCommand` among
the `error.details` members unconditionally. It now states the shipped
shape, read from `checkProtocolCompat`
(`packages/metadata-core/src/protocol-handshake.ts`) at base
`895783a1e8`:
- `requiredRange`, `rangeSource`, `protocolVersion` and `targetMajor`
are on every refusal.
- `migrateCommand` is `objectstack migrate meta --from N` for a target
major from the support floor up to the runtime's. The floor is
`MIGRATE_META_SUPPORT_FLOOR` = 16, which a test holds equal to the
spec's `MIGRATION_SUPPORT_FLOOR`.
- `migrateCommand` is the bare `objectstack migrate meta` when the
target major is null.
- It is absent when the target is AHEAD of the runtime (#26480) or BELOW
the floor (#33466). In both cases the message names the remedies that
apply.
This is a line comment, not a `.describe()`, so no generator reads it.
The row and the code are unchanged.
- **`docs/qa/platform-checklist/areas/platform-core.json`, item
`platform-core.manifest-install-contract`.**
- acceptance[1] now scopes `migrateCommand` to the floor. At or above
the floor and at or below the runtime, the refusal carries `--from
TARGET`. Below the floor, it carries none, and the message names a build
for this runtime's protocol, or reaching protocol 16 by another path and
then `--from 16`. The clause also says every refusal carries
`targetMajor`.
- Revision 10 → 11, with a history row citing #33618.
- The steps, the verify text and the other clauses are unchanged. On an
18 runtime the `^(RT-1)` probe targets 17, which is above the floor.
- **`.changeset/33618-protocol-incompatible-ledger-comment.md`**: a
`@objectstack/spec` patch. `src/**/*.zod.ts` is in the spec's `files[]`,
so the comment ships.
## Tests
No behaviour changed, so there is no new test and no ablation. Both
diffs are text, and os-dev.md does not ablate docs or comments.
- `node scripts/check-platform-checklist.mjs`: exit 0, `OK — 16 areas,
429 items`.
- A semantic diff parsed `platform-core.json` at origin/main and at
HEAD. Item order is unchanged (47 items). Only
`platform-core.manifest-install-contract` differs, and only in
`acceptance` (index 1 alone), `revision` (10 → 11) and `history` (10 →
11 rows).
## Acceptance notes
- **Overlap with #33931.** #33931 (#33860) edited a different item in
the same area file, `platform-core.bare-name-one-holder-refusal`.
Neither path is routed to a merge driver (`git check-attr merge` answers
`unspecified` for both), so `git merge-tree` gives the textual answer.
Before #33931 merged, both runs exited 0 and printed only the tree id,
with no conflicted path:
```text
git merge-tree --write-tree --name-only 1ca1a70 d6f080e (#33931
head; merge base 895783a)
3616dbc86b76d2e05519e3b4eafcbd695af3a4cf
EXIT=0
git merge-tree --write-tree --name-only 1ca1a70 895783a
(origin/main then)
780e88e
EXIT=0
```
#33931 then landed on main as de905cc. This branch merged origin/main
at 03b4d2d without conflict (head dcda950). A semantic diff
against main still shows only `manifest-install-contract` changed:
acceptance[1], revision 10 → 11, and one more history row. `git
merge-tree --write-tree --name-only HEAD origin/main` at a3aa1d2 also
exits 0.
- `docs/adr/0087-metadata-protocol-upgrade-contract.md` still teaches
the old shape in three places. These are reported to the skills carrier,
not edited here:
- Line 116 (D1): "the exact replay command (`objectstack migrate meta
--from N`, D3)".
- Line 191: "`objectstack migrate meta --from 10` composes the steps".
- Line 536: "`migrate meta --from 10` therefore reaches protocol 15".
With the floor at 16, the CLI refuses `--from 10`.
## Verification
All readings are at head `dcda950ef9`, after the merge of origin/main
`03b4d2d1f4`. The spec, formula and lint closure was rebuilt under the
verify lock first.
<details><summary>Derived gate families: 89 derived, 87 exit 0, 2 NOT
MEASURED (exit 3), 0 UNRUN</summary>
```text
node scripts/pm/dispatch-gates.mjs --ran ran-head.list (exit 0)
Run reconciliation — 89 derived, 87 run, 2 NOT-MEASURED, 0 UNRUN.
pnpm check:lean-entry-closure :: exit 3 PREREQUISITE NOT MET (packages/objectql/dist absent; the gate loads built entries)
pnpm check:dual-build-cjs-loads :: exit 3 PREREQUISITE NOT MET (needs a whole-workspace build)
```
Neither gate reads a source comment or a checklist file. Both are left
to CI's Lint and Repo Gates.
</details>
<details><summary>spec package, checklist validator, lint</summary>
```text
pnpm --filter @objectstack/spec build && check:generated VERDICT command-exit 0 · All 14 generated artifacts are up to date
pnpm --filter @objectstack/spec test Test Files 842 passed (842) · Tests 26956 passed | 1 todo (VERDICT command-exit 0, at 1ca1a70)
pnpm --filter @objectstack/spec typecheck exit 0 (tsc --noEmit, check:scripts-typecheck, check:test-typecheck OK)
node scripts/check-platform-checklist.mjs exit 0 · OK — 16 areas, 429 items
npx eslint --no-inline-config packages/spec/src/api/error-code-ledger.zod.ts exit 0
```
The merge brought no change to either file, so the spec test and
typecheck reading at 1ca1a70 holds for these paths. CI's Test Core
and TypeScript Type Check rerun them on the head.
</details>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01QsR2jTEivi2wogPpeo3xd5
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>1 parent bf594eb commit fb3d1ff
3 files changed
Lines changed: 38 additions & 9 deletions
File tree
- .changeset
- docs/qa/platform-checklist/areas
- packages/spec/src/api
| 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 | |
|---|---|---|---|
| |||
1647 | 1647 | | |
1648 | 1648 | | |
1649 | 1649 | | |
1650 | | - | |
| 1650 | + | |
1651 | 1651 | | |
1652 | 1652 | | |
1653 | 1653 | | |
| |||
1687 | 1687 | | |
1688 | 1688 | | |
1689 | 1689 | | |
1690 | | - | |
| 1690 | + | |
1691 | 1691 | | |
1692 | 1692 | | |
1693 | 1693 | | |
| |||
1797 | 1797 | | |
1798 | 1798 | | |
1799 | 1799 | | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
1800 | 1806 | | |
1801 | 1807 | | |
1802 | 1808 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
839 | 842 | | |
840 | 843 | | |
841 | | - | |
842 | | - | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
843 | 856 | | |
844 | 857 | | |
845 | 858 | | |
| |||
0 commit comments