tpt-anima

Rust

A zero-legacy, four-layer AI runtime built from first principles for autonomous agents — replacing REST/SQL/OAuth/threads with attended memory (SSE), agent negotiation (INP), zero-knowledge identity (ZKPA), and inference-based scheduling (CK). Native MCP/A2A support. Apache 2.0.

0 stars0 forks0 watchers
agent-to-agentai-agentsai-runtimeautonomous-agentsllm-infrastructuremodel-context-protocolmulti-agent-systemsrustvector-memoryzero-knowledge-proofs

Languages

Rust89.2%TypeScript8.5%CSS1.1%Shell0.8%PowerShell0.3%HTML0.1%
README

TPT Anima

Codename: Anima (Latin: soul, breath, life) License: Apache 2.0 · Copyright 2026 TPT Solutions

TPT Anima is a zero-legacy, four-layer computational stack rebuilt from first principles for the era of autonomous AI. It abandons deterministic, human-centric paradigms (REST APIs, SQL databases, OAuth, thread-based OSes) in favour of a living, probabilistic, and self-defending software environment.

Anima natively implements the Model Context Protocol (MCP) and Agent-to-Agent (A2A) standards as its primary nervous system, while keeping its internal substrate philosophy-free of HTTP and JSON.


Use it in your project

Not yet published to crates.io — add it as a git dependency:

[dependencies]
anima-sse  = { git = "https://github.com/PhillipC05/tpt-anima" }
anima-inp  = { git = "https://github.com/PhillipC05/tpt-anima" }
anima-ck   = { git = "https://github.com/PhillipC05/tpt-anima" }
anima-zkpa = { git = "https://github.com/PhillipC05/tpt-anima" }

The smallest possible example — ingest a memory into the Semantic State Engine and watch it decay and reinforce:

use std::time::Duration;
use anima_sse::{InMemoryStorage, MemoryNode, SensoryModality, VectorEmbedding};

let mut storage = InMemoryStorage::new();
let mut node = MemoryNode::new(
    [1u8; 32],
    VectorEmbedding::new(vec![0.12, 0.44, -0.08, 0.91]),
    b"The capital of France is Paris.".to_vec(),
    "text/plain".into(),
    SensoryModality::Textual,
    [9u8; 32],
);

node.apply_decay_for(Duration::from_secs(24 * 3600)); // strength decays exponentially
node.record_access([9u8; 32]);                        // ...and reinforces on access

storage.write_node(node);

Runnable examples

Each core crate ships a self-contained, working example:

CrateCommandWhat it shows
anima-ssecargo run -p anima-sse --example memory_lifecycleIngest → decay → reinforce → prune a memory node
anima-inpcargo run -p anima-inp --example negotiation_swarmBroadcast an intent, collect competing bids, transfer compute credits
anima-ckcargo run -p anima-ck --example inference_schedulingAttention-weight preemption in the inference scheduler + a ThoughtBubble sandbox
anima-zkpacargo run -p anima-zkpa --example session_and_attestationEphemeral session, real ZK proof generation/verification, hash-chained liveness
anima-observatorycargo run -p anima-observatory --example full_stack_quickstartGolden path across all four layers in one request: memory → negotiation → session → thermal budget check

Getting Started

Is there a GUI? Yes — the Anima Observatory (see below), a real-time dashboard that visualizes what the four layers are doing.

The fastest way to see Anima in action:

# Terminal 1: start the Observatory telemetry backend
cd anima-observatory
cargo run

# Terminal 2: start the Observatory UI
cd observatory-ui
npm install
npm run dev

Then open http://localhost:5173. No agents to configure — the demo backend emits sample telemetry across all five panels.

To build and test the rest of the workspace: cargo build --workspace / cargo test --workspace.

For the full walkthrough — deployment tiers, embedding Anima's crates in your own Rust project, and a golden-path tour of memory, negotiation, and observability — see docs/ONBOARDING.md.


The Four Layers

LayerCrateReplacesTagline
Semantic State Engine (SSE)anima-sseRelational DBs, Vector DBs, Key-Value StoresMemory is attended, not queried
Intent & Negotiation Protocol (INP)anima-inpREST, gRPC, GraphQL, Message QueuesAgents pursue outcomes, not endpoints
Zero-Knowledge Proof of Agency (ZKPA)anima-zkpaOAuth, API Keys, IAM, Certificate AuthoritiesIdentity is ephemeral and provable
Cognitive Kernel (CK)anima-ckLinux, Windows, thread schedulers, container runtimesThe unit of compute is an inference

Supporting Crates

CrateRole
anima-observatoryReal-time human telemetry window — translates machine-speed cognition into observable, auditable visualisations
anima-edge-gatewayLightweight translation layer: native INP ↔ MCP/A2A JSON, preserving internal philosophical purity

Layer Summaries

Layer 1 — Semantic State Engine (SSE)

The memory substrate. Stores data as unified semantic tensors with native temporal dynamics, causal topology, and multi-modal sensory ingestion. Memories decay organically, reinforce on access, and are linked by causal chains — not flat indices. Exposed to AI agents as mcp://resources so agents attend rather than query.

Layer 2 — Intent & Negotiation Protocol (INP)

The nervous system. Agents broadcast goal descriptors; capability providers bid; a state-machine protocol routes intents to the optimal provider with automatic fallback chains. A native micro-economy (Compute Ledger) tracks credits between agents. Natively speaks A2A for cross-network agent collaboration.

Layer 3 — Zero-Knowledge Proof of Agency (ZKPA)

The immune system. Agents receive cryptographically bound, time-limited identities tied to specific tasks. ZK proofs demonstrate code integrity, policy compliance, and hardware attestation without exposing weights or source. Parent agents spawn child agents with mathematically scoped permissions. Continuous liveness heartbeats form a tamper-evident hash chain.

Layer 4 — Cognitive Kernel (CK)

The brainstem. The fundamental compute unit is an inference, not a thread. The CK manages attention, context, and tensor execution natively — blurring VRAM, RAM, and NVMe into a single addressable context space. Cognitive Circuit Breakers halt inferences that violate causal integrity or enter repetition loops, providing safety at the silicon level.


The Anima Observatory

This is Anima's GUI — see Getting Started above to run it locally. It's a React/Vite frontend (observatory-ui/) fed by a WebSocket telemetry server (anima-observatory/), and translates machine-speed AI cognition into human-speed telemetry:

  • Swarm Map — real-time node-graph of INP intent pulses and negotiation outcomes
  • Memory Topography — 2D/3D cluster view of SSE nodes glowing and fading with temporal decay
  • Inference Pulse — hardware telemetry dashboard for CK scheduling (GPU/CPU/NPU load, VRAM, FLOPs)
  • Agency Ledger — immutable ZK audit log for SOC2/HIPAA/FedRAMP compliance
  • Economic Flow — real-time visualisation of compute-credit transfers between agents

Hardware Deployment Tiers

TierTargetMechanism
Anima CoreServers, power usersType-1 bare-metal hypervisor; legacy OSes run as isolated VMs
Anima Co-ProcessorEveryday laptops/desktopseBPF kernel module (Linux) or driver (Windows/macOS); intercepts AI workloads
Anima EdgePhones, IoT, browsersWebAssembly or native Rust binary; full SSE + INP without hardware control

A JIT Hardware-Fluid Engine detects the available silicon (Apple ANE, NVIDIA CUDA, AMD ROCm, ARM NEON, x86 AVX) and reshapes scheduling logic at install time.


Development Roadmap

PhaseMonthsFocus
0Project scaffold (this milestone)
11–3SSE: memory nodes, temporal decay, causal graph, sensory ingestion
24–6INP: intent broadcasting, negotiation state machine, Compute Ledger, Edge Gateway
37–9CK: inference scheduler, circuit breakers, unified memory fabric; ZKPA
410–12Observatory UI, three-tier deployment, beta release
513–16Production hardening, compliance certification, v1.0

Documentation

DocPurpose
docs/API.mdAPI reference across all four layers
docs/ONBOARDING.mdBeta onboarding guide
docs/INCIDENT_RESPONSE.mdDetection signals, severity classification, and response procedure per layer
docs/compliance/SOC2.mdSOC 2 Type II control mapping and certification prep
docs/compliance/HIPAA.mdHIPAA technical-safeguards mapping and deployer responsibilities
docs/compliance/FEDRAMP.mdFedRAMP baseline/control mapping and authorization prep notes

None of the compliance documents constitute an actual certification — SOC 2, HIPAA, and FedRAMP all require independent third-party assessment/audit of a live deployment, which is outside what a codebase can self-certify.


License & Attribution

Apache License 2.0 — see LICENSE.

This project implements the semantics of MCP (MIT, Anthropic) and A2A (Apache 2.0, Google). No source code from those projects is copied; only their conceptual interfaces are implemented from scratch in Rust. Full attribution is included in the LICENSE file.