Skip to content

fix: enforce value targets in static risk gate - #394

Merged
Pigbibi merged 1 commit into
mainfrom
fix/value-target-risk-gate
Aug 26, 2026
Merged

fix: enforce value targets in static risk gate#394
Pigbibi merged 1 commit into
mainfrom
fix/value-target-risk-gate

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Normalize target_value positions by the provided account equity before evaluating static concentration and leverage checks.
  • Fail closed when a value target has no finite positive account equity.
  • Add regression coverage for approved, rejected, and malformed value-target cases.

Safety impact

This closes the path where a high-value target could be treated as zero exposure by the common runtime risk gate.

Validation

  • rtk pytest tests/test_risk_gate.py

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit dd7d82b into main Aug 26, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/value-target-risk-gate branch August 26, 2026 14:29
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