Skip to content

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 ​

TermIn one lineADR
RunOne execution of an agent; RunRecord in crates/adam-core/src/store/mod.rs0055
StepOne journaled side effect, Ctx::step in crates/adam-runtime/src/ctx.rs0061
JournalThe recorded outcome of each step, JournalEntry in crates/adam-core/src/store/mod.rs0076
LeaseA worker's time-limited claim on a due run, Store::claim_due in crates/adam-core/src/store/mod.rsnone of its own; architecture
StoreThe durable-state port, Store in crates/adam-core/src/store/mod.rs0053
NotifierThe hint port between processes, crates/adam-runtime/src/notify.rsnone of its own; architecture
RoleWhich components a process runs, crates/adam-host/src/role.rs0001
PlacementWhere the files of a run live, and whether it stays on one worker, crates/adam-host/src/placement.rs0002
Agent folderAn agent as files, AgentDef in crates/adam-assembly/src/def.rs0004
#[tool]The attribute that makes a function a tool, crates/adam-macros/src/lib.rsnone of its own; agent files
SkillA SKILL.md loaded on demand, crates/adam-assembly/src/skills.rs0044
SubagentAn agent called as a tool, crates/adam-assembly/src/subagent.rs0045
TaskBackendWhat the A2A server calls, crates/adam-a2a/src/backend.rs0006
ExtensionAn optional card feature by URI, crates/adam-a2a/src/extensions.rs0006