arXiv:2610.19686cs.CLOct 2026

Manuscript Offprint

arXiv:2610.19686

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 Wu

ABSTRACT

Large language model agents increasingly undertake long-horizon tasks in complex environments characterized by fragmented evidence, partially completed states, and dependencies across resources and artifacts. Existing agents may satisfy individual requirements while failing to maintain these relationships, producing locally correct but incomplete outcomes. These failures arise because task completion depends on relationships among environmental evidence, consequential decisions, and required effects. To address this completion gap, we propose INTERLOCK, a framework for task synthesis that represents each task as a typed completion graph. Grounding edges connect public evidence to decisions, coupling hyperedges impose joint constraints across components, and realization edges connect decisions to all required downstream effects. INTERLOCK compiles this graph into a resettable workspace, a public request, and an evaluation rubric. A source-coverage review checks whether the original requirements survive generation, while a public-input review checks whether the rubric is supported by the materials available to the solver. An agent-as-judge inspects execution artifacts and runs verification scripts, retaining trajectories judged to satisfy all mandatory requirements. To evaluate training utility, we fine-tune two Qwen3.6 backbones on their own accepted trajectories. Across the two backbones, training improves AutomationBench task pass rates by 4.00–4.50 percentage points, JobBench weighted scores by 3.20–6.64 points, and Harvey LAB criterion pass rates by 3.89–4.16 percentage points. These results demonstrate the training utility of the synthesized experience across external task environments.

1 INTRODUCTION

Long-horizon agents increasingly work with records, rules, resources, and partially completed artifacts. A short request can require reconciling conflicting evidence, determining which objects need attention, selecting a feasible plan, and updating several related results. The environment supplies the facts and constraints that determine this work. A decision can also activate further obligations: deferring an action may require an explanation and a handoff, while changing an allocation may require corresponding revisions to schedules and budgets. These obligations can outlive the interaction in which they are discovered: after many intervening reads, computations, and edits, the agent must still apply the earlier evidence and decisions to every affected result.

Local progress can coexist with an incomplete outcome (Figure 1). A correct decision can leave necessary consequences unfulfilled, and mutually consistent outputs can share an unsupported assumption. These failures concern the relationships that connect evidence, decisions, and the requested outcome. They motivate our central question: how can task synthesis preserve conditional obligations and turn their fulfillment into transferable training experience?

∗^{*}Equal contribution.

†^{\dagger}Corresponding authors.

Figure

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.

We characterize this structure as a typed completion graph. Grounding connects environmental evidence and rules to the decisions they support. Coupling links components that must share a feasible choice or satisfy a joint constraint. Realization connects a decision to every downstream record, artifact, or state that must reflect it. Their interaction is especially demanding over long executions: an early finding can constrain work completed many interactions later, and a revised decision can require coordinated changes to several existing artifacts.

Task synthesis and environment generation provide a scalable basis for agent training. Prior work constructs verified tool-use data (Qin et al., 2024; Liu et al., 2024), generates environments and task scenarios (Hu et al., 2025; Song et al., 2026), and composes extended tasks through tool dependencies and reusable workflows (Tu et al., 2026; Shi et al., 2026; Li et al., 2026b). Common specifications can also align instructions, environments, and verifiers (Ivanov & Rana, 2026). Our organizing unit is the complete set of conditional obligations for an outcome. It determines both the unresolved work placed in an environment and the evidence needed to accept the result.

We propose INTERLOCK to make this graph an explicit synthesis constraint. Reusable domain descriptions and archetype contracts define evidence roles, task-specific decisions and shared states, joint conditions, and downstream consumers. Three generation roles compile the same graph into a workspace, task/contract, and rubric while leaving concrete associations and decisions to the agent. A source-coverage review traces every typed relation from the original graph through these artifacts; a public-input critic independently checks whether the resulting criteria are supported by solver-visible materials and assessable from execution artifacts. Completion-filtered training then selects executions that realize every applicable effect.

Our evaluation connects task structure, execution behavior, and training utility. Statistical analyses and case studies examine dependencies and completion failures. The training protocol uses Qwen3.6-27B and Qwen3.6-35B-A3B separately, retaining each model's own accepted rollouts for SFT of that same model. Both backbones improve on AutomationBench, JobBench Main and Easy, and Harvey LAB. Gains over the original checkpoints reach 4.00–4.50 percentage points in AutomationBench task pass rate, 3.20–6.64 points in JobBench weighted score, and 3.89–4.16 percentage points in Harvey LAB criterion pass rate. These results show that experience from complete synthetic executions transfers to independently authored tasks across different environments. Our contributions are threefold:

• A typed representation of task completion. We model long-horizon tasks as completion graphs whose grounding, coupling, and realization relations connect public evidence, consequential decisions, joint constraints, and required effects.

• Graph-grounded synthesis and review. We compile the same graph into the environment, task specification, deliverable contract, and outcome criteria, with complementary reviews for source coverage and public support.

• Empirical validation of training utility. We evaluate the generated experience through completion-filtered fine-tuning of two backbones and measure transfer across three external benchmarks.

References (96)