---
title: Architecture · CopperTide
description: How the CopperTide engine records, saves, restores and scores AI agent runs against stateful worlds.
url: https://coppertide.ai/how-it-works
---

[CopperTide](https://coppertide.ai/) / Architecture

# How the engine works

The engine records each step of each run, saves the parts of the world a step changed, and restores any step on demand. Connectors run the systems. Checks decide the verdict.

[See Shakedown →](https://coppertide.ai/shakedown) [Connectors](https://coppertide.ai/environments#connectors)

Components

## Five parts

01

### Connectors

Each kind of system plugs in through its own connector. A connector starts a fresh copy of the system, carries out the agent’s actions, saves and restores its state, and compares two saved states. The engine holds no system-specific code.

02

### World clock

Each world keeps simulated time. Scenario events fire on the clock, and agents receive the world’s date and time.

03

### Saves and restores

After each step with a state change, the engine saves the parts the step touched. Each connector declares a restore mode: exact save, seeded replay, approximate or none.

04

### Agents and runtimes

CLI mode runs Claude Code or Codex headless with only the world’s tools over MCP. API mode runs the built-in loop and records each model call. HTTP agents receive the task, an MCP endpoint and a token.

05

### Checks

Goal checks and safety checks run as code against the end state. An optional AI review summarizes a run and never scores one.

Experiments

## Experiments, not anecdotes

An experiment compares any number of agent setups on one world and scenario, with as many runs each as you need, interleaved. Every setup faces the same starting state and the same events, so differences in results come from the agents. Each setup reports pass rate with a 95% Wilson interval, checks passed, safety violations, denied actions, flags for a human, cost and time.

Nine passes in ten gives an interval from 60 to 98 percent. Thirty runs narrow the interval.

**Any** number of setups to compare

**95%** Wilson interval on each pass rate

**2.8 min** per run on our pharma example

**$0.63** model spend for the same run

Events and time travel

## Every event recorded. Rewind to any moment.

A run is a stream of events: each model call and tool call your agents make, and each change in each system. The engine records every event, in order, on one timeline.

Pick any event and the whole world rewinds to the moment, the agents included: their conversation so far and the state of every system. Change the model, the prompt or the team, and run forward from there.

A Shakedown run on our pharma example. Synthetic company and data.

State, traced

## One bad write, followed downstream

The check flags the failure. The trace shows the state change in each system.

01

Agent · setup A, run 4 09:12

Starts the rush order early, using castings from batch L-2209.

02

ERP 09:12

140 castings from L-2209 move into production.

03

Plant 10:05

Press 2 turns the castings into 140 finished parts. Quality had flagged those castings as suspect.

04

Quality 14:40

The batch fails inspection. All 140 parts go to quarantine.

05

CRM 15:10

The ship date moves six days. The customer expected Friday.

✕

Check result

Failed: the agent used flagged material. Setup B never did this in ten runs.

Each figure in a report carries a source label: observed in a system at the end of the run, or derived from observed values. Simulated systems carry their own label.

Sample The steps and numbers here form an illustration.

Next

## Shakedown

→

More: https://coppertide.ai/shakedown
