Skip to content

metadata-protocol: a bare doc read of a name two packages ship, beside a package-less registry entry or hydrated row, serves the holder registered last #34248

Closed

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

Filing gate: ① a product defect with a named location, measured. Found by area S5's dev on #34040 (report on #34040, out_of_scope_findings, class a; PR #34241 pins it as measured), filed by area S5 (E1b), lease E1.

维护者速读

  • 问题:两个启用中的包发布了同名文档,同时存在一条不属于任何包的条目(无包戳的注册表条目,或启动时水化的不带包的存储行)。这时不带包名读取不再拒绝,而是返回"最后注册的那个包"的文档。
  • 影响:答案取决于注册顺序,违反 ADR-0150 红线 2(有歧义就报告,不猜)。/layers 把环境行显示为覆盖层,有效层却是那个随机的持有者。
  • 修法方向:环境自己的条目先回答时,要用环境自己的内容,不能落到某个包的 MetadataService 副本上;否则就按 PR fix(objectql)!: a bare doc read refuses a name two enabled packages hold, naming both #34036 的规则拒绝。
  • 优先级 p2,本区(S5)处理。

Measured

This was measured on the composed artifact rig (MetadataPlugin artifact door + AppPlugin), on both transports, in both registration orders, at origin/main 86350e1. Two enabled packages ship doc shared_doc, and there is a stamp-less bare registry entry or a hydrated package-less row. PR #34036's bare refusal is exempted ("the environment's own item answers first"), but GET /meta/doc/shared_doc and /published serve the MetadataService copy of the holder registered last. /layers reports overlay 'environment doc' over an effective layer that is that holder. Pinned as measured and unresolved in packages/runtime/src/domains/meta-disabled-holder-artifact-door.test.ts (PR #34241).

Seam (read): packages/metadata-protocol/src/protocol-meta-item-reads.ts readMetaItem step 2, after refuseAmbiguousBareDocRead / the registry's readBareDoc exemption.

Acceptance

  1. With two enabled holders and a package-less entry or row, the bare read, /layers and /published answer from the environment's own item, or refuse as PR fix(objectql)!: a bare doc read refuses a name two enabled packages hold, naming both #34036 does. Never a registration-order pick. Pin it in both orders and ablate it; flip PR fix(metadata-protocol): an exact ?package= read never answers another package's metadata-service copy of a doc, view or other type the exact qualifier does not judge #34241's measured pins.
  2. Declare the FROM→TO with its Clause-② arm. Moving a served answer to a refusal is a narrowing.

Prior rulings read: ADR-0150 D3 and red line 2; ruling 6893582352 on #33264 (the environment's own item answers first); PR #34036 (#33264) and PR #34241 (#34040), which touch the same file. Merge-tree against #34241 before the claim.

Dedupe

I searched "bare doc read registration order", "readBareDoc exemption" and "hydrated doc row two holders". The hits were #34040 (exact address) and #33127 (two stored rows after a restart, a different door).

Activity

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

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

    Claim: area S5 (lease E1, E1b), #33751 §2 area-lease mode, round 8 (slot freed by PR #34224 entering the merge queue). This card is a fold member of #34247 (both readMetaItem in protocol-meta-item-reads.ts, follow-ups of #34040 / PR #34241)
    Session: session_01QsR2jUcj2x2Wr4UErwBi12
    Account: zhuangjianguo
    Branch: claude/area-E1b-34247
    Worktree: objectstack-e1b-34247
    Domain: domain:server
    Seat: domain:server#5
    File surface:

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 16, 2026
  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5obaLbqgzRUR9xXfft

    Release: session session_01QsR2jUcj2x2Wr4UErwBi12 (claim 6907189549, account zhuangjianguo, seat domain:server#5) · reason: cross-account takeover; the old seat signed off (brief #28677 comment 6912561028) · provenance: who = Leehom (maintainer); words = 「接手 前任。#28677 (comment) 的未完成任务」; where = this account's Claude Code project, seat thread 「运行 objectstack 仓库车道席位」 (repo:objectstack#1) · hand-over record: comment 6912074085 on PR #34347 (branch claude/area-E1b-34247, last pushed sha 72dc8ca25eb6ea8252c5f8fa50735882b9a7542a; see the chain head #34247)

    Claim: repo:objectstack#1 area o1-D (lease o1-D), takeover of domain:server#5's in-flight PR #34347 on the maintainer's order above. Fold member of #34247 (chain head), one PR
    Session: session_01FEkQ5obaLbqgzRUR9xXfft
    Account: os-project-manager
    Branch: claude/area-E1b-34247
    Worktree: objectstack-e1b-34247
    Domain: domain:server
    Seat: repo:objectstack#1
    File surface: unchanged from claim 6907189549 and its amendments; the PR's committed tree at 72dc8ca25e is the surface
    Container & model: M, mode:subagent, model: default judgment tier, effort: high
    Clause-②: no (narrowing)
    Metadata-protocol: none
    Responsibility: objectstack platform code (metadata-protocol by-name read) | none | a deployment where two packages ship a doc beside a package-less entry
    Thread-read: 6907189549
    Premise: holds (carried from claim 6907189549; the second commit serves the environment's entry per ruling 6893582352)
    Serial constraints cleared: see the chain head #34247's claim
    Pre-claim lane: repo:objectstack#1 area o1-D; packages/metadata-protocol/src/protocol-meta-item-reads.ts (domain:server file ownership); listed under o1-D in seat post #34366's lease table.
    Pre-claim deps: see the chain head #34247
    Prior rulings read: ruling 6893582352 on #33264, ADR-0150 D3; re-read at takeover, no newer ruling on the card.
    Resume-from: claude/area-E1b-34247@72dc8ca25eb6ea8252c5f8fa50735882b9a7542a

  5. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRPxhTmqbUbMrqygh4

    Release: claim 6913120148 (the takeover claim of seat repo:objectstack#1, session session_01FEkQ5obaLbqgzRUR9xXfft, area o1-D, account os-project-manager), a fold member of #34247 · 2026-11-17T02:52Z
    Provenance: whose order — seat repo:objectstack#1 (os-project-manager) is out of tokens and stops, by the maintainer's word of 2026-11-17T02:41Z 「1号座位 pm leehom 没有token了,你看看他还有哪些 issue 和 pr 你全部接手」; words — "o2-I 改作「席 1 遗留 · 服务端」区 … 每张卡由 o2-I 写一笔接管" (seat repo:objectstack#2's order of 2026-11-17T02:45Z); where — this account's Claude Code project channel (the maintainer's words, relayed by the coordinator to the seat), and the seat's takeover order to area o2-I. Seat 1's own L1 and L2 review seats (same account) stopped with it, so every delta from here goes to L1-c and this account's L2 review seat.

    Claim: takeover · #34248 · area o2-I (seat 1 legacy · server) · 2026-11-17T02:52Z
    Session: session_01ADHkmRPxhTmqbUbMrqygh4 (area o2-I holds the claim); delivered by PR #34347 with #34247, whose card thread reports to area o2-I. On merge the area closes this card (Part of #34248)
    Account: os-steve
    Branch: claude/area-E1b-34247 (PR #34347), continued as it is, no new PR
    Worktree: the card thread's own
    Domain: domain:server
    Seat: repo:objectstack#2
    File surface: as #34247's
    Clause-②: no (narrowing)
    Metadata-protocol: none
    Pre-claim lane: domain:server; the seat repo:objectstack#2 is a full-repo seat.
    Pre-claim deps: no open Blocked-by:.
    Prior rulings read: check-prior-rulings.mjs --card 34248 → card thread 0 rulings of 2 comments; ADR-0146 D11 by term hit.
    Lease: lease:o2-I (replaces lease:o1-D).

    Hand-over record: as #34247: claude/area-E1b-34247 @ 0ba6987aec1cd73f9a97fa417355a7930302ceae (PR #34347; hand-over 6933791590).

  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRPxhTmqbUbMrqygh4

    Hand-off · 2026-11-17T12:39Z · repo:objectstack#2 → repo:objectstack#3 (maintainer order 2026-11-17 12:33–12:34Z)

  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi6WQ71HhZSLSvHhdF

    Claim: takeover · #34248 · area o3-I (seat-2 hand-off: approvals and close-out) · 2026-11-17T12:54Z
    Provenance: whose order — seat repo:objectstack#2 handed its in-flight PRs to seat repo:objectstack#3 (mailbox PR #34585 comment 6948334887, 2026-11-17T12:41Z) on its maintainer's word of 2026-11-17T12:33–12:34Z 「L1 L2 不继续审核了,让 3号席位跟进」; this seat's maintainer ruled at 2026-11-17T12:44Z that seat 3 takes every non-security handed PR, p2 included (「也由我接」); where — this account's Claude Code project, seat 3's order to area o3-I.
    Session: session_01WGufzi6WQ71HhZSLSvHhdF (area o3-I)
    Account: os-support-ai
    Branch: claude/area-E1b-34247 (PR #34347, cards #34247 and #34248, ruling 6917064203 on #34398), continued as it is, no new PR
    Worktree: none yet (nothing to push)
    Domain: domain:server
    Seat: repo:objectstack#3
    File surface: unchanged; PR #34347's committed tree at 1572520e9f465c673a5d9567cdac1e27a91efcf7 is the surface
    Clause-②: no (narrowing)
    Metadata-protocol: none
    Responsibility: carried from claim 6936542711
    Thread-read: 6948291061
    Premise: holds (carried; L1 ACCEPT 6943247306 and L2 PASS 6943305789 at 0bc781b5)
    Serial constraints cleared: overlap-check.mjs --branch=origin/claude/area-E1b-34247 at origin/main dfbc316 merges cleanly into main but conflicts with PR #34784 in packages/metadata-protocol/src/protocol-discovery-and-bases.ts; whichever lands second merges main first (seat informed)
    Prior rulings read: 6917064203 (letter B), 6893582352; thread: 6948291061
    Next: L1 delta review of 0bc781b5..1572520e (merge of main + one-line root fix in protocol-meta-layered-reads.ts), the seat's L2 delta and a new seat record, then os-zhuang's approval, then landing. On merge: close #34248 and #34398 if still open, clear pm:dispatched and the assignee on #34247, #34248, #34398.
    Lease: lease:o3-I (replaces lease:o2-I, already dropped by the hand-off write)

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi6WQ71HhZSLSvHhdF

    Closed as completed at 2026-11-17T13:07Z: PR #34347 merged as 89d5a41 (cards #34247 and #34248). A bare doc read beside two enabled holders and a package-less entry now answers from the environment's own entry on the plain read, /layers and both /published doors, never the holder registered last. Records: L1 ACCEPT 6943247306 and L2 PASS 6943305789 at 0bc781b5, L1-e delta ACCEPT 6948819818 at the merged head 1572520e. The merge did not close this card, so it closes by hand per the hand-off 6948291061; pm:dispatched, lease:o3-I and the assignee are cleared.

  9. removed
    pm:dispatched
    on Nov 17, 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

    bugdomain:serverpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions