Skip to content

fix(risk): Schwab daily_loss NEW_RISK inject seam - #413

Merged
Pigbibi merged 1 commit into
mainfrom
fix/schwab-daily-loss-inject-20260918
Sep 17, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
fix/schwab-daily-loss-inject-20260918

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Pin QPK to 1826204 (daily-loss NEW_RISK contract).
  • Pass explicit daily_loss_usd into the injected snapshot; never invent session baselines.
  • Apply max_daily_loss_usd only when configured (portfolio / env / runtime policy); omit otherwise; configured+missing fact → fail-closed.
  • Allow optional max_daily_loss_usd on verified RuntimeRiskLimits policy binding.

Test plan

  • uv run python -m pytest tests/test_account_new_risk_gate.py -q (29 passed)
  • CI green

Made with Cursor

Pin QPK for the daily-loss axis, pass through explicit loss facts, and honor configured max_daily_loss_usd without inventing a production default.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Pigbibi
Pigbibi merged commit 3e73b45 into main Sep 17, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/schwab-daily-loss-inject-20260918 branch September 17, 2026 20:26
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