Repository navigation
test(trading): qualify lane A OVERNIGHT stage admission - #1095
Draft
seathatflowsinourveins wants to merge 6 commits into
Draft
seathatflowsinourveins wants to merge 6 commits into
seathatflowsinourveins wants to merge 6 commits into
Conversation
Use the supported BOATS REST path with fresh carrier, quote and lifecycle guards. Transient entry dispatch denials leave the node and other held positions alive; exit-residual refusal retains the node-stop handoff. Under the CC's 06:11Z P1-B ruling, held positions retain reduce-only PRE/RTH/POST exits after the 04:00 ET overnight boundary. PRE/POST use extended-hours LIMIT DAY; RTH uses LIMIT DAY without extended hours. Existing held-quantity guards also permit bounded explicit recovery. New entries remain refused outside OVERNIGHT. The opted-in REST quote path selects SIP for these residual exits. Keep the strict carrier freshness bound, refuse final transport readiness before journaling wire submission, and retain synthetic evidence separately from broker acceptance. Paper acceptance remains NOT_RUN.
…entory Derive the one missing exact repository grant through scripts/local_pages_policy_grants.py at f8d11a6. Preserve every existing grant and publish the inventory regression evidence: two assertion failures before the generated row, all 60 policy tests passing after it. Trading runtime and test code are unchanged.
Consume the actual Alpaca cancellation-rejection event, keep venue halts scoped to OVERNIGHT, adopt the companion scan trade-date/rule primitives, and dispatch bounded cancellation tasks outside owner ticks with joined shutdown. Preserve published history under CC correction 216. Exact 448 base: seven tests fail fifteen assertions with zero errors; native related 726 and CI-like 726 pass after correction, with eight mutation plans killed. Publish sanitized run preimages and exact historical public source inputs, plus a generic seven-character prefix regression without a blacklist.
seathatflowsinourveins
force-pushed
the
foundation/overnight-arming-20261013
branch
from
October 13, 2026 21:08
ea0a51a to
8f64d5a
Compare
7 of 9 tasks
seathatflowsinourveins
force-pushed
the
foundation/overnight-arming-20261013
branch
2 times, most recently
from
October 14, 2026 05:32
02e19f1 to
9d43e30
Compare
5 of 6 tasks
This branch has not been deployed
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.
Scope
Main's adaptive-paper preflight refuses an OVERNIGHT stage start. #1081 already implements the qualified overnight port and admission branch; this stacked draft adds a fail-before acceptance pack and retained venue evidence for lane A without duplicating that implementation.
ea0a51a6b2a485977d8aaf8e11dc0e93fe820a06, Arm bounded overnight REST diagnostics with owned lifecycle and residual exits #1081 (foundation/overnight-arming-20261013). Main fail-before pin:04f64a056cade587f804da60f6a94f7852f7624d.lane:trading.manifests/evidence.json.The new regression accepts 21:00 ET only with the existing BOATS REST/overnight configuration and coupled extended-hours flags. Extended hours alone continues to refuse OVERNIGHT. An overnight stage is bounded at 04:00 ET; a DAY order's separate expiry at 20:00 ET cannot supply the missing cleanup window. The opted-in port retains must-end-flat, while PRE/RTH/POST/default-policy controls retain their existing behavior. Production source, source-hash manifests and frozen/shipped configurations are byte-unchanged against the parent.
SOTA sources
ea0a51a6b2a485977d8aaf8e11dc0e93fe820a06:blueprints/us-equities/adaptive-paper/runner.py(validate_preflight),sessions.py(validated overnight policy, order extended-hours flag, session close and must-end-flat),overnight.pyand the existing reduce-only dispatch/ledger/wire guards. Reuses the port; does not rebuild it.2026-07-07T14:17:11.000Z, retained 2026-10-10 capture. Public verbatim excerpt:evidence/artifacts/lane-a-overnight-acceptance-20261013/alpaca-245-trading-excerpt.md. Overnight is LIMIT-only; DAY carries to 20:00 ET of the trade date; DTBP does not apply and 2x is the maximum margin buying power. This is a ceiling, not a sizing target or account entitlement.1b0a49d2792a9432a3aca3fcb617ce7a630d905e:crates/model/src/enums.rs(TradingState::Reducing) andcrates/risk/src/engine/mod.rs(is_reducing_submissionand denial). Pinned source verified directly. The CC's 2026-10-13 06:11Z P1-B ruling uses this mechanism for the parent's residual exit path; this PR repeats its synthetic dispatch regression, not an engine E2E.Evidence-class table
syntheticregular_session_window_unavailable; final acceptance module: 6 tests, exit 0syntheticsyntheticsyntheticsource_reviewRetained results:
evidence/artifacts/lane-a-overnight-acceptance-20261013/validation.json. The initial four-test module and exact final one-test main probe are distinguished there; neither is reported as a pass. Raw local traceback logs remain private, with no raw-log digest published.Local commands run
All five additions are registered through
host_receipts.register_file. New-file native identity/email scan and gitleaks pass; the vendor excerpt's six paragraphs match the retained public capture verbatim. No allowlist or privacy-guard change was added by this PR.Decision record
docs/decisions/2026-10-13-lane-a-overnight-acceptance.md; implementation/acceptance boundary inblueprints/us-equities/adaptive-paper/README-overnight-acceptance.md.Host evidence
No host receipt or platform-status change.
Checklist
Follow-ups
mover.py,source-hashes.jsonandmanifests/evidence.json; the parent owner resolves its implementation carry before this draft retargets. This PR does not edit those production or frozen files.