Skip to content

feat(risk): add Global ETF research mandate contract - #303

Merged
Pigbibi merged 1 commit into
mainfrom
codex/qsl-p3-global-etf-static1-qpk-019fd89e
Aug 8, 2026
Merged

feat(risk): add Global ETF research mandate contract#303
Pigbibi merged 1 commit into
mainfrom
codex/qsl-p3-global-etf-static1-qpk-019fd89e

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add the exact global_etf_rotation_etf_only_research_v1 research-only mandate contract
  • enforce max two simulated positions, aggregate 1% completed-session loss-budget sizing, 5% gap-aware per-position stop binding, and strategy/account breakers
  • preserve exactly-once RiskEngine.assess() ownership and keep execution_authorized=false

Scope

  • src/quant_platform_kit/risk/gate.py
  • tests/test_risk_gate.py
  • no provider, data, backtest, runtime, config, platform, deploy, paper, shadow, live, order, or capital change

Evidence

  • freeze receipt SHA-256: 6c2e404588671fe2829c139bb690e16c061681cfa59b5fe91a5f3477d9068d67
  • RED: 41 failed / 4 passed before implementation
  • GREEN: targeted 6 passed / 45 subtests; full 938 passed, 1 skipped / 176 subtests
  • Ruff, compileall, lock, dependency compatibility, package/install/import, scope, secret, and diff gates passed

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit c96728d into main Aug 8, 2026
1 check passed
@Pigbibi
Pigbibi deleted the codex/qsl-p3-global-etf-static1-qpk-019fd89e branch August 8, 2026 18:36

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0402335900

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/quant_platform_kit/risk/gate.py
Comment thread src/quant_platform_kit/risk/gate.py
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