Skip to content

openInvest Wiki ​

Complete documentation for the multi-asset AI investment committee system. Main repository longsizhuo/openInvest · GUI longsizhuo/invest-gui Homepage README.md · 30-minute fork QUICK_START.md


Choose Your Path by Reader Profile ​

🎯 I am a User, I want to use it ​

  1. README.md hero —— What this tool actually does
  2. QUICK_START.md —— 30 minutes from clone to your first AI memo
  3. 09-troubleshooting.md —— Where to look when it breaks

🛠 I am a Developer, I want to modify / extend ​

  1. 01-architecture.md —— Mental model required reading
  2. 05-data-model.md —— v2 schema + concurrent RMW
  3. 07-extending.md —— Cookbook: add assets / data sources / agent roles
  4. 06-api.md —— REST endpoints + frontend type synchronization
  5. 08-deployment.md —— Caddy + CF Access + systemd

🧠 I am a Researcher, I want to understand "why it's designed this way" ​

  1. 02-agents.md —— 4 LLM roles + cross-challenge + REGIME neutral probability framework
  2. 03-dreaming.md —— OpenClaw-style three-phase memory consolidation
  3. 04-execution-paths.md —— Skill vs Web/Cron dual paths
  4. 11-rl-training.md —— Optuna + paper trade + training pipeline (Clarification: not GPU training)
  5. 12-verification.md —— Empirical data / "scientific evidence" / negative results
  6. 13-param-tuning-feasibility.md —— Parameter tuning feasibility diagnosis + supplementary document
  7. 15-path-probability.md —— Path-based probability tables: multi-window distributions + four path shapes (core reading for sell timing)
  8. 16-ta-analysts-experiment.md —— TradingAgents-style analyst experiment: pre-registered Gate 0/3 pass
  9. 17-asset-feature-sets.md —— Explicit contract for asset class feature sets (gold ≠ stock semantics)
  10. 18-governance-conventions.md —— Governance charter: framework/criteria/dirty data red lines/veto power (user sign-off)
  11. 19-telemetry-and-analytics.md —— Telemetry and data collection: anonymous installation statistics / Opt-out / Privacy commitment
  12. adr/ —— Architecture Decision Records (why not Claude Agent SDK, etc.)

🎨 I am a Designer / Frontend Developer, I want to modify the GUI ​

  1. 10-design-system.md —— Three token layers + typography + IA
  2. invest-gui/README.md —— Frontend repository structure

All Chapters ​

#ChapterOne-liner
01Architecture Overview4 layers (Connectors / Agents / Core / Memory) + data flow + concurrency model
024-Role CommitteeMacro / Quant / Risk / CIO + cross-challenge + REGIME
03Dreaming Memory ConsolidationLight / REM / Deep Sleep three phases, cross-session long-term memory
04Dual Execution PathsSkill (Claude true subagent) vs Web/Cron (DeepSeek multi-threaded)
05Data Modelv2 schema (cash dict + holdings list) + migration + concurrency safety
06Web APIFastAPI 40+ endpoints + Pydantic + same-origin deployment
07Extension GuideAdding new assets / new data sources / new agent roles
08Production DeploymentCaddy + Cloudflare Access + systemd + sync_gui_dist
09TroubleshootingWhere to check journal when it breaks online / SSE disconnects / sync failures
10Design SystemGUI tokens + three typography layers + IA decisions
11RL Training / BacktestOptuna parameter tuning + paper trade simulation + DSPy (not real ML training)
12Verification Empirical ValidationEmpirical data for 7 core claims + negative results + reproduction commands
13Parameter Tuning Feasibility Diagnosis50+ hardcoded constant inventory + coupling analysis + Optuna review + sweep strategy
14Sweep RunnerParameter sweep toolchain
15Path-Based Probability30/60/90 multi-window distributions + four path shapes + regime persistence labeling
16TA Analyst ExperimentTwo-phase signal existence experiment, 3 analysts 0/3 pass pre-registered Gate
17Asset Feature Set ContractFeature × asset class matrix; gold VIX semantic review; counterfactual bookkeeping
18Governance CharterThree principles (freeze snapshot/veto power/criteria adjudication) + single source of truth for framework + pre-merge requirement + audit log
19Telemetry and Data CollectionOne-time anonymous installation statistics + three opt-out environment variables + privacy commitment

Architecture Decision Records (ADR) ​

Records of "why it was done this way," providing evidence for anyone who wants to overturn a design in the future.

IDDecisionStatus
001Committee retains Skill + Web/Cron dual paths✅ Adopted
002Defer upgrade to Claude Agent SDK✅ Adopted
003portfolio.md upgrade to v2 universal schema✅ Adopted
004v1 fallback officially retired✅ Adopted
005daily_report split into builder/notifier✅ Adopted
006Event awareness layer + lightweight news RAG🚧 In progress (feature flag default off)
007few-shot (v1-v4) retired, CIO remains zero-shot, anti-conservatism via Dreaming✅ Adopted
008caution changed to lift-based scoring (touchstone validation, not reward hacking); dormant under current data; "excessive conservatism" hypothesis lacks evidence✅ Adopted
009Reject TradingAgents-style analyst subagents (test_ta experiment, pre-registered Gate 0/3)✅ Adopted
025Price anomaly sentinel: 10min vs daily ATR% vertical line detection, alert email first then trigger committee✅ Adopted

Maintenance Rules ​

  • This wiki is the source of "why" — specific implementation details go in code + subdirectory READMEs; this wiki only explains design intent
  • Adding a major feature: must update a page (or create a new one) synchronously
  • Adding a new architecture decision: must create an ADR
  • Subdirectory README renamed / reorganized: wiki links must be updated accordingly
  • Once an ADR is "Adopted," do not modify it; to overturn it, create a new one that supersedes it

As always: CONTRIBUTING vs Wiki division of labor — CONTRIBUTING describes "how to participate" (steady state), Wiki describes "what the system is" (living document).