Skip to content

fix(runtime)!: callData refuses a disabled package's data at every relation hop and for a system context too - #36687

Merged
os-zhuang merged 6 commits into
mainfrom
claude/project-thread-rhdqay
Nov 23, 2026
Merged

os-zhuang merged 6 commits into
mainfrom
claude/project-thread-rhdqay

Conversation

@os-warren

@os-warren os-warren commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Warren · project thread

Fixes #36393
Fixes #35526
Clause-②: yes (narrowing)
Metadata-protocol: none
Skills-docs: none — no skill or eval teaches a relation condition into a disabled package's object or a system context through callData; the change refuses reads, and no key, value or metadata type an author writes moves

维护者速读

  • 应用包停用后,通过统计或 AI 助手查数据时,隔两层、三层关联去做条件也会被拒绝,不能再用「1 还是 0」推出停用包里的字段内容。
  • 按你 11-22 的裁决「系统身份也一律拒绝」,系统身份调用和普通成员一样被拒;没有停用任何包的环境不受影响。
  • 没有协议服务的部署上,直接读停用包的对象现在也会被拒绝(以前会照常返回)。

What changes

packages/runtime/src/action-execution.ts (callData) and packages/mcp/src/stdio-data-bridge.ts, their pin files, two changesets.

  1. Every hop (card item 1, S1). refuseUnservedRelationTargets walked the queried object's relation sites once. The engine lowers a condition beneath a condition up to RELATION_CONDITION_MAX_HOPS = 3 relationships, so aggregate dp_alpha where { c_ref: { b2_ref: { secret_note: V } } } with dp_beta's package disabled still answered 1 / 0. It now descends each site's own condition against its target's field map, asking every target on the way, disabled package first and then exposure, with the full position as param (where.c_ref.b2_ref). The order and depth backstop match the protocol's twin walk (refuseUnservedRelationTargetsIn). The same fix covers the exposure question past hop 1, which had the same gap since security(runtime): callData's engine fallback hands a caller's where to ql.find after judging only the addressed object, so a nested-relation condition skips the target's exposure ask (census row 10 of #22661) #22823.
  2. System context refused too (ruling on runtime: callData's aggregate arm answers a relation condition on a disabled package's object (a 1/0 oracle) while the data route and callData's query arm answer 404 OBJECT_PACKAGE_DISABLED #35526, option 0 「系统身份也一律拒绝」, comment 7077381587). The disabled-package question is no longer under exposureGated = !isSystem. It is asked of every caller, for the addressed object and for every relation target. The exposure question for a system context is unchanged, and a pin holds that.
  3. No-protocol host, addressed object (card item 2, E3). callData now reads the engine registry's isObjectPackageDisabled once per call (packageDisabledPredicate, through @objectstack/core's registryObjectPackageDisabled) and refuses a disabled package's addressed object with the protocol's own objectPackageDisabledError before any exposure verdict. Measured before the fix: on a host with no protocol service, aggregate dp_beta and query dp_beta were served to a member and to a system context. On a protocol host, aggregate dp_beta was served to a system context. The same predicate decides the relation targets, so the raw driver the MCP multi-env query fallback threads through (no registry) no longer decides it.
  4. MCP stdio bridge. enforceRelationTargetExposure descends every hop the same way, asking enforceApiExposure (disabled package, then exposure) at each target with its full position. A system context is asked nothing, unchanged (the ruling binds callData); the walk leaves that bypass to enforceApiExposure and adds no isSystem read of its own (check-system-context-census). The stdio system principal and no-protocol host are mcp stdio bridge: a system principal, and any caller on a host with no protocol service, is still served a disabled package's data (callData refuses both since #36687) #36689.
  5. Changeset correction (card item 3, S2). .changeset/35526-calldata-relation-disabled-package.md has not been consumed by a release (it is still on main; the open version PR chore: version packages #35129 has not merged). In this PR, its Clause-②: line reads yes (narrowing…), its TO line is narrowed to "a condition directly beneath a lookup of the queried object", and its N5 sentence no longer glosses a system context as a hook's ctx.api.
  6. Docs. content/docs/permissions/system-context.mdx row 48 (callData, refuseUnexposedDataAction) gains one sentence: the system bypass covers exposure only, and a disabled package's object is refused to a system context too, addressed or as a relation target at any hop.

DELIBERATE CORRECTION: .changeset/35526-calldata-relation-disabled-package.md. This PR makes that pending release note's system-caller sentence and its one-hop TO line incomplete, and the card asks for its Clause-② line to be corrected. check:empty-changeset is red on it locally by design; the seat confirms by its own record.

Why

A disabled package's records are off the data plane: the protocol's data route answers 404 OBJECT_PACKAGE_DISABLED for its objects and for a relation condition into them, at every hop and for every caller. callData's engine arms gave a second answer to the same question.

Declaration note. Clause-②: yes (narrowing), as the seat's claim declares (7099212652). The change narrows a published door (callData, the MCP stdio bridge); it adds or removes no export. The narrowing is BREAKING and gets a narrowing-face L2 at the contract-review tier.

Who changes: hosts that hand callData a system context (HttpDispatcher.handleMcp / buildMcpBridge, dispatchAction). No door in this repository does that, and ctx.api never passes through callData (ruling analysis on #35526).

Verification

At head 9198e1cd47 (the code at d6f70d698c plus the stdio walk's dropped isSystem return, behaviour-equivalent, and the row-48 sentence):

  • Pin file packages/runtime/src/action-execution-calldata-relation-disabled-package-35526.test.ts (real ObjectQL + SqlDriver in-memory SQLite + the real protocol): 46 passed. With action-execution.ts reverted to origin/main 6a73185: 23 failed | 23 passed. The red ones are the two-hop member and system pins on both hosts, $or / $not, two-hop exposure, the order pins, the flipped SYSTEM one-hop pins, and the addressed-object pins (no-protocol host for both callers, the protocol host for system).
  • packages/mcp/src/stdio-data-bridge.relation-condition-target-exposure.test.ts: 41 passed at 9198e1cd47. With stdio-data-bridge.ts reverted: 10 failed | 31 passed (two-hop exposure direct / $or / $not, two-hop disabled package, order; for query and aggregate).
  • Pins changed in place: the runtime: callData's aggregate arm answers a relation condition on a disabled package's object (a 1/0 oracle) while the data route and callData's query arm answer 404 OBJECT_PACKAGE_DISABLED #35526 SYSTEM pin flips from "the count is served" to refused, per the ruling. The query-fallback "re-enabled" control now actually disables, then re-enables (N1). Order (N3) and $or / $not (N4) are pinned.
  • @objectstack/runtime full local suite (at d6f70d698c; runtime source unchanged since): Test Files 644 passed (644), Tests 13316 passed | 25 skipped. @objectstack/mcp full suite (at d6f70d698c): 83 files, 1481 tests passed.
  • Dogfood battery at 9198e1cd47, under the verify lock (pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test): VERDICT command-exit 0, held the lock 36m18s on a shared box; Test Files 487 passed | 3 skipped (490); Tests 4121 passed | 68 skipped (4189).
  • pnpm --filter @objectstack/runtime --filter @objectstack/mcp typecheck: exit 0. eslint on the changed source and test files: exit 0. check-system-context-census exit 0 at 9198e1cd47 (red at af5e5f8e10: the walk's own isSystem read had no row).
  • check:adr-0087-registration exit 0, check:changeset-fixed exit 0, check-changeset-no-major no major. check:empty-changeset red on the DELIBERATE CORRECTION above, as expected.
  • overlap-check --branch=claude/project-thread-rhdqay: merges cleanly against origin/main. Its only PR overlap is chore: version packages #35129 (chore: version packages, the Changesets bot PR, which deletes pending changesets on every regeneration). With that PR excluded: VERDICT clean exit 0.
  • CI at 9198e1cd47: every run success or skipped, except Check Changeset (red only on the declared DELIBERATE CORRECTION). Test Core 10/10, Lint & Repo Gates, TypeScript Type Check, Build Core, Build Docs, Live E2E UI, PR-body guards, Governed Surface Queue Guard: success.
  • Contract review at the contract-review tier, same head: PASS (7100010264).
  • NOT MEASURED: dispatch-gates --commands full derived list (left to the seat's L1).

Acceptance notes

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes (eslint on changed files).
  • 4. One issue, one branch off an up-to-date main, one pull request. (two cards ruled as one change)
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done. (seat's L1)

🤖 Generated with Claude Code

https://claude.ai/code/session_01JQwxbYSL1X4Mj36e8WtU7H

@os-warren os-warren self-assigned this Nov 23, 2026
@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 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/mcp, @objectstack/runtime, touching 5 documentable anchor(s).

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

  • content/docs/api/declarative-endpoints.mdx (via callData (symbol, a top-level function))
  • content/docs/permissions/authorization.mdx (via callData (symbol, a top-level function))
  • content/docs/permissions/system-context.mdx (via callData (symbol, a top-level function))
  • content/docs/protocol/kernel/http-protocol.mdx (via callData (symbol, a top-level function))
What this run could not see
  • the SDK route bridge reached 68 of 251 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 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; 124 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 — 37 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 c1e6cf75a757a7e9102bae608ddb020135619882 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 23703982396a1d81f6f72cbcedfc50f00da33872 — the merge of head 9198e1cd479993589423506030d28efa593f490c into base c1e6cf75a757a7e9102bae608ddb020135619882, 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 23703982396a1d81f6f72cbcedfc50f00da33872 && git checkout 23703982396a1d81f6f72cbcedfc50f00da33872
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin c1e6cf75a757a7e9102bae608ddb020135619882 9198e1cd479993589423506030d28efa593f490c && git checkout -B drift-repro c1e6cf75a757a7e9102bae608ddb020135619882 && git merge --no-ff 9198e1cd479993589423506030d28efa593f490c

node scripts/docs-audit/affected-docs.mjs --json c1e6cf75a757a7e9102bae608ddb020135619882

⚠️ 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 c1e6cf75a757a7e9102bae608ddb020135619882 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…enforceApiExposure; system-context page row 48 names the package refusal

Copy link
Copy Markdown
Collaborator Author

CI notes for this PR:

  • Check Changeset is red by design. It refuses the edit to .changeset/35526-calldata-relation-disabled-package.md, a pending release note this PR did not add. This is a DELIBERATE CORRECTION (callData: the disabled-package refusal of a relation condition stops at the first hop (and the no-protocol fallback still serves the addressed object) #36393 item 3), not a collision: its Clause-②: line now reads yes (narrowing…), its TO line is narrowed to a condition directly beneath a lookup of the queried object, and its system-context sentence no longer calls a hook's ctx.api a callData caller. The note is declared in the PR body; the dispatching seat confirms it by its own record. It stays red until then, and skip-changeset does not apply.
  • The Lint & Repo Gates and TypeScript Type Check failures at d6f70d698c and af5e5f8e10 are cancellations: every lane reads concluded cancelled, superseded by the next push. They are not verdicts.
  • 9198e1cd47 fixes a real gate. Locally, check-system-context-census was red at af5e5f8e10: the stdio relation walk's isSystem early return was a new elevation read with no row on content/docs/permissions/system-context.mdx. The walk now leaves that bypass to enforceApiExposure (behaviour unchanged, 41/41 pins pass), and row 48 of that page says the system bypass covers exposure only. The census is exit 0 at the new head.

Generated by Claude Code

@objectstack-fleet

objectstack-fleet Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9198e1cd479993589423506030d28efa593f490c
Local-runs: none
Scope: packages/runtime/src/action-execution.ts, packages/runtime/src/action-execution-calldata-relation-disabled-package-35526.test.ts, packages/mcp/src/stdio-data-bridge.ts, packages/mcp/src/stdio-data-bridge.relation-condition-target-exposure.test.ts, .changeset/36393-calldata-disabled-package-every-hop.md, .changeset/35526-calldata-relation-disabled-package.md, content/docs/permissions/system-context.mdx (row 48) + cited, read only: packages/core/src/utils/relation-condition-sites.ts, packages/core/src/security/effective-object-permissions.ts, packages/metadata-protocol/src/protocol-query-validation.ts, packages/metadata-protocol/src/index.ts, packages/objectql/src/relation-filter-lowering.ts, packages/objectql/src/engine-query-lowering.ts, packages/objectql/src/engine-delete-and-aggregate.ts, packages/objectql/src/registry-package-addressing.ts, packages/runtime/src/action-dispatch.ts, scripts/pm/clause2-line.mjs, scripts/check-empty-changeset.mjs, AGENTS.md, .claude/skills/pm-dispatch/references/execution-duties.md, contract-review.md, landing-operations.md
Security-touching: yes
Rule-change-verified: none

Head note. The review was asked at d6f70d698c. The head moved twice during the review. I read both deltas.

  • d6f70d698c to af5e5f8e10: one line in .changeset/36393-calldata-disabled-package-every-hop.md, Clause-②: no (narrowing…) to Clause-②: yes (narrowing…). No code.
  • af5e5f8e10 to 9198e1cd47: packages/mcp/src/stdio-data-bridge.ts drops the context?.isSystem early return in the relation walk and rewords its comment; content/docs/permissions/system-context.mdx row 48 gains one sentence. Nothing else.
    This record is for 9198e1cd47. Merge base: 6a731859de. Everything below is read from the diff and the tree. Nothing was run.

① Derived judgments

Every hop, callData: yes. refuseUnservedRelationTargets is now a recursive walk(schema, condition, prefix, depth). At each site it asks the package predicate, then resolves the target, then asks exposure (when exposureGated), then descends into site.condition against the target's field map. param is the full position (where.c_ref.b2_ref). Both arms that hand the engine a caller's where call it: the aggregate arm and the no-protocol query fallback. The query arm on a protocol host goes through findData, which already asks every hop.

Every hop, stdio bridge: yes. enforceRelationTargetExposure recurses the same way. Each target gets the whole of enforceApiExposure (the by-name read throws the package refusal first, then exposure) at its full position. Both call sites (query, aggregate) pass through it.

$or, $and, $not, nested: covered. Both walks find sites with relationConditionSites, which walks every $ key and every array member. Inside a relation condition the engine admits declared field keys only (admitRelationCondition refuses an undeclared key), so a combinator beneath a lookup is refused by the engine before any read. The walk still looks there. The walk's site set is a superset of what the engine lowers.

Bounded and cycle-safe: yes. Depth stops past RELATION_CONDITION_WALK_DEPTH = 8, the same number as the protocol's twin walk and the engine's evaluate gate. The engine serves RELATION_CONDITION_MAX_HOPS = 3, so the walk asks at least every hop the engine serves. relationConditionSites holds a WeakSet per call, so a cycle inside one level ends. A cycle across levels ends at depth 8. A condition past three hops is refused by the engine (hop-limit) at admission, before any related read.

System caller: exactly the ruling. The package question left the exposureGated guard. It is asked of every caller, for the addressed object (top of callData, every action) and for every relation target. The exposure question still sits under asked.exposureGated and refuseUnexposedDataAction still returns early for system. A pin holds that a system context is served a two-hop condition into an unexposed object.

Stdio bridge system behaviour: unchanged, and it does not ask the package question. At this head the walk has no isSystem branch of its own. It runs for a system context, and at every hop it calls enforceApiExposure, whose first line returns for isSystem before it reads the declaration. The package refusal on this bridge lives in that by-name read, so a system context is asked neither question at any hop. The walk's own field-map read catches a thrown package refusal and finds no site; it refuses nothing. So the answer for system is the one main gives. The only difference from af5e5f8e10 is that the walk now does its field-map reads for a system caller too, as main did at the first hop. The pin "a system context is not asked the exposure question at any hop" still holds. Dropping the branch is right: one owner for the bypass, and the census counts one site.

Should stdio match the ruling? Not in this PR. The ruling's words bind callData. The reason behind it (a disabled package is off the data plane for every caller, as the protocol answers) applies to the stdio bridge as well, so I expect the same answer there. But it is a second published door with its own host population, and nobody has ruled on it. It does not match today. See ④, note N2.

Doc sentence, row 48: true of the code. "The bypass covers exposure only: a disabled package's object is refused 404 OBJECT_PACKAGE_DISABLED to a system context too, addressed or as a relation target at any hop". The row is the runtime row (callData, refuseUnexposedDataAction). In callData the addressed-object check runs for every caller on every action, and the relation walk asks the package predicate for every caller at every hop. Exposure stays skipped for system. The sentence does not speak for the stdio bridge, which has its own row 15. Prose face, so outside the L2 face, but it is checked here because the PR adds it.

No-protocol host, addressed object: closed and measured. packageDisabledPredicate reads the engine registry's isObjectPackageDisabled once per call (getObjectQL, then the objectql slot) and callData throws objectPackageDisabledError(params.object) before any exposure verdict. The predicate resolves names (resolveObjectKey), as the data route's does. The PR body states the before-fix measurement. Eight pins hold it: aggregate and query, member and system, both hosts, each with a real re-enable control.

Clause-② line. The repo defines the value by one question: does the card widen the accepted set or enlarge the public surface (execution-duties.md line 76; scripts/pm/clause2-line.mjs). A card that narrows a published accepted set is Clause-②: no (execution-duties.md line 108). A runtime security change is not Clause-② (line 106). yes (narrowing) is defined as "a diff that widens one surface and narrows another". This diff adds no export and widens nothing. So the true line is Clause-②: no (narrowing). The first spelling on this branch was the true one. The line at this head, Clause-②: yes (narrowing), copies the claim (7099212652), as the SKILL.md template tells the dev to do. It over-declares. I grade this a note, not a fix, for three reasons. The over-declaration is in the safe direction (a wrong no is the auditable false declaration, landing-operations.md line 8). Every gate reads yes (narrowing) and no (narrowing) as the same narrowing face at the same tier. And the claim, the PR body and the changeset agree at this head. If the seat wants the true value, it amends the claim to Clause-②: no (narrowing) first, then the PR body and the changeset in one stroke. A PR line that disagrees with the claim would be worse than either spelling.

Metadata-protocol line. Metadata-protocol: none is true. No key, accepted value or metadata type moves.

DELIBERATE CORRECTION of .changeset/35526-calldata-relation-disabled-package.md. Three lines changed. The frontmatter did not.

Line 1, OLD: "Clause-②: no (narrowing: for a non-system caller, callData's aggregate arm and its query fallback on a host with no protocol service refuse a nested-relation condition whose target belongs to a disabled package with 404 OBJECT_PACKAGE_DISABLED, where they answered the count or the matching rows)"
Line 1, NEW: "Clause-②: yes (narrowing: adds the root export objectPackageDisabledError to @objectstack/metadata-protocol; for a non-system caller, callData's aggregate arm and its query fallback on a host with no protocol service refuse a nested-relation condition whose target belongs to a disabled package with 404 OBJECT_PACKAGE_DISABLED, where they answered the count or the matching rows)"
Correct. #36337 added that root export (packages/metadata-protocol/src/index.ts line 14). A new export enlarges the public surface, so yes is true here. This is what #36393 item 3 asks.

Line 2, OLD: "- TO: the call is refused 404 OBJECT_PACKAGE_DISABLED, naming the disabled object as object and the condition's position as param (for example where.b_ref), before the engine reads anything. The error is the data route's own."
Line 2, NEW: "- TO: a condition directly beneath a lookup of the queried object is refused 404 OBJECT_PACKAGE_DISABLED, naming the disabled object as object and the condition's position as param (for example where.b_ref), before the engine reads anything. The error is the data route's own."
Correct. It uses the card's own words. #36337 refused one hop only.

Line 3, OLD: "The fix: re-enable the package to filter on its records again, or filter on the lookup's stored id. An environment with no disabled package sees no change. A system context (an in-process caller, such as a hook's ctx.api) is not changed: it is still answered the count."
Line 3, NEW: "The fix: re-enable the package to filter on its records again, or filter on the lookup's stored id. An environment with no disabled package sees no change. A system context handed to callData is not changed by this entry: it is still answered the count. (A hook's ctx.api is not such a caller: it reaches the engine directly and never passes through callData.)"
Correct. The false gloss is gone. "by this entry" keeps the sentence true beside the new entry, which refuses system.

Not consumed: the file is on origin/main, no CHANGELOG.md on origin/main carries its text, and the version PR #35129 is open and unmerged. So the changeset is the right place, not a CHANGELOG. This correction is intended and correct. check:empty-changeset is red on it by design. This same-head record at the contract-review tier is the confirmation landing-operations.md asks for.

② Semver level

③ Boundary flags

  • Order: disabled before unexposed, and pinned. In the walk the package throw comes before the exposure check. At the top of callData the package throw comes before refuseUnexposedDataAction. Pins: a relation target both disabled and apiEnabled: false (both hosts), the addressed object both ways (both hosts), and the stdio twin for query and aggregate. Each relation pin then re-enables and expects the exposure refusal.
  • Error shape: the data route's. objectPackageDisabledError is the protocol's one constructor. Pins compare code, status 404, object and param.
  • Remaining 1/0 oracles: none found on this door. Aggregate and count: refused before engine.aggregate. An aggregation's own filter and having: the engine lowers relation conditions in where only (resolveWhereTokens; the per-aggregation filter takes resolveThenLowerWhere with no relation step). Query arms: the protocol path asks every hop; the fallback is walked. Deeper than three hops: the engine refuses at admission. Reverse relation: not served by the engine. master_detail, user, tree: the walk and the engine share REFERENCE_VALUE_TYPES and referenceTargetOf.
  • Re-enable control: real. Every control calls disablePackage and then enablePackage. The old query-fallback control that never disabled now does (N1).
  • No test weakened. The 16 removed lines are the old header text and the one SYSTEM pin that held "the count is served". That pin flips to refused, as the ruling orders, and gains a control. No assertion was loosened.
  • Pins fail without the fix: consistent by reading. I counted the runtime pins that the main source cannot pass: 12 two-hop aggregate, 6 addressed-object, 3 query-fallback, 2 flipped SYSTEM. That is 23, the thread's number. Stdio: two verbs times five (three shapes, package, order) is 10. Read, not run.
  • Fail-open kept, not widened. A target schema that cannot be resolved finds no deeper site. The package predicate is asked by name before the schema is read, so a disabled target is refused even then.

④ Design judgment

The change does what card #36393 items 1 to 3 and ruling 7077381587 ask, and no more. One walk per door, the same order as the protocol's twin, the protocol's own error, one predicate read per call. Using the engine registry for the predicate is the right fix for the no-protocol host: the refusal no longer depends on a service the host may not register.

No must-fix, no should-fix.

Notes:

  • N1. Clause-② value. The true line under the written definition is Clause-②: no (narrowing). The head carries yes (narrowing) to match the claim. Safe direction, same face, same tier. If corrected, correct the claim first and then all three places together.
  • N2. Not in scope and not filed: the stdio bridge on a no-protocol host still serves a disabled package's object, and a system principal on the stdio bridge is asked neither question at any hop. The ruling names callData only, so the PR is right to leave both. The seat should file one card so the question reaches the maintainer. Row 15 of the system-context page says only that the bridge skips the exposure gate; that card can fix the row too. It is not this PR's to decide.
  • N3. The PR body has a (narrowing) arm and no Skills-docs: line. The SKILL.md template owes one. This is the seat's L1 line, with no head move.
  • N4. The title's ! owes the dogfood battery. The PR body still reports it as running at af5e5f8e10, and its Verification section names older heads. The seat's L1 needs both restated for 9198e1cd47.
  • N5. No three-hop pin. The recursion is generic and two hops prove the descent. A three-hop pin at the engine's limit would be cheap.
  • N6. "No door in this repository hands callData a system context" rests on the ruling's analysis. I spot-read action-dispatch.ts: its callData calls carry the request's own context. I did not re-audit every caller.
  • N7. The walk reads where in object form only. The PR body says so. The engine's relation lowering reads the same form.
  • N8. packageDisabledPredicate adds one engine resolution to every callData call. Small, and worth knowing.

Implemented-by: claude/project-thread-rhdqay
Reviewed-by: session_01JQwxbZeHNsF3RWcWpj7rGj

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

维护者速读

应用包停用之后,它的数据不能再通过「按关联条件统计」的方式被一点点问出来了。这条规则现在每一层关联都检查,系统身份调用也一样拒绝,与之前的裁决「系统身份也一律拒绝」一致。
命令行数据通道上的系统身份还没有改,那一项单独立了卡 #36689,等维护者裁定。
合同级复核通过,全量回归通过,CI 只有一项按设计变红(更正旧的变更说明),席位确认后落地。
要你做的:无。#36689 那项等你定。

席位核对 — ACCEPT (L1) · repo:objectstack#1 · head 9198e1cd · 2026-11-23T12:43Z

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 23, 2026 12:44
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 23, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

维护者速读

数据查询接口(callData)以前会让普通调用者通过「关联字段的条件」去筛选一个已停用的应用包里的数据,这次在每一层关联上都拒绝,和标准数据接口的行为一致。属于「收紧」:以前能执行的这类查询现在会返回「包已停用」的错误,所以按规则要 os-zhuang 在 GitHub 上批准后才能合并。
合同级复核通过(无必改项),CI 全绿。
要你做的:无(等 os-zhuang 批准)。

Narrowing hand-off · 2026-11-23T13:00Z: the merge queue's governed guard dequeued this pull because it declares Clause-②: yes (narrowing), which lands like Tier H (ruling 2026-11-19 on #35321). Record half: the same-head CONTRACT_REVIEW_TIER PASS 7100010264 at 9198e1cd, with no must-fix and no should-fix (its grade line is now spelled the way the guard reads it; nothing else changed). Seat ACCEPT 7101552849. Human half: os-zhuang's GitHub Approve is requested.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 23, 2026
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit ddceb22 Nov 23, 2026
62 of 65 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-rhdqay branch November 23, 2026 13:34
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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants