The interesting question is what happens after an agent writes the first version: how do you preserve intent, challenge changes and keep authority explicit?
Inside the architecture
INTERACTIVE OVERVIEWSpecify
I define the architecture, objective, acceptance criteria and decision boundaries. The contracts make those expectations available across autonomous iterations.
The software-development workflow separates implementation, review and milestone promotion.
Why use a trading research problem?
I wanted to explore whether autonomous agents could sustain a coherent engineering process across a complex codebase. A trading-research domain makes shortcuts difficult to ignore: time, causality, dataset revisions and experiment selection can all undermine apparently convincing results.
TradeLab is a personal research project, centred on deterministic systematic research for US markets with daily bars. IBKR is the target broker in the architecture; that does not mean a live broker is connected or that a profitable strategy has been established.
I own the objectives, architecture and engineering policy. AI agents carry out much of the implementation and test writing, with independent review used to challenge their output.
A workflow that can challenge its own output
The development flow uses feature branches, automated checks, pull requests, independent review and corrections. The builder responds to findings; the reviewer then evaluates the updated revision. A pass on an earlier version is not enough for a changed implementation.
The repository separates feature integration from operator-controlled milestone promotion. This keeps a distinction between an agent completing a change and a human deciding that the broader milestone is ready.
Architecture decisions, assumptions and open questions are recorded alongside the code. Those records help preserve the reason for a constraint when a later iteration is tempted to simplify it away.
A deterministic core with explicit edges
The architecture separates a deterministic core, a control plane and network adapters. The core owns calculations, types and rules. The control plane manages clocks and local I/O. Network-facing adapters provide a bounded route to external data and services.
Import contracts and architecture checks help enforce those boundaries. This makes the dependency structure part of the engineering process instead of relying only on a diagram that can drift from the implementation.
The planned decision path is shared across backtest, paper and live modes, with differences at the clock, data and broker boundaries. The application itself has no path from an LLM response to an order.
Knowing when a result is usable
A datum has an event time, but it also has a time at which a particular version became available. The architecture keeps those concepts separate. A strategy should only see information available at the decision time, and a result should disclose limitations in the historical data.
Research and evidence are separate lanes. Fast experiments help reject weak ideas; promotion-quality evidence needs stricter data provenance, a frozen specification and review. Repeated experiments also need trial accounting so selection does not disappear behind a favourable result.
The design records run provenance and evidence, while the dashboard reads a model of those records. It is a read-only view, keeping the display of a result separate from authority to approve it.
What this project is teaching me
Agent autonomy makes engineering interfaces more important. Acceptance criteria, dependency contracts, reproducible checks and review protocols all need to be precise enough to survive handoffs between autonomous iterations.
The project is ongoing research into software development and evidence discipline. It makes no claim of investment performance, a proven trading edge or an active live-trading operation.
Decision notes
Open a note for the reasoning and the trade-off.
Keep AI outside the execution decision path
Use agents to research, implement and review software while deterministic code owns calculations, risk rules and execution semantics.
The design makes the scope of agent autonomy explicit. Implementation autonomy does not imply operational authority.
Treat time and provenance as data
Track when information became available, retain version provenance and record the limits of the evidence supporting a backtest.
A historical dataset can contain later corrections. Reproducibility alone does not prove the data was knowable at the time.
Review the exact change
Require independent review and re-review after fixes, with human control of milestone promotion.
This creates additional process, but it gives each acceptance decision a concrete revision and an accountable owner.
Personal research project. Source remains private; this page presents the architecture and development approach.