PlanTwin : Privacy-Preserving Planning Abstractions for Cloud-Assisted LLM Agents

Guangsheng Yu 1 , Qin Wang 1,2 , Rui Lang 1 , Shuai Su 1 , Xu Wang 1 · 2026

Read PlanTwin : Privacy-Preserving Planning Abstractions for Cloud-Assisted LLM Agents by Guangsheng Yu 1 , Qin Wang 1,2 , Rui Lang 1 , Shuai Su 1 , Xu Wang 1 (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-18377.txt.

Introduction

Yu and co-authors introduce PlanTwin, a privacy-preserving planning layer for cloud-assisted LLM agents. Cloud planners normally see raw local state, including code, files, and credentials. PlanTwin projects the real setting into a de-identified abstract graph that keeps planning structure. The cloud works only on that twin through a bounded interface, while a local gatekeeper enforces budgets. On 60 tasks, sensitive items stayed fully hidden with under 2.2% utility loss.

Catalog record

CREATORGuangsheng Yu 1 , Qin Wang 1,2 , Rui Lang 1 , Shuai Su 1 , Xu Wang 1
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE96689
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2603.18377

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

PlanTwin : Privacy-Preserving Planning Abstractions for Cloud-Assisted LLM Agents Guangsheng Yu 1 , Qin Wang 1,2 , Rui Lang 1 , Shuai Su 1 , Xu Wang 1 Abstract . Cloud-hosted large language models (LLMs) have become the de facto planners in agentic systems, coordinating tools and guiding execution over local environments. In many deployments, however, the environment being planned over is private, containing source code, files, credentials, and metadata that cannot be exposed to the cloud. Existing solutions address adjacent concerns, such as execution isolation, access control, or confidential inference, but they do not control what cloud planners observe during planning: within the permitted scope, raw environment state is still exposed . We introduce PlanTwin , a privacy-preserving architecture for cloud-assisted planning without exposing raw local context. The key idea is to project the real environment into a planning-oriented digital twin : a schema-constrained and de-identified abstract graph that preserves planning-relevant structure while removing reconstructable details. The cloud planner operates solely on this sanitized twin through a bounded capability interface, while a local gatekeeper enforces safety policies and cumulative disclosure budgets. We further formalize the privacy–utility trade-off as a capability granularity problem, define architectural privacy goals using ( k , δ ) (k,\delta) -anonymity and ϵ \epsilon -unlinkability, and mitigate compositional leakage through multi-turn disclosure control. We implement PlanTwin as middleware between local agents and cloud planners and evaluate it on 60 agentic tasks across ten domains with four cloud planners. PlanTwin achieves full sensitive-item non-disclosure (SND = 1.0) while maintaining planning quality close to full-context systems: three of four planners achieve PQS > 0.79 >0.79 , and the full pipeline incurs less than 2.2% utility loss. 1. Introduction Large language models are increasingly used as planners in agentic systems, where a cloud-hosted model coordinates tools, decomposes tasks, and guides execution. Production systems such as Claude Code ( 3 ) , OpenAI Codex ( 27 ) , Cursor, and GitHub Copilot illustrate this design point: a powerful remote model reasons over code, files, and project context, while a local runtime executes the resulting plan. In many deployments, however, the environment being planned over is private. It contains source files, identifiers, logs, credentials, and sensitive metadata that cannot be exposed to the cloud. This creates a fundamental systems challenge: how can a local edge agent benefit from cloud-scale planning intelligence without revealing the real underlying state? Current systems address this challenge only partially. Claude Code’s sandboxing architecture ( 4 ) enforces filesystem and network isolation at the OS level, preventing access outside approved directories or connections to unapproved servers. OpenAI Codex ( 27 ) executes tasks in a cloud sandbox with internet disabled, confining execution to a preloaded repository snapshot. The Model Context Protocol (MCP) ( 2 ) standardizes tool interfaces through schema-constrained descriptions and capability whitelisting. These mechanisms improve execution integrity, constrain side effects, and reduce blast radius. Some also coarsely restrict what the model can reach. But within the approved scope, the cloud planner still sees raw context . File contents, code structure, and project metadata inside the permitted boundary are transmitted directly as prompt context. Existing mechanisms mostly control what the agent can do , and only coarsely what it can reach ; they do not control the abstraction level of what the cloud planner observes once access is granted. This exposes a missing design point. Existing approaches largely fall into four categories: (1) full-context upload ( 3 ; 27 ) , where raw or lightly filtered context is sent to the cloud and privacy relies on trust and contractual guarantees; (2) Personally Identifiable Information (PII) redaction ( 21 ; 33 ) , which removes recognized tokens before transmission but misses domain-specific secrets and leaves structural metadata that can still support re-identification; (3) fully local inference ( 6 ; 26 ) , which avoids cloud exposure but is constrained by local resources and cannot match the planning capability of frontier models; and (4) trusted execution environments (TEEs) ( nvidia2024cc ; akgul2024ollm ; intel2024tdx ) , which protect data during cloud inference but require specialized hardware and do not answer the semantic question of how much information the planner actually needs. The central question is therefore not only how to secure execution, but how little information a cloud planner can observe while still producing useful plans. Our premise is that high-level orchestration rarely requires full descriptive fidelity of the underlying environment. For many workflows, useful planning depends on object types, relations, risk levels, action affordances, and dependency constraints, rather than raw file contents or precise identifiers. This suggests a different systems interface: the local environment should be exposed not as a compressed replica of reality, but as a planning-orientated control surface . We present PlanTwin , a privacy-preserving digital twin 1 1 1 We use the term digital twin deliberately. The core pattern is that a local system exports a machine-reasonable surrogate to a remote decision-maker. architecture that realizes this idea. The local agent projects the real environment into a schema-constrained, de-identified, and planning-sufficient abstract representation through a four-stage projection pipeline ( \Pi_{\text{extract}}\to\Pi_{\text{redact}}\to\Pi_{\text{generalize}}\to\Pi_{\text{schema}} ). The cloud planner operates only on this sanitized twin and emits declarative plans over a bounded set of local capabilities. All raw-data access, policy enforcement, execution, and output sanitization remain local. A Policy Enforcement Gatekeeper mediates every interaction through disclosure budgeting, safety validation, and optional human approval, ensuring that the cloud assists with planning but never directly accesses the real local world. We complement recent capability-based control for LLM agents ( 29 ; 37 ; 13 ) . Those systems regulate what actions the agent may execute ; we regulate what information the planner may observe . The two are orthogonal and naturally composable, combining execution-time access control with planning-time privacy control. From this perspective, the central design question becomes the granularity of the capability interface , which governs the privacy–utility trade-off. If capabilities are too coarse, most reasoning collapses back to the local side and the cloud provides limited planning benefit. If capabilities are too fine-grained, the planner regains utility only through repeated interaction, increasing cumulative disclosure. The desirable operating point lies near the orchestration boundary , where the cloud determines workflow logic and the edge performs content-sensitive inspection and enforcement ( 19 ) . Contributions. We make the following contributions: • We formulate cloud-assisted planning without raw-context exposure as a system problem and position it against existing approaches including sandboxing, access control, PII redaction, and confidential computing (§ 2 ). • We propose a four-stage local projection pipeline that converts the real environment into a sanitized, schema-constrained abstract graph. Unlike token-level masking, this design is structurally bounded : the cloud planner never receives free-form raw context (§ 4 ). • We introduce a declarative capability-based planning protocol and formalize the privacy-utility trade-off as a granularity problem , showing how capability design governs both planning effectiveness and disclosure cost (§ 4.2 ). • We design a local gatekeeper that enforces cumulative disclosure budgets during planning, limiting how much structural information can be revealed to the cloud. We further formalize privacy goals for planning-time context control, ensuring that planner-visible abstractions do not uniquely identify underlying artifacts ( (k,\delta) -anonymity) and cannot be reliably linked

Read the complete text