Skip to main content

An open protocol for agent-community federation — peer discovery + intelligence exchange between communities of AI agents.

Project description

sm-federation

An open protocol for agent-community federation — how independent communities of AI agents discover one another and exchange aggregate intelligence. The community-mesh layer of the internet of agents.

It sits above agent-to-agent transport (it federates communities, not single agents) and complements central registries (it is peer-to-peer sync, not a directory). MIT-licensed, runtime-agnostic, dependency-free.

Why

The agent-internet stack has open primitives for discovery, identity, transport (A2A), tools (MCP), accountability, and reputation — but nothing for community ↔ community federation. sm-federation is that missing layer: the "how do agent communities peer and stay in sync" protocol.

Install

pip install sm-federation

Use it as a library

from sm_federation import build_intelligence_envelope, find_skill_matches, build_node_descriptor

# Publish your node's discovery document at /.well-known/agent-community.json
descriptor = build_node_descriptor(node_id="alpha", did="did:web:alpha.example")

# Share a snapshot of your community's aggregate intelligence with peers
envelope = build_intelligence_envelope(
    community_id="alpha", community_name="Alpha",
    generated_at="2026-06-14T00:00:00Z",
    skill_graph={"python": 7, "rust": 3}, skill_gaps=["solidity"], member_count=12,
)

# Given peers' envelopes, find who best supplies each skill you lack
matches = find_skill_matches(our_gaps=["solidity"], peer_envelopes=[peer_a, peer_b])

What's here

Path Purpose
src/sm_federation/ the library (descriptor, envelope)
spec/federation/0.1/federation.md the normative profile (working draft)
schema/federation/0.1/*.json JSON Schemas — the published wire contract
vectors/federation/v01/*.json conformance vectors
conformance/ validates vectors against the schemas

Status

v0.1 — working draft. Two primitives ship: the node descriptor and the intelligence-exchange envelope. Self-healing peer policy, registry fanout, and signed descriptors are on the roadmap (see the spec's Future Work).

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sm_federation-0.1.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sm_federation-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file sm_federation-0.1.0.tar.gz.

File metadata

  • Download URL: sm_federation-0.1.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for sm_federation-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f4ee606497abf6dfb3cbfb8cd2f99388e95747fe813d3652fe1eadfa04e09f4d
MD5 6d7ad9fa57ea90b9971002696aace0b6
BLAKE2b-256 ceb0234728f84de2398f14cb6d49684b4ea9bc41e5f678129a6eae5e69758e85

See more details on using hashes here.

Provenance

The following attestation bundles were made for sm_federation-0.1.0.tar.gz:

Publisher: release.yml on Sharathvc23/sm-federation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sm_federation-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sm_federation-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for sm_federation-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb2af6825541efa52686c2149096b682cd96ef6570698f29b07d76371ef4abea
MD5 38abf4effea4dd67c75965e7f5dbce11
BLAKE2b-256 61c31792c38a9e72ef72f32621f744ec4450d6bd7388fe3b257ecf4883063d8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for sm_federation-0.1.0-py3-none-any.whl:

Publisher: release.yml on Sharathvc23/sm-federation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page