Skip to content

Fail closed on incomplete HK price sources - #66

Merged
Pigbibi merged 1 commit into
mainfrom
codex/qsl-g7-synthetic-fail-closed
Sep 1, 2026
Merged

Fail closed on incomplete HK price sources#66
Pigbibi merged 1 commit into
mainfrom
codex/qsl-g7-synthetic-fail-closed

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Make synthetic price data available only when price_source=synthetic and research_only=true are both explicit.
  • Mark every synthetic run promotion_eligible=false.
  • Park incomplete or failed provider downloads without passing partial data to the backtest or silently substituting synthetic data.
  • Preserve this as research-only behavior; no provider/live execution or promotion artifact was invoked.

Validation

  • PYTHONPATH=src python3 -m pytest -q — 236 passed.
  • python3 -m ruff check src/hk_equity_snapshot_pipelines/snapshot_proxy_backtest.py tests/test_snapshot_proxy_backtest.py — passed.
  • python3 -m compileall -q src — passed.
  • git diff --check — passed.
  • Sensitive-field diff scan — no matches.

Scope

Only the proxy backtest implementation and its tests are changed.

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit 046bc33 into main Sep 1, 2026
1 check passed
@Pigbibi
Pigbibi deleted the codex/qsl-g7-synthetic-fail-closed branch September 1, 2026 20:36
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