Repository navigation
docs(metadata-protocol): name the disabled-package predicate on the $expand and relation-target checks, and pin its order - #37893
Conversation
…xpansion and relation-target checks, and pin its order Docblocks of refuseUnservedRelationTarget, servedExpand, servesExpansionTarget and EXPANSION_TARGET_OPERATION, the handbook's data-plane bullet, and a pin for a target both package-disabled and unexposed. Claude-Session: https://claude.ai/code/session_01L9qibyBJGiLjzCtE4F6HHB Co-authored-by: Claude <noreply@anthropic.com>
The docblock wording now fits the lines it replaces: the facade-delegation ceiling on protocol.ts has no margin left. Claude-Session: https://claude.ai/code/session_01L9qibyBJGiLjzCtE4F6HHB Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 2 release-owned page(s) also name something this change touched. These are read-only:
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 77923707f17f09235652ea01985f3ecd81c2a093 && git checkout 77923707f17f09235652ea01985f3ecd81c2a093
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f4898bfdc961335935cb9255963405a76005cd32 224d70727eac75ea1c6d5642927a9c153c3a9563 && git checkout -B drift-repro f4898bfdc961335935cb9255963405a76005cd32 && git merge --no-ff 224d70727eac75ea1c6d5642927a9c153c3a9563
node scripts/docs-audit/affected-docs.mjs --json f4898bfdc961335935cb9255963405a76005cd32
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyBJGiLjzCtE4F6HHB Final head for L1 2026-11-27T09:47Z · zone o3-package · card #35528 Head-sha:
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a, the seat's L1 thread · 2026-11-27T09:48Z 席位核对 — L1 ACCEPT @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyBJGiLjzCtE4F6HHB Landing 2026-11-27T09:49Z · zone o3-package · card #35528
|
Requested by Tesla · project thread
Fixes #35528
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
packages/metadata-protocol/src/protocol.ts,protocol-query-validation.ts):refuseUnservedRelationTarget,servedExpandandservesExpansionTargetnow name the disabled-package predicate (isObjectPackageDisabled) beside the exposure decision, and say the package refusal is asked first. No code change.EXPANSION_TARGET_OPERATION: the card said its "alike on both doors" sentence no longer held for a disabled target. Re-measured onorigin/maine69fa46: it holds again. The dataset door's label pass now withholds a disabled package's target too (analytics-service.ts~1737, wired inservice-analytics/src/plugin.ts~1803). So the sentence stays, and one added sentence says the disabled case renders the stored id on both doors.describein the existing harness fileprotocol.expand-disabled-package-35427.test.ts, which holds the PR fix(metadata-protocol)!: $expand and a relation condition stop serving a disabled package's object #35444 pins. It covers a target that is both package-disabled and unexposed, in two forms:apiEnabled: false, and anapiMethods: ['get']whitelist that serves$expandbut notlist. The relation condition answers404 OBJECT_PACKAGE_DISABLED(code+status+object), the engine is never called, and$expandwithholds both entries. A re-enable control shows each target's own exposure answer:OBJECT_API_DISABLED404,OBJECT_API_METHOD_NOT_ALLOWED405, and the whitelist target expanded. The whitelist case discriminates in both directions.content/docs/deployment/marketplace-handbook.mdx, Data plane bullet): a lookup from an enabled object into a disabled module keeps the stored id under$expand, and a condition on the related object's fields is refused404 OBJECT_PACKAGE_DISABLED.@objectstack/metadata-protocolpatch.Tests
metadata-protocol pin files + typecheck at 224d707; full package suite at 13b9b1b (the later commit is docblock-only)
Acceptance notes
mainas written, so this PR adds no fix. The behaviour already held.describe(ruling record 6583487846). The PR fix(metadata-protocol)!: $expand and a relation condition stop serving a disabled package's object #35444 harness (SCHEMAS+makeProtocol) is exactly what this pin needs, so the pin is in that file under a[#35528]describe and the harness is not copied. Two schema rows and two lookups were added to itsSCHEMAS.Verification
Read first: (1) the new
describeat the end ofprotocol.expand-disabled-package-35427.test.ts, (2) therefuseUnservedRelationTargetdocblock inprotocol.ts, (3) theEXPANSION_TARGET_OPERATIONdocblock.Two-minute check:
pnpm --filter @objectstack/metadata-protocol exec vitest run src/protocol.expand-disabled-package-35427.test.tsshould report 15 passed, 3 of them under[#35528].Derived gate families, local run at head 224d707
node scripts/pm/dispatch-gates.mjs --commandsderived 104 families from the 5 changed paths. All 104 were run after the final commit. Each exit code was captured before any pipe, and the--ranreconciliation over that record says:104 derived famil(ies) accounted for — 103 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).pnpm check:facade-delegation-only:packages/metadata-protocol/src/protocol.ts: 11705 lines, ceiling 11705 (0 left).node scripts/check-plugin-teardown-shape.mjs --self-testexited 3. The reason is a shallow clone: it cannot read its positive-control commit621a4876, and this run did not deepen the shared clone. CI runs it.Ceiling note: the first head (13b9b1b) grew
protocol.tsby 11 lines, and the facade line ceiling (0 margin, ruling 6897467376) went red on that. The second commit rewrites the docblocks so they take exactly the lines they replace, net 0 inprotocol.ts. The ceiling was not raised.Generated by Claude Code