Skip to content
Platform architecture

The engine behind
every verified number.

Kernalin isn't a model with a UI bolted on. Every proposed speedup runs the same disciplined pipeline — check it's correct, prove it isn't cheating, measure it honestly, then ship it — with a permanent record at every step. This is what makes the guarantee real, and what your engineers can audit line by line.

The lifecycle

Eight stages, one contract.

Every workload moves through the same ordered pipeline. The order is the point: correctness before timing, anti-cheat before a verdict, a verdict before anything ships.
01
Intake
Accept & statically scan
02
Verify
5-stage correctness gate
03
Measure
Controlled timing
04
Decide
Bayesian ROPE verdict
05
Anti-cheat
Input-differential + op-coverage
06
Optimize
LLM Coder / Judge loop
07
Gate
Tiered CI regression gate
08
Report
Auditable run-log
Contracts-first architecture Sandboxed, network-isolated execution Anti-reward-hacking by construction Immutable audit trails RL-ready trajectory logging Proven end to end on an H100
01 Available

Intake

Accept and statically check Triton, PyTorch, CUDA, and ONNX workloads against a strict contract.

02 Available

Verify

A 5-stage correctness gate runs before any timing — smoke, shape sweep, adversarial, determinism, edge cases.

03 Available

Measure

L2-flushed, CUDA-graph-captured timing over a full latency distribution; clocks locked when the host permits, otherwise labelled AS_DEPLOYED.

04 Available

Decide

A Bayesian ROPE verdict against the GPU noise floor: credibly faster, equivalent, or regressed.

05 Available

Anti-cheat

Input-differential and operation-coverage checks — independent, so a reward-hack has to beat both.

06 Available

Optimize

A Claude Coder / Judge loop proposes kernel variants, each fed back through the same gauntlet.

07 Available

Gate

A tiered CI regression gate blocks anything that would ship slower or wrong.

08 Available

Report

An immutable, auditable run-log with a metric-diff you can reason about after the fact.

Megakernel verification

A validator can't certify the compiler it ships with.

Whole-model megakernel synthesis fuses an entire forward pass into one program of tasks across SM queues. Kernalin re-derives the safety invariants from the serialized .amk.json — in pure stdlib, with no shared code path with the compiler that produced it — and demands a happens-before witness for every read of a written buffer. Deadlocks, races, and the analytic bandwidth floor, checked structurally. Op-agnostic by design.
kernalin · megakernel audit .amk.json · no AMK import
SM 0SM 1SM 2 EMBED GEMV_TILE RMSNORM ROPE ATTENTION KV_APPEND GEMV_TILE SILU_MUL ADD
Deadlock
none
Races
none
Soundness
SCHEDULE_ONLY

Race-free proved by an explicit happens-before witness per read — not an opinion. Functional correctness still rests on the instruction obligations. The verdict says exactly that.

Design principles

Properties the architecture guarantees.

These aren't features you toggle. They're invariants of the engine — true of every run, by construction.

Contracts-first

The editor, the CLI, and CI share one contract for what a kernel is and what "correct" means. Nothing downstream can disagree about the interface.
Available

Sandboxed execution

Every candidate runs in an isolated sandbox with resource limits. Untrusted generated code never touches the host or a neighbor.
Available

Network-isolated

Execution has no egress. A kernel cannot phone home, fetch a cached answer, or exfiltrate your workload — it only computes.
Available

Immutable audit trails

Every stage writes an append-only record: inputs, verdicts, timings, and the exact candidate. The log is the source of truth.
Available

RL-ready trajectory logging

Each optimization run is captured as a structured trajectory — states, actions, and verified rewards — ready to train the loop that produced it.
Preview
Autonomous agents

Three agents share one verified engine.

The optimization loop is driven by three specialized agents. Each consumes the pipeline's telemetry, and each hands its output back through the same verification gauntlet — so autonomy never means unchecked.
Agent

Optimization Agent

Consumes profiling telemetry, generates optimization hypotheses, and scores confidence.

outputs ranked recommendations
Agent

Benchmark Agent

Runs multiple workload variants, compares results, and selects the fastest implementation.

outputs verified winner
Agent

Regression Agent

Compares baseline metrics, detects anomalies, and triggers proactive notifications.

outputs early warning
telemetry optimize benchmark verify verified speedup
Why trust the pipeline

Trust isn't a promise. It's the order of operations.

A generated optimization is a hypothesis until the pipeline proves otherwise. These are the structural reasons a Kernalin verdict means something the moment you read it.
Timing never precedes correctness

A candidate is measured only after it clears the correctness gate. A fast wrong answer is not a result — it is rejected before a stopwatch starts.

Two independent anti-cheat families

Input-differential and operation-coverage checks close different gaps. A kernel that games one still has to survive the other.

Statistics over vibes

The decision is a Bayesian ROPE verdict against a measured noise floor — never a naive percentage that hardware jitter can fake.

Refuse rather than guess

Where Kernalin cannot measure or prove something — no counter access, no clock control, an unsupported PTX opcode in the megakernel verifier (research preview) — it says so instead of certifying.

Early access is open

See the whole pipeline in motion.

Bring a contracts-first, verification-gated engine to your GPU workloads. Join the early-access program.