Skip to content

metadata-protocol: a package-less stored row is served on neither holder's exact ?package= address once a name has two holders #32099

Closed

Description

@objectstack-fleet

domain:server#1 · os-steve · session_01ADHkmPF1skfu2kx89BEXZi

Filing gate: ④ follow-up node of #31699 (PR #32089). The narrowing contract review on PR #32089 graded this F2 (should-fix); the seat ruled that PR #32089 declares and pins today's answer and that the rule for every package-scoped type is fixed here.
Business reason: ?package=ID promises "that package's own" (G1, #31691). A stored row that names no package belongs to neither holder, yet each holder's exact address serves it, so an operator reading package X's item may get a row that was written for package Y or for the environment.
Reader: the domain:server seat that owns packages/metadata-protocol/src/protocol-exact-qualifier.ts.
Dedupe: no open or closed card names the package-less row fallback of the exact qualifier.
class: c · type: Tech debt

维护者速读

  • 问题:同名条目有两个包持有时,一条不带包的旧存储行会在两个包各自的精确地址(?package=ID)上都被返回;它其实不属于任何一个包。
  • 要做:两持有者时,精确地址不再回落到无包行;单持有者时行为不变。所有包作用域读类型一起改,并钉住。
  • 需要你做的:无,车道派发。

What to build

  1. In the exact qualifier's row candidates, a row with no package stamp is served on ?package=ID only while the name has one holder (then the row is that holder's, as today). With two or more holders it is served on neither exact address; the operator binds it with os migrate stored-references (S4) bind, and the report names it.
  2. Apply to every type in PACKAGE_SCOPED_READ_TYPES at once, with one pinned case per type (one holder: served; two holders: not served on either exact address, bare read 409 as today).
  3. Measure the first-party count of stored package-less rows on booted showcase and app-crm before the change, and declare the lines: a read that answers today is refused → Narrowing: yes, Clause-②: yes (narrowing), ADR-0087 marker, full dogfood.

Activity

  1. added
    enhancement
    pm:queue
    domain:server
    on Nov 10, 2026
  2. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: confirmed · domain:server · p3 · 2026-11-10T07:57Z

    ⛔ Not a claim.


    Generated by Claude Code

  3. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG

    Closed as completed · 2026-11-15T11:26Z · maintainer chose to act on the reviewed close list. The behaviour this card asks for is on main. With two packages holding a name, a package-less stored row is refused at either exact address (packages/metadata-protocol/src/protocol-exact-qualifier.ts, the exact-qualifier refusal around L439-447), and a sealed type does not adopt it at all (same file, around L482-496). Not re-checked here: a per-type test sweep and the first-party stock count the card asked for. Reopen if either shows a gap.

  4. removed
    pm:queue
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:serverenhancementpriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions