feat: implement institutional research platform roadmap (Stages 0-12)#27
Merged
Conversation
Introduce typed risk policy domain types and a rule-based policy engine that evaluates portfolio state and order plans against configurable thresholds with blocker/warning severity levels.
Add assessment functions for promotion, execution, and order batch entities that produce immutable results with findings, severity, and timestamps suitable for audit trails.
Extend the risk router with policy CRUD, assessment endpoints, and a kill-switch toggle backed by module-level state for fast emergency response.
Add RiskPolicyEditor, RiskAssessmentPanel, and KillSwitchPanel components to the Risk page with kill-switch typed confirmation UX, clear monitoring/policy/assessment separation, and full i18n support.
Extend ExecutionPlanRecord with strategy version, promotion request, risk assessment, and broker account linkage. Add lifecycle events to AlgoOrder for full audit trail, and reconciliation status for detecting broker-local mismatches.
Introduce a typed BrokerAdapter interface with submit, cancel, status, positions, account, and reconciliation methods. The simulated adapter provides deterministic test behavior without browser-side credentials.
Handle submit failure, lost acknowledgement, partial fill, cancel rejection, position mismatch, and gateway restart scenarios with diagnosis, plan building, and adapter-driven recovery actions.
Integrate execution evidence chain panel showing strategy version, promotion request, risk assessment, and broker account linkage. Add recovery console for diagnosing and resolving submit failures, lost acknowledgements, and position mismatches.
Introduce StrategyPackageManifest types and validation logic for strategy packages. Validates semver versioning, market declarations, risk limits (max 5x leverage, max 50% drawdown), and prevents live:execute permission from being requested by default.
Introduce PlatformEventBus with 13 event types covering dataset ingestion, experiments, backtests, promotions, risk breaches, execution plans, order lifecycle, agent reviews, and kill switch. Supports filtering, subscription, namespace isolation, and deep-cloned payloads.
Add PlatformEventStream, SystemHealthMatrix, and ArtifactIntegrityPanel components with useObservabilityWorkbench hook. Supports service health status derivation (healthy/degraded/blocked), event filtering by type and severity, and artifact integrity issue tracking.
Implement 6 integrity checks for platform artifacts: missing metadata, missing payload, hash mismatch, orphaned references, stale active dataset versions, and promotions without evidence. Integrates with the control-plane maintenance CLI.
Update README, architecture docs, operations handbook, and deployment guide to reflect Stages 8-12 completion. Document research lifecycle, data lifecycle, strategy promotion gates, paper/live boundaries, agent boundaries, job runner/artifacts, and operational recovery procedures.
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
Complete implementation of the institutional research platform roadmap: 51 commits across all 13 stages (Stage 0-12).
Stats
npm run verify)Test plan
npm run verifypasses (lint + all test suites + typecheck + build)