Skip to content

PR #124: Add continuous paper operation and Control Center - #124

Merged
Atlas2005 merged 1 commit into
mainfrom
pr124-continuous-paper-learning-control-center
Jul 12, 2026
Merged

PR #124: Add continuous paper operation and Control Center#124
Atlas2005 merged 1 commit into
mainfrom
pr124-continuous-paper-learning-control-center

Conversation

@Atlas2005

Copy link
Copy Markdown
Owner

Summary

  • adds a one-cycle continuous-paper application service that reuses the existing production candidate pipeline and daily paper loop
  • persists sessions, reports, Learning Desk outputs, AI shadow reports, orders, fills, positions, equity and reconciliation facts
  • adds atomic, conflict-safe in-memory and PostgreSQL reporting stores
  • advances AI Firm operation from shadow_bound to bounded active_shadow at the orchestration/reporting layer only
  • binds Investment Committee input to exact specialist-output digests
  • adds optional Prefect scheduling with serializable configuration and no import-time scheduling
  • provisions a PostgreSQL-backed Grafana Control Center with five dashboards
  • keeps deterministic non-LLM production execution isolated from all AI shadow output

Architecture boundaries

  • reuses run_real_candidate_daily_paper
  • no second strategy engine
  • no second optimizer, ledger, fill simulator, PnL engine or reconciliation engine
  • no automatic strategy promotion
  • no custom frontend
  • no broker integration
  • no simulated-broker or real-money orders
  • DeepSeek remains advisory-only and cannot alter production candidates, allocation, orders, fills, account state or reconciliation

Control Center

Provisioned dashboards:

  1. QuantPilot Overview
  2. Orders and Execution
  3. Portfolio and PnL
  4. AI Firm and Learning Desk
  5. Operations

Grafana uses PostgreSQL as its read-only datasource.

Active Shadow

  • disabled by default
  • live calls require explicit enablement
  • bounded by physical-call and estimated-cost limits
  • cache-first with validated cache payloads
  • provider and cache failures abstain without blocking production
  • physical calls, cache hits, token fields, estimated cost and abstentions are recorded
  • Investment Committee receives exact specialist evidence digests
  • AI shadow output remains outside production identity and execution artifacts

Validation

  • continuous-paper tests: 12 passed
  • focused suite: 237 passed
  • full suite: 1631 passed
  • five Grafana dashboards / 15 panels
  • Docker Compose YAML parsing: passed
  • CLI and Prefect serve help: passed
  • git diff --check: passed

@Atlas2005
Atlas2005 merged commit cecac5c into main Jul 12, 2026
1 check passed
@Atlas2005
Atlas2005 deleted the pr124-continuous-paper-learning-control-center branch July 12, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant