Skip to content

metadata-protocol: the in-process layered read refuses a bare name two served holders hold, for every package-addressed type, and the bare /layers door is pinned with no service copy #32914

Closed

Description

@objectstack-fleet

domain:server#4 · os-sales · session_01L6bhgWRcTEB3toGxnWvuvX

Follow-up of #31985 (PR #32895, contract review PASS on 3ddd90e2). Pre-existing on main and shared by every narrowed type; PR #32895 declares it as carried.

Filing gate: ② a contract-review follow-up. class: b · type: Hardening · Suggested-grade: p2 · lane: domain:server.

What is inconsistent

The protocol's in-process layered read (getMetaItemLayered) has no two-holder judgement for a bare name: with two served holders and no metadata-service copy, it falls back to the registry's by-name artifact lookup and answers by registration order. On the HTTP transports the layered door chain asks the plain bare read first wherever an engine registry is wired, and that read refuses with 409 naming both, so the HTTP door is covered there; in-process callers and a host with no door chain are not. Measured by the #31985 card thread for the HTTP door (one service copy, store ablation: the bare /layers door still answers 409 naming both, via the plain bare read the door chain asks first); the in-process path and the no-service-copy boot are read, not measured.

Do

  • Make the protocol's layered read itself refuse a bare name two served holders hold (409 naming every candidate), for every package-addressed type, including the partial-copy case.
  • Pin the bare /meta/<type>/<name>/layers door on a boot with no metadata-service copy: 409 naming both.
  • Declare any moved answer with its Clause-② arm (AGENTS.md step 3).

Constraints

  • Red line 2: never answer a bare name by picking one holder. Ruling A 6824698376: a disabled package is still a holder where the type's door counts it.
  • No relaxation.

Reader who acts: packages/metadata-protocol/src/** (layered read) and its tests.
Dedupe: getMetaItemLayered → 6 hits; #32354 is stored rows by save order and #32568 is package-less items, neither this path.


Generated by Claude Code

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first-touch audit (pre-labeled card) · p2 → p3 · 2026-11-13T08:09Z

    ⛔ Not a claim; the claim (if any) is unchanged.


    Generated by Claude Code

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: grade confirmed p3 (asked by epic:#31527#2, 6857956853) · 2026-11-13T15:54Z

    ⛔ Not a claim; grade and state unchanged.

  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

    Claim: area S4 (lease E1), #33751 §2 area-lease mode, round 1
    Session: session_01QsR2jTkZnXtRhuEiiyidvJ
    Account: zhuangjianguo
    Branch: claude/area-E1-32622
    Worktree: objectstack-e1-32622
    Domain: domain:server
    Seat: domain:server#5
    File surface: as the lead #32622 claim (fold member; branch named after the lead) (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default judgment tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack platform code (metadata-protocol in-process layered read) | none | a host calling the layered read on a bare name two served holders hold
    Thread-read: 6858042093
    Premise: holds (re-measured at origin/main by the dev before any edit; premise_still_valid: false is a valid result)
    Serial constraints cleared: fold member of #32622 (lead claim carries the full check)

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

    Claim amendment (claims 6892338036 on #32622 and 6892345053 on #32914; PR #33885). The declaration moved to the narrowing arm in the rework; this records the file surface and lines the claim must now carry.
    File surface: adds packages/metadata-protocol/src/protocol.ts, a docblock only (9 lines near L4205, commit e516f35; the emitted JS differs from the parent in comment lines alone). The claim's "no protocol.ts" line was written under the one-writer rule that the maintainer dropped at 14:41Z.
    Clause-②: no (narrowing)
    Metadata-protocol: none
    Pre-claim lane: domain:server area S4 (E1) because the fix is in packages/metadata-protocol/src/protocol-meta-layered-reads.ts (+ the protocol.ts docblock above)
    Pre-claim deps: none open; merge-tree (git merge-tree --write-tree --name-only) from e516f35, each exit 0 with no conflicted path: vs PR #33898 at 64c5d88 (shared protocol.ts, hunks near L322/L7089 vs this L4205; #33898 has since merged), vs PR #33889 at bdb3a20, vs origin/main 895783a.
    Prior rulings read: ADR-0150 D3/D5 (a bare read of a name two holders hold is refused, naming them, never a silent pick) is the rule the narrowing applies to the layered read; no ⛔ line or test pins the first-holder pick as wanted (the flipped pins are listed in the PR).

  8. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

    Landing close-out (pm-dispatch landing-operations B: a Fixes card closed by its merge drops its pm state label in the same stroke; this stroke was owed since the merge).

    Reading Value
    PR #33885, state MERGED
    Card closed (completed) by the PR's closing keyword

    State change: pm:dispatched removed. Domain, area, lease and priority labels stay.

  9. removed
    pm:dispatched
    on Nov 16, 2026
  10. added a commit that references this issue on Nov 16, 2026
    661ede2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:serverpriority:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions