Research
Project Darwin
A research instrument for observing cooperation and deception in multi-agent economies over long trajectories. Built around agent decision graphs, an inspectable execution loop, and a trace-based research workflow.
01 · Research problem
Study cooperation and deception across a sequence of decisions.
I built an environment for observing how AI agents cooperate, compete, and respond to changing incentives. My work covers the agent decision graph, simulation loop, and research setup. Behavior in this environment does not establish how a model behaves in deployment.
02 · Agent graph
Connect context, model decisions, and validated actions.
The custom Python harness builds an agent’s context, parses tool calls, validates arguments with Pydantic, and dispatches actions through the Oracle. Recorded outcomes become context for the next decision.
The graph connects a model decision to an applied action.
- Build contextWorld brief, visibility rules, and recent history.
- Model decisionSelect an action through a structured tool call.
- ValidateCheck arguments and available actions.
- Oracle executionApply the action and record the outcome.
- Updated state + historyFeed the result into the agent’s next decision.
03 · Event loop
Run agents on logical time.
The newer engine advances a fixed-point logical clock through scheduled wake events and interrupts. Simulation ticks and agent identity determine ordering, while the backend owns world state, constraints, and outcomes.
Scheduled events advance the world and produce the next observations.
- Event queueOrder wake events and interrupts in a deterministic heap.
- Agent eventRun the next scheduled agent decision.
- Apply outcomeUpdate the world and record the action.
- Schedule nextContinue on the logical clock.
Seeded world mechanics and recorded decisions support replay. Live model sampling remains stochastic. The video above renders an older partial-state release.
04 · Research evidence
Keep traces separate from interpretations.
The research workflow records decisions, self-reported rationale, public messages, and outcomes in JSONL. Structural analysis and model-assisted judging support inspection of the recorded traces. Model-generated labels are exploratory and are not human-validated findings.
Run conditions, preserve traces, and inspect the analysis.
- Configure conditionsRecord model rosters, prompts, seeds, and environment conditions.
- Run + recordPreserve actions, messages, rationale, and outcomes.
- AnalyzeCompare structural metrics and model-judge labels.
The research setup supports 200-turn survival runs and 20 actions. The video shows a distinct historical release.
Explore the implementation
Tools behind the work
Python · FastAPI · Postgres · Agent orchestration · Tool calling · Pydantic · Discrete-event simulation · LLM evaluation
Continue exploring
PaperDeck