Skip to content

Latest commit

 

History

History
30 lines (28 loc) · 3.64 KB

glossary.md

File metadata and controls

30 lines (28 loc) · 3.64 KB

Glossary

One definition per term, as used throughout the ACP docs. When a doc disagrees with this file, one of them has a bug — open an issue.

Term Definition
ACP Agent Control Plane — this project. The coordination tier: task lifecycle, atomic claiming, leases, recovery. No LLM.
Orchestrator The LLM-backed master agent (external to this repo) that decomposes user goals into tasks and writes them into ACP.
Worker / worker agent An external process (typically a Docker container wrapping an AI tool) that polls, claims, executes, and completes tasks.
Vault The shared filesystem directory that is the system's single source of truth: tasks/, agents/, knowledge/, logs/, results/, scratch/.
Task A JSON file describing one unit of work. Its state is the directory it sits in; the status field mirrors it.
Claim Atomically taking ownership of a pending task, via rename through .wip/. Exactly one worker can win a claim.
Lease The time-bounded right to work on a claimed task (lease_expiry, default 30 min). Expires unless renewed.
Heartbeat The cooperative half of failure detection: the periodic renew_lease() call (and the agent record's last_seen_at update).
.wip/ (work in progress) The staging directory inside tasks/. Every mutation renames the task file here, rewrites it, and renames it onward — the mechanism enforcing "a task exists in exactly one place." See Task State Machine §6.
Acquire / settle The two renames bracketing every mutation: into .wip/ (acquire — exactly one winner), then to the destination state directory (settle).
Janitor The RecoveryController phase that returns .wip/ files abandoned by crashed actors (older than wip_timeout) to the directory named by their status.
RecoveryController Reconciliation loop: re-queues or fails expired-lease tasks, runs the janitor, warns on stale pending tasks.
VaultController Reconciliation loop: quarantines task files that fail to parse or violate invariants.
AgentObserver Reconciliation loop: logs warnings for agents with stale heartbeat records. Observes only.
Reconciliation Correctness by periodically comparing actual state to desired state, Kubernetes-style — as opposed to depending on events being delivered. Principle 4.
Role A capability tag on a task (e.g. coder). Empty role = any worker may claim.
Capabilities The list a worker declares; it claims only tasks whose role is empty or in this list.
retry_count Times a task has been re-queued by lease-expiry recovery. At max_retries, the next expiry fails it permanently. Not touched by voluntary fail()/release().
release_count Times a task has been voluntarily released. Past max_releases it fails as a poison pill.
Poison pill A task the current worker pool can never complete, detected by release ping-pong and failed explicitly instead of looping.
Lease lost (ErrLeaseLost) The contract telling a worker its task was re-queued or re-claimed: stop work, discard results, never report.
At-least-once execution ACP's honest execution guarantee: a task may run more than once across lease expiries; exactly one completion is recorded. Exclusive claim + exclusive completion, not exactly-once side effects.
Terminal state done (forever) and failed (except the manual retry transition back to pending).
Pull model Workers choose and claim tasks; ACP never assigns work to a specific worker.