Skip to content

The learning library

Lessons with hands-on labs on a development forge, in four tracks for developers, agent builders, operators, and security and compliance, with a deck for each.

The guides under Using af each show one task. The lessons here teach a whole way of working, one step at a time, and every step is a lab you run yourself on a development forge on your own machine. Each lesson says what you will be able to do at the end, takes the time it says, and ends with exercises and a short check of what you learned.

Every command in a lesson, and its output, is run against the real binaries each time this book is built, so what you see is what your terminal prints. IDs and times differ on your machine.

Before any lesson

You need a terminal, and af and af-server on your PATH. Nothing else: a development forge needs no identity provider, certificate or recovery keys. Each lab starts its own forge:

af-server --dev

Run it in an empty directory you can delete afterwards. It keeps its data in af-dev there, and prints the line to load into a second terminal, where you run af. The quickstart walks through this once in five minutes; every lesson assumes you have done it.

Tracks

Track For Lessons Time You will be able to
Developer Anyone who writes code with af 7 about 2.5 hours Land changes, shape stacks, resolve conflicts, read history, search the code, get a change approved, and take work back
Agent builder People who connect AI agents to the forge 6 about 2.25 hours Connect an agent through af mcp, limit what it may do, and read what it did
Operator People who run af-server and af-runner 5, 4 written about 2.5 hours Stand up a forge, look after its vault and keys, sign people in, run tests, and purge what must go
Security and compliance Auditors, security engineers, compliance owners 5 about 2 hours Follow the identity tree, verify a receipt, produce a compliance report, and read the landing scan

Start with the developer track whatever your role: every other track assumes its first two lessons.

Developer

Each lesson starts a fresh forge, so you can take them in any order once you have done the first two.

Lesson Time You will be able to
1. Your first landing 20 min Start a forge, make a change in a workspace and land it on main, and say what the forge checked on the way
2. Changes and stacks 25 min Build a stack of changes, rewrite a change below you, and land the stack
3. Rebasing and conflicts 25 min Follow main as it moves, read a conflict as jj writes it, and resolve it
4. History and annotate 20 min Select commits with revsets, see what one changed, and find the change behind a line
5. Search 15 min Search main’s code by text and by file, and know what search may show you
6. Approvals 20 min Ask a person to approve a change, and see why a change waits
7. Take it back 20 min Undo an operation, restore files of an open change, and revert a landing
8. Workspaces and their paths 20 min Hold only the paths you work on, change them with af sparse, and say where an edit goes when its path leaves

Agent builder

The lab plays the agent’s part from a shell: a small MCP client, written in the first lesson, speaks to af mcp as an agent does, so you see every call and every answer.

Lesson Time You will be able to
1. Drive the forge as an agent 25 min Make an agent’s calls one at a time: open a workspace, change a file, land it, look around and undo
2. An agent of its own 25 min Give an agent its own key, identity and limits with start_agent, see the forge hold it to them, and stop its line
3. Narrow, fold and compare 25 min Narrow an agent’s workspace with sparse, fold a fix into the change it belongs to with absorb, and compare two operations with op_diff
4. Restricted folders 20 min Keep an agent out of a folder, see that it is given nothing of it, not even names, and read the answer that names a file it may not write
5. Keys for agents 20 min Start an agent limited to some of the organization’s keys, have it encrypt and decrypt through the vault, and see it refused the rest
6. An agent’s record 20 min Find an agent’s operations under its own ID, tell its writing from its claims, read its birth and stop in a report, and who answers for it

Operator

A development forge runs on one machine and signs you in itself, so these lessons cover what one machine shows, a cluster of three nodes on it included. Unsealing from recovery shares and signing people in through an identity provider need more than a laptop: Running af-server covers them.

Lesson Time You will be able to
1. The vault and its keys 25 min Say where the forge’s keys live, rotate the cluster’s key, and serve your organization’s keys for encryption and post-quantum signing
2. Repositories, folders and runners 25 min Create a repository, restrict a folder, and enroll and stop a runner
3. A cluster 30 min Enroll and join two more nodes, see every group settle on three voters with af cluster peers, land through any node, and keep landing with the leader down
4. Signing people in 30 min Connect an OpenID Connect provider and require a second factor. Planned: it needs an identity provider; until then, Signing people in covers the setup
5. Purging what must go 20 min Purge a committed secret’s contents for good while every commit keeps its ID, see a revert that would bring them back refused, and find the purge in a report

Security and compliance

Lesson Time You will be able to
1. The forge’s record 20 min Say what the forge records, follow the event stream, and produce a compliance report
2. The identity tree 25 min Say who answers for any agent, read what a report says of births, stops and sign-ins, and cut off a line
3. Verifying a receipt 25 min Verify a released file against its provenance with the organization’s keys and the log alone, say what the first verification pins, and see a changed file, a wrong name and an unpublished release fail
4. The landing scan 20 min See the scan stop a secret before it lands, read what it recorded of it (a hash, never the secret), and who may clear a finding
5. Keys an auditor can account for 20 min List the organization’s keys and who may use each, see whose word a grant takes effect on and when it waits for someone other than its asker, show a disabled key used by no one, and check a post-quantum signature with a key that never leaves the vault

Decks

Each deck is a page of this book you can present full screen, a slide at a time, with the arrow keys; printing it gives one slide a page. Its demos run against the real binaries each time the book is built, so they show what a room will see.

Deck For Slides
Atoll Forge in 20 minutes Anyone: the problem, the design, a live demo, where to go next 13
The developer track Teaching the developer track, lesson by lesson 17
The operator track Teaching the operator track, lesson by lesson 12
The agent builder track Teaching the agent builder’s lessons, one by one 16
The security and compliance track Teaching the security and compliance lessons, one by one 16

Each deck grows with its track’s lessons.

Type to search…

↑↓ navigate↵ selectEsc close