This document describes how platform runtimes consume sidecar strategy plugin
artifacts, such as the Crisis Response plugin produced by
UsEquitySnapshotPipelines.
- Strategy plugin artifacts are produced upstream by snapshot / research pipelines.
- Platform runtimes consume the latest plugin artifact and attach it to logs, runtime reports, and notifications.
- Broker order placement remains in platform repositories.
- Strategy formulas remain in strategy repositories.
Platform config should only decide which plugin artifacts are mounted for a
strategy. It must not select the plugin mode. The mode lives inside the plugin
artifact and is fixed to notification-only shadow.
Suggested environment variable name: STRATEGY_PLUGIN_MOUNTS_JSON.
Recommended value:
{
"strategy_plugins": [
{
"strategy": "tqqq_growth_income",
"plugin": "crisis_response_shadow",
"signal_path": "gs://qsl-runtime-logs-interactivebrokersquant/strategy-artifacts/us_equity/tqqq_growth_income/plugins/crisis_response_shadow/latest_signal.json",
"enabled": true
}
]
}Use expected_mode only as a fail-closed deployment guard. It does not select
or reinterpret the mode:
{
"strategy_plugins": [
{
"strategy": "tqqq_growth_income",
"plugin": "crisis_response_shadow",
"signal_path": "/var/strategy-artifacts/tqqq_growth_income/plugins/crisis_response_shadow/latest_signal.json",
"enabled": true,
"expected_mode": "shadow"
}
]
}Do not put mode in the platform mount config. expected_mode may be used only
as a fail-closed guard and should be shadow when present. Artifacts declaring
paper, advisory, or live are rejected.
Use quant_platform_kit.common.strategy_plugins:
from quant_platform_kit.common.strategy_plugins import (
build_strategy_plugin_report_payload,
load_configured_strategy_plugin_signals,
parse_strategy_plugin_mounts,
)
mounts = parse_strategy_plugin_mounts(raw_json_config)
signals = load_configured_strategy_plugin_signals(
mounts,
strategy_profile=current_strategy_profile,
)
report_section = build_strategy_plugin_report_payload(signals)The loader validates:
- the artifact is a JSON object
strategyandpluginmatch the configured mountmode,configured_mode, andeffective_modeareshadow- optional
expected_modematcheseffective_mode - duplicate platform mounts are rejected
- platform mount config does not set
mode
For shadow, platform runtimes should only add logs, runtime report fields, and
notification context.
paper, advisory, and live plugin modes are not supported by the shared
contract. Platforms should not maintain plugin ledgers or execute plugin-driven
allocation changes from this sidecar path.