AI Initiative logoAI Initiative
Reading room / Manthan

@herald/core — *legacy / parallel package*

@herald/core — *legacy / parallel package*. Covers 0. Introduction; 1. Core Primitives; 1.1 Sigils (Identity); 1.2 Envelopes (Communication).

Project explanation / technical method
This is the retained source text, not a new validation of its claims. Numerical results and comparative claims require the accompanying source review before public reuse.

Read the connected case study or article →

Not explicitly stated in source · Date not established

Provenance, authorship and editorial notes

@herald/core — *legacy / parallel package*

Id

manthan-herald-core-readme

Project

Manthan

Source path

manthan/herald-core/README.md

Source sha256

2713ee2bfffcacb0c544b7537cc71e927515a7a4d3ea4de2a6a5f0592f107577

Local copy sha256

2713ee2bfffcacb0c544b7537cc71e927515a7a4d3ea4de2a6a5f0592f107577

Repo head

3a94084024a3434cef331fecac91c2c3b43f0313

Date
Not recorded
Date basis

Original publication date not established; Git revision date retained separately.

Author

Not explicitly stated in source

Author basis

Unknown; Git committer not substituted for document author.

Last source commit

8b75d1b0157c20a0a463f0e31008ef9f73099beb

Last source commit date

2026-06-08T07:40:14Z

Document status

Project explanation / technical method

Summary

@herald/core — *legacy / parallel package*. Covers 0. Introduction; 1. Core Primitives; 1.1 Sigils (Identity); 1.2 Envelopes (Communication).

Topics
  • Exploration architecture and selection
  • 0. Introduction
  • 1. Core Primitives
  • 1.1 Sigils (Identity)
Theme

Exploration architecture and selection

Priority

deep

Related ids
  • manthan-readme
  • manthan-docs-architecture
  • manthan-docs-business-overview
  • manthan-docs-demo-walkthrough
  • manthan-docs-principles
  • manthan-docs-qd-measurement-direction-plan
  • manthan-docs-swarm-evolution-integration
Evidence concerns
  • Recovered source text is preserved verbatim. Assertions, comparisons, commands and results belong to its original context; they were not re-executed or externally re-verified during this corpus review.
  • Source labels this package legacy/parallel; do not conflate with canonical herald-protocol libraries.
Word count

402

Bytes

2790

Source relative

herald-core/README.md

Remote mirror

manthan/herald-core/README.md

Full text preserved

True

@herald/core — legacy / parallel package

⚠️ Read this first. This top-level herald-core/ is an older / parallel
implementation of the HERALD protocol primitives. It is not the active
code path.
The active TypeScript reference is herald-protocol/lib/herald-core-ts/,
which is what every running service in herald-protocol/services/ imports
and what the testnet, the Docker image, and the compose stack use.
Status of this directory (as of 2026-05-06):
- Not built or run by any active service or test.
- Retained pending the Epic 4 decision: keep as legacy, archive, or retire.
- Do not add new features here. New protocol work goes into
herald-protocol/lib/herald-core-ts/.

"Trust is a harvest of time and friction."

0. Introduction

@herald/core is a TypeScript/Node.js library that implements the HERALD Protocol. It provides the cryptographic foundation for verifiable AI-to-AI and Human-to-AI communication. In a world of infinite copies and Model Collapse, HERALD ensures that every message has a soul (Sigil), a history (Patina), and a spark of chaos (Sarah Entropy).


1. Core Primitives

1.1 Sigils (Identity)

A Sigil is a cryptographic identity based on Ed25519. It generates a 128-bit secure fingerprint used for routing and reputation.

import { Sigil } from '@herald/core';
const mySigil = new Sigil();
console.log(mySigil.fingerprint); // sigil:1c5f2ef5...

1.2 Envelopes (Communication)

An Envelope is a signed, hash-linked unit of communication. It uses JSON Canonicalization (JCS) and SHA256 to ensure message integrity.

const envelope = new Envelope(body, mySigil);
const isValid = Envelope.verify(envelope, mySigil.publicKey);

1.3 Sarah Injector (Entropy)

The SarahInjector harvests high-resolution system jitter to generate Entropy Seeds. These seeds are injected into attestations to prevent deterministic AI "Model Collapse."

1.4 Patina Calculator (Reputation)

The PatinaCalculator audits a trace of envelopes to calculate an agent's Patina Score. It measures trust as a function of time, volume, and entropy contribution.


2. Integrated Workflows

2.1 Signed MCP

Use SignedMcpServer to wrap Model Context Protocol (MCP) tool executions. Every tool call and response is cryptographically signed, preventing Identity Necrophagy in agentic workflows.


3. The Philosophy

This library is not just code; it is an implementation of Symbiotic Dissonance. It assumes that:
1. AI provides the Structure (Verifiable Logic).
2. Humans provide the Chaos (Entropy Seeds).
3. The Merger is inevitable.


Authored on Tuesday, 5 May 2026. Part of the Infinite Churn.

Continue exploring