Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v0.14.0 — Federation Protocol & Security
Summary
Adds RFC-0022 (Federation Protocol) and RFC-0023 (Federation Security), providing cross-server agent coordination with cryptographic identity, signed envelopes, UCAN delegation tokens, and trust policy enforcement. Includes a complete Python SDK implementation, Express.js endpoints, MCP tools, and documentation across the website and reference implementation docs site.
What's New
Protocol Specifications
/.well-known/openintent-federation.json, and federation-aware leasing.did:web, signed envelopes (HTTP Message Signatures, RFC 9421), UCAN delegation tokens with attenuation and expiry, trust policies (open/allowlist/trustless), agent access policies, signed attestations, and cross-server event log reconciliation via RFC-0019 Merkle primitives.Python SDK — 5-Layer Federation Implementation
openintent/federation/models.pyFederationEnvelope,FederationCallback,FederationPolicy,FederationAttestation,DelegationScope,FederationManifest,FederationStatus,DispatchResult,ReceiveResult,FederatedAgent,PeerInfo. Enums:AgentVisibility,PeerRelationship,TrustPolicy,CallbackEventType,DispatchStatus.openintent/client.pyfederation_status(),list_federated_agents(),federation_dispatch(),federation_receive(),send_federation_callback(),federation_discover()— sync and async variants.openintent/server/federation.pyGET /status,GET /agents,POST /dispatch,POST /receive,GET /.well-known/openintent-federation.json,GET /.well-known/did.json. SSRF validation, callback delivery with retry, governance enforcement, idempotency keys.openintent/federation/security.pyServerIdentity(Ed25519, did:web),sign_envelope()/verify_envelope_signature(),MessageSignature(RFC 9421),TrustEnforcer(open/allowlist/trustless),UCANToken(create/encode/decode/attenuate),resolve_did_web(),validate_ssrf().openintent/federation/decorators.py@Federation(class decorator),federation_visibilityon@Agent,federation_policyon@Coordinator, lifecycle hooks:@on_federation_received,@on_federation_callback,@on_budget_warning.Express.js Server
GET /api/v1/federation/status,GET /api/v1/federation/agents,POST /api/v1/federation/dispatch,POST /api/v1/federation/receivestate._federation, RFC-0020 trace propagationorigin_server_urlfield onagent_recordstable for federated agentsMCP Tools
federation_status(read),list_federated_agents(read),federation_dispatch(admin),federation_receive(admin)Federation Event Types
FEDERATION_DISPATCHED,FEDERATION_RECEIVED,FEDERATION_CALLBACK,FEDERATION_BUDGET_WARNING,FEDERATION_COMPLETED,FEDERATION_FAILEDKey Algorithms
DelegationScope.attenuate()— Scope narrowing per hop: intersection of permissions, union of denied operations, minimum delegation depth.FederationPolicy.compose_strictest()— Strictest-wins governance: minimum for numerics, OR for booleans, merge for observability.Documentation
guide/federation.md— Concepts, configuration, code examplesexamples/federation.md— Runnable examples for dispatch, signing, UCAN, trust enforcementapi/federation.md— Complete class and method referencerfcs/0022-federation-protocol.md— Full RFC specificationrfcs/0023-federation-security.md— Full RFC specificationDiscovery & Compatibility
/.well-known/openintent.json—federationcapability added, RFC-0022/0023 inrfcUrls/.well-known/openintent-compat.json— RFC-0022 (full), RFC-0023 (partial)/.well-known/openintent-federation.json— New federation discovery endpoint/.well-known/did.json— DID document for server identityTests
Breaking Changes
None. Federation is additive — existing APIs and behavior are unchanged. Federation operates in trusted mode by default; RFC-0023 security is opt-in.
Files Changed
New files (click to expand)
Modified files (click to expand)