01The eight-layer stack

Data flows top-to-bottom. Governance flows bottom-to-top. Feedback (forensics, corrections) flows both ways.

L1 Market data + event infrastructure Laevitas · Polygon · IB Gateway · Synoptic · Benzinga · Kimi OCR · CEX feeds L2 News + research intelligence News Unit (NRU) · EAU · Research Pipeline · Daily Recap · Digest Buffer → Analyst L3 Analyst — cross-asset thesis engine Theses · domain guidance · forward-looking scenarios · recommended posture · invalidation watchlists L4 Trading units — AI proposal IB Equity · HL Equity · V2 Crypto · FX (staged) · produces cycleDecision + positionManagement + entries L5 Review units — AI validation ERU (equity review) · WVU (crypto review) · IB Equity Review · verdict: APPROVE | BLOCK | MODIFY L6 Deterministic governance — pure math, no AI Portfolio Manager · Entry State Machine · Profit Ladder · Risk Brake Re-entry Controller · Material Change Controller · Position Registry Exposure Graph · Price Sentinel (60s independent) · Kill Switch modes: OFF · ADVISORY · ENFORCING L7 Execution TradingService · TWAP · IOC · limit chase · Hyperliquid SDK · IB Gateway · safety guards L8 Forensics + performance Post-Trade Forensics (6 labels) · Performance Trackers · PM Replay · correction feedback to AI layer
eight-layer stack · L3 analyst and L6 governance are the accented load-bearing layers

02Data stores

StorePurposePersistence
RedisRuntime state: theses, EAU state, primordials TTL, watchlists, performance, news cache, cycle contextIn-memory, optional persistence
PostgreSQLResearch items (PDFs, articles, notes), daily recaps, extraction resultsDurable
In-memoryActive positions, volatility maps, exposure graph, strength maps, price snapshots, forensicsSession only
File systemlogs/active_positions.json — persists positions across restartsDurable

03Analyst — cross-asset thesis engine

The Analyst is a macro-level thesis engine. It does not execute trades. Every 30 minutes it ingests the NRU digest buffer, loads prior theses from Redis, collects trading-unit feedback, gets live price snapshots, calls its dedicated REI unit, and writes updated output to Redis for trading units to consume on their next cycle.

Output structure

interface AnalystOutput {
  activeTheses: AnalystThesis[];      // named theses with conviction, direction, invalidation
  recentlyKilled: AnalystThesis[];    // theses invalidated this cycle
  crossPortfolioAlert: {              // portfolio-wide risk alerts
    active: boolean;
    type: string | null;
    message: string | null;
  };
  domainGuidance: {                   // per-asset-class bias
    crypto?: DomainGuidance;
    equity?: DomainGuidance;
    fx?: DomainGuidance;
  };
  forwardLooking: {
    recommendedPosture: 'FULL_DEPLOYMENT' | 'TACTICAL_ONLY' | 'REDUCE' | 'NO_NEW_RISK';
    scenarioProbabilities: { baseCase, bullCase, bearCase, reversalCase };
    alreadyPricedScore: number;       // 0-100: how much is priced in
    marketAheadOfDataScore: number;   // 0-100: how far ahead market moved
  };
  analysis: {
    digestSummary: string;
    thesisChanges: string;
    marketRead: string;
    upcomingCatalysts: string;
    keyRisks: string[];
  };
}

Thesis lifecycle

Posture → PM behavior

PosturePortfolio Manager behavior
FULL_DEPLOYMENTNormal evaluation — standard PM rules apply
TACTICAL_ONLYMax 1 new trade, 50% sizing cap
REDUCENo new entries, reduce existing exposure
NO_NEW_RISKHard block on all new entries

04Deterministic governance detail

Every component in L6 is pure math, no AI calls, no cycle dependencies. Each runs in OFF, ADVISORY, or ENFORCING mode.

Portfolio Manager

Entry State Machine

StateConditionAction
ALLOW_MARKETNo chase riskProceed with IOC or market
ALLOW_LIMITMild chaseUse limit at current price
CONVERT_PULLBACKExtendedLimit below current (long) or above (short)
DELAY_RETESTBreakout chaseWait for retest confirmation
REJECT_EXTENDEDToo extendedBlock entirely

Profit Ladder

Deterministic partial profit-taking, never AI-dependent. Rungs by asset class: at +X% profit → scale out Y% of position. Progressive stop tightening as profit grows. Tracks executed rungs per position to prevent double-execution. Actions: HOLD, TIGHTEN_STOP, SCALE_OUT_PARTIAL, SCALE_OUT_AND_TIGHTEN.

Risk Brake

Re-entry Controller

JUST_STOPPED → (4h cooldown) → WAITING_RECOVERY →
  (price reclaims + thesis active) → RECOVERY_CONFIRMEDREENTRY_ALLOWED_HALF (50% size) → REENTRY_ALLOWED_FULL (full)

Blocks re-entry after: 3 consecutive stops on same symbol, thesis killed, within cooldown.

Price Sentinel

Runs every 60 seconds, independent of trading cycles.

TriggerDetectionAction
SHOCK_MOVERapid PnL dropEMERGENCY_CLOSE or REDUCE_50
INVALIDATION_BREAKPrice crosses invalidation levelEMERGENCY_CLOSE
PROFIT_RATCHETGave back >50% of peak profitTIGHTEN or REDUCE_50
CASCADE_BTC_DUMPBTC dumps → alt longs at riskTIGHTEN all alt longs
EXTENDED_DRAWDOWNLosing >X% >1 hourALERT → REDUCE_50
SOFT_SL_BREACHPrice below soft SL levelSOFT_SL_CLOSE after N checks
NEWS_INVALIDATIONNews invalidates thesisEMERGENCY_CLOSE

After acting, Sentinel injects sentinelActions[] into the next cycle so the AI knows what happened.

Post-Trade Forensics

Scores every closed trade on decision quality across six labels:

Labels feed back to Analyst and trading units for idea-quality-vs-execution-quality separation.

05Scheduler — cycle orchestration

CycleDefaultDynamic rangeTrigger
V2 Crypto60 min15 to 240 minAI-recommended, market conditions
HL Equity60 min30 to 240 minMarket session, positions
IB Equity120 min (market hours)45 to 360 minSession hours, news / research
Analyst30 minFixedTimer (ANALYST_INTERVAL_MS)
News (NRU)ContinuousWebSocket streamReal-time + cron batches
EAU30 min+ breaking news triggerTimer + NRU urgent flag
Price Sentinel60 secFixedIndependent of cycles

Dynamic intervals respond to: market session, position floor (minimum when positions open), AI-recommended next-check interval, performance state, recent position closes, news and research triggers. Weekend gate suppresses trading cycles Saturday through Sunday evening; ingestion continues.

06Execution layer

Central execution service: TradingService. Receives approved signals from the governance pipeline and executes them.

Execution methods

Safety features

Exchange integrations

ExchangeServiceUse
HyperliquidHyperliquidService, HyperliquidV2Service, HyperliquidFxServiceCrypto, equity/commodity, FX perps
Interactive BrokersIBKRService via IB GatewayReal stocks and ETFs
BinanceBinanceServicePrice data reference
OKXOkxServicePrice data reference
BybitBybitServicePrice data reference

07Research pipeline

Document ingestion pipeline for IB Equity. Runs in six stages from upload to cycle-payload injection.

1. Upload             PDF / DOCX / image uploaded via API
2. Kimi OCR           Moonshot AI extraction · handles scans, charts, tables
3. REI extraction     thesis, catalysts, risks, tickers, themes, conviction, timeHorizon
4. PostgreSQL         store in ib_equity_research table
5. Teaching call      dedicated call to IB Equity REI unit, tracked in Redis 90d
6. Cycle payload      buildResearchContext() injects into every IB Equity cycle

Extraction structure

interface ExtractionResult {
  thesis: string;
  catalysts: string[];
  risks: string[];
  tickers: string[];
  conviction: 'HIGH' | 'MEDIUM' | 'LOW';
  timeHorizon: string;              // e.g., "3-6 months"
  actionableSummary: string;
  themes: string[];                 // AI_INFRASTRUCTURE, DEFENSE, etc.
}

08Data services layer

ServiceRoleUpdate frequency
LaevitasFunding, OI, basis, liquidations, options flowOn demand
Laevitas StreamReal-time derivatives WebSocketContinuous
Volatility ServicePer-asset velocity, regime, range expansionEvery 3 min
IB Data ServiceReal-time equity + Polygon technicalsOn demand
Equity Data ServiceHyperliquid perp market dataOn demand
Equity Strength (ERSS)Relative strength vs benchmark / sectorPer cycle
Alt StrengthCrypto altcoin strength vs BTC / ETHPer cycle
Price IntelligenceNews reaction, unusual volume, technical signalsPer cycle
BenzingaAnalyst upgrades, downgrades, price targetsPer cycle
Market CalendarExchange hours, holidays, early closesOn demand
Daily Recap (Kimi)Short-term (3d) + long-term (2-6mo) outlookPer day

09Reasoning, data, and governance surface

Reasoning units

UnitRole
IB EquityReal equity execution through Interactive Brokers
HL EquityEquity and commodity perpetuals on Hyperliquid HIP-3
V2 CryptoCrypto perpetuals on Hyperliquid
News (NRU)Real-time news classification and sentiment
Event AnticipationScheduled-event overlay and forward exposure
Equity Review (ERU)Validates HL Equity proposals
Crypto Review (WVU)Validates V2 Crypto proposals
IB Equity ReviewValidates IB Equity proposals
AnalystCross-asset thesis synthesis

Each unit runs on an isolated reasoning channel. Unit-level credentials and internal identifiers are not published.

Data partners

PartnerSurface
Polygon.ioUS equity market data and technicals
BenzingaAnalyst upgrades, downgrades, price targets
SynopticReal-time news feed
LaevitasCrypto derivatives analytics
Moonshot AI (Kimi)Document OCR and extraction
Interactive BrokersReal equity execution
HyperliquidPerpetuals execution (equity HIP-3, crypto)

Governance controls

Every governance layer can be independently run in one of three modes, so new rules are paper-tested before they gate real capital:

ModeBehavior
OFFLayer inert — no gating, no advisory output
ADVISORYLayer evaluates every decision and logs verdicts, but does not gate
ENFORCINGLayer actively gates capital and blocks violations

Position Manager, Risk Brake, Entry State Machine, and Profit Ladder each carry independent mode settings.

10Hanabi-2 — probabilistic forecasting (forthcoming)

Status · in development Hanabi-2 is a probabilistic multi-horizon forecaster co-developed with REI Labs. It is not yet wired into production STRATA cycles. This section documents the intended architecture and integration surface. Any claims about live performance would be premature and are not made here.

What it is

Hanabi-2 is a proprietary prediction model, not part of the REI Core reasoning engine. Where REI Core produces structured analytical reasoning (theses, verdicts, position reviews), Hanabi-2 produces numerical probability distributions over future price paths. The two are complementary: REI Core decides whether a thesis is valid; Hanabi-2 quantifies what the market is likely to do over a specific horizon.

Division of labor between Ecliptica and REI Labs on Hanabi-2: REI handles model architecture, training, and infrastructure. Ecliptica defines product requirements, institutional client specifications, integration surface, and the data contract between Hanabi-2 outputs and STRATA's consumers.

Architecture overview

ComponentChoiceRationale
Temporal encoderTemporal Convolutional Network (TCN)Captures local patterns across variable windows; stable gradients vs RNNs
Attention layerCausal self-attentionNo look-ahead leakage; weighted aggregation of historical context
Output headMixture Density Network (MDN)Produces full probability distributions, not point estimates
Horizons1h, 4h, 12h, 24h (multi-horizon)Tactical and positional timeframes addressed in a single forward pass
Training targetRealized volatility + directional distributionInstitutional-relevant outputs; distribution-aware loss function

Why probabilistic outputs

Point forecasts are insufficient for institutional decision-making. A model that says "BTC goes to 52,000 in 4 hours" is not actionable without a confidence measure. An MDN output produces a full distribution: mean, variance, skew, and tail behavior. Downstream consumers can query "what is the probability BTC is below 48,000 in 4 hours" or "what is the 5th-percentile outcome" — the information needed for position sizing, stop placement, and tail-risk hedging.

Integration surface (planned)

When production-integrated into STRATA, Hanabi-2 will plug in at two points:

Institutional API (planned)

Hanabi-2 is also intended to be available to institutional clients as a standalone forecast product via the Ecliptica Intelligence API, independent of STRATA deployment. Clients can consume distribution outputs directly into their own risk and sizing systems. Commercial terms to be defined.

Honest posture No performance figures, backtest results, or live accuracy numbers are published until Hanabi-2 has been production-validated through STRATA's governance pipeline. Every new signal source goes through the same ADVISORY-then-ENFORCING deployment protocol applied to governance rules.
11 See also

For unit-by-unit detail (trading units, review units, intelligence units, primordials per unit, teaching endpoints), continue to units. For the edge framing, see the edge. For LP-grade risk posture, see diligence.

Engage
Request access

STRATA is in selective deployment with institutional counterparties. For allocator diligence, partnership inquiries, or licensing discussions, contact Ecliptica directly.