Architecture
~8 min readUpdated: December 2026

Copanion: Auditable Autonomous Research Agents With Evidence Contracts

Copanion Auditable Autonomous Research Agent With Evidence Contracts and Generative UI

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%.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

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.

Key Architectural Takeaways
Quick Implementation Examplecopanion-evidence-contract-agent.ts
copanion-evidence-contract-agent.tstypescript
import { createAgent } from '@smoke-monkey/harness';
// Auditable research worker enforcing evidence contracts between metrics, code, and outputs
const 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);
Video Guides

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 DimensionCopanion Measured GainMechanism Driving Performance
Paper-Review Score+7.0% over strongest baselineExperience-driven method evolution across runs
LLM Post-Training Reasoning+25% accuracy over CodexBudget-aware exploration + human steering
Recommender Engineering (FLAME)Surpasses human SOTA & CodexIterative hypothesis refinement with metric checks
Evidence Audit Efficiency51.7% fewer file reads/claimDirect 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:

bash
# 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)
PY

Combine 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.

Google Search Questions & Answers

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 guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness