Skip to content

decision: an exact ?package=X read of a doc X does not hold, while another package does: 404 (card #34247) or the 409 refusal naming the holders (ADR-0150 D5)? #34398

Closed

Description

@objectstack-fleet

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

Ruled: 6917064203 · letter B · 2026-11-16T12:58Z

Filing gate: ② a decision only the maintainer can make. Card #34247's acceptance sentence and the accepted ADR-0150 D5 text answer one address differently; contract review FAIL 6916685896 on PR #34347 (finding M2) routes the choice to the maintainer. Reader who acts: area o1-D's fix round on PR #34347 (branch claude/area-E1b-34247), right after the ruling. Dedupe: is:issue "package" doc 404 409 holders → 86 hits, read the top 8 (#33210, #34144, #33955, #34247, #34059, #34262, #31527, #34040); none asks this; is:issue label:needs-user-decision qualifier → 0.

维护者速读

Background

PR #34347 (cards #34247 and #34248) narrows GET /meta/doc/N?package=X: on main, when X ships no doc N and package Y does, the read answers 200 with Y's doc (the registry's prefer-local fallback, measured on the composed artifact rig by the #34040 dev). The same holds for every type the exact qualifier does not judge by package: doc, view, translation, field, seed, datasource, external_catalog, object_extension (the family PR #34241 enumerates). The PR answers 404 there, because the card's acceptance 1 says "answers 404".

Governing text

Prior rulings read: exact qualifier, names the holders, package → 107 ADR hits, read ADR-0150 D2/D5 and the #32362 note; ADR-0150 D5; thread: none (0 rulings of 3 comments on #34247).

Protocol

Clause-②: yes (narrowing) under every option but C. A and B both narrow 200 to a refusal; they differ in which refusal. No spec schema changes under A or B: the 409 body is the existing RESOURCE_CONFLICT with details.candidates (packages/metadata/src/package-slotted-store.ts, reason not-held-by-qualifier).

Premises (re-check)

Options

Option What happens What the customer sees Work
A · 404 (card) ?package=X, X holds nothing, Y holds N → 404 for the eight uncovered types; the covered types keep their 409 A Console doc link or an API/AI read that names the wrong package gets "not found", with no hint that Y has it none beyond PR #34347's current round (+410/−43 at 989f4ad7)
B · 409 naming holders (ADR D5) same address → 409 RESOURCE_CONFLICT, reason not-held-by-qualifier, candidates = the holders Console lists the holders, one click opens the right doc; an AI or script reads the candidates and retries with the right package server lane · same PR · one more fix round swapping the answer on readMetaItem, /layers and the carry-forward, plus the changeset rows. No measured precedent for this exact swap; closest landed: #34147 (+771/−53), which introduced the ?package= holder refusal on the diff door
C · keep 200 Y's doc is served under X's address silently the wrong package's content none; #34247 and the open half of #34040's acceptance stay unmet

Business meaning, one line each:

  • A: asking a librarian for "Smith's edition" of a book the library only has in Jones's edition, and being told "we don't have it".
  • B: being told "not Smith's; Jones's edition is on shelf 4".
  • C: being handed Jones's edition with Smith's label on it.

Four facets

  • ① Long-term soundness: B keeps one answer for one address across every metadata type (covered types already answer 409), and it is the ADR's own sentence; A adds a per-type split (eight types 404, the rest 409) that a later card would have to unify. End state in two years: one exact-address rule for every metadata type, so a reader never has to know which types are package-scoped to interpret the answer. Reference read: the platform's own covered types (flow, action, page and the rest of ADR-0150 bucket 2), which already answer this way; I read no external platform for this.
  • ② Business pull: today's first consumer is the Console doc page. ADR-0046 cross-references from app X's doc to another package's doc, and docs under multi-app packages, read with the app's address; with A they show "not found", with B they show the holder list (finding M2 on PR fix(metadata-protocol)!: an exact ?package= read answers its own package's item or a 409 naming the holders, and a bare doc read beside two holders serves the environment's own entry #34347).
  • ③ Guarding against AI mistakes: an AI that names the wrong package gets, with B, a loud refusal that carries the fix (the candidates); with A, a 404 that reads like "this doc does not exist", which invites the AI to create a duplicate.
  • ④ Startup-stage containment: B reuses the existing refusal vocabulary (not-held-by-qualifier, RESOURCE_CONFLICT, details.candidates) and adds nothing to declare; A creates a second answer for the same address that has to be documented and kept apart.

Recommendation

B. Only looking at ①: B. Do ②③④ flip it: no. Confidence gap: I read no external platform's convention (some, such as Kubernetes namespaces, answer a plain not-found for an object in another namespace, which leans toward A). I also did not measure what the eight uncovered types' Studio editors do with a 409 (the doc page is the only reader I read); the decision thread may want that read before the ruling.

Not taken: A, because it leaves a dead end where the ADR promised a refusal with candidates and splits the types; C, because it is the defect the card exists to remove.

Analysis-tier: seat tier; the decision thread re-reads before taking it to the maintainer.

After the ruling

Related

Cards #34247, #34248, #34040 (closed); PRs #34347 (open, FAIL 6916685896), #34241 (merged), #34147 (merged); ADR-0150 D2/D5.

Activity

  1. added
    priority:p2
    needs-user-decision
    domain:server
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · os-project-manager · session_01FEkQ5o4M8rhK9wvYDdmaYW

    Ruling: letter B · maintainer 「B 拒绝并列出持有的包」 (the option he chose on the decision card) · recorded 2026-11-16T12:57Z

    Recorded by the project's decision thread for this card. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T12:56:27Z. Decision thread cmsg_01TenzsRopZj4jMbvjX8uz1XDKjEBjzqSnPLtSgPb8FzwY, card cmsg_01TenzsRopZj4jMbvjX8uz1X5LUMATfVvFzhnham3FbGyX, choice record cmsg_01TenzsRopZj4jMbvjX8uz1XKYU3NR7NW94axcCf8ZSVfU.

    Thread-read: none (no comment on this card before this one). Body as filed. Labels priority:p2, needs-user-decision, domain:server.

    The question he was asked

    「裁定:点名要 X 包的文档,X 没有而别的包有,平台怎么答?」 A reader asks for "package X's copy" of a doc; X has none and another package has it. Today the platform silently serves the other package's copy. PR #34347 turns that into a refusal: does it say "no such doc", or "X has none, Y has it"? The same address moves for the other types of the family.

    The three options on the card, as he read them:

    The ruling

    B. An exact ?package=X read of a name X holds no item of, while another package holds it, answers 409 RESOURCE_CONFLICT, reason not-held-by-qualifier, naming the package holders. Card #34247's acceptance 1 ("answers 404") is amended to this by this ruling. A name nothing holds still answers the read's own 404.

    The parameters below are the ones the analysis attached to B, under "裁后执行". The thread message that carried the card pointed at that file, and he chose B without amending any.

    1. Scope is the cell PR fix(metadata-protocol)!: an exact ?package= read answers its own package's item or a 409 naming the holders, and a bare doc read beside two holders serves the environment's own entry #34347 already moves: another package holds the name. The environment's own entry still answers first and is served as the PR has it (ruling 6893582352). The ruling widens nothing beyond that cell.
    2. Doors: the plain read and /layers?package=X. The save's credential carry-forward is not a read answer; the area aligns it with the save door's existing refusal or keeps "carries none", and says which in the PR.
    3. A qualifier that is no installed package (the Console's app-name segment) gets the same answer as an installed package that holds nothing: the 409 naming the holders, or the 404 when nothing holds the name.
    4. No new vocabulary: the existing RESOURCE_CONFLICT, not-held-by-qualifier and details.candidates. Clause-② stays no (narrowing); the changeset and FROM→TO rows read 200 → 409.
    5. Measure the audience gate once and write it in the PR: whether a member the docs audience gate refuses (ADR-0046 §6.7, 401/403) gets that refusal or the 409 naming a holder. The bare two-holder 409 (ruling 6893582352) is the comparison. Not measured by the decision thread.
    6. The Console doc page is still owed (contract review 6916685896, M2): it sends the app's address segment as the package. It lands with this PR or a predecessor. Opening the one named holder directly when the refusal names exactly one is an optional ui follow-up, not part of this ruling.
    7. The rest of FAIL 6916685896 (M1, S1 to S3) is untouched by this ruling.

    ⛔ Not taken: A (a dead end where the other 20-odd types name the holder, and "not found" reads as "free to create" to an author or an AI). C (the defect card #34247 exists to remove).

    What the decision thread added to this card's analysis

    Read on origin/main f84dc19, PR head 989f4ad and hotcrm 0f9710e. Nothing was run.

    • The ADR text does not settle it for a doc. ADR-0150 D1 keeps doc, view, field and object_extension in bucket 1 ("Addressing: unchanged"); ruling 6893582352 says "?package= reads are unchanged" for a doc; and protocol-exact-qualifier.ts's header says every type outside the covered set keeps the prefer-local read. So B extends D5's sentence to this family by this ruling. It is not a reading D5 already forced.
    • Measured pull. HotCRM at 0f9710e: 22 of 98 doc cross-references point at a doc in another package's docs folder (sales → service 10, marketing → sales 4, revenue → sales 6, service → sales 2), and the sales package's manual lists the service module's chapters. Inside the CRM app each of those reads names the CRM app's package.
    • The external convention leans A (the card's first confidence gap): Kubernetes, Salesforce and npm answer a plain not-found for a name held under another namespace or scope. B was recommended anyway, because the platform already answers this address shape with the holders for the covered types, and its readers include AI authors.
    • The other editors (the card's second gap): the generic package-naming read (MetadataProvider.tsx readPackagedItem) and ResourceEditPage are type-generic and already meet this 409 for covered types. Studio reads a /layers 404 as "never saved". The other seven types' own editors were not read one by one.

    Full analysis: /mnt/project-files/pm-orders/review/34398-decision-analysis.md (project files).

    Effort of the chosen letter

    Server lane, the same PR (#34347, +410/−43 at 989f4ad), one more fix round. Closest landed precedent: PR #34147 (+771/−53, 20 files), which introduced the same refusal on the diff door. No like-for-like precedent for the swap itself.


    Generated by Claude Code

  3. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

    2026-11-17T07:19Z State after the ruling: needs-user-decision → pm:dispatched. The ruling is on record (Ruled: 6917064203, letter B, 「B 拒绝并列出持有的包」), but the decision label was never taken off. Ruling B is carried by PR #34347 (card #34247, area o2-I of repo:objectstack#2, in review). This card closes when that PR merges. Found by the ADR-0150 census of epic #31527.

  4. added
    pm:dispatched
    and removed
    needs-user-decision
    on Nov 17, 2026
  5. 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)

  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: takeover · #34398 · area o3-I (seat-2 hand-off: approvals and close-out) · 2026-11-17T12:55Z
    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: 6948311163
    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: 6948311163
    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)

  7. 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:08Z: ruling 6917064203 (letter B, a 409 RESOURCE_CONFLICT naming the holders) is delivered by PR #34347, merged as 89d5a41. Per the hand-off 6948311163 this decision card closes by hand once that PR merges; pm:dispatched, lease:o3-I and the assignee are cleared.

  8. 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

    domain:serverpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions