Engineering guide
Rust conventions for Flock 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
flock drift-check
Crate boundaries
| Crate | Responsibility |
|---|---|
flock-core | Types: Goal, EpisodeLog, topology |
flock-runtime | Scheduler, engine, MCP hot path |
flock-events | Unified observability schema |
flock-cli | Operator surface |
flock-multiplexer | PTY + socket API |
Docs
- Book is canonical public docs (
book/src/) docs/holds specs and staging; do not link GitHub blobs from book pages