AI Initiative logoAI Initiative
Reading room / Manthan

G-004 — Compose Existing HERALD Services

G-004 — Compose Existing HERALD Services. Covers 1. The defect being fixed; 2. The composition map; 3. What "Manthan Node" actually is; 4. New code needed for Manthan platform.

Platform design / acceptance contract
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 →

driver-claude · 2026-05-06

Provenance, authorship and editorial notes

G-004 — Compose Existing HERALD Services

Id

manthan-manthan-platform-gates-g-004-compose-services

Project

Manthan

Source path

manthan/manthan-platform/gates/G-004-compose-services.md

Source sha256

e0448504bbb3000b44864b519f80c35223535dba881d882174ca96cf8b6d086e

Local copy sha256

e0448504bbb3000b44864b519f80c35223535dba881d882174ca96cf8b6d086e

Repo head

3a94084024a3434cef331fecac91c2c3b43f0313

Date

2026-05-06

Date basis

Explicit document metadata

Author

driver-claude

Author basis

Author

Last source commit

8b75d1b0157c20a0a463f0e31008ef9f73099beb

Last source commit date

2026-06-08T07:40:14Z

Document status

Platform design / acceptance contract

Summary

G-004 — Compose Existing HERALD Services. Covers 1. The defect being fixed; 2. The composition map; 3. What "Manthan Node" actually is; 4. New code needed for Manthan platform.

Topics
  • From protocol to platform
  • 1. The defect being fixed
  • 2. The composition map
  • 3. What "Manthan Node" actually is
Theme

From protocol to platform

Priority

deep

Related ids
  • manthan-manthan-platform-gates-g-001-mvp-workflow
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.
Word count

927

Bytes

8432

Source relative

manthan-platform/gates/G-004-compose-services.md

Remote mirror

manthan/manthan-platform/gates/G-004-compose-services.md

Full text preserved

True

G-004 — Compose Existing HERALD Services

Status: drafted → reviewed → accepted → closed.
Author: driver-claude
Date: 2026-05-06


1. The defect being fixed

The original platform plan Phase 1 said:

Phase 1: Local Daemon & The Churn
Task: Build the manthan-node process.

This rebuilds work that already exists. Per audits/manthan-platform-review.md §7-F6 (CRITICAL): services/reference-herald/ is already a working Express daemon with Charter signing, CT log, and endorsement issuance. Phase 1 should compose it, not duplicate it.

2. The composition map

Manthan-platform's runtime is composed, not built. Each role is implemented by an existing HERALD asset plus thin Manthan-specific glue.

Manthan roleProvided byGlue needed
Long-running daemon (Herald-side)services/reference-herald/None — extend with /patina/:sigil per G-003
CT log primitiveslib/herald-ct-log/None — used as a library
Envelope build/sign/verifylib/herald-core-ts/None — used as a library
Pass-through conduitdemo/conduit/Promote from demo to a configurable service; add per-sigil rate limits
Audit log (flat-file)demo/audit-log/Already used by the conduit; production grade later
Verification CLIdemo/cli/Extended to support trace bundles per G-001
Transcript / digest serviceservices/the-scribe/Wire into the MVP workflow per G-001
Operator transparency documenttemplates/Herald-Charter.md (R-203)Each operator fills in
Log operator transparencytemplates/LOTS.md (T-106)Each log operator fills in
CBOR-deterministic profilelib/cbor-det/None — used by herald-core-ts
Conformance suitetests/conformance/Extend with mvp-workflow/ and session-keys/ per G-001/G-002

3. What "Manthan Node" actually is

Re-defining the term per this gate:

A Manthan Node is a deployment package that runs services/reference-herald (mandatory), optionally demo/conduit, optionally services/the-scribe, and a Manthan-specific agent process that connects to its local Herald to obtain endorsements and to its local conduit to send envelopes.

There is no separate manthan-node daemon binary to build. The composition is:

┌────────────────────────────────────────────────────────────┐
│  Manthan deployment (one operator)                         │
│                                                            │
│  ┌─────────────────────────┐   ┌──────────────────────┐    │
│  │ services/reference-     │   │ services/the-scribe/  │   │
│  │   herald/               │   │   (transcripts)       │   │
│  │   :8120                 │   │   :8121               │   │
│  └────────┬────────────────┘   └─────────┬────────────┘    │
│           │                              │                  │
│           │   ┌──────────────────────────┴──────────┐       │
│           │   │ demo/conduit/                       │       │
│           │   │   :8122                             │       │
│           │   └──────────────────────────┬──────────┘       │
│           │                              │                  │
│           │                              │                  │
│           │   ┌──────────────────────────┴──────────┐       │
│           └──>│ Agent processes (short-lived;       │       │
│               │ users' AI agents that load a sigil, │       │
│               │ obtain Herald endorsement, send     │       │
│               │ envelopes via conduit, receive      │       │
│               │ artifacts back)                     │       │
│               └─────────────────────────────────────┘       │
│                                                              │
│  Shared deployment data:                                    │
│  - Operator key (services/reference-herald/data/)           │
│  - Charter (services/reference-herald/config/charter.md)    │
│  - LOTS (per CT log operator)                               │
│  - Audit log (demo/audit-log/data/)                         │
└────────────────────────────────────────────────────────────┘

4. New code needed for Manthan platform

Beyond composition, Manthan-platform Phase 1 must add:

4.1 Agent SDK — lib/manthan-agent-ts/

A small library that wraps lib/herald-core-ts/ for the agent-developer experience:

Estimated size: ~300 LoC. Phase 1 deliverable.

4.2 Trace bundler — tools/trace-bundler.ts

Given a leaf envelope-id and a Herald URL, walks the trace via /sip/:envelope_id and /entries, produces a self-contained trace bundle (JSON file) that includes:

The bundle is what herald verify <bundle> consumes per G-001.

Estimated size: ~150 LoC. Phase 1 deliverable.

4.3 Manthan operator runbook — manthan-platform/RUNBOOK.md

Concrete operational instructions:

Phase 1 deliverable; tracked here, separately from G-004 closure.

5. What's explicitly NOT new code

6. Acceptance criteria

7. Sign-off


— G-004 closed, 2026-05-06.

Continue exploring