Fixing AI Errors Without Starting Over: Non-Blocking Agent Kernels
Original paper: fork() for Agents: Agent Kernel for Non-blocking LLM Orchestration
"Imagine a modular assembly line building a custom bicycle, where separate stations construct the wheels, frame, and handlebars simultaneously. If the handlebar paint job fails, the supervisor does not scrap the entire bike or throw away the finished wheels. Instead, the line resets only the handlebar station and the brake levers mounted directly onto it, allowing the rest of the build to proceed uninterrupted."
Complex AI workflows currently waste massive amounts of time and computing power by restarting from scratch whenever a single tool or API call fails. By porting classic operating system resilience to AI agent execution, this method makes multi-step automation faster, cheaper, and reliable enough for enterprise deployment.
- Retries only failed sub-tasks instead of restarting whole agent workflows.
- Achieves up to 12.7x speedups by running independent steps in parallel.
- Reaches 100% recovery within three retries versus 55% for standard restarts.
📑 Original arXiv Technical Abstract
LLM-based agents typically execute tool calls synchronously and discard completed work upon failure. Subgraph-selective recovery, re-executing only a failed node's transitive descendants, is a well-established pattern in distributed systems (Spark, Erlang/OTP, Dryad), and recent agent runtimes (Sherlock, AgentGit, Atomix) preserve completed work through verifiers, version control, or transactional tool boundaries. We present textbf{Agent-Kernel}, a non-blocking runtime that ports this pattern to the LLM emph{content plane}: its primitive, textbf{Sub-Graph Recovery (SGR)}, fires on a raw exception with no trained verifier or planner, resets a failed node's descendants while preserving completed siblings, and composes each parent's text into its children's prompts (context inheritance), all on a durable substrate with a formal state-preservation guarantee. Across 14{,}434 runs on synthetic and standard benchmarks (tau-bench, Gaia2, AutomationBench, InterruptBench), SGR reaches full recovery within budget=3 where whole-trajectory replay exhausts (100% vs. 55%), and is roughly 10× faster than an adapted Sherlock rollback that also recovers. It matches ReAct-serial accuracy within noise on linear workloads while adding recovery and parallelism (up to 12.7× speedup) where structure permits. Ablation isolates SGR: removing it collapses success to 39.4%.
✍️ Are you an author of this paper? Add code/demo links or a note
Help readers explore your work — share your official GitHub repo, Hugging Face weights, affiliation, or a clarification note for our editorial review queue.