BOX9
v0.3.0 — February 2026

Box9 Product Specifications

Box9 is an observability and coordination platform for AI agents. It combines a lightweight telemetry SDK with a receipts protocol that turns passive logs into sealed, shareable, verifiable proofs of agent actions.

Platform Overview

Box9 consists of three layers that work independently or together:

01
SDK Layer
Drop-in Python client that wraps OpenAI. Intercepts every completion call transparently. Zero code changes beyond initialization.
02
Telemetry API
RESTful ingestion and query endpoints. Receives events, provides aggregated summaries, supports filtering by model, status, type, and funnel stage.
03
Receipts Protocol
Agents seal proofs of completed actions, query for cached results, verify seal integrity, and trace provenance chains.

SDK Specifications

PropertyValue
LanguagePython 3.8+
Packagelakin-telemetry
Version0.3.0
DependenciesNone (stdlib only: hashlib, sqlite3, threading, urllib)
Initializationtracker = box9.init(endpoint='https://box9.ai', api_key='...')
Client Wrappingclient = tracker.wrap(OpenAI())
Overhead<2ms per call (async batching)
Local StorageSQLite database for offline/local mode
Cloud TransportHTTPS POST to /api/ingest, batched, background thread
Auto-Receipt SealingEvery successful OpenAI call automatically seals a receipt

Telemetry Event Schema

Every intercepted call produces a TelemetryEvent with the following fields. Events are ingested via the /api/ingest endpoint and queryable via /api/events and /api/summary.

FieldTypeDescription
event_idstringUnique identifier (UUID v4)
timestampfloatUnix epoch seconds
modelstringModel identifier (gpt-4o, gpt-4o-mini, etc.)
event_typestringcall_start, call_end, error, tool_call
funnel_stagestringinitiation, reasoning, tool_call, evaluation, completion
statusstringsuccess, error, timeout
prompt_tokensintInput token count
completion_tokensintOutput token count
latency_msfloatWall-clock time for the call
cost_usdfloatCalculated cost based on model pricing
has_tool_callsboolWhether the response included tool calls
tool_namesstring[]List of tools invoked
session_idstring?Groups related calls into sessions
agent_profileobject?Agent name, version, and tags

Receipts Protocol

The receipts protocol is the defining innovation of Box9. A receipt is a sealed, immutable proof of what an agent actually did — not a log line, not a promise. A cryptographically sealed fact.

Receipt Schema

FieldTypeDescription
receipt_idstringUnique ID: rct_<hash_prefix_16chars>
sealstringSHA-256 hash of the receipt body
sealed_atnumberUnix timestamp when sealed
agent_idstringWhich agent produced this receipt
modelstringWhich LLM model was running
actionstringtool_call | llm_response | decision
tool_namestring?Which tool was invoked (if tool_call)
input_hashstringSHA-256 of input (privacy-safe, no raw data)
output_hashstringSHA-256 of output
output_summarystring?Human-readable result summary
tokens_usednumberToken consumption for this action
cost_usdnumberDollar cost of this action
latency_msnumberWall-clock time in milliseconds
statusenumsealed | failed | expired
successbooleanWhether the action succeeded
parent_receipt_idsstring[]Provenance chain — receipts that fed into this one
trace_idstringLinks receipt to telemetry trace
ttl_secondsnumberTime-to-live (default: 300s / 5min)
expires_atnumbersealed_at + ttl_seconds
tagsobjectKey-value pairs for query filtering

Operations

SEAL
Create and store a receipt. The agent says: "I did this. Here's the proof." Server computes SHA-256 hash, assigns receipt_id, stores with four indexes (ID, tool_name, input_hash, timestamp).
QUERY
Search for existing receipts. Fast path: when input_hash is provided, uses input index for O(1) lookup. This is the cache-hit path — skip duplicate API calls.
VERIFY
Check if a receipt's seal is intact and still fresh. Returns: valid, seal_matches, expired, age_seconds. Agents should verify before trusting received receipts.
CHAIN
Trace provenance of a receipt back to its roots. Returns the full ancestor chain with aggregate cost, token, and latency totals.

API Reference

Telemetry Endpoints

MethodEndpointDescription
POST/api/ingestIngest telemetry events (single, array, or batch)
GET/api/eventsQuery stored events with filters
GET/api/summaryAggregated telemetry summary
POST/api/seedGenerate demo data (?sessions=N&clear=bool)

Receipts Endpoint

All receipts operations go through a single unified endpoint: /api/receipts. This ensures all operations share the same serverless function instance for memory consistency.

MethodActionDescription
POSTsealCreate and store a sealed receipt
POST/GETquerySearch receipts by tool, agent, input_hash, tags
POST/GETverifyVerify seal integrity and freshness
POST/GETchainTrace provenance chain to root
GETstatsAggregate receipt statistics
POSTclearClear all receipts (admin)

Authentication

Write operations (POST) require authentication via the x-box9-key header or Authorization: Bearer <key>. Read operations (GET) are open for dashboard consumption.

Security & Privacy

No raw data in receipts: input_hash and output_hash store SHA-256 hashes, never raw prompts or responses.
API key authentication: All write operations require a valid API key validated server-side.
Tamper-evident seals: Any modification to a receipt's content invalidates its seal. Verification is constant-time.
TTL-based trust decay: Receipts expire. Stale data is marked, not silently served. Custom TTLs per receipt.
CORS configurable: Cross-origin access enabled for dashboard/SDK communication. Configurable per deployment.

Roadmap

TimelineFeatureDetails
Q1 2026Persistent StoragePostgreSQL/Redis for production durability
Q1 2026Anthropic SDK SupportTransparent interception for Claude API calls
Q2 2026LangChain IntegrationNative callback handler for chain-level telemetry
Q2 2026Receipt MarketplaceAgents publish receipts for monetization
Q3 2026Multi-Tenant IsolationWorkspace-scoped receipts with access control
Q3 2026Alerting & ThresholdsCost alerts, error spikes, anomaly detection
Q4 2026On-Premise DeploymentDocker-based self-hosted for enterprise

Want to build on this?

Box9 is in private beta. Get early access to the SDK, API, and hosted dashboard.