Skip to content

Contain, Conform, Compare (extended version): a red-teamed evaluation suite for small coding agents and its complete experimental recordContain, Conform, Compare (Extended Version): A Red-Teamed Evaluation Kit for Small Coding Agents and the Full Record of Its Experiments

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2611.16485· Nguyen Minh ThangVNU University of ScienceIndexed by this site · 10 days ago· Originally publishedTools

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors released the local evaluation suite drydock-eval and 9,660 agent run records; the preregistered experiment did not detect an effect of four prompt divergences on E4B solve rate.

Questions
Hosted scores for the Gemma 4 developer agent competition are once per day with noise of about 1.5/58 tasks, which cannot distinguish similar agents; local evaluation needs to simultaneously solve three problems: the safety of running agent code, consistency with the grader prompt, and statistical decisions that account for repository clustering.
Methods
Build the three-module drydock-eval suite: contain runs each job in a fresh container with no network and withstands seven rounds of red-team attacks; conform compares the local request against the grader path with eight checks (down to token id); compare provides a paired test clustered by repository with a frozen pass rule.
Experiments and results
No effect of the four prompt divergences on E4B solve rate was detected (largest estimate −2.1 points); six 31B configurations solved 37–44 of 70 tasks with no paired differences; three E4B candidates led by +1.0 to +6.2 points in screening and none passed in the confirmation run (gains −0.35, −0.39, +4.10 points).
Limitations and future work
Limitations noted by the authors include: the case study covers only one model, one agent package, and one google-adk version; the 31B experiments have only one run per task; some task-set selections have no recorded rule; the H panel was used twice; the prompts and agent package are not public during the competition.
Experimental setupGemma 4 E4B、Gemma 4 31B et al. · Berth、竞赛开发任务(development tasks) · solve rate、tokens per second et al.
Threat model
The adversary is code written by the agent: it may attempt to read host files or other jobs, access the network, exhaust host resources, forge verdicts, or survive after the job ends; kernel exploits are out of scope (Section 2.6).
Evaluated models
Gemma 4 E4BGemma 4 31BGemma 4 12B
Benchmarks
Berth竞赛开发任务(development tasks)
Metrics
solve ratetokens per secondcanaries passedpass rule(五项条件的判定规则)
AI summaryThe authors released drydock-eval, a local evaluation suite providing local evaluation for development in the Gemma 4 Developer Agent competition, targeting the small coding agent Gemma 4 E4B, at about 250 runs per hour on a single RTX 5090. Contain runs each task in a new container without network access and passes 200 scripted escape tests; Conform compares local requests with the hosted grader configuration using eight checks (down to the rendered tokens); Compare provides paired statistics that respect repository clustering; the agent built and attacked the suite, and its release was approved by the human owner. The extended version publicly releases the complete experimental record: 9,660 lines of agent runs, 2,494 grading comparisons and 72 service measurements. Rerunning the unchanged baseline on the same 128 tasks fluctuated by 1.17 percentage points, and 65% of tasks were not solved in any of eight runs; the prompts and agent package are not public, and all run-level results are public.

The authors released drydock-eval, a local evaluation suite providing local evaluation for development in the Gemma 4 Developer Agent competition, targeting the small coding agent Gemma 4 E4B, at about 250 runs per hour on a single RTX 5090. Contain runs each task in a new container without network access and passes 200 scripted escape tests; Conform compares local requests with the hosted grader configuration using eight checks (down to the rendered tokens); Compare provides paired statistics that respect repository clustering; the agent built and attacked the suite, and its release was approved by the human owner. The extended version publicly releases the complete experimental record: 9,660 lines of agent runs, 2,494 grading comparisons and 72 service measurements. Rerunning the unchanged baseline on the same 128 tasks fluctuated by 1.17 percentage points, and 65% of tasks were not solved in any of eight runs; the prompts and agent package are not public, and all run-level results are public.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Hosted competition scores are noisy, and local evaluation needs to simultaneously solve three problems: safety, fidelity, and statistical decisions.

    Hosted competition scores are a once-per-day noisy sample with a standard deviation of about 1.5/58 tasks, which cannot support the daily iterative evaluation needed for agent development. The paper builds the local evaluation suite drydock-eval for the Gemma 4 developer agent competition and publicly releases all experimental records around it.

    • Setting and motivation: The competition scores agent packages on hidden GitHub issue tasks, allows only one submission per day, and the public leaderboard shows only the solve share on 58 hidden tasks; a third-party analysis estimates the standard deviation of a single hosted score at close to 1.5 tasks (Section 2.1).
    • Shortcomings of existing practice: The authors' first local setup ran shell commands written by the agent without a sandbox; and because the model name contains "gemma4", google-adk 1.36.1 sent tool results with the tool_responses role, which is inconsistent with the grader path, yet the run completed as usual—the authors call this the rendering trap (Section 1).
    • Core observation: Task success and failure within the same repository are correlated, a small model solves about one task in five runs, and development requires looking at many variants, so differences between two arms require a paired design, an analysis that respects repository clustering, and decision rules frozen before results (Section 1).
    • What the paper proposes: The three-module suite drydock-eval (contain container runner, conform eight consistency checks, compare paired statistical rules), plus a complete public record of 9,660 agent runs, 2,494 grading comparisons, and 72 serving measurements (abstract, Section 14).
    • Threat model (Section 2.6):
      • The adversary is code written by the agent.
      • It may attempt to read host files or other jobs, access the network, exhaust host resources, forge verdicts, or survive after the job ends.
      • Kernel exploits are out of scope.
      • The victim system is the local evaluation host running agent jobs and its shared model server.
  2. What related research exists?

    Related work covers coding benchmarks, evaluation practice, sandbox isolation, and clustered statistics; the authors state that this paper fills three gaps.

    Benchmarks, agents, and task pools

    • SWE-bench [21] and its human-validated subset [31]—repository-level coding benchmarks that use tests to judge agent patches; SWE-rebench [2] continuously collects new tasks so that models can be evaluated on tasks they have not seen.
    • Agent frameworks and training environments (SWE-Gym, OpenHands, SWE-agent, SWE-smith, etc. [32, 42, 44, 45]) come with their own sandboxes and task pools.
    • This competition's Berth [33] and FreshSWE-Py [30] provide tasks in harness format; the authors did not build their own task set—all tasks come from the competition development set and Berth, and they added a grading comparison for every Berth task used (Table 13).

    Evaluation practice

    • Agent benchmark audit work [47, 3, 37, 22] points out that validity must be tested, scores vary with evaluation setup and prompt format, and agent evaluations are often hard to reproduce; the authors state that this paper addresses one narrow case: whether a local stack reproduces the same hosted grader.
    • Prompts are compared by token id rather than message text because the same string may tokenize differently [40], and chat-template control tokens matter [20]; the prompt divergences tested are already documented upstream [10, 13, 15, 35], and the authors state they did not discover them, only adding executable checks and effect measurements on E4B.

    Isolation

    • MicroVMs (Firecracker [1]) and user-space kernels (gVisor [46]) are container alternatives designed for security; the authors state that their runner uses ordinary containers and that neither alternative was tried.
    • SandboxEval [34] and SandboxEscapeBench [25] test sandboxes and models' ability to escape sandboxes; Houdini [11] shows that a container can consume resources beyond its own accounting, which the authors state is exactly the route through shared host resources exploited by their verifier.

    Competition paper track resources and statistical methods

    • Same-track resources (described only by their public text): LAB [26], Szeto et al.'s cloud apparatus [38], gemma4-swe-kit [6], a dataset card reporting 107 consistent vLLM request counts [41], Silent Zeros [19], ThoughtKeep [18]. The authors state that what they did not find in these texts, and what this paper provides, is: a runner attacked by an independent verifier with publicly reported canary misses, token id comparison backed by a mutation suite, and an E4B trap measurement with per-job prompt checks.
    • Statistically, it follows the recommendations to treat evaluation as an experiment, use clustering and paired errors, and do power analysis [28, 17]; the pass rule uses a wild cluster bootstrap-t over repositories [4, 8], whose nominal level may fail with few or unbalanced clusters [5, 24, 43], so the rule's level and power were simulated on the frozen panel (Table 5).

    Baselines and data: The 31B experiments use the public configuration BF5 (Budget-Fit V5) and the public package ID24 as reference arms; tasks come from the competition development set (70) and Berth (579 that passed validation).

  3. How does the paper address this problem?

    drydock-eval three modules: container-isolated execution, eight prompt consistency checks, and frozen decision rules for repository clustering.

    Overall approach: split local evaluation into three modules — safe execution (contain), alignment with the scorer (conform), and statistical adjudication (compare) — each usable independently, with an AI agent building it, an independent AI agent adversarially validating it, and a human owner approving machine use and release (Section 2.7).

    contain: container runner and attack records

    • A fresh container per job: no network, no capabilities, seccomp filtering, read-only root filesystem, non-privileged user, 2 CPU, 10 GiB memory, a 4,096 process limit, and a temporary filesystem capped by bytes and inodes (Section 4).
    • The only request channel is one Unix socket per job to a forwarder, which only allows chat-completion requests within a field whitelist, limited to text content and approved template hashes, with rate and size limits; a job starts only if eight recorded hashes (image, code, parameters, model files) match.
    • Canaries are scripted attacks with machine-checkable results; the runner went through 7 versions, each recording the number of canaries passed and the high-severity vectors found by an independent validator (Table 3).

    conform: eight checks against the scorer's path

    • Reads the requests emitted by the local stack and, when logs are available, the prompts rendered by the server; reference values come from the public starter notebook, the authors' Kaggle kernel traces and the Kaggle model's chat template (Section 5).
    • The eight checks cover: tool result role, sampling parameters, tool schema, message skeleton, rendered template, historical thoughts, thought trailing newline, and compression settings (Table 4).
    • The template check re-renders every request with the Kaggle template outside vLLM and compares token counts or token ids, because identical strings may tokenize differently.
    • The checks themselves were validated with a mutation suite: 103 mutations (85 drift, 18 benign controls) produced 412 runs on a mock server.

    compare: adjudication rules that respect repository clustering

    • Candidate and baseline run on the same tasks and repetitions; passing requires all five conditions (Section 6):
      1. mean gain of at least 2/58 (3.45 percentage points);
      2. repository-clustered null-imposed wild cluster bootstrap-t one-sided p ≤ 0.025 (Rademacher weights, 9,999 draws);
      3. at least three repositories benefit and every leave-one-repository-out estimate is positive;
      4. agent time no more than 1.2 times the baseline and no increase in infrastructure errors;
      5. no repository loses two task-equivalents or more.
    • Two panels (a small panel of 72 tasks/18 repositories and a large panel of 200 tasks/20 repositories) were frozen before any results were produced; the rule's level and power were calibrated with 3,000 simulations per cell (Table 5).

    Experimental protocol and adjudication method

    • Task adjudication: a run is recorded as solved if the hidden tests pass after the patch is applied; ending with no patch or at the limit is recorded as unsolved (Section 2.5).
    • Single-arm solve counts are given with 95% Wilson intervals; two arms with one run per task use an exact two-sided sign test; repeated runs and candidate adjudication always use the compare test.
    • The case study (Section 9) is a preregistered five-arm experiment: 231 tasks, 4 repetitions, 4,620 jobs, with the primary analysis an exact two-sided sign-flip test at the task level and Holm correction across four arms; a frozen checker re-renders all returned requests to confirm that each job actually carried its arm's divergence.
    • Screen-and-confirm procedure (Section 10): first select the leading variant on a 48-task screening set S, then freeze the candidate, tasks, rules and analysis script, run one confirmation on a frozen panel disjoint from S, and apply the passing rule.
  4. What experiments did the paper conduct?

    Serving throughput, seven versions of runner red-teaming, the eight-check mutation suite, 31B and E4B agent experiments, the pre-registered case study, and three screen–confirm plans.

    Experimental setup

    • Models tested: Gemma 4 31B, 12B, E4B (all 4-bit quantization-aware checkpoints; 12B used only for serving measurements), vLLM 0.19.1, google-adk 1.36.1 (Section 2.2).
    • Machines: a single-GPU cloud machine with simulated L4 latency (31B development-task experiments), a 4×L4 Kaggle notebook (the same hardware as the grader), an RTX 5090 single-card workstation (E4B experiments, about 250 runs/hour) (Section 2.3).
    • Tasks: 70 competition development tasks (4 repositories); 579 Berth tasks that passed validation (reference patch passes, empty patch fails), from which were drawn screen set S (48), small panel C (72), large panel (200, including C; H is 128 of them), and the case study panel (231) (Section 2.4).
    • Metrics: solve rate (in percentage points, recorded as points), tokens/s, canary passes, the five conditions of the pass rule.
    • Decision methods: task-level sign test, sign-flip test, repository-clustered bootstrap-t; no LLM judging, solving is decided by hidden tests.
    • Scale: 5,024 agent runs (31 blocks, 37 arms) + 4,620 case study jobs + 2,494 grading comparisons + 72 serving measurements.

    Main results

    Case study: effect of four prompt divergences on E4B solve rate (231 tasks, 924 runs per arm, per Table 18, Table 23)

    Swipe horizontally to read the table

    ArmDivergenceShare of requests changedChange relative to F [95% interval]Holm p
    Fnone (grader path)—solve rate 23.8%—
    Rtool result role tool_responses89%−0.3 [−2.8, +2.2]1
    Chistory compaction off21%+0.2 [−2.0, +2.5]1
    Hhistorical thoughts removed90%−2.1 [−4.4, +0.4]0.44
    Tswitched to Hugging Face E4B template85%+0.8 [−1.4, +2.9]1
    • The authors state that no difference from F was detected for any arm; these are null results rather than evidence of no effect—at the same time, the 98.75% interval still allows a decrease of up to 5.1 points (H) and an increase of up to 3.5 points (T).
    • The authors note that arm H runs averaged 137 s (F: 78 s), and 11.5% of runs were unsolved at the five-minute time limit (F: 1.8%), and its estimate depends on the time limit: treating time-limit rows as missing gives −1.3 points.
    • The authors state that these divergences are not small (three changed 85%–90% of requests), yet E4B's solve share is insensitive to these prompt details; they also consider consistency checks still useful because they are cheap and can save the question that would require 4,620 jobs to answer.

    Comparison of six 31B agent configurations

    • Six configurations each ran once on the same 70 development tasks (simulated latency), solving 37–44: BF5 37, W1/W2 39, W3 38, SH1/SH3 41, SH5 41, SH6 44 (Table 7, Figure 4); the largest difference from BF5 is SH6 (it alone solved 10, BF5 alone solved 3, p = 0.09, uncorrected for multiple comparisons), and no paired difference was detected.
    • 25 tasks were solved by all six configurations, 20 by none, and the remaining 25 depended on configuration or run (Figure 5); the union of the six configurations is 50 tasks, which the authors call an upper bound on the benefit of configuration selection and an overestimate.
    • The authors caution that SH6 is the last version iterated while looking at the results on these tasks, so its count is most affected by selection effects.

    Three screen–confirm plans

    • Three candidates each led on screen set S (v-p2 +6.2 points, v-t6 +1.0 points, v-a3 +5.2 points; Table 29), then each was confirmed once on new tasks under the frozen rule (Table 30, Table 35).
    • Confirmed gains: −0.35 points (p = 0.6034), −0.39 points (p = 0.6034), +4.10 points (one-sided p = 0.0405, above the required 0.025); all three verdicts are FAIL (not confirmed).
    • The authors state that the third candidate's gain is 2.9 standard deviations relative to run-to-run noise, but the repository-clustered test does not pass, and its gain is concentrated in a few repositories (the top three repositories contribute +4.25 task-equivalent, net gain +5.25), so they do not call it an improvement; the first two leads disappear on new tasks, consistent with the selection effect the rule is meant to catch.

    Other ablations and analyses

    • Serving measurements (Table 1): on 4×L4, 31B single-stream decode is 38.1 tok/s, 12B 76.1, E4B 105.8; after loading a LoRA adapter, requests addressed to the adapter decode 9–13% slower (Table 2).
    • contain red-teaming (Table 3, Figure 3): version 7 passed 200/200 canaries with no high- or medium-severity findings; no attack escaped the container namespace or privileges, but 9 demonstrated high-severity vectors went through host-shared components (host-side steps, resource limits, model server).
    • conform mutation suite: the target check caught 317/325 applicable drift runs, and the 8 misses were equal-length template changes visible only through counts; 72 control runs had no false positives (24 alerts) (Section 5).
    • Baseline repeatability (Table 15): on S, three sessions solved 19/21/20 (difference 2.1 points); on H, two sessions solved 103/97 (difference 1.17 points); of H's 128 tasks, 83 (65%) were solved in none of eight runs and 10 in all.
    • Workstation vs hosted notebook comparison (Table 14): the same baseline on 24 Berth tasks solved 4/4 hosted and 2–5 per run on the workstation; the authors state this rules out a huge difference but the interval is too wide to prove that a particular prompt difference has no effect.
    • Hosted submissions (Table 11): five submission scores 0.05–0.18; W3 and BF5 tie locally (38 vs 37/70) while hosted scores are 0.12 and 0.18; the authors state both hosted orderings are reversed relative to local but neither can be distinguished from noise.
  5. What are some points that can be further explored?

    The authors list limitations such as the task pool being exhausted and the panel being used twice; the experiments cover three models, two task sources and five machine settings.

    Limitations and future directions noted by the authors

    • Task-level consistency was neither refuted nor established: the evidence is a single 24-task list, repeated once per run, and ten runs solved only 6 distinct tasks (Section 13).
    • Some facts on the Kaggle side are inferences: the hosted google-adk version, tool schema equality, and the identity of the hosted template and weights with the public Kaggle model (Section 13).
    • Environment differences remain: a single RTX 5090 versus four L4s, 2 CPU/10 GiB per job, and the lack of a bare pytest command locally (Section 13).
    • The case study covers only one model, one agent package, one google-adk version and one configuration per divergence; the T arm swaps the template wholesale, and in the H arm thoughts still enter the compressed summary (Section 13).
    • 31B was run only once per task on development tasks, so between-configuration differences cannot be separated from between-run differences; some arms are confounded with sessions; the selection of some task sets has no recorded rule; the H panel was used twice, and the third candidate was constructed after knowing the first confirmed result on H (Section 13).
    • The agent package, prompts and adapters were not public during the competition, so the arms cannot be reconstructed from the paper; the authors plan to release the agent package and the case study's request dumps on 2026-12-03 (Section 2.7, Section 14).

    Scope of experimental coverage

    • The models tested are Gemma 4 31B, 12B and E4B, three in total; 12B appears only in the serving measurements (Section 2.2, Section 3).
    • Task sources are competition development tasks (70) and Berth (579 validated); the case study panel is 231 tasks across 15 repositories (Section 2.4, Section 9.1).
    • The runner was red-teamed over 7 versions with 200 canaries cumulatively; conform's mutation suite contains 103 mutations and 412 runs (Table 3, Section 5).
    • Hosted scores have only one draw per file, the E4B files have no repeated draws, and their noise was not measured (Section 7.7, Section 13).
    • Of the 579 validated tasks, 479 have been used by the experiments in this paper; the remaining 100 are spread across 6 repositories, and the authors say these tasks alone cannot support a confirmation (Section 11.5).
  6. Summarize the main content of the paper

    A local evaluation toolkit plus a complete experimental record: most results are null results, and the authors use them to quantify noise and selection effects.

    An evaluation-tooling and experimental-record paper for the Gemma 4 developer agent competition: hosted scores are once per day with noise of about 1.5/58 tasks, and the authors build the local suite drydock-eval and release all run-level data.

    • Problems to solve: Local evaluation must first answer three things—safety (code written by the agent is executed directly), fidelity (the rendering trap silently changes the token sequence the model receives while the run still scores as usual), and inference (task success and failure within the same repository are correlated, requiring a paired design and frozen rules).
    • Method highlights: contain gives each job a fresh container with no network, iterated through 7 versions of red-teaming to 200/200 canary passes; conform uses eight checks to compare the local request against the grader path down to token id; compare uses a repository-clustered bootstrap-t and a frozen pass rule with five conditions.
    • Key results:
      • Pre-registered five-arm experiment (231 tasks, 4,620 jobs): none of the four prompt divergences had a detected effect on E4B solve rate, with the largest estimate being −2.1 points [−4.4, +0.4] for arm H (Table 18).
      • Six 31B configurations solved 37–44 of 70 development tasks, with no paired differences (Table 7).
      • Three E4B candidate screens led by +1.0 to +6.2 points; confirmed gains were −0.35, −0.39, and +4.10 points, none passing the frozen rule (Table 35).
      • The unchanged baseline differed by only 1.17 points across two sessions on 128 tasks, and 65% of tasks were solved in none of eight runs (Section 8.4).
      • On 4×L4, E4B decodes at 105.8 tok/s, 2.8 times that of 31B (38.1) (Table 1).
    • Authors' conclusions: Most records show an absence of differences; screen leads are inflated by construction, and the tool that can reach a conclusion is confirmation on unused repository tasks, and each confirmation consumes its task pool; the authors release all run-level results for others to recompute and plan the scale of their own comparisons.
Read originalarxiv.org