Online Evaluations in Production: Deterministic Sampling, Asynchronous Judges, Per-Category Drift Alerting, and Shadow Deployments
Quickstart | Why eddy? | Production Drift Architecture | Shadow Deployments | Author Reviews | Feature Matrix | The Complete TideOS Eval Kit | Contributing
Deploying agent systems, prompts, and language models to production is only half the battle. Offline evaluations (Tools 1 to 12) prove that an agent system worked against benchmark fixtures yesterday. Online evaluation in production proves that it continues to work on live user traffic today.
Production teams face three primary dilemmas:
- Cost of 100% Evaluation: Evaluating 100,000 live traces per day with LLM judges at $0.004 per call costs $400/day ($146,000/year).
eddysolves this with deterministic hash-based sampling (e.g. 10.0% default, 20.0% for high-risk retrieval) using Inverse Probability Weights (IPW) for statistically unbiased estimation, slashing annual evaluation spend by 85% to 95%. - Silent Category Drift: A global average pass rate masks regressions in high-stakes categories. If overall traffic pass rate stays at 94%, but retrieval faithfulness slips from 96% to 75%, users experience hallucinations and data leakage.
eddyapplies Page's CUSUM control charts and Wilson score intervals independently per failure category, alerting on-call immediately when a specific category drifts. - Risky Production Rollouts: Deploying a new prompt or fine-tuned model directly to users risks regressions.
eddyruns shadow deployments: real production traffic inputs are mirrored asynchronously to the candidate model with a strictuser_visible: falseisolation firewall. Candidate outputs are evaluated against live outputs using exact paired McNemar significance tests before promoting to users.
flowchart TD
A["Live Production Traffic"] --> B{"Deterministic SHA-256 Sampler"}
B -->|"Sampled Traces (e.g. 10%)"| C["Async Judge Pool (Bounded std::thread)"]
B -->|"Bypassed Traces (90%)"| D["Live Users (Zero Latency Impact)"]
C --> E[("Sealed Append-Only Verdict Ledger")]
E --> F["Per-Category CUSUM & Wilson Drift Detector"]
F --> G{"Drift Detected?"}
G -->|"No"| H["Status: Healthy (Log OTel Spans)"]
G -->|"Yes"| I["[ALERT] Page On-Call / Quarantine Model"]
B -->|"Sampled Traces"| J["Shadow Replay (user_visible: false)"]
J --> K["Paired Exact McNemar Hypothesis Test"]
K --> L{"Candidate Status"}
L -->|"No Regression & Meets Floors"| M["[PROMOTE] Approved for Production Traffic"]
L -->|"Regression Detected"| N["[REJECT] Candidate Blocked"]
cargo build --release
# Stripped standalone binary: target/release/eddy (0.92 MB)./target/release/eddy sample --spec packs/softfactory.toml --traces packs/fixtures/production_traces_clean.jsonl --output sampled_traces.jsonl./target/release/eddy judge --traces sampled_traces.jsonl --ledger verdicts.ledger.jsonl./target/release/eddy drift --spec packs/softfactory.toml --verdicts verdicts.ledger.jsonl./target/release/eddy shadow --spec packs/softfactory.toml --traces packs/fixtures/production_traces_clean.jsonl --candidate packs/fixtures/candidate_shadow_verdicts.jsonlRather than maintaining external state or random number generators, eddy computes:
bucket = sha256(salt + ":" + trace_id) mod 10000
A trace is evaluated if bucket < rate_bp. Rare or critical categories (e.g. retrieval tenant isolation) can be oversampled at 2000 bp (20.0%) while bulk chat is sampled at 500 bp (5.0%). Inverse Probability Weights:
w_i = 10000 / rate_bp
guarantee statistically unbiased population pass rate estimations.
To detect shifts in failure rates faster than simple threshold checks without false alarms:
S_0 = 0
S_t = max(0, S_{t-1} + (x_t - p_0 - k))
where
- Warning alert:
$S_t \ge h_{\text{warn}}$ - Page on-call alert:
$S_t \ge h_{\text{page}}$
When LLM judges have known Sensitivity (TPR) and Specificity (TNR) from Tool 9 (gavel), eddy applies the Rogan-Gladen estimator:
p_true = (p_obs - (1 - TNR)) / (TPR + TNR - 1)
This prevents judge classification noise from triggering false drift alarms.
eddy enforces a zero-trust shadow deployment model:
-
User Isolation Verification: Every candidate shadow record must satisfy
user_visible == false. If any candidate output is marked user-visible, the gate fails immediately with a security isolation error. -
Paired Exact McNemar Hypothesis Testing: Computes 2x2 discordance tables (
$b$ regressions vs$c$ improvements) between live baseline and shadow candidate on identical trace IDs. Evaluates exact two-sided binomial tail probabilities to separate genuine regressions from statistical noise. - Zero Global Score Masking: A candidate that improves conversational fluency cannot be promoted if retrieval grounding or tool schema adherence regresses. Every category must independently satisfy its tolerance.
eddy is designed to satisfy the exacting engineering standards of three leading software and evaluation philosophies:
- Sub-1 MB Standalone Binary: Compiles to a
0.92 MBstatic binary withopt-level = "z",lto = true, andstrip = true. Zero C/C++ FFI, zero dynamic linker requirements. - Instantaneous Execution: Evaluates trace datasets, computes Wilson bounds, and runs CUSUM state transitions in under 10 milliseconds without Python or Node.js runtime baggage.
- Zero-Friction Terminal UX: Employs clean, high-contrast ANSI terminal tables locally, standard JSON envelopes (
HarnessEnvelope<T>) for automation, and native GitHub Actions step summaries ($GITHUB_STEP_SUMMARY) in automated workflows. - Strict Typography Discipline: Zero em-dashes and zero en-dashes across all source files, documentation, and error strings.
"When a tool starts in 2 milliseconds, weighs less than 1 megabyte, has zero runtime dependencies, and never leaks memory or panics, developers actually use it every day. That is the essence of extreme software craft."
- Closing the Eval Loop: Connects pre-merge CI gates (
weir) to real-world live traffic monitoring. Offline benchmarks verify synthetic prompts;eddyverifies real user inputs. - Production Economics at Scale: Evaluating 100% of high-volume traffic bankrupts teams.
eddyuses deterministic basis-point hash sampling with Inverse Probability Weights (IPW), reducing evaluation token spend by 90% while providing unbiased population accuracy estimates. - Zero-Exposure Shadow Deployments: Replays production traffic against candidate prompts and fine-tuned models with a strict
user_visible: falseinvariant, testing candidate vs baseline on identical live user queries before promoting. - Open Standards Observability: Native generation of W3C OpenTelemetry spans and Mermaid sequence/state diagrams for seamless integration with enterprise observability platforms.
"Most LLM evaluation tools work well for demos but fall apart under real production volume.
eddybrings statistical rigor to live traffic: smart sampling so you don't overspend, per-category drift detection so hallucinations in retrieval aren't hidden by conversational tone, and safe shadow deployments on real user requests."
- Zero Hand-Waving Statistics: Replaces naive Gaussian approximations with exact cumulative Binomial distribution testing on discordant pairs (McNemar exact test) using log-gamma combinations.
- Page's CUSUM Control Charts: Detects small, persistent shifts in category failure rates using sequential cumulative sum equations, rejecting transient single-request noise while catching systematic degradations.
- Rogan-Gladen Prevalence Correction: Incorporates judge sensitivity (TPR) and specificity (TNR) to mathematically debias observed pass rates from judge classification noise.
- Append-Only Merkle Verdict Ledger: Every evaluated trace verdict is cryptographically hashed and chained to its predecessor using sequential SHA-256 Merkle hashes (
eddy-verdict-v1), providing verifiable tamper detection from genesis to head. - sha256-framed-v1 Lockfiles: Sealing specifications, baseline rates, and category thresholds into cryptographically verified lockfiles prevents silent evaluation drift.
"Evaluating probabilistic models requires deterministic foundations. By combining exact binomial distributions, CUSUM change-point detection, Rogan-Gladen debiasing, and Merkle-chained ledgers,
eddyturns LLM observability into an audited empirical science."
| Capability | eddy (TideOS) |
Naive Cloud Logging | LangSmith / Langfuse | Custom APM Scripts |
|---|---|---|---|---|
| Deterministic Basis-Point Sampling | Yes (SHA-256 IPW) | No (Random/All) | Costly All-Traffic | Rare |
| Per-Category CUSUM Drift Alerting | Yes (Page's Chart) | No (Global rate) | Heuristic | Threshold only |
| Rogan-Gladen Judge Correction | Yes (Built-in) | No | No | No |
| Shadow Deployment Paired McNemar | Yes (Exact binomial) | No | A/B only | Manual shell |
| User Isolation Invariant Firewall | Yes (Enforced) | No | No | No |
| Sequential Merkle Verdict Ledger | Yes (SHA-256 Chain) | No | No | No |
| sha256-framed-v1 Lockfile | Yes (Cryptographic) | No | No | No |
| Single Standalone Static Binary | Pure Rust (0.92 MB) | Cloud Service | Python / Cloud | Node / Shell |
eddy delivers Tool 13 in the complete TideOS evaluation and harness stack:
| Tool # | Binary / Dir | Crate Name | Companion Skill | Release Binary | Core Responsibility |
|---|---|---|---|---|---|
| 1 | reval |
reval |
trace-error-analysis |
2.07 MB |
Trace Error Analysis (Open/Axial Coding), Rubric Gates, MCP Server |
| 2 | gild |
gild |
golden-dataset-contract |
2.46 MB |
Golden Dataset Governance, Schema Validation & Versioning |
| 3 | tessel |
tessel-eval |
synthetic-eval-dimensions |
1.97 MB |
Combinatorial Synthetic Scenario Generator (Pairwise Covering Arrays) |
| 4 | assay |
assay-eval |
deterministic-assertions-first |
2.09 MB |
Deterministic Assertions First (Layers 1-5) & In-Memory RLS |
| 5 | tide-rill |
tide-rill |
offline-retrieval-faithfulness |
1.54 MB |
Offline Retrieval Ranking & Context Faithfulness |
| 6 | keel |
keel-eval |
trajectory-evals |
1.91 MB |
Agent Trajectory Alignment & Step Efficiency (14 vs 3 calls) |
| 7 | temper |
temper-eval |
pass-k-reliability |
0.89 MB |
Multi-Trial Reliability (pass@k vs pass^k at Real Temperature) |
| 8 | parley |
parley-eval |
simulated-user-evals |
1.77 MB |
Simulated Users for Multi-Turn State, Memory & Policy Evals |
| 9 | gavel |
gavel-eval |
llm-judge-calibration |
1.78 MB |
Classifier-Calibrated LLM Judge, TPR/TNR & Rogan-Gladen Debiasing |
| 10 | poise |
poise-eval |
pairwise-judge-bias |
1.89 MB |
Pairwise A/B Position Bias Control, Length Capping & LC-WinRate |
| 11 | plumb |
plumb-eval |
paired-statistical-significance |
0.85 MB |
Paired Statistical Significance, Bootstrap BCa, Exact McNemar & TOST |
| 12 | weir |
weir-eval |
eval-harness |
1.76 MB |
CI Deployment Regression Gate, Per-Category Thresholds & PR Reporting |
| 13 | eddy |
eddy-eval |
online-evals-production |
0.92 MB |
Online Production Evals, Hash Sampling, CUSUM Drift & Shadow Replay |
- Zero Unsafe: Entire crate compiled under
#![forbid(unsafe_code)]. - Zero FFI: Pure Rust dependencies only (
anyhow,clap,regex,serde,serde_json,sha2,thiserror,toml). - Binary Footprint: Stripped release binary budgeted under 2.0 MB (achieved 0.92 MB).
- Universal JSON Envelope: All commands support
--jsonemitting canonicalHarnessEnvelope<T>. - Zero Em-Dash Rule: Strictly enforces zero em-dashes and zero en-dashes across all code and documentation.
eddy is developed by Alex Cinovoj and the engineering team at TechTide AI as part of the TideOS Eval Kit.
For enterprise evaluations, custom agent harnesses, and autonomous development infrastructure, visit techtideai.io.
MIT License. Copyright (c) 2026 TechTide AI.