Repository navigation
fix(metadata-protocol)!: an exact ?package= read answers its own package's item or a 409 naming the holders, and a bare doc read beside two holders serves the environment's own entry - #34347
Conversation
…own item or none, for every type the exact qualifier does not judge A read naming package X of a doc, view, translation, field, seed, datasource, external_catalog or object_extension that X ships no item of fell through to the registry's getItem, whose last tier is the first composite across packages, so it answered another package's item. The code layers' answer at such an address is now X's own item (the registry's package slot) or nothing (404). The layered read's code layer takes the same rule: it declines the metadata service's copy of another package and reads X's own item or none. So does the credential carry-forward's code-layer read, so a save naming X never carries another package's datasource credential. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…he layers decline is refused naming both holders The registry exempts a doc name two enabled packages ship from the bare read's refusal when its bare slot holds a package-less entry (a stamp-less registration, or a hydrated or saved row). A doc a package ships is sealed, so the layers decline that row and never serve the entry: they served the metadata service's copy, the holder registered last, on the plain read, the layered read and the published read. Such an entry is no servable environment item, so the read is refused 409 naming both holders, as without it. An entry the layers would serve keeps the exemption. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
… environment's own package-less entry, never the holder registered last The previous commit refused such an entry 409, reading it as a row the layers decline. The ruling 6893582352 control in objectql's e8 readers pins the opposite: the environment's own entry answers first, and the registry and the facade serve it. The layers serve it too, once the metadata service's package copy no longer answers first. So the plain read, /layers and both /published doors now serve that entry; without one the read stays refused 409. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
📓 Docs Drift CheckThis PR changes 3 package(s): 20 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 9 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 44 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 6ffbd5c3de8c9c2ed5f12e78701cfff8269255bb && git checkout 6ffbd5c3de8c9c2ed5f12e78701cfff8269255bb
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 3bbda33b78fff2681db9c09732347bc62ffc4cc6 1572520e9f465c673a5d9567cdac1e27a91efcf7 && git checkout -B drift-repro 3bbda33b78fff2681db9c09732347bc62ffc4cc6 && git merge --no-ff 1572520e9f465c673a5d9567cdac1e27a91efcf7
node scripts/docs-audit/affected-docs.mjs --json 3bbda33b78fff2681db9c09732347bc62ffc4cc6
|
|
domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12 Hand-off (maintainer order: push and hand off; area S5 clocks out)
State. The code is complete. At this head:
Not measured. The dogfood battery at this head. It was stopped by the hand-off order. It is owed, because the title carries Owed reviews.
Open for the next seat.
|
Keeps both top-level describes in package-scoped-exact-qualifier.test.ts: this branch's exact-read pins and main's disabled-holder bare-read pins. Claude-Session: https://claude.ai/code/session_01FEkQ5obaLbqgzRUR9xXfft Co-authored-by: Claude <noreply@anthropic.com>
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head 989f4ad · 2026-11-16T12:30Z |
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract reviewServed-tier: No earlier record on this PR. Cards #34247 and #34248 read with every comment. All findings are from reading the head tree; nothing was run. ① Derived judgments
② Semver levelThree ③ Boundary flags
④ Design judgmentM1 (must-fix) — the hydrated-row state the PR pins is not the state the hydrator writes, and in the hydrator's state the three bare doors disagree.
M2 (must-fix) — the first consumer of
S1 (should-fix) — the entry answers first only at two or more enabled holders ( S2 (should-fix) — the code moves S3 (should-fix) — run the dogfood battery on the final head before landing (card #34247 acceptance 2). Implemented-by: VERDICT: FAIL |
…/layers and /published beside two holders; the Console reads a doc by name where the app's package ships none - getMetaItemLayered: beside two enabled holders, the package-less stored row behind the bare doc read's environment entry is the effective layer, never declined as a sealed doc's row; the hydrator's entry stays no code layer. - registryAnswerAtAddress leaves the security catalog types (position, capability) to the code layers' answer. - DocPage: a 404 at the route's package falls back to the read by name. - Pins: the hydrator's entry shape and a real loadMetaFromDb hydration on the composed rig, the one-holder stamp-less cell, position/capability, and the Console fallback. Claude-Session: https://claude.ai/code/session_01FEkQ5obaLbqgzRUR9xXfft Co-authored-by: Claude <noreply@anthropic.com>
…ne of is refused naming the holders (ruling 6917064203 on #34398) - registryAnswerAtAddress refuses 409 not-held-by-qualifier naming each package that holds the name, on the plain read and /layers; a name nothing holds stays 404; the credential carry-forward still carries none. - DocPage falls back to the read by name on that 409 (candidates not naming the route's package) as on a 404. - Pins flipped from 404 to the 409, both transports; nothing-holds controls. Claude-Session: https://claude.ai/code/session_01FEkQ5obaLbqgzRUR9xXfft Co-authored-by: Claude <noreply@anthropic.com>
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head de13771 · 2026-11-16T15:30Z |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 44062172772 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
… layered read's code layer empty after the bare-name fallback The bare-name artifact fallback of the layered read now skips a bare doc read that answers the environment's own entry, as it skips the bare action read's judged answer: the artifact lookup's first composite is the holder registered first, which that read never serves. Claude-Session: https://claude.ai/code/session_01ADHkmNkZcGApqG4pHHMLeY Co-authored-by: Claude <noreply@anthropic.com>
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 44080349559 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#2 · os-steve · session_01ADHkmNkZcGApqG4pHHMLeY Final head declared · PR #34347 (
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzi8zDwpH6wX7ZPUcHR 席位核对L1 delta review · ACCEPT · Head-sha: Prior records at Delta readThe delta is two first-parent commits:
Does the root fix change the narrowing's served answers?No. It restores the answers L2 6943305789 passed at
Findings
Gates at this head (read 2026-11-17T13:03Z)
Owed after this (nothing here readies, queues or arms the PR)
|
Requested by Steedos · project thread
Fixes #34247
Part of #34248 (delivered here; the area closes it on merge, as with PR #34324)
Contract-review-handoff: review#1 — CONTRACT_REVIEW_TIER routed by maintainer order (2026-11-17T12:31Z) · head 1572520
Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — no skill teaches a moved answer:
skills/**teaches?package=reads of a holder or of its pair (objectstack-platform SKILL.md, "Customizing an installed package"), which do not move, and never the read of a package that holds no item of the name or the bare doc read beside a package-less entry维护者速读
?package=X读取文档、视图等 8 类元数据时,如果 X 没有这个名字而别的包有,返回 409not-held-by-qualifier并列出持有包,不再返回别的包的内容;谁都没有的名字仍是 404。/layers?package=X同样处理。文档和视图先过各自的门禁:文档受众门禁拒绝的成员和匿名访问者拿到门禁自己的 403/401,视图受众门禁(requiredPermissions)拒绝的成员拿到 403,门禁放行的才拿到 409。两个包都发布同名文档、环境里又有一条无包条目时,不带包名的读取(普通读取、/layers、/published)返回这条环境条目。Console 文档页和扁平永久链接(跨文档引用都改写到它)在应用包不持有该文档时改为按名字读,跨包引用照常显示,或显示持有包的受众拒绝。?package=Xread of a doc X does not hold, while another package does: 404 (card #34247) or the 409 refusal naming the holders (ADR-0150 D5)? #34398)定为 409 并列出持有者;裁决 6893582352 规定环境自己的条目优先。原来包名写错的作者会悄悄拿到别的包的内容。object、已覆盖类型、position/capability都不变。回滚即 revert 本 PR。packages/metadata-protocol/src/protocol-meta-item-reads.ts(registryAnswerAtAddress的拒绝分支与安全目录排除)、packages/rest/src/meta-item-read-gate.ts(gateHolderNamingRefusal,门禁先于拒绝)、ui/apps/console/src/pages/DocsSlug.tsx与doc-address.ts(按名字回退)。pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains/meta-holder-refusal-audience-gate.test.ts src/domains/meta-disabled-holder-artifact-door.test.ts,预期 58 通过、4 跳过(两个文件合计);文档门禁拒绝的成员得 403、匿名得 401,视图门禁拒绝的成员得 403,放行者得 409 并列出持有包,[#34247]组在四种装配下非持有包地址返回 409,[#34248]各条在两种注册顺序下三个入口一致。What changes
#34247 (exact address, X holds no item of the name). PR #34241 made step 2 of
readMetaItemdecline the metadata service's copy of another package at?package=X, for the types the exact qualifier (ADR-0150 D5) does not judge. When X held no item of the name, step 3 still readgetItem, whose last tier is the first composite across packages, so the address answered another package's item.Now the code layers' answer at such an address goes through
registryAnswerAtAddress. An item stamped with another installed package (the same test asserviceCopyOfAnotherPackage: not X, not a customization pair either way) is replaced by the registry's package slot for X. When X has no slot:409 RESOURCE_CONFLICT, reasonnot-held-by-qualifier,details.candidatesnaming each holder (notHeldByQualifierRefusalinprotocol-exact-qualifier.ts). This is the refusal the covered types already answer, and it uses existing vocabulary only (ruling 6917064203 on decision: an exact?package=Xread of a doc X does not hold, while another package does: 404 (card #34247) or the 409 refusal naming the holders (ADR-0150 D5)? #34398).not-held-by-qualifierrefusal names any holder (gateHolderNamingRefusalin@objectstack/rest, asked by both transports' plain read and/layersread). For adoc, the ADR-0046 §6.7 docs gate judges a doc by its name, so it needs no holder's item: a caller it refuses gets the gate's403 PERMISSION_DENIED, or401 UNAUTHENTICATEDwhen anonymous. For aview, the list view audience gate (filterViewForUser) judges a view by its body, so every holder the refusal names is read at its own address (a package at its?package=, the environment's own item at the address naming no package) and judged: a member it refuses for any one of them gets the gate's403 PERMISSION_DENIED. A holder that cannot be read fails closed: both transports' plain read and/layersanswer the same500 INTERNAL_ERROR, which names no holder. A caller the gate admits gets the 409.The family is the eight types PR #34241 enumerated:
doc,view,translation,field,seed,datasource,external_catalog,object_extension. The security catalog typespositionandcapabilityare excluded in code (isSecurityCatalogType, ADR-0131 D3). The registry keeps one package holder of such a name, so their code layers' answer is unchanged. A CONTROL pin for each type proves it.Aligned in the same direction.
getMetaItemLayered(/layers?package=X): the code layer declines the service's copy of another package and reads X's own item. At an address X holds none of, it gives the same refusal as the plain read (ruling item 2).readCodeLayerForCarryForward(the save's credential carry-forward, read when no stored row is at the address the save writes): the same decline and the same registry answer, but it keeps "carries none". It does not refuse (ruling item 2 leaves this choice open). The reason: the carry-forward is no read answer. The save door already judges the address on its own path, and a refusal here would turn a save that main accepted into a 409 for a reason the save door never names. Of the family onlydatasourcehas a credential redactor, so only a datasource save moves. It carried the credential of the package the service kept (or of the first registered holder). It now carries X's own, or none when X ships no datasource of the name.#34248 (bare doc read beside a package-less entry). Take two enabled holders and a package-less entry in the registry's bare slot. The registry exempts the bare doc read from PR #34036's refusal and serves the entry, and so does
MetadataFacade.get. The protocol's plain read,/layersand/publishedserved the metadata service's copy instead, which is the holder registered last. Now the environment's entry answers first (ruling 6893582352) on every bare door:refuseAmbiguousBareDocReadstill refuses two holders with no such entry (409, as on main). When an entry sits beside two or more enabled holders, it returns that entry.readMetaItemstep 2 and the layered read decline a package-stamped service copy in that case (bareDocServiceCopyDisplacesEntry)./publisheddoors (packages/runtime/src/domains/meta.tsandpackages/rest/src/meta-item-history-routes.ts, about four lines each, beside the objectql + metadata-protocol + runtime: by-name doors judge a name's holders over the served list, so a disabled package neither refuses nor is named (ADR-0150 D3; #32101 F4 class) #32183mixedOwnerswap) serve the layered read's answer in place of a package-stamped service copy.Review M1: the hydrated row as the hydrator lays it.
hydrateOverlayIntoRegistrystamps a package-less stored row_provenance: 'org'with no_packageId(stateTenantAuthorship). Such an entry is tenant-authored, so it is never the code layer (#21059). At989f4ad7the plain read served the row while/layersansweredeffective: null, because the sealed doc's package-less row was declined. Both/publisheddoors served 200 with an empty body. Now the layered read lets the environment's row answer when the bare slot holds that row's tenant-authored entry and no code layer (environmentRowAnswers: the entry is tenant-authored andcodeis null)./layersreportscode: nullwith the row asoverlayandeffective, and both/publisheddoors serve the row, consistent with the plain read. The same row hydrated after the artifacts registered (loadMetaFromDb, and boot hydration after the artifact door) wears the first registered holder's envelope (mergeArtifactProtectiongrafts it:_packageId= first holder,_provenance: 'package'). No package-less entry exists then, and the bare doors stay refused 409 naming both, as on main. Both orders are pinned on the composed rig.Review S4: a stamp-less entry beside a different stored row.
environmentRowAnswersfirst held for any bare-doc environment entry beside a package-less stored row. With a stamp-less runtime registration (a code layer) and a different package-less stored row,/layerseffectiveand both/publisheddoors moved to the row while the plain read kept the entry. It now holds only where the entry is the row's tenant-authored copy (codeis null). In the mixed state all three doors serve the registration, with the row as/layersoverlay, as at989f4ad7. Pinned in both orders.Review S1: one holder beside a stamp-less entry. I took the minimal option: pin the cell and declare it. The bare doors serve the holder's doc while the registry's
resolveItemserves the entry. The test is[measured, unresolved]and it runs for each one-holder composition. The cell stays out of scope because card #34248's acceptance names two or more holders, and ruling 6893582352 was argued beside two holders. Moving the one-holder cell would change a 200 answer that no card or ruling names. It is declared in the changeset under "Not moved". Follow-up card: #34452 (needs a ruling first).Review M2 and ruling item 6: the Console doc doors. Two Console doors read a doc under the route's package segment, with X as ADR-0048 prefer-local context: the reader (
DocPage,/apps/X/docs/BOOK/NAME) and the flat permalink (DocsSlug,/apps/X/docs/NAME, which every cross-reference is rewritten to bydoc-links.ts). The permalink's single-item read (objectui#10188) tells a name the member may not read from an absent one. When either read answers thenot-held-by-qualifier409 (X not among the candidates) or a 404, the door now reads the name again by name. Both share one rule,readsByNameAfterinui/apps/console/src/pages/doc-address.ts. The result:DocRefusal), as on main, for both segment kinds. Before this round it fell to the name-prefix redirect or "Documentation not found".A 404 stays the page's "not found" (not turned into a refusal). Opening the single named holder directly is left as the optional follow-up the ruling names.
FROM → TO
GET /meta/doc/NAME?package=X, X ships no doc of NAME (installed, or not installed), another package does; dispatcher and REST, both registration ordersRESOURCE_CONFLICT,details.candidates= the holders (ruling 6917064203 on #34398)view,translation,field,seed,datasource,external_catalog,object_extensionnot-held-by-qualifiernaming the holders?package=Xof a name no package holds, any of the eight typesGET /meta/doc/NAME?package=Xand/layers, X ships none, another does, caller refused by the ADR-0046 §6.7 docs audience; both transportsPERMISSION_DENIED(401UNAUTHENTICATEDanonymous): the gate on the holder's docGET /meta/view/NAME?package=Xand/layers, X ships none, another does, a member the list view audience (requiredPermissions) refuses; both transportsPERMISSION_DENIED: the gate on the holder's viewGET /meta/doc/NAME/layers?package=X, X ships none, another doescodeandeffectiveGET /meta/doc/NAME/layers?package=X, X and Y ship NAME, Y registered lastcodeandeffectiveGET /meta/doc/NAME,/layers,/published, two enabled holders plus a stamp-less bare entry; both transports, both orders/layers:codeandeffective)/layers: the entry ascodeandeffective, the row asoverlay)_provenance: 'org'entry)/layers:code: null, the row asoverlayandeffective)datasourcewith no stored row at X (credential carry-forward)/apps/X/docs/BOOK/NAME, X ships none of NAME/apps/X/docs/NAME(cross-references), X ships none of NAME, a doc the member may not readobject;positionandcapability; one holder beside a stamp-less entry (measured, unresolved); any other read naming no packageaction,hook,job,sharing_rule,queue,assignment_rule) at a third packagenot-held-by-qualifierHydration readings (dispatch task 1; review M1)
Measured with the real hydrator on the composed artifact rig (
MetadataPluginartifact door plusAppPlugin, SQL driver, a stored package-lesssys_metadatarow of a doc two packages ship), on the dispatcher and onRestServer, in both registration orders. Scratch test files were not committed.Hydrated after the artifacts (boot hydration, and
loadMetaFromDbafter the artifact door): the entry carries the first holder's_packageIdwith_provenance: 'package'. The bare doors answer 409 naming both. The answer is identical at origin/mainc934631723and at head72dc8ca25e, and it stays so at this head (CONTROL pin). The save door answers 403NOT_OVERRIDABLE, so no new row is stored.Hydrated before the artifacts (the hydrator's own
_provenance: 'org'entry): measured at the merge base6cc3f97465(main as this PR forks it) and at this head:6cc3f97465de137717efbeta docwith alpha first,alpha docwith beta first)environment doc(the row)/layerscode= the holder registered last,overlay= the row,effective= the holder registered lastcode: null,overlayandeffective= the row/published, both doorsAt
989f4ad7(this PR before the M1 fix) the same state answered: plain read the row;/layerscode: null,overlaythe row,effective: null; both/publisheddoors 200 with an empty body. That is the inconsistency M1 named. The head answers are the green pin[#34248] a hydrated package-less row (hydrated before the artifacts)in the rig; the M1 ablation turns it red in both orders.The exact address of a non-holder at main
6cc3f97465, same rig:?package=com.qa.gamma(installed, ships none) and?package=com.qa.unknown(not installed) answer 200 with a holder's doc. The plain read gives the first composite (alpha docwith alpha first,beta docwith beta first)./layersgives the service's copy (the holder registered last) ascodeandeffective. With beta alone shipping,?package=com.qa.alphaanswers 200beta doc. At this head every one of these answers 409RESOURCE_CONFLICTwithdetails.candidates= the holders.Ruling item 5: the read gate answers first
Rule: the read gate answers before the
not-held-by-qualifierrefusal names any holder. At?package=Xof a doc X holds none of, on the plain read and/layersof both transports:403 PERMISSION_DENIED, with no candidates;401 UNAUTHENTICATED, with no candidates;409 RESOURCE_CONFLICTnaming the holders;orgaudience gets the 409 for a member.The same order holds for a
viewat the same address (the list view audience,requiredPermissions): a member it refuses gets the gate's403 PERMISSION_DENIED, with no candidates; CONTROL: a member it admits gets the 409 naming the holders; CONTROL: at the holder's own address the two members get the gate's 403 and the view. Every holder the refusal names is judged, the environment's own item included: a view only the environment holds answers a member its audience refuses the gate's 403 (CONTROL: an admitted member gets the 409), and a view a package and the environment both hold answers the gate's 403 to a member the package's view admits and the environment's refuses (CONTROL: a member both admit gets the 409).Pinned in
packages/runtime/src/domains/meta-holder-refusal-audience-gate.test.ts. Its transports and the gate are real; the protocol is a double that throws the protocol's own refusal shape.Tests
packages/objectql/src/package-scoped-exact-qualifier.test.ts, the metadata-protocol: an exact ?package=X read of a doc (and the other types the registry does not read by package) that X does not ship answers another package's item instead of 404 #34247 describe (between the 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 and metadata-protocol: a disabled doc holder registered last turns the bare doc read, /layers and /published into 404 although an enabled package ships the name #34041 describes; fix(metadata-protocol,rest,runtime): beside a disabled package, the bare read, /layers and /published serve the one enabled holder of a doc, view or other type the registry does not read by package #34354's describe is kept intact after the merge). It contains:?package=of a third installed package and ofcom.acme.unknown, on the plain read andgetMetaItemLayered, whichever holder's copy the service keeps;positionandcapabilitykeep the holder's item (S2);packages/runtime/src/domains/meta-disabled-holder-artifact-door.test.ts(composed artifact rig, both transports):details.candidateson the plain read and/layersfor an installed and a non-installed package;[measured, unresolved]pin;_provenance: 'org'row (M1), a stamp-less entry beside a different package-less stored row (S4: all three doors serve the entry, the row asoverlay), and the hydrated-after-artifacts CONTROL through the realloadMetaFromDb.packages/runtime/src/domains/meta-holder-refusal-audience-gate.test.ts(both transports, the real gate): the gate's 403 for a refused member and 401 for an anonymous caller at?package=of a package holding none, on the plain read and/layers; CONTROLs: an admitted caller and anorg-audience doc get the 409 naming the holders. A second describe pins the view gate at the same address on both transports: a member the view audience refuses gets the gate's 403 with no candidates; CONTROLs: a member it admits gets the 409, and the holder's own address answers the two members the gate's 403 and the view. A third describe pins every holder the refusal names, the environment's own item included: a view only the environment holds, and one a package and the environment both hold, each with a refused member's 403 and an admitted member's 409 CONTROL. A fourth describe pins a holder the view gate cannot read: on both transports' plain read and/layers, a refused and an admitted member alike get500 INTERNAL_ERRORwith no candidates; CONTROL: the same address with a holder that reads is the gate's answer (409). The environment-holder pins are driven by candidates the protocol double supplies; for aview, the refusal this PR adds names package holders only, so those pins hold the helper's rule rather than a row today's protocol produces (accepted, no contract effect).ui/apps/console/src/pages/docs-portal.test.tsx, "objectstack#34247 — a doc the route's package ships none of is read by name":['com.example.alpha', undefined]);DocsSlug), underWORLD.exact: a cross-package link to a doc the member may not read renders the holder's refusal (reads['com.example.alpha', undefined]), and so does the app-name segment of a multi-app package (reads['alpha_suite', undefined]); CONTROL: under the holder's own package it reads that address only.Verification
Final head
1572520e(taken over by seat repo:objectstack#2 from area o1-D). Since0bc781b5(L1-c2 delta ACCEPT 6943247306, contract review PASS 6943305789) two commits:bc6c83bdmergesmainat6091b645, and1572520efixes the one semantic conflict that merge carries.Why the merge queue ejected
0bc781b5twice (anchor #34772):main's #34644 (ddab49de) added a bare-name fallback togetMetaItemLayered(no member named andcodestill null ⇒lookupArtifactItem). The fallback skipped the bare action read's judged answer but not a bare doc read's environment entry (#34248, this PR). So a doc name two enabled packages hold, beside a hydrated package-less row, read the holder registered first as itscodeandeffectivelayer on/layers, where the plain read serves the row. The two[#34248] a hydrated package-less row (hydrated before the artifacts)pins inmeta-disabled-holder-artifact-door.test.ts(both registration orders) went red, deterministically.1572520emakes the fallback skip a bare doc read's environment entry as well; the pins and their assertions are unchanged. Measured on the merged tree before the fix: exactly those two pins red (2 failed, 43 passed); after it: green.Readings at
1572520e, on a shared box, each heavy run as its own verify-lock call (exit codes captured before any pipe):pnpm install --frozen-lockfile0 (the lockfile moved withmain). Closure build (turbo run build --filter '@objectstack/dogfood^...'): exit 0.pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains/meta-holder-refusal-audience-gate.test.ts src/domains/meta-disabled-holder-artifact-door.test.ts: exit 0, Tests 58 passed, 4 skipped.NODE_OPTIONS=--max-old-space-size=8192; at the default heap the runtime test-layer check dies of a V8 heap OOM with no diagnostics):@objectstack/metadata-protocol0,@objectstack/rest0,@objectstack/runtime0.pnpm exec vitest run, every file:packages/metadata-protocolexit 0, Test Files 348 passed, 9 skipped; Tests 23056 passed, 45 skipped.packages/runtimeexit 0, Test Files 616 passed; Tests 12732 passed, 23 skipped.packages/restexit 0, Test Files 420 passed; Tests 8877 passed, 373 skipped.packages/objectqlexit 0, Test Files 607 passed; Tests 13661 passed.dispatch-gates --commandsfromorigin/main(6091b645), at1572520e: the same 79 as before, 79 run to exit 0.--ran: "79 derived famil(ies) accounted for — 79 run, 0 NOT-MEASURED".!):pnpm --filter @objectstack/dogfood test, no shard, no path: exit 0; Test Files 478 passed, 3 skipped (481); Tests 4055 passed, 68 skipped (4123). No failure.Readings from earlier heads, kept for the record:
Builds, typechecks and package suites (exit codes captured before any pipe)
24a7664b, afterpnpm install --frozen-lockfile: closure build (--filter '@objectstack/dogfood^...'):VERDICT command-exit 0.24a7664b, CI:TypeScript Type Checksuccess,Test CoreandTest Core (1/8)–(8/8)success,Type Check UIsuccess,Test UIsuccess. Package suites were not rerun locally this round; the merge brought only main.c47c71b4(code unchanged since;2496009bchanged one changeset line): typecheckmetadata-protocol0,objectql0,runtime0,rest0.@objectstack/objectqltest 0 (Test Files 603 passed; Tests 13520 passed).@objectstack/runtimetest 0 (Test Files 609 passed; Tests 11222 passed, 23 skipped).@objectstack/metadata-protocoltest 0 (Test Files 346 passed, 9 skipped; Tests 22968 passed, 45 skipped).@objectstack/resttest 0 (Test Files 413 passed; Tests 8552 passed, 350 skipped).@object-ui/consoletest 0 (Test Files 322 passed; Tests 3321 passed).eslint --no-inline-configon the changed files: 0 errors.check-platform-checklist --changed-from origin/main: OK, 36 anchors judged, 0 lost.Derived gate families (dispatch-gates --commands, from the merge base, at 24a7664)
check:nul-bytes,check:doc-authoring,check:issue-citationsandcheck:test-source-aliasamong them.check:type-check-debtfirst answered exit 3 while the battery held the verify lock; rerun, it exited 0 ("0 raw tsc error(s) total, none above its recorded number").check:dual-build-cjs-loadsexit 3 (PREREQUISITE NOT MET: nopackages/qa/scenarios/dist; it needs a full build). NOT MEASURED locally; CI'sLint & Repo Gatesis success.dispatch-gates --ran(with recorded exit codes): "79 derived famil(ies) accounted for — 78 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)".8c929a55was red oncheck:test-source-alias. The new audience-gate pin reachedimport('@objectstack/metadata')through the dispatcher without a module-top load. Fixed atc47c71b4by a module-topimport '@objectstack/metadata'in that test.Ablations (one per guard; each restore proved: blob = HEAD, `git diff HEAD` empty, a protocol marker absent from dist after the final rebuild)
Not rerun: no guard changed after
c47c71b4. At8c929a55andc47c71b4:gateHolderNamingRefusal(returns nothing)meta-holder-refusal-audience-gate.test.tsDocsSlugby-name fallbackdocs-portal.test.tsxcode === null && isTenantAuthored(...)inenvironmentRowAnswers@objectstack/metadata-protocol'sdistbefore the run was read.'ABL_S4_MARKER' !== '') was constant-folded out ofdist, and the preflight refused it. The rerun used a property-read marker that survives the build: the preflight exited 0, and after the restore--absentexited 0 with a clean tree.From
de137717(guards unchanged since), with the same restore proofs:environmentRowAnswers(layered read)isSecurityCatalogTypeexclusionpositionandcapabilityCONTROLsrefuseinreadMetaItemrefusein the layered readDocPageAt
f45378bb, with the same restore proof (git checkout HEAD --, cleangit status --porcelain, marker count 0): the view arm ofgateHolderNamingRefusalablated (the early return keptdocalone) turns 1 pin red inmeta-holder-refusal-audience-gate.test.ts, the refused member's view 403 (1 failed, 6 passed); the source is aliased, so no build.At
b6f7c36f, same restore proof: the environment's item skipped by the view arm turns exactly 2 pins red, the environment-only and the co-held refused member's 403 (2 failed, 9 passed); the two CONTROLs stay green.At
0bc781b5(same code as its pre-reword commit), same restore proof: the dispatcher plain read's fault answer removed (the gate's rejection left to the handler's outer catch) turns exactly 1 pin red, the unreadable-holder fault pin (1 failed, 12 passed); its CONTROL stays green.Dogfood battery (title carries `!`)
24a7664b12, after the closure build above:pnpm --filter @objectstack/dogfood testunder its own lock call, no shard, no path.os-verify-lock: VERDICT command-exit 0 · held the lock 2265s (37m45s).c47c71b4, VERDICT command-exit 0; Test Files 474 passed, 3 skipped (477); Tests 4006 passed, 42 skipped (4048).CI at
1572520ewas still running when this body was written; at0bc781b5it was 43 check-runs success, 10 skipped, none failed.Taken over from repo:objectstack#1 · os-project-manager · session_01FEkQ5obaLbqgzRUR9xXfft.
repo:objectstack#2 · os-steve · session_01ADHkmNkZcGApqG4pHHMLeY
🤖 Generated with Claude Code
https://claude.ai/code/session_01ADHkmNkZcGApqG4pHHMLeY