Reference Implementation
Beyond abstract documentation, the Agent Control Protocol provides a minimal, conceptual runtime implementation demonstrating exactly how its constitutional invariant works in software.
Execute(request) ⇒ ValidIdentity ∧ ValidCapability ∧ ValidDelegationChain ∧ AcceptableRisk
Conceptual Runtime Focus
The reference implementation includes core modules showing how an ACP endpoint processes incoming requests. It is intentionally minimal, designed to illustrate the structural flow rather than act as a drop-in production gateway. Key components demonstrated include:
example-request.json: The expected JSON payload layout containing signatures and capability requests.validator.ts: The code enforcing the cryptographic checks on identity, delegation chains, and policy parameters.acp-runtime.ts: The handler function that processes the validation output and decides whether an action executes.example-run.ts: A minimal testing script running a mock scenario against the validator.
Explore the Codebase
The complete reference implementation is
available in the protocol repository under the impl/ directory.