Select Page

Verifiable Words for AI Agents: Putting Sema on Swarm

When two AI agents talk to each other, how do they know they mean the same thing? Over the summer we ran a proof of concept with the team behind Sema, a protocol that gives agents a shared, verifiable vocabulary, to find out whether Swarm can serve as one of the storage and distribution layers for that vocabulary. It can. This post explains what Sema is, what we tested, and where the collaboration might go next.

What Sema is, in plain terms

Agents coordinating across systems run into a quiet but serious problem: language is ambiguous. When one agent asks another to “lock the state safely”, there is no way to check that both sides picture the same procedure. Either they re-explain everything at length every time, which is slow and drifts, or they trust the label and hope, which fails silently.

Sema, created by Henrik Westerberg at Emergent Wisdom, solves this by making the word itself a proof. In its current implementation, every concept is written down as a Pattern Card: a small structured definition describing what the pattern does, what must stay true while it runs, what it depends on, and so on. The identity of the pattern is the cryptographic hash of those semantic fields. If two agents hold the same identifier, they hold, mathematically, the same definition. If anything in those fields changes, the identifier changes with it. There is no way to “mean something slightly different” under the same name.

On top of this, Sema provides a fail-closed handshake: before agents coordinate, each independently computes a single summary hash, called a root, over the patterns they intend to use, and they compare roots. Match, and they can proceed using short references. Mismatch, and they stop. The bootstrap library holds over 450 such patterns, spanning reasoning, coordination, data structures and protocols.

A useful consequence of this design is that Sema is storage-neutral. Because the meaning is verified by recomputing the hash, a vocabulary can be served by any store, honest or not, and the consumer always decides. That is exactly what made Swarm an interesting candidate: a censorship-resistant network that finds content by its hash is a natural home for content whose identity is already a content hash.

What we set out to prove

The question was never whether Swarm can hold files; it was whether Swarm can carry a Sema vocabulary release without weakening any of Sema’s guarantees, and whether Swarm’s own building blocks (feeds, file catalogues, access control) add real value rather than complexity.

We wrote a distribution specification together with the Sema maintainers, and defined a proof of concept with four workstreams and clear stop-or-go criteria. It ran against real Sema releases, the public Swarm gateway, and a real Swarm node.

What the POC showed

Sema identities survive the trip intact. We built an independent re-implementation of Sema’s hashing rules and recomputed the identity of every one of the 457 patterns in a full vocabulary release, plus both of its release roots. Every value matched the published ones, with 100% parity against Sema’s own reference implementation, including tricky edge cases in how numbers and Unicode are normalised. A shared set of test cases that both implementations agree on came out of this as a by-product.

Anyone can fetch a release from Swarm and check it for themselves. As a test, we published a complete Sema vocabulary release — all 457 patterns — through a public Swarm gateway, then retrieved it the way an ordinary user would: from a web address, with no node to run, no wallet and no keys. Nothing about the transfer had to be trusted, because everything that arrived was re-checked locally against Sema’s own rules: every pattern identity and both release roots, recomputed from scratch. We also tried to break it — a pattern edited with its checksum patched up to match, a pattern quietly left out of the release, a single flipped byte, a forged root — and every attempt was caught and rejected. The loop has since closed with no special tooling at all: a standard, unmodified Sema client installed a complete release from a web address, recomputing every identity and both roots from scratch before we switched over to it.

A small change should cost a small update. Because a Sema pattern’s identity includes the identities of the patterns it builds on, one edit can ripple far: between two consecutive vocabulary releases, one of them a broad quality pass over the vocabulary, 94% of the patterns received a new identity, including well over a hundred that nobody had touched directly. If publishing and syncing had to re-send the whole library each time, that ripple would be expensive. The specification is built so that cost follows what was actually changed, and on that real release pair the POC measured exactly that: patterns whose identity changed only through the ripple cost nothing extra to re-send.

Swarm makes those updates cheap. The most open question going in was whether the way Swarm organises files into a catalogue would live up to that promise in practice. Measured against a real Swarm node, updating a single pattern in the catalogue cost the publisher about 6 KB of uploads and a consumer about 12 KB of reads — between 19 and 234 times less than the three republishing routes we measured. A consumer on an older release could also work out exactly what changed between two releases by comparing the two release catalogues, without downloading a single pattern. Even on the 94%-churn pair, part of the previous release could be reused as-is.

Verdict: every trust guarantee Sema makes locally held up end-to-end over Swarm, on real data and a real public gateway, and Swarm’s efficiency layer earned its place, with the conditions it needs to stay predictable now written into the specification.

Where this could go

None of this is committed; these are phases sketched in the specification, to be sequenced with the Sema team.

The nearest step needs no Sema-side code: publish each release to Swarm alongside its Git-hosted one, installable by any current client from an open public gateway URL. Dual-publishing could then become part of the normal release process, with a release-signing scheme (proposed, still under review), a feed pointing always at the latest release, and delta sync for consumers several releases behind. Further out are the things a conventional host cannot do at all: an open channel where any agent can announce a new pattern for curation, forks that stay easy to compare, and private registries for vocabularies shared within a closed group — the same ground as our broader work on Data-Enriched AI Marketplaces, where verified vocabularies, agent identities and machine-to-machine payments meet on the same network.

Throughout, Sema stays storage-neutral by design and Swarm would be one distribution layer among several. Optional does not mean interchangeable, though. A conventional host asks to be trusted; Swarm does not, because content is addressed by its hash and re-checked on arrival — the same assumption Sema already makes about meaning, extended to the storage layer. Add updates that cost what the change costs, and Swarm looks less like an alternative file host than a match for the way Sema already works.

Learn more

  • Sema: semahash.org, and the paper “Sema: When the Hash Is the Word” (10.5281/zenodo.19462702).
  • Interested in distributing verifiable content over Swarm? Get in touch with us.
Unlocking the AI-Driven Health Data Economy: Your Health, Your Data, Your Equity

Unlocking the AI-Driven Health Data Economy: Your Health, Your Data, Your Equity

Imagine turning your daily health metrics—from fitness wearables to electronic medical records—into a secure, recurring income stream without ever giving up ownership or privacy. This is the core vision of the AI-Driven Health Data Economy, a new paradigm that connects individual wellness trackers data and data gathered in public and private health systems with recent advances in AI and Web3. Instead of allowing centralized tech giants and data brokers to profit from your sensitive information, this emerging ecosystem aims to return the financial upside directly to individuals, enabling them to maintain total sovereignty over their health history while participating in an open network that accelerates global clinical research.

For individual data contributors and health DAOs, the concept relies on automated AI agents and smart contracts to create frictionless Data-Enriched AI Marketplaces. When you securely share access to your records through a personal Swarm Health Data Wallet, the DAO curates and logs your contribution directly into a transparent shared pool contract. Rather than issuing a static receipt, a published formula evaluates your data’s value—based on factors such as rarity or completeness—and assigns a validated weight. Crucially, the buyer’s payment flows directly into this contract rather than the DAO’s wallet, helping ensure transparent and proportional compensation.

Autonomous AI agents on behalf of the DAO then aggregate these anonymized data pools and license them to biotech firms and medical researchers. The moment a transaction clears, the smart contract automatically distributes the revenue back to individual data contributors, entirely bypassing the corporate middlemen who usually capture the profits.

In this proposed model, a public, unalterable formula evaluates each contribution based on its real merit so that everyone is paid exactly what their data is worth. 

The Future of AI is Decentralized, and It’s Being Built on Swarm

The Future of AI is Decentralized, and It’s Being Built on Swarm

We stand at a crossroads. Artificial Intelligence is evolving at a breathtaking pace, but its immense power is becoming concentrated in the hands of a few giant corporations. This path leads to a future of data silos, central points of failure, and a world where we don’t truly own the tools that shape our lives.

But what if we chose a different path? Imagine a future where AI is not a product owned by a few, but an ecosystem nurtured by many. A world where networks of independent, collaborative AI agents work together to solve humanity’s challenges—owned and operated by their creators and communities. This isn’t just a distant dream. This is the Solar Punk vision for AI, and its foundations are being laid today through a groundbreaking project: the Swarm Model Context Protocol (MCP).

What is the MCP? The Universal Adapter for AI

To build a decentralized AI ecosystem, we first need a common language. Think of the Model Context Protocol (MCP) as a universal adapter—like a “USB-C port for AI.” It’s an open standard that lets any AI agent connect to any external tool or data source without needing custom-built, one-off integrations.

This simple but powerful concept unlocks a world of possibilities. It allows developers to create a vibrant, interoperable ecosystem where agents can discover and use any tool, fostering innovation and collaboration on a massive scale.

Why Swarm? Building on a Resilient Foundation

If MCP is the common language, Swarm is the ideal platform to build it on. Its decentralized storage and communication infrastructure is tailor-made for AI, offering:

  • True Decentralization: As a peer-to-peer network, Swarm has no central point of control. Data is distributed globally, making it resilient to censorship and single points of failure. AI agents built on Swarm operate freely and autonomously.
  • Persistent Memory: AI agents need somewhere to store their “memories”—their knowledge, logs, and experiences. Swarm provides a permanent, immutable, and reliable home for this critical data.

Data Sovereignty: In the age of AI, data ownership is paramount. Swarm gives users and agents full control over their own data. This is supercharged by tools like the Access Control Trie (ACT), which enables fine-grained, cryptographically secure control over who can access data, paving the way for everything from private collaboration to monetized AI models with provable provenance.

From Theory to Reality: The Proof of Concept is a Success

This vision isn’t theoretical anymore. A recently completed Proof of Concept (POC) demonstrates that the Swarm MCP can act as a seamless bridge between AI agents and the Swarm network.

The POC proved that an AI agent can easily:

  • Upload and retrieve text, files, and even entire folders on Swarm.
  • Use Swarm Feeds as a persistent memory log.
  • Share data with other agents by simply passing a Swarm reference.

The bridge is built. The concept works.

The Road Ahead: Nurturing a Digital Ecosystem

This successful POC is just the first step. In a joint effort, the Swarm Foundation and Solar Punk are now charting a course for what comes next. Guided by shared principles, the roadmap isn’t just about code; it’s about nurturing a complete, self-sustaining digital ecosystem on Swarm. The key directions include:

  1. Strengthening the Foundation: Evolving the Swarm MCP into a robust, production-ready solution that is easy for any developer to integrate into popular AI frameworks.
  2. Fostering Collaboration: Creating the pathways for a true community of agents. This means building a decentralized registry on Swarm so agents can discover each other, and enabling them to communicate directly and securely without intermediaries.

Building a Thriving Economy: Designing the framework for a vibrant marketplace where agents can be compensated for their work. This includes systems for posting tasks, bidding on jobs, and building on-chain reputation to foster a web of trust.

Join Us in Building the Future

The Swarm MCP is more than a technical project; it’s a cornerstone for a more open, resilient, and collaborative digital world. It’s a bet on a future where the power of AI is accessible to all, not just a select few.

We invite you to be a part of it:

Let’s build a brighter, decentralized future together—one unstoppable AI agent at a time.