Manuscript Offprint

arXiv:2608.22960

What Process Evaluation of Coding Agents Actually Measures: Action, Task, and Step Are Three Different Levels

Jiawei He, Mengyu Shi, Jie jia, Xikai Yang, Dong Sun

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Coding agents are increasingly evaluated not only by whether they solve a task, but also by how they execute it. However, existing process-level evaluations often treat action prediction, task uncertainty, and step attribution as if they were the same problem, which makes it unclear what such evaluations actually measure. In this paper, we introduce a measurement framework for process evaluation in coding agents and instantiate step-level causal attribution with SCAE, a replay-based estimator derived from a structural causal model of agent execution. Our framework combines prefix-conditioned identification, replay/intervention-based estimation, and controlled judge-information manipulation to study process evaluation at the action, task, and step levels. Experiments on 499 file-localization episodes from 12 repositories show that next actions are driven primarily by execution provenance rather than code-graph transitions, execution uncertainty is structured at the task rather than step level, and full-trace judges exhibit systematic collider bias, suggesting that current process evaluation often measures semantic relevance rather than certified causal contribution.

1 INTRODUCTION

Large language model (LLM) coding agents are increasingly evaluated not only by whether they solve a task, but also by how they execute it (Si et al., 2026). In practice, developers want more than a final success label: they want to understand which steps advanced the task, which steps caused failure, whether the execution remained interpretable and controllable, and whether process-level signals can be trusted for debugging, benchmarking, or training (Prasai et al., 2026). As coding-agent trajectories grow longer and more tool-centric, these questions become increasingly difficult to answer from final outcomes alone (He et al., 2026).

Despite its growing importance, current process evaluation remains conceptually underspecified. Existing methods often assume that a trajectory can be meaningfully evaluated step by step, but in practice they mix together three different levels of analysis (Wang et al., 2025a; Sun et al., 2026). At the action level, the question is what the agent is likely to do next (Wen et al., 2024). At the task level, the question is whether the overall execution remains uncertain or recoverable (Wang et al., 2025b). At the step level, the question is whether a particular action causally changed the final outcome (Wang et al., 2025a). Process reward models (Setlur et al., 2025), full-trace LLM judges (Chen et al., 2026), and restart-based ablations (Kontonis et al., 2026) are frequently discussed as if they answered the same question, even though they condition on different information and target different quantities. This makes their outputs difficult to interpret and even harder to validate.

In this paper, we argue that action, task, and step are three different levels, and that process evaluation should distinguish them explicitly. To study this problem, we introduce a measurement framework for coding-agent process evaluation and instantiate step-level attribution with SCAE, a replay-based estimator derived from a structural causal model of agent execution. Rather than presenting SCAE primarily as a better attribution tool, we use it as a measurement instrument: by making step-local causal effects explicit and estimable in principle, it allows us to test what process evaluation can and cannot identify in practice.

Our setting is file localization, where an episode consists of an issue, a repository snapshot, a sequence of agent actions, and a verifiable target set of files. This setting is especially useful because it provides the ingredients required for principled process analysis: replayable environments, fully logged prefixes, and a checkable terminal outcome. We reconstruct prefixes, replay continuations, and estimate step-local effects under explicit assumptions about context observability, decoding noise, and environment replayability. When local overlap is available, the effect is estimated observationally; when the policy is effectively deterministic, we switch to an intervention branch. The same framework also allows us to analyze next-action prediction, uncertainty structure, and attribution behavior within a unified experimental design.

Our experiments reveal a consistent picture. At the action level, the next operation is often predictable, but not from the structure one might expect: the strongest signal is the agent's own execution provenance, namely the paths it has just seen in tool outputs, rather than the code dependency graph. At the task level, execution variance is structured mainly by the instance rather than by individual steps, which implies that uncertainty is primarily a property of the task. At the step level, the identifiable causal quantity proves too weak to localize at feasible replay cost, yet full-trace judges still shift their blame systematically when later steps are made visible. This isolates a bias in the evaluation mechanism itself and suggests that many current process-level evaluators measure semantic relevance or late-trace evidence rather than certified causal contribution.

These findings lead to a simple conclusion: process evaluation is not one problem but several. Some process-level signals are useful because they predict what the agent will do next. Others are useful because they characterize how uncertain the task remains. But these signals should not automatically be interpreted as step-level causal attribution. Once the levels are separated, the apparent tractability of process evaluation becomes easier to understand: action prediction can be strong, task-level uncertainty can be structured, and step-level causal localization can still remain infeasible.

Our main contributions are as follows:

• We formulate process evaluation in coding agents as a three-level measurement problem, distinguishing action prediction, task uncertainty, and step attribution instead of treating them as a single notion of process quality.

• We introduce SCAE, a replay-based measurement framework grounded in a structural causal model, and use it to study what step-level process evaluation can identify in principle and what it can measure in practice.

• We show empirically that next actions are governed primarily by execution provenance rather than code-graph transitions, and that execution uncertainty resides mainly at the task rather than step level.

• We isolate collider bias in full-trace LLM judging through a controlled manipulation of the judge’s information set, showing that current process attribution is better interpreted as semantic relevance than as certified causal contribution.

References (70)

  • Conformal prediction: A gentle introduction
  • RUDDER: Return decomposition for delayed rewards (opens arXiv in a new tab)
  • Counterfactual token generation in large language models (opens arXiv in a new tab)
  • Seeing the whole elephant: A benchmark for failure attribution in llm-based multi-agent systems
  • From Local to Global: A Graph RAG Approach to Query-Focused Summarization
  • Procc-trlbench: Evaluating process-level defects and control preservation in llm coding agents (opens arXiv in a new tab)
  • Tokenshap: Interpreting large language models with monte carlo shapley value estimation
  • Counterfactual influence in markov decision processes (opens arXiv in a new tab)
  • Calibrating llm confidence by probing perturbed representation stability
  • Memento: Teaching llms to manage their own context (opens arXiv in a new tab)
  • From trajectories to graphs: Contract-checked editing for verifier-guided llm reasoning
  • Rlhs: Mitigating misalignment in rlhf with hindsight simulation
  • Deep bayesian active learning for preference modeling in large language models
  • Benchmarking agents on hard, realistic tasks in command line interfaces
  • Trained on tokens, calibrated on concepts: The emergence of semantic calibration in llms
  • Knowthyself: An agentic assistant for llm interpretability
  • Gumbel counterfactual generation from language models
  • Quantifying prompt uncertainty in llm-based systems
  • Rewarding progress: Scaling automated process verifiers for llm reasoning
  • The ideation-execution gap: Execution outcomes of llm-generated versus human research ideas
  • Llm reasoning as trajectories: Step-specific representation geometry and correctness signals
  • Calibrating large language models using their generations only
  • Algorithmic Learning in a Random World
  • Steca: Step-level trajectory calibration for llm agent learning
  • Math-shepherd: Verify and reinforce LLMs step-by-step without human annotations (opens arXiv in a new tab)
  • Megaagent: A large-scale autonomous llm-based multi-agent system without predefined sops
  • Reinforcing llm agents via policy optimization with action decomposition
  • Agentless: Demystifying LLM-based software engineering agents (opens arXiv in a new tab)
  • Influences on llm calibration: A study of response agreement, loss functions, and prompt styles
  • benchmarking llm agents on consequential real world tasks
  • Gcig: Graphrag-based cross-document instruction generation for boosting llm reasoning
  • Int: Self-proposed interventions enable credit assignment in llm reasoning
  • Agentracer: Who is inducing failure in the llm agentic systems? In International Conference on Learning Representations, volume 2026, pp. 11377–11399, 2026a
  • Linking process to outcome: Conditional reward modeling for llm reasoning
  • Judging LLM-as-a-judge with MT-Bench and Chatbot Arena
  • Most agent ablation studies operate at Level II while being described in counterfactual language, which is the confusion the distinction is meant to prevent
  • Environment noise is Level III throughout, being pinned by construction
  • It is defined only when $\pi(a_{t}^{\star}\mid \tau_{1:t-1})>0$
  • $\text{Infl}(t)$ near zero means the realized history has stopped constraining the continuation, so the estimate should be reported as interventional rather than counterfactual
  • the decoding noises $\{G_{\pi}^{(t)}\}_{t\geq1}$ are mutually independent and independent of $(Z, U_{\mathrm{env}})$
  • Fix a prefix value $\tau_{1:t-1} = \tau$ with $P(\tau_{1:t-1} = \tau) > 0$
  • The prefix $\tau_{1:t-1}$ is, by the structural equations, a measurable function of $(q, Z, \{G_{\pi}^{(s)}\}_{s<t}, \{U_{\mathrm{env}}^{(s)}\}_{s<t})$
  • By Step 2 and Eq
  • This is Eq
  • The positivity requirement in Step 4 is not a technicality but the binding constraint in practice, which is what forces the hybrid estimator of Eq
  • Applying Proposition 1 to each term replaces every observational conditional by its interventional counterpart, giving the action effect relative to the policy's own baseline
  • The two notions come apart in both directions, which is why Table 7 lists this as a distinct failure mode
  • First, the continuation prompt must be byte-identical across all arms: it enters the context and is therefore part of the estimand, so any difference between arms becomes an undeclared intervention
  • Codex CLI driven over its JSON-RPC app-server with capabilities.experimentalApi enabled, so that thread paths are exposed and forking by path is available
  • Attribution uses $m = 8$ replays per estimation point and 5 equidistant estimation points per episode, with the recall outcome of §3.7
  • We list the full inventory here, since §4.1 only summarizes it
  • the graph describes where the agent works
  • Confidence intervals are episode- or instance-level bootstrap
  • Each marker is one probed decision point, positioned by its normalized position in the episode and coloured by episode
  • With Y binary at the task level, single-target instances are solved almost always, so $\Delta_t \equiv 0$ and attribution says nothing
  • Agents mention 50.5 distinct files per episode and actually visit 6.5, a conversion rate of 18.0%
  • The mutual information between tool identity and object type is 0.159 nats against a permutation null of 0.006 ($p = 5 \times 10^{-4}$), which is what makes the factored $P(\mathrm{tool})P(\mathrm{obj})$ model misspecified rather than merely suboptimal
  • — — and then falls back to splitting on whitespace, retaining the quote character and truncating. 75.3% of query objects are affected, and 249 of them collapse onto the single fragment q:
  • those frequent fragments were a spurious repetition mode, and removing them costs -0.036 in top-3 (CI [-0.049, -0.022]), taking the same model from 0.067 to 0.031
  • the request is ambiguous, ask the user
  • The panels report the forecasting behaviour of the left endpoint $v_0$ on the real corpus ( $n = 499$, leave-one-repository-out AUROC 0.481, ECE 0.015) alongside the synthetic self-test in which the generating process is known
  • Exchangeability requires care rather than assertion in this setting:
  • We therefore use split conformal with repository-conditional (Mondrian) calibration rather than pooled calibration, report group-conditional coverage gaps rather than marginal coverage alone, and apply covariate-shift weighting for cross-repository transfer
  • The supporting quantities are recorded here, since several of them are what fix the interpretation
  • The collider contrast moves the verdict from a mean normalized position of 0.214 under the prefix-only condition to 0.751 under the full-trace condition, with a median displacement of +0.667
  • The full-trace judge places 0.900 (CI [0.829, 0.971]) of its top-1 verdicts on gold-provenance steps
  • The replication uses one additional general-purpose model (qwen3.6-plus) and one code-specialised model, at 48 API calls per judge, with the prompt held byte-identical and the trace set fixed
  • the judge applies a different but defensible criterion
  • We report the record in full, including the four entries that did not hold and the one criterion we retire rather than bank
  • Three directional predictions held at magnitudes above the intervals we fixed in advance, which we report as the intervals having been too conservative rather than as successes