Agent Blueprint Protocol

CI Hex Version License

Agent developers need a portable format for describing an agent's capabilities and connecting that description to a deployment. The Blueprint format records capabilities, ports, and bounds. A Deployment Manifest binds one Blueprint release to an environment. A Federation TaskEnvelope carries a task record between supported transports.

Every successful verification is non-authorizing: it reports protocol facts and never grants permission to act.

Why use ABP with the agents you already run

ABP does not replace your agents, prompts or runtime. It gives each agent a signed description that other programs can check: your deployment pipeline, the host that runs the agent, or an agent at another company.

A package lockfile is a good comparison. You still write the code, but the lockfile records exactly which version of each dependency you ship, and a checksum mismatch fails the build. ABP records the same kind of facts about an agent: the tools it may call, the data classes it may handle, the effects it may have, and how far it may go in attempts, depth, fan-out, time, tokens and cost. Like the rating plate on a machine, the description states the limits. Your host enforces them.

The question Your agents today With ABP added
Which agent is this, exactly? A prompt version and a model name in a repository. A small edit can go unnoticed. A Blueprint release has an ID, a release number and a content digest. Changing any declared capability or limit changes the digest.
What is it declared to do? Limits written as instructions to the model, such as "never send more than ten messages". Capabilities, data classification, effects and limits as typed fields a program reads, not text a model interprets.
Does this deployment stay within what was declared and within my own limits? Compared by hand, or not at all. Reconciliation intersects three sets of limits: the Blueprint's, the deployment's and your host's. The result is never wider than any of them. Narrowing a protected limit, such as data classification or effect impact, fails unless you acknowledge it.
Are these the same tools that were reviewed? A tool's description can change after review, and the agent follows the new text. The Deployment Manifest pins each tool by a digest of its description and names the exact builds it expects. Your host reports what it observes. A mismatch fails, and an observation older than your limit can fail too.
Who published it? Whoever can write to the repository. Ed25519 signatures, checked only against public keys from your own trusted inventory, never keys the artifact supplies.
What did the check cover? A log line that says "ok". The evidence lists the checks that ran and the checks that did not, such as an unsigned artifact or a missing observation. A partial check never reads as a full one.
A task passes to another agent or company. The two sides share messages and a task ID. A Federation TaskEnvelope travels in A2A task metadata or MCP _meta. It names the Blueprint and Deployment digests, a digest of the task input and a signed final receipt. The receiver checks the signature against keys it trusts.
Can someone else implement it? Each team's format is its own. An open specification, Elixir and TypeScript implementations, and a shared conformance corpus that both implementations pass.

A real case: the tool that changed after review. Your team reviews an agent that answers questions from a shared document store. It calls a search tool from another vendor, and the tool's description says it only reads documents. The review passes. Weeks later the vendor updates the tool, and its description now tells the model to also send each result to an address the vendor controls. Nothing in your repository changed, so no review runs, and the model reads the new description on its next call.

With ABP, the Deployment Manifest you published after the review pins the search tool by a digest of the description you reviewed. When your host next checks the deployment, it reads the tool's current description, computes its digest and passes it in. The digests differ, so the check fails with binding_descriptor_mismatch. ABP caught the change. Your own code reads the current description from the tool, decides what a failure means (hold the deployment, alert someone) and runs the new review.

Where ABP adds little

Where ABP earns its place

What ABP does not do

Related open protocols. Each does one job and can be used without the others. ABP describes an agent and its declared limits so a host can check them. CAP records what the parties agreed and which version is in force. BAP lets a service check a signed grant for each action an agent attempts. RequestSeal lets a receiver check which key signed each HTTP request or response and that the signed parts arrived unchanged.

Artifacts

This is the complete example from priv/examples/echo-blueprint.json, formatted for reading:

{
  "blueprint_id": "example.demo/echo",
  "capability_requirements": [{"approval_trait":"none","argument_schema":{"type":"object"},"authority_trait":"none","classification_ceiling":"internal","impact_class":"ordinary","operation_family":"example.demo.read_shape","operation_kind":"read","result_schema":{"type":"object"}}],
  "ceilings": {"max_attempts":3,"max_concurrency":2,"max_cost":{"amount":1000,"currency":"USD"},"max_depth":8,"max_descendants":64,"max_elapsed_ms":60000,"max_fan_out":4,"max_tokens":100000},
  "classification_ceiling": "internal",
  "content_digest": "sha-256:b1Aw4cU5AbV9k8bdbZkRCsySDHGpTAwB-aQm57Wh7B8",
  "effect_intents": [{"impact_class":"ordinary","logical_operation":"record_summary","operation_kind":"mutation"}],
  "evaluation_assertions": [{"kind":"output_schema","port":"result","schema":{"type":"object"}}],
  "extensions": {"critical":{},"optional":{}},
  "input_ports": [{"classification_ceiling":"internal","name":"request","required":true,"schema":{"type":"object"}}],
  "output_contract": {"classification_ceiling":"internal","port":"result"},
  "output_ports": [{"classification_ceiling":"internal","name":"result","required":true,"schema":{"type":"object"}}],
  "producer": {"created_at":"2026-08-20T00:00:00Z","identity":"example.demo","toolchain":"example.demo.toolchain"},
  "protocol_revision": 1,
  "release_number": 1,
  "required_core_fields": [],
  "triggers": ["manual"]
}

Formatted JSON is for reading. Artifact decoding requires canonical bytes, including no added trailing newline. Decode ordinary JSON with Json.decode/1 and encode the tagged value with Canonicalization.encode/1; content changes also require recomputing the artifact digest. See the producer walkthrough.

Verification decodes bounded JSON, negotiates protocol support, binds related artifacts, reconciles host inputs, and returns evidence.

Which package?

Language Package Install
Elixir Hex agent_blueprint_protocol {:agent_blueprint_protocol, "~> 1.6.0-rc.1"}
TypeScript npm @agent-blueprint-protocol/verifier TypeScript setup

The Elixir package requires Elixir 1.19 or newer on Erlang/OTP 27, 28, or 29. The npm package requires Node.js 24 or newer. Both implement protocol revision 1; the stability policy lists the tested combinations.

From a Mix project that depends on the package, read its shipped example:

example_path = Application.app_dir(:agent_blueprint_protocol, "priv/examples/echo-blueprint.json")
bytes = File.read!(example_path)
{:ok, blueprint} = AgentBlueprintProtocol.decode_blueprint(bytes)
AgentBlueprintProtocol.canonical_bytes(blueprint) == {:ok, bytes} # => true

The conformance corpus contains 748 cases. It is a collection of inputs and expected results for implementations. See the glossary.

TypeScript

Install the verifier and run its CLI to check the embedded conformance corpus.

npm install @agent-blueprint-protocol/verifier@1.6.0-rc.1
npx @agent-blueprint-protocol/verifier@1.6.0-rc.1

npm view @agent-blueprint-protocol/verifier dist-tags lists the published version for each npm tag.

Import decodeBlueprint, decodeDeployment, and decodeFederationEnvelope from @agent-blueprint-protocol/verifier to read artifacts. Use reconcile to check a Blueprint and Deployment Manifest against host inputs and verifyCommitment to check a terminal receipt against receiver inputs. The TypeScript guide has runnable examples, CLI modes, and the full export reference.

Documentation

Status

The 1.x line follows its stability promise: documented APIs remain stable within the major version, and deprecations follow the stability policy.

License

Apache-2.0, maintained by BaseLabs Holdings LLC. See LICENSE and NOTICE, and spec/IPR.md for contributions and use of the name.

Contributing

See CONTRIBUTING.md for development setup and contribution guidance.