#Ranvier Manual — Core Runtime and Boundary Guide

Version: 0.51.0 Updated: 2026-10-02 Applies to: ranvier (facade), ranvier-core, ranvier-runtime Category: Product Manuals


Use this page when you need explicit rules for Axon, Outcome, and adapter boundaries.

#Layer Model

  • Core: Protocol-agnostic contracts (Transition, Outcome, Bus, Schematic).
  • Runtime: Axon executes typed decision flow.
  • Adapter: Ingress/egress maps protocols to state and back.

#Core Types

Type Description
Transition Async state transform contract
Outcome Next, Branch, Jump, Emit, Fault
Bus Typed resource container with explicit reads

#Product Crates

Crate Role
ranvier Facade crate re-exporting the primary developer surface
ranvier-core Transition, Outcome, Bus, Schematic, timeline contracts
ranvier-runtime Axon execution, retry, timeout, saga, persistence runtime
ranvier-http HTTP ingress, routing, extraction, responses, static serving
ranvier-std Standard reusable transitions
ranvier-guard CORS, access log, security headers, rate limits, request policy
ranvier-macros Transition and streaming transition macros
ranvier-test TestBus, TestAxon, assertion helpers
ranvier-openapi OpenAPI generation and validation integration
ranvier-inspector Inspector REST/WebSocket, traces, metrics, breakpoints
ranvier-audit Audit sinks, hash chains, Merkle support
ranvier-compliance Compliance helper contracts

#Structural Guarantees

  • Ingress parses requests into typed input state.
  • Schematic is static and non-executable.
  • Run diff/validate/visualize before runtime.
  • LLM suggestions require explicit human review.

#Quickstart

cargo check --workspace
cargo run -p typed-state-tree
cargo run -p basic-schematic

#Workflows

  1. Define explicit transition flow with Axon and Outcome.
  2. Keep core protocol-agnostic; connect HTTP at adapter boundaries.
  3. Export Schematic and validate structure before rollout.