From a8d597fd94fc639ea03c934ff9fad9d72f2632b9 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 03:31:06 +0000 Subject: [PATCH 1/2] docs(adr): ADR-0150 addendum: a hot upgrade over a still-served version carries at once Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01FEkQ5n95roc2dShmeuBAoB --- ...data-addressed-by-package-objects-keep-the-literal-prefix.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md b/docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md index 362734e4bb8..c47bd21bbaa 100644 --- a/docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md +++ b/docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md @@ -285,7 +285,7 @@ A package that needs its permission sets on another package's position asks the `position.permissionSets` names permission sets, which are bucket 2, so each name resolves by D3 from the package that declared the position (an environment position resolves environment-wide). Every set that an administrator's overlay body names is the environment's reference (D3): it resolves as a caller with no package, never from the package the overlay customizes. So binding package Q's set, or an environment-authored set, to package P's position works as ruled. -**Addendum** (2026-11-13, [#32983](https://github.com/objectstack-ai/objectstack/issues/32983), ruling A1, record [`6841971722`](https://github.com/objectstack-ai/objectstack/issues/32983#issuecomment-6841971722)): an app that renames a position to keep out of another holder's slot declares the earlier names in `PositionSchema.renamedFrom`, 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 (`sys_user_position.position`, row R2, still a bare name) from each old name to the new one, as the system, in every organization (`plugin-security` `position-renamed-holder-carry.ts`). This is a system write that changes who holds a position. It carries holders only. It refuses an old name that two positions claim, that a position still declares, or that another package (enabled or disabled) or the environment holds or is recorded in the activation ledger as owning. It does not carry an old name that is switched off. An old name that no installed position holds and no ledger row records under another package is carried for its one claimant, whichever package that is: the platform keeps no other record of who owned a name that is no position now, and any package may already declare such a name (one slot per name). It judges the packages this boot loaded, so a package that failed to load at all holds no name it can see: a standing claim on a position name of such a package carries that package's holders to the claimant at that boot, and nothing carries them back. 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. 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, and nothing is carried back on a downgrade. +**Addendum** (2026-11-13, [#32983](https://github.com/objectstack-ai/objectstack/issues/32983), ruling A1, record [`6841971722`](https://github.com/objectstack-ai/objectstack/issues/32983#issuecomment-6841971722)): an app that renames a position to keep out of another holder's slot declares the earlier names in `PositionSchema.renamedFrom`, 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 (`sys_user_position.position`, row R2, still a bare name) from each old name to the new one, as the system, in every organization (`plugin-security` `position-renamed-holder-carry.ts`). This is a system write that changes who holds a position. It carries holders only. It refuses an old name that two positions claim, that a position still declares, or that another package (enabled or disabled) or the environment holds or is recorded in the activation ledger as owning. It does not carry an old name that is switched off. An old name that no installed position holds and no ledger row records under another package is carried for its one claimant, whichever package that is: the platform keeps no other record of who owned a name that is no position now, and any package may already declare such a name (one slot per name). It judges the packages this boot loaded, so a package that failed to load at all holds no name it can see: a standing claim on a position name of such a package carries that package's holders to the claimant at that boot, and nothing carries them back. 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 or upgrade (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, 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; an artifact reload that names only its file is carried at the next restart. 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, and nothing is carried back on a downgrade. ### D8 — Stored references gain a package column, backfilled from the one holder From 1bb25336ec432a8d7e64303fa10e6082cb205f56 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 04:51:47 +0000 Subject: [PATCH 2/2] docs(adr): ADR-0150 addendum: install-local carries the package it announces, and a disabled claimant waits for its enable Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01FEkQ5n95roc2dShmeuBAoB --- ...data-addressed-by-package-objects-keep-the-literal-prefix.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md b/docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md index c47bd21bbaa..14698465a1c 100644 --- a/docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md +++ b/docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md @@ -285,7 +285,7 @@ A package that needs its permission sets on another package's position asks the `position.permissionSets` names permission sets, which are bucket 2, so each name resolves by D3 from the package that declared the position (an environment position resolves environment-wide). Every set that an administrator's overlay body names is the environment's reference (D3): it resolves as a caller with no package, never from the package the overlay customizes. So binding package Q's set, or an environment-authored set, to package P's position works as ruled. -**Addendum** (2026-11-13, [#32983](https://github.com/objectstack-ai/objectstack/issues/32983), ruling A1, record [`6841971722`](https://github.com/objectstack-ai/objectstack/issues/32983#issuecomment-6841971722)): an app that renames a position to keep out of another holder's slot declares the earlier names in `PositionSchema.renamedFrom`, 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 (`sys_user_position.position`, row R2, still a bare name) from each old name to the new one, as the system, in every organization (`plugin-security` `position-renamed-holder-carry.ts`). This is a system write that changes who holds a position. It carries holders only. It refuses an old name that two positions claim, that a position still declares, or that another package (enabled or disabled) or the environment holds or is recorded in the activation ledger as owning. It does not carry an old name that is switched off. An old name that no installed position holds and no ledger row records under another package is carried for its one claimant, whichever package that is: the platform keeps no other record of who owned a name that is no position now, and any package may already declare such a name (one slot per name). It judges the packages this boot loaded, so a package that failed to load at all holds no name it can see: a standing claim on a position name of such a package carries that package's holders to the claimant at that boot, and nothing carries them back. 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 or upgrade (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, 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; an artifact reload that names only its file is carried at the next restart. 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, and nothing is carried back on a downgrade. +**Addendum** (2026-11-13, [#32983](https://github.com/objectstack-ai/objectstack/issues/32983), ruling A1, record [`6841971722`](https://github.com/objectstack-ai/objectstack/issues/32983#issuecomment-6841971722)): an app that renames a position to keep out of another holder's slot declares the earlier names in `PositionSchema.renamedFrom`, 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 (`sys_user_position.position`, row R2, still a bare name) from each old name to the new one, as the system, in every organization (`plugin-security` `position-renamed-holder-carry.ts`). This is a system write that changes who holds a position. It carries holders only. It refuses an old name that two positions claim, that a position still declares, or that another package (enabled or disabled) or the environment holds or is recorded in the activation ledger as owning. 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). An old name that no installed position holds and no ledger row records under another package is carried for its one claimant, whichever package that is: the platform keeps no other record of who owned a name that is no position now, and any package may already declare such a name (one slot per name). It judges the packages this boot loaded, so a package that failed to load at all holds no name it can see: a standing claim on a position name of such a package carries that package's holders to the claimant at that boot, and nothing carries them back. 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 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, 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; 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. 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, and nothing is carried back on a downgrade. ### D8 — Stored references gain a package column, backfilled from the one holder