Copanion: Auditable Autonomous Research Agents With Evidence Contracts

Copanion (arXiv:2612.04936) is an autonomous scientific and ML-engineering research agent built on three principles: Self-Improvement, Auditability, and Human Agency. Combining experience-driven method evolution, structured evidence contracts linking claims to exact code/predictions, and interactive Generative-UI reports, it boosts paper-review scores by 7.0% and post-training reasoning by 25%.
Copanion: Auditable Autonomous Research Agents With Evidence Contracts: Copanion (arXiv:2612.04936) is an autonomous scientific and ML-engineering research agent built on three principles: Self-Improvement, Auditability, and Human Agency. Combining experience-driven method evolution, structured evidence contracts linking claims to exact code/predictions, and interactive Generative-UI reports, it boosts paper-review scores by 7.0% and post-training reasoning by 25%. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- Three Trustworthy Auto-Research Pillars: Unifies Self-Improvement (experience evolution), Auditability (evidence contracts), and Human Agency (proactive/reactive steering).
- Proven Scientific & Coding Uplift: Improves paper-review scores by 7.0%, surpasses human SOTA and Codex on recommender design, and gains +25% reasoning accuracy on LLM post-training.
- 51.7% Faster Evidence Audits: Structured evidence contracts map every reported number to exact script hashes, logs, and prediction artifacts, cutting audit file reads by 51.7%.
- Budget-Aware Goal-Drift Recovery: Interactive Generative-UI reports surface hypotheses and compute budgets so researchers can intervene before experiments stagnate.
import { createAgent } from '@smoke-monkey/harness';// Auditable research worker enforcing evidence contracts between metrics, code, and outputsconst agent = createAgent({agentId: 'copanion-research-auditor',provider: 'anthropic',model: 'claude-sonnet-4-5',workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'allow',run_command: 'ask', // Gate GPU experiment launches and budget checkpoints},});async function main() {const result = await agent.run('Design ablation v3, run training script, bind loss/accuracy metrics to git commit SHA and predictions.jsonl in evidence-contract.json, and pause for human steering.');console.log('Auditable Experiment Result:', result.summary);}main().catch(console.error);
Watch: Related Video Guides
AUTOMATING Research with AI Agents in n8n! (PDF reports)
How Coding Agents Work: SWE-agent & Claude Code | Stanford CS329Z Lecture 15 with John Yang
What Is Copanion and How Do Evidence Contracts Eliminate Hallucinated Results?
Copanion (arXiv:2612.04936) addresses the core failure modes of unconstrained autonomous research agents: getting trapped in local exploration optima, fabricating or misreporting experimental numbers, and producing sprawling trajectories impossible for humans to audit. It enforces structured evidence contracts—machine-verifiable links binding every headline claim in a report directly to the exact training script, stdout log, and prediction file that generated it.
Across open-ended scientific discovery, ML recommender engineering (FLAME variants), and LLM post-training tasks, Copanion consistently outperformed baseline autonomous agents and Codex:
| Evaluation Dimension | Copanion Measured Gain | Mechanism Driving Performance |
|---|---|---|
| Paper-Review Score | +7.0% over strongest baseline | Experience-driven method evolution across runs |
| LLM Post-Training Reasoning | +25% accuracy over Codex | Budget-aware exploration + human steering |
| Recommender Engineering (FLAME) | Surpasses human SOTA & Codex | Iterative hypothesis refinement with metric checks |
| Evidence Audit Efficiency | 51.7% fewer file reads/claim | Direct claim-to-code/prediction contract pointers |
Implementing Verifiable Evidence Contracts in Autonomous Experiment Loops
Whether running hyperparameter sweeps or automated security audits, never let an agent report summary metrics from memory. Require every experiment iteration to emit an immutable JSON contract hashing the exact source commit, dataset slice, command invocation, and raw prediction artifact before rendering a summary report:
# Generate a deterministic evidence-contract manifest for any experiment run
python3 - <<'PY'
import hashlib, json, subprocess, time
def sha256(path):
return hashlib.sha256(open(path, "rb").read()).hexdigest()
commit = subprocess.check_output(["git", "rev-parse", "HEAD"], text=True).strip()
contract = {
"timestamp": time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime()),
"gitCommit": commit,
"scriptSha256": sha256("train_eval.py"),
"predictionsSha256": sha256("outputs/predictions.jsonl"),
"claims": [{"metric": "val_accuracy", "value": 0.842, "sourceLogLine": 148}]
}
open("outputs/evidence-contract.json", "w").write(json.dumps(contract, indent=2))
print("Saved verifiable evidence contract for commit", commit)
PYCombine Proactive & Reactive Human Steering
Copanion case studies show that intermittent human steering at budget checkpoints cures goal drift far faster than fully unattended 100-iteration runs.
Pairing Generative-UI Reports With Smoke Monkey Canvas Checkpoints
Copanion's interactive Generative-UI Reports solve the observability gap of raw terminal logs by surfacing side-by-side metric deltas, prediction diffs, and budget burn for quick human redirection. Inside Smoke Monkey Canvas, research subagents publish structured artifacts and pause at explicit human-in-the-loop nodes, letting engineers inspect the evidence contract and steer the next experimental branch in one click.
Frequently Asked Questions
Q:What are Copanion’s three core principles for trustworthy autonomous research?
Copanion is built on Self-Improvement (experience-driven method evolution), Auditability (structured evidence contracts), and Human Agency (proactive and reactive steering with budget-aware execution).
Q:How much faster are evidence audits with Copanion?
By linking every reported claim directly to its backing code and prediction files, Copanion requires 51.7% fewer file reads per verified claim than the best evaluated baseline.
Q:How does Copanion compare to Codex on LLM post-training and recommender tasks?
Copanion achieves 25% higher reasoning accuracy than Codex on LLM post-training tasks and develops FLAME recommender variants surpassing both Codex and human-designed SOTA baselines.
Q:Does Copanion remove humans from the research loop?
No. Copanion explicitly preserves human agency through interactive Generative-UI reports and steering checkpoints that correct goal drift and break local exploration plateaus.
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.