TL;DR
As AI agents increasingly take over cloud infrastructure management, they face a major hurdle: a lack of coordination that leads to chaotic resource conflicts and lost operational intent. This paper introduces CLOUDWEAVER, a systems foundation that provides agents with isolated, session-scoped views and semantic transactions. By catching conflicts before they hit the cloud provider, CLOUDWEAVER ensures safe, concurrent execution and delivers clear, attributable feedback to help agents plan reliably.
What Problem Does This Paper Address?
We are rapidly entering an era where AI agents join human operators in the "observe-plan-execute" loop of cloud management. Whether they are deploying infrastructure, diagnosing incidents, or auto-scaling capacity, these agents interact with cloud providers via low-level API streams.
The fundamental issue is that existing cloud infrastructure lacks a coordination layer for these multi-agent workflows. When multiple agents act independently on shared resources, their high-level intents often collide. For example, if Agent A attempts to permanently delete a virtual machine (VM) while Agent B simultaneously tries to replace it via a destroy-then-recreate workflow, the final outcome becomes entirely dependent on random API timing and retry loops. As a result, one agent's intent is inevitably lost.
Currently, cloud stacks treat late provider errors (like an HTTP 409 conflict) as their primary coordination mechanism. This ambiguous feedback is painful for humans but downright toxic for probabilistic AI agents, which require clear, deterministic context to decide on their next action.
Methods
The authors argue that instead of forcing AI agents to guess hidden system states, coordination should be built directly into the cloud management abstraction itself. They propose CLOUDWEAVER, a system substrate structured around two core architectural pillars:
- Session-Scoped Cloud Views: CLOUDWEAVER maintains a centralized Global Graph ($G^g$) representing the true state and dependencies of all shared cloud resources. For each agent session, it projects a policy-controlled Local Graph ($G^l_i$). This isolates the agent's observation and action space, preventing cross-session interference and ensuring that agents only see and manipulate resources they actually own or are permitted to share.
- Semantic Transactions: Rather than treating API calls as isolated events, CLOUDWEAVER parses them into semantic deltas. It introduces a transaction layer that intercepts requests and applies two types of locks before forwarding them to the cloud provider:
- Multi-Granularity Locks (MGL): Protects hierarchical resource topologies (e.g., preventing a subnet from being deleted while an agent is concurrently creating a VM inside it).
- Escrow Locks: Tracks and reserves consumable capacity and quotas (like vCPU limits or IP address pools) without fully serializing independent operations.
If an operation violates a constraint, CLOUDWEAVER blocks it and returns an attributable conflict report that explicitly identifies which session or resource caused the block, allowing the agent to intelligently replan.
Datasets
The system was validated using an experimental workload trace modeled after real-world Azure API behaviors. The trace consists of six API operations distributed across three concurrent sessions (Sessions A, B, and C) attempting to provision resource groups, VNets, and subnets.
Key Insights and Ideas
- Shift the Burden from AI to the System: Better LLMs might make better plans, but they still reason from the feedback the system gives them. Instead of training larger models to handle messy cloud errors, we should fix the underlying system abstraction to provide clean execution semantics.
- Semantic Concurrency Control: Traditional locking mechanisms are often too coarse (locking an entire workspace) or too blind. By understanding the meaning of an API call—distinguishing between structural changes and capacity consumption—systems can safely maximize parallel execution.
- Unlocking Scalable RL Training: By providing isolated local views grounded in a shared global state, CLOUDWEAVER allows multiple reinforcement learning (RL) agents to train on real cloud infrastructure simultaneously without corrupting each other's environments, trajectories, or rewards.
Key Results
The authors evaluated CLOUDWEAVER's execution behavior against two traditional execution policies:
- Serial Policy: Executed operations sequentially across sessions. While safe, it took 33.03 seconds due to unnecessary serialization of independent tasks.
- Parallel Policy: Executed all ready operations concurrently. It finished in 18.33 seconds but failed on one operation, triggering an Azure HTTP 409 error because two sessions tried to modify the same VNet parent at the same time.
- CLOUDWEAVER: Successfully completed all six operations in 25.55 seconds. This represents a 22.6% speedup over the serial baseline while maintaining 100% correctness by safely overlapping independent operations and only serializing the conflicting subnet writes.
Limitations and Future Work
- Plugin Automation: Currently, CLOUDWEAVER relies on provider-specific plugins to map cloud API rules to graph semantics. The authors note that manually writing these plugins for massive cloud ecosystems (like AWS or Azure) is intensive, and they plan to explore automating plugin generation directly from official API specifications and documentation.
- Intent-Native Interfaces: The current implementation still intercepts low-level API streams. The authors envision a future agent-native interface built on top of CLOUDWEAVER where agents can declare high-level objectives and submit multi-step plans for holistic validation.
Summary updated