Skip to content

Overview

Loops is a three-layer protocol stack for AI coordination. It separates three different concerns that are often bundled into one agent application:

LayerProtocolConcernTypical implementation
L2HACPHuman-agent collaborationTask and review platforms
L1AAPAgent-agent delegationA2A runtimes, ACP brokers, agent meshes
L0CAPCapability invocationMCP servers, Skills runtimes

The central claim is simple: a platform should be able to change a capability provider without changing human review semantics, add a new agent runtime without rewriting task governance, and add a new UI channel without changing execution rules.

Problem

Most agent products are vertical stacks. Provider calls, tools, channels, human approvals, artifact delivery, and audit logic live in one code path. That works while the product is small. It becomes brittle when each concern evolves at a different speed.

Models change weekly. Communication channels change quarterly. Governance, identity, audit, and review processes change slowly and must remain reliable. A single runtime abstraction cannot carry all three rhythms without coupling them.

Model

Loops treats coordination as a protocol stack:

Loops Protocol Stack: HACP above AAP above CAP, joined by explicit inter-layer contracts.

The ASCII view below traces the operations that flow down through the stack:

text
Human principal

  │ HACP: task.assign, checkpoint.raise, review.submit, audit.replay

Agent worker

  │ AAP: discover, delegate, block, resume, handoff

Capability source

  │ CAP: list, describe, invoke

Tool or Skill implementation

The layers are deliberately narrow:

  • HACP defines the lifecycle of human-owned work: tasks, checkpoints, ownership, reviews, artifacts, ledgers, and audit events.
  • AAP defines the minimum agent-to-agent surface needed by HACP: discovery, delegation, blocking, resuming, handoff, and correlated run events.
  • CAP defines the minimum capability surface needed by agents: manifests, versioned capability references, invocation results, and capability errors.

Design Principles

One layer, one responsibility

Each layer owns one coordination axis. HACP owns accountable work. AAP owns agent delegation. CAP owns capability invocation. A layer may expose events and contracts upward, but it does not import the semantics of the layer above it.

Dependencies flow downward

The allowed dependency direction is:

text
HACP (L2) -> AAP (L1) -> CAP (L0)

CAP never knows that AAP or HACP exists. AAP never knows human review semantics except through explicit correlation and block/resume contracts. HACP never calls a tool directly.

Cross-layer communication uses contract objects

Layers do not read or mutate each other's internal state. They coordinate through explicit objects:

ContractPurpose
CapabilityRefLets upper layers reference a capability by (capability_id, version) without seeing transport details.
TaskID = Run.correlation_idCarries HACP task identity through every AAP run and event.
Checkpoint -> block/resumeMaps a human decision point to an agent run pause and restart.
Ownership -> handoffMaps task ownership transfer to AAP handoff while preserving correlation.

Forward-only state

HACP is designed for replayability and audit. Task specs, artifact versions, reviews, ledger entries, and audit events are immutable. Corrections are modeled as new entries or new versions, not as destructive edits.

What Loops Defines

Loops defines:

  • A complete HACP 0.1.0-draft protocol for human-agent collaboration.
  • AAP and CAP conformance profiles for existing agent and capability protocols.
  • The inter-layer contracts required for full-stack interoperability.
  • Conformance requirements that let implementations make precise claims.

Loops does not define:

  • A mandatory transport such as HTTP, gRPC, WebSocket, or stdio.
  • A required persistence backend.
  • A universal identity, RBAC, or billing model.
  • A UI specification for chat, web, IM, or CLI experiences.
  • A replacement for MCP, Skills, A2A, ACP, or agent runtime internals.

Why HACP Is New

MCP and Skills cover agent-to-capability calls. A2A and related protocols cover agent-to-agent delegation. The missing protocol surface is the one that connects autonomous agents back to the people responsible for the work.

HACP fills that gap with seven first-class objects:

ObjectRole
TaskA bounded unit of work owned by a human principal.
CheckpointA decision point raised by an agent and resolved by a human.
OwnershipThe transferable assignee record for the task.
ReviewHuman feedback on an artifact.
ArtifactAn immutable deliverable with provenance and versions.
LedgerAppend-only project or organization state.
AuditImmutable protocol operation log.

Together, these objects make human-agent collaboration inspectable, replayable, and implementable across runtimes.

Specification Status

All protocol documents are currently 0.1.0-draft. Draft status means the semantic model is concrete enough to implement, but transport bindings and some open policy choices remain intentionally outside the core specification.

Start with the Implementation Guide, then use Conformance to decide what your implementation can claim.

Loops Protocol Stack · loop0 owns execution · loop1 owns interaction · loop2 owns coordination