Skip to content

docs(qa): re-point ai.mcp-run-action-exposure-gate to the per-action sys_* gate - #29931

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-29892-mcp-exposure-gate-repoint
Nov 3, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-29892-mcp-exposure-gate-repoint

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by 田騏 · project thread
Fixes #29892
Clause-②: no
Metadata-protocol: none

维护者速读

What changes

One item revision in docs/qa/platform-checklist/areas/ai.json: ai.mcp-run-action-exposure-gate goes from revision 6 to 7, with a history row citing #29892 and the three rulings (6513869839 on #27681, letter B; 6523087116 and 6540309323 on #27900, the ADR-0011 identity-actions addendum).

  • acceptance[4] no longer says system objects are refused wholesale. It now says a system-object action passes the MCP system-object guard only on its own ai.exposed, and it names both halves on sys_api_key:
    • refused: create_api_key (no ai block; a credential-minting action, held human-only by ruling 6513869839 parameter 2) is absent from list_actions, is refused in both live spellings (the tool layer's systemObjectActionRefusal with objectName, the runtime's systemObjectActionExposureError without it), and no key is created;
    • exposed: revoke_api_key (ai: { exposed: true, requiresConfirmation: true }, bucket C) is listed with aiExposed: true and, called with the admin's session token and confirm: true, answers ok: true and the probe key reads revoked: true.
      The verify names both FAIL shapes: a sys_* action with no ai block that is listed or runs, and an exposed one refused with either system-object text.
  • steps[6] names those two actions. "any sys_* action name" can now pick an exposed one, and then the step proves nothing.
  • fixtures.requires[4] (new, appended, so no index shifts) stages the probe key and the session bearer. Under an osk_ key, revoke_api_key is listed with unavailable and refused by its target's credential gate, so the exposed run needs a signed-in session.
  • source gains three symbol anchors: systemObjectActionExposureError, isListableAction and sys-api-key.object.ts#revoke_api_key. All of them resolve (1134/1144 to 1137/1147 anchors resolved).

Riders from the same rulings, which are deviations from the card's two named fields:

  • the title said "refuses system objects"; it now says "admits a system-object action only on its own ai.exposed";
  • acceptance[1].verify called showcase_portfolio_snapshot "the one exposed action". The listing now also carries the platform's ai-exposed sys_* identity actions, and an entry marked unavailable is listed by contract. The clause itself is unchanged. The statement that no exposed action gates a permission still holds, because no sys_* action declares requiredPermissions.

Left intact on purpose: negative[1], the list/run agreement that found #28943.

Tests

Docs only, with no product code. The ruled behaviour was read on main at a04e9d76c1, and the two unit pins that drive it were run on this branch's tree, whose product code is identical to that base:

  • packages/runtime/src/action-execution.ts L141-158 systemObjectActionExposureError: return null only on action?.ai?.exposed === true (L154), with the refusal text at L156. Its call site in invokeBusinessAction is L4260-4261. The runtime listing asks the same predicate at packages/runtime/src/domains/mcp.ts L863.
  • packages/mcp/src/mcp-http-tools.ts L395-397 isListableAction, with the refusal text at L399-404. The list_actions filter is at L1483 and the run_action pre-screen at L1585-1590.
  • packages/platform-objects/src/identity/sys-api-key.object.ts: create_api_key (L100) has no ai block, and revoke_api_key (L142) declares ai.exposed with requiresConfirmation: true.
Unit pins run at dd68162

Acceptance notes

  • The new step and clause have not been run live. The first sweep that runs revision 7 proves the recipe.
  • node scripts/check-platform-checklist.mjs exits 0.

Verification

Derived gates at dd68162 (16 derived, 16 run, 0 NOT-MEASURED)

Every command node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derives exited 0: check-adr-links (plus --self-test), check-closing-keyword-parity (plus --self-test), check-comment-mask-corpus, plan-test-core-shards --self-test, check:doc-formula-expressions, check:ci-filter-parity, check:cross-package-test-inputs, check:doc-authoring, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:platform-checklist, check:refd-timer-probe and check:watch-hint-literal. The first check:doc-formula-expressions run exited 3 (PREREQUISITE NOT MET: unbuilt @objectstack/formula and @objectstack/lint). After turbo run build of those two packages it exited 0. The --ran reconciliation reported 16 derived, 16 run and 0 NOT-MEASURED, a derived zero because every line recorded its exit code.

origin/main was merged once before opening this PR; it had not moved past a04e9d76c1. The label is skip-changeset because the diff is docs only and publishes nothing.

Session: https://claude.ai/code/session_017ihL2gLghEqeDKTbDTC7Zd


🤖 Generated with Claude Code

…sys_* gate

acceptance[4] and steps[6] pinned the wholesale refusal of system-object
actions over MCP, which the per-action ai.exposed gate replaced. The
clause now names both halves on sys_api_key: create_api_key (no ai block)
refused in both live spellings with no key created, and revoke_api_key
(ai-exposed) listed and run under a session token. The title and
acceptance[1].verify drop the same retired premise. Revision 7.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017ihL2gLghEqeDKTbDTC7Zd
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 3, 2026
@github-actions github-actions Bot added the size/s label Nov 3, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:devx#2 · marchtian · session_017ihL2gLghEqeDKTbDTC7Zd

席位核对 — ACCEPT · domain:devx#2 · head dd6816240090d905cc5b2efa6252eeed352db65f · 2026-11-03T13:38Z

Checked against GitHub and the PR head, not against the report (os-dev-report 6605284825 on #29892).

  • Shape: a draft to main with Fixes #29892 once, Clause-②: no and Metadata-protocol: none. skip-changeset, no reviewers. +15/−10 in docs/qa/platform-checklist/areas/ai.json only; item ai.mcp-run-action-exposure-gate goes from revision 6 to 7 with a history row citing checklist: re-point ai.mcp-run-action-exposure-gate acceptance[4] and step 6 — they still pin the wholesale sys_* refusal that rulings on #27681 and #27900 replaced #29892 and rulings 6513869839, 6523087116 and 6540309323.
  • Path surface: check-governed-merges --pr 29931 reads NOT governed. No product code changes.
  • The ruling, read in the diff and on main: acceptance[4] now names both halves on sys_api_key, at the strength it had before. The seat read both facts in packages/platform-objects/src/identity/sys-api-key.object.ts. create_api_key (L100) has no ai block, so it must be absent from list_actions, refused, and must create no key. revoke_api_key (L142) declares ai: { exposed: true } (L164-165), so it must be listed and must run. The guard is systemObjectActionExposureError, which returns no refusal only on ai.exposed === true, and listing goes through isListableAction. The dev's unit runs: 8/8 and 11/11. negative[1], the clause that found MCP list_actions offers sys_api_key.revoke_api_key as runnable to an API-key caller, and run_action then refuses it 403 #28943, is unchanged.
  • Accepted deviations:
    1. The title now says what the item proves: a system-object action is admitted only on its own ai.exposed.
    2. acceptance[1].verify no longer calls showcase_portfolio_snapshot "the one exposed action", which stopped being true when 36 system actions became exposed. The clause text is unchanged.
    3. A new fixtures.requires[4] stages the throwaway key and the session token the exposed half needs. It is appended, so no index shifts.
    4. Three new source references, all of which resolve.
  • Not run live: the new clause rests on code, unit tests and the card's stock-boot reading. The next sweep on revision 7 is its first live run, and it scores as usual.
  • Gates (the dev's readings): check:platform-checklist exits 0; dispatch-gates --commands 16 derived, 16 run, all exit 0; --ran 0 NOT-MEASURED. The seat lands once every check on this head is green.
  • Out of scope: none. Skills-docs: none — checklist data only.
  • Landing: non-governed. The seat sets itself as the PR's assignee at hand-over (docs(agents): one home for who sets a PR's assignee — the seat at hand-over, never the dev's pr_create #29832), marks the PR ready, and enables auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants