Repository navigation
Description
repo:objectstack#1 · os-project-manager · session_01FEkQ5obaLbqgzRUR9xXfft
Filing gate: ① contract violation (class b). ADR-0150 D1, ruled: "Behavioural and presentation metadata are identified by (package, name)". Bucket 2 and bucket 3 list the types below. D2: identity is (package id, type, name), and only co-owners of one namespace keep a name unique. Follow-up owed by #34226 (H3 on #34359). Suggested parent: #31527 (the ADR-0150 epic), as a sub-issue.
Seam: spec:DEFAULT_METADATA_TYPE_REGISTRY (allowEnvironmentOverlay: false on a bucket 2/3 type) → runtime:protocol-packaged-base-refusal.ts#refusePackagedBaseOverride
Locations (head b054ae27 of #34359)
packages/metadata-protocol/src/protocol-packaged-base-refusal.ts#refusePackagedBaseOverride, line 89:isSealedManagedItem(request.type, request.name)seals by name. Line 164 exemptspermissionalone (isOwnPermissionSetWrite, line 206).- The store's write intent, narrowed for
permissiononly:protocol-save.tsline 1912 (save),protocol-history-and-publish.tsline 1260 (promoteDraftForPublish) and line 148 (undoLandedPromotions), andprotocol-class-head.ts#restoreWriteForline 216 (rollback and revert; see the sibling card forpermission). - Types this affects (sealed, package-scoped):
flow,hook,job,webhook,mapping,connector,sharing_rule,queue,assignment_rule,app,page,dataset,analytics_cube,picklist,book,api,tool,skill,agent, andaction, which shares the predicate.dashboard,reportandemail_templateare not sealed (environment-overlay types), so they are out of scope.
Symptom
An admin of package hr saves hr's own flow (or page, app, agent, …) named X while package crm of another namespace ships a flow X. The save is refused 403 NOT_OVERRIDABLE ("provided by a managed package and is sealed"), as if it edited crm's flow. Install already lets both namespaces ship X: every type the bare-name rule covers has narrowed to the namespace (packages/objectql/src/bare-name-one-holder.ts, "The narrowing"). The save should land as hr's own X, and crm's X should be unchanged.
How it was found
Measured at the seal function. In #34359's H3 probe (a scratch test, not committed), refusePackagedBaseOverride was called for hr's own item of each type while crm ships one. Every type listed refused hr's save as sealed. action's registration contract refused the bare probe body, but its seal uses the same predicate. #34226's H1 showed that permission also had a second judge behind the seal: the store's name-wide write intent. These types share that code path, so they will too (read, not measured per type).
reach: PUT /api/v1/meta/:type/:name with a packageId (saveMetaItem → refusePackagedBaseOverride, protocol-save.ts line 738), the draft save and the publish of that draft. Measured at the function, not through the HTTP door.
Acceptance
- Measure first. For each type above, save
hr's ownXthrough the save door whilecrmshipsX, and record the answer and which judge refused it: the seal, the store's intent, or a type-specific gate. The card's scope is what that table shows. - For every sealed package-scoped type,
hr's own save, draft save and draft publish ofXland. The item is served athr's address, andcrm'sXis unchanged. FROM: 403NOT_OVERRIDABLE. - CONTROLs per type stay sealed as before, with
codeandstatusasserted: no package,crm,crm's customization pair (another namespace), and a co-owner ofcrm's namespace. With two shippers, every shipper is judged. - Every case runs in both registration orders:
crm's item registered before the other packages install, and after. - One verdict per write, at every judge that
permission's fix touched: the save-door seal and the store intent at save, promote, undo and restore. It generalisesisOwnPermissionSetWriteto use the type's own holders-meet predicate (permissionSetHoldersMeetforpermission,bareNameHoldersMeetfor a bare-name type) plusisPairOf.actionkeeps itsobjectName:nameidentity under the package. - An enumeration pin derives the type list from
DEFAULT_METADATA_TYPE_REGISTRY(sealed and package-scoped), so a type sealed later is judged without a code edit. An ablation leg goes red per judge. - Declaration:
Clause-②: yes (widening): a save, a draft save or a draft's publish that a package addresses to its own item of a sealed package-scoped type, refused 403NOT_OVERRIDABLEwhile a package of another namespace ships that name, now lands; nothing the doors accepted is refused.Metadata-protocol: none, patch.
Related
#34226 and #34359 (the permission half). #31527 (ADR-0150 epic). #30803 (bare-name phase 1; the narrowing this card's premise rests on).
Dedupe: gh api -X GET search/issues -f q='repo:objectstack-ai/objectstack is:issue sealed package-scoped name-wide seal flow hook (package, name)' 17 hits; the only open matches are #34226 and #31527. q='repo:objectstack-ai/objectstack is:issue refusePackagedBaseOverride namespace' 15 hits, none open on this shape (#32780 is the closed registry half for permission). q='repo:objectstack-ai/objectstack is:issue managed seal same name another namespace' 44 hits, none open on this shape (#32568 is the closed D4 read half).
Activity
objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:server· p3 (kept) ·pm:queue· 2026-11-16T13:53Z⛔ Not a claim.
The managed seal judges sealed package-scoped types (flow, page, app, agent, …) by name alone. A package's save of its own item is therefore refused when another package ships the same name. That contradicts ADR-0150 D1/D2, where identity is (package, type, name). The effect is real but narrow (same-name items across packages), so p3 as filed, kept under the p3 standard. Suggested parent #31527.