Skip to content

Attach strategy plugin metadata#100

Merged
Pigbibi merged 3 commits into
mainfrom
codex/strategy-plugin-ai-runtime-20260528
May 28, 2026
Merged

Attach strategy plugin metadata#100
Pigbibi merged 3 commits into
mainfrom
codex/strategy-plugin-ai-runtime-20260528

Conversation

@Pigbibi

@Pigbibi Pigbibi commented May 28, 2026

Copy link
Copy Markdown
Collaborator

Summary:\n- Carry strategy plugin signals through LongBridge runtime config\n- Attach allowed plugin metadata to portfolio snapshots before strategy evaluation\n\nValidation:\n- ./.venv/bin/python -m pytest tests/test_runtime_strategy_adapters.py tests/test_request_handling.py -q\n- ./.venv/bin/python -m ruff check changed files\n- git diff --check HEAD~1..HEAD

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0d297b6502

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

localize_notification_text as _base_localize_notification_text,
translator_uses_zh as _base_translator_uses_zh,
)
from quant_platform_kit.common.strategy_plugins import attach_strategy_plugin_metadata

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update the pinned kit before importing this helper

In the production/Docker path, Dockerfile installs only requirements.txt, which still pins QuantPlatformKit to ceb84a366ed1bf9a53292ff2c73e06b4baac05e2; that pinned quant_platform_kit.common.strategy_plugins does not export attach_strategy_plugin_metadata. Because this import runs while importing application.rebalance_service (and therefore main), the deployed service will fail to start with ImportError before handling any requests unless the QuantPlatformKit pin is bumped to the commit that adds the helper or a compatible fallback is provided.

Useful? React with 👍 / 👎.

@Pigbibi Pigbibi merged commit 9e17944 into main May 28, 2026
1 check passed
@Pigbibi Pigbibi deleted the codex/strategy-plugin-ai-runtime-20260528 branch May 28, 2026 06:46
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