Market Evidence
Provider adapters stage quotes, news, events, and historical context. Research and arena packets freeze the exact evidence set before any model sees it.
Architecture
MockStock separates evidence gathering, model output, agent policy, risk validation, sandbox execution, and accounting. The design is intentionally conservative because financial-looking systems need clear ownership, repeatable data, and audit trails.
Provider adapters stage quotes, news, events, and historical context. Research and arena packets freeze the exact evidence set before any model sees it.
LLMs produce structured signals or research reviews. They do not own cash, positions, orders, or portfolio state.
Application policy interprets the signal, applies mandate and constraints, and records the action separately from the raw model output.
Risk validation checks confidence, cash, position sizing, lifecycle state, and market-session rules before a sandbox order can proceed.
The broker adapter records simulated orders, fills, queues, expirations, and cancellations. MockStock never connects to a real brokerage.
Ledger rows, performance snapshots, reconciliation, cost events, queue metrics, and app alerts make results auditable.
The browser should not fan out model calls or broker workflows. User actions create stored intent, durable jobs claim that work, and read-only pages show status from database rows. This keeps retries, cancellation, cost tracking, and failure review explicit.
Reference portfolios, watchlists, thesis notes, committee reviews, and personal decisions stay authenticated and private.
Four agents receive equal inputs and compete in isolated sandbox accounts for model-behavior evaluation.
External pages use static architecture content and selected sanitized historical artifacts, not current private state.
UI actions enqueue expensive provider/model work. Workers claim jobs, heartbeat locks, retry safely, and record idempotent results.
Private portfolio and research records are excluded from public routes, public analytics payloads, and hosted summary sync.
Provider health, queue status, app alerts, accounting reconciliation, and smoke tests exist to keep the system honest before trusting results.
The broker is a sandbox adapter. There are no real orders, no account linking, no trade execution, and no investment advice.