Skip to content

[codex] Align IBKR strategy runtime contracts - #19

Merged
Pigbibi merged 2 commits into
mainfrom
codex/20260416-ibkr-runtime-cleanup
Apr 16, 2026
Merged

[codex] Align IBKR strategy runtime contracts#19
Pigbibi merged 2 commits into
mainfrom
codex/20260416-ibkr-runtime-cleanup

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Apr 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • wire IBKR feature-snapshot evaluation through the shared QuantPlatformKit runtime helper
  • make switch-plan and Cloud Run env sync consume artifact/config/reconciliation policies instead of profile-name branches
  • default bundled_or_env strategy configs to the packaged canonical config and remove stale IBKR_STRATEGY_CONFIG_PATH unless explicitly overriding
  • clean obsolete local research/backtest artifacts now that live strategies are migrated
  • remove obsolete research-era tests for retired TQQQ/SOXL strategy variants

Why

IBKR should stay a thin broker runtime: provide broker/account inputs, call the strategy contract, and map decisions to execution without owning strategy-private snapshot/config logic.

Validation

  • PYTHONPATH=. PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 .venv/bin/python -m pytest -q tests -> 110 passed
  • .venv/bin/python -m ruff check strategy_runtime.py runtime_config_support.py scripts/print_strategy_switch_env_plan.py tests -> passed
  • bash tests/test_sync_cloud_run_env_workflow.sh -> passed
  • Earlier focused check: .venv/bin/python -m pytest tests/test_strategy_runtime.py tests/test_snapshot_strategy_runtime.py tests/test_runtime_config_support.py tests/test_strategy_loader.py -> 57 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 edd9883 into main Apr 16, 2026
1 of 2 checks passed
@Pigbibi
Pigbibi deleted the codex/20260416-ibkr-runtime-cleanup 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