Skip to content

fix(metadata-protocol)!: the read naming no bundle member addresses the canonical member alone, as ?member=en-US and /published do - #34910

Merged
objectstack-fleet[bot] merged 16 commits into
mainfrom
claude/issue-34682-bundle-member-selector
Nov 19, 2026
Merged

objectstack-fleet[bot] merged 16 commits into
mainfrom
claude/issue-34682-bundle-member-selector

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #34682

Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — no page under skills/** or content/docs/** teaches the read naming no member of a bundle that has no canonical member; content/docs/references prints the selector sentence this change now follows, and the ADR-0146 paragraph of skills/objectstack-platform/SKILL.md names members only at a base or a package address. No taught sentence moves.

维护者速读

  • 改了什么:邮件模板这类“分成员”的元数据,按名字读且不指定成员时,现在只读规范成员 en-US;如果这个模板根本没有 en-US,普通读、/layers、执行读都答 404,和 ?member=en-US、/published 一致。
  • 为什么改:规范写明“不指定成员 = 规范成员,写出 en-US 是同一个请求”,但旧代码对没有 en-US 的模板会悄悄返回另一种语言(如 fr-FR),同一请求两种写法得到 200 和 404;只存了 fr-FR 行的模板甚至在重启前后答案不同。
  • 风险与回滚:只影响“没有 en-US 成员的邮件模板,不带 ?member= 读”这一种请求,由 200 变 404;邮件发送走列表读,不受影响;Studio 列表按行带 ?member= 打开,不受影响。回滚即 revert 本 PR。
  • 先看:packages/metadata-protocol/src/protocol-meta-item-reads.ts(成员判断那一行)、packages/metadata-protocol/src/protocol-meta-layered-reads.ts(删掉的无成员回退)、packages/spec/src/migrations/entries/semantic/18.bundle-without-canonical-member-bare-read-absent.ts(升级说明)。
  • 两分钟验证:pnpm --filter @objectstack/runtime exec vitest run src/domains/meta-bundle-member-one-request.test.ts,预期 1 个测试通过。
  • 需要你做的:无,席位落地(这次由 200 变 404 已按收窄申报并补 ADR-0087 登记,契约审查档 L2 由席位安排)。

What changes

The governing text is the member selector's declared contract, BUNDLE_MEMBER_SELECTOR_DESCRIPTION in packages/spec/src/api/protocol.zod.ts, which every by-name request's member carries:

"Absent, the canonical member (en-US for email_template), which is what a bare-name read answers; naming the canonical value is the same request. [...] A well-formed member with nothing stored or shipped answers as that door answers an absent item."

The two pairs the card names are both this one request. Measured on origin/main d947a93, through HttpDispatcher.dispatch on a booted kernel, for a bundle that ships or stores no en-US member:

request main this PR
A ships fr-FR only: plain read 200, the fr-FR member 404 RESOURCE_NOT_FOUND
same: ?member=en-US 404 RESOURCE_NOT_FOUND 404 RESOURCE_NOT_FOUND
same: /published 404 RESOURCE_NOT_FOUND 404 RESOURCE_NOT_FOUND
same: /layers / /layers?member=en-US 200 fr-FR / 404 404 / 404
same: execution read / with en-US the fr-FR item / null null / null
same, ?package=A naming no member (also with a dependent's en-US row stored) 200 fr-FR 404 RESOURCE_NOT_FOUND
?package=A naming no member, A ships fr-FR only and a dependent or a disabled holder ships en-US (and the bare read re-addressed to A beside a disabled holder) 200 fr-FR 404 RESOURCE_NOT_FOUND
canonical member stored over a package that ships only fr-FR: /layers naming no member, code the fr-FR body null (status and effective unchanged)
a name the environment stores only in fr-FR, ?package=X naming no member, X a non-holder, after a restart 409 RESOURCE_CONFLICT 404 RESOURCE_NOT_FOUND
package-less fr-FR row only: plain read 404 before a restart, 200 fr-FR after it 404 on both sides
same: ?member=en-US, /published, /layers 404 on both sides 404 on both sides

The producer of the stray member is the registry's bare-name read (SchemaRegistry.getItem with no member), which still answers a bundle with no canonical member with its first member. That is the registry's own documented contract for its other callers, so it is left alone. The by-name reads now ask for the member this request addresses:

  • readMetaItem (the plain read and the execution read): the code layers' answer is kept only when it is the addressed member, the canonical one when none was named. Before this PR that check ran only for a named member.
  • getMetaItemLayered: the same check on the registry answer, and the member-less artifact lookup added for the metadata-protocol: a shipped base holding only another bundle member answers the canonical member differently before and after a restart #34441 cell 1 case is removed. For a type with no members, that lookup repeated the artifact lookup above it with the same arguments, so removing it changes nothing for such a type.
  • registryMemberServedAt (the base-address step of readMetaItem): naming no member, it falls back to the base's own canonical member only. Before, it fell back to the base's first shipped member. CI on 3cb177c found this path (Test Core, packages/objectql/src/protocol-bundle-member-base-address.test.ts): ?package=BASE naming no member, and the read naming no package once a dependent stores en-US, still served the base's fr-FR.
  • exactQualifierItem (protocol-exact-qualifier.ts, the exact-address step both reads end in): when the item in hand is another package's, it is replaced only by the admitted holder's item at the addressed member, the canonical one when none is named. Before, it asked the holder with the raw selector, which answered its first member, so ?package=X naming no member served X's fr-FR whenever another package (a dependent, or a disabled holder the bare read re-addresses past) shipped en-US. The L2 review on 538121f found this path (S1).
  • admitExactQualifier: the environment's item that decides whether ?package=X is refused is asked at the addressed member, the canonical one when none is named. Before, a name the environment stores only in fr-FR was refused 409 (not-held-by-qualifier, naming the environment) at any non-holder address once a restart hydrated the row, while ?member=en-US answered 404 (L2 S4).
  • resolveBundleMemberSelector's docblock states the canonical-member rule. The orphan-report comment in the layered read is updated to match.
  • One ADR-0087 semantic entry, packages/spec/src/migrations/entries/semantic/18.bundle-without-canonical-member-bare-read-absent.ts, registers the narrowing. It follows the shape of 18.shipped-base-dependent-canonical-row-not-published.ts. The registry is generated from it (gen:migration-registry, gitignored output), and the changeset carries adr-0087: registered bundle-without-canonical-member-bare-read-absent with a BREAKING banner. No key, stored shape or export moves.

Also moved (L2 S3 b): a type with no members, /layers?package=X beside a disabled sole holder: code goes from the disabled holder's artifact to null.

Unchanged in status and served body: a bundle that ships or stores en-US, and every named member. The moves listed above are the exceptions. /published is unchanged. It takes no selector and already read the canonical member.

Narrowing: this narrows what a caller receives. One served answer becomes 404: the read naming no member of a bundle with no canonical member. The seat ruled the (narrowing) arm (L1 rework round 1; revised claim 6953428610), following PR #34644. So the title takes !, and the changeset takes the BREAKING banner and the ADR-0087 registration above. The entry names three arrangements: no layer holds the canonical member; a dependent stores the canonical member over a base that ships only another; and ?package=X where X ships no canonical member but another package does, including the disabled-holder re-address. The sibling entry 18.shipped-base-dependent-canonical-row-not-published now points at it. The 18.6.0 release notes stated two answers this change reverses; this PR's changeset quotes both (/layers naming no member no longer answers A's fr-FR with 200; the plain read is no longer "not moved"). A contract-review-tier L2 is owed for the narrowing and the packages/spec/src/** path.

Tests

  • New packages/runtime/src/domains/meta-bundle-member-one-request.test.ts boots a kernel on a file database and reads before and after a restart.
    • Pair 2: ?member=en-US equals the read naming no member, including the whole served envelope, on the plain read, /layers and the execution read. Covered for a shipped fr-FR-only bundle and a stored fr-FR-only row (both 404/null), and for a shipped en-US bundle and a stored en-US row (both served).
    • Pair 1: /published and the plain read give the same answer for those no-canonical bundles (404) and for a stored canonical row (200, same document). /published?member=en-US is a 400 VALIDATION_ERROR.
    • CONTROL, a type with no members (dashboard): ?member=en-US is refused 400 VALIDATION_ERROR on the plain read, /layers and the execution read. A stored row is served alike by the plain read and /published.
    • Every refusal asserts status and code.
  • meta-disabled-holder-served-stack.test.ts cell 1: the CONTROL (no D row) moves to the canonical answer (plain read, /layers 404, execution read null). The comment above S1 that said no shipped CONTROL could be pinned is corrected.
  • protocol.lookup-artifact-item-call-sites.test.ts: the removed getMetaItemLayered site leaves the ledger (26 to 25 sites).
  • packages/objectql/src/protocol-bundle-member-base-address.test.ts: the no-canonical case now pins 404 on the read naming no member, at the base's address and naming no package, the same as ?member=en-US. The base's fr-FR, named, is still the base's, and the dependent's en-US is still served at its own address. The new runtime pin also compares ?package=A with and without ?member=en-US for the shipped bundles.
  • packages/objectql/src/package-scoped-exact-qualifier.test.ts: the dependent-addition leg flips (naming no member at the dependent is absent, as naming en-US is), and a new describe pins the base-address mirror at ?package=A and through the re-address, on the plain and the layered read. The runtime pin gains a preserved ?member=fr-FR leg per name.
  • Runtime pin: mixed_fr_mail (the /layers code layer, before and after a restart) and the ?package=A non-holder leg for row_fr_mail. objectql package-scoped-exact-qualifier.test.ts: the N6 leg (two unrelated holders in different non-canonical members) and the disabled-sole-holder doc /layers leg.
  • Not changed, same class, left for a follow-up: the _env address admission (admitEnvironmentQualifier) and the caller-arm resolver still ask with the raw selector; no observable split was measured.

Acceptance notes

  • Not the member selector's: /published answers 404 for an item that only code ships, bundled or not. The plain read serves 200 for the same item. The new test pins this for dashboard and email_template alike, and the existing SPECIMENS pin in meta-disabled-holder-served-stack.test.ts already holds it for a code-only agent and dashboard. So /published and the plain read give one answer wherever a published document exists or none does, which is the scope of the card's pair 1. This is an observation and was not filed.
  • The registry's bare-name read (registry-items.ts) keeps answering a bundle with no canonical member with its first member, for its other callers. No by-name door takes that answer now. Changing the registry would widen the change to @objectstack/objectql, and nothing here asks for it.
  • The new pin is a new file, as the dispatch named it. The selector's existing harness, protocol.bundle-member-selector.test.ts, is a pure unit test with no doors, and the /published door lives in packages/runtime.

Verification

L2 round 2, final head e90a02e (origin/main c809deb merged), under the shared verify lock: metadata-protocol 357 passed | 9 skipped files, 23207 passed | 45 skipped tests, typecheck exit 0; objectql exact-qualifier and base-address files 468 tests passed, check:test-typecheck OK; runtime 6 meta-* files 608 passed, typecheck OK; cli guidance 3 passed; check-adr-0087-registration exit 0; dispatch-gates --ran 96 accounted for, 0 NOT-MEASURED; overlap-check clean. Ablation 5 (S4): ?package=A naming no member threw 409 against null at en-US under the mutation; restored clean. Dogfood battery on e90a02e: command exit 0, 482 passed | 3 skipped files, 4092 passed | 68 skipped tests.

Round 1, on head ce8d6e7 (after merging origin/main e8a78c4, 18.6.0; the released 34441 changeset stays deleted), under the shared verify lock:

Dogfood battery on ce8d6e7 (the `(narrowing)` arm)
pnpm --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test
 Test Files  482 passed | 3 skipped (485)
      Tests  4092 passed | 68 skipped (4160)
os-verify-lock: VERDICT command-exit 0 (held 2643s)
Suites, typechecks, gates on ce8d6e7
metadata-protocol vitest: 356 passed | 9 skipped files; 23180 passed | 45 skipped tests; typecheck exit 0
objectql vitest: 615 files, 13884 tests passed; check:test-typecheck OK
runtime (6 meta-* domain files): 608 tests passed; typecheck OK
spec test: 855 files, 27364 passed | 1 todo
cli test/migrate-meta-engine-guidance.test.ts: 3 passed
check-adr-0087-registration: exit 0 · check:type-check-debt: exit 0
dispatch-gates --ran: 96 accounted for, 0 NOT-MEASURED
overlap-check on ce8d6e76ff: origin/main merges cleanly, 0 PR heads share a file, VERDICT clean exit 0
Ablation 4 (S1): exactQualifierItem reverted to the raw selector
mutation landed (blob 6c39d74ce21c -> 34c37cc94782); dist marker present in 1 built file
objectql package-scoped-exact-qualifier.test.ts: 4 failed | 452 passed
restored: blob == HEAD; rebuilt; tree clean; the file passes again

Earlier rounds, superseded by the readings above:

Rework round 1, on head 90b5cde:

Dogfood battery, once on the final head (the `(narrowing)` arm)
pnpm --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test
 Test Files  479 passed | 3 skipped (482)
      Tests  4072 passed | 68 skipped (4140)
os-verify-lock: VERDICT exit 0 for this part (held 2577s; check:type-check-debt ran first in the same hold, exit 0)

An earlier battery on 3cb177c gave the same counts. That head is superseded.

Suites, typechecks, ADR-0087 entry, cli guidance
pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2
 Test Files  349 passed | 9 skipped (358)
      Tests  23100 passed | 45 skipped (23145)
pnpm --filter @objectstack/metadata-protocol typecheck   (exit 0)
pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2
 Test Files  607 passed (607)
      Tests  13661 passed (13661)
pnpm --filter @objectstack/objectql typecheck   check:test-typecheck: OK
pnpm --filter @objectstack/runtime exec vitest run (6 meta-* domain files incl. the new pin)
 Test Files  6 passed (6)
      Tests  608 passed (608)
pnpm --filter @objectstack/runtime typecheck   check:test-typecheck: OK
pnpm --filter @objectstack/cli exec vitest run test/migrate-meta-engine-guidance.test.ts
 Test Files  1 passed (1)
      Tests  3 passed (3)
node scripts/check-adr-0087-registration.mjs --base origin/main
check-adr-0087-registration: 1 declared-breaking changeset(s), each carrying an ADR-0087 disposition.
pnpm --filter @objectstack/lint exec vitest run src/validate-expressions.flow-null-guards.test.ts
 Test Files  1 passed (1)   (the CI Test Core 5/10 red on 3cb177c571 was a 5000 ms timeout in this untouched lint file)
os-verify-lock: VERDICT command-exit 0
pnpm --filter @objectstack/spec test && typecheck (on 3cb177c571; spec unchanged since except one entry string)
 Test Files  848 passed (848)
pnpm --filter @objectstack/spec check:generated   All 14 generated artifacts are up to date
Ablation 3: the base-address canonical check removed
ablation-replace: ok mutation landed: anchor 1 -> 0, blob ed838c19406e -> 5f49b6cdbaa5
dist/: marker present in 2 built files
objectql protocol-bundle-member-base-address.test.ts: 1 failed  -- ?package=BASE naming no member [Base late FR, fr-FR] vs 404
runtime meta-bundle-member-one-request.test.ts: passed (this path needs a dependent's row; the objectql pin carries it)
ablation-replace: ok restored: blob == HEAD (ed838c19406e)
restore leg: rebuilt; dist/: marker absent from all 24 built files; tree clean
Derived gate families on 90b5cde, 95 of 95
95 derived, 95 run, each exit 0, recorded with exit codes (check:type-check-debt first queued out behind a sibling's lock hold, exit 3; rerun inside the dogfood hold, exit 0)
dispatch-gates --ran: 95 accounted for, 0 NOT-MEASURED (a DERIVED zero)
overlap-check on 90b5cdeb4f: origin/main merges cleanly; VERDICT clean exit 0

Round 0, on head af88513 (after merging origin/main fc5913e). Later commits add the spec entry, the changeset, the base-address fix and pins, so these are superseded by the readings above:

metadata-protocol suite and typecheck; runtime pins and typecheck
pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2
 Test Files  349 passed | 9 skipped (358)
      Tests  23100 passed | 45 skipped (23145)
pnpm --filter @objectstack/metadata-protocol typecheck   (exit 0)
pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 (6 meta-* domain files incl. the new pin)
 Test Files  6 passed (6)
      Tests  608 passed (608)
pnpm --filter @objectstack/runtime typecheck
check:test-typecheck: OK
os-verify-lock: VERDICT command-exit 0
Ablation 1: the item-read check reverted to its main form (member, not wantedMember)
ablation-replace: ok mutation landed: anchor 1 -> 0, blob 4f525450aa8e -> 6fd49b7a4ee5
dist/: marker present in 2 built files
 Test Files  1 failed (1)   -- read naming no member [200, ship fr] vs ?member=en-US [404]
ablation-replace: ok restored: blob == HEAD (4f525450aa8e)
restore leg: rebuilt; dist/: marker absent from all 24 built files; tree clean; pin 1 passed
Ablation 2: the layered check reverted to its main form
ablation-replace: ok mutation landed: anchor 1 -> 0, blob b9443f7d2d31 -> 011d7e9620de
dist/: marker present in 2 built files
 Test Files  1 failed (1)   -- /layers naming no member [200, ship fr] vs ?member=en-US [404]
ablation-replace: ok restored: blob == HEAD (b9443f7d2d31)
restore leg: rebuilt; dist/: marker absent from all 24 built files; tree clean
Round 0 derived gate families (dispatch-gates --commands), 71 of 71
71 derived, 71 run, each exit 0, recorded with exit codes
dispatch-gates --ran: 71 accounted for, 0 NOT-MEASURED (a DERIVED zero)
overlap-check: origin/main merges cleanly; #34850 merges cleanly; VERDICT clean exit 0

Not run locally (CI owns it): test:repo, pnpm lint, the full check:* set.


Generated by Claude Code

…ical member alone, as ?member=en-US and /published do

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MmDsS4GoHCgYwA2uv3n3C
…s one request on every by-name door

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MmDsS4GoHCgYwA2uv3n3C
…s ?member=en-US answers it

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MmDsS4GoHCgYwA2uv3n3C
…r; type the new pin's query

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MmDsS4GoHCgYwA2uv3n3C
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/metadata-protocol, @objectstack/spec, touching 10 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/metadata-protocol/src/protocol-bundle-members.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/concepts/metadata-lifecycle.mdx (via getMetaItemLayered (symbol, a top-level function))
What this run could not see
  • 1 changed file(s) yielded no anchor (packages/metadata-protocol/src/protocol-bundle-members.ts) — pages documenting those are invisible to this run
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 175 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 1950f075460dfcda4dd7602c5c71e21385f37ed8 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 6c4433fb7326eeeac64a6c521c38834bbf4bc422 — the merge of head e90a02e17bd8440eb2fd23020c757837afb867c9 into base 1950f075460dfcda4dd7602c5c71e21385f37ed8, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 6c4433fb7326eeeac64a6c521c38834bbf4bc422 && git checkout 6c4433fb7326eeeac64a6c521c38834bbf4bc422
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 1950f075460dfcda4dd7602c5c71e21385f37ed8 e90a02e17bd8440eb2fd23020c757837afb867c9 && git checkout -B drift-repro 1950f075460dfcda4dd7602c5c71e21385f37ed8 && git merge --no-ff e90a02e17bd8440eb2fd23020c757837afb867c9

node scripts/docs-audit/affected-docs.mjs --json 1950f075460dfcda4dd7602c5c71e21385f37ed8

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 1950f075460dfcda4dd7602c5c71e21385f37ed8 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…mantic narrowing; changeset takes the (narrowing) arm

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MmDsS4GoHCgYwA2uv3n3C
@objectstack-fleet objectstack-fleet Bot changed the title fix(metadata-protocol): the read naming no bundle member addresses the canonical member alone, as ?member=en-US and /published do fix(metadata-protocol)!: the read naming no bundle member addresses the canonical member alone, as ?member=en-US and /published do Nov 17, 2026
…r of a no-canonical bundle as naming en-US does; entry and changeset name the ?package= address

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MmDsS4GoHCgYwA2uv3n3C
…canonical member alone

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MmDsS4GoHCgYwA2uv3n3C
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

席位核对 · L1 ACCEPT · Head-sha: 90b5cde · 2026-11-17T19:26Z

Card #34682, revised claim 6953428610 (reason 6953406266), dev reports 6953360228 and 6958479021. The seat read the diff itself.

Item Reading
Shape Base main, Fixes #34682, ! title. Line-leading in the body and the changeset: Clause-②: no (narrowing), Metadata-protocol: none, Skills-docs: none — …. 10 files (+360 −49). Producer changes only in packages/metadata-protocol/src/ (protocol-bundle-members.ts, protocol-meta-item-reads.ts, protocol-meta-layered-reads.ts, protocol-write-gates.ts). Pins in metadata-protocol, objectql and runtime. One ADR-0087 semantic entry.
Governing text The selector sentence in packages/spec/src/api/protocol.zod.ts (~399-403): absent means the canonical member, naming the canonical value is the same request, and a member with nothing stored or shipped answers as an absent item. The code now follows it.
Premise measured Holds (d947a93): with no member named the read answered 200 (fr-FR); ?member=en-US and /published answered 404. CI on 3cb177c then exposed a second producer, registryMemberServedAt, which fell back to the base's first shipped member. It now falls back only to the base's canonical member (the diff above).
Assertions Each pair answers alike (404 for a bundle with no canonical member, 200 with the same document where en-US is held), before and after a restart. ?package=A with and without ?member=en-US is pinned. CONTROL: a type with no members is unchanged (?member= → 400 VALIDATION_ERROR). Ablations 1–3 turn the pins red; restores proven.
Gates Dogfood battery on 90b5cde: VERDICT exit 0, 479 / 482 files, 4072 / 4140 tests, no failures. 95 derived families, all exit 0. check-adr-0087-registration exit 0. The cli migrate-meta-engine-guidance test passes (3 / 3). CI: 57 success. Test UI (9/16) failed on a 14-minute history-fetch timeout in checkout (the diff touches no ui/**) and was re-run once through the relay. Check Changeset is re-running.
Accepted deviations (1) packages/objectql/src/protocol-bundle-member-base-address.test.ts is outside the revised surface. It pinned the old answer of the second producer, so updating it in this PR is the same defect class. Accepted, and the surface is read as including it. (2) The PR body was patched by the dev through the relay: the seat's round-1 order asked for it, against os-dev.md:66. The seat owns that slip, and the body was read back identical. (3) The dogfood battery ran twice; the final-head run is the record.
Changeset @objectstack/metadata-protocol and @objectstack/spec patch, with a BREAKING banner, adr-0087: registered bundle-without-canonical-member-bare-read-absent, and a Migration line. Read against the diff: the moved reads, the unchanged ones (named member, canonical held, no-member types) and the loader note match the code.
Landing Not governed. Owed before the queue: a contract-review-tier L2 record (narrowing, plus the packages/spec/src/** path), and every check green on this head.

Contract-review-handoff: l2-review#3 — CONTRACT_REVIEW_TIER not taken in this seat; seat 4 routes contract reviews to the seated L2 seat by mailbox (2026-11-17T19:26Z) · head 90b5cde

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

Contract-review-claim: session_012MmDsS4GoHCgYwA2uv3n3C · head 90b5cde · 2026-11-17T20:10Z

The request to l2-review#3 (mailbox #34476) has waited about an hour with no answer, so this lane reviews at tier itself (contract-review.md (b)). The record is written by an isolated reviewer sub-agent at CONTRACT_REVIEW_TIER.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

Contract-review-claim: session_012MmDsS4GoHCgYwA2uv3n3C · head 90b5cde · 2026-11-17T22:30Z

Renewed: the 20:1x claim lapsed (2 hours, no record) while the reviewer sub-agent was stopped by a usage limit. It resumes now at CONTRACT_REVIEW_TIER.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

L2 round on head 90b5cde: S1 and S2 sent back, seat ruling on S1 · 2026-11-17T22:56Z

The seat's at-tier reviewer sub-agent read this head and found no must-fix and two should-fix. Its record is NOT posted as the record of this head: its transcript holds a synthetic usage-limit turn, which verify-review-tier.mjs refuses. The fresh at-tier record is rendered on the fixed head.

S1 (should-fix): the holder's first member still reaches both reads at an exact address. readMetaItem and getMetaItemLayered end an exact address in exactQualifierItem(…, member) (protocol-exact-qualifier.ts). When the item in hand is another package's, it is replaced by registry.getPackageScopedItem(type, name, holder, member) with the raw selector. Naming no member, that answers canonical-first, else the holder's first member. So, read from the tree and not run, at an exact address the read naming no member still differs from ?member=en-US whenever another package holds the canonical member. The base-address mirror and the re-addressed read move with it. packages/objectql/src/package-scoped-exact-qualifier.test.ts asserts the old answer on purpose.

Seat ruling on S1: exit (a).
Ruling-ref: the governing text is the selector sentence in packages/spec/src/api/protocol.zod.ts (~399-403): "Absent, the canonical member … which is what a bare-name read answers; naming the canonical value is the same request … a well-formed member with nothing stored or shipped answers as that door answers an absent item."
SKILL.md: spec and code disagree ⇒ align the code. This is the card's own defect at a third site, not a new product decision; the pin that asserts the old answer asserts the departure from that sentence, so it flips.

  • Hold the replacement to the addressed member in both reads.
  • Flip that pin's last leg.
  • Pin the base-address mirror (naming no member equals naming en-US, at the address and through the re-address).
  • Name the exact address in the ledger entry.

S2 (should-fix): the ledger entry names less than the diff moves. 18.bundle-without-canonical-member-bare-read-absent.ts quantifies over a name "that no layer ships or stores in its canonical member", but the diff also moves the read naming no member where a dependent stores the canonical member over a base that ships only another one. The sibling 18.shipped-base-dependent-canonical-row-not-published.ts (unshipped, same step) ends "The plain read, ?member=CANONICAL and the execution read do not move", which is now false. Fix: name the arrangement in the new entry, and correct the sibling's last sentence.

Pending changeset correction. .changeset/34441-shipped-base-canonical-member-one-answer.md (pending on main) states two answers this PR reverses (/layers naming no member "TO A's fr-FR (200)", and the plain read under "Not moved"). It is amended in this PR as a DELIBERATE CORRECTION of another PR's pending note (never skip-changeset). The seat's ACCEPT confirms each changed sentence.

Nits sent along: N1 (the layered comment on the removed lookup), N2 (one preserved-half leg per name at the doors), N3 (the /published mixed-holder guard: residue card if needed).

Contract-review-hold: session_012MmDsS4GoHCgYwA2uv3n3C · head 90b5cde · S1/S2 fix in progress · until the fixed head is pushed

…other package's item only with the holder's canonical member; ledger names every moved arrangement; pending #34441 note corrected

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MmDsS4GoHCgYwA2uv3n3C
…ndle-member-selector

# Conflicts:
#	.changeset/34441-shipped-base-canonical-member-one-answer.md
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

席位核对 · L1 delta ACCEPT · Head-sha: ce8d6e7 · 2026-11-19T02:54Z

The dev's delta report is 6998192069 on #34682. It covers the L2 round on 538121f (S1 exit (a), S2, N1, N2) and the merge of origin/main e8a78c4 (18.6.0).

Item Reading
S1 exit (a) exactQualifierItem replaces another package's item only through getPackageScopedItem(…, bundleMemberDiscriminator(type, member)), so a read naming no member asks for the canonical member. Ablation 4 (fix reverted): 4 of the new pins fail. Restored clean.
S2 18.bundle-without-canonical-member-bare-read-absent names the three arrangements. The sibling 18.shipped-base-dependent-canonical-row-not-published (released in 18.6.0) drops its "the plain read … do not move" sentence and points at the new entry. Whether to amend a released entry's text in this PR goes to the L2 record (the dev's deviation 3). check-adr-0087-registration, check:spec-changes and check:upgrade-guide are green.
18.6.0 The released 34441 changeset stays deleted and nothing edits it. This PR's own changeset quotes the two 18.6.0 statements this change reverses.
Gates CI on ce8d6e7: 58 success, 11 skipped, 0 failed. Mergeable clean. Locally: 96 of 96 gate families accounted for. Overlap-check clean, read before the push. The dev records one earlier push, 538121f, that went out under an overlap exit 1; the only overlap was the Version Packages PR on the since-released changeset.
Narrowing arm Dogfood battery on ce8d6e7: command exit 0, 482 test files passed and 3 skipped, 0 failed.
PR body The seat updated the body to match this head: the new exactQualifierItem bullet, the table row, the tests line, the narrowing paragraph and the final-round readings.
Owed A fresh contract-review-tier L2 record on this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

Contract-review-claim: session_012MmDsS4GoHCgYwA2uv3n3C · head ce8d6e7 · 2026-11-19T02:55Z

A fresh isolated reviewer sub-agent at CONTRACT_REVIEW_TIER renders the record.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ce8d6e76ff3500b36b3cfc63d243027817c0540f
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/18.bundle-without-canonical-member-bare-read-absent.ts, packages/spec/src/migrations/entries/semantic/18.shipped-base-dependent-canonical-row-not-published.ts + packages/metadata-protocol/src/protocol-exact-qualifier.ts, packages/metadata-protocol/src/protocol-meta-item-reads.ts, packages/metadata-protocol/src/protocol-meta-layered-reads.ts, packages/metadata-protocol/src/protocol-bundle-members.ts, packages/metadata-protocol/src/protocol-write-gates.ts, .changeset/34682-bundle-member-selector.md
Security-touching: no

Read for this record: card #34682 (body and all 8 comments), PR #34910 (body, file list, comments, the net diff origin/main...ce8d6e76ff), the check-runs on the head, and the cited code at the head with git show (no checkout, nothing built or run). The remainder of the diff (the five test files) is the lane seat's ACCEPT at TIER_DEFAULT; the tests were read to learn which arrangements are pinned, not reviewed.

Governing text: BUNDLE_MEMBER_SELECTOR_DESCRIPTION (packages/spec/src/api/protocol.zod.ts): "Absent, the canonical member (en-US for email_template), which is what a bare-name read answers; naming the canonical value is the same request. […] A well-formed member with nothing stored or shipped answers as that door answers an absent item." Rulings: claim revision 6953406266 (the (narrowing) arm), seat ruling on S1 exit (a) (PR comment 6963435977).

Earlier L2 round (S1, S2, N1, N2), state on this head:

  • S1: closed. exactQualifierItem asks the admitted holder with bundleMemberDiscriminator(request.type, member), so a read naming no member asks for the canonical member; a type with no members still passes undefined. All five call sites (plain read: the preview draft, the strict draft, the code step; layered read: code, overlay, draft) were read: three compare the result to the item in hand, so the move changes none of them; the two code-step sites are the fix.
  • S2: closed. The new entry names three arrangements, the exact address and the disabled-holder re-address included; the sibling's false sentence is corrected.
  • N1: closed. The layered comment at the removed lookup states the present rule only.
  • N2: closed. The runtime pin has a preserved ?member=fr-FR leg per name.
  • N3 (the /published mixed-holder guard) was sent as a residue-card option and is not part of this head; it stays the seat's.

① Derived judgments

  • readMetaItem (plain read, execution read): the code layers' answer is kept only at the addressed member, the canonical one when none is named (wantedMember !== undefined where main tested member !== undefined). Right. It is the selector sentence. Every source the code step can take was read: the artifact lookup (asked at wantedMember), the package-scoped resolver's answer, the package slot, getItem and its plural retry all pass through the one filter; the service copy and the stored row were already read at the wanted member.
  • getMetaItemLayered: the same filter (namedMemberOnly), and the member-less artifact lookup of fix(metadata-protocol)!: a dependent's bundle-member row moves no bare read across a restart, and a row-held base's own member is the base's #34644 removed. Right for a bundled type: that lookup was the producer of "another member as the code layer". /layers naming no member now equals /layers?member=en-US. This reverses a TO that 18.6.0 published, and the changeset says so, quoting it. See S3 for what the removal also moves.
  • registryMemberServedAt: naming no member, the fallback is the base's own canonical member, never its first shipped member. Right.
  • exactQualifierItem: another package's item is replaced by the holder's item at the addressed member. Right (S1).
  • Public surface. No zod schema, export, key, stored shape or route moves. packages/spec gains one semantic entry id (bundle-without-canonical-member-bare-read-absent) in step 18 and one changed surface string on a sibling entry; both project into the generated registry, spec-changes.json and the upgrade guide at publish. The accept-set of every request is unchanged (a selector on a type with no members is still 400); what moves is served answers: 200 to 404 (execution: item to null) for a read naming no member at an address that holds no canonical member.
  • Unchanged, as declared: a named member (the changed conditions are equal when a member is named), /published, and a bundle whose canonical member is shipped. Two exceptions to "exactly as before" are S3.
  • Gate verdicts on the head: 60 check-runs success, 13 skipped, none failed or pending. Check Changeset, Lint · CI, release & engine gates, Type Check · workspace, Test Core (10 shards), Dogfood Regression Gate, Spec property liveness and Governed Surface Queue Guard are among the successes.

② Semver level

Right. @objectstack/metadata-protocol: patch and @objectstack/spec: patch: Metadata-protocol: none is correct (nothing a metadata author can write moves), and AGENTS.md Post-Task 3 gives none a patch and has a breaking non-protocol change "ship patch and keep its BREAKING banner and ADR-0087 disposition". Both packages are moved by the diff; objectql and runtime change in tests only and publish nothing. Clause-②: no (narrowing) is line-initial in the PR body and the changeset, the title carries !, the changeset has the BREAKING banner, a Migration line and exactly one marker (adr-0087: registered bundle-without-canonical-member-bare-read-absent), and the id matches the entry. The two quoted 18.6.0 statements match packages/metadata-protocol/CHANGELOG.md on main word for word.

③ Boundary flags

  • Dev open question (round 0): does the change take the (narrowing) arm? Answered by the seat (6953406266, option A), and I agree: a public read moves from 200 to 404, the same class PR fix(metadata-protocol)!: a dependent's bundle-member row moves no bare read across a restart, and a row-held base's own member is the base's #34644 registered.
  • Dev deviation 3 / the question put to this review: is amending the released sibling entry right? Yes, in this PR.
    • A semantic entry is not a release note. It is a structured TODO of the major's step (MIGRATIONS_BY_MAJOR[18].semantic), handed whole to an upgrader crossing into 18 at whatever 18.x is current. Left alone, the sibling would tell that upgrader "the plain read … and the execution read do not move" beside a new entry that moves them: two entries of one step contradicting each other.
    • No rule forbids it. AGENTS.md makes content/docs/releases/ and packages/*/CHANGELOG.md release-owned, and neither is touched: the released 34441 changeset stays deleted and the 18.6.0 CHANGELOG text stands. packages/spec/src/migrations/entries/README.md forbids editing registry.ts and regenerating the projections, not editing an entry, and its third rule expects "two cards editing the same entry". ADR-0087's "a superseded decision is still a record" (Prime Directive 13) is about ADR decisions; the decision of metadata-protocol: a shipped base holding only another bundle member answers the canonical member differently before and after a restart #34441 (the /published narrowing, id, replacement, reason, acceptance criterion) is untouched.
    • The record of what 18.6.0 said is kept where it belongs: this PR's changeset quotes both reversed statements, and the amended sentence itself says what was served before.
    • Precedent: 17.storage-service-list-retired.ts was amended in place. It kept its original paragraph and added a dated AMENDED note; here the sentence is replaced. See N4.
  • Dev deviation: commit 538121f pushed under an overlap-check exit 1. Process, the lane seat's; the head reviewed here was pushed after a clean check and the checks on it are green.
  • Dev out-of-scope observation: the registry's bare-name read still answers a bundle with no canonical member with its first member. Accepted as the registry's documented contract, but the PR's claim that the answer "reaches no door" does not hold at one more site: S4.
  • Dev out-of-scope observation: /published answers 404 for an item only code ships. Agreed: not the member selector's, pinned as the baseline.
  • SQL push-down. No finding. The diff adds no query, no id materialisation and no in-app join; every changed line filters an item already in hand or passes a member to an existing registry read.

④ Design judgment

18.bundle-without-canonical-member-bare-read-absent.ts (hits). Holds against the code. Arrangement (1): the wanted-member filter in both reads, before and after a restart. Arrangement (2): naming no package, the resolver's first-member answer is dropped by the filter, and after a restart the dependent's hydrated canonical row is refused by registryMemberServedAt (the base ships no canonical member). Arrangement (3): exactQualifierItem. "?member=CANONICAL, a named non-canonical member and /published do not move" is true of the tree. replacement, reason and acceptanceCriteria agree with the selector sentence, and "no relevance question" is right (the move turns on what holders ship and store). The entry does not name the /layers code-layer move of S3.

18.shipped-base-dependent-canonical-row-not-published.ts (hits). The amended sentence is true of the tree, and the rest of the entry still holds (?package=DEPENDENT&member=CANONICAL serves the row). Amending it here is right (③).

protocol-meta-item-reads.ts. Agrees with the contract. The comment block now says what the code does.

protocol-meta-layered-reads.ts. Agrees for a bundled type. The orphan guard comment is accurate: with the code layer the canonical member's alone, isWantedMember(code) holds by construction and the guard is kept.

protocol-write-gates.ts. Agrees. N5.

protocol-bundle-members.ts. The new docblock sentence "so it reaches no door" is not yet true: S4.

protocol-exact-qualifier.ts. The changed hunk agrees (S1 closed). The unchanged admission step in the same file still departs from the sentence: S4.

Changeset. The banner, the three arrangements, the restart sentence and the migration line agree with the code. One sentence overstates: S3.

S3 (should-fix) — the declaration says "served exactly as before" for two answers the diff moves. Read from the tree, not run.

  • (a) The changeset says "A bundle that ships or stores its canonical member is served exactly as before." Take a bundle whose canonical member is stored (a package-less or a pair's en-US row) over a package that ships only fr-FR. On main, /layers naming no member reports code = the package's fr-FR body: before hydration getItem naming no member answers its first tier entry, and after it the removed lookup did. On this head code is null, as /layers?member=en-US already answered. Status and effective do not move, but code does, and so does whatever the envelope derives from code ?? overlay. The new answer is the right one; it is not declared, and neither the changeset nor the entry names it. No pin in the diff holds this arrangement at the doors (the runtime pin has shipped-both and stored-both names, not shipped-fr-FR with a stored en-US).
  • (b) The changeset says "so is every type with no members", and the PR body says removing the lookup "changes nothing for such a type". The removed lookup ran for every type when code was still null and no member was named. For a type the exact qualifier does not judge (a doc), at ?package=X where X holds nothing of the name and the only holder is a disabled package, registryAnswerAtAddress answers nothing (it names no disabled holder), and on main the removed lookup then put that disabled package's artifact back as the code layer of /layers?package=X. On this head it is null. Again the new answer is the right one (ruling 6917064203; a disabled package holds no name), and I am less sure of this one than of (a): whether the artifact lookup reaches a disabled package's slot in a live stack is not something I could confirm by reading.
  • Fix: state both in the changeset (and (a) in the entry's surface, since a /layers caller is its reader), or pin that they do not move. A pin of (a) at the doors is worth having either way.

S4 (should-fix) — the registry's first-member answer still reaches a door at an address that holds nothing: admitExactQualifier (protocol-exact-qualifier.ts). Read from the tree, not run.

  • The step that decides whether ?package=X is refused asks registry.getEnvironmentScopedItem(request.type, request.name, request.member) with the raw selector. Naming no member, pickBundleMember answers the canonical member, else the FIRST entry.
  • Arrangement: the environment holds a bundled name only as a non-canonical item (the pin's own row_fr_mail: a package-less fr-FR row, in the registry once hydrated), no package holds the name, and the read names any package X. Naming no member, the environment's fr-FR counts as a candidate and the read is refused 409 RESOURCE_CONFLICT (not-held-by-qualifier, naming the environment). With ?member=en-US the environment item is absent, no candidate exists, the address is admitted with no holder and the read answers 404. One request, two answers, and the 409 appears only after a restart. Both reads (readMetaItem, getMetaItemLayered) call this step with the same selector.
  • This is the card's defect at a fourth site, the same class the seat ruled on for S1, and it contradicts two sentences this PR writes: the docblock in protocol-bundle-members.ts ("so it reaches no door") and the changeset's "404 on every door naming no member" for the stored-fr-FR-only bundle. main behaves the same; the diff does not introduce it.
  • Exits: (a) ask the environment item at bundleMemberDiscriminator(request.type, request.member) and pin ?package=NON-HOLDER for a stored non-canonical-only name, naming no member equal to naming en-US, after a restart; or (b) a seat ruling that carries it to a follow-up card, with the docblock sentence narrowed to what is true.

Nits:

  • N4 (nit) — the sibling entry replaces its last sentence without marking the amendment. The one precedent (17.storage-service-list-retired.ts) kept the original and added a dated AMENDED note. Nothing is lost here (the changeset quotes the 18.6.0 text and the new sentence states the old answer), so this is an accepted deviation; a later touch of the file can add the note to its leading comment. Also "now answer 404 too" covers the execution read loosely: it answers null.
  • N5 (nit) — registryMemberServedAt: after this change the fallback for a read naming no member can only return the base's canonical artifact, which the artifact lookup at the wanted member has already answered before the registry step is reached, so I found no path on which it still fires; and naming en-US returns at the line above it. Two spellings of one request take two branches there. No observable effect found; a follow-up can fold them.
  • N6 (nit) — not pinned: a read naming no member where two unrelated packages hold a name in different non-canonical members. The package-scoped resolver is asked with the raw selector on the plain and the layered read; I did not establish whether its refusal there equals the ?member=en-US answer. Worth one leg in the follow-up of S4.

No must-fix. S3 and S4 are open on this head and each earns a delta review of its fix.

Implemented-by: claude/issue-34682-bundle-member-selector
Reviewed-by: session_012MmDsS4GoHCgYwA2uv3n3C

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

席位裁决 · S3 / S4 of record 6998434502 · Head-sha: ce8d6e7 · 2026-11-19T03:06Z

  • S3: declare both moves. The changeset drops "served exactly as before" for the two arrangements and names both: (a) /layers naming no member, canonical member stored over a package that ships only another member, code goes from that member's body to null; (b) a type with no members at /layers?package=X where the only holder is disabled, code goes from the disabled holder's artifact to null. (a) also goes into the entry's surface. Pin (a) at the doors. Pin (b) too if the harness reaches a disabled sole holder; if it does not, the report says so.
  • S4: exit (a). admitExactQualifier asks the environment item at bundleMemberDiscriminator(request.type, request.member). Pin ?package=NON-HOLDER for a name stored only as a non-canonical member: naming no member equals naming en-US after a restart, on the plain and the layered read. The card's defect at a fourth site, on the same ruling as S1. The move is from a 409 refusal to the 404 that ?member=en-US already answers, so no new narrowing is declared; the changeset names it beside the other moves. If the fix breaks pins beyond this arrangement, the dev stops and reports, and the seat rules exit (b).
  • Nits N4–N6: accepted deviations. N6 goes beside S4's pin as one leg if it costs no more than a test case.

A delta contract review on the fixed head is owed.

…m at the addressed member; pins for the stored-canonical /layers code layer, the non-holder address and a disabled sole holder

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MmDsS4GoHCgYwA2uv3n3C
…nd the non-holder address move

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MmDsS4GoHCgYwA2uv3n3C
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

席位核对 · L1 delta ACCEPT · Head-sha: e90a02e · 2026-11-19T07:09Z

The dev's delta report is 7002321737 on #34682. It closes S3 and S4 (exit a) of record 6998434502, per the seat's ruling 6998444934, adds N6, and merges origin/main c809deb.

Item Reading
S4 admitExactQualifier asks getEnvironmentScopedItem at bundleMemberDiscriminator(type, member). Ablation 5: with the fix reverted, ?package=A naming no member threw 409, against null at en-US. Restored clean. No other pin broke.
S3 (a) mixed_fr_mail is pinned at the doors before and after a restart, and named in the entry surface and the changeset. (b) is pinned in objectql: a disabled sole holder, /layers?package=C reports code null. It is named in the changeset. It cannot be ablated, because its producer was the lookup removed in round 1.
N6 One leg beside the S4 pin: naming no member equals naming en-US. Passes.
Same class, not ruled admitEnvironmentQualifier (_env) and the caller-arm resolver still ask with the raw selector. No observable split was measured. Goes to the seat's hand-over as a follow-up.
Gates CI on e90a02e: 58 success, 11 skipped, 0 failed. Mergeable clean. Locally: 96 of 96 gate families. Overlap-check clean. Dogfood battery on e90a02e: command exit 0, 482 test files passed and 3 skipped.
PR body The seat updated it to this head.
Owed A delta contract-review-tier L2 record on this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

Contract-review-claim: session_012MmDsS4GoHCgYwA2uv3n3C · head e90a02e · 2026-11-19T07:10Z

A fresh isolated reviewer sub-agent at CONTRACT_REVIEW_TIER renders the delta record.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e90a02e17bd8440eb2fd23020c757837afb867c9
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/18.bundle-without-canonical-member-bare-read-absent.ts, packages/spec/src/migrations/entries/semantic/18.shipped-base-dependent-canonical-row-not-published.ts + packages/metadata-protocol/src/protocol-exact-qualifier.ts, packages/metadata-protocol/src/protocol-bundle-members.ts, packages/metadata-protocol/src/protocol-meta-layered-reads.ts, packages/metadata-protocol/src/protocol-meta-item-reads.ts, packages/metadata-protocol/src/protocol-write-gates.ts, .changeset/34682-bundle-member-selector.md
Security-touching: no

Delta round on record 6998434502 (head ce8d6e76ff), under the seat's ruling 6998444934. Read for this record: card #34682 (body and all 9 comments, the delta report 7002321737 among them), PR #34910 (body, file list, comments), git diff ce8d6e76ff e90a02e17b over the PR's 13 files (5 changed: the changeset, protocol-exact-qualifier.ts, the entry, two test files), the net diff origin/main...e90a02e17b where the delta needed context, the cited code at the head with git show, and the check-runs on the head. Nothing was checked out, built or run. The merge of origin/main (c809deb67b) is the PR's merge base and touches none of the 13 files. The test files are the lane seat's ACCEPT at TIER_DEFAULT; they were read to learn what is pinned.

State of the earlier findings on this head:

  • S3: closed. The changeset no longer says "served exactly as before". It names (a) the /layers code layer over a stored canonical member and (b) the disabled sole holder of a type with no members. The entry's surface names (a). (a) is pinned at the doors on both sides of a restart (mixed_fr_mail in the runtime pin: /layers naming no member reports [row, null, row] and equals the named read). (b) is pinned in the objectql harness, which reaches a disabled sole holder.
  • S4: closed, by exit (a). admitExactQualifier asks the environment's item at bundleMemberDiscriminator(request.type, request.member). The runtime pin reads row_fr_mail at ?package=A naming no member and naming en-US: equal, and 404 / 404 / null on the plain read, /layers and the execution read, before and after a restart. The changeset and the entry name the move.
  • N4: open, an accepted deviation (ruling 6998444934). The sibling entry is not touched in this delta.
  • N5: open, an accepted deviation. registryMemberServedAt is not touched in this delta.
  • N6: closed. One leg in package-scoped-exact-qualifier.test.ts: two unrelated holders in different non-canonical members, naming no package, the outcome naming no member equals the outcome naming en-US on the plain and the layered read.

① Derived judgments

  • admitExactQualifier: the environment counts as a candidate only when it holds the addressed member, the canonical one when none is named. Right. It is the selector sentence ("naming the canonical value is the same request") applied to the admission step, and it is the one changed code line of this delta. bundleMemberDiscriminator answers undefined for a type with no members, so such a type asks as before. A named member asks as before (the trimmed selector).
  • The other raw-selector reads in the same function do not split. findServedOverlayRow reads the canonical row when no member is named (overlayMemberWhere), and the holder lists are per name, not per member.
  • Public surface. Unchanged from the earlier round: no schema, export, key, route or stored shape moves. The delta changes one surface string of the new entry and the changeset text. One more served answer moves, from a 409 refusal to the 404 that ?member=en-US already answered.
  • Gate verdicts on the head: 60 check-runs success, 13 skipped, none failed or pending. Check Changeset, Lint · CI, release & engine gates, Type Check · workspace, Dogfood Regression Gate, Spec property liveness and Governed Surface Queue Guard are among the successes.

② Semver level

Right, and unchanged: @objectstack/metadata-protocol: patch, @objectstack/spec: patch, Metadata-protocol: none, Clause-②: no (narrowing) line-initial in the PR body and the changeset, the BREAKING banner, the Migration line and the one adr-0087: registered bundle-without-canonical-member-bare-read-absent marker, whose id matches the entry. The move of S4 is from a refusal to the absent answer the equivalent request already gave, so it declares no further narrowing (ruling 6998444934); it is named beside the others.

③ Boundary flags

  • Dev flag: S3 (b) has no ablation. Accepted. The producer was the lookup an earlier round removed, so the FROM answer rests on the reading of main, and the test says so. The pin's assertion (code ?? null is null, a thrown refusal fails it) is the lane seat's.
  • Dev flag: main moved 22 commits after this head and was not merged again. Process, the lane seat's. The head reviewed is the one CI measured.
  • Dev flag: the same class remains at two sites that ask with the raw selector, resolveCallerPackageAddress and admitEnvironmentQualifier, "carrier: none". Agreed that neither belongs in this PR. Read from the tree, not run:
    • The caller arm reaches no door with a bundled type. ?callerPackage= is served for dataset alone (META_ITEM_CALLER_PACKAGE_TYPES), and dataset has no members. Holding is judged per name (packageHolders), so the selector reaches only environmentItem(). No sentence of this PR is touched by it.
    • The _env address can split, in an arrangement narrower than any this PR declares. The environment holds a package-less row only while no package ships the name (overlaySlotBinding), so the split needs a second stored row of the same name stamped to a package: a package-less fr-FR row, a row bound to package P, and no shipped holder, after a restart. Naming no member, the environment's first member admits _env. Naming en-US, the environment holds nothing and the read is refused 409 naming P. I did not establish what the admitted read then answers, and nothing measures the arrangement.
    • Every arrangement the changeset and the entry declare answers _env the same in both spellings (with no package holder, both are admitted and the read answers its own miss). So neither is made false. One docblock sentence is wider than the tree: N7.
    • This needs a carrier. The seat files the follow-up card (the _env admission asked at the addressed member, with a pin of the arrangement above); it is not owed on this PR.
  • SQL push-down. No finding. The delta adds no query, no id materialisation and no in-app join.

④ Design judgment

18.bundle-without-canonical-member-bare-read-absent.ts (hits). The two added clauses hold against the code. /layers over a stored canonical member reports code null (the wanted-member filter in the layered read; pinned). ?package=X at a non-holder, for a name the environment stores only in a non-canonical member, answers 404 where it was refused 409 after a restart (admitExactQualifier; pinned). The entry leaves (b) out, which is right: its surface is scoped to a bundled name, and the ruling put (b) in the changeset alone.

18.shipped-base-dependent-canonical-row-not-published.ts (hits). Not changed in this delta. The earlier judgment stands.

protocol-exact-qualifier.ts. The new line agrees with the contract and the comment above it says what the code does. Tried against it: a type with no members (asks undefined, unchanged), a named member (unchanged), an environment that holds the canonical member (still a candidate, still 409 at a non-holder), and a pair address (returns before this line). None breaks.

protocol-bundle-members.ts, protocol-meta-item-reads.ts, protocol-meta-layered-reads.ts, protocol-write-gates.ts. Not changed in this delta. The docblock sentence S4 was raised against now holds at ?package=; see N7 for _env.

Changeset. The three added bullets agree with the code and with what is pinned. "A bundle that ships or stores its canonical member keeps its status and served body, and so does any named member" is true of the tree. The two 18.6.0 quotations are unchanged.

No must-fix, no should-fix.

Nits:

  • N7 (nit) — the docblock in protocol-bundle-members.ts says the registry's first-member answer "reaches no door". No door serves that member, which is what the sentence is about. But at _env its presence can still decide admission, in the arrangement under ③. "so no door serves it" would be exact. The follow-up card that moves admitEnvironmentQualifier can make the wider sentence true instead.
  • N8 (nit) — the changeset's third bullet is wider than its "now answers the 404". When a package also holds the name through its own stored row, both spellings stay 409, and the refusal naming no member stops naming the environment. The two spellings are equal either way. The last sentence of that bullet ("A non-canonical member is still read with its own selector…") belongs after the list, not inside the bullet.

Implemented-by: claude/issue-34682-bundle-member-selector
Reviewed-by: session_012MmDsS4GoHCgYwA2uv3n3C

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

Landing · Head-sha: e90a02e · 2026-11-19T07:16Z

Probe Reading
Check-runs on e90a02e 60 success, 13 skipped, 0 in progress, 0 failed.
Contract review The delta record on this head (just above), served at CONTRACT_REVIEW_TIER and checked by verify-review-tier: PASS. No must-fix, no should-fix. S3, S4 and N6 closed. N4, N5, N7 and N8 are nits, accepted as deviations.
Narrowing arm Clause-②: no (narrowing), ! in the title. The dev's report 7002321737 on #34682 records the dogfood battery on e90a02e: command exit 0, 482 test files passed and 3 skipped, 0 failed.
Mergeable · governed mergeable_state clean. check-governed-merges.mjs --pr 34910: not governed. The released 34441 changeset stays deleted.

State: ready + auto-merge now (L1 delta ACCEPT above). #34682 closes on merge. Follow-up: the _env address admission (admitEnvironmentQualifier) still asks with the raw selector, and the reviewer names an unmeasured split; the seat files it as a card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants