Lorenz
Architecture

10. Roadmap & Seams

The single index of every NotImplemented boundary in Lorenz. The seams by location, the production requirements, the economics-first phasing, and the design rule that keeps the seams honest.

Lorenz draws a hard line between what works and what a production deployment additionally needs, and it encodes that line in the type system: every unfinished path is a real, compiling type that returns an explicit NotImplemented rather than a faked success. This chapter is the single index of those boundaries.

Legend (from the README): ๐ŸŸก seam (typed, documented, compiles, returns NotImplemented) ยท ๐Ÿ”ญ roadmap (scoped, not in code).


The seams, by location

SeamStatusLocationReturnsWhat wiring it requires
Geyser/Yellowstone transport๐ŸŸกcrates/lorenz-stream/src/geyser.rs โ†’ GeyserSource::connectStreamError::NotImplementedAdd yellowstone-grpc-client in a deployment crate; connect, subscribe to pool + vault accounts, decode (already implemented), assemble, emit PoolSnapshot.
Flash-loan borrow๐ŸŸกprograms/executor mod flash_loan::borrowExecutorError::NotImplementedCPI flash_borrow_reserve_liquidity (Kamino) for notional of base mint into vault_token_account; must pair with repay in the same tx.
Flash-loan repay๐ŸŸกprograms/executor mod flash_loan::repayExecutorError::NotImplementedCPI flash_repay_reserve_liquidity for principal + provider fee.
Multi-DEX swap route๐ŸŸกprograms/executor mod route::execute_routeExecutorError::NotImplementedWalk the route in remaining_accounts, one swap CPI per hop (Raydium, Meteora, Whirlpool, โ€ฆ).
Raydium CLMM decoder๐Ÿ”ญlorenz-dex::decoder::RaydiumClmmDecoderDecodeError::NotImplementedSqrt-price + tick-array layout.
Meteora DLMM decoder๐Ÿ”ญlorenz-dex::decoder::MeteoraDlmmDecoderDecodeError::NotImplementedBin layout.
Meteora DAMM / Pump / Solfi / Vertigo decoders๐Ÿ”ญlorenz-dex::decoder roadmap CPMM decodersDecodeError::NotImplementedPer-venue account layout adaptation.
Tick-crossing CLMM math๐Ÿ”ญlorenz-dex::clmm (currently single-tick f64)None (returns single-tick estimate)Full Q64.64 integer math crossing initialized ticks.
Real LLM client๐Ÿ”ญimplement lorenz-agent::LlmClientNonePrompt a model with AgentContext, parse a tool call into one AgentAction.
Tx builder / submission๐Ÿ”ญnot presentNoneVersioned tx, LUTs, Jito bundle construction + submission on low-latency infra.

Production requirements (from the README)

These are explicitly not done in this reference framework and together constitute the scope of a production build:

  1. Concentrated-liquidity decoders (Whirlpool is done; Raydium CLMM, Meteora DLMM remain) with a tick/sqrt-price pricing model rather than constant-product.
  2. On-chain flash-loan borrow/repay CPI and multi-DEX swap route (mod flash_loan, mod route).
  3. Live Geyser/Yellowstone transport behind lorenz-stream's seam, plus the tx submission path, on co-located low-latency infrastructure.
  4. An external audit of the on-chain program before any use with real capital.
  5. The LLM-backed agent on top of the existing bounded control-plane primitives.
  6. Multi-tenant onboarding and the non-custodial vault UX.

The README is also candid about the macro constraint: production arbitrage is an infrastructure problem (co-location, premium/staked RPC + streams, millisecond bundle tuning). A laptop clone will not out-race established searchers, and understanding that is itself part of what the repo demonstrates.


Phasing (economics-first)

From the Architecture overview:

  • Phase 0/1 is largely present (green): the deterministic edge-proving stack.
  • Phases 2โ€“4 are the production build, in deliberate order so the economic edge is validated before money is spent on audit and infrastructure.

Two reasonable ways to use the repo (from the README)

  • (A) Self-serve, at your own risk. Fork it, implement the roadmap pieces for your own infrastructure, operate it yourself. MIT-licensed; you own the outcome.
  • (B) Custom build. Use this architecture as the starting point; the production requirements above are the scope of work.

Design rule that keeps the seams honest

Unimplemented paths return an explicit NotImplemented error, never a fake success; every README claim is verifiable from code/chain or labelled roadmap; strict config fails loud. The repository is "defensible because it is accurate": the property that survives close review by a human or an AI.

Continue to 11. Glossary.

On this page