System Architecture
How Vorion's trust engine, governance framework, and edge dashboard work together to provide transparent, real-time AI agent oversight.
Platform Packages
ATSF Core
Agent Trust & Safety Framework — the runtime engine for trust scoring and governance.
- Trust Engine — score computation + tier promotion
- Governance Engine — rule evaluation + decisions
- Sandbox Training — 21-challenge boot camp
- Fastify API — REST endpoints
Platform Core
Enterprise platform services — authentication, registry, and cryptographic proof.
- Auth — MFA (TOTP) + PIV/CAC smart card
- Agent Registry — tenant + API key management
- Proof Chain — hash-chained signed records
- HSM — PKCS#11 hardware security module
Contracts
Shared type definitions, database schemas, and canonical enums across all packages.
- Drizzle ORM schemas (PostgreSQL)
- TrustTier, ControlAction enums
- Intent, Decision, Agent types
- BASIS + CAR specification types
Edge Dashboard Layer
The public dashboard runs on Cloudflare's edge network. A scheduled Worker syncs data from PostgreSQL every 5 minutes into KV, which Astro pages read at request time. This architecture keeps database credentials off the edge and serves cached data in <50ms globally.
Neon PostgreSQL
Source of truth — agents, intents, policies, trust scores
Scheduled Worker
5-min cron — syncs stats, health checks, npm, CI
Cloudflare KV
Edge cache — 300s TTL, 7 data keys
Astro SSR
Pages + API routes — reads from KV at the edge
8-Tier Trust Model
Every agent starts at T0 (Sandbox) and progresses through tiers as trust signals accumulate. Scores range from 0 to 1000. Higher tiers unlock greater autonomy.
0 – 199
200 – 349
350 – 499
500 – 649
650 – 799
800 – 875
876 – 950
951 – 1000
Data Flow Pipelines
Trust Scoring Pipeline
Governance Pipeline
Technology Stack
Runtime
Node.js + TypeScript
Database
PostgreSQL (Neon) + Drizzle ORM
API
Fastify + REST
Edge
Cloudflare Workers + KV + Astro
Monorepo
Turborepo + pnpm workspaces
Auth
TOTP MFA + PIV/CAC + HSM
Testing
Vitest (398+ tests)
CI/CD
GitHub Actions + Wrangler