JarvisX
Quality Engine

The 13-Layer Quality Engine

Every conversion passes through 13 layers of deterministic and AI-driven validation. 90%+ of artifacts clear validation, with per-line provenance on every output.

JarvisX 13-layer quality engine diagram
Drag to pan ยท use controls to zoom
1

Per-file dialect detection

Each artifact is scanned to detect its source dialect before conversion.

2

Chunking

Large artifacts are split into context-safe chunks that preserve statement boundaries.

3

LLM conversion

Complexity-adaptive prompting drives the Claude Sonnet batch conversion.

4

Sanitization

Fence stripping, comment cleanup and output normalization.

5

Deterministic rewrites

INTERVAL fixes, type mapping and dialect-specific transforms applied in code.

6

Schema engine

DDL type fixes and clause cleanup for schema artifacts.

7

sqlglot transpilation

AST-level transpilation cross-checks the LLM output against a parser.

8

Syntax validation

SQL parse and Python AST checks catch malformed output early.

9

Compile-friendly validation

Output is validated to be compile/parse-clean on the target engine.

10

Auto-repair loop

A capped Claude Haiku repair pass fixes failed conversions automatically.

11

Sync reconversion

Empty or placeholder outputs trigger a synchronous re-conversion.

12

Semantic scoring

LLM-based semantic scoring on a sampled subset measures meaning preservation.

13

Blended quality score

70% deterministic + 30% semantic produces the final confidence score.