All systems nominal
TEE Attestation Active
Conservation of Value: Verified
ARC42 v15.0+ · BIAN v14.0 · DORA · ISO 20022
Version 0.1.0 · May 2026 · For Security Engineers & AI‑Agent Developers

Agent Integrity Engine

1 · What is the Verity Agent Integrity Engine?
The Verity Agent Integrity Engine is the safety microkernel and agent runtime that sits beneath the Verity Core Banking Platform. While the banking platform provides accounts, payments, loans, and regulatory reporting, the Agent Integrity Engine ensures that every AI agent and every automated action obeys the bank’s safety, security, and regulatory rules at the hardware level, at compile time, and at runtime.
It is not a cloud service, a framework, or a library. It is a capability‑based microkernel written in Rust that compiles into the same static binary as the banking application. It enforces:
  • Compile‑time safety — an agent that could violate a safety rule cannot be compiled (via the ASL language and seedvm runtime).
  • Hardware‑rooted trust — the binary proves it is running on genuine, untampered hardware before any agent starts.
  • Capability‑based access control — no agent has ambient authority; every action requires a specific, unforgeable PASETO v4 token.
  • Mathematical compliance — regulatory rules are checked by the Lean 4 theorem prover at microsecond latency.
  • Privacy by construction — FHE, SMPC, and DP are embedded as kernel services.
  • Post‑quantum readiness — capability tokens can carry both classical and PQC signatures.
The engine consists of 19 subsystems across three architectural layers: Hardware Abstraction, Capability Microkernel, and Agent Services.
2 · Hardware Trust Interface (HTI)
Purpose: Abstracts Intel TDX / AMD SEV‑SNP. Performs remote attestation on every startup, seals encryption keys to the TEE’s hardware identity.
pub trait HtiTrait: Send + Sync { async fn attest(&self) -> Result; async fn seal(&self, data: &[u8]) -> Result; async fn unseal(&self, key: &SealedKey) -> Result, HtiError>; fn arm_nmi(&self) -> Result<(), HtiError>; fn nmi_triggered(&self) -> bool; }
SettingValues
TEE_MODEproduction, simulation, off
TEE_VENDORintel_tdx, amd_sev, auto
TEE Vulnerability Response Controller: Monitors CVE feeds, triggers 72‑hour failover for critical CVEs (CVSS ≥ 7.0).
KingsGuard: Fine‑grained data flow tracking within enclaves. Compile‑time policies prevent host‑to‑guest data leaks.
Troubleshooting:
SymptomResolution
TEE attestation failedEnable TDX/SEV in BIOS; verify firmware measurement.
Both TEEs compromisedPlatform halts until at least one is patched and re‑attested.
3 · Capability Microkernel
Purpose: Central enforcement point. Every action requires a PASETO v4 capability token. Tokens are unforgeable, time‑bound, scope‑limited.
pub struct CapabilityToken { pub id: TokenId, pub agent_id: AgentId, pub scope: CapScope, pub delegation_depth: u8, pub issued_by: AgentId, pub issued_at: DateTime, pub expires_at: DateTime, pub signature: Vec, pub pq_signature: Option>, pub has_dual_approval: bool, }
Dual‑Control: VM‑level invariant: actions ≥ $10,000 require two tokens from different principals.
Token Store & Session Registry: Append‑only token store; session registry checks protocol compatibility.
Operations:
  • Check tokens: Mission Control → Agent Fleet → Capability Tokens
  • Revoke token: click Revoke (immediate effect)
  • Audit log: Governance → Activity Feed
ErrorResolution
TokenExpiredRe‑issue with new expiry
TokenRevokedIssue a new token
DualControlRequiredPresent second token
4 · Session Type Checker
Purpose: Deadlock‑freedom at compile time for all inter‑agent communication. Uses McDermott‑Yoshida denotational semantics for asynchronous multiparty session types.
Extended with fault‑tolerant, context‑free, and probabilistic session types.
Operations: Automatic at agent composition time. Rejections appear in Governance → Activity Feed.
5 · Trust Lattice Engine
Purpose: Implements Spera Theorem 9.2 — prevents two individually safe agents from collectively reaching a forbidden goal via conjunctive hyperedges.
Computes conjunctive capability hypergraph closure; if any forbidden state is reachable, composition is rejected.
Trust Levels: Untrusted → Verified → Trusted → SystemCore.
Spera Certificate: Cryptographically signed attestation of safety.
6 · Containment Verification Layer
Purpose: Havoc oracle semantics — treats AI model as unconstrained adversary; enforces boundary policy for every possible output.
pub struct BoundaryPolicy { pub allowed_operations: Vec, pub max_transaction_amount: Option, pub counterparty_allowlist: Option>, pub havoc_enforced: bool, }
Updated with Z3 SMT‑based pre‑deployment verification against Mythos escape patterns (CWE‑190/191/195).
7 · Assume‑Guarantee Contract Monitor
Purpose: Three‑layer contract: Layer 1 (ASL) assumes kernel enforces capability discipline; Layer 2 (Kernel) guarantees to VeriChain that state transitions are capability‑valid; Layer 3 (VeriChain) guarantees tamper‑evident audit trail.
Continuously monitors all layers; violations trigger safe halt.
8 · Runtime TLA+ Model Checker
Purpose: Samples live transactions against formal TLA+ spec. Detects implementation drift from verified state space.
InvariantDescription
ConservationOfValueΣ tx.entries = 0
MerkleRootConsistencyroot = MerkleHash(entries)
NoDoubleSpendNo transaction spends the same funds twice
Config: sampling_rate (default 0.10), halt_on_violation, emit_telemetry.
Commands: verity tla check --full (full model check).
9 · Lean‑Agent Compliance Verifier
Purpose: Auto‑formalises agent actions into Lean 4 theorems, checks against pre‑compiled regulatory axioms at microsecond latency.
Axiom library: SEC Rule 15c3‑5, SR 11‑7, Reg Z, Reg E, Reg DD, ECOA/FCRA.
Axiom Completeness Monitor: Flags affected axioms within 24 hours of any regulatory change.
Proof cache with configurable TTL (default 3600 s). Commands: verity compliance refresh-axioms.
10 · Non‑Human Identity Manager (1A1A)
Purpose: One Agent, One Account. Every agent gets a zkVM‑attested binary‑hash identity and a capability‑governed smart account.
pub struct AgentIdentity { pub agent_id: AgentId, pub binary_hash: [u8; 32], pub zk_proof: ZkpIdentityProof, pub did: String, pub verichain_address: String, pub kya_credential_id: Option, pub eidas_wallet_id: Option, pub smart_account: SmartAccount, pub created_at: DateTime, pub revoked_at: Option>, }
KYA credentials: Level 1–3. eIDAS 2.0 bridge for EU digital identity wallets.
Commands: verity agent register, verity agent kya-issue, verity agent revoke.
11 · Privacy Services (FHE + SMPC + DP)
FHE: TFHE‑rs with optional Intel Heracles ASIC / GPU acceleration. Encrypt, add, multiply on encrypted data.
SMPC: Shamir secret sharing, FROST threshold Schnorr over BLS12‑381.
DP: OpenDP ε‑budget tracking, Laplace mechanism.
Commands: verity privacy fhe-benchmark, verity privacy dp-budget.
12 · ORCHID — Quantum‑Augmented Consensus
Purpose: Bio‑inspired consensus mapping Kuramoto oscillators to distributed consensus. Order parameter r(t) triggers consensus when above threshold θ_b (default 0.75). Quantum Secret Sharing layer finalises blocks with quantum‑secure proofs.
Scalable for n ≥ 150 nodes, sub‑second finality. Status visible in Mission Control → Agents → VeriChain Consensus.
13 · Post‑Quantum Capability Token Engine
Purpose: Manages transition from Ed25519 to ML‑DSA‑44. Hybrid dual‑signature mode. Phases: Inventory (2026 H2) → Hybrid (mid‑2027) → PQC‑Only (2029).
Liveness condition: Δeff ≥ ⌈4(1‑ϵ)f⌉ (Fukuda‑Matsuo).
Commands: verity pqc status, verity pqc advance-phase.
14 · IEC 61508 SIL3 Safety Kernel
Purpose: Deterministic scheduling with bounded WCET. Time‑triggered scheduling. Ferrocene safety‑qualified Rust compiler. CODESYS‑pattern virtual safety lifecycle.
Commands: verity sil3 status, verity sil3 wcet-report.
15 · Emergent Protocol Learner
Purpose: Agents negotiate task‑specific communication protocols within the session‑type safety envelope. Based on MARL‑CPC (collective predictive coding).
All learned protocols must pass session type checker; unsafe protocols are rejected.
16 · Agent Security Mesh (ASM)
PromptGuardian: 4‑layer input sanitisation, encoded content detection, JailGuard MLP (98.4% accuracy).
MemLineage: Memory integrity with Merkle DAG, zero ASR against Trojan Hippo.
ExecutionGuard: gVisor sandbox, MCP tool descriptor validation, multi‑turn trajectory analysis.
VetPipeline: 4‑stage marketplace skill vetting (static, dynamic, semantic, human).
DriftMonitor: Real‑time behavioural anomaly detection; external to agent reasoning.
Kill Switch: PAUSE / SUSPEND / TERMINATE; hardware NMI tier.
CascadeGuard: Circuit breakers CLOSED→OPEN→HALF_OPEN; default 3 failures/60s.
FIM: Financial Invariants Monitor — rejects parameter mutations without signed policy change.
RAMPART CI/CD: Automated adversarial testing on every build.
17 · VAOS Command Reference
CommandPurpose
verity agent listList all registered agents
verity agent status <id>Detailed agent status
verity agent register --binary-hash <h> --zk-proof <p>Register new agent identity
verity agent kya-issue --agent-id <id> --level <1-3>Issue KYA credential
verity agent revoke --agent-id <id>Revoke an agent identity
verity agent pause <id>Pause agent (resumable)
verity agent suspend <id>Suspend agent (human reactivation)
verity agent terminate <id> --reason "..."Terminate agent with forensic snapshot
verity agent boundaries set <id> --spending-limit <n> --approval-threshold <n>Set agent boundaries
verity tla check --fullFull TLA+ model check
verity compliance refresh-axiomsRefresh regulatory axiom library
verity privacy fhe-benchmarkFHE performance benchmark
verity privacy dp-budgetCheck DP privacy budget
verity pqc statusPQC migration status
verity pqc advance-phaseAdvance PQC migration phase
verity sil3 statusSIL3 safety kernel status
verity sil3 wcet-reportWCET analysis report
verity cascade reset --channel <id>Manually reset tripped circuit breaker
verity versionPrint Verity version
Verity Agent Integrity Engine