Repository navigation
fix(metadata-protocol)!: a stored row bound to a package that holds none of its name, or a pair row of a two-holder name, is no longer laid into the first-registered holder's registry slot (ADR-0150 D4) - #33166
Conversation
…tem of a two-holder name is declined, never grafted onto the first holder Claude-Session: https://claude.ai/code/session_01L9qibzKCovWpJoMZD6U3NT Co-authored-by: Claude <noreply@anthropic.com>
…er and two Claude-Session: https://claude.ai/code/session_01L9qibzKCovWpJoMZD6U3NT Co-authored-by: Claude <noreply@anthropic.com>
…-y6vjs1 # Conflicts: # packages/metadata-protocol/src/protocol-registry-hydration.ts
…le addition keeps its row), run after the borrowed-envelope rule, report once and not for a sealed row Claude-Session: https://claude.ai/code/session_01L9qibzKCovWpJoMZD6U3NT Co-authored-by: Claude <noreply@anthropic.com>
…nvelope of the holder it customizes, not the first-registered holder's The artifact lookup scoped to a pair id that holds no item of the name fell back to the package registered first, so a row of the second holder's pair was served as the first holder's item in one registration order. The envelope now comes from the holder overlayRowBinding binds the row to, or none when it binds to none. The stray-row warning prescribes the declared override in the holder's .custom pair. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzKCovWpJoMZD6U3NT
…pgrade-guide entry Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzKCovWpJoMZD6U3NT
…udge the pair envelope over every holder, keep permission and row-served types as they were A pair row of a name one package holds keeps its lookup. The envelope is read from overlayRowBinding with disabled holders counted, so a disable never moves it. The stray-row warning is removed: every type the decline reaches is sealed, and the boot census names the row. The changeset now ships patch (Metadata-protocol: none), prescribes deletion for the sealed types and the .custom override for action alone, and names the two carries. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzKCovWpJoMZD6U3NT
…nsus relies on, and name the permission pick as pending a ruling Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzKCovWpJoMZD6U3NT
📓 Docs Drift CheckThis PR changes 3 package(s): 5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 1 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 caf5a39a5007a1159f6ab9f3be325e6f992ab3ec && git checkout caf5a39a5007a1159f6ab9f3be325e6f992ab3ec
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 5e250a65992192bdc9b3fb3be304a2fca245b2d1 4571f2464692d9e37e4a41f81cf97651a365b91d && git checkout -B drift-repro 5e250a65992192bdc9b3fb3be304a2fca245b2d1 && git merge --no-ff 4571f2464692d9e37e4a41f81cf97651a365b91d
node scripts/docs-audit/affected-docs.mjs --json 5e250a65992192bdc9b3fb3be304a2fca245b2d1
|
…stalledPackageSource, and the pin file's string lists The dts build refused both helpers with TS2559 (a weak type sharing no member with InstalledPackageSource); the test layer's typecheck refused an implicit any and a narrowed type literal. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzKCovWpJoMZD6U3NT
…econd findOne double Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzKCovWpJoMZD6U3NT
|
domain:server#7 · os-tesla · session_01L9qibzKCovWpJoMZD6U3NT Posted 2026-11-14T00:26Z. Red-line read run in the card thread on the maintainer's instruction, rounds 1 to 3 by a separate review pass. Contract reviewServed-tier: ① Derived judgments
② Semver level
One nit: ③ Boundary flags
④ Design judgmentThe narrowing makes the spec's own rule real instead of taking a capability away. ADR-0150 D4 binds an overlay to the (package, name) it customizes; the hydrator's artifact lookup fell back to the first-registered holder, so one stored row was served as a different holder's item in each registration order. What goes away is that guess. A holder's own item, a row bound to a holder, and a one-holder name all keep their answers. Against the three red lines: resolution does not loosen (no refused answer became served); ambiguity is not guessed (a row that names no holder is declined and the boot census names it); the PR is independently releasable (one-holder behaviour unchanged, no migration to run, declarations and ADR-0087 entry present). Findings by round:
Open at this head: no must-fix, no should-fix. One nit (the optional parameter, above). Implemented-by: VERDICT: PASS |
|
domain:server#7 · os-tesla · session_01L9qibzuZJBQY4wUQFJbkfx 维护者速读 · PR #33166 @
|
Requested by Tesla · project thread
Part of #32692
Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none —
skills/**andcontent/docs/**teach no stored row bound to a package that holds none of its name, and no pair row of a two-holder name; the prescription ships in the ADR-0087 entry and the changeset's FROM → TO.维护者速读
.custom结对包上。以前读侧回填按"先注册的那个持有者"给它套外壳,于是 A(或者换个注册顺序就是 B)把这条行当成自己的答出来。现在:S 的行一律不进任何持有者的槽位,由启动普查metadata_sealed_overlay_unserved报出;结对行按overlayRowBinding判定它定制的那个持有者(停用的也算),判不出归属就不注册。permission(存储的权限集分叉另有维护者裁决,这里保持原样,见下方问题);flow。packages/metadata-protocol/src/protocol-registry-hydration.ts(judgesRowHolder、namesNoHolderAmongMany、pairRowEnvelopeHolder,以及hydrateOverlayIntoRegistry里的两处调用);packages/objectql/src/webhook-stored-row-boot-hydration.test.ts的#32692段。permission存储行,现在仍落在先注册持有者的槽位(与注册顺序有关)。拒绝它会改变部署实际执行的授权,所以本 PR 没碰;是否另开卡处理,请定夺。What changes
hydrateOverlayIntoRegistry(the boot load, an unscoped list read, the write-through of a save) builds a registry entry from each storedsys_metadatarow. For a row whose package holds no item of the name, the artifact lookup scoped to that package falls back to the package registered FIRST, so the row wore that holder's envelope and took its slot.For the types
judgesRowHoldernames (every package-scoped type exceptflow,permissionand the row-served types:action,hook,job,webhook,connector,sharing_rule,queue,assignment_rule,analytics_cube,picklist,api,tool,skill,agent):namesNoHolderAmongMany): declined, as the package-less row of such a name already is (metadata-protocol: a package-less item of a two-holder name is still served at both exact addresses on the draft and preview reads and for hook, job, queue, sharing_rule and assignment_rule (ADR-0150 D4, after #32407) #32568). The row's own package asks as the caller, so a bundle addition's own row is still its own. Every type reached is sealed once a package ships the name, so the boot census names the row; a pin holds the type table to that.pairRowEnvelopeHolder): wears the envelope of the holderSchemaRegistry#overlayRowBindingbinds it to, read with the new optionalincludeDisabledPackagesso a disable never moves it (ADR-0150 D3). A pair row the rule binds to no holder (a shared App pair's undeclared row, a row declaring a package the pair does not customize) is declined.A name one package holds keeps every reading.
Why
ADR-0150 D4: a stored row binds to the
(package, name)it customizes; red line 2: ambiguity is reported, never guessed. Measured onmainbefore the change (step 0, #31699 comment 6857806396): the stray row landed in the first-registered holder's slot, a different slot in each order.Verification
packages/objectql/src/webhook-stored-row-boot-hydration.test.ts: 32 tests, each order of registration. Ablated from scratch builds, each rule turns its own pins red: the stray decline (4), the pair envelope (5), the null-binding decline (2), the every-holder binding (2), the one-holder guard (1), the permission exemption (2), the row-served exemption (2). BASE (84c66d36's hydrator) fails 9 of the then 25.@objectstack/metadata-protocol22803 passed,@objectstack/objectql12908 passed. A localtscis not meaningful in this container (dependencies built without declarations); CI typechecks.check:adr-0087-registration,check:empty-changeset,check:changeset-fixed,packages/specmigrations (198),packages/climigrate-meta-engine-guidance(3).Red-line read
Run in this thread by a separate review pass (maintainer's instruction: 「你自己有fable,自己审就可以了吧?」). Round 1 FAIL (three must-fix: the null-binding pair arm registered the row, the envelope moved with a disable, the prescribed
.custommigration is excluded for 13 of the 14 types); round 2 PASS on7ae13371, with four notes, all taken ina63814ee(the row-served exemption pinned with anemail_templateshape, the sealed-table pin, the permission CONTROL renamed as pending a ruling, the 409 sentence narrowed).Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibzKCovWpJoMZD6U3NT