Fetching latest headlines…
Introducing correctover-patronus: 6-Dimensional Verification for Patronus AI
NORTH AMERICA
πŸ‡ΊπŸ‡Έ United Statesβ€’July 1, 2026

Introducing correctover-patronus: 6-Dimensional Verification for Patronus AI

1 views0 likes0 comments
Originally published byDev.to

The Problem

LLM evaluation tools like Patronus AI excel at hallucination detection, toxicity checks, and semantic relevance. But they don't catch the structural failures:

  • A JSON response missing required fields
  • A function call with malformed parameters
  • Output that violates schema constraints
  • Latency budget overruns silently degrading UX
  • Cost explosions from runaway token usage

These aren't hallucinations. They're verification failures.

The Solution

correctover-patronus is an adapter that runs Correctover's 87 deterministic verification rules as native Patronus evaluators. Every verdict comes with a recomputable proof hash β€” meaning you can verify the verifier.

pip install correctover-patronus

The 6 Dimensions

Dimension What It Checks Example
Structure Output format validity JSON parses correctly
Schema Field presence & types Required fields exist
Identity Semantic relevance to input Response addresses the question
Integrity Forbidden pattern absence No Tracebacks or error messages
Latency Response time budget Under 30s threshold
Cost Token usage budget Under 10k token limit

Usage

Full 6-Dimension Verification

from correctover_patronus import CorrectoverEvaluator, CorrectoverConfig

config = CorrectoverConfig(
    min_confidence=0.7,
    latency_rules={"max_ms": 5000},
    cost_rules={"max_tokens": 4000}
)

evaluator = CorrectoverEvaluator(config=config)
result = evaluator.evaluate(
    task_input="Summarize this article...",
    task_output="The article discusses...",
    task_context={"source": "article", "word_count": 1500}
)

print(f"Overall: {result.score:.2f} ({'PASS' if result.pass_ else 'FAIL'})")
print(f"Proof hash: {result.metadata['proof_hash']}")
for dim, info in result.metadata['dimensions'].items():
    print(f"  {dim}: {info['status']} (score={info['score']:.2f})")

Individual Dimensions

from correctover_patronus import correctover_structure, correctover_integrity

# Check if output is valid JSON
is_valid = correctover_structure(task_output='{"key": "value"}')

# Check for error patterns
is_clean = correctover_integrity(task_output="Result: 42")

Patronus Experiments Integration

from correctover_patronus import correctover_full

# Use in Patronus experiments for systematic benchmarking
results = patronus.evaluate(
    evaluators=[correctover_full],
    dataset=my_dataset,
    experiment_name="correctover-benchmark"
)

Recomputable Proof

Every evaluation produces a proof_hash in the metadata. This hash covers:

  • The input text
  • The output text
  • The verification rules applied
  • The verdict for each dimension

You can re-run the same verification and get the same hash. No black boxes.

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Patronus AI   │────>β”‚  correctover-patronus β”‚
β”‚   Framework     β”‚     β”‚  (this adapter)       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                   β”‚
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚     Correctover SDK         β”‚
                    β”‚  (87 rules, 6 dimensions)   β”‚
                    β”‚  P50 verification: 22us     β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                   β”‚
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚   Verification Request      β”‚
                    β”‚   -> Verdict + Proof Hash    β”‚
                    β”‚   -> Metadata + Tags         β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Performance

  • P50 verification latency: 22ΞΌs
  • Self-healing rules: 87
  • SDK size: 586KB
  • Zero external API calls β€” fully deterministic, local execution

Links

Failover β‰  Correctover.β„’

*Correctover verifies. Patronus evaluates. Together: complete output assurance.

Comments (0)

Sign in to join the discussion

Be the first to comment!