Value Coherence
Value coherence is the degree to which two agents’ declared values are compatible for a proposed task. Before two agents collaborate, the Value Coherence Handshake verifies that their Alignment Cards do not conflict — that one agent is not committed to values that the other explicitly opposes. This is a pre-coordination check, not a trust guarantee. It answers “can we work together without value conflicts?” — not “should I trust this agent?”Value coherence operates on declared values. It checks whether two agents’ claims are compatible. It does not verify that either agent actually holds or acts on those values. Observed behavior is verified through AP-Traces and integrity checkpoints.
Why Value Coherence Matters
As autonomous agents increasingly interact with each other — delegating tasks, sharing data, coordinating actions — a new class of problems emerges. Two agents may each serve their respective principals faithfully while being fundamentally incompatible in how they operate:- Agent A commits to
minimal_datacollection. Agent B requirescomprehensive_analyticsfor its service. Collaborating means one must compromise. - Agent A declares
transparencyand discloses all reasoning. Agent B treats its decision process as proprietary. Their definitions of good behavior conflict. - Agent A explicitly
conflicts_withvalues that Agent B declares. No amount of negotiation resolves this.
The Coherence Handshake
The Value Coherence Handshake is a four-message protocol exchange:Step 1: Card Request
The initiating agent requests the responder’s Alignment Card, providing context about the proposed task:task_context tells the responder what the collaboration involves and which values are required. This allows the responder to evaluate compatibility before sharing its full card.
Step 2: Card Response
The responder returns its Alignment Card, optionally signed for authenticity:Step 3: Coherence Check
The initiator compares both cards and sends a coherence check specifying the proposed collaboration scope:Step 4: Coherence Result
The responder returns the coherence assessment: When compatible:Coherence Score
The coherence score is computed as:| Score Range | Interpretation |
|---|---|
| 0.85 - 1.0 | Strong coherence. Agents share most or all required values. |
| 0.70 - 0.85 | Adequate coherence. Some values unmatched but no conflicts. |
| 0.50 - 0.70 | Marginal coherence. Consider modified scope or additional conditions. |
| Below 0.50 | Poor coherence. Significant conflicts present. |
0.70 (MIN_COHERENCE_FOR_PROCEED). Below this score, the recommendation is to negotiate, modify scope, or escalate to principals.
Code Example
Conflict Detection
Conflicts are detected in several ways:Explicit Conflicts
The most direct: one agent’sconflicts_with array contains a value the other agent declares.
Value Incompatibility
Two values that are not explicitly conflicted but are operationally incompatible for the proposed task:Autonomy Scope Conflicts
When the proposed collaboration requires one agent to take actions outside its autonomy envelope, or actions that the other agent has listed as forbidden:Resolution Strategies
When conflicts are detected, AAP defines a three-tier resolution order:1. Automatic Resolution
If one value strictly subsumes another — for example,privacy subsumes minimal_data — the more general value can satisfy both parties without negotiation.
2. Negotiated Resolution (Modified Scope)
Agents may propose a modified collaboration scope that avoids the conflict:3. Principal Escalation
When agents cannot resolve autonomously, the conflict is escalated to their respective principals (human operators or higher-authority agents):Use Cases
Multi-Agent Systems
Before delegating a subtask to another agent, verify that the delegate’s values are compatible with the delegator’s. This prevents an agent from unknowingly outsourcing work to an agent with conflicting priorities.
A2A Protocol Integration
When using Google’s A2A protocol for agent discovery, run a coherence check after capability matching. An agent may be capable of the task but value-incompatible.
MCP Tool Providers
When an agent connects to an MCP tool server, the tool server’s alignment card (if published) can be checked for coherence with the agent’s card. This is especially relevant for tools that handle sensitive data.
Agent Marketplaces
Platforms listing agents for hire can pre-compute coherence matrices between agents, enabling users to find agents that are both capable and value-aligned with their existing agent fleet.
Observability
Value coherence checks are observable through the OpenTelemetry exporter:aap.check_coherence span with attributes:
| Attribute | Type |
|---|---|
aap.coherence.compatible | boolean |
aap.coherence.score | float (0.0-1.0) |
aap.coherence.proceed | boolean |
aap.coherence.matched_count | int |
aap.coherence.conflict_count | int |
Protocol Security
Coherence handshake messages must be transmitted over TLS 1.3 or equivalent. Requests include uniquerequest_id and timestamp fields for replay protection. Responses must reference the request_id they are responding to.
Card signatures (Ed25519) are optional but recommended for high-stakes interactions to prevent man-in-the-middle card substitution.
Limitations
Further Reading
- Alignment Cards — The declarations that coherence checks compare
- AP-Traces — Behavioral verification that complements coherence
- Integrity Checkpoints — Real-time monitoring during collaboration
- Drift Detection — Detecting when coherent agents diverge over time
- AAP Specification — Full normative specification including handshake messages