ThetaZero Trust Pack
Architecture overview, security model, audit trail samples, and compliance documentation for enterprise security reviews and legal due diligence.
Architecture Overview
Security Model
- Parameterized SQL queries — SQL injection structurally impossible
- CSRF state-parameter validation on all OAuth callback flows
- CORS restricted to allowlisted origin domains
- Content-Security-Policy headers served on all HTML responses
- Dependency vulnerability scanning on every CI build
- Production database access restricted to application servers only — no public exposure
- Environment variables managed via secure vault — never committed to source control
- Penetration testing scheduled Q2 2026 — results to be published
Compliance Evidence — Sample Artifact
Every agent execution produces a signed execution record exportable for compliance audits. The following is a representative sample artifact — fictional data demonstrating the structure and fields of a real export. Sensitive fields (e.g., OAuth token hashes) are redacted in actual exports. See the full sample evidence package → See a real, annotated evidence pack walkthrough →
{
"execution_id": "exe_01hx9k2m3n5p7q8r",
"schema_version": "2.0.0",
// Identity & Ownership
"company_id": "cmp_7f3a2b",
"agent_id": "agt_compliance_auditor",
"agent_name": "EU AI Act Compliance Auditor",
"triggered_by": "user:usr_4c1e9d",
"trigger_type": "manual",
// Timing
"enqueued_at": "2026-04-08T09:14:22.301Z",
"started_at": "2026-04-08T09:14:23.104Z",
"completed_at": "2026-04-08T09:14:47.882Z",
"duration_ms": 24778,
// Compute Provenance
"compute_source": "theta_edgecloud",
"compute_node_id": "node_tec_us_west_7",
"compute_region": "us-west",
"tee_enabled": true,
"tee_attestation_hash": "sha256:3f7a...e291",
// Model Used
"model": "claude-opus-4-5",
"model_provider": "anthropic",
"prompt_version": "v3.2.1",
// Input Summary (no PII stored in audit log)
"input_summary": {
"task_type": "compliance_audit",
"input_tokens": 4820,
"context_sources": ["github_repo", "uploaded_policy_docs"],
"pii_detected": false
},
// Output Summary
"output_summary": {
"status": "completed",
"output_tokens": 2134,
"tools_used": ["read_file", "search_code", "create_report"],
"tool_calls_count": 14,
"output_hash": "sha256:9b2c...f447"
},
// Cost
"cost": {
"input_cost_usd": 0.0241,
"output_cost_usd": 0.0641,
"total_cost_usd": 0.0882
},
// Audit-Log Anchor
"audit_chain": {
"merkle_leaf_hash": "sha256:d4e1...b882",
"merkle_root_hash": "sha256:7f3c...a119",
"batch_anchor_id": "batch_29841703",
"anchored_at": "2026-04-08T09:15:00.000Z",
"batch_status": "sealed"
},
// Verification
"signature": "ed25519:MEQCID...AAA==",
"signed_by": "thetazero-audit-signer-v1"
}
merkle_leaf_hash and merkle_root_hash are cryptographically verifiable. Any party with the signed audit export can independently confirm the audit trail has not been tampered with by checking the hash chain.
GET /api/v1/executions/:id/audit-export). Enterprise plans include scheduled automated audit package delivery to S3/GCS buckets. This is generated from your actual usage data.
Data Residency & Retention
| Data Type | Storage Location | Encrypted at Rest | Retention |
|---|---|---|---|
| User accounts & credentials | Neon PostgreSQL (AWS us-east-1) | ✓ | Until account deletion + 30 days |
| OAuth tokens (GitHub, Gmail, etc.) | Neon PostgreSQL — AES-256-GCM field encryption | ✓ | Until connection revoked |
| Agent execution logs | Neon PostgreSQL (AWS us-east-1) | ✓ | 90 days (enterprise: configurable) |
| Audit trail hashes | ThetaZero audit log store | N/A — hashes only, no PII | Permanent (append-only) |
| Task inputs & context | In-memory during execution only | N/A — not persisted | Zeroed on task completion |
| Agent outputs / reports | Neon PostgreSQL (AWS us-east-1) | ✓ | 90 days (enterprise: configurable) |
| Media uploads (if used) | Cloudflare R2 (configurable region) | ✓ | Until deleted by user |
| Analytics / telemetry | Internal PostgreSQL — anonymized | ✓ | 13 months rolling |
SOC 2 Readiness
ThetaZero does not yet hold a SOC 2 Type II certification. We are building toward it deliberately — below is an honest summary of where we are, what controls are already in place, and our target timeline.
Existing Controls Mapped to SOC 2 Trust Service Criteria
- CC6.1 — Logical access security: JWT auth, SHA-256 hashed API keys, OAuth scoped to minimum permissions, multi-tenant row-level isolation
- CC6.7 — Transmission encryption: TLS 1.2+ on all connections, HSTS headers, no HTTP endpoints
- CC7.2 — System monitoring: Application health endpoints, error tracking, execution log streaming, real-time cost monitoring
- CC8.1 — Change management: All changes via pull requests with review, CI/CD pipeline with lint and test gates, feature branch workflow, no direct commits to main
- A1.1 — Availability monitoring: Render uptime monitoring, auto-recovery on crash, database connection pooling with failover
- CC2.2 — Risk assessment program: Formal risk register in progress — scheduled Q2 2026
- CC1.1 — COSO framework / organizational controls: Security policies being documented Q2 2026
Download Trust Pack
ThetaZero Trust Pack — April 2026
This page is formatted for print-to-PDF. Use your browser's Print function (Cmd/Ctrl + P → Save as PDF) to generate a clean PDF copy suitable for sharing internally with compliance, legal, or risk teams.
Talk to Our Security Team
Have questions not answered here? We respond to enterprise security reviews within 2 business days.