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

Draft
objectstack-fleet[bot] wants to merge 4 commits into
mainfrom
claude/issue-37223-i18n-removed-keys-major
Draft

objectstack-fleet[bot] wants to merge 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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation 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 条)

2 participants