Skip to content

metadata-protocol: while a package is disabled, the per-item publish and rollback doors still write a package-less row at a name only disabled packages hold #37608

Backlog

Description

@objectstack-fleet

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Filing gate: ③ maintainer-directed topic child (#36229: 「我觉得停用就该全部消失」) · Source: fleet (finding S1 of the Contract review record 7195624788 on PR #37584, read from the tree and not yet run)

What happens

PR #37584 (Fixes #37499) refuses the four doors that card named: save, draft save, delete and draft discard naming no package, over a name only disabled packages hold. Two more doors write that same hidden package-less row and are not asked the judgment (packagelessHolderRefusal), read at PR head 7e66896:

  • Per-item publish: POST /api/v1/meta/TYPE/NAME/publish → publishMetaItem → promoteDraftForPublish in packages/metadata-protocol/src/protocol-history-and-publish.ts. It resolves through packagelessDraftAddress and calls no disabled-holder refusal. With a package-less draft of a name only a disabled package ships, the promotion would write the hidden package-less active row.
  • Per-item rollback: rollbackMetaItem in packages/metadata-protocol/src/protocol-package-commits.ts restores onto the package-less row, with no disabled-holder judgment there or in protocol-history-slots.ts.

reach: not yet measured. The first step is to measure both doors on a disabled-only name with a package-less row (REST and in-process).

Expected

Category ③: a child of maintainer-directed topic #36229, the same defect class as #37499 (p1).
Priority: p1 — the grade of #37499. A write lands, unseen, on a row the disabled package hides.
Business reason: an admin who disables a package expects its names to be untouched until re-enable. A publish or rollback now changes what re-enabling brings back.
Reader: seat 2 (repo:objectstack#2), as a card thread after #37584 merges (same files).
Blocked-by: #37584 (merge)
Dedupe: searched packagelessHolderRefusal publish rollback and disabled package publish rollback package-less (open issues), 0 hits beyond #37499 / #36229.
Related: #37499, PR #37584, #36229, #34260.

Activity

  1. added
    bug
    priority:p1
    domain:server
    pm:blocked
    on Nov 26, 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:blockedpriority:p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions