A small integration surface over a deep security substrate.

Developers should address a customer Embassy, select a target capability, send a governed operation, and receive a correlated result. Identity, transport, policy, evidence, and customer-local execution belong to Legation.

01 / Developer experience

Integrate once. Reach approved customer-side capabilities consistently.

Register the application identity

Bind the vendor application or service to a non-human identity and authorized customer scope.

Discover customer capabilities

Read the authorized Embassy registry for available agents, MCP servers, tools, or native services.

Invoke or delegate

Send a direct operation or objective with deadline, correlation, and audit context.

Track and cancel

Observe long-running work, stream progress, enforce timeouts, or cancel the task.

Receive the governed result

Consume the approved response and retain the evidence reference for audit correlation.

02 / Addressing

Make customer-side resources explicit and unambiguous.

Recommended resource form
legation://acme-production/mcp/records-service/tools/evidence.search
legation://acme-production/a2a/review-agent/skills/control-review
legation://acme-production/service/billing-engine/operations/calculate

Recommended product contract, not a claim that this exact URI syntax is already shipping.

03 / Discovery

The Embassy should advertise only what the caller is allowed to see.

Illustrative capability registry
{
  "embassy": "acme-production",
  "capabilities": {
    "mcp": { "records-service": ["evidence.search", "system.health"] },
    "a2a": { "review-agent": ["control-review"] }
  }
}
04 / Request patterns

Support real applications—not just one-shot demos.

PatternRequired behavior
SynchronousKnown, bounded operation with immediate result
AsynchronousTask handle, status, result retrieval, and evidence reference
StreamingProgress, partial output, and controlled cancellation
Store-and-forwardQueue work across temporary Embassy disconnection
Fan-outAddress multiple customer Embassies without mixing tenant state
05 / Operations

The SDK must expose failure as a first-class state.

  • Embassy unreachable versus workload unavailable
  • Identity rejected versus policy denied
  • Deadline exceeded versus task cancelled
  • Projection blocked versus execution failed
  • Regional failover versus customer-local degradation
  • Evidence committed versus audit delivery delayed
06 / Engineering substrate

Built as a hardened Rust security platform.

Legation is implemented in memory-safe Rust with unsafe code prohibited across the platform, a provider-isolated cryptography layer, and a modular separation between delivery, governance, transport, identity, custody, evidence, and runtime services.

Secure by constructionThe same substrate is used to build the purpose-built MCP servers and agents that run inside the customer boundary—hardened to operate under the platform's own identity, policy, projection, and evidence controls rather than retrofitted onto it.