SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.19380 · 2026

ClayBuddy: A Framework, Evaluation, & Mitigation of Coding Agent Failures

Kenneth Ge, Andre Assis

arXiv · PDF

Code that ran

8 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 6 failures of our instrument; 2 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2606.19380.json · badge: /api/ran/2606.19380.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
kenneth-ge/claybuddy canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
FunctionStatusWhere it lives
cache_path Ran
ran; our contract draft was wrong, not the code
kenneth-ge/claybuddy/harness/clayhands/claybuddy/evals/lcb_dataset.py
pointer only (licence: NOASSERTION) · get_code("d9ae84794d841930")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kenneth-ge/claybuddy (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

decode_private_tests Ran
ran; our contract draft was wrong, not the code
kenneth-ge/claybuddy/harness/clayhands/claybuddy/evals/lcb_dataset.py
pointer only (licence: NOASSERTION) · get_code("20eb9d817d514591")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kenneth-ge/claybuddy (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

norm_stdout Ran
ran; our contract draft was wrong, not the code
kenneth-ge/claybuddy/harness/clayhands/claybuddy/evals/lcb_runner.py
pointer only (licence: NOASSERTION) · get_code("5511024543cf79f5")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kenneth-ge/claybuddy (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize Ran
ran; our contract draft was wrong, not the code
kenneth-ge/claybuddy/harness/clayhands/claybuddy/evals/lcb_runner.py
pointer only (licence: NOASSERTION) · get_code("10e600267c699c0b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kenneth-ge/claybuddy (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

run_stdin Ran
ran; our contract draft was wrong, not the code
kenneth-ge/claybuddy/harness/clayhands/claybuddy/evals/lcb_runner.py
pointer only (licence: NOASSERTION) · get_code("73d7205cb96acf3d")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kenneth-ge/claybuddy (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

stamp_file Ran
ran; our contract draft was wrong, not the code
kenneth-ge/claybuddy/add_canary.py
pointer only (licence: NOASSERTION) · get_code("285fa791ce99ab69")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kenneth-ge/claybuddy (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

stamp_obj Ran
ran, violated the contract we drafted
kenneth-ge/claybuddy/add_canary.py
pointer only (licence: NOASSERTION) · get_code("946c9763d5e738a7")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kenneth-ge/claybuddy (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

unlock_attempt Ran
ran, violated the contract we drafted
kenneth-ge/claybuddy/harness/clayhands/claybuddy/immutability.py
pointer only (licence: NOASSERTION) · get_code("313cc75c7fa381bc")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kenneth-ge/claybuddy (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_cache Not yet run
unverified (harvested, no recorded run)
kenneth-ge/claybuddy/harness/clayhands/claybuddy/evals/lcb_dataset.py
pointer only (licence: NOASSERTION) · get_code("319997d4ef629e91")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kenneth-ge/claybuddy (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

guardrail_violation Not yet run
unverified (harvested, no recorded run)
kenneth-ge/claybuddy/harness/clayhands/claybuddy/guardrails.py
pointer only (licence: NOASSERTION) · get_code("f72f975644ff96b7")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kenneth-ge/claybuddy (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Widespread deployment of AI agents in software engineering is surfacing a long tail of rare but highly dangerous misalignment bugs. Since sampling this behavior is intractable, we decompose these failures into three distinct mechanisms: underspecification, where default model behavior is unsafe; capability errors, where the safe action is available but the model does not adhere to it; and agent harness errors, where the safe action fails to execute. Across 8 evaluations that stress test these mechanisms, we find that frontier models are difficult to steer, elicit dangerous behavior through just 3 conditioning examples, and can randomly generate destructive commands at nontrivial probabilities. These three mechanisms naturally lend to targeted mitigations for each one, inspiring our harness modification ClayBuddy. ClayBuddy allows the agent to modify its own harness to provide safety guarantees, including a novel tool to selectively truncate its own context. We measure ClayBuddy's efficacy across safety and capabilities, finding that it eliminates violations across some tasks. This demonstrates that our decomposition is effective and is an example of our harness design philosophy.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2606.19380")
get_code_for_paper("2606.19380")
have("2606.19380")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2606.19380.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2606.19380.svg)](https://syntology.ai/paper/2606.19380)

Connect an agent — have() is free.