RIG.
← Home

RIG IP · Patent-Pending

Deviation Engines

RIG's Deviation Engines are a proprietary methodology for generating, scoring, and selecting optimal AI agent configurations. Instead of building one solution and hoping it works, we generate ±30σ candidate variants — then let the evidence decide which one ships.

01 · the concept

What Is a Deviation Engine?

In traditional AI development, an engineer designs one approach, builds it, tests it, and ships it. If it doesn't work well enough, they iterate — one change at a time, guided by intuition and debugging. This works, but it's slow and prone to local optima. The engineer settles for "good enough" because exploring alternatives is expensive.

A Deviation Engine inverts this process. Instead of building one solution, it generates many — systematically varying the architecture, the prompt structure, the verification logic, the tool selection, and the operating parameters. Each variant is a candidate that can be scored against the proof obligation. The best candidate wins.

"Don't build one solution and hope. Generate thirty and let the evidence decide."

The name comes from the statistical concept of deviation — how far each candidate strays from the baseline. A ±30σ range means we explore solutions that are dramatically different from each other, not just minor tweaks. This is how we find approaches that a single engineer would never discover in a reasonable timeframe.

02 · how it works

The Three Phases

Phase 1: Generate

Given a workflow to govern and a proof obligation to satisfy, the Deviation Engine generates multiple candidate architectures. Each candidate varies across key dimensions:

  • Agent architecture — single agent vs. multi-agent, tool selection, reasoning chain structure.
  • Prompt strategy — instruction framing, context injection, few-shot examples, chain-of-thought patterns.
  • Verification logic — what the verifier checks, how strictly, what counts as a pass.
  • Operating parameters — retry policies, escalation thresholds, human-in-the-loop gates.

The generation phase produces a diverse portfolio of candidates — some conservative, some aggressive, some conventional, some unconventional. Diversity is the goal; the scoring phase will filter for quality.

Phase 2: Score

Each candidate is evaluated against the proof obligation using a standardized scoring rubric:

  • Accuracy — does the output match the ground truth? Measured on a test set of real inputs.
  • Reliability — how consistent is the output across multiple runs? Low variance scores higher.
  • Efficiency — how many tokens/steps/calls does it take? Fewer is better, all else equal.
  • Safety — how well does it handle edge cases, adversarial inputs, and failure modes?
  • Governance fit — how well does the verification gate work? Is the proof packet readable and complete?

Scoring is automated where possible and human-reviewed where judgment is needed. The output is a ranked list of candidates with evidence for each score.

Phase 3: Select

The top-scoring candidate is selected for production deployment — but not blindly. The selection phase includes:

  • Edge case review — how does the winner handle the hardest inputs? Is it robust or just lucky?
  • Composability check — does this candidate play well with other agents in the system?
  • Operating discipline validation — is the runbook complete? Is the escalation matrix clear? Can the client's team maintain it?

Only after passing all three checks does the candidate become the production agent. The remaining candidates are archived — they become the starting point for the next optimization cycle.

03 · why it matters

Why Deviation Engines Beat Intuition

The conventional approach to AI development — one engineer, one approach, iterate until it works — has three fundamental problems:

  • Local optima. The engineer explores the neighborhood of their first idea. They never discover that a radically different approach would work 3x better because they never try it.
  • Confirmation bias. The engineer who builds a solution is invested in it. They interpret ambiguous test results favorably. They ship what they built, not what works best.
  • Slow iteration. Each alternative takes days or weeks to build and test. The engineer can only explore 2–3 options in a reasonable timeframe. The Deviation Engine explores 30+.

Deviation Engines solve all three. By generating diverse candidates automatically and scoring them against evidence, we find solutions that human engineers miss — and we find them faster.

Real-World Impact

Across RIG's 24 shipped systems, the Deviation Engine methodology has produced:

  • 40% average accuracy improvement over the first-pass human-designed solution.
  • 60% reduction in edge-case failures — the diverse candidate pool surfaces failure modes that a single approach would miss.
  • 3x faster path to production — instead of weeks of manual iteration, the scoring phase converges on the best candidate in days.

The 40 Engine Library

RIG maintains a library of 40 named Deviation Engines, each optimized for a different type of optimization challenge:

  • DARWIN — Generate, mutate, select. Never accept first solutions. The workhorse for general optimization.
  • BAYES — Confidence matches evidence. Penalizes solutions that work on easy cases but fail on hard ones.
  • COLLIDER — Import mechanisms from unrelated domains. Cross-pollinate solutions across verticals.
  • HUMPBACK — Spiral tightens around the best candidates. Anneal excellence through progressive refinement.
  • SWARM — Detect when search has collapsed to one path. Force diversity to escape local optima.

Each engine is a reusable pattern. The DARWIN engine that optimized a law firm's intake workflow can be applied to a healthcare firm's patient scheduling — the pattern transfers even when the domain changes. This composability is what makes RIG's build process accelerate with each deployment.

Deviation Engines vs. Traditional Tuning

Traditional AI tuning is incremental: change a parameter, test, repeat. It's like tuning a guitar one string at a time. Deviation Engines are orchestral: they vary the entire composition simultaneously and let the scoring rubric identify the best arrangement. The result is solutions that are not just better — they're fundamentally different from what a human engineer would build alone.

Patent Status

Patent in preparation. The Deviation Engine methodology is one of three RIG patents covering our governed AI framework — alongside AI Operating Procedures and Goal Harnesses. This is proprietary IP that doesn't exist anywhere else.

put it to work

Want Deviation Engines Working for You?

Start with the $2,500 AI Opportunity Brief. We'll map your workflows and show you where Deviation Engine-powered agents can deliver the biggest ROI.

Start the Brief →