Chad Research · Paper 13

Measuring intent adherence.

Agent benchmarks ask whether the tests pass. Teams also need to know whether the agent did what was asked, within the constraints it was given, at what cost and with how much human help. This is the methodology we will use to measure it. The results are not in yet, and this paper contains none.

11 min read13 references

Abstract

Earlier papers in this series argue that compiled contexts keep an agent closer to its intent than accumulated ones. That is a testable claim, and we intend to test it in public. This paper fixes the method before the data exists: what we measure, how we score it, how runs are controlled, and what could make the results misleading.

The design compares two conditions on the same tasks, the same model and the same tools: an agent that accumulates its transcript, and Chad’s compiled context of about 6k tokens rebuilt from memory for every loop. We measure six outcomes per run: task success, intent adherence (including hard-constraint violations), regressions, cost, latency and human interventions. We have no results yet. Every number in the figures below is either a cited result from other work or an explicitly illustrative example.

Pass rates are not the whole question

SWE-bench made real software engineering measurable: 2,294 issues from 12 Python repositories, each judged by whether the repository’s tests pass after the model’s patch. At release, the best model resolved 1.96% of them [1]. It has since become the reference benchmark for coding agents, and its successors keep the same core idea.

  • SWE-bench Verified is a 500-task subset that 93 experienced Python developers screened for clear problem statements and fair tests [2].
  • SWE-Lancer draws over 1,400 freelance tasks from Upwork, worth $1 million in real payouts, and grades them with end-to-end tests [3].
  • METR measures the length of tasks, in human time, that models complete with 50% reliability, and finds that this horizon has doubled roughly every seven months since 2019 [4].

All three answer one question well: did the change work? None of them asks whether the agent respected constraints the tests do not encode: no new dependencies, keep the public API, follow the team’s conventions, stay inside the module, or apply a correction a human gave three turns ago. Those are exactly the parts of the intent that drown in a growing context (Paper 01). A benchmark that only checks the tests cannot see the failure we care about most.

METR’s result adds a second reason. As task horizons grow, so do transcripts, and the gap between accumulated and compiled contexts should widen with task length. Our task set is therefore stratified by expected human time.

What benchmarks get wrong

Even on success alone, published scores can overstate ability. Three lines of evidence matter for our design.

Reported evidence that benchmark scores can overstate ability

Each study's own metric, as reported. The two pairs measure different things and are not comparable with each other.

SWE-Bench+ [5]: SWE-Agent + GPT-4 resolution rate before and after removing issues with leaked solutions or weak tests. SWE-Bench Illusion [6]: best accuracy at naming the buggy file from the issue text alone, on SWE-bench Verified vs repositories outside SWE-bench.

  • Leakage and weak tests. SWE-Bench+ found that 32.67% of one agent’s successful patches used solutions present in the issue or its comments, and 31.08% passed only because the tests were weak. Filtering those out dropped the resolution rate from 12.47% to 3.97% [5]. OpenAI’s own annotation flagged 61.1% of sampled original tasks for tests that could reject valid solutions [2].
  • Memorization. Models identify the buggy file from the issue text alone with up to 76% accuracy on SWE-bench Verified, but up to 53% on repositories outside the benchmark, a gap the authors attribute to possible contamination [6].
  • Staleness. SWE-rebench builds a continuous supply of fresh tasks and finds that some models’ SWE-bench Verified scores may be inflated by contamination [7].

We compare two conditions, not two models, so contamination affects both arms. It still matters: a memorized fix hides the context effect we are trying to measure. Fresh tasks are a requirement, not a nice-to-have.

The six metrics

Each run produces all six metrics at once, from the same event log that Chad keeps in ClickHouse. The explorer below shows the design: ten task categories, two conditions, six metrics, three seeds per cell. It fills as runs complete, and it is intentionally empty of results.

The benchmark, before the results

Tasks × conditions × metrics. Cells track run status only. No results are shown because none are published yet.

Runs complete (simulated)0 / 0
queuedrunningrun logged · result withheld
Accumulated
Compiled
T01 · bug fix · web API
T02 · bug fix · CLI
T03 · feature · billing
T04 · feature · auth
T05 · refactor · data layer
T06 · incident fix · queue
T07 · dependency upgrade
T08 · multi-turn intent
T09 · flaky test
T10 · perf regression
Task successresult: not yet published

Click a metric (SUC, ADH, REG, CST, LAT, HUM) to see how it is defined and measured. Task labels are placeholders for the task categories in the protocol. Progress is simulated to show the design; cells never carry values. Results will be published with the full run logs.

  • Task success. Hidden fail-to-pass and pass-to-pass tests, in the SWE-bench style [1], written or re-checked by our engineers for every task.
  • Intent adherence. The share of constraints and acceptance criteria satisfied, plus a separate count of hard-constraint violations. Defined in the next section.
  • Regressions. Previously passing tests that fail after the change, and defects traced to it after merge where the change was merged.
  • Cost. Tokens across every loop a run spawns, priced at one fixed price sheet. Chad runs many more loops than an accumulating agent, each smaller, so cost must be summed over loops, not per call.
  • Latency. Wall-clock time from trigger to a mergeable pull request, with time spent waiting for a human reported separately.
  • Human interventions. Every correction, clarification or rejection a person had to send. This is where an agent that forgets earlier instructions pays: the human repeats them.

Scoring intent adherence

Instruction-following research offers a useful starting point. IFEval restricts itself to verifiable instructions, 25 types across about 500 prompts, so compliance can be checked by a program rather than by opinion [8]. We apply the same principle to code: every constraint is checked by the cheapest checker that can decide it reliably.

  1. Tests first. Anything a program can decide is a test: lockfile diffs, API snapshots, file-scope checks, the acceptance tests themselves.
  2. An AI judge next. For constraints that need reading the diff (use the existing config module, follow the error-message style), an LLM judge scores each constraint separately against a written rubric. Zheng et al. found strong LLM judges reach over 80% agreement with human preferences, comparable to agreement between humans, but also documented position, verbosity and self-enhancement biases [9]. Agent-as-a-Judge extends this to agentic tasks, scoring 55 development tasks against 365 hierarchical requirements [11].
  3. Human raters last. Three raters per item, blind to the condition, score what neither tests nor the judge can decide, and audit a random sample of the judge’s verdicts.
adherence(run) = Σ wᵢ · sᵢ / Σ wᵢ // over acceptance criteria and soft constraints; sᵢ = 1 if satisfied, else 0

Hard constraints are not weighted. A single violation flags the run, and violations are reported as their own metric so a high adherence score cannot hide one.

How an adherence score is computed

One run on one example task: “add rate limiting to login”. Illustrative verdicts. Click a verdict to flip it.

Testsdeterministic, run first
AI judgerubric per constraint
Human raters3 per item, blind to condition
hard
No new runtime dependencieslockfile diff is empty · gate
hard
Public login() signature unchangedAPI snapshot test · gate
accept
429 after 5 failed attempts per minutefail-to-pass test · w=3
accept
Counter resets after the windowfail-to-pass test · w=2
constraint
Limits read from the existing config moduleAI judge, rubric + diff · w=2
constraint
Error message follows the style guideAI judge + 3 raters · w=1
constraint
Change stays scoped to the auth module3 raters, majority · w=2
intent adherence–
hard constraints: checking
adherence = Σ wᵢ·sᵢ / Σ wᵢ
over criteria + soft constraints
reported with hard violations, never merged into success
Is the AI judge trustworthy enough?

Before its verdicts count, the judge is scored against the human majority on a shared sample. Example 2 × 2 table, 40 items (illustrative):

human passhuman failjudge pass225judge fail310
po = 32 / 40 = 0.80
pe = (27·25 + 13·15) / 40² ≈ 0.54
κ = (po − pe) / (1 − pe) ≈ 0.56

80% raw agreement looks high, but once chance agreement is removed, κ is about 0.56, which Landis and Koch call “moderate”. The protocol sets a κ threshold the judge must clear before it may score a constraint without humans. Task, verdicts, weights and counts are illustrative.

Agreement must be chance-corrected. Percent agreement overstates reliability when most items pass. Thakur et al. show that judges with high percent agreement can still assign very different scores, and that only the largest judges approach human alignment [10]. We report Cohen’s kappa [12] between the judge and the human majority, and among human raters:

κ = (po − pe) / (1 − pe) // observed vs chance agreement

We use the Landis and Koch bands only as a vocabulary [13]. A constraint type is scored by the judge alone only if judge-human kappa on a held-out sample clears a threshold we fix before the main runs. Otherwise humans score it.

Protocol

  • Real repositories, fresh tasks. Tasks come from real repositories, created or recreated after the model’s training cutoff, in the spirit of SWE-rebench [7]. Each task carries a written intent, constraints and acceptance criteria, reviewed by an engineer who does not see either condition’s output.
  • Intent arrives the way it does at work. Some tasks state everything up front. Others split the intent across turns: a later Slack message, a review comment, a correction. This is where we expect the largest difference.
  • One variable. Same model, same tools, same repository snapshot, same token and time budget. Only context construction differs: accumulated transcript vs compiled context.
  • Seeds and intervals. Three seeds per task and condition at minimum. We report paired differences with bootstrap confidence intervals, not single runs.
  • Simulated humans, logged. Human interventions in the benchmark are delivered by a scripted protocol (when to correct, with what text), so both conditions get the same help. Unscripted interventions are logged and counted.
  • Pre-registration. Metrics, weights, thresholds and the analysis plan are published before the main runs. Changes after that point are listed with reasons.

Threats to validity

  • Construct validity. Adherence depends on how constraints are written. Too few, and the metric collapses to success. Too many, and it rewards pedantry. Constraint lists are reviewed by two engineers and published with the tasks.
  • Judge bias. An LLM judge may prefer outputs that resemble its own style or are longer [9]. The judge sees diffs, not transcripts, and never knows the condition. We use a judge from a different model family than the agent where possible.
  • Our own bias. We build one of the two conditions. Mitigations: blind raters, pre-registration, a baseline accumulating agent configured by its own documented defaults, and full run logs released with the results.
  • Task selection. Tasks from repositories we know may favor our system. A share of tasks will come from repositories we have never worked in.
  • External validity. A benchmark task is shorter and cleaner than a quarter of work on a living system. Results apply to the task lengths we test, which is one more reason to stratify by length [4].
  • Contamination. Fresh tasks reduce it but cannot prove it absent. We will report results separately for tasks created before and after the model’s cutoff.

How Chad applies it

Chad already logs what the benchmark needs. Every human input, tool signal and GitHub event lands in ClickHouse; every validated action is stored as an input → output pair; every intent carries its acceptance criteria. The benchmark harness reads the same tables, so cost, latency and intervention counts come from production logging, not a separate instrumentation path.

The same scoring runs in production. The Verifier agent checks constraints and acceptance criteria before an action enters memory, and validation can be done by a human or by an AI verifier. Measuring how often that verifier agrees with humans is part of the benchmark, not an afterthought.

Status & next steps

No results exist yet, and we are not publishing estimates. Next, in order: publish the task list and pre-registration, run the judge calibration, then run both conditions and publish every metric, with confidence intervals and raw logs, whatever they show. If compiled contexts do not improve adherence on these tasks, that is a result we will publish too.

References

  1. Jimenez, C. E. et al. SWE-bench: Can Language Models Resolve Real-World GitHub Issues?. ICLR, 2024.
  2. OpenAI. Introducing SWE-bench Verified. August 2024.
  3. Miserendino, S., Wang, M., Patwardhan, T., Heidecke, J. SWE-Lancer: Can Frontier LLMs Earn $1 Million from Real-World Freelance Software Engineering?. arXiv:2502.12115, 2025.
  4. Kwa, T., West, B. et al. Measuring AI Ability to Complete Long Software Tasks. NeurIPS, 2025.
  5. Aleithan, R. et al. SWE-Bench+: Enhanced Coding Benchmark for LLMs. arXiv:2410.06992, 2024.
  6. Liang, S., Garg, S., Zilouchian Moghaddam, R. The SWE-Bench Illusion: When State-of-the-Art LLMs Remember Instead of Reason. arXiv:2506.12286, 2025.
  7. Badertdinov, I. et al. SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agents. NeurIPS, 2025.
  8. Zhou, J. et al. Instruction-Following Evaluation for Large Language Models. arXiv:2311.07911, 2023.
  9. Zheng, L. et al. Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena. NeurIPS Datasets and Benchmarks, 2023.
  10. Thakur, A. S. et al. Judging the Judges: Evaluating Alignment and Vulnerabilities in LLMs-as-Judges. arXiv:2406.12624, 2024.
  11. Zhuge, M. et al. Agent-as-a-Judge: Evaluate Agents with Agents. arXiv:2410.10934, 2024.
  12. Cohen, J. A Coefficient of Agreement for Nominal Scales. Educational and Psychological Measurement 20(1), 1960.
  13. Landis, J. R., Koch, G. G. The Measurement of Observer Agreement for Categorical Data. Biometrics 33(1), 1977.