Repository navigation
fix(metadata-protocol, metadata)!: the bare read of an action name weighs its package-less holder, and serves the one enabled holder when a disabled package registered first (ADR-0150 D3) - #32551
Conversation
…s the package-less holder and serves the one enabled holder Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZJg15nkBQ9JewJsNS
…der's own object Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZJg15nkBQ9JewJsNS
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZJg15nkBQ9JewJsNS
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZJg15nkBQ9JewJsNS
📓 Docs Drift CheckThis PR changes 2 package(s): 20 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 10 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 16 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 b8f35ae4abd6bf386f2884dcc54732afec664f2c && git checkout b8f35ae4abd6bf386f2884dcc54732afec664f2c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 1216abf1a63135359b988a19bb620ea78421fea4 9f68f5305b7d577a7745646144637627a07eb08c && git checkout -B drift-repro 1216abf1a63135359b988a19bb620ea78421fea4 && git merge --no-ff 9f68f5305b7d577a7745646144637627a07eb08c
node scripts/docs-audit/affected-docs.mjs --json 1216abf1a63135359b988a19bb620ea78421fea4
|
|
epic:#31527#2 · os-bill · session_01Utp6Ca5UHVBDE3DqQXgJsW Contract reviewServed-tier: PR #32551, card #32365, face: declared narrowing ( Check-runs on the head at review time: 24 completed success, 16 completed skipped, 0 failed, 9 still running (
① Derived judgmentsTen moved answers, each checked against the tree.
Execution face kept on main's answer per seat ruling B. Measured in the diff: with a package-less registry entry present and Exact reads: both judge call sites are guarded by List reads: no list path is in the diff; none moves. ② Semver levelConsistent. The changeset bumps The changeset's own wording inherits F1 ("whether the package-less item sits on the packages' own key or on another object") and names ③ Boundary flags
④ Design judgmentF1 — must-fix. F2 — should-fix. F3 — should-fix. F4 — should-fix, needs a carrier. In process the platform's item is the environment's. The store classifies every package-less slot as the environment's: beside one package it answers first, beside two it is named F5 — should-fix. One CONTROL does not pin which holder answers, and the answer is not the rule's. "The service's refusal naming a DISABLED package beside A and the environment is no refusal" asserts F6 — should-fix. Two residues of the in-process env-first rule, both unchanged from F7 — nit. The jsdoc of Break attempts that held:
Implemented-by: VERDICT: FAIL Generated by Claude Code |
…e action read - readIdentity's refusal names the environment's item when two packages share one identity and the environment's sits on another object (F1). - A bare action read serves the metadata service's copy (step 2 and the /layers code layer) only when it is package-less or the judged holder's own; pinned over a real MetadataManager for case 1 and case 3 with code and overlay asserted apart (F3), and the disabled-B CONTROL pins its holder (F5). - /published pinned for the platform arm and the candidate-added arm on RestServer and on the dispatcher (F2). - Changeset: the ?package=P step-2 move is declared, the arms are aligned, and the in-process wording names the package-less item as treated as the environment's (F4, F6(b), F7); jsdoc and pin label follow the rule. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZJg15nkBQ9JewJsNS
|
epic:#31527#2 · os-bill · session_01Utp6Ca5UHVBDE3DqQXgJsW Contract reviewServed-tier: Round 2 on PR #32551, card #32365, after the FAIL at Check-runs on the head at review time: 14 completed success ( The merge of ① Derived judgmentsThe ten moved answers of round 1 stand as judged there. What changed:
Execution face kept on main's answer per seat ruling B. Measured in the diff: with a package-less registry entry present and Exact reads: the judge and the new step-2 rule are both behind ② Semver levelConsistent, unchanged from round 1. ③ Boundary flags
④ Design judgmentRound-1 findings:
New in this head: N1 — should-fix. The fit test reads the item's own stamp, not the holder it was stored for. N2 — nit. The fit test is an equality of stamps. Where the judged item is the holder's bound overlay stamped with its customization pair, the holder's own service copy does not fit; the code layer then comes from the registry's artifact lookup, which falls back to the holder's artifact. The answer is the same holder's document, read from the registry instead of the service. Break attempts on the new rule that held:
Implemented-by: VERDICT: PASS Generated by Claude Code |
… store reads it The fit test read two flat fields. It now reads the package the way the store does (storedItemPackageId, the publish envelope peeled), and a package-less copy beside the environment's judged item fits only when it binds the same object: a package-less body in a package's slot is that package's customization. The two readers ship as the lean entry @objectstack/metadata/stored-item-package. Pinned over a real MetadataManager: enveloped copies in case 1 and case 3, a customization beside the environment's item, and a CONTROL for the one holder's customization (contract review N1). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZJg15nkBQ9JewJsNS
…ntrol Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZJg15nkBQ9JewJsNS
…-yjyeap # Conflicts: # packages/metadata/src/metadata-manager-action-slots.test.ts
|
epic:#31527#2 · os-bill · session_01Utp6Ca5UHVBDE3DqQXgJsW Contract reviewServed-tier: Round 3 on PR #32551, card #32365, after the round-2 record at Check-runs on The two merges, judged on this PR's files only:
① Derived judgmentsThe moved answers of rounds 1 and 2 stand. What changed:
Execution face kept on main's answer per seat ruling B. The refined rule runs only where a judged answer exists, as in round 2. ② Semver levelConsistent. Both packages stay at Nit: the PR body does not name the new entry or the refined fit rule; only the changeset does. ③ Boundary flags
④ Design judgmentN1 — closed. Pins: 4 new cases over a real
The new entry is lean. Break attempts that held:
Nit: Implemented-by: VERDICT: PASS |
|
epic:#31527#2 · os-bill · session_01Utp6Ca5UHVBDE3DqQXgJsW ACCEPT · PR #32551 ( 维护者速读
席位核对
Generated by Claude Code |
Brings in main 9cd5fc1, #32507 (flow joins PACKAGE_SLOTTED_STORE_TYPES) and #32551 among it. Merged without conflict. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Cb9GWFBTQCjLFEXwNk
…mes the environment too, after #32551 (#32521) Claude-Session: https://claude.ai/code/session_01Utp6CYrqEYLDLZiGUdq9Pe Co-authored-by: Claude <noreply@anthropic.com>
Resolve protocol-meta-layered-reads.ts: keep main's judgeBareActionRead block (#32551) and bind its admitExactQualifier result to exactAddress for the exact-address judging this branch adds. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXMPeaveqRdwRZKKQP
…-du44hj Brings in #31696 PR-3 (#32507, flow names per namespace) and #32551, as the landing order requires. Conflicts resolved keeping both sides: `flow` and the picklist family both join NAMESPACE_SCOPED_BARE_NAME_TYPES (core) and PACKAGE_SLOTTED_STORE_TYPES (metadata), in landing order, with their docs; the store and switch pins list both; the runtime qualified-read test keeps both new describes. The changeset no longer lists flow among the types that keep one holder per deployment. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbqzUZJRphdYbBQ16b
…ers per (object, name), so the boot pass keeps a package-less row on another object beside the holder's (objectstack-ai#33422) <!-- claude-projects-attribution: {"github_login":"os-elon-musk"} --> _Requested by **Elon** · [project thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DDZYUbJbnXUTqZoZ56k4czR)_ Fixes objectstack-ai#32681 Clause-②: yes (narrowing) Metadata-protocol: none ## 维护者速读 - 改了什么:动作(`action`)的无包行在非限定的复数读取(`pluralEntryKeys`,`loadMany` / `loadManyKeyed` / `DatabaseLoader` 的非限定读取共用)里,按 `(对象, 名字)` 数持有者:只有当名字唯一的持有包也把该名字绑在同一个对象上时,无包行才并入它(它的定制);绑在没人绑的对象上的无包行是环境自己的条目,单独保留。 - 为什么改:席位裁决 A(2026-11-14T16:12Z)的后一半。之前 ALPHA 把 `approve` 绑在 `account`、一条无包行绑在 `contact` 时,复数读取按名字把两行并成一条、只留最后保存的那行,启动预载后注册表只剩一个;点名 ALPHA 的读取在预载后答出 `contact` 行(ALPHA 从没声明过的绑定),而冷读答 ALPHA 自己的 `account` 行。只有 BETA 绑 `contact`、无包行在 `account` 时同理。 - 风险与回滚:只影响接了 `DatabaseLoader` 的宿主(工作区内 0 处);库里的行不改不迁移,只改复数读取保留哪些行、预载注册哪些;同一对象上的单持有者、两个包持有同名的情形不变;回滚 = revert 本 PR。 - 先看:`packages/metadata/src/package-slotted-store.ts` 的 `pluralEntryKeys`(风险 hunk:`customizes` 判定)与新 helper `entryIdentitiesOf`。 - 两分钟验证:`pnpm --filter @objectstack/metadata exec vitest run src/loaders/database-loader.test.ts -t "counts an action name"`,预期 11 个用例全绿。 - 需要你做的:无,席位落地。 ## What changes Second half of seat ruling A on objectstack-ai#32681 (ADR-0150 D4: an action is keyed by `(package, objectName, name)`). The first half (objectstack-ai#33318) keyed `DatabaseLoader`'s saves and slot reads per `(object, name)`; this one does the same for the unscoped plural read, now that objectstack-ai#33299's keyed-entry stamping is on `main`. `pluralEntryKeys` (`packages/metadata/src/package-slotted-store.ts`) is the key `MetadataManager.loadMany`, `MetadataManager.loadManyKeyed` and `DatabaseLoader`'s unscoped reads keep one entry per. For `action`, an entry that carries no package is now folded into the name's one holder only when that holder binds the name to the entry's own object (or both are object-less): the holders of the entry's `(object, name)`, counted from the row's `bundle_member` column first, else its body's object, through a new helper `entryIdentitiesOf` that `pluralEntryCustomizedHolders` now shares. Bound to an object no package binds the name to, the row is the environment's own entry and keeps a key of its own, so the boot priming pass registers it beside the holder's item and the store's `(object, name)` write rule files it in the bare slot. Every moved answer, FROM to TO (host wiring a `DatabaseLoader`; stored rows; `approve` the action name): | Shape | Answer | FROM | TO | |:--|:--|:--|:--| | ALPHA on `account`, a package-less row on `contact` | plural read (`loadMany`) | one entry, the row saved last | both | | same | registry after the boot pass | `contact` key alone (package-less saved last) / ALPHA's `account` key alone (saved first) | ALPHA's `account` key and the `contact` key | | same, package-less row saved last | read naming ALPHA after the pass | the `contact` row | ALPHA's `account` item, as without the pass | | BETA on `contact` alone, a package-less row on `account` | plural read; registry after the pass | one entry; one key | both; BETA's `contact` key and the `account` key | | same, package-less row saved last | read naming BETA after the pass | the `account` row | BETA's `contact` item, as without the pass | | ALPHA on `account` + a package-less object-less row; ALPHA object-less + a package-less row on `account` | plural read; registry; reads after the pass | one entry, one key | both, both keys, reads equal to the reads without the pass | The narrowing: after the boot pass, a read naming a package no longer reaches a package-less row bound to an object that package never bound the name to. Re-measured with objectstack-ai#33299 merged: the fold no longer loosens a read naming BETA into ALPHA's item. In the mirror shape, a read naming BETA (which holds nothing) answers the environment's `contact` row before and after the pass, in both version orders, and never ALPHA's. Not changed: a name one package holds on one object beside a package-less row on that object (one entry, the row saved last); a name two packages hold (the package-less row keeps its own entry and `pluralEntryCustomizedHolders` names the holder it customizes, as in objectstack-ai#33318); the `/actions/OBJECT/NAME` route's declaration read (see Acceptance notes); types other than `action`; stored rows (no migration). ## Tests - `packages/metadata/src/loaders/database-loader.test.ts`, describe `[objectstack-ai#32681] the plural read counts an action name's holders per (object, name)…` (11 cases): four moved shapes in both version orders (plural read entries, cold reads, registry keys after the real `MetadataPlugin` boot pass, reads after the pass equal to the cold reads, no row updated); CONTROL one package on one object (both orders: one entry, the one saved last, its key); CONTROL two packages on one object (three entries, bare read refused naming both and the environment, before and after the pass). - Moved pin: `[objectstack-ai#32791]` "a package's row bound to an object and an object-less package-less row saved last" — the registry now holds ALPHA's `account` key beside the bare slot (FROM the bare slot alone); the bare reads are unchanged. - `packages/runtime/src/action-package-addressing.test.ts`, describe `[objectstack-ai#32681] /actions/account/approve…` (4 new cases): mirror shape and single-holder cell, both save orders, over the writable `sys_metadata` double, the real `MetadataPlugin` boot pass and the protocol: registry holds both keys, a read naming the holder answers its own item, and the package-less row's route judges that item and runs the environment's handler. ## Acceptance notes - The holder's own route (`/actions/account/approve` in the mirror shape, `/actions/contact/approve` in the single-holder cell) still judges no declaration, before and after this change alike (measured both ways, the metadata fix ablated and rebuilt): its declaration read is the protocol's execution face (`getMetaItemForExecution`), which beside one package holder answers the environment's item on the other object (`judgeBareActionRead` keeps main's answer on that face); the route then sees another object's action. That face is in `packages/metadata-protocol` (area E1), where objectstack-ai#32551 records it as followed up by its owner seat; filed as objectstack-ai#33456 (lease:E1). The route of the package-less row's object judges and runs that one item (pinned). - On the same route the environment's item is served with the holder's `_packageId` and `_provenance: 'package'` (the protocol's artifact envelope lookup goes by name, not `(object, name)`); the route's own `packageId` is unset and the environment's handler runs. Measured in the runtime harness, also area E1, carried by objectstack-ai#33456. - With one package holding the name on one object and a package-less row on that same object, the read naming the package without the pass answers the package's own row, while after the pass it answers the package-less row when that row was saved last (saved first, the pass registers the package's row alone). That fold (one entry per `(package, name)`, the row saved last) is unchanged here and pinned as a CONTROL. - No change in `packages/metadata-protocol/src/**`, `packages/metadata/src/metadata-manager.ts` or `packages/metadata/src/loaders/database-loader.ts`. ## Verification <details><summary>Local runs</summary> At 8efae7e (after merging `origin/main` with objectstack-ai#33193): `@objectstack/metadata` test 78/78 files, 2423 tests; `@objectstack/objectql` 595/595 files, 12978 tests; `@objectstack/runtime` 599/599 files, 10707 passed, 19 skipped; metadata and runtime typecheck exit 0; eslint on the three changed source/test files exit 0; dogfood battery 466 passed / 3 skipped files, 3944 passed / 42 skipped tests. Derived gates: 59 families, 58 exit 0, 1 NOT MEASURED (`check:dual-build-cjs-loads`, no full dist in the worktree; CI Build Core covers it); `dispatch-gates --ran` reconciles 59/59. Ablation (the `customizes` line mutated back to the by-name fold through `ablation-replace.mjs`, metadata rebuilt, `ablation-dist-preflight --absent` exit 0): metadata 8 moved cases red, every CONTROL and the first half's 11 cases green; runtime 4 of 4 new cases red (registry held one key). Route answers in that state equal the fixed state's (holder's route: no declaration; package-less row's route: that item, environment's handler). Restored to the HEAD blob (`git diff HEAD` empty), metadata rebuilt, fix marker back in `dist/`. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_016WV4cyrFFk86Jqf7Mp5Rzw)_ <!-- signed: domain:server#5 · os-elon-musk · session_016WV4cyrFFk86Jqf7Mp5Rzw --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Bill · project thread
epic:#31527#2 · os-bill · session_01Utp6CZJg15nkBQ9JewJsNS
维护者速读
GET /meta/action/NAME、/layers、/published,以及进程内MetadataManager.get('action', NAME))时,现在把"不属于任何包的同名动作"也算作持有者。只有一个包同名时,环境自己建的动作先答;平台代码注册的同名动作,和包的动作并存时返回 409,两个都点名;两个及以上包同名时,409 也会点名这个无包动作。/layers甚至返回停用包的内容;现在两处都返回启用包的动作。/actions/:object/:name路由的声明读取(execution 面)遇到无包项时保持 main 的答案,由 owner seat 另行跟进;停用包先注册的情况下,路由现在能拿到启用包的声明。回滚即 revert 本 PR。packages/metadata-protocol/src/protocol-meta-item-reads.ts的judgeBareActionRead,以及packages/metadata/src/package-slotted-store.ts的readStoreEntry/refuseAcrossOwners。pnpm --filter @objectstack/runtime exec vitest run --project local src/action-package-addressing.test.ts -t 32365,预期 21 例全过(第 1 轮的 14 例在 main 上有 10 例红)。Fixes #32365
Clause-②: yes (narrowing) — narrowing: a by-name read naming no package of an action name (
GET /meta/action/NAME, its/layersand its/published, on both transports) beside a package-less item the environment's store holds no row of (the platform's: host code or a plugin) and one or more enabled package holders goes from 200 (the platform's item) to 409 naming every package and the platform; beside two or more enabled packages the 409 names the package-less holder too (the environment or the platform), where it named the packages only, and so does the refusal ofMetadataManager.get('action', NAME)(as the environment), wherever the package-less item sits. Widening: where a disabled package registered before the one enabled holder, the plain read goes from 200 with no item to the enabled holder's item, and the/actionsroute of that holder's object from no declaration to its own. Moved answers (same status, the rule's holder in place of another): that case's/layersfrom the disabled package's body to the enabled holder's;/layersbeside the environment's own item and one package from the package's item to the environment's;MetadataManager.get('action', NAME)there from the item written last to the package-less item;MetadataManager.get('action', NAME, P), and with it step 2 ofGET /meta/action/NAME?package=P, from the item written last to P's own.Metadata-protocol: none
Skills-docs: none —
skills/**andcontent/docs/**teach no bare read of an action name a package-less item shares with a package; the prescription ships in the refusal text and in the FROM → TO below.What changes
Step 0 measured each case on
origin/main89d815c5and on #32497's head1483899c. The two outputs are byte-identical, so #32497 covers none of the three cases.contact+ A onaccountGET /meta/action/NAME/layers(code layer)MetadataManager.getcontact+ A onaccount/layers,/published(both transports)[A, platform]account+ B oncontact+ package-less onlead(or all object-less)/layers,/published(both transports)[A, B][A, B, environment](platformwith no row)MetadataManager.get[A, B][A, B, environment]POST /actions/<A's object>/NAMEdeclaration/layers(code layer)MetadataManager.get('action', NAME, A), and so step 2 ofGET /meta/action/NAME?package=A"Moved answer": same status, the rule's holder's item in place of another holder's.
The fix.
protocol-meta-item-reads.ts,judgeBareActionRead). It replacesrefuseActionHeldByPackagesat the plain read and the layered read. It judges the registry's enabled package holders together with its package-less bare-slot entry. When the environment's store holds an active package-less row of the name on the same object key (or none), that entry is the environment's own item, and it answers beside one package holder. Without such a row it is the platform's item, which is refused beside any package holder. Beside two or more holders it is named in the refusal. With one enabled holder and nothing package-less, the answer is that holder's item (getPackageScopedItem), never the registry's first composite. Step 3 serves the answer in place ofgetItem's. The layered read's code layer reads the same answer: the artifact at the one holder, or the environment's runtime item.refuseActionHeldByPackagestakes the package-less holder as a fourth argument, adds its candidate, and appends a sentence naming its object. Each package's object is read from its own item (holderOwnItem), never from a package-less entry the registry binds to it.package-slotted-store.ts).readStoreEntrywith no package answers the package-less slot first beside one package.refuseAcrossOwnersnames the environment beside two packages.readIdentitynames the environment when two packages share one action identity, whether the package-less slot is on that identity or on another object. A read naming package P answers P's own slot first./layerscode layer) only when it fits the judged answer (serviceAnswerFitsBareAction). Both are read as the store reads them, throughstoredItemPackageId(the stored envelope'spackageId, flat or under the publish envelope, else the body's stamp). The copy fits when it is the judged holder's own. A package-less copy fits a judged package (its customization), and fits the environment's judged item only when it binds the same object (boundObjectOf). Anything else gives way to the judged answer: another package's copy, such as a disabled package's or the one package's beside the environment's own item, and a package's customization on its own object beside the environment's item. The two readers are published from@objectstack/metadataas a new lean entry,@objectstack/metadata/stored-item-package.rethrowPackageScopedRefusalcounts only enabled packages. So a store refusal that also names the environment falls through to the judge when fewer than two enabled packages remain.Execution face (seat ruling B). The
/actions/:object/:nameroute's declaration read (getMetaItemForExecution) keeps main's answer beside a package-less item. The served read and the route's declaration read therefore do not yet agree there; the owner seat follows that up separately. Measured route answers are identical to main in cases 1 and 2. In case 3 the enabled holder's route now gets its declaration (see the table).Epic note 6798747403 (the heal's question), seat ruling. After a refused package-less heal, the removed row's entry left in the registry's bare slot is to be retired: no baseline is registered, and the bare read falls back to the store's 409 naming every holder. The heal lives in
protocol-registry-hydration.ts, which is on #32447 and not onmain, so this PR does not touch it (carrier: #32447). Pinned within this card: with such a stale package-less entry and no composite holder, while the service store holds two packages, the bare read answers the store's 409 naming both, never the stale entry.Tests
packages/runtime/src/action-package-addressing.test.ts,[#32365](21 cases).contactkeeps main's answer.contactandleadanswer as on main.MetadataManager: the env item answers whichever was written last; the store refusal names the environment; the epic-note pin.MetadataManager,/layerswith code and overlay asserted apart: case 1 with the service holding A's item only (env answers both reads); case 3 with the service holding the disabled B's item only (A answers both); case 3 with the service holding both (A).account) beside the environment's item answers env. CONTROL: with A alone, its customization answers both reads.packages/rest/src/meta-qualified-item-route.test.ts,#32365(3 cases): the same moves throughRestServer, on the item read (details.candidates),/layersand/published.packages/runtime/src/domains/meta-qualified-item-read.test.ts,#32365(3 cases): the dispatcher's item read,/layersand/publishedfor the platform arm and the candidate-added arm, and case 3's item read.packages/metadata/src/metadata-manager-action-slots.test.ts,[#32365](5 cases): the environment first in either write order, with?package=Aanswering A's own slot; the refusal names the environment on two objects, on one key, and beside two packages on one object with the environment's item on another; CONTROL a package-less item on the one package's own key is its customization.packages/metadata-protocol/src/protocol.lookup-artifact-item-call-sites.test.ts: the layered code layer's call site is re-recorded (same disposition, now at the judged holder).main89d815c5: runtime 10 of 14 red, rest 3 of 3 red, metadata 3 of 4 red, every CONTROL green. Round 2: the dispatcher and REST#32365pins againstmain's three source files are 3 of 3 red each; the new store pin is red at the previous head62223e19.refuseActionHeldByPackages(host, request.name, objectLessRefused). Predicted: the platform, case 2 and case 3 pins red, and the env-first plain read green. Observed: 6 red, 8 green. Restored: blob equal.f374e3ce, the CONTROL green.Gates (local, at
9f68f530,main874166b6merged)node scripts/pm/dispatch-gates.mjs --commandson the final tree derived 82 families. Each was run with its exit code recorded before any pipe. 81 exited 0.node scripts/check-plugin-teardown-shape.mjs --self-testexited 3, PREREQUISITE NOT MET: its fixture is pinned to a commit a shallow clone cannot reach, and it exits 3 on untouchedmainhere too.--ran: 82 derived, 81 run, 1 NOT-MEASURED, 0 UNRUN.metadata,metadata-protocol,runtime,rest: exit 0 each.pnpm lint: exit 0. Full workspace build: exit 0.os-verify-lock.shwith VERDICT command-exit 0:metadata: 74 files, 1406 tests passed.metadata-protocol: 336 files passed, 7 skipped; 22738 tests passed, 36 skipped.runtime: 581 files, 9922 tests passed, 19 skipped.rest: 406 files, 7907 tests passed, 332 skipped.pnpm --filter @objectstack/dogfood test, no shard, under the lock): VERDICT command-exit 0. 452 files passed, 3 skipped; 3798 tests passed, 42 skipped.main874166b6brought fix(metadata)!: an action's removal counts and takes its holders by package over every slot of the name (ADR-0150 D3/D4) #32533 (card metadata: removing an object-bound action by package leaves its registry slot, and a bare removal of a bound name two packages hold is not refused (ADR-0150 D3/D4) #32352). It conflicted only inmetadata-manager-action-slots.test.ts, where both append a describe at the end; both are kept.package-slotted-store.tsmerged cleanly.metadata/src/serializers/typescript-serializer-annotation.test.ts: its exports-entry control counts the new./stored-item-packageentry (8 → 9), as its comment asks of a new entry.Acceptance notes
git diff --name-onlyagainst each branch, trial merges):claude/project-thread-3giljf(27abd45),wqgmuu(0ecd1ff),du44hj(a9779e0):packages/metadata/src/package-slotted-store.ts;wqgmuualsometadata-manager-action-slots.test.ts. Trial merge: 0 conflicts each.claude/project-thread-phk4r9(fix(objectql, metadata-protocol)!: by-name doors judge a name's holders over the served set, so a disabled package's item is not a holder (ADR-0150 D3) #32497, 1483899):protocol-meta-layered-reads.ts,rest/src/meta-qualified-item-route.test.ts,runtime/src/action-package-addressing.test.ts. The trial merge (round 1) conflicted only in the REST test file (both append a describe at the end) and in two files this PR does not touch. Landing order: seat 1 agreed this lands before fix(objectql, metadata-protocol)!: by-name doors judge a name's holders over the served set, so a disabled package's item is not a holder (ADR-0150 D3) #32497; the order against fix(metadata-protocol, cli)!: a package-less item of a name two packages hold is refused at both exact addresses for every narrowed type, and the layered read judges its exact address (ADR-0150 D4) #32566 (sharedprotocol-meta-layered-reads.ts) is the seats' call.mainand merged here (see Gates). Its removal and this read count holders by package; the remaining differences are carried on metadata: in-process bare action reads disagree with the protocol on package-less holders, and a bare removal beside one package takes every slot (ADR-0150 D3/D4, follow-up of #32365) #32560.examples/**ships two*.action.tsfiles with distinct names and seeds nosys_metadataaction row. No answer changes in this repository.MetadataManager.get('action', NAME, P)now answers P's own slot first (it answered the slot written last), which the env-first pin needed.@objectstack/metadatagains the lean entry./stored-item-package(storedItemPackageId,boundObjectOf;boundObjectOfwas module-private).refuseActionHeldByPackageskeeps its exported signature and adds an optional fourth argument.