Skip to content

[codex] refactor shared strategy catalog contract#3

Merged
Pigbibi merged 1 commit intomainfrom
codex/qpk-shared-strategy-contract
Apr 5, 2026
Merged

[codex] refactor shared strategy catalog contract#3
Pigbibi merged 1 commit intomainfrom
codex/qpk-shared-strategy-contract

Conversation

@Pigbibi
Copy link
Copy Markdown
Contributor

@Pigbibi Pigbibi commented Apr 5, 2026

What changed

  • add a shared strategy catalog contract in QuantPlatformKit
  • add shared platform policy helpers for enabled/default/rollback strategy resolution
  • keep the old resolver APIs in place for compatibility

Why

  • strategy metadata and platform policy should live behind a neutral shared contract
  • downstream repos can then stop re-implementing registry glue and stop depending on US equity helpers for generic behavior

Impact

  • no runtime behavior change intended
  • this is the shared base for the follow-up UES/Crypto/platform PRs

Validation

  • python3 -m py_compile src/quant_platform_kit/common/strategies.py src/quant_platform_kit/__init__.py tests/test_strategies.py
  • python3 -m ruff check src/quant_platform_kit/common/strategies.py src/quant_platform_kit/__init__.py tests/test_strategies.py
  • PYTHONPATH=src ... pytest tests/test_strategies.py

@Pigbibi Pigbibi marked this pull request as ready for review April 5, 2026 20:23
@Pigbibi Pigbibi merged commit 1b6a371 into main Apr 5, 2026
1 check passed
@Pigbibi Pigbibi deleted the codex/qpk-shared-strategy-contract branch April 5, 2026 20:23
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