← Lab /AI/ML

Speculative tool calls leak user intent unless filtered before dispatch

Only issue-time policies that modify or suppress speculative call arguments reduce observer inference

AI/ML arXiv 1 Jun 2026 Defense Prototype evidence

Published as “Ghost Tool Calls: Issue-Time Privacy for Speculative Agent Tools”

Why it matters

Deploying issue-time privacy contracts can eliminate privacy leakage from speculative tool calls without sacrificing task success, enabling safe latency-optimizing speculation in real deployments.

Summary

Speculative tool calls leak user intent before the agent commits to a plan, and only issue-time transformations (Rewrite or Shadow) substantially reduce that leakage; naive speculation lets an adversary recover the hidden label with 0.97 accuracy versus 0.44 without speculation. The evidence comes from controlled experiments on 30 hand-crafted tasks, 150 generated tasks, and a 66-task AgentDojo benchmark using multiple LLM adversaries, showing consistent ranking of policies.

What they found 1

  1. Rewrite reduces adversarial recovery from 0.97 (Naive) to 0.53 on static-plan tasks.

    “Rewrite (0.53) and Shadow (0.42) move the metric.”

Caveats 6

  • The SIA read-only policy sometimes performs slightly worse than Naive (+0.02 leakage) because it still allows topical read-only calls.
  • Post-issue scrubbing policies (Pre-Scrub, Late-Scrub, ACL) do not reduce leakage at all, clustering with Naive.
  • Complete mediation is required; any client library, cache, or metric that sees raw speculative fields before the monitor breaks the soundness guarantee.
  • The approach depends on correct labeling of argument sensitivity and destination privacy; the prototype labeler has low macro-F1 (0.10 for arguments, 0.59 for destinations).
  • The model-provider is trusted; a remote planner could observe user input and candidate branches before the contract monitor runs.
  • Adversary evaluation is limited to Claude Opus 4.7, Haiku-4.5, GPT-4o-mini and simple keyword/TF-IDF baselines; sub-10B open-weight models and human analysts were not tested.

What’s new here 4

  • Introduces the concept of ghost tool calls-abandoned speculative calls that persist in external observers.
  • Defines Speculative Tool Privacy Contracts as a runtime abstraction that treats observation before commitment as a distinct effect.
  • Evaluates twelve issue-time policies, showing that only transformations of arguments or destinations (Rewrite, Shadow) reduce privacy leakage.
  • Provides a formal model of observer projections and a soundness theorem for complete mediation.