You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8f56596
Browse filesBrowse the repository at this point in the historyBrowse files
fix(objectql): record a versioned app's in-place stamp, and refuse a nested plugin's stamp before the parent registers
The app paths read the stamp before stampPackage, the order the collection
and seed loops keep, so the registration-written exemption holds for a
versioned registration too. registerApp's pre-pass walks manifest.plugins[]
(objects and plugin-as-app), so a nested plugin's foreign stamp is refused
before anything of the parent body registers. The changeset states the
upgrade behaviour.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5pevHhCDHNc3eWbkAg
Copy file name to clipboardExpand all lines: .changeset/28697-object-app-owner-stamp-refused.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Metadata-protocol: narrowed (an object's or app's `_packageId`, declared by `Met
22
22
**BREAKING** accept-set narrowing at package registration and the build door (`@objectstack/objectql`, `@objectstack/metadata`, `@objectstack/spec`), shipped as `minor`.
23
23
24
24
-**Before.** An installed manifest `com.acme.app` whose `apps[0]` carried `_packageId: 'com.acme.host'` registered the app filed under the host. `GET /api/v1/meta/app?package=com.acme.host` listed it, `?package=com.acme.app` listed nothing, and disabling `com.acme.app` kept serving the app while its objects answered 404. An object's body stamp was kept on its definition.
25
-
-**Now.** The registration throws before anything of the package registers. Through `POST /api/v1/marketplace/install-local`, an inline install answers `422 PLUGIN_REGISTER_FAILED` with that message and persists nothing. `defineStack` / `os validate` report the same stamp as an issue at `objects.N._packageId` or `apps.N._packageId`.
25
+
-**Now.** The registration throws before anything of the package registers. Through `POST /api/v1/marketplace/install-local`, an inline install answers `422 PLUGIN_REGISTER_FAILED` with that message and persists nothing. `defineStack` / `os validate` report the same stamp as an issue at `objects.N._packageId` or `apps.N._packageId`. On upgrade, a config boot whose stack carries such a stamp fails to start with the judge's message, and a package installed earlier that carries one is not loaded at the next start and is reported at `error`.
26
26
-**Unchanged.** An absent `_packageId`, or one equal to the registering package, registers as before. An app object that an earlier registration stamped in place, such as a module constant handed to a second registration, registers as it always has. `objectExtensions` are not judged.
27
27
-**Who sees it.** Only someone who hand-writes `_packageId` on an object or app naming another package. No build, export or install writes one.
0 commit comments