Painter

Explore

Validation Pipeline Inspector

Explore the graduated cost filter: Tier 0 pixel checks, composite scoring, and tier classification.

After a tile is generated, it goes through a triage. Most tiles pass in under 10ms at no cost — six fast pixel checks confirm the seam is clean. A tile that scores ambiguously gets a quick AI look. Only tiles at complex boundaries or with active constraints get the full review. On a 20×20 map this keeps validation cost around $3–4 instead of $16+, with no loss in quality.

It uses a three-tier validation system to minimize cost. Tier 0 runs free pure-code checks (histogram, gradient, SSIM, palette ΔE, repetition). Only borderline or constrained tiles escalate to VLM-based tiers 1 and 2.

Quality gates in under 10ms

After a tile is generated, it must pass quality checks before being accepted. The pipeline runs 6 pure-code checks in under 10ms: histogram similarity (do colors match?), gradient alignment (do textures flow through?), SSIM (structural similarity), palette drift (has the color scheme wandered?), and repetition detection (is this tile identical to its neighbor?). Each check produces a score; they combine into a weighted composite. Tiles scoring 0.6+ pass. Below 0.4 fail. In between? Escalate to AI validation.

Theory: Validation Toolkit → Theory: Information Theory →

What Histogram Checks See

Matching histograms — pass
Matching histograms — pass
Mismatched — fail
Mismatched — fail

Synthetic Tile Pair

Tile A

Tile B (neighbor)

Check Results

Histogram Similarity 0.732
Gradient Alignment 0.760
SSIM Structural 0.737
Palette ΔE 5.8
Repetition Similarity 0.625

Composite Score

Seam (hist + grad + SSIM) ×0.4 0.743
Texture (SSIM + grad) ×0.25 0.749
Palette (ΔE) ×0.2 0.425
Repetition ×0.15 1.000

Composite

0.719

accept

Tier Classifier

Tier 1

Tier 1 — VLM Coherence ($0.01-0.03)

• tile is at grid boundary

Typical Distribution

Tier 0 (pixel)
70%
Tier 1 (VLM seam)
20%
Tier 2 (full VLM)
10%