Repository navigation
docs(qa): re-point ai.mcp-run-action-exposure-gate to the per-action sys_* gate - #29931
Merged
objectstack-fleet[bot] merged 1 commit intoNov 3, 2026
Merged
Conversation
…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
Contributor
Author
|
domain:devx#2 · marchtian · session_017ihL2gLghEqeDKTbDTC7Zd 席位核对 — ACCEPT ·
|
objectstack-fleet
Bot
deleted the
claude/issue-29892-mcp-exposure-gate-repoint
branch
November 3, 2026 13:56
This was referenced Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by 田騏 · project thread
Fixes #29892
Clause-②: no
Metadata-protocol: none
维护者速读
node scripts/check-platform-checklist.mjs,预期打印check-platform-checklist: OK并以 0 退出。What changes
One item revision in
docs/qa/platform-checklist/areas/ai.json:ai.mcp-run-action-exposure-gategoes from revision 6 to 7, with ahistoryrow citing #29892 and the three rulings (6513869839 on #27681, letter B; 6523087116 and 6540309323 on #27900, the ADR-0011 identity-actions addendum).ai.exposed, and it names both halves onsys_api_key:create_api_key(noaiblock; a credential-minting action, held human-only by ruling 6513869839 parameter 2) is absent fromlist_actions, is refused in both live spellings (the tool layer'ssystemObjectActionRefusalwithobjectName, the runtime'ssystemObjectActionExposureErrorwithout it), and no key is created;revoke_api_key(ai: { exposed: true, requiresConfirmation: true }, bucket C) is listed withaiExposed: trueand, called with the admin's session token andconfirm: true, answersok: trueand the probe key readsrevoked: true.The verify names both FAIL shapes: a
sys_*action with noaiblock that is listed or runs, and an exposed one refused with either system-object text.osk_key,revoke_api_keyis listed withunavailableand refused by its target's credential gate, so the exposed run needs a signed-in session.systemObjectActionExposureError,isListableActionandsys-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:
showcase_portfolio_snapshot"the one exposed action". The listing now also carries the platform's ai-exposedsys_*identity actions, and an entry markedunavailableis listed by contract. The clause itself is unchanged. The statement that no exposed action gates a permission still holds, because nosys_*action declaresrequiredPermissions.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
mainata04e9d76c1, 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.tsL141-158systemObjectActionExposureError:return nullonly onaction?.ai?.exposed === true(L154), with the refusal text at L156. Its call site ininvokeBusinessActionis L4260-4261. The runtime listing asks the same predicate atpackages/runtime/src/domains/mcp.tsL863.packages/mcp/src/mcp-http-tools.tsL395-397isListableAction, with the refusal text at L399-404. Thelist_actionsfilter is at L1483 and therun_actionpre-screen at L1585-1590.packages/platform-objects/src/identity/sys-api-key.object.ts:create_api_key(L100) has noaiblock, andrevoke_api_key(L142) declaresai.exposedwithrequiresConfirmation: true.Unit pins run at dd68162
pnpm --filter @objectstack/mcp exec vitest run --maxWorkers=2 src/mcp-action-system-object-exposure.test.ts(under the verify lock, after building the@objectstack/mcp^...closure):Test Files 1 passed (1)·Tests 8 passed (8)·VERDICT command-exit 0.pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/mcp-system-object-action-exposure.test.ts(after building@objectstack/runtime^...):Test Files 1 passed (1)·Tests 11 passed (11)·VERDICT command-exit 0.589049b0and not re-run here:create_api_keywas refused in both spellings, andrevoke_api_keywithconfirm: trueunder the admin session answeredok: true.Acceptance notes
node scripts/check-platform-checklist.mjsexits 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/objectstackderives 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-probeandcheck:watch-hint-literal. The firstcheck:doc-formula-expressionsrun exited 3 (PREREQUISITE NOT MET: unbuilt@objectstack/formulaand@objectstack/lint). Afterturbo run buildof those two packages it exited 0. The--ranreconciliation reported 16 derived, 16 run and 0 NOT-MEASURED, a derived zero because every line recorded its exit code.origin/mainwas merged once before opening this PR; it had not moved pasta04e9d76c1. The label isskip-changesetbecause the diff is docs only and publishes nothing.Session: https://claude.ai/code/session_017ihL2gLghEqeDKTbDTC7Zd
🤖 Generated with Claude Code