Skip to content

fix(risk): Policy A production-drift inject for NEW_RISK gate - #513

Merged
Pigbibi merged 1 commit into
mainfrom
fix/ibkr-policy-a-drift-live-inject
Sep 17, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
fix/ibkr-policy-a-drift-live-inject

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Wire account NEW_RISK gate to read-only PerformanceStore production-drift status (Policy A: review/critical bans new risk only).
  • Prefer explicit inject; store probe is fail-soft (errors → omit axis).
  • Derive drawdown_from_peak from equity/peak when not explicit so drawdown brake can trip without a separate DD field.

Test plan

  • python3 -m pytest tests/test_account_new_risk_gate.py -q
  • CI green on PR
  • No Kelly / RRL raise / resume_deferred in this change

Made with Cursor

Read PerformanceStore drift status when not explicit, derive drawdown from peak/equity, and ban new buys on review/critical without optimizing or granting live.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Pigbibi
Pigbibi merged commit 7de21b9 into main Sep 17, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/ibkr-policy-a-drift-live-inject branch September 17, 2026 19:46
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