Repository navigation
fix(metadata-protocol): the read naming no bundle member serves a declared override of the canonical member - #34322
Conversation
…lared override of the canonical member The read naming no member addresses the canonical member, the same request as naming it, so declaredMemberOverrideAddressOf now judges that member instead of answering undefined. The plain, execution and layered reads naming no member (and /published, through the layered read) then serve an App pair's declared override of the canonical member a bundle addition ships, as ?member=en-US does. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
📓 Docs Drift Check1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 10 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 555cc0c9911a0fb2f30a90c955bc909740a78bfe && git checkout 555cc0c9911a0fb2f30a90c955bc909740a78bfe
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 5a755791a90b2651be20dd0b9059b806abbafd4a 013010a8a27a6c6c87ce6ef34a52577482bab2e6 && git checkout -B drift-repro 5a755791a90b2651be20dd0b9059b806abbafd4a && git merge --no-ff 013010a8a27a6c6c87ce6ef34a52577482bab2e6
node scripts/docs-audit/affected-docs.mjs --json 5a755791a90b2651be20dd0b9059b806abbafd4a |
|
domain:server#5 · zhuangjianguo · session_01QsR2jTyY9BGjj9WBi7QgH6 Review claim · head 013010a · 2026-11-16T07:56Z |
|
domain:server#5 · zhuangjianguo · session_01QsR2jTyY9BGjj9WBi7QgH6 Review — PASSHead-sha: L1 ordinary ACCEPT read (no contract face:
Observation, not blocking: the environment's own item of the name is not one of the controls. The predicate now asks Not Tier H (+139/−5, 3 files): the area lands it. |
|
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ 席位核对ACCEPT · area S4 (E1) · Head-sha:
|
|
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ Landing (landing-operations B) · head
State change: ready + auto-merge (area authorising line). |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 43827934949 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ Re-arm (landing-operations B, one requeue) · head The queue build 43827934949 ( #34304 left the queue (auto-merge off), so main is still |
Requested by Steedos · project thread
Fixes #32849
The last exit of the card: with #33815 (the member read) and #34169 (the layered member read), every read that serves Z's member now serves its declared override (see Acceptance notes for why nothing is left).
Clause-②: no
Metadata-protocol: none
维护者速读
welcome邮件模板的fr-FR,附加包 Z 发它的规范成员en-US,App 的.custompair 存了一行声明覆盖 Z 的en-US(overrides.package: Z)。fix(metadata-protocol): the bare member read serves an App pair's declared override of a bundle addition's own member (ADR-0150 D4) #33815 / fix(metadata-protocol): the bare layered read serves a member's declared override as effective #34169 之后,点名?member=en-US的读已给出覆盖;但不点名成员的读(普通读、执行读、?layers=true分层读,以及靠分层读找已发布行的/published)仍给出 Z 原版zeta en-US。现在它们与?member=en-US一致,给出覆盖。en-US是同一个请求;声明了的覆盖应在每个给出 Z 该成员的出口被服务(ADR-0146 D8 第 2 项、ADR-0150 D4),同一请求不能因写法不同给出两份内容。declaredMemberOverrideAddressOf:不点名成员时按规范成员判定,而不是直接放弃;点名成员的读一字未动。未声明覆盖、未声明的 pair 行、声明给 X 的行(仍 409)、X 自己的成员、草稿读的地址、被禁用的 Z 均不变(已钉、已消融)。回滚即还原本 PR,存储数据不变。packages/metadata-protocol/src/protocol-meta-item-face.ts中declaredMemberOverrideAddressOf开头addressed那两行。pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/package-scoped-exact-qualifier.test.ts -t 'naming no member',预期 7 条全绿。What changes
Own files (three):
packages/metadata-protocol/src/protocol-meta-item-face.ts,packages/objectql/src/package-scoped-exact-qualifier.test.ts,.changeset/32849-nomember-read-declared-override.md. No edit toprotocol.ts,protocol-save.ts,protocol-meta-item-reads.tsorprotocol-meta-layered-reads.ts: both callers already hand the predicate the selector they resolved (undefinedwhen none was named), so the one predicate change reaches both.declaredMemberOverrideAddressOfansweredundefinedwhen no member was named. It now judges the member the read addresses,bundleMemberDiscriminator(type, member): the selector, or the canonical member (en-US) when none was named. That is the membergetMetaItemandgetMetaItemLayeredread when no member is named, and naming the canonical value is the same request (resolveBundleMemberSelector's contract). Every check below it (one enabled shipper of that member, no environment item of it, an active row of it that is the shipper's served override) is unchanged and now runs at that member. A type with no members still answersundefined. A bundle that ships no canonical member has no shipper of it, so it is left as it was.fr-FR, Z shipsen-US; both install orders)mainb8456eb)en-USzeta en-USpair en-US, stamped Z, envelope Z (=?member=en-US)zeta en-USpair en-US, stamped Z?layers=true, no member, same rowzeta en-US, overlay null, effectivezeta en-USzeta en-US, overlaypair en-US, effectivepair en-US, envelope Z (=?package=Z)GET /meta/email_template/welcome/published, same row (REST door, temporary probe)pair en-US(the layered read's overlay exit)?member=en-US,?package=Z, layered?member=en-USpair en-US?member=fr-FR(X's own)suitex fr-FRpair en-US draft(stamped the pair)zeta en-US, no overlaypackagelessLayeredReadRefusalNothing refused becomes served or the reverse; no authorable key or value moves. Same reading as #33815 and #34169 (review-b, 6894129336): an existing declaration taking effect on one more read exit is
Metadata-protocol: none, patch.Tests
New top-level describe in the shared real-
SchemaRegistryharnesspackages/objectql/src/package-scoped-exact-qualifier.test.ts, beside #34169's:[#32849] the read naming no member serves the pair's declared override of the canonical member an addition Z ships, as ?member=en-US does(7 tests):?member=en-US(pair en-US, Z, Z); the execution read the same; bare layers equal?package=Z's witheffectivedeep-equal; step 1c refuses nothing; layered?member=en-USunchanged; X'sfr-FRuntouched.?package=Zhas none.RESOURCE_CONFLICTnaming X and Z on plain and layered.BASE measured on
mainb8456eb before any edit, with a temporary probe in this harness (both install orders and the four CONTROL arrangements) and a temporary probe at the REST doors (packages/rest, realSchemaRegistry, the pair row stored and hydrated): plain bare and execution bare servedzeta en-US; layered bare answered overlay null, effectivezeta en-US;?member=en-US,?package=Zand layered?member=en-USservedpair en-US. At the doors:GET /meta/email_template/welcome200zeta en-US,/layerseffectivezeta en-US,/publishedfound no overlay. After the fix the same door probe answered 200pair en-USon all three. Neither probe is committed.Ablations (each through `scripts/ablation-replace.mjs`, metadata-protocol rebuilt under the verify lock, `ablation-dist-preflight` marker present in dist, auto-restore blob equals HEAD (`17592e66` / `70eb6082`) with `git diff HEAD` empty, rebuilt, marker absent from all 24 dist files)
Run:
-t 'naming no member'(7 tests).addressedis the namedmemberagain (none named answersundefined)bare, no member: expected [ 'zeta en-US', 'com.acme.zeta', …(1) ] to deeply equal [ 'pair en-US', 'com.acme.zeta', …(1) ]; the draft pin,bare ?layers=true with drafts, no member: expected [ 'zeta en-US', 'pair en-US draft' ] to deeply equal [ 'pair en-US', 'pair en-US draft' ]isServedOverrideRowOf(row, shipper, installed)OR-ed with an always-true termexpected [ 'zeta en-US', 'pair en-US', …(2) ] to deeply equal [ 'zeta en-US', null, …(2) ]; the X-declared CONTROL,the read answered; a refusal was expectedNo pending draft exists for email_template/welcome.expected [ 'pair en-US', null ] to deeply equal [ 'pair en-US', 'pair en-US draft' ]bare ?layers=true, no member: expected [ 'zeta en-US', 'pair en-US', …(2) ] to deeply equal [ 'zeta en-US', null, …(2) ]A2's first attempt used a constant-foldable marker (
'…' !== ''): the build folded it away, so the dist pre-flight could not find the marker, and the reading was discarded and taken again with a marker the build keeps (String(row.id) !== '…'); both attempts read the same. A5's first attempt never got the build lock (queue-timeout), so its green run was on the unmutated dist and was discarded; the second attempt is the one above. The no-row CONTROL is an unchanged-outcome pin by construction (no row, nothing to re-address).Acceptance notes
Fixes: the card asks that every exit serving Z's member serve the declared override. Exits now covered: the member read and the bare execution read (fix(metadata-protocol): the bare member read serves an App pair's declared override of a bundle addition's own member (ADR-0150 D4) #33815); the layered member read (fix(metadata-protocol): the bare layered read serves a member's declared override as effective #34169); the plain, execution and layered reads naming no member, and/publishedthrough the layered read (this PR). Z's list, its execution list,listServedOverridesand?package=Zserved it before fix(metadata-protocol): the bare member read serves an App pair's declared override of a bundle addition's own member (ADR-0150 D4) #33815.fr-FR, Z shipsde-DE, the pair declares Z forde-DE): measured with the fix, the read naming no member serves X'ssuitex fr-FR(the registry's bare-name fallback) and never Z's member, so there is no Z exit there; the predicate is left as it was (no one shipper ofen-US). In that arrangement the layered read naming no member answered no layers at all while the plain read servedsuitex fr-FR, measured at the protocol only; the predicate does not reach it (same onmain). Noted here, not filed: the door reading was not taken (the verify lock timed out)./published: the door reads no query parameter, so its only exit is the read naming no member. In the door probe it moved from "no overlay" to 200pair en-US. The before-side then fell through to the metadata service's snapshot (getPublished); the probe's snapshot double does not model email templates, so the harness answered 404 there. In a real kernel that exit serves the snapshot, which is not a refusal. No refused read became served and no served read became refused.Clause-②: no,Metadata-protocol: none, patch.Verification
All readings on head
884050fa14(the fix commitb8a667f4withorigin/main43dd565 merged in), afterpnpm install --frozen-lockfileand a closure build under the verify lock (VERDICT command-exit 0). Every build and suite ran underscripts/pm/os-verify-lock.sh; each line is the run's own verdict.Suites (touched packages and direct dependents)
@objectstack/metadata-protocoltypecheck exit 0; test exit 0,Tests 22946 passed | 45 skipped (22991).@objectstack/objectqltest exit 0,Test Files 598 passed (598),Tests 13355 passed (13355).@objectstack/clivitest run --project unitexit 0,Tests 6010 passed (6010); the integration tier is left to CI.Gates
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 64 derived families (3 paths, 144 changed lines vs the 3000 threshold). 61 exit 0 on884050fa14.check:engine-double-contractfirst exit 1, caused by a temporary probe file present during that run (the gate named it). Re-run after the probe was deleted: exit 0.check:dual-build-cjs-loadsexit 3PREREQUISITE NOT MET(14 packages outside this diff's closure have nodist/). Not measured locally; CI's Lint & Repo Gates runs it on a full build.check:type-check-debtexit 3: its closure build queued behind the verify lock and timed out. Not measured at open time; re-run reported on metadata-protocol: the bare member read ignores a pair override declared for an addition package's own locale member #32849.pnpm lintexit 0.check-changeset-no-major0,check-adr-0087-registration0,check-closing-keyword-parity0 (withGITHUB_EVENT_PATH),check-partof-closing-keyword0 (withPR_BODY).git merge-tree --write-tree --name-onlyof884050fa14against the open area PR heads:origin/claude/area-E1-33308(fix(metadata-protocol)!: the diff door refuses a bare two-holder name and compares one holder by ?package= #34147,624b7ff3) exit 0, no conflict;origin/claude/area-E1-34059(fix(metadata-protocol)!: a package-less action save on an object no package binds the name to writes the environment's own action #34238,6f89ebf9) exit 0, no conflict. Neither touches this PR's files.🤖 Generated with Claude Code
https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ