Skip to content

chore(release)!: enter Changesets pre mode (next) so 19.0.0 opens; retire the 18.6.0 i18n keys no code reads - #37230

Merged
os-zhuang merged 4 commits into
mainfrom
claude/issue-37223-i18n-removed-keys-major
Nov 25, 2026
Merged

os-zhuang merged 4 commits into
mainfrom
claude/issue-37223-i18n-removed-keys-major

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #37223

Clause-②: yes (narrowing)
Metadata-protocol: none
Skills-docs: none — no file under skills/ or content/docs names any of the 67 retired keys (git grep, each key)

维护者速读

  • 用户无感:合并后主干进入预发布阶段,下一次出版本得到 19.0.0-next.0;同时把 18.6.0 已发布、现已没有代码读取的 67 条界面文案在新大版本里声明退役。
  • 属于「界面文案清理」大卡;按你「下一版是大版本 19.0.0」和「走预发布路线」两次裁决,照上一次开大版本(18)时的同款做法。
  • 合并本身不发布任何东西:每一次预发布都要你批准才会发出,普通安装拿到的仍是 18.x;若有部署改写过这些文案,改写不再生效;在切出第一个预发布版之前,删掉三个新文件即可撤回。
  • 要你做的两件事(按 7158089101 的裁决 A):① 合并前给本单加上 allow-major 标签,作为你对 19.0.0 大版本的人工确认;在加标签之前,「Check Changeset」因级别检查(Metadata-protocol: none 旁有 major)保持红色,属预期,门禁本身不改。② 由你亲自合并本单(和上次开 18 一样,席位只审不合)。

What changes

  1. .changeset/pre.json, written by pnpm changeset pre enter next (@changesets/cli 3.0.3) and committed as the tool wrote it: { "mode": "pre", "tag": "next" }. ⛔ No changeset version output is committed, and nothing was published.
  2. .changeset/37223-v19-line-opens.md, front matter "@objectstack/spec": major: the v19 line's opening note (rulings 7153326968 and 7153441862), Clause-②: no, and its ADR-0087 not-required (no-migration-prescription) disposition, in the form the v18 opening (chore(release): enter Changesets pre mode (next) with one major marker, so v18 opens at 18.0.0-next.0 #22084) used. Why spec: the protocol lockstep admits PROTOCOL_VERSION one major ahead only in pre mode WITH a pending @objectstack/spec major, and scripts/sync-protocol-version.mjs derives the protocol version from spec's major.
  3. .changeset/37223-i18n-removed-released-keys.md, '@object-ui/i18n': major: the BREAKING banner, its own ADR-0087 disposition, and the 「Removed translation keys」 list (67 keys, each once, with its locales). Two majors in one fixed group still give one 19.0.0; the changeset says so.
  4. ui/packages/i18n/scripts/released-keys-removed.mjs (zero third-party deps): reads the package's published catalogues out of git at the tag @object-ui/i18n@18.6.0 and at a ref (default origin/main), and prints every key the tag has that the ref lacks, grouped by namespace, with the locales it was removed from. Which files are catalogues is read from the package: package.json exports, the all-packs door src/locales/index.ts, and each non-pack-shaped namespace's index.ts (studio).

No code change, no key restored, no PROTOCOL_VERSION edit, no allow-major label, no edit to .changeset/config.json, to either changeset guard, or to release.yml.

Reproduction

$ node ui/packages/i18n/scripts/released-keys-removed.mjs
Keys in @object-ui/i18n@18.6.0 absent at origin/main (d15e439191): 67
## locales (32)    every one removed from all 11 locales (ar, de, en, es, fr, ja, ko, pt-BR, ru, zh-Hans, zh-Hant)
## studio (35)     every one removed from both locales the namespace ships (en, zh)

The 35 Studio keys are the ones the card expected (#36501, #36652). The 32 language-pack keys are extra; some of them are also named in earlier pending patch changesets, and this one lists the whole 18.6.0 set once for the major's notes. Keys that the open PRs #37169, #37166 and #37168 remove are still on main, so they are not reported or declared here. No non-test file under ui/, apps/ or packages/ quotes any of the 67 keys.

The no-major guard reads pre.json from the head checkout

Leg Reading at e43e989948
As committed, node scripts/check-changeset-no-major.mjs --base origin/main exit 0: Changesets is in pre-release mode (tag: next) — major bumps are the expected product of an RC window; skipping the no-major guard.
Control, .changeset/pre.json deleted from the working tree only exit 1: This PR introduces changeset(s) that declare a major bump.
Restored with git checkout HEAD -- .changeset/pre.json git diff HEAD empty (0 bytes), blob hash equals the HEAD blob, guard exit 0 again

Pins (throwaway detached worktree at e43e989948, never committed, removed after)

  • pnpm changeset version exits 0. All 112 fixed-group members read 19.0.0-next.0. pre.json is unchanged. packages/spec/CHANGELOG.md and ui/packages/i18n/CHANGELOG.md each open ## 19.0.0-next.0 / ### Major Changes.
  • node scripts/sync-protocol-version.mjs (the root version script's next step) rewrites PROTOCOL_VERSION in packages/spec/src/kernel/protocol-version.ts: PROTOCOL_VERSION 18.0.0 → 19.0.0 (lockstep with @objectstack/spec@19.0.0-next.0).
  • protocol-version.test.ts on that tree: Test Files 1 passed (1), Tests 3 passed (3).

release.yml in pre mode: next gets the prerelease, latest stays 18.x

A reading of the files; nothing edited, nothing run.

  • Job publish, step Publish to npm + push version tags runs pnpm run release, which ends in scripts/release-publish.sh, which runs changeset publish with no --tag.
  • @changesets/cli 3.0.3 getReleaseTag (dist/getPublishPlan.mjs:599-601): with a pre state and no --tag, the tag is preState.tag = next, unless every published version of a package is already a next prerelease. dist/publish.mjs refuses a custom tag in pre mode.
  • npm view today: @objectstack/spec and @object-ui/i18n read latest = 18.6.0, next = 0.0.0-next-20261125013212 (a snapshot, whose prerelease id is not next), so neither is "only-pre". Each publishes 19.0.0-next.0 to next; latest stays 18.6.0.

Acceptance notes

  • Open question: the level axis stays red. check-changeset-no-major.mjs's level axis refuses Metadata-protocol: none beside any entry at minor or above (verdict none-minor). It runs whatever the pre mode is, and only allow-major skips the step. Measured at e43e989948 with a pull_request payload carrying this body's two lines: the no-major guard is exempt (pre mode), and the level axis exits 1. The v18 opening passed because its body had no Metadata-protocol: line. This PR changes neither the gate nor the declaration.
  • The version-PR lane refuses the protocol move. release.yml's version-pr validation marks a pass that rewrites packages/spec/src/kernel/protocol-version.ts as UNVALIDATED and refuses it, because the example apps declare engines.protocol: '^18' (examples/app-crm, app-showcase, app-todo) and the ADR-0087 D1 handshake would refuse them under 19. So the version step would sync the constant, but that lane will not carry it: PROTOCOL_VERSION → 19.0.0 still needs its own reviewed PR (19.0.0 大版本:PROTOCOL_VERSION 升到 19.0.0(预发布模式进入之后) #37229), which should also move the example apps' engines.protocol. With this PR's pre mode and pending spec major, the protocol lockstep admits the constant one major ahead.
  • pnpm check:pm-dispatch-gates is green with pre.json tracked (2313 cases pass), and the chore(release): enter Changesets pre mode (next) with one major marker, so v18 opens at 18.0.0-next.0 #22084 amendment (CONSUMED_PRERELEASE_EXCLUDED in scripts/check-adr-0087-registration.mjs) is still on main. No gate script is edited.
  • Landing: the maintainer merges (precedent chore(release): enter Changesets pre mode (next) with one major marker, so v18 opens at 18.0.0-next.0 #22084); seats review only. The PR stays draft.

Verification

Two-minute check: node scripts/check-changeset-no-major.mjs --base origin/main prints the pre-mode exemption line and exits 0; node ui/packages/i18n/scripts/released-keys-removed.mjs prints 67 on its first line.

Read first:

  1. .changeset/pre.json and .changeset/37223-v19-line-opens.md: the line opening.
  2. .changeset/37223-i18n-removed-released-keys.md: the list.
  3. ui/packages/i18n/scripts/released-keys-removed.mjs, discover().
Local gates at e43e989: 36 commands, all exit 0
exit 0 :: cd ui && node scripts/check-ui-root-lookups.mjs
exit 0 :: node scripts/check-adr-0087-registration.mjs --base origin/main
exit 0 :: node scripts/check-adr-0087-registration.mjs --self-test
exit 0 :: node scripts/check-changeset-fixed.mjs
exit 0 :: node scripts/check-changeset-fixed.mjs --self-test
exit 0 :: node scripts/check-changeset-no-major.mjs --base origin/main
exit 0 :: node scripts/check-changeset-no-major.mjs --self-test
exit 0 :: node scripts/check-closing-keyword-parity.mjs
exit 0 :: node scripts/check-closing-keyword-parity.mjs --self-test
exit 0 :: node scripts/check-comment-mask-corpus.mjs
exit 0 :: node scripts/check-empty-changeset.mjs --base origin/main
exit 0 :: node scripts/check-empty-changeset.mjs --self-test
exit 0 :: node scripts/check-sdui-manifest.mjs
exit 0 :: node scripts/check-sdui-manifest.mjs --self-test
exit 0 :: node scripts/ci/snapshot-next.mjs --self-test
exit 0 :: node scripts/pm/check-governed-queue-guard.mjs --self-test
exit 0 :: node scripts/pm/release-rehearsal-clone.mjs --self-test
exit 0 :: node scripts/release-pending-publish.mjs --self-test
exit 0 :: pnpm check:adr-anchors
exit 0 :: pnpm check:changeset-gate-self-tests
exit 0 :: pnpm check:closed-ceremony-text
exit 0 :: pnpm check:dispatcher-error-vocabulary
exit 0 :: pnpm check:docs-image-tag
exit 0 :: pnpm check:driver-memory-census
exit 0 :: pnpm check:gitlink-declared
exit 0 :: pnpm check:nul-bytes
exit 0 :: pnpm check:pm-dispatch-gates
exit 0 :: pnpm check:published-files
exit 0 :: pnpm check:refd-timer-probe
exit 0 :: pnpm check:registry-log-declared
exit 0 :: pnpm check:rest-log-spy-declared
exit 0 :: pnpm check:skill-identifier-liveness
exit 0 :: pnpm check:test-source-alias
exit 0 :: pnpm check:tier-file-adoption
exit 0 :: pnpm check:undeclared-dep-imports
exit 0 :: pnpm check:watch-hint-literal

node scripts/check-governed-merges.mjs --pr 37230: 0 of 4 path(s) hit the register · NOT governed · 368 changed line(s) ≤ 3000.

Dogfood battery (! title): Test Files 487 passed | 3 skipped (490), Tests 4128 passed | 68 skipped (4196), lock VERDICT command-exit 0, measured at e90f9aa1b9. The commits after it add .changeset/ files and rework a script nothing imports.


Generated by Claude Code

…main no longer has

A reproduction script diffs the package's published catalogues at the
release tag against a ref, and one major changeset lists every key it
reports under "Removed translation keys".

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 25, 2026
…form

check-ui-root-lookups refuses a `--show-toplevel` lookup and a
root-relative `REF:PATH` under ui/. git now runs in the package
directory and reads `REF:./PATH`; the output is byte-identical.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H
…ing major marker

`pnpm changeset pre enter next` wrote .changeset/pre.json as committed.
The @objectstack/spec major marker gives the protocol lockstep its
pending spec major; the i18n changeset notes the two majors give one
19.0.0.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 61ebadaa6be0534dc517b221d6289ffb5f1c5663
Local-runs: probe — the L1's read-outs in one throwaway detached worktree at this head (removed after, nothing committed or pushed): changeset pre enter next to byte-compare pre.json, changeset version to read the computed versions, the reproduction script, and the changeset guards with and without pre.json
Scope: .changeset/pre.json, .changeset/37223-v19-line-opens.md, .changeset/37223-i18n-removed-released-keys.md, ui/packages/i18n/scripts/released-keys-removed.mjs (narrowing face, Clause-②: yes (narrowing); record-recognisers.mjs --paths decides no face on the four paths, so no path is a remainder) + read in the cited code: scripts/check-changeset-no-major.mjs, .github/workflows/pr-automation.yml, .github/workflows/release.yml, scripts/ci/snapshot-next.mjs, .changeset/config.json, and the ui/packages/i18n/src catalogues at the tag @object-ui/i18n@18.6.0 and at this head

① Derived judgments

  • Clause-②: yes (narrowing) holds. The i18n changeset retires 67 keys that @object-ui/i18n@18.6.0 published. A deployment that overrides one of them loses that override, and the changeset says so.
  • The list is exact. An independent flatten of the catalogues at the tag and at this head (TypeScript transpile, not the PR's script) gives 32 removed keys in the language packs and 35 in the Studio namespace. Their union equals the changeset's 67 entries, each listed once. ar and zh-Hans remove the same 32 as en; Studio zh removes the same 35 as en. The developer, marketplace and timesheet namespaces remove 0. The PR's script prints 67 against this head and against main at 057cedfa9b6, and 0 for the tag against itself.
  • The keys are unread. No file under ui, apps, packages, examples, skills or content quotes any of the 67 outside tests and changelogs. The one substring hit, console.sidebar.keepOpen in consoleSidebarRail.ts, is a workspace-preference name, not a translation key. Twenty-four leaf and prefix patterns were grepped for dynamic reads (among them firstRunChecklist., pillar., kanbanCard.mode, recordOpen, owd.save, installedApps., saveAsMyView): the only reads found are of keys that still exist, such as console.objectView.draft.saveAsMyView and engine.packages.installedApps.upgrade.
  • Metadata-protocol: none holds. No packages/spec path, schema, route or wire shape is in the diff. Translation keys and a version marker are not metadata protocol.
  • pre.json is what the tool writes. changeset pre enter next (@changesets/cli 3.0.3, the lockfile's version) run at this head writes a file byte-equal to the committed one (sha256 25bcad2f…45d9a0d9, 37 bytes). It is also byte-equal to the file chore(release): enter Changesets pre mode (next) with one major marker, so v18 opens at 18.0.0-next.0 #22084 merged for v18.
  • Both major changesets carry an ADR-0087 disposition, and CI read them: check-adr-0087-registration: 2 declared-breaking changeset(s), each carrying an ADR-0087 disposition, both not-required (no-migration-prescription). The reasons are true: no stored row or authorable key moves. The i18n changeset carries the BREAKING banner, both declaration lines and the 「Removed translation keys」 heading that ruling 7153171432 asks for. The marker carries Clause-②: no and matches the v18 marker's form.

② Semver level

  • '@object-ui/i18n': major is the level rulings 7153171432 and 7153326968 set: the retired keys are declared in the 19.0.0 major.
  • "@objectstack/spec": major is the line-opening marker of route 「A」 (7153441862). It is not an empty major: the queue at this head holds 849 pending changesets, 85 of them with a BREAKING banner (32 of those name @objectstack/spec), all graded minor or patch under the launch-window convention.
  • Read-out of changeset version in the throwaway worktree: exit 0. All 112 members of the one fixed group move 18.6.0 to 19.0.0-next.0, and none is left behind. Twelve packages outside the group move, all private: true, each to a patch prerelease (for example @objectstack/example-crm 4.0.106 to 4.0.107-next.0, @object-ui/app-shell 18.5.0 to 18.6.0-next.0). No package outside the group goes major. pre.json is unchanged by the step, and 850 changesets move into .changeset/pre/.
  • The level axis reads none beside major as a refusal. That is the gate working as written; ruling 7158089101 「A」 keeps it and has the maintainer confirm the major with allow-major.

③ Boundary flags

  • Open question 1 (the level axis stays red): answered by ruling 7158089101 「A」. The gate is unchanged and no gate card is filed. The job log at this head shows both halves:
    • the exemption: ✓ Changesets is in pre-release mode (tag: next) — major bumps are the expected product of an RC window; skipping the no-major guard.
    • the refusal: ⛔ This PR declares clause-② yes (narrowing) and metadata-protocol none, and it introduces a changeset entry graded minor or above, listing both entries.
      It is the job's only error. allow-major clears it: the guard step's if: reads the label live (Re-read this PR's allow-major label live), the label skips the whole step with the level axis in it (check-changeset-no-major.mjs, 「THE allow-major LABEL SKIPS THE WHOLE STEP, this block included」), and pr-automation.yml subscribes labeled, so adding the label starts a fresh run.
  • Open question 2 (who enters pre mode): answered by the seat note 7155117330 on 专题:Studio 重构——某个应用的开发界面:左侧按类型分组的菜单 → 列表 → 右侧全屏详情(去掉顶部分区) #36890. The maintainer's merge is the entry, as with chore(release): enter Changesets pre mode (next) with one major marker, so v18 opens at 18.0.0-next.0 #22084, which os-zhuang merged.
  • The control holds. With pre.json moved out of the working tree the no-major guard exits 1 (This PR introduces changeset(s) that declare a major bump); restored, it exits 0 and the tree is clean.
  • Merging publishes nothing. release-integrity sets publish-pending=true only when the push carries a version commit whose @objectstack/cli version is absent from npm; after this merge main still reads 18.6.0, which is on npm. The publish job needs that output and sits behind environment: release. The version PR is cut by the six-hour schedule or a dispatch, never by this push.
  • The daily next snapshot lane steps aside. snapshot-next.mjs turns mode: pre at the commit or at main into an rc-cycle refusal, which is one of the five expected kinds, so the scheduled run is a quiet skip: green, nothing queued, no card (ADR-0125, lines 226, 242 and 294).
  • The dev's carried finding is confirmed in release.yml: a version pass that rewrites protocol-version.ts is marked UNVALIDATED and the version-pr job exits 1. So from this merge until 19.0.0 大版本:PROTOCOL_VERSION 升到 19.0.0(预发布模式进入之后) #37229 lands, each six-hour version-PR refresh is expected to be red, and no 19.0.0-next.0 version PR is produced. That is the order ruling 7153441862 sets (pre mode first, then 19.0.0 大版本:PROTOCOL_VERSION 升到 19.0.0(预发布模式进入之后) #37229).
  • SQL push-down: no query, id materialisation or join in the diff. Not a finding.
  • The merge commit 61ebadaa6b has the same tree as git merge-tree of its parents (216cbfbd). The head is 5 commits behind main (057cedfa9b6) and merges clean; the result differs from main only by this PR's 4 files.

④ Design judgment

  • The narrowing takes away 67 published translation keys at the consumer. Under the two rulings that is the declared act of the 19.0.0 major. It is declared in the place the release notes read, with the consumer's remedy stated.
  • Entering pre mode by a committed pre.json plus one marker follows the repository's only precedent and changes no gate, no config.json and no workflow.
  • The reproduction script reads both refs out of git and finds the catalogues from the package's own exports and index files, so the count does not depend on the checkout. It is outside the package's files (dist, README.md, CHANGELOG.md, LICENSE) and is not published.
  • N1 — the marker says of the line's breaking changes that 「The first is @object-ui/i18n's retirement」. The queue already holds 85 changesets with a BREAKING banner, so it is the first graded major, not the first breaking change. The sentence lands in every fixed package's changelog.
  • N2 — the PR body's pins and repro quote e43e989948 and d15e439191. The head is one clean merge of main later; the readings were re-taken here at 61ebadaa6b and agree.
  • N3 — released-keys-removed.mjs ignores an argument it does not know (HEAD without --ref silently reads origin/main). It also prints the tag object's id (0dbef86ce39) where the commit is 958ee03594.

Implemented-by: claude/issue-37223-i18n-removed-keys-major
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

No must-fix, no should-fix.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 61ebadaa6be0534dc517b221d6289ffb5f1c5663 · 2026-11-25T10:51Z

First L1 on PR #37230, for card #37223. It is the pre-enter PR for 19.0.0 under rulings 7153326968, 7153441862 and 7158089101, on the shape of #22084 (v18). The diff is 4 files, +368/−0, not governed. The maintainer merges it; the seat does not.

What the PR is

  • .changeset/pre.json: mode: pre, tag: next.
  • .changeset/37223-v19-line-opens.md: "@objectstack/spec": major, the line-opening marker.
  • .changeset/37223-i18n-removed-released-keys.md: '@object-ui/i18n': major, BREAKING, with the 「Removed translation keys」 list.
  • ui/packages/i18n/scripts/released-keys-removed.mjs: the reproduction.
  • No code, no key restored, no PROTOCOL_VERSION edit, no change to config.json, a guard or a workflow.

The dev's pins, re-taken at this head

  • Repro reads 67: confirmed. The script prints 67 against this head and against main at 057cedfa9b6, and 0 for the tag against itself. An independent flatten of the catalogues gives the same 32 + 35 keys, equal to the changeset's list entry for entry.
  • The 67 keys are unread: confirmed. No non-test source quotes any of them, and 24 leaf and prefix greps found no dynamic read.
  • pre.json as the tool writes it: confirmed. changeset pre enter next (3.0.3) at this head writes a byte-equal file, and chore(release): enter Changesets pre mode (next) with one major marker, so v18 opens at 18.0.0-next.0 #22084's file is byte-equal too.
  • The no-major guard is exempt in pre mode, and the control is red: confirmed. Exit 0 with the exemption line as committed; exit 1 with pre.json moved aside; exit 0 again once restored, tree clean.
  • The changeset gates are green: confirmed in CI at this head (ADR-0087 registration reads both dispositions; empty-changeset and the fixed-group check pass) and locally for check-changeset-fixed (112) and check-empty-changeset. check-adr-0087-registration could not be run in the throwaway worktree (no install there), so that one rests on the CI line.
  • A throwaway version step gives 19.0.0-next.0 across all 112 fixed members: confirmed. Twelve private packages outside the group take a patch prerelease. Nothing outside the group goes major.
  • next tag, latest held at 18.6.0: npm reads latest 18.6.0 and next 0.0.0-next-20261125013212 today. In pre mode changeset publish uses the pre state's tag. Not measured by a publish, which is correct.

CI at this head

  • 44 success, 13 skipped, 1 failure. The failure is Check Changeset, and its only error is the level axis: Metadata-protocol: none beside the two major entries. The same log carries the pre-mode exemption line. This is the red ruling 7158089101 「A」 expects.
  • allow-major clears it: the label is read live, it skips the whole guard step, and a labeled event starts a fresh run.

Does the merge publish anything

  • No. After the merge main still reads 18.6.0, which is on npm, so publish-pending is false. Every publish sits behind environment: release.
  • The daily next snapshot run becomes a quiet skip (rc-cycle) for the length of the cycle.

Mechanics

  • K = 5 behind main (057cedfa9b6). git merge-tree is clean, and the merged tree differs from main only by the 4 files. None of the 5 commits touches ui/packages/i18n, the guard, release.yml or config.json.
  • The head commit is a clean merge of main: its tree equals git merge-tree of its parents.

For landing

Findings

  • N1 — the marker's 「The first is @object-ui/i18n's retirement」 reads as the line's first breaking change. The queue already holds 85 changesets with a BREAKING banner; it is the first graded major. The sentence goes into the changelogs.
  • N2 — the PR body's pins quote e43e989948 and the repro quotes d15e439191. The head is one clean merge later, and the readings hold there.
  • N3 — the repro script ignores an unknown argument without saying so, and prints the tag object's id, not the commit's.

Contract review at the same head: PASS, in the record beside this note.

No must-fix, no should-fix.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

维护者速读

  • 用户能看到什么变化:合并当下没有变化,普通安装拿到的仍是 18.6.0。主干从此进入 19 的预发布阶段,下一次出版本是 19.0.0-next.0,只有指定 @next 的人才会装到。18.6.0 发过、现在已经没有界面读取的 67 条界面文案,在 19 里正式声明退役(语言包 32 条,Studio 35 条)。
  • 为什么做:你定了「下一版是大版本 19.0.0」并选了预发布路线「A」。这一单按上次开 18(chore(release): enter Changesets pre mode (next) with one major marker, so v18 opens at 18.0.0-next.0 #22084)的同样做法开 19,同时把已删文案的声明补齐(大版本声明:18.6.0 已发布、主干已删除的界面文案统一写入发版说明(约 35 条) #37223)。
  • 出错会怎样:合并本身不发布任何东西。最坏是某个部署改写过这 67 条文案里的某一条,改写不再显示。在切出第一个预发布版之前,删掉三个新文件即可撤回。合并后到 19.0.0 大版本:PROTOCOL_VERSION 升到 19.0.0(预发布模式进入之后) #37229(协议版本号改 19)落地之前,每 6 小时一次的版本单刷新会是红的,属预期。现有的版本单 chore: version packages (next) #35129 是本单之前生成的;请等它被刷新成 19.0.0-next.0 之后再看,不要按现在的样子合并(席位未逐项核对其内容)。
  • 要你做什么:① 给本单加上 allow-major 标签,这是你对 19.0.0 大版本的人工确认,加上后「Check Changeset」重跑变绿;② 合并本单,合并这一下就是进入预发布阶段;③ 之后每一次 19.0.0-next.N 发布,都在 environment: release 等你批准。契约审核 PASS:记录 7160264871,Head-sha 61ebadaa6be0534dc517b221d6289ffb5f1c5663;席位核对 ACCEPT:7160281044。目前 1 个失败检查,就是 ① 要清掉的那个。

席位意见:通过。pre.json 与工具写出的逐字节一致,也与 #22084 的一致;67 条文案逐条核对过,确实没有代码读取;试算版本得到 112 个包全部是 19.0.0-next.0,没有别的包升大版本;合并不会触发发布,每日快照会自动让路。唯一的红是裁决 7158089101 预期的那一项。剩 3 处小瑕疵(一句发版说明的措辞、正文里的旧提交号、脚本对未知参数不报错),不影响合并。

Hand-off · 2026-11-25T10:52Z · @os-zhuang — PR #37230 (card #37223) is ready for you. It enters Changesets pre mode (next) for 19.0.0, by rulings 7153441862 and 7158089101 「A」. Seat ACCEPT 7160281044 and contract review PASS 7160264871 (CONTRACT_REVIEW_TIER), Head-sha 61ebadaa6be0534dc517b221d6289ffb5f1c5663; 1 failed check-run, Check Changeset's level axis, which your allow-major label clears. The seat does not merge this PR: your merge is the pre-mode entry, and each 19.0.0-next.N publish then waits for your approval at environment: release.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 25, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 25, 2026 11:45
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 5cf9941 Nov 25, 2026
67 of 69 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-37223-i18n-removed-keys-major branch November 25, 2026 12:51
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…dshake reads '^19' (objectstack-ai#37314)

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Fixes objectstack-ai#37229
Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up objectstack-ai#37298

## 维护者速读

- 协议版本从 18 升到 19:仓库里每个示例应用、连接器应用和文档示例都改为声明 19,新建项目模板在出预发布版时自动改成 19;只有装
19 预发布版的人会碰到。
- 属于「19.0.0 大版本」路线(你选的方案「A」第 2 项);它解开 19.0.0-next 的版本
PR:出版本的流水线不接受顺手改协议版本,所以由这一单先改好。
- 装了 19 预发布版、但应用仍声明 18 的人,启动时会被拒绝并提示改成
19(单一配置文件的应用有一条命令可自动改;多包组合的应用要逐个包手改);18.x 正式版用户不受影响;撤回即还原本单。
- 按你对冲突的裁决「A」,本单还改了一道检查:预发布模式下且 spec 已排定大版本时,下架提示写「19.0.0」不再被拦;五条下架提示因此写
19.0.0。
- 要你做的:「进入预发布模式」那一单已合并;本单是大版本变更,请你亲自把关合并。「Check
Changeset」是有意的红:本单改了别人已合并的两条变更说明(各改一处事实)。另一单 objectstack-ai#37298 改三个技能文件,在本单合入之后合并。

## What changes

On the shape of the v18 move (objectstack-ai#22215, commit `4e9fe9f`), minus
`skills/**`.

- **`packages/spec/src/kernel/protocol-version.ts`:** `PROTOCOL_VERSION
= '19.0.0'`. The docblock names protocol 19 as the pre-mode lockstep
exception (ruling records 6049734955 and 7153441862), and says the blank
template follows at the version pass and the published skills' examples
in a change of their own.
- **Handshakes:** 85 sites in 67 files move `engines.protocol` from
`'^18'` to `'^19'`. Each is a manifest that stands for "an app on the
current protocol", and none of them asserts on the range.

| Directory | Files | Sites |
|---|---|---|
| `examples/` (crm, showcase, todo, starter, multi-package ×2) | 6 | 6 |
| `packages/apps/connector-{docusign,github,stripe}` | 3 | 3 |
| `packages/cli` (tests) | 40 | 56 |
| `packages/qa` (7 dogfood tests, the sql-perf bench app, the scenarios
exporter test) | 9 | 9 |
| `packages/lint`, `packages/spec`, `packages/metadata` (tests) | 4 | 5
|
| `packages/mcp/README.md` | 1 | 2 |
| `content/docs` (cli, your-first-project, upgrading) | 3 | 3 |
| `docs/qa/scenarios/builds/travel_expense.json` | 1 | 1 |

`examples/app-starter` arrived from `main` (objectstack-ai#37399) declaring `'^18'`
and moves with the merge. Its boot test, which installs the starter
through `MarketplaceInstallLocalPlugin`, passes 5/5 at `'^19'`. At
`'^18'` it reads 3 failed | 2 passed, refused
`OS_PROTOCOL_INCOMPATIBLE`.

- **`docs/qa/platform-checklist/areas/cli.json`:** one prose fact, "the
stock showcase declares `'^18'`", now reads `'^19'`.
- **`docs/qa/scenarios/builds/travel_expense.provenance.json`:**
`sha256` is the build's hash as it now stands, and a second `amended`
entry names the one edit (`engines.protocol` `'^18'` → `'^19'`) and the
hash it replaced. `cardSha256` is unchanged.
- **The protocol 19 migration step (ADR-0087).**
`packages/spec/src/migrations/registry.ts.template` opens `step19`, with
no conversions yet. Its first semantic entry,
`entries/semantic/19.protocol-18-range-refused.ts`, is the refusal this
PR causes, with the prescription: `--write` rewrites the range of a root
`defineStack` manifest; for a manifest `composeStacks` composes, it
writes nothing and lists the range for a hand edit in each package
manifest. Its acceptance text claims only what the hop does: it edits or
refuses the range. A key retired in this release that the metadata still
carries is refused at parse by its own message, which names its own
remedy. The text no longer says that `validate` passes or that every
package installs. The upgrade guide now generates three hop sections
(17, 18, 19). See "Why a step-19 entry" below.
- **Removal prescriptions stamped after 18.6.0 name `@objectstack/spec
19.0.0`.** `retired-key-removal-version.pin.test.ts` derives the
removing release's major from `PROTOCOL_MAJOR`, so at 19 the retirements
not in the published 18.6.0 name 19.0.0, not 18.7.0, a release the v19
line never cuts: `object-grid` `singleClickEdit` (`component.zod.ts`),
the boolean `field.inlineEdit` (`field.zod.ts`), `listView.columnState`
and `view.columnState` (`view.zod.ts`), and `seed.mode` `'insert'` /
`'replace'` (`seed.zod.ts`). Their text pins, the regenerated
`content/docs/references/ui/{component,view}.mdx`,
`content/docs/data-modeling/seed-data.mdx` and the metadata-protocol
seed pin follow.
- **`scripts/check-future-spec-major.mjs` reads the pre-mode window
(ruling record 7176929521, option A).** On a stable `@objectstack/spec`
label, with `.changeset/pre.json` at `"mode": "pre"` and a pending
changeset declaring `"@objectstack/spec": major`, the next publish is
label + 1, so the gate judges citations against 19 here. That is why the
prescriptions above can name `@objectstack/spec 19.0.0`. The window is
read through `check-changeset-no-major.mjs`'s
`readProtocolLockstepInputs`, the reader the protocol lockstep already
uses; there is no second parser. That file's docblock now names its
three importers (`check-docs-image-tag.mjs`,
`check-future-spec-major.mjs`, `pm/l1-face.mjs`); the change is a
comment. Label + 2, pre mode without a pending spec major, a pending
spec major outside pre mode and a prerelease label each open nothing;
five new self-test rows pin those five cases (34 → 39 cases). An
unreadable `.changeset/` opens nothing either, by the code; no row pins
it. The stable-label condition is the same one `judgeProtocolLockstep`
applies: on a `19.0.0-next.N` label the label's own major is already the
carrier. Reverse verification: with the window condition ablated, the
gate reads 14 problems, the 14 sites.
- **Two fixtures pay a dynamic load at module top**
(`validate-flow-region-shape.test.ts`,
`plugin-artifact-packages-attribution.test.ts`).
`check:test-source-alias` judges every test file a diff edits, and both
edits here are the range literal. The gate prescribes exactly these
imports.
- **`.changeset/37229-protocol-19.md`:** `"@objectstack/spec": minor`
and `"@objectstack/mcp": patch` (its shipped `README.md` changes), the
two declaration lines, a BREAKING note with the FROM → TO and the
command, and `registered protocol-18-range-refused`.
- **DELIBERATE CORRECTION of two existing changesets.** `Check
Changeset` stays red on both by design: each note is on the merge base,
and each changes only the facts this PR makes false.
- `.changeset/37223-v19-line-opens.md` (carried N1 of objectstack-ai#37230's L1, and
N3 of this PR's L1), two sentences. "The first is `@object-ui/i18n`'s
retirement …" now reads "The first change graded `major` is
`@object-ui/i18n`'s retirement …", because this PR's protocol move is a
breaking change graded `minor`. "`PROTOCOL_VERSION` follows
`@objectstack/spec`'s major at version time." now reads
"`PROTOCOL_VERSION` moves to 19 ahead of the version pass, in its own
changeset."
- `.changeset/37042-skills-inline-edit-boolean.md`, one clause: "The
spec parse refuses `true` and `false` on a relationship field's
`inlineEdit` since 18.7.0" now reads "… since 19.0.0", the release the
retirement ships in.
- **Carried from objectstack-ai#37230's L1, N3 —
`ui/packages/i18n/scripts/released-keys-removed.mjs`** refuses an
argument it does not know (exit 2, naming it), and prints the tag's
commit: `^{commit}` peels the annotated tag. Measured: the tag
`@object-ui/i18n@18.6.0` is a tag object `0dbef86ce3`, and the script
now prints its commit `958ee03594`. The script is not in the package's
`files[]`, so it publishes nothing and needs no changeset.

## Judgments: every `'^18'` left in place, with its reason

| Site | Reason |
|---|---|
| `skills/**` (3 files) | Governed Tier H; the sibling PR objectstack-ai#37298. |
|
`packages/create-objectstack/src/templates/blank/objectstack.config.ts:38`
| The version pass stamps it with the template's `@objectstack/*`
versions, and `template-consistency.test.ts` holds it equal to the
scaffolder major (create-objectstack is 18.6.0). Measured: moved to
`'^19'` now, that test goes red; the version-pass rehearsal below stamps
it `'^19'`. Same judgment as objectstack-ai#22215. |
| `packages/cli/src/utils/protocol-version-gap.test.ts:82` | Paired with
an explicit installed `'17.2.0'`: "a newer major is silent". The subject
is the pairing, not the current protocol. |
| `packages/metadata-core/src/artifact-forward-conversion*.test.ts`,
`protocol-handshake.test.ts` | The subject is the artifact's floor
against an injected runtime label (the v18 prerelease major-step
window), or a range/major pair. No handshake against `PROTOCOL_VERSION`
runs. |
|
`packages/metadata/src/plugin-artifact-forward-conversion-{major-step,package-body}.test.ts`
| The same age subject at the metadata door, which runs no handshake. |
| `docs/qa/platform-checklist/areas/platform-core.json`, item
`platform-core.protocol-18-handshake-and-stored-replay` | Revised in
place to protocol 19 (revision 6, with its history entry). The id keeps
its protocol-18 slug because ids are immutable. Its `'^18'` now stands
for the refused case: `'^18'` → 422 `OS_PROTOCOL_INCOMPATIBLE` naming
`os migrate meta --from 18`, `'^19'` admitted, and the artifact step
edits the copy's range to `'>=18.0.0'`, as the option-B fixture does. |
| `content/docs/releases/**`, `docs/adr/**`, `**/CHANGELOG.md`,
`.github/workflows/release.yml` (comment), script comments |
Release-owned, governed or historical prose. |
| `ui/**` tests,
`packages/runtime/src/domains/packages-ensure-customization.test.ts`,
`scripts/docs-audit/affected-docs.mjs` | Not a protocol handshake
(`requiredRange` of a later refusal, a package-dependency range, a React
peer range). |

Moved to `'>=18.0.0'` (5 sites, commit `e05fdf6f`):
`packages/runtime/src/standalone-stack-option-b-forward-conversion.test.ts`.
It boots through the load seam, which refuses `'^18'` at protocol 19.
Measured: `ProtocolIncompatibleError: package 'com.test.ob.core' targets
protocol ^18 … Run: objectstack migrate meta --from 18`, 3 cases. Its
subject is the conversion window, which opens on the floor. `'>=18.0.0'`
keeps the floor (18.0.0, as `parseRangeFloor` reads `^18`) and admits
19. This is the same move as objectstack-ai#22215's two runtime fixtures (`>=17.1.0`).
The fixture's docblock now says why, so a later sweep to `'^19'` does
not close the window.

## Why a step-19 entry (the ADR-0087 disposition)

`Metadata-protocol:` is judged from content. A 19 runtime refuses an
authored value, `engines.protocol: '^18'`, that 18 admitted. That is
`narrowed`, and the `Clause-②` arm is `narrowing`, as in objectstack-ai#22215. On a
declared `narrowed`, `check:adr-0087-registration` refuses `not-required
(no-migration-prescription)` outright and asks for a registered entry.
Measured: "`not-required (no-migration-prescription)` is refused on a
changeset that declares `Metadata-protocol: narrowed` … fix: register an
entry under packages/spec/src/migrations/entries/semantic/". No entry at
the merge base covers the refusal, so this PR opens step 19 with one
entry, and the upgrade guide carries the prescription.

## Acceptance notes

- **Docs versus npm `latest`.** The three docs pages show `'^19'`, as in
objectstack-ai#22215. npm `latest` stays 18.6.0 until 19.0 GA, and an 18.x runtime
refuses `'^19'`. The changeset says to move the range together with the
`@objectstack/*` versions.
- **Size.** 92 files, +440 / −161 against `main` (GitHub at
`3811cd10f5a`), under the 3,000-line threshold.
- **Out of this PR, found by the version-pass rehearsal.** On the
post-version tree, `check:release-notes` is red: `@objectstack/spec`
ships 19.x and there is no curated `content/docs/releases/v19` page. It
is red on the control leg too (main + objectstack-ai#37230, without this PR), so
objectstack-ai#37230's `major` causes it, not this PR. Release pages are
release-owned, so this PR does not write one. Until one exists, the
version-PR lane still refuses the 19.0.0-next refresh, on that gate
alone.
- **objectstack-ai#37287 and step 19.** objectstack-ai#37287 registered its retirement,
`KnowledgeChunk.metadata`, under step 18; it reached this branch through
the merge of `main`, and its refusal says "removed in @objectstack/spec
18" (`packages/spec/src/ai/knowledge-document.zod.ts:61`). Once protocol
19 is on `main`, `os migrate meta --from 18` replays only step 19, so a
retirement that ships on the v19 line and is filed under step 18 is not
listed to an 18 → 19 upgrader. objectstack-ai#37287 is one member of the family
"step-18 entries registered on `main` after the 18.6.0 tag" (31 step-18
semantic entry files at this head that the 18.6.0 tag does not carry,
and 34 on `main` at `5d21d431ec`, after objectstack-ai#37382, objectstack-ai#37392 and objectstack-ai#37395). That
card is follow-up owed (seat).
- **The dev's open questions, as built (seat reading at L1):**
- The declaration is `yes (narrowing)` + `narrowed` with a step-19
entry, rather than `semantic`.
  - The blank template stays `'^18'`, and the version pass stamps it.
- The metadata and metadata-core floor-subject sites are kept. The
option-B runtime file moves to `'>=18.0.0'`.
- The gate conflict between `check-future-spec-major` and the
removal-version pin is resolved by ruling record 7176929521, option A
(above).

## Verification

Two-minute check: `node scripts/check-future-spec-major.mjs` prints `✓
check-future-spec-major: no @objectstack/spec citation names a major
above 19` and `pre-mode window: label major 18, pre mode next, pending
major for @objectstack/spec in .changeset/37223-v19-line-opens.md — the
next publish carries 19`, and exits 0. `node
scripts/check-changeset-no-major.mjs --base origin/main` prints `✓
Protocol lockstep: PROTOCOL_VERSION major 19, @objectstack/spec@18.6.0 —
the one exception, evidenced: pre mode (tag next) and a pending major
for @objectstack/spec (.changeset/37223-v19-line-opens.md).` and exits
0.

Read first:
1. `.changeset/37229-protocol-19.md` and
`packages/spec/src/migrations/entries/semantic/19.protocol-18-range-refused.ts`:
what an upgrading author is told.
2. `packages/spec/src/migrations/registry.ts.template`, the new
`step19`: the ledger's protocol 19 step opens here.
3. `scripts/check-future-spec-major.mjs`, `judgedMajor` and the five new
self-test rows: the one gate this PR changes.
4. The Judgments table: every `'^18'` left in place.

<details><summary>Readings at <code>3811cd10f5a</code> (the dev's,
through the verify lock, and the seat's L1)</summary>

- **CI at `3811cd10f5a`:** 70 check-runs, 60 success, 9 skipped, 1
failure. The failure is `Check Changeset`, by design: its two file
annotations name the two DELIBERATE CORRECTION notes, and its ADR-0087
and no-major steps are green. All eleven required contexts are success,
`Test Core` 10/10 included, and so is `Type Check · source gates`.
- **Tests:**
- dogfood full battery (os-dev-report 7183121949 on objectstack-ai#37229): Test Files
487 passed | 3 skipped (490), Tests 4129 passed | 68 skipped (4197),
VERDICT command-exit 0.
- whole spec suite: Test Files 896 passed (896), Tests 28442 passed | 1
todo (28443).
- `examples/app-starter` boot test: 5/5 (re-run by the seat). With the
range put back to `'^18'` through `ablation-replace`, it reads 3 failed
| 2 passed, refused `OS_PROTOCOL_INCOMPATIBLE`; the restore was proven
with `git diff HEAD` empty.
- `retired-key-removal-version.pin.test.ts` and
`protocol-version.test.ts`: 2 files, 68/68 (re-run by the seat).
- **Guards:**
- `check-future-spec-major` exits 0, and `--self-test` reads `39 cases
pass` (re-run by the seat). The gate file is byte-identical to
`9ed0f5e41f6`, where the seat ablated `stable`, the pending-major
condition, the pre-mode condition and `+ 1` in turn: one self-test row
went red each time, and with the window off the scan read the 14 sites.
Each ablation was restored with `git diff HEAD` empty.
  - `check-changeset-no-major --base origin/main` exits 0.
- `check:adr-0087-registration` exits 0 with `registered
protocol-18-range-refused`.
- `dispatch-gates --commands` derives 150 families on this diff. Two are
red: `check-empty-changeset` by design (the two DELIBERATE CORRECTION
notes), and `check:platform-checklist` on `areas/automation.json: ABSENT
SYMBOL … FlowItemMoreMenu.tsx#FlowItemMoreMenu`, which `main` itself
carries (reproduced on `origin/main` `ecbe854bda`; this diff touches
neither path). The other 148 exit 0.
- **Against current `main` (`5d21d431ec`, 9 commits past the merge
base):** `git merge-tree --write-tree` is clean, and the merged tree
carries the same `'^18'` lines as this head. `main` added no other
handshake at `'^18'`.

</details>

<details><summary>Earlier readings (the dev's, on 9da4c1d plus the
fixture fix, and at 8852bcb for the <code>--write</code>
reach)</summary>

Not re-run at `3811cd10f5a`. Of the code these read, this PR changed
only the step-19 entry's text and the `examples/app-starter` range after
them. The merges of `main` brought other changes in, and CI at the head
is green.

- **Handshake**, from the built `@objectstack/metadata-core` on protocol
19: `'^18'` → `incompatible OS_PROTOCOL_INCOMPATIBLE … Run: objectstack
migrate meta --from 18`; `'^19'` → `ok`.
- **Prescription**, with the built CLI. On a `'^18'` copy of
`examples/app-todo`, `os migrate meta --from 18` lists the step-19
entry, and `--write` rewrites `objectstack.config.ts:48` to `'^19'`. On
`examples/app-multi-package` with both package manifests at `'^18'`,
`--write` writes nothing and prints the range for a hand edit (`manifest
is composed by composeStacks(…)`).
- **Template control leg:** moving the blank template to `'^19'` now
turns `template-consistency.test.ts` red (`expected 19 to be 18`).
- **`release.yml` version-pass rehearsal.** The `version-pr` Render and
Validate blocks were extracted verbatim and run in a throwaway clone:
- Results: `PROTOCOL_VERSION already 19.0.0`; the template is stamped
`'^19'`; unvalidated surfaces 0; 14 of 15 content gates green;
`check:release-notes` red.
- Control (main + objectstack-ai#37230 without this PR): `protocol-version.ts` is
unvalidated, with the same release-notes red.
- **Tests:** cli 677 files, 8441 tests passed; runtime 647 files, 11978
passed | 25 skipped (the option-B file fails 3 cases at 9da4c1d and
passes 6/6 at e05fdf6); metadata, metadata-core, lint, mcp,
create-objectstack, scenarios and the example tests all green;
`validate` exits 0 for 4 examples and 3 connector apps.

</details>

## Provenance

Opened by seat repo:objectstack#4 on the maintainer's authorization in
the seat session (「objectstack-ai#37229 的两个 PR 开 PR 时被拦了:放行」). The dev session
(`session_01QSeKYnLptCbfzwtkTrDG3j`, zone a4-S) had three writes refused
by its permission check, and none was retried: its relay `pr_create`,
the hand-off of the payload to the seat, and the push of the runtime
fixture fix. The seat read the prepared body from that session's final
message. The fixture fix was then re-applied and pushed as `e05fdf6f`
(fast-forward, five sites in one test file) by a seat-dispatched dev, on
the maintainer's authorization 「objectstack-ai#37229 夹具修复推送放行」. Rework round 1 (seat
L1 7170046632) pushed `3fdf3490b9` to `43133e8ce5`. After ruling record
7176929521, `c871272e47` merged `origin/main` `db77cc493a`, `e5a7e35bff`
regenerated the two ui reference pages from the merged tree, and
`9ed0f5e41f` changed the gate. Rework round 2 (seat L1 7181615974, L2
7181629335): `d47c169db75` merged `origin/main` `da7c559990`, and
`3811cd10f5a` moved `examples/app-starter` to `'^19'`, narrowed the
step-19 entry's acceptance text, and corrected a comment in
`check-changeset-no-major.mjs`. Branch
`claude/issue-37229-protocol-version-19` @ `3811cd10f5a`.

---
🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…'^19', the major the 19.x boot handshake accepts (objectstack-ai#37298)

<!-- claude-projects-attribution: {"github_login":"os-bill"} -->
_Requested by **Bill** · [project
thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wgFiXLbrG7d8JVydkmtSf4Bt)_

Fixes objectstack-ai#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 objectstack-ai#37314). PR 1 and objectstack-ai#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 (objectstack-ai#37409, objectstack-ai#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 (objectstack-ai#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
objectstack-ai#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 objectstack-ai#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 (「objectstack-ai#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 objectstack-ai#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow-major documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

大版本声明:18.6.0 已发布、主干已删除的界面文案统一写入发版说明(约 35 条)

3 participants