Genesis Protocol - The Perception Layer Behind Every Glavior Decision
Genesis is the perception layer of the Glavior stack - the protocol that decides what the market actually is before any model is allowed to act on it. Regime, structure, microstructure, and intent, fused into one canonical market state.
Genesis - The Perception Layer
Before any Glavior model is allowed to commit to a trade, the market itself has to be described. That description is not a chart, not a feed, and not a feeling. It is a canonical, deterministic object produced by a single protocol: **Genesis**.
Genesis is the perception layer of the Glavior stack. Every other protocol - Aegis, Zenith, Paladin - and every model - Pegasus and the engines that will follow - consume its output. If Genesis is silent, the rest of the stack is silent.
Quick Specification
- **Protocol Code:** GEN
- **Role:** Perception · Market-state synthesis
- **Status:** Live · Production
- **Outputs:** Regime label · Structure object · Microstructure tape · Intent vector · Confidence band
- **Consumers:** All decision engines (Pegasus and future models), Aegis, Zenith, Paladin
Mandate - Describe The Market, Not Forecast It
Most retail systems collapse perception and prediction into the same step. They look at a chart and immediately ask "what will happen next?" - and that is precisely why their decisions inherit every bias in the candle they are staring at.
Genesis is forbidden from forecasting. Its only mandate is to produce a faithful, time-stamped description of the present market state. Forecasting is a strictly downstream concern, owned by models like Pegasus.
[INSIGHT] Perception that pretends to be prediction is the source of nearly every losing system. Genesis fixes the boundary by contract, not by convention.
The Four Faces Of Market State
Genesis fuses four orthogonal views of the market into a single object. None of them is optional. None of them can override the others without an explicit, audited rule.
1. Regime
The macro question: is the market trending, ranging, expanding, or contracting? Regime classification is computed from ADX, ATR percentiles, realised volatility, and a rolling regime-stability score. Regime decides which strategy families are even allowed to fire.
- **TRENDING_UP / TRENDING_DOWN** - Pegasus's trend-continuation variant is unlocked.
- **RANGING** - Range-mean-reversion is unlocked; trend-continuation is suppressed.
- **EXPANSION** - Reversal-at-liquidity is prioritised; size is throttled.
- **CONTRACTION** - All engines bias to silence.
2. Structure
The chart question: what is price actually doing on the higher timeframe? Structure encodes HH/HL or LH/LL sequences, break-of-structure events, the last unmitigated order block, and the location of the active VWAP.
Structure is the layer that prevents a clean L2 setup from firing into a broken L1 chart. If structure is mixed, the protocol's verdict is "no canonical bias" - and every downstream engine treats that as a hard suppress.
3. Microstructure
The order-book question: is the move being paid for in real flow? Genesis tracks cumulative volume delta, order-flow imbalance, relative volume against an asset-specific baseline, open interest deltas, funding-rate posture, and liquidity-sweep events.
This is the layer that distinguishes a "breakout" from a "wick into thin liquidity". Without microstructure confirmation, Genesis publishes the structure but flags it as **unverified flow** - which Aegis treats as a R:R penalty downstream.
4. Intent
The macro-context question: what is the King doing? Intent captures BTC's 1h direction and slope, BTC dominance regime, ETH/BTC trend, and the macro tape posture (risk-on vs. risk-off proxies).
Intent is the layer that vetoes "perfectly clean" altcoin longs when BTC is bleeding. It is the single most expensive layer to ignore, which is why it sits at the top of the consumer contract.
The Canonical Market State Object
Every Genesis emission is a single immutable object, fingerprinted and timestamped. Downstream protocols never re-derive perception - they consume this object directly.
```json { "protocol": "GEN", "emitted_at": "<ISO-8601>", "symbol": "BTCUSDT", "regime": "TRENDING_UP", "regime_stability": 0.82, "structure": { "bias": "BULLISH", "last_bos": "BULLISH", "htf_alignment": "ALIGNED", "vwap_relationship": "ABOVE" }, "microstructure": { "cvd_confirm": true, "rvol": 1.62, "oi_delta": "RISING", "funding": "NEUTRAL", "liquidity_event": "SWEEP_RECLAIM_LOW" }, "intent": { "btc_direction_1h": "UP", "btc_dominance": "FALLING", "tape": "RISK_ON" }, "confidence_band": "HIGH", "fingerprint": "<sha256>" } ```
[AI] Every Glavior signal you ever see is downstream of one of these objects. If you can reproduce the object, you can reproduce the decision - that is the contract.
The Hard Rules
Genesis is bound by four non-negotiable rules. Violating any of them is treated as a protocol error, not a soft warning.
- **Determinism.** Same inputs, same object. No stochastic perception.
- **No forecasting.** Genesis never publishes a directional prediction. Bias is a description of the present, not a claim about the future.
- **No silent revisions.** Once an object is emitted, it is immutable. Corrections are emitted as new objects with a reference to the prior fingerprint.
- **Fail loud, fail silent - never fail invisible.** If any face of the state cannot be computed with confidence, Genesis emits `confidence_band: "INSUFFICIENT_DATA"` and the entire stack stays flat.
Why This Architecture Matters
The hidden cost in most trading systems is **perception drift** - the model and the user disagree on what the market even is, and nobody notices until the trade is already wrong. Genesis eliminates that class of failure by making perception a published, auditable contract.
[MISTAKE] Treating "the chart looks bullish" as a decision input. The chart is a rendering of state, not the state itself. Genesis publishes the state; the chart is just one possible view of it.
How Downstream Protocols Consume Genesis
- **Pegasus** reads the full object and decides whether any of its three strategy variants are live for the current regime.
- **Aegis** reads the intent and microstructure layers to compute vetoes before R:R is even calculated.
- **Zenith** reads regime and structure to decide whether to ladder, trail, or hold for the runner.
- **Paladin** reads the fingerprint and refuses to route any order whose Genesis object has been superseded.
The Bottom Line
Genesis is not a feature. It is the contract that makes every other Glavior feature trustable. The moment perception is published as a deterministic object, every decision downstream becomes inspectable, replayable, and impossible to silently rewrite.
[INSIGHT] If a future Glavior model ever appears to "see" the market differently, the divergence will be visible in the Genesis object - not hidden inside the model. That is the entire point of the perception layer.