Skip to content
Experiment Report
Exceptional94 / 100
Evidence32/35Judgment24/25Structure19/20Usefulness19/20
How can a parameter name read AI session data?
Engineering research · Data authority

How can a parameter name read AI session data?

If a server names a field, will the client find and send a matching session value? We compared two ADK revisions with CodeFlowMu's current bridge.

2026-11-18中文 →

How can a parameter name read AI session data? ​

You ask an AI assistant to fetch instructions from an external service. The service says it accepts a field named “user email.” You did not enter an email in this request. Could naming that field alone make the client retrieve and send the email from its session?

A Google ADK Python fix shows why the question matters. The old McpInstructionProvider read the MCP server's declared prompt argument names, looked for matching strings in local session state, and passed the values to the server. The new version sends no arguments by default; an application developer must supply arguments explicitly. This is a breaking security correction, not a claim that a production breach occurred.

Who chose the contents of the request? ​

MCP lets external services offer prompts, tools, and resources. A service describing its accepted fields is ordinary. The surprising step was treating that description as authority to look up values in the client's session. A field name, originally a format declaration, became a lookup instruction.

We extracted the unchanged provider class from the fix's parent and the fixed commit. Both ran against the same fake MCP session. Its server declared user:email and adk_oauth2_credential; synthetic session state contained a fake email and a conspicuously fake credential. The session only recorded arguments. No real account or network MCP service was involved.

ReplayPrompt discovery callsArguments received by fake get_prompt
Before, no explicit arguments1Both synthetic session values
After, no explicit arguments0None
After, explicitly pass only locale0Only zh-CN
After, caller explicitly selects synthetic credential0The synthetic credential is still sent

Six assertions passed. The final row is the essential limit: the fix removes implicit lookup selected by the server's field names. It does not review every value an application deliberately supplies.

Before and after: the boundary between declared arguments and session values

Checking our own multi-agent system ​

CodeFlowMu is our local multi-agent collaboration system. It can connect a Codex Host to external MCP servers and exposes separate tools for formal collaboration. The ADK case made us ask: if an external tool advertises a sensitive field, will our bridge fetch a matching value from task or session state?

We invoked CodeFlowMu V3.0.152's real CodexMcpToolBridge with a fake app-server advertising that field. Listing tools invoked no tool. Empty arguments forwarded an empty object; locale alone forwarded only locale; an explicitly supplied synthetic credential was still forwarded. An added top-level session_state field was rejected, as was an external call aimed at the reserved fcop server. Seven assertions passed.

A separate Source plugin path allows configured environment variables to reach the plugin process. Three assertions against its actual environment helper showed no token when none was configured and the synthetic token when it was. This is not the ADK mechanism, but it shows why closing one implicit path is not a universal guarantee about data flow.

What does this establish? ​

The tested CodeFlowMu Codex external-MCP bridge did not reproduce the old ADK name-to-session lookup. A fake app-server does not establish real model, MCP transport, or end-to-end behavior; the Source transport was not exercised. An existing bridge unit test could not import locally because @cursor/sdk was missing, so it ran no assertions. We have not confirmed a CodeFlowMu product defect or opened a development review item from this round.

The next question is narrower and harder: when a model chooses to place task content in tool arguments, or an operator configures a credential for a plugin, what evidence shows that this particular data transfer is authorized for the current task? A tool schema describes a shape. By itself, it cannot explain why this service may receive this value.

For a practical check, put three things side by side for one MCP call: the server's declared fields, the arguments actually sent, and the origin of each value. If the third column is missing, the permission discussion is missing evidence. Our English experiment report records the pinned revisions, results, and limits.

Last updated: