For deeper diagrams, see Architecture diagrams. QWED separates untrusted model translation from deterministic verification so you can enforce AI reliability, tool call verification, and zero-trust policy boundaries at runtime.
Core principle
Translation is useful but untrusted. Verification is the trust anchor.Layered architecture
1) API gateway
- Authentication and authorization
- Rate limiting and tenancy controls
- Request routing and transport security
2) Translation layer (untrusted)
- Converts natural language into structured inputs
- Can use any LLM provider (cloud or local)
- QWED treats all output as untrusted until the verifier confirms it
3) Verification engines (deterministic)
4) Agent security guards
Guards inspect tool calls, contexts, and policy boundaries before execution.5) Attestation and audit
Each verification can emit signed evidence for traceability and compliance workflows.v5.2.0 introduces the unified
DiagnosticResult model with 3-layer diagnostics — agent-safe, developer, and proof. See the Verification Diagnostics guide for the full model.Request lifecycle
Security model snapshot
Related verification guides
Verification Diagnostics
The 3-layer DiagnosticResult model — agent-safe, developer, and proof diagnostics.
LLM verification
See how QWED verifies LLM outputs with formal methods instead of probability-only confidence.
AI agent verification
Apply policy enforcement and pre-execution checks to autonomous agents.
Prompt injection defense
Review production guidance for prompt injection defense and OWASP LLM risks.