Lineage Mastery
Ten levels, from your first guarded action to an agent running in production. Every level is a program you run, with the output you should see and an exercise to try. Each one builds on the one before.
| Level | You’ll learn | Runs with |
|---|---|---|
| 1. Your first guarded action | Policies, requests, decisions, and the signed log | Rust |
| 2. Budgets and costs | Finite budgets, declared costs, exhaustion | Rust |
| 3. Scars and termination | Scar weights, limits, monitors, the kill switch | Rust |
| 4. Humans in the loop | Approvals, notes, rejections, re-checks | Rust |
| 5. Consequences survive restarts | Replay: why nothing resets | Rust |
| 6. Proving what happened | Verification, tampering, checkpoints | Rust |
| 7. The guard server | Guarding agents in any language over HTTP | Python |
| 8. Guarding an LLM loop | The loop every tool-calling agent needs | Python |
| 9. Binding approvals to backends | Making decisions enforceable | Python |
| 10. Going to production | Deploying, monitoring, keys, checkpoints | Ops |
Setup
Clone the repository once. Every level runs from its root:
git clone https://github.com/ecadelgrouplimited-dot/lineagers
cd lineagers
cargo run --example mastery_01_first_action
You need Rust 1.89+ for levels 1–6, and Python 3.8+ plus a running guard server for levels 7–9. The Rust levels write their files to mastery-data/<level>/, so you can open and inspect every log.
On Linux, the first build compiles the examples’ dependencies, which needs the fontconfig headers: sudo apt-get install libfontconfig1-dev pkg-config.