Public docs are functionally complete and canonical, but contain no source code, no private account details, and no reproducible tuning.

Documentation Target Structure

After cleanup and final validation, the following 8 core documents will be written from running, validated code. Each document describes the bot per layer/function, serving as a combination of technical explanation, usage guide, and troubleshooting guide.

Build history has no place unless it explains a current design choice.

Index (alle technische docs)

DocumentInhoud
00_MODULE_INVENTORY.mdVolledige src/** module-lijst: primair / secundair / runtime per bestand
01_ARCHITECTURE.mdSysteemoverzicht
02_DATA_INGEST.md08_OPERATIONS.mdLaaggidsen
FASE_0B_RUNTIME.mdVWAP, RouteStateStore, ranking TOD
DECIMAL_F64_POLICY_AND_INVENTORY.mdf64/Decimal policy
FORWARD_RETURNS_OBSERVABILITY.mdForward returns (RESEARCH)

Status (core doc set)

ItemStatus
Exhaustive per-module list (primary/secondary function, runtime gates)Done00_MODULE_INVENTORY.md
Doc 01 — system overviewDone01_ARCHITECTURE.md
Docs 02–08 — layer guidesDone — see table below (ingest → operations)
Fase 0B flags (VWAP, RouteStateStore, ranking TOD)DoneFASE_0B_RUNTIME.md

Target documents

#DocumentScopeKey topics
000_MODULE_INVENTORY.mdModule map (exhaustief)Alle Rust-modules onder src/: primaire/secundaire functie, runtime gates, CLI vs live
101_ARCHITECTURE.mdSystem overviewModule map → 00_MODULE_INVENTORY.md; data flow (ingest → pipeline → execution); DB topology (ingest/decision/research); WS connections; process model
202_DATA_INGEST.mdMarket data layerTicker/trade/L2/L3 WS feeds, trade_samples, l2_snap_metrics, l3_queue_metrics, run lifecycle, epoch generation, refresh
303_STRATEGY_PIPELINE.mdSignal generationRoute engine, move thesis dispatch, market features, strategy families, edge computation, route expectancy, confidence
404_EXECUTION_ORDERS.mdOrder lifecycleFlow poller, flow_execution, order placement (WS v2), amend/cancel, fill handling, dead-man's-switch, execution_orders table
505_PROTECTION_EXIT.mdPosition managementProtection placement (TSL/SL/TP), trailing stop logic, hard loss cap, stale exit, regime shift exit, orphan recovery, top-up recovery
606_RISK_SAFETY.mdGuards and limitsCapital allocator, exposure reconcile, symbol safety state, execution lock, circuit breakers, drawdown cap, consistency watchdog
707_OBSERVABILITY.mdMonitoring and diagnosticsLogging taxonomy, STANDARD_FUNNEL_COUNTERS, forward-return observability, edgeboard snapshots, resource telemetry, fill feedback
808_OPERATIONS.mdDeployment and opsSystemd services, deploy.sh, server validation scripts, .env configuration reference, restart doctrine, incident response

Existing documents (retained)

  • 01_ARCHITECTURE.md — system overview (dual-DB, WS, process modes); entry point for technical docs
  • 02_DATA_INGEST.md08_OPERATIONS.md — layer guides (this table)
  • 00_MODULE_INVENTORY.md — full src/** module list with primary/secondary function and runtime status
  • FASE_0B_RUNTIME.md — VWAP feed, RouteStateStore, ranking TOD: env flags, defaults, wiring
  • DECIMAL_F64_POLICY_AND_INVENTORY.md — financial numeric invariants (referenced from AGENTS.md, .cursor/rules)
  • FORWARD_RETURNS_OBSERVABILITY.md — directional forward-return observability (referenced from AGENTS.md)

Writing rules

  • Written from running code, not from build history
  • Technical explanation + usage guide + troubleshooting in each document
  • Mermaid diagrams where flow visualization helps
  • Concrete tables where configuration/thresholds need listing
  • Readable for non-technical consumers where useful
  • No changelog-style content
Spenden…