Skip to main content
puodziukas.dev›CASES › DETERMINISTIC GATE BATTERY

For teams shipping AI-assisted work

Case study, verification engineering

Two AI Reports Claimed a Pass on Failed Work

I built a deterministic gate battery for my own AI-assisted work, with no customer system involved.

Hire me - remote W2Résumé (PDF)

Two AI model reports claimed a pass on work that had failed, and the battery caught both before anything shipped, so each false pass cost a rejected report instead of a false green.

Topographic data-mesh backdrop in navy and royal blue

Limit: the battery catches the failure classes it lists and misses the rest.

A deterministic gate battery caught false-green AI reports before they shipped. No public replay of these reports.
An AI model reported the same text contrast ratio on both the light theme AND the dark theme - one ratio on two different backgrounds. Impossible. Recomputed from relative luminance, the dark theme was an accessibility failure labeled as a pass. A second model regressed a contrast score and reported it as an improvement. Neither shipped.

The Failures

AI model #1 (accessibility audit)
AI reported: The light-theme and dark-theme contrast ratios were reported as the same value.
Reality: Recomputed from WCAG AA relative luminance: light passes, dark fails.
Caught by: The contrast-usage-aware gate: applies the WCAG AA threshold floor and calculates per theme from pixel samples
No - gate RED, rejected before preview. No public replay.
AI model #2 (design readability pass)
AI reported: Body text accessibility score reported as improved.
Reality: The ratio regressed. Still above the AA floor, but the direction is a reversal.
Caught by: The canon-sync gate: commits must list the live metrics verbatim; regressed metrics spike the diff
No - gate RED, commit aborted. No public replay.

What Mutation-Proven Means

A gate is only counted after it has flipped RED on a planted defect AND stayed GREEN on a coincidental-green control. This proof standard is higher than "the gate works on real defects" - it requires explicit evidence that the gate actually detects the failure class it claims to cover.

The gates in the battery run on every commit. Two of them caught AI model runs that reported a pass on work that had failed. The battery catches the failure classes it lists. It misses the rest.

The Gate Battery

A deterministic gate battery runs on every ship; a representative sample is shown below.

GATE 01
TypeScript: zero implicit any
GATE 02
Build: tsc --noEmit exits 0
GATE 03
Palette: royal blue + neutrals only (no hex literals)
GATE 04
Mobile: 375px viewport passes all interactions
GATE 05
Semantics: no div when button needed
GATE 06
Contrast: WCAG AA pre-verified per theme
GATE 07
Contrast-usage-aware: scores mutations + regression detection
GATE 08
Accessibility: ARIA, skip-links, 44px touch targets
GATE 09
Copy lexicon: build fails on any term from a locked list of marketing-filler words
GATE 10
Canon sync: every metric the site renders must match anchors.ts + claims-canon.json
GATE 11
Claims gate: every outward number needs a public claims row, or the build fails
GATE 12
Routes: no broken links on live server
GATE 13
Performance: LCP gate, CLS gate, JS bundle size budget
GATE 14
SEO: unique title+desc+canonical per route
GATE 15
Security: zero secrets, full HSTS/CSP headers, npm audit clean of high and critical findings

Why This Matters

A model's "accessibility passed" is a claim until a gate checks it. In a live system that check runs independently, before the claim reaches a decision boundary.

A deterministic gate battery is the layer that translates claims into provable statements. The gate knows the implementation detail (pixel colors, WCAG definitions, live file state). The model does not. The architecture that ships is: model generates output -> human designs a deterministic oracle that checks the output -> the oracle's verdict is what ships.

Two AI reports were rejected by this battery. The battery rejects any report in the same failure classes as the failures listed above: scoring systems that do not understand context, and changes that invert their own metrics.

# Verification engineering contract if model_output_passes: # model_output is a CLAIM for gate in gate_battery: gate_verdict = oracle(model_claim, ground_truth) if gate_verdict == RED: # reject, do not ship return FAIL # all gates GREEN: consensus between model and deterministic oracle return SHIP
PROOF
✓Deterministic gate battery - Every check; one RED blocks the commit
✓False-greens caught before ship - Contrast ratio impossibility + score regression reported as improvement
✓Reproducible - Gate definitions locked in code, every check is deterministic and replayable
Hire me - remote W2

verification-proven - Remote - open to mid-level and senior IC roles

RELATED CASES
Eval & Release Gate ->Agentic Fleet + Deterministic Verification ->

How to verify

Walkthrough on request: michael@puodziukas.dev.

Roles this relates to (private, walkthrough only): AI Evaluation Engineer, QA / Test Automation Engineer.