Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Engineering guide

Rust conventions for Castellan contributors. Guardrail enforcement lives in governance policies.

Toolchain

  • Pin via rust-toolchain.toml
  • Format: cargo fmt --all
  • Lint: cargo clippy --workspace --all-targets -- -D warnings

Verification

./scripts/verify.sh
castellan drift-check

Crate boundaries

CrateResponsibility
castellan-coreTypes: Goal, EpisodeLog, topology
castellan-runtimeScheduler, engine, MCP hot path
castellan-eventsUnified observability schema
castellan-cliOperator surface
castellan-multiplexerPTY + socket API

Docs