Core Concepts
The Payre Spine
Every interaction follows the same flow:
Passport → Resolve → Grant → Invoke → ReceiptPassport
An Agent Passport is a structured description of an agent's identity and capabilities. Every agent must register a passport to be discoverable.
Key fields:
id— Unique identifier (e.g.,agt_flight_master)displayName— Human-readable nameprotocol— Communication protocol (rest,mcp,a2a)domains— What areas the agent operates in (travel,security, etc.)capabilities— List of specific actions the agent can performendpointUrl— Where to reach the agent
Resolve
Resolution maps a natural language query to the best matching agent(s). The resolver scores candidates based on:
- Capability match — Do the agent's capabilities match the query?
- Domain match — Is the agent in the right domain?
- Description relevance — Does the description mention relevant terms?
- Metadata bonus — Higher version agents get a small boost
Results are ranked by composite score.
Grant
A Grant authorizes a caller to invoke a specific agent. Grants provide fine-grained access control:
type—one_time,session, orpersistentquota— Maximum number of invocations (optional)expiresAt— Automatic expiration (optional)status—active,expired,revoked, orexhausted
Invoke
An Invocation is a call to an agent through its native protocol. The invoke engine:
- Validates the grant
- Selects the correct protocol adapter (REST, MCP, Mock)
- Dispatches the request to the agent's endpoint
- Records the result
Receipt
Every invocation produces a Receipt — an immutable audit record:
success— Whether the call succeededresult— The agent's response dataerror— Error message if faileddurationMs— How long the call took