This guide is for readers who want to inspect valid protocol artifacts. You will see complete examples, including a Federation TaskEnvelope and learn how to verify each one.
The examples are stored under priv/examples/. Their files are the source for the JSON shown here.
Timestamp values shown in these examples are fixed artifact data, not readings from the current clock.
In a Mix project with the package installed, start iex -S mix. Run each Elixir block below in that session.
Formatted JSON is for reading, not wire-ready bytes. Download the exact canonical files from the linked release sources; added whitespace or a trailing newline changes the byte representation. See canonical-byte construction.
Echo Blueprint
Download the exact canonical file.
This Blueprint declares one read capability, one input port, one output port, and operational ceilings. Its cost amount is expressed in millionths of USD.
{
"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"
]
}Decode the Blueprint and compare its canonical bytes with the file:
bytes = File.read!(Application.app_dir(:agent_blueprint_protocol, "priv/examples/echo-blueprint.json"))
{:ok, blueprint} = AgentBlueprintProtocol.decode_blueprint(bytes)
{:ok, ^bytes} = AgentBlueprintProtocol.Blueprint.canonical_bytes(blueprint)Echo Deployment Manifest
Download the exact canonical file.
This manifest records environment-specific bindings and bounds for the echo Blueprint.
{
"authority_requirement": {
"adapter_identity": "example.adapters.authority",
"profile_identity": "example.profiles.read-only"
},
"blueprint_release": {
"blueprint_id": "example.demo/echo",
"content_digest": "sha-256:b1Aw4cU5AbV9k8bdbZkRCsySDHGpTAwB-aQm57Wh7B8",
"release_number": 1
},
"build_identities": [
{
"digest": "sha-256:5JPgXuHZCEXmNHvHfvBfM6jAp9JiMTvqf6y3n4YchnY",
"kind": "package",
"name": "agent_blueprint_protocol",
"version": "0.1.0"
}
],
"data_bindings": [
{
"as_of": {
"max_age_ms": 86400000,
"mode": "required"
},
"classification_ceiling": "internal",
"logical_dataset": "shape_orders"
}
],
"deployment_digest": "sha-256:tWFr0caS0AWFJd2UcB9gZv3kNjIUP8xZ08WWM_h8xgo",
"effect_owner": {
"adapter_identity": "example.adapters.effects",
"idempotency": {
"key_derivation": "host",
"recovery": "authoritative"
}
},
"eligibility": {
"beneficiary": {
"band": "operator",
"kind": "beneficiary_band",
"policy": "example.policies/principal-bands"
},
"owner": {
"band": "operator",
"kind": "owner_band",
"policy": "example.policies/principal-bands"
},
"runtime_principal": {
"band": "operator",
"kind": "runtime_band",
"policy": "example.policies/principal-bands"
}
},
"evaluation_binding": {
"adapter_identity": "example.adapters.evaluations",
"corpus": {
"digest": "sha-256:zenFB2mNSBmxJWG4DLIWcNyvFdf85m5Ic-BUmWOU02w",
"name": "example.corpora/echo"
}
},
"extensions": {
"critical": {},
"optional": {}
},
"host_bounds": {
"approval_trait": "none",
"authority_trait": "none",
"classification_ceiling": "internal",
"disclosure_ceiling": "summary",
"effect_impact_ceiling": "ordinary",
"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
},
"lifecycle": {
"activated_at": "2026-08-20T00:00:00Z",
"state": "active"
},
"model_policy": {
"allowed_model_roles": [
"reasoner"
],
"max_cost": {
"amount": 500,
"currency": "USD"
},
"max_tokens": 50000
},
"protocol_revision": 1,
"required_core_fields": [],
"scope_projection": {
"adapter_identity": "example.adapters.scope"
},
"signer_custody": "host_managed",
"tool_bindings": [
{
"adapter_identity": "example.adapters.tools",
"attested_at": "2026-08-20T00:00:00Z",
"descriptor_digest": "sha-256:VpMcbixeDnkz4W6WwFyJVm3BG_n8s1jEZANpZLvZEKI",
"logical_operation": "example.demo.read_shape",
"schema_digest": "sha-256:4aRchkjuUMTF6Sm4-oCuZQkzYHP0CvJfGLFHhdjHvY0"
},
{
"adapter_identity": "example.adapters.effects.tools",
"attested_at": "2026-08-20T00:00:00Z",
"descriptor_digest": "sha-256:VpMcbixeDnkz4W6WwFyJVm3BG_n8s1jEZANpZLvZEKI",
"logical_operation": "record_summary",
"schema_digest": "sha-256:4aRchkjuUMTF6Sm4-oCuZQkzYHP0CvJfGLFHhdjHvY0"
}
]
}Decode the Deployment Manifest and compare its canonical bytes with the file:
bytes = File.read!(Application.app_dir(:agent_blueprint_protocol, "priv/examples/echo-deployment.json"))
{:ok, deployment} = AgentBlueprintProtocol.decode_deployment(bytes)
{:ok, ^bytes} = AgentBlueprintProtocol.Deployment.canonical_bytes(deployment)Signed Blueprint
Download the exact canonical file.
This example adds a signature entry to the echo Blueprint. Decoding checks the artifact structure and content digest. The signature verification operation also needs the public key supplied by the caller.
{
"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": [],
"signatures": [
{
"protected": {
"alg": "EdDSA",
"b64": false,
"crit": [
"b64"
],
"kid": "example-demo-signing-key"
},
"signature": "RtupJk1q7QGE3p6ZSXdKGL1WTOcwS4gxVZLxjAPEmBdldOOMzOB-A1PgmujoupqyQWrNHZ_MqKNf-n4KwpliCg",
"signed_attributes": {
"algorithm": "Ed25519",
"content_digest": "sha-256:b1Aw4cU5AbV9k8bdbZkRCsySDHGpTAwB-aQm57Wh7B8",
"created_at": "2026-08-20T00:00:00Z",
"key_id": "example-demo-signing-key",
"purpose": "blueprint"
}
}
],
"triggers": [
"manual"
]
}Decode it and compare the canonical bytes:
bytes = File.read!(Application.app_dir(:agent_blueprint_protocol, "priv/examples/signed-blueprint.json"))
{:ok, blueprint} = AgentBlueprintProtocol.decode_blueprint(bytes)
{:ok, ^bytes} = AgentBlueprintProtocol.Blueprint.canonical_bytes(blueprint)This shipped signature uses the accepted EdDSA header spelling. The compose guide uses the preferred Ed25519 header spelling.
Extension Blueprint
Download the exact canonical file.
This example carries an optional classification-labels namespace in the extension member.
{
"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:xKEhhM60EgG3BcYN09DQDxP8ktzD7DLWVS_igana6D8",
"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": {
"com.example.vendor/labels": {
"labels": [
"pci"
]
}
}
},
"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"
]
}Decode it and compare the canonical bytes:
bytes = File.read!(Application.app_dir(:agent_blueprint_protocol, "priv/examples/extension-blueprint.json"))
{:ok, blueprint} = AgentBlueprintProtocol.decode_blueprint(bytes)
{:ok, ^bytes} = AgentBlueprintProtocol.Blueprint.canonical_bytes(blueprint)Federation TaskEnvelope
Download the exact canonical file.
This complete Federation TaskEnvelope carries task identity, state, and receipt commitments. Its namespace and carrier fields are described in the federation guide.
{
"audience": "audience-gamma",
"authority_proof_references": [
"sha-256:z6LiRffa-LUotScQYk44zSuR3vt9ATMBum0aZTlHffs"
],
"blueprint_digest": "sha-256:UqU_xO8mUo_SEKFyllPQx5viwqjUU0jymkOUDjoSJVY",
"compatibility_reference": [
{
"identity": "0.1.0-dev.abc",
"name": "abp"
}
],
"deployment_digest": "sha-256:TYZzBKU6fPfMSOS8baiol9713E1x8oPzO-Mkuc1YLhE",
"evidence_receipt": {
"checkpoint_history_commitment": "sha-256:3cwpt1lQKYPAHLc_wv2p7lFh87JNs1L_E1sFChFvTvU",
"result_digest": "sha-256:KtL0SPnMTlbOZe4E-n3gl5BqdaQ5HbHZFwVUHjXmA_w",
"signature": {
"protected": {
"alg": "EdDSA",
"b64": false,
"crit": [
"b64"
],
"kid": "remote-key"
},
"signature": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"signed_attributes": {
"algorithm": "Ed25519",
"content_digest": "sha-256:d3SekhO2NaIJVzB0fGcsV5xgCA93UOrVZ8eRiQDdEjs",
"created_at": "2026-08-22T00:00:00Z",
"key_id": "remote-key",
"purpose": "federation-envelope"
}
},
"terminal_commitment": "sha-256:BshcxIagBOfO1pAFNXbJY5qIFIHhl2lMyq6lIhH8Pfo"
},
"idempotency_identity": "idem-9c2d41",
"identity_mapping_evidence": {
"claims": [
{
"kind": "correlation",
"value": "local-subject-42"
}
]
},
"input_commitment": "sha-256:8Y14oMoIRWfn2QpbNC53tl0Tj1Cwly6fE-lyVdNvUFw",
"issuer": "issuer-alpha",
"recovery_handle": "task-7f3a2c",
"resource_policy": {
"attempts": 3,
"concurrency": 2,
"cost": 500,
"tokens": 1000
},
"result_classification_ceiling": {
"level": "internal",
"markers": []
},
"result_schema": "sha-256:uVovxlNrTlxeNx_xEbpmFAYhei42RfJPTtRTmFcz944",
"subject": "subject-beta",
"task_identity": "task-7f3a2c",
"terminal_state": "completed",
"time_policy": {
"elapsed_ms": 60000
}
}Decode it and compare the canonical bytes:
bytes = File.read!(Application.app_dir(:agent_blueprint_protocol, "priv/examples/federation-envelope.json"))
{:ok, envelope} = AgentBlueprintProtocol.decode_federation_envelope(bytes)
{:ok, ^bytes} = AgentBlueprintProtocol.Federation.canonical_bytes(envelope)The conformance corpus separately includes valid terminal commitment and conflict cases.
Verify the corpus
From the repository root, run the conformance runner to check all shipped examples and fixtures:
mix conformance.verify