Skip to content

feat(risk): wire QPK stop-loss diagnostics (task 8) - #77

Merged
Pigbibi merged 1 commit into
mainfrom
feat/task8-stop-loss-diagnostics
Jul 8, 2026
Merged

feat(risk): wire QPK stop-loss diagnostics (task 8)#77
Pigbibi merged 1 commit into
mainfrom
feat/task8-stop-loss-diagnostics

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Delegate apply_risk_gate to QPK unified gate (stop-loss -20%, consecutive-loss circuit breaker)
  • Enrich decisions from ctx.portfolio via extract_portfolio_risk_diagnostics before gating
  • Pass ctx=ctx from all entrypoints; add regression tests

Test plan

  • CI test job passes
  • tests/test_entrypoint_risk_gate.py covers stop-loss reject path

Made with Cursor

Delegate apply_risk_gate to QuantPlatformKit and enrich decisions from
ctx.portfolio unrealized_pnl_pct / consecutive_losses before gating.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@chatgpt-codex-connector

This comment has been minimized.

@cursor

cursor Bot commented Jul 8, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@Pigbibi
Pigbibi merged commit 0334876 into main Jul 8, 2026
2 checks passed
@Pigbibi
Pigbibi deleted the feat/task8-stop-loss-diagnostics branch July 8, 2026 23:36
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