Skip to content

[codex] Align LongBridge strategy runtime contracts#21

Merged
Pigbibi merged 1 commit intomainfrom
codex/20260416-longbridge-runtime-contracts
Apr 16, 2026
Merged

[codex] Align LongBridge strategy runtime contracts#21
Pigbibi merged 1 commit intomainfrom
codex/20260416-longbridge-runtime-contracts

Conversation

@Pigbibi
Copy link
Copy Markdown
Collaborator

@Pigbibi Pigbibi commented Apr 16, 2026

Summary

  • use shared QuantPlatformKit runtime config and feature-snapshot evaluation helpers
  • move the tech strategy single-day execution window into the strategy runtime policy
  • make switch-plan and Cloud Run env sync consume config_source_policy and manifest requirements
  • default bundled_or_env profiles to packaged canonical config unless an env override is explicitly set

Why

LongBridge should keep broker/session/execution concerns local while strategy artifact, config, and runtime policy requirements come from the shared strategy contract.

Validation

  • .venv/bin/python -m pytest tests/test_strategy_runtime.py tests/test_runtime_config_support.py tests/test_strategy_loader.py -> 43 passed
  • .venv/bin/python -m ruff check strategy_runtime.py runtime_config_support.py scripts/print_strategy_switch_env_plan.py tests/test_strategy_runtime.py tests/test_runtime_config_support.py -> passed
  • bash tests/test_sync_cloud_run_env_workflow.sh -> passed

CI Status

GitHub Actions currently fails because this branch imports new QuantPlatformKit helpers from quant_platform_kit.common.runtime_config and quant_platform_kit.common.feature_snapshot_runtime, while CI still installs QuantPlatformKit main. This should be rerun after QuantPlatformKit PR #10 is merged.

Merge Order

Depends on QuantPlatformKit PR #10 and UsEquityStrategies PR #17.

@Pigbibi Pigbibi marked this pull request as ready for review April 16, 2026 12:15
@Pigbibi Pigbibi merged commit a974b80 into main Apr 16, 2026
1 of 2 checks passed
@Pigbibi Pigbibi deleted the codex/20260416-longbridge-runtime-contracts branch April 16, 2026 12:15
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