Engineered for Autonomous Reliability
Inside the CadreGPT execution runtime: Redis locks, state machine transitions, metered tool dispatch, and tamper-proof evidence trails.
1. Strict State Machine
Tasks follow deterministic states (PENDING → RUNNING → AWAITING_APPROVAL → COMPLETED / FAILED). Invalid transitions are mathematically rejected.
2. BullMQ & Redlock Concurrency
Distributed workers maintain heartbeat leases. Crashed worker nodes release task locks automatically for zero-downtime recovery without duplicate execution.
3. Cloudflare R2 Artifact Vault
Agent outputs, generated code, diffs, and PDF receipts are written to S3-compatible R2 storage with zero egress fees and verifiable download links.
The Systems Behind the Governed Lifecycle
Beyond the execution core, CadreGPT ships the subsystems teams need to evaluate, observe, ground, guard, version, and publish agents inside one workspace.
Agent-to-Agent (A2A) Protocol
Agents invoke subordinate specialized agents with structured parameters, bounded recursion, and provenance tracing down the organizational chart.
Persistent Metric Time-Series Store
Historical metrics are persisted in PostgreSQL with time-series indexing, enabling period-over-period trend analysis, scoring, and attribution.
Automated On-Call Paging Alerting
The AlertService continuously evaluates BullMQ queue backlogs and task failure rates, automatically paging on-call engineers via webhooks and email.
Evaluation & Dry-Run Harness
Versioned eval datasets and a dry-run playground gate agent changes before promotion, scoring a candidate revision against the same prompt set as the current one.
Distributed Trace Store
Runs emit span-level telemetry (model calls, tool dispatch, tokens, latency) streamed over Server-Sent Events and persisted for post-execution review.
Vector Knowledge Retrieval
Workspace documents are embedded into pgvector-backed indexes and retrieved under strict per-workspace scoping to ground agent answers.
Governed Agent Memory
Cross-run memory is tenant-partitioned with configurable TTL and on-demand deletion, so retained context never leaks across workspaces.
Policy Guardrail Engine
Runtime policies enforce PII redaction, JSON output schemas, topic bounds, and per-run cost ceilings before an action executes.
Agent Lifecycle Management
Agent definitions are revisioned with diff, promote, and rollback, making every prompt or model change auditable and reversible.
MCP Tool Gateway
Model Context Protocol servers are registered and their tools discovered automatically, then handed to agents under the same approval gates.
Embed Token Gateway
Agents publish through hashed, origin-locked, rate-limited embed tokens that back both the chat widget and public API endpoints.
Handoff Inbox
Conversations route to a workspace-scoped human handoff inbox with claim, thread, and resolve states when an agent needs a person.
Workspace Analytics
Per-workspace reporting aggregates spend, run volume, success rates, and latency so the AI workforce is measurable.
Architecture & Compliance FAQs
Deep-dive into our execution runtime, enterprise security isolation, and compliance standards.
Explore the Platform in Action
Ready to inspect the execution traces, streaming logs, and approval gates?
Launch Free Sandbox Workspace →