PalveronPalveronDocs

Architecture

How Palveron fits into your AI infrastructure.

Palveron operates in two modes that can be used independently or together: Enforcement Gateway for traffic you can route, Governance Control Plane for traffic you can't.

Enforcement Gateway

For AI systems that route traffic through an API, Palveron acts as a transparent proxy:

Your app → Palveron Gateway → LLM provider
                ↓
         Policy Engine (Rust)
                ↓
         Multi-modal analysis (text / image / audio / code)
                ↓
         Trace + audit log → Flare anchoring (selected events)

Governance Control Plane

For AI systems that cannot be proxied (native platform agents, SaaS tools, browser-based AI), Palveron offers documentation, compliance tracking, and event ingestion via the MCP Gateway and the Browser Guard.

Components

ComponentTechnologyPurpose
GatewayRust / AxumIn-path policy enforcement, trace logging, multi-modal analysis
DashboardNext.js 16 / React 19Admin UI, Command Center, Agent Registry, Playground
PostgreSQLSupabase / self-hostedPersistent storage, multi-tenancy
RedisOptionalCaching, blocklists, rate limiting
NGEONNX Runtime + 5 modelsLocal neural inference: personal data, injection, NLI scoring
Flare RelayerRustMerkle-tree computation, blockchain anchoring
SDKsTypeScript, Python, Go, JavaCustomer libraries with retry, circuit breaker, multi-modal

Content ingestion paths

Palveron supports several equivalent ingestion paths. Each path normalizes to the same VerifyRequest format:

PathUse case
SDK / Verify APIDirect API calls from your application code
Gateway ProxyDrop-in replacement for LLM base URLs
MCP GatewayCoding agents (Cursor, Windsurf, Claude Code)
Browser GuardPrompts in AI chats in Chrome and Edge, checked before sending; see Browser Guard

Multi-modal pipeline

The gateway supports text, images, audio, documents, and code in a single request:

VerifyRequest
├── prompt: String
├── attachments: [{ contentType: "image/png", data: Base64, ... }]
└── context: { mcpServer, toolName, chainDepth, sourceSystem }
         ↓
    Content-type detection (auto: OpenAI / Anthropic / Palveron format)
         ↓
    Provider routing: Text → NGE local → optional LLM-assist
                      Image → Llama Guard Vision
                      Audio → Whisper → text pipeline
                      Code → Secret Scanner + NGE
         ↓
    Merge findings → apply policies → decision

Attachment types use MIME strings (no enums), extensible without code changes. Today: image/png. Tomorrow: application/x-lidar-pointcloud.

Neural Governance Engine (NGE)

NGE is Palveron's local inference layer: five ONNX models that run inside the gateway; in nge_fallback mode only borderline cases escalate to an external LLM, and in nge_local mode the cloud LLM is never called.

Input → NGE pipeline (5 stages)
   1. Regex          — fast, deterministic (credit cards, SSNs, emails)
   2. Aho-Corasick   — multi-pattern keyword matching (denylists, brand terms)
   3. ONNX NER       — entity extraction (PII NER × 2 + injection detector)
   4. Contextual     — NLI semantic scoring (off-topic, policy intent; toxicity is observe-only and operator-enabled)
   5. LLM-Assist     — escalate borderline cases to the cloud (toggleable)

Engine modes:

ModeBehaviorWhen to use
nge_localRun only local models, no external LLM callsEU data residency, zero-egress
nge_fallback (default)Local-first; borderline cases escalate to LLM-assistMost customers
llm_onlySkip local inference, always call the cloud LLMAccuracy upper bound

There are also nge_shadow (observes without enforcing) and self_hosted. In nge_fallback mode only a borderline case escalates to an external LLM; local inference decides the rest.

The NGE outputs are assistance signals: they inform policy decisions, but the policy engine still owns the final decision. See the Neural Governance Engine guide for the full pipeline.

Purpose-Bound Entity Governance (PBEG)

Traditional access control governs entities by type ("agents", "users", "documents"). PBEG governs entities by purpose, the declared reason the entity exists.

Agent: "support-bot-v2"
   ↓
Declared purpose: "Answer tier-1 customer support emails. Read CRM tickets. Send templated replies. Never invoice."
   ↓
Capability model derived from purpose
   ├── ALLOW    crm.read_ticket
   ├── ALLOW    email.send_templated
   ├── DENY     billing.create_invoice
   └── REQUIRE  approval for crm.bulk_export

When an agent attempts an action outside its declared purpose, Palveron blocks (or queues for approval), even if the action would otherwise pass the gateway's content checks.

PBEG runs alongside, not in place of, the existing EntityGate. PBEG is the enforcement primary; EntityGate continues in observe-only mode for backwards compatibility. Purpose is set during agent registration and is one of the fields auditors look at first in Annex IV reports.

Security model

  • Dual authentication: API key + optional JWT
  • Multi-tenancy: Organization → project isolation, enforced in middleware
  • RBAC: 5 levels (platform_admin, owner, admin, editor, viewer; see Roles & Permissions)
  • Encryption: AES-256-GCM at rest, TLS 1.2/1.3 in transit
  • Audit immutability: Append-only traces, blockchain-anchored evidence
  • Failure modes: Configurable fail-open or fail-closed
  • Circuit breaker: All SDKs include a client-side circuit breaker (5 failures → open → 30s cooldown)

On this page