From cfa2673f67505ee913d53b62067074dafbf48d5c Mon Sep 17 00:00:00 2001 From: Imran Siddique <45405841+imran-siddique@users.noreply.github.com> Date: Wed, 7 Oct 2026 14:14:13 -0700 Subject: [PATCH 1/4] docs: plain-language pass on the docs site and README Every published page now opens with what it is for and who needs it, and terms are explained at first use. Deep detail moved into collapsible Technical detail blocks. Spec, schema and ADR decision text is unchanged. Roadmap lead-in notes SDK 0.15.0 (python/pyproject.toml, CHANGELOG 2026-09-30). The CLI reference intro was regenerated from its script. Co-Authored-By: Claude Opus 5.5 --- LIMITATIONS.md | 58 +++++++----- README.md | 6 +- ROADMAP.md | 38 ++++---- docs/adr/0001-rfc8785-canonical-json.md | 2 + docs/adr/0002-ed25519-standard-profile.md | 4 +- .../0003-rfc9162-merkle-domain-separation.md | 2 + docs/adr/0004-pydantic-v2-schema-modeling.md | 2 + docs/adr/0005-ml-dsa-hybrid-signature.md | 6 +- docs/adr/0006-hitl-approval-mechanism.md | 2 + docs/adr/0007-revocation-json-lines-crl.md | 2 + docs/adr/0008-conformance-level-design.md | 4 +- docs/adr/0009-spiffe-uri-agent-identity.md | 2 + ...10-runtime-attestation-freshness-proofs.md | 38 ++++---- docs/adr/0011-signature-envelope.md | 2 + ...-context-uri-moved-to-controlled-domain.md | 2 + docs/adr/0013-cbor-library-for-cose.md | 28 +++--- ...0014-fully-specified-ed25519-code-point.md | 2 + .../0015-agent-plugins-manifest-reference.md | 2 + docs/adr/index.md | 7 +- docs/api-reference/attestation.md | 6 +- docs/api-reference/cli.md | 4 + docs/api-reference/cose.md | 2 + docs/api-reference/delegation.md | 2 + docs/api-reference/index.md | 4 +- docs/api-reference/models.md | 4 +- docs/api-reference/revocation.md | 2 + docs/api-reference/signing.md | 2 + docs/api-reference/verification.md | 6 +- docs/compliance/dora.md | 32 +++---- docs/compliance/eu-ai-act.md | 41 ++++---- docs/compliance/gdpr.md | 10 +- docs/compliance/hipaa.md | 14 +-- docs/compliance/index.md | 8 +- docs/evidence-requirements-experimental.md | 4 +- docs/getting-started.md | 30 +++--- docs/index.md | 40 ++++---- docs/integrations/agent-credentials.md | 34 +++---- docs/integrations/agt.md | 12 +-- docs/integrations/autogen-crewai.md | 14 +-- docs/integrations/index.md | 22 +++-- docs/integrations/langchain.md | 12 +-- docs/integrations/openai-agents.md | 12 +-- docs/integrations/openshell.md | 30 +++--- docs/integrations/standards-landscape.md | 53 +++++++---- docs/memory-checkpoint-assessment.md | 14 +-- docs/memory-governance.md | 21 +++-- docs/operations/audit-log.md | 22 +++-- docs/operations/index.md | 8 +- docs/operations/key-rotation.md | 20 ++-- docs/operations/monitoring.md | 30 +++--- docs/spec-overview.md | 6 +- docs/sponsors.md | 6 +- docs/tutorials/ci-cd-signing.md | 16 ++-- docs/tutorials/cmcp-session-binding.md | 28 ++++-- docs/tutorials/delegation-chains.md | 14 ++- .../deploying-the-verification-endpoint.md | 28 ++++-- docs/tutorials/hardware-attestation.md | 94 ++++++++++--------- docs/tutorials/hitl-approval-workflows.md | 18 ++-- docs/tutorials/index.md | 22 ++--- docs/tutorials/revocation-and-key-rotation.md | 18 +++- docs/tutorials/server-side-verification.md | 34 +++++-- docs/tutorials/your-first-manifest.md | 12 +-- scripts/gen_cli_reference.py | 4 + 63 files changed, 616 insertions(+), 408 deletions(-) diff --git a/LIMITATIONS.md b/LIMITATIONS.md index e97daa45..8a14109e 100644 --- a/LIMITATIONS.md +++ b/LIMITATIONS.md @@ -1,47 +1,51 @@ # Known Limitations -This document describes what Agent Manifest does not do, and where layered defenses are needed. Honest scope boundaries prevent misplaced trust. +This page lists what Agent Manifest does not do, so you know where you need other protections alongside it. Read it before you rely on a manifest for a security or compliance decision. The short version: a manifest proves who approved an agent's setup and lets you check that setup at one moment; it does not watch the agent afterwards or judge whether the setup is a good one. + +The first sections are short and plain. The later sections on Azure, AMD and Intel hardware are for engineers who need the exact technical boundary. ## What the manifest does not prevent **Prompt injection at runtime** -The manifest binds the system prompt hash at deployment. It cannot detect prompt injection that occurs during a session via user input, tool output, or RAG retrieval. For runtime injection defense, use a policy engine (e.g., AGT's PromptDefense Evaluator) in addition to the manifest. +The manifest records a fingerprint of the agent's instructions (system prompt) when it is deployed. It cannot detect prompt injection, where text slipped in during a session through user input, tool output, or documents the agent looks up (RAG retrieval) tries to give the agent new instructions. For that, use a policy engine (e.g., AGT's PromptDefense Evaluator) in addition to the manifest. **Model output manipulation** The manifest attests which model version was authorized. It cannot attest that the model's responses were unmanipulated. A compromised model API endpoint could return forged outputs while the manifest remains valid. **Key compromise after attestation** -If the manifest signing key is compromised after a manifest is issued, existing manifests remain cryptographically valid until they are explicitly revoked. Key monitoring and rapid revocation are the required controls — the manifest provides the revocation mechanism but cannot detect compromise itself. +If the manifest signing key is compromised after a manifest is issued, existing manifests remain cryptographically valid until they are explicitly revoked. Key monitoring and rapid revocation are the required controls; the manifest provides the revocation mechanism but cannot detect compromise itself. **TEE side-channel attacks** -Hardware attestation proves the manifest hash was measured in silicon. It does not protect against side-channel attacks (cache timing, power analysis) targeting the TEE itself. TEE-level side-channel defense is the responsibility of the TEE platform vendor. +Hardware attestation proves the processor itself recorded the manifest's fingerprint. It does not protect against side-channel attacks (reading secrets indirectly, for example by timing the processor's cache or measuring its power use) aimed at the TEE, the protected area of the processor the agent runs in. Defending the TEE against those is the job of the chip vendor. **Operator-controlled revocation endpoint** -The revocation endpoint is operated by the manifest issuer. A compromised or dishonest issuer could fail to publish revocation records. Transparency log integration (Rekor) provides a check — verifiers should require a transparency log entry for Level 1+ manifests. +The revocation endpoint, where withdrawn manifests are listed, is run by the manifest issuer. A compromised or dishonest issuer could simply not list a withdrawal. A public append-only record (a transparency log such as Rekor) provides a check; verifiers should require a transparency log entry for Level 1+ manifests. **Policy correctness** -The policy bundle hash attests that a specific Cedar/Rego/YAML policy was in force. It does not attest that the policy is correct or that it achieves the intended security outcome. Policy review is a separate control. +The policy bundle hash shows that a specific set of rules (written in Cedar, Rego or YAML) was in force. It does not show that the rules are correct or achieve what you intended. Reviewing the rules is a separate job. **Supply chain attacks before measurement** -The container image digest is measured at TEE startup. Attacks that compromise the build pipeline before the final image is produced (e.g., compromised build runner, malicious dependency) are covered by SLSA provenance, not by the manifest attestation itself. +The fingerprint of the packaged software (the container image digest) is measured when the protected environment starts. Attacks on the build process before that package exists (e.g., a compromised build machine or a malicious dependency) are covered by SLSA provenance, a separate signed record of how software was built, not by the manifest attestation itself. ## What Level 0 does not provide Level 0 (software-only signing) is suitable for development and staging. It does not satisfy: -- DORA Art. 9 (in force today) — requires Level 1+ with HITL records -- EU AI Act Art. 15 (cybersecurity; applies from around December 2027) — requires Level 1+ -- Any claim of hardware-rooted trust — the signing key is held in software and can be extracted by a privileged operator +- DORA Art. 9 (in force today): requires Level 1+ with HITL records +- EU AI Act Art. 15 (cybersecurity; applies from around December 2027): requires Level 1+ +- Any claim of hardware-rooted trust: the signing key is held in software and can be extracted by a privileged operator ## What the SDK does not do -- **Evaluate Cedar policy** — the SDK stores and hashes Cedar bundles; evaluation requires the Cedar engine (included in AGT) -- **Store manifests** — the SDK produces and verifies manifest documents; storage, rotation, and distribution are the caller's responsibility -- **Replace a secrets manager** — signing private keys must be stored in a secrets manager (Azure Key Vault, AWS Secrets Manager, HSM); do not store them on disk without protection -- **Automatically rotate** — key rotation and manifest re-issuance must be triggered by the caller; the SDK provides the protocol but no scheduling +- **Evaluate Cedar policy**: the SDK stores and hashes Cedar bundles; evaluation requires the Cedar engine (included in AGT) +- **Store manifests**: the SDK produces and verifies manifest documents; storage, rotation, and distribution are the caller's responsibility +- **Replace a secrets manager**: signing private keys must be stored in a secrets manager (Azure Key Vault, AWS Secrets Manager, HSM); do not store them on disk without protection +- **Automatically rotate**: key rotation and manifest re-issuance must be triggered by the caller; the SDK provides the protocol but no scheduling ## Azure confidential VMs: attestation is vTPM-rooted, not direct-silicon +In short: on Azure's AMD-based confidential machines, the processor report reaches the manifest through one extra link (a virtual security chip run by Azure's own layer), and that path is supported and tested. On Azure's Intel-based confidential machines, the offline check is not supported at all. The detail follows. + Azure confidential VMs (DCasv5/ECasv5 and similar) run AMD SEV-SNP behind a Hyper-V paravisor. This changes how attestation works, and `AzureCVMProvider` (not `SEVSNPProvider`) is the correct provider there: @@ -88,6 +92,8 @@ non-paravisor TDX guest (e.g. GCP C3) for offline TDX attestation. ## Platform state: appraised only if you ask +In short: a hardware report proves which software is running, but by default this SDK does not check the settings of the machine underneath, such as whether a memory safety check ran at boot. You can turn that check on; it is off unless you ask for it. + Signature, certificate chain and measurement establish that a report is authentic and which workload it describes. **None of them say anything about the condition of the machine underneath.** A SEV-SNP report carries that separately, in @@ -134,7 +140,7 @@ Not wired in as a default does not mean it cannot gate a verdict today. does not itself invoke `appraise_platform_info()`, or anything else PLATFORM_INFO- specific. A caller can combine a successful hardware appraisal with a platform- policy appraisal before populating `context.verified_attestation_manifest_hashes` -(the same set `verify_manifest()` already checks membership in — see the field's +(the same set `verify_manifest()` already checks membership in; see the field's docstring). `appraise_platform_info()` fits that shape directly: call it next to `verify_attestation_chain()`, and only add the manifest hash when both pass. See ["Appraise platform state before trusting hardware @@ -142,7 +148,7 @@ evidence"](https://github.com/agentrust-io/agent-manifest/blob/main/docs/tutoria for the composition, and [`test_platform_info_verify_manifest.py`](https://github.com/agentrust-io/agent-manifest/blob/main/python/tests/test_platform_info_verify_manifest.py) for the pass/fail cases against a cryptographically self-consistent synthetic SEV-SNP -chain — it demonstrates that this composition is possible and that `verify_manifest()` +chain. It demonstrates that this composition is possible and that `verify_manifest()` honors it, not that the SDK enforces it for you. No change to `VerificationContext` or `verify_manifest()` is needed for this. @@ -156,6 +162,8 @@ the direction in the argument name makes that class of mistake unavailable here. ## Hardware attestation scope: boot-time binding only +In short: the hardware check describes the agent as it started. It does not keep watching, so a change made to the running agent later is not caught unless you ask the hardware for a fresh report. + Hardware attestation in this SDK proves **what was approved at agent startup**, not what the agent is doing right now. Specifically: @@ -163,7 +171,7 @@ not what the agent is doing right now. Specifically: The resulting report binds the manifest hash to the TEE's boot measurement (AMD SEV-SNP `MEASUREMENT`, Intel TDX `MRTD`, or TPM PCR values). After that call returns, the hardware is not consulted again by default. -- The boot measurement itself is **immutable** — it reflects the firmware and +- The boot measurement itself is **immutable**: it reflects the firmware and kernel image that were loaded when the TEE was initialised. No re-measurement of the TEE is possible after boot; this is a hardware property, not an SDK limitation. @@ -185,11 +193,11 @@ quote on demand. The TEE sets its caller-controlled field boot measurement. A verifier that supplies the nonce and independently computes `context_hash` can then confirm: -1. **TEE identity** — the boot measurement matches the expected launch digest -2. **Current state** — context_hash covers the live system prompt, policy, and tool catalog -3. **Freshness** — the nonce is unique per challenge, preventing replay +1. **TEE identity**: the boot measurement matches the expected launch digest +2. **Current state**: context_hash covers the live system prompt, policy, and tool catalog +3. **Freshness**: the nonce is unique per challenge, preventing replay -This is not a second boot measurement — the TEE firmware measurement never +This is not a second boot measurement; the TEE firmware measurement never changes. It is a hardware-signed freshness certificate that specific runtime state was active in the same TEE at a specific moment. @@ -200,7 +208,7 @@ caller or a runtime enforcement layer (e.g., cMCP). **TPM note:** `attest_runtime_state()` on `TPMProvider` requires a pre-provisioned Attestation Key (AK). See the docstring for provisioning steps. -SEV-SNP and TDX have no such requirement — the IOCTL is available to any process +SEV-SNP and TDX have no such requirement; the IOCTL is available to any process with access to `/dev/sev-guest` or `/dev/tdx-guest`. ## Performance @@ -210,9 +218,9 @@ Hardware attestation adds latency at agent startup (not per-request): | Provider | Typical latency | |----------|----------------| | Software (Level 0) | < 1 ms | -| TPM | 50–200 ms | -| SEV-SNP | 10–50 ms | -| TDX | 10–50 ms | +| TPM | 50 to 200 ms | +| SEV-SNP | 10 to 50 ms | +| TDX | 10 to 50 ms | | OPAQUE | not implemented (managed service not GA; provider fails closed) | Manifest verification (signature check + hash comparison) is < 5 ms in all cases. diff --git a/README.md b/README.md index 2d1afc5f..53c824ae 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,11 @@ Community updates and contributor highlights: [AgenTrust on LinkedIn](https://ww > **Developer Preview.** Launched at Confidential Computing Summit, June 23 2026. -A signed JWT proves who called an API. It proves nothing about the agent that made the call. +An AI agent is software that uses an AI model to take actions on its own. A signed login token (such as a JWT) proves who called an API. It says nothing about how the agent that made the call was set up: its instructions, its rules, its tools or its model. -Agent Manifest binds the ten artifacts that define an agent (system prompt, policy bundle, tool schemas, model identity, RAG corpus, memory state, the decision-log baseline, A2A delegation chain, supply chain provenance, and human-in-the-loop approvals) into one hardware-attestable, tamper-evident record. A third party can authenticate who signed a manifest and compare each binding with inputs it trusts; a manifest does not observe the agent after issuance. Runtime decisions remain separate TRACE or OCSF records; the manifest commits to the audit-chain root current at issuance so a verifier can join later evidence to the approved deployment without treating post-hoc evidence as deploy-time identity. +Agent Manifest is a signed record of that setup. Whoever approves an agent signs the record; anyone checking the agent later can confirm who signed it and compare each part with what is actually running. It runs on your own computer with Python, and adding hardware proof is optional. Plain-English definitions of the terms are at [agentrust-io.com/#plain-terms](https://agentrust-io.com/#plain-terms). + +In more detail, Agent Manifest binds the ten artifacts that define an agent (system prompt, policy bundle, tool schemas, model identity, RAG corpus, memory state, the decision-log baseline, A2A delegation chain, supply chain provenance, and human-in-the-loop approvals) into one hardware-attestable, tamper-evident record. A third party can authenticate who signed a manifest and compare each binding with inputs it trusts; a manifest does not observe the agent after issuance. Runtime decisions remain separate TRACE or OCSF records; the manifest commits to the audit-chain root current at issuance so a verifier can join later evidence to the approved deployment without treating post-hoc evidence as deploy-time identity. ## Quick start diff --git a/ROADMAP.md b/ROADMAP.md index 6ca05eb1..3f5516ad 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,10 +1,12 @@ # Roadmap -## Now — v0.1 developer preview (June 2026) +This page shows what Agent Manifest set out to ship first, what was planned next, and what the project will not try to do. It was laid out for the June 2026 developer preview, and several "Next" items have shipped since then: the SDK is at 0.15.0 (2026-09-30). The [changelog](https://github.com/agentrust-io/agent-manifest/blob/main/CHANGELOG.md) is the record of what has actually shipped. + +## Now: v0.1 developer preview (June 2026) Launching at Confidential Computing Summit, June 23 2026. -- Specification: all 10 artifact bindings, conformance levels 0–3, 197 conformance tests +- Specification: all 10 artifact bindings, conformance levels 0 to 3, 197 conformance tests - Python SDK: signing, verification, hardware attestation (TPM / SEV-SNP / TDX / OPAQUE), CLI - Runtime attestation freshness proofs: `attest_runtime_state()` + `verify_runtime_report()` (spec §3.3.2, ADR-0010) - Standard crypto profile: Ed25519, SHA-256, RFC 8785 @@ -13,23 +15,23 @@ Launching at Confidential Computing Summit, June 23 2026. **Not in v0.1**: TypeScript SDK, Go SDK, .NET SDK, streaming decision trace, multi-agent delegation UI, CoSAI WS4 contribution. -## Next — v0.2 (Q3 2026) +## Next: v0.2 (Q3 2026) Driven by community and early adopter feedback from the CC Summit period. Current candidates: -- **HITL approval scheme clarification** — specify whether hybrid mode applies to approver signatures; document approver key rotation -- **Policy bundle test vector** — add Merkle root test vector for composite bundles (Section 3.2.2) -- **RAG corpus poisoning precedence** — explicit rule for HITL override of `poisoning_scan.result: flagged` -- **Memory baseline TTL carve-out** — reconcile artifact-only refresh exception with the immutability rule -- **Delegation non-Cedar fallback** — static scope narrowing for verifiers without Cedar support -- **Azure confidential VM attestation** — `AzureCVMProvider` (vTPM-rooted SEV-SNP) with AMD VCEK chain verification, hardware-validated on Azure DCasv5. Intel TDX Quote verification (Intel QVL/PCS) remains pending -- **TypeScript SDK** — community contribution welcome; see issue tracker for scope -- **Verification server improvements** — evidence pack format, revocation endpoint -- **MCP 2026 compatibility** — discovery artifact binding, versioned dynamic tool-catalog checkpoints, and separation of workload identity from delegated user authority; tracked in [#340](https://github.com/agentrust-io/agent-manifest/issues/340) +- **HITL approval scheme clarification**: specify whether hybrid mode applies to approver signatures; document approver key rotation +- **Policy bundle test vector**: add Merkle root test vector for composite bundles (Section 3.2.2) +- **RAG corpus poisoning precedence**: explicit rule for HITL override of `poisoning_scan.result: flagged` +- **Memory baseline TTL carve-out**: reconcile artifact-only refresh exception with the immutability rule +- **Delegation non-Cedar fallback**: static scope narrowing for verifiers without Cedar support +- **Azure confidential VM attestation**: `AzureCVMProvider` (vTPM-rooted SEV-SNP) with AMD VCEK chain verification, hardware-validated on Azure DCasv5. Intel TDX Quote verification (Intel QVL/PCS) remains pending +- **TypeScript SDK**: community contribution welcome; see issue tracker for scope +- **Verification server improvements**: evidence pack format, revocation endpoint +- **MCP 2026 compatibility**: discovery artifact binding, versioned dynamic tool-catalog checkpoints, and separation of workload identity from delegated user authority; tracked in [#340](https://github.com/agentrust-io/agent-manifest/issues/340) v0.2 will go through the RFC process (14-day comment period) for any normative changes. -## Later — v1.0 CoSAI standard (2027) +## Later: v1.0 CoSAI standard (2027) - Full TSC governance under CoSAI / OASIS Open - All open spec ambiguities resolved @@ -42,11 +44,11 @@ v0.2 will go through the RFC process (14-day comment period) for any normative c ## What we will not do -- Replace SPIFFE, SLSA, CycloneDX, or MCP — we compose with these -- Build a centralized manifest registry — the spec is designed for decentralized verification -- Build a proprietary TEE platform — hardware support targets open standards (TPM 2.0, SEV-SNP, TDX) plus OPAQUE as the highest-assurance managed option -- Claim regulatory compliance on your behalf — the spec provides the primitives; compliance requires your organization's legal review +- Replace SPIFFE, SLSA, CycloneDX, or MCP: we compose with these +- Build a centralized manifest registry: the spec is designed for decentralized verification +- Build a proprietary TEE platform: hardware support targets open standards (TPM 2.0, SEV-SNP, TDX) plus OPAQUE as the highest-assurance managed option +- Claim regulatory compliance on your behalf: the spec provides the primitives; compliance requires your organization's legal review ## How to influence the roadmap -Open a GitHub issue with the `spec` label describing the problem you are trying to solve. Community and early adopter feedback from the CC Summit period (June–September 2026) has priority for v0.2 scope decisions. +Open a GitHub issue with the `spec` label describing the problem you are trying to solve. Community and early adopter feedback from the CC Summit period (June to September 2026) has priority for v0.2 scope decisions. diff --git a/docs/adr/0001-rfc8785-canonical-json.md b/docs/adr/0001-rfc8785-canonical-json.md index 544504aa..849a37c9 100644 --- a/docs/adr/0001-rfc8785-canonical-json.md +++ b/docs/adr/0001-rfc8785-canonical-json.md @@ -8,6 +8,8 @@ description: Decision to use RFC 8785 JSON Canonicalization Scheme for every sig **Date**: 2026-05-01 **Spec section**: Section 2.3, Section 4.3 +In plain terms: before a manifest is signed or hashed, its JSON has to be written out the same way, byte for byte, by every implementation, or one record would produce different signatures in different languages. This decision adopts the published IETF rule for that, RFC 8785 (the JSON Canonicalization Scheme, or JCS), over the alternatives. + ## Context The manifest signature pre-image, all artifact hash inputs, and Merkle tree leaf nodes require a deterministic byte representation of JSON objects. Multiple options exist: JSON-LD normalization (RDNA), canonical JSON (various informal specs), JCS (RFC 8785), and CBOR. diff --git a/docs/adr/0002-ed25519-standard-profile.md b/docs/adr/0002-ed25519-standard-profile.md index 8697285d..56617b6b 100644 --- a/docs/adr/0002-ed25519-standard-profile.md +++ b/docs/adr/0002-ed25519-standard-profile.md @@ -8,9 +8,11 @@ description: Decision to make Ed25519 with SHA-256 the standard signature profil **Date**: 2026-05-01 **Spec section**: Section 4.1 +In plain terms: this picks the default signing algorithm, Ed25519, a widely available digital signature scheme with small keys and signatures. It matters to anyone writing a signer or verifier in another language, because both sides have to sign and check the same way. + ## Context -The manifest signature scheme must be chosen for the standard profile (Level 0–2). The choice affects implementation complexity, key sizes, signature sizes, and library availability across Python, TypeScript, Go, and .NET. +The manifest signature scheme must be chosen for the standard profile (Levels 0 to 2). The choice affects implementation complexity, key sizes, signature sizes, and library availability across Python, TypeScript, Go, and .NET. ## Decision diff --git a/docs/adr/0003-rfc9162-merkle-domain-separation.md b/docs/adr/0003-rfc9162-merkle-domain-separation.md index c358e1ec..bf5eb3b9 100644 --- a/docs/adr/0003-rfc9162-merkle-domain-separation.md +++ b/docs/adr/0003-rfc9162-merkle-domain-separation.md @@ -8,6 +8,8 @@ description: Decision to build tool catalog and RAG corpus hashes as RFC 9162 Me **Date**: 2026-05-10 **Spec section**: Section 4.1.1, Section 3.2.2 (composite policy bundle), Section 3.2.3 (tool catalog hash), Section 3.2.5 (RAG corpus) +In plain terms: a list of tools or corpus documents is reduced to one fingerprint with a Merkle tree, which hashes items in pairs, then pairs of pairs, up to a single root value. This decision fixes exactly how that tree is built, following the Certificate Transparency standard (RFC 9162), so every implementation gets the same root and an attacker cannot pass off one tree as a different one. + ## Context The tool manifest catalog hash and the RAG corpus hash both require a Merkle tree over a set of items (tool schemas and corpus documents respectively). The Merkle construction must be specified precisely to ensure cross-implementation reproducibility and to prevent second-preimage attacks. diff --git a/docs/adr/0004-pydantic-v2-schema-modeling.md b/docs/adr/0004-pydantic-v2-schema-modeling.md index ca338a86..eb0bce00 100644 --- a/docs/adr/0004-pydantic-v2-schema-modeling.md +++ b/docs/adr/0004-pydantic-v2-schema-modeling.md @@ -8,6 +8,8 @@ description: Decision to use Pydantic v2 as the only schema and validation layer **Date**: 2026-05-15 **Spec section**: Section 2.1 (Manifest Schema), Section 5.2 (SDK conformance) +In plain terms: the Python SDK describes every part of a manifest as a typed data model using the Pydantic v2 library, which checks field types and values whenever a manifest is built or loaded. This matters if you contribute to the SDK or build on its model classes. + ## Context The Python SDK needs a schema modeling layer that: diff --git a/docs/adr/0005-ml-dsa-hybrid-signature.md b/docs/adr/0005-ml-dsa-hybrid-signature.md index 82b5fcbd..e2e789cd 100644 --- a/docs/adr/0005-ml-dsa-hybrid-signature.md +++ b/docs/adr/0005-ml-dsa-hybrid-signature.md @@ -8,9 +8,11 @@ description: Decision to support ML-DSA-65 (FIPS 204) and a hybrid Ed25519 plus **Date**: 2026-06-07 **Spec section**: Section 2.4 (Cryptographic Profiles), Section 4.2 (Signature Algorithms) +In plain terms: a large enough quantum computer could break the signature algorithms in common use today, so the SDK also supports ML-DSA-65, a NIST standard signature designed to resist that, plus a hybrid mode that carries a classical and a post-quantum signature together. A verifier checking a hybrid manifest has to check both signatures. + ## Context -NIST finalized ML-DSA (CRYSTALS-Dilithium) as FIPS 204 in August 2024, making it the primary post-quantum digital signature standard. Agents operating in regulated environments (FedRAMP High, EU AI Act high-risk systems) will face requirements to use quantum-resistant cryptography within the next 2–5 years. +NIST finalized ML-DSA (CRYSTALS-Dilithium) as FIPS 204 in August 2024, making it the primary post-quantum digital signature standard. Agents operating in regulated environments (FedRAMP High, EU AI Act high-risk systems) will face requirements to use quantum-resistant cryptography within the next 2 to 5 years. The spec must answer: when and how does post-quantum cryptography enter the agent manifest? @@ -47,7 +49,7 @@ ML-DSA-87 targets NIST Security Level 5 but produces 4627-byte signatures. The a ### Hybrid mode as the transition path -Mandating ML-DSA-65 alone immediately would break every existing verifier that has not yet integrated `liboqs`. The hybrid profile lets adopters commit to PQC today while remaining interoperable with classical infrastructure during the migration window (estimated 2–5 years). A classical verifier that holds the Ed25519 public key can still verify the Ed25519 signature. Once the ecosystem completes PQC migration, deployments can move to `post_quantum` only. +Mandating ML-DSA-65 alone immediately would break every existing verifier that has not yet integrated `liboqs`. The hybrid profile lets adopters commit to PQC today while remaining interoperable with classical infrastructure during the migration window (estimated 2 to 5 years). A classical verifier that holds the Ed25519 public key can still verify the Ed25519 signature. Once the ecosystem completes PQC migration, deployments can move to `post_quantum` only. The requirement that both signatures must verify in hybrid mode prevents downgrade attacks: a hybrid manifest cannot be verified by stripping the ML-DSA signature and presenting only the Ed25519 one to a PQC-capable verifier. diff --git a/docs/adr/0006-hitl-approval-mechanism.md b/docs/adr/0006-hitl-approval-mechanism.md index 87ee50ea..68fadac0 100644 --- a/docs/adr/0006-hitl-approval-mechanism.md +++ b/docs/adr/0006-hitl-approval-mechanism.md @@ -8,6 +8,8 @@ description: Decision to embed a human approval record in the manifest, signed b **Date**: 2026-06-07 **Spec section**: Section 3.5 (Human-in-the-Loop Approvals) +In plain terms: when a person has to approve an agent's action first (human in the loop, or HITL), the approval is written into the manifest and signed with the approver's own key, separate from the key of whoever issued the manifest. A verifier can then check that an allowed person approved this exact action and that the approval has not expired. + ## Context EU AI Act Article 14 requires that high-risk AI systems support meaningful human oversight, including the ability for humans to intervene or refuse to allow an agent's outputs before they take effect. For agentic AI, this means a human must be able to approve or block high-risk actions before execution. diff --git a/docs/adr/0007-revocation-json-lines-crl.md b/docs/adr/0007-revocation-json-lines-crl.md index 8395d408..a64443cd 100644 --- a/docs/adr/0007-revocation-json-lines-crl.md +++ b/docs/adr/0007-revocation-json-lines-crl.md @@ -8,6 +8,8 @@ description: Decision to publish revocations as an append-only JSON-Lines list o **Date**: 2026-06-07 **Spec section**: Section 3.7 (Revocation) +In plain terms: if an agent's key leaks or the agent has to be shut off, its manifest must be withdrawn before it expires on its own. This decision sets the format of that withdrawal list (a certificate revocation list, or CRL): a file of signed records, one per line, that only ever grows, served from a standard web address. + ## Context A compromised agent - one whose signing key has leaked, whose behavior has been found malicious, or that has been decommissioned - must be stoppable without waiting for its manifest to expire naturally. The spec needs a revocation mechanism that: diff --git a/docs/adr/0008-conformance-level-design.md b/docs/adr/0008-conformance-level-design.md index 620f804e..0269ba98 100644 --- a/docs/adr/0008-conformance-level-design.md +++ b/docs/adr/0008-conformance-level-design.md @@ -2,12 +2,14 @@ description: Decision to define four conformance levels, 0 to 3, each a strict superset of the one below, instead of a single conformant or non-conformant verdict. --- -# ADR-0008: Four conformance levels (0–3) rather than binary conformant/non-conformant +# ADR-0008: Four conformance levels (0 to 3) rather than binary conformant/non-conformant **Status**: Accepted **Date**: 2026-06-07 **Spec section**: Section 6 (Conformance) +In plain terms: a manifest checked on a laptop and one backed by confidential-computing hardware do not carry the same assurance, so conformance is stated as a level, from 0 (software signing only) to 3 (managed secure hardware plus an audit chain). A claim of conformance without its level says little. + ## Context Different deployment environments offer materially different trust guarantees. A developer laptop, a production Linux server with TPM 2.0, an AMD SEV-SNP confidential VM, and a managed TEE with a full cryptographic audit chain are not equivalent. The spec needs to communicate these differences in a way that: diff --git a/docs/adr/0009-spiffe-uri-agent-identity.md b/docs/adr/0009-spiffe-uri-agent-identity.md index 93c51dd8..d677e8f0 100644 --- a/docs/adr/0009-spiffe-uri-agent-identity.md +++ b/docs/adr/0009-spiffe-uri-agent-identity.md @@ -8,6 +8,8 @@ description: Decision to require SPIFFE URIs for agent_id and issuer, with every **Date**: 2026-05-26 **Spec section**: Section 2.2 (Identity Fields) +In plain terms: every manifest names the agent and the organisation that issued it. This decision requires both names to be SPIFFE URIs, addresses such as `spiffe://trust-domain/path` from an open standard for naming software workloads, and the Python SDK rejects any other format. + ## Context Every manifest must identify two principals: diff --git a/docs/adr/0010-runtime-attestation-freshness-proofs.md b/docs/adr/0010-runtime-attestation-freshness-proofs.md index 4375dae6..b7dd1a17 100644 --- a/docs/adr/0010-runtime-attestation-freshness-proofs.md +++ b/docs/adr/0010-runtime-attestation-freshness-proofs.md @@ -8,6 +8,8 @@ description: Decision to add a nonce-bound runtime attestation report every atte **Date**: 2026-06-24 **Spec section**: Section 3.3.2 (new) +In plain terms: a hardware attestation report (a statement signed by the processor about the software it started) taken at boot says nothing about the agent an hour later. This decision adds an on-demand report that includes a fresh random value chosen by the verifier, so a verifier can ask what is running now and know the answer is not a replay of an old report. + ## Context A Microsoft contributor reported that hardware attestation in the SDK is @@ -32,17 +34,17 @@ TEE attestation hardware has two distinct fields: | Field | Set by | Mutable after boot? | |-------|--------|-------------------| -| `MEASUREMENT` / `MRTD` / PCR values | Hardware/firmware at launch | No — silicon-sealed | -| `REPORT_DATA` (SNP) / `REPORTDATA` (TDX) or qualifying data (TPM) | Caller (guest) software via IOCTL | Yes — guest-controlled, hardware-signed | +| `MEASUREMENT` / `MRTD` / PCR values | Hardware/firmware at launch | No, silicon-sealed | +| `REPORT_DATA` (SNP) / `REPORTDATA` (TDX) or qualifying data (TPM) | Caller (guest) software via IOCTL | Yes, guest-controlled, hardware-signed | The boot measurement is immutable. However, the caller-controlled field can be set to arbitrary bytes at any time by issuing a new IOCTL, and the hardware signs both fields together. This means a fresh report with a new nonce in `REPORT_DATA` proves: -1. **TEE identity** — the same boot measurement as at launch (hardware unchanged) -2. **Current state** — the nonce binds a specific context hash (state at this moment) -3. **Freshness** — a verifier-supplied nonce prevents replay of an old report +1. **TEE identity**: the same boot measurement as at launch (hardware unchanged) +2. **Current state**: the nonce binds a specific context hash (state at this moment) +3. **Freshness**: a verifier-supplied nonce prevents replay of an old report This is how PCC's stateless compute model and Azure Confidential Computing implement periodic quote refresh. @@ -65,7 +67,7 @@ matches the expected derivation). Full hardware signature verification requires platform vendor SDKs and is out of scope for the Agent Manifest SDK itself. The boot-time `attestation` block in the manifest is unchanged. Runtime reports -are separate evidence artifacts — they are not appended to the manifest. +are separate evidence artifacts; they are not appended to the manifest. ## Rationale @@ -73,7 +75,7 @@ are separate evidence artifacts — they are not appended to the manifest. Re-measuring the TEE is not possible after boot. The only way to get fresh hardware-signed evidence is via the caller-controlled field. This is not a -workaround — it is the intended mechanism. SNP's `REPORT_DATA` (the guest-controlled +workaround. It is the intended mechanism. SNP's `REPORT_DATA` (the guest-controlled field, distinct from the host-set `HOST_DATA`) and TDX's `REPORTDATA` exist specifically for this purpose. @@ -86,8 +88,8 @@ together means the verifier can confirm both "this report is not a replay" and **Why a separate `RuntimeAttestationReport` type rather than reusing `AttestationReport`?** The two have different semantics: -- `AttestationReport` — boot-time, bound to manifest hash, one per agent lifetime -- `RuntimeAttestationReport` — on-demand, bound to runtime context + nonce, many per lifetime +- `AttestationReport`: boot-time, bound to manifest hash, one per agent lifetime +- `RuntimeAttestationReport`: on-demand, bound to runtime context + nonce, many per lifetime Mixing them into one type would obscure which guarantee a caller is relying on. @@ -96,24 +98,24 @@ Mixing them into one type would obscure which guarantee a caller is relying on. TPM PCR values accumulate and cannot be reset without a reboot. TPM runtime re-attestation therefore uses `tpm2_quote` with qualifying data (the nonce + context hash), which requires a pre-provisioned Attestation Key (AK). -SEV-SNP and TDX do not have this requirement — the IOCTL is available without +SEV-SNP and TDX do not have this requirement: the IOCTL is available without pre-provisioning any key material. ## Alternatives considered -**Option A — periodic re-launch of extend_manifest_hash()** +**Option A: periodic re-launch of extend_manifest_hash()** Rejected. `extend_manifest_hash()` is designed for the boot-time path. Calling it repeatedly would modify `self._report_bytes` and break the semantics of `get_attestation_report()`, which should always return the boot-time report. Keeping the two paths separate is cleaner. -**Option B — a `ContinuousVerificationConfig` attached to VerificationContext** +**Option B: a `ContinuousVerificationConfig` attached to VerificationContext** Rejected for v0.1. Adding scheduling logic to the verification engine conflates the protocol (what to check) with the policy (how often). The scheduling decision belongs to the caller or a runtime enforcement layer (cMCP). The SDK provides the primitive. -**Option C — no SDK support; defer entirely to cMCP** +**Option C: no SDK support; defer entirely to cMCP** Rejected. The spec references `attest_runtime_state()` semantics in the decision trace binding (section 3.2.7). Having the SDK implement the primitive makes it testable, mockable, and usable without cMCP for callers who implement @@ -124,7 +126,7 @@ their own enforcement loop. - All existing `AttestationProvider` subclasses must implement `attest_runtime_state()`. The four built-in providers do so; third-party subclasses will get a `TypeError` at instantiation time until they add the - method (expected — this is a protocol extension). + method (expected: this is a protocol extension). - `RuntimeAttestationReport` is exported from `agent_manifest` public API. - `verify_runtime_report()` is exported from `agent_manifest` public API. - The spec gains a new normative section 3.3.2 defining the runtime attestation @@ -134,8 +136,8 @@ their own enforcement loop. ## References -- AMD SEV-SNP: `REPORT_DATA` field, populated via the `user_data` member of `struct snp_report_req` — Linux kernel `sev-guest.h` -- Intel TDX: `REPORTDATA` field — Intel TDX Module Architecture Spec §3.3 -- TPM 2.0: qualifying data in `TPM2_Quote` — TCG PC Client Platform Firmware Profile §4.2 +- AMD SEV-SNP: `REPORT_DATA` field, populated via the `user_data` member of `struct snp_report_req`, Linux kernel `sev-guest.h` +- Intel TDX: `REPORTDATA` field, Intel TDX Module Architecture Spec §3.3 +- TPM 2.0: qualifying data in `TPM2_Quote`, TCG PC Client Platform Firmware Profile §4.2 - RFC 9334: RATS architecture (Attester / Verifier / Relying Party roles) -- ADR-0009: SPIFFE URI agent identity (related — establishes the attestation subject) +- ADR-0009: SPIFFE URI agent identity (related: establishes the attestation subject) diff --git a/docs/adr/0011-signature-envelope.md b/docs/adr/0011-signature-envelope.md index 98b65965..6abbe749 100644 --- a/docs/adr/0011-signature-envelope.md +++ b/docs/adr/0011-signature-envelope.md @@ -8,6 +8,8 @@ description: Decision that Agent Manifest is a signed document that composes wit **Date**: 2026-07-26 (part 2 decided 2026-07-27) **Spec section**: Section 2.3 (Canonical Serialization), Section 3.6 (Manifest Signature) +In plain terms: people often ask why a manifest is not a JWT, the signed token format widely used on the web. This record explains that a manifest is a long-lived signed document with several signers, so it follows the standards built for that kind of record (SCITT, DSSE, C2PA), and it records the move to the COSE_Sign1 signature format in spec v0.2. + ## Context A recurring question in standards conversations is: *why is this not just a JWT extension?* The question deserves a structural answer, and answering it exposed a decision this project has never actually made. diff --git a/docs/adr/0012-context-uri-moved-to-controlled-domain.md b/docs/adr/0012-context-uri-moved-to-controlled-domain.md index 664a60ec..65d83a12 100644 --- a/docs/adr/0012-context-uri-moved-to-controlled-domain.md +++ b/docs/adr/0012-context-uri-moved-to-controlled-domain.md @@ -8,6 +8,8 @@ description: Decision to move the Agent Manifest JSON-LD @context URI to manifes - Date: 2026-08-01 - Supersedes the provisional `@context` URL introduced with the v0.1 draft +In plain terms: every manifest carries a web address, its JSON-LD `@context`, that names the vocabulary it uses. This decision moves that address to manifest.agentrust-io.com, a domain the project controls, and withdraws the v0.1 address so no manifest stays named under a domain the project does not own. + ## Context Every Agent Manifest carries a JSON-LD `@context`. Through v0.1 that value was: diff --git a/docs/adr/0013-cbor-library-for-cose.md b/docs/adr/0013-cbor-library-for-cose.md index 39f0f438..aefb0027 100644 --- a/docs/adr/0013-cbor-library-for-cose.md +++ b/docs/adr/0013-cbor-library-for-cose.md @@ -9,6 +9,8 @@ description: Decision to depend on the cbor2 library and build COSE_Sign1 struct **Spec section**: [COSE envelope v0.2](https://github.com/agentrust-io/agent-manifest/blob/main/spec/agent-manifest-cose-envelope-v0.2.md), section 9 (open items 1 and 2) **Tracking**: Issue #243, phase 2 of 5 +In plain terms: the v0.2 signature format, COSE, is built on CBOR, a compact binary encoding. This decision adds the general-purpose `cbor2` library as a dependency and builds the few COSE structures inside the SDK itself, rather than adding a full COSE library. + ## Context [ADR-0011](0011-signature-envelope.md) moved the manifest signature envelope to COSE_Sign1 and noted that phase 2 "takes a CBOR/COSE library, which is the first non-`cryptography` crypto dependency the SDK has taken and should be reviewed as such." The envelope specification left the choice open deliberately, as the first of four implementation decisions for this phase. @@ -21,7 +23,7 @@ The SDK's dependency posture is the reason this is an ADR rather than a line in **The SDK depends on `cbor2` for serialization and builds the COSE structures itself**, in [`python/src/agent_manifest/_cose.py`](https://github.com/agentrust-io/agent-manifest/blob/main/python/src/agent_manifest/_cose.py). No COSE library is taken. Signing and verification stay on `cryptography` (Ed25519 and ML-DSA-65), exactly as the v0.1 path does. -**The unprotected header is always emitted as a zero-length map.** It is never omitted. A `COSE_Sign1` is a four-element array (RFC 9052 section 4.2), so omitting the element does not produce a shorter valid `COSE_Sign1` — it produces something that is not one. The envelope spec listed this as an open question about two valid encodings; there is only one, and pinning it lets conformance vectors compare byte-for-byte. +**The unprotected header is always emitted as a zero-length map.** It is never omitted. A `COSE_Sign1` is a four-element array (RFC 9052 section 4.2), so omitting the element does not produce a shorter valid `COSE_Sign1`; it produces something that is not one. The envelope spec listed this as an open question about two valid encodings; there is only one, and pinning it lets conformance vectors compare byte-for-byte. Encoding is deterministic throughout: protected headers and the outer structure are encoded with `canonical=True`. On verification, the protected header is read from the byte string as received and is never re-encoded, so a verifier's own encoder can never disagree with the signer's about what was signed. @@ -36,13 +38,13 @@ The COSE object this profile emits is a four-element array and a `Sig_structure` | Constrains `cbor2` | no | pins `>=5.4.2,<6.0.0` | no | | Who builds the signed bytes | the library | the library | this project | -Both libraries were inspected at the versions a resolver picks today: neither ships the RFC 9964 code points, and neither mentions ML-DSA in any form. So the post-quantum profile — half of what this envelope exists to carry — would need extending in a dependency either way, and `-49` support would arrive on someone else's release schedule. +Both libraries were inspected at the versions a resolver picks today: neither ships the RFC 9964 code points, and neither mentions ML-DSA in any form. So the post-quantum profile (half of what this envelope exists to carry) would need extending in a dependency either way, and `-49` support would arrive on someone else's release schedule. The dependency argument is the decisive one. `pycose` brings a second and third asymmetric-crypto implementation into a package that has kept to one, and `oscrypto` in particular is a liability against modern OpenSSL. `cwt` is the cleaner of the two, but it pins `cbor2` below 6.0, which is a version ceiling on the SDK's serialization for the benefit of code we would use a fraction of. `cbor2` is the right size of dependency: serialization only, no crypto, no declared runtime dependencies of its own, and already an indirect dependency of every alternative considered. Taking it directly is strictly less than taking it through a COSE library. The review that ADR-0011 asked for is below. -The remaining argument for a COSE library is that hand-rolling crypto plumbing is how implementations acquire bugs. It has real force, and it is answered by scope: what this repository builds is CBOR array construction, not a signature scheme. Every actual cryptographic operation is a call into `cryptography` (or the liboqs bindings, where a deployment still carries them). Meanwhile the specific defects ADR-0011 cites in JOSE implementations — accepting `alg` from an unauthenticated place, failing to bind the algorithm to the key type, re-serializing before verifying — are precisely the checks a general-purpose library leaves to its caller anyway. Writing them here makes them reviewable in one file with the spec section numbers next to them. +The remaining argument for a COSE library is that hand-rolling crypto plumbing is how implementations acquire bugs. It has real force, and it is answered by scope: what this repository builds is CBOR array construction, not a signature scheme. Every actual cryptographic operation is a call into `cryptography` (or the liboqs bindings, where a deployment still carries them). Meanwhile the specific defects ADR-0011 cites in JOSE implementations (accepting `alg` from an unauthenticated place, failing to bind the algorithm to the key type, re-serializing before verifying) are precisely the checks a general-purpose library leaves to its caller anyway. Writing them here makes them reviewable in one file with the spec section numbers next to them. ## Dependency review @@ -52,9 +54,9 @@ ADR-0011 asked for this dependency to be reviewed on maintenance, audit history, **Audit history.** `pip-audit` 2.10.1 reports no known advisory against any `cbor2` version in the SDK's environment. This is the advisory-database check, not a code audit; nobody has read the extension source on this project's behalf, and the point below about what that extension now is makes that worth saying plainly. -**Wheel availability.** Verified by resolving, not by assumption — nine targets, 3.11/3.12/3.13 × manylinux x86-64 / macOS arm64 / Windows x86-64, all satisfied. One detail the resolution surfaced: under the `>=5.6,<7` pin, macOS and Windows get 6.1.4 while `manylinux_2_17` gets **5.9.0**, because the 6.x wheels target a newer glibc baseline. The SDK therefore has to work on both major versions, so it is tested against both ends of the range. +**Wheel availability.** Verified by resolving, not by assumption: nine targets, 3.11/3.12/3.13 × manylinux x86-64 / macOS arm64 / Windows x86-64, all satisfied. One detail the resolution surfaced: under the `>=5.6,<7` pin, macOS and Windows get 6.1.4 while `manylinux_2_17` gets **5.9.0**, because the 6.x wheels target a newer glibc baseline. The SDK therefore has to work on both major versions, so it is tested against both ends of the range. -**What the extension is, and the risk that carries.** This is the finding that would have been missed by assuming. cbor2 **5.x** ships a C extension *plus* a pure-Python fallback (`_decoder.py`, `_encoder.py`, `_types.py`). cbor2 **6.x** ships a **Rust** extension and **no fallback at all** — the wheel contains `__init__.py`, `tool.py`, and the compiled module. On a platform with no published wheel, 6.x cannot be installed without a Rust toolchain, where 5.x would simply run slower in pure Python. +**What the extension is, and the risk that carries.** This is the finding that would have been missed by assuming. cbor2 **5.x** ships a C extension *plus* a pure-Python fallback (`_decoder.py`, `_encoder.py`, `_types.py`). cbor2 **6.x** ships a **Rust** extension and **no fallback at all**: the wheel contains `__init__.py`, `tool.py`, and the compiled module. On a platform with no published wheel, 6.x cannot be installed without a Rust toolchain, where 5.x would simply run slower in pure Python. That is a real change in the SDK's build surface and an argument for the `<7` ceiling being a deliberate ceiling rather than routine caution. It does not change the decision: the alternative libraries depend on `cbor2` too and would inherit the same property while adding their own, so this is a cost of CBOR in Python, not a cost of this choice. @@ -66,9 +68,9 @@ Building the COSE structures in-repo raises a fair question: if the SDK verifies `pycose` 1.1.0 parses `AM-VEC-COSE-001`, reads `alg` as `EdDSA`, resolves `kid` and the content type, preserves the `typ` it does not recognise, sees the zero-length unprotected map, and **verifies the signature**. It rejects both a flipped signature byte and a modified payload. The same check covers `COSE_Sign`: pycose reads the body protected header, the per-signature protected header, and verifies the signature over the multi-signer `Sig_structure`. Both are run by [`python/tests/interop/verify_with_pycose.py`](https://github.com/agentrust-io/agent-manifest/blob/main/python/tests/interop/verify_with_pycose.py). -The limit of this check is worth recording precisely. It covers Ed25519 only, because **no COSE library implements ML-DSA-65 yet** — handed a real hybrid envelope, pycose stops at `Unknown COSE attribute with value: -49`. The `COSE_Sign` fixture therefore carries a single Ed25519 signer built through the same `_sig_structure_sign` the hybrid path uses, which isolates everything about the structure that is not algorithm-specific. What remains without an outside opinion is the `-49` code point itself, and that was confirmed against the IANA COSE Algorithms registry (`-48`/`-49`/`-50` for ML-DSA-44/65/87), not against memory. +The limit of this check is worth recording precisely. It covers Ed25519 only, because **no COSE library implements ML-DSA-65 yet**: handed a real hybrid envelope, pycose stops at `Unknown COSE attribute with value: -49`. The `COSE_Sign` fixture therefore carries a single Ed25519 signer built through the same `_sig_structure_sign` the hybrid path uses, which isolates everything about the structure that is not algorithm-specific. What remains without an outside opinion is the `-49` code point itself, and that was confirmed against the IANA COSE Algorithms registry (`-48`/`-49`/`-50` for ML-DSA-44/65/87), not against memory. -It runs outside the pytest suite, in its own environment, for a reason that reinforces the decision above: **pycose cannot decode any COSE message when cbor2 6.x is installed — including messages it encoded itself.** Making it a normal test would mean pinning the SDK's serialization to accommodate a test-only dependency. That the interop check has to be quarantined from the library it validates against is the clearest possible argument for not having taken that library as a dependency. +It runs outside the pytest suite, in its own environment, for a reason that reinforces the decision above: **pycose cannot decode any COSE message when cbor2 6.x is installed, including messages it encoded itself.** Making it a normal test would mean pinning the SDK's serialization to accommodate a test-only dependency. That the interop check has to be quarantined from the library it validates against is the clearest possible argument for not having taken that library as a dependency. ## Alternatives considered @@ -78,7 +80,7 @@ It runs outside the pytest suite, in its own environment, for a reason that rein **Option C: `cbor2` plus in-repo COSE (chosen).** -**Option D: no new dependency at all — hand-encode CBOR.** Rejected. CBOR decoding of untrusted input is exactly the kind of parser this project should not be writing, and it is the part `cbor2` is good at. +**Option D: no new dependency at all: hand-encode CBOR.** Rejected. CBOR decoding of untrusted input is exactly the kind of parser this project should not be writing, and it is the part `cbor2` is good at. ## Consequences @@ -86,11 +88,11 @@ It runs outside the pytest suite, in its own environment, for a reason that rein - The pin is `>=5.6,<7`, and both ends are exercised by CI-visible tests. Widening it to 7.x needs a fresh look at the two majors' decode types, not just a green suite on whichever version happens to resolve. - When a COSE library does ship RFC 9964 code points, revisiting this is cheap. The envelope is behind `_cose.py`, and the wire format is pinned by conformance vectors rather than by an implementation, so a swap would be a refactor rather than a migration. - The SDK owns its `Sig_structure` construction and must keep it correct against RFC 9052 section 4.4. The phase 3 vectors are what hold that: an implementation in another language, using a COSE library, must produce identical bytes. -- Two of the four open items in section 9 of the envelope specification are now closed. The other two — the negative conformance vectors, and whether the two string labels become IANA integer labels before v1.0 — remain open and belong to phase 3 and the v1.0 work respectively. +- Two of the four open items in section 9 of the envelope specification are now closed. The other two (the negative conformance vectors, and whether the two string labels become IANA integer labels before v1.0) remain open and belong to phase 3 and the v1.0 work respectively. ## References -- [RFC 9052](https://www.rfc-editor.org/rfc/rfc9052.html) — COSE structures. Section 4.2 (COSE_Sign1 array), section 4.4 (`Sig_structure`). -- [RFC 9964](https://www.rfc-editor.org/rfc/rfc9964.html) — ML-DSA for JOSE and COSE. ML-DSA-65 = `alg` -49. -- [ADR-0011](0011-signature-envelope.md) — the decision to move to COSE_Sign1. -- [COSE envelope specification v0.2](https://github.com/agentrust-io/agent-manifest/blob/main/spec/agent-manifest-cose-envelope-v0.2.md) — section 9, open items for phase 2. +- [RFC 9052](https://www.rfc-editor.org/rfc/rfc9052.html): COSE structures. Section 4.2 (COSE_Sign1 array), section 4.4 (`Sig_structure`). +- [RFC 9964](https://www.rfc-editor.org/rfc/rfc9964.html): ML-DSA for JOSE and COSE. ML-DSA-65 = `alg` -49. +- [ADR-0011](0011-signature-envelope.md): the decision to move to COSE_Sign1. +- [COSE envelope specification v0.2](https://github.com/agentrust-io/agent-manifest/blob/main/spec/agent-manifest-cose-envelope-v0.2.md): section 9, open items for phase 2. diff --git a/docs/adr/0014-fully-specified-ed25519-code-point.md b/docs/adr/0014-fully-specified-ed25519-code-point.md index 44c9e06f..0562c899 100644 --- a/docs/adr/0014-fully-specified-ed25519-code-point.md +++ b/docs/adr/0014-fully-specified-ed25519-code-point.md @@ -10,6 +10,8 @@ description: Decision that producers sign with the fully specified Ed25519 COSE **Amends**: [ADR-0011](0011-signature-envelope.md), which named `-8` **Tracking**: Issue #243, phase 2 +In plain terms: COSE identifies the Ed25519 algorithm by a number, and there are now two numbers for it, the newer `-19` and the older, deprecated `-8`. New manifests are signed with `-19`, and verifiers keep accepting both indefinitely so older audit records stay checkable. + ## Context ADR-0011 recorded the COSE code points as settled: `EdDSA` `-8`, `ML-DSA-65` `-49`, AKP key type `7`. The ML-DSA half is correct and was confirmed against the IANA COSE Algorithms registry (`-48`/`-49`/`-50` for ML-DSA-44/65/87). The Ed25519 half was already out of date when it was written. diff --git a/docs/adr/0015-agent-plugins-manifest-reference.md b/docs/adr/0015-agent-plugins-manifest-reference.md index beb627e8..13f38e4a 100644 --- a/docs/adr/0015-agent-plugins-manifest-reference.md +++ b/docs/adr/0015-agent-plugins-manifest-reference.md @@ -10,6 +10,8 @@ description: Decision to reference a signed Agent Manifest from an Agent Plugins **Deciders:** Agent Manifest maintainers +In plain terms: an Agent Plugins bundle needs a way to point to the signed Agent Manifest that describes it. This decision sets that pointer (an HTTPS address plus a SHA-256 fingerprint of the manifest file) and how the manifest fingerprints the bundle in return, so adding the pointer does not change the fingerprint it is part of. A key named in the bundle never creates trust on its own. + ## Context Agent Plugins 1.0.0 has no provenance field, but permits client-specific objects under diff --git a/docs/adr/index.md b/docs/adr/index.md index 7c830d9d..996f8d5e 100644 --- a/docs/adr/index.md +++ b/docs/adr/index.md @@ -1,6 +1,8 @@ # Architecture Decision Records -Each major design decision in the Agent Manifest Specification is recorded here with its rationale, alternatives considered, and consequences. ADRs are immutable once accepted - superseded decisions get a new ADR that references the old one. +This page lists the design decisions behind Agent Manifest. Each one is written up as an Architecture Decision Record (ADR): a short note on what was decided, what else was considered, and what follows from it. Read them when you want to know why the format works the way it does; you do not need them to use the SDK. + +An accepted ADR is never edited to reverse it. A decision that replaces an earlier one gets a new ADR that points back to the old one. | ADR | Title | Status | |-----|-------|--------| @@ -11,13 +13,14 @@ Each major design decision in the Agent Manifest Specification is recorded here | [0005](0005-ml-dsa-hybrid-signature.md) | ML-DSA-65 and hybrid Ed25519+ML-DSA-65 signature support | Accepted | | [0006](0006-hitl-approval-mechanism.md) | Human-in-the-Loop (HITL) embedded approval record design | Accepted | | [0007](0007-revocation-json-lines-crl.md) | JSON-Lines append-only CRL as the SDK revocation format | Accepted | -| [0008](0008-conformance-level-design.md) | Four conformance levels (0–3) rather than binary conformant/non-conformant | Accepted | +| [0008](0008-conformance-level-design.md) | Four conformance levels (0 to 3) rather than binary conformant/non-conformant | Accepted | | [0009](0009-spiffe-uri-agent-identity.md) | SPIFFE URIs as the canonical identity format for agent_id and issuer | Accepted | | [0010](0010-runtime-attestation-freshness-proofs.md) | Runtime attestation freshness proofs via caller-controlled REPORT_DATA | Accepted | | [0011](0011-signature-envelope.md) | The manifest is a signed document, not a JWT/JOSE profile; envelope moves to COSE_Sign1 | Accepted | | [0012](0012-context-uri-moved-to-controlled-domain.md) | `@context` URI moves to a domain we control; v0.1 URL withdrawn, consumers cut over | Accepted | | [0013](0013-cbor-library-for-cose.md) | Take a CBOR library, not a COSE library; the COSE structures are built in-repo | Accepted | | [0014](0014-fully-specified-ed25519-code-point.md) | Sign with the fully-specified Ed25519 code point (-19); keep verifying the deprecated -8 | Accepted | +| [0015](0015-agent-plugins-manifest-reference.md) | Agent Plugins manifest reference | Accepted | To propose a new ADR, open a GitHub issue using the [spec change template](https://github.com/agentrust-io/agent-manifest/issues/new?template=spec_change.md) and follow the [ADR template](https://github.com/agentrust-io/agent-manifest/blob/main/docs/adr/0000-template.md). diff --git a/docs/api-reference/attestation.md b/docs/api-reference/attestation.md index cf52bf9a..4ea9392c 100644 --- a/docs/api-reference/attestation.md +++ b/docs/api-reference/attestation.md @@ -1,11 +1,13 @@ # Attestation providers -Hardware attestation providers for Levels 1–3. See [Tutorial: Hardware attestation](../tutorials/hardware-attestation.md) for usage and mocking patterns. +Hardware attestation is a signed statement from the machine's security chip or processor about the software it started. These providers bind a manifest to that statement on a TPM, AMD SEV-SNP, Intel TDX or OPAQUE system, and fetch reports a verifier can check. You only need them for conformance Levels 1 and above; software signing alone needs none of this. + +Hardware attestation providers for Levels 1 to 3. See [Tutorial: Hardware attestation](../tutorials/hardware-attestation.md) for usage and mocking patterns. > **Scope:** `extend_manifest_hash()` + `get_attestation_report()` run once at > agent startup and prove which manifest was active when the TEE was initialised. > They do not continuously monitor runtime state. For periodic freshness proofs -> use `attest_runtime_state()` — see [RuntimeAttestationReport](#agent_manifest._providers.RuntimeAttestationReport). +> use `attest_runtime_state()`; see [RuntimeAttestationReport](#agent_manifest._providers.RuntimeAttestationReport). ## Base types diff --git a/docs/api-reference/cli.md b/docs/api-reference/cli.md index d246ee6a..1db73499 100644 --- a/docs/api-reference/cli.md +++ b/docs/api-reference/cli.md @@ -2,6 +2,10 @@ # CLI reference +This page lists every `manifest` terminal command and its options, for when you +want to create, sign, check or withdraw a manifest without writing Python. Each +entry is the command's own help text, generated from the code so it stays exact. + The `manifest` command is installed with the `cli` extra. ```bash diff --git a/docs/api-reference/cose.md b/docs/api-reference/cose.md index 19687e9d..a51e9ead 100644 --- a/docs/api-reference/cose.md +++ b/docs/api-reference/cose.md @@ -1,5 +1,7 @@ # COSE envelope (manifest version 0.2) +From manifest version 0.2, the signature is carried in a COSE envelope, a standard binary container (RFC 9052) that holds the signed bytes, the algorithm used and the signature together. This page covers the functions that sign and check manifests in that format, and how they differ from version 0.1. + The signature envelope for manifest version `0.2`. Version `0.1` manifests keep verifying through the [signing](signing.md) API exactly as before: the envelope follows the manifest `version` field, never a flag. Normative reference: [`spec/agent-manifest-cose-envelope-v0.2.md`](https://github.com/agentrust-io/agent-manifest/blob/main/spec/agent-manifest-cose-envelope-v0.2.md). Decisions: [ADR-0011](../adr/0011-signature-envelope.md) (why COSE), [ADR-0013](../adr/0013-cbor-library-for-cose.md) (why no COSE library), [ADR-0014](../adr/0014-fully-specified-ed25519-code-point.md) (why `-19`). diff --git a/docs/api-reference/delegation.md b/docs/api-reference/delegation.md index faf81dc6..5faa3589 100644 --- a/docs/api-reference/delegation.md +++ b/docs/api-reference/delegation.md @@ -1,5 +1,7 @@ # Delegation and HITL approvals +Delegation is when one agent hands part of a task to another agent (agent-to-agent, or A2A); each hand-off is a signed hop that can only narrow what the next agent may do. HITL (human in the loop) approvals are records signed by a person who approved an action. These functions create and check both. + A2A delegation chain signing, verification, and HITL approval records. See [Tutorial: A2A delegation chains](../tutorials/delegation-chains.md) and [Tutorial: HITL approval workflows](../tutorials/hitl-approval-workflows.md). ## Delegation chain diff --git a/docs/api-reference/index.md b/docs/api-reference/index.md index cc985b96..da6d485d 100644 --- a/docs/api-reference/index.md +++ b/docs/api-reference/index.md @@ -1,6 +1,8 @@ # Python SDK API reference -This reference is generated from the source code. The public API is organised into four modules. +This section documents every public class and function in the `agent-manifest` Python package. Use it when you are writing code against the SDK and need exact names, arguments and return types; if you are starting out, the [getting started guide](../getting-started.md) and the [tutorials](../tutorials/index.md) explain the same features step by step. + +The pages below are generated from the docstrings in the source code, so they match the released package. The public API is organised into these areas. | Module | What it covers | |--------|---------------| diff --git a/docs/api-reference/models.md b/docs/api-reference/models.md index 50443503..b7196646 100644 --- a/docs/api-reference/models.md +++ b/docs/api-reference/models.md @@ -4,7 +4,9 @@ description: Reference for the Agent Manifest model and its nested types, all Py # Core models -The `Manifest` and all nested types are Pydantic v2 models. All fields are serialisable to JSON via `.model_dump(mode="json")`. See [ADR-0004](../adr/0004-pydantic-v2-schema-modeling.md) for the rationale. +These are the data types that make up a manifest: the top-level `Manifest` record and one type for each artifact it describes (system prompt, policy bundle, tools, model, and so on). You use them to build a manifest in code or to read the fields of one you have loaded. + +The `Manifest` and all nested types are Pydantic v2 models, typed data classes that check their fields when created. All fields are serialisable to JSON via `.model_dump(mode="json")`. See [ADR-0004](../adr/0004-pydantic-v2-schema-modeling.md) for the rationale. ## Manifest diff --git a/docs/api-reference/revocation.md b/docs/api-reference/revocation.md index f1e07911..aaf7cdd3 100644 --- a/docs/api-reference/revocation.md +++ b/docs/api-reference/revocation.md @@ -1,5 +1,7 @@ # Revocation +Revocation withdraws a manifest before it expires, for example after a key leak or when an agent is retired. These functions sign a revocation record, store records in a list that only grows, and serve that list over HTTP so verifiers can check it. See [ADR-0007](../adr/0007-revocation-json-lines-crl.md) for the format. + Certificate Revocation List (CRL) for agent manifests. See [Tutorial: Revocation and key rotation](../tutorials/revocation-and-key-rotation.md) for usage examples. ## Signing and verification diff --git a/docs/api-reference/signing.md b/docs/api-reference/signing.md index cdd8fd97..bf3af19f 100644 --- a/docs/api-reference/signing.md +++ b/docs/api-reference/signing.md @@ -1,5 +1,7 @@ # Signing +These functions create signing keys, sign a manifest, and check a signature. Use them to issue manifests or to check one with a public key you already trust. Ed25519 is the default signature algorithm; ML-DSA-65 is a post-quantum algorithm, designed to resist future quantum computers, and is available as an optional extra. + Ed25519 and ML-DSA-65 (post-quantum) signing for agent manifests. See [ADR-0005](../adr/0005-ml-dsa-hybrid-signature.md) for the signature design. ## Key generation diff --git a/docs/api-reference/verification.md b/docs/api-reference/verification.md index af0d6e2e..a75546f2 100644 --- a/docs/api-reference/verification.md +++ b/docs/api-reference/verification.md @@ -1,5 +1,7 @@ # Verification +Verification is the step where a relying party (the service deciding whether to trust an agent) checks a manifest: is the signature from an issuer it trusts, has the manifest expired or been revoked, and do the recorded artifacts match what it observes. This page documents the function that runs those checks and the optional web endpoint that exposes them. + The core verification engine and FastAPI router. See [Tutorial: Server-side verification](../tutorials/server-side-verification.md) for usage examples. ## Public API @@ -74,7 +76,7 @@ in the form of §3.6, so hybrid signatures work there but not on envelopes. Read `admissible`, not just `status`. A TRACE reporting `manifest_verification_result: MISMATCH` or `EXPIRED` can have a perfectly valid -signature — the runtime honestly recorded a bad state — but spec §6.3.2 says it +signature (the runtime honestly recorded a bad state), but spec §6.3.2 says it "MUST NOT be accepted as evidence of a valid tool call for regulatory reporting purposes". `verify_trace_envelope()` returns `status=VERIFIED` with `admissible=False` in that case. @@ -107,7 +109,7 @@ warning. `signature_verified` refers to the outer `pack_signature` only. ::: agent_manifest._trace.TraceStatus -`compute_pack_hash()` returns the spec §5.2.1 `pack_hash` — the SHA-256 of the +`compute_pack_hash()` returns the spec §5.2.1 `pack_hash`: the SHA-256 of the pack's canonical bytes excluding `pack_signature`. `trace_signing_pre_image()` and `evidence_pack_pre_image()` are the shared pre-image functions; producers and verifiers MUST both use them so the byte sequences match. diff --git a/docs/compliance/dora.md b/docs/compliance/dora.md index 5072d0ce..906ed3d4 100644 --- a/docs/compliance/dora.md +++ b/docs/compliance/dora.md @@ -1,6 +1,6 @@ # DORA compliance mapping -DORA (Digital Operational Resilience Act, Regulation (EU) 2022/2554) applied to EU financial entities from **January 17, 2025**. This page maps agent-manifest capabilities to DORA ICT risk requirements for financial services firms deploying AI agents. +DORA (Digital Operational Resilience Act, Regulation (EU) 2022/2554) applied to EU financial entities from **January 17, 2025**. This page is for compliance and risk teams at EU financial firms that deploy AI agents. It maps DORA's requirements on ICT (information and communication technology) risk to the evidence an Agent Manifest can provide. It is a reference map, not a statement that any system complies. --- @@ -10,7 +10,7 @@ DORA (Digital Operational Resilience Act, Regulation (EU) 2022/2554) applied to **What agent-manifest provides** -A signed manifest is a machine-readable ICT asset record. It documents: +A signed manifest is an asset record that software can read. It documents: - The AI agent's identity (`agent_id`, SPIFFE URI) - The model version in use (`artifacts.model_identity`) @@ -18,7 +18,7 @@ A signed manifest is a machine-readable ICT asset record. It documents: - The tools the agent can invoke (`artifacts.tool_manifest.tools[]`) - The cryptographic profile (`crypto_profile`: Ed25519, ML-DSA-65 hybrid) -Every field is signed by the issuer key, making the record tamper-evident. An inventory sweep can verify that all deployed agents have valid, unexpired manifests and produce a signed asset register. +Every field is signed by the issuer key, so any change to the record shows up. An inventory sweep can verify that all deployed agents have valid, unexpired manifests and produce a signed asset register. --- @@ -28,11 +28,11 @@ Every field is signed by the issuer key, making the record tamper-evident. An in **What agent-manifest provides** -**Key rotation:** The [Revocation and key rotation tutorial](../tutorials/revocation-and-key-rotation.md) documents a zero-downtime rotation procedure. The procedure allows issuing new manifests under a new signing key without interrupting agent operations, satisfying DORA's requirement for continuity under ICT disruption. +**Key rotation:** The [Revocation and key rotation tutorial](../tutorials/revocation-and-key-rotation.md) documents a zero-downtime rotation procedure. The procedure lets you issue new manifests under a new signing key without stopping agents, which supports DORA's requirement for continuity during ICT disruption. -**Revocation:** The `FileCRL` component provides an append-only, signed certificate revocation list. A compromised agent can be revoked in under one second by appending a signed `SignedRevocationRecord`. All verifiers checking the CRL endpoint immediately begin rejecting the revoked agent. +**Revocation:** The `FileCRL` component provides an append-only, signed revocation list (a published list of manifests that are no longer trusted). A compromised agent can be revoked in under one second by appending a signed `SignedRevocationRecord`. All verifiers checking the CRL endpoint immediately begin rejecting the revoked agent. -**Recovery time objective (RTO):** Key rotation and agent reissuance can be completed in under five minutes using the runbook. The revocation mechanism has no single point of failure - the CRL file can be served from any static file host. +**Recovery time objective (RTO):** Key rotation and agent reissuance can be completed in under five minutes using the runbook. The revocation mechanism has no single point of failure: the CRL file can be served from any static file host. --- @@ -44,11 +44,11 @@ Every field is signed by the issuer key, making the record tamper-evident. An in When an ICT incident involves an AI agent (e.g., an agent behaves unexpectedly, is compromised, or is suspected of data exfiltration), the manifest provides: -- **Exact configuration at time of incident** - model version, prompt hash, tool catalog hash, all signed and timestamped -- **Authorisation chain** - who issued the manifest, who approved deployment (HITL record) -- **Merkle audit root** - allows verifying that specific decisions were recorded before the incident, without replaying the full audit log +- **Exact configuration at time of incident**: model version, prompt hash, tool catalog hash, all signed and timestamped +- **Authorisation chain**: who issued the manifest, who approved deployment (HITL record) +- **Merkle audit root** (one fingerprint summing up the decision log): allows verifying that specific decisions were recorded before the incident, without replaying the full audit log -This evidence satisfies DORA's requirement to document the "scope and nature" of an incident and supports the incident timeline required under Article 19 reporting. +This evidence helps document the "scope and nature" of an incident as DORA requires, and supports the incident timeline required under Article 19 reporting. --- @@ -58,14 +58,14 @@ This evidence satisfies DORA's requirement to document the "scope and nature" of **What agent-manifest provides** -Conformance levels provide a testability hierarchy: +Conformance levels (how much a manifest covers and how strongly it is backed) give a ladder of things to test: | Conformance level | Test coverage | DORA relevance | |-------------------|--------------|----------------| -| 0 - Software only | Manifest schema validation, signature verification | Baseline; insufficient for production financial systems | -| 1 - TPM | + TPM attestation verification | Acceptable for internal tools | -| 2 - SEV-SNP / TDX | + hardware enclave report verification | Recommended for customer-facing financial AI | -| 3 - Managed TEE | + managed attestation authority | Required for critical ICT third-party services | +| 0: Software only | Manifest schema validation, signature verification | Baseline; insufficient for production financial systems | +| 1: TPM | + TPM attestation verification | Acceptable for internal tools | +| 2: SEV-SNP / TDX | + hardware enclave report verification | Recommended for customer-facing financial AI | +| 3: Managed TEE | + managed attestation authority | Required for critical ICT third-party services | The test suite (`pytest --cov=agent_manifest --cov-fail-under=80`) runs all 197 conformance-level tests in CI, producing a verifiable coverage record. This record can be cited as evidence in DORA testing documentation. @@ -73,7 +73,7 @@ The test suite (`pytest --cov=agent_manifest --cov-fail-under=80`) runs all 197 ## RTS requirements - key management controls -The DORA Regulatory Technical Standards (RTS) require documented key management controls for ICT systems. Agent-manifest satisfies the following RTS controls: +The DORA Regulatory Technical Standards (RTS, the detailed rules under DORA) require documented controls over signing keys for ICT systems. Agent-manifest provides mechanisms for the following RTS controls: | RTS control | Mechanism | |-------------|-----------| diff --git a/docs/compliance/eu-ai-act.md b/docs/compliance/eu-ai-act.md index fdc96448..53ad7fee 100644 --- a/docs/compliance/eu-ai-act.md +++ b/docs/compliance/eu-ai-act.md @@ -1,8 +1,8 @@ # EU AI Act compliance mapping -This page maps agent-manifest capabilities to EU AI Act obligations for high-risk AI systems. It is written for compliance officers and auditors, not developers. +This page is for compliance officers and auditors working with the EU AI Act. It goes article by article and says what evidence an Agent Manifest can provide for AI systems the Act classes as high-risk, and where it provides nothing. It is a reference map, not a statement that any system complies. -**Status:** GPAI model obligations apply since **August 2025**, and **Article 50 transparency duties since 2 August 2026** (see below - the manifest does not satisfy them). Under the current provisional legislative timeline (the digital omnibus amendments), high-risk AI system obligations are expected to apply from around **December 2027**, and AI systems embedded in regulated products from around **August 2028**. These dates remain subject to the legislative process - verify against the [official AI Act timeline](https://artificialintelligenceact.eu/implementation-timeline/) before relying on them. Obligations already in force today (e.g. DORA for financial entities, HIPAA for US healthcare) are unaffected by this timeline. +**Status:** GPAI model obligations apply since **August 2025**, and **Article 50 transparency duties since 2 August 2026** (see below: the manifest does not satisfy them). Under the current provisional legislative timeline (the digital omnibus amendments), high-risk AI system obligations are expected to apply from around **December 2027**, and AI systems embedded in regulated products from around **August 2028**. These dates are still going through the legislative process. Check them against the [official AI Act timeline](https://artificialintelligenceact.eu/implementation-timeline/) before relying on them. Obligations already in force today (e.g. DORA for financial entities, HIPAA for US healthcare) are unaffected by this timeline. Everything on this page below Article 50 maps to the **high-risk** obligations, which are the deferred ones. Article 50 is the one in force now. @@ -12,7 +12,7 @@ Everything on this page below Article 50 maps to the **high-risk** obligations, > *AI systems intended to interact directly with natural persons shall be designed so that the person is informed they are interacting with an AI system, unless obvious. Providers of systems generating synthetic content shall mark the output in a machine-readable form.* -**What agent-manifest provides: nothing yet.** This is stated plainly because Article 50 is the obligation an auditor can hold a deployment to today, and a mapping page that quietly omits it reads as coverage. +**What agent-manifest provides: nothing yet.** We say this up front because Article 50 is the duty an auditor can hold a deployment to today, and a mapping page that left it out would look as if it were covered. | Article 50 paragraph | Obligation | Status | |----------------------|------------|--------| @@ -31,7 +31,9 @@ Article 50 applies regardless of whether the system is high-risk under Annex III **What agent-manifest provides** -The manifest carries a structured risk assessment in `hitl_record.approvals[].approved_scope.risk_tier` (low / medium / high / critical), together with the artifacts the assessment covers and conditions attached to the approval. Each approval is signed by the approver's key, and the HITL requirement itself (`hitl_record.required`) is covered by the issuer signature, making the recorded risk assessment tamper-evident. +The manifest can record a person's risk rating for the agent (low, medium, high or critical), which parts of the agent that rating covers, and any conditions attached to the approval. The approver signs it with their own key, so any later change to the rating shows up. HITL ("human in the loop") means a named person has to approve. + +The rating sits in `hitl_record.approvals[].approved_scope.risk_tier`. The requirement for human approval (`hitl_record.required`) is covered by the issuer's signature. ```json { @@ -50,7 +52,7 @@ The manifest carries a structured risk assessment in `hitl_record.approvals[].ap } ``` -The signed manifest is the risk management record. An auditor can verify that the assessment was made before deployment (manifest `issued_at`) and has not been altered since. +The signed manifest is one record within a risk management system. An auditor can verify that the assessment was made before deployment (manifest `issued_at`) and has not been altered since. --- @@ -60,9 +62,14 @@ The signed manifest is the risk management record. An auditor can verify that th **What agent-manifest provides** -Every manifest includes an `artifacts.decision_trace` section with a Merkle `audit_chain_root`. Each decision appended to the trace is a leaf in a tamper-evident Merkle tree. An auditor can present any decision and verify it was recorded before a given audit_chain_root - without access to any other decisions. +The manifest records a single fingerprint (the audit chain root) that sums up the agent's decision log when the manifest was issued. Given one decision and a short proof, an auditor can check that it was in the log behind that fingerprint, without seeing any other decisions. + +??? info "Technical detail: the Merkle audit chain" + Every manifest includes an `artifacts.decision_trace` section with a Merkle `audit_chain_root`. Each decision appended to the trace is a leaf in a tamper-evident Merkle tree. An auditor can present any decision and verify it was recorded before a given audit_chain_root, without access to any other decisions. + + The audit chain root is deterministic and reproducible: losing the chain does not lose the ability to verify past roots. -The audit chain root is deterministic and reproducible: losing the chain does not lose the ability to verify past roots. +The manifest does not do the logging: the agent's runtime has to write the log, and a fingerprint cannot show that every event was written. --- @@ -80,7 +87,7 @@ The audit chain root is deterministic and reproducible: losing the chain does no | System prompt used | `artifacts.system_prompt.hash` (SHA-256, content-addressed) | | Tools the system can invoke | `artifacts.tool_manifest.tools[]` | -All fields are signed by the issuer key. A deployer can verify the signed manifest and confirm exactly what model, prompt, and tools are in use - without trusting the agent's self-report. +All fields are signed by the issuer key. A deployer can check the signed manifest and see exactly which model, prompt and tools were approved, without taking the agent's word for it. Confirming that the running agent matches still needs the deployer's own runtime values. --- @@ -90,7 +97,7 @@ All fields are signed by the issuer key. A deployer can verify the signed manife **What agent-manifest provides** -The `hitl_record` field records human approval events: +The manifest can carry signed records of a person approving the agent, in the `hitl_record` field: ```json { @@ -133,26 +140,26 @@ The signature is made over `{manifest_id, approved_at, approved_scope, approver_ **What agent-manifest provides** -Signed artifact bindings create a quality record: the model hash, prompt hash, and tool catalog hash are locked at issuance. Any deviation from the approved configuration produces a manifest verification failure (`MISMATCH` result), giving the quality management system a reliable signal that the deployed agent differs from the approved one. +The manifest fixes the fingerprints (hashes) of the model, the prompt and the tool catalog when it is issued, which gives a quality record. Any deviation from the approved configuration produces a manifest verification failure (`MISMATCH` result), giving the quality management system a reliable signal that the deployed agent differs from the approved one. -The issuer key rotation procedure (see [Tutorial: Revocation and key rotation](../tutorials/revocation-and-key-rotation.md)) documents the governance process for key management, satisfying the quality management system's documentation requirement. +The issuer key rotation procedure (see [Tutorial: Revocation and key rotation](../tutorials/revocation-and-key-rotation.md)) documents the process for managing keys, which can feed the quality management system's documentation. --- ## Conformance level guidance for high-risk AI -The levels are defined in section 8.1 of the specification. They are not a hardware ladder: the level says what is bound and attested, and the choice of TEE sits inside Level 1. +A conformance level says how much a manifest covers and how strongly it is backed. Levels are defined in section 8.1 of the specification. A higher level does not simply mean better hardware: the level says what is bound and attested, and the choice of TEE (a hardware-isolated area that can prove what is running in it) sits inside Level 1. | Conformance level | What it requires | Recommended for | |-------------------|------------------|-----------------| -| 0 - Software-only | All artifact bindings, standard crypto, transparency log publication. No TEE. | Development, staging, non-regulated systems | -| 1 - TEE-attested | Level 0 plus a TEE attestation block, `audit_key_sealed: true`, and a hardware-verified `container_image_digest`. TPM 2.0, AMD SEV-SNP and Intel TDX all satisfy this; they differ in the strength of the root, not in the level. | Enterprise production | -| 2 - Full stack | Level 1 plus all 10 artifacts bound, HITL approvals present, delegation chain for multi-agent, Phase 2 cMCP, `minimum_retention_days >= 180`, and a declared drift policy. | High-risk AI under Article 6(2), Annex III | -| 3 - Post-quantum | Level 2 plus ML-DSA-65, ML-KEM-768, SHAKE-256, and a private Sigstore instance supporting ML-DSA-65. | Sovereign, classified, long-horizon financial | +| 0: Software-only | All artifact bindings, standard crypto, transparency log publication. No TEE. | Development, staging, non-regulated systems | +| 1: TEE-attested | Level 0 plus a TEE attestation block, `audit_key_sealed: true`, and a hardware-verified `container_image_digest`. TPM 2.0, AMD SEV-SNP and Intel TDX all satisfy this; they differ in the strength of the root, not in the level. | Enterprise production | +| 2: Full stack | Level 1 plus all 10 artifacts bound, HITL approvals present, delegation chain for multi-agent, Phase 2 cMCP, `minimum_retention_days >= 180`, and a declared drift policy. | High-risk AI under Article 6(2), Annex III | +| 3: Post-quantum | Level 2 plus ML-DSA-65, ML-KEM-768, SHAKE-256, and a private Sigstore instance supporting ML-DSA-65. | Sovereign, classified, long-horizon financial | For high-risk AI systems under Article 6(2), Annex III, **Level 2 or above is recommended**, because Article 12 record-keeping and Article 14 human oversight need the artifacts that Level 2 requires to be bound rather than merely present. Level 1 is a reasonable interim where the full artifact set is not yet in place, provided a compensating HITL control is documented. -Within Level 1, the root of trust still matters for what a verifier can conclude: SEV-SNP and TDX attest a confidential VM directly, while a TPM 2.0 quote attests the boot chain of a VM the host can still see into. Azure confidential VMs are a third case, vTPM-rooted rather than direct-silicon, and are documented in `LIMITATIONS.md`. +Within Level 1, the root of trust (whose signing key the hardware report finally rests on) still changes what a verifier can conclude: SEV-SNP and TDX attest a confidential VM directly, while a TPM 2.0 quote attests the boot chain of a VM the host can still see into. Azure confidential VMs are a third case, vTPM-rooted rather than direct-silicon, and are documented in `LIMITATIONS.md`. --- diff --git a/docs/compliance/gdpr.md b/docs/compliance/gdpr.md index 38cdb671..80619bef 100644 --- a/docs/compliance/gdpr.md +++ b/docs/compliance/gdpr.md @@ -1,6 +1,6 @@ # GDPR compliance mapping -The General Data Protection Regulation (GDPR) applies to AI agents that process personal data of EU residents. This page maps agent-manifest capabilities to the accountability and processing control obligations most relevant to AI agent deployments. +The General Data Protection Regulation (GDPR) applies to AI agents that process personal data of EU residents. This page is for data protection officers and privacy teams. It maps the GDPR duties most relevant to AI agents (showing what you did, building in protection, keeping records, security) to the evidence an Agent Manifest can provide. It is a reference map, not a statement that any system complies. --- @@ -10,9 +10,9 @@ The General Data Protection Regulation (GDPR) applies to AI agents that process **What agent-manifest provides** -A signed manifest is a verifiable accountability record for an AI agent. It proves who issued the agent (`issuer` SPIFFE URI), what configuration it was authorised to run, and who approved deployment (HITL record). Because the manifest is signed, the controller can demonstrate these facts without relying on self-reported agent state. +A signed manifest is a checkable record of accountability for an AI agent. It proves who issued the agent (`issuer` SPIFFE URI, a standard workload identity), what configuration it was authorised to run, and who approved deployment (the HITL, or human-in-the-loop, record). Because the manifest is signed, the controller can demonstrate these facts without relying on self-reported agent state. -A manifest store (database, `.well-known` endpoint, or immutable log) provides an auditable history of every agent version that processed personal data, satisfying the controller's obligation to demonstrate compliance on request. +A manifest store (database, `.well-known` endpoint, or immutable log) provides an auditable history of every agent version that processed personal data, which supports the controller's duty to demonstrate compliance on request. --- @@ -24,7 +24,7 @@ A manifest store (database, `.well-known` endpoint, or immutable log) provides a **Attestation level as a design control:** The manifest's conformance level is a measurable design control. An organisation can define a policy that agents processing personal data must be Level 2+ (SEV-SNP or TDX). Manifests at Level 0 or 1 are rejected by the verifier in personal-data contexts. -**Scope-limited delegation:** The delegation chain narrows scope at each hop. An orchestrator agent can delegate to a sub-agent with an explicit `data_classifications` scope grant, ensuring the sub-agent can only access data classes it was explicitly authorised for. +**Scope-limited delegation:** When one agent hands work to another (delegation), each step (hop) can only narrow what is allowed, never widen it. An orchestrator agent can delegate to a sub-agent with an explicit `data_classifications` scope grant, ensuring the sub-agent can only access data classes it was explicitly authorised for. ```json { @@ -48,7 +48,7 @@ The verifier rejects any manifest where the effective scope exceeds what the del **What agent-manifest provides** -The manifest is a record of processing intent - it documents what the agent was configured to do at the time of issuance. Fields that are relevant to Article 30 records: +The manifest is a record of processing intent: it documents what the agent was configured to do at the time of issuance. Fields that are relevant to Article 30 records: | Article 30 requirement | Manifest field | |------------------------|----------------| diff --git a/docs/compliance/hipaa.md b/docs/compliance/hipaa.md index 0ae4c6ae..f847cd9e 100644 --- a/docs/compliance/hipaa.md +++ b/docs/compliance/hipaa.md @@ -1,6 +1,6 @@ # HIPAA compliance mapping -HIPAA's Security Rule (45 CFR Part 164) applies to AI agents that access, process, or transmit electronic protected health information (ePHI). This page maps agent-manifest capabilities to the Security Rule safeguards most relevant to AI agent deployments. +HIPAA's Security Rule (45 CFR Part 164) applies to AI agents that access, process, or transmit electronic protected health information (ePHI). This page is for privacy and security officers at US healthcare organisations and their vendors. It maps the HIPAA Security Rule safeguards most relevant to AI agents to the evidence an Agent Manifest can provide. It is a reference map, not a statement that any system complies. --- @@ -10,7 +10,7 @@ HIPAA's Security Rule (45 CFR Part 164) applies to AI agents that access, proces **What agent-manifest provides** -The manifest's delegation chain is a cryptographically signed access control record. Each hop documents: +When one agent hands work to another, the manifest's delegation chain records each handover and what it allowed, and each step is signed. Each hop documents: - Who delegated (principal SPIFFE URI) - What scope was granted (`tools`, `data_classifications`) @@ -45,7 +45,7 @@ Map ePHI to the `restricted` data classification. The `max_delegation_depth: 0` **What agent-manifest provides** -The `artifacts.decision_trace.audit_chain_root` field is the root of a Merkle tree of agent decisions. Properties relevant to HIPAA audit controls: +The manifest holds one fingerprint that sums up the agent's decision log, so later changes to the log can be detected. The field is `artifacts.decision_trace.audit_chain_root`, the root of a Merkle tree (a structure of nested hashes) of agent decisions. Properties relevant to HIPAA audit controls: - **Tamper-evident**: each appended decision extends the chain root; removing or altering a decision invalidates all subsequent roots - **Selective disclosure**: a specific decision can be proven present in the chain without disclosing other decisions (Merkle inclusion proof) @@ -62,9 +62,9 @@ For HIPAA audit log retention (minimum six years), the chain root provides a com **What agent-manifest provides** -Every manifest field is protected by an Ed25519 + ML-DSA-65 hybrid signature (see [ADR-0005](../adr/0005-ml-dsa-hybrid-signature.md)). The signature covers the canonicalised JSON of the entire manifest (RFC 8785). Any alteration to any field - model version, prompt hash, tool catalog, delegation chain, HITL approval - produces a signature verification failure. +Every manifest field is protected by an Ed25519 + ML-DSA-65 hybrid signature (see [ADR-0005](../adr/0005-ml-dsa-hybrid-signature.md)). The signature covers the canonicalised JSON of the entire manifest (RFC 8785). Any change to any field (model version, prompt hash, tool catalog, delegation chain, HITL approval) makes the signature check fail. -ML-DSA-65 (NIST FIPS 204) provides post-quantum signature security, satisfying HIPAA's requirement that integrity mechanisms remain effective over the six-year retention period. +ML-DSA-65 (NIST FIPS 204) is a signature designed to resist future quantum computers, which supports HIPAA's requirement that integrity mechanisms remain effective over the six-year retention period. --- @@ -74,7 +74,7 @@ ML-DSA-65 (NIST FIPS 204) provides post-quantum signature security, satisfying H **What agent-manifest provides** -The HITL approval mechanism provides documented human oversight for AI agent deployment. A signed approval record proves: +The HITL (human-in-the-loop) approval mechanism provides documented human oversight for AI agent deployment. A signed approval record proves: - A named approver reviewed the agent before it accessed ePHI - The approval was time-bounded (typically to a single session or shift) @@ -90,7 +90,7 @@ The approver's key is separate from the issuer key, ensuring that a compromised **What agent-manifest provides** -**Detection:** A verification failure (any non-`VALID` result) is a security signal. Aggregate verification failures by agent identity in your SIEM to detect unusual patterns. +**Detection:** A verification failure (any non-`VALID` result) is a security signal. Collect verification failures by agent identity in your SIEM (security event monitoring system) to detect unusual patterns. **Containment:** Revoke the agent's manifest via the CRL endpoint. Propagation to all verifiers checking the endpoint is immediate (next poll cycle, typically <30s). diff --git a/docs/compliance/index.md b/docs/compliance/index.md index ec799987..3a8a9d92 100644 --- a/docs/compliance/index.md +++ b/docs/compliance/index.md @@ -1,6 +1,8 @@ # Compliance -Agent Manifest supplies signed configuration and provenance evidence that can support a compliance review. These pages map capabilities to topics in several regulatory frameworks. A valid manifest does not by itself establish regulatory compliance; that assessment depends on the deployed system, its controls, and the applicable obligations. +These pages are for compliance officers, auditors and the engineers who support them. Each one takes a law or regulation and shows which of its requirements an Agent Manifest can help you produce evidence for, and which it cannot. + +An Agent Manifest is a signed record of how an AI agent was set up and who approved it. That record can support a compliance review. A valid manifest does not, on its own, make a system compliant: that depends on the whole deployed system, its other controls, and the rules that apply to you. | Framework | Jurisdiction | Primary obligation addressed | |-----------|-------------|------------------------------| @@ -11,7 +13,7 @@ Agent Manifest supplies signed configuration and provenance evidence that can su ## What agent-manifest provides -The evidence available depends on which bindings and optional records the producer includes and which checks the recipient performs: +What you can show depends on which parts the issuer put in the manifest and which checks the reviewer actually runs: | Evidence | What to check | |---|---| @@ -21,4 +23,4 @@ The evidence available depends on which bindings and optional records the produc | Delegation, when supplied | Trusted authority, signatures, continuity, and scope restrictions | | Human approval, when supplied | Approver authority, signature, scope, and freshness | -Start with [your first manifest](../getting-started.md) to see the checks in a local example. Read [limitations](../limitations.md) before treating a signed declaration as evidence of runtime behavior. +Start with [your first manifest](../getting-started.md) to see the checks in a local example. Read [limitations](../limitations.md) before treating a signed statement about setup as evidence of what the agent did while running. diff --git a/docs/evidence-requirements-experimental.md b/docs/evidence-requirements-experimental.md index ecdf74cb..9aba2ae3 100644 --- a/docs/evidence-requirements-experimental.md +++ b/docs/evidence-requirements-experimental.md @@ -1,10 +1,12 @@ # Signed evidence requirements (experimental) +This page is for people building verifiers that weigh several kinds of evidence about an agent, such as reports from the processor, the code that ran and the tool list. It describes an optional, experimental addition that lets whoever signs a manifest also sign a list of the evidence a checker should insist on. Most users can skip it. + Status: experimental, opt-in, not part of the v0.2 specification. The profile name carries `experimental` so that it can be replaced, not extended, if the design changes before adoption. -A relying party that appraises an agent from several pieces of evidence (the +A relying party (the service deciding whether to trust the agent) that appraises an agent from several pieces of evidence (the CPU platform, the code that ran, the tool catalog) keeps its own list of what it requires. This profile lets the manifest issuer sign a second list inside the manifest, so a verifier can tighten its own requirements with the diff --git a/docs/getting-started.md b/docs/getting-started.md index 168734cc..24c0dcad 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -4,11 +4,13 @@ description: Sign a demo Agent Manifest, compare it with approved inputs, and de # Create and check your first manifest -Sign a small agent configuration, verify its declared inputs, then see two failures: an edited signed record and a different prompt hash. This software example runs locally after installation. It does not run a model or produce hardware attestation. +This page is for anyone trying Agent Manifest for the first time. In about ten minutes you sign a record of a small sample agent, check it, and then watch the check fail twice on purpose: once when someone edits the signed record, and once when the agent's prompt changes. + +Everything runs on your own computer. It does not run an AI model or produce a hardware report (attestation); those come later. ## Prerequisites -Use Python 3.11+, Git, and Bash on Linux, macOS, or Windows with WSL. This guide uses the current source checkout so its verification behavior matches these docs. +You need Python 3.11 or later, Git, and a Bash terminal on Linux, macOS, or Windows with WSL. The steps install from a copy of the source code, so the checks behave exactly as these docs describe. ## Installation @@ -22,7 +24,9 @@ python -m pip install -e "./python[cli]" ## Level 0 - Software-only signing -Save this complete block as `first_manifest.py`, then run `python first_manifest.py` from the same directory. It uses the supported v0.1 JSON form to make the signed fields readable. The current v0.2 envelope uses COSE; see the [signature envelope decision](adr/0011-signature-envelope.md). +Save this complete block as `first_manifest.py`, then run `python first_manifest.py` from the same directory. The script does four things: it takes a fingerprint (a SHA-256 hash) of a sample prompt, writes a manifest that records it, signs the manifest with a new key, and checks the result three ways. + +It uses the older v0.1 JSON form because its signed fields are easy to read. The current v0.2 format wraps the same content in a compact binary envelope called COSE; see the [signature envelope decision](adr/0011-signature-envelope.md). ```python import copy @@ -124,9 +128,9 @@ PASS: different prompt hash rejected (MISMATCH) Saved signed.json and public.hex; private key was not saved ``` -The prompt hash comes from the demo text. The policy hash and model identity are synthetic declarations. `VALID` here applies to the three declared bindings and the supplied verifier inputs. It is not a claim that all ten artifact categories were bound, a model executed, or the configuration is safe. +What this shows: `VALID` means the signature checks out and the three parts recorded here match the values the checker was given. The prompt hash comes from the demo text; the policy hash and model details are made up for the demo. `VALID` does not mean all ten parts of an agent were recorded, that a model ran, or that the setup is safe. -The verifier retains its trusted public key separately from the record. In production, obtain issuer keys and runtime measurements through your approved trust channels. Reading expected hashes from an untrusted manifest would only compare the document with itself. +The checker (verifier) keeps the trusted public key apart from the record. In a real deployment, get signer keys and the values of what is actually running from sources you already trust. Taking the expected values from the manifest itself would only compare the document with itself. ## Inspect the saved record @@ -134,26 +138,26 @@ The verifier retains its trusted public key separately from the record. In produ manifest verify signed.json --public-key public.hex ``` -This CLI invocation supplies a trusted key but no runtime hashes. Expect `INCOMPLETE`, with a verified signature and missing artifact comparisons. Without `--public-key`, expect `UNVERIFIABLE`. The Python example supplies the comparison inputs needed for its `VALID` result. +This command line check gets a trusted key but no values to compare against. Expect `INCOMPLETE`: the signature is verified, but the parts could not be compared. Without `--public-key`, expect `UNVERIFIABLE`, because there is no key to check the signature with. The Python script got `VALID` because it supplied the values to compare. ## Level 1 - TPM attestation -Hardware provenance is a separate step. Follow the [hardware attestation tutorial](tutorials/hardware-attestation.md) and [limitations](limitations.md) for provider-specific evidence and appraisal. A TPM supplies measured-state evidence; it does not by itself isolate process memory. A declared hardware platform or a successful signing command does not establish a conformance level. +Proving which hardware the agent runs on is a separate step. Follow the [hardware attestation tutorial](tutorials/hardware-attestation.md) and [limitations](limitations.md) for how each kind of chip reports and how to judge its report. A TPM (a security chip found in most servers and laptops) reports what software the machine booted; it does not by itself keep the agent's memory private from the rest of the machine. Naming a hardware platform in the record, or a signing command succeeding, does not reach a conformance level. ## Revocation -An artifact update needs a newly approved manifest. Production verification also needs current revocation information; this demo uses an empty in-memory store. See [revocation and key rotation](tutorials/revocation-and-key-rotation.md). +If any recorded part changes, such as a new prompt, approve and sign a new manifest. A real checker also needs an up-to-date list of withdrawn (revoked) manifests and keys; this demo uses an empty list. See [revocation and key rotation](tutorials/revocation-and-key-rotation.md). ## Troubleshooting - **Module not found:** activate `.venv` in the terminal running the example. - **File not found:** run `first_manifest.py` before inspecting `signed.json`. -- **INCOMPLETE:** inspect which runtime comparisons are missing. Supply independent inputs instead of disabling strict verification. -- **MISMATCH:** check the signature and named artifact mismatch. Both deliberate changes in this demo should fail. +- **INCOMPLETE:** look at which comparisons are missing and supply those values from a trusted source. Do not switch off strict checking to make it pass. +- **MISMATCH:** check whether the signature failed or a named part did not match. Both deliberate changes in this demo should fail. - **Expired record:** rerun the example to create a fresh demo record. ## Next steps -- [Specification](spec/agent-manifest-v0.2.md): artifact and verification contracts. -- [cMCP session binding](tutorials/cmcp-session-binding.md): connect deployment identity to tool-call evidence. -- [Verification API](api-reference/index.md): caller inputs and result fields. +- [Specification](spec/agent-manifest-v0.2.md): the formal rules for each part and each check. +- [cMCP session binding](tutorials/cmcp-session-binding.md): link the approved agent to the records of its tool calls. +- [Verification API](api-reference/index.md): what you pass to the checker and what it returns. diff --git a/docs/index.md b/docs/index.md index 49520e9f..b895918f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -10,13 +10,13 @@ description: Sign an agent configuration, verify its artifact bindings against i # Check the agent you approved against what deployed -Agent Manifest signs an agent's prompt, policy, tools, model identity and six further artifact bindings, so a verifier can authenticate the issuer and compare each binding with inputs it trusts. +An AI agent is software that uses an AI model to take actions on its own. Agent Manifest is a signed record of how one agent was set up: its instructions (the prompt), its rules (the policy), its tools, its model and six other parts. Anyone checking the agent later can confirm who signed the record and compare each part with what is actually running. New to these terms? See [the terms, in plain English](https://agentrust-io.com/#plain-terms). [Create and check your first manifest](getting-started.md){ .md-button .md-button--primary } [What this proves, and what it does not](limitations.md){ .md-button } !!! tip "TL;DR" - [agent-manifest](https://pypi.org/project/agent-manifest/) 0.15.0 (Apache-2.0) signs and verifies locally with Python 3.11+ and no hardware or cloud account. Its SEV-SNP path was validated on an Azure confidential VM ([#227](https://github.com/agentrust-io/agent-manifest/pull/227)) and its TDX quote verifier on a GCP C3 guest, and a manifest still does not observe the agent after issuance: runtime activity is recorded separately in [TRACE](https://trace.agentrust-io.com/). + [agent-manifest](https://pypi.org/project/agent-manifest/) 0.15.0 (Apache-2.0) signs and checks records on your own computer with Python 3.11+, with no special hardware or cloud account. Its AMD SEV-SNP support was tested on an Azure confidential VM ([#227](https://github.com/agentrust-io/agent-manifest/pull/227)) and its Intel TDX report checker on a Google Cloud C3 machine. A manifest does not watch the agent after it is signed: what the agent does is recorded separately in [TRACE](https://trace.agentrust-io.com/).
@@ -24,7 +24,7 @@ Agent Manifest signs an agent's prompt, policy, tools, model identity and six fu --- - Sign a demo configuration, check it, then detect an edited record and a different prompt hash. + Sign a sample agent setup, check it, then watch the check catch an edited record and a changed prompt. [Getting started](getting-started.md) @@ -32,7 +32,7 @@ Agent Manifest signs an agent's prompt, policy, tools, model identity and six fu --- - A signature check is one part of verification. The verifier needs its own trusted inputs. + A valid signature shows who signed the record. To know the agent matches it, the checker also needs its own trusted view of what is running. [Limitations](limitations.md) @@ -40,7 +40,7 @@ Agent Manifest signs an agent's prompt, policy, tools, model identity and six fu --- - TPM, AMD SEV-SNP and Intel TDX providers. A provider name is not an assurance verdict. + Optional signed reports from the chip itself (TPM, AMD SEV-SNP, Intel TDX). Supporting a chip type does not by itself prove a given machine can be trusted. [Hardware attestation](tutorials/hardware-attestation.md) @@ -48,7 +48,7 @@ Agent Manifest signs an agent's prompt, policy, tools, model identity and six fu --- - Before it: [Weight Custody Manifest](https://wcm.agentrust-io.com) for the weights. After it: [cMCP](https://cmcp.agentrust-io.com) for tool calls and [cA2A](https://ca2a.agentrust-io.com) for delegation. Check a real TDX quote at [agentrust-io.com/verify](https://agentrust-io.com/verify/). + Before it: [Weight Custody Manifest](https://wcm.agentrust-io.com) for the model's weights. After it: [cMCP](https://cmcp.agentrust-io.com) for the agent's tool calls and [cA2A](https://ca2a.agentrust-io.com) for handing work to other agents. Check a real Intel processor report at [agentrust-io.com/verify](https://agentrust-io.com/verify/). [See the chain](https://agentrust-io.com/#chain) @@ -56,11 +56,13 @@ Agent Manifest signs an agent's prompt, policy, tools, model identity and six fu ## The agent attestation gap -An authenticated caller can still run a changed prompt, policy, or tool configuration. A manifest gives a verifier specific artifact bindings to compare. Software signing authenticates declarations; hardware provenance requires valid attestation, approved measurements, and a binding between the evidence and this manifest. +Knowing who is calling does not tell you what they are running. A logged-in agent can still be running a changed prompt, different rules or a new tool. A manifest lists a fingerprint (a hash) of each approved part, so a checker can compare them one by one. + +A software signature proves who made those statements. Proving the agent runs on particular hardware takes more: a valid signed report from the processor (called attestation), measurements you have approved, and a link between that report and this manifest. ## How it works -Scroll the diagram horizontally on smaller screens. +Someone approves the agent's parts and signs a record of them. Later, a checker brings the signer's public key, its own view of what is running and, if wanted, a hardware report, and gets a result for each part. Scroll the diagram sideways on small screens.
@@ -77,11 +79,11 @@ flowchart TB
-The verifier needs its own trusted inputs. A signed manifest does not continuously observe the agent, and attestation does not make every later modification impossible. Runtime activity is recorded separately in [TRACE](https://trace.agentrust-io.com/). +The checker needs its own trusted inputs; it cannot take the agent's word for what is running. A signed manifest describes the agent at one moment and does not keep watching it, and a hardware report does not rule out every later change. What the agent does while it runs is recorded separately in [TRACE](https://trace.agentrust-io.com/). ## The 10 attested artifacts -The format covers these ten categories. Their presence and verification requirements depend on the profile; a category listed here is not evidence that it was measured or checked. +A manifest can describe up to ten parts of an agent. Which ones must be present, and how strictly each is checked, depends on the level (profile) you choose. A part appearing in this table does not mean it was measured or checked in your deployment. | Artifact | What the binding identifies | |---|---| @@ -98,25 +100,25 @@ The format covers these ten categories. Their presence and verification requirem ## Hardware providers -Provider support includes TPM, AMD SEV-SNP, Intel TDX, and OPAQUE. Evidence collection, verification, and memory isolation differ by provider. Use the [hardware guide](tutorials/hardware-attestation.md) and [limitations](limitations.md) to choose a deployment; the provider name alone is not an assurance verdict. +A provider is the code that collects a signed report from one kind of chip. Supported providers are TPM, AMD SEV-SNP, Intel TDX and OPAQUE. They differ in how the report is collected and checked, and in how well the agent's memory is shielded from the rest of the machine. Use the [hardware guide](tutorials/hardware-attestation.md) and [limitations](limitations.md) to choose; the provider name alone does not tell you how far to trust a machine. ## Conformance levels -Begin with software signing. Higher profiles add hardware, approval, transparency, or cryptographic requirements. Check the [specification](spec/agent-manifest-v0.2.md) before claiming a level; a successful signature check is only one part of verification. +Conformance levels are tiers of strictness. Start with software signing. Higher levels add requirements for hardware reports, human approvals, public logs or stronger cryptography. Check the [specification](spec/agent-manifest-v0.2.md) before claiming a level; a good signature is only one part of passing. ## Frequently asked questions ### What is an Agent Manifest? -A signed record of deployment artifact bindings. Its usefulness depends on authenticating the issuer, comparing independent runtime inputs, and checking the evidence your trust policy requires. +A signed record of the parts an agent was approved to run with. It is useful when you confirm who signed it, compare it with what is really running, and check whatever extra evidence your own rules require. ### How is an Agent Manifest different from a signed JWT? -JWT describes an envelope for claims. Agent Manifest defines artifact bindings and their verification contract. Envelope choice alone does not establish runtime provenance. +A JWT (JSON Web Token) is a common format for wrapping signed statements. Agent Manifest defines which parts of an agent to record and how to check each one. The wrapper format alone proves nothing about what is running. ### Why not specify it as a JWT or JOSE profile? -Because of what comparable standards chose, not because JWT is incapable. The IETF already picked the JWT/CWT route for attestation *tokens*: EAT ([RFC 9711](https://www.rfc-editor.org/rfc/rfc9711.html)) even supports nested tokens and detached claim sets. That is the right shape for "who is calling, right now," and an EAT is a valid input to a manifest's attestation block. +Because of what similar standards chose; JWT could do the job. The IETF already picked the JWT/CWT route for attestation *tokens*: EAT ([RFC 9711](https://www.rfc-editor.org/rfc/rfc9711.html)) even supports nested tokens and detached claim sets. That is the right shape for "who is calling, right now," and an EAT is a valid input to a manifest's attestation block. Every multi-artifact provenance standard with a transparency log went the other way. SCITT ([RFC 9943](https://www.rfc-editor.org/rfc/rfc9943.html)), the closest analog to Agent Manifest, mandates COSE_Sign1 signed statements. DSSE, the envelope behind in-toto and SLSA, rejected a JWS profile in writing, citing implementation hazards and canonicalization as attack surface. C2PA uses COSE_Sign1 inside a JUMBF container. @@ -124,7 +126,7 @@ An Agent Manifest is that second kind of object: ten artifacts, several independ ### Does Agent Manifest require special hardware? -No. The [first example](getting-started.md) uses software signing. Hardware provenance requires additional evidence and verification. +No. The [first example](getting-started.md) uses only software signing. Proving where an agent runs takes extra hardware evidence and extra checks. ### Is Agent Manifest free and open source? @@ -132,9 +134,9 @@ Yes. The source and license are available on [GitHub](https://github.com/agentru ## Next steps -- [Getting started](getting-started.md): sign, compare, and detect changes. -- [Tutorials](tutorials/index.md): integration and operational tasks. -- [Specification](spec/agent-manifest-v0.2.md): normative requirements. +- [Getting started](getting-started.md): sign a record, compare it, and catch changes. +- [Tutorials](tutorials/index.md): connecting it to your systems and running it day to day. +- [Specification](spec/agent-manifest-v0.2.md): the formal rules an implementation follows. - [Architecture decisions](adr/index.md): design rationale. **Status:** SDK 0.15.0 · Apache-2.0 · proposed to CoSAI WS4 ([RFC #149](https://github.com/cosai-oasis/ws4-secure-design-agentic-systems/issues/149)) · Sponsored by OPAQUE, which funds the engineering, infrastructure and confidential-computing work behind these projects. diff --git a/docs/integrations/agent-credentials.md b/docs/integrations/agent-credentials.md index aba71528..be8dde31 100644 --- a/docs/integrations/agent-credentials.md +++ b/docs/integrations/agent-credentials.md @@ -1,8 +1,10 @@ # Agent Credentials integration +This page is for teams that give agents credentials (signed statements an agent shows to get access, such as a token or a verifiable credential) and want each access decision tied to the exact approved agent and to a record of what it was doing at that moment. You get a pattern for linking the three records so a reviewer can check each one separately. + An Agent Manifest and an agent credential answer different questions. The manifest is the signed, pre-execution declaration of the deployment that was approved. A credential presents a claim to a relying party at a particular decision point. Runtime evidence connects that decision point to the exact manifest and agent instance involved. -This guide describes that three-layer bridge. It is informative: it does not add fields or conformance requirements to the Agent Manifest specification. +This guide describes how to link those three layers. It is informative (guidance only): it does not add fields or conformance requirements to the Agent Manifest specification. For the system-level view across Agent Card, registration, BOM, provenance, attestation, and runtime evidence, see the [standards integration @@ -16,7 +18,7 @@ landscape](standards-landscape.md). | Agent Manifest | What deployment content was approved before execution? | Signed manifest, artifact bindings, attestation, issuer authorization | What changed or happened after the manifest was issued | | Runtime evidence | What state was observed at a defined execution boundary? | Signed or attested event, manifest digest, agent-instance identifier, state fingerprint | That every relevant event was captured, or that observed behavior was correct | -The useful credential claim is therefore not a fresh assertion that repeats manifest fields. It is a reference to independently verifiable evidence: +So the useful thing for a credential to carry is a pointer to evidence that can be checked on its own, rather than a fresh copy of manifest fields: 1. the exact manifest that governed the operation; 2. the runtime-evidence record captured for the relevant agent instance; and @@ -24,7 +26,7 @@ The useful credential claim is therefore not a fresh assertion that repeats mani ## Integration point 1: bind the exact manifest -A credential should identify the exact manifest used for the access decision, not merely the latest manifest for the agent. Carry both the manifest identifier and a digest of the signed manifest bytes (or the signed COSE envelope for version 0.2). +A credential should point to the exact manifest used for the access decision, and the latest manifest for the agent is not enough. Carry both the manifest identifier and a digest (a fingerprint of the exact bytes) of the signed manifest, or of the signed COSE envelope for version 0.2. ```json { @@ -33,11 +35,11 @@ A credential should identify the exact manifest used for the access decision, no } ``` -The identifier supports lookup. The digest prevents a different revision from being substituted under the same lookup path. The relying party still verifies the manifest normally, including issuer authorization, signature or COSE envelope, validity window, revocation status, artifact bindings, and required attestation. +The identifier is for looking the manifest up. The digest stops someone swapping in a different version under the same identifier. The relying party still verifies the manifest normally, including issuer authorization, signature or COSE envelope, validity window, revocation status, artifact bindings, and required attestation. ## Integration point 2: capture state at a defined boundary -An execution boundary tells a producer when to capture runtime state. OCSF pull request [#1704](https://github.com/ocsf/ocsf-schema/pull/1704) proposes normalized `stop_reason_id` values on the `ai_operation` profile: +An execution boundary is a defined moment, such as the point where the model asks to use a tool. It tells the system producing records (the producer) when to capture runtime state. OCSF pull request [#1704](https://github.com/ocsf/ocsf-schema/pull/1704) proposes normalized `stop_reason_id` values on the `ai_operation` profile: | Proposed value | Boundary meaning | Credential use | |---|---|---| @@ -49,11 +51,11 @@ An execution boundary tells a producer when to capture runtime state. OCSF pull `Tool Use` is the important admission-control case: the producer captures evidence before the requested tool executes, and the relying party evaluates the credential before allowing the call. -The stop reason is a trigger and a description, not proof. It is producer-reported metadata. A relying party trusts the captured state only to the degree that the runtime record is signed or attested, its signer is authorized, its freshness is established, and its chain is intact. As of August 2026, OCSF #1704 remains open, so producers using these values are implementing a proposed mapping rather than a released core-schema contract. +The stop reason says when to capture and what happened, but it proves nothing by itself: the producer reports it about itself. A relying party trusts the captured state only to the degree that the runtime record is signed or attested, its signer is authorized, its freshness is established, and its chain is intact. As of August 2026, OCSF #1704 remains open, so producers using these values are implementing a proposed mapping rather than a released core-schema contract. ## Integration point 3: make the runtime record the claim -The credential should carry the digest of, or a resolvable reference to, the signed runtime record. The record itself carries the correlation data and the measured state. +The credential should carry the digest of the signed runtime record, or a link that resolves to it. The record itself carries the correlation data and the measured state. ```json { @@ -75,7 +77,7 @@ The credential should carry the digest of, or a resolvable reference to, the sig } ``` -The credential issuer signs its statement over these references. The relying party then verifies each layer independently: +The credential issuer signs a statement covering these references. The relying party (the service deciding whether to allow the action) then checks each layer on its own: 1. verify the credential issuer, audience, validity, and authorization; 2. retrieve the exact manifest and match `manifest.digest`; @@ -85,11 +87,11 @@ The credential issuer signs its statement over these references. The relying par 6. confirm that the runtime record identifies the intended agent instance and manifest; and 7. apply the relying party's policy to the requested operation. -A `VALID` manifest is an input to step 7. It is not, by itself, authorization for the tool call. +A `VALID` manifest is one input to step 7. On its own it does not approve the tool call. ## Integration point 4: preserve chain of custody -OCSF issue [#1724](https://github.com/ocsf/ocsf-schema/issues/1724) proposes an Agent Trust-Base Inventory class that applies the existing `record_integrity` profile per emission. That proposal is a natural carrier for repeated state snapshots, but it is not yet an assigned OCSF event class. +Chain of custody means each record links to the one before it, so edits or reordering show up. OCSF issue [#1724](https://github.com/ocsf/ocsf-schema/issues/1724) proposes an Agent Trust-Base Inventory class that applies the existing `record_integrity` profile to each record emitted. It would suit repeated snapshots of state, but it is not yet an assigned OCSF event class. Where a producer uses `record_integrity`, the evidence chain should: @@ -100,7 +102,7 @@ Where a producer uses `record_integrity`, the evidence chain should: - identify the authority whose signing credential must be accepted; and - emit a configuration change before a newly introduced dependency first executes when the record is used for admission control. -A cryptographically intact chain proves ordering and exposes modification of recorded entries. It does not prove completeness: a compromised producer may fail to emit an event. Consumers need an independent expectation for cadence or required boundaries if a missing emission must be detected. +An intact signed chain proves the order of records and shows if a recorded entry was changed. It does not prove nothing is missing: a compromised producer can simply skip an event. If you need to spot a missing record, you need your own expectation of how often records should arrive or which boundaries must appear. ## What this bridge does not cover @@ -114,7 +116,7 @@ A cryptographically intact chain proves ordering and exposes modification of rec ## Current standards status -The bridge is usable as an integration pattern today, but two upstream OCSF pieces remain proposals: +You can use this pattern today, but two OCSF pieces it relies on are still proposals: - [`stop_reason_id` on `ai_operation` (#1704)](https://github.com/ocsf/ocsf-schema/pull/1704) defines the proposed boundary vocabulary. - [Agent Trust-Base Inventory (#1724)](https://github.com/ocsf/ocsf-schema/issues/1724) proposes the runtime carrier and repeated-emission semantics. @@ -123,10 +125,10 @@ Implementations should record the schema version or extension vocabulary they us ## Related material -- [Standards integration landscape](standards-landscape.md) — record ownership, +- [Standards integration landscape](standards-landscape.md): record ownership, reference flow, lifecycle changes, and the end-to-end integration diagram -- [OCSF runtime-evidence crosswalk](https://github.com/agentrust-io/agent-manifest/blob/main/spec/agent-manifest-spec-v0.2.md#64-crosswalk-ocsf-runtime-evidence) — identity and delegation correspondence in the Agent Manifest specification -- [Server-side verification](../tutorials/server-side-verification.md) — verifying a manifest at a relying party -- [A2A delegation chains](../tutorials/delegation-chains.md) — narrowing authority between principals +- [OCSF runtime-evidence crosswalk](https://github.com/agentrust-io/agent-manifest/blob/main/spec/agent-manifest-spec-v0.2.md#64-crosswalk-ocsf-runtime-evidence): identity and delegation correspondence in the Agent Manifest specification +- [Server-side verification](../tutorials/server-side-verification.md): verifying a manifest at a relying party +- [A2A delegation chains](../tutorials/delegation-chains.md): narrowing authority between principals - [Agent Credentials RFC discussion](https://github.com/cosai-oasis/ws4-secure-design-agentic-systems/issues/99) - [CoSAI WS4 Agent Manifest review](https://github.com/cosai-oasis/ws4-secure-design-agentic-systems/issues/149) diff --git a/docs/integrations/agt.md b/docs/integrations/agt.md index 4e1c9d0f..821acb90 100644 --- a/docs/integrations/agt.md +++ b/docs/integrations/agt.md @@ -1,19 +1,19 @@ # Agent Governance Toolkit Integration -Use Agent Manifest as evidence input to the application's governance decision. It binds declared composition and configured verification inputs; a governance runtime separately decides whether to permit the requested operation. +This page is for teams using the Microsoft Agent Governance Toolkit (AGT), which checks agent actions against rules while they run. It shows how to feed a checked manifest into AGT's decision. The manifest tells AGT what the agent was approved to run; AGT still decides whether to allow each requested action. ## Establish the evidence boundary -Start with the [runnable manifest gate](index.md#run-a-local-verification-gate). Supply approved issuer keys, actual runtime artifact observations, and current revocation state. Reject missing or mismatched evidence before invoking the protected operation. +Start with the [runnable manifest gate](index.md#run-a-local-verification-gate). Give it the issuer keys you approved, the values actually in use at runtime, and the current revocation list. Reject missing or mismatched evidence before the protected action runs. -Record the verification result and evidence scope alongside the policy decision. Do not convert a self-reported attestation level into a trusted score or assume `VALID` means hardware was appraised. Hardware evidence needs the SDK's independently supplied appraisal inputs and the application's acceptance policy. +Record the check result, and what it covered, next to the policy decision. Do not turn a level the agent reports about itself into a trusted score, and do not assume `VALID` means hardware evidence was checked. Hardware evidence needs the SDK's appraisal inputs, supplied separately, and your application's own rules for accepting it. ## Connect the runtime -Choose the integration point in your deployed [Microsoft Agent Governance Toolkit](https://github.com/microsoft/agent-governance-toolkit) version: the service boundary that authorizes a tool call, delegation, or session. Pass the verified result into that decision and preserve the resulting policy evidence. This page does not define a universal `agt.trust` API or score formula. +Pick the connection point in your deployed [Microsoft Agent Governance Toolkit](https://github.com/microsoft/agent-governance-toolkit) version: the service boundary that approves a tool call, a delegation or a session. Pass the checked result into that decision and keep the policy evidence that comes out. This page does not define a universal `agt.trust` API or a score formula. -Bind decision evidence to the same manifest ID and operation being authorized. A valid signature or an audit-chain commitment does not prove complete logging, correct outputs, or completed execution. For gateway-enforced tool access, see [cMCP session binding](../tutorials/cmcp-session-binding.md). +Tie the decision evidence to the same manifest ID and the same action being approved. A valid signature or a signed audit-log root does not prove that logging was complete, that outputs were correct, or that the action finished. For tool access enforced at a gateway, see [cMCP session binding](../tutorials/cmcp-session-binding.md). ## Validate your integration -Use an accepted manifest as the positive control. Then verify that unknown keys, revoked IDs, changed artifacts, and missing required appraisal prevent the protected operation. Confirm the application does not turn a failed or incomplete verification into a permissive trust score. +Use an accepted manifest as the case that should pass. Then confirm that unknown keys, revoked IDs, changed artifacts and missing required hardware checks each stop the protected action. Confirm the application never turns a failed or incomplete check into a permissive trust score. diff --git a/docs/integrations/autogen-crewai.md b/docs/integrations/autogen-crewai.md index 88dc9d6d..a7137e78 100644 --- a/docs/integrations/autogen-crewai.md +++ b/docs/integrations/autogen-crewai.md @@ -1,21 +1,21 @@ # AutoGen and CrewAI Integration -Use a manifest gate before starting an agent task and before sensitive tool operations. The [local integration example](index.md#run-a-local-verification-gate) tests that gate with approved inputs and rejection cases. +This page is for teams running agents with AutoGen or CrewAI. It shows where to check a manifest before an agent task starts and before sensitive tools run. The [local integration example](index.md#run-a-local-verification-gate) tests that check with approved inputs and with cases that should be rejected. ## AutoGen -Place the gate in the application wrapper that invokes the agent or team and in the service handling protected tools. Carry a manifest identifier for correlation, but resolve and verify the complete signed object using recipient-owned trust and runtime inputs. +Put the check in your code that starts the agent or team, and in the service that runs protected tools. Pass a manifest ID along so records can be matched up, but always fetch and check the full signed record using keys and expected values that the receiving side owns. -Use the [current AgentChat guide](https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/index.html) for your selected package and invocation APIs. Examples written for older `pyautogen` conversation classes are not interchangeable with current AgentChat. Pin and test the version you deploy. +Use the [current AgentChat guide](https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/index.html) for your package and the way you start agents. Examples written for the older `pyautogen` conversation classes do not work with current AgentChat. Pin and test the version you deploy. ## CrewAI -CrewAI provides a `before_kickoff` hook for application work before a crew begins. Perform the manifest check there before returning inputs. See [CrewAI kickoff hooks](https://docs.crewai.com/en/learn/before-and-after-kickoff-hooks) for the supported API. +CrewAI has a `before_kickoff` hook that runs before a crew (a group of agents) starts. Run the manifest check there before returning inputs. See [CrewAI kickoff hooks](https://docs.crewai.com/en/learn/before-and-after-kickoff-hooks) for the supported API. -A kickoff check establishes state only at that point. Gate sensitive tools at execution time as well when revocation, runtime inputs, or authorization can change during the run. Propagate failures instead of catching them and continuing the crew. +A check at kickoff only tells you the state at that moment. If revocation, runtime inputs or permissions can change during the run, check again when sensitive tools run. Let failures stop the crew; do not catch them and carry on. ## Shared requirements -Retain issuer and revocation authority keys independently of incoming manifests. Use complete signed objects: the v0.1 `Ed25519Signer.sign()` API returns a signature block that must be attached to the manifest, while v0.2 uses COSE bytes. +Keep the keys of manifest issuers and of whoever publishes revocations in your own settings, separate from incoming manifests. Always check the full signed record. In v0.1, `Ed25519Signer.sign()` returns a signature block that must be attached to the manifest; v0.2 uses COSE bytes (a standard format for signed messages). -Test that an unknown signer, revoked ID, or mismatched runtime input prevents protected work. Manifest verification and task authorization remain separate checks; neither framework applies them automatically by attaching metadata. +Test that an unknown signer, a revoked ID or a mismatched runtime input stops protected work. Checking the manifest and approving the task are two separate checks. Neither framework does either one just because a manifest is attached. diff --git a/docs/integrations/index.md b/docs/integrations/index.md index 94e37b41..51346e1a 100644 --- a/docs/integrations/index.md +++ b/docs/integrations/index.md @@ -1,24 +1,28 @@ # Integrations -Agent-manifest is framework-agnostic - it is a signing and verification layer, not an agent runtime. These guides show how to attach it to the most common Python agent frameworks. +An Agent Manifest is a signed record of what an agent was approved to run. These guides show where to add a manifest check to the agent software you already use. They are for developers who run agents built with LangChain, the OpenAI Agents SDK, AutoGen, CrewAI or similar tools. Each guide shows the point in that framework where you check the agent's signed record before it is allowed to do something that matters. + +Agent Manifest works with any framework. It signs and checks records about an agent; it does not run the agent. A framework is the library your agent is built on. | Integration | What it covers | |-------------|---------------| | [LangChain](langchain.md) | Manifest for a LangChain agent; tool wrapper that verifies caller manifests | | [OpenAI Agents SDK](openai-agents.md) | Manifest per agent; manifest handoff verification during agent handoffs | | [AutoGen and CrewAI](autogen-crewai.md) | Per-agent manifests in AutoGen conversations and CrewAI crews | -| [AGT (Agent Governance Toolkit)](agt.md) | Using agent-manifest as the identity layer feeding AGT policy and trust scores | -| [NVIDIA OpenShell](openshell.md) | Binding the approved OpenShell, ACS, workload, and tool configuration to runtime TRACE evidence | -| [Agent Credentials](agent-credentials.md) | Joining a credential decision to the exact manifest and signed runtime evidence | -| [Standards landscape](standards-landscape.md) | How Agent Manifest connects to Agent Card, registration, credentials, BOM, provenance, attestation, and runtime evidence | +| [AGT (Agent Governance Toolkit)](agt.md) | Passing a checked manifest into AGT, which decides what an agent may do | +| [NVIDIA OpenShell](openshell.md) | Linking the approved OpenShell sandbox setup to TRACE records of what ran | +| [Agent Credentials](agent-credentials.md) | Tying a credential check to the exact manifest and to signed records of what ran | +| [Standards landscape](standards-landscape.md) | How Agent Manifest fits next to Agent Cards, credentials, software inventories, build records, hardware reports and runtime records | ## Common pattern -Issue a manifest, attach its identifier or complete signed envelope, and verify it before allowing the protected operation. An identifier in a header, callback, or trace is correlation metadata; the recipient still needs the actual signed object, independently approved keys and runtime inputs, and current revocation state. +The pattern is the same everywhere. Create a manifest, send its ID or the full signed record along with the agent, and check it before the agent is allowed to do the protected thing (call a tool, hand work to another agent, reach a service). + +An ID in a header, callback or log only helps you find and match records. To check anything, the receiving side still needs the full signed record, its own list of trusted keys, its own copy of the values it expects to see at runtime, and an up-to-date list of revoked (withdrawn) manifests. ## Run a local verification gate -Complete the [first-manifest example](../getting-started.md), append this block to `first_manifest.py`, and run it again. It tests a framework-independent boundary with synthetic inputs; it does not call a model or install a framework adapter. +This is a small check, called a gate, that refuses to continue unless the manifest verifies. Complete the [first-manifest example](../getting-started.md), add this block to the end of `first_manifest.py`, and run it again. It uses made-up inputs and works without any framework: it does not call a model or install anything extra. ```python from agent_manifest import OverallResult @@ -44,6 +48,6 @@ for rejected_context in ( print("PASS: missing trust and changed runtime input blocked") ``` -Obtain `approved_context` and revocation state through the recipient's own configuration and evidence collection. Never let a caller submit its own expected hashes or trusted-key map as authorization. A `VALID` result applies to the declared bindings and supplied checks; the application separately authorizes the requested operation and delegation scope. +The receiving side must load `approved_context` (the values it expects and the keys it trusts) and the revocation list from its own configuration. Never let the caller supply its own expected hashes or trusted keys: that would let it approve itself. A `VALID` result covers only the bindings in the manifest and the checks you supplied. Your application still decides separately whether the requested action and any handing-on of authority are allowed. -Place this gate before tool, handoff, or service side effects. Recheck when the relevant state changes; attaching a manifest once at startup does not enforce later drift, revocation, or caller permissions. The framework pages identify where to connect this boundary and link to current framework APIs. +Put the gate before anything with a real effect: a tool call, a handoff or a service request. Check again when something relevant changes. Attaching a manifest once at startup does not catch later changes, revocations or permission changes. The framework pages below show where to connect the gate and link to each framework's current documentation. diff --git a/docs/integrations/langchain.md b/docs/integrations/langchain.md index 9094942f..498c14b7 100644 --- a/docs/integrations/langchain.md +++ b/docs/integrations/langchain.md @@ -1,17 +1,17 @@ # LangChain Integration -Verify a caller's manifest before a protected tool executes. Begin with the [runnable verification gate](index.md#run-a-local-verification-gate); it demonstrates both acceptance and rejection without model credentials. +This page shows LangChain users where to check a calling agent's manifest before a protected tool runs. You get a tool call that only goes ahead when the caller's signed record matches what you approved. Start with the [runnable verification gate](index.md#run-a-local-verification-gate); it shows both an accepted and a rejected case and needs no model account. ## Connect the gate -Build the manifest from the approved agent configuration using the [first-manifest example](../getting-started.md). Keep the complete signed object in an authenticated manifest store and its public key in the recipient's trust configuration. A manifest ID attached to callback metadata does not itself authenticate the caller or automatically become an HTTP header. +Build the manifest from the approved agent setup, as in the [first-manifest example](../getting-started.md). Store the full signed record somewhere the receiving side can trust, and give the receiving side the matching public key in its own settings. Putting a manifest ID into LangChain callback data does not prove who the caller is, and it does not become an HTTP header by itself. -For current LangChain agents, use the documented [middleware extension points](https://docs.langchain.com/oss/python/langchain/middleware/overview) to intercept tool execution, or call the gate inside the service that owns the protected operation. Verify before invoking the tool handler, and propagate rejection so no side effect occurs. +In current LangChain agents, use the documented [middleware extension points](https://docs.langchain.com/oss/python/langchain/middleware/overview) (hooks that run around each step) to catch a tool call before it runs. Or call the gate inside the service that owns the protected action. Check before the tool code runs, and pass any rejection back up so nothing happens. -Dynamic prompts, selected tools, and model settings can differ from startup configuration. Supply the actual approved runtime observations for the operation. Capture framework metadata separately for tracing; it must not substitute for signature and artifact checks. +Prompts, chosen tools and model settings can change while the agent runs, so they may not match what you saw at startup. Give the gate the values actually in use for this call. Keep LangChain's own tracing data for debugging; it must not stand in for the signature and artifact checks. ## Verify your wiring -Exercise an accepted manifest, an unknown issuer, changed runtime inputs, a revoked ID, and an unavailable artifact. Confirm rejected cases never reach the protected tool, including retries and alternate execution paths. Repeat with your pinned LangChain version before deploying. +Try five cases: an accepted manifest, an unknown signer, changed runtime inputs, a revoked ID, and an artifact the gate cannot fetch. Confirm that every rejected case stops before the protected tool, including on retries and other code paths that reach the same tool. Repeat with the exact LangChain version you plan to deploy. -This page describes application integration points. Agent Manifest does not automatically install middleware or gate every LangChain call. +This page shows where to connect the check. Agent Manifest does not install middleware for you or check every LangChain call automatically. diff --git a/docs/integrations/openai-agents.md b/docs/integrations/openai-agents.md index 38169d43..73a7aecf 100644 --- a/docs/integrations/openai-agents.md +++ b/docs/integrations/openai-agents.md @@ -1,17 +1,17 @@ # OpenAI Agents SDK Integration -Verify a manifest before an agent handoff or protected tool operation. Start with the [runnable verification gate](index.md#run-a-local-verification-gate); it uses synthetic inputs and needs no model API key. +This page is for developers using the OpenAI Agents SDK. It shows where to check an agent's manifest before one agent hands work to another (a handoff) or before a protected tool runs. Start with the [runnable verification gate](index.md#run-a-local-verification-gate); it uses made-up inputs and needs no model API key. ## Connect a handoff -Keep the signed manifest, approved verification context, and revocation state in application-owned context. A model-generated manifest ID is only a locator and must not choose the recipient's trust anchors or expected runtime hashes. +Keep the signed manifest, the values you expect (the verification context) and the list of revoked manifests in data your application controls. If the model writes out a manifest ID, treat it only as a pointer for looking the record up. It must never choose which keys you trust or which runtime hashes you expect. -The Agents SDK exposes `handoff(..., on_handoff=...)`. Perform checks at the start of `on_handoff`, before application side effects, and raise on rejection: a successful callback return allows the transfer to continue. `is_enabled` can control availability but cannot authorize handoff arguments that have not yet been generated. See the SDK's [handoff documentation](https://openai.github.io/openai-agents-python/handoffs/). +The Agents SDK provides `handoff(..., on_handoff=...)`. Run the checks at the start of `on_handoff`, before your application does anything with a real effect, and raise an error to reject: if the callback returns normally, the handoff goes ahead. `is_enabled` can turn a handoff on or off, but it runs before the handoff arguments exist, so it cannot check them. See the SDK's [handoff documentation](https://openai.github.io/openai-agents-python/handoffs/). -Authenticate the signed object against approved issuer keys and current runtime observations. A handoff to another agent also needs the application's delegation and scope checks. A valid manifest does not independently authorize the requested transfer or input data. +Check the signed record against the issuer keys you approved and the values actually in use at runtime. Handing work to another agent also needs your application's own checks on delegation (passing authority on) and scope (how much authority). A valid manifest does not, on its own, approve the handoff or the data passed with it. ## Test the boundary -Test accepted, unknown-key, revoked, and changed-artifact cases before running a live model. Confirm each rejection prevents the receiving agent and downstream tools from executing. Cover direct tool calls separately; a handoff hook is not a gate for every tool path. +Before running a live model, test four cases: accepted, unknown key, revoked, and changed artifact. Confirm each rejection stops the receiving agent and any tools after it. Test direct tool calls separately; a handoff hook does not guard every path to a tool. -Pin the Agents SDK version used by your application and verify its hook behavior. This page supplies the verification pattern; the framework does not automatically apply Agent Manifest checks. +Pin the Agents SDK version your application uses and confirm how its hooks behave in that version. This page gives the checking pattern; the framework does not run Agent Manifest checks for you. diff --git a/docs/integrations/openshell.md b/docs/integrations/openshell.md index d84a4b3e..82e8f7ca 100644 --- a/docs/integrations/openshell.md +++ b/docs/integrations/openshell.md @@ -1,15 +1,12 @@ # NVIDIA OpenShell integration -Agent Manifest binds the OpenShell and AGT deployment configuration approved -before execution. OpenShell OCSF logs and TRACE records describe what happened -after startup. Keep those roles separate and join them through stable identity -and matching artifact hashes. +This page is for teams running agents inside NVIDIA OpenShell sandboxes. It shows how to link the setup you approved before the agent started to the records of what the agent did afterwards, so a checker can tell whether the sandbox ran the approved setup. + +The two records have different jobs. Agent Manifest records the OpenShell and AGT configuration approved before execution. OpenShell's OCSF logs (a common security-event log format) and TRACE records describe what happened after startup. Keep those roles separate and join them through a shared identity and matching artifact hashes (fingerprints of exact file contents). ## What to bind -Create the exact canonical composite policy bundle used by the OpenShell TRACE -adapter. It contains the effective OpenShell policy bytes and revision plus the -AGT Agent Control Specification manifest bytes. Bind its digest as +Build the exact combined policy bundle that the OpenShell TRACE adapter uses. It contains the OpenShell policy bytes actually in force and their revision, plus the bytes of the AGT Agent Control Specification (ACS) manifest. Put the hash of that bundle in `artifacts.policy_bundle.hash`. | Manifest artifact | OpenShell deployment input | @@ -21,13 +18,12 @@ AGT Agent Control Specification manifest bytes. Bind its digest as | `supply_chain` | Immutable sandbox image and agent package provenance | | `decision_trace` | Audit-chain root at manifest issuance, when available | -Do not put runtime OCSF events into the manifest. The manifest commits to the -approved deployment; TRACE commits to the execution transcript. +Do not put runtime OCSF events into the manifest. The manifest records the approved deployment; TRACE records what ran. ## Required joins -Use the same SPIFFE URI or DID as Agent Manifest `agent_id` and TRACE `subject`. -The runtime collector should also retain: +Use the same SPIFFE URI or DID (standard forms of workload or agent identity) as the Agent Manifest `agent_id` and the TRACE `subject`. +The runtime collector should also keep: - manifest identifier; - OpenShell sandbox identifier; @@ -35,15 +31,15 @@ The runtime collector should also retain: - immutable workload image digest; - composite policy bundle hash. -A verifier compares the manifest's approved policy and workload hashes with the +A verifier compares the approved policy and workload hashes in the manifest with the TRACE record built from OpenShell evidence. A mismatch means the runtime did not -execute the approved deployment and must fail verification. +run the approved deployment, and verification must fail. ## Assurance boundary -An OpenShell compute driver is not an Agent Manifest hardware attestation -provider. Use Level 0 unless the deployment supplies a supported quote and the -manifest signing key is demonstrably bound to its measured workload. +An OpenShell compute driver does not count as an Agent Manifest hardware attestation +provider (a source of signed hardware reports). Use Level 0 unless the deployment supplies a supported hardware report (quote) and the +manifest signing key is shown to be tied to the measured workload. -For runtime evidence construction, see the +For how to build the runtime records, see the [`agentrust-io/integrations` OpenShell adapter](https://github.com/agentrust-io/integrations/tree/main/integrations/openshell). diff --git a/docs/integrations/standards-landscape.md b/docs/integrations/standards-landscape.md index 2f244e30..4fb6d619 100644 --- a/docs/integrations/standards-landscape.md +++ b/docs/integrations/standards-landscape.md @@ -1,11 +1,18 @@ # Standards integration landscape -Agent Manifest is an integration point, not a replacement for an Agent Card, -credential, registration record, bill of materials, provenance statement, -attestation format, or runtime evidence. Each record keeps its existing owner and -lifecycle. Small, signed references connect them. - -This page is informative. It describes the intended integration boundary and +This page is for architects and standards readers who want to see where Agent +Manifest sits next to the other records about an AI agent. You get a map of +which record answers which question, and how they point to each other. + +Agent Manifest links to these other records and does not replace any of them: +an Agent Card (the agent's public description of itself), a credential, a +registration record, a bill of materials (BOM, a list of the software parts), +a provenance statement (how something was built), a hardware attestation (a +signed report from the processor about what is running), or runtime evidence +(records of what the agent did). Each record keeps its existing owner and +lifecycle. Small signed references connect them. + +This page is informative (guidance only). It describes the intended integration boundary and does not add fields or conformance requirements to the Agent Manifest specification. @@ -30,9 +37,10 @@ In simple terms: **[Open the diagram full size](../assets/standards-integration-landscape.svg)** for readable labels. Select the image to open it in a new tab. -The arrows are references, not schema ownership transfers. Agent Manifest binds -the digests and identifiers needed to verify a deployment. It does not copy the -source records into a new umbrella schema. +The arrows are references. No record takes ownership of another's format. Agent +Manifest holds the digests (fingerprints of exact bytes) and identifiers needed to +check a deployment. It does not copy the other records into one new combined +format. ## See it working @@ -60,8 +68,9 @@ connects all three layers in one scenario: 1. Agent Manifest declares the approved prompt, policy, tools, and artifact hashes. -2. cMCP evaluates each requested action against the active Cedar policy and - tool catalog. +2. cMCP, the gateway that sits in front of the agent's tools, checks each + requested action against the active Cedar policy (a rules file) and tool + catalog. 3. TRACE and the signed audit bundle preserve the session and decisions for offline verification after the processes stop. @@ -81,8 +90,8 @@ does not prove. policy, attestation, TRACE, and model-custody demonstrations that need no confidential-computing hardware. - [AgenTrust Marketplace](https://agentrust-io.com/marketplace/) lists open - adapters, plugins, platforms, and evidence exporters. Marketplace presence is - discovery, not an endorsement; verify each listing and its evidence for your + adapters, plugins, platforms, and evidence exporters. A listing helps you find + a tool; it is not an endorsement. Check each listing and its evidence for your own deployment. - [Your first manifest](../tutorials/your-first-manifest.md) walks through creation and signing, and [server-side @@ -91,6 +100,9 @@ does not prove. ## Record boundaries +Each row is one kind of record: the question it answers, what it holds or +points to, and what it should not contain. + | Record | Answers | Carries or references | Must remain outside it | |---|---|---|---| | Agent Registration Record | Which agent is enrolled, who owns it, and what governance ceiling applies? | Approved Agent Card, credential issuer, and manifest reference | Deployment internals and live authorization grants | @@ -118,14 +130,16 @@ rules; the manifest retains its own signature and attestation binding. } ``` -The exact carrier fields remain work for the owning standards. The integration -invariant is that the URI is resolvable, the digest identifies the exact signed -bytes, and the media type selects the correct verifier. A mutable agent-level -URL without a digest is not enough for an audit or authorization decision. +The exact field names are for each owning standard to decide. What must always +hold: the URI can be fetched, the digest identifies the exact signed bytes, and +the media type tells the checker which verifier to use. A URL for the agent that +can change, with no digest, is not enough for an audit or an access decision. ## Verification sequence -At a relying party such as an admission controller, MCP gateway, or A2A peer: +A relying party is the service that decides whether to let the agent in or let +an action go ahead, such as an admission controller, an MCP gateway (in front of +tools) or an A2A peer (another agent). It checks in this order: 1. Authenticate the registration record, Agent Card, or credential according to the carrier's rules. @@ -146,6 +160,9 @@ At a relying party such as an admission controller, MCP gateway, or A2A peer: ## Lifecycle and change rules +When something about the agent changes, this table shows which record has to be +reissued. + | Change | Record that changes | Required consequence | |---|---|---| | Endpoint, advertised skill, or protocol changes | Agent Card | Reissue the card; update its registration reference if governance requires it | diff --git a/docs/memory-checkpoint-assessment.md b/docs/memory-checkpoint-assessment.md index 4441e485..27ea0342 100644 --- a/docs/memory-checkpoint-assessment.md +++ b/docs/memory-checkpoint-assessment.md @@ -1,12 +1,14 @@ # Memory checkpoint assessment -`MemoryCheckpointAssessment/0.1` is a non-normative reference assessment for the retrieval behavior of a candidate memory checkpoint. It is tracked in [issue #298](https://github.com/agentrust-io/agent-manifest/issues/298). +When an agent's memory is updated, the new version (a checkpoint) can pass every integrity check and still make the agent look things up differently, for example by surfacing an old fact over its correction. This page describes an optional test that catches that kind of change before someone approves the new memory. It is for teams running agents with long-lived memory and for anyone designing the approval step for memory updates. + +`MemoryCheckpointAssessment/0.1` is a non-normative reference assessment (an example, not part of the formal rules) for the retrieval behavior of a candidate memory checkpoint. Retrieval is the step where the agent searches its memory for items relevant to a question; the retriever is the component that does it. The work is tracked in [issue #298](https://github.com/agentrust-io/agent-manifest/issues/298). The problem is deliberately narrow. A checkpoint can be cryptographically valid, append-only, fresh, and within its update budget while still changing what the retriever selects in a harmful way. This assessment adds evidence about that retrieval behavior without changing the meaning of Agent Manifest verification. ## What the assessment answers -The assessment asks whether a candidate checkpoint preserves a declared set of retrieval invariants under a pinned retriever configuration. +The assessment asks whether a candidate checkpoint preserves a declared set of retrieval invariants (lookups that must keep giving the same kind of answer) under a pinned retriever configuration (the exact search settings, fixed so the run can be repeated). It does **not** decide whether stored content is true, whether an application response is correct, whether a memory write was authorized, or whether a checkpoint is safe in every possible sense. It also does not approve a checkpoint. The deterministic result depends only on the declared probes and retrieval evidence, not on a probabilistic judge. @@ -26,7 +28,7 @@ The reference implementation keeps five concerns distinct: ## Approval decision tree -The gate is intentionally pass-only: +Only a clear pass lets approval continue. Missing evidence, a failure or an unclear result all keep the gate shut: ```text Presented assessment evidence @@ -86,7 +88,7 @@ If a valid checkpoint was approved despite an applicable failing assessment, the ## Retriever profile -Retrieval behavior is only reproducible when the load-bearing retrieval path is pinned. `RetrieverProfile` therefore records, where applicable: +A retrieval result can only be repeated if every setting that affects it is written down. `RetrieverProfile` therefore records, where applicable: - implementation identity and version; - adapter and harness version; @@ -111,7 +113,7 @@ The harness snapshots the baseline and candidate state references before running ## Initial probe set -The 0.1 harness covers four behavioral invariants: +The 0.1 harness (the test runner) covers four behavioral invariants. Each probe below is one small, repeatable lookup with a known right answer: ### Correction precedence @@ -155,7 +157,7 @@ Issue #298 also identified a useful higher-level distinction between `public-rep ## Canonicalization dependency -Assessment digests use the repository canonicalization implementation rather than defining a second one. +Assessment digests (fingerprints) use the repository's existing canonicalization code, which writes JSON in one fixed byte order, rather than a second copy of it. Current `main` has fixed the UTF-16 key-ordering and exponent-formatting defects previously exercised by the assessment tests. The remaining U+2028 escaping issue is still tracked by Agent Manifest #322, so the assessment tests keep one strict expected failure for that live interoperability boundary. diff --git a/docs/memory-governance.md b/docs/memory-governance.md index 2eb8ca7d..97f67905 100644 --- a/docs/memory-governance.md +++ b/docs/memory-governance.md @@ -4,22 +4,25 @@ description: "How Agent Manifest judges agent memory: integrity against an appro # Agent Memory Governance -In the `agent-manifest` specification, the concept of a "good" versus a "bad" or "weak" memory is strictly defined by **cryptographic integrity, drift, and freshness**, rather than semantic usefulness. +Many agents keep a memory: notes and facts they carry from one task or conversation to the next. This page explains how Agent Manifest decides whether that memory is still the one someone approved. It is for people deploying long-running agents and for reviewers who need to know what a memory check does and does not tell them. -A "good" memory perfectly matches an explicitly approved baseline state and is within its allowed lifespan. A "bad" memory has drifted from its approved state (tampered with or evolved without oversight) or has expired. +The test is simple. Memory is "good" when it is exactly the approved copy and has not passed its expiry time. It is "bad" when it has changed since approval (drifted, whether through tampering or unreviewed learning) or has expired. The check says nothing about whether the memory is useful or correct, only whether it is unchanged and current. -According to **Section 3.2.6 (Memory Baseline Binding)** of the Agent Manifest spec, the following constraints govern agent memory state: +The rules come from **Section 3.2.6 (Memory Baseline Binding)** of the Agent Manifest spec: ## 1. The Approved State (`snapshot_hash`) -The ultimate arbiter of a valid memory is the `snapshot_hash`. This is the SHA-256 (or SHAKE-256) hash of the RFC 8785 canonical JSON serialization of the memory store's key-value map. +The `snapshot_hash` is a fingerprint of the approved memory. Any change to the memory, however small, gives a different fingerprint. + +??? info "Technical detail: how the fingerprint is computed" + The `snapshot_hash` is the SHA-256 (or SHAKE-256) hash of the RFC 8785 canonical JSON serialization of the memory store's key-value map. Canonical JSON writes the same data in exactly one byte order, so two copies of the same memory always hash the same. - If the running agent's memory matches this hash, the memory is valid. - If it deviates, a "drift" has occurred, and the memory is considered unapproved. ## 2. The Penalty for Bad Memory (`drift_policy`) -If a memory diverges from its `snapshot_hash`, the `drift_policy` dictates how the system reacts: +If the memory no longer matches its `snapshot_hash`, the `drift_policy` setting decides what happens next: - **`deny-on-drift`**: The strictest policy (required for Level 2 compliance). If memory changes without re-approval, all tool calls are rejected, a `MEMORY_DRIFT_DETECTED` event is fired, and operator acknowledgment is required. - **`alert-on-drift`**: The agent continues to operate, but an alert is surfaced in every verification result. @@ -27,15 +30,15 @@ If a memory diverges from its `snapshot_hash`, the `drift_policy` dictates how t ## 3. Freshness and Expiration (`ttl_seconds`) -A perfectly intact memory becomes invalid if it exceeds its time-to-live. The manifest mandates a `ttl_seconds` field for persistent memory: +Even unchanged memory stops being valid once its time-to-live runs out, so someone has to look at it and approve it again. The manifest requires a `ttl_seconds` field for persistent memory: - **Minimum**: 3,600 seconds (1 hour) - **Maximum**: 7,776,000 seconds (90 days) - This enforces periodic re-approval of the memory state, preventing "alignment drift" where long-running agents slowly accumulate unreviewed memory changes that subtly corrupt behavior. + This forces regular re-approval, so a long-running agent cannot slowly pile up unreviewed memory changes that quietly alter how it behaves. ## 4. Memory Types (`memory_type`) -Governance rules vary depending on the memory type: +The rules differ by how long the memory lives and who shares it: - **`session`**: Memory scoped to a single conversation. Checked against the baseline at startup, but exempt from drift detection while the session is active. - **`persistent`**: Memory persisting across sessions. The `snapshot_hash` represents the last approved checkpoint, and drift checks are continuously enforced. @@ -43,4 +46,4 @@ Governance rules vary depending on the memory type: ## Future Outlook: Stateful Checkpoints (v0.2 Roadmap) -In the v0.1 spec, memory is treated as a static baseline. Defining how an agent safely learns new facts during a persistent session without invalidating its manifest is the goal of the **Memory baseline checkpoint protocol** planned for **v0.2**. This will define how incremental memory updates (deltas) are bound and checkpointed without requiring the entire memory store to be re-hashed and re-approved from scratch. +In the v0.1 spec, memory is a fixed approved copy. An agent that learns something new therefore falls out of step with its manifest. The **Memory baseline checkpoint protocol** planned for **v0.2** aims to let an agent record small approved changes (deltas) as it goes, without re-fingerprinting and re-approving the whole memory each time. diff --git a/docs/operations/audit-log.md b/docs/operations/audit-log.md index 604ce2a6..ead8d095 100644 --- a/docs/operations/audit-log.md +++ b/docs/operations/audit-log.md @@ -1,12 +1,14 @@ # Audit log management -A manifest can commit to an audit-chain state; the actual entries are stored separately. The producer must define the chain format, and recipients must authenticate the root and verify the corresponding evidence. This guide covers storing, retaining, querying, and submitting audit entries to a public transparency log. +An audit log is the running record of what an agent decided and did. This guide is for teams who keep that record: where to store it, how long to keep it, how to search it, and how to publish proof of it to a public transparency log (a public, append-only log that anyone can check). + +A manifest can capture a fingerprint of the audit log as it stood when the manifest was signed; the log entries themselves are stored elsewhere. Whoever produces the log defines its format, and whoever relies on it has to check that fingerprint and the evidence behind it. --- ## What the audit chain contains -Each entry appended to the audit chain is a leaf in a Merkle tree. The `audit_chain_root` in `artifacts.decision_trace` commits the agent to the state of the chain at manifest issuance. +The entries are linked so that changing an old one changes the fingerprint of the whole log. Each entry appended to the audit chain is a leaf in a Merkle tree (a structure that combines many hashes into a single root hash). The `audit_chain_root` in `artifacts.decision_trace` commits the agent to the state of the chain at manifest issuance. The following is an illustrative, application-defined entry, not an SDK schema. Its identifiers and hashes are abbreviated, and the attestation level is only a declaration: @@ -29,6 +31,8 @@ The chain root advances after each append. An inclusion proof can establish that ## Storage options +Where you keep the log depends on volume, how long you must keep it, and how you need to search it. + | Option | Best for | Retention | Query capability | |--------|---------|-----------|-----------------| | Append-only file (`audit.jsonl`) | Development | Short-term | `grep`, `jq` | @@ -43,7 +47,7 @@ Choose storage controls for the applicable retention and access requirements. Ob ## Retention policy -Define retention by record category, jurisdiction, contract, and the purpose for which the data was collected. Agent Manifest does not prescribe a universal retention period or certify that an audit store meets those obligations. +How long to keep records is a legal and privacy decision for your organization, not something this project sets. Define retention by record category, jurisdiction, contract, and the purpose for which the data was collected. Agent Manifest does not prescribe a universal retention period or certify that an audit store meets those obligations. Document the applicable retention and deletion rules with the responsible legal and privacy owners. Separate private payloads from shareable commitments; publishing a hash or record to a public log can make later deletion impractical. Configure access controls, backups, holds, and deletion verification for each storage system, then test those procedures. @@ -105,18 +109,22 @@ ORDER BY 1 DESC, 3 DESC; ## Transparency evidence -Keep the private audit store and public transparency evidence separate. An audit entry, a signed tree root, a manifest signature, and a log receipt are distinct objects with different verification steps. +Publishing to a transparency log lets outsiders confirm a record existed without seeing your private log. Keep the private audit store and public transparency evidence separate. An audit entry, a signed tree root, a manifest signature, and a log receipt are distinct objects with different verification steps. -To publish a commitment, define the exact bytes and their digest, sign those bytes with the intended key, and use the log's supported entry format. Supply a real signature and the corresponding public key or certificate; base64-encoding a payload does not create a signature. A signature on the manifest's signing preimage is not automatically a signature on a separately serialized audit-root object. +??? info "Technical detail: publishing to Rekor and verifying inclusion" -Use maintained Sigstore tooling and its [Rekor documentation](https://docs.sigstore.dev/logging/overview/) for publication and verification. Review the data disclosed before publishing. This guide does not submit anything to a public log. + To publish a commitment, define the exact bytes and their digest, sign those bytes with the intended key, and use the log's supported entry format. Supply a real signature and the corresponding public key or certificate; base64-encoding a payload does not create a signature. A signature on the manifest's signing preimage is not automatically a signature on a separately serialized audit-root object. -Retrieving an entry and comparing its digest is a content lookup, not inclusion-proof verification. The recipient must authenticate the relevant signed log evidence, verify the proof against an accepted checkpoint/root, and confirm that the verified entry commits to the expected signed object. Apply the log's trust, freshness, and consistency policy; an entry identifier alone establishes none of these properties. + Use maintained Sigstore tooling and its [Rekor documentation](https://docs.sigstore.dev/logging/overview/) for publication and verification. Review the data disclosed before publishing. This guide does not submit anything to a public log. + + Retrieving an entry and comparing its digest is a content lookup, not inclusion-proof verification. The recipient must authenticate the relevant signed log evidence, verify the proof against an accepted checkpoint/root, and confirm that the verified entry commits to the expected signed object. Apply the log's trust, freshness, and consistency policy; an entry identifier alone establishes none of these properties. Only after independently appraising transparency evidence should the application supply verified entry IDs or receipt hashes to `VerificationContext`, bound to the exact manifest ID. See [server-side verification](../tutorials/server-side-verification.md#add-revocation-and-evidence-appraisal). ## Interpret audit signals +Some patterns in the log are worth a closer look. None of them proves tampering on its own. + | Signal | What to investigate | |--------|---------------------| | Expected activity has no corresponding entries | Compare workload expectations with collection and delivery health; an idle agent can legitimately produce no events. | diff --git a/docs/operations/index.md b/docs/operations/index.md index c1c90f0a..47156938 100644 --- a/docs/operations/index.md +++ b/docs/operations/index.md @@ -1,6 +1,8 @@ # Operations -Operate the issuer, evidence distribution, and recipient verification checks. Start with the [local verification service](../tutorials/deploying-the-verification-endpoint.md), then define how your deployment distributes trust, refreshes evidence, and handles rejected records. +These guides are for the people who keep Agent Manifest running day to day: whoever holds the signing keys, whoever publishes revocations (records that withdraw a manifest early), and whoever runs the services that check manifests. They cover changing keys, keeping audit records, and watching for problems. + +Start with the [local verification service](../tutorials/deploying-the-verification-endpoint.md), then decide how your deployment hands out trusted keys, keeps evidence current, and deals with rejected records. | Guide | What it covers | |-------|---------------| @@ -10,7 +12,7 @@ Operate the issuer, evidence distribution, and recipient verification checks. St ## Operational model -Assign ownership for these responsibilities; the SDK does not require three separately deployed services: +Three jobs need a named owner. They can live in one service or several; the SDK does not require three separately deployed services: 1. **Issuance and key custody.** Approve the configuration, sign the manifest, protect issuer keys, and distribute trusted public keys independently. Choose key custody according to the required assurance and deployment architecture. @@ -18,4 +20,4 @@ Assign ownership for these responsibilities; the SDK does not require three sepa 3. **Recipient verification and authorization.** Supply approved keys and independent runtime observations, appraise required evidence, and reject unacceptable results before side effects. Verification can run in application code or a service; a sidecar is one deployment option. Caller authentication and operation authorization remain application responsibilities. -Monitor failures and stale evidence without treating every rejected manifest as a service outage. Test rotation and refresh behavior across every worker before relying on an availability or propagation target. +Watch for failures and out-of-date evidence, but do not treat every rejected manifest as an outage: rejecting a bad record is the system working. Test rotation and refresh behavior across every worker before relying on an availability or propagation target. diff --git a/docs/operations/key-rotation.md b/docs/operations/key-rotation.md index cb2342f9..4eba87e8 100644 --- a/docs/operations/key-rotation.md +++ b/docs/operations/key-rotation.md @@ -1,24 +1,32 @@ # Signing Key Rotation Runbook -Replace a signing key while preserving issuer trust and preventing old manifests from being accepted. Treat planned rotation and a known compromise differently: a compromised key must not remain trusted just to preserve an overlap window. +This runbook is for whoever owns the key that signs your agents' manifests. It walks through replacing that key, either on a schedule or because it may have leaked, so that services keep trusting your new manifests and stop accepting the old ones. + +Treat planned rotation and a known compromise differently: a compromised key must not remain trusted just to preserve an overlap window. ## Establish the scope -Inventory the signing key, affected manifest IDs, trusted revocation authority, issuer-key mappings, verification replicas, cached revocation state, and dependent evidence or approvals. Record the acceptance and availability criteria for this rollout. +First, list everything the old key touches. Inventory the signing key, affected manifest IDs, trusted revocation authority, issuer-key mappings, verification replicas, cached revocation state, and dependent evidence or approvals. Record the acceptance and availability criteria for this rollout. ## Prepare replacement manifests -Generate the new key through your approved key-management system. Distribute its public key and issuer authorization through the verifier's trusted configuration channel, and confirm each relying party has received it. +Every service that checks manifests has to learn the new public key before you rely on it. Generate the new key through your approved key-management system. Distribute its public key and issuer authorization through the verifier's trusted configuration channel, and confirm each relying party has received it. + +Issue replacements with new `manifest_id` values and current validity windows. Revocation is by manifest ID: re-signing an old ID with a new key does not protect it from that ID's revocation. Rebind approvals, attestation evidence, and other fields tied to the old manifest. -Issue replacements with new `manifest_id` values and current validity windows. Revocation is by manifest ID: re-signing an old ID with a new key does not protect it from that ID's revocation. Rebind approvals, attestation evidence, and other fields tied to the old manifest. Use the supported builder and signing API for the chosen envelope version; a v0.2 COSE envelope is not a JSON dictionary with a replacement signature field. +??? info "Technical detail: re-signing a v0.2 envelope" + + Use the supported builder and signing API for the chosen envelope version; a v0.2 COSE envelope is not a JSON dictionary with a replacement signature field. Verify replacements against independently approved runtime artifacts and keys before deploying them. The [first-manifest example](../getting-started.md) demonstrates the required trust-input separation. ## Revoke affected IDs and refresh verifiers -Use the separately authorized revocation key to sign one record for each affected manifest ID. Publish authenticated revocation state and refresh every relying party's store. The [revocation tutorial](../tutorials/revocation-and-key-rotation.md) provides executable positive and negative checks. +Next, withdraw the old manifests and make sure every service has heard about it. Use the separately authorized revocation key to sign one record for each affected manifest ID. Publish authenticated revocation state and refresh every relying party's store. The [revocation tutorial](../tutorials/revocation-and-key-rotation.md) provides executable positive and negative checks. + +??? info "Technical detail: why each replica needs an explicit refresh" -`FileCRL` loads into memory at construction. The FastAPI router serves that object's cache; it does not reread the file on every request. A different process appending to disk does not update existing readers. `RevocationStore` also needs explicit refresh. Confirm the new state on each replica rather than assuming a cache header or elapsed interval made it propagate. + `FileCRL` loads into memory at construction. The FastAPI router serves that object's cache; it does not reread the file on every request. A different process appending to disk does not update existing readers. `RevocationStore` also needs explicit refresh. Confirm the new state on each replica rather than assuming a cache header or elapsed interval made it propagate. For a planned rotation, a bounded overlap is a deployment choice while both keys remain trusted. For a compromise, withdraw the compromised authority and enforce revocations under the incident policy immediately; record any availability impact. diff --git a/docs/operations/monitoring.md b/docs/operations/monitoring.md index bb355f69..c53d6dfd 100644 --- a/docs/operations/monitoring.md +++ b/docs/operations/monitoring.md @@ -1,6 +1,8 @@ # Monitor verification outcomes -Measure completed verdicts, unexpected errors, and verification latency separately. A healthy verifier can reject an invalid manifest; increasing the proportion of `VALID` results is not a reliability objective. +This guide is for whoever runs a service that checks manifests and needs to know it is working. You count the verdicts it returns, the errors it hits, and how long each check takes, using the Prometheus monitoring system, and you learn which of those numbers deserve an alert. + +Keep three things apart: verdicts, unexpected errors, and time taken. A healthy verifier rejects bad manifests, so a rising share of `VALID` results is not a goal in itself. ## Run a metrics example @@ -57,21 +59,25 @@ print("PASS: unexpected error counted and propagated") print(generate_latest(registry).decode("utf-8")) ``` -The histogram covers the wrapped verifier call, including exceptions. It excludes HTTP transport, queueing, and any evidence fetching performed before the call. `ERROR` is this wrapper's exception label, not an SDK verdict. The counter resets when its process restarts. +The timing histogram covers the wrapped verifier call, including exceptions. It excludes HTTP transport, queueing, and any evidence fetching performed before the call. `ERROR` is this wrapper's exception label, not an SDK verdict. The counter resets when its process restarts. ## Connect it to the service -Move `make_verifier_metrics` and its imports into your service module. Inside the [deployment guide's `create_app()`](../tutorials/deploying-the-verification-endpoint.md#create-verifierpy), create `registry, measured_verify = make_verifier_metrics()` once. In the `/verify` handler, replace the `verify_manifest(...)` call with `measured_verify(...)`. +To collect the same numbers from the [verification service](../tutorials/deploying-the-verification-endpoint.md), wrap its verify call and add a `/metrics` route. + +??? info "Technical detail: wiring the metrics into the service" -Expose a `/metrics` route returning `Response(generate_latest(registry), media_type=CONTENT_TYPE_LATEST)`, importing `Response` from FastAPI and `CONTENT_TYPE_LATEST` from `prometheus_client`. Keep the registry shared by that app's requests; creating one per request loses the history. Unknown IDs rejected before the verifier call need a separate HTTP request counter if you want to measure them. + Move `make_verifier_metrics` and its imports into your service module. Inside the [deployment guide's `create_app()`](../tutorials/deploying-the-verification-endpoint.md#create-verifierpy), create `registry, measured_verify = make_verifier_metrics()` once. In the `/verify` handler, replace the `verify_manifest(...)` call with `measured_verify(...)`. -This registry is for one worker. Multiple worker processes need the client's [multiprocess configuration](https://prometheus.github.io/client_python/multiprocess/) or a separate scrape target per process. Protect the metrics endpoint according to your deployment policy. Keep manifest IDs, agent IDs, hashes, URLs, and raw error messages out of metric labels. + Expose a `/metrics` route returning `Response(generate_latest(registry), media_type=CONTENT_TYPE_LATEST)`, importing `Response` from FastAPI and `CONTENT_TYPE_LATEST` from `prometheus_client`. Keep the registry shared by that app's requests; creating one per request loses the history. Unknown IDs rejected before the verifier call need a separate HTTP request counter if you want to measure them. -See the [Python counter documentation](https://prometheus.github.io/client_python/instrumenting/counter/) for reset and label behavior. The SDK does not automatically install this instrumentation. + This registry is for one worker. Multiple worker processes need the client's [multiprocess configuration](https://prometheus.github.io/client_python/multiprocess/) or a separate scrape target per process. Protect the metrics endpoint according to your deployment policy. Keep manifest IDs, agent IDs, hashes, URLs, and raw error messages out of metric labels. + + See the [Python counter documentation](https://prometheus.github.io/client_python/instrumenting/counter/) for reset and label behavior. The SDK does not automatically install this instrumentation. ## Query what was measured -Configure Prometheus to scrape the service under a job named `manifest-verifier`, or replace that job selector in these queries. +These queries, written in PromQL (the Prometheus query language), turn the raw counts into rates and timings. Configure Prometheus to scrape the service under a job named `manifest-verifier`, or replace that job selector in these queries. | Signal | PromQL | Interpretation | |--------|--------|----------------| @@ -80,13 +86,15 @@ Configure Prometheus to scrape the service under a job named `manifest-verifier` | Fleet p99 verifier latency | `histogram_quantile(0.99, sum by (le) (rate(agent_manifest_verification_duration_seconds_bucket{job="manifest-verifier"}[5m])))` | Estimated latency for the measured operation across workers. | | Failed scrape | `up{job="manifest-verifier"} == 0` | Prometheus could not scrape a configured target; investigate service, network, and scrape configuration. | -Use separate queries for p50, p95, and p99. `0.50|0.95|0.99` is not a valid quantile argument. The [Prometheus function reference](https://prometheus.io/docs/prometheus/latest/querying/functions/) describes histogram aggregation and missing-series behavior. +??? info "Technical detail: quantiles and missing series" + + Use separate queries for p50, p95, and p99. `0.50|0.95|0.99` is not a valid quantile argument. The [Prometheus function reference](https://prometheus.io/docs/prometheus/latest/querying/functions/) describes histogram aggregation and missing-series behavior. -`absent(agent_manifest_verifications_total)` only establishes that the selected series is absent. It does not prove the service is down: a labeled counter may not exist before the first call. A removed scrape target also needs monitoring of service discovery or expected target inventory; `up == 0` alone cannot detect every missing target. + `absent(agent_manifest_verifications_total)` only establishes that the selected series is absent. It does not prove the service is down: a labeled counter may not exist before the first call. A removed scrape target also needs monitoring of service discovery or expected target inventory; `up == 0` alone cannot detect every missing target. ## Choose alerts from service policy -Select thresholds and evaluation windows from measured traffic and the service's objectives. This guide supplies no measured latency, uptime, or revocation-propagation guarantee. +Set alert levels from your own traffic, and read each spike for what it actually counts. Select thresholds and evaluation windows from measured traffic and the service's objectives. This guide supplies no measured latency, uptime, or revocation-propagation guarantee. - A `MISMATCH` spike means more failed comparisons or signatures. Examine details before concluding tampering or replay. - A `REVOKED` spike counts verification attempts against revoked IDs. Repeated requests for one ID can cause it; it does not count new revocations. @@ -98,4 +106,4 @@ Separate availability and processing-error objectives from authorization outcome ## Other telemetry backends -With OpenTelemetry, instrument the same call boundary and preserve verdict/exception distinctions. Configure a metric reader and exporter in the hosting application; creating a meter and instruments alone does not deliver metrics to a backend. Use your deployment's existing telemetry configuration and test delivery with an intentional request and failure before relying on alerts. +The same approach works with other monitoring tools. With OpenTelemetry, instrument the same call boundary and preserve verdict/exception distinctions. Configure a metric reader and exporter in the hosting application; creating a meter and instruments alone does not deliver metrics to a backend. Use your deployment's existing telemetry configuration and test delivery with an intentional request and failure before relying on alerts. diff --git a/docs/spec-overview.md b/docs/spec-overview.md index 34455c58..67609479 100644 --- a/docs/spec-overview.md +++ b/docs/spec-overview.md @@ -4,7 +4,9 @@ description: Agent Manifest Specification v0.2, an RFC 2119 standard for the cry # Specification Overview -The Agent Manifest Specification v0.2 is a formal RFC 2119 document defining a verifiable declaration of an AI agent's deployment content. +This page is a map of the specification, the formal rulebook that anyone building or checking Agent Manifests follows. Read it if you are writing your own implementation, auditing one, or want to know where a rule lives; if you only want to try the tool, start with [Getting started](getting-started.md) instead. + +The Agent Manifest Specification v0.2 is a formal RFC 2119 document (its rules use the standard words MUST, SHOULD and MAY with fixed meanings) defining a verifiable declaration of an AI agent's deployment content: a signed list of what the agent was approved to run with. !!! tip "TL;DR" The spec has 10 sections covering the problem statement, data model for all 10 artifact bindings, Ed25519 and post-quantum cryptographic protocols, the verification protocol, integration with AGT and cMCP, the threat model, conformance Levels 0 to 3, and regulatory mapping. Conformance is measured by 197 tests across 5 modules. @@ -24,7 +26,7 @@ The Agent Manifest Specification v0.2 is a formal RFC 2119 document defining a v | 5 - Verification Protocol | HTTP endpoint, result schema, evidence pack, revocation protocol | | 6 - Integration Architecture | AGT, cMCP, and MCP integration with field cross-checks | | 7 - Threat Model | 10 threat classes addressed; explicit out-of-scope threats | -| 8 - Conformance | Levels 0–3; 197 conformance tests across 5 modules | +| 8 - Conformance | Levels 0 to 3; 197 conformance tests across 5 modules | | 9 - Regulatory Mapping | EU AI Act, DORA, GDPR, HIPAA, PCI-DSS, FedRAMP | | 10 - Roadmap | v0.2 targets, v1.0 CoSAI WS4 contribution | diff --git a/docs/sponsors.md b/docs/sponsors.md index 45a2d0e8..dac7bd97 100644 --- a/docs/sponsors.md +++ b/docs/sponsors.md @@ -1,5 +1,7 @@ # Sponsors -The canonical sponsor list and sponsorship policy are in [`SPONSORS.md`](https://github.com/agentrust-io/agent-manifest/blob/main/SPONSORS.md). +This page names the organisations that pay for or otherwise support the work on Agent Manifest. -Agent Manifest is sponsored by OPAQUE Systems, which funds the engineering, infrastructure and confidential-computing work behind it. +Agent Manifest is sponsored by OPAQUE Systems, which funds the engineering, infrastructure and confidential-computing work behind it. Other organisations that want to support the project are welcome to join as sponsors. + +The full sponsor list, and how to be added to it, are in [`SPONSORS.md`](https://github.com/agentrust-io/agent-manifest/blob/main/SPONSORS.md). diff --git a/docs/tutorials/ci-cd-signing.md b/docs/tutorials/ci-cd-signing.md index e08137eb..329e7502 100644 --- a/docs/tutorials/ci-cd-signing.md +++ b/docs/tutorials/ci-cd-signing.md @@ -1,6 +1,8 @@ # CI/CD Signing -Sign an Agent Manifest when its source file changes on `main`, then reject it if it does not match the verifier's approved runtime inputs. This guide provides both Python scripts, a GitHub Actions workflow, and the key rotation sequence. +This page is for teams who want their build pipeline (CI/CD, the automated build and release system) to sign an agent's manifest every time its configuration changes, and to fail the build if the result does not match what was approved. You get two Python scripts, a GitHub Actions workflow that runs them, and the steps for changing the signing key later. + +The workflow signs the manifest when its source file changes on `main`, then rejects it if it does not match the verifier's approved runtime inputs. ## What you'll learn @@ -19,11 +21,11 @@ pip install agent-manifest ## Generate the keypair once -Generate the issuer key through your approved key-management system. For a local development key, `manifest keygen -d keys/` writes key files rather than printing the private key. Keep private files out of source control and logs. +The signing key is the secret that makes a manifest trustworthy, so create it once, carefully, and keep it out of the repository. Generate the issuer key through your approved key-management system. For a local development key, `manifest keygen -d keys/` writes key files rather than printing the private key. Keep private files out of source control and logs. -Provision `MANIFEST_SIGNING_KEY` as base64url-encoded raw Ed25519 private bytes using your secret-management process. Configure `MANIFEST_PUBLIC_KEY` (base64url public bytes) and `MANIFEST_KEY_ID` independently on the verifier. The public key is not secret, but its integrity matters. The example workflow below references all three as Actions secrets. +Provision `MANIFEST_SIGNING_KEY` as base64url-encoded raw Ed25519 private bytes using your secret-management process. Configure `MANIFEST_PUBLIC_KEY` (base64url public bytes) and `MANIFEST_KEY_ID` independently on the verifier. The public key can be shared openly; what matters is that nobody can swap it. The example workflow below references all three as Actions secrets. -Provide `approved-context.json` containing the recipient's approved runtime observations using the fields of `VerificationContext`, such as prompt and policy hashes, enforcement mode, and model version. Maintain it under the verifier's change controls; do not generate expected values by copying them from the incoming manifest. Missing required observations can produce `INCOMPLETE` even when the signature is valid. +The verifier also needs its own record of what was approved. Provide `approved-context.json` containing the recipient's approved runtime observations using the fields of `VerificationContext`, such as prompt and policy hashes, enforcement mode, and model version. Maintain it under the verifier's change controls; do not generate expected values by copying them from the incoming manifest. Missing required observations can produce `INCOMPLETE` even when the signature is valid. --- @@ -77,7 +79,7 @@ if __name__ == "__main__": ## Write the verification script -Create `scripts/verify_manifest.py`. This script exits with code 1 if verification fails - GitHub Actions treats a non-zero exit code as a build failure. +Create `scripts/verify_manifest.py`. This script exits with code 1 if verification fails, and GitHub Actions treats a non-zero exit code as a build failure. ```python # scripts/verify_manifest.py @@ -170,13 +172,13 @@ jobs: git push ``` -The `verify` step accepts only `VALID` with the configured runtime inputs. The empty `RevocationStore` in this build-only example performs no live revocation refresh; configure authenticated revocation state for a deployment acceptance gate. This example targets the v0.1 JSON format, not v0.2 COSE bytes. Protect the workflow, signing secrets, and approved-context file from untrusted changes before using it for release signing. +The `verify` step accepts only `VALID` with the configured runtime inputs. This is a build check, so a few things a live deployment needs are left out. The empty `RevocationStore` in this build-only example performs no live revocation refresh; configure authenticated revocation state for a deployment acceptance gate. This example targets the v0.1 JSON format, not v0.2 COSE bytes. Protect the workflow, signing secrets, and approved-context file from untrusted changes before using it for release signing. --- ## Key rotation -Distribute and verify new public-key trust before switching a planned issuer key. Issue replacement manifests with new IDs when old IDs will be revoked, and refresh relying parties' revocation stores explicitly. A compromised key is not a safe overlap or rollback option. Follow the [key rotation runbook](../operations/key-rotation.md); availability depends on the rollout and has no fixed guarantee. +Rotation means replacing the signing key. Every service that checks your manifests must learn the new public key before you start signing with it. Distribute and verify new public-key trust before switching a planned issuer key. Issue replacement manifests with new IDs when old IDs will be revoked, and refresh relying parties' revocation stores explicitly. A compromised key is not a safe overlap or rollback option. Follow the [key rotation runbook](../operations/key-rotation.md); availability depends on the rollout and has no fixed guarantee. --- diff --git a/docs/tutorials/cmcp-session-binding.md b/docs/tutorials/cmcp-session-binding.md index c025567c..a7710028 100644 --- a/docs/tutorials/cmcp-session-binding.md +++ b/docs/tutorials/cmcp-session-binding.md @@ -1,6 +1,8 @@ # cMCP session binding -Connect a signed manifest to the policy bundle and tool catalog loaded by a cMCP gateway. This guide explains the configuration and evidence boundaries; use the [cMCP quickstart](https://cmcp.agentrust-io.com/docs/quickstart/) to run the gateway first. +cMCP is a gateway that sits between an AI agent and the tools it calls (through the Model Context Protocol, MCP) and checks each call against a policy. This page is for people running that gateway who want it to confirm, at startup, that its policy and tool list match what a signed manifest says was approved. You get the configuration, what is checked, and what the resulting session record does and does not prove. + +Run the gateway first with the [cMCP quickstart](https://cmcp.agentrust-io.com/docs/quickstart/). ## Configure the binding @@ -19,18 +21,24 @@ Start the gateway with its configuration: cmcp start --config cmcp-config.yaml ``` -The current configuration uses `agent_manifest.path` and `agent_manifest.trust_anchor_path` together. `CMCP_AGENT_MANIFEST_PATH` is not the configuration mechanism, and there is no `cmcp-gateway start` command in this package. Obtain issuer public keys independently from the signed manifest; follow the [cMCP binding implementation](https://github.com/agentrust-io/cmcp/blob/main/src/cmcp_runtime/agent_manifest.py) for accepted trust-anchor file formats. +??? info "Technical detail: configuration keys and trust anchors" + + The current configuration uses `agent_manifest.path` and `agent_manifest.trust_anchor_path` together. `CMCP_AGENT_MANIFEST_PATH` is not the configuration mechanism, and there is no `cmcp-gateway start` command in this package. Obtain issuer public keys independently from the signed manifest; follow the [cMCP binding implementation](https://github.com/agentrust-io/cmcp/blob/main/src/cmcp_runtime/agent_manifest.py) for accepted trust-anchor file formats. -The manifest must bind the gateway's policy bundle and tool catalog. The general first-manifest example binds different demo artifacts and cannot be used unchanged as a gateway manifest. Issue the manifest for the actual gateway inputs and configure the matching enforcement mode. +The manifest has to name the gateway's own policy bundle and tool catalog (the list of tools it offers). The general first-manifest example binds different demo artifacts and cannot be used unchanged as a gateway manifest. Issue the manifest for the actual gateway inputs and configure the matching enforcement mode. ## Understand when binding is required +By default the gateway starts even without a manifest. If you need it to refuse, you have to configure that. + The default profile permits startup without a manifest binding. If both configured paths are present, loading or verification failure aborts startup. Supplying only one path is a configuration error. The `aarm` conformance profile requires the binding configuration; selecting that profile also carries other requirements and is not a shortcut to conformance. An absent manifest therefore does not universally block a default gateway. Deployments that require identity binding must enforce that requirement in their configuration and deployment policy. ## What startup checks +When a manifest is configured, the gateway checks four things before it opens for business. + | Check | Inputs and boundary | |-------|---------------------| | Signature and validity | Verify the signed JSON document or COSE envelope using the configured issuer keys; reject expired or unacceptable results. Preserve COSE envelope bytes for verification. | @@ -38,13 +46,15 @@ An absent manifest therefore does not universally block a default gateway. Deplo | Enforcement mode | Compare the running mode with the manifest declaration, mapping cMCP `enforcing`, `advisory`, and `silent` to Manifest `enforce`, `advisory`, and `audit-only`. | | Subject match | Compare `agent_id` with the supplied subject. The startup path supplies the configured subject; it does not automatically establish that the connecting peer presented that identity. | -In development mode, the helper can fall back to the manifest's own `agent_id` and mark the source `manifest-dev`. A configured subject is marked `config`. Neither source proves live caller authentication. The binding helper also supports `svid` as a source, but a supported label alone is not evidence that a particular startup path authenticated an SVID. +??? info "Technical detail: where the subject comes from" + + In development mode, the helper can fall back to the manifest's own `agent_id` and mark the source `manifest-dev`. A configured subject is marked `config`. Neither source proves live caller authentication. The binding helper also supports `svid` as a source, but a supported label alone is not evidence that a particular startup path authenticated an SVID. -The current SDK call in the binding helper uses an empty `RevocationStore`. Do not assume publishing a Manifest CRL automatically prevents the gateway from opening a new session. Revocation distribution and enforcement require an explicit integration. +Revocation is not wired in yet. The current SDK call in the binding helper uses an empty `RevocationStore`. Do not assume publishing a Manifest CRL automatically prevents the gateway from opening a new session. Revocation distribution and enforcement require an explicit integration. ## Read the resulting evidence -The session claim contains a nested `gateway.agent_identity` object when a binding is present. Its core fields are: +The gateway records the result in each session's claim, so systems further along can see which manifest the session ran under. The session claim contains a nested `gateway.agent_identity` object when a binding is present. Its core fields are: | Field | Meaning | |-------|---------| @@ -55,13 +65,15 @@ The session claim contains a nested `gateway.agent_identity` object when a bindi | `policy_bundle_hash`, `tool_catalog_hash` | The bound configuration digests. | | `enforcement_mode` | The checked gateway mode when supplied. | -The object can also carry an intent hash and agent-key thumbprint when supported and populated. The current session producer does not populate agent-key bytes into the binding, so do not infer a live agent-key binding from field availability. The model has no `gateway.manifest_verified_at` or `gateway.manifest_expires_at` fields. +??? info "Technical detail: optional fields" + + The object can also carry an intent hash and agent-key thumbprint when supported and populated. The current session producer does not populate agent-key bytes into the binding, so do not infer a live agent-key binding from field availability. The model has no `gateway.manifest_verified_at` or `gateway.manifest_expires_at` fields. Downstream systems must authenticate the claim, appraise its evidence, and apply their trust and authorization policy. Reading `agent_id` from an unauthenticated object is not a substitute. When verifying against the original manifest, supply that signed document and independently trusted issuer keys to the cMCP verifier. ## What to enforce after startup -Startup binding establishes a relationship among the checked document and supplied gateway inputs at that point. It does not establish that a human reviewed them, that policies are correct, or that later agent behavior is safe. +The check happens once, at startup. Startup binding establishes a relationship among the checked document and supplied gateway inputs at that point. It does not establish that a human reviewed them, that policies are correct, or that later agent behavior is safe. Treat later policy updates, tool-catalog changes, expiry, revocation, and caller identity as explicit runtime policy concerns. cMCP has separate catalog and session controls; consult its current behavior rather than assuming this startup helper continuously re-verifies the manifest. The helper provides no forward-secrecy guarantee. diff --git a/docs/tutorials/delegation-chains.md b/docs/tutorials/delegation-chains.md index 4df8917b..5872ca1b 100644 --- a/docs/tutorials/delegation-chains.md +++ b/docs/tutorials/delegation-chains.md @@ -1,6 +1,8 @@ # Verify a Delegation Chain -Create two signed delegation hops for one receiving manifest, verify scope narrowing, and reject a correctly signed scope escalation. This local software example exercises the delegation primitive; it does not run an agent, authenticate a network peer, or verify a complete manifest. +When one agent hands part of a task to another, that hand-off is called delegation, and a series of hand-offs is a delegation chain. This page is for developers who need to check such a chain. You build two signed hand-offs, confirm that each one can only narrow what the next agent may do, and watch the check reject a hand-off that tries to widen it, even though that hand-off is correctly signed. + +This is a local example of the delegation check alone. It does not run an agent, confirm who a network peer is, or verify a complete manifest. ## Run the example @@ -69,12 +71,16 @@ else: raise RuntimeError("Cross-manifest replay was accepted") ``` -Expect three `PASS` lines. Every hop signs the same receiving `manifest_id`. Copying a hop signed for a different ID into this chain invalidates its signature; changing the receiving manifest requires fresh authorized hop signatures. +Expect three `PASS` lines. Every hop (one hand-off in the chain) is signed for the same receiving `manifest_id`. A hop copied in from a chain signed for a different ID fails its signature check, so a chain cannot be replayed against another manifest; pointing it at a new manifest needs fresh signatures. ## Connect it to manifest verification -Attach the chain to a complete manifest whose issuer matches the trusted root identity. For v0.1 JSON, `Ed25519Signer.sign()` returns a signature block; assign it to the manifest's `signature` field. For v0.2, use the COSE signing path. Supply trusted issuer keys, `delegation_public_keys`, current revocation state, and independently observed runtime artifacts to `verify_manifest()`. Set `require_delegation=True` when absence must fail. +In a real deployment the chain sits inside a complete manifest, and you check it as part of verifying that manifest. Attach the chain to a manifest whose issuer matches the trusted root identity, then pass the trusted keys and your own observations to `verify_manifest()`. Set `require_delegation=True` when absence must fail. + +??? info "Technical detail: signing paths and verifier inputs" + + For v0.1 JSON, `Ed25519Signer.sign()` returns a signature block; assign it to the manifest's `signature` field. For v0.2, use the COSE signing path. Supply trusted issuer keys, `delegation_public_keys`, current revocation state, and independently observed runtime artifacts to `verify_manifest()`. -The primitive compares scopes between adjacent hops and binds them to the supplied manifest ID. The application must establish the root's original authority and authorize the requested operation. An empty chain returns without a primitive error, so the full verification policy must enforce presence when required. This example does not demonstrate wall-clock expiry enforcement or revocation propagation. +The check compares what each hop grants with the hop before it, and ties every hop to the supplied manifest ID. The application must establish the root's original authority and authorize the requested operation. An empty chain returns without a primitive error, so the full verification policy must enforce presence when required. This example does not demonstrate wall-clock expiry enforcement or revocation propagation. See [server-side verification](server-side-verification.md) and [approval workflows](hitl-approval-workflows.md) for the receiving application's other checks. diff --git a/docs/tutorials/deploying-the-verification-endpoint.md b/docs/tutorials/deploying-the-verification-endpoint.md index 236f204c..38fe7a86 100644 --- a/docs/tutorials/deploying-the-verification-endpoint.md +++ b/docs/tutorials/deploying-the-verification-endpoint.md @@ -1,6 +1,8 @@ # Run a verification service -Load a signed manifest, verify it against server-held inputs, and expose the verdict over HTTP. This walkthrough starts locally, then packages the same service in a container. It loads signed revocations into the store used by verification. +This page is for teams who want one small service that other systems can ask "does this agent's manifest check out?" You load a signed manifest, check it against values the service holds itself, and return the verdict over HTTP. You run it locally first, then package the same service in a container. + +The service also loads signed revocations (records that withdraw a manifest early) and uses them when it checks. ## Prepare the demo inputs @@ -24,11 +26,11 @@ entry = sign_revocation( print("Saved demo service inputs in data/") ``` -For a real service, provision `context.json` and `revoker.hex` through the recipient's own trust configuration. Never derive trusted keys or expected runtime hashes from an incoming manifest. This demo context covers one known configuration, not a fleet of arbitrary agents. +For a real service, `context.json` (what the service expects to be running) and `revoker.hex` (the key allowed to sign revocations) come from your own trust configuration. Never take trusted keys or expected values from an incoming manifest, since a manifest always agrees with itself. This demo context covers one known configuration, not a fleet of different agents. ## Create `verifier.py` -Save this complete block beside `data/`. The app factory reads all inputs before returning a ready application. Missing files, malformed revocation entries, and bad revocation signatures fail startup. +Save this complete block beside `data/`. It reads every input before it starts serving, so a missing file, a malformed revocation entry or a bad revocation signature stops it from starting at all. ```python import json @@ -82,7 +84,7 @@ def create_app(): return app ``` -This small service exposes only `/verify`, `/health`, and `/ready`. Readiness means the configured inputs loaded; it does not mean the manifest is acceptable. An expired or revoked manifest can produce a rejection verdict from a healthy service. +This small service exposes only `/verify`, `/health`, and `/ready`. "Ready" means its inputs loaded; it says nothing about whether a manifest is acceptable. A healthy service can still return a rejection for an expired or revoked manifest. ## Run and query it @@ -100,11 +102,11 @@ curl "http://127.0.0.1:8080/verify?manifest_id=019236ab-cdef-7000-8000-000000000 curl http://127.0.0.1:8080/ready ``` -The fresh demo returns a JSON verdict with `result: "VALID"` and `signature_verified: true`. An unknown ID returns HTTP 404. A processed verification can return HTTP 200 with a rejected verdict: the caller must inspect `result` and reject every non-`VALID` outcome. +The fresh demo returns a JSON verdict with `result: "VALID"` and `signature_verified: true`. An unknown ID returns HTTP 404. HTTP 200 only means the check ran, and the verdict inside can still be a rejection: the caller must inspect `result` and reject every non-`VALID` outcome. ## Package the same service -Save this as `Dockerfile` at the checkout root. Building from the same `python/` source keeps the service aligned with the code used locally. +To run the same service in a container, save this as `Dockerfile` at the checkout root. Building from the same `python/` source keeps the container in step with the code you just ran. ```dockerfile FROM python:3.12-slim @@ -144,10 +146,18 @@ The health check uses Python from the image. The service is published on localho ## Refresh and operate it -This example snapshots files at startup. File changes do not update the running worker. Validate and publish an entire new configuration snapshot, then restart every worker; `docker compose restart verifier` reloads the mounted files in this local example. There is no unauthenticated reload endpoint. +The service reads its files once, at startup. To change what it trusts or which manifests are revoked, publish a complete new set of files and restart it. + +??? info "Technical detail: reloading, revocation freshness and deployment shape" + + This example snapshots files at startup. File changes do not update the running worker. Validate and publish an entire new configuration snapshot, then restart every worker; `docker compose restart verifier` reloads the mounted files in this local example. There is no unauthenticated reload endpoint. + + Signed entries establish who issued each revocation, not that the list is complete or current. An empty, truncated, or stale file needs separate detection through your authenticated distribution and freshness policy. The explicit loader above raises on invalid entries instead of using `FileCRL`'s skip-invalid-entry behavior. See [revocation and key rotation](revocation-and-key-rotation.md). + +Before exposing a service beyond your own machine, add authenticated callers, operation authorization, request limits, transport protection, and evidence-refresh policy. A manifest ID identifies a document, not the requesting agent. -Signed entries establish who issued each revocation, not that the list is complete or current. An empty, truncated, or stale file needs separate detection through your authenticated distribution and freshness policy. The explicit loader above raises on invalid entries instead of using `FileCRL`'s skip-invalid-entry behavior. See [revocation and key rotation](revocation-and-key-rotation.md). +??? info "Technical detail: central service, embedded verifier or sidecar" -Before exposing a service beyond localhost, add authenticated callers, operation authorization, request limits, transport protection, and evidence-refresh policy. A manifest ID identifies a document, not the requesting agent. A central service requires a network request; an embedded verifier avoids that request, while a sidecar usually uses local IPC or loopback. Choose based on trust ownership and deployment requirements rather than an assumed latency ranking. + A central service requires a network request; an embedded verifier avoids that request, while a sidecar usually uses local IPC or loopback. Choose based on trust ownership and deployment requirements rather than an assumed latency ranking. For a protected operation in the application itself, follow [server-side verification](server-side-verification.md). The container configuration here does not provision a production cluster or hardware attestation. diff --git a/docs/tutorials/hardware-attestation.md b/docs/tutorials/hardware-attestation.md index 936c4570..b76100cd 100644 --- a/docs/tutorials/hardware-attestation.md +++ b/docs/tutorials/hardware-attestation.md @@ -1,12 +1,12 @@ # Hardware attestation -Choose a provider, bind a manifest digest to platform evidence, and appraise the result. Start with a local software example, then select the hardware path for your guest. +Attestation is a signed report from the processor itself about what is running on it. This page is for teams running agents on confidential computing hardware (machines that keep a workload sealed off, even from the cloud operator) who want that report to name a specific manifest. You start with a local software example, then pick the hardware path that fits your machine. -A matching digest alone does not authenticate hardware or establish that current inputs were measured correctly. Hardware appraisal needs approved roots, measurements, and freshness policy. The local example below does not exercise silicon. +A matching digest (the manifest's fingerprint) in a report does not by itself prove the report came from real hardware, or that the agent's current inputs were measured correctly. Checking hardware evidence properly needs the vendor's trusted root certificates, a list of approved measurements, and a rule for how old a report may be. The local example below does not touch real hardware. ## Run the API locally -Complete the [first-manifest tutorial](../getting-started.md), append this block to `first_manifest.py`, and run it again. It demonstrates a digest binding and a nonce/context binding using software only. +Complete the [first-manifest tutorial](../getting-started.md), append this block to `first_manifest.py`, and run it again. Using software only, it ties the manifest's digest into a report, and ties a report to a nonce (a random one-time challenge from the checker, which shows the report is fresh). ```python import hashlib @@ -62,46 +62,50 @@ except SnpVerificationError: print("PASS: platform policy rejects an SMT-enabled report with no alias check") ``` -Expect four `PASS` lines in total from this page (two from the software-binding example above, two from the platform-policy calls just added). Copying the returned nonce or context into a response would not prove freshness or hardware authenticity; the two new platform-policy assertions test policy logic decoded from literal bits, not a captured hardware report; that end-to-end path is exercised separately (linked below). +Expect four `PASS` lines in total from this page (two from the software-binding example above, two from the platform-policy calls just added). Copying the returned nonce or context into a response would not prove freshness or hardware authenticity. The two platform-policy checks test the policy logic on hand-written bits, not a captured hardware report; that end-to-end path is tested separately (linked below). ### Appraise platform state before trusting hardware evidence -`appraise_platform_info()` is not called by `verify_manifest()`, and is not called by `verify_attestation_chain()` either: see [platform limitations](../limitations.md). Neither function is invoked by the other; each is an appraisal the caller runs and hands to `verify_manifest()` as a result via `VerificationContext`. Combine the two appraisals (signature, chain and measurement; platform state) into a single pass/fail before deciding whether the manifest hash is trustworthy evidence. This is a composition sketch, not a runnable snippet: `report`, `expected_hash`, `context`, and `record` are whatever your own attestation flow already produced earlier in this tutorial: +An AMD SEV-SNP report also says how the processor itself is configured, for example whether SMT (two threads sharing one core) is switched on. Whether that configuration is acceptable is your decision, and you check it in a separate step after the report's signature checks out. -``` -hw_result = verify_attestation_chain( - report, expected_manifest_hash=expected_hash, snp_report_bytes=report.quote, - vcek_cert_der=vcek_der, cert_chain_pem=cert_chain_pem, -) - -# Only attempt platform appraisal once hardware appraisal has already passed. -# A tampered or malformed report can fail hw_result.passed on its own; there -# is no reason to also risk parse_snp_report() raising on the same bad bytes -# before the caller ever reaches its decision, and no reason to trust -# PLATFORM_INFO from a report whose signature has not verified in the first -# place. -platform_ok = False -if hw_result.passed: - platform_info = parse_platform_info(parse_snp_report(report.quote).platform_info) - try: - appraise_platform_info(platform_info, require={"alias_check_complete"}, forbid={"smt_enabled"}) - platform_ok = True - except SnpVerificationError: - platform_ok = False - -if hw_result.passed and platform_ok: - context.verified_attestation_manifest_hashes.add(expected_hash) - context.attestation_evidence_manifest_id = record["manifest_id"] -``` +??? info "Technical detail: composing the signature check and the platform check" + + `appraise_platform_info()` is not called by `verify_manifest()`, and is not called by `verify_attestation_chain()` either: see [platform limitations](../limitations.md). Neither function is invoked by the other; each is an appraisal the caller runs and hands to `verify_manifest()` as a result via `VerificationContext`. Combine the two appraisals (signature, chain and measurement; platform state) into a single pass/fail before deciding whether the manifest hash is trustworthy evidence. This is a composition sketch, not a runnable snippet: `report`, `expected_hash`, `context`, and `record` are whatever your own attestation flow already produced earlier in this tutorial: + + ``` + hw_result = verify_attestation_chain( + report, expected_manifest_hash=expected_hash, snp_report_bytes=report.quote, + vcek_cert_der=vcek_der, cert_chain_pem=cert_chain_pem, + ) + + # Only attempt platform appraisal once hardware appraisal has already passed. + # A tampered or malformed report can fail hw_result.passed on its own; there + # is no reason to also risk parse_snp_report() raising on the same bad bytes + # before the caller ever reaches its decision, and no reason to trust + # PLATFORM_INFO from a report whose signature has not verified in the first + # place. + platform_ok = False + if hw_result.passed: + platform_info = parse_platform_info(parse_snp_report(report.quote).platform_info) + try: + appraise_platform_info(platform_info, require={"alias_check_complete"}, forbid={"smt_enabled"}) + platform_ok = True + except SnpVerificationError: + platform_ok = False -No new field is needed on `VerificationContext` for this: `verify_manifest()` already gates `attestation_verified` (and, with `enforce_attestation=True`, the overall `VALID`/`ATTESTATION_UNAVAILABLE` result) purely on membership in `verified_attestation_manifest_hashes`. Calling `appraise_platform_info()` with no `require`/`forbid` at all or not calling it asserts nothing and reproduces prior behavior exactly, so adopting a platform policy is opt in and cannot regress an existing deployment that never sets one. + if hw_result.passed and platform_ok: + context.verified_attestation_manifest_hashes.add(expected_hash) + context.attestation_evidence_manifest_id = record["manifest_id"] + ``` + No new field is needed on `VerificationContext` for this: `verify_manifest()` already gates `attestation_verified` (and, with `enforce_attestation=True`, the overall `VALID`/`ATTESTATION_UNAVAILABLE` result) purely on membership in `verified_attestation_manifest_hashes`. Calling `appraise_platform_info()` with no `require`/`forbid` at all or not calling it asserts nothing and reproduces prior behavior exactly, so adopting a platform policy is opt in and cannot regress an existing deployment that never sets one. -This composes two things the caller is already responsible for; `verify_manifest()` itself still has no idea PLATFORM_INFO exists. [`test_platform_info_verify_manifest.py`](https://github.com/agentrust-io/agent-manifest/blob/main/python/tests/test_platform_info_verify_manifest.py) is an integration-style test of this composition against a cryptographically self-consistent synthetic SEV-SNP chain (freshly generated keys and certificates shaped like the real VCEK/ASK/ARK hierarchy, not AMD-rooted hardware evidence), covering the accept case, a `require`-only failure, a `forbid`-only failure, that hardware appraisal failing correctly stops platform appraisal from being reached at all (checked with a monkeypatch, not just the final verdict, since a broken ordering can still land on the same verdict by coincidence), that a genuinely malformed report doesn't crash the corrected ordering, and confirming a `PLATFORM_INFO` byte flipped after signing invalidates the signature rather than silently changing the appraisal. The policy decision itself (only add the hash when both appraisals pass) is implemented by that test's own helper, the same way it would be in your caller code it is not new behavior added to `verify_manifest()`. + + This composes two things the caller is already responsible for; `verify_manifest()` itself still has no idea PLATFORM_INFO exists. [`test_platform_info_verify_manifest.py`](https://github.com/agentrust-io/agent-manifest/blob/main/python/tests/test_platform_info_verify_manifest.py) is an integration-style test of this composition against a cryptographically self-consistent synthetic SEV-SNP chain (freshly generated keys and certificates shaped like the real VCEK/ASK/ARK hierarchy, not AMD-rooted hardware evidence), covering the accept case, a `require`-only failure, a `forbid`-only failure, that hardware appraisal failing correctly stops platform appraisal from being reached at all (checked with a monkeypatch as well as by the final verdict, since a broken ordering can still land on the same verdict by coincidence), that a genuinely malformed report doesn't crash the corrected ordering, and confirming a `PLATFORM_INFO` byte flipped after signing invalidates the signature rather than silently changing the appraisal. The policy decision itself (only add the hash when both appraisals pass) is implemented by that test's own helper, the same way it would be in your caller code; it is not new behavior added to `verify_manifest()`. ## Select the hardware path -Use the guest's attestation interface to choose a provider. A CPU model or a confidential-VM marketing label alone is insufficient. +A provider is the SDK component that asks the hardware for a report. Pick it by the attestation interface your guest (the virtual machine your agent runs in) actually exposes. A CPU model name or a "confidential VM" product label is not enough to go on. | Provider | Current SDK path | Verification boundary | |----------|------------------|-----------------------| @@ -112,37 +116,43 @@ Use the guest's attestation interface to choose a provider. A CPU model or a con | `TPMProvider` | TPM tools and a provisioned attestation key | A TPM quote supplies measured-state evidence; it does not isolate the agent's process memory. | | `OPAQUEProvider` | Disabled in the current SDK; construction raises `AttestationUnavailableError` | No usable managed-service verification path is implemented. | -The direct SNP and TDX providers use `/sys/kernel/config/tsm/report` and require permission to create report requests. See the [provider implementation and requirements](https://github.com/agentrust-io/agent-manifest/blob/main/python/src/agent_manifest/_hw_providers.py) for the current kernel and driver prerequisites. Azure TDX is not supported by this SDK's offline attestation path; see [platform limitations](../limitations.md). +??? info "Technical detail: device paths, constructor options and report flags" + + The direct SNP and TDX providers use `/sys/kernel/config/tsm/report` and require permission to create report requests. See the [provider implementation and requirements](https://github.com/agentrust-io/agent-manifest/blob/main/python/src/agent_manifest/_hw_providers.py) for the current kernel and driver prerequisites. Azure TDX is not supported by this SDK's offline attestation path; see [platform limitations](../limitations.md). -For SNP, construct `SEVSNPProvider(require_vcek_verification=True, product="Milan")`, choosing the product for your actual platform. This fetches AMD verification material and needs network access and `httpx`. For TDX, use `TDXProvider(require_quote_verification=True)`. Import both from `agent_manifest._hw_providers`. + For SNP, construct `SEVSNPProvider(require_vcek_verification=True, product="Milan")`, choosing the product for your actual platform. This fetches AMD verification material and needs network access and `httpx`. For TDX, use `TDXProvider(require_quote_verification=True)`. Import both from `agent_manifest._hw_providers`. -Then call `extend_manifest_hash(record)` and `get_attestation_report()`. The SNP result includes `raw["vcek_cert_chain_verified"]`; TDX includes `raw["quote_verified"]`. Both verification flags default to false when their constructor options are omitted. `TDXProvider` has no `rtmr_index` constructor argument; this binding uses `REPORTDATA` rather than extending an RTMR. + Then call `extend_manifest_hash(record)` and `get_attestation_report()`. The SNP result includes `raw["vcek_cert_chain_verified"]`; TDX includes `raw["quote_verified"]`. Both verification flags default to false when their constructor options are omitted. `TDXProvider` has no `rtmr_index` constructor argument; this binding uses `REPORTDATA` rather than extending an RTMR. !!! note "SDK binding differs from the spec's launch-time profile" `SEVSNPProvider` and `TDXProvider` bind the manifest digest at runtime, from inside the guest, in the guest-controlled field: the first 32 bytes of `REPORT_DATA` (SNP) or `REPORTDATA` (TDX) carry `SHA-256(manifest pre-image)` and the remaining 32 bytes are zero. The GCP TDX captures in `python/tests/fixtures/hardware/gcp-tdx-2026-07-21/` show this: the digest is in `REPORTDATA` and `RTMR[3]` is all zeros. [Specification section 3.3.1](../spec/agent-manifest-v0.2.md) defines the target launch-time binding instead: SNP `HOST_DATA` set by the launcher at `SNP_LAUNCH_FINISH`, a TDX `RTMR[3]` extend before workload code runs, and PCR15 on AWS Nitro. The SDK does not implement those profiles yet. An `attestation` block produced by these providers therefore does not meet the section 3.3.1 profile, and a verifier that expects `HOST_DATA` or `RTMR[3]` will not find the digest there. The runtime freshness binding in section 3.3.2 is separate and does not carry the manifest digest: the context object it hashes holds the policy bundle, system prompt, and tool catalog hashes, not the manifest. -`verify_manifest_in_report()` checks the manifest binding. Treat it as one check in the appraisal, not a complete signature, certificate, freshness, and workload-policy verdict. The recipient must examine authenticated quote bytes and compare the measurements with its own allowlist. +In short: `verify_manifest_in_report()` checks that the report names this manifest. Treat it as one check in the appraisal, not a complete signature, certificate, freshness, and workload-policy verdict. The recipient must examine authenticated quote bytes and compare the measurements with its own allowlist. ## Runtime state attestation (freshness proofs) -`attest_runtime_state(nonce, context_hash)` binds caller-supplied context to a challenge. For direct SNP and TDX, the qualifying bytes are `SHA-256(nonce || context_hash_bytes)` and are placed in the report-data field. The SDK's `report_data_hash` is a SHA-256 digest of those qualifying bytes; it is not the raw report-data value. +A freshness proof answers "is this agent still in the approved state right now?" The checker sends a new nonce, and the agent's machine returns a report that includes it, so an old report cannot be replayed. The proof is only as good as whatever measured the agent's state, and it says nothing about what happens after it was taken. + +??? info "Technical detail: what the runtime report binds" + + `attest_runtime_state(nonce, context_hash)` binds caller-supplied context to a challenge. For direct SNP and TDX, the qualifying bytes are `SHA-256(nonce || context_hash_bytes)` and are placed in the report-data field. The SDK's `report_data_hash` is a SHA-256 digest of those qualifying bytes; it is not the raw report-data value. -A signed challenge binding establishes freshness only after the recipient verifies the quote, checks its outstanding nonce, and applies an expiry/replay policy. The provider does not read the agent's prompt, policy, tool catalog, or model for you. A trusted collector must measure the actual state and define the context-hash preimage with the verifier. Otherwise a fresh quote can bind a false self-report. + A signed challenge binding establishes freshness only after the recipient verifies the quote, checks its outstanding nonce, and applies an expiry/replay policy. The provider does not read the agent's prompt, policy, tool catalog, or model for you. A trusted collector must measure the actual state and define the context-hash preimage with the verifier. Otherwise a fresh quote can bind a false self-report. -The runtime quote needs its own appraisal. Enabling VCEK or quote verification for `get_attestation_report()` does not automatically appraise every `attest_runtime_state()` result. Check returned evidence rather than inheriting a prior report's flags. + The runtime quote needs its own appraisal. Enabling VCEK or quote verification for `get_attestation_report()` does not automatically appraise every `attest_runtime_state()` result. Check returned evidence rather than inheriting a prior report's flags. Choose challenge frequency according to the operation and stale-evidence policy. Periodic calls alone do not bound drift detection unless measurement collection, verification, and rejection are all enforced. A report also does not prove what happens after it was collected. ## Auto-detection -`select_provider(level=N)` is a convenience selector, not a conformance validator. The current order is an explicitly configured OPAQUE provider, Azure CVM, direct SNP, direct TDX, TPM, then software. Because OPAQUE is disabled, setting `OPAQUE_ATTESTATION_URL` currently raises instead of selecting a working managed provider. +`select_provider(level=N)` picks a provider for you based on what the machine offers. It is a convenience, and it does not check conformance. The current order is an explicitly configured OPAQUE provider, Azure CVM, direct SNP, direct TDX, TPM, then software. Because OPAQUE is disabled, setting `OPAQUE_ATTESTATION_URL` currently raises instead of selecting a working managed provider. Without a hardware candidate, requesting `level >= 1` raises `AttestationUnavailableError`. Do not silently retry with `level=0` in a path that requires hardware. For reproducible local tests, choose `SoftwareProvider()` directly rather than depending on the host's devices or environment variables. ## Apply an acceptance policy -A provider name does not establish a conformance level or regulatory compliance. Apply the [specification's conformance requirements](../spec/agent-manifest-v0.2.md), including artifact coverage, signature profile, required evidence, and recipient policy. Hardware appraisal and application authorization remain separate checks. +Hardware evidence is one input to your decision, never the whole decision. A provider name does not establish a conformance level or regulatory compliance. Apply the [specification's conformance requirements](../spec/agent-manifest-v0.2.md), including artifact coverage, signature profile, required evidence, and recipient policy. Hardware appraisal and application authorization remain separate checks. Pass independently appraised evidence into the verifier's context, bound to the exact manifest. Then require the full manifest result to be `VALID`; a successful hardware check cannot override a bad signature, expired record, revocation, or artifact mismatch. Continue with [server-side verification](server-side-verification.md). diff --git a/docs/tutorials/hitl-approval-workflows.md b/docs/tutorials/hitl-approval-workflows.md index 87f1b17b..d88311ad 100644 --- a/docs/tutorials/hitl-approval-workflows.md +++ b/docs/tutorials/hitl-approval-workflows.md @@ -1,6 +1,8 @@ # Verify a Human Approval Record -Require an approval, authenticate it against an independently trusted approver key, and reject a changed approval method. The example uses a synthetic human identity and a software key; it demonstrates verification mechanics, not an actual human decision or hardware key custody. +Some agents may only run after a person signs off. This is called human-in-the-loop (HITL) approval. This page is for developers who need to require that sign-off: you mark an approval as required, check it against an approver key you trust, and see a tampered approval rejected. + +The example uses a made-up approver and a software key. It shows how the checks work; it is not a real human decision, and it does not show a key held in hardware. ## Run the example @@ -59,16 +61,20 @@ assert rejected.signature_verified # The issuer signature still verifies. print("PASS: relabeled approval rejected independently of issuer signature") ``` -Expect three additional `PASS` lines. The recipient retains the approver key separately; receiving a key alongside an approval does not authorize that key. +Expect three additional `PASS` lines. The recipient keeps its own copy of the approver key. A key that simply arrives alongside an approval is not trusted because of that. ## Understand the two signatures -The issuer signs the HITL requirement. The signing preimage normalizes `approvals` to an empty list, allowing approvals to attach after issuance. Adding or removing an approval therefore does not by itself break the issuer signature. Each approval needs its own signature and the receiving policy must enforce its presence. +Two different parties sign here. The issuer signs the manifest, including the rule that an approval is required. The approver signs the approval itself. Each signature is checked on its own. + +??? info "Technical detail: what each signature covers" + + The issuer signs the HITL requirement. The signing preimage normalizes `approvals` to an empty list, allowing approvals to attach after issuance. Adding or removing an approval therefore does not by itself break the issuer signature. Each approval needs its own signature and the receiving policy must enforce its presence. -The approval signature binds the manifest ID, approver ID, approval timestamp, scope, and supplied approval method. Role labels and evidence links are not substitutes for independently authenticated authority. A `hardware-key` string alone does not prove hardware custody; use a trusted approval service and the required evidence for that claim. + The approval signature binds the manifest ID, approver ID, approval timestamp, scope, and supplied approval method. Role labels and evidence links are not substitutes for independently authenticated authority. A `hardware-key` string alone does not prove hardware custody; use a trusted approval service and the required evidence for that claim. ## Apply it to a real workflow -Authenticate the human and establish their authority over the requested action before issuing the approval. Configure trusted approver keys, expiry handling, required scope, and `enforce_hitl` on the recipient. Check operation-specific authorization before allowing side effects, including retries. +In a real workflow the hard part happens before anything is signed: confirming who the person is and that they have the authority to approve. Authenticate the human and establish their authority over the requested action before issuing the approval. Configure trusted approver keys, expiry handling, required scope, and `enforce_hitl` on the recipient. Check operation-specific authorization before allowing side effects, including retries. -A signed approval is one evidence artifact. It does not, by itself, establish regulatory compliance, appropriate human oversight, or that an approved action completed. See [revocation](revocation-and-key-rotation.md) for withdrawing manifests and [the integration gate](../integrations/index.md#run-a-local-verification-gate) for rejection handling. +A signed approval is one piece of evidence. It does not, by itself, establish regulatory compliance, appropriate human oversight, or that an approved action completed. See [revocation](revocation-and-key-rotation.md) for withdrawing manifests and [the integration gate](../integrations/index.md#run-a-local-verification-gate) for rejection handling. diff --git a/docs/tutorials/index.md b/docs/tutorials/index.md index efe47124..2776105b 100644 --- a/docs/tutorials/index.md +++ b/docs/tutorials/index.md @@ -1,8 +1,8 @@ # Tutorials -Start by signing a local demo configuration and testing what happens when it changes. Then choose the guide for the boundary you need to enforce. +These step-by-step guides are for developers and operators putting Agent Manifest to work. Start by signing a sample agent record on your own computer and seeing what happens when it changes. Then pick the guide for the job in front of you, such as checking requests on a server or withdrawing a record. -The [first-manifest example](../getting-started.md) supplies the record, keys, and approved inputs used by several follow-up guides. Those pages say where to append their code. Hardware and cMCP integration guidance identifies additional setup and verification requirements. +The [first-manifest example](../getting-started.md) creates the signed record, keys and approved values that several later guides build on. Those pages say where to add their code. The hardware and cMCP guides list the extra setup and checks they need. --- @@ -10,22 +10,22 @@ The [first-manifest example](../getting-started.md) supplies the record, keys, a | Tutorial | What you'll build | |----------|-------------------| -| [Your first manifest](your-first-manifest.md) | A signed Agent Manifest from scratch with Ed25519 key generation and CLI verification | -| [CI/CD signing](ci-cd-signing.md) | Signing and verification scripts, plus a workflow triggered by manifest changes on `main` | -| [cMCP session binding](cmcp-session-binding.md) | Configuration guidance and the meaning of the gateway's identity evidence | +| [Your first manifest](your-first-manifest.md) | A signed Agent Manifest from scratch, with a new signing key and a command line check | +| [CI/CD signing](ci-cd-signing.md) | Scripts that sign and check manifests in your build pipeline, plus a workflow that runs when a manifest changes on `main` | +| [cMCP session binding](cmcp-session-binding.md) | How to set up cMCP (a gateway that records an agent's tool calls) and what its identity evidence means | ## Development | Tutorial | What you'll build | |----------|-------------------| -| [Server-side manifest verification](server-side-verification.md) | A local request gate tested with accepted, missing, unknown, and mismatched inputs | -| [A2A delegation chains](delegation-chains.md) | A two-hop delegation chain with scope narrowing and chain verification | -| [HITL approval workflows](hitl-approval-workflows.md) | A synthetic approval signed with a software key, with missing and altered approval rejection | -| [Revocation and key rotation](revocation-and-key-rotation.md) | A signed revocation, explicit reader refresh, untrusted-signer rejection, and rotation guidance | -| [Hardware attestation](hardware-attestation.md) | A runnable software binding example, hardware provider selection, and evidence appraisal boundaries | +| [Server-side manifest verification](server-side-verification.md) | A check in front of your server that lets matching requests through and turns away missing, unknown or changed ones | +| [A2A delegation chains](delegation-chains.md) | One agent handing work to another and then a third, with less permission at each step, and a check of the whole chain | +| [HITL approval workflows](hitl-approval-workflows.md) | A sample human sign-off (human in the loop, HITL) signed with a software key, and rejection of missing or altered sign-offs | +| [Revocation and key rotation](revocation-and-key-rotation.md) | Withdrawing a signed manifest, making checkers pick up the change, rejecting withdrawals from untrusted signers, and replacing keys | +| [Hardware attestation](hardware-attestation.md) | A runnable software example, how to choose a hardware provider, and how far each hardware report can be trusted | ## Operations | Tutorial | What you'll build | |----------|-------------------| -| [Run a verification service](deploying-the-verification-endpoint.md) | A local HTTP verifier with startup-loaded trust and signed revocations, plus container packaging | +| [Run a verification service](deploying-the-verification-endpoint.md) | A small web service that checks manifests, loads its trusted keys and withdrawal list at startup, and can be packaged as a container | diff --git a/docs/tutorials/revocation-and-key-rotation.md b/docs/tutorials/revocation-and-key-rotation.md index ee8d2c45..9ade3983 100644 --- a/docs/tutorials/revocation-and-key-rotation.md +++ b/docs/tutorials/revocation-and-key-rotation.md @@ -1,12 +1,14 @@ # Revocation and Key Rotation -Publish a signed revocation, load it using a separately trusted authority key, and reject the affected manifest. Revocation takes effect when each relying party receives and enforces the update; the SDK does not guarantee a propagation time or stop an already running agent. +Revoking a manifest means withdrawing it before it expires, for example because a signing key leaked. This page is for whoever operates the signing side or a service that checks manifests. You publish a signed revocation, load it with a key you trust separately, and see the affected manifest rejected. It also covers rotation: switching to new signing keys. + +A revocation only takes effect once each service that checks manifests receives and applies the update. The SDK does not guarantee how fast that happens, and it does not stop an agent that is already running. ## Run a local revocation example First complete [your first manifest](../getting-started.md). Append the following block to `first_manifest.py` and run `python first_manifest.py` again. It uses that example's signed `record` and independently configured verification `context`. -The temporary directory makes this example repeatable and is removed when the block finishes. In a deployment, store the CRL durably and retain the revocation authority key through your approved key-management system. +The temporary directory makes this example repeatable and is removed when the block finishes. In a deployment, store the CRL (certificate revocation list, here a file listing withdrawn manifests) somewhere durable, and keep the revocation authority key in your approved key-management system. ```python from tempfile import TemporaryDirectory @@ -66,11 +68,15 @@ Expect two additional `PASS` lines. The first proves the refreshed store rejects ## Serve and refresh the CRL -`create_crl_router(crl)` in `agent_manifest._revocation` exposes the supplied `FileCRL` through FastAPI. It serves the object's in-memory cache; appending to the file from another process does not refresh that object. Updates made through that same object's `revoke()` method are visible to its router. +Every service that checks manifests needs a current copy of the revocation list, and it needs to know the list really came from your revocation authority. The SDK can serve the list, but refreshing it on each service is your job. + +??? info "Technical detail: router caching, signer keys and the in-memory store" -Configure `trusted_signer_key` on every reader and writer. Omitting it disables signature checks. The current file loader skips malformed or invalidly signed entries; it does not establish the completeness or freshness of the list. Your application must detect stale, truncated, unavailable, or unauthenticated revocation data according to its acceptance policy. + `create_crl_router(crl)` in `agent_manifest._revocation` exposes the supplied `FileCRL` through FastAPI. It serves the object's in-memory cache; appending to the file from another process does not refresh that object. Updates made through that same object's `revoke()` method are visible to its router. -Build and replace each verifier's `RevocationStore` from authenticated updates. It is an in-memory store and does not fetch a CRL automatically. Define a refresh interval, maximum accepted age, failure policy, and monitoring for every replica. A response cache header alone does not make a verifier refresh. + Configure `trusted_signer_key` on every reader and writer. Omitting it disables signature checks. The current file loader skips malformed or invalidly signed entries; it does not establish the completeness or freshness of the list. Your application must detect stale, truncated, unavailable, or unauthenticated revocation data according to its acceptance policy. + + Build and replace each verifier's `RevocationStore` from authenticated updates. It is an in-memory store and does not fetch a CRL automatically. Define a refresh interval, maximum accepted age, failure policy, and monitoring for every replica. A response cache header alone does not make a verifier refresh. When calling `verify_manifest`, supply independently trusted signing keys and required runtime observations through `VerificationContext`. Grant access only for the result your policy accepts; `UNVERIFIABLE`, `INCOMPLETE`, and failures must not fall through to success. @@ -78,6 +84,8 @@ The CLI `manifest revoke` produces an unsigned record. It does not replace the s ## Rotate keys without revoking the replacements +Revocation follows the manifest's ID, not the key that signed it. So when you move to a new key, issue replacement manifests with new IDs, or the old revocation will still apply to them. + Revocation is indexed by `manifest_id`, not by signature bytes. Re-signing a manifest under a new key with the same ID leaves it subject to that ID's revocation. Reissue replacement manifests with new IDs, current validity windows, approved artifact bindings, and newly bound approvals or evidence where required. For planned rotation, distribute and verify the new public-key trust configuration before switching issuers. Retire old IDs only after confirming replacement verification and revocation propagation. For compromise, withdraw the compromised authority and revoke affected IDs immediately according to the incident policy; do not deliberately keep accepting a compromised key for a fixed overlap period. diff --git a/docs/tutorials/server-side-verification.md b/docs/tutorials/server-side-verification.md index f7519b52..9207e695 100644 --- a/docs/tutorials/server-side-verification.md +++ b/docs/tutorials/server-side-verification.md @@ -1,12 +1,14 @@ # Server-side manifest verification -Reject a protected request when its manifest is missing, unknown, or fails verification. This local FastAPI example uses the signed record and independently configured inputs from the [first-manifest tutorial](../getting-started.md). It tests the gate without starting a network server. +This page is for anyone running a service that AI agents call. It shows how to turn a request away unless the calling agent's manifest (its signed record of the prompt, policy, tools and model it was approved with) checks out. You get a small working gate, built with the FastAPI web framework, that runs on your own computer without starting a real server. + +The example reuses the signed record and the trusted inputs from the [first-manifest tutorial](../getting-started.md). It rejects a request when the manifest is missing, unknown, or fails verification. ## Run the request gate Complete the first-manifest tutorial, install the server dependencies with `python -m pip install -e "./python[server]"`, then append this block to `first_manifest.py` and run `python first_manifest.py` again. -The demo's manifest header selects a stored document. It does not authenticate a caller. Before using this in a service, bind the authenticated caller to an allowed manifest and separately authorize the operation. Anyone who knows the demo ID can select its record. +In this demo, the request header only picks which stored manifest to check. It does not prove who is calling: anyone who knows the demo ID can pick its record. A real service first has to confirm who the caller is, link that caller to a manifest it is allowed to use, and then separately decide whether the caller may perform the operation. ```python from fastapi import FastAPI, Request @@ -58,10 +60,12 @@ with TestClient(app) as client: print("PASS: diagnostic GET without trusted keys cannot return VALID") ``` -The gate requires `VALID` using server-held keys and runtime observations. Keep the route policy explicit when adding protected operations; this demo protects only `/execute`. Production services also need caller authentication, authorization, bounded requests, and current revocation and attestation appraisal. +The gate lets a request through only when the result is `VALID`, using keys the server holds and values the server observed for itself. It protects only the `/execute` route, so name each protected route explicitly as you add more. A production service also needs to check who the caller is and what they may do, limit request sizes, and keep its revocation list (manifests withdrawn before they expire) and its hardware evidence checks current. ## What the SDK router provides +The software development kit (SDK) also ships ready-made diagnostic routes. They help with inspection, but none of them is an acceptance gate on its own. + | Route | Trust and result boundaries | |-------|-----------------------------| | `GET /agent/verify?manifest_id=...` | Looks up a stored JSON manifest but receives no trusted issuer keys. The signed demo returns `UNVERIFIABLE`; this is not an acceptance gate. | @@ -69,18 +73,22 @@ The gate requires `VALID` using server-held keys and runtime observations. Keep | `POST /agent/verify/cose` | Accepts a v0.2 COSE envelope with `Content-Type: application/agent-manifest+cose`. Configure the router's `cose_context` with server-held trust and runtime inputs. No configured trust means no `VALID` result. | | `GET /agent/revocation-status?manifest_id=...` | Looks up the in-memory revocation store. It does not fetch or refresh a CRL. | -An HTTP 200 response means the verification request was processed. Inspect the result body; a non-`VALID` verdict must not authorize the protected operation. The SDK router does not provide caller authentication, rate limiting, or application authorization. +An HTTP 200 response only means the check ran. Read the result in the response body; a non-`VALID` verdict must not authorize the protected operation. The SDK router does not check who the caller is, limit how often they call, or decide what they are allowed to do. ## Configure the verifier's inputs -Use `VerificationContext` to supply independently observed hashes, model version, enforcement mode, trusted issuer keys, and any required delegation or approval keys. With strict artifact verification, a declared binding without its required observation can yield `INCOMPLETE`. Do not fill expected values by copying the incoming manifest. +The verifier (the code that checks a manifest) needs its own picture of what should be running. Give it that through `VerificationContext`: the hashes (fingerprints) of the prompt, policy and tools you observed yourself, the model version, the enforcement mode, the issuer keys you trust, and any keys needed for delegation or human approvals. Never fill these values by copying them from the incoming manifest, since a manifest always matches itself. With strict artifact verification, a manifest that declares something you supplied no observed value for can come back `INCOMPLETE`. -`trusted_keys` authenticates the signature under a configured key. Where issuer identity matters, also populate `trusted_key_issuers` to restrict which issuer each key may represent. An empty issuer map does not authorize that named issuer merely because the signature verifies. +??? info "Technical detail: issuer keys and strict mode" -Keep `strict_artifact_verification=True` for the application gate. Setting it to `False` deliberately reduces artifact checking; label such an audit as document verification and do not use it to approve the running agent. + `trusted_keys` authenticates the signature under a configured key. Where issuer identity matters, also populate `trusted_key_issuers` to restrict which issuer each key may represent. An empty issuer map does not authorize that named issuer merely because the signature verifies. + + Keep `strict_artifact_verification=True` for the application gate. Setting it to `False` deliberately reduces artifact checking; label such an audit as document verification and do not use it to approve the running agent. ## Read the verdict +Every check ends in one result. Only `VALID` lets a request through. + | Result | Meaning for the gate | |--------|----------------------| | `VALID` | Supplied checks passed for the declared bindings; separately check caller identity and permission for the operation. | @@ -96,11 +104,17 @@ Reject every non-`VALID` outcome, including future values absent from this table ## Add revocation and evidence appraisal -The example uses an empty `RevocationStore`. For a running service, load authenticated revocation records and refresh the store before stale data exceeds your acceptance policy. A `FileCRL` reader caches loaded records; reusing it does not automatically notice another process's writes. Follow the tested [revocation example](revocation-and-key-rotation.md). +The example starts with an empty `RevocationStore`, so nothing is withdrawn. A running service should load signed revocation records and refresh them often enough that it never relies on data older than your policy allows. Follow the tested [revocation example](revocation-and-key-rotation.md). + +If your policy requires attestation (a signed report from the processor about what is running on it), check that report yourself before telling the verifier it passed. The same goes for a transparency log receipt (proof that the manifest was published to a public log): check it first, then pass the result in. + +??? info "Technical detail: caching, attestation and transparency inputs" + + A `FileCRL` reader caches loaded records; reusing it does not automatically notice another process's writes. -When attestation is required, appraise the hardware evidence and its binding to this manifest using approved roots and freshness policy before supplying verified evidence to the context. `enforce_attestation=True` does not itself perform every vendor appraisal step or establish a conformance level. + When attestation is required, appraise the hardware evidence and its binding to this manifest using approved roots and freshness policy before supplying verified evidence to the context. `enforce_attestation=True` does not itself perform every vendor appraisal step or establish a conformance level. -Similarly, independently appraise a transparency entry or receipt before supplying `verified_transparency_entry_ids` or `verified_transparency_receipt_hashes`, together with `transparency_evidence_manifest_id`. A receipt's presence is insufficient, including a receipt in a COSE unprotected header. + Similarly, independently appraise a transparency entry or receipt before supplying `verified_transparency_entry_ids` or `verified_transparency_receipt_hashes`, together with `transparency_evidence_manifest_id`. A receipt's presence is insufficient, including a receipt in a COSE unprotected header. ## Next steps diff --git a/docs/tutorials/your-first-manifest.md b/docs/tutorials/your-first-manifest.md index dcb786b5..6604afcb 100644 --- a/docs/tutorials/your-first-manifest.md +++ b/docs/tutorials/your-first-manifest.md @@ -1,22 +1,22 @@ # Your First Agent Manifest -Start with the [complete first-manifest example](../getting-started.md). It builds a signed software manifest, verifies independently supplied artifact inputs, and rejects both an edited record and a changed prompt hash. Use that single maintained example for installation, code, and expected output. +This page explains what the [complete first-manifest example](../getting-started.md) is doing, so you avoid the common mistakes when you adapt it. Run that example first: it signs a manifest, checks it against values you supply, and rejects both an edited record and a changed prompt. Installation, code and expected output live there, in one maintained place. ## Understand the signed object -For the supported v0.1 JSON form, `Ed25519Signer.sign(manifest_dict)` returns a signature block, not a complete manifest. Assign it to `manifest_dict["signature"]`. Passing only that block to `verify_manifest()` discards the manifest's identity, artifacts, and version. +For the supported v0.1 JSON form, `Ed25519Signer.sign(manifest_dict)` returns only the signature block, and you attach it to the manifest yourself: assign it to `manifest_dict["signature"]`. If you pass only that block to `verify_manifest()`, the checker never sees the manifest's identity, parts or version. -The v0.2 representation uses a COSE envelope. See the [signature envelope decision](../adr/0011-signature-envelope.md) before changing formats; do not treat COSE bytes as a JSON signature block. +The v0.2 format wraps the manifest in a binary envelope called COSE. See the [signature envelope decision](../adr/0011-signature-envelope.md) before switching formats; COSE bytes are not a JSON signature block. ## Supply trust separately -The recipient supplies approved issuer keys and expected runtime artifacts through `VerificationContext`. A public key or expected hash copied from an incoming manifest cannot establish its own authority. Schema validation checks structure; signature verification and artifact comparison establish different properties. +Whoever checks the manifest brings their own trust. They pass the signer keys they have approved, and the values of what is actually running, through `VerificationContext`. A public key or expected hash copied out of the incoming manifest proves nothing, because the manifest would be vouching for itself. Three checks answer three different questions: schema validation asks whether the record is well formed, the signature check asks who signed it, and the comparison asks whether it matches what is running. -A valid signature alone can leave the result `INCOMPLETE` when required runtime inputs are absent. A missing trusted key produces `UNVERIFIABLE`. Only accept the result your application's verification policy explicitly allows. +A valid signature alone can still give `INCOMPLETE` when the values to compare are missing. A missing trusted key gives `UNVERIFIABLE`. Accept only the results your application's rules explicitly allow. ## Keep private keys out of output -The demo retains its private key only in memory and saves a public key for later verification. Use your approved secret-management mechanism for persistent issuer keys. Avoid printing private key material into terminal history, CI output, or logs. +The demo keeps its private (signing) key only in memory and saves the public key for later checks. For signing keys you keep, use your organisation's approved secret store. Never print private key material into terminal history, build output or logs. ## Next steps diff --git a/scripts/gen_cli_reference.py b/scripts/gen_cli_reference.py index 442356f4..1b9110d3 100644 --- a/scripts/gen_cli_reference.py +++ b/scripts/gen_cli_reference.py @@ -33,6 +33,10 @@ # CLI reference +This page lists every `manifest` terminal command and its options, for when you +want to create, sign, check or withdraw a manifest without writing Python. Each +entry is the command's own help text, generated from the code so it stays exact. + The `manifest` command is installed with the `cli` extra. ```bash From 64a68345ed0e459a9e027fa468b12899b391281d Mon Sep 17 00:00:00 2001 From: Imran Siddique <45405841+imran-siddique@users.noreply.github.com> Date: Wed, 7 Oct 2026 14:15:32 -0700 Subject: [PATCH 2/4] docs(cli): replace em dashes in revocation help text Co-Authored-By: Claude Opus 5.5 --- docs/api-reference/cli.md | 446 +++++++++++++++---------------- python/src/agent_manifest/cli.py | 4 +- 2 files changed, 225 insertions(+), 225 deletions(-) diff --git a/docs/api-reference/cli.md b/docs/api-reference/cli.md index 1db73499..d155fb40 100644 --- a/docs/api-reference/cli.md +++ b/docs/api-reference/cli.md @@ -1,223 +1,223 @@ - - -# CLI reference - -This page lists every `manifest` terminal command and its options, for when you -want to create, sign, check or withdraw a manifest without writing Python. Each -entry is the command's own help text, generated from the code so it stays exact. - -The `manifest` command is installed with the `cli` extra. - -```bash -pip install "agent-manifest[cli]" -``` - -Every command is invoked directly: `manifest verify signed.json`. Releases up to -0.5.0 nested them under a second `manifest` group; that spelling still works and -prints a deprecation warning. - -## Commands - -### manifest create - -Create a draft manifest from a JSON config file. - -``` -Usage: manifest create [OPTIONS] CONFIG - - Create a draft manifest from a JSON config file. - - CONFIG must be a JSON file with at minimum: agent_id, issuer, issued_at, expires_at, - and an artifacts block. - - Example: - manifest create config.json -o draft.json - -Options: - -o, --output TEXT Write output to file (default: stdout) - --help Show this message and exit. -``` - -### manifest sign - -Sign a draft manifest with Ed25519. - -``` -Usage: manifest sign [OPTIONS] MANIFEST_FILE - - Sign a draft manifest with Ed25519. - - KEY must be a file containing the 64-hex-character (32-byte) Ed25519 private key seed. - - Example: - manifest sign draft.json --key private.hex -o signed.json - -Options: - -k, --key TEXT Path to raw 32-byte Ed25519 private key (hex file) [required] - -o, --output TEXT Write output to file (default: stdout) - --help Show this message and exit. -``` - -### manifest keygen - -Generate a new Ed25519 key pair for manifest signing. - -``` -Usage: manifest keygen [OPTIONS] - - Generate a new Ed25519 key pair for manifest signing. - - Writes: - private.hex - 64-hex private key seed (keep secret, mode 0600) - public.hex - 64-hex public key bytes - - Refuses to overwrite an existing private.hex -- delete it first if you really want to - replace it. - - Example: - manifest keygen -d ./keys/ - -Options: - -d, --output-dir TEXT Directory to write key files - --help Show this message and exit. -``` - -### manifest attest - -Extend the manifest hash into hardware and append the attestation block. - -``` -Usage: manifest attest [OPTIONS] MANIFEST_FILE - - Extend the manifest hash into hardware and append the attestation block. - - For TPM: requires tpm2-tools (apt-get install tpm2-tools). For swtpm in CI: set - TPM2TOOLS_TCTI=swtpm: before running. - - Example: - manifest attest signed.json --provider tpm --level 1 -o attested.json - -Options: - -p, --provider [auto|azure-cvm|tpm|sev-snp|tdx|opaque|software] - Attestation provider (default: auto) - --level INTEGER Minimum conformance level (0-3) - -o, --output TEXT Write output to file (default: stdout) - --help Show this message and exit. -``` - -### manifest verify - -Verify a manifest against the local verification engine. - -``` -Usage: manifest verify [OPTIONS] MANIFEST_FILE - - Verify a manifest against the local verification engine. - - Prints the VerificationResult as JSON. Exits with code 0 on VALID, 1 on any other - result. - - Use --crl-path to load a revocation list and check for revoked manifests. Pass --crl- - trusted-key with it to authenticate each record present in the CRL against the - revoking authority's public key (spec Section 3.7 / REVOC-003): a record with a - missing, malformed, or invalid signature causes verification to fail closed with an - error, rather than being silently treated as "not revoked". - - --crl-trusted-key does NOT prove the CRL file is complete. Per-record signatures - authenticate the records that are present but cannot detect that a line — or the - entire file — was deleted. A party who can write or intercept the CRL file can still - suppress a real revocation by removing its record entirely; only a signed, versioned - CRL snapshot (not yet implemented) can close that gap. Without --crl-trusted-key at - all, every line in the CRL file is additionally trusted unauthenticated: a party who - can write or intercept that file can also fabricate a revocation for a legitimate - manifest. - - HITL approvals attach outside the manifest signature, so supply the - approver keys you trust with --approver-key. Without them an approval is - UNVERIFIABLE and the manifest can never verify. - - Example: - manifest verify attested.json --crl-path revocations.jsonl - manifest verify signed.json --public-key pub.hex --enforce-hitl - --approver-key mailto:alice@example.com=alice.hex - -Options: - --enforce-hitl Fail unless a required HITL approval is present and - unexpired - --enforce-attestation Fail unless the attestation report matches the - manifest hash - --crl-path TEXT Path to a FileCRL JSON-Lines file for revocation - checks - --crl-trusted-key TEXT Path to the CRL-signing authority's raw Ed25519 public - key hex file. Required to cryptographically verify - --crl-path records (REVOC-003); without it every - record in the file is trusted unauthenticated. See the - command description above for the completeness caveat. - --public-key TEXT Path to a trusted raw Ed25519 public key hex file - --approver-key APPROVER_ID=PATH - Trusted HITL approver key as approver_id=path to a raw - Ed25519 public key hex file (repeatable) - --require-transparency Fail unless transparency evidence was independently - verified - --verified-transparency-entry-id TEXT - Legacy entry UUID independently verified for this - manifest (repeatable) - --verified-transparency-receipt-hash TEXT - SHA-256 hex of a raw COSE receipt independently - verified for this manifest (repeatable) - --transparency-evidence-manifest-id TEXT - Manifest ID to which the independent transparency - appraisal was bound - --signature-only Authenticate only the manifest signature; explicitly - allow bound runtime artifacts to remain unchecked - -o, --output TEXT Write output to file (default: stdout) - --help Show this message and exit. -``` - -### manifest revoke - -Generate a revocation record for a manifest ID. - -``` -Usage: manifest revoke [OPTIONS] MANIFEST_ID - - Generate a revocation record for a manifest ID. - - The record JSON can be submitted to your revocation registry or passed to a - RevocationStore instance in the verification endpoint. - - Example: - manifest revoke 018f4a3b-... --reason "key compromise" --revoked-by security@example.com - -Options: - -r, --reason TEXT Reason for revocation [required] - --revoked-by TEXT Identity of revoking authority (DID or email) [required] - -o, --output TEXT Write output to file (default: stdout) - --help Show this message and exit. -``` - -### manifest from-plugin - -Read an Agent Plugins 1.0.0 bundle and report what it can bind. - -``` -Usage: manifest from-plugin [OPTIONS] BUNDLE_DIR - - Read an Agent Plugins 1.0.0 bundle and report what it can bind. - - Emits the whole-bundle digest, the skills found, and the MCP servers the bundle - declares. It does not emit a tool manifest: mcp.json declares which servers to start - and never enumerates their tools, so the per-tool schema and description hashes a tool - manifest binds are not in a bundle to be read. Resolving those means starting the - servers and asking them. - - Example: manifest from-plugin ./my-plugin - -Options: - -o, --output TEXT Write output to file (default: stdout) - --help Show this message and exit. -``` - -## Source - -::: agent_manifest.cli + + +# CLI reference + +This page lists every `manifest` terminal command and its options, for when you +want to create, sign, check or withdraw a manifest without writing Python. Each +entry is the command's own help text, generated from the code so it stays exact. + +The `manifest` command is installed with the `cli` extra. + +```bash +pip install "agent-manifest[cli]" +``` + +Every command is invoked directly: `manifest verify signed.json`. Releases up to +0.5.0 nested them under a second `manifest` group; that spelling still works and +prints a deprecation warning. + +## Commands + +### manifest create + +Create a draft manifest from a JSON config file. + +``` +Usage: manifest create [OPTIONS] CONFIG + + Create a draft manifest from a JSON config file. + + CONFIG must be a JSON file with at minimum: agent_id, issuer, issued_at, expires_at, + and an artifacts block. + + Example: + manifest create config.json -o draft.json + +Options: + -o, --output TEXT Write output to file (default: stdout) + --help Show this message and exit. +``` + +### manifest sign + +Sign a draft manifest with Ed25519. + +``` +Usage: manifest sign [OPTIONS] MANIFEST_FILE + + Sign a draft manifest with Ed25519. + + KEY must be a file containing the 64-hex-character (32-byte) Ed25519 private key seed. + + Example: + manifest sign draft.json --key private.hex -o signed.json + +Options: + -k, --key TEXT Path to raw 32-byte Ed25519 private key (hex file) [required] + -o, --output TEXT Write output to file (default: stdout) + --help Show this message and exit. +``` + +### manifest keygen + +Generate a new Ed25519 key pair for manifest signing. + +``` +Usage: manifest keygen [OPTIONS] + + Generate a new Ed25519 key pair for manifest signing. + + Writes: + private.hex - 64-hex private key seed (keep secret, mode 0600) + public.hex - 64-hex public key bytes + + Refuses to overwrite an existing private.hex -- delete it first if you really want to + replace it. + + Example: + manifest keygen -d ./keys/ + +Options: + -d, --output-dir TEXT Directory to write key files + --help Show this message and exit. +``` + +### manifest attest + +Extend the manifest hash into hardware and append the attestation block. + +``` +Usage: manifest attest [OPTIONS] MANIFEST_FILE + + Extend the manifest hash into hardware and append the attestation block. + + For TPM: requires tpm2-tools (apt-get install tpm2-tools). For swtpm in CI: set + TPM2TOOLS_TCTI=swtpm: before running. + + Example: + manifest attest signed.json --provider tpm --level 1 -o attested.json + +Options: + -p, --provider [auto|azure-cvm|tpm|sev-snp|tdx|opaque|software] + Attestation provider (default: auto) + --level INTEGER Minimum conformance level (0-3) + -o, --output TEXT Write output to file (default: stdout) + --help Show this message and exit. +``` + +### manifest verify + +Verify a manifest against the local verification engine. + +``` +Usage: manifest verify [OPTIONS] MANIFEST_FILE + + Verify a manifest against the local verification engine. + + Prints the VerificationResult as JSON. Exits with code 0 on VALID, 1 on any other + result. + + Use --crl-path to load a revocation list and check for revoked manifests. Pass --crl- + trusted-key with it to authenticate each record present in the CRL against the + revoking authority's public key (spec Section 3.7 / REVOC-003): a record with a + missing, malformed, or invalid signature causes verification to fail closed with an + error, rather than being silently treated as "not revoked". + + --crl-trusted-key does NOT prove the CRL file is complete. Per-record signatures + authenticate the records that are present but cannot detect that a line, or the entire + file, was deleted. A party who can write or intercept the CRL file can still suppress + a real revocation by removing its record entirely; only a signed, versioned CRL + snapshot (not yet implemented) can close that gap. Without --crl-trusted-key at all, + every line in the CRL file is additionally trusted unauthenticated: a party who can + write or intercept that file can also fabricate a revocation for a legitimate + manifest. + + HITL approvals attach outside the manifest signature, so supply the + approver keys you trust with --approver-key. Without them an approval is + UNVERIFIABLE and the manifest can never verify. + + Example: + manifest verify attested.json --crl-path revocations.jsonl + manifest verify signed.json --public-key pub.hex --enforce-hitl + --approver-key mailto:alice@example.com=alice.hex + +Options: + --enforce-hitl Fail unless a required HITL approval is present and + unexpired + --enforce-attestation Fail unless the attestation report matches the + manifest hash + --crl-path TEXT Path to a FileCRL JSON-Lines file for revocation + checks + --crl-trusted-key TEXT Path to the CRL-signing authority's raw Ed25519 public + key hex file. Required to cryptographically verify + --crl-path records (REVOC-003); without it every + record in the file is trusted unauthenticated. See the + command description above for the completeness caveat. + --public-key TEXT Path to a trusted raw Ed25519 public key hex file + --approver-key APPROVER_ID=PATH + Trusted HITL approver key as approver_id=path to a raw + Ed25519 public key hex file (repeatable) + --require-transparency Fail unless transparency evidence was independently + verified + --verified-transparency-entry-id TEXT + Legacy entry UUID independently verified for this + manifest (repeatable) + --verified-transparency-receipt-hash TEXT + SHA-256 hex of a raw COSE receipt independently + verified for this manifest (repeatable) + --transparency-evidence-manifest-id TEXT + Manifest ID to which the independent transparency + appraisal was bound + --signature-only Authenticate only the manifest signature; explicitly + allow bound runtime artifacts to remain unchecked + -o, --output TEXT Write output to file (default: stdout) + --help Show this message and exit. +``` + +### manifest revoke + +Generate a revocation record for a manifest ID. + +``` +Usage: manifest revoke [OPTIONS] MANIFEST_ID + + Generate a revocation record for a manifest ID. + + The record JSON can be submitted to your revocation registry or passed to a + RevocationStore instance in the verification endpoint. + + Example: + manifest revoke 018f4a3b-... --reason "key compromise" --revoked-by security@example.com + +Options: + -r, --reason TEXT Reason for revocation [required] + --revoked-by TEXT Identity of revoking authority (DID or email) [required] + -o, --output TEXT Write output to file (default: stdout) + --help Show this message and exit. +``` + +### manifest from-plugin + +Read an Agent Plugins 1.0.0 bundle and report what it can bind. + +``` +Usage: manifest from-plugin [OPTIONS] BUNDLE_DIR + + Read an Agent Plugins 1.0.0 bundle and report what it can bind. + + Emits the whole-bundle digest, the skills found, and the MCP servers the bundle + declares. It does not emit a tool manifest: mcp.json declares which servers to start + and never enumerates their tools, so the per-tool schema and description hashes a tool + manifest binds are not in a bundle to be read. Resolving those means starting the + servers and asking them. + + Example: manifest from-plugin ./my-plugin + +Options: + -o, --output TEXT Write output to file (default: stdout) + --help Show this message and exit. +``` + +## Source + +::: agent_manifest.cli diff --git a/python/src/agent_manifest/cli.py b/python/src/agent_manifest/cli.py index 28910d55..868862fa 100644 --- a/python/src/agent_manifest/cli.py +++ b/python/src/agent_manifest/cli.py @@ -470,7 +470,7 @@ def verify( --crl-trusted-key does NOT prove the CRL file is complete. Per-record signatures authenticate the records that are present but cannot detect - that a line — or the entire file — was deleted. A party who can write or + that a line, or the entire file, was deleted. A party who can write or intercept the CRL file can still suppress a real revocation by removing its record entirely; only a signed, versioned CRL snapshot (not yet implemented) can close that gap. Without --crl-trusted-key at all, every @@ -528,7 +528,7 @@ def verify( "Revocation records are NOT cryptographically verified; any " "party who can write or intercept this file can suppress a " "real revocation or fabricate one. Pass --crl-trusted-key to " - "authenticate records present in the CRL — note that even " + "authenticate records present in the CRL. Note that even " "with --crl-trusted-key, deleting a record (or the whole " "file) still suppresses a revocation, since per-record " "signatures cannot prove the CRL is complete.", From d7614a220961356f8fe631c91fb3cd393aa089d6 Mon Sep 17 00:00:00 2001 From: Imran Siddique <45405841+imran-siddique@users.noreply.github.com> Date: Wed, 7 Oct 2026 14:16:42 -0700 Subject: [PATCH 3/4] docs(cli): restore LF line endings in the generated reference Co-Authored-By: Claude Opus 5.5 --- docs/api-reference/cli.md | 446 +++++++++++++++++++------------------- 1 file changed, 223 insertions(+), 223 deletions(-) diff --git a/docs/api-reference/cli.md b/docs/api-reference/cli.md index d155fb40..ae2b3253 100644 --- a/docs/api-reference/cli.md +++ b/docs/api-reference/cli.md @@ -1,223 +1,223 @@ - - -# CLI reference - -This page lists every `manifest` terminal command and its options, for when you -want to create, sign, check or withdraw a manifest without writing Python. Each -entry is the command's own help text, generated from the code so it stays exact. - -The `manifest` command is installed with the `cli` extra. - -```bash -pip install "agent-manifest[cli]" -``` - -Every command is invoked directly: `manifest verify signed.json`. Releases up to -0.5.0 nested them under a second `manifest` group; that spelling still works and -prints a deprecation warning. - -## Commands - -### manifest create - -Create a draft manifest from a JSON config file. - -``` -Usage: manifest create [OPTIONS] CONFIG - - Create a draft manifest from a JSON config file. - - CONFIG must be a JSON file with at minimum: agent_id, issuer, issued_at, expires_at, - and an artifacts block. - - Example: - manifest create config.json -o draft.json - -Options: - -o, --output TEXT Write output to file (default: stdout) - --help Show this message and exit. -``` - -### manifest sign - -Sign a draft manifest with Ed25519. - -``` -Usage: manifest sign [OPTIONS] MANIFEST_FILE - - Sign a draft manifest with Ed25519. - - KEY must be a file containing the 64-hex-character (32-byte) Ed25519 private key seed. - - Example: - manifest sign draft.json --key private.hex -o signed.json - -Options: - -k, --key TEXT Path to raw 32-byte Ed25519 private key (hex file) [required] - -o, --output TEXT Write output to file (default: stdout) - --help Show this message and exit. -``` - -### manifest keygen - -Generate a new Ed25519 key pair for manifest signing. - -``` -Usage: manifest keygen [OPTIONS] - - Generate a new Ed25519 key pair for manifest signing. - - Writes: - private.hex - 64-hex private key seed (keep secret, mode 0600) - public.hex - 64-hex public key bytes - - Refuses to overwrite an existing private.hex -- delete it first if you really want to - replace it. - - Example: - manifest keygen -d ./keys/ - -Options: - -d, --output-dir TEXT Directory to write key files - --help Show this message and exit. -``` - -### manifest attest - -Extend the manifest hash into hardware and append the attestation block. - -``` -Usage: manifest attest [OPTIONS] MANIFEST_FILE - - Extend the manifest hash into hardware and append the attestation block. - - For TPM: requires tpm2-tools (apt-get install tpm2-tools). For swtpm in CI: set - TPM2TOOLS_TCTI=swtpm: before running. - - Example: - manifest attest signed.json --provider tpm --level 1 -o attested.json - -Options: - -p, --provider [auto|azure-cvm|tpm|sev-snp|tdx|opaque|software] - Attestation provider (default: auto) - --level INTEGER Minimum conformance level (0-3) - -o, --output TEXT Write output to file (default: stdout) - --help Show this message and exit. -``` - -### manifest verify - -Verify a manifest against the local verification engine. - -``` -Usage: manifest verify [OPTIONS] MANIFEST_FILE - - Verify a manifest against the local verification engine. - - Prints the VerificationResult as JSON. Exits with code 0 on VALID, 1 on any other - result. - - Use --crl-path to load a revocation list and check for revoked manifests. Pass --crl- - trusted-key with it to authenticate each record present in the CRL against the - revoking authority's public key (spec Section 3.7 / REVOC-003): a record with a - missing, malformed, or invalid signature causes verification to fail closed with an - error, rather than being silently treated as "not revoked". - - --crl-trusted-key does NOT prove the CRL file is complete. Per-record signatures - authenticate the records that are present but cannot detect that a line, or the entire - file, was deleted. A party who can write or intercept the CRL file can still suppress - a real revocation by removing its record entirely; only a signed, versioned CRL - snapshot (not yet implemented) can close that gap. Without --crl-trusted-key at all, - every line in the CRL file is additionally trusted unauthenticated: a party who can - write or intercept that file can also fabricate a revocation for a legitimate - manifest. - - HITL approvals attach outside the manifest signature, so supply the - approver keys you trust with --approver-key. Without them an approval is - UNVERIFIABLE and the manifest can never verify. - - Example: - manifest verify attested.json --crl-path revocations.jsonl - manifest verify signed.json --public-key pub.hex --enforce-hitl - --approver-key mailto:alice@example.com=alice.hex - -Options: - --enforce-hitl Fail unless a required HITL approval is present and - unexpired - --enforce-attestation Fail unless the attestation report matches the - manifest hash - --crl-path TEXT Path to a FileCRL JSON-Lines file for revocation - checks - --crl-trusted-key TEXT Path to the CRL-signing authority's raw Ed25519 public - key hex file. Required to cryptographically verify - --crl-path records (REVOC-003); without it every - record in the file is trusted unauthenticated. See the - command description above for the completeness caveat. - --public-key TEXT Path to a trusted raw Ed25519 public key hex file - --approver-key APPROVER_ID=PATH - Trusted HITL approver key as approver_id=path to a raw - Ed25519 public key hex file (repeatable) - --require-transparency Fail unless transparency evidence was independently - verified - --verified-transparency-entry-id TEXT - Legacy entry UUID independently verified for this - manifest (repeatable) - --verified-transparency-receipt-hash TEXT - SHA-256 hex of a raw COSE receipt independently - verified for this manifest (repeatable) - --transparency-evidence-manifest-id TEXT - Manifest ID to which the independent transparency - appraisal was bound - --signature-only Authenticate only the manifest signature; explicitly - allow bound runtime artifacts to remain unchecked - -o, --output TEXT Write output to file (default: stdout) - --help Show this message and exit. -``` - -### manifest revoke - -Generate a revocation record for a manifest ID. - -``` -Usage: manifest revoke [OPTIONS] MANIFEST_ID - - Generate a revocation record for a manifest ID. - - The record JSON can be submitted to your revocation registry or passed to a - RevocationStore instance in the verification endpoint. - - Example: - manifest revoke 018f4a3b-... --reason "key compromise" --revoked-by security@example.com - -Options: - -r, --reason TEXT Reason for revocation [required] - --revoked-by TEXT Identity of revoking authority (DID or email) [required] - -o, --output TEXT Write output to file (default: stdout) - --help Show this message and exit. -``` - -### manifest from-plugin - -Read an Agent Plugins 1.0.0 bundle and report what it can bind. - -``` -Usage: manifest from-plugin [OPTIONS] BUNDLE_DIR - - Read an Agent Plugins 1.0.0 bundle and report what it can bind. - - Emits the whole-bundle digest, the skills found, and the MCP servers the bundle - declares. It does not emit a tool manifest: mcp.json declares which servers to start - and never enumerates their tools, so the per-tool schema and description hashes a tool - manifest binds are not in a bundle to be read. Resolving those means starting the - servers and asking them. - - Example: manifest from-plugin ./my-plugin - -Options: - -o, --output TEXT Write output to file (default: stdout) - --help Show this message and exit. -``` - -## Source - -::: agent_manifest.cli + + +# CLI reference + +This page lists every `manifest` terminal command and its options, for when you +want to create, sign, check or withdraw a manifest without writing Python. Each +entry is the command's own help text, generated from the code so it stays exact. + +The `manifest` command is installed with the `cli` extra. + +```bash +pip install "agent-manifest[cli]" +``` + +Every command is invoked directly: `manifest verify signed.json`. Releases up to +0.5.0 nested them under a second `manifest` group; that spelling still works and +prints a deprecation warning. + +## Commands + +### manifest create + +Create a draft manifest from a JSON config file. + +``` +Usage: manifest create [OPTIONS] CONFIG + + Create a draft manifest from a JSON config file. + + CONFIG must be a JSON file with at minimum: agent_id, issuer, issued_at, expires_at, + and an artifacts block. + + Example: + manifest create config.json -o draft.json + +Options: + -o, --output TEXT Write output to file (default: stdout) + --help Show this message and exit. +``` + +### manifest sign + +Sign a draft manifest with Ed25519. + +``` +Usage: manifest sign [OPTIONS] MANIFEST_FILE + + Sign a draft manifest with Ed25519. + + KEY must be a file containing the 64-hex-character (32-byte) Ed25519 private key seed. + + Example: + manifest sign draft.json --key private.hex -o signed.json + +Options: + -k, --key TEXT Path to raw 32-byte Ed25519 private key (hex file) [required] + -o, --output TEXT Write output to file (default: stdout) + --help Show this message and exit. +``` + +### manifest keygen + +Generate a new Ed25519 key pair for manifest signing. + +``` +Usage: manifest keygen [OPTIONS] + + Generate a new Ed25519 key pair for manifest signing. + + Writes: + private.hex - 64-hex private key seed (keep secret, mode 0600) + public.hex - 64-hex public key bytes + + Refuses to overwrite an existing private.hex -- delete it first if you really want to + replace it. + + Example: + manifest keygen -d ./keys/ + +Options: + -d, --output-dir TEXT Directory to write key files + --help Show this message and exit. +``` + +### manifest attest + +Extend the manifest hash into hardware and append the attestation block. + +``` +Usage: manifest attest [OPTIONS] MANIFEST_FILE + + Extend the manifest hash into hardware and append the attestation block. + + For TPM: requires tpm2-tools (apt-get install tpm2-tools). For swtpm in CI: set + TPM2TOOLS_TCTI=swtpm: before running. + + Example: + manifest attest signed.json --provider tpm --level 1 -o attested.json + +Options: + -p, --provider [auto|azure-cvm|tpm|sev-snp|tdx|opaque|software] + Attestation provider (default: auto) + --level INTEGER Minimum conformance level (0-3) + -o, --output TEXT Write output to file (default: stdout) + --help Show this message and exit. +``` + +### manifest verify + +Verify a manifest against the local verification engine. + +``` +Usage: manifest verify [OPTIONS] MANIFEST_FILE + + Verify a manifest against the local verification engine. + + Prints the VerificationResult as JSON. Exits with code 0 on VALID, 1 on any other + result. + + Use --crl-path to load a revocation list and check for revoked manifests. Pass --crl- + trusted-key with it to authenticate each record present in the CRL against the + revoking authority's public key (spec Section 3.7 / REVOC-003): a record with a + missing, malformed, or invalid signature causes verification to fail closed with an + error, rather than being silently treated as "not revoked". + + --crl-trusted-key does NOT prove the CRL file is complete. Per-record signatures + authenticate the records that are present but cannot detect that a line, or the entire + file, was deleted. A party who can write or intercept the CRL file can still suppress + a real revocation by removing its record entirely; only a signed, versioned CRL + snapshot (not yet implemented) can close that gap. Without --crl-trusted-key at all, + every line in the CRL file is additionally trusted unauthenticated: a party who can + write or intercept that file can also fabricate a revocation for a legitimate + manifest. + + HITL approvals attach outside the manifest signature, so supply the + approver keys you trust with --approver-key. Without them an approval is + UNVERIFIABLE and the manifest can never verify. + + Example: + manifest verify attested.json --crl-path revocations.jsonl + manifest verify signed.json --public-key pub.hex --enforce-hitl + --approver-key mailto:alice@example.com=alice.hex + +Options: + --enforce-hitl Fail unless a required HITL approval is present and + unexpired + --enforce-attestation Fail unless the attestation report matches the + manifest hash + --crl-path TEXT Path to a FileCRL JSON-Lines file for revocation + checks + --crl-trusted-key TEXT Path to the CRL-signing authority's raw Ed25519 public + key hex file. Required to cryptographically verify + --crl-path records (REVOC-003); without it every + record in the file is trusted unauthenticated. See the + command description above for the completeness caveat. + --public-key TEXT Path to a trusted raw Ed25519 public key hex file + --approver-key APPROVER_ID=PATH + Trusted HITL approver key as approver_id=path to a raw + Ed25519 public key hex file (repeatable) + --require-transparency Fail unless transparency evidence was independently + verified + --verified-transparency-entry-id TEXT + Legacy entry UUID independently verified for this + manifest (repeatable) + --verified-transparency-receipt-hash TEXT + SHA-256 hex of a raw COSE receipt independently + verified for this manifest (repeatable) + --transparency-evidence-manifest-id TEXT + Manifest ID to which the independent transparency + appraisal was bound + --signature-only Authenticate only the manifest signature; explicitly + allow bound runtime artifacts to remain unchecked + -o, --output TEXT Write output to file (default: stdout) + --help Show this message and exit. +``` + +### manifest revoke + +Generate a revocation record for a manifest ID. + +``` +Usage: manifest revoke [OPTIONS] MANIFEST_ID + + Generate a revocation record for a manifest ID. + + The record JSON can be submitted to your revocation registry or passed to a + RevocationStore instance in the verification endpoint. + + Example: + manifest revoke 018f4a3b-... --reason "key compromise" --revoked-by security@example.com + +Options: + -r, --reason TEXT Reason for revocation [required] + --revoked-by TEXT Identity of revoking authority (DID or email) [required] + -o, --output TEXT Write output to file (default: stdout) + --help Show this message and exit. +``` + +### manifest from-plugin + +Read an Agent Plugins 1.0.0 bundle and report what it can bind. + +``` +Usage: manifest from-plugin [OPTIONS] BUNDLE_DIR + + Read an Agent Plugins 1.0.0 bundle and report what it can bind. + + Emits the whole-bundle digest, the skills found, and the MCP servers the bundle + declares. It does not emit a tool manifest: mcp.json declares which servers to start + and never enumerates their tools, so the per-tool schema and description hashes a tool + manifest binds are not in a bundle to be read. Resolving those means starting the + servers and asking them. + + Example: manifest from-plugin ./my-plugin + +Options: + -o, --output TEXT Write output to file (default: stdout) + --help Show this message and exit. +``` + +## Source + +::: agent_manifest.cli From de2c1f678251fda01f44fdb3aa6432314086c8f0 Mon Sep 17 00:00:00 2001 From: Imran Siddique <45405841+imran-siddique@users.noreply.github.com> Date: Wed, 7 Oct 2026 15:46:29 -0700 Subject: [PATCH 4/4] docs: bring the roadmap to October 2026 and drop unsourced compliance claims ROADMAP lists what shipped since June (TDX quote verification and AzureCVMProvider in 0.4.0, CoSAI WS4 retarget in 0.8.0, spec v0.2 draft, revocation router, HITL admissibility in 0.13.0) and what is still open. Compliance pages: the DORA level table now matches spec section 8.1; 'revoked in under one second', '<30s' and 'under five minutes' are replaced with what FileCRL actually does (no refresh interval, development store per ADR-0007); CI is described as running the conformance modules under a coverage gate, since the implemented module tests do not map one to one onto the 197 tests specified in section 8.2. The spec's 8.2 lead-in said 'four modules' above a five-row table; it now says five. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- ROADMAP.md | 33 +++++++++++++++++--------------- docs/compliance/dora.md | 18 ++++++++--------- docs/compliance/gdpr.md | 4 ++-- docs/compliance/hipaa.md | 4 ++-- spec/agent-manifest-spec-v0.2.md | 2 +- 6 files changed, 33 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 53c824ae..76cb1dc5 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ Put briefly, Agent Plugins describes what a client should install and a manifest ## Standards alignment -Targeting [CoSAI](https://www.coalitionforsecureai.org/) Working Stream 4, an OASIS Open Project. 197 conformance tests against the formal specification. Integrates with [TRACE](https://github.com/agentrust-io/trace-spec) for hardware-rooted attestation. +Targeting [CoSAI](https://www.coalitionforsecureai.org/) Working Stream 4, an OASIS Open Project. The specification defines a 197-test conformance suite. Integrates with [TRACE](https://github.com/agentrust-io/trace-spec) for hardware-rooted attestation. ## Contributing diff --git a/ROADMAP.md b/ROADMAP.md index 3f5516ad..0fa7a2fd 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,35 +1,38 @@ # Roadmap -This page shows what Agent Manifest set out to ship first, what was planned next, and what the project will not try to do. It was laid out for the June 2026 developer preview, and several "Next" items have shipped since then: the SDK is at 0.15.0 (2026-09-30). The [changelog](https://github.com/agentrust-io/agent-manifest/blob/main/CHANGELOG.md) is the record of what has actually shipped. +This page shows what Agent Manifest has shipped, what is still open, and what the project will not try to do. Status as of October 2026: the SDK is at 0.15.0 (2026-09-30) and the specification is at v0.2 draft. The [changelog](https://github.com/agentrust-io/agent-manifest/blob/main/CHANGELOG.md) is the record of what has actually shipped. -## Now: v0.1 developer preview (June 2026) +## Shipped: v0.1 developer preview (June 2026) -Launching at Confidential Computing Summit, June 23 2026. +Launched at Confidential Computing Summit, June 23 2026. -- Specification: all 10 artifact bindings, conformance levels 0 to 3, 197 conformance tests +- Specification: all 10 artifact bindings, conformance levels 0 to 3, and a 197-test conformance suite defined in section 8.2 - Python SDK: signing, verification, hardware attestation (TPM / SEV-SNP / TDX / OPAQUE), CLI - Runtime attestation freshness proofs: `attest_runtime_state()` + `verify_runtime_report()` (spec §3.3.2, ADR-0010) - Standard crypto profile: Ed25519, SHA-256, RFC 8785 - Post-quantum profile: ML-DSA-65 (NIST FIPS 204), SHAKE-256 (via `[pq]` extra) - Integration architecture documented: AGT, cMCP, MCP -**Not in v0.1**: TypeScript SDK, Go SDK, .NET SDK, streaming decision trace, multi-agent delegation UI, CoSAI WS4 contribution. +## Shipped since June -## Next: v0.2 (Q3 2026) +- **Intel TDX quote verification** (`agent_manifest._tdx_verify`), hardware-validated on a GCP C3 TDX guest, and **Azure confidential VM attestation** (`AzureCVMProvider`, vTPM-rooted SEV-SNP with the AMD certificate chain), validated on Azure DCasv5. Both in SDK 0.4.0 (2026-07-21). Azure TDX is not supported for offline attestation because Azure runs TDX behind a paravisor; see LIMITATIONS. +- **Target standards body moved to CoSAI Working Stream 4** after the Phase 1 RFC ([cosai-oasis/ws4-secure-design-agentic-systems#149](https://github.com/cosai-oasis/ws4-secure-design-agentic-systems/issues/149)), SDK 0.8.0 (2026-08-01). +- **Specification v0.2 draft** (August 2026): the `@context` URI moved to a controlled domain (ADR-0012) and the signature envelope moved to COSE_Sign1 ([envelope spec](spec/agent-manifest-cose-envelope-v0.2.md)). +- **Revocation endpoint**: `create_crl_router()` in `agent_manifest._revocation` serves a `FileCRL` over HTTP. `FileCRL` is a development store; production needs a database-backed store (ADR-0007). +- **HITL admissibility reporting** (`VerificationResult.hitl_admissibility`, issue #348), SDK 0.13.0 (2026-09-25). -Driven by community and early adopter feedback from the CC Summit period. Current candidates: +## Open: candidates for the next specification revision + +Driven by adopter feedback. Any normative change goes through the RFC process (14-day comment period). - **HITL approval scheme clarification**: specify whether hybrid mode applies to approver signatures; document approver key rotation -- **Policy bundle test vector**: add Merkle root test vector for composite bundles (Section 3.2.2) +- **Policy bundle test vector**: add a Merkle root test vector for composite bundles (Section 3.2.2) - **RAG corpus poisoning precedence**: explicit rule for HITL override of `poisoning_scan.result: flagged` -- **Memory baseline TTL carve-out**: reconcile artifact-only refresh exception with the immutability rule +- **Memory baseline TTL carve-out**: reconcile the artifact-only refresh exception with the immutability rule - **Delegation non-Cedar fallback**: static scope narrowing for verifiers without Cedar support -- **Azure confidential VM attestation**: `AzureCVMProvider` (vTPM-rooted SEV-SNP) with AMD VCEK chain verification, hardware-validated on Azure DCasv5. Intel TDX Quote verification (Intel QVL/PCS) remains pending +- **Evidence pack format** for the verification server - **TypeScript SDK**: community contribution welcome; see issue tracker for scope -- **Verification server improvements**: evidence pack format, revocation endpoint -- **MCP 2026 compatibility**: discovery artifact binding, versioned dynamic tool-catalog checkpoints, and separation of workload identity from delegated user authority; tracked in [#340](https://github.com/agentrust-io/agent-manifest/issues/340) - -v0.2 will go through the RFC process (14-day comment period) for any normative changes. +- **MCP 2026 compatibility**: discovery artifact binding, versioned dynamic tool-catalog checkpoints, and separation of workload identity from delegated user authority; tracked in [#340](https://github.com/agentrust-io/agent-manifest/issues/340) (open) ## Later: v1.0 CoSAI standard (2027) @@ -51,4 +54,4 @@ v0.2 will go through the RFC process (14-day comment period) for any normative c ## How to influence the roadmap -Open a GitHub issue with the `spec` label describing the problem you are trying to solve. Community and early adopter feedback from the CC Summit period (June to September 2026) has priority for v0.2 scope decisions. +Open a GitHub issue with the `spec` label describing the problem you are trying to solve. Feedback from teams running Agent Manifest has priority when choosing what goes into the next revision. diff --git a/docs/compliance/dora.md b/docs/compliance/dora.md index 906ed3d4..d9080858 100644 --- a/docs/compliance/dora.md +++ b/docs/compliance/dora.md @@ -30,9 +30,9 @@ Every field is signed by the issuer key, so any change to the record shows up. A **Key rotation:** The [Revocation and key rotation tutorial](../tutorials/revocation-and-key-rotation.md) documents a zero-downtime rotation procedure. The procedure lets you issue new manifests under a new signing key without stopping agents, which supports DORA's requirement for continuity during ICT disruption. -**Revocation:** The `FileCRL` component provides an append-only, signed revocation list (a published list of manifests that are no longer trusted). A compromised agent can be revoked in under one second by appending a signed `SignedRevocationRecord`. All verifiers checking the CRL endpoint immediately begin rejecting the revoked agent. +**Revocation:** The `FileCRL` component provides an append-only, signed revocation list (a published list of manifests that are no longer trusted). To revoke a compromised agent, append a signed `SignedRevocationRecord`. A verifier using the same `FileCRL` object rejects the agent on its next check. Other verifiers see the revocation when they next reload the list or query its endpoint, so how fast it reaches them depends on how often they refresh; the SDK sets no refresh interval. `FileCRL` is a development store, and production needs a database-backed store (ADR-0007). -**Recovery time objective (RTO):** Key rotation and agent reissuance can be completed in under five minutes using the runbook. The revocation mechanism has no single point of failure: the CRL file can be served from any static file host. +**Recovery time objective (RTO):** Key rotation and agent reissuance follow the runbook in the tutorial. The SDK publishes no timing for this, so measure your own recovery time against the runbook. The CRL file can be served from any static file host. --- @@ -60,14 +60,14 @@ This evidence helps document the "scope and nature" of an incident as DORA requi Conformance levels (how much a manifest covers and how strongly it is backed) give a ladder of things to test: -| Conformance level | Test coverage | DORA relevance | +| Conformance level (spec section 8.1) | What the level adds | Relevance | |-------------------|--------------|----------------| -| 0: Software only | Manifest schema validation, signature verification | Baseline; insufficient for production financial systems | -| 1: TPM | + TPM attestation verification | Acceptable for internal tools | -| 2: SEV-SNP / TDX | + hardware enclave report verification | Recommended for customer-facing financial AI | -| 3: Managed TEE | + managed attestation authority | Required for critical ICT third-party services | +| 0: Software-only | All artifact bindings, standard crypto profile, transparency log publication | Baseline for development and non-regulated use | +| 1: TEE-attested | + TEE attestation block, sealed audit key, container image digest verified by hardware | Enterprise production | +| 2: Full stack | + all 10 artifacts bound, HITL approvals, delegation chain, cMCP for all MCP servers, at least 180 days of log retention, a drift policy | The level spec section 8.1 maps to DORA Art. 9 for regulated industries | +| 3: Post-quantum | + ML-DSA-65 signatures, ML-KEM-768 key exchange, SHAKE-256 hashing | Deployments with long-horizon sensitivity | -The test suite (`pytest --cov=agent_manifest --cov-fail-under=80`) runs all 197 conformance-level tests in CI, producing a verifiable coverage record. This record can be cited as evidence in DORA testing documentation. +CI runs the full test suite with `pytest --cov=agent_manifest --cov-fail-under=80`, including the five conformance modules (AM-BIND, AM-CRYPTO, AM-ATTEST, AM-VERIFY, AM-COMPAT), and produces a verifiable coverage record that can be cited in DORA testing documentation. The specification defines a 197-test conformance suite (section 8.2); the implemented module tests do not yet map one to one onto that list. --- @@ -92,7 +92,7 @@ The DORA Regulatory Technical Standards (RTS, the detailed rules under DORA) req | Article 8 | ICT risk identification | Signed manifest as tamper-evident ICT asset record | | Article 11 | Business continuity | Zero-downtime key rotation; append-only CRL revocation | | Article 17 | Incident classification | Exact configuration + authorisation chain at incident time | -| Article 25 | Resilience testing | Conformance level test suite (197 tests, CI-verified) | +| Article 25 | Resilience testing | Conformance module tests and the full test suite, run in CI with a coverage gate | | RTS key management | Key lifecycle controls | Generation, rotation, revocation, audit trail | --- diff --git a/docs/compliance/gdpr.md b/docs/compliance/gdpr.md index 80619bef..fcd285b5 100644 --- a/docs/compliance/gdpr.md +++ b/docs/compliance/gdpr.md @@ -72,8 +72,8 @@ The manifest's `issued_at` / `expires_at` pair documents the period during which |-------------------|-----------| | Pseudonymisation and encryption | Not directly provided; manifest documents the agent's encryption capabilities via `artifacts` | | Ability to ensure ongoing confidentiality | Attestation report (Level 2+) proves the agent runs in a hardware-isolated enclave | -| Ability to restore availability | Key rotation runbook; revocation with <1s propagation | -| Process for regular testing | 197-test suite, CI-enforced; conformance level test distribution documented in ADR-0008 | +| Ability to restore availability | Key rotation runbook; revocation through a signed revocation list | +| Process for regular testing | Conformance module tests run in CI with a coverage gate; the 197-test suite is defined in spec section 8.2 and its distribution in ADR-0008 | | Integrity of systems | ML-DSA-65 + Ed25519 hybrid signatures; tamper evidence on every field | --- diff --git a/docs/compliance/hipaa.md b/docs/compliance/hipaa.md index f847cd9e..00560b74 100644 --- a/docs/compliance/hipaa.md +++ b/docs/compliance/hipaa.md @@ -92,7 +92,7 @@ The approver's key is separate from the issuer key, ensuring that a compromised **Detection:** A verification failure (any non-`VALID` result) is a security signal. Collect verification failures by agent identity in your SIEM (security event monitoring system) to detect unusual patterns. -**Containment:** Revoke the agent's manifest via the CRL endpoint. Propagation to all verifiers checking the endpoint is immediate (next poll cycle, typically <30s). +**Containment:** Revoke the agent's manifest via the CRL endpoint. Each verifier rejects it once it next reloads the list or queries the endpoint, so set that refresh interval to match your containment target; the SDK does not set one. **Correction:** Re-issue the manifest under a new signing key after rotating the compromised key. The key rotation procedure is documented in the [Revocation and key rotation tutorial](../tutorials/revocation-and-key-rotation.md). @@ -106,7 +106,7 @@ The approver's key is separate from the issuer key, ensuring that a compromised | § 164.312(b) | Audit controls | Merkle audit chain root (tamper-evident, selective disclosure) | | § 164.312(c)(1) | Integrity | Ed25519 + ML-DSA-65 hybrid signature over RFC 8785 canonical JSON | | § 164.308(a)(5) | Human oversight | HITL approval record (signed, scoped, time-bounded) | -| § 164.308(a)(1) | Security management | Revocation (<1s), key rotation, verification failure as security signal | +| § 164.308(a)(1) | Security management | Revocation, key rotation, verification failure as security signal | --- diff --git a/spec/agent-manifest-spec-v0.2.md b/spec/agent-manifest-spec-v0.2.md index ad6e3ae3..29aa9222 100644 --- a/spec/agent-manifest-spec-v0.2.md +++ b/spec/agent-manifest-spec-v0.2.md @@ -1906,7 +1906,7 @@ The EU AI Act (Art. 26 via Art. 12 and recital obligations) requires a minimum o ### 8.2 Conformance Test Suite -A conformant Agent Manifest implementation MUST pass all tests in the reference test suite. The suite is organized into four modules: +A conformant Agent Manifest implementation MUST pass all tests in the reference test suite. The suite is organized into five modules: | Module | Tests | Coverage | |---|---|---|