Skip to content

[codex] Add strategy plugin runtime contract#12

Merged
Pigbibi merged 1 commit intomainfrom
codex/strategy-plugin-runtime-contract
Apr 16, 2026
Merged

[codex] Add strategy plugin runtime contract#12
Pigbibi merged 1 commit intomainfrom
codex/strategy-plugin-runtime-contract

Conversation

@Pigbibi
Copy link
Copy Markdown
Contributor

@Pigbibi Pigbibi commented Apr 16, 2026

Summary

  • Add a shared quant_platform_kit.common.strategy_plugins loader for sidecar plugin signal artifacts.
  • Keep platform mount config limited to enabled artifact paths; reject platform-side mode so mode remains the artifact behavior contract.
  • Validate strategy/plugin identity, supported modes, optional expected_mode, duplicate mounts, and execution controls shape.
  • Add a runtime contract document with the recommended STRATEGY_PLUGIN_MOUNTS_JSON shape.

Validation

  • git diff --check
  • ruff check .
  • PYTHONPATH=src python3 -m unittest tests.test_strategy_plugins -v
  • Result: Ran 7 tests in 0.003s - OK
  • PYTHONPATH=src /home/ubuntu/Projects/UsEquitySnapshotPipelines/.venv/bin/python -m unittest discover -s tests
  • Result: Ran 122 tests in 3.053s - OK

Note: PYTHONPATH=src python3 -m unittest discover -s tests on the system Python failed before using the shared venv because the local VPS Python environment is missing existing optional test deps (pandas, numpy). CI installs those dependencies explicitly.

@Pigbibi Pigbibi force-pushed the codex/strategy-plugin-runtime-contract branch from 8280dc4 to 7a2112f Compare April 16, 2026 19:18
@Pigbibi Pigbibi merged commit 9be9f01 into main Apr 16, 2026
1 check passed
@Pigbibi Pigbibi deleted the codex/strategy-plugin-runtime-contract branch April 17, 2026 16:47
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