Titan Pilot logoTitan Pilot

Architecture

Built Like Infrastructure, Not a Trading Bot.

Architecture is a credibility signal here, not decoration. Every claim on this page traces to a mechanism you could go verify — not a diagram someone drew to look serious.

01

AI cannot bypass execution.

Three independent mechanisms enforce this, any one of which would be sufficient on its own. The AI code has no import path to execution code — a CI check fails the build if it ever does. The AI layer's only output is a recorded event; in shadow mode, nothing consumes it. And the deterministic no-trade rules the system checks against can only be tightened by AI output, never loosened.

02

One database, three data classes.

Decisions are event-sourced: an append-only log is the system of record, because the history is the product — audits, disputes, and forensics all require knowing exactly what the system believed and did, in order, forever. Market data (candles, calendar rows) is not event-sourced — it's high-volume and re-fetchable, with no accountability requirement of its own. What is recorded is every use of that data: each decision pins the exact input data it was built from, by hash.

03

Replay is a proof, not a re-implementation.

Replay doesn't re-implement the system's logic to check its own answer — it pushes the same events through the exact same production code into a scratch copy of the database, then compares every row. Rebuilding twice and hashing both results must match, or the run fails. This check runs daily, on every code change, and against every restored backup.

04

Dependencies point one way.

The AI and market-data code can never import execution code — mechanically enforced, not just a convention. Only one code path is allowed to write the system's official state, and the database itself backs this up: the application's role cannot delete a recorded event or bypass that single writer.

Built With

The Stack Underneath.

Next.jsPythonPostgreSQLTimescaleDBMetaTrader 5DockerVercelAnthropicOpenAITelegram AlertsGitHub Actions