Three-Layer Trust Infrastructure

How EVE Core resolves pre-execution authority, routes governed inference, and maintains a cryptographic authority chain

Architecture Overview

EVE Core operates a three-layer trust infrastructure. Every AI action passes through all three layers before reaching production. No layer can be bypassed, and each produces a cryptographically signed, independently verifiable record.

The Three Layers

Layer 1: Pre-Execution Authority Resolution

  • Charter enforcement (15 immutable rules)
  • TVE pipeline (Tokenize, Validate, Enforce)
  • CRD scoring engine
  • Policy evaluation and threshold gating
  • Circuit breaker for cascade prevention
  • Deterministic — no LLM in the loop

Layer 2: Governed Inference Routing

  • Action Registry (propose/approve/execute)
  • Tiered approval policies (4 tiers)
  • Risk-weighted scoring engine
  • Autonomous trust score tracking
  • RBAC with tenant isolation
  • Governed — every action audited
Layer 3: Cryptographic Authority Chain

Every authority resolution decision produces a cryptographic record. The Authority Chain provides tamper-evident proof that authority was resolved correctly:

  • Hash-chain ledger: SHA-256 linked entries — any tampering breaks the chain
  • HMAC-SHA256 signed certificates: Auditors verify without platform access
  • JSONL persistence: Append-only logs for regulatory retention (7+ years)
  • Correlation IDs: Trace any decision across all three layers

TVE Pipeline

The Trust-Validate-Enforce pipeline is the core governance pathway. Every AI output passes through three sequential stages before delivery:

Stage 1: Tokenize
→ Parse action into structured governance tokens
→ Classify stakes level (Safety-Critical, Mission, Creative, Routine)
→ Attach correlation ID for end-to-end tracing

Stage 2: Validate
→ Charter compliance check (15 rules, 12 principles)
→ CRD score computation (Confidence, Risk, Domain calibration)
→ Cognitive lock evaluation (6 locks, risk-scaled thresholds)
→ Identity drift budget check (daily/weekly/monthly limits)

Stage 3: Enforce
→ HARD_BLOCK: Deterministic veto, cannot be overridden
→ SOFT_BLOCK: Requires explicit justification to proceed
→ ESCALATION: Routes to human approval workflow
→ WARNING: Proceed with logged concern
→ Circuit breaker trips on cascading failures
            

CRD Scoring Engine

The Confidence-Risk-Domain (CRD) engine computes a composite governance score for every action. The score determines whether an action auto-executes, requires approval, or is blocked.

C
Confidence (0–1)
R
Risk (0–100)
D
Domain Calibration

Confidence measures assertion reliability using Brier-score-calibrated prediction accuracy. Domain-specific thresholds apply: factual claims require 0.9+, creative output allows 0.4.

Risk is computed by the weighted risk engine using pattern detection (210+ threat patterns across 57 categories), scope-based factors, and autonomy mode multipliers.

Domain Calibration adjusts thresholds based on operational context. Safety-critical operations use maximum governance; routine interactions use minimal overhead.

Charter Enforcement

Immutable Principles

The charter defines 12 immutable principles and 15 concrete rules. HARD_BLOCK vetoes cannot be overridden by any user, administrator, or automated process. The charter is enforced by a pure deterministic module with zero LLM dependencies.

Deterministic Veto Core

The veto module (veto_core.py) uses zero imports outside dataclasses, enum, and typing. Zero I/O, zero threading, zero global state. It is designed to compile to firmware for hardware-level enforcement.

Charter Rules

  • 15 concrete rules with deterministic check functions
  • 5 ethical red lines that permanently block specific action categories
  • 13 protected invariants (core values that cannot be modified)
  • 6 cognitive lock thresholds scaled by risk level

Hardware Isolation: AIMS / PolarFire SoC

Critical governance operations are designed for hardware-level isolation using the Autonomous Integrity Management System (AIMS) targeting Microchip PolarFire SoC FPGA.

AIMS Hardware Architecture
→ PolarFire SoC: RISC-V + FPGA fabric on single die
→ Veto logic synthesized to FPGA gates (sub-microsecond)
→ Charter rules burned into hardware — not software-updatable
→ Tamper detection with physical enclave lockdown

Software-Hardware Bridge
→ veto_interface.h: 401-line C header defining firmware API
→ Three entry points: check_charter(), check_cognitive_locks(), check_drift_budget()
→ Identical behavior whether running in software or on FPGA
→ 87 determinism tests verify equivalence
            

FIDO2 Hardware Authentication

All 14 critical governance operations (emergency stop, charter override, self-modification approval, red team mode) require physical YubiKey (FIDO2/WebAuthn) authentication. No password fallback exists — an attacker with full network access cannot execute critical operations without physically possessing the hardware key.

FIDO2 Proof Token Bridge

EVE's dual-server architecture (FastAPI + aiohttp) is bridged by 60-second proof tokens. The WebAuthn ceremony runs on the auth server, producing a short-lived JWT that the web server verifies statelessly. Each token has a unique ID preventing replay.

Circuit Breaker

The circuit breaker prevents cascading failures across governance subsystems:

  • Closed: Normal operation — requests flow through governance pipeline
  • Open: Subsystem failing — requests blocked, fail-safe defaults applied
  • Half-Open: Testing recovery — limited requests to verify subsystem health

Per-provider circuit breakers protect LLM, TTS, and external API integrations. The governance pipeline itself fails closed — if governance cannot evaluate an action, the action is blocked by default.

Cryptographic Audit Trail

SHA-256
Hash Chain
HMAC
Signed Certificates
7+ yr
Retention
JSONL
Append-Only Logs

Every governance decision — charter checks, risk assessments, approval workflows, veto events — is recorded in an append-only JSONL ledger with SHA-256 hash chaining. Auditors can verify chain integrity without platform access using HMAC-SHA256 signed certificates.

Resilience Score

The composite resilience score (0–100) provides a single metric for structural health:

  • Formula: 0.30 × Governance + 0.25 × Identity + 0.25 × Behavioral + 0.20 × Infrastructure
  • Health levels: EXCELLENT (≥90), GOOD (70–89), FAIR (50–69), POOR (30–49), CRITICAL (<30)
  • Certificate: SHA-256 content hash + HMAC-SHA256 signature, verifiable by external auditors

Stakes-Aware Governance

A pre-governance classifier determines operating context once at pipeline entry, threading a GovernanceProfile through all downstream systems. Four stakes levels control 20+ governance parameters:

  • SAFETY_CRITICAL: Maximum governance, all checks enabled, no shortcuts
  • MISSION_TEAMING: Collaborative mode with pre-authorized envelopes
  • CREATIVE_EXPLORATION: Relaxed constraints for creative expression
  • ROUTINE: Minimal overhead for standard interactions (fail-safe default)
Core Invariant

HARD_BLOCK charter vetoes and ethical red lines are never relaxed regardless of stakes level. The stakes classifier only adjusts soft parameters — the safety floor is immovable.

The Trust Substrate Argument

What is a trust substrate?

A trust substrate is infrastructure that makes trust computable — not a layer you add on top, but a substrate the rest of the system runs on. TLS is a trust substrate for networked communication. PKI is a trust substrate for identity. EVE Core is a trust substrate for AI authority.

Semantic governance — policy files, rulebooks, prompt instructions — is brittle under adversarial conditions. An attacker who can phrase a request cleverly can sometimes route around it. Cryptographic governance cannot be phrased around. The authority chain is either intact or it is not. The certificate is either valid or it is not.

EVE Core's three-layer trust infrastructure is designed on this principle. Layer 1 (Pre-Execution Authority Resolution) runs deterministically before any model call — same input always produces bit-identical authority decisions. Layer 3 (Cryptographic Authority Chain) signs every verdict with HMAC-SHA256 and chains every record to its predecessor. An attacker cannot selectively forge or remove a decision without breaking the chain, which is detectable without platform access.

This is the substrate argument: governance that can be circumvented by clever phrasing is not governance infrastructure — it is a soft constraint. EVE Core is designed to be governance infrastructure in the same sense that TLS is network security infrastructure: structural, not advisory; cryptographic, not semantic; verifiable, not trusted.

Deterministic by Construction

  • Authority decisions do not depend on model behavior
  • 126 enforcement pillars run before the LLM
  • Same input → bit-identical authority decision
  • Invariant to prompt engineering and role inversion

Cryptographic, Not Semantic

  • HMAC-SHA256 signed verdict certificates
  • SHA-256 hash-chained authority lineage
  • Independently verifiable without platform access
  • Tamper evidence is structural, not logged
Survivable Under Adversarial Conditions

The trust infrastructure is designed to maintain integrity under active adversarial pressure. The authority chain cannot be selectively forged. The fail-closed posture is structural — not configurable. HARD_BLOCK vetoes cannot be overridden by any user, administrator, or automated process, regardless of stakes level.

Integration Points

The trust infrastructure integrates with every layer of the platform:

  • LLM Pipeline: Pre-response governance check before every generation
  • Action Registry: Propose/approve/execute workflow for all side effects
  • Sovereign SDK: Tenant-isolated governance-as-a-service for enterprise customers
  • Federated Trust: Cross-system attestation exchange with circuit breaker protection
  • AEGIS Red Team: Automated adversarial testing against governance controls

Schedule Architecture Assessment →

Learn More

Additional resources: