Skip to content

fix(torghut): materialize source lifecycle before import#10702

Merged
gregkonush merged 1 commit into
mainfrom
codex/torghut-runtime-import-proof-debt-20260606
Jun 6, 2026
Merged

fix(torghut): materialize source lifecycle before import#10702
gregkonush merged 1 commit into
mainfrom
codex/torghut-runtime-import-proof-debt-20260606

Conversation

@gregkonush

Copy link
Copy Markdown
Member

Summary

  • Bounds order-feed source-window, execution-link, execution-state, fill-delta, and execution-event backfill repairs to the target runtime import window.
  • Runs bounded full lifecycle/source materialization, including execution-event backfill, before importing source-collection runtime-window targets.
  • Keeps source-collection proof fail-closed: the importer still blocks unless real source lifecycle, TCA, and runtime-ledger evidence materialize.

Related Issues

None

Testing

  • uv sync --frozen --extra dev
  • uv run --frozen pytest tests/test_run_empirical_promotion_jobs.py -k 'source_window_repair or runtime_window_import_repairs_source_windows or audit_only_dry_runs_source_window_repair' -q
  • uv run --frozen pytest tests/test_repair_order_feed_source_windows_script.py -q
  • uv run --frozen pytest tests/test_order_feed.py -k 'repair_helpers_filter_to_runtime_window or backfill_order_feed_events_from_executions' -q
  • uv run --frozen pytest tests/test_order_feed.py -q
  • uv run --frozen pytest tests/test_repair_order_feed_source_windows_script.py tests/test_run_empirical_promotion_jobs.py -q
  • uv run --frozen ruff check app/trading/order_feed.py scripts/repair_order_feed_source_windows.py scripts/renew_latest_empirical_promotion_jobs.py tests/test_order_feed.py tests/test_repair_order_feed_source_windows_script.py tests/test_run_empirical_promotion_jobs.py
  • uv run --frozen ruff format --check app/trading/order_feed.py scripts/repair_order_feed_source_windows.py scripts/renew_latest_empirical_promotion_jobs.py tests/test_order_feed.py tests/test_repair_order_feed_source_windows_script.py tests/test_run_empirical_promotion_jobs.py
  • uv run --frozen python -m compileall app/trading/order_feed.py scripts/repair_order_feed_source_windows.py scripts/renew_latest_empirical_promotion_jobs.py tests/test_order_feed.py tests/test_repair_order_feed_source_windows_script.py tests/test_run_empirical_promotion_jobs.py
  • uv run --frozen pyright --project pyrightconfig.json
  • uv run --frozen pyright --project pyrightconfig.alpha.json
  • uv run --frozen pyright --project pyrightconfig.scripts.json
  • uv run --frozen pytest tests/test_order_feed.py tests/test_repair_order_feed_source_windows_script.py tests/test_run_empirical_promotion_jobs.py --cov --cov-branch --cov-report=xml --cov-fail-under=0 -q
  • uv run --frozen python scripts/check_diff_coverage.py --coverage-xml coverage.xml --threshold 90 --base-ref origin/main
  • git diff --check

Screenshots (if applicable)

N/A

Breaking Changes

None

Checklist

  • Testing section documents the exact validation performed (or N/A with justification).
  • Screenshots and Breaking Changes sections are handled appropriately (removed or filled in).
  • Documentation, release notes, and follow-ups are updated or tracked.

@gregkonush
gregkonush merged commit adc1dcf into main Jun 6, 2026
39 checks passed
@gregkonush
gregkonush deleted the codex/torghut-runtime-import-proof-debt-20260606 branch June 6, 2026 07:30
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