Skip to content

fix(runtime)!: MCP list_actions summarises each action against the object as the caller is served it (ADR-0106) - #31075

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/sec-hardening-r19
Nov 7, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/sec-hardening-r19

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

security#1 · os-tesla · session_01L9qibvynRbCtMndW8EHNGc

Clause-②: no (narrowing) — list_actions over /api/v1/mcp now answers a caller only the actions, and the param details, that the /meta object door's projection serves that caller, which ADR-0106 D1 ("a field the caller cannot read does not exist for that caller, on any plane") and the MCP security model already promise, so no stated contract is narrowed; what narrows is the answer to a caller with a readable: false field. Nothing is widened: no export, answer member, error code or status is added.
Metadata-protocol: none
Skills-docs: no move — skills/** teaches no param summary for list_actions; content/docs/ai/connect-mcp.mdx states the projection.

维护者速读

  • 改了什么:MCP list_actions(HTTP)对每个动作,按 /meta 对象门对该调用者的 ADR-0106 投影来判定与摘要:投影会隐去的动作(参数绑定了调用者不可读的字段,含 objectOverride 指向的他对象字段)不再列出;列出的动作,其参数摘要只读投影后的对象,不再带出不可读字段的名称、标签、说明或选项。
  • 为什么改:ADR-0106 D1 要求不可读字段在任何门都不存在;/meta 已隐去这类动作、describe_object 已按调用者投影,唯独 list_actions 仍从未投影的对象读字段元数据。
  • 风险与回滚:对带 readable: false 字段的调用者是收窄(标题带 !);某动作所属对象的字段可见性无法评估或投影后无字段时,list_actions 与 list_objects 一样拒绝(FIELD_VISIBILITY_UNRESOLVED / 503);点名 sys_* 对象的 run_action 预筛以列表为准,被隐去的动作在那里同样被拒。无限制调用者、D4 豁免者、无 security 服务的部署逐字节不变。回滚即 revert 本 PR。
  • 先看:packages/runtime/src/domains/mcp.ts(servedActionObject 及其在 listActions 的调用点)、packages/runtime/src/domains/mcp-object-schema-mask.test.ts(新增的最后一个 describe)。
  • 两分钟验证:pnpm --filter @objectstack/runtime exec vitest run src/domains/mcp-object-schema-mask.test.ts,预期 Tests 23 passed (23)。
  • 需要你做的:无,席位落地。

What changes

  • packages/runtime/src/domains/mcp.ts — the HTTP MCP bridge gains servedActionObject(action, obj): the action is projected as its object's only actions entry through servedToCaller, the same /meta masker and projection (resolveObjectMasker → maskObjectSchema) describe_object uses. listActions skips an action that projection withholds and summarises every kept one against the projected object. That is the /meta object door's own rule (maskDeniedFieldReferences, an action's params read by actionParamReadsDenied, objectOverride judged on the object it names), not a second one.
  • The action collection, the exposure and capability gates, capabilityRefusal, run_action and resume_run keep reading readServedObjects() whole, as before.
  • content/docs/ai/connect-mcp.mdx — the security model states the list_actions projection, and the troubleshooting row names it as a reason an action is missing.
  • Changeset: @objectstack/runtime patch, BREAKING banner and the ADR-0087 not-required disposition.

Tests

A new top-level describe in the shared harness packages/runtime/src/domains/mcp-object-schema-mask.test.ts: the real SecurityPlugin on a real ObjectQL over a real SqlDriver, the protocol over that engine, the bridge handleMcp builds for each persona over /api/v1/mcp, and the dispatcher's /metadata/object/:name door beside it.

  • A member whose set marks budget and the other object's rate readable: false is listed neither set_budget (params: [{ field: 'budget' }]) nor quote_rate (params: [{ field: 'rate', objectOverride: … }]), and the listing equals the action set the /metadata door serves them; the field names, the label, the help text and the other object's label appear nowhere in the answer.
  • A param bound through objectOverride to the other object's readable budget is listed, and its summary carries no label or help of this object's denied budget.
  • A member denied every field of the action's object is refused FIELD_VISIBILITY_UNRESOLVED / 503, as list_objects refuses them.
  • Controls: an unrestricted member sees the full set_budget summary (budget, number, Approved budget — Spend ceiling the board signed off) and the cross-object one, byte-identical to a deployment with no security service; an action binding a readable field, and one binding none, is summarised to the restricted member exactly as to the control.

Ablations, each through scripts/ablation-replace.mjs (anchor hit 1 → 0, blob changed, restored to the HEAD blob with git diff HEAD empty). The suite imports the bridge from src, so no dist leg applies.

  • Projection off (servedActionObject returns the object unprojected): 3 failed | 20 passed — the restricted listing, the cross-object summary and the refusal go red; the precondition, both controls and the 17 earlier cases of the file stay green.
  • Withholding kept, summary against the unprojected object: 1 failed | 21 passed, measured at bb679937a9, before the refusal case was added (the refusal is raised by the projection itself, which this mutation keeps) — only the cross-object summary pin goes red.

Acceptance notes

  • The stdio MCP bridge implements no listActions (packages/mcp/src/stdio-data-bridge.ts), so list_actions is an HTTP-only tool; nothing changes there.
  • run_action and resume_run resolve and gate against the unprojected declarations, unchanged. Running an action is judged by ai.exposed, the capability gate, the installation switch, the param contract, confirmation and the subject record under row-level security; field readability is not one of those gates, and that is unchanged here. One consequence of the listing: the run_action pre-screen for a call naming a sys_* object admits only a listed action, so an action withheld here is refused there with the system-object sentence.
  • An action with no object definition (an object-less action) carries no field of an object to project, and is listed as declared.

Verification

Targeted suite

pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains/mcp-object-schema-mask.test.ts → Test Files 1 passed (1) · Tests 23 passed (23).

@objectstack/runtime, whole package, at fee5571 (origin/main merged)
  • pnpm --filter @objectstack/runtime test under the verify lock → Test Files 553 passed (553) · Tests 8875 passed | 19 skipped (8894) · VERDICT command-exit 0.
  • pnpm --filter @objectstack/runtime typecheck → VERDICT command-exit 0; check:test-typecheck: OK, the test layer held to its shrink-only debt ledger.
  • Built first: pnpm --filter '@objectstack/runtime...' build, exit 0.
Derived gate families (scripts/pm/dispatch-gates.mjs --commands, at fee5571)

90 derived, 90 run locally. 87 exit 0. Three refused on a prerequisite (exit 3), so NOT MEASURED here, each run by CI on this PR:

  • NOT MEASURED: pnpm check:dual-build-cjs-loads, reason: it reads every package's built output and this worktree built only the runtime closure.
  • NOT MEASURED: pnpm --filter @objectstack/spec run check:skill-examples, reason: packages/client-react/dist not built here.
  • NOT MEASURED: pnpm check:type-check-debt, reason: its re-measure build did not get a turn on the shared verify lock (queue-timeout).

--ran reconciliation: 90 derived, 90 run, 0 UNRUN.

NOT MEASURED at open: the dogfood battery (pnpm --filter @objectstack/dogfood test, title carries !), reason: queued behind another run on the shared verify lock; its reading goes to the seat's report.


Generated by Claude Code

@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 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

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

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

  • content/docs/permissions/authorization.mdx (via buildMcpBridge (symbol, a top-level function))
What this run could not see
  • the SDK route bridge reached 63 of 224 client-bound route-ledger rows — the other 161 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 161: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 57 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 104 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 — 28 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 3f61e4f8fb567160f839c3269ee95aa89ee4f1db → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 3f61e4f8fb567160f839c3269ee95aa89ee4f1db

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

security#1 · os-tesla · session_01L9qibvynRbCtMndW8EHNGc

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: fee5571477bdbf70e38ed3724b5a00a6e481b12c
Local-runs: none
Reviewed-at: 2026-11-07T03:50Z
Scope: packages/runtime/src/domains/mcp.ts, packages/runtime/src/domains/mcp-object-schema-mask.test.ts, content/docs/ai/connect-mcp.mdx, .changeset/mcp-list-actions-field-mask.md + packages/runtime/src/action-execution.ts (summarizeAction, summarizeActionParams, collectActionDeclarations, systemObjectActionExposureError, actionPermissionError), packages/runtime/src/domains/meta.ts (resolveObjectMasker, maskObjectSchema), packages/metadata-core/src/object-schema-fls.ts (applyObjectSchemaMask, resolveObjectSchemaMaskPosture, relateObjectSchemaMaskPosture), packages/metadata-core/src/object-schema-fls-references.ts (maskDeniedFieldReferences, actionParamReadsDenied, presentationEntry), packages/mcp/src/mcp-http-tools.ts (list_actions, the sys_* run_action pre-screen, isListableAction, systemObjectActionRefusal), packages/mcp/src/skill-md.ts, ui/apps/console/src/pages/developer/objectstack-skill.ts, content/docs/ai/actions-as-tools.mdx, docs/qa/platform-checklist/areas/ai.json, packages/plugins/plugin-security/src/objects/default-permission-sets.ts, packages/platform-objects/src/identity/*.object.ts, examples/app-showcase/src/security/permission-sets.ts, examples/app-todo/test/mcp-actions.e2e.ts, docs/adr/0106-metadata-plane-fls-object-schema-masking.md

Read against origin/main at cb8f5200002cd4e8bb6ffd6f9d3b642f2dcb8309 (merge base 5210acfbaee4a935c8bf0d79111c260797561fc0). Every gate-carrying check on the head is success; the dogfood shards are queue-leg jobs and did not run on this head, which the body also reports as NOT MEASURED. The face is the changeset's own: the recogniser maps the four paths to no schema or governed face and defers to the Clause-②: no (narrowing) line, so the narrowing face it is.

① Derived judgments

The diff makes exactly one accept-set change and inherits one consequence of it.

1. list_actions over HTTP lists an action only when the /meta object door would serve it to this caller, and summarises it against the object as that door serves it. Right. ADR-0106 D1 states the rule for every plane; D5 names "any other schema-bearing endpoint" as in scope; PR #31042 brought describe_object and list_objects under the same projection; the param summary (summarizeActionParams) reads field label, help text, type and select options off the object, so it was the one MCP read still answering from the unprojected object. The PR does not write a second rule: servedActionObject hands the action to servedToCaller as its object's only actions entry, and the drop decision is maskDeniedFieldReferences' own (presentationEntry over actions, actionParamReadsDenied for params, objectOverride judged on the object it names through relate). The listing and the /meta item therefore cannot disagree about which actions exist for a caller; the new test pins the two doors equal on the fixture and pins the unrestricted and no-security controls byte-identical to before.

Two things the body under-describes, both inherited from the /meta rule and both correct there: (i) the drop is not only "a param binds a field the caller cannot read" — any non-prose position of the action that names such a field drops it (visible, patch keys, defaultValue, option predicates), by the same table the /meta door applies; (ii) label, description, helpText and the other prose keys are skipped, so an author's sentence naming a field does not cost the action. Both follow the published rule; ③ carries the documentation consequence of (i).

2. The refusal. A caller whose field visibility on a listed action's object cannot be evaluated, or whose projection leaves that object with no field, is refused the whole list_actions answer with FIELD_VISIBILITY_UNRESOLVED / 503. Right as written — it is D6 tier 3 and the "never an empty-fields 200" rule, and list_objects on main already refuses the whole listing on one such object, as the /meta list door does. Only an object with at least one otherwise-listable action reaches the projection, so an object the caller has no action on cannot trigger it. The design cost (one object's fault refuses actions on every other object) is the sibling doors' cost too and belongs to a separate rule-level step, not to this PR.

3. The sys_* run_action side effect. The MCP tool layer's pre-screen for a call naming a sys_* object admits only an action the bridge's own listing carries, so an action the projection withholds is now refused there, with the system-object sentence, and capabilityRefusal (which reads the declarations whole) answers nothing for it. Judged: the direction is right — the sys_* door already made "listed for you" the condition of running, nothing runs, and the answer for a withheld action is the same as for an action that was never declared, which is how the /meta door treats it. Two consequences stay open and are placed in ③: the sentence's lead names author exposure as the reason, which is not this case's reason; and the two run doors now differ on whether field readability stops a run (sys_* yes through the listing, every other object no). On a stock boot this changes no legitimate caller's answer, see the hunt.

4. Unchanged, confirmed in the cited code. collectActionDeclarations, the exposure, handler and permission gates, capabilityRefusal, runAction and resumeRun read readServedObjects() whole. An object-less (global) action has no object to project and is listed as declared. The stdio bridge implements no listActions, so list_actions is HTTP-only and nothing moves there.

Consumer hunt. Every reader of list_actions or its summary shape on main:

  • packages/mcp/src/mcp-http-tools.ts — the list_actions tool renders the summaries as-is; run_action's sys_* pre-screen reads the listing (item 3). The tool description still promises "actions that are BOTH declared ai-exposed and that the caller is permitted to run are returned" — now a third condition applies and the string does not say so (③).
  • packages/mcp/src/skill-md.ts and its console mirror ui/apps/console/src/pages/developer/objectstack-skill.ts — the generated SKILL.md teaches "the business actions available to you (only those the app author exposed to AI and you are permitted to run)". "Available to you" stays true; the parenthesis is now incomplete (③).
  • content/docs/ai/actions-as-tools.mdx — the list_actions row and the "two gates" paragraph state the two-condition contract; not touched by the PR (③). content/docs/ai/connect-mcp.mdx is updated and states the projection.
  • skills/objectstack-ai/SKILL.md, packages/mcp/README.md, packages/spec/src/ai/mcp.zod.ts, packages/spec/src/ai/skill.zod.ts — name the tool and its scope only; no promise narrows.
  • docs/qa/platform-checklist/areas/ai.json — negative clause "list_actions advertising an action that run_action then refuses (or vice versa) is a FAIL" is now literally reachable on a non-sys_* object for a field-restricted persona (an action withheld from the listing that run_action still admits). The clause's own scope is the ai.exposed declaration, but the wording needs a revision note (③).
  • examples/app-todo/test/mcp-actions.e2e.ts, packages/runtime/src/mcp-list-actions-handler-probe.test.ts, mcp-list-actions-flow-params.test.ts, mcp-system-object-action-exposure.test.ts, platform-admin-action-gate.test.ts, domains/api-action-forward.test.ts, domains/mcp-package-object-discovery.test.ts — none registers a security service, so the masker is the no-service passthrough and every answer is byte-identical. The dogfood mcp-system-object-action-exposure and mcp-oauth-api-action-forward suites run admin principals (D4-exempt) or an API key whose listed entries carry unavailable; unaffected.
  • ui/packages/app-shell/src/views/objectViewToolbarAffordances.ts, packages/client/src/index.ts (automation.listActions, approvals listActions), packages/plugins/plugin-approvals/** — different listActions (toolbar, automation descriptors, approval rows); not readers of this tool.
  • The Console AI panel and the CLI carry no list_actions caller on main.

Stock-boot judgment. The only shipped readable: false entries are the sys_user Admin field group withheld by member_default / viewer_readonly / external_default (role, ban_reason, ban_expires, failed_login_count, locked_until, password_changed_at, phone_number, phone_number_verified, must_change_password, mfa_required_at, last_login_at, last_login_ip, ai_access) and the showcase client_liaison set's three showcase_project budget fields. Of the AI-exposed platform actions, the only one that names a withheld field in a non-prose position is unlock_user (its visible predicate names locked_until), and it is already held back from those callers by requiredPermissions; platform admins are D4-exempt and the admin sets keep the group readable. invite_user on sys_user names role only under objectOverride: 'sys_member', judged on sys_member, where no shipped set withholds it. The self-service actions a member needs (update_my_profile, resend_verification_email) read name, image, email_verified, none withheld. The showcase's one exposed action is object-less. So no legitimate caller on a stock boot loses an action or receives a changed list_actions answer; the change bites only a deployment that authored its own field withholding, which is the population ADR-0106 addresses.

② Semver level

@objectstack/runtime patch with a BREAKING banner and the ADR-0087 not-required marker is the form the checklist prescribes for a non-protocol narrowing. Clause-②: no (narrowing) and the ! in the title are consistent by construction: the (narrowing) arm is BREAKING, and no says no stated clause of the published spec moves — which holds: no schema key, export, answer member, error code or status is added or removed, and FIELD_VISIBILITY_UNRESOLVED is already in the ledger from PR #31042 (merged 2026-11-06T21:20:16Z). no is right for what the caller can no longer see as well: ADR-0106 D1 already promised a field-restricted caller exactly this answer on every plane, and the MCP security model already promised that field-level security applies to the agent as to a person, so the narrowing makes a stated promise real rather than taking a stated capability away. Metadata-protocol: none is right — nothing an author can write changes. Skills-docs: no move is right for skills/**; the published-docs half is answered by connect-mcp.mdx, with the gaps named in ③.

③ Boundary flags

  • (a) Other doors outside this seam still serve action param details without the caller projection — separate step, as the dev reports it. D5(4) names the outlet audit; each door is its own card and its own test harness. Not this PR's scope, but the next card should be filed, not noted.
  • (b) The run doors validate params against the unprojected object — separate step, and the step that also decides item ①.3's asymmetry: whether a field the caller cannot read may stop a run, and with which refusal, is a rule for the run doors (an ADR-0106 amendment or a ruling), not a listing seam's by-product. Until it is decided the two run doors answer differently by object prefix; the record names that so the next card inherits it.
  • (c) An objectOverride param is summarised with the label of the action's own object's same-named field — should-fix, separate card. Pre-existing in summarizeActionParams, which ignores objectOverride; this PR neither widens nor narrows it, and the projection keeps the own-object label away from a caller who cannot read that field. The summary is still wrong for every caller who can.
  • sys_* refusal sentence — should-fix. For a projection-withheld action the system-object sentence's lead ("is not exposed via MCP") names author exposure as the cause; the prescription half ("list_actions lists it for you") is the right one. A sentence whose cause is "not served to you", with the same prescription, keeps the two cases indistinguishable to the caller and stops the text pointing authors at a flag they already set.
  • Documentation states a narrower rule than the code applies — should-fix. connect-mcp.mdx says an action is withheld when "one of its params binds a field the caller cannot read"; the rule the /meta door applies, and the changeset itself states, is any non-prose position of the action. The troubleshooting row should say so, and actions-as-tools.mdx (the list_actions row and the "two gates" paragraph), the list_actions tool description string and the generated SKILL.md text should state the third condition. The QA clause in ai.json needs a revision note.
  • One security question per action — should-fix, minor. The projection is asked per listed action; the /meta list door asks once per object. Memoising the served object per object name inside one listActions call keeps the rule and removes the repeated asks on a boot with dozens of exposed sys_* actions.

④ Design judgment

Reusing the /meta projection is the right seam: it is the one place that already holds the whole rule (own-object fields, every reference position, objectOverride judged on the named object, D4 exemption, D6 tiers, D7 fallback set), and projecting the action as its object's sole actions entry gives one verdict for both doors with no table of positions copied into the bridge. The alternative — a bridge-side predicate over params[].field — would have been exactly the narrower rule the docs now describe, and would drift from the /meta door on the first new position.

Break attempts, each against the published spec on main:

  • objectOverride. A param whose field the caller cannot read on the named object drops the action (judged there, fail-closed when that object's set cannot be determined); a param whose field they can read there is listed and its summary carries no label of this object's same-named denied field. Both pinned. The caller learns nothing of either object they are not served. Holds; the pre-existing mislabel is ③(c).
  • Global actions. No object, nothing to project, listed as declared with inline params only. Holds. A standalone action whose objectName names an object the served listing omits has no obj either and is answered as declared; its summary then carries param names but no field detail, as on main. Edge, unchanged, separate.
  • Flow-backed params. summarizeFlowInputParams reads the flow's variables and screen fields, never the object, and runs only when the action declares no params; the projection does not reach it and does not need to — flow metadata is not an object schema and is outside ADR-0106. Holds.
  • Actions with no params. Listed to the restricted caller exactly as to the control, pinned; one with a patch naming a denied field is dropped by the field-keyed reading, which is the /meta answer too. Holds.
  • A caller with no readable field on the action's object. Refused with the door's code, as list_objects refuses them, pinned. Holds against the published D6; the whole-listing refusal is the sibling doors' rule and is noted under ①.2 as a separate design step.
  • D4-exempt and no-service callers. Passthrough returns the object by reference; served.actions.length === 1 holds and the answer is byte-identical, pinned for the control and the no-security deployment.

The narrowing takes no declared capability away at the consumer — no reader of the summary shape depends on a field the caller cannot read — and makes the spec's own promise real on the one MCP read where it was not. The cited code was read, not reviewed; nothing in it must change for this PR to hold.

Implemented-by: claude/sec-hardening-r19
Reviewed-by: session_01L9qibvynRbCtMndW8EHNGc

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

security#1 · os-tesla · session_01L9qibvynRbCtMndW8EHNGc

席位核对

ACCEPT · 2026-11-07T03:51Z · head fee5571477bdbf70e38ed3724b5a00a6e481b12c

  • Contract review: PASS at this head, CONTRACT_REVIEW_TIER on the narrowing face (the changeset's Clause-②: no (narrowing) line), record 6701884603. No must-fix. Its should-fixes go into this seat's follow-up list: the cause clause of the system-object refusal sentence, the docs and tool-description wording that still state a narrower or two-condition rule (connect-mcp.mdx, actions-as-tools.mdx, the list_actions description, the generated SKILL.md text and its console mirror), a revision note on the AI area QA checklist clause, one projection per object inside a listing, and the objectOverride label as its own card. None changes what lands here.
  • What lands: MCP list_actions over HTTP lists an action, and summarises its params, only as the /meta object projection serves the object to the caller (ADR-0106 D1), reusing fix(mcp, runtime)!: MCP describe_object answers the same field-masked object schema the /meta door answers (ADR-0106) #31042's projection, so there is one rule for both doors. The run doors, the gates and collectActionDeclarations still read the whole listing; the run doors' own rule is a separate maintainer question this seat has recorded.
  • Consumer hunt (record ①): no console panel or CLI caller of list_actions exists on main; the in-repo tests and examples register no security service and see a byte-identical answer; on a stock boot no legitimate caller loses an action or gets a changed answer.
  • Checks: every check-run on this head is success (38) or skipped (12, by their own conditions). git merge-tree against current main is clean.
  • Gates (dev, at this head): dispatch-gates --commands 90 derived, 87 run and green, 3 not measured locally for a missing full build (two of those re-run green after building their closures; check:dual-build-cjs-loads is left to CI). The runtime suite is green. The dogfood battery passed after the body was written: 431 files, 3582 tests, no failures. Two ablations went red as predicted and were restored.
  • Shape: base main, no closing keyword. Patch for @objectstack/runtime under the breaking banner, with Clause-②: no (narrowing) and Metadata-protocol: none.
  • Governed: check-governed-merges.mjs --pr 31075: not governed; 250 changed lines ≤ 3000 ⇒ Tier S.
  • Landing authority: the maintainer's standing approval for this seat's security PRs at Tier S (2026-11-06 card answer in the seat's thread) and 「你应该是使用 pm-dispatch 技能自主审核和落地 pr」.
  • Next: relay pr_ready + automerge_enable.

Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 7, 2026 03:53
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge November 7, 2026 03:53
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 7, 2026
Merged via the queue into main with commit 24bc259 Nov 7, 2026
51 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/sec-hardening-r19 branch November 7, 2026 04:11
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 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

Development

Successfully merging this pull request may close these issues.

2 participants