TL;DR
Giving an AI agent direct control over a distributed storage cluster is like handing a toddler the keys to a bulldozer—one hallucinated command can wipe out petabytes of data. CephMaestro solves this by treating smaller, locally hosted open-source LLMs strictly as untrusted planners while locking actual system execution behind a deterministic, storage-aware safety gate. The result is an assistant that lets engineers diagnose and manage complex storage systems in plain English with zero unsafe actions slipping through.
What Problem Does This Paper Address?
Ceph is a powerhouse open-source distributed storage system used across cloud platforms and scientific computing, capable of turning commodity hardware into scalable storage. However, this flexibility breeds immense operational complexity. When something goes wrong, human operators have to play detective across dozens of interacting subsystems—like Object Storage Devices (OSDs, the daemons managing physical disks), Placement Groups (PGs, which group objects together), and CRUSH maps (the algorithms dictating where data lives).
Large Language Models (LLMs) seem like a natural fit to translate plain-English questions ("Why is my cluster degraded?") into multi-step diagnostic workflows. Yet, two roadblocks stand in the way:
- Safety: Storage is unforgiving. If an LLM confuses a diagnostic request with authorization to "fix" a problem, or skips a precondition check, it can trigger massive data-recovery storms, knock services offline, or permanently destroy data.
- Practicality: Huge proprietary LLMs are slow, expensive, and often unacceptable to connect to private, security-sensitive storage networks. Operators need fast, locally hosted, smaller open-source models—which are notoriously more prone to hallucinations and tool-use errors.
Methods
The core philosophy of CephMaestro is separating probabilistic planning from deterministic execution. Rather than letting an LLM generate raw bash commands, the system constrains the model inside a rigid architectural sandbox.
Here is how a request flows through the system:
- Adaptive Routing: An LLM router first classifies the user's prompt. Routine read-only queries ("list pools") take a Fast Path (one tool call and done). Complex diagnostic mysteries enter a Bounded ReAct Loop—a standard AI pattern (Reason + Act) where the model iteratively calls tools and observes outputs, strictly capped at 10 iterations and 120 seconds with automatic loop/stall detection.
- Typed Tool Registry: The LLM can only choose from 112 predefined, schema-validated Python tools (plus 5 deterministic workflow shortcuts for common scenarios). Free-form shell command generation is impossible.
- Deterministic Safety Gate: This is the novel centerpiece. Every proposed state-changing action hits a non-AI
ActionEngine. Using static lookup tables and parameter-aware escalation rules, it classifies actions as Low, Medium, High, or Critical risk. For instance, tweaking a minor pool setting might be Medium risk, whereas setting replicasizeto1removes data redundancy and automatically escalates to Critical. Anything above Low risk hits a hard brake, requiring human confirmation or dry-run execution while logging a full audit trail.
Datasets
Because off-the-shelf benchmarks don't capture the live consequences of storage administration, the authors built a custom evaluation suite (using zero model fine-tuning):
- Unit & Safety Suite (217 cases): Includes 95 labeled actions across the four risk tiers and 12 adversarial prompts designed to test the deterministic safety boundaries.
- End-to-End Workflow Suite (122 prompts): Natural-language management prompts (111 with strict operational goal oracles) spanning health checks, OSD/PG diagnosis, CRUSH topology, and capacity tuning.
- Live Fault-Injection Benchmark (11 scenarios): Executed on a real three-node Ceph Squid cluster on Jetstream2, injecting live faults—like killing an OSD daemon or exhausting pool quotas—to test real-time diagnosis.
Key Insights and Ideas
- Smaller models punch above their weight: Bigger isn't automatically better for interactive system administration. A 9-billion-parameter model (
Qwen3.5-9B) beat bothDeepSeek-R1-14Band its larger siblingQwen3.5-27Bon workflow accuracy and live fault diagnosis, while keeping latency low enough for real-time human use. - Deterministic shortcuts supercharge agent loops: Pure multi-step LLM reasoning works, but encoding common operational patterns into deterministic workflow templates ("shortcuts") makes the agent dramatically faster and more reliable without sacrificing flexibility.
- Conservative false positives are a feature, not a bug: Occasionally, the agent overly cautiously triggers a confirmation gate on a benign prompt. In storage engineering, annoying an operator with an extra "Are you sure?" click is infinitely preferable to letting one unapproved mutation slip through.
Key Results
The authors evaluated five locally served open-source models (ranging from 8B to 31B parameters) running on a single 40GB NVIDIA A100 GPU:
- Workflow Completion: Multi-step ReAct execution beat the single-step path across every model and task category.
Qwen3.5-9Bled the pack at 91.3% goal achievement (up from 67.3% on the simple path), with massive gains (+48 to +50 percentage points) on complex auth, config, and CRUSH topology tasks. - Latency Speedup: Even without deterministic shortcuts, ReAct boosted goal completion from 65.8% to 80.2%. Turning shortcuts on pushed accuracy to 91.9% while slashing average latency from 90.3 seconds down to 3.8 seconds.
- Bulletproof Safety: Because safety logic lives outside the LLM, the
ActionEngineachieved 100% risk-classification accuracy on the 95 labeled actions across all models, and caught 37 out of 37 high-risk workflow actions with zero unsafe leaks. - Live Cluster Diagnosis: On real fault-injection runs,
Qwen3.5-9Bpassed 89% (49/55) of scenarios, successfully invoking the right cluster tools to diagnose live failures.
Limitations and Future Work
CephMaestro is an early prototype tested on a modest three-node cluster (meaning quorum-loss scenarios like a monitor node dying had to be skipped). It currently assumes a single trusted, authenticated operator and lacks defenses against malicious prompt injection, multi-tenant role-based access control, and integration with site-specific enterprise policies. Future work aims to harden security against adversarial inputs, add role-specific authorization, reduce tail latency, and test the architecture at production scale.
Summary updated