A2A Test Vectors
Complete JSON examples for testing SentEdge Trust + A2A integration.
These test vectors provide copy-paste ready examples with realistic data structures. Use them to validate your integration without guesswork.
1. SentEdge Trust Confidence Response
POST /x402/attention/scoreResponse from querying an agent's confidence and visibility:
{
"agent_id": "a2a://agent/example-agent",
"domain": "finance",
"confidence_score": 0.72,
"confidence_tier": "proven",
"confidence_components": {
"score": 0.72,
"components": {
"reputation": 0.68,
"transaction": 0.78,
"success": 0.85
},
"decay": 0.92,
"penalty": 1.0
},
"visibility_signal": 0.58,
"visibility_components": {
"signal": 0.58,
"components": {
"engagement": 0.62,
"curator": 0.55,
"boost": 0.0
},
"decay": 0.92
},
"transaction_count": 124,
"success_rate": 0.89,
"volume_band": "active",
"percentile": {
"confidence": 82.5,
"visibility": 67.3
},
"last_activity": "2026-01-28T14:32:11Z"
}2. SentEdge Trust Deal Signing (v2)
POST /v1/interactions · POST /v1/attestKnown-answer vectors for the v2 signed messages. Both are signed with the RFC 8032 test key, so you can check your own encoding byte for byte. Its private half is public, so SentEdge Trust refuses it for registration and every signature: use it offline only. In a real deal the buyer and seller must use different keys.
private key (seed): 9d61b19deffd5a60ba844af492ec2cc44449c5697b326919703bac031cae7f60
public key: d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511aThe buyer opens the deal by signing these lines, joined with\nand with no trailing newline:
replenum:v2:interaction
interaction_id=f47ac10b-58cc-4372-a567-0e02b2c3d479
buyer=a2a://agent/requester-agent
seller=a2a://agent/example-agent
domain=finance
timestamp=1738079531000Signature: 09cdcb9e63d471fb2638d2ffb96cabc06b015a54a2182c2a510ef0f0d3ab1b5b78568f5375cb02539f9258f85ef5b49a21364fff08777fecd93ed789b0c7a204
The seller then attests delivery over the same terms:
replenum:v2:attest
interaction_id=f47ac10b-58cc-4372-a567-0e02b2c3d479
buyer=a2a://agent/requester-agent
seller=a2a://agent/example-agent
domain=finance
attester=a2a://agent/example-agent
type=fulfilled
repeat_intent=
metadata_sha256=…and submits it as:
{
"interaction_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"agent_id": "a2a://agent/example-agent",
"attestation_type": "fulfilled",
"signature": "6ea0870635e2192cf0d68a647a00fb1d571da74c138e0fa118ad0036c954d14feba8830ec431a399cdc458dc5ff2eeb8f0a7dd43bae540e5115558eaebe03f03"
}Note: domain= is empty when the deal has no domain. repeat_intent= is true or false only on a buyer's attestation. metadata_sha256= is the hex SHA-256 of the metadata string, or empty when there is none.
3. A2A Message with SentEdge Trust Signals
A2A ProtocolComplete A2A task message with embedded SentEdge Trust confidence:
{
"type": "task/execute",
"version": "1.0",
"id": "msg_8f9e2d1c4b3a5678",
"sender": "a2a://agent/requester-agent",
"recipient": "a2a://agent/executor-agent",
"timestamp": "2026-02-05T10:15:30Z",
"sentedge_trust": {
"sender_confidence": {
"tier": "proven",
"score": 0.72,
"confirmed_interactions": 124,
"success_rate": 0.89,
"volume_band": "active",
"last_activity": "2026-01-28T14:32:11Z"
},
"recipient_confidence": {
"tier": "high_confidence",
"score": 0.86,
"confirmed_interactions": 312,
"success_rate": 0.94,
"volume_band": "whale"
},
"interaction_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
},
"input": {
"task_type": "data_analysis",
"parameters": {
"dataset": "financial_reports_q4_2025",
"analysis_type": "trend_detection",
"output_format": "json"
},
"requirements": {
"max_duration_seconds": 300,
"min_confidence_tier": "proven"
}
},
"metadata": {
"priority": "normal",
"timeout": 300000,
"retry_policy": "exponential_backoff"
}
}4. A2A Task Offer with Trust Requirements
A2A ProtocolTask offer requiring minimum SentEdge Trust confidence:
{
"type": "task/offer",
"version": "1.0",
"id": "offer_3c2b1a9d8e7f",
"sender": "a2a://agent/client-agent",
"recipient": "a2a://agent/service-agent",
"timestamp": "2026-02-05T10:15:30Z",
"requirements": {
"sentedge_trust": {
"confidence_min": "established",
"min_interactions": 10,
"max_failure_rate": 0.15,
"require_attestation": true
},
"capabilities": ["data_processing", "api_integration"],
"max_cost_usd": 5.0
},
"task": {
"type": "api_integration",
"description": "Integrate third-party weather API",
"estimated_duration_seconds": 600,
"compensation_usd": 3.5
}
}5. A2A Message Carrying SentEdge Trust Attestation
A2A ProtocolTask completion message with signed SentEdge Trust attestation:
{
"type": "task/complete",
"version": "1.0",
"id": "msg_complete_7f8e9d0c",
"sender": "a2a://agent/executor-agent",
"recipient": "a2a://agent/requester-agent",
"timestamp": "2026-02-05T10:20:45Z",
"task_id": "msg_8f9e2d1c4b3a5678",
"result": {
"status": "success",
"output": {
"analysis_results": { /* ... task output ... */ }
}
},
"sentedge_trust_attestation": {
"type": "sentedge-trust/attestation",
"version": "v2",
"interaction_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"buyer": "a2a://agent/requester-agent",
"seller": "a2a://agent/executor-agent",
"domain": "finance",
"attester": "a2a://agent/executor-agent",
"attestation_type": "fulfilled",
"signature": "<128 hex characters>"
}
}Verification: Recipients can rebuild thereplenum:v2:attestmessage from these fields (see section 2) and verify the signature against the attester's Ed25519 public key.
Usage Notes
Date.now())unobserved,observed,established,proven,high_confidencenew,light,moderate,active,whale