stock-bot/design/README.md
2026-11-27 00:12:48 -05:00

43 lines
3.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Stock Bot — Documentation Map
Start here. Every document below has a single responsibility; historical sprint logs and superseded design notes have been retired.
---
## 1. Platform Direction & Execution Plan
| Document | Owns | When to Read |
| --- | --- | --- |
| **[PLATFORM-PLAN.md](PLATFORM-PLAN.md)** | Target system architecture, settled decisions (`D1`–`D12`), layer boundaries, agent roles, and IB execution model | Before making architectural changes or starting a new milestone |
| **[MILESTONES.md](MILESTONES.md)** | Active checklist (`M0` → `M5`), task order, explicit scope cuts, target file paths, and falsifiable exit criteria | Day-to-day execution for you, Claude Code, and Studio agents |
| **[DATA-CONTRACTS.md](DATA-CONTRACTS.md)** | Raw MongoDB provider quirks, PostgreSQL security-master DDL, split/volume un-adjustment rules, `known_at` derivation, DuckDB/Parquet & QuestDB `10.2.0` schemas, and `MarketDataStore` API | Before touching `data-pipeline`, `data-ingestion`, SQL migrations, or `MarketDataStore` |
| **[VALIDATION-AND-RIGOR.md](VALIDATION-AND-RIGOR.md)** | Canonical metric definitions, `trial_ledger` schema, effective-trials DSR ($\hat{N}$), CSCV PBO, Purged CPCV/Walk-Forward, rolling 6-month Vault + Post-2023 Recency Gate, lifecycle gates, and Dual Live Drift + IB/TSX execution rules | Before touching `libs/calculations`, `libs/research`, validation workflows, or paper/live execution |
| **[servers.md](servers.md)** | Host roles (`quant` `12900K` research/data server, `9900K` isolated IB live/paper host, `TrueNAS` cold storage, dev workstation) and port/storage layout | Infrastructure, deployment, and worker sizing |
---
## 2. Current Connected Runtime & Code Tour
These documents describe **what is already implemented and running in code today**:
| Document | Owns |
| --- | --- |
| **[guide/README.md](guide/README.md)** | High-level tour of the current canonical single-asset research workbench |
| **[guide/system-map.md](guide/system-map.md)** | Applications, shared libraries, queues, and process boundaries |
| **[guide/backtest-walkthrough.md](guide/backtest-walkthrough.md)** | End-to-end trace of a canonical backtest from HTTP admission to Rust replay and result persistence |
| **[guide/strategy-development.md](guide/strategy-development.md)** | Current `StrategyProgram` callback contract and isolated candidate packaging |
| **[guide/code-reading.md](guide/code-reading.md)** | Function-level call paths across `web-api`, `orchestrator`, and `engine` |
| **[backtest-datasets.md](backtest-datasets.md)** | Current v2 retained dataset snapshot preparation, hashing, and local export |
| **[data-pipeline/phase1-investigation.md](data-pipeline/phase1-investigation.md)** | Measured 31-collection QA MongoDB inventory, identifier coverage, and cross-provider tricky cases |
---
## 3. Enduring Architecture Decisions & Gates
| Document | Owns |
| --- | --- |
| **[development/QUALITY-GATES.md](development/QUALITY-GATES.md)** | Build, typecheck, contract, lint, native Rust, disposable PostgreSQL/Redis, and E2E verification gates |
| **[development/architecture/overview.md](development/architecture/overview.md)** | Core invariants of the Rust financial kernel and durable worker supervision |
| **[development/architecture/research-product.md](development/architecture/research-product.md)** | Retained provenance, idempotency, agent grants (`A01`), candidate isolation (`A02`), and paper custody (`A04`) |
| **[development/architecture/benchmarks.md](development/architecture/benchmarks.md)** | Reproducible dataset and replay benchmark methodology |
| **[development/architecture/decisions/](development/architecture/decisions/)** | Approved ADRs `001`–`008` (ownership, 8-decimal postings, availability timing, NAPI pull boundary, durable cutover, AI boundary, performance) |