Skip to content

fix(risk): restore hard exposure and trailing-state gates - #115

Merged
Pigbibi merged 3 commits into
mainfrom
codex/qsl-p4-cryptostrategies-hard-exposure-trailing-stop-reslice-20260804
Aug 4, 2026
Merged

fix(risk): restore hard exposure and trailing-state gates#115
Pigbibi merged 3 commits into
mainfrom
codex/qsl-p4-cryptostrategies-hard-exposure-trailing-stop-reslice-20260804

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace closed-unmerged chore(deps): align QPK pin to b371322b948e #114 from the same exact base without dropping its QPK pin, member-risk evidence, stop-evidence, concentration, or hard max_positions=20 fixes
  • enforce strategy-local gross target exposure <= 1.0 independently of QPK MEMBER approval; invalid/non-finite weights fail closed
  • reject missing, non-finite, non-positive, or semantically invalid persisted held highest_price before trailing-stop evaluation can emit CLEAR

Safety boundary

Offline code/CI evidence only. This PR does not authorize merge, runtime/provider/credential/deploy/config-sync, broker/account/order/capital, paper/shadow/live, observer execution, or MATCHED.

Tests-first evidence

  • exact chore(deps): align QPK pin to b371322b948e #114 head RED: hard total exposure and invalid held highest_price regressions failed as expected
  • focused GREEN: 2 passed, 7 subtests passed
  • focused files: 16 passed, 11 subtests passed
  • full suite: 107 passed, 72 subtests passed
  • Ruff, compileall, pip check, package build, QPK pin/lock, diff/scope, and secret-like addition gates: pass

Co-Authored-By: Codex <noreply@openai.com>

@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: 8e25ae2065

ℹ️ 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/crypto_strategies/entrypoints/__init__.py
Comment thread src/crypto_strategies/entrypoints/__init__.py Outdated
Co-Authored-By: Codex <noreply@openai.com>

@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: 1fa75756d4

ℹ️ 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".

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit 5ef4d4a into main Aug 4, 2026
5 checks passed
@Pigbibi
Pigbibi deleted the codex/qsl-p4-cryptostrategies-hard-exposure-trailing-stop-reslice-20260804 branch August 4, 2026 10:44
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