Introduction to Zirnay - AI Infrastructure for Decisions
Ultra-low latency System 1 Decision Infrastructure for AI agent reflex gates and real-time transaction guards.
The Headless Reflex Layer for Autonomous AI Agents
As AI applications transition from single-prompt chat interfaces to autonomous multi-agent swarms (such as AWS Bedrock Agent Core, CrewAI, LangGraph, and Cursor agents), agents require split-second deterministic choices: "Is this tool call authorized?", "Is this code candidate relevant?", or "Which sub-agent should handle this ticket?"
β οΈ The Problem: Why Agents Cannot Embed Their Own Reflex Models
Bundling System 1 ML models (such as ModernBERT, BERT, or ONNX runtimes) inside agent containers causes three fatal architectural issues:
- 1. Container Image Limits: Serverless runtimes like AWS Bedrock Agent Core, Lambda, and Cloudflare Workers enforce strict image limits (<50MBβ250MB). PyTorch and weights exceed 1.5 GB.
- 2. 10sβ30s Cold Starts: Ephemeral agents spawn and terminate quickly. Deserializing weights into Python heaps destroys agent turnaround latency.
- 3. Swarm Decision Drift: When 5 sub-agents run internal model copies, checkpoint updates diverge. Upgrading requires rebuilding and redeploying all agent images.
Zirnay externalizes the decision brain. Agents stay ultra-lean (< 50MB) and query an addressable, warm decision data plane that executes in < 4.5ms container P99 (down to < 2.5ms on route cache hits) with mathematical probability calibration and atomic fleet-wide hot swaps.
High-Level System Architecture
Zirnay cleanly separates into three dedicated execution planes:
1. Data Plane (Inferencing)
Sub-2ms in-memory inference runtime. Tensor weights remain warm in volatile RAM, eliminating execution cold-start delays across requests.
2. Control Plane (Governance)
Multi-tenant RBAC, team isolation, model catalog registry, S3/GCS dual-cloud checkpoint lifecycle, and cryptographic versioning.
3. Metering & Billing Plane
Sub-cent Stripe Metered Billing integration. Aggregates completed decision invocation events into Stripe with automated tier threshold guards.
Model Lifecycle: 5 Steps to Production
Every production decision primitive in Zirnay follows five disciplined stepsβfrom registration and schema contracts through training, playground testing, and zero-downtime hot swap:
Quick Verification
Execute a live decision query against your team workspace (acme-financial/fraud-ops) using the cURL snippet below:
curl -X POST https://api.zirnay.com/v1/teams/fraud-ops/models/laya-card-auth/decide \
-H "X-API-Key: zrn_live_98124acme" \
-H "Content-Type: application/json" \
-d '{
"raw_text": "Authorization charge $1,250.00 from IP 185.220.101.4 (Tor Exit Node) to overseas gaming portal",
"query": {
"type": "choice",
"target": "action",
"options": ["APPROVE", "CHALLENGE", "DECLINE"]
}
}'
{
"request_id": "req_88f0b71e-0129-4df3-a5c2-f198129ad410",
"decision": "DECLINE",
"confidence": 0.9842,
"probabilities": {
"DECLINE": 0.9842,
"CHALLENGE": 0.0135,
"APPROVE": 0.0023
},
"checkpoint_id": "chk_89f02c77",
"model_type": "laya",
"execution_nanos": 1842000,
"timestamp": "2026-10-10T22:45:00.000Z",
"metering": {
"event_billed": true,
"unit_charge_cents": 0.015
}
}
{
"error": "Too Many Requests",
"message": "API key 'zrn_live_...' exceeded rate limit of 1,000 requests/sec. Retry after 1s.",
"status": 429,
"retry_after_seconds": 1
}
Rate Limits: Default rate limit is 1,000 requests/sec per API key on Growth Tier; burstable up to 50,000+ RPS on Enterprise. Healthcheck probes (/healthz) are exempt from rate limiting and metering.
Next, explore the comprehensive 5 Steps to Production Guide or review the architectural trade-offs in Model Selection.