Repository navigation
Add the real promotion-gate snapshot ingest and a bounded scheduled paper trial - #84
Merged
seathatflowsinourveins merged 7 commits intoSep 23, 2026
Merged
Conversation
…aper trial ingest_snapshot.py writes the CSV promotion_gate.py validates from Alpaca SIP raw daily bars (credentials via runner.credentials, counts and hashes only in its receipt). scheduled_trial.sh runs ingest, gate and one runner.py paper trial with no retries. First real run 2026-09-22: 480 rows, gate pass 12/12; an after-hours paper call passed the gate and stopped at regular_session_window_unavailable with 0 orders. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Review of 689d967: ingest now fails (exit 2) unless every symbol's completed bars end at the expected latest XNYS session and hold the requested session count; the feed defaults to the config's feed; --sessions must be positive; the completed-session rule, calendar and coverage logic are testable functions with tests. scheduled_trial.sh refuses a second run in the same OUT_DIR and documents running from a frozen copy of a published commit. Live check 2026-09-22: 480 rows, no coverage problems. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
seathatflowsinourveins
deleted the
claude/paper-trial-readiness-20260922
branch
September 25, 2026 18:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
blueprints/us-equities/data/ingest_snapshot.pyis the first real promotion-gate snapshot ingest. It writes the CSV thatpromotion_gate.pyvalidates from Alpaca daily bars (feed taken from the config, raw adjustment).runner.credentials; the receipt holds counts and hashes only.blueprints/us-equities/adaptive-paper/scheduled_trial.shruns ingest, then the gate, then onerunner.py papertrial.OUT_DIRis refused by a one-run lock.tests/test_ingest_snapshot.pycovers rows, CSV/header, the 17:00 ET completed-session rule, the expected-latest-session calendar, stale/truncated/empty coverage, and rejection of non-positive--sessions.Evidence
promotion_gate.pyin its pinned venv passed 12/12.runner.py paperpassed the gate and stopped atregular_session_window_unavailablewith 0 orders.python3 -m unittest: 2130 OK (318 skipped). Allvalidate.ymlsteps andtrading_gates.py --checkrc=0. Guarded gitleaks ran before each commit: no leaks.git archiveof the merge commit of this PR, not from any worktree.🤖 Generated with Claude Code