Manuscript Offprint

arXiv:2610.35992

Before the First Edit? Measuring When Coding-Agent Guidance Actually Arrives

Thupakula Sai Varun

Abstract

When a coding-agent harness promises guidance before the first source edit, what event does it actually intercept? We audit five separate events: policy assignment, request eligibility, trigger, plan delivery, and observed source-content change. A prescribed-action comparison exposes the coverage of three gate rules but cannot tell us how an agent would continue after receiving a plan. We therefore run local agents on public software issues and hash Python files before and after each executed action. In a pilot-guided, 76-arm study using Qwen2.5-Coder 14B, 15 arms change Python source across seven tasks and three repositories. Guidance precedes every observed first change, but every change uses a structured editor and the study misses its prespecified 20-arm coverage target. Post hoc local tests find seven changed arms that pass the tested target and regression selectors; four of those seven use incomplete regression lists. Public PAUSE and SI2CA trajectories add source-text changes bracketed by adjacent reads, but lack synchronized filesystem states and cannot identify exact first mutations. The audit makes the timing claim testable within a stated source scope. These data do not show that planning improves repair correctness or covers shell-first writes in live agent runs.

Keywords: coding agents; agent harnesses; empirical software engineering; intervention fidelity; trace analysis; software agent evaluation.

1. Introduction

A coding agent does not edit a repository directly. It asks a harness to run a tool. The harness can stop that request, ask for a plan, and return the plan to the agent before work continues. The timing claim sounds simple: the plan arrives before the first source edit. In practice, the harness must decide which requests count. A rule that watches structured editor calls may never see a Python script, a copy command, or a shell pipeline that changes the same file. Even when the rule fires, the Planner may fail before its advice reaches the agent.

We study the gap between the rule a system implements and the source changes a reader might assume it covers. Figure 1 shows the events we keep separate. A final patch can show that a file changed, but it usually cannot place the first change before or after a particular tool call. For that, we need ordered guidance events and source-state observations around execution.

PAUSE (Patel et al., 2026) is an unusually useful setting for studying this distinction. It releases per-task, step-level traces for multiple harnesses, reports positive aggregate outcomes, defines an editor-request trigger, and explicitly notes that shell changes can bypass the Pi trigger. Its dataset card also specifies that Verified SWE-agent/Pi and OpenHands use different source-path rules. We use these public data to measure delivery and trace-visible bypass patterns. We make no claim that a plan would have improved a run in which it was not delivered; that counterfactual would require an actual controlled continuation.

SI2CA (SI2CA Team, 2026) supplies a second, distinct runtime policy: its discovered strategy branches early agent turns until a third mutation-like command. The released source implements that boundary with literal command markers, and the public trajectories include per-turn gate decisions. This allows a separate check of lexical boundary coverage in a bash-only harness. It does not turn SI2CA into an independent PAUSE replication; the interventions and estimands differ.

The paper makes three contributions. First, it gives a reproducible way to separate gate eligibility, trigger recording, plan delivery, and a confirmed file-content change. Second, it compares gates on constructed actions and in three separate local multi-turn cohorts, using source hashes before and after each executed action. The last cohort uses a larger model and stochastic repeats to test whether the near-identical earlier runs were a property of the setup. Third, it revisits PAUSE and SI2CA public traces to show what can, and cannot, be established when such hashes are missing. Our own experiments also expose limits: source changes come from few tasks, all live first changes use a structured editor, and no complete repair outcomes were graded. We keep those limits beside the positive timing observations.