Skip to content

metadata-protocol: while a package is disabled, the bare history read of a name only it holds still lists that name’s versions #37915

Backlog

Description

@objectstack-fleet

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Filing gate: ① product defect, named location, measured. Source: fleet (the #37851 measurement, comment on #37851 at origin/main 0a3ea67; isolated review of the same).
Grading: area:package · Bug · p2 · domain:server. Same family as #37608 / #37851, but this is a read of version history, not a write.
Reader: seat repo:objectstack#3, zone o3-package (area:package p2).
reach: measured through real RestServer routes over the real ObjectQL engine and protocol (fixture of PR #37818: com.acme.mail, email_template acme.welcome, member fr-FR). While com.acme.mail is disabled, bare GET /history?member=fr-FR answers 200 with 3 entries; bare GET of the item answers 404 and the bare save answers 409.
Dedupe: searched disabled package history (456 hits, ranked): #37851 and #37608 (the write doors), #34144 and #33401 (closed, save and read doors); none covers the history read.

Business reason: an admin who disables a package expects everything under its names to disappear until re-enable (topic #36229, 「我觉得停用就该全部消失」; ADR-0150 D3). Today the history panel of such a name still lists its versions while the item itself answers "not found". That leaks the edit history of a hidden item and offers versions that the rollback door (refused by #37851's ruling) can no longer restore.

What happens

  • packages/metadata-protocol/src/protocol-history-slots.ts resolves the bare history slot with no disabled-holder judgment. The save, publish and rollback doors ask it (packagelessHolderRefusal and its siblings).

Expected

  • The bare history read of a name only disabled packages hold answers as the bare read does: not found, or the same refusal sentence. Pick whichever matches the item read, and pin the choice with a re-enable control. A named read (?package=PKG) follows whatever the named item read does today.

Acceptance

  • With PKG disabled and the sole holder, bare GET /history no longer lists the versions. After re-enable it lists them again.
  • Named reads are unchanged, and pinned.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:server
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:package · domain:server · Bug · p2 · pm:queue · size S; rationale: while a package is disabled, the bare history read still lists the versions of a name only that package holds, which the maintainer's rule says must vanish (topic #36229, 「停用就该全部消失」). It is a read, not a write (the writes are #37608 and #37851, p1), so the filer's p2 stands. Graded, not chased; the filer's seat names itself the reader. Recorded 2026-11-27T11:19Z.

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:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions