Lesson Learned #125: Stale Position Data Inconsistency (Jan 9, 2026)
Date: January 9, 2026
Severity: HIGH
Category: Data Integrity
Status: FIXED
Summary
CEO caught inconsistency: system_state.json showed 5 open positions in performance.open_positions but paper_account.positions_count: 0. This was stale data from BEFORE the Jan 7 reset.
The Problem
// Paper account (correct):
"positions_count": 0,
"win_rate_warning": "FRESH START - No trades yet after reset"
// Performance section (STALE):
"open_positions": [
{"symbol": "SPY", ...}, // STALE - from before reset
{"symbol": "INTC260109P00035000", ...},
...
]
Root Cause
When CEO reset the paper account on Jan 7, 2026:
-
paper_accountsection was updated correctly to show $5K fresh start -
performance.open_positionswas NOT cleared - This created misleading data about "unrealized gains at risk"
Fix Applied
Cleared performance.open_positions array with note explaining the fix.
Prevention
When resetting any account:
- Update account balance section
- Clear performance.open_positions
- Clear related trade metrics
- Add audit note with timestamp
CEO Lesson
The CEO asked: "Are you sure you are talking about $5K paper trading account?"
This question caught the inconsistency. Always verify data across ALL sections of system_state.json, not just one.
Tags
data-integrity, stale-data, paper-trading, system-state
This lesson was auto-published from our AI Trading repository.
More lessons: rag_knowledge/lessons_learned
Top comments (0)