You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
metadata-protocol: an exact read of a doc (?package=A) of a name two packages ship can answer the other package's doc, because the metadata service keeps a doc by name alone #34040
bugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Filing gate: ① a product defect with a named location, measured. Found by area S5's dev on #33264 (report 6898101382, out_of_scope_findings, class a), filed by area S5 (E1b), lease E1.
维护者速读
问题:两个包都发布了同名文档(doc)时,带 ?package=A 的精确读取可能返回 B 包的文档,两种注册顺序都会出现。
On a composed artifact server (MetadataPlugin artifact door + AppPlugin, two package bodies shipping one doc name shared_doc), on origin/main 1e65a38 and unchanged at PR #34036's head:
GET /api/v1/meta/doc/shared_doc?package=com.qa.alpha answers 200 with com.qa.beta's doc, in both registration orders.
Seam (read): readMetaItem step 2 (packages/metadata-protocol/src/protocol-meta-item-reads.ts) serves the MetadataService copy, which is kept by name alone, for an exact address of a type the registry does not read by package.
Acceptance
An exact ?package=X doc read answers X's doc or 404, never another holder's. Pin both orders, ablated. CONTROL: one holder (unchanged).
Measure the other types the registry does not read by package for the same step-2 shape; fix the family in one PR, with an enumeration pin.
Declared FROM→TO with its Clause-② arm.
Prior rulings read: ADR-0150 D3 (package-addressed reads) and red line 2; ruling 6893582352 on #33264 (bare doc read), which does not cover the exact read; no test found pinning the current answer.
Dedupe
Searched "doc package= wrong holder", "metadata service doc by name": only #33264 (bare read, not exact). #33385 / #33401 (fold PR #33995) cover _env and the exact qualifier for registry-read types, not this step-2 path.
Claim: area S5 (lease E1, E1b), #33751 §2 area-lease mode, round 6 (slot freed by PR #34036 entering the merge queue)
Session: session_01QsR2jUcj2x2Wr4UErwBi12
Account: zhuangjianguo
Branch: claude/area-E1b-34040
Worktree: objectstack-e1b-34040
Domain: domain:server
Seat: domain:server#5
File surface: packages/metadata-protocol/src/protocol-meta-item-reads.ts (readMetaItem step 2, MetadataService answer to an exact address), pins in the existing composed-rig / REST harness files (AGENTS.md shared-harness rule) or a new card-named file, one changeset; item 4 pins (review-c N2/N6 on PR #34036). No protocol.ts, no packages/spec/src/**, no protocol-meta-item-face.ts (fold PR #33995); stop on breach.
Container & model: M, mode:subagent, model: default judgment tier, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack platform code (metadata-protocol by-name read, step 2) | none | a deployment where two packages ship one doc name and a reader asks ?package= (the remedy PR #34036's refusal names)
Thread-read: 6898628534
Premise: card (measured by the #33264 dev on a composed artifact server, report 6898101382); the dev re-measures on main after PR #34036 merges
Pre-claim lane: domain:server because the seam is packages/metadata-protocol/src/protocol-meta-item-reads.ts
Pre-claim deps: PR #34036 (#33264, in the merge queue) edits protocol-meta-item-reads.ts: the dev starts from origin/main once #34036 is MERGED, or runs git merge-tree against its head before every push; fold PR #33995 (item face, exact qualifier, rest/runtime _env doors) does not edit this file — merge-tree against its head too. No Blocked-by.
Prior rulings read: ADR-0150 D3 (package-addressed reads: an exact address answers that holder) and red line 2; ruling 6893582352 on #33264 ("Exact-address reads, own-package-first and ?package= reads are unchanged" — it keeps their addressing, it does not bless serving another holder's body); protocol-meta-item-reads.ts has 14 ruling/⛔ hits (the MetadataService arms #32365, #32560, #32244 among them) for the dev to read; no test found pinning an exact read answering another holder (the dev confirms). Clause-② is measured: if X's own doc is not readable at the exact address and the answer moves 200→404, that is a narrowing and the claim is amended before the PR.
{
"issue": 34040,
"status": "done",
"branch": "claude/area-E1b-34040",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34241",
"head": "32a489c698",
"session": "session_01QsR2jUcj2x2Wr4UErwBi12",
"premise_still_valid": true,
"summary": "H1 confirmed on the composed artifact rig: GET /meta/doc/shared_doc?package=alpha answered 200 with beta's body under alpha's envelope whenever beta registered last (both transports). The MetadataService keeps doc by name alone, and doc is outside PACKAGE_SCOPED_TYPES, so no exact qualifier replaced the step-2 copy. Fix in protocol-meta-item-reads.ts: (1) step 2 declines a service copy stamped with another installed package (not X, not a customization pair either way) at an address the exact qualifier does not admit (serviceCopyOfAnotherPackage; object excluded: one owner, read by getObject). (2) After such a decline, step 3 reads registry.getPackageScopedItem(X) before getItem. getItem's bare-slot-first tier otherwise made a package-less entry answer at the first-registered holder's address. H2: the family over every MetadataTypeSchema type the registry does not read by package. Covered by the exact qualifier and already right: action, hook, job, sharing_rule, queue, assignment_rule. Same step-2 shape, fixed here: doc, view, translation, field, seed, datasource, external_catalog, object_extension. One-holder: position, capability. Not judged: object. One enumeration pin covers them. H3 holds: every moved cell is 200(wrong body) to 200(right body), no 200 to 404, so Clause-② no stands. Item 4 is pinned on the composed rig: the 409 at the plain read, /layers and /published on both transports, and a row-only state still refused. The stamp-less bare entry and the hydrated package-less row are pinned as measured and unresolved: the bare doors serve the holder registered last. That is the TSDoc phrase 'a hydrated or saved row' overreaching, and the phrase is corrected in the same file.",
"tests": "Final head 32a489c698, under os-verify-lock (battery4 VERDICT command-exit 0). metadata-protocol test: exit 0, Tests 22940 passed / 45 skipped. objectql test: exit 0, 13298 passed. rest test: exit 0, 8473 passed / 332 skipped. runtime test: exit 0, Test Files 605 passed, Tests 11081 passed / 19 skipped. Pin files at 32a489c698: package-scoped-exact-qualifier.test.ts 342 passed; meta-disabled-holder-artifact-door.test.ts 17 passed. Ablations go through ablation-replace.mjs; each rebuilds metadata-protocol and proves the marker in dist/ with ablation-dist-preflight (exit 0), and each restore is proved by blob equal to HEAD and an empty git diff HEAD. A at 9ea243ee9a (step-2 decline off): objectql 8 failed, exactly the 8 outside types, e.g. 'doc at com.acme.beta, the service keeping com.acme.alpha's: expected 'alpha doc' to be 'beta doc''; covered types green; runtime rig red on every exact-address pin, showing FROM item.label 'beta doc', content '# beta', _packageId 'com.qa.alpha'. B at 9ea243ee9a (step-3 package slot off): runtime stamp-less and hydrated states red at the first-registered holder's address ('bare entry' / 'environment doc' under _packageId com.qa.alpha); objectql enumeration green. C at 5783d98cf4 (PR #34036's refuseAmbiguousBareDocRead call deleted): item-4 refusal pins red in both orders (200 'beta doc' where 409 is pinned).",
"gates": "Local at 32a489c698: dispatch-gates --commands --repo objectstack-ai/objectstack derived 69. 67 were run, each exit captured before any pipe, all exit 0. --ran reconciliation: '69 derived, 67 run, 0 NOT-MEASURED, 2 UNRUN' (exit 1). The two UNRUN, check:dual-build-cjs-loads and check:type-check-debt, are declared to CI. typecheck metadata-protocol / objectql / runtime: exit 0. eslint --no-inline-config on the 3 touched source files: exit 0; repo-wide pnpm lint is left to CI (narrowed, declared). PR-body gates on the final body: check-changeset-no-major exit 0, check-adr-0087-registration exit 0 ('adds no declared-breaking changeset'), check-closing-keyword-parity exit 0, check-partof-closing-keyword exit 0. merge-tree vs origin/main dfb8ed3570 (merged in) and fold PR #33995 head 69f4887137: clean. CI check-runs on 32a489c698 at report time: in_progress (Check Changeset, Governed Surface Queue Guard, Lint lanes, Type Check lanes, PR-body guards); no conclusion read yet.",
"dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
"declaration_self_check": "PASS. Clause-② no: no served-to-refused cell. All moved answers are 200 wrong-holder body to 200 own body (FROM-TO table in PR body), and cell C was deliberately left unchanged to avoid a 200-to-404 narrowing. No new published export: protocol-meta-item-reads.ts is not re-exported. So no `!`, no BREAKING banner, no ADR-0087 marker, no dogfood. Metadata-protocol none: no authorable key, value or type moves. Changeset is patch. dispatch-gates --tier: 350 changed lines, under 3000, no path-derived mandate. Compared with the #33646 precedent (served-to-refused, so Clause-② yes (narrowing) with `!`) and #33769 (new exports, so yes (widening)): neither shape applies here.",
"line_budget": "+336 / -14 over 4 files (numstat vs origin/main dfb8ed3570): changeset +14/-0; protocol-meta-item-reads.ts +71/-8; objectql package-scoped-exact-qualifier.test.ts +85/-0; runtime meta-disabled-holder-artifact-door.test.ts +166/-6. No skills/** touched; under the 3000-line threshold.",
"files_changed": [
".changeset/34040-exact-read-service-copy.md",
"packages/metadata-protocol/src/protocol-meta-item-reads.ts",
"packages/objectql/src/package-scoped-exact-qualifier.test.ts",
"packages/runtime/src/domains/meta-disabled-holder-artifact-door.test.ts"
],
"deviations": [
"Full objectql/rest/runtime suites were NOT rerun at 5783d98cf4 (an intermediate merge head). They ran green at 9ea243ee9a and again at the final head 32a489c698. Only the final head is cited as current.",
"Local merge-before-PR: main merged twice (86350e12 after PR #34036 landed, then dfb8ed3570). Merge commits carry the default message and no trailer pair. The pre-push check:commit-card-trailers passed on every push.",
"The objectql enumeration pin was placed in package-scoped-exact-qualifier.test.ts, the exact-qualifier shared harness, as a top-level describe after the #32069 one, away from PR #33995's hunks at the end of that file. It was not placed in a new card-named file. The claim allows either.",
"The step-3 package-slot read (getPackageScopedItem after a decline) goes beyond the order's literal step-2-only route. It is within 'fall through to the registry's package slot'. It was added because getItem's bare-slot-first tier made the fix itself registration-order dependent at the first-registered holder's address (ablation B)."
],
"mcp_calls": "0",
"api_writes": "2: POST repository_dispatch to objectstack-ai/objectstack via scripts/pm/fleet-write/dispatch.mjs (pr_create, created PR #34241, read back 10283 bytes identical); POST issue comment on #34040 via scripts/pm/post-stamped.mjs (this report). git push is not counted.",
"open_questions": [
{
"question": "Should `GET /meta/doc/NAME?package=X` answer 404 when X ships no doc of NAME but another package Y does? Today it answers Y's doc (the registry's getItem prefer-local fallback to the first composite), before and after this PR. The card text says 'X's doc or 404, never another holder's'.",
"options": [
"A: keep it (this PR). Business need: no measured caller reads ?package=X for a doc X does not ship; the Console docs reader (#34070) links only to holders it got as candidates. Long-term: leaves a prefer-local fallback on an exact address, which ADR-0150 D3/D5 does not bless. AI-error axis: an author who mistypes the package gets another package's doc silently. Startup scope: zero cost.",
"B: answer 404 when X holds no item of the name, for the outside family (doc, view, translation, ...). Business need: same measured callers are unaffected (they address holders). Long-term: makes ?package= exact for every type, matching the covered types' qualifier. AI-error axis: a wrong package fails loudly, which is better. Startup scope: small code (step 3 skips getItem when another package's copy was declined and X holds nothing), but it is a 200-to-404 narrowing: Clause-② yes (narrowing), `!`, BREAKING banner, ADR-0087 marker, dogfood battery, and a claim amendment."
],
"recommendation": "B as its own card, because it is the contract the card states and it closes a silent wrong answer; but it is a declared narrowing the current claim (Clause-② no) cannot carry, so it should not be folded into #34241."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · reach: public door GET /api/v1/meta/doc/NAME and /published (dispatcher and REST), measured on the composed artifact rig (MetadataPlugin artifact door + AppPlugin), both registration orders, origin/main 86350e12 · evidence: two enabled packages ship doc 'shared_doc'; with a stamp-less bare registry entry, or a hydrated package-less row (stored sys_metadata row + its sys_metadata-stamped bare entry), PR #34036's bare refusal is exempted ('the environment's own item answers first') but the layers serve the MetadataService copy of the holder registered last ('beta doc' when beta last, 'alpha doc' when alpha last); /layers reports overlay 'environment doc' over effective = that holder. A registration-order pick on a bare address (ADR-0150 red line 2). Pinned as measured, unresolved in meta-disabled-holder-artifact-door.test.ts; TSDoc corrected. Seam: runtime:readMetaItem step 2 (protocol-meta-item-reads.ts) after refuseAmbiguousBareDocRead / registry:readBareDoc exemption · dedupe words: 'bare doc read package-less entry registration order', 'hydrated doc row two holders', 'readBareDoc exemption service copy'",
"carrier: none · noted, not filed: /layers?package=X and readCodeLayerForCarryForward also call readItemFromMetadataService(type, name, X) (protocol-meta-layered-reads.ts, protocol-discovery-and-bases.ts) and may show the same step-2 shape for the outside family; outside this card's file surface, not measured."
],
"loose_ends": [
"Item 4: the bare doc read beside two holders plus a package-less registry entry serves a registration-order pick (first out_of_scope_findings entry); behaviour change owed, not folded.",
"Open question cell C (200 another holder's doc at ?package=X when X ships none): narrowing card if decided B."
]
}
bugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12
Acceptance addition (review-c N2/N6 on PR #34036, record 6898579083). This card carries it because it uses the same composed artifact rig.
/layersand/published.If any pin shows the TSDoc phrase "a hydrated or saved row" overreaching, correct the phrase in the same PR.
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12
Claim: area S5 (lease E1, E1b), #33751 §2 area-lease mode, round 6 (slot freed by PR #34036 entering the merge queue)
Session:
session_01QsR2jUcj2x2Wr4UErwBi12Account:
zhuangjianguoBranch:
claude/area-E1b-34040Worktree:
objectstack-e1b-34040Domain:
domain:serverSeat:
domain:server#5File surface:
packages/metadata-protocol/src/protocol-meta-item-reads.ts(readMetaItemstep 2, MetadataService answer to an exact address), pins in the existing composed-rig / REST harness files (AGENTS.md shared-harness rule) or a new card-named file, one changeset; item 4 pins (review-c N2/N6 on PR #34036). Noprotocol.ts, nopackages/spec/src/**, noprotocol-meta-item-face.ts(fold PR #33995); stop on breach.Container & model:
M,mode:subagent,model: default judgment tier,effort: highClause-②: no
Metadata-protocol: none
Responsibility: objectstack platform code (metadata-protocol by-name read, step 2) | none | a deployment where two packages ship one doc name and a reader asks
?package=(the remedy PR #34036's refusal names)Thread-read: 6898628534
Premise: card (measured by the #33264 dev on a composed artifact server, report 6898101382); the dev re-measures on main after PR #34036 merges
Pre-claim lane: domain:server because the seam is packages/metadata-protocol/src/protocol-meta-item-reads.ts
Pre-claim deps: PR #34036 (#33264, in the merge queue) edits protocol-meta-item-reads.ts: the dev starts from origin/main once #34036 is MERGED, or runs git merge-tree against its head before every push; fold PR #33995 (item face, exact qualifier, rest/runtime
_envdoors) does not edit this file — merge-tree against its head too. No Blocked-by.Prior rulings read: ADR-0150 D3 (package-addressed reads: an exact address answers that holder) and red line 2; ruling 6893582352 on #33264 ("Exact-address reads, own-package-first and
?package=reads are unchanged" — it keeps their addressing, it does not bless serving another holder's body); protocol-meta-item-reads.ts has 14 ruling/⛔ hits (the MetadataService arms #32365, #32560, #32244 among them) for the dev to read; no test found pinning an exact read answering another holder (the dev confirms). Clause-② is measured: if X's own doc is not readable at the exact address and the answer moves 200→404, that is a narrowing and the claim is amended before the PR.objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12
os-dev-report
{ "issue": 34040, "status": "done", "branch": "claude/area-E1b-34040", "pr": "https://github.com/objectstack-ai/objectstack/pull/34241", "head": "32a489c698", "session": "session_01QsR2jUcj2x2Wr4UErwBi12", "premise_still_valid": true, "summary": "H1 confirmed on the composed artifact rig: GET /meta/doc/shared_doc?package=alpha answered 200 with beta's body under alpha's envelope whenever beta registered last (both transports). The MetadataService keeps doc by name alone, and doc is outside PACKAGE_SCOPED_TYPES, so no exact qualifier replaced the step-2 copy. Fix in protocol-meta-item-reads.ts: (1) step 2 declines a service copy stamped with another installed package (not X, not a customization pair either way) at an address the exact qualifier does not admit (serviceCopyOfAnotherPackage; object excluded: one owner, read by getObject). (2) After such a decline, step 3 reads registry.getPackageScopedItem(X) before getItem. getItem's bare-slot-first tier otherwise made a package-less entry answer at the first-registered holder's address. H2: the family over every MetadataTypeSchema type the registry does not read by package. Covered by the exact qualifier and already right: action, hook, job, sharing_rule, queue, assignment_rule. Same step-2 shape, fixed here: doc, view, translation, field, seed, datasource, external_catalog, object_extension. One-holder: position, capability. Not judged: object. One enumeration pin covers them. H3 holds: every moved cell is 200(wrong body) to 200(right body), no 200 to 404, so Clause-② no stands. Item 4 is pinned on the composed rig: the 409 at the plain read, /layers and /published on both transports, and a row-only state still refused. The stamp-less bare entry and the hydrated package-less row are pinned as measured and unresolved: the bare doors serve the holder registered last. That is the TSDoc phrase 'a hydrated or saved row' overreaching, and the phrase is corrected in the same file.", "tests": "Final head 32a489c698, under os-verify-lock (battery4 VERDICT command-exit 0). metadata-protocol test: exit 0, Tests 22940 passed / 45 skipped. objectql test: exit 0, 13298 passed. rest test: exit 0, 8473 passed / 332 skipped. runtime test: exit 0, Test Files 605 passed, Tests 11081 passed / 19 skipped. Pin files at 32a489c698: package-scoped-exact-qualifier.test.ts 342 passed; meta-disabled-holder-artifact-door.test.ts 17 passed. Ablations go through ablation-replace.mjs; each rebuilds metadata-protocol and proves the marker in dist/ with ablation-dist-preflight (exit 0), and each restore is proved by blob equal to HEAD and an empty git diff HEAD. A at 9ea243ee9a (step-2 decline off): objectql 8 failed, exactly the 8 outside types, e.g. 'doc at com.acme.beta, the service keeping com.acme.alpha's: expected 'alpha doc' to be 'beta doc''; covered types green; runtime rig red on every exact-address pin, showing FROM item.label 'beta doc', content '# beta', _packageId 'com.qa.alpha'. B at 9ea243ee9a (step-3 package slot off): runtime stamp-less and hydrated states red at the first-registered holder's address ('bare entry' / 'environment doc' under _packageId com.qa.alpha); objectql enumeration green. C at 5783d98cf4 (PR #34036's refuseAmbiguousBareDocRead call deleted): item-4 refusal pins red in both orders (200 'beta doc' where 409 is pinned).", "gates": "Local at 32a489c698: dispatch-gates --commands --repo objectstack-ai/objectstack derived 69. 67 were run, each exit captured before any pipe, all exit 0. --ran reconciliation: '69 derived, 67 run, 0 NOT-MEASURED, 2 UNRUN' (exit 1). The two UNRUN, check:dual-build-cjs-loads and check:type-check-debt, are declared to CI. typecheck metadata-protocol / objectql / runtime: exit 0. eslint --no-inline-config on the 3 touched source files: exit 0; repo-wide pnpm lint is left to CI (narrowed, declared). PR-body gates on the final body: check-changeset-no-major exit 0, check-adr-0087-registration exit 0 ('adds no declared-breaking changeset'), check-closing-keyword-parity exit 0, check-partof-closing-keyword exit 0. merge-tree vs origin/main dfb8ed3570 (merged in) and fold PR #33995 head 69f4887137: clean. CI check-runs on 32a489c698 at report time: in_progress (Check Changeset, Governed Surface Queue Guard, Lint lanes, Type Check lanes, PR-body guards); no conclusion read yet.", "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm", "declaration_self_check": "PASS. Clause-② no: no served-to-refused cell. All moved answers are 200 wrong-holder body to 200 own body (FROM-TO table in PR body), and cell C was deliberately left unchanged to avoid a 200-to-404 narrowing. No new published export: protocol-meta-item-reads.ts is not re-exported. So no `!`, no BREAKING banner, no ADR-0087 marker, no dogfood. Metadata-protocol none: no authorable key, value or type moves. Changeset is patch. dispatch-gates --tier: 350 changed lines, under 3000, no path-derived mandate. Compared with the #33646 precedent (served-to-refused, so Clause-② yes (narrowing) with `!`) and #33769 (new exports, so yes (widening)): neither shape applies here.", "line_budget": "+336 / -14 over 4 files (numstat vs origin/main dfb8ed3570): changeset +14/-0; protocol-meta-item-reads.ts +71/-8; objectql package-scoped-exact-qualifier.test.ts +85/-0; runtime meta-disabled-holder-artifact-door.test.ts +166/-6. No skills/** touched; under the 3000-line threshold.", "files_changed": [ ".changeset/34040-exact-read-service-copy.md", "packages/metadata-protocol/src/protocol-meta-item-reads.ts", "packages/objectql/src/package-scoped-exact-qualifier.test.ts", "packages/runtime/src/domains/meta-disabled-holder-artifact-door.test.ts" ], "deviations": [ "Full objectql/rest/runtime suites were NOT rerun at 5783d98cf4 (an intermediate merge head). They ran green at 9ea243ee9a and again at the final head 32a489c698. Only the final head is cited as current.", "Local merge-before-PR: main merged twice (86350e12 after PR #34036 landed, then dfb8ed3570). Merge commits carry the default message and no trailer pair. The pre-push check:commit-card-trailers passed on every push.", "The objectql enumeration pin was placed in package-scoped-exact-qualifier.test.ts, the exact-qualifier shared harness, as a top-level describe after the #32069 one, away from PR #33995's hunks at the end of that file. It was not placed in a new card-named file. The claim allows either.", "The step-3 package-slot read (getPackageScopedItem after a decline) goes beyond the order's literal step-2-only route. It is within 'fall through to the registry's package slot'. It was added because getItem's bare-slot-first tier made the fix itself registration-order dependent at the first-registered holder's address (ablation B)." ], "mcp_calls": "0", "api_writes": "2: POST repository_dispatch to objectstack-ai/objectstack via scripts/pm/fleet-write/dispatch.mjs (pr_create, created PR #34241, read back 10283 bytes identical); POST issue comment on #34040 via scripts/pm/post-stamped.mjs (this report). git push is not counted.", "open_questions": [ { "question": "Should `GET /meta/doc/NAME?package=X` answer 404 when X ships no doc of NAME but another package Y does? Today it answers Y's doc (the registry's getItem prefer-local fallback to the first composite), before and after this PR. The card text says 'X's doc or 404, never another holder's'.", "options": [ "A: keep it (this PR). Business need: no measured caller reads ?package=X for a doc X does not ship; the Console docs reader (#34070) links only to holders it got as candidates. Long-term: leaves a prefer-local fallback on an exact address, which ADR-0150 D3/D5 does not bless. AI-error axis: an author who mistypes the package gets another package's doc silently. Startup scope: zero cost.", "B: answer 404 when X holds no item of the name, for the outside family (doc, view, translation, ...). Business need: same measured callers are unaffected (they address holders). Long-term: makes ?package= exact for every type, matching the covered types' qualifier. AI-error axis: a wrong package fails loudly, which is better. Startup scope: small code (step 3 skips getItem when another package's copy was declined and X holds nothing), but it is a 200-to-404 narrowing: Clause-② yes (narrowing), `!`, BREAKING banner, ADR-0087 marker, dogfood battery, and a claim amendment." ], "recommendation": "B as its own card, because it is the contract the card states and it closes a silent wrong answer; but it is a declared narrowing the current claim (Clause-② no) cannot carry, so it should not be folded into #34241." } ], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: public door GET /api/v1/meta/doc/NAME and /published (dispatcher and REST), measured on the composed artifact rig (MetadataPlugin artifact door + AppPlugin), both registration orders, origin/main 86350e12 · evidence: two enabled packages ship doc 'shared_doc'; with a stamp-less bare registry entry, or a hydrated package-less row (stored sys_metadata row + its sys_metadata-stamped bare entry), PR #34036's bare refusal is exempted ('the environment's own item answers first') but the layers serve the MetadataService copy of the holder registered last ('beta doc' when beta last, 'alpha doc' when alpha last); /layers reports overlay 'environment doc' over effective = that holder. A registration-order pick on a bare address (ADR-0150 red line 2). Pinned as measured, unresolved in meta-disabled-holder-artifact-door.test.ts; TSDoc corrected. Seam: runtime:readMetaItem step 2 (protocol-meta-item-reads.ts) after refuseAmbiguousBareDocRead / registry:readBareDoc exemption · dedupe words: 'bare doc read package-less entry registration order', 'hydrated doc row two holders', 'readBareDoc exemption service copy'", "carrier: none · noted, not filed: /layers?package=X and readCodeLayerForCarryForward also call readItemFromMetadataService(type, name, X) (protocol-meta-layered-reads.ts, protocol-discovery-and-bases.ts) and may show the same step-2 shape for the outside family; outside this card's file surface, not measured." ], "loose_ends": [ "Item 4: the bare doc read beside two holders plus a package-less registry entry serves a registration-order pick (first out_of_scope_findings entry); behaviour change owed, not folded.", "Open question cell C (200 another holder's doc at ?package=X when X ships none): narrowing card if decided B." ] }fix(objectql)!: a bare doc read refuses a name two enabled packages h…
feat(console): the docs reader lists the candidate packages when a do…