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. 

Swarm Mobile: Web3 Power in Your Pocket

Swarm Mobile: Web3 Power in Your Pocket

Introduction: Digital Sovereignty Coming to Android

In a world where mobile devices act as the primary gateway to our digital lives, true digital sovereignty cannot exist if it is confined to desktop computers. At Solar Punk, we’ve observed a growing demand for privacy-focused mobile applications and a clear need for decentralized solutions that adopt a mobile-first approach.

But is it actually possible to connect to a decentralized storage network directly from a smartphone?

To answer this, we began experimenting with a Proof of Concept (PoC) to run a Swarm Bee node natively on Android. What started as an experiment has evolved into a concrete demonstration: the robust, censorship-resistant power of the Swarm network is fully capable of running right in your pocket.

Content Management with the Freedom of Mobile

We are proving that the same decentralized capabilities available on Swarm Desktop can be brought to a smartphone. By bridging a lightweight Go implementation (bee-lite) with a native Java interface for Android, we’ve created an app that doesn’t just connect to Swarm, but participates in it.

Current Features: A Node in Your Pocket

The Swarm Mobile app is designed to provide seamless access to the network without overwhelming your device’s resources. Here is what is already possible in the current Android implementation:

  • Start Ultra-Light or Light Bee Nodes Automatically: Users can choose their level of network participation. The Ultra-Light mode provides a quick, resource-efficient way to download content from the network. For the real Web3 power—including uploading data and participating in network economics—the app automatically launches a Light node for you. The setup is managed behind the scenes; users only need to handle the initial wallet funding.
  • Custom Gnosis RPC Configuration: Sovereignty means choice. Since the Bee node relies on the Gnosis chain for smart contract interactions, the app allows users to specify and connect to their preferred Gnosis chain RPC endpoint.
  • Download from Swarm: Paste a Swarm Hash into the app, and the node will fetch and download the content directly to your device’s local storage.
  • Create and Select Swarm Postage Stamps: To upload data, a Light Bee node needs a Postage Stamp. The app natively supports interacting with Swarm smart contracts to buy stamps (defining capacity and depth) directly from the mobile UI.
  • Upload to Swarm: Select files from your Android device, pick an active postage stamp, and upload your data to the Swarm network, receiving the content’s Swarm Hash in return.
  • Share Content with Swarm Hashes: Easily share your uploaded content with anyone, including Web2 users. The app’s Share functionality makes it simple to distribute your content address hash, enabling access without requiring others to run a node.

The Road Ahead: A Vision for the Future

Proving that a native Android Swarm node is viable is just the beginning. Our roadmap envisions transforming this foundation into a more complete mobile Web3 experience.

  • In-App Node Funding: Currently, users have to fund their node from outside the app. Future iterations aim to support in-app funding, potentially leveraging existing solutions like the library powering the Swarm Multichain App, allowing users to top up directly from their phone.
  • File Manager Integration: We plan to bring the intuitive, hierarchical folder-and-file experience of the Swarm Desktop File Manager to mobile, making decentralized data organization as simple as using Google Drive.
  • Mobile Streaming: Imagine consuming decentralized multimedia streams on the go, or even broadcasting live video from your phone’s camera directly to the Swarm network.
  • On-Device AI Assistants with ACT: This is where things get truly futuristic. A local AI model running on the device could use the Swarm node to store its “memory” and context. Combined with Swarm’s Access Control Trie (ACT), this setup would support private, user-controlled AI workflows.
  • A Foundation for All dApps: Ultimately, this underlying native implementation can serve as the robust, privacy-focused decentralized storage layer for any mobile application seeking to break free from centralized cloud providers.

The future of the internet is decentralized, and it is increasingly mobile. We are incredibly excited to continue pushing the boundaries of what is possible on Swarm.

Ready to explore the code? Developers can dive into the native Android implementation and the bee-lite bindings over on our GitHub.Introducing the Access Control Trie (ACT) in Swarm