Repository navigation
Implement continuous Prism research and guarded Astra execution - #4
Merged
Merged
Conversation
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.
Prism now runs independent event-driven scheduling, research/review, market-data, execution, reconciliation, and protection workers. Sourced events and strategy candle boundaries replace the hourly research cadence; slow or budget-exhausted model calls do not stop monitoring or protective actions.
Validation: all 359 offline Python tests passed; 35 focused tests passed after the final console projection change; Python compilation, Swift runtime contract checks, unsigned Debug Xcode build, and staged whitespace checks passed. Coverage includes earnings/DST/holiday scheduling, preemption, correct candle boundaries, review without collection, immutable revisions, full research-to-eligibility-to-Astra-to-simulated-fill integration, restarts, duplicate/partial fills, cancel races, stale/unauthorized intents, disabled mainnet, and actual worker isolation under model failure/budget exhaustion.
No installed service, trading/model credentials, paid research, or real orders were used. Paper is the default; live and mainnet remain disabled. Activation requires explicit account/instrument/version allowlists, allocations, the full risk envelope, mode-specific credentials, mainnet environment opt-in, current calendar sources, and operator Start. Authenticated external behavior still requires operator verification. Spot conditional orders do not reserve assets at the venue before trigger; sub-step dust is explicit, and local TTL/kill-switch actions require the host to run. This change makes no profitability or continuous-availability claim.