Skip to content

docs(adr): ADR-0150 addendum says the renamedFrom holder carry also runs after each announced reload - #33568

Merged
os-zhuang merged 2 commits into
mainfrom
claude/project-thread-6cr30t
Nov 15, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/project-thread-6cr30t

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #33301

PR 2 of 2 for the card. PR 1 (#33478, merged) brought the PositionSchema.renamedFrom text, its liveness evidence and the plugin-security comments in line with PR #33245. This one changes only docs/adr/** (Tier H), so it waits for a GOVERNED_APPROVER.

维护者速读

  • 改了什么:只改 ADR-0150 第 288 行 2026-11-13 补遗中关于运行时机的两句及“启动日志”一句:职位改名持有人迁移不再“只在启动时”运行,还会在启动后每次 metadata:reloaded 时,只为通告点名的包或职位运行。补遗其它句子与裁决文字不动。
  • 为什么改:fix(plugin-security): carry renamed position holders after a hot install, not only at boot #33245 合入后原句已不实,评审 6879548824 与 6880449445 均要求以单独的 Tier H 文档 PR 修正。
  • 风险与回滚:纯文档,无代码、无发布内容。回滚即 revert。
  • 先看:docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md 第 288 行。
  • 两分钟验证:git grep -n "It runs at boot only" docs/adr,预期无命中;第 288 行与 position-renamed-holder-carry.ts 的 "When it runs" 一节说法一致。
  • 需要你做的:审阅并批准(Tier H,需 GOVERNED_APPROVER 批准后由席位落地)。

What changes

docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md ~:288, the 2026-11-13 addendum (ruling A1, record 6841971722). Three sentences, no other sentence of the addendum and no ruling text:

  1. FROM "and at kernel:bootstrapped the platform moves that position's holders" TO "and at kernel:bootstrapped, and again on each later metadata:reloaded that names the position or its package as registered, the platform moves that position's holders".
  2. FROM "It runs at boot only: a package installed or upgraded into a running kernel is carried at the next restart." TO "It runs at boot over every claim, and on each metadata:reloaded after the boot over the claims of what the announcement names as registered (app/ID while the registry holds package ID, position/NAME): a hot install-local install, the runtime POST /packages install, a PATCH /packages/:id/enable that switches a disabled package on, a per-item publish of a position and the positions of a publish-drafts are carried at once; a hot upgrade over a version the running kernel still serves and an artifact reload that names only its file are carried at the next restart."
  3. FROM "Every other stored reference to an old name is named in the boot log and never rewritten" TO "Every other stored reference to an old name is named in the log of the run (at boot for every old name it carries, after a reload for the old names it moved rows of) and never rewritten" (contract review 6886866329 nit; readLeftBehind with leftBehindOnlyWhenMoved on a reload run).

The facts are read from positionRenameReloadScope and the metadata:reloaded announcers on main, which since #33448 include the runtime install door (announcePackageReload, both answers) and the enable door (only when the package was disabled before). Round 2 answers contract review 6886866329 (FAIL at 99ff68df): PR 1 listed those two doors as not announcing, true at its base 19cc8976, false since #33448 merged; that text on main is corrected by a separate follow-up PR (Refs #33301).

Tests

None: a docs-only diff.

Acceptance notes

  • skip-changeset: no published package's files[] names docs/adr (every non-private package.json read), so the diff ships nothing.

Verification

At head 16cb2bc7 off origin/main 8e63ed87: 21 derived gates (dispatch-gates.mjs --commands --repo objectstack-ai/objectstack), all exit 0 (check:doc-formula-expressions exit 3 in the loop until the lint closure was built, then exit 0); --ran: "21 derived famil(ies) accounted for, 21 run, 0 NOT-MEASURED". Record: pm-orders/spec/33301-pr2-r2-gates-ran.txt in the project share.


Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5n95roc2dShmeuBAoB

…uns after each announced reload

The 2026-11-13 addendum said the carry runs at kernel:bootstrapped only.
It also runs on each metadata:reloaded after the boot, over the claims of
what the announcement names as registered. The two run-time sentences now
say so and name the doors that still wait for the next restart.

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

Copy link
Copy Markdown
Contributor Author

domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 99ff68df281c006eaafe6af05799e5b1839981ba
Local-runs: none
Scope: docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md + none

① Derived judgments

  • File list: one path, the ADR-0150 file, +1/-1 (line 288, the 2026-11-13 addendum). reviewFace hits = that path; the diff holds no implementing file, so + none. No remainder for the lane seat.
  • Accept-set and public surface: none moves. No schema, no code, no generated output, no authorable key. The diff changes what a governed ADR says the platform does, nothing the platform does. Right.
  • Governed surface: docs/adr/** is Tier H and waits for a GOVERNED_APPROVER, as the PR body says. Right.
  • Check-runs on the head (47): 16 success, 23 skipped, 8 in progress when read (Test Core 1/8 and 2/8, Lint · ESLint, Lint · docs & code guards, Lint · repo & tooling gates, Lint · CI, release & engine gates, Type Check · consumer gates, Type Check · source gates); none failed. Completed and green: Check Changeset, Check Documentation Links, PR-body guards, Governed Surface Queue Guard, Check PR Size, Type Check · workspace. The eight unfinished runs are not gate verdicts yet; this record does not rest on them, since the verdict is FAIL on ④.

② Semver level

  • skip-changeset is right: the diff is docs/adr/** only, which no published package ships. Check Changeset is green on the head.
  • Clause-②: the claim (6884480897) carries Clause-②: no, and that is right: nothing authorable narrows or widens. The PR body carries no Clause-②: line; none is owed on a diff with no changeset, and the PR-body guards are green.

③ Boundary flags

④ Design judgment

File judged: the ADR line, against packages/plugins/plugin-security/src/position-renamed-holder-carry.ts, security-plugin-start-hooks.ts and the metadata:reloaded announcers, read on origin/main 6e23180f (the same text is in the PR head's tree).

Sentence 1, "at kernel:bootstrapped, and again on each later metadata:reloaded that names the position or its package as registered": holds. security-plugin-start-hooks.ts :395-415 runs positionRenameCarry.atBoot() in the kernel:bootstrapped hook and :490-492 runs afterReload(payload) in the metadata:reloaded hook. createPositionRenameCarryRuns (:814-846) ignores a reload before the boot run and one that names no scope. positionRenameReloadScope (:531-555) admits position/NAME (grammar-valid) and app/ID only when registry.getPackage(ID) is non-null; carryRenamedPositionHolders (:585-589) keeps a claim whose to is a named position or whose packageId is a named package.

Sentence 2, clause by clause:

  • "It runs at boot over every claim": holds (atBoot passes no only).
  • "on each metadata:reloaded after the boot over the claims of what the announcement names as registered (app/ID while the registry holds package ID, position/NAME)": holds, as above.
  • "a hot install-local install ... carried at once": holds. marketplace-install-local-plugin.ts :3269 calls announceHotInstall, :6805 triggers metadata:reloaded with changed: ['app/ID'] after the package is registered.
  • "a per-item publish of a position": holds. packages/objectql/src/plugin.ts :846 announces TYPE/NAME for the published item.
  • "the positions of a publish-drafts": holds. packages/runtime/src/domains/packages.ts :3346-3352 announces one TYPE/NAME per published item plus app/NAME per unhidden app.
  • "a hot upgrade over a version the running kernel still serves ... carried at the next restart": holds. The old position still reads as declared, so the claim is refused still-declared; pinned by position-renamed-holder-carry.test.ts :538.
  • "an artifact reload that names only its file ... carried at the next restart": holds. packages/metadata/src/plugin.ts :1076 announces [src.path] from the file watcher; the HMR POST (:1025) forwards its caller's changed list, which the wording "that names only its file" correctly leaves out.
  • "the runtime POST /packages install and PATCH /packages/:id/enable (which do not announce) ... are carried at the next restart": FALSE. See finding 1.

Findings:

  1. must-fix — the new sentence says the runtime POST /packages install and PATCH /packages/:id/enable "do not announce" and "are carried at the next restart". On main, and in this PR's own base, both routes announce. packages/runtime/src/domains/packages.ts :942-959 announcePackageReload calls deps.announceKernelEvent(context, 'metadata:reloaded', { changed: ['app/ID'] }); the install door calls it at :2781 after the registry write, on both answers; the enable door calls it at :2856 when the package was disabled before the switch (:2847-2848). That is the app/ID spelling of a package the registry holds, so positionRenameReloadScope admits it and the carry runs at once for that package's claims. The helper's own jsdoc (:931-932) names the holder carry as a subscriber. Landed by PR fix(runtime): the package install and enable routes announce metadata:reloaded #33448 (e3f0cfd4, Fixes runtime: the POST /packages install and the package enable route register a package without announcing metadata:reloaded, so subscribers (the renamedFrom holder carry, among others) only see it at the next boot #33302), merged before this branch was cut from 8e63ed87. A governed ADR line that states the opposite of what the platform does is a contract defect, and it is exactly the kind of stale sentence card docs + spec: ADR-0150 D7 addendum, PositionSchema.renamedFrom describe and the position liveness line still say the renamedFrom holder carry runs at boot only (after PR #33245) #33301 exists to remove. Fix on this line: move the two routes to the "carried at once" list (an install on each landed install; an enable only when the package was disabled), and keep under "next restart" only the hot upgrade over a version the kernel still serves and the artifact reload that names only its file. A package installed disabled is refused claimant-disabled until it is enabled; the enable then announces. This earns a delta review.

  2. nit — the unchanged sentence "Every other stored reference to an old name is named in the boot log" is now partial: a reload run that moves rows reads and names the left-behind references in that run's log too (leftBehindOnlyWhenMoved, :672-677). The PositionSchema.renamedFrom jsdoc on main already says "the run's log". Outside the two sentences the order allows; left as an accepted deviation, or folded into the fix of finding 1 if the approver allows a third sentence.

Read, not reviewed (outside the diff; a follow-up card is owed, none found): the same false statement about the two routes stands on main in packages/spec/src/identity/position.zod.ts (jsdoc :168-170 and the renamedFrom .describe() :181, with its generated row in content/docs/references/identity/position.mdx :36) and in position-renamed-holder-carry.ts :135-139. PR #33478 wrote them true at 22:11Z and PR #33448 made them false at 22:24Z.

Implemented-by: claude/project-thread-6cr30t
Reviewed-by: session_01FEkQ5mswnWm181XgYcCUag

VERDICT: FAIL

…nounce, and a reload run names what it leaves

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

Copy link
Copy Markdown
Contributor Author

domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 16cb2bc75d55f9fce332a31043ef2aad5e1291cd
Local-runs: none
Scope: docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md + none

Delta review of record 6886866329 (FAIL at 99ff68df281c006eaafe6af05799e5b1839981ba). The delta 99ff68df..16cb2bc7 is one file, +1/-1, the same ADR line; the whole line was re-read against origin/main 6e23180f, not only the delta.

① Derived judgments

  • File list: one path, the ADR-0150 file, +1/-1 against main (line 288, the 2026-11-13 addendum). reviewFace hits = that path; the diff holds no implementing file, so + none. No remainder for the lane seat.
  • Accept-set and public surface: none moves. No schema, no code, no generated output, no authorable key. Right.
  • Governed surface: docs/adr/** is Tier H and waits for a GOVERNED_APPROVER. Right.
  • Check-runs on the head (46 when read): 18 success, 22 skipped, 6 in progress, none failed. Green: Check Documentation Links, Check PR Size, Governed Surface Queue Guard, Lint · ESLint, Lint · PM dispatch-gates, the three scoped lints, Type Check · workspace, · source gates and · debt ledger, Test Core (2/8), Test UI, Dogfood Regression Gate. In progress: Lint · CI, release & engine gates; Lint · docs & code guards; Lint · repo & tooling gates; Type Check · consumer gates; Test Core (1/8); and a re-run of PR-body guards started by the body edit at 01:06Z (its run on this head before that edit was green). The six are not verdicts yet: this record's PASS is the ④ judgment of a docs-only line, and the landing still waits for them to finish green.

② Semver level

  • skip-changeset is right: the diff is docs/adr/** only, which no published package ships. Check Changeset is skipped on the head under the label.
  • Clause-②: the claim (6884480897) carries Clause-②: no, and that is right: nothing authorable narrows or widens.

③ Boundary flags

  • Dev report 6887039708, deviations: the root cause of round 1's must-fix is owned (the two doors were read at PR 1's base 19cc8976, before fix(runtime): the package install and enable routes announce metadata:reloaded #33448 merged). Accepted.
  • Dev flag "nit folded: the 'boot log' sentence now says the run's log": a third sentence of the addendum is changed, beyond the two the order named. It is the sentence record 6886866329 nit 2 offered to fold "if the approver allows a third sentence"; it is on the same line, it is true (④), and the PR body now lists it as change 3. Accepted here; the GOVERNED_APPROVER sees three sentences, not two.
  • PR body: read after its 01:06Z edit. It states the three sentences as the head has them and no longer says the two doors do not announce. It agrees with the tree.
  • open_questions 1, "who opens the Refs docs + spec: ADR-0150 D7 addendum, PositionSchema.renamedFrom describe and the position liveness line still say the renamedFrom holder carry runs at boot only (after PR #33245) #33301 follow-up that corrects PR 1's now-false install/enable sentence on main": escalated to the seat, not answered by this record, since it is a dispatch question. For the seat's ruling: the false text does stand on main (packages/spec/src/identity/position.zod.ts jsdoc and the renamedFrom describe, its generated row in content/docs/references/identity/position.mdx, and position-renamed-holder-carry.ts :135-139, "A door that registers positions without announcing metadata:reloaded (the runtime's package install and enable routes)"), and it ships to authors until corrected, so option A (open it now from another branch) is the sound one. The prepared patch be318a6d is not in this diff and is not reviewed here; it changes a published schema describe, so it owes its own contract review.

④ Design judgment

File judged: the ADR line, against packages/plugins/plugin-security/src/position-renamed-holder-carry.ts, security-plugin-start-hooks.ts and the metadata:reloaded announcers, read on origin/main 6e23180f.

Round 1's two findings:

  • Must-fix 1 (the two runtime doors): FIXED. The line now lists "the runtime POST /packages install, a PATCH /packages/:id/enable that switches a disabled package on" under "carried at once", and "(which do not announce)" is gone. Against the code: packages/runtime/src/domains/packages.ts announcePackageReload (:942-959) announces metadata:reloaded with changed: ['app/ID']; the install door calls it at :2781 after the registry write, on both answers; the enable door calls it at :2856 only when wasDisabled (:2847-2848). positionRenameReloadScope admits app/ID when registry.getPackage(ID) is non-null. The enable qualifier "that switches a disabled package on" is exactly the wasDisabled guard.
  • Nit 2 (boot log): FIXED. "named in the log of the run (at boot for every old name it carries, after a reload for the old names it moved rows of)" matches carryRenamedPositionHolders: carriedOlds holds every old name whose carry ran; a reload run passes leftBehindOnlyWhenMoved: true (createPositionRenameCarryRuns afterReload) and :672-677 then keeps only the old names with rows > 0; logPositionRenameCarry warns one line per left-behind table and column.

The whole line, sentence by sentence:

  • "at kernel:bootstrapped, and again on each later metadata:reloaded that names the position or its package as registered, the platform moves that position's holders ... as the system, in every organization": holds. security-plugin-start-hooks.ts :395-415 runs positionRenameCarry.atBoot() in the kernel:bootstrapped hook, :490-492 runs afterReload(payload) in the metadata:reloaded hook; afterReload returns without reading before the boot run and when the payload names no scope ("later" is right).
  • "It runs at boot over every claim": holds (atBoot passes no only).
  • "on each metadata:reloaded after the boot over the claims of what the announcement names as registered (app/ID while the registry holds package ID, position/NAME)": holds. The only filter keeps a claim whose packageId is a named package or whose to is a named position; position/NAME counts when NAME is in the position-name grammar.
  • "a hot install-local install": holds. packages/cloud-connection/src/marketplace-install-local-plugin.ts :3269 calls announceHotInstall (:6796), app/ID after the package is registered.
  • "the runtime POST /packages install", "a PATCH /packages/:id/enable that switches a disabled package on": hold, as above.
  • "a per-item publish of a position": holds. packages/objectql/src/plugin.ts announcePerItemPublish triggers metadata:reloaded with changed: ['TYPE/NAME'].
  • "the positions of a publish-drafts": holds. packages/runtime/src/domains/packages.ts :3346-3352 announces one TYPE/NAME per published item (plus app/NAME per unhidden app).
  • "a hot upgrade over a version the running kernel still serves ... carried at the next restart": holds. The old position still reads as declared, so the claim is refused still-declared; pinned by position-renamed-holder-carry.test.ts :538.
  • "an artifact reload that names only its file ... carried at the next restart": holds. packages/metadata/src/plugin.ts :1084 announces [src.path] from the file watcher; the HMR POST (:1025) forwards its caller's changed list (the file path when none is sent), which "that names only its file" correctly leaves out.
  • "Every other stored reference to an old name is named in the log of the run (...) and never rewritten, and nothing is carried back on a downgrade": holds, as under nit 2 above.
  • The unchanged sentences between (refusals, the one-claimant rule, "It judges the packages this boot loaded ...") are byte-identical to main and are not made false by the new ones: a reload run judges the catalog as it stands at that run, which the new sentence says of the scope and the module doc says of the judgement.

No new false claim found. Findings:

  1. nit — "carried at once" for the install doors is true of an install that lands enabled. An install that lands disabled (enableOnInstall: false on a fresh install, or an overwrite of a disabled row) is announced too, but its claims are refused claimant-disabled and wait for the enable, which then announces (the line's own enable clause). The line's refusal list never named the disabled claimant, before this PR or after, so this is an omission the diff inherits, not a claim it makes false. Accepted deviation, or a follow-up card.

  2. nit — "named in the log of the run" has one narrow exception on the reload path: logPositionRenameCarry does not repeat a warning that is byte-identical to one the run just before it said (standing.previous). A reload run that moves rows of an old name whose left-behind line (same table, column, names and row counts) the preceding run already printed prints no second copy. The references were named, one run earlier, in the same process log. No effect on the contract. Accepted deviation.

Read, not reviewed (outside the diff): the false install/enable statement PR #33478 left on main in position.zod.ts, position.mdx and the carry's module doc, see ③; a follow-up PR under Refs #33301 is owed and is not open yet.

Implemented-by: claude/project-thread-6cr30t
Reviewed-by: session_01FEkQ5mswnWm181XgYcCUag

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag

ACCEPT · PR #33568 (#33301 第二个 PR,Tier H) · head 16cb2bc75d55f9fce332a31043ef2aad5e1291cd · 2026-11-15T01:17Z

维护者速读

  • 改了什么:只改 ADR-0150 第 288 行(2026-11-13 补遗)里三句:职位改名后的持有人迁移不再写成"只在启动时",而是启动时迁移全部,之后每次 metadata:reloaded 只迁移通告点名的包或职位;运行时 POST /packages 安装、把停用包重新启用的 PATCH /packages/:id/enable、install-local、单项发布、publish-drafts 都是"立即迁移",只有"仍在服务的版本上热升级"和"只点名文件的制品重载"要等下次重启;被留下的旧引用记在该次运行的日志里。
  • 为什么改:fix(plugin-security): carry renamed position holders after a hot install, not only at boot #33245 与 fix(runtime): the package install and enable routes announce metadata:reloaded #33448 合入后,原句"只在启动时运行""安装/启用不广播"都已不实。
  • 风险与回滚:纯 ADR 文字,一行 +1/-1,无代码、无发布内容。回滚即 revert。
  • 先看:docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md 第 288 行。
  • 两分钟验证:git grep -n "It runs at boot only" docs/adr 预期无命中;对照 packages/runtime/src/domains/packages.ts 的 announcePackageReload(安装、启用两处调用)。
  • 需要你做的:审阅并批准。契约复审 PASS 记录 6887077906,Head-sha 16cb2bc75d55f9fce332a31043ef2aad5e1291cd。批准后由席位落地。
  • 席位意见:建议批准。第一轮复审抓到"安装/启用不广播"一句已被 fix(runtime): the package install and enable routes announce metadata:reloaded #33448 推翻(FAIL 6886866329),本轮已改正,delta 复审逐句对照 main 现码通过。剩两条 nit 作为接受的偏差(见下)。

席位核对

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag

Tier H 待人工审批:席位记录 6887197252(ACCEPT @ 16cb2bc),契约复审 PASS 6887077906。

@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 15, 2026
@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 01:19
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag

撤回待批:PR #33473(#33238)合入 main 后,"仍在服务的版本上热升级"已是立即迁移(#33050 重注册撤回旧职位),本 PR 第 288 行把它列在"下次重启"一侧,已不实。开发将改这一句,新 head 复审 PASS 后席位再挂待批。请审批人暂勿批准当前 head。

@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 15, 2026
Merged via the queue into main with commit 6b1b8c1 Nov 15, 2026
58 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-6cr30t branch November 15, 2026 04:13
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…of a disabled package and a hot upgrade carry renamedFrom holders at once (objectstack-ai#33642)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XXWfT73m4BSPgeTFD7644gK)_

Refs objectstack-ai#33301

Follow-up PR for the card (PR 1 objectstack-ai#33478 merged; PR 2 objectstack-ai#33568 is the
separate Tier H ADR leg). This one corrects the
`PositionSchema.renamedFrom` text that objectstack-ai#33448 and objectstack-ai#33304/objectstack-ai#33473 made
false on `main`.

## 维护者速读

- **改了什么**:只改文字与一条日志文案,不改行为。`PositionSchema.renamedFrom` 的 jsdoc 与
`.describe()`(及其生成的参考文档行)、`plugin-security` 迁移模块注释:运行时 `POST /packages`
安装、`PATCH /packages/:id/enable`
启用一个已停用的包、以及热升级,现在都"立即迁移",不再列为"等下次重启"。同时更正两条未发布的变更说明(同一句错话),以及
`claimant-disabled` 警告里"启用后的第一次启动才迁移"的说法。
- **为什么改**:objectstack-ai#33478 合入时写了"运行时安装/启用不发通告,要等重启",但 objectstack-ai#33448 已让两扇门发
`metadata:reloaded`;另外 objectstack-ai#33304 让热升级撤回旧版职位(objectstack-ai#33473 已在模块注释里改过),spec
文字还说要重启。契约评审 6886866329 指出前者。
- **风险与回滚**:无 schema、取值或行为变化;唯一发布的运行时字节是一条警告文案。`check-empty-changeset`
因有意更正两条未发布说明而保持红(DELIBERATE CORRECTION,见下)。回滚即 revert。
- **先看**:`packages/spec/src/identity/position.zod.ts` 的 `renamedFrom`
jsdoc 与 describe。
- **两分钟验证**:`git grep -n "do not announce\|does not announce, and"
packages/spec/src/identity content/docs/references/identity`,预期无命中;对照
`packages/runtime/src/domains/packages.ts` 里两处 `announcePackageReload`
调用。
- **需要你做的**:无,席位做契约复审并落地。

## What changes

Text only; no schema, accepted value or behaviour changes.

- `packages/spec/src/identity/position.zod.ts`, `renamedFrom` jsdoc: the
doors carried at once are now a hot install-local install **or
upgrade**, for the package the door announces, the runtime `POST
/packages` install, a `PATCH /packages/:id/enable` that switches a
disabled package on, a per-item publish and a publish-drafts. A package
still disabled when its announcement is heard is refused
`claimant-disabled` until the enable that switches it on announces it
again. The other packages of a multi-package artifact (install-local
announces only the artifact's own id, review 6889382518 on objectstack-ai#33653; the
code change is tracked in objectstack-ai#33656) and an artifact reload that names only
its file stay "at the next restart".
- Same file, `.describe()`: "(an install or hot upgrade of the package
the door announces, the enable of a disabled package, a per-item
publish, a publish of drafts). A package still disabled then is carried
when it is enabled. The other packages of a multi-package artifact, and
an artifact reload that names only its file, are carried at the next
restart."
- `position-renamed-holder-carry.ts` module doc: "When it runs" says a
hot install-local install or upgrade is carried at once for the package
the door announces, the other packages of a multi-package artifact at
the next restart; the `claimant-disabled` bullet (~:48-51) now names the
enable that carries, matching the warning reason.
- `content/docs/references/identity/position.mdx`: the `renamedFrom`
row, regenerated (`pnpm gen:schema && pnpm gen:docs`), not hand-edited.
-
`packages/plugins/plugin-security/src/position-renamed-holder-carry.ts`,
module doc "When it runs": the runtime install and the enable of a
disabled package announce `app/ID` and are carried at once; an install
that leaves the package disabled is refused `claimant-disabled` until
that enable.
- `.changeset/33301-renamed-from-install-enable-announce.md`:
`@objectstack/spec` patch.
- `position-renamed-holder-carry.ts` ~:690, the `claimant-disabled`
warning reason, FROM "the renamed position's package is disabled; the
first boot after it is enabled carries them" TO "the renamed position's
package is disabled; enabling it through `PATCH /packages/:id/enable`
carries them, and so does the first boot after it is enabled". No test
pins the string (`git grep` over `*.test.ts`); the only test of the
refusal asserts `reason: 'claimant-disabled'`. This string ships in
`dist`, so `.changeset/33301-claimant-disabled-log-reason.md` is an
`@objectstack/plugin-security` patch.
- Two pending release notes, corrected in place (see DELIBERATE
CORRECTION below).

### DELIBERATE CORRECTION of two pending release notes

`check-empty-changeset` stays red on purpose: both notes are unreleased
and describe the same doors, and restoring them would publish sentences
that are false on `main`.

- `.changeset/33301-renamed-from-carry-text.md` (this card's PR 1), FROM
"(a hot install, a per-item publish of the position, a publish of
drafts). A hot upgrade over a version the kernel still serves, a package
install or enable that does not announce, and an artifact reload that
names only its file are carried at the next restart." TO "(an install or
hot upgrade, the enable of a disabled package, a per-item publish of the
position, a publish of drafts). A package still disabled when it is
announced is carried when it is enabled; an artifact reload that names
only its file is carried at the next restart."
- `.changeset/33238-position-rename-hot-install.md` (objectstack-ai#33238): the bullet
"the runtime's package install and enable routes, which do not announce
`metadata:reloaded`;" is removed from "Still carried at the next
restart". "Carried at once" gains: "the runtime's package install (`POST
/packages`) and the enable of a disabled package (`PATCH
/packages/:id/enable`), which announce `app/ID` (`@objectstack/runtime`,
objectstack-ai#33302). A package still disabled when it is announced is not carried
until the enable switches it on and announces it again."

### Where each claim is read on `main` (1cf2a5a)

- Install announces on both answers:
`packages/runtime/src/domains/packages.ts` ~:2781
`announcePackageReload(deps, _context, pkgId, 'installed')`, before the
`enableOnInstall` lifecycle refusal returns.
- Enable announces only when the package was disabled: ~:2856 `if
(wasDisabled) await announcePackageReload(…, 'enabled')`. Pinned by
`packages-reload-announce.test.ts`.
- A disabled claimant is refused: `position-renamed-holder-carry.ts`
`claimant-disabled` (judged on the reload path as on boot), so an
install that lands disabled carries nothing until the enable announces.
- Hot upgrade: `SchemaRegistry.replacingPackageBody` (objectstack-ai#33050, landed in
objectstack-ai#33304) withdraws the positions the new body no longer ships inside
`registerApp`; objectstack-ai#33473 pinned it end to end through install-local and
already corrected the carry's module doc, but not the spec text.

### Deviation from the prepared patch

The order's patch (be318a6d) no longer applied: objectstack-ai#33473 had rewritten the
carry's module doc under it. It was re-applied by hand, and it kept "a
hot upgrade over a version the kernel still serves … carried at the next
restart", which objectstack-ai#33473 measured false. Re-asserting that in rewritten
text would claim more than the code does, so the same sentences drop it.
Round 2, at the seat's request, adds the warning string and the two
pending notes below.

## Tests

None: a description and comment diff, no behaviour change.

## Acceptance notes

- `@objectstack/plugin-security` changeset: the module-doc edit ships
nothing (tsup strips comments; after the build `grep -rl 'enable of a'
dist` has no hit), but the warning string does (`enabling it through` is
in `dist/index.js` and `dist/index.mjs`), so the package gets a patch
note for the string.
- Left as is, at the seat's word: objectstack-ai#33568's ADR-0150 wording still lists
"a hot upgrade over a version the running kernel still serves" as
carried at the next restart, false since objectstack-ai#33304. That is the card's ADR
follow-up after objectstack-ai#33568 merges.
Clause-②: no
Metadata-protocol: none

## Verification

At head `27a39b87` (`origin/main` `4c32b969` merged in), after building
the lint, plugin-security, objectql, client-react and cli closures:

- 106 derived gates (`dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack`): 104 exit 0; `--ran` reads "106 derived
famil(ies) accounted for — 105 run, 1 NOT-MEASURED".
- `check-empty-changeset.mjs --base origin/main` exit 1: the DELIBERATE
CORRECTION above, red on purpose.
- NOT MEASURED: `check:dual-build-cjs-loads` (exit 3, a PREREQUISITE
refusal: it reads every package's `dist`). CI runs it.
- `pnpm --filter @objectstack/plugin-security test`: 267 files, 6679
passed, 45 skipped. `typecheck` exit 0.
- Round 1 at `63085567`: `pnpm --filter @objectstack/spec test` 840
files, 26871 passed, 1 todo; `gen:schema && gen:docs` moved only
`content/docs/references/identity/position.mdx`. Round 2 does not touch
`packages/spec`.

Round 3 at head `85543852` (`origin/main` `3c0033f9` merged in; the net
diff against main was unchanged by the merges): `pnpm --filter
@objectstack/spec test` 840 files passed, 1 skipped, 26878 passed; `pnpm
--filter @objectstack/plugin-security test` 267 files, 6679 passed, 45
skipped, `typecheck` exit 0 (at `a797bffe`; the round-3 edit after it is
comment and describe text only, and
`position-renamed-holder-carry.test.ts` 35/35 at `85543852`);
`gen:schema && gen:docs` moved only the `position.mdx` row;
`check:generated` (after a spec rebuild), `check:docs`,
`check:spec-docblock-symbol-anchors` and `check-issue-citations` exit 0.

Records: `pm-orders/spec/33301-followup-gates-ran.txt` (round 1) and
`pm-orders/spec/33301-followup-r2-gates-ran.txt` (round 2) in the
project share.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5pKQmfpw66kCN9pAhn)_

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

https://claude.ai/code/session_01FEkQ5pKQmfpw66kCN9pAhn

<!-- signed: domain:spec#1 · os-project-manager ·
session_01FEkQ5mswnWm181XgYcCUag -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…on carries at once (objectstack-ai#33653)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X5wpk1gsxYNKAkG5qioWPNY)_

Fixes objectstack-ai#33301

A two-sentence correction to the ADR-0150 D7 addendum that PR objectstack-ai#33568
landed. While objectstack-ai#33568 sat in the merge queue, PR objectstack-ai#33473 (and objectstack-ai#33050, PR
objectstack-ai#33304, before it) made a hot upgrade over a version the running kernel
still serves carry its holders at once: the re-register withdraws the
position the new version no longer ships, so the old name is no current
position when the announcement is heard. objectstack-ai#33568's text still listed that
case under the next restart. `docs/adr/**` only (Tier H): it waits for a
GOVERNED_APPROVER.

## 维护者速读

- **改了什么**:只改 ADR-0150 第 288
行补遗里的一句:热升级(即使运行中的内核仍在提供旧版本)也会立即迁移持有人,移入“立即迁移”一栏;“下次重启才迁移”只剩“只报文件路径的产物重载”。
- **为什么改**:objectstack-ai#33568 排队期间 objectstack-ai#33473 合入(建立在 objectstack-ai#33050 之上),热升级已在通告时立即迁移;objectstack-ai#33568
的原句因而不实。
- **风险与回滚**:纯文档,无代码、无发布内容。回滚即 revert。
-
**先看**:`docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md`
第 288 行 “It runs at boot over every claim” 一句。
- **两分钟验证**:读该句,预期 “carried at the next restart” 之前只剩 “an artifact
reload that names only its file”;与 `position-renamed-holder-carry.ts`
“When it runs” 一节的热升级段一致。
- **需要你做的**:审阅并批准(Tier H,需 GOVERNED_APPROVER 批准后由席位落地)。

## What changes


`docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md`
~:288, one clause of the sentence "It runs at boot over every claim, …":

- FROM "a hot install-local install, the runtime `POST /packages`
install, … are carried at once; a hot upgrade over a version the running
kernel still serves and an artifact reload that names only its file are
carried at the next restart."
- TO "a hot install-local install or upgrade, for the package the door
announces (an upgrade over a version the running kernel still serves
included, since the re-register withdraws the position the new version
no longer ships), the runtime `POST /packages` install, … are carried at
once; the other packages of a multi-package artifact, which
install-local registers but does not name, and an artifact reload that
names only its file are carried at the next restart."

Round 2 (contract review 6889382518): install-local announces only
`app/` + its manifest id (`marketplace-install-local-plugin.ts` :3817,
:6805), so the other `packages[]` members of a multi-package artifact
wait for the next boot; the code fix is objectstack-ai#33656, which will drop the
qualifier. Nit 2 folded in the refusals sentence: FROM "It does not
carry an old name that is switched off." TO "It does not carry an old
name that is switched off, nor carries holders onto a claimant whose
package is disabled (refused `claimant-disabled` until an enable
announces the package)."

No other sentence of the addendum and no ruling text changes.

## Tests

None: a docs-only diff.

## Acceptance notes

- Read against `origin/main` `babd5d4a`:
`position-renamed-holder-carry.ts` "When it runs" says a hot upgrade
over a still-served version is carried at once (objectstack-ai#33050), pinned by PR
objectstack-ai#33473's real-kernel test through install-local. Whether an upgrade
through the runtime `POST /packages` install also withdraws is not
measured, so the text claims it for install-local only.
- PR objectstack-ai#33546 (objectstack-ai#33527) made the package disable and `DELETE` routes
announce the withdrawal; the addendum says nothing about withdrawals, so
nothing is claimed about them here.
- The refusals clause still reads true against `main`: the refusal set
(`claimed-twice`, `claimant-disabled`, `still-declared`,
`held-by-other`, `owned-by-other`, `switched-off`) is unchanged.
- `skip-changeset`: no published package ships `docs/adr`.

## Verification

At head `1bb25336` off `origin/main` `babd5d4a`: 21 derived gates
(`dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`), all
exit 0; `--ran`: "21 derived famil(ies) accounted for, 21 run, 0
NOT-MEASURED". Record: `pm-orders/spec/33301-pr3-r2-gates-ran.txt` in
the project share.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5n95roc2dShmeuBAoB)_

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

https://claude.ai/code/session_01FEkQ5n95roc2dShmeuBAoB

<!-- signed: domain:spec#1 · os-project-manager ·
session_01FEkQ5mswnWm181XgYcCUag -->

---------

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

documentation Improvements or additions to documentation size/xs skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants