Interlock: From Local Correctness to Task Completion in Long-Horizon Agents

Linji Hao, Yanji He, Zihan Wang, Hansi Yang, Jiayuan Zhang, Hongyan Hao, Qi Gu, Yan Feng, Han WuarXiv 2026

TL;DR

INTERLOCK is a new framework for training long-horizon LLM agents by synthesizing complex tasks using "typed completion graphs." By explicitly modeling the relationships between evidence, decisions, and downstream consequences, it bridges the "completion gap" where agents perform individual actions correctly but fail to finish the overall job.

What Problem Does This Paper Address?

Building reliable agents for "long-horizon" tasks—multi-step workflows like managing a travel request or closing a payroll cycle—is notoriously difficult. Current agents often suffer from a lack of global coherence. They might successfully "book a flight" (local correctness) but forget to "update the budget" or "notify the manager" (global completion).

The authors identify this as a failure to maintain dependencies across fragmented evidence and partially completed states. Most existing training methods focus on tool-use accuracy or short-term planning, which doesn't teach an agent how to carry earlier evidence and decisions through to every affected result in a complex environment.

Figure 1: From local correctness to task completion. A correct flight booking can still leave schedule and budget updates unfinished. INTERLOCK preserves grounding, coupling, and realization relations during task synthesis to connect evidence, decisions, and required downstream effects.

Methods

The core of the paper is INTERLOCK, a system that uses a Typed Completion Graph to synthesize training data. This graph acts as a blueprint for a task, defining three critical types of relationships:

  1. Grounding: Connecting environmental evidence (like a travel policy) to the decisions they support.
  2. Coupling: Imposing joint constraints across different components (e.g., ensuring a schedule and a budget are consistent).
  3. Realization: Connecting a decision to all the downstream artifacts it must change (e.g., a flight booking must trigger a calendar update).

The workflow, illustrated in Figure 2, involves three specialized agent roles that compile this graph into a resettable workspace, a public request, and a private evaluation rubric.

Figure 2: INTERLOCK overview. Left: Grounding connects evidence to decision variables; Cou- pling imposes joint constraints across decisions and effects; Realization specifies the required con- sequences of each decision. These relations guide construction of the workspace W0, public request q, and private rubric V , followed by source-coverage and public-support review. Right: Real ex- ecution and an agent-as-judge provide evidence for task admission and trajectory selection. Each backbone is fine-tuned on its own accepted rollouts.

To ensure high-quality training data, the framework uses a dual-review process:

  • Source-coverage review: Checks if the original requirements survived the generation process.
  • Public-input review: Ensures the task is actually solvable using only the information provided to the agent.
  • Agent-as-Judge: Unlike standard "text-only" judges, this judge has terminal access to run verification scripts and inspect execution artifacts, ensuring that only truly successful trajectories are used for Rejection-Sampling Fine-Tuning (RFT).

Datasets

The authors synthesized a massive corpus of 3,278 tasks spanning 128 domains (e.g., finance, legal, engineering) and 484 task families.

For evaluation, they tested the fine-tuned models on three rigorous, independently authored benchmarks to measure "out-of-distribution" transfer:

  • AutomationBench: 600 tasks involving cross-application API orchestration.
  • JobBench (Main and Easy): 130 tasks requiring professional deliverable creation.
  • Harvey LAB: 1,251 tasks focused on complex legal analysis and document work.

Key Insights and Ideas

  • The "Completion Gap" is Structural: The authors argue that failures in long-horizon tasks aren't just about "forgetting" but about a lack of structural constraints during training. By using graphs to force these dependencies, they create "transferable completion experience."
  • Agentic Verification is Non-Negotiable: One of the most striking findings is that a judge capable of running code and inspecting files is significantly more effective at filtering training data than a standard LLM-as-judge. This "agentic" filtering led to much higher performance gains on downstream benchmarks.
  • Domain Breadth Trumps Raw Volume: The research shows that increasing the number of professional domains in the training set consistently improves performance across all metrics, even when the total number of training trajectories remains the same.
Figure 3: Broader domain coverage improves transfer at a fixed trajectory count. The original checkpoint is labeled 0, and 128 denotes all domains in this model’s training set for the main experi- ment. AutomationBench reports task pass rate (%), JobBench Main and Easy report weighted scores (0–100), and Harvey LAB reports criterion pass rate (%). Lines connect the evaluated settings.

Key Results

The authors fine-tuned two backbones, Qwen3.6-27B and Qwen3.6-35B-A3B, using Interlock-RFT. The results showed significant improvements over the base models and other state-of-the-art baselines like ClawGym:

  • AutomationBench: Task pass rates improved by 4.00–4.50 percentage points.
  • JobBench: Weighted scores increased by 3.20–6.64 points.
  • Harvey LAB: Criterion pass rates rose by 3.89–4.16 percentage points.

Qualitatively, case studies showed that INTERLOCK-trained models were much better at reconciling conflicting evidence (like supply vs. order commitments) and maintaining consistency across multiple ledgers or schedules.

Limitations and Future Work

While INTERLOCK significantly improves task completion, the authors note some limitations:

  • Execution Anomalies: About 1.25% of attempts still terminate abnormally due to environment or execution issues.
  • Judge Dependency: The quality of the training data is heavily dependent on the "Agent-as-Judge." If the judge misses a subtle logical error in a complex script, that error could be baked into the training set.
  • Future Directions: The authors suggest extending this graph-based approach to even more diverse environments and exploring how these completion constraints might be used in online reinforcement learning rather than just offline fine-tuning.

Summary updated

BibTeX
@misc{hao2026interlock,
  author = {Linji Hao and Yanji He and Zihan Wang and Hansi Yang and Jiayuan Zhang and Hongyan Hao and Qi Gu and Yan Feng and Han Wu},
  title = {{Interlock: From Local Correctness to Task Completion in Long-Horizon Agents}},
  year = {2026},
  eprint = {2610.19686},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.19686},
}
Figure