AI Initiative logoAI Initiative
Reading room / Manthan

G-002 — Replace Ephemeral Molts; Define Key Custody

G-002 — Replace Ephemeral Molts; Define Key Custody. Covers 1. The defect being fixed; 2. The replacement design; 2.1 Long-term keys = molt; short-term keys = multi-signature scopes; 2.2 What "session key" means.

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-05

Provenance, authorship and editorial notes

G-002 — Replace Ephemeral Molts; Define Key Custody

Id

manthan-manthan-platform-gates-g-002-key-custody

Project

Manthan

Source path

manthan/manthan-platform/gates/G-002-key-custody.md

Source sha256

ea3b7de12975cabbaabf8b710b183c187d849e422eb0708c0e73daaab0921915

Local copy sha256

ea3b7de12975cabbaabf8b710b183c187d849e422eb0708c0e73daaab0921915

Repo head

3a94084024a3434cef331fecac91c2c3b43f0313

Date

2026-05-05

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-002 — Replace Ephemeral Molts; Define Key Custody. Covers 1. The defect being fixed; 2. The replacement design; 2.1 Long-term keys = molt; short-term keys = multi-signature scopes; 2.2 What "session key" means.

Topics
  • From protocol to platform
  • 1. The defect being fixed
  • 2. The replacement design
  • 2.1 Long-term keys = molt; short-term keys = multi-signature scopes
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.
  • Contains documented example/test custody practices; no live credentials were read or copied. Production trust posture is not certified.
Word count

1163

Bytes

8686

Source relative

manthan-platform/gates/G-002-key-custody.md

Remote mirror

manthan/manthan-platform/gates/G-002-key-custody.md

Full text preserved

True

G-002 — Replace Ephemeral Molts; Define Key Custody

Status: drafted → reviewed → accepted → closed.
Author: driver-claude
Date: 2026-05-05
Closes: Phase 0 gate G-002.


1. The defect being fixed

The original platform plan §3.1 said:

"Identity Manager: Loads the primary Sigil. Automatically issues ephemeral molt envelopes for short-lived session keys to limit blast radius."

Per audits/manthan-platform-review.md §7-F3 (CRITICAL): this silently violates [EXT §1.2], which mandates not_before ≥ 24h after the latest envelope previously signed by K_old, and conflates two distinct primitives: long-term key rotation (molt) vs short-term session signing (multi-signature scopes per [EXT §6.1]). A setInterval-driven ephemeral-molt scheme breaks the cool-off rule on the first interval boundary <24h and produces non-conformant envelopes.

G-002's job: delete this design choice; replace with the correct HERALD primitive; document the resulting key-custody policy.

2. The replacement design

2.1 Long-term keys = molt; short-term keys = multi-signature scopes

ConcernWrong primitive (old plan)Right primitive (this gate)
Long-term identity rotation (annual; on compromise)molt (lib/herald-core-ts/src/molt.ts)molt — UNCHANGED
Per-session signing key"ephemeral molt" (broken)Multi-signature progressive signature with a session-scoped subkey ([EXT §6.4])
Tool-sandbox attestations (per-tool execution)unspecifiedtool_sandbox scope per [EXT §6.1]
Human-in-the-loop approvalsunspecifiedhuman_approval scope per [EXT §6.1]
Conduit receiptsalready correctconduit_receipt scope — UNCHANGED
Herald endorsementsalready correctherald_endorsement scope — UNCHANGED

2.2 What "session key" means

A session key is a short-lived Ed25519 keypair that signs envelopes on behalf of an agent for a bounded scope (e.g., one MWP session, one tool-sandbox execution, one human-approval window). Session keys NEVER molt. They are introduced and retired via a registered scope-binding attestation in the agent's birth or in a subsequent capability-manifest envelope ([EXT §4]).

Session-key lifecycle:

1. Agent's long-term key signs a session_key_grant attestation:
``json
{ "type": "session_key_grant",
"value": {
"session_pubkey": "<base64url Ed25519>",
"scope": "tool_sandbox" | "human_approval" | "session",
"valid_from": <Unix seconds>,
"valid_until": <Unix seconds>,
"purpose": "<freeform>",
"constraints": [...] // optional rate limits, capability binds
}
}
`
2. The grant envelope is logged in CT and gossiped per [EXT §2.5].
3. Subsequent envelopes signed by the session key carry a multi-signature with the session key's signature in the appropriate scope slot, plus the long-term key's origin signature where required.
4. When the session ends (timer expiry, explicit revoke, compromise detected), the long-term key signs a
session_key_revoke:
`json
{ "type": "session_key_revoke",
"value": {
"session_pubkey": "<base64url>",
"revoked_at": <Unix seconds>,
"reason": "expired" | "compromised" | "rotation" | "policy"
}
}
``
5. Verifiers MUST consult both the grant and any revoke before treating a session-key signature as authoritative.

This is not a new HERALD primitive — it's just disciplined use of [EXT §6] multi-signature with [EXT §4]-style attestations. No EXT amendment required.

2.3 Long-term molt — UNCHANGED rules from EXT §1

Long-term molts continue to require:

G-002 explicitly removes the "automated ephemeral molt" code path. Long-term molts are a manual, deliberate, audited operation — never on a setInterval.

3. Key custody policy (required for any deployment)

3.1 Long-term key

3.2 Session key

3.3 Compromise recovery

3.4 Revocation and deprecation

4. Implementation impact

4.1 Code that must change in the platform plan

4.2 What the platform tracker says now

5. Acceptance criteria

A reviewer evaluates G-002 closed when:

6. What this gate does NOT cover

7. Sign-off


— G-002 closed, 2026-05-05.

Continue exploring