Skip to content

metadata-protocol: an exact ?package=X read of a doc (and the other types the registry does not read by package) that X does not ship answers another package's item instead of 404 #34247

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 (open question, cell C, in the report on #34040; PR #34241), filed by area S5 (E1b), lease E1.

维护者速读

Measured

This was measured on the composed artifact rig by the #34040 dev, before and after PR #34241. Package Y ships doc N and X ships no doc N. GET /meta/doc/N?package=X answers 200 with Y's doc, through the registry's getItem prefer-local fallback to the first composite.

Seam (read): packages/metadata-protocol/src/protocol-meta-item-reads.ts readMetaItem, step 3 after step 2 declines another package's service copy. The family that PR #34241 enumerates is doc, view, translation, field, seed, datasource, external_catalog and object_extension.

Acceptance

  1. An exact ?package=X read of a name X holds no item of answers 404, for the family the registry does not read by package. Pin it in both registration orders. CONTROLs: X holds the name (unchanged), and the types the exact qualifier covers (unchanged).
  2. Declaration: Clause-②: yes (narrowing) (200→404), ! title, BREAKING banner, ADR-0087 marker and dogfood battery.
  3. Check /layers?package=X and readCodeLayerForCarryForward, which also call readItemFromMetadataService(type, name, X). Align them in the same PR or name them.

Prior rulings read: ADR-0150 D3/D5 (an exact address answers that holder) and red line 2; #34040's acceptance ("X's doc or 404, never another holder's"); ruling 6893582352 on #33264. PR #34241 depends on this card: it leaves this cell unchanged to keep Clause-②: no. Open after #34241 merges, or merge-tree against it.

Dedupe

I searched "doc package 404 another holder" and "service copy package exact"; the only hit was #34040 itself.

Activity

  1. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 34247,
      "status": "done",
      "branch": "claude/area-E1b-34247",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34347",
      "session": "session_01FEkQ5obaLbqgzRUR9xXfft",
      "premise_still_valid": true,
      "summary": "Final head de137717 (BASE 72dc8ca2, origin/main 6cc3f974 merged at 989f4ad7 for #34354, both describes kept in package-scoped-exact-qualifier.test.ts). Ruling 6917064203 on #34398: ?package=X of a name X holds none of while another package holds it now answers 409 RESOURCE_CONFLICT, reason not-held-by-qualifier, details.candidates naming the holders, on the plain read and /layers; a non-installed qualifier gets the same answer; a name nothing holds stays 404; the credential carry-forward keeps 'carries none' and does not refuse. Review fold-ins: M1 (the hydrator-shaped _provenance:'org' row is served as overlay+effective on /layers and by both /published doors, pinned before and after hydration in both orders), S1 (one holder beside a stamp-less entry: the minimal option, pinned [measured, unresolved] and declared, because card #34248's acceptance names two or more holders), S2 (position and capability excluded in code via isSecurityCatalogType, with a CONTROL each), M2 (Console DocPage falls back to the read by name on the not-held 409 or a 404; declared in the changeset). Hydration measured for real: after the artifacts, the hydrator grafts the first holder's envelope and the bare doors stay 409 (same on main); before the artifacts, main served the holder registered last on all bare doors, and the head serves the row. Audience gate (ruling item 6): a gate-refused or anonymous member gets the same 409 as the bare two-holder 409, on both transports.",
      "tests": "At de137717: objectql 603 files / 13520 tests pass; runtime 608 files, 11216 pass + 23 skipped; metadata-protocol 346 + 9 skipped files, 22968 pass + 45 skipped; rest 413 files, 8552 pass + 350 skipped; @object-ui/console 322 files / 3318 tests pass. Typechecks metadata-protocol/objectql/runtime/rest exit 0. Console type-check exit 2 NOT MEASURED: ui dependency declarations not built locally (1012 TS2307/TS2882 and follow-on TS7006 errors; none at the changed lines). Ablations at de137717, each rebuilt and preflighted in dist, restore proved (blob = HEAD, diff HEAD empty, --absent after the final rebuild, status clean): M1 rig 2 failed; S2 objectql 2 failed; R1 objectql 26 + rig 4 failed; R2 objectql 16 + rig 4 failed; UI docs-portal 2 failed. HEAD baseline: objectql file 453/453, rig 43 pass + 4 skipped, docs-portal 33/33. Main-side reading at merge base 6cc3f974 from a scratch copy of the rig (not committed): non-holder exact reads 200 with a holder's doc; hydrated-before-artifacts bare doors 200 with the holder registered last.",
      "gates": "dispatch-gates --commands (from the merge base) derived 77; 75 run exit 0; check:dual-build-cjs-loads exit 3 and check:type-check-debt exit 3 (PREREQUISITE NOT MET) NOT MEASURED; --ran: 77 accounted, 75 run, 2 NOT-MEASURED. check-platform-checklist --changed-from origin/main exit 0 (12 anchors, 0 lost). check-nul-bytes exit 0. Prepared PR body: check-changeset-no-major exit 0, check-adr-0087-registration exit 0, check-closing-keyword-parity --body exit 2 (binds exactly Fixes #34247 and Fixes #34248, as intended). CI check-runs: not cited, CI had not concluded and this report does not wait on it.",
      "dogfood_battery": "de137717 · os-verify-lock: VERDICT command-exit 0, held the lock 2040s · Test Files 474 passed, 3 skipped (477) · Tests 4006 passed, 42 skipped (4048) · no failure",
      "mcp_calls": "0",
      "api_writes": "1 — POST /repos/objectstack-ai/objectstack/issues/34247/comments (this os-dev-report, via scripts/pm/post-stamped.mjs)",
      "open_questions": [],
      "security_findings": "withheld",
      "out_of_scope_findings": [
        "class: a · reach: GET /meta/doc/NAME?package=FIRST_HOLDER after boot hydration (or loadMetaFromDb) of a package-less stored row of a doc two packages ship, artifacts registered first; dispatcher and RestServer, both orders, measured at origin/main c9346317 and at head 72dc8ca2 · evidence: mergeArtifactProtection grafts the first registered holder's envelope (_packageId = first holder, _provenance 'package') onto the environment row's body, so the first holder's exact address serves the environment row's content instead of the holder's own doc, while the bare doors refuse 409 · dedupe words: hydrate overlay graft envelope, mergeArtifactProtection first holder, package-less row exact address, sys_metadata doc two holders",
        "carrier: seat · the PR title still reads 'answers its own package's item or 404'; under ruling 6917064203 it should read 409 for a name another package holds. Title and body edits are seat writes, not dev writes"
      ]
    }

    Generated by Claude Code

  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Acceptance amended by ruling · #34247 · area o1-D · 2026-11-16T15:39Z

    Ruling-ref: 6917064203 on #34398 (maintainer, letter B 「B 拒绝并列出持有的包」, 2026-11-16T12:56Z).

    Acceptance 1 now reads: 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, with details.candidates naming the holders, for the family the registry does not read by package (position and capability excluded), on the plain read and /layers, for an installed qualifier and one that is not installed. A name nothing holds still answers the read's own 404. Pinned in both registration orders; CONTROLs unchanged (X holds the name; the covered types).

    Acceptance 2 is unchanged except that the FROM→TO rows read 200 → 409. Delivered by PR #34347.

  3. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 34247,
      "status": "done",
      "branch": "claude/area-E1b-34247",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34347",
      "session": "session_01FEkQ5obaLbqgzRUR9xXfft",
      "premise_still_valid": true,
      "summary": "Fix round on review record 6921035514; final head c47c71b4 (commits 8c929a55 and c47c71b4 on de137717). M2: the Console flat permalink (DocsSlug.refusalFor) now reads a name by name after the not-held 409 (route segment not among the candidates) or a 404, through one rule shared with DocPage (ui/apps/console/src/pages/doc-address.ts); pinned under WORLD.exact for a cross-package link and an app-name segment, with a CONTROL at the holder's own segment. S5 (ruling 6917064203 parameter 5, the seat's answer): for a doc, the audience gate answers before any refusal that names holders (gateHolderNamingRefusal in @objectstack/rest, asked by both transports' plain read and /layers read); pinned for a refused member (403), an anonymous caller (401), and CONTROLs for an admitted caller and an org-audience doc (409). S4: environmentRowAnswers holds only where the bare entry is the row's tenant-authored copy (code null); the mixed state is pinned in both orders. N2: follow-up card draft staged for the seat. CI reds at 8c929a55: Lint (check:test-source-alias) was this PR's and is fixed at c47c71b4; Test Core (3/8) and Type Check consumer gates failed in CI's git fetch/checkout timeouts before running, green at c47c71b4.",
      "tests": "At c47c71b4, each step its own verify-lock call: objectql 603 files / 13520 tests; runtime 609 files, 11222 pass + 23 skipped; metadata-protocol 346 + 9 skipped files, 22968 pass + 45 skipped; rest 413 files, 8552 pass + 350 skipped; console 322 files / 3321 tests; typechecks metadata-protocol, objectql, runtime, rest exit 0; console type-check not run locally (ui declaration closure unbuilt), CI Type Check UI success. Ablations this round: G (gate helper) audience pin 2 failed; DS (DocsSlug fallback) docs-portal 2 failed; S4 rig 2 failed (rerun with a build-surviving marker, preflight 0, restore proved, --absent 0, tree clean; the first S4 pass is void: its marker was constant-folded out of dist).",
      "gates": "dispatch-gates --commands at c47c71b4: 79 derived, 78 exit 0 (check:test-source-alias and check:type-check-debt included), check:dual-build-cjs-loads exit 3 NOT MEASURED; --ran: 79 accounted, 78 run, 1 NOT-MEASURED. check-platform-checklist --changed-from origin/main 0 (36 anchors, 0 lost); check-nul-bytes 0. Staged body: check-changeset-no-major 0, check-adr-0087-registration 0, check-closing-keyword-parity --body 2 (binds Fixes #34247 and #34248 only). CI at c47c71b4: Lint and Repo Gates success, Lint CI release and engine gates success, Type Check consumer gates success, Type Check UI success, Test Core 1-7 of 8 success, 8 of 8 in progress, Check Changeset success.",
      "dogfood_battery": "c47c71b4 · os-verify-lock: VERDICT command-exit 0, held the lock 1835s · Test Files 474 passed, 3 skipped (477) · Tests 4006 passed, 42 skipped (4048) · no failure",
      "mcp_calls": "0",
      "api_writes": "this round: 1 — POST /repos/objectstack-ai/objectstack/issues/34247/comments (this report, via scripts/pm/post-stamped.mjs)",
      "open_questions": [],
      "security_findings": "withheld",
      "out_of_scope_findings": [
        "carrier: seat · follow-up card draft for the one-holder plus stamp-less entry cell (review N2), staged for the seat to file"
      ]
    }

    Generated by Claude Code

  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 34247,
      "status": "done",
      "branch": "claude/area-E1b-34247",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34347",
      "session": "session_01FEkQ5obaLbqgzRUR9xXfft",
      "premise_still_valid": true,
      "summary": "Closing round on review record 6927304677; final head 24a7664b12eecf8e6ceff0026a633cc06e004c92. R1 verified met by 2496009b (pushed by the lost round, unchanged here): the changeset's 'Not moved' one-holder bullet now ends 'Follow-up card #34452 carries this cell; it needs a ruling first on whether the environment's entry answers first beside one holder, before any reader moves.' No further commit was needed for R1. main had moved 17 first-parent commits past the merge base 6a7403ba, so origin/main 24b6ae55 was merged (merge, not rebase; no force-push) as 24a7664b; the branch's delta against main is byte-identical before and after (18 files +1147/-80, patch-id 173b0c4419ce both sides). A PR body update with only the Verification section moved to the final head is staged for the seat, not posted.",
      "tests": "No code changed this round (one changeset line in 2496009b plus a merge of main). At 24a7664b: pnpm install --frozen-lockfile exit 0; closure build `pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build` under its own lock call: 'VERDICT command-exit 0 · held the lock 383s'. Package suites and typechecks not rerun locally (merge brought only main; CI Test Core 1-8/8 and TypeScript Type Check success at 24a7664b); their c47c71b4 readings stand in the PR body. Ablations not rerun: no tested behaviour changed after c47c71b4.",
      "gates": "At 24a7664b, `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` (first stderr line: tree of objectstack-ai/objectstack at commit 24a7664b1; 18 paths vs merge base 24b6ae550): 79 derived, each run with its exit captured before any pipe. 78 exit 0 (check:nul-bytes, check:doc-authoring, check:issue-citations, check:test-source-alias, check:type-check-coverage among them; `pnpm --dir ui exec vitest run scripts/` 171 files passed). check:type-check-debt answered exit 3 on its first run while the battery held the verify lock, rerun exit 0 ('0 raw tsc error(s) total, none above its recorded number'). check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (no packages/qa/scenarios/dist; needs a full build): NOT MEASURED locally. `--ran` with recorded exit codes: '79 derived famil(ies) accounted for — 78 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)'. CI check-runs at 24a7664b: 43 success, 10 skipped, 0 in progress, 0 failure; all eleven required contexts success (Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate).",
      "dogfood_battery": "24a7664b12eecf8e6ceff0026a633cc06e004c92 · 'os-verify-lock: VERDICT command-exit 0 · held the lock 2265s (37m45s) · waited 0s' · Test Files 478 passed, 3 skipped (481) · Tests 4030 passed, 44 skipped (4074) · no failure; `pnpm --filter @objectstack/dogfood test`, its own lock call, no shard, no path, after the closure build",
      "mcp_calls": "0",
      "api_writes": "1 — POST issues/34247/comments (this report, via post-stamped.mjs). Plus 1 git push (not REST).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  5. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRPxhTmqbUbMrqygh4

    Release: claim 6913106182 (the takeover claim of seat repo:objectstack#1, session session_01FEkQ5obaLbqgzRUR9xXfft, area o1-D, account os-project-manager) and its acceptance amendment 6921079049 · 2026-11-17T02:51Z
    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 · #34247 · area o2-I (seat 1 legacy · server) · 2026-11-17T02:51Z
    Session: session_01ADHkmRPxhTmqbUbMrqygh4 (area o2-I holds the claim); the code is finished by a card thread of this seat that reports to area o2-I
    Account: os-steve
    Branch: claude/area-E1b-34247 (PR #34347, fold with #34248), continued as it is, no new PR
    Worktree: the card thread's own
    Domain: domain:server
    Seat: repo:objectstack#2
    File surface: unchanged from 6913106182 / 6921079049 and PR #34347 as it stands
    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:; PR #34238 (#34059) also touches metadata-protocol, so a merge-tree is run at claim and before each push.
    Prior rulings read: check-prior-rulings.mjs --card 34247 → card thread 0 rulings of 7 comments; ADR-0146 D11 by term hit; ruling 6917064203 (#34398) per the hand-over.
    Lease: lease:o2-I (replaces lease:o1-D).

    Hand-over record: claude/area-E1b-34247 @ 0ba6987aec1cd73f9a97fa417355a7930302ceae (PR #34347, draft; hand-over state 6933548101 and its update 6933791590 list everything owed). The branch tip matches the PR head at this reading.

  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRPxhTmqbUbMrqygh4

    Hand-off · 2026-11-17T12:38Z · 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 · #34247 · 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: 6948279596
    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: 6948279596
    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. 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