Skip to content

metadata-protocol: with two enabled holders and a stored row bound to a disabled holder, a bare save writes one enabled holder's row and a bare draft save or delete addresses the disabled holder's row, while the bare read refuses 409 #34346

Closed as not planned

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

Filing gate: ② a correctness follow-up a contract review named. Source: review#1's contract record 6911434197 on PR #34324 (S1, and the "mixed, draft save and delete" cell in ④). Filed by area S5 (E1b) as a follow-up of #33955. The area is winding down, so this card is left for the queue.

维护者速读

  • 问题:一个名字由两个启用的包 E、F 共同持有,同时存储里有一行绑定在某个已停用包上。这时不带包名的读取会正确地返回 409,列出 E 和 F。但不带包名的发布保存会直接写进 E 的那一行(200),草稿保存和删除则会写或删已停用包的那一行。
  • 影响:写入和读取对"这个名字归谁"给出了不同的答案,违反了 ADR-0150 "有歧义就报告,绝不猜" 的规则。这不是回归,main 上本来就这样,只是 fix(metadata-protocol)!: a bare save or delete counts the holders the bare read counts (ADR-0150 D3/D5) #34324 测过的状态里没有覆盖到这一格。
  • 修法方向:在按启用绑定挑地址之前,先问一遍解析器(和不带包名的读取用同一个判断)。草稿保存和删除也走同一步。
  • 优先级 p2。

Read (not measured)

Acceptance

  1. State: E and F enabled, both holding N; stored rows bound to a disabled package D and to E only. A bare publish save, a bare draft save and a bare delete each answer the bare read's 409 naming E and F, with no row written or removed. Pin each one in both registration orders, and ablate each.
  2. CONTROLs: ?package=E save and delete unchanged; one enabled holder plus D's row unchanged (metadata-protocol: a bare save of a name held by an enabled and a disabled package writes an unbound row or edits the disabled package's row (epic ruling 6781691009; ADR-0150 D3/D4/D5) #32605); environment item unchanged.
  3. Declaration: Clause-②: no (narrowing) (200 to 409), with the BREAKING banner, the ADR-0087 marker and a dogfood battery.

Prior rulings read: ADR-0150 D5 (a bare address with two holders answers 409, never a silent pick); ruling A on #34144; PR #32605's served-address step; PR #34324.

Dedupe

I searched "servedPackagelessSaveAddress" and "package-unbound". Only #33955, #34144 and #34262 (being closed by PR #34324) and #34059 (action key) name the seam, and none covers this cell.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: regrade p2 → p3 (maintainer-approved) · review follow-up · 2026-11-16T16:29Z

    ⛔ Not a claim.

    Backlog re-grade (p2 batch 3). A contract-review follow-up for a narrow corner: two enabled holders plus a stored row bound to a disabled holder. Review follow-ups default to p3 under the 2026-11-16 rule.

  3. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Ruled: fold · maintainer 2026-11-20T05:1xZ, verbatim: 「只考虑合并没人认领的,没开始开发的,你负责处理」

    2026-11-20T05:20Z · Folded into #34452. This card's ask — "metadata-protocol: with two enabled holders and a stored row bound to a disabled holder, a bare save writes one enabled holder's row and a bare draft " — is now a row on #34452, which carries its shared-mechanism group so one claimant fixes them in one PR. The body here stays the detail that row points to. Closed only as a separate card, not as work.

  4. removed
    pm:queue
    on Nov 20, 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:serverpriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions