You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
metadata-protocol: the layered read of a doc name two enabled packages hold answers one holder's layers while the plain read refuses (ADR-0150 D3/D5) #34190
area:packagedomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p3
Filing gate: class (a). Two doors disagree on the same address. Raised as should-fix S3 by contract-review record 6903815196 (review#2) on PR #33885, at head a2b2989.
Prior rulings read: ADR-0150 D3/D5 (a name two holders hold is refused with candidates, never answered by picking one); PR #34036 (merged 2026-11-15, "a bare doc read refuses a name two enabled packages hold, naming both"); PR #33885 (the layered read answers as the plain read for the types the registry reads by package). Dedupe: searched layered doc readsByPackage and getMetaItemLayered doc two packages; the only hit is #32622 itself (package-read types, no doc).
The layered read's guard in packages/metadata-protocol/src/protocol-meta-layered-reads.ts is readsByPackage(type). doc is not in that set, so getMetaItemLayered({ type: 'doc', name }) never reaches the judgment and answers one holder's layers.
REST /layers answers the 409 only where a step of its chain asks the plain read. The composition with no engine wired was not followed.
Neither PR opened the gap on its own. It appears where the two meet.
Expected
The layered read asks the doc judgment before it reads layers, as the plain read does. A bare /layers (and ?layers=true) of a doc name two enabled packages hold answers 409 with details.candidates naming both, in process and on both transports. ?package= of each holder still serves that holder's layers. CONTROL: a doc name one package holds is served.
Measure first. If the REST or dispatcher door already refuses in every composition, the card reduces to pins.
Clause-② arm: yes (narrowing) if a served layered answer becomes refused. Metadata-protocol: none.
One more door in the same doc family (contract record 6904546735 S2 on PR #34147, read in the code, not run). The diff door (GET /meta/:type/:name/diff) reads the current document by name for its per-caller judgment before it calls the protocol. Since #34036 that read refuses a doc name two enabled packages hold, with 409 naming both. So a bare diff of such a name answers 409 with candidates, and the same request with ?package= answers that 409 again. It never reaches the 400 on package that #34147's changeset and the protocol docblock state for a type not stored per package. The refusal names holders that cannot be addressed at this door. The fix belongs with this card's doc judgment: either decide whether doc is addressable by package at the history family, or answer the 400 first. Pin it on both transports.
2026-11-20T05:22Z · Folded into #34452. This card's ask — "metadata-protocol: the layered read of a doc name two enabled packages hold answers one holder's layers while the plain read refuses (ADR-0150 D3/D5)" — is now a row on #34452, which carries its shared-mechanism group so one claimant fixes them in one PR. The body here stays the detail that row points to. Closed only as a separate card, not as work.
area:packagedomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p3
Activity
objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:server·lease:E1· p3 · 2026-11-16T00:49Z⛔ Not a claim.
Kept open: PR #33885 refers to it (contract review S3). A two-holder corner, p3.
objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ
One more door in the same
docfamily (contract record 6904546735 S2 on PR #34147, read in the code, not run). The diff door (GET /meta/:type/:name/diff) reads the current document by name for its per-caller judgment before it calls the protocol. Since #34036 that read refuses adocname two enabled packages hold, with 409 naming both. So a bare diff of such a name answers 409 with candidates, and the same request with?package=answers that 409 again. It never reaches the 400 onpackagethat #34147's changeset and the protocol docblock state for a type not stored per package. The refusal names holders that cannot be addressed at this door. The fix belongs with this card'sdocjudgment: either decide whetherdocis addressable by package at the history family, or answer the 400 first. Pin it on both transports.objectstack-fleet commentedon Nov 20, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Ruled: fold · maintainer 2026-11-20T05:1xZ, verbatim: 「只考虑合并没人认领的,没开始开发的,你负责处理」
2026-11-20T05:22Z · Folded into #34452. This card's ask — "metadata-protocol: the layered read of a doc name two enabled packages hold answers one holder's layers while the plain read refuses (ADR-0150 D3/D5)" — is now a row on #34452, which carries its shared-mechanism group so one claimant fixes them in one PR. The body here stays the detail that row points to. Closed only as a separate card, not as work.