Conceptio › Archive › arXiv CS
arXiv CS open access

fork() for Agents: Agent Kernel for Non-blocking LLM Orchestration

Ankit Chadha et al. · arxiv_cs
arXiv CS · Papers
Open Source ↗Direct PDF ↓
clouddistributed-computingparallel-computing
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 (Sher
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

fork() for Agents: Agent Kernel for Non-blocking LLM Orchestration Ankit Chadha and Pratyay Banerjee Amazon, AGI / Sunnyvale, USA ankitrc, pratyay@amazon.com

arXiv:2611.31727v1 [cs.CL] 24 Nov 2026

Abstract LLM-based agents typically execute tool calls synchronously and discard completed work upon failure. Subgraph-selective recovery, reexecuting 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 Agent-Kernel, a nonblocking runtime that ports this pattern to the LLM content plane: its primitive, 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 statepreservation guarantee. Across 14,434 runs on synthetic and standard benchmarks (taubench, 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%.

1

Introduction

LLM-based autonomous agents excel at multistep reasoning and tool use (Yao et al., 2023; Wu et al., 2024), yet their runtime architectures remain fundamentally synchronous: each tool call blocks the agent’s main loop until completion, and any failure triggers either a full halt or a costly whole-trajectory replay that discards all intermediate progress. As agents move from research prototypes to production workflows orchestrating dozens of sub-agents across real-world services, system-

level reliability primitives become a first-class research need (Trivedi et al., 2024). The current synchronous, all-or-nothing execution model is the computational equivalent of a single-process operating system before fork: one task at a time, no concurrency, no selective recovery. (We use OS terminology metaphorically: fork creates a DAG task node, not a process clone; “kernel” denotes the scheduling substrate.) Recent work addresses this from multiple angles. AsyncLM (Gim et al., 2024) introduces token-level interrupts for non-blocking function calls but ignores declared dependencies between concurrent calls. AIOS (Mei et al., 2025) provides OS-inspired scheduling at the agent level but lacks reactive cascading or failure recovery. DynTaskMAS (Yu et al., 2025) constructs dynamic task graphs but relies on a planner LLM to emit the DAG, making dependency correctness contingent on planner accuracy, and replans the entire remaining graph on failure rather than retrying the minimal affected subgraph. Three recent runtimes preserve completed work under failure: AgentGit (Li et al., 2025) adds Gitstyle commit, revert, and branching to LangGraph; Atomix (Mohammadi et al., 2026) adds transactional tool-call boundaries with commit/abort and compensation; and Sherlock (Ro et al., 2025), the closest analog, rolls a task DAG back to its last verified state on verifier disagreement, using a trained analyzer, a verifier selector, and an LLM planner. Selective subgraph recovery is not new; the content plane is. Resetting a failed node’s transitive descendants while preserving completed siblings is a well-established pattern in distributed systems: Spark’s RDD lineage recomputes lost partitions (Zaharia et al., 2012), Erlang/OTP’s rest_for_one restarts a failed process and those started after it (Armstrong, 2003), and Dryad reruns failed vertices and their dependents (Isard et al., 2007). We do not claim this pattern as our contribution. What these systems (and Atomix,

Scenario:

a4 depends on a1, a2, a3

ReAct-serial

a1

FAIL

AIOS-style

a4

a2

a3

FAIL

AsyncLM

fails

WRONG

a1

a1

a1

a1

a2

a2

a2

a2

a3

a3

a3

a3

a4

a4

a4

0

3

6s

0

INCOMPLETE a2 failed, a3 & a4 never ran

3

6s

a4 uses all 3 real outputs

Agent-Kernel

OK

0

6s

a4 0

3

6s

WRONG OUTPUT a4 ran with NULL deps

INCOMPLETE halts on first failure

CORRECT:

-->

summarize

3

CORRECT SGR retries a2; a4 waits

Agent-Kernel vs ReAct-serial on Tier 1 benchmarks (real Bedrock Sonnet 4.5) 5.5s

AutomationBench (cross-app API)

24.8s

ReAct-serial Agent-Kernel

4.5x

14.2s

InterruptBench (non-blocking)

38.1s

2.7x 72.4s

AAR Hard (25-stop DAGs)

85.2s

0

20

40

60

Wall-clock seconds (lower is better)

80

1.2x 100

Figure 1: Top: Dependency-sensitive scenario. Task a4 depends on a1,a2,a3; a2 fails. ReAct halts and discards all intermediate state. Agent-Kernel retries only a2 via SGR while preserving a1,a3’s completed outputs, then dispatches a4 with correct parent context. Bottom: Wall-clock speedup on real-inference benchmarks (Sonnet 4.5): 4.5× on AutomationBench (cross-app API orchestration), 2.7× on InterruptBench (non-blocking main loop). Speedups reflect latency reduction, not accuracy improvement.

AgentGit, and Sherlock) reason about is the control and state of execution: dependencies and side effects, versions, verified outputs. LLM orchestration adds a content plane they do not expose as a first-class mechanism: an upstream node’s variablelength text is composed into a downstream prompt under a token budget (context inheritance), and a retry may rewrite that prompt on format drift rather than blindly re-executing. Our contribution is that plane, delivered as one runtime with a formal state-preservation guarantee and measured recovery speed. Concretely: no prior LLM orchestration system provides exception-triggered, zero-shot, DAG-native sibling preservation without installing a verifier or planner, and Agent-Kernel recovers roughly 10× faster than our adapted Sherlock rollback on our synthetic DAG grids (parametrized by parallel width K and depth L; here K=8, L=8). This gap reflects that adaptation’s serial replay and per-output verifier pass, not necessarily an optimally-engineered Sherlock (§2, App. L). We present Agent-Kernel, a non-blocking orchestration runtime for LLM agents that realizes this content plane. Our contributions are threefold: 1. Sub-Graph Recovery (SGR): an exceptiontriggered, zero-shot retry primitive that resets a failed node’s transitive-closure subgraph while

preserving completed siblings under a formal state-preservation guarantee, with LLM contentplane semantics (context inheritance, and a prompt-mutation retry extension). 2. A durable runtime substrate: a SQLitebacked Sub-Agent Buffer (SAB) with a 7-state FSM and a reactive DAG State Propagator (DSP) that makes SGR safe across process boundaries. 3. An empirical study (§4) showing SGR recovers where whole-trajectory replay exhausts, is faster than baselines that also recover fully, matches ReAct-serial accuracy on linear workloads, and, unlike shipped LangGraph/AutoGen/LlamaIndex, recovers without user configuration. Scope. Agent-Kernel is not a planner (the user declares dependencies via a 5-verb API), not a policy trainer (we use a frozen Sonnet 4.5 backbone), not a failure detector (SGR fires on whatever signal marks a node failed; in our experiments, a raised exception), and does not claim state-of-the-art task accuracy. Our contribution is the orchestration substrate: it composes with any LLM backend, and its gains are orthogonal to policy-level improvements from fine-tuning or RL. As agents scale to multi-step workflows over dozens of sub-agents,

the field needs system-level primitives for concurrency and recovery, much as operating systems provide for processes. Agent-Kernel adapts one such established pattern, giving it LLM contentplane semantics as one measured runtime with a formal guarantee.

2

Related Work

Subgraph-selective recovery is an established pattern, and recent LLM runtimes preserve completed work under failure. We therefore position AgentKernel by what plane it operates on rather than by novelty of the recovery pattern. Table 1 contrasts the three closest agent runtimes with AgentKernel along recovery trigger, recovery action, and whether the system composes upstream text into downstream prompts (context inheritance). The three closest analogs. Sherlock (Ro et al., 2025) is the nearest: it rolls a task DAG back to its last verified state, resetting the failed node’s descendants, but it fires on verifier disagreement and requires a trained analyzer, a verifier selector, and an LLM planner, whereas SGR fires on a raw exception with no such setup. We evaluate a paper-faithful Sherlock-lite (cannot fire on an exception) and a steelmanned Sherlock-generous (treats an exception as verifier disagreement); the latter recovers fully, so SGR is not the only mechanism that recovers under our failure model, but SGR is roughly 10× faster because it re-dispatches only children whose parents just completed rather than re-executing the transitive closure serially and re-running the verifier on every intermediate output (App. L). Atomix (Mohammadi et al., 2026) operates one layer below us, at the tool-call boundary: it tags calls with epochs, tracks per-resource frontiers, and commits only when no conflicting work can arrive, compensating external effects on abort. Both systems use declared dependencies, an advancing frontier, and recovery instead of halting; the difference is the plane: Atomix’s unit is the tool call, aimed at external-effect consistency, and it scopes out context composition, so the two layers compose. AgentGit (Li et al., 2025) provides Git-style commit, revert, and branching on LangGraph with reuse across trajectories; it is useror agent-invoked and, being built on LangGraph, does not provide automatic transitive-closure reset with sibling preservation, nor context inheritance or prompt-mutation retry. Prompt-mutation retry vs. self-correction.

Our prompt-mutation retry, re-issuing a failed node’s prompt augmented with the error and expected schema, is a form of error-feedback selfcorrection, and we claim no novelty for that idea: Reflexion (Shinn et al., 2023) and SelfRefine (Madaan et al., 2023) established verbal self-feedback loops for single agents. What is new is placing this operation inside the recovery cascade of a DAG runtime: the mutated retry is applied only to the reset subgraph while completed siblings’ outputs are preserved and inherited, so self-correction and selective recovery compose rather than being separate mechanisms. SGR’s systems lineage. Resetting a failed node’s transitive descendants while preserving completed siblings is well established: Spark’s RDD lineage recomputes lost partitions by tracing the dependency graph (Zaharia et al., 2012); Erlang/OTP’s rest_for_one restarts a crashed process and those started after it (Armstrong, 2003); Dryad re-runs failed vertices and their downstream dependents (Isard et al., 2007); and Dichev et al. (Dichev et al., 2017) formalize dependencyaware rollback for HPC task runtimes. The DualState Architecture (Thompson, 2025) proposes cascade invalidation for LLM agents but triggered by downstream validation failure, resetting upstream steps. We claim no novelty for the pattern itself; our adaptation is to the LLM content plane, where node outputs are variable-length text injected into downstream prompts and a retry may rewrite that prompt on format drift. Other orchestration approaches. ReAct (Yao et al., 2023) halts on failure. AsyncLM (Gim et al., 2024) retries individual calls but ignores dependency ordering. DynTaskMAS (Yu et al., 2025) replans the entire remaining graph on failure. Production frameworks such as LangGraph (LangChain, 2024), AutoGen (Wu et al., 2024), and LlamaIndex (Liu, 2022) support graph-like coordination but, by default, halt or require full state rewind on a node failure; LangGraph’s default retry filter also excludes the application-level exceptions we inject (§4.4, App. N). Workflow engines (Airflow (Apache Software Foundation, 2015), Temporal (Temporal Technologies, 2020), Prefect (Prefect Technologies, 2019), Parsl (Babuji et al., 2019)) persist DAGs and support sub-DAG retry, but assume fixed schemas and deterministic tasks and do not model token budgets, prompt construction, or stochastic format drift. Native parallel tooluse (Kim et al., 2024) covers width-1 parallelism

System

Recovery trigger

Recovery action

Config-free

Content-plane policy

Atomix (Mohammadi et al., 2026) AgentGit (Li et al., 2025) Sherlock (Ro et al., 2025) Agent-Kernel (ours)

Fault or conflict User- or agent-invoked Verifier disagreement Exception (zero-shot)

Retry/wait/abort + compensation; frontiers isolate work Revert or branch to a saved state (Git-style) Roll back to last verified output Reset descendants, keep siblings, re-execute

Yes No No (verifier+planner) Yes

None None None Budgeted + mutable

Table 1: Agent-Kernel against the three closest LLM agent runtimes. All three preserve completed work. AgentKernel’s distinguishing properties are an exception-triggered, config-free trigger requiring no verifier or planner, and an explicit content-plane policy: it composes upstream text into downstream prompts under a token budget and may rewrite a prompt on format drift—operations these systems, which reason over control and state, do not expose as a first-class mechanism.

within a turn but not multi-level DAGs, cross-turn recovery, or interrupts. Benchmarks motivating non-blocking agents. tau-bench (Yao et al., 2025) evaluates multiturn tool-agent-user interaction under serial execution. Gaia2 (Froger et al., 2026) introduces asynchronous environments where world events occur independently of the agent, motivating main-loop responsiveness. InterruptBench (Zou et al., 2026) evaluates requests arriving mid-execution, the scenario Agent-Kernel’s non-blocking fork targets, but provides no recovery mechanism. The Amazing Agent Race (Kim et al., 2026) stress-tests multitool orchestration on trail-navigation tasks with naturally parallel API calls. These benchmarks establish concurrency and failure resilience as first-class requirements for production LLM agents.

3

Method

Agent-Kernel comprises a durable runtime substrate (SAB + DSP) and a recovery primitive (SGR); Figure 3 (App. A) shows the dataflow. We present SGR first, then the substrate enabling it. 3.1

Sub-Graph Recovery (SGR)

When a node fails, the failure cascade first marks its transitive descendants unreachable. A budgetbounded control loop (enforced by the caller via the node’s attempt history, App. H) then invokes retry on the failed node while budget remains; SGR resets that node and its unreachable descendants to waiting and re-runs them: subgraph_retry(node_id): assert state(node_id) == FAILED for d in transitive_closure(node_id): if state(d) == UNREACHABLE: # = every non-complete descendant in F transition(d, WAITING) re_evaluate(node_id) # -> WAITING/RUNNING; forward cascade re-runs the rest

State-preservation guarantee. Let G = (V, E) be the task DAG, F ⊂ V the failed subgraph (failed node + transitive descendants), and C = V \ F the complement. SGR guarantees: ∀c ∈ C,

FullReplan

SGR failed

kept

kept

failed

re-run

re-run

a

b

c

a

b

c

s

s

re-executes a, s keeps b, c (outputs in SAB)

re-executes a, b, c, s keeps nothing

Figure 2: After a fails in the worked example (§3.3), SGR resets only a and its descendant s; completed siblings b, c keep their outputs and are inherited by s. Whole-task replay re-runs every node, and each re-run is another chance for a transient failure to spend budget. On the failure grid this is the gap between SGR (100%) and matched-budget FullReplan (56.2%, Table 6).

state(c) and outputs(c) are unchanged after retry—completed siblings are never re-executed. No node in F can be complete when SGR fires (a strict descendant completes only after its ancestor, contradicting the ancestor being failed), so its non-complete descendants are exactly the unreachable ones marked by the failure cascade, and resetting them discards no completed work. Reexecution is level-triggered: DSP re-dispatches any reset node whose parents (all in C) are complete, and the forward-success cascade carries the rest. The retry budget is enforced by the caller (the failed node is retried only while its recorded error count is below budget), not inside SGR. Why this beats full replay. Whole-trajectory replay (same budget k) restarts from the root, reexecuting all d completed layers before reaching a depth-d failure; a new transient failure in any of them decrements the budget without progress. SGR skips completed layers, spending budget only on the failure point; hence 100% vs FullReplan’s 56.2% under matched budgets (Figure 2, Section 4.4). Detection is separate from recovery. SGR consumes a failure signal; it does not decide what counts as a failure. In our experiments the signal

is a raised exception, the controlled trigger we use to isolate retry scope. Any detector that marks a node failed (a schema or parameter validator, a tool-call checker, or a verifier’s disagreement as in Sherlock) fires the same cascade and the same reset, so SGR can run underneath a verifier unchanged. The prompt-mutation probe (App. Q.2) is one such composition: a schema check detects format drift, and the mutated retry runs inside the reset subgraph. Scope of the guarantee. The guarantee covers the states and outputs that SAB records, not effects a node has already had on the outside world: if a non-idempotent tool call (a payment, a file write, a sent message) succeeds and its node then fails, reexecuting the node can repeat the effect. Guarding such effects is the job of a transactional tool boundary one layer below SGR, such as Atomix (Mohammadi et al., 2026), which tags calls and compensates external effects on abort; the two layers compose, with SGR resetting content-plane state and the tool boundary guarding external effects. Within SAB, every state transition is a single SQL transaction, so concurrent retries observe a consistent state, and a reset descendant that also depends on another still-failed node stays waiting until that parent completes, since dispatch requires all parents to be complete. The crash test (App. D) checks durability: completed nodes survive a process kill and stale running nodes are re-queued.

3.2

Runtime Substrate: SAB + DSP

SGR requires two properties from its substrate: (1) durable storage of node states and outputs (so completed work survives crashes and retries), and (2) reactive scheduling (so reset nodes are automatically re-dispatched when their parents are complete). Sub-Agent Buffer (SAB). A SQLite database (WAL mode) tracking each sub-agent through a 7-state FSM: pending → waiting → running → complete|failed|cancelled|unreachable. State transitions are atomic (single SQL transaction). An edges table stores dependency pairs for O(1) traversal during SGR’s transitive-closure computation. A failed node returns to waiting via retry; the budget bound (whether to retry at all) is applied by the control loop, not the FSM. Each record stores:

Verb

Effect

Cascade type

fork retry cancel query fetch

Creates sub-agent, returns immediately Resets & re-dispatches failed subgraph Marks descendants unreachable Returns matching SAB records Reads one record’s current outputs

spawn SGR reset cancel cascade set-oriented read per-record read

Table 2: The 5-verb API and the scheduler cascade each verb drives (fork is the spawn primitive; full call signatures in App. J.1). The main loop returns immediately after each fork.

SubAgentRecord { sub_agent_id: str -- primary key task: str -- the prompt/goal role: str -- prompt persona state: State -- 7-state FSM depends_on: list[str] -- parent sub-agent IDs intermediate_outputs: list[dict] -- partial/final results attempt_history: list[dict] -- start/error events (errors drive retry) retry_budget: int -- max attempts (benchmarks: 3) }

DAG State Propagator (DSP). A background daemon watching SAB transitions and propagating four cascade types: (1) Forward-success: when a node completes, evaluate its dependents’ readiness; dispatch ready nodes with parents’ outputs injected as prompt context. (2) Failure: when a node fails, mark its transitive descendants unreachable immediately. (3) Retry: reset failed subgraph (SGR’s entry point), invoked by a budget-bounded control loop. (4) Cancel: mark descendants unreachable. Context inheritance and prompt-mutation retry (the content plane). When DSP dispatches a child, it reads each declared parent’s intermediate_outputs from SAB and composes them into the child’s prompt as a structured block under a token budget. This ensures children see their parents’ actual outputs, not stale or missing data: the correctness property that unordered parallelism violates. As a design extension (evaluated as a preliminary probe, not part of the shipped recovery loop), a retry can additionally rewrite a node’s prompt with error context (the previous malformed output and expected schema) rather than re-issuing it unchanged. These two operations (composing variable-length upstream text under a budget, and prompt-mutation on drift) are the LLM-specific plane that control-and-state runtimes (Atomix, AgentGit, Sherlock) do not expose as a first-class policy; App. Q ablates each. 3.3

The 5-Verb API

Users interact through five verbs. Each verb maps to a distinct scheduler cascade (Table 2); retry and fork are not redundant: fork

creates new descendants, whereas retry resets and re-dispatches existing ones. The main loop never blocks on sub-agent execution. DSP handles all scheduling via the forward-success cascade: when a node’s parents all reach complete, DSP automatically transitions it to running and dispatches execution with parents’ outputs injected. The synthetic harness exercises only fork and retry; App. P gives an SRE incident-response scenario that exercises all five verbs at 100% invocation. Worked example. A user wants to compare prices from three vendors, then summarize: a = fork("Get price from Vendor A", role="researcher") b = fork("Get price from Vendor B", role="researcher") c = fork("Get price from Vendor C", role="researcher") s = fork("Compare and recommend", role="analyst", depends_on=[a, b, c]) # Main loop returns immediately. If a fails: retry(a) # SGR resets a and s, preserves b and c

DSP transitions s to running when a, b, and c all complete. If a fails, it stays failed and the failure cascade immediately marks s unreachable. The control loop, seeing a failed with budget remaining, calls retry(a): SGR resets a to waiting and its unreachable descendant s back to waiting, while preserving b and c’s completed outputs; the forward cascade re-runs a then s.

4

Experiments

4.1

Setup

Model and infrastructure. Primary experiments use Claude Sonnet 4.5 via LLM API, round-robin across 3 regions; cross-backbone checks add Haiku 4.5 and Opus 4.5. Total evaluation: 14,434 runs (11,809 in the core grids and benchmarks, 2,625 in the comparator and scaling studies); a perevaluation footprint is in App. B.1 (Table 9). Systems. All systems share the same executor, model, prompt format, and failure-injection wrapper: (1) ReAct-serial (Yao et al., 2023): singlethread, halts on failure; (2) ReAct+retry: wholetrajectory replay, budget=3; (3) ReAct-per-stepretry (B3): persists failed observations in context and retries the individual step, a stronger baseline that recovers fully but runs serially; (4) AsyncLMstyle (Gim et al., 2024): fan-out ignoring dependencies, retry-once; (5) AIOS-style (Mei et al., 2025): round-robin tick scheduler; (6) Sherlocklite / Sherlock-generous (Ro et al., 2025): paperfaithful and steelmanned adaptations of DAG rollback-to-verified-state (App. L); (7) AgentKernel: full SAB+DSP+SGR. Ablation variants:

System

Recovery

Wall Strategy

Agent-Kernel 100.0% [97.0, 100.0] 21s SGR ReAct-per-step (B3) 100.0% 135s Per-step Sherlock-gen.§ 100.0% 149s Rollback AsyncLM† 100.0% [97.0, 100.0] — Retry-once ReAct+retry 55.0% [46.1, 63.6] 15s Full replay ReAct-serial 36.7% [28.5, 45.7] 3s Halt AIOS-style 36.7% [28.5, 45.7] — Halt

Table 3: Failure recovery (n=120, failure rates 0.1–0.3; Wilson intervals (Wilson, 1927)). Wall is mean wallclock on the real-inference K=8, L=8 grid. Four systems reach full recovery; among them the differentiator is wall-clock, not recovery rate: Agent-Kernel is 3.3– 12.7× faster than B3 and ∼10× faster than Sherlockgenerous across grids (App. L, M). McNemar p<0.0001 separates the halt/whole-replay group. Budgets: AgentKernel retries each failed node with budget 3; ReAct+retry replays the whole trajectory with budget 3; B3 retries the failing step in place. § Steelmanned Sherlock rollback. † Violates dependency ordering (fastest but 0% dependency-correct, §4.3).

NoSAB, NoDSP, NoSGR, plus FullReplan (wholetask restart, same budget; the ablation analog of ReAct+retry, both replaying from the root). Framework comparison methodology. We report two complementary comparisons. (i) Primitive re-implementations (§4.4, App. B.10) reproduce each framework’s default scheduling strategy (full-rewind, halt, conversation-driven retry) on our synthetic grid; they test the strategy, not the binary. (ii) Real-binary integration tests (App. N) run installed LangGraph 1.2, LlamaIndex 0.14, and AutoGen v0.4 on a diamond fan-out DAG with one failing leaf. We label the two clearly throughout and never present (i) as a benchmark of the production systems. Benchmarks. Synthetic: 120 configurations (parallel width K∈{1,2,4,8,16} × depth L∈{1,2,4,8} × failure_rate∈{0,0.1,0.3} × interrupt on/off) × 3 seeds = 360 runs/system; 1,440 across the four scheduling modes. External (real LLM inference): AutomationBench (Shepard and Salimans, 2026), AAR (Kim et al., 2026), InterruptBench (Zou et al., 2026), AppWorld (Trivedi et al., 2024) (wall-clock in Table 10). Linear baselines: tau-bench (Yao et al., 2025) (1,320 runs), Gaia2 (Froger et al., 2026) (2,560 runs). The comparator and scaling studies (Sherlock/B3 grids, cross-backbone, real-framework integration, K-sweep) are detailed in the appendix.

4.2

Selective Retry vs. Full Replay

SGR achieves full recovery within budget=3 where full replay exhausts. The 45pp gap between ReAct+retry (55%) and Agent-Kernel (100%) isolates where you retry, not whether you retry. Both systems have budget=3 and identical transient failure injection, but the budgets have different scopes: Agent-Kernel’s is per failed node, ReAct+retry’s is per trajectory. Two controls separate scope from attempt count: FullReplan gives the Agent-Kernel substrate the same 3 whole-task restarts and reaches only 56.2% (§4.4), while B3 gives a serial ReAct per-step scope and recovers fully. On a depth-8 DAG, whole-trajectory replay re-executes 7 completed layers before reaching the failure; any new transient failure in those layers decrements the budget without progress. SGR skips completed layers entirely, spending budget only on the actual failure point and its downstream dependents. AsyncLM also achieves 100% recovery (Table 3), but at the cost of dependency correctness: it dispatches all nodes simultaneously, producing 0% scenariolevel correctness on ordered workloads (§4.3). The other full-recoverers (B3, Sherlock-generous) are dependency-correct only because they run serially; Agent-Kernel alone preserves dependency correctness while exploiting parallelism (next paragraph). SGR is not the only mechanism that recovers, but it is the fastest. Two stronger comparators in Table 3 also reach 100% recovery, so the differentiator is wall-clock. ReAct-per-step-retry (B3) recovers fully but runs serially, so SGR is 3.3–12.7× faster (App. M). Our Sherlock-generous adaptation is ∼10× slower from two costs: serial transitive-closure replay and an always-on verifier pass on every intermediate output (its wall-clock is roughly flat at 139–167s even at failure rate 0, App. L), so this gap reflects our adaptation, not necessarily an optimally-engineered Sherlock. The claim we defend is that SGR delivers exceptiontriggered, zero-shot recovery without a verifier or planner install. Efficiency implication. Because SGR reexecutes only the failed subgraph, it avoids regenerating completed siblings’ outputs: on a K=8, L=8 DAG with one failure at depth 4, FullReplan re-executes 32 completed nodes per attempt while SGR touches only the failed node and its 4 descendants, and the token savings compound with DAG size (Table 17). Cross-backbone stability. Recovery gener-

Benchmark

AK ReAct Speed Acc. Structure

AutomationBench 5.5s 24.8s 4.5× 5% Indep. APIs InterruptBench 14.2s 38.1s 2.7× 44% Non-block. AAR Hard 72.4s 85.2s 1.18× 39% Diamond Synthetic K=32 22.1s 281.4s 12.7× – 8×32 DAG tau-bench Gaia2

17.2s 18.2s

17.1s 18.0s

1.0× 84% Linear 1.0× 39% Linear

Table 4: Real LLM inference results (task counts: AutomationBench 20, InterruptBench 113, AAR Hard 15, tau-bench 165, Gaia2 640). Acc. is task solve-rate; AK and ReAct match within noise (same backbone), with rare scheduling-induced divergences (e.g., one diverged task on tau-bench retail, App. M). Top: parallel workloads where AK delivers speedup. Bottom: standard linear-chain benchmarks. Execution-completion rate (a separate reliability metric on which AK trails by 1–2% due to tail-latency timeouts) is in App. B.8. Wall-clock cells are 3-seed means (point estimates; per-seed dispersion not characterized).

alizes across the Claude family: Agent-Kernel reaches 100% on Sonnet 4.5 and Haiku 4.5 at K∈ {8,32} and on Opus 4.5 at K=8 (all fr=0.3), while the ReAct baselines recover partially only on Opus 4.5 (App. M). SGR’s effectiveness is not backbone-specific. 4.3

Wall-Clock and Correctness on Real Workloads

Gains scale with DAG parallelism. AutomationBench (cross-application REST API orchestration) has naturally independent service calls, and AK forks them in parallel for a 4.5× speedup. InterruptBench demonstrates the non-blocking main loop: main-loop acknowledgement latency (MLAL, the time for the loop to accept new work while subagents run) is 0.15 ms for Agent-Kernel versus 1,600–2,000 ms for the blocking baselines, because new fork calls execute immediately while background sub-agents continue (App. B.5). Task accuracy on standard benchmarks. On tau-bench (Yao et al., 2025) (1,320 runs) and Gaia2 (Froger et al., 2026) (2,560 runs), AgentKernel achieves 84% and 39% task accuracy, matching ReAct-serial within noise on these linear workloads (B3 tracks ReAct-serial here, having no fan-out to exploit; its gap to SGR appears only on parallel failure grids, App. M). The substrate thus adds recovery and parallelism without degrading accuracy. We avoid the stronger phrase “zero overhead,” since some long linear chains show small shortfalls (App. B.8) and context inheritance car-

Raw-concat

Summarizer

Top-k

Variant

K

Acc

Acc

Acc

1 16 32 128

100% 86 100% 339 100% 608 100% 2,363

Agent-Kernel (full) NoSAB NoDSP FullReplan (matched budget) NoSGR

Tok

Tok

100% 80 100% 243 100% 416 100% 1,588

Tok

100% 86 100% 136 100% 136 100% 140

Table 5: Context-inheritance K-sweep (Sonnet 4.5). Acc = task accuracy; Tok = mean injected-context tokens/child prompt. Accuracy is flat at 100% to K=128; top-k retrieval holds token cost roughly constant (17× cheaper than raw-concat at K=128). Full grid (K∈{1..128}, 3 seeds) in App. O.

ries a fan-in-dependent token cost (below). Scaling by K. On failure-free scenarios, AgentKernel’s latency is roughly flat above K=2 (DSP saturates the 3-region API pool) while ReAct grows linearly (K=32: 22.1s vs 281.4s). AK trails AsyncLM below K≈8 (scheduling overhead) then overtakes it, as DSP advances layers without waiting for slow outliers (App. B.3). Context inheritance does not degrade accuracy at scale. A concern is that as K grows, DSP injects more parent output into each child prompt, risking context saturation. We swept K∈ {1..128} under three context policies (Table 5): accuracy stays flat at 100% through K=128 on Sonnet 4.5 (Haiku 4.5 confirms at K∈ {1,4,16,32}). This is a ceiling result (100% even at K=1), so it rules out saturation only in this easy difficulty band, not in general. The effect that does appear is token cost: top-k retrieval is 17× cheaper than raw concatenation at K=128, so we recommend top-k retrieval as the default for K≥16 (App. O). Dependency correctness. On a hash-chain benchmark where children cryptographically verify parent outputs (1,440 runs), Agent-Kernel achieves 100% scenario-level correctness (Clopper–Pearson 95% CI (Clopper and Pearson, 1934) [99.7%, 100.0%]). AsyncLM, which dispatches all subtasks at t0 ignoring depends_on edges, collapses to 0% [0.0%, 0.3%]. This is structural by construction, but quantifies a correctness property that prior work left qualitative. 4.4

Ablation: Is SGR the Key Design Choice?

Yes. SGR is the only primitive whose removal degrades performance (Table 6). Agent-Kernel (full), NoSAB, and NoDSP all reach 100%, but NoSGR collapses to 39.4% (the halt-on-failure level), and FullReplan (same budget, whole-task

Overall success 100.0% 100.0% 100.0% 56.2% 39.4%

Table 6: Ablation: overall success across the failure grid. Removing SGR collapses recovery to the halt-on-failure level (39.4%); FullReplan (matched budget, whole-task restart) reaches only 56.2%; removing SAB or DSP is invisible on this benchmark. Per-fr breakdown in App. B.9. System (real binary)

Recovery

Re-exec.

Wall

Agent-Kernel (SGR) LangGraph 1.2∗ LlamaIndex 0.14 AutoGen v0.4

60/60 60/60 0/60 0/60

1.0 1.0 0.0 0.0

0.12s 0.52s n/a n/a

Table 7: Real-binary integration on a diamond fan-out DAG with one failing leaf (12 configs × 5 seeds = 60 cells/system). Re-exec. = cells re-executed on recovery. ∗ LangGraph recovers only with a custom retry_on filter; its default excludes our injected exceptions, and AutoGen v0.4 has no default runtime retry (App. N).

restart) reaches only 56.2%. This confirms retry alone is insufficient; where you retry is the design choice that matters. SAB and DSP are enabling substrate (durability, reactive scheduling) whose value emerges under conditions outside this benchmark (process crashes, K>32 fan-out). Framework default recovery paths lack automatic selective retry. On the same grid, primitive re-implementations of the default scheduling strategy of LangGraph (LangChain, 2024), AutoGen (Wu et al., 2024), and LlamaIndex (Liu, 2022) collapse to ∼39% under failure, matching nonretrying baselines, because each halts or requires full state rewind when a node fails (full table in App. B.10). These are re-implementations of the scheduling primitive, not runs of the shipped binaries. Running the actual binaries confirms the boundary (Table 7): with a custom retry filter LangGraph 1.2 recovers fully, but its default filter excludes the application-level exceptions we inject, and AutoGen v0.4 has no default runtime retry primitive. Agent-Kernel is therefore the only system that resets transitive descendants and preserves siblings without user configuration. Cross-backbone replication. The pattern holds across the Claude family (Table 8): Agent-Kernel reaches 100% recovery on Sonnet 4.5, Haiku 4.5,

Backbone

Config

AK

ReAct

Sonnet 4.5 Sonnet 4.5 Haiku 4.5 Haiku 4.5 Opus 4.5

K=8, fr=0.3 K=32, fr=0.3 K=8, fr=0.3 K=32, fr=0.3 K=8, fr=0.3

100% 100% 100% 100% 100%

0% 0% 0% 0% 50%

Table 8: Cross-backbone recovery across the Claude family (transient failures). The ReAct column gives ReAct-serial; ReAct+retry matches it on every cell.

and Opus 4.5, while the ReAct baselines recover partially only on Opus 4.5. Token efficiency under failure. By avoiding regeneration of completed siblings, SGR generates an estimated ∼2.7× fewer tokens than FullReplan (∼35K vs ∼96K) at 2.2× higher success on a K=8, L=8 DAG at fr=0.3 (App. C); the gap compounds with scale. Auto-Fork. An extension automatically decomposes a sequential task into a parallel DAG via one LLM decomposition call (cycle-validated); on AAR-Linear it finds latent parallelism for a 3.3× speedup while inheriting SGR’s recovery guarantees (App. E).

5

Discussion

Where you retry, and on what plane. The 44pp gap between SGR (100%) and FullReplan (56.2%) under identical budgets (§4.4) isolates retry scope, not retry itself, as the key variable: any multistep LLM recovery mechanism should preserve completed work rather than replay from the root. But that pattern is established (Spark, Erlang/OTP, Dryad), and recent runtimes (Sherlock, Atomix, AgentGit) already preserve completed work; what none touch is the LLM content plane: composing upstream text into a downstream prompt (context inheritance) and rewriting a prompt on format drift (prompt-mutation retry). Our ablations (App. Q) show each is necessary, by construction, in temperature-0 probes rather than large-N benchmarks. What is new for LLM agents. Each ingredient (selective DAG recovery, persistence, context passing, error-feedback retry) is established, and we cite its lineage. The contribution is the system result built from them: (i) the measured finding that retry scope, not retry itself, is the lever (SGR 100% vs. FullReplan 56.2% at the same budget); (ii) recovery-time context inheritance as a first-class policy, which the ablation shows is nec-

essary; (iii) a formal state-preservation guarantee, with dependency correctness quantified (100% vs. 0% for dependency-blind dispatch); and (iv) recovery without configuration, which the shipped LangGraph, AutoGen, and LlamaIndex binaries do not provide by default. Detection versus recovery. A verifier such as Sherlock’s catches semantic errors that an exception cannot, so it is the stronger detector; SGR is a recovery substrate, and the two compose rather than compete (§3.1). Our ∼10× speed gap over Sherlock-generous is therefore not a claim about detection quality: it comes from that adaptation’s serial transitive-closure replay and its verifier pass on every intermediate output (App. L). What we defend is narrower: recovery itself needs no verifier or planner install, and when semantic detection is needed, a verifier’s signal can drive the same reset. The open frontier is therefore semantic failures. In a preliminary study, a schema check plus prompt-mutation retry recovers 14/18 format-drift scenarios vs. 6/18 for blind retry (App. Q.2), so subgraph reset appears to compose with languageaware detection and recovery. Testing that at scale is future work.

6

Conclusion

We presented Agent-Kernel, a non-blocking runtime that ports the established subgraph-selective recovery pattern to the LLM content plane. Its primitive, Sub-Graph Recovery (SGR), resets a failed node’s transitive descendants while preserving completed siblings and composing each parent’s text into its children’s prompts (context inheritance), on a durable substrate with a formal guarantee. Across 14,434 runs it achieves full recovery where whole-trajectory replay exhausts (100% vs 55%). Against baselines that also recover fully, its advantage is wall-clock (3.3–12.7×). The pattern is established; with content-plane semantics it becomes a practical reliability primitive for agentic systems.

Limitations While Agent-Kernel demonstrates strong performance on failure recovery and parallel orchestration, six limitations remain. First, our main failure model evaluates only transient crashes that succeed on retry. The exception is the trigger we control, not a limit of the mechanism, since any detector that marks a node failed fires the same reset (§3.1), but we evaluate other detectors only in small probes. Real LLM agent failures include hallucination, format drift, and capability limits where blind re-execution is insufficient. SGR’s architecture supports modified retry with error-context injection, and our preliminary study on semantic failures is encouraging (14/18 vs 6/18 for blind retry, §5). A complete large-N evaluation across semantic failure patterns remains future work. Extending SGR to handle non-transient failures would require integrating output validation into the retry loop: determining when a completed output is incorrect and should trigger subgraph reset. Second, Agent-Kernel’s advantages are conditional on workload structure. On linear chains without exploitable parallelism or failure injection (tau-bench, Gaia2), the system ties ReAct-serial within noise, with negligible overhead and no benefit. Users whose workloads are exclusively sequential will see no improvement from adopting Agent-Kernel. Third, our grid-scale framework comparison uses primitive re-implementations of each framework’s default scheduling strategy rather than the full binaries. The real-binary integration tests for LangGraph 1.2, LlamaIndex 0.14, and AutoGen v0.4 (Table 7, App. N) cover a single diamond fan-out topology; broader integration across topologies and framework configurations would further strengthen the comparison. Fourth, results cover the Claude family (Sonnet 4.5, Haiku 4.5, Opus 4.5). Cross-provider validation (GPT-class and open-source models) is absent, and the system’s reliance on structured output parsing means backbone changes may require parser adaptation. Fifth, the state-preservation guarantee covers the state SAB records, not external side effects (§3.1). We do not evaluate tools with non-idempotent effects, idempotency keys, or compensation: a node that fails after a side-effecting call can repeat that effect when it is retried. Composing SGR with a

transactional tool boundary such as Atomix (Mohammadi et al., 2026), or with application-specific idempotency and compensation logic for retryable failure modes, is future work. Finally, our positive results on context inheritance are bounded by the backbones and task distribution we test. The K-sweep shows accuracy is flat to K=128 on Sonnet 4.5, and to K=32 on Haiku 4.5 (App. O), so saturation does not appear here. However, longer or more heterogeneous intermediate outputs, or weaker backbones, could surface degradation that our top-k retrieval policy only partially mitigates.

Ethics Statement This work introduces runtime infrastructure for LLM agent orchestration. We do not train new models, collect personal data, or deploy the system in sensitive domains. All experiments use commercially available LLM API endpoints under standard terms of service. The synthetic benchmarks contain no harmful content. We acknowledge that more capable agent orchestration could amplify both beneficial and harmful uses of LLM agents; responsible deployment requires appropriate access controls and monitoring at the application layer, which is outside our scope. Throughout the development of this work, we used generative AI systems for language refinement and code test generation. All core research contributions, system design, experimental methodology, and analysis are the result of human intellectual effort.

References Apache Software Foundation. 2015. Apache Airflow. https://airflow.apache.org/. Software. Joe Armstrong. 2003. Making Reliable Distributed Systems in the Presence of Software Errors. Ph.D. thesis, Royal Institute of Technology (KTH), Stockholm. Yadu Babuji, Anna Woodard, Zhuozhao Li, Daniel S. Katz, Ben Clifford, Rohan Kumar, Lukasz Lacinski, Ryan Chard, Justin M. Wozniak, Ian Foster, Michael Wilde, and Kyle Chard. 2019. Parsl: Pervasive parallel programming in Python. In Proceedings of the 28th International Symposium on High-Performance Parallel and Distributed Computing, pages 25–36. Association for Computing Machinery. Sebastian Burckhardt, Chris Gillum, David Justo, Konstantinos Kallas, Connor McMahon, and Christopher S. Meiklejohn. 2021. Durable Functions: Semantics for stateful serverless. Proceedings of the

ACM on Programming Languages, 5(OOPSLA):1– 27.

Jerry Liu. 2022. LlamaIndex. https://github.com/ run-llama/llama_index. Software library.

Charles J. Clopper and Egon S. Pearson. 1934. The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika, 26(4):404–413.

Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, Shashank Gupta, Bodhisattwa Prasad Majumder, Katherine Hermann, Sean Welleck, Amir Yazdanbakhsh, and Peter Clark. 2023. Self-Refine: Iterative refinement with self-feedback. In Advances in Neural Information Processing Systems, volume 36, pages 46534–46594. Curran Associates, Inc.

Kiril Dichev, Herbert Jordan, Konstantinos Tovletoglou, Thomas Heller, Dimitrios S. Nikolopoulos, Georgios Karakonstantis, and Charles Gillan. 2017. Dependency-aware rollback and checkpoint-restart for distributed task-based runtimes. arXiv preprint arXiv:1705.10208. Elmootazbellah N. Elnozahy, Lorenzo Alvisi, Yi-Min Wang, and David B. Johnson. 2002. A survey of rollback-recovery protocols in message-passing systems. ACM Computing Surveys, 34(3):375–408. Romain Froger, Pierre Andrews, Matteo Bettini, Amar Budhiraja, Ricardo Silveira Cabral, Virginie Do, Emilien Garreau, Jean-Baptiste Gaya, Hugo Laurençon, Maxime Lecanu, Kunal Malkan, Dheeraj Mekala, Pierre Ménard, Gerard Moreno-Torres Bertran, Ulyana Piterbarg, Mikhail Plekhanov, Mathieu Rita, Andrey Rusakov, Vladislav Vorotilov, and 5 others. 2026. Gaia2: Benchmarking LLM agents on dynamic and asynchronous environments. In The Fourteenth International Conference on Learning Representations. In Gim, Seung-seob Lee, and Lin Zhong. 2024. Asynchronous LLM function calling. arXiv preprint arXiv:2412.07017. Michael Isard, Mihai Budiu, Yuan Yu, Andrew Birrell, and Dennis Fetterly. 2007. Dryad: Distributed dataparallel programs from sequential building blocks. In Proceedings of the 2nd ACM SIGOPS/EuroSys European Conference on Computer Systems (EuroSys ’07), pages 59–72. Sehoon Kim, Suhong Moon, Ryan Tabrizi, Nicholas Lee, Michael W. Mahoney, Kurt Keutzer, and Amir Gholami. 2024. An LLM compiler for parallel function calling. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 24370–24391. PMLR. Zae Myung Kim, Dongseok Lee, Jaehyung Kim, Vipul Raheja, and Dongyeop Kang. 2026. The Amazing Agent Race: Strong tool users, weak navigators. arXiv preprint arXiv:2604.10261. LangChain. 2024. LangGraph: Building stateful, multiactor applications with LLMs. https://github. com/langchain-ai/langgraph. Software library. Accessed 2026-05-25. Yang Li, Siqi Ping, Xiyu Chen, Xiaojian Qi, Zigan Wang, Ye Luo, and Xiaowei Zhang. 2025. AgentGit: A version control framework for reliable and scalable LLM-powered multi-agent systems. arXiv preprint arXiv:2511.00628.

Kai Mei, Xi Zhu, Wujiang Xu, Mingyu Jin, Wenyue Hua, Zelong Li, Shuyuan Xu, Ruosong Ye, Yingqiang Ge, and Yongfeng Zhang. 2025. AIOS: LLM agent operating system. In Second Conference on Language Modeling. Bardia Mohammadi, Nearchos Potamitis, Lars Klein, Akhil Arora, and Laurent Bindschaedler. 2026. Atomix: Timely, transactional tool use for reliable agentic workflows. arXiv preprint arXiv:2602.14849. Prefect Technologies. 2019. Prefect: The dataflow automation platform. https://www.prefect.io/. Software. Yeonju Ro, Haoran Qiu, Íñigo Goiri, Rodrigo Fonseca, Ricardo Bianchini, Aditya Akella, Zhangyang Wang, Mattan Erez, and Esha Choukse. 2025. Sherlock: Reliable and efficient agentic workflow execution. arXiv preprint arXiv:2511.00330. Daniel Shepard and Robin Salimans. 2026. AutomationBench. arXiv preprint arXiv:2604.18934. Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. 2023. Reflexion: Language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems, volume 36, pages 8634–8652. Curran Associates, Inc. Robert E. Strom and Shaula Yemini. 1985. Optimistic recovery in distributed systems. ACM Transactions on Computer Systems, 3(3):204–226. Temporal Technologies. 2020. Temporal: Durable execution platform. https://temporal.io/. Software. Matthew Thompson. 2025. The dual-state architecture for reliable LLM agents. arXiv preprint arXiv:2512.20660. Harsh Trivedi, Tushar Khot, Mareike Hartmann, Ruskin Manku, Vinty Dong, Edward Li, Shashank Gupta, Ashish Sabharwal, and Niranjan Balasubramanian. 2024. AppWorld: A controllable world of apps and people for benchmarking interactive coding agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 16022–16076, Bangkok, Thailand. Association for Computational Linguistics.

Edwin B. Wilson. 1927. Probable inference, the law of succession, and statistical inference. Journal of the American Statistical Association, 22(158):209–212. Qingyun Wu, Gagan Bansal, Jieyu Zhang, Yiran Wu, Beibin Li, Erkang Zhu, Li Jiang, Xiaoyun Zhang, Shaokun Zhang, Jiale Liu, Ahmed Hassan Awadallah, Ryen W. White, Doug Burger, and Chi Wang. 2024. AutoGen: Enabling next-gen LLM applications via multi-agent conversations. In First Conference on Language Modeling. Shunyu Yao, Noah Shinn, Pedram Razavi, and Karthik Narasimhan. 2025. τ -bench: A benchmark for toolagent-user interaction in real-world domains. In The Thirteenth International Conference on Learning Representations. Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik R. Narasimhan, and Yuan Cao. 2023. ReAct: Synergizing reasoning and acting in language models. In The Eleventh International Conference on Learning Representations. Geunbin Yu. 2026. AdaptOrch: Task-adaptive multiagent orchestration in the era of LLM performance convergence. arXiv preprint arXiv:2602.16873. Junwei Yu, Yepeng Ding, and Hiroyuki Sato. 2025. DynTaskMAS: A dynamic task graph-driven framework for asynchronous and parallel LLM-based multi-agent systems. In Proceedings of the International Conference on Automated Planning and Scheduling, volume 35, pages 288–296. Matei Zaharia, Mosharaf Chowdhury, Tathagata Das, Ankur Dave, Justin Ma, Murphy McCauley, Michael J. Franklin, Scott Shenker, and Ion Stoica. 2012. Resilient distributed datasets: A fault-tolerant abstraction for in-memory cluster computing. In 9th USENIX Symposium on Networked Systems Design and Implementation (NSDI 12), pages 15–28, San Jose, CA. USENIX Association. Henry Peng Zou, Chunyu Miao, Wei-Chieh Huang, Yankai Chen, Yue Zhou, Hanrong Zhang, Yaozu Wu, Liancheng Fang, Zhengyao Gu, Zhen Zhang, Kening Zheng, Fangxin Wang, Yi Nian, Shanghao Li, Wenzhe Fan, Langzhou He, Weizhi Zhang, Xue Liu, and Philip S. Yu. 2026. When users change their mind: Evaluating interruptible agents in long-horizon web navigation. arXiv preprint arXiv:2604.00892.

A

Architecture Diagram

B

Extended Experimental Results

B.1

Evaluation Footprint

B.2

External Benchmark Results

Agent-Kernel is 4.5× faster than ReAct on AutomationBench (cross-app API orchestration with natural fork points), 2.7× on InterruptBench (nonblocking main loop), and 15–20% on AAR (diamond patterns in dependency DAGs).

Evaluation

Runs

Section

Synthetic (failure recovery) Synthetic (dependency) Ablation + FullReplan K=32 scaling (5 seeds) Framework comparison (primitive) External benchmarks tau-bench + Gaia2

1,440 1,440 1,320 80 360 3,289 3,880

§4.2 §4.3 §4.4 §4.3 §4.4 §4.3 §4.3

Core subtotal

11,809

Sherlock + B3 grids Cross-backbone Real-framework integration K-sweep (Sonnet+Haiku)

414 App. L, M 135 App. M 240 App. N 1,836 App. O

Total

14,434

Table 9: Evaluation footprint. Rows above the first subtotal are the core grids and benchmarks (11,809 runs); rows below are the comparator and scaling studies (2,625 runs), for a total of 14,434 runs. Benchmark

Agent-Kernel

ReAct

AsyncLM

AIOS

AutomationBench (20 tasks) AAR Easy (8 stops, 20 tasks) AAR Hard (25 stops, 15 tasks) InterruptBench (113 tasks) AppWorld dev (10 tasks) AppWorld test_normal (15 tasks)

5.5s 24.9s 72.4s 14.2s 62.6s 8.9s

24.8s 31.2s 85.2s 38.1s 64.0s 9.0s

5.1s 6.4s 13.5s 9.7s 9.9s 5.7s

25.2s 32.3s 86.3s 37.8s 60.9s 8.5s

Table 10: Wall-clock on external benchmarks with real LLM inference. Bold marks Agent-Kernel where it is the fastest dependency-respecting system (AK/ReAct/AIOS); on the two AppWorld rows AIOS edges it out. AsyncLM ignores dependency edges, producing faster but potentially incorrect execution.

B.3

Wall-Clock by Parallel Width K

K

Agent-Kernel

AsyncLM

ReAct

AIOS

1 4 8 16 32

9.9s 9.6s 11.2s 12.2s 22.1s

3.0s 5.1s 9.0s 15.9s 38.9s

10.0s 29.8s 62.3s 116.3s 281.4s

10.3s 30.6s 58.8s 118.0s 273.8s

Table 11: Wall-clock by K (failure-free, K≤16: 3 seeds; K=32: 5 seeds). Agent-Kernel stays roughly flat while ReAct/AIOS grow linearly; AsyncLM is cheapest below K≈8, after which Agent-Kernel overtakes it.

B.4

Speed-Correctness Tradeoff

AsyncLM is consistently 3–8× faster than AgentKernel because it submits all N subtasks simultaneously regardless of dependencies. Agent-Kernel pays a wall-clock cost for correctness: it executes in DAG-layer order, with wall-clock O(L × tcall ) vs AsyncLM’s O(tcall ). The gap equals the dependency depth—the price of respecting execution

User code main agent loop (non-blocking)

query

fork

fetch

retry

cancel

5-verb API

Agent-Kernel

Sub-Agent 1 read DAG edges

DAG State Propagator (DSP)

SQLite, 7-state FSM, durable propagate state

Sub-Agent 2

daemon thread

Sub-Agent 3

SGR Sub-Graph Recovery

.. . Sub-Agent N

executor pool (any LLM)

Sub-Agent Buffer (SAB)

Figure 3: Agent-Kernel architecture. The user calls the 5-verb API; DSP dispatches sub-agents with parents’ outputs injected from SAB (context inheritance). SGR handles failure by resetting only the failed subgraph.

order.

K

L=1

L=2

L=4

L=8

B.5

1 4 16

50.0% 80.0% 94.1%

33.3% 44.4% 48.5%

20.0% 23.5% 24.6%

11.1% 12.1% 12.4%

Main-Loop Acknowledgement Latency (MLAL)

We define main-loop acknowledgement latency (MLAL) as the time for the agent’s main loop to accept and begin acting on a new request while background sub-agents are still running—i.e., how quickly the loop acknowledges an interrupt, not how quickly the interrupted work finishes. On the 113-task InterruptBench slice across five systems, Agent-Kernel’s MLAL is 0.15 ms versus 1,600– 2,000 ms for the blocking baselines, because new fork calls return immediately while background sub-agents continue. This latency metric is distinct from the 2.7× end-to-end wall-clock speedup on the same benchmark (Table 4). B.6

Resource Efficiency

System

Total calls

Successes

Calls/success

Agent-Kernel AsyncLM ReAct-serial AIOS

∼4,800 ∼2,400 ∼1,200 ∼1,800

360/360 360/360 142/360 142/360

13.3 6.7 8.5 12.7

Table 12: API calls per successful task. ReAct’s low total reflects early halting, not efficiency.

B.7

AsyncLM Node Accuracy by K×L

B.8

tau-bench and Gaia2 Full Results

Table 14 reports wall-clock and executioncompletion rate (the fraction of runs that finish within the runner timeout without a harness-level error)—distinct from the task solve accuracy in the main-text Table 4. Solve accuracy matches within noise for AK and ReAct (same backbone), with

Table 13: AsyncLM node accuracy drops with depth L. Surviving accuracy equals root-node fraction.

only rare scheduling-induced divergences (e.g., the single diverged tau-bench-retail task in App. M); completion rate differs because AK’s DAG-layer scheduling occasionally accumulates tail latency past the 60s runner timeout on long linear chains, costing 1–2%. The run counts in §4.1 are aggregate: a run is one (task × seed × config) cell, so the totals exceed the per-benchmark task counts in Table 4. tau-bench’s 1,320 runs cover its 165 tasks (an 8× multiplier over seeds and configs) and Gaia2’s 2,560 runs cover its 640 tasks (4×); accuracy in Table 4 is reported per task, aggregated over the corresponding runs. Benchmark (wall / completion) tau-bench (Mac) tau-bench (dev-dsk) Gaia2 mini Gaia2 search Gaia2 execution Gaia2 time

AK

ReAct

AsyncLM

AIOS

17.2s / 98.2% 16.2s / 99.4% 18.2s / 99.4% 2.7s / 100% 23.1s / 98.1% 21.9s / 99.4%

17.1s / 100% 16.6s / 100% 18.0s / 100% 2.6s / 100% 22.3s / 99.4% 21.6s / 100%

4.9s / 100%* 4.7s / 100%* 4.6s / 100%* 2.7s / 100%* 5.5s / 99.4%* 4.6s / 100%*

17.1s / 100% 16.3s / 100% 17.8s / 100% 2.7s / 100% 22.9s / 99.4% 21.8s / 100%

Table 14: Linear-chain benchmarks: wall-clock / execution-completion rate (not task solve accuracy; see Table 4 for solve accuracy). *AsyncLM ignores dependencies; correctness unreliable on real data flows.

AK’s 1–2% shortfall on tau-bench is from Sonnet tail-latency accumulation past the 60s runner timeout on 15+ subtask chains, not scheduler overhead.

B.9

Ablation: Per-Failure-Rate Breakdown

Variant

Overall

fr=0.0

fr=0.1

fr=0.3

Agent-Kernel (full) NoSAB (in-memory) NoDSP (tick-poll) NoSGR FullReplan

100.0% 100.0% 100.0% 39.4% 56.2%

100.0% 100.0% 100.0% 100.0% 100.0%

100.0% 100.0% 100.0% 11.7% 67.5%

100.0% 100.0% 100.0% 6.7% 45.0%

Table 15: Ablation (3 seeds × 120 scenarios per variant). SGR is the sole performance primitive. FullReplan validates that selectivity—not retry alone—drives the gain.

B.10

Framework Primitive Re-implementation: Full Results

Primitive re-implementation

Success rate

Wall mean (s)

Agent-Kernel AsyncLM-style LangGraph-style ReAct-serial AIOS-style AutoGen-style LlamaIndex-style

100.0% 100.0% 39.4% 39.4% 39.4% 36.7% 36.7%

10.62 7.47 6.04 18.25 29.56 0.28 0.27

Table 16: 7-way primitive re-implementation comparison: each row reproduces a framework’s default scheduling strategy on our synthetic grid, not its shipped binary. Strategies lacking automatic selective retry collapse to ∼39% under failure injection (this full grid includes fr=0, so halt baselines read 39.4% here vs 36.7% on the fr 0.1–0.3 slice of Table 3). Real-binary results are in App. N, where LangGraph 1.2 with a custom retry filter recovers fully.

C

Estimated Token Cost Under Failure

Table 17 quantifies SGR’s token savings on a K=8, L=8 DAG (64 nodes) at failure_rate=0.3, where each node generates ∼500 output tokens via Sonnet 4.5. These are estimates from per-node token accounting, not metered totals.

D

Crash-Recovery Experiment

We validate SAB’s durability with a crash-recovery stress test. A K=8, L=4 DAG (32 nodes) executes to 50% completion, the process is terminated, and a new process reopens the .db file. Across 3 seeds: 16/32 completed nodes preserved (100%), 8 stale running nodes re-queued, full DAG completed correctly after recovery. Recovery wall-clock: 0.121s ± 0.006s.

System

Success

Retries

Tokens generated

Tokens wasted

Agent-Kernel (SGR) FullReplan ReAct+retry ReAct-serial

100% 45% 42% 7%

1.8 3.0 3.0 0

∼35K ∼96K ∼96K ∼32K

∼3K (8%) ∼64K (67%) ∼64K (67%) 0 (fails)

Table 17: Estimated token cost on a K=8, L=8 DAG at fr=0.3 (∼500 tokens/node). SGR generates 2.7× fewer tokens than FullReplan while achieving 2.2× higher success. Wasted tokens = tokens generated for nodes later discarded or never contributing to a successful output. At fr=0.3, FullReplan re-runs on average ∼56 already-completed nodes per attempt (vs the 32 completed above a single depth-4 failure in the illustrative case of §4.2).

E

Auto-Fork Analysis

Auto-Fork automatically decomposes single-agent tasks into parallel DAGs via LLM decomposition. Break-even condition: tdecompose < min(thopi ). On AAR-Linear (20 sequential trails), Auto-Fork discovered latent parallelism and achieved 5.2s vs ReAct’s 17.3s (3.3× faster). On short QA (MuSiQue 2-hop), decomposition overhead matches savings (neutral). Auto-Fork is workload-dependent: profitable when per-hop latency exceeds the ∼1s decomposition cost.

F

Open-Source Backbone Composability (Future Work)

Agent-Kernel’s orchestration layer (SAB, DSP, SGR) is backbone-agnostic by design. As future work, we are preparing LoRA-fine-tuned Qwen2.57B and 32B on 2,400 Sonnet-generated orchestration trajectories (SFT warm-up) plus GRPO with a shaped reward. The orchestration layer remains unchanged; only the executor backbone varies. Training configuration: LoRA rank 16, AdamW lr=1e4, bf16 on A100-40GB. No evaluation results are available for this paper; we include this to illustrate the composability pathway for open-source deployment.

G

Reproducibility

Model: Sonnet 4.5 (claude-sonnet-4-5-v1:0), regions us-east-1/2, us-west-2; cross-backbone checks use Haiku 4.5 and Opus 4.5. Scale: 14,434 runs total—11,809 in the core grids and benchmarks plus 2,625 in the comparator and scaling studies (Table 9). Specification: the SAB record schema and 7-state FSM (§3.2), the SGR reset procedure (§3.1), the full verb signatures (App. J.1), and the core prompt templates and control-flow

pseudocode (DSP cascades, context inheritance, prompt-mutation retry, the seeded failure-injection wrapper, Auto-Fork) in App. H together specify the runtime and the synthetic harness in enough detail to re-implement both. Grids: the synthetic configuration grid, seeds, and retry budget are given in §4.1; external benchmarks are used with their public task sets and the task counts in Table 4.

H

Artifacts: Prompts and Pseudocode

To support reproduction, we give the core prompt templates and control-flow pseudocode. Placeholders in {{...}} are filled at dispatch; text is lightly edited for length. H.1

DSP Reactive Cascades

The DSP daemon (implemented as the Reactive Cascade Scheduler) consumes SAB state-change notifications and reacts. On a node reaching complete, it advances any dependent whose parents are all complete; on a node reaching a failed/cancelled/unreachable state, it marks its dependents unreachable and keeps cascading. Retry (§3.1) is a separate cascade requested through the API. Failure and retry are decoupled: DSP marks descendants unreachable immediately on failure, and a separate budget-bounded control loop (below) decides whether to invoke retry. This mirrors the shipped scheduler. cascade_from(node): if node.state == COMPLETE: # forward-success for c in dependents(node): if c.state == WAITING and all(p.state==COMPLETE for p in parents(c)): start_running(c) # injects context at dispatch elif node.state in {FAILED, CANCELLED, UNREACHABLE}: for c in dependents(node): # failure/cancel cascade if c.state not in TERMINAL: transition(c, UNREACHABLE); cascade_from(c) retry(node): # SGR entry point (API verb) if node.state != FAILED: return for d in bfs_descendants(node): # transitive closure if d.state == UNREACHABLE: transition(d, WAITING) # reset only unreachable descendants re_evaluate(node) # re-run node; forward cascade resumes

H.2

Context Inheritance

At dispatch, the executor reads each declared parent’s latest intermediate_outputs text from SAB and prepends it to the child’s task as a structured block (the shipped default; the summarizer and top-k retrieval policies evaluated in App. O replace the raw concatenation with a compressor / relevance ranker). format_predecessors(child, buffer): if not child.depends_on: return ""

lines = [] for pid in child.depends_on: # in declared order p = buffer.get(pid) text = latest_text(p.intermediate_outputs) # outputs [-1]["text"] if text: lines.append(f" <from id={pid!r}>{text}</from>") return "<predecessor_outputs>\n" + "\n".join(lines) + "\n</predecessor_outputs>" # at dispatch: user_prompt = predecessors_block + "\n\n" + child.task

H.3

Prompt-Mutation Retry (design)

The shipped runtime re-runs a retried node with its original prompt. Prompt-mutation retry is a design extension we evaluate as a preliminary probe (App. Q.2), not part of the core recovery loop: instead of re-issuing the identical prompt, it appends an error-context block built from the node’s recorded attempt_history (the last error and prior output) plus the expected schema. It is the mechanism behind the format-drift study and the direction we flag for semantic failures; we describe it here for reproducibility of that probe. RETRY PROMPT SUFFIX (probe; appended when attempt_history has an error) =================================================== Your previous attempt failed validation. Error: {{last_error}} # from attempt_history Previous (invalid) output: {{previous_output}} Expected schema: {{output_schema}} Return a corrected result that matches the schema exactly.

H.4

Failure-Injection Wrapper

Failure injection has two layers. Scenario generation (seeded per scenario) marks each subtask to fail on its first attempt with probability fr , producing a fixed failure_injections list of (subtask, attempt) pairs. A wrapper executor then deterministically replays that list—raising a RuntimeError on the listed attempts and calling the real backbone otherwise—so a crash is transient by construction (it succeeds on the following attempt). # scenario generation (seeded rng per scenario): for subtask in scenario: if fr > 0 and rng.random() < fr: # attempt 0 only failures.append({"at_subtask": subtask.id, "attempt": 0}) # wrapper executor at run time: inject(record): sid, attempt = record.id, attempts_seen[record.id] attempts_seen[record.id] += 1 if (sid, attempt) in failure_set: raise RuntimeError(f"SimulatedTransient {sid} attempt { attempt}") return base_executor(record) # real LLM call

H.5

Auto-Fork Decomposition

Auto-Fork (App. E) issues one decomposition call, validates the emitted DAG for cycles, then executes it on the standard SAB+DSP+SGR substrate.

AUTO-FORK DECOMPOSITION PROMPT ============================== Decompose the task below into the smallest set of sub-tasks that can run concurrently. Emit JSON: [{"id","task","role","depends_on":[ids]}] Declare a dependency ONLY when a sub-task needs another's output. Independent sub-tasks MUST have empty depends_on.

J.1

Full Verb Signatures

Table 2 in the main text lists each verb’s effect and scheduler cascade; Table 18 gives the full call signatures.

Task: {{task}}

Verb

Signature

Cycle validation rejects any emitted graph whose depends_on edges are not a DAG; on rejection Auto-Fork falls back to serial execution.

fork retry cancel query fetch

fork(task, role, depends_on=[]) retry(id) cancel(id) query(filter={}) fetch(id)

I

Motivating Scenarios

Three production patterns motivate Agent-Kernel’s design: 1. Incident response (parallel + recovery). An SRE asks: “Pull error logs from all 5 regions, correlate with deploys from the last 30 minutes, check DB slow queries, flag coincident config changes.” ReAct serializes these: fetches us-east-1 logs (30s), us-east-2 (30s), then us-west-1 (fails: timeout). ReAct halts, discards two completed log pulls, and replans from scratch. Agent-Kernel forks all five log pulls in parallel; when one fails, SGR resets only that node, preserving the four successful pulls. The correlate-deploys step declares depends_on the five log pulls and executes once all complete. 2. Refactor-and-verify (fan-out + fan-in). “Rename User across all 12 microservices, update API contracts, run integration tests.” The 12 renames are independent; the test job depends on all completing. Agent-Kernel forks them concurrently; SGR handles any individual rename failure without discarding the other 11 successful renames. 3. Interruptible research (non-blocking). “Find the top 5 EV-battery competitors and summarize their Q3 earnings.” At K=5 parallel branches, ReAct takes 5× the wall-clock of a single branch. Agent-Kernel’s fork returns immediately; if the user sends a follow-up question, the main loop accepts it without waiting for background sub-agents.

J

API Usage Statistics

Across 360 Agent-Kernel runs (3 seeds × 120 scenarios), the per-verb invocation frequencies are: fork (100% of scenarios, mean 24 invocations each), retry (39% of scenarios, mean 6 invocations when triggered), and cancel, query, fetch (0% invocation in the synthetic harness). The harness exercises only two of the five verbs; the remaining three provide API completeness for userinitiated termination (cancel), progress inspection (query), and partial-result retrieval (fetch).

Table 18: Full call signatures for the 5-verb API (§3.3, Table 2).

K

Extended Related Work

Selective recovery in distributed systems. SGR’s transitive-closure reset draws on a rich lineage in distributed computing. Strom & Yemini’s optimistic recovery (Strom and Yemini, 1985) introduced dependency-tracking for selective rollback in message-passing systems, avoiding the cascading “domino effect” that full-state rollback produces. Elnozahy et al. (Elnozahy et al., 2002) survey rollback-recovery protocols, distinguishing coordinated from uncoordinated checkpointing— SGR implements coordinated reset at the DAG level. Most directly, Dichev et al. (Dichev et al., 2017) propose dependency-aware rollback for taskbased runtimes in HPC, rolling back only tasks that transitively depend on the failed task. Our contribution adapts this principle for LLM-agent coordination where outputs are variable-length text requiring prompt injection (context inheritance), and failures are stochastic rather than deterministic. DAG execution with fault tolerance. Dryad (Isard et al., 2007) established vertex-level reexecution in distributed DAG processing—failed vertices and their downstream dependents are re-run while completed siblings are preserved. Spark’s RDD lineage (Zaharia et al., 2012) provides selective recomputation of lost partitions by tracing the dependency graph. These systems target deterministic data transformations; Agent-Kernel adapts the pattern for stochastic LLM calls where retry may require prompt modification, not just re-execution. Supervision and actor models. Erlang/OTP’s supervision trees (Armstrong, 2003) implement selective child restart. The closest analog to SGR is the rest_for_one strategy, which restarts a

crashed child and the children started after it while leaving earlier siblings untouched—the processlevel counterpart of resetting a failed node’s transitive dependents. Agent-Kernel generalizes this from a linear start-order to a DAG, where restart propagates along declared dependency edges rather than start order. Durable execution. Microsoft’s Durable Functions (Burckhardt et al., 2021) provide task-parallel code with automatic state persistence and crash recovery for serverless workflows. Temporal.io (Temporal Technologies, 2020) offers workflow-as-code with built-in retry policies. Agent-Kernel’s SAB provides similar durability guarantees but adds LLM-specific features: token accounting, promptcontext injection at dispatch, and a 7-state FSM modeling the lifecycle of stochastic LLM calls rather than deterministic function invocations. Recent LLM agent recovery. The Dual-State Architecture (Thompson, 2025) proposes a threelevel recovery hierarchy for LLM agents including “cascade invalidation”—resetting upstream steps when downstream validation fails. AgentKernel’s SGR operates in the opposite direction (resetting downstream dependents of a failed upstream node) and is triggered by execution failure rather than output validation. AdaptOrch (Yu, 2026) dynamically selects among parallel, sequential, and hierarchical multi-agent topologies based on task dependency graphs, complementing AgentKernel’s fixed-topology DAG execution with adaptive topology discovery. AgentGit (Li et al., 2025), Atomix (Mohammadi et al., 2026), and Sherlock (Ro et al., 2025), the three closest analogs, are analyzed in Section 2 and evaluated in Appendices L and N.

L

Sherlock as a Baseline

Sherlock (Ro et al., 2025) is the closest analog to Agent-Kernel: it is DAG-native and, on verifier disagreement, rolls back and re-executes the failed node’s descendants while preserving siblings. Unlike SGR, it requires an installed pipeline—a trained analyzer, a verifier selector, and an LLM planner—and its recovery trigger is verifier disagreement rather than a raw runtime exception. To compare fairly we implemented two variants: Sherlock-lite (paper-faithful), which cannot fire on a raw exception because it demands verifier disagreement to initiate rollback; and Sherlockgenerous (steelman), which treats any exception

as verifier disagreement so that it can always fire and recover. System ReAct-serial ReAct+retry (whole-trajectory) ReAct-per-step-retry (B3) Sherlock-lite (paper-faithful) Sherlock-generous (steelman) Agent-Kernel (SGR)

Recovery

Mean wall

0/9 (0%) 3/9 (33%) 9/9 (100%) 3/9 (33%) 100% (all fr ) 9/9 (100%)

3s (halts) 15s 135s 52s 149s 21s

Table 19: Recovery rate and mean wall-clock on K = 8, L = 8 grids under a transient crash (3 seeds/cell). SGR matches the recovery of the strongest baselines at a fraction of the wall-clock.

fr

Sherlock-gen. wall

AK wall

SGR speedup

0.00 0.10 0.15 0.25 0.30 0.40

141s 139s 142s 167s 147s 157s

21s 14s 17s 25s 12s 13s

6.7× 9.9× 8.4× 6.7× 12.3× 12.1×

Table 20: Sherlock-generous vs. Agent-Kernel wallclock across failure rate fr (K = 8, L = 8, 3 seeds). SGR is consistently ∼7–12× faster.

The gap arises because Sherlock-generous reexecutes the failed node’s entire transitive closure serially and re-runs the verifier heuristic on every intermediate output, whereas SGR re-dispatches only children whose parents have just completed, exploiting the parallelism available inside the reset subgraph. Thus SGR is ∼7–12× faster (“roughly 10×”); SGR is not the only mechanism that recovers under our failure model—its advantage is speed.

M

Stronger ReAct Baseline and Cross-Backbone Recovery

Whole-trajectory retry is a weak recovery baseline. We therefore also evaluate ReAct-per-stepretry (B3), a stronger variant that persists the failed observation in context and retries the individual failing step rather than replaying the whole trajectory (Yao et al., 2023). B3 recovers 100% on our transient-failure grids, so the recovery-rate gap against Agent-Kernel closes entirely. The remaining differentiator is wall-clock: B3 cannot express fan-out/fan-in, so it executes serially, whereas SGR re-dispatches only the reset subgraph and exploits parallelism across independent branches. On linear workloads with no fan-out to exploit, the three systems are within noise: on tau-bench re-

Grid

B3 wall AK wall SGR speedup

K=8, L=8, fr=0.3 K=8, L=8, fr=0.1 K=16, L=4, fr=0.3 K=4, L=8, fr=0.3

135s 133s 133s 71s

12s 14s 10.5s 21s

11.2× 9.4× 12.7× 3.3×

Table 21: B3 (ReAct-per-step-retry) vs. Agent-Kernel wall-clock across four grids. Both recover 100%; AgentKernel is 3.3–12.7× faster because SGR parallelizes the reset subgraph while B3 retries serially.

tail (n=15) (Yao et al., 2025), Agent-Kernel scores 93.3% @ 30.8s, ReAct-serial 100% @ 32.7s, and ReAct+retry 100% @ 30.0s, with the 6.7pp AgentKernel shortfall attributable to a single diverged task. The full cross-backbone grid is reported in the main text (Table 8); there, the single ReAct column collapses ReAct-serial and ReAct+retry, which are identical on every cell (both 0% on Sonnet 4.5 and Haiku 4.5, both 50% on Opus 4.5 at K=8). AgentKernel’s recovery generalizes across the Claude family, reaching 100% on all three backbones and every tested configuration (Sonnet 4.5 and Haiku 4.5 at K∈ {8,32}; Opus 4.5 at K=8), while the ReAct baselines recover partially only on Opus 4.5.

N

Real-Framework Integration Tests

This section expands on the real-binary integration result reported in the main text (Table 7), which complements the primitive re-implementations of Section B.10 (Table 16). We run the installed production binaries—LangGraph 1.2 (LangChain, 2024), LlamaIndex 0.14 (Liu, 2022), and AutoGen v0.4 (Wu et al., 2024)—against Agent-Kernel on a diamond fan-out DAG with one deterministically failing leaf (12 configurations × 5 seeds = 60 cells per system); this measures the recovery behavior of each shipped runtime and does not replace the controlled primitive comparison in the main text. LangGraph matches SGR’s single-node recovery only when a custom retry_on override is supplied: its default default_retry_on excludes ValueError, TypeError, ArithmeticError, RuntimeError, LookupError, and OSError— exactly the app-level exceptions we inject—so no retry fires out of the box. AutoGen v0.4 has no default retry primitive at the runtime layer, yielding 0/60 recovery. Agent-Kernel (SGR) is therefore the only system that automatically resets a failed node’s transitive

descendants and preserves its completed siblings without any user configuration.

O

Context Inheritance at High Parallelism

As parallel width K grows, DSP injects an increasing volume of parent output into each child prompt, making context inheritance the component most likely to degrade at scale. We swept K ∈ {1, 2, 4, 8, 16, 32, 64, 128} on Sonnet 4.5 under three context policies—raw-concat, summarizer, and top-k retrieval—with 3 seeds per K and 15–20 questions per (K, policy, seed) cell. Raw-concat

Summarizer

Top-k

K

Acc

Tok

Acc

Tok

Acc

Tok

1 8 16 32 64 128

100% 100% 100% 100% 100% 100%

86 204 339 608 1,212 2,363

100% 100% 100% 100% 100% 100%

80 156 243 416 824 1,588

100% 100% 100% 100% 100% 100%

86 136 136 136 141 140

Table 22: Context-inheritance K-sweep on Sonnet 4.5 (3 seeds per K; 15–20 questions per cell). Acc is task accuracy; Tok is mean injected-context tokens per child prompt. Bold marks the cheapest policy per row.

Rows for K = 2, 4 are omitted for brevity. Findings. Accuracy stays flat at 100% through K = 128 under all three policies; Haiku 4.5, evaluated at K ∈ {1, 4, 16, 32}, is likewise flat at 100%. Context saturation therefore does not materialize on these backbones. The effect that does appear is token cost: raw-concat grows roughly linearly in K (86 to 2,363 tokens) and the summarizer grows more slowly (80 to 1,588), whereas top-k retrieval stays essentially constant (86 to 140). At K = 128, top-k retrieval is 17× cheaper than rawconcat (2,363/140 ≈ 16.9). We recommend top-k retrieval as the default context policy for K ≥ 16.

P

SRE Incident-Response Scenario: All Five Verbs

The synthetic recovery harness (Appendix J) exercises only fork (100% of scenarios) and retry (39% of scenarios); cancel, query, and fetch are invoked in 0% of runs because the harness has no user in the loop. To demonstrate that the full verb surface is exercisable—and not vestigial API padding—we add an on-call SRE incident-response scenario in which a human operator drives all five verbs at 100% invocation.

Scenario. An on-call engineer triaging a latency spike issues a single high-level request and then interacts with the running DAG. (i) The engineer forks parallel log pulls across all regions, one sub-agent per region (fork → spawn cascade). (ii) While the pulls run, the engineer queries overall progress, a set-oriented read over the frontier of running and completed nodes (query → setoriented state read). (iii) Seeing that one region has produced partial output, the engineer fetches that region’s specific record for early inspection (fetch → per-record output read). (iv) One branch hangs on an unresponsive log endpoint, so the engineer cancels it, which propagates a cancel cascade to that branch’s not-yet-scheduled descendants (cancel → cancel cascade). (v) The downstream correlation step fails on a transient parse error, so the engineer retries it; SGR resets the failed node and re-dispatches its existing descendants without re-forking the successful sibling pulls (retry → SGR reset). Every verb maps to exactly one scheduler cascade, as summarized in Table 23.

retry as a first-class policy. We isolate the two content-plane mechanisms—context inheritance and prompt-mutation retry—with targeted structural ablations run at temperature 0, so each outcome is deterministic and attributable to the mechanism rather than to sampling noise.1 Mechanism Disabled (control)

Enabled

Context Parent text not inheritance composed into child prompt; child task underspecified → unsolvable

Parent text composed under token budget → solved

Promptmutation retry

Error context + expected schema injected; loop broken → recovers

Table 24: Content-plane ablations at temperature 0. Each row is a deterministic mechanism-level probe: disabling the mechanism makes the downstream task unrecoverable by construction, and enabling it recovers.

Q.1 Verb

Cascade type

fork retry cancel query fetch

spawn SGR reset cancel cascade set-oriented state read per-record output read

Table 23: Verb-to-scheduler-cascade mapping (Section 3.3). The SRE incident-response scenario invokes all five verbs at 100%, versus the synthetic harness, which invokes only fork and retry.

retry is not redundant with fork. A natural question about the UNIX-verb metaphor is whether retry and fork collapse into one primitive. They do not: fork creates new descendants (a spawn cascade extending the DAG), whereas retry resets and re-dispatches existing descendants in place (an SGR reset over the already-materialized subgraph), preserving completed siblings rather than duplicating them.

Q

Content-Plane Ablations

The mechanisms that separate Agent-Kernel from Atomix (Mohammadi et al., 2026), AgentGit (Li et al., 2025), and Sherlock (Ro et al., 2025) live in the content plane: those systems reason over control and state (dependencies/effects, versioned commits, verified outputs) and do not expose tokenbudgeted context composition or prompt-mutation

Blind re-execution repeats identical malformed output; recovery ≡ 0 at any budget

Context Inheritance

We construct a two-node DAG in which the child’s task can only be completed given the parent’s text output, then disable inheritance so the parent’s variable-length text is not composed into the child prompt. The child then fails deterministically: without the upstream text the downstream task is underspecified, so this is a structural outcome rather than a stochastic one. Re-enabling inheritance—composing the parent output into the child prompt under the token budget—makes the identical task solvable, confirming that the failure is caused by missing content, not by scheduling or state handling. Q.2

Prompt-Mutation Retry

We inject a deterministic format-drift failure (a node emits output that does not match the expected schema) and compare two retry policies at temperature 0. Under blind re-execution, an unchanged prompt at temperature 0 reproduces the identical malformed output on every attempt, so the recovery rate remains 0 regardless of the retry budget— adding attempts cannot help. Prompt-mutation retry instead rewrites the prompt on failure, injecting the error context and the expected schema; this 1

These are deterministic, temperature-0 mechanism probes on hand-constructed DAGs, designed to test whether a mechanism is necessary, not how often it fires at scale; they are structural ablations, not large-N benchmarks.

breaks the deterministic loop and recovers. Beyond the deterministic case, we ran a preliminary study on 18 naturally-occurring format-drift scenarios (Sonnet 4.5, non-zero temperature), where the malformed output varies across attempts (Table 25): prompt-mutation retry recovers 14/18 versus 6/18 for blind retry. Together these probes localize Agent-Kernel’s novelty to the content plane: the recovery machinery shared with prior systems is neither sufficient (context inheritance) nor able to escape a deterministic failure (prompt-mutation retry) without operating on prompt content. We stress that the deterministic rows are structural probes and the format-drift study is small-n and preliminary; both attribute mechanism rather than establish a headline benchmark, and a large-N semantic-failure evaluation remains future work.

Retry policy (18 format-drift scenarios)

Recovery (Wilson 95% CI)

Prompt-mutation retry Blind re-execution

14/18 = 77.8% [54.8, 91.0] 6/18 = 33.3% [16.3, 56.3]

Table 25: Preliminary format-drift study (Sonnet 4.5, n=18). Prompt-mutation retry (injecting error context + expected schema) recovers more than twice as often as blind re-execution. Small n; reported as a preliminary signal for the content plane’s benefit on semantic (non-transient) failures, not a headline result.

Related documents

Record · ID 1767759 · SHA-256 9a3b12274394c82f
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive