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

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.

1first action2budgets3scars4approvals5restarts6audit7server8LLM loop9binding10productionRust, in-process: cargo run --example mastery_0N_…Python + guard serverlevels 1–6levels 7–9deploy
Ten levels. Each one is a program you run; each builds on the one before.
LevelYou’ll learnRuns with
1. Your first guarded actionPolicies, requests, decisions, and the signed logRust
2. Budgets and costsFinite budgets, declared costs, exhaustionRust
3. Scars and terminationScar weights, limits, monitors, the kill switchRust
4. Humans in the loopApprovals, notes, rejections, re-checksRust
5. Consequences survive restartsReplay: why nothing resetsRust
6. Proving what happenedVerification, tampering, checkpointsRust
7. The guard serverGuarding agents in any language over HTTPPython
8. Guarding an LLM loopThe loop every tool-calling agent needsPython
9. Binding approvals to backendsMaking decisions enforceablePython
10. Going to productionDeploying, monitoring, keys, checkpointsOps

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.