AGENTS.md
Role
TRADER-MCP is a strategy runtime.
It executes multiple independent trading strategies and converts their outputs into execution intents for exec-mcp.
Architecture
TRADER-MCP is structured in three layers:
Strategy Layer
- runs pluggable strategies (grid, mean reversion, etc.)
- produces trade intents
Runtime Layer
- manages lifecycle of strategies (start/stop/configure)
- isolates strategies from each other
Execution Layer
- translates intents into exec-mcp commands
- ensures format correctness
Control Authority
Core Invariants
- strategies are independent units
- no strategy may access others’ internal state
- trader-mcp does not define market stance
- execution is derived only from strategy outputs + Hermes constraints
Boundary Rules
- NO strategy selection logic (belongs to Hermes)
- NO direct exchange access
- NO market-data-driven decision making outside strategies
- NO cross-strategy coupling
Failure Model
- strategy failures must be isolated
- system must continue running unaffected strategies
- invalid outputs must be rejected, not corrected silently
Interface Stability
Changes affecting:
- Hermes control signals
- execution intent format
are breaking and must be coordinated across MCPs.