Skip to main content
Version: 0.1.0 Status: Draft Date: 2026-02-01 Authors: Mnemon Research

Abstract

The Agent Alignment Protocol (AAP) defines a standard for autonomous agents to declare their alignment posture, produce auditable decision traces, and verify value coherence before inter-agent coordination. AAP extends existing agent coordination protocols (A2A, MCP) with an alignment layer that makes agent behavior observable to principals, auditors, and other agents. AAP is a transparency protocol, not a trust protocol. It makes agent behavior more observable, not more guaranteed.

Table of contents

  1. Introduction
  2. Terminology
  3. Protocol Overview
  4. Alignment Card
  5. AP-Trace
  6. Value Coherence Handshake
  7. Verification
  8. Drift Detection
  9. Security Considerations
  10. Limitations
  11. IANA Considerations
  12. References
  13. Appendix A: JSON Schemas
  14. Appendix B: Verification Algorithm

1. introduction

1.1 problem statement

The current agent protocol stack provides mechanisms for capability discovery (A2A Agent Cards), tool integration (MCP), and payment authorization (AP2). None of these protocols address a fundamental question: Is this agent serving its principal’s interests? As agent capabilities become symmetric—equal access to information, equal reasoning power, equal tool access—alignment becomes the primary differentiator. When you cannot reliably distinguish between human and agent communication, trust in alignment becomes essential infrastructure.

1.2 design goals

AAP is designed with the following goals:
  1. Transparency over guarantee: Make agent decisions observable, not provably correct
  2. Composability: Extend existing protocols (A2A, MCP) rather than replace them
  3. Minimal overhead: Add alignment without significant performance cost
  4. Falsifiability: Enable third-party verification and audit
  5. Honest limits: Be explicit about what the protocol cannot provide

1.3 non-goals

AAP explicitly does NOT attempt to:
  • Guarantee that agents will behave as declared
  • Provide protection against sophisticated deception
  • Replace human judgment in consequential decisions
  • Certify that an agent is “safe” or “trustworthy”
  • Solve the alignment problem in general

1.4 document conventions

The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “NOT RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

2. terminology

Agent: An autonomous software entity capable of taking actions on behalf of a principal. Principal: The human or organization whose interests the agent is meant to serve. Alignment Card: A structured declaration of an agent’s alignment posture, including values, autonomy envelope, and audit commitments. AP-Trace: An audit log entry recording an agent’s decision process, including alternatives considered and selection reasoning. Value Coherence: The degree to which two agents’ declared values are compatible for coordination. Autonomy Envelope: The set of actions an agent may take without escalation, and the conditions that trigger escalation. Escalation: The process of deferring a decision to a principal or higher-authority agent. Drift: Behavioral deviation from declared alignment posture over time. Verification: The process of checking whether observed behavior (AP-Trace) is consistent with declared alignment (Alignment Card). Strand: In multi-turn conversations, a participant’s sequence of messages. SSM (Self-Similarity Matrix): A computational structure measuring semantic similarity between messages across a conversation. Divergence: When conversation strands drift apart semantically, indicating potential misalignment.

3. protocol overview

3.1 components

AAP consists of three interconnected components:
  1. Alignment Card: Static declaration of alignment posture
  2. AP-Trace: Dynamic audit log of decisions
  3. Value Coherence Handshake: Pre-coordination compatibility check

3.2 protocol flow

A typical AAP interaction proceeds as follows:

3.3 integration with existing protocols

AAP is designed to complement, not replace, existing protocols:
  • A2A Integration: Alignment Card extends the A2A Agent Card with an alignment block
  • MCP Integration: AP-Trace entries MAY be generated for tool invocations
  • HTTP Integration: Alignment Cards SHOULD be served at /.well-known/alignment-card.json

4. Alignment Card

4.1 overview

An Alignment Card is a structured document declaring an agent’s alignment posture. It MUST be machine-readable (JSON) and SHOULD be human-readable.

4.2 structure

An Alignment Card MUST contain the following top-level fields:

4.3 principal block

The principal block declares the agent’s relationship to its principal.
Relationship Types:
  • delegated_authority: Agent acts within bounds set by principal
  • advisory: Agent provides recommendations; principal makes decisions
  • autonomous: Agent operates independently within declared values

4.4 values block

The values block declares the agent’s operational values.
Standard Value Identifiers: Implementations SHOULD use these standard identifiers where applicable: Custom values MUST be defined in the definitions block.
Note — what belongs in declared: values.declared is consulted by the AIP integrity monitor per turn during integrity checkpoint analysis. Only include values the agent will actually apply in its reasoning. Declaring a value the agent never applies produces UNDECLARED_VALUE-class verification warnings and degrades trust scoring. Role-specific operational principles that describe the agent’s job function rather than its ethical commitments belong in extensions, not values.declared. For example, fiduciary_precision or organizational_clarity describe what an agent IS in its role — they should be set in extensions.clpi.role. Values like transparency, honesty, accuracy, and accountability describe how an agent reasons — those belong in declared.

4.5 autonomy envelope block

The autonomy_envelope block defines what the agent may do independently.
Each escalation trigger MUST specify:

4.6 condition expression language

Escalation conditions use a minimal expression language:
Examples:
  • purchase_value > 100
  • action_type == "delete"
  • shares_personal_data (boolean field check)
Minimal Required Set (MUST support):
  • Comparison operators: >, <, >=, <=, ==, !=
  • String literal comparison: field == "value"
  • Numeric comparison: field > 100
  • Boolean field check: field_name (evaluates to true if field is truthy)
Optional Extensions (MAY support):
  • Logical expressions: condition and condition, condition or condition
  • contains(field, value) — substring or element containment
  • matches(field, pattern) — regex matching
Implementations MAY support additional operators beyond the minimal set.

4.7 audit commitment block

The audit_commitment block declares how the agent logs decisions.

4.8 extensions block

The extensions block allows protocol-specific additions.
Extensions MUST be namespaced by protocol identifier. Implementations MUST ignore unrecognized extensions.

4.9 complete example


5. AP-Trace

5.1 overview

An AP-Trace (Alignment Protocol Trace) is an audit log entry recording an agent’s decision process. AP-Traces enable verification that observed behavior is consistent with declared alignment.

5.2 design principles

  1. Sampling, not completeness: AP-Traces capture significant decisions, not every computation
  2. Structured reasoning: Decision rationale is machine-parseable
  3. Verifiable references: Traces reference the Alignment Card in effect
  4. Append-only: Traces MUST NOT be modified after creation

5.3 structure

An AP-Trace entry MUST contain:

5.4 action block

The action block describes what action was taken or considered.

5.5 decision block

The decision block records the decision process.
Each alternative MUST specify:

5.6 escalation block

The escalation block records escalation evaluation.
When escalation IS required:

5.7 context block

The context block provides additional information.

5.8 complete example


6. Value Coherence handshake

6.1 overview

The Value Coherence Handshake is a pre-coordination protocol exchange that verifies whether two agents’ declared values are compatible for a proposed task.

6.2 protocol flow

6.3 messages

6.3.1 alignment_card_request

Sent by initiator to request responder’s Alignment Card.

6.3.2 alignment_card_response

Sent by responder with their Alignment Card.
The signature field is OPTIONAL but RECOMMENDED for high-stakes interactions.

6.3.3 value_coherence_check

Sent by initiator to perform coherence check.

6.3.4 coherence_result

Sent by responder with coherence assessment.
When conflicts exist:

6.4 coherence scoring

Value coherence score is computed as:
Implementations MAY use more sophisticated scoring algorithms but MUST produce a score in the range [0.0, 1.0].

6.5 conflict resolution

When conflicts are detected, implementations SHOULD follow this resolution order:
  1. Automatic resolution: If one value strictly subsumes another
  2. Negotiated resolution: If agents can agree on modified scope
  3. Principal escalation: If agents cannot resolve autonomously

7. verification

7.1 overview

Verification is the process of checking whether observed behavior (AP-Trace entries) is consistent with declared alignment (Alignment Card).

7.2 verification scope

Verification operates at three levels:
  1. Trace verification: Single AP-Trace against Alignment Card
  2. Session verification: Collection of traces from one session
  3. Longitudinal verification: Traces across multiple sessions (drift detection)

7.3 verification algorithm

The verification algorithm MUST check:
  1. Autonomy compliance: Action category matches autonomy envelope
  2. Escalation compliance: Required escalations were performed
  3. Value consistency: Applied values match declared values
  4. Forbidden action compliance: No forbidden actions taken
  5. Behavioral similarity: Trace behavior is semantically similar to declared alignment

7.4 verification result

A verification result MUST contain: The similarity_score measures semantic similarity between the trace behavior and declared alignment using SSM (Self-Similarity Matrix) analysis. A score of 1.0 indicates perfect alignment; lower scores indicate divergence. Threshold: BEHAVIORAL_SIMILARITY_THRESHOLD = 0.50. If a trace passes all structural checks but has similarity_score < 0.50, a low_behavioral_similarity warning is generated.

7.5 violation types


8. drift detection

8.1 overview

Drift detection identifies when an agent’s behavior deviates from its declared alignment posture over time. Unlike single-trace verification, drift detection requires longitudinal analysis.

8.2 detection methodology

Drift detection uses trace-to-baseline-centroid similarity to measure behavioral consistency (v1.2.0):
  1. Feature extraction: Extract structural features from each trace (action types, values applied, escalation patterns, confidence)
  2. Chronological ordering: Sort all traces by timestamp before processing
  3. Baseline computation: Compute a baseline centroid from the first N traces, where N = max(sustained_threshold, min(10, len(traces) // 4))
  4. Similarity computation: Compute cosine similarity between each subsequent trace’s feature vector and the baseline centroid
  5. Divergence tracking: Track similarity over time, alert on sustained divergence
The Alignment Card is still referenced for card_id in drift alerts and for inferring drift direction (Section 8.5), but is no longer used as the comparison target for similarity scoring. Important (v1.1.0, updated v1.2.0): Drift detection uses only structural features — not content features from reasoning text. Alignment Cards declare structural constraints (values, bounded actions, principal relationship) but contain no reasoning text. Including content tokens from trace reasoning dilutes cosine similarity without adding alignment signal. See calibration Section 3.5 for rationale. Content features (TF-IDF from reasoning text) remain available for text-to-text comparison (e.g., SSM pairwise similarity between traces).

8.3 calibration constants

The following thresholds are calibrated from empirical analysis: Feature Extraction for Drift Detection (structural only): 60/30/10 TF-IDF Weighting (for text-to-text similarity, NOT drift detection): These values were derived from analysis of approximately 50 multi-turn agent conversations totaling ~2,500 messages. See calibration for methodology and threshold derivation. Implementations MAY adjust thresholds based on their own calibration data but SHOULD document the methodology used.

8.4 drift alert

When sustained divergence is detected:

8.5 drift categories


9. security considerations

9.1 threat model

AAP operates under the following threat model: In scope:
  • Agents misrepresenting their alignment
  • Agents failing to log decisions accurately
  • Agents gaming coherence checks
  • Man-in-the-middle attacks on handshakes
Out of scope:
  • Compromised agent runtime
  • Adversarial principals
  • Collusion between agents and verifiers

9.2 Alignment Card security

  1. Card authenticity: Cards SHOULD be signed using Ed25519 or equivalent
  2. Card freshness: Cards MUST include issued_at and SHOULD include expires_at
  3. Card revocation: Implementations SHOULD support card revocation via /.well-known/alignment-card-revocations.json

9.3 AP-Trace security

  1. Trace integrity: Traces MUST be append-only
  2. Trace authenticity: Traces SHOULD be signed by the generating agent
  3. Trace completeness: Agents MUST NOT selectively omit traces

9.4 handshake security

  1. Transport security: All handshake messages MUST be transmitted over TLS 1.3 or equivalent
  2. Replay protection: Requests MUST include unique request_id and timestamp
  3. Response binding: Responses MUST reference the request_id

9.5 known limitations

AAP cannot protect against:
  1. Sophisticated deception: An agent can produce compliant traces while acting misaligned
  2. Trace omission: An agent can fail to log certain decisions
  3. Value gaming: An agent can declare values it does not hold
  4. Runtime compromise: If the agent runtime is compromised, all bets are off
These limitations are inherent to any transparency-based protocol. See Section 10 for full limitations disclosure.

10. limitations

10.1 what AAP does not guarantee

This section is non-negotiable. Implementations MUST make these limitations clear to users. 1. AAP does NOT ensure alignment—it provides visibility. AAP makes agent decisions observable. It does not make them correct, safe, or aligned. An agent can produce perfect AP-Traces while acting against its principal’s interests. 2. Verified does NOT equal safe. A verified trace means the trace is consistent with the declared alignment. It does not mean the declared alignment is good, the agent followed it in practice, or the outcome was beneficial. 3. AP-Trace is sampled, not complete. Traces capture decision points, not every computation. Significant reasoning may occur between traced decisions. The absence of a trace does not mean nothing happened. 4. Value coherence is relative to declared values. The handshake checks whether declared values are compatible. It does not verify that agents hold these values, will act on them, or that the values themselves are good. 5. Tested on transformer-based agents; unknown unknowns exist for other substrates. AAP was developed and tested with transformer-based language model agents. Agents built on different architectures (symbolic AI, neuromorphic computing, hybrid systems) may exhibit behaviors that AAP does not capture.

10.2 appropriate use

AAP is appropriate for:
  • Increasing observability of agent decisions
  • Enabling audit and compliance workflows
  • Facilitating agent coordination with transparency
  • Detecting obvious misalignment or drift
AAP is NOT appropriate for:
  • Certifying agents as “safe” or “trustworthy”
  • Replacing human oversight for consequential decisions
  • Providing security guarantees against adversarial agents
  • Solving the general alignment problem

10.3 recommendations

  1. Defense in depth: Use AAP as one layer of a multi-layer oversight system
  2. Human-in-the-loop: Maintain human oversight for consequential decisions
  3. Verification diversity: Use multiple verification approaches, not just AAP
  4. Continuous monitoring: Monitor for drift, don’t rely on point-in-time verification

11. IANA considerations

11.1 media type registration

This specification registers the following media types: application/aap-alignment-card+json
  • Type name: application
  • Subtype name: aap-alignment-card+json
  • Required parameters: none
  • Optional parameters: version
  • Encoding considerations: UTF-8
application/aap-trace+json
  • Type name: application
  • Subtype name: aap-trace+json
  • Required parameters: none
  • Optional parameters: version
  • Encoding considerations: UTF-8

11.2 well-Known URI registration

This specification registers the following well-known URIs:
  • /.well-known/alignment-card.json: Agent’s current Alignment Card
  • /.well-known/alignment-card-revocations.json: Revoked card identifiers

12. references

12.1 normative references

  • [RFC2119] Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels”, BCP 14, RFC 2119, March 1997.
  • [RFC8174] Leiba, B., “Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words”, BCP 14, RFC 8174, May 2017.
  • [RFC8259] Bray, T., “The JavaScript Object Notation (JSON) Data Interchange Format”, RFC 8259, December 2017.
  • [RFC3339] Klyne, G. and C. Newman, “Date and Time on the Internet: Timestamps”, RFC 3339, July 2002.

12.2 informative references

12.3 standards and regulatory references


Appendix a: JSON schemas

A.1 Alignment Card schema

See schemas/alignment-card.schema.json for the complete JSON Schema.

A.2 AP-Trace schema

See schemas/ap-trace.schema.json for the complete JSON Schema.

A.3 Value Coherence messages schema

See schemas/value-coherence.schema.json for the complete JSON Schema.

Appendix b: Verification algorithm

B.1 reference implementation

B.2 drift detection algorithm


Appendix c: Changelog

Version 0.1.1 (2026-02-01)

  • Added behavioral similarity scoring to verification (Section 7.3, 7.4)
  • Added similarity_score field to VerificationResult
  • Added BEHAVIORAL_SIMILARITY_THRESHOLD constant (0.50)
  • Added low_behavioral_similarity warning type
  • Documented 60/30/10 TF-IDF feature weighting (Section 8.3)
  • Updated reference implementation in Appendix B.1
  • Reference to calibration for threshold derivation methodology

Version 0.1.0 (2026-01-31)

  • Initial draft specification
  • Alignment Card schema defined
  • AP-Trace format defined
  • Value Coherence Handshake protocol defined
  • Verification algorithm specified
  • Drift detection methodology outlined

Agent Alignment Protocol Specification v0.1.1 Authors: Mnemon Research This document is released under CC BY 4.0