# Contain, Conform, Compare (Extended Version): A Red-Teamed Evaluation Kit for Small Coding Agents and the Full Record of Its Experiments

Contain, Conform, Compare（拡張版）：小型コーディングエージェントのためのRed-Teamed評価キットと実験の全記録

Nguyen Minh Thang · arXiv · 2026年11月12日

- **課題** 大会のホスト評価は揺らぎが大きく、小型エージェント同士の差を見分けにくいです。ローカル評価で補うには、安全性、採点器の再現性、統計ルールが同時に必要です。
- **手法** Containで作業ごとに新しいコンテナ内にエージェントを隔離し、Conformでリクエストとプロンプトを採点器の経路と比べます。Compareでは、リポジトリのクラスタを考慮した合格ルールを適用します。
- **結果** E4Bの4つのプロンプト差では解決率の変化は検出されませんでした。スクリーニングで上位だった3つの候補も、新しい課題では確認されませんでした。

## ローカル評価が必要な理由

大会のホスト評価は1日1回しか提出できず、58課題を基準にすると1回の点数には約1.5課題分の揺らぎがあります。そのため、数課題の差で分かれる2つのエージェントを、ホスト評価だけで見分けるのは難しいです。この論文は、小型コーディングエージェントGemma 4 E4Bをローカルで素早く安全に評価しつつ、大会採点器のプロンプト経路に合わせるツールキットdrydock-evalを扱います。ローカル評価が意味を持つには、実行が安全であること、ローカルのスタックが採点器と同じトークン列を作ること、そして差を比べる統計ルールがリポジトリ単位の相関を考慮することが必要です。

![Figure 6: Our hosted scores, one run each, against the range of ten public draws of the unchanged BF5 files \[7\]](https://refivu.com/papers/bd0541e8-459b-4c2d-85b7-35cf43caf15d/figures/figure-78bec68e2fe8cfc984fb35cd356392fd.png?thumb=512)

**Figure 6** : Our hosted scores, one run each, against the range of ten public draws of the unchanged BF5 files \[7\].

[出典](https://arxiv.org/abs/2611.16485v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nguyen Minh Thang · Contain, Conform, Compare (Extended Version): A Red-Teamed Evaluation Kit for Small Coding Agents and the Full Record of Its Experiments · 論文の図を引用 · 元のPDFの16ページ目から図の部分を抽出しています。

## 3つのモジュールの構成

drydock-evalはContain、Conform、Compareの3つのモジュールで構成されます。Containは作業ごとに新しいコンテナを作ってエージェントを実行します。ネットワークはなく、seccompフィルタと読み取り専用のルートを使います。リクエストは許可されたフィールドだけを含む転送役を通してのみ送られます。テストは機械で検査できるcanaryで確認しました。Conformは、ローカルスタックのリクエストとレンダリングされたプロンプトを採点器の経路と比べる8つの検査を行います。テンプレートの比較は文字列ではなく、トークン数またはトークンID数のレベルで行われます。Compareは、同じ課題と反復で候補とベースラインを対にして比べ、リポジトリをクラスタとしたwild cluster bootstrap-tで、固定された合格ルールを適用します。

合格ルールでは、平均利得が2/58（3.45ポイント）以上であること、片側 p が0.025以下であること、3つ以上のリポジトリで利得とleave-one-repository-out推定値がともにプラスであること、時間が1.2倍以内であること、そしてリポジトリの2課題相当以上の損失がないことを同時に求めます。

![Figure 3: Canaries passed and high-severity vectors found, per runner version](https://refivu.com/papers/bd0541e8-459b-4c2d-85b7-35cf43caf15d/figures/figure-a9b8d05dfd64b62ab424d95b9343db15.png?thumb=512)

**Figure 3** : Canaries passed and high-severity vectors found, per runner version.

[出典](https://arxiv.org/abs/2611.16485v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nguyen Minh Thang · Contain, Conform, Compare (Extended Version): A Red-Teamed Evaluation Kit for Small Coding Agents and the Full Record of Its Experiments · 論文の図を引用 · 元のPDFの9ページ目から図の部分を抽出しています。

![Figure 14: Gain of each repository in the three applications of the pass rule (candidate minus baseline). Repositories are sorted by their total within each ap…](https://refivu.com/papers/bd0541e8-459b-4c2d-85b7-35cf43caf15d/figures/figure-157517101ec9a74c3d2438b61dc6791b.png?thumb=512)

**Figure 14** : Gain of each repository in the three applications of the pass rule (candidate minus baseline). Repositories are sorted by their total within each application.

[出典](https://arxiv.org/abs/2611.16485v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nguyen Minh Thang · Contain, Conform, Compare (Extended Version): A Red-Teamed Evaluation Kit for Small Coding Agents and the Full Record of Its Experiments · 論文の図を引用 · 元のPDFの26ページ目から図の部分を抽出しています。

## プロンプト差の実験

スコアラー経路を基準Fとして、役割の値、思考の記録、圧縮設定、テンプレートをそれぞれ1つずつ変えた4つのarmを、同じモデルサーバーと同じエージェントバンドルで実行しました。231課題と課題ごとに4回の反復で4,620件の作業を実行し、課題ごとの符号反転検定とHolm補正を用いました。その結果、どのarmでもFとの差は検出されませんでした。最も大きい推定値は、思考を除いたHの−2.1ポイントでした。同時信頼区間は、最大5.1ポイントの低下と3.5ポイントの上昇を排除できませんでした。この結果はE4B、このエージェントバンドル、15リポジトリの範囲に限られ、31Bモデルでは同じ実験を行っていません。

![Figure 10: (A) Solve-rate difference, local minus Kaggle (pooled 8/48), for eight local runs of one 24-task list (95% Newcombe intervals, runs treated as indep…](https://refivu.com/papers/bd0541e8-459b-4c2d-85b7-35cf43caf15d/figures/figure-99eb3b4e7d094e0ac14d9fdad20cf75d.png?thumb=512)

**Figure 10** : (A) Solve-rate difference, local minus Kaggle (pooled 8/48), for eight local runs of one 24-task list (95% Newcombe intervals, runs treated as independent); shaded: the pass rule’s ±3.45 points. (B) Change in solve rate against F on 231 tasks: estimates, 95% intervals and Holm-adjusted p.

[出典](https://arxiv.org/abs/2611.16485v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nguyen Minh Thang · Contain, Conform, Compare (Extended Version): A Red-Teamed Evaluation Kit for Small Coding Agents and the Full Record of Its Experiments · 論文の図を引用 · 元のPDFの22ページ目から図の部分を抽出しています。

![Figure 11: Tasks whose number of solved repeats differs between an arm and F. Bars to the left of the centre line are tasks with fewer solved repeats in the arm](https://refivu.com/papers/bd0541e8-459b-4c2d-85b7-35cf43caf15d/figures/figure-02829cee207158f16d91cdadc42e84fb.png?thumb=512)

**Figure 11** : Tasks whose number of solved repeats differs between an arm and F. Bars to the left of the centre line are tasks with fewer solved repeats in the arm.

[出典](https://arxiv.org/abs/2611.16485v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nguyen Minh Thang · Contain, Conform, Compare (Extended Version): A Red-Teamed Evaluation Kit for Small Coding Agents and the Full Record of Its Experiments · 論文の図を引用 · 元のPDFの23ページ目から図の部分を抽出しています。

![Figure 12: Change against F in each repository, per arm. Repositories are ordered by their number of tasks](https://refivu.com/papers/bd0541e8-459b-4c2d-85b7-35cf43caf15d/figures/figure-2627a5e1115501f74fafb49fe957c863.png?thumb=512)

**Figure 12** : Change against F in each repository, per arm. Repositories are ordered by their number of tasks.

[出典](https://arxiv.org/abs/2611.16485v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nguyen Minh Thang · Contain, Conform, Compare (Extended Version): A Red-Teamed Evaluation Kit for Small Coding Agents and the Full Record of Its Experiments · 論文の図を引用 · 元のPDFの24ページ目から図の部分を抽出しています。

## 候補変更の確認実験

スクリーニングで先行を示した3つの候補変更を、新しい課題で1回ずつ確認しました。最初の2つの候補の利得はそれぞれ−0.35ポイントと−0.39ポイントで、3つ目の候補は+4.10ポイントでした。論文は3つ目の候補を改善とは呼ばず、実験結果は確認されなかったと記録しています。

![Figure 15: Lead of each candidate in its screen on S against its gain in the confirmation run on other tasks, both in percentage points against the baseline of…](https://refivu.com/papers/bd0541e8-459b-4c2d-85b7-35cf43caf15d/figures/figure-1f24adb5d8115686e9599378c2ba282b.png?thumb=512)

**Figure 15** : Lead of each candidate in its screen on S against its gain in the confirmation run on other tasks, both in percentage points against the baseline of the same block. The horizontal line is the gain that the pass rule asks for.

[出典](https://arxiv.org/abs/2611.16485v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nguyen Minh Thang · Contain, Conform, Compare (Extended Version): A Red-Teamed Evaluation Kit for Small Coding Agents and the Full Record of Its Experiments · 論文の図を引用 · 元のPDFの28ページ目から図の部分を抽出しています。

## 31B構成の比較と限界

31Bモデルの6つの構成は、同じ70の開発課題で37から44課題を解決しました。6つの構成の間で対ごとの差は検出されませんでした。開発課題ごとに1回ずつしか実行しなかったため、構成の差と実行の差を分けられませんでした。著者らは、この実験は開発課題を複数の変形で見ながら選んだ設定なので、選択バイアスにさらされていると説明しています。一方、論文の結果の範囲は、このモデルとエージェントバンドル、15リポジトリに限られます。実際の大会採点器の非公開課題と同じ分布だとは保証できません。

![Figure 4: Six configurations of the 31B agent on the same 70 development tasks, one run per task](https://refivu.com/papers/bd0541e8-459b-4c2d-85b7-35cf43caf15d/figures/figure-83a4395fba6db092d507bbb75eecbd4f.png?thumb=512)

**Figure 4** : Six configurations of the 31B agent on the same 70 development tasks, one run per task.

[出典](https://arxiv.org/abs/2611.16485v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nguyen Minh Thang · Contain, Conform, Compare (Extended Version): A Red-Teamed Evaluation Kit for Small Coding Agents and the Full Record of Its Experiments · 論文の図を引用 · 元のPDFの13ページ目から図の部分を抽出しています。

![Figure 5: Which configuration solved which task. One column per development task, one row per configu- ration; a filled cell is a solved run. 25 tasks were sol…](https://refivu.com/papers/bd0541e8-459b-4c2d-85b7-35cf43caf15d/figures/figure-1c5f12a45c50b8b201a194ea2106352e.png?thumb=512)

**Figure 5** : Which configuration solved which task. One column per development task, one row per configu- ration; a filled cell is a solved run. 25 tasks were solved by all six configurations and 20 by none.

[出典](https://arxiv.org/abs/2611.16485v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nguyen Minh Thang · Contain, Conform, Compare (Extended Version): A Red-Teamed Evaluation Kit for Small Coding Agents and the Full Record of Its Experiments · 論文の図を引用 · 元のPDFの13ページ目から図の部分を抽出しています。

## 論文情報

- **著者**: Nguyen Minh Thang
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2026年11月12日
- **登録日**: 2026年11月13日
- **更新日**: 2026年11月12日
- **バージョン**: v1
- **arXiv**: 2611.16485
- **カテゴリ**: cs.AI
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2611.16485v1) · [PDF ↗](https://arxiv.org/pdf/2611.16485v1)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

A hosted score in the Gemma 4 Developer Agent competition is one noisy number, so development needs a local evaluator that is fast, safe for agent-written code, and matching the hosted scorer's prompts. drydock-eval evaluates a small coding agent (Gemma 4 E4B) at about 250 runs per hour on one RTX 5090. Contain runs each job in a fresh container without network and passed 200 scripted escape tests; conform provides eight checks that compare a local stack's requests with the scorer's configuration, down to rendered tokens; compare provides paired statistics that respect repository clusters. AI agents built and attacked the kit; a human owner approved machine use and release. This extended version repeats the short paper and adds the full record of the experiments made with and around the kit: 9,660 rows of agent runs, 2,494 grading controls and 72 serving measurements, all released. On four L4 GPUs the 31B model decodes 38.1 tokens per second in one stream and E4B 105.8. Six configurations of a 31B agent solved between 37 and 44 of 70 development tasks, and no pairwise difference was detected. A pre-registered five-arm experiment (231 tasks, 4,620 jobs) measured four prompt divergences: no E4B solve-rate change was detected (largest estimate -2.1 points, 95% interval -4.4 to +0.4). Three changes of the E4B agent led their screens by +1.0 to +6.2 points; each was then tested once on new tasks under a frozen pass rule, and none was confirmed (gains -0.35, -0.39 and +4.10 points). The unchanged baseline, run again on the same 128 tasks, moved by 1.17 points, and 65% of these tasks were solved in none of eight runs. Prompts and agent bundles are withheld; every run-level result is public.

## この論文を引用

Nguyen Minh Thang (2026). Contain, Conform, Compare (Extended Version): A Red-Teamed Evaluation Kit for Small Coding Agents and the Full Record of Its Experiments. arXiv:2611.16485v1. https://arxiv.org/abs/2611.16485v1

**BibTeX**

```
@misc{thang2026contain,
  title = {{Contain, Conform, Compare (Extended Version): A Red-Teamed Evaluation Kit for Small Coding Agents and the Full Record of Its Experiments}},
  author = {Nguyen Minh Thang},
  year = {2026},
  eprint = {2611.16485},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.16485v1}
}
```

## この論文の用語

- [canary](https://refivu.com/ja/terms/7b56c3fdb3fe-canary)

## ほかの論文解説

- [Look Here, Then Decide: Small Decision Models in a Harness Find Memory-Safety Vulnerabilities at Scale on Commodity GPUs](https://refivu.com/ja/papers/a4086ec5-33eb-4e68-bbd9-18476c04be04-look-here-then-decide-small-decision-models-in.md)
- [How Should Planning Agents ReSHAPE Their Search Space?](https://refivu.com/ja/papers/9fffaa2e-ec66-4527-8bbc-c761e38be1cc-how-should-planning-agents-reshape-their-search-space.md)
- [Before AI Agents Negotiate for Us: A Competitive Tournament of Rule-Based, Search, Optimization, Learned, and Language-Model Negotiators Under Scarcity](https://refivu.com/ja/papers/1be3d06e-6a65-49a3-b9cb-66c789353de6-before-ai-agents-negotiate-for-us-a-competitive.md)
- [DecArena: Evaluating Large-Scale Decentralized Multi-Agent Collaboration](https://refivu.com/ja/papers/4493abdc-e2c5-4773-98e4-76e1d9e947dd-decarena-evaluating-large-scale-decentralized-multi-agent.md)
- [GHAgentCI: A Dataset of Coding-Agent Invocations in CI Workflow Histories](https://refivu.com/ja/papers/424ea16a-b913-4b06-9a96-34a62191b355-ghagentci-a-dataset-of-coding-agent-invocations-in.md)
- [Read and Ignore: What Self-Directed LLM Agents Do in Public Service Scenarios](https://refivu.com/ja/papers/2039c2d0-49d9-4ade-aa0e-90550d306072-read-and-ignore-what-self-directed-llm-agents.md)
- [Where in the Input Does a One-Pass Decision Encoder Look?](https://refivu.com/ja/papers/bb28ef96-e4c3-4e27-b54a-a252bf1df83a-where-in-the-input-does-a-one-pass.md)
- [Shared Item-Level Error Limits the Aggregation of Small Language Models in Fermi Estimation](https://refivu.com/ja/papers/d6b35571-2eef-4304-900f-fe22dbf275c8-shared-item-level-error-limits-the-aggregation-of.md)
- [Low Language Transfer Speech-to-Text](https://refivu.com/ja/papers/a72fcc94-71cb-43cb-a9d4-b90726cea829-low-language-transfer-speech-to-text.md)
- [A Matching Lower Bound for Online Smooth Calibration](https://refivu.com/ja/papers/325701fa-d264-4ed2-bc4e-abb5dc7b1a1a-a-matching-lower-bound-for-online-smooth-calibration.md)
- [When can an interpretability claim be trusted? Stability and certification of feature dimensionality, ridge leverage and the feature recovery rate](https://refivu.com/ja/papers/2430c94f-43b6-4448-b366-580fe254b57f-when-can-an-interpretability-claim-be-trusted-stability.md)
- [What Roles Do System Prompts Really Assign? Validating and Steering Occupational Role Vectors in LLMs](https://refivu.com/ja/papers/629a4fc4-7b87-453a-b9f7-a7e955764349-what-roles-do-system-prompts-really-assign-validating.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/bd0541e8-459b-4c2d-85b7-35cf43caf15d-contain-conform-compare-extended-version-a-red-teamed)
