Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/deskiziarecords/QUIMERIA-HYPERION/llms.txt

Use this file to discover all available pages before exploring further.

The eight lambda sensors form Layer 3 of the Sovereign Market Kernel. Each sensor monitors a distinct dimension of market behavior — volatility, time, spectral phase, manipulation, displacement, macro trend, causal correlation, and information leakage. On every bar, the sensors produce telemetry structs that the Lambda Fusion Engine combines into a single weighted probability (p_fused) and a binary trade permission. A sensor either fires (contributes positively to fusion) or vetoes (halts execution entirely, regardless of other signals). The sensors share a common interface defined in lambda_sensors/base_sensor.py. Each implements step() or an equivalent method that returns a plain-Python dataclass. All outputs are sanitized through smk_pipeline._sanitize() before leaving the pipeline.

Sensor overview

SensorNameFileVeto condition
λ₁Volatility Decayvolatility_decay_detector.pyV_t / ATR₂₀ < 0.7 → entrapment
λ₂Killzone Timingexpansion_predictor.py + session detectorOutside London / NY window
λ₃Harmonic Inversionharmonic_trap_detector.pyφ_diff > π/2 → Liar State
λ₄Manipulation Phasemanipulation_detector.pyscore ≥ 70 during signal window
λ₅Displacementdisplacement_detector.pyDirectional conflict with macro bias
λ₆Macro Biasdisplacement_detector.py (direction field)Bias flip during open position
λ₇Macro Causalitymacro_causality_gate.pyDXY divergence > 0.20% with conflicting direction
λ₈Light-Cone Violationlight_cone_violation.pyKill-switch at severity > 0.7

Detailed sensor reference

File: lambda_sensors/volatility_decay_detector.pyλ₁ measures the rate at which intra-range volatility exhausts itself — the precursor to an institutional displacement move. It computes the Price Variation Integral (V_t), the sum of absolute close-to-close changes over the current window, and benchmarks it against ATR₂₀.Trigger threshold:
ParameterDefaultAdaptive range
delta (volatility ratio threshold)0.70.5 – 0.8
tau_max (stagnation limit, bars)20
# volatility_decay_detector.py
v_t = self.calculate_price_variation(close_prices)
vol_ratio = v_t / (atr20 + 1e-9)

# λ₁ Condition: Volatility Ratio < 0.7
is_entrapped = vol_ratio < self.delta
Telemetry fields:
FieldTypeDescription
volatility_ratiofloatCurrent V_t / ATR₂₀
is_entrappedboolTrue when ratio < delta
latent_energy_scorefloat0.5 × stasis_timer² — models institutional pressure
time_in_stasisintConsecutive bars in entrapment
statusstrPHASE_ENTRAPMENT_ACTIVE, CRITICAL_MASS_EXPANSION_IMMINENT, or NORMAL_DELIVERY
Fire vs. veto: λ₁ does not issue a hard veto. Instead, is_entrapped = True is a prerequisite condition that the expansion predictor uses to elevate p_amp. When time_in_stasis > tau_max, the status shifts to CRITICAL_MASS_EXPANSION_IMMINENT, signaling that a displacement move is overdue.
Always wipe the ATR₂₀ cache when upgrading to v1.1. Stale ATR values bias the volatility ratio and may suppress λ₁ even during genuine entrapment.
File: core/detectors/ (SessionKillZoneDetector)λ₂ gates all signals to high-liquidity session windows. Trades outside a killzone receive a timing veto regardless of structural or sensor alignment. The two primary killzones are:
SessionUTC windowCharacteristics
London open07:00 – 09:00Highest manipulation frequency; Judas Swing most common
New York open13:30 – 15:30Primary distribution moves; DXY correlation strongest
Fire vs. veto: If the current bar timestamp falls outside both windows, the session detector returns active = False. The Lambda Fusion Engine applies a zero weight to all sensors during inactive periods, effectively suppressing execution.
File: lambda_sensors/harmonic_trap_detector.pyλ₃ runs an FFT-based spectral comparison between the model’s predicted price trajectory and actual prices. When the dominant frequency components are phase-inverted beyond a threshold, the market is in a Liar State — harmonic traps and reverse periods where price moves opposite to structural expectation.Trigger threshold:
ParameterDefaultAdaptive range
threshold (phase diff)π/2 (≈ 1.5708 rad)π/4 – 3π/4
lookback (FFT window)64 bars
# harmonic_trap_detector.py
phi_pred, _ = self._extract_dominant_phase(predicted_prices[-self.lookback:])
phi_act, _  = self._extract_dominant_phase(actual_prices[-self.lookback:])

phase_diff = np.abs(phi_pred - phi_act)
is_inverted = phase_diff > self.threshold  # > π/2 → HALT
Trap types:
TypeConditionAction
PHASE_INVERSIONphase_diff > π/2Hard veto (VETO_LIAR_STATE)
FREQUENCY_DOUBLINGfreq_act > freq_pred × 1.8Warning; no hard veto
Fire vs. veto: is_inverted = True emits status = "DISSONANT: λ3 VETO" and sets the Ring 0 error code to VETO_LIAR_STATE. Execution halts until φ_diff returns below π/2.
The λ₃ Harmonic Trap Paradox: during ultra-high-frequency volatility bursts, λ₃ may over-veto even when structural DNA is bullish. Monitor for Opportunity Decay if veto persists more than 3 consecutive bars with strong AMD confirmation.
File: lambda_sensors/manipulation_detector.pyλ₄ scores the probability that the current bar represents an institutional stop hunt. It checks three independent signals against the 20/40/60-day IPDA ranges.Scoring model:
SignalConditionScore
IPDA range touchPrice sweeps H/L node+40
Wick signaturewick_size / body > 3.0+30
Volume anomalyvolume > 3 × avg_vol+30
# manipulation_detector.py — composite score
is_active = score >= self.anomaly_threshold  # default 70
status = f"MANIPULATION_DETECTED at {detected_level}" if is_active else "STABLE"
Fire vs. veto: A confirmed manipulation event (is_active = True) is a fire condition — it confirms AMD phase transition from Accumulate to Manipulate and increases fusion weight for λ₅. It becomes a veto if a signal is already open in the direction of the sweep (stop-hunt risk).
File: lambda_sensors/displacement_detector.pyλ₅ validates whether a candle represents genuine institutional order flow rather than retail noise. It checks two geometric constraints simultaneously.Displacement criteria:
ConstraintCondition
Large rangecandle_range > k × ATR₂₀ (default k = 1.2)
Strong bodybody / range ≥ 0.70 (close in top/bottom 30%)
# displacement_detector.py — λ₅ classification
is_large_range = candle_range > (self.k * atr20)
is_bull_disp   = close > open and (close - low) / range > 0.7
is_bear_disp   = close < open and (close - low) / range < 0.3

is_disp = is_large_range and (is_bull_disp or is_bear_disp) and body_ratio >= self.body_min
Directional veto: If expected_direction (from λ₆ macro bias) conflicts with the displacement direction, is_vetoed = True fires status = "HALTED: λ6 DISPLACEMENT VETO".Telemetry fields:
FieldDescription
is_displacementTrue if all criteria met
direction1 (bullish), -1 (bearish), 0 (none)
body_ratioBody as fraction of total range
range_multRange divided by ATR₂₀
is_vetoedDirection conflict with macro bias
File: core/detectors/BiasDetectorλ₆ determines the high-level structural bias — bullish or bearish — from the IPDA dealing range position and equilibrium cross. It acts as the directional anchor for all other sensors. A confirmed bias is required before the fusion engine generates any long or short signal.Fire vs. veto: λ₆ does not issue a hard veto. It provides expected_direction to λ₅ and to the Order Block Detector. If the bias is NEUTRAL (price at equilibrium), the expansion predictor suppresses p_amp regardless of λ₁ status.
File: lambda_sensors/macro_causality_gate.pyλ₇ validates that a trading signal is consistent with the macro causal structure — specifically the DXY correlation and SPX risk regime. It also runs SMT Divergence detection to spot hidden bullish or bearish divergences between correlated pairs.Configuration defaults:
ParameterDefaultDescription
dxy_divergence_threshold0.20%Maximum tolerated DXY move against signal
dxy_correlation_window20 barsRolling window for correlation
smt_lookback15 barsSMT divergence detection window
# macro_causality_gate.py — veto logic
if dxy_divergence > config.dxy_divergence_threshold:
    if direction == 1 and dxy_change > 0:
        veto = True  # Long signal vs. DXY strength → EUR/USD structural conflict
    elif direction == -1 and dxy_change < 0:
        veto = True  # Short signal vs. DXY weakness → structural conflict
Risk regime output:
RegimeCondition
RISK_OFFDXY +0.15% and SPX −0.10%
RISK_ONDXY −0.15% and SPX +0.10%
TRANSITIONMixed or insufficient data
Fire vs. veto: dxy_veto_triggered = True sets signal_valid = False and contributes score = 0.0 to fusion. The Macro Gate veto is the most common non-topological veto. During Privileged Mode (central bank intervention), this veto must never be overridden.
Never override a λ₇ Macro Gate veto during Privileged Mode. Central bank interventions break normal DXY/EUR structural relationships and will generate false-positive signals.
File: lambda_sensors/light_cone_violation.pyλ₈ detects when institutional information is leaking from lead assets (DXY, SPX) into the target asset before IPDA completes delivery. The signature is: DXY moves to an extreme stochastic z-score while the target asset remains neutral — a divergence that precedes a corrective delivery move.Detection mechanism:
# light_cone_violation.py — momentum anomaly detection
if telemetry.dxy_extreme and telemetry.target_neutral:
    telemetry.violation_detected = True
    telemetry.violation_type = "MOMENTUM_ANOMALY"
    telemetry.violation_severity = min(1.0, (abs(dxy_z) - 2.0) / 2.0)

    # Kill switch for severe violations
    if telemetry.violation_severity > 0.7:
        telemetry.kill_switch_triggered = True
Stochastic z-score thresholds:
FieldThresholdMeaning
dxy_extremeabs(z) > 2.0 (sigma)DXY at statistical extreme
target_neutralabs(z) < 0.5Target not yet reacting
Kill-switchseverity > 0.7Hard stop, KILL_SWITCH_TRIGGERED
Fire vs. veto: Below severity 0.7, λ₈ enters monitoring mode (score = 0.3) without halting execution. Above 0.7, kill_switch_triggered = True halts all execution. The error code VETO_LIAR_STATE may appear in veto.log alongside λ8 kill-switch events.
If λ₈ triggers repeatedly, audit for information leakage or front-running activity in the data feed. Alternatively, the Adelic Tube radius may be too narrow — review the p-adic radius setting in core/adelic/.

Lambda Fusion Engine

All eight sensors feed into the Lambda Fusion Engine (core/kernel/lambda_fusion_engine.py), which aggregates their scores into a single fused signal and issues a final trade permission.
λ₁ score ──┐
λ₂ score ──┤
λ₃ score ──┤
λ₄ score ──┼──► p_fused = Σ(wᵢ × scoreᵢ) / Σwᵢ ──► trade_allowed
λ₅ score ──┤
λ₆ score ──┤
λ₇ score ──┤
λ₈ score ──┘
Fusion rules:
  1. If any sensor emits a hard veto, trade_allowed = False regardless of p_fused.
  2. If p_fused < 0.2, the CONF:INSUFFICIENT Ring 0 veto fires.
  3. The Mandra Gate then applies a final entropy check (ΔE ≥ 0.02) before execution.
The veto decision is written to r['veto']['trade_allowed'] in the step() result dict and to logs/veto.log on every bar.
Sensor weights are configurable via the /api/config/modules endpoint. Disabling a sensor sets its weight to zero but does not skip its computation — the pipeline always runs all sensors for telemetry purposes.

IPDA Structural Compiler

Layer 1 context that sensors consume

Ring 0 veto

Hard-stop guards downstream of the fusion engine

Build docs developers (and LLMs) love