Remove cumulative MCP attribution from requests and rollouts (#62589)

## What changed

Stop collecting cumulative MCP tool attribution, sending it in Responses
API request metadata, and writing it to rollout checkpoints.

Use `model_search_state` for search provider history in new rollouts. When
reading older rollouts, decode `mcp_attribution` only to determine whether
Search MCP may have been used. Treat malformed or error attribution as
possible Search MCP use so native search fallback stays disabled.

## Testing

Add a history test that distinguishes legacy Search MCP use, an explicit
record of no use, and missing attribution.

GitOrigin-RevId: a145b5b6b7d2f423d989af10623ef21120f49d4d
This commit is contained in:
Owen Lin
2026-11-19 21:06:08 +00:00
committed by copyberry
parent 5f8c36e836
commit 30c69e60a3
24 changed files with 98 additions and 1248 deletions
+1 -1
View File
@@ -527,7 +527,7 @@ fn tool_plugin_context_collects_app_and_mcp_sources() {
}
#[test]
fn selected_mcp_attribution_does_not_join_an_unrelated_local_summary() {
fn selected_plugin_attribution_does_not_join_an_unrelated_local_summary() {
let key = McpServerKey::in_environment(DEFAULT_MCP_SERVER_ENVIRONMENT_ID, "github");
let mut config = test_mcp_config(PathBuf::new());
let mut catalog = ResolvedMcpCatalog::builder();