Repository navigation
docs(spec, plugin-security): the runtime package install, the enable of a disabled package and a hot upgrade carry renamedFrom holders at once - #33642
Conversation
…of a disabled package and a hot upgrade carry renamedFrom holders at once The runtime install door and the enable of a disabled package announce metadata:reloaded with app/ID (#33448), and a hot upgrade's re-register withdraws the position the new version no longer ships (#33050), so the renamedFrom jsdoc, describe and the carry's header comment list them among the doors carried at once. A package still disabled when announced is refused claimant-disabled until the enable that announces it again. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5pKQmfpw66kCN9pAhn
📓 Docs Drift CheckThis PR changes 2 package(s): 4 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 4 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 175 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin b888a41efdbd00853bf8cc919cf694747c59372b && git checkout b888a41efdbd00853bf8cc919cf694747c59372b
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 8f915f2a17c2f496c63a7b9d6b86b04aaf9a6ff2 c60334587961089261f6a49f1e3dcc6f9fa71433 && git checkout -B drift-repro 8f915f2a17c2f496c63a7b9d6b86b04aaf9a6ff2 && git merge --no-ff c60334587961089261f6a49f1e3dcc6f9fa71433
node scripts/docs-audit/affected-docs.mjs --json 8f915f2a17c2f496c63a7b9d6b86b04aaf9a6ff2
|
…that carries the holders; pending notes match the announcing doors The claimant-disabled refusal reason said only the first boot after the enable carries the holders; since the runtime enable route announces the package, the enable carries them at once. The two pending release notes (the renamedFrom carry text and the hot-install carry) listed the runtime install and enable routes, and a hot upgrade, among the cases carried at the next restart; they now list them as carried at once. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5pKQmfpw66kCN9pAhn
|
domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag Contract reviewServed-tier: PR #33642 ( ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Findings:
Findings:
Tried to break it: an upgrade after a restart (the boot rehydrate registers through the same No must-fix. One should-fix, in ②, on the PR body. Nits may be left or folded on the prose faces. Implemented-by: VERDICT: PASS |
…es the enable that carries Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5pKQmfpw66kCN9pAhn
…ackage the door announces The marketplace install-local door announces only the artifact's own id, so the other packages of a multi-package artifact are carried at the next restart; the renamedFrom jsdoc, describe, regenerated row and the carry's module doc say so. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5pKQmfpw66kCN9pAhn
|
domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag Contract reviewServed-tier: Delta review of record 6889204599 (PASS at What moved since ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Findings:
No finding on this file. Tried to break the delta: a member of a multi-package artifact reached by another announcement (a per-item publish or publish-drafts names No must-fix. One should-fix, in ③, on the PR body. Nits may be left or folded on the prose faces. Check-runs on Implemented-by: VERDICT: PASS |
|
domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag ACCEPT · PR #33642 (#33301 follow-up, Refs) · head
|
Requested by Leehom · project thread
Refs #33301
Follow-up PR for the card (PR 1 #33478 merged; PR 2 #33568 is the separate Tier H ADR leg). This one corrects the
PositionSchema.renamedFromtext that #33448 and #33304/#33473 made false onmain.维护者速读
PositionSchema.renamedFrom的 jsdoc 与.describe()(及其生成的参考文档行)、plugin-security迁移模块注释:运行时POST /packages安装、PATCH /packages/:id/enable启用一个已停用的包、以及热升级,现在都"立即迁移",不再列为"等下次重启"。同时更正两条未发布的变更说明(同一句错话),以及claimant-disabled警告里"启用后的第一次启动才迁移"的说法。metadata:reloaded;另外 fix(objectql): an upgrade or re-install withdraws the items its new version no longer ships (#33050) #33304 让热升级撤回旧版职位(test(plugin-security, cloud-connection): pin the hot-upgrade holder carry through install-local on a real kernel (#33238) #33473 已在模块注释里改过),spec 文字还说要重启。契约评审 6886866329 指出前者。check-empty-changeset因有意更正两条未发布说明而保持红(DELIBERATE CORRECTION,见下)。回滚即 revert。packages/spec/src/identity/position.zod.ts的renamedFromjsdoc 与 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,renamedFromjsdoc: the doors carried at once are now a hot install-local install or upgrade, for the package the door announces, the runtimePOST /packagesinstall, aPATCH /packages/:id/enablethat switches a disabled package on, a per-item publish and a publish-drafts. A package still disabled when its announcement is heard is refusedclaimant-disableduntil 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 docs(adr): ADR-0150 addendum: a hot upgrade over a still-served version carries at once #33653; the code change is tracked in install-local: a hot install of a multi-package artifact announces only the artifact's own id, so renamed-position holders of its other packages wait for the next boot #33656) and an artifact reload that names only its file stay "at the next restart"..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.tsmodule 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; theclaimant-disabledbullet (~:48-51) now names the enable that carries, matching the warning reason.content/docs/references/identity/position.mdx: therenamedFromrow, 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 announceapp/IDand are carried at once; an install that leaves the package disabled is refusedclaimant-disableduntil that enable..changeset/33301-renamed-from-install-enable-announce.md:@objectstack/specpatch.position-renamed-holder-carry.ts~:690, theclaimant-disabledwarning 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 throughPATCH /packages/:id/enablecarries them, and so does the first boot after it is enabled". No test pins the string (git grepover*.test.ts); the only test of the refusal assertsreason: 'claimant-disabled'. This string ships indist, so.changeset/33301-claimant-disabled-log-reason.mdis an@objectstack/plugin-securitypatch.DELIBERATE CORRECTION of two pending release notes
check-empty-changesetstays red on purpose: both notes are unreleased and describe the same doors, and restoring them would publish sentences that are false onmain..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(positions: carry renamedFrom holders on a hot package install or upgrade too, not only at kernel boot #33238): the bullet "the runtime's package install and enable routes, which do not announcemetadata: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 announceapp/ID(@objectstack/runtime, 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). 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)packages/runtime/src/domains/packages.ts~:2781announcePackageReload(deps, _context, pkgId, 'installed'), before theenableOnInstalllifecycle refusal returns.if (wasDisabled) await announcePackageReload(…, 'enabled'). Pinned bypackages-reload-announce.test.ts.position-renamed-holder-carry.tsclaimant-disabled(judged on the reload path as on boot), so an install that lands disabled carries nothing until the enable announces.SchemaRegistry.replacingPackageBody(install-local re-install or upgrade does not withdraw items the new version no longer ships — a dropped tool/flow stays registered and keeps its bare name until restart #33050, landed in fix(objectql): an upgrade or re-install withdraws the items its new version no longer ships (#33050) #33304) withdraws the positions the new body no longer ships insideregisterApp; test(plugin-security, cloud-connection): pin the hot-upgrade holder carry through install-local on a real kernel (#33238) #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: #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 #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-securitychangeset: the module-doc edit ships nothing (tsup strips comments; after the buildgrep -rl 'enable of a' disthas no hit), but the warning string does (enabling it throughis indist/index.jsanddist/index.mjs), so the package gets a patch note for the string.Clause-②: no
Metadata-protocol: none
Verification
At head
27a39b87(origin/main4c32b969merged in), after building the lint, plugin-security, objectql, client-react and cli closures:dispatch-gates.mjs --commands --repo objectstack-ai/objectstack): 104 exit 0;--ranreads "106 derived famil(ies) accounted for — 105 run, 1 NOT-MEASURED".check-empty-changeset.mjs --base origin/mainexit 1: the DELIBERATE CORRECTION above, red on purpose.check:dual-build-cjs-loads(exit 3, a PREREQUISITE refusal: it reads every package'sdist). CI runs it.pnpm --filter @objectstack/plugin-security test: 267 files, 6679 passed, 45 skipped.typecheckexit 0.63085567:pnpm --filter @objectstack/spec test840 files, 26871 passed, 1 todo;gen:schema && gen:docsmoved onlycontent/docs/references/identity/position.mdx. Round 2 does not touchpackages/spec.Round 3 at head
85543852(origin/main3c0033f9merged in; the net diff against main was unchanged by the merges):pnpm --filter @objectstack/spec test840 files passed, 1 skipped, 26878 passed;pnpm --filter @objectstack/plugin-security test267 files, 6679 passed, 45 skipped,typecheckexit 0 (ata797bffe; the round-3 edit after it is comment and describe text only, andposition-renamed-holder-carry.test.ts35/35 at85543852);gen:schema && gen:docsmoved only theposition.mdxrow;check:generated(after a spec rebuild),check:docs,check:spec-docblock-symbol-anchorsandcheck-issue-citationsexit 0.Records:
pm-orders/spec/33301-followup-gates-ran.txt(round 1) andpm-orders/spec/33301-followup-r2-gates-ran.txt(round 2) in the project share.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5pKQmfpw66kCN9pAhn