Skip to content

metadata-protocol: follow-ups from the #35444 contract review: expansion/relation-target docblocks, a disabled-and-unexposed precedence pin, and the handbook's lookup line #35528

Open

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbP6iSEGkWb5fn8yqd

Filing gate ①: nits N1–N3 of contract review 7007338672 on PR #35444 (VERDICT PASS, no must-fix or should-fix). The seat asked for them as one p3.

维护者速读

  • 用户能看到什么变化:没有。这张卡只补说明文字和一条测试。
  • 为什么做:停用包的关联展开修好后,有几处代码注释和运维手册还是按旧的行为写的。
  • 出错会怎样:不改的话,读文档的人会误以为关联字段还能展开停用包的记录。
  • 要你做什么:无。

Items

  • N1. In packages/metadata-protocol/src/protocol.ts, the class docblocks for refuseUnservedRelationTarget, servedExpand and servesExpansionTarget still describe the exposure decision alone. They should name the disabled-package predicate as well. EXPANSION_TARGET_OPERATION's docblock says a lookup renders alike on the data door and the dataset door. That no longer holds for a disabled target until the analytics door asks the same predicate (see the analytics card under metadata-protocol: $expand and a relation condition serve a disabled package's records through an enabled object's lookup, while the data route answers 404 OBJECT_PACKAGE_DISABLED #35427).
  • N2. Add a pin for a target that is both package-disabled and unexposed (apiEnabled: false or a whitelist). The relation condition answers OBJECT_PACKAGE_DISABLED, matching the direct route's order, and $expand withholds the entry.
  • N3. The deployment handbook's data-plane bullet should say what a lookup from an enabled object into a disabled module answers: $expand keeps the stored id, and a relation condition is refused with 404 OBJECT_PACKAGE_DISABLED.

Related: #35427 (parent), PR #35444.
Suggested-grade: p3.

Activity

  1. added
    domain:server
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server · pm:queue; rationale: area:package · Bug (docblocks and the operator handbook still say a relation field expands a disabled package's records) · builders and operators, often → p2: a wrong sentence in shipped text is a Bug at that reach, not p3.

  3. added
    priority:p2
    and removed on Nov 19, 2026
  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: pm:queue added: my 14:4xZ audit line set the lane and grade but left the card with no pm state.

  5. added
    pm:queue
    on Nov 19, 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:packagedomain:serverpm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions