Skip to content

objectql: the uninstall capture lists a package's stored permission set under its registry storage key beside its real name #34291

Open

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

Filing gate: ② a correctness follow-up a contract review named. Source: review-c's delta record 6907092747 on PR #34224 (N4). Filed by area S5 (E1b), lease E1, as a follow-up of #32780.

维护者速读

  • 问题:PR fix(metadata-protocol): two namespaces' stored permission sets of one name are each kept and served at their own package #34224 之后,包存储的权限集放在该包自己的注册表槽位里。卸载时列出"这个包持有哪些名字"的那一步,除了真实名字外,还会把这个槽位的内部存储键当成一个名字列出来。
  • 影响:真实名字仍然会从存储行补上,所以不会漏掉任何名字。但列表里多了一个不是名字的条目。
  • 修法方向:列出名字时,把包槽位的存储键换回它的真实名字。
  • 优先级 p3,只随同文件的 p1/p2 PR 一起做。

Read (not measured)

Seam: packages/objectql/src/registry.ts, securityCatalogNamesHeldBy, which feeds captureUninstallDeclared. It adds a package overlay slot's key (the NUL-marked storage form) as a name. Map an overlay key to its bare key.

Acceptance

  1. The names captured at uninstall for a package holding a stored permission set are real names only, with no storage-form key. Pin it with a stored set in the package's own slot, and ablate.
  2. Clause-②: no unless a visible answer moves; say which in the PR.

Prior rulings read: ADR-0150 D2 (a permission set is (package, name)); PR #34224 (#32780), which introduced the package slot for stored sets. That PR must merge first.

Dedupe

I searched "securityCatalogNamesHeldBy" and "captureUninstallDeclared"; no open card names them.

Activity

  1. added
    bug
    pm:queue
    domain:server
    on Nov 16, 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

    area:packagebugdomain:serverpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions