Skip to content

docs(v19, upgrading): the 18 → 19 path, as it ships — next.3 status, the handshake refusal, the access-matrix and stored steps, Change Owner, Studio, --yes and npm 10 - #39151

Merged
objectstack-fleet[bot] merged 11 commits into
mainfrom
claude/issue-38930-v19-upgrade-docs
Dec 2, 2026
Merged

objectstack-fleet[bot] merged 11 commits into
mainfrom
claude/issue-38930-v19-upgrade-docs

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Part of #38930
Fixes #38925
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:从 18 升 19 的用户照着两页升级文档走,版本状态、负责人变更按钮、工作室的新地址、访问矩阵一步、存储元数据检查、非交互环境的确认参数与 npm 安装报错现在都写清楚了。
  • 为什么做:属于 19 正式版「18 升 19 升级路径」主线,替每个照文档升级的 18 版用户解决「文档走不通、还说反了」的问题。
  • 出错会怎样:只改两页文档,最坏是某句与产品不符,读者照做会多走一步弯路;可以直接撤回。
  • 要你做什么:定夺工作室自动建的定制配对包在启动时报「未声明协议范围」警告该如何处理;本单没写这一条,所以只部分关闭升级文档卡。

What changes

A docs-only PR on the two upgrade pages, per AGENTS.md's content/docs/releases/ row ("Factual error on a releases page → dedicated docs-only PR or an issue, never a rider on code changes"). Every line below was measured on origin/main (branch base 27ce3c0a0e, merged forward to 3dfffef80a, then to the head that carries 491ea82) or on the npm registry on 2026-12-02. The PR body opens with Part of for the docs card, not a closing keyword, because item 4 is not written: it is an open question (see Acceptance notes). The access-matrix card closes here: its Expected 2 is item 5.

Behaviour that landed after 19.0.0-next.3 is marked as such on both pages: "after next.3" on the v19 page (defined once, at the top of "Coming from 18.x"), "from the first 19 release after 19.0.0-next.3" in the upgrade guide. 19.0.0-next.3's own behaviour is stated where it differs.

The card's items

# Page Before After Reading that grounds it
1 v19, release status npm next = 19.0.0-next.2, read 2026-11-29; "on main" lines "ship in the next cut" Read 2026-12-02: latest 18.6.0, next 19.0.0-next.3 (2026-12-01); "on main" lines first ship in next.3; the 19 breaking changesets next.3 carries beyond the page's count are named as not yet listed npm view @objectstack/spec dist-tags: {"latest":"18.6.0","next":"19.0.0-next.3"} (same for cli and console); npm view … time: next.3 2026-12-01T03:27Z. The next.3 version pass ea6e312ac1 renamed 295 changesets into .changeset/pre/, all 219 pending at 6eb23c87 among them (219 consumed, 0 missing). The other 76 classified by classifyReleaseBullet: manual 6, migrated 13, added 21, other 36
2 v19, new step 7 Change Owner not mentioned Where it appears (record header, edit form, selection bar as a button or under More), who sees it, that it makes rows selectable, and userActions: { transfer: false } to turn it off .changeset/pre/35403-change-owner-console.md (PR #36343) and -35402- (endpoint); ObjectGrid.tsx appends sys_change_owner to the bar; userActions.transfer describe in object.zod.ts. 18.6.0's en.ts (tag @object-ui/auth@18.6.0, 958ee03594): 0 Change Owner strings
3 v19, new step 8 Studio address not mentioned Studio has no home; a package opens at /_console/studio/PACKAGE on its Overview; bare /_console/studio opens the last package, else Setup → Packages, else the Loose list of flows StudioRoute.tsx route table, StudioEntryRedirect.tsx, studioEntryFallbackPath in studioEntryPermissions.ts; changesets of PRs #37166 and #38318
4 v19 .custom protocol-range warning has no remedy Not written. Open question, see Acceptance notes ensurePairOnce in protocol-customization-package.ts writes the pair manifest with no engines; service-package rehydration warns declares no engines.protocol range; rehydrating without a compatibility check
5 v19 step 4, upgrade guide loop No access-matrix step os build --update-access-matrix, then review and commit the matrix diff; os validate does not run this gate; after next.3, os migrate meta names the drift and the step Fixture (an 18.x stack with a View All and a Modify All set, committed access-matrix.json, range '^18') on the source CLI at this branch: dry run prints With these edits written, the stack would no longer match the committed access-matrix.json: 2 access-matrix changes and → Next, once the edits are written: os build --update-access-matrix, then review and commit the matrix diff.; after --write, os validate exit 0, os build exit 1 Access matrix drift (2 changes), os build --update-access-matrix exit 0, os build exit 0
6 Upgrade guide, short-version callout and "When a platform move forces an app move" "One major behind — it runs" with conversion notices The handshake refuses a range that does not admit the runtime's major, whole; os validate and os build too after next.3; a no-range package loads with a warning; retired shapes are rejected with their fix checkProtocolCompat (protocol-handshake.ts): any declared range not admitting the runtime major is incompatible. Fixture with '^18': os validate exit 1 and os build exit 1, both ✗ The protocol handshake refuses this stack (OS_PROTOCOL_INCOMPATIBLE) and registered: protocol-18-range-refused. Bound by #38928 ruling A
7 Upgrade guide, production-policy block and loop Bare os migrate apply [y/N] prompt noted; non-interactive needs --yes, else applies nothing and exits 1; loop step 6 adds os migrate apply --yes Fixture on SQLite, stdin /dev/null: no --yes exit 1 with ⚠ Confirmation required. Re-run with --yes to apply, or use "os migrate plan" to preview.; --yes exit 0, 97 tables created
8 Upgrade guide, step 2 of "Moving the dependency pins" (and a pointer at the old note) edgesOut tied to npm install --save-dev in a pnpm project only npm 10 also hits it in a project of its own while resolving vitest 4.1; the 19 template's overrides entry resolves; npm 11 resolves; install with pnpm npm 10.9.9, Node 22.23.5, no lockfile, --dry-run/full: vitest@^4.1.11 alone exit 1; vitest@4.1.12 alone exit 1; 18.6.0 showcase deps at 18.6.0 and at 19.0.0-next.3 exit 1 (stack: arborist #loadPeerSet, at node_modules/vitest); vitest@3.2.7 exit 0; vitest ~4.1.12 with matching overrides exit 0; 19 blank template exit 0. npm 11.21.3: vitest alone and the 19 showcase exit 0. pnpm 10.28.0 --lockfile-only on the 19 showcase exit 0
carried (#38925 Expected 2) Both pages — Same as item 5: the same step in the v19 path and in the guide's loop as item 5

Extra lines, inside the card's "revisit" Expected

  • v19 callout "Compiled from the changesets, not walked" → "Compiled from the changesets, then walked once", naming the 2026-12-01 walk to 19.0.0-next.3 over two apps and the steps that now carry its findings; it says the walk was not repeated after next.3.
  • v19 "What makes it a major", Protocol 19 bullet: adds that os validate and os build refuse '^18' from the cut after next.3 (cli: on 19, os validate passes a manifest still declaring engines.protocol: '^18' with a warning, while os dev with the same config refuses to start #38928 ruling A).
  • v19 step 2: the range refusal by validate/build (after next.3; next.3 passes it with a warning, per the changesets of PRs fix(cli): os validate refuses the engines.protocol range the boot refuses #39090 and fix(cli): os build refuses the engines.protocol range the boot refuses #39115), and what --write does on next.3 (does not follow exportsOf(…)) and after (follows it; a partial write says Wrote N of M mechanical change(s) and exits 1). Measured after: fixture --write printed Wrote 2 of 2 mechanical change(s) into 1 file(s) and Rewrote the declared protocol range, exit 0; a helper-built set printed Wrote 1 of 2 mechanical change(s) into 1 file(s); 1 left because of a value built by readEverything(…), exit 1.
  • v19 new step 9 and upgrade guide new section "The stored half" (PM update: PR fix(migrate): os migrate meta --stored judges a stored view's bulkActions with the declared actions, and is not green over a row served invalid #39136 merged as 491ea82c61): os migrate meta --stored judges a stored view's bulkActions with the declared actions, --apply rewrites it where the actions already carry selection, otherwise the TODO names both hand edits; the pass exits 1 while any stored row would be served invalid. The quoted block is the real formatStoredMigrationReport output from the built @objectstack/metadata-protocol on this branch (row message elided); the TODO wording is read from protocol-stored-view-selection.ts; meta.stored-served-invalid.test.ts 3 passed and protocol-stored-view-selection.test.ts 8 passed on this branch. --stored --apply without --yes in a non-interactive shell exits 1 (meta.ts, the apply && !flags.yes branch).
  • Upgrade guide --write callout: the sentence "restores them all unless it comes back with exactly the changes it left" now describes the partial write after next.3, and keeps the earlier behaviour in one parenthesis; the traced-sites list adds a project's own one-line Object.values wrapper (exportsOf).
  • Upgrade guide, "Step 3 is the real gate": os validate runs every os build check except the access-matrix gate (measured: validate exit 0, build exit 1 on drift).
  • Upgrade guide, "Upgrading to 18.0", step 8: "still exits 0" now reads "18.0.0 still exits 0 there, and from 18.1.0 it exits 1" (packages/cli/CHANGELOG.md, 18.1.0 section: FROM exit 0 TO exit 1).

Tests

Fixture readings (source CLI, this branch)

The fixture is the 18.x stack of meta.access-matrix-hint.test.ts, written to a scratch directory with @objectstack/spec linked to this tree, driven through packages/cli/bin/run-dev.js after pnpm turbo run build --filter='@objectstack/cli^...' (VERDICT command-exit 0, twice: before and after merging origin/main).

  • os validate on '^18': exit 1, ✗ The protocol handshake refuses this stack (OS_PROTOCOL_INCOMPATIBLE).
  • os build on '^18': exit 1, same two lines.
  • os migrate meta --from 18: exit 0, Would apply 2 mechanical change(s) (a dry run: no source is written without --write):, then the range warning and the access-matrix block.
  • --write: exit 0, Wrote 2 of 2, range rewritten, drift block with → Next: os build --update-access-matrix, then review and commit the matrix diff.
  • Helper-built variant --write: exit 1, Wrote 1 of 2 … 1 left because of a value built by readEverything(…).
  • os validate after write: exit 0. os build: exit 1, Access matrix drift (2 changes). os build --update-access-matrix: exit 0. os build: exit 0.
  • os migrate apply (SQLite, stdin /dev/null): exit 1 with the Confirmation line; --yes: exit 0.

Acceptance notes

  • Item 4 is open, not written. The ensure door that creates a .custom pair writes { id, name, version, type, namespace, dependencies } and no engines, and an existing pair is never rewritten. So every Studio-created pair loads with the boot's no-range warning, and no source of the user's declares it. Whether the user should act (and how: a re-install over the pair is the only path the code leaves) or whether the platform should stamp a range on the pair it creates, and treat the warning differently for pairs, is a product choice the code does not settle.
  • The v19 breaking list is not recounted. 19.0.0-next.3 carries 19 breaking changesets that landed after the page's 6eb23c87 count. The page now says so and points to the CHANGELOGs, and does not list them: a recount is release-time compilation.
  • Not measured in a browser: the Change Owner placement (item 2) and the Studio routes (item 3) are read from code and changesets; the QA walk measured both on next.3. The walk also saw the app header's "Open … in Studio" entry gone; the code still draws it under a gate (useAppStudioEntry), so the page says only "Enter Studio from Setup → Packages or from an app".
  • The permission-set viewAllFields field-read passage owned by cli: os migrate meta --from 18 says adding viewAllFields: true keeps a permission set's field reads, but a set with Modify All and its own row hiding a field still loses that field (read and edit) on 19 — the tool should name such entries #38924 does not exist in upgrading.mdx at this head; the guide's new lines say only that the protocol-19 step adds viewAllFields: true and that this moves the matrix, and make no claim about field reads.

Verification

Two minutes: open the v19 page's "Coming from 18.x" and the upgrade guide's "The loop" in the docs preview. Expected: steps 7 to 9 on the v19 page, the access-matrix line in step 4 and in the loop, os migrate apply --yes in the loop, and the "One major behind" line saying the runtime refuses it.

Gates (local, at 327fab0)

node scripts/pm/dispatch-gates.mjs --commands derived 53 families for this diff; 52 ran at exit 0. pnpm --filter @objectstack/spec run check:skill-examples exited 3, PREREQUISITE NOT MET (it reads @objectstack/client-react built output; packages/spec was rebuilt with declarations and the refusal did not change), declared NOT MEASURED, left to CI. dispatch-gates --ran: 53 derived, 52 run, 1 NOT-MEASURED, 0 UNRUN. overlap-check: VERDICT clean before each push.


Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01QSeKYoSKoNUygbCoMBTbGc

Claims naming this branch: #38930 (comment 7347558434) and #38925 (comment 7349251409).

claude added 11 commits December 2, 2026 14:07
…s after the page's count are named

Claude-Session: https://claude.ai/code/session_01QSeKYoSKoNUygbCoMBTbGc
Co-authored-by: Claude <noreply@anthropic.com>
…ol bullet names the validate and build refusal on main

Claude-Session: https://claude.ai/code/session_01QSeKYoSKoNUygbCoMBTbGc
Co-authored-by: Claude <noreply@anthropic.com>
… the loop carries the access-matrix step

Claude-Session: https://claude.ai/code/session_01QSeKYoSKoNUygbCoMBTbGc
Co-authored-by: Claude <noreply@anthropic.com>
…pm installs the tree

Claude-Session: https://claude.ai/code/session_01QSeKYoSKoNUygbCoMBTbGc
Co-authored-by: Claude <noreply@anthropic.com>
…and how it exits

Claude-Session: https://claude.ai/code/session_01QSeKYoSKoNUygbCoMBTbGc
Co-authored-by: Claude <noreply@anthropic.com>
…w judges served-invalid rows and a stored view's bulkActions

Claude-Session: https://claude.ai/code/session_01QSeKYoSKoNUygbCoMBTbGc
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYoSKoNUygbCoMBTbGc

Re-run reason · 2026-12-02T14:51Z · PR-body guards (job 143539590851) failed in check:closing-target-claim: "Fixes #38925 — the governing Claim: on #38925 names claude/issue-38925-migrate-access-matrix-hint". That claim was released after PR #39131 landed Expected 1; this PR delivers #38925's remaining Expected 2. Remedy 1 applied: a Claim: naming claude/issue-38930-v19-upgrade-docs is now on #38925 (comment 7349251409). The gate reads threads live, so one re-run of the failed job, no push. Not a flake judgment: the input changed.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYoSKoNUygbCoMBTbGc

Final green head for review · 2026-12-02T14:55Z
Head-sha: 327fab02a0
Check-runs at this head: 30 success · 29 skipped. One earlier failure is superseded: PR-body guards job 143539590851 (check:closing-target-claim, #38925's claim named the old branch) was re-run by the body edit after claim 7349251409 and passed in job 143555205610.
Files: 2 (content/docs/releases/v19/index.mdx, content/docs/upgrading.mdx), +174/−39, docs-only, labelled skip-changeset.
Owed: L1 (seat session). The content/docs/** sentences are checked one by one against the dev's readings (report 7348735450). Landing: zone build after ACCEPT, if the PR is not governed.
Closing: Part of #38930 (item 4 waits on the maintainer, mailbox 7348794310) and Fixes #38925 (its Expected 2).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

L1 ACCEPT · PR #39151 (#38930 docs, #38925 Expected 2) · head 327fab02a042c81ded802346fed8bccefdc3e912 · read 2026-12-02T14:58Z

Seat check · ACCEPT

ACCEPT · repo:objectstack@os-justin · head 327fab02a042c81ded802346fed8bccefdc3e912

  1. Shape. l1-face --pr 39151 flags three items, and each is answered below:

    Part of #38930 is right, because item 4 is not written and is put to the maintainer.

  2. Release-owned page. The AGENTS.md content/docs/releases/ row forbids a releases-page edit as a rider on a code PR. It allows a dedicated docs-only PR for a factual error. This PR is docs-only (2 files, both under content/docs/), and docs(v19, upgrading): the 18 → 19 path cannot be followed from the docs alone — stale next.2 status, a false "one major behind still runs", and six missing upgrade steps and changes #38930 names the v19 page's 18 → 19 path as its scope.

  3. Review route. No contract face is touched: Clause-②: no, no narrowing declaration, no packages/spec/src/**, no governed rule text. This is prose on content/docs/** only, so there is no L2. It gets CI plus the seat's own sentence-by-sentence read.

  4. Sentences read against code (at this head):

    • Change Owner gate. It is allowTransfer or modifyAllRecords (MePermissionsProvider.tsx:435-443, useRecordEditable.ts:345). Turning it off with userActions.transfer matches object.zod.ts:4073-4099, and the controlled_by_parent refusal matches 19.transfer-cascade-never-offered-refused. True.
    • Studio entry. The PACKAGE route, the last-package redirect, then Setup → Packages, and otherwise the Loose list of flows for a non-holder of SETUP_PACKAGES_CAPABILITIES. This matches StudioRoute.tsx and studioEntryPermissions.ts:10,51. True.
    • viewAllFields: true beside View All / Modify All. This is the protocol-19 entry permission-view-all-fields-beside-record-bypass (registry.ts:35003-35018). True.
    • Wrote N of M mechanical change(s). This matches meta.ts:847. True.
    • Partial --write and exit 1. These match the body's fixture readings. The "Earlier, …" parenthesis keeps the next.3 behaviour.
    • os migrate apply refusal. The string matches apply.ts:684 verbatim. The 18.0 step's "18.0.0 still exits 0 there, and from 18.1.0 it exits 1" matches packages/cli/CHANGELOG.md 18.1.0, 62bc129. True.
    • os validate does not run the access-matrix gate. validate.ts has no access-matrix read, and the body reports validate exit 0 then build exit 1 on drift. True.
    • next.3 stored-pass wording. "not declared as an action of that object" is quoted from the module's own history note (protocol-stored-view-selection.ts:13). The after-next.3 judgement and the exit 1 are the fix(migrate): os migrate meta --stored judges a stored view's bulkActions with the declared actions, and is not green over a row served invalid #39136 behaviour this seat accepted in 7347397755. True.
    • Counts. 403 + 12 + 830 = 1,245 at 6eb23c87 (the "other" changesets beside the 159 breaking). The 76 after 6eb23c87 = 6 + 13 + 21 + 36, of which 19 are breaking (6 to act on, 13 registered). Both are consistent with the page's own totals.
    • Short-version callout and "When a platform move forces an app move". The old "one major behind — it runs" is false under checkProtocolCompat. The rewrite states the refusal, the no-range warning, and the replay of several majors in one pass. True.
    • npm 10 edgesOut. This rests on the body's measured readings (npm 10.9.9 / 11.21.3, pnpm 10.28.0) and is stated as measured, with the setup named. Accepted as evidence.
  5. Dating. Every post-next.3 behaviour is marked: "after next.3" is defined once on the v19 page, and "from the first 19 release after 19.0.0-next.3" is used in the guide. The callout says the walk was not repeated after next.3. No sentence presents unreleased behaviour as shipped.

  6. Gates at this head.

  7. Nit (not REWORK). Upgrading's traced-sites sentence runs long after the inserted clause ("…such as the exportsOf(…) every create-objectstack project uses. A change inside…"). Reflowing it is optional.

  8. Landing. check-governed-merges --pr 39151: NOT governed, 0 of 2 paths. +174 / −39 = 213 lines. The zone lands it.

Clause-②: no · Metadata-protocol: none

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYoSKoNUygbCoMBTbGc

Landing · 2026-12-02T14:59Z · head 327fab02a0

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 46909318694 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Dogfood Regression Gate (2/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/external-member-directory.dogfood.test.ts > [#25233] an external organization member reads its own identity rows and its explicit grants only
      ↳ 失败原因: @objectstack/dogfood:test: Error: assertArmed(): this fixture is DISARMED: 1 of 6 control(s) it measures are not engaged on the booted stack, so its assertions would pass without testing anything.
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • test/external-member-directory.dogfood.test.ts — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 3 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

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 skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants