Appearance
Concepts ​
The ideas you need before the architecture, in one screen and a glossary. For agents, the file and test evidence: Concepts: the evidence.
Run, step, journal, lease. A run is one execution of an agent, and its id is the A2A task id. The agent works in steps: each side effect runs inside ctx.step, and its outcome is written to the journal. After a crash the run is replayed, recorded outcomes are returned and nothing runs twice. A worker takes a due run with a lease, a claim for a time. The lease only avoids wasted work: correctness is the version check on every commit, so a worker whose lease expired cannot overwrite newer state. Specified in the mental model, the worker and the run lifecycle.
Store and notifier. Everything durable goes through the Store trait: runs, journal, leases, push configs. There are PostgreSQL, MongoDB, SQLite and in-memory stores, and adam-store-testkit holds the conformance suite every store must pass. A Notifier carries hints between processes ("a run is due"); it is never the truth, polling and the store decide, and adam-notify-testkit holds its suite. Swapping either is a build-time choice. See ports and implementations, the run store and signals and events; to write a new store, see the store adapters reference.
Host roles. One process can be the control plane (the network front), the workers (the loops that claim runs), or both. Role is a closed enum (all, control-plane, worker) and adam-host supervises the components of the role; adam-service's serve is the whole process for every binary. See processes and roles.
Agent folder. An agent can be only a folder: instructions.md and a card, plus optional skills/, subagents/, commands/ and mcp.json. adam-agent-fs parses and validates it, adam-assembly binds it to a running agent, and the adam-agent binary serves any folder. See Agent files.
#[tool], skills and subagents. A Rust function marked #[tool] (the adam-macros crate) becomes a tool the model can call. A skill is an Agent Skills SKILL.md the model loads when it needs it. A subagent is another agent file the parent calls as a tool, and it runs as a durable child run of its own. See the #[tool] contract, skills at run time, subagents at run time and child runs.
The A2A server and its extensions. adam-a2a serves A2A 1.0 over JSON-RPC and the REST binding, with one handler behind both; it hands each request to a TaskBackend. An extension is an optional feature the agent's card lists by URI (steps, streamed text, usage, ...) and a client activates; a client that does not know one ignores it. See the A2A server, the path of a task and Extensions.
Glossary ​
| Term | In one line | ADR |
|---|---|---|
| Run | One execution of an agent; RunRecord in crates/adam-core/src/store/mod.rs | 0055 |
| Step | One journaled side effect, Ctx::step in crates/adam-runtime/src/ctx.rs | 0061 |
| Journal | The recorded outcome of each step, JournalEntry in crates/adam-core/src/store/mod.rs | 0076 |
| Lease | A worker's time-limited claim on a due run, Store::claim_due in crates/adam-core/src/store/mod.rs | none of its own; architecture |
| Store | The durable-state port, Store in crates/adam-core/src/store/mod.rs | 0053 |
| Notifier | The hint port between processes, crates/adam-runtime/src/notify.rs | none of its own; architecture |
| Role | Which components a process runs, crates/adam-host/src/role.rs | 0001 |
| Placement | Where the files of a run live, and whether it stays on one worker, crates/adam-host/src/placement.rs | 0002 |
| Agent folder | An agent as files, AgentDef in crates/adam-assembly/src/def.rs | 0004 |
#[tool] | The attribute that makes a function a tool, crates/adam-macros/src/lib.rs | none of its own; agent files |
| Skill | A SKILL.md loaded on demand, crates/adam-assembly/src/skills.rs | 0044 |
| Subagent | An agent called as a tool, crates/adam-assembly/src/subagent.rs | 0045 |
| TaskBackend | What the A2A server calls, crates/adam-a2a/src/backend.rs | 0006 |
| Extension | An optional card feature by URI, crates/adam-a2a/src/extensions.rs | 0006 |