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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4ee606497abf6dfb3cbfb8cd2f99388e95747fe813d3652fe1eadfa04e09f4d
|
|
| MD5 |
6d7ad9fa57ea90b9971002696aace0b6
|
|
| BLAKE2b-256 |
ceb0234728f84de2398f14cb6d49684b4ea9bc41e5f678129a6eae5e69758e85
|
Provenance
The following attestation bundles were made for sm_federation-0.1.0.tar.gz:
Publisher:
release.yml on Sharathvc23/sm-federation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sm_federation-0.1.0.tar.gz -
Subject digest:
f4ee606497abf6dfb3cbfb8cd2f99388e95747fe813d3652fe1eadfa04e09f4d - Sigstore transparency entry: 2206921556
- Sigstore integration time:
-
Permalink:
Sharathvc23/sm-federation@d12ce45004384d718658f37aab021bb6a68abfc9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Sharathvc23
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d12ce45004384d718658f37aab021bb6a68abfc9 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb2af6825541efa52686c2149096b682cd96ef6570698f29b07d76371ef4abea
|
|
| MD5 |
38abf4effea4dd67c75965e7f5dbce11
|
|
| BLAKE2b-256 |
61c31792c38a9e72ef72f32621f744ec4450d6bd7388fe3b257ecf4883063d8a
|
Provenance
The following attestation bundles were made for sm_federation-0.1.0-py3-none-any.whl:
Publisher:
release.yml on Sharathvc23/sm-federation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sm_federation-0.1.0-py3-none-any.whl -
Subject digest:
eb2af6825541efa52686c2149096b682cd96ef6570698f29b07d76371ef4abea - Sigstore transparency entry: 2206921569
- Sigstore integration time:
-
Permalink:
Sharathvc23/sm-federation@d12ce45004384d718658f37aab021bb6a68abfc9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Sharathvc23
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d12ce45004384d718658f37aab021bb6a68abfc9 -
Trigger Event:
push
-
Statement type: