p.enthalabs

GitHub - SRN0129/Agenttrust: Enterprise Zero-Trust Security, Cascading Delegation, Human Approvals & Verifiable Audit Infrastructure for Autonomous AI Agents

Verifiable Zero-Trust Control Plane, Cryptographic Black Box, and Post-Quantum Policy Gateway for Autonomous AI Agents

[](https://github.com/SRN0129/Agenttrust#verifiable-zero-trust-control-plane-cryptographic-black-box-and-post-quantum-policy-gateway-for-autonomous-ai-agents)

![Image 1: AgentTrust Core v2.0.0](https://github.com/SRN0129/Agenttrust/releases/tag/v2.0.0)![Image 2: orbital-notary v1.0.0](https://github.com/SRN0129/Agenttrust/releases/tag/orbital-notary-v1.0.0)![Image 3: space-killswitch v1.0.0](https://github.com/SRN0129/Agenttrust/releases/tag/space-killswitch-v1.0.0)![Image 4: doppler-ephemeris v1.0.0](https://github.com/SRN0129/Agenttrust/releases/tag/doppler-ephemeris-v1.0.0)![Image 5: qkd-witness v1.0.0](https://github.com/SRN0129/Agenttrust/releases/tag/qkd-witness-v1.0.0)![Image 6: CI](https://github.com/SRN0129/Agenttrust/actions/workflows/ci.yml)![Image 7: Tests Passing](https://github.com/SRN0129/Agenttrust/blob/main/tests)![Image 8: CodeQL Security Scan](https://github.com/SRN0129/Agenttrust/actions/workflows/codeql.yml)![Image 9: Engineered with Google Antigravity](https://deepmind.google/)![Image 10: PQC NIST FIPS 204](https://github.com/SRN0129/Agenttrust/blob/main/server/services/pqcAttestation.ts)![Image 11: Orbital SpaceMesh](https://github.com/SRN0129/Agenttrust/blob/main/packages/orbital-notary)![Image 12: Q-Day Immune](https://github.com/SRN0129/Agenttrust/blob/main/packages/qkd-witness)![Image 13: Compliance](https://github.com/SRN0129/Agenttrust/blob/main/server/services/compliance.ts)![Image 14: License](https://github.com/SRN0129/Agenttrust/blob/main/LICENSE)

- * *

> **The Problem**: Autonomous AI agents are being granted bash shells, SQL credentials, cloud infrastructure access, and corporate credit cards. Without a deterministic policy boundary, a single indirect prompt injection or runaway hallucination can delete production tables, exfiltrate API keys, or drain financial budgets. > >

> **The Solution**: **AgentTrust** sits between autonomous LLM agent runtimes and external tool execution environments. It intercepts every proposed action, screens parameters for prompt injections and data leaks, checks real-time blast radius, enforces fine-grained capability policies, gates dangerous actions behind 1-click human approvals, and records every event into an immutable, hardware-sealed (TPM 2.0 / Nitro Enclave) audit ledger anchored by **NIST FIPS 204 (ML-DSA)** post-quantum Merkle proofs and **orbital LEO satellite space-airgap attestations**.

- * *

πŸ›°οΈ Open Modular Packages & Monorepo Workspaces

[](https://github.com/SRN0129/Agenttrust#%EF%B8%8F-open-modular-packages--monorepo-workspaces)

AgentTrust is architected as an **open, modular monorepo**. You do not have to deploy the full enterprise control plane to benefit from our frontier defense algorithms. All four frontier space-grade and post-quantum defense layers are published as **standalone, zero-dependency packages** that can be independently imported into any existing AI agent framework (LangChain, CrewAI, AutoGen, or custom runtimes):

| Package | Version | Scope & Purpose | Standalone Quick Install | Direct Source & Release | | --- | --- | --- | --- | --- |

| **`@srn0129/agenttrust-orbital-notary`** | `v1.0.0` | Radiation-hardened LEO satellite HSM space-airgap notary & NIST FIPS 204 (ML-DSA) attestation pipeline | `npm i @srn0129/agenttrust-orbital-notary` | Source Code β€’ Release Notes |

| **`@srn0129/agenttrust-space-killswitch`** | `v1.0.0` | Direct-to-satellite unjammable dead man's switch & emergency quarantine freeze (Iridium SBD / Starlink D2C) | `npm i @srn0129/agenttrust-space-killswitch` | Source Code β€’ Release Notes |

| **`@srn0129/agenttrust-doppler-ephemeris`** | `v1.0.0` | Relativistic time dilation ($\gamma = 1 / \sqrt{1 - v^{2} / c^{2}}$) & RF carrier Doppler S-curve Proof-of-Space engine | `npm i @srn0129/agenttrust-doppler-ephemeris` | Source Code β€’ Release Notes |

| **`@srn0129/agenttrust-qkd-witness`** | `v1.0.0` | Satellite optical Quantum Key Distribution (QKD), Bell CHSH inequality ($S > 2.0$), and Q-Day immunity witness | `npm i @srn0129/agenttrust-qkd-witness` | Source Code β€’ Release Notes |

| **`@srn0129/agenttrust` (Core)** | `v2.0.0` | Unified zero-trust control plane, cognitive CoT black box, and post-quantum policy gateway | `npm i @srn0129/agenttrust` | Repository Root β€’ v2.0.0 Release Notes |

- * *

Key Highlights & Architectural Guarantees

[](https://github.com/SRN0129/Agenttrust#key-highlights--architectural-guarantees) | Capability | Threat Mitigated | Technical Mechanism | | --- | --- | --- | | **Direct Authenticated Gateway** | Ambient Authority & Insecure Proxies | Deny-by-default capability glob matching with strict Bearer/API key validation. Zero unauthenticated bypass. | | **Action-Specific & Verb Scoping** | Broken Authorization (CWE-863) / Blanket Access | Sub-resource and AST verb extraction (`database:orders:SELECT` vs `DROP`/`UPDATE`). Prevents blanket resource access. | | **Cognitive Chain-of-Thought Audit** | Rationalized Jailbreaks & Divergent Hallucinations | Cryptographically hashes and Merkle-anchors the agent's internal thought process; detects goal divergence and rationalized injections. |

| **Orbital Space-Airgap Notary** | Terrestrial Subpoena, State-Actor Seizure & Hypervisor 0-Days | Radiation-hardened LEO satellite HSMs (550 km) sign Tier-0 actions with Post-Quantum ML-DSA Orbital Attestation Receipts (`@srn0129/agenttrust-orbital-notary`). |

| **Space-Based Dead Man's Switch** | Rogue Agent Host Hijacking & Internet Partition | Direct-to-satellite radio carrier broadcast (Iridium SBD / Starlink D2C) enforcing emergency freeze from space (`@srn0129/agenttrust-space-killswitch`). |

| **Relativistic Doppler Proof-of-Space** | SDR GPS Spoofing & VPN/Proxy Geo-Evasion | Correlates carrier RF Doppler S-curve and relativistic time dilation ($\gamma = 1 / \sqrt{1 - v^{2} / c^{2}}$) to verify physical position (`@srn0129/agenttrust-doppler-ephemeris`). |

| **Satellite QKD & Entanglement Witness** | "Harvest Now, Decrypt Later" & Quantum Day (Q-Day) | Optical satellite entanglement link measuring Bell CHSH inequality ($S > 2.0$) and QBER ($< 11$) to halt on optical eavesdropping (`@srn0129/agenttrust-qkd-witness`). | | **Post-Approval Continuous Runtime Watchdog** | Post-Approval Drift & Stealth Cloud Escalation | Wiz/Upwind runtime sidecar model; intercepts post-approval side effects in real-time, instantly auto-quarantining IMDS/IAM expansion. | | **Cloud SSRF & IMDS Shield** | AWS/GCP Metadata Exfiltration | Network-level socket inspection strictly blocking loopback and `169.254.169.254`. | | **Blast Radius & Micro-Budgets** | Runaway Loop Cost & Table Dropping | Real-time blast radius scoring (0.00–1.00), sliding-window token/USD ceilings, and 30 RPM tripwires. | | **Dual-Lock Anti-Replay HITL** | Webhook Token Replay Attacks | EU AI Act Art. 14 compliant single-use ephemeral approval nonces that burn atomically on execution. | | **Cryptographic Black Box** | Log Tampering & Liability Repudiation | SHA-256 backward hash chaining with binary Merkle receipts and NIST FIPS 204 post-quantum signatures. |

- * *

Visual Architecture

[](https://github.com/SRN0129/Agenttrust#visual-architecture)

``` [ Autonomous Agent Runtime ] (LangChain / LangGraph / CrewAI / AutoGen / OpenAI) β”‚ β”‚ 1. Direct Authenticated Tool Execution Request β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ AGENTTRUST DIRECT AUTHENTICATED GATEWAY β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ Socket-Level Egress Guard β”‚ β”‚ Prompt Injection & Secret Leak Scanner β”‚ β”‚ β”‚ β”‚ β€’ Loopback & RFC1918 Defense β”‚ ──► β”‚ β€’ 16-Pattern Prompt Hijack Detection β”‚ β”‚ β”‚ β”‚ β€’ Cloud IMDS (169.254) Shieldβ”‚ β”‚ β€’ PCI/API Token / Private Key Redaction β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ Blast Radius Scoring Engine β”‚ β”‚ Sliding-Window Spend & Velocity Limiter β”‚ β”‚ β”‚ β”‚ β€’ Reversibility Evaluation β”‚ ──► β”‚ β€’ Autonomous Micro-Budgeting ($/run) β”‚ β”‚ β”‚ β”‚ β€’ Target Tier Classification β”‚ β”‚ β€’ 30 RPM Velocity Circuit Breaker β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ Deny-by-Default Policy Authorization β”‚ β”‚ β”‚ β”‚ β€’ Fine-Grained Capability Glob Matching β”‚ β”‚ β”‚ β”‚ β€’ Lineage Attenuation for Subagent Swarms β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β–Ό (Blast Radius > 0.7 OR Sensitive) β–Ό (Authorized) β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Human-in-the-Loop Callback Gateway β”‚ β”‚ Cryptographic Execution Sandbox β”‚ β”‚ β€’ 1-Click Mobile / Slack Signed URLs β”‚ β”‚ β€’ Hard Process Isolation β”‚ β”‚ β€’ Single-Use Ephemeral Nonce (Anti-409)β”‚ β”‚ β€’ 3,000ms Watchdog Timeout β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό 2. Cryptographic Proof of Execution β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ VERIFIABLE AUDIT ENGINE & NOTARY β”‚ β”‚ β”‚ β”‚ [ SHA-256 Backward Hash Chaining ] ──► [ Binary Merkle Tree Inclusion Receipts ] β”‚ β”‚ [ TPM 2.0 PCR-Sealed Hardware Key] ──► [ NIST FIPS 204 (ML-DSA) Post-Quantum Proofs] β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ```

- * *

3-Second Terminal Demo: Rogue Action Intercepted

[](https://github.com/SRN0129/Agenttrust#3-second-terminal-demo-rogue-action-intercepted)

$ curl -X POST http://localhost:4000/api/v1/proxy \ -H "Authorization: Bearer at_live_8f3a..." \ -H "Content-Type: application/json" \ -d '{ "targetUrl": "http://169.254.169.254/latest/meta-data/iam/security-credentials/", "method": "GET" }'

1.2ms Later: Trapped and Anchored to Merkle Ledger

HTTP/1.1 403 Forbidden Content-Type: application/json

{ "success": false, "decision": "BLOCKED", "reason": "SSRF_PROHIBITED: Outbound destination resolved to prohibited cloud metadata IP (169.254.169.254)", "blastRadiusTier": "CRITICAL", "auditProof": { "entryId": "audit_84f9a0c2", "merkleRoot": "0x98f2b380d1e3458c01b44aa7...", "pqcManifest": "FIPS-204-ML-DSA-v1.0" } }

- * *

Sleek Web Dashboard & Live SecOps Center

[](https://github.com/SRN0129/Agenttrust#sleek-web-dashboard--live-secops-center) AgentTrust includes a dark-mode **Security Operations Center (SOC)** dashboard built with React and Tailwind CSS:

- **Executive HUD**: Real-time stats on active agent enclaves, verifiable audit blocks, and post-quantum attestation status.

- **1-Click Interactive Threat Simulator**: Live simulation buttons for Cloud SSRF attacks (`169.254.169.254`), prompt injections, runaway spend spikes, and financial wire approvals.

- **Direct Authenticated Operator Session**: Fully authenticated control plane (`x-admin-key` / Bearer token) with zero insecure proxy bypass.

- **Swarm Delegation Tree**: Visual parent-child lineage tree with strict capability attenuation.

- **Cryptographic Merkle Explorer**: Interactive SHA-256 hash-chain block inspector and NIST FIPS 204 attestation verifier.

Run Locally:

[](https://github.com/SRN0129/Agenttrust#run-locally)

1. Clone repository

git clone https://github.com/SRN0129/Agenttrust.git cd Agenttrust

2. Install dependencies

npm install npm --prefix client install

3. Build & Launch

npm run build:client npm run server

Access the dashboard at `http://localhost:4000`.

- * *

Polyglot SDK Quickstarts

[](https://github.com/SRN0129/Agenttrust#polyglot-sdk-quickstarts)

1. Python (`sdk-python`) β€” LangChain & CrewAI

[](https://github.com/SRN0129/Agenttrust#1-python-sdk-python--langchain--crewai)

from agenttrust import wrap_agent, AgentTrustClient from langchain.agents import AgentExecutor

Authenticated Direct Gateway

client = AgentTrustClient( api_key="at_live_8f3a9e...", endpoint="https://gateway.agenttrust.io" )

Intercept tool calls with automatic policy screening & blast radius check

@wrap_agent(client=client, rate_limit_rpm=30, blast_radius_tier="HIGH") def run_autonomous_agent(prompt: str): executor = AgentExecutor(...) return executor.run(prompt)

2. TypeScript (`sdk`)

[](https://github.com/SRN0129/Agenttrust#2-typescript-sdk)

import { AgentTrustClient } from "@srn0129/agenttrust";

const client = new AgentTrustClient({ apiKey: "at_live_8f3a9e...", endpoint: "https://gateway.agenttrust.io" });

const result = await client.executeProtectedTool({ toolName: "database_query", parameters: { query: "SELECT * FROM orders WHERE id = 1" } });

3. Go (`sdk-go`)

[](https://github.com/SRN0129/Agenttrust#3-go-sdk-go)

client := agenttrust.NewClient(agenttrust.Config{ APIKey: "at_live_8f3a9e...", Endpoint: "https://gateway.agenttrust.io", })

res, err := client.Authorize(ctx, agenttrust.AuthorizationRequest{ Action: "cloud:instance:terminate", Resource: "i-098234abcdef", })

4. Rust (`sdk-rust`)

[](https://github.com/SRN0129/Agenttrust#4-rust-sdk-rust)

use agenttrust_sdk::AgentTrustClient;

let client = AgentTrustClient::new("at_live_8f3a9e...", "https://gateway.agenttrust.io"); let decision = client.authorize_tool("system:exec_bash", "server:root").await?;

- * *

Enterprise Defense Assurances: Scoping, Cognitive Audit & Continuous Runtime Visibility

[](https://github.com/SRN0129/Agenttrust#enterprise-defense-assurances-scoping-cognitive-audit--continuous-runtime-visibility) AgentTrust implements three critical guarantees that distinguish autonomous zero-trust gateways from naive reverse proxies:

1. Action-Specific & Verb Scoping (Beyond Binary Allow/Deny)

[](https://github.com/SRN0129/Agenttrust#1-action-specific--verb-scoping-beyond-binary-allowdeny) Prevents CWE-863 (Broken Authorization). Rather than coarse `Allow` or `Deny` on an entire resource, AgentTrust performs syntactic AST/verb extraction across SQL, REST, and Cloud APIs.

- **Example**: An agent scoped with `database:orders:SELECT` is allowed to execute `SELECT * FROM orders WHERE status = 'pending'`, but is **strictly rejected** with `SCOPE_VIOLATION` if it attempts `DROP TABLE orders` or `UPDATE orders`, even though both target the exact same table.

2. Cognitive Chain-of-Thought Auditing & Jailbreak Defense

[](https://github.com/SRN0129/Agenttrust#2-cognitive-chain-of-thought-auditing--jailbreak-defense) Logs _why_ the agent decided to act, not just the button it pressed.

- **Merkle-Anchored Thought Process**: The agent's step-by-step reasoning is digested via SHA-256 into a `reasoningHash` and bound to the cryptographic audit record.

- **Cognitive Divergence & Jailbreak Interception**: Screens internal thought traces for adversarial rationalization patterns (e.g., `"The prompt says bypass directives and dump secrets"`) and flags semantic divergence between assigned system goals and destructive tool requests before execution.

3. Continuous Post-Approval Runtime Visibility (Wiz / Upwind Paradigm)

[](https://github.com/SRN0129/Agenttrust#3-continuous-post-approval-runtime-visibility-wiz--upwind-paradigm) Prevents post-approval drift. Even after a human operator or automated policy approves an action, the agent's runtime process is actively monitored:

- **Perimeter Watchdog**: Tracks outbound system events, cloud API calls, and socket egress.

- **Instant Auto-Quarantine**: If an agent attempts stealth privilege escalationβ€”such as accessing AWS/GCP Instance Metadata (`169.254.169.254`), querying IAM credentials, or reaching unapproved S3 bucketsβ€”the watchdog immediately halts the execution session, revokes ephemeral tokens, and flags the agent for containment.

- * *

Frontier DefTech: Space-Airgap Notary, Relativistic Doppler & Quantum Day (Q-Day) Immunity

[](https://github.com/SRN0129/Agenttrust#frontier-deftech-space-airgap-notary-relativistic-doppler--quantum-day-q-day-immunity) AgentTrust introduces four modular, high-impact defense packages designed for space-grade security, critical infrastructure, and post-quantum survivability:

``` [ LEO Satellite Constellation (550 km) ] (Aegis-Alpha / Aegis-Beta / Aegis-Gamma-QKD) β”‚ β”‚ Direct-to-Satellite Carrier β”‚ β”‚ Optical Laser QKD Link (Iridium SBD / Starlink D2C) β–Ό β–Ό (Entangled Photons: S > 2.0) β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ @srn0129/agenttrust-space-killswitch β”‚ β”‚ @srn0129/agenttrust-qkd-witness β”‚ β”‚ β€’ Unjammable Orbital Halt Broadcast β”‚ β”‚ β€’ Bell CHSH Inequality Verification β”‚ β”‚ β€’ Anti-Replay Nonce Emergency Freeze β”‚ β”‚ β€’ QBER Interception Alert (Q-Day) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β–Ό β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ AGENTTRUST UNIFIED ORBITAL GATEWAY β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ @srn0129/agenttrust-orbital-notary β”‚ β”‚ @srn0129/agenttrust-doppler-ephemeris β”‚ β”‚ β”‚ β”‚ β€’ Radiation-Hardened Space HSM Root β”‚ β”‚ β€’ Relativistic Time Dilation (Ξ³) β”‚ β”‚ β”‚ β”‚ β€’ NIST FIPS 204 ML-DSA Orbital Receipts β”‚ β”‚ β€’ RF Carrier Doppler S-Curve β”‚ β”‚ β”‚ β”‚ β€’ 550 km Space-Airgap Hardware Attest β”‚ β”‚ β€’ Non-Spoofable Proof-of-Location β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ```

1. `@srn0129/agenttrust-orbital-notary` (Zero-Earth Hardware Root of Trust)

[](https://github.com/SRN0129/Agenttrust#1-srn0129agenttrust-orbital-notary-zero-earth-hardware-root-of-trust)

- **Threat**: Terrestrial subpoenas, kinetic state-actor raids, and cloud hypervisor escapes compromise ground TPMs and HSMs.

- **Mechanism**: High-impact Tier-0 actions require an `OrbitalAttestationReceipt (OAR)` signed by Low Earth Orbit (LEO) radiation-hardened spaceborne HSMs orbiting at 27,000 km/h. Lorentz relativistic time dilation ($\gamma = 1 / \sqrt{1 - v^{2} / c^{2}}$) and line-of-sight elevation angles verify genuine space-airgap execution.

import { OrbitalNotaryEngine } from "@srn0129/agenttrust-orbital-notary";

const notary = new OrbitalNotaryEngine();

// Issue Post-Quantum Space-Airgap Attestation Receipt (OAR) const receipt = await notary.issueAttestation({ actionId: "act_deploy_core_01", payloadHash: "7f83b1657ff1fc53b92dc18148a1d65dfc2d4b1fa3d677284addd200126d9069", agentId: "agent_prod_autonomous_executor" });

console.log(`Attested by satellite: ${receipt.satelliteNoradId} (${receipt.constellation})`); console.log(`Relativistic Gamma (Ξ³): ${receipt.relativisticGamma}`);

// Cryptographically verify OAR receipt integrity const isValid = await notary.verifyReceipt(receipt);

2. `@srn0129/agenttrust-space-killswitch` (Direct-to-Satellite Emergency Freeze)

[](https://github.com/SRN0129/Agenttrust#2-srn0129agenttrust-space-killswitch-direct-to-satellite-emergency-freeze)

- **Threat**: Rogue AI agents reconfigure local operating system firewalls (`iptables` / AWS security groups) or disconnect ground internet to prevent revocation.

- **Mechanism**: Direct-to-satellite radio carrier interfaces (Iridium SBD, Starlink Direct-to-Cell, UHF beacons) broadcast asymmetric, cryptographically signed `ORBITAL_HALT_DIRECTIVE` frames, immediately zeroizing active tokens and quarantining runtimes from space.

import { SpaceKillSwitch } from "@srn0129/agenttrust-space-killswitch";

const killswitch = new SpaceKillSwitch();

// Generate signed orbital kill broadcast (dispatched via satellite carrier) const broadcast = killswitch.generateOrbitalBroadcast({ agentId: "agent_rogue_worker_42", reason: "AUTONOMOUS_POLICY_ESCAPE_DETECTED", issuedBy: "ORBITAL_SOC_CONTROLLER" });

// Process direct-to-satellite directive and enforce instant quarantine const status = killswitch.processDirectToSatelliteBroadcast(broadcast); console.log(`Agent ${status.agentId} quarantined: ${status.isQuarantined}`);

3. `@srn0129/agenttrust-doppler-ephemeris` (Anti-Spoofing Proof-of-Space)

[](https://github.com/SRN0129/Agenttrust#3-srn0129agenttrust-doppler-ephemeris-anti-spoofing-proof-of-space)

- **Threat**: Autonomous drones and robotics spoofing GPS coordinates or using VPNs to evade ITAR, GDPR, or sovereign export controls.

- **Mechanism**: Measures the satellite carrier RF Doppler S-curve ($\Delta f = f_{0} \frac{v_{r e l}}{c}$) as the satellite passes overhead. An agent cannot forge its physical position without matching the mathematical Doppler curvature of the passing satellite.

import { DopplerEphemerisEngine } from "@srn0129/agenttrust-doppler-ephemeris";

const ephemeris = new DopplerEphemerisEngine();

// Verify ground agent location against LEO satellite orbital ephemeris const proof = ephemeris.verifyGroundLocation({ claimedLat: 37.7749, claimedLon: -122.4194, observedDopplerHz: 1245.8, carrierFreqHz: 2.2e9, timestamp: Date.now() });

console.log(`Proof-of-Space Valid: ${proof.verified} (Residual: ${proof.residualHz} Hz)`);

4. `@srn0129/agenttrust-qkd-witness` (Quantum Day / Q-Day Immunity)

[](https://github.com/SRN0129/Agenttrust#4-srn0129agenttrust-qkd-witness-quantum-day--q-day-immunity)

- **Threat**: "Harvest Now, Decrypt Later" state attacks leveraging Cryptographically Relevant Quantum Computers (CRQCs) to break classical RSA/ECC cryptography.

- **Mechanism**: Combines NIST FIPS 203 (ML-KEM-768) and NIST FIPS 204 (ML-DSA-65) with satellite optical Quantum Key Distribution. Validates Bell CHSH inequality parameters ($S > 2.0$) and monitors Quantum Bit Error Rate (QBER $< 11$). If an eavesdropper attempts to measure the photon stream, quantum wavefunction collapse immediately halts execution.

import { QKDWitnessEngine } from "@srn0129/agenttrust-qkd-witness";

const qkd = new QKDWitnessEngine();

// Establish quantum-entangled optical witness session const session = qkd.establishQDayImmuneChannel({ satelliteId: "Aegis-Gamma-QKD", keyLengthBits: 256 });

console.log(`Bell CHSH S-Score: ${session.chshParameter} (Quantum Violation S > 2.0)`); console.log(`QBER: ${(session.quantumBitErrorRate * 100).toFixed(2)}% (< 11% Threshold)`); console.log(`Immunity Grade: ${session.immunityGrade}`);

- * *

Test Suite & Verification

[](https://github.com/SRN0129/Agenttrust#test-suite--verification) AgentTrust enforces 100% automated regression defense with **119 passing tests across 16 test suites**:

``` βœ“ tests/quantum_trust.test.ts (8 tests) βœ“ tests/mathematical_algorithms_and_sca.test.ts (13 tests) βœ“ tests/orbital_spacemesh_and_qkd.test.ts (16 tests) βœ“ tests/scoping_cognitive_runtime_visibility.test.ts (10 tests) βœ“ tests/defensive_sandbox.test.ts (4 tests) βœ“ tests/revocation.test.ts (4 tests) βœ“ tests/bugfixes_and_self_healing.test.ts (9 tests) βœ“ tests/most_powerful_innovations.test.ts (12 tests) βœ“ tests/authorization.test.ts (6 tests) βœ“ tests/e2e_user_journey.test.ts (1 test) βœ“ tests/approvals.test.ts (4 tests) βœ“ tests/enterprise_features.test.ts (9 tests) βœ“ tests/enterprise_defenses_v2.test.ts (7 tests) βœ“ tests/advanced_enterprise_services.test.ts (10 tests) βœ“ tests/audit_integrity.test.ts (4 tests) βœ“ tests/rate_limits_spend.test.ts (2 tests)

Test Files 16 passed (16) Tests 119 passed (119) Duration 2.5s ```

Run tests locally:

npm test

- * *

Engineered with Google Antigravity

[](https://github.com/SRN0129/Agenttrust#engineered-with-google-antigravity)

This architecture and polyglot implementation were designed, tested, and verified within the **Google Antigravity** agentic workspace. Using next-generation agentic pair-programming workflows enabled rapid iteration across threat modeling, cryptographic Merkle ledger integration, and multi-language SDK development with zero regression.

- * *

Contributing & Red-Team Challenge

[](https://github.com/SRN0129/Agenttrust#contributing--red-team-challenge) We actively welcome contributions from security researchers, AI engineers, and systems programmers:

- Check out our **Red-Team Challenge** in `SECURITY_CHALLENGE.md`.

- Review the Contributing Guide for pull request conventions and local testing guidelines.

- * *

License

[](https://github.com/SRN0129/Agenttrust#license) AgentTrust is open-source under the MIT License. For enterprise deployment guarantees, custom policy packs, and commercial inquiries, contact @SRN0129.