MCP Hub
Back to servers

swarm-at

Settlement protocol for AI agent swarms with hash-chained ledger and trust management

Registry
Stars
1
Updated
Feb 8, 2026

Quick Install

uvx swarm-at-sdk

swarm.at Public Ledger

Hash-chained public record of verified agent settlements. Append-only, tamper-evident, auditable by anyone.

Every entry in ledger.jsonl is a SHA-256 hash-chained settlement that passed the full verification pipeline: integrity check, confidence threshold, and shadow audit. Modifying any entry breaks all subsequent hashes.

Ledger Format

Each line in ledger.jsonl is a JSON object:

{
  "timestamp": 1770480398.05,
  "task_id": "fingerprint-pg84",
  "parent_hash": "000000...000000",
  "payload": { "type": "text-fingerprint", "title": "Frankenstein", "..." : "..." },
  "current_hash": "453eaa...178b287"
}
  • parent_hash links to the previous entry's current_hash (genesis = 0 x 64)
  • current_hash = SHA-256 of the entry with current_hash set to ""
  • The chain is tamper-evident: modifying any entry breaks all subsequent hashes

Canonical Hash Algorithm

To verify any entry:

  1. Parse the JSON line into a dict
  2. Set current_hash to "" (empty string)
  3. Serialize with json.dumps(entry, sort_keys=True).encode() (UTF-8)
  4. Compute hashlib.sha256(serialized).hexdigest()
  5. Compare against the stored current_hash

The genesis (first entry's parent_hash) is always "0" * 64 (64 zero characters).

Data Provenance

Entries in this ledger are synthetic seed data generated from public domain sources (Project Gutenberg texts, scientific constants, geographic facts). They demonstrate the settlement protocol's hash-chaining and verification pipeline. They are not records of real agent interactions.

Verification

Three ways to verify the chain:

Standalone (zero dependencies, Python 3.8+):

python verify.py
# OK: 280 entries, chain intact

SDK:

from swarm_at.settler import Ledger
ledger = Ledger(path="ledger.jsonl")
print(ledger.verify_chain())  # True

API:

curl https://api.swarm.at/public/ledger/verify
# {"intact": true, "entry_count": 280}

Settlement Types

35 types covering knowledge verification and agent behaviors

Knowledge Verification

TypeDescription
text-fingerprintPublic domain text ingestion + hashing
qa-verificationFactual Q&A with multi-agent consensus
fact-extractionStructured entity extraction from text
classificationGenre/topic/tone multi-label tagging
summarizationText condensation with cross-verification
translation-auditCross-language verification
data-validationMath constants + periodic table verification
code-reviewAlgorithm correctness + complexity analysis
sentiment-analysisDimensional sentiment scoring
logical-reasoningSyllogism and formal logic verification
unit-conversionMetric/imperial/scientific unit verification
geo-validationGeographic fact verification
timeline-orderingChronological event ordering
regex-verificationPattern matching correctness
schema-validationData schema conformance checking

Agent Behaviors

TypeDescription
code-generationNew code creation with language + framework metadata
code-editModifications to existing code with diff tracking
code-refactorStructural improvements preserving behavior
bug-fixDefect resolution with root cause analysis
test-authoringTest creation with coverage and assertion tracking
codebase-searchCode search operations with match scoring
web-researchWeb research with source verification
planningTask decomposition and execution planning
debuggingDiagnostic investigation with hypothesis tracking
shell-executionShell command execution with safety classification
file-operationFile system operations with change tracking
git-operationGit operations with ref and diff metadata
dependency-managementPackage and dependency management
agent-handoffTask delegation between agents
consensus-voteMulti-agent consensus participation
task-delegationWork distribution to sub-agents
documentationDocumentation creation and updates
api-integrationExternal API calls with endpoint tracking
deploymentBuild, deploy, and release operations
conversation-turnConversational exchange settlement

Links


© 2026 Mediaeater. All rights reserved.

Reviews

No reviews yet

Sign in to write a review