Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
e491b99
Add bot codebase with MM calibration and timing pattern learning
ijlu Apr 16, 2026
7174964
Fix weather below-market direction bug and add tests
ijlu Apr 16, 2026
0879bde
Block all weather MM, fix opportunity_log ensemble data, add comprehe…
ijlu Apr 16, 2026
04ca78f
Checkpoint: daemon architecture refactor + Phase 0 backtest infra
ijlu Apr 17, 2026
29c1341
Update CLAUDE.md to reflect daemon architecture and Phase 1 state
ijlu Apr 17, 2026
ae16425
Add alpha_backtest decision log with market-snapshot capture
ijlu Apr 17, 2026
7ac8d47
Cascade settled alpha_backtest rows into learning tables
ijlu Apr 17, 2026
2415390
Unify calibration as Platt scaling with per-family overrides
ijlu Apr 17, 2026
33a74f9
Wire METAR → WeatherQuoter shadow path via daemon handler
ijlu Apr 17, 2026
0303887
Gate directional candidates through shadow evaluator
ijlu Apr 17, 2026
d1b4760
Merge pull request #1 from ijlu/mm-calibration-timing
ijlu Apr 17, 2026
b6f4d59
Promote families through graduated shadow→canary→full gate
ijlu Apr 17, 2026
c505671
Add graduated MM promotion gate + shadow-vs-live P&L calibration
ijlu Apr 17, 2026
a0aa3a1
Back-fill position_health_log on settlement for bandit training
ijlu Apr 17, 2026
ff528f8
Add per-family exposure cap (25% of equity, env-tunable)
ijlu Apr 17, 2026
742a015
Audit CLAUDE.md for drift from current code
ijlu Apr 20, 2026
0962096
Add shadow data-integrity monitor + operator CLI dashboard
ijlu Apr 21, 2026
23af765
Remove dead code paths and superseded audit dumps
ijlu Apr 21, 2026
57c7325
T1.1: Canonicalize weather-station registry; NYC primary → KNYC
ijlu Apr 21, 2026
105f6ed
T1.2: Event-driven requote drivers + per-series async dispatcher
ijlu Apr 21, 2026
662fa28
T3.1: Canonical fills ledger with dual-run validator
ijlu Apr 21, 2026
a370f05
B+D MM promotion gate + T3.3 reader migration to fills_ledger
ijlu Apr 21, 2026
7b88dc0
Extract sizing + exit-model + per-expiry exposure into bot/core/
ijlu Apr 21, 2026
6238706
Phase 1 signal + learning infrastructure improvements
ijlu Apr 21, 2026
8b93061
Add bakeoff reporter for competing-strategy A/B evaluation
ijlu Apr 21, 2026
984ef84
Add discipline + regression tests (writer ownership, no-secrets, no-d…
ijlu Apr 21, 2026
e1880ae
Phase 1 reports + CLAUDE.md audit update
ijlu Apr 21, 2026
e59f2a2
Wire Phase 1 pieces into trade.py + daemon main + deploy
ijlu Apr 21, 2026
adf884d
Fix _compute_n_effective double-count + pin Known Bug Patterns with r…
ijlu Apr 25, 2026
1169542
A6: weather ensemble v2 + canonical source registry
ijlu Apr 25, 2026
a032606
MOS bias EWMA + materializer
ijlu Apr 25, 2026
095d33f
Settlement backfill + shadow→cal bridge + daemon wiring
ijlu Apr 25, 2026
e0142b6
Tighten MM canary gates + add cohort-staggering blocklist
ijlu Apr 25, 2026
1ec862a
Wire MOS bias fitter into daemon + fix blocked-series test regression
ijlu Apr 26, 2026
1d99b35
Switch market scan to per-series allowlist + add discovery sweep
ijlu Apr 26, 2026
7323174
Fix universal T-suffix direction-parsing bug across weather ensemble
ijlu Apr 26, 2026
fa09573
Sync .gitignore + sweep stale VPS files on redeploy
ijlu Apr 26, 2026
75bf1b5
Throttle IEM fetches in MOS materializer
ijlu Apr 26, 2026
79b2f44
Add long-form bot walkthrough + v2 calibration backtest tool
ijlu Apr 26, 2026
169136c
Weather ensemble v2 calibration overhaul
ijlu Apr 28, 2026
ee5b4cf
Add v2 calibration audit + backtest tooling
ijlu Apr 28, 2026
0172f3c
Test coverage for v2 calibration changes
ijlu Apr 28, 2026
8eac0cf
Weather pipeline: CF6 ground truth + H3 conditional truncation
ijlu Apr 28, 2026
d1f7fd1
Diagnostic tools used to localize the CF6 ground-truth bug
ijlu Apr 28, 2026
3b3d18f
Handoff doc for the next research session
ijlu Apr 28, 2026
692791f
Phase B.3 cross-bracket portfolio shadow + weather ensemble v2 hardening
ijlu Apr 29, 2026
f878d79
Cross-bracket historical backtest tool + 2026-04-30 findings
ijlu Apr 30, 2026
8d043a8
Weather ensemble postmortem: per-city architecture + station-mapping …
ijlu May 4, 2026
6a39dd7
fills_writer: parse Kalshi's dollar-string format alongside legacy ce…
ijlu May 4, 2026
a9bf840
Handoff doc: weather ensemble state 2026-05-04 + diagnostic tools
ijlu May 4, 2026
a279f31
Systemd unit hardening + Platt diagnostic showing fits are pathological
ijlu May 4, 2026
4afd7b5
Calibration investigation handoff for next session
ijlu May 4, 2026
5365321
Bounded-Newton Platt: clamp A,B inside loop + line search
ijlu May 4, 2026
a247e0e
Calibration bake-off + raw-prob logging + WEATHER_ONLY_MODE
ijlu May 4, 2026
003dea1
Auto-rearm cross-bracket per-family kv keys every 12h
ijlu May 4, 2026
cd54172
Cross-bracket performance scoreboard: CLI + daily daemon log
ijlu May 4, 2026
9597074
Cross-bracket shadow-vs-realized diagnostic
ijlu May 4, 2026
a2f6967
DST bug: cross_bracket settle was 1h late during summer months
ijlu May 4, 2026
b76ddc1
Cross-bracket exit logic: take profit at threshold, synthetic-sell
ijlu May 4, 2026
70dc4d2
Cross-bracket: stop over-posting + fix exit position identification
ijlu May 4, 2026
e561e9b
City expansion investigation TODO for 2026-05-05 session
ijlu May 4, 2026
d8cc3f8
Fix overnight cross-bracket losses: metar past-peak gate + σ floor
ijlu May 5, 2026
21ef414
Cross-bracket attribution: filter via alpha_backtest, not all fills_l…
ijlu May 5, 2026
154b89b
Cross-bracket fix: drop weather, METAR post-peak fast-path, per-city
ijlu May 5, 2026
bb0064e
Cross-bracket: wire METAR post-peak fast-path into _score_one_settlement
ijlu May 5, 2026
f2f230f
Cross-bracket: relax TTE to belt-and-suspenders, LST gate is primary
ijlu May 6, 2026
96b783d
Market snapshotter: persist Kalshi /markets per weather series
ijlu May 6, 2026
1bf5a91
Merge pull request #2 from ijlu/mm-calibration-timing
ijlu May 6, 2026
324a68d
Phase 1 ensemble eval spec — measurement framework for 40-series scor…
ijlu May 6, 2026
812988d
Merge missing tail of mm-calibration-timing (16 commits)
ijlu May 6, 2026
4be73a1
Phase 2 item 4: trading-time p_yes humility cap [0.01, 0.99]
ijlu May 8, 2026
2266804
Merge Phase 2 item 4 trading-time p_yes cap
ijlu May 9, 2026
5dc7ce4
Phase 2 item 3: daily |z| Telegram calibration alarm
ijlu May 11, 2026
89c6590
Merge Phase 2 item 3 calibration alarm
ijlu May 11, 2026
e502781
Phase 2 item 2: wire predict_v2 through apply_calibration in ensemble.py
ijlu May 11, 2026
d8fb9d2
Merge Phase 2 item 2 v2 Platt wiring
ijlu May 11, 2026
17402b8
test infra: exclude .claude only relative to REPO_ROOT
ijlu May 11, 2026
227031e
deploy: derive BOT_DIR from invocation cwd, not $HOME
ijlu May 11, 2026
58c13e1
bot/db: serialize kv_get under DB_WRITE_LOCK
ijlu May 11, 2026
3e13275
test_nws_5min: pin time in two LST-gated Miami tests
ijlu May 11, 2026
cae128a
Merge claude/jovial-lamport-bb0fae: Phase 2 items 2-4 + 4 follow-up f…
ijlu May 11, 2026
e09fa60
docs: mark Phase 1 items 8 and 9 complete in CLAUDE.md
ijlu May 11, 2026
2e55f41
Merge CLAUDE.md Phase 1 items 8-9 status update
ijlu May 11, 2026
433ceb7
fills_writer: recover client_order_id via posted_orders on Kalshi fie…
ijlu May 12, 2026
b4bf869
record_settlements: derive revenue locally; Kalshi /settlements retur…
ijlu May 12, 2026
17ce086
cross_bracket: hard-block KXHIGHDEN until σ inflation lands
ijlu May 12, 2026
27fe563
tools: one-time backfill scripts for hedge settlements + fills source
ijlu May 12, 2026
deb4d07
fills_writer: drift-alert when manual fill matches a recently-posted …
ijlu May 12, 2026
0985437
cross_bracket: per-family σ floor from empirical residuals (D.1)
ijlu May 12, 2026
07339bc
metar_observations: shadow-log running-high-only μ alternative (F.4)
ijlu May 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
53 changes: 51 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,71 @@
__pycache__/
*.py[oc]
*.egg-info
.coverage
.coverage.*
htmlcov/

# Virtual environments
.venv

# Secrets
# Secrets — NEVER commit
.env
.env.*
!.env.example
.credentials.json
*.pem
*.key

# OS / editor / tooling
.DS_Store
.claude/
.vscode/
.idea/

# Runtime artifacts
results.tsv
run.log
*.log
logs/
jobs/
tasks/
tasks-archived/
tasks-archived-sheets/
tasks-sheets-verified/
tasks-sheets/

dev/
# Databases (production + backtest + test)
*.db
*.db-journal
*.sqlite
*.sqlite3

# Backup / scratch files
*.bak
*.bak.*
*.backup
*.backup.*
trade_v*_backup.py
trade.py.bak*
trade.py.backup*

# Local analysis dumps (kept out of repo — one-off audit artifacts)
AUDIT_CONTEXT.md
AUDIT_EXPORT*.md
AUDIT_REPORT*.md
BACKTEST_RESULTS.md
BUG_AUDIT_REPORT.md
DIAGNOSTIC_REPORT.md
FILLS_LEDGER_SCOPE.md
HANDOFF.md
HEALTH_REPORT.md
PERFORMANCE_REPORT.md
REVIEW_DOCUMENT.md
REVIEW_V*.md
TRADING_BOT_CONTEXT.md
Kalshi_Bot_*.docx

# Backtest outputs
backtest_results.json

dev/.env.free-data
Loading