How one typical trading event flows through CDB's deterministic, hash-sealed pipeline — and how PHAROS could add a searchable semantic memory beside the audit trail, never inside it.
BTCUSDT trends up; a 1-minute candle closes at 61 200.50, breaking the prior channel high in a confirmed TREND regime. Balance 10 000 USDT, position cap 10%, allocation 0.30, mock execution. Each stage is a real service passing a typed event to the next.
T7 · db_writerPersist + close the loop orders · trades · correlation_ledger
fill re-read by allocation→strategy performance updated
The chain DecisionEnvelopeV1 → OrderEnvelopeV1 → FillEnvelopeV1 all carry the same two hashes above. Canonical-JSON (sorted keys, floats to 10 dp) → SHA-256 makes every value reproducible on any machine. Flip one threshold and the seal becomes BLOCK with a reason code (RC_001 regime, RC_020 drawdown, …) — a valid outcome, not an error.
02
Where PHAROS fits
PHAROS already enriches RAFIKI nodes — so the path is CDB → RAFIKI → PHAROS, not a direct coupling. Only sealed, low-frequency artifacts cross the boundary: decisions and regime shifts, never ticks or candles.
enter momentum only when trend AND allocation both confirm
left · context
regime TREND · ADX 31.48 · ATR 0.84 · alloc 0.30
right · action
order → FILL MOCK_04185512 @ 61212.74
front · expression
OrderEnvelopeV1 BUY 0.00490196 BTC @ 61200.5
back · origin
signal sig-a1b2c3 from primary_breakout_v1
bottom · instance
BTCUSDT 2026-05-01 00:01 · notional 300 USDT
↺The payoff. PHAROS's same_as / related outcomes auto-link this decision to prior equivalent setups — e.g. dcv1-9b2f (prior TREND breakout) — turning an immutable audit log into a navigable memory of “what did we decide last time this pattern appeared”.
03
The guardrails that make it safe
Never on the hot path
LLM output is non-reproducible — it can never enter the order path, Decimal math, or a contract hash.
Annotation, not evidence
Enrichment sits beside the sealed artifact, keyed by the hash — never part of the audit envelope.
Low-frequency only
Decisions and regime shifts — never ticks or candles. Raw streams would overwhelm PHAROS's batch store.
Data-governance first
PHAROS is co-owned and federated. Trading rationale crossing that boundary is a confidentiality decision — confirm before any export.
NO-GO preserved
Strictly off-path, this layer does not affect Live-Readiness. No live capital, no exceptions.
Recommendation
Run one narrow experiment: export-only decision-memory — CDB → RAFIKI → PHAROS, low-frequency, strictly advisory — after the data-governance question is confirmed. Don't couple the pipeline any further than that.