The current architecture behind Zdravo's persistent context, policy enforcement, governed execution, and audit evidence. This page describes shipped infrastructure, not a future-state diagram.
Verified against the September 2026 runtime
Zdravo is a Next.js application backed by Supabase PostgreSQL + pgvector, with object storage and model providers behind application boundaries. The runtime connects agent identity, requests, policy evaluation, execution state, evidence, and audit records into one governed path.
AI agent / client
↓
Authentication + governed identity
↓
Request / MCP invocation
↓
Decision Spine + policy evaluation
↓
ALLOW / DENY / ASK_HUMAN
↓
Execution + observation
↓
Evidence + audit
↓
PostgreSQL + pgvectorMemory is stored in PostgreSQL, with pgvector providing semantic retrieval. Structured metadata, ownership boundaries, policies, decisions, observations, and audit state remain in the same database layer.
The runtime does not treat an authenticated request as permission to act. Governed agent identity and organization binding are established first, then policy is evaluated before an action is authorized.
Successful governed execution is completed with durable observation state and evidence. Observation completion is atomic so the runtime cannot silently report a completed action while leaving its evidence transition inconsistent.
MCP is an agent-facing interface, not a bypass around governance. Requests entering through the MCP server are authenticated and associated with the governed organization and identity before protected actions proceed.
Security is enforced at multiple layers: application authentication, organization and identity binding, PostgreSQL row-level security, tightly scoped database functions, and fail-closed runtime transitions.
The production path favors explicit state transitions and recoverable asynchronous work over silent success. The runtime records failure conditions instead of allowing infrastructure errors to become authorization success.
Zdravo is not presented here as having a completed SOC 2 certification, universal SSO/SCIM availability, guaranteed uptime percentages, or a second vector database. Those are either in progress, enterprise-specific, or outside the current shipped architecture and are documented separately where applicable.