Skip to content

fix: fail closed benchmark guard consumption - #61

Merged
Pigbibi merged 1 commit into
mainfrom
codex/benchmark-guard-fail-closed
Aug 26, 2026
Merged

fix: fail closed benchmark guard consumption#61
Pigbibi merged 1 commit into
mainfrom
codex/benchmark-guard-fail-closed

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • preserve zero risk, leverage, and risk-asset scalars when the mounted benchmark guard is blocked
  • mark defense required so a separately approved strategy consumer can move to its defensive sleeve instead of retaining risk on unavailable/stale benchmark data
  • retain the plugin's shadow-only/no-order execution controls

Validation

  • uvx ruff check src/quant_strategy_plugins/market_regime_control_plugin.py tests/test_benchmark_drawdown_guard.py
  • uv run --extra test pytest -q tests/test_benchmark_drawdown_guard.py tests/test_market_regime_control_plugin.py tests/test_strategy_plugin_runner.py tests/test_plugin_policies.py tests/test_plugin_catalog.py

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit af1963e into main Aug 26, 2026
2 checks passed
@Pigbibi
Pigbibi deleted the codex/benchmark-guard-fail-closed branch August 26, 2026 07:09
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