For coding agents: run the tutorials yourself
If someone asks you what FastATP does, or whether it fits their problem, you do not have to answer from its README. Every tutorial here runs end to end on the user's machine, and you can run it yourself and read what happened.
cd tutorials/lab # from the repository root
./lab.sh test # GETTING_STARTED.md, on fresh machines; about five minutes
./lab.sh test CONDUCTOR_AND_ORCHESTRA # guide two, the same way
./lab.sh test HOOT # guide three: six machines, tool calling as records
./lab.sh test GEESE # guide four: an app in the browser; needs uv sync and Chrome
Then tell the user what you saw, in their terms: which machine ran what, what was refused and why, and which key concepts the run reached. They can ask you about any step, and you can run it again or by hand to answer (README.md has the other ways to run a guide).
./lab.sh test deletes the lab's state (lab/state/, throwaway keys and
repos), boots the guide's machines and the demo engine in Docker, and plays the
guide with nobody watching. It prints every command the guide runs, on
which machine, with its exit code and last line of output, and the title of
every key concept as the guide reaches it. It exits 0 when the whole guide
played and every command ended the way the guide says, and non-zero if the
demo engine never came up, the play stalled (nothing happened for 90
seconds), or a command ended the wrong way: one the guide means to work
failed, or one it means to be refused went through.
What you need
- Docker with the compose plugin, and a kernel with WireGuard (any Linux since 5.6; Docker Desktop includes it). The probe is in GETTING_STARTED.md, under Setup.
- Nothing else on the host. Python, fastatp and the page are built into the
images. Geese is the exception: its turns in the app are taken by
tools/hands.pyin a headless Chrome on the host, so it needs Chrome or Chromium on the path and fastatp installed here (uv sync).
What it is tested against
The fastatp in this repository, the commit you have checked out: the lab
image installs the package from the tree, with its dependencies exactly as
the repo's uv.lock pins them, hashes checked. No guide names a version.
The guides quote the lab's files in full, and uv run pytest checks that
the quotes match the files (tutorials/tools/md_embed.py --write <guide>
updates a guide after the lab changes).
Reading the output
- Exit codes are the guide's own, and the run checks them.
exit 1onfollow.py ... refusedorping ... 100% packet lossis the guide working: those are the refusals it teaches, marked in the markdown with<!-- @demo fails -->. Any other command must exit 0. A line starting✗, and aWRONG:line at the end, name a command that did not end the way the guide says. exit -15with^Cas the last line means the guide said Ctrl-C: a command left running, like a follower, stopped where the guide stops it.- The key concepts are the guide's claims. Each one is a
> 🔑blockquote in the markdown; read the ones the output lists to explain what the run showed. - The listings are checked too. Every line the guide prints under a command block must have been printed by those commands, in the guide's order. A listing is an excerpt, so lines it leaves out are fine. Values that are new on every run (keys, DIDs made from keys, record keys, CIDs, timestamps, tunnel addresses) are compared by shape; everything else, counts and sequence numbers included, is compared exactly, apart from spacing and where a line wraps. A pass means every step ran, in order, on the right machine, ended the way the guide says, and printed what the guide shows.
- In guide two, the conductor also commits records the machines answer:
conductor commits ...then└ alice answered: at://..., orconductor conducts ... x30for a sequence it signs one record at a time. Each member it names must answer with a signed record in its own repo, except one the guide marks as meant to stay silent; a✗names any that did not. - In guide four,
youlines are the viewer's turns in the app, each with the request that ended it:└ POST /signup 201, or└ GET /xrpc/com.atproto.sync.getRepo 404for the second device refused. A turn skipped, or never ended, is wrong;hands:lines are whathands.pydid. - A full run of Getting Started is 46 commands and 21 key concepts.
Other ways to run
| Command | What it does |
|---|---|
./lab.sh test |
the whole guide, headless, as above |
python tutorials/tools/page_check.py |
after a play, from the repository root: the conductor's page checked step by step in a headless Chrome |
SPEED=1 ./lab.sh test |
the same at reading speed (4 is the default) |
./lab.sh conductor |
the same guide on a page at http://localhost:8080, for a person |
./lab.sh up |
the machines alone, for running the guide's commands by hand |
./lab.sh clean |
remove everything |
Tutorials
| Guide | Runs headless | What it shows |
|---|---|---|
| GETTING_STARTED.md | yes | sovereign peers, signed records, verified following, a private channel behind WireGuard |
| CONDUCTOR_AND_ORCHESTRA.md | yes | orchestrating work with signed records: a task in the asker's repo, its result in the worker's, sequence and fan-out, a worker that was offline catching up |
| HOOT.md | yes | tool calling as signed records, against MCP and A2A: one open request and sealed bids, an allowance the bank checks, each agent composing who reads which private repo, and a chain of custody checked step by step back to the start |
| GEESE.md | yes, with Chrome | authentication with no secret on the wire: a pen made in the browser that never leaves it, sign-up and log-in by signature, a second device let in and out by a record, and the incentives signed records let a builder compose |
The guides are a series, each building on the last, and they arrive one at a time.
Do not
- Run the lab on a real network. It uses plain
httpfor DID documents, which is safe only on the private bridge Docker creates. - Treat the demo engine's players as a pattern to copy. They run any command the conductor signs, which is remote execution authorized by a signature: fine on the user's own computer, nowhere else.