ADR-011: Internal Federated Ledger (IFL) for Local Agent Governance

Status: Proposed Version: 1.0 Date: 2025-12-21 Supersedes: N/A Related ADRs: ADR-001, ADR-002, ADR-003 Related PRDs: N/A


Context

SEA™ increasingly assumes:

In these deployments, the system needs:

  1. Tamper-evident provenance for semantic rule changes, CALM model promotions, and cross-agent commands
  2. Trust-minimized coordination between agents without public blockchain fees or token economics
  3. Low-latency, privacy-preserving operations with millisecond decisions and no sensitive data leaving the domain

Public DAOs and blockchains are overkill and misaligned for this scenario — they assume global adversaries, economic incentives, and fee markets while leaking sensitive data.

Decision

Introduce an Internal Federated Ledger (IFL) as a core infrastructure service in SEA™ deployments.

Core Design

  1. Local-only, permissioned ledger

  2. Lightweight consensus, zero-cost attestation

  3. Ledger as provenance + coordination substrate

  4. Owner/admin-controlled authority

  5. New shared type: LedgerAnchorRef

Architecture

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[User / Org Admin]
    |
    v
[Identity & Membership Manager]
    |
    v
[IFL Cluster] <----> [SEA™ Services (SDS-001..040)]
  |  \
  |   \-- [Edge / Agent Nodes]
  |
  +---> Exposes:
        - /ledger/entries
        - /ledger/anchors
        - /ledger/proofs

Consensus Recommendation

Default: Raft for internal ledger cluster.

Algorithm Use Case Trade-off
Raft (default) Crash-fault tolerance, trusted nodes Simple, low overhead
PBFT/HotStuff Byzantine fault tolerance More complex, justified if active compromise feared
PoA Pre-approved validators Works, but often overkill

Pluggable Architecture

Core pluggable interfaces:

  1. Consensus Engine — orders entries, produces log/blocks
  2. Storage Backend — writes ordered log to durable storage
  3. Crypto Provider — hashing, signing, verification
  4. Anchor Bridge — optional outbound anchoring to public chains

Public Chain Bridges (Optional)

For compliance or cross-org verification, optionally bridge IFL entries to public chains:

Rationale

Why not a public DAO / public chain?

Why an internal ledger at all? Why not just a database?

This aligns with SEA™’s isomorphic architecture — the ledger is a shared structural substrate.

Alternatives Considered

Option Description Verdict
A: No ledger, central DB Simple, low overhead ❌ Single point of failure; weaker provenance
B: Public L1/L2 + DAO Maximum openness ❌ High latency, fees, privacy risks
C: Permissioned enterprise chain Strong tooling, BFT ❌ Heavy infra; overkill for edge
D: Internal Federated Ledger Local, cheap, verifiable, private ✅ Selected

Constraints

Quality Attributes

Bounded Contexts Impacted

Consequences

Positive

Negative

Additional Notes

Data Types

LedgerAnchorRef

1
2
3
4
5
6
7
{
  "entryId": "string",
  "clusterId": "string",
  "hash": "string",
  "timestamp": "date-time",
  "proof": { "type": "raft-log-index", "logIndex": 123, "term": 4 }
}

LedgerEntry

1
2
3
4
5
6
7
8
9
10
11
{
  "id": "string",
  "type": "SemanticVersionAnchored | CALMModelApproved | AgentAction",
  "agentId": "string",
  "domainContext": "string",
  "hash": "string",
  "payload": { "additionalProperties": true },
  "signature": "string",
  "timestamp": "date-time",
  "blockIndex": "integer"
}

SDS Integration Hooks

Post-MVP (infrastructure layer)

References