Interoperability protocols#

This page tells you which array libraries can hand data to RAPTOR, and whether that copies.

The family is built in layers: raptor owns the contracts and depends on nothing; hawk authors and compiles kernels; eagle launches, captures and marshals them (marshals = converts an array into exactly the layout a compiled call expects); downstream packages wire kernels into trainable programs. Each works alone — adding a companion buys speed or a deployment option, never a new ability the family did not already have.

DLPack is the contract#

DLPack is a standard, framework-neutral way for one library to hand another an array — CPU or GPU — without copying it. Every crossing on this page is, mechanically, a DLPack exchange: cupy, torch, NVIDIA Warp and JAX arrays all expose __dlpack__/__dlpack_device__, and the family reads or writes through that protocol rather than through a framework-specific code path. That is what lets the same kernel accept a numpy, cupy, torch, JAX or Warp argument and route to the right provider without the caller naming which one.

For a runnable walkthrough rather than a table, see the zero-copy interop example: a pointer-stable host round-trip through numpy, exercised for real, plus a worked read of what the cupy/torch device rows below certify. A CUDA-capable torch build exchanges device tensors the identical way, through the same __dlpack__ protocol cupy uses — nothing about the crossing changes between the two frameworks on the device side.

Roadmap

tensorflow/keras is DLPack-capable and foreseen — see Certified frameworks below. It is not certified today. Treat any claim that it works now as a documentation bug, not a feature: this page cites a row for every capability it claims, and no row names it. NVIDIA Warp and JAX are no longer in this category: see the certified rows below.

The rule this document obeys#

Every normative claim below either cites an executable certification row, or is explicitly labelled ROADMAP or UNCERTIFIED. There are no uncited capability claims.

The rows are declared once, in raptor.conformance.interop, and each is implemented as a real test in the repository on the other side of the crossing it certifies. That declaration — not this page — is the authority. A doc-sync test asserts that the row identifiers on this page and the declared set are identical in both directions, so the two cannot drift; if they ever disagree, the declaration wins. Read this document as the human-readable face of a machine-checked matrix, never as a substitute for it.

Dispatch is by input type#

A compiled kernel is called directly, and the framework of the arguments selects the execution path: a numpy argument routes to the native host provider, a cupy argument routes to the nvcc + eagle device path. The caller writes one call and gets host or device execution according to what it passed.

The host path is genuinely CUDA-free: no nvcc (the CUDA compiler), no cupy, no eagle anywhere on it. It works by compiling the kernel once, caching the compiled result by a hash of its source, dlopen-ing that compiled library (loading it at runtime the way an OS loads any shared library), and marshalling the call’s arguments (converting them into the exact layout the compiled function expects) before calling in.

The cuda-free half of that claim is certified by running a subprocess with nvcc removed from PATH and with cupy and eagle blocked at import, compiling and executing a kernel there, and asserting inside that subprocess that neither module was ever imported. The provider lookup is a precedence chain — the ordered list dispatch checks before picking a provider — so further providers can be admitted without changing the call surface; no row certifies any provider beyond these two, and none is claimed.

Backends: the execution substrate#

A wired training program — a training loop assembled once from a backend and then run many times, as opposed to one rebuilt from scratch on every call — binds to a backend by name.

Three backends are described here. They belong to a downstream training package that is not part of this repository, so no row of this matrix certifies a backend class (UNCERTIFIED here; the rows named below are the certified parts):

  • eagle — compiled kernels and captured graphs (a GPU’s sequence of launches recorded once, then replayed without re-issuing each one); the performance design point.

  • reference — the reference wiring engine: a plain, uncompiled implementation of the same wiring, run over the host JIT (the CPU kernel path that compiles once and caches the result, with no GPU or cupy involved), used as the correctness baseline the other backends are checked against.

  • torch — described next.

TorchBackend is composition, not interpretation. It routes on the device of the input tensors: CPU tensors go to the reference wiring engine over the host JIT (which is genuinely cuda-free), and CUDA tensors go to the eagle compiled path.

Any other torch device raises CapabilityError naming the device and saying ROADMAP — this covers MPS (Apple’s GPU backend), ROCm (AMD’s GPU compute stack) and XLA (Google’s whole-program compiler). There is deliberately no silent .cpu() fallback: falling back would report success for a device the family cannot actually accelerate. T-DEVICE-FAILLOUD certifies that behaviour, asserting both the exception type and that its message names the offending device.

The CPU input crossing is certified zero-copy by T-BACKEND-CPU-IN-ALIAS and the CUDA input crossing by T-BACKEND-CUDA-IN-ALIAS.

Forward and reverse-mode run as one program-level autograd step — the backward pass flows through the backend boundary exactly as it would through plain torch ops, so a caller’s loss.backward() works unchanged on either leg. The end-to-end eagle-less training loop — forward, backward, and a parameter update on CPU tensors with eagle, cupy and nvcc all unavailable — is gated by a named test in the downstream package’s own suite (test_torch_backend_training.py::test_eagle_less_torch_backend_training_cuda_free) rather than by a matrix row; it is executable and it runs, but it is a suite gate, not a row-level certificate, and this page does not pretend otherwise.

Forward-mode differentiation (JVP) through the backend protocol is ROADMAP. No row certifies it. (This is separate from hawk.diff.jvp, which differentiates at the kernel level and does not go through the backend protocol.)

Certified frameworks, and what “roadmap” means mechanically#

The certified set is numpy, cupy, torch, NVIDIA Warp and JAX. tensorflow/keras is ROADMAP, absent by declaration. The family’s stated horizon includes it; no row certifies it and none pretends to.

“Absent by declaration” is enforced in both directions, and neither direction is ever a skip:

  • a certified framework missing from the gate environment is a failure, raised by certified_framework — the matrix must never skip its way to green;

  • a roadmap framework that turns out to be installed is also a failure, raised by roadmap_framework — because the moment it is present, the claim that nothing exercises it stops being checkable.

A skipped test returns success to the runner. A conformance matrix that skips a framework and reports green certifies nothing, so the matrix rows are built to be structurally incapable of skipping: a scanner discovers every file containing a registered row and rejects skip machinery — skip tokens and availability markers alike — on the registered functions themselves.

Where the rows run#

JAX has its own installation limits, which decide where its rows can run. JAX publishes wheels for Python 3.12 and newer, and no 3.13 free-threaded build; its CUDA 12 build supports Pascal and newer, and its CUDA 13 build supports newer GPUs only (CUDA 13 dropped Pascal). So the thirteen JX-* and STREAM-JAX-* rows run where JAX is installed, and every other environment deselects them with -m "not interop_matrix", the one sanctioned way a row may not run:

environment

rows run

Quadro P2000 (Pascal), CUDA 12, Python 3.12

the local gate

Kaggle T4, CUDA 12 and CUDA 13

the hosted GPU job (Python 3.12 or newer)

any other environment

-m "not interop_matrix"

A row also has legs: the platforms it must pass on, cpu and cuda. Both legs are tests inside the one GPU-capable job, so a row never skips a leg. The JAX FFI rows and the rows of framework code inside an eagle graph declare theirs:

row

cpu leg

cuda leg

JX-FFI-CPU-ALIAS

yes

no

JX-OUT-XLA-OWNED

yes

yes

JX-JIT-INVARIANCE

yes

yes

STREAM-JAX-FFI-ORDER

no

yes

INJ-TIER-NAMED

yes

yes

STREAM-INJECT-STREAM-ORDER

no

yes

STREAM-INJECT-HOST-ORDER

no

yes

T-CHILD-OWNED

no

yes

INJ-LOOP-HOOK

yes

yes

INJ-VJP-CHAIN

yes

yes

INJ-RUN-VJP

yes

yes

INJ-TABLE-LIVE

no

yes

STREAM-JAX-INJECT-ORDER

no

yes

JX-INJECT-HOST

no

yes

JX-LOOP-INVARIANCE

yes

yes

JX-GRAD-TRANSFORMS

yes

yes

T-GRAD-AUTOGRAD

yes

yes

T-GRAD-FUNC

yes

yes

WP-GRAD-TAPE

yes

yes

NP-HOST-ALIAS

yes

no

NP-IN-CPU-COPY

no

yes

CP-IN-ALIAS

no

yes

CP-OUT-ALIAS

no

yes

The gradient rows are shown running in eagle’s JAX, PyTorch and Warp pages.

A row counts only if its test ran and passed on every declared leg. A test that was deselected, skipped or never collected is red, because assert_rows_complete(owner, ran=True) reads the outcomes recorded by the raptor.conformance.pytest_rows plugin, not the imports.

A certified framework missing from a gate environment is still a failure, never a skip: the table says where the gate is run, not where it may be skipped.

Reading the matrix, in miniature#

Before the full 42-row table below, here is how to read any one row. These three all share one crossing class, ALIAS — pointer identity plus write-through: the two sides report the same address, and a write on one is visible on the other:

row

framework

owner

class

certifies

T-IN-CUDA-ALIAS

torch

eagle

ALIAS

a CUDA tensor becomes a zero-copy device view

WP-IN-CUDA-ALIAS

warp

eagle

ALIAS

a wp.array becomes a zero-copy device view

T-BACKEND-CPU-IN-ALIAS

torch

downstream

ALIAS

the CPU backend’s input crossing is a zero-copy view

Four more classes appear in the full matrix: COPY (pointers differ, and mutating either side afterwards leaves the other unchanged), STREAM (certifies ordering, not placement), ENV (certifies a property of the environment — what is absent, or what is refused), and INVARIANCE (the same body agrees across different execution structures, such as eager and jit; no data crossing is being certified). The full certification matrix below defines each in full and lists every one of the 51 rows; the acronyms (ALIAS/COPY/STREAM/ENV/INVARIANCE) are each defined again, in depth, in The two transfer laws further down this page.

The certification matrix#

Fifty-one rows. framework is what the row bridges to; owner is the repository whose suite carries the assertion; class is how data crosses, in the vocabulary defined in the next section.

Nine rows bridge to no framework — their framework column reads —. Four of those are the execution_* rows, each an eagle-internal invariant of the heterogeneous execution contract (the rule that one plugin body must give equivalent results under every eagle execution structure, not only the one it happened to be written against), not a crossing between the family and an array framework.

Four more are the HAWK-* rows: rows that exist only because hawk exists — a round-trip row and two reference-comparison rows (below). The ninth, INJ-TIER-NAMED, says how eagle runs the reader’s own code, whatever framework that code uses.

Every row on this page is declared before the code it certifies is built: the execution_* rows are declared here — like CP-CAPTURE-REJECT and every other eagle-owned row above them — ahead of the eagle-side work (eagle.exec, eagle.plan, the loader eagle.registry.load_manifest) that implements and collects them, and the HAWK-* rows the same way, owner=hawk, ahead of hawk’s own consumers, which hawk now ships. That is the family’s declare-before-build convention, and it stays the rule for new rows: a row may be declared before the capability it describes exists.

HostTeam, DeviceKernel and RankPartition below are eagle’s names for its three execution structures: a team of CPU threads, a single GPU, and a multi-process partition, respectively — the same body can run under any of them.

row

framework

owner

class

certifies

CP-CAPTURE-REJECT

cupy

eagle

ENV

graph capture rejects a non-device input instead of silently allocating during capture

T-IN-CUDA-ALIAS

torch

eagle

ALIAS

a CUDA tensor becomes a zero-copy device view: pointer identity, device-ordinal agreement, and write-through

T-OUT-CUDA-ALIAS

torch

eagle

ALIAS

a caller-provided CUDA output tensor is filled in place, and the engine’s result exports back pointer-equal and write-through

T-IN-CPU-COPY

torch

eagle

COPY

a CPU tensor round-trips as a torch tensor via a copy, write-isolated in both directions

T-BRIDGE-COPY

torch

downstream

COPY

the export bridge (the path that hands a result array out as a tensor) copies before handing out a tensor: the export never aliases the live replay buffer (the buffer a captured graph reuses across replays), and a later forward cannot mutate it

T-BACKEND-CPU-IN-ALIAS

torch

downstream

ALIAS

the CPU backend’s input crossing is a zero-copy, write-through view of the tensor’s storage

T-BACKEND-CUDA-IN-ALIAS

torch

downstream

ALIAS

the CUDA backend’s forward inputs and reverse-mode cotangents alias the device engine’s view

T-DEVICE-FAILLOUD

torch

downstream

ENV

an unsupported torch device raises CapabilityError naming the device and saying ROADMAP — never a silent fallback

STREAM-TORCH-PRODUCER-ORDER

torch

eagle

STREAM

work enqueued on a non-default torch stream before a launch is seen by that launch

STREAM-CUPY-PRODUCER-ORDER

cupy

eagle

STREAM

a device write enqueued before a graph replay, with no synchronisation, is seen by the replay — on a caller stream and on the legacy null stream (CUDA’s original default stream, used when no stream is named) alike

STREAM-TORCH-CONSUMER-ORDER

torch

eagle

STREAM

a torch operation consuming the result immediately, with no synchronisation, reads the finished value

STREAM-IDENTITY

torch

eagle

STREAM

inside the launch context, the device library’s current stream is torch’s current stream

WP-IN-CUDA-ALIAS

warp

eagle

ALIAS

a wp.array becomes a zero-copy device view via eagle.interop.import_buffer: pointer identity, the legacy-DLPack access flag ("unknown"), and write-through

WP-OUT-CUDA-ALIAS

warp

eagle

ALIAS

the reverse crossing, wp.from_dlpack of an eagle-side buffer: pointer-equal and write-through in both directions

STREAM-WARP-PRODUCER-ORDER

warp

eagle

STREAM

a device write enqueued on a dedicated wp.Stream before a consumer import, with no synchronisation, is seen by the consumer exactly when import_buffer is told that consumer’s stream (the DLPack stream-code contract)

JX-IN-CUDA-ALIAS

jax

eagle

ALIAS

a CUDA jax array in a read-only role imports pointer-equal on the same device, reports the legacy-DLPack access flag ("unknown"), gives the analytic result, and is left byte-unchanged

JX-IN-WRITE-REFUSED

jax

eagle

ENV

a jax array in a role the kernel writes (out=, terminated, a mutable plane, a written host buffer) is refused by name, because jax arrays are immutable, and is left byte-unchanged

JX-OUT-CUDA-ALIAS

jax

eagle

ALIAS

the jax result is eagle’s own fresh result buffer, complete at return and never written again; a second call returns a distinct buffer

JX-IN-CPU-COPY

jax

eagle

COPY

a CPU jax array comes back as a CPU jax array via a copy, with correct values and no aliasing of the input

STREAM-JAX-PRODUCER-ORDER

jax

eagle

STREAM

a jax operation still running on the GPU is waited for on the device, with no host block, when eagle imports its result on its own stream

JX-FFI-CPU-ALIAS

jax

eagle

ALIAS

on the CPU platform the JAX bridge reads XLA’s host buffers in place (the addresses the kernel receives are XLA’s own) and its result is a fresh XLA-owned buffer

JX-OUT-XLA-OWNED

jax

eagle

ALIAS

the bridge’s outputs are XLA-allocated and zero where the kernel writes nothing, on an allocator that was dirtied first, except carried-state planes and the mask, which alias their operand; a donated mask comes back at the same address, and a mask that was not donated is left intact

JX-JIT-INVARIANCE

jax

eagle

INVARIANCE

eager, jit, a vmap-folded batch and a lax.scan of steps agree: bit for bit on CUDA and on the exact host profiles, within the ULP contract on native-vector-math

STREAM-JAX-FFI-ORDER

jax

eagle

STREAM

in one jit, a kernel after a long-running XLA op runs on XLA’s stream: the call returns without a host wait and reads the finished values

INJ-TIER-NAMED

—

eagle

ENV

every node’s tier (captured, stream-ordered, host-synchronized, child) is named in the graph’s schedule and drawing, on the GPU and the CPU

STREAM-INJECT-STREAM-ORDER

torch

eagle

STREAM

a stream-ordered node on the reader’s own stream is fenced against the stages around it, across runs, back-to-back enqueues and a second thread, and when it runs first; the host returns before the device finishes

STREAM-INJECT-HOST-ORDER

torch

eagle

STREAM

a host-synchronized node’s work on a non-default torch stream is seen by the next stage

T-CHILD-OWNED

torch

eagle

ALIAS

a torch CUDA graph inserted as a child node keeps its owner alive after the reader drops it; a reset owner and a bare handle are refused by name

INJ-LOOP-HOOK

torch

eagle

INVARIANCE

a per-step node inside a compacting run-until-done loop runs once per step, never writes a finished sample, and agrees between the host loop and the device loop; the step shapes it cannot keep are refused by name

INJ-VJP-CHAIN

torch

eagle

INVARIANCE

a gradient through eagle kernels and the reader’s model, through the reader’s vjp, matches the analytic one, and the model’s parameter gradients accumulate across reverses

INJ-RUN-VJP

torch

eagle

INVARIANCE

gradients through a recorded stepping loop whose step runs the reader’s model before the kernel, through the reader’s vjp, match pure torch autograd, and the model’s planes come back unchanged

INJ-TABLE-LIVE

torch

eagle

ALIAS

weights bound zero-copy are read live on the next launch with no rebuild, and a rebound parameter is refused by name

STREAM-JAX-INJECT-ORDER

jax

eagle

STREAM

a JAX step between eagle stages is ordered on the device, its result stays alive until eagle’s copy of it is done, and the host does not wait

JX-INJECT-HOST

jax

eagle

STREAM

a JAX call in a host-synchronized node is seen by the next stage

JX-LOOP-INVARIANCE

jax

eagle

INVARIANCE

a carried-state kernel in jit(while_loop) gives the run-until-done answer, and grad of a scan over it, with no where, matches a plain JAX reference

JX-GRAD-TRANSFORMS

jax

eagle

INVARIANCE

grad, jit(grad), vmap(grad), jacfwd and jacrev of a kernel match the same law written in plain JAX, and the comparison sees a one-in-a-million error

T-GRAD-AUTOGRAD

torch

eagle

INVARIANCE

backward through a kernel matches the same law in plain torch, a finished sample gets no gradient, and gradcheck (forward AD included) passes

T-GRAD-FUNC

torch

eagle

INVARIANCE

torch.func.grad, jvp and vmap of grad through a kernel match the same law in plain torch

WP-GRAD-TAPE

warp

eagle

INVARIANCE

wp.Tape through a kernel matches central finite differences of the same law, in float64 and float32, and a finished sample gets no gradient

NP-HOST-ALIAS

numpy

eagle

ALIAS

a writable NumPy array crosses as a zero-copy view (pointer identity, write-through), a read-only one is flagged read-only, and a copy is told apart

NP-IN-CPU-COPY

numpy

eagle

COPY

a NumPy array given to a CUDA kernel comes back as a NumPy array via a copy, write-isolated in both directions

CP-IN-ALIAS

cupy

eagle

ALIAS

a CuPy array crosses as a zero-copy device view that outlives its producer, with write-through

CP-OUT-ALIAS

cupy

eagle

ALIAS

a caller-provided CuPy output is filled in place, and a result without one is a new CuPy array that does not alias the input

execution_partition_identity

—

eagle

INVARIANCE

the same sample_local/cross_sample_read body produces bit-identical results under DeviceKernel (whole) vs. a 2-way partition vs. a 2-rank RankPartition

execution_host_device_twin

—

eagle

INVARIANCE

the same body’s HostTeam and DeviceKernel results agree within a fixed host/device tolerance band — the band this row’s own test defines

execution_illegal_placement_refused

—

eagle

ENV

a plan placing a body on a structure its declared exec_access class forbids is refused at plan time, naming the violated rule

execution_layout_selfcheck_refused

—

eagle

ENV

a loader refuses a plugin whose ABI tag agrees but whose exported layout sizes disagree (a self-check), and refuses an outright tag mismatch

HAWK-DIFF-POSITIVE-ROUNDTRIP

—

hawk

INVARIANCE

a two-wire compound quantity (one value carried as two linked slots) binds distinct slots and both wires’ values round-trip on the host path — the positive twin of the matching refusal check

HAWK-EXEC-DEPLOY-LOADABLE

—

hawk

ENV

a HAWK artifact loads under eagle.registry.load_manifest + eagle.plan; a v1 loader refuses a v2 artifact and vice versa

HAWK-EXEC-REFERENCE-HOST

—

hawk

INVARIANCE

every fixture kernel under HostTeam/DeviceKernel agrees with HAWK’s own serial host path (the known-correct reference every other structure is checked against), bit-identical where the inner structure is host, banded otherwise

HAWK-EXEC-REFERENCE-RANKPARTITION

—

hawk

INVARIANCE

the RankPartition(2) arm of the same reference comparison, bit-identical for elementwise classes when the inner structure is host

The two transfer laws#

Every crossing between a framework and the family is declared, and the declaration is asserted positively rather than inferred:

ALIAS means pointer identity plus write-through. The row asserts that the two sides report the same address and, where the crossing is bidirectional, that a write on one side is visible on the other with nothing in between.

COPY means distinctness plus write-isolation. The row asserts that the pointers differ and that mutating either side afterwards leaves the other unchanged. A pointer check alone would pass on an accidental copy; the isolation half is what makes the row a contract.

Three further classes appear in the table. STREAM rows certify ordering rather than placement. ENV rows certify a property of the environment — what is absent, or what is refused. INVARIANCE rows certify that the same plugin body produces equivalent results under different eagle execution structures — bit-exact for sample_local/cross_sample_read bodies, or within a fixed tolerance band otherwise. Unlike ALIAS/COPY, an INVARIANCE row certifies no handoff: its two sides are two ways of running one body (two eagle execution structures, or eager and jit).

The output direction through the export bridge is always a COPY. The export path copies unconditionally before wrapping a result as a tensor, whether the underlying array is a scratch buffer or a live replay view. This is deliberate and it is a feature: a program’s buffers are reused across replays, so an export that aliased them would be silently corrupted by the next forward pass. That contract is certified by T-BRIDGE-COPY, which asserts the semantic half — a previously exported tensor survives a later forward with different inputs unchanged — and not merely the pointer half.

One consequence is worth stating rather than leaving as a surprise: no backend row can be an alias in the output direction, on either leg. The two backend alias rows name their direction in their own identifiers for exactly this reason: the claim only ever covered the input crossing, never the output one.

The stream contract#

Stream correctness is certified behaviourally. Rows STREAM-TORCH-PRODUCER-ORDER, STREAM-CUPY-PRODUCER-ORDER, STREAM-TORCH-CONSUMER-ORDER and STREAM-IDENTITY manufacture an adversarial schedule — a long occupying kernel, then a data write queued behind it, then the launch, with no synchronisation anywhere — so that a launch which failed to ride the caller’s stream would read stale data with certainty rather than by luck. Ordering is then asserted on the result. The ordering guarantee itself lives in the graph pipeline’s launch path, which records and waits on events so that a replay observes work already enqueued on the caller’s stream and on the legacy null stream alike.

__cuda_stream__ is ROADMAP. Nothing in the pinned stack produces or consumes it; eagle exchanges streams as a raw handle instead. Certifying the presence of a protocol attribute that nothing calls would have certified nothing, so the family certifies the observable ordering instead.

The full rules (stream codes, event fencing, ownership and access flags, and the named refusals) are in eagle’s interoperability contract.

Manifest key order: strict writer, tolerant reader#

Top-level key order in a kernel manifest is contractual for writers. The Python validator enforces it, and the golden artifacts (committed reference manifests, used as fixtures across the family’s tests) carry it byte-stably, so a manifest produced through the family is reproducible.

The C++ reader is deliberately order-agnostic, and that asymmetry is Postel’s law applied on purpose, not drift (Postel’s law: be strict in what you write, lenient in what you read). Tightening the reader would buy no capability: a wrong-order manifest can only come from a producer that bypassed validation, and the bypass is the actual defect. The tolerance is pinned by a test that feeds the reader a manifest with shuffled top-level keys and asserts it parses, so any future tightening has to be a conscious change of contract rather than an accident.

Schema v2: the execution axis#

schema_version 1 and 2 both load today — a transition bridge, not a replacement. A v1 manifest keeps aether_abi: "aether-abi/1" and must not carry any exec_* key; it plans as legacy — whole-view, single-device, exactly today’s behaviour. A v2 manifest carries aether_abi: "aether-abi/2" plus three new flat top-level keys, inserted between aether_abi and plugins in the writer’s key order:

  • exec_targets — a non-empty list drawn from device/host, no duplicates: which execution structures may run the body.

  • exec_access — one of sample_local, cross_sample_read, cross_sample_write, mapreduce: how the body touches sample-local vs. cross-sample data, declared by the emitter (hawk’s code-generation stage, which writes the manifest) from the trace (hawk’s recorded representation of the kernel), never guessed.

  • exec_op — one of sum, times, max, land: required when exec_access is mapreduce, forbidden otherwise.

Absence of a required key is a load refused, not a default guessed. The keys are flat rather than one nested execution block because the manifest is a strict-key, order-contractual document a C++ text scanner reads — flat keys are the shape this schema already uses everywhere else.

What each install gets you#

The degradation law — dropping an optional dependency may cost speed or a deployment option, but never the ability to run the same program — governs backends. A kernel provider is different — it is the program’s content, not its substrate, so provider presence sits outside the law.

install

what runs

raptor alone

Validate kernel manifests (raptor.schema); check an implementation against the family’s typing.Protocol contracts; read this certification declaration. No kernel compiles or runs.

+ hawk

Author and compile a kernel for a host and/or device target, and publish its manifest. Still does not run it.

+ eagle, host target

Load the compiled artifact and run it on CPU threads (eagle.exec.HostTeam) — no GPU, no cupy, no nvcc anywhere on this path.

+ eagle, device target, + cupy

Capture and replay the kernel as a CUDA graph on the GPU.

+ torch

The T-* rows above: a CPU tensor crosses by copy, a CUDA tensor by zero-copy alias.

Torch devices other than CPU and CUDA are ROADMAP on every row of that table. The torch CPU and CUDA crossings are certified by T-BACKEND-CPU-IN-ALIAS and T-BACKEND-CUDA-IN-ALIAS; the refusal to fake the rest by T-DEVICE-FAILLOUD.

Going deeper (optional)#

Historical context, an edge-case hazard, and the completeness gate’s own fine print — none of it needed to read the matrix above, all of it real.

Row ownership, in transition#

The numpy/cupy/torch crossing rows that may move to hawk stay under their current owner (above) until that migration happens, then are re-owned in one move — nothing duplicated here for them in the meantime.

A reverted design, stated plainly#

The kernel-provider protocol has exactly one facet today: a compiled kernel described by a schema-versioned manifest.

An earlier design added a second, symbolic facet — an evaluable trace that any array namespace could interpret, which would have given the code generator a standalone interpreter and downstream packages a device-agnostic torch backend for free. It was reverted on measured evidence: compiling and dlopening a kernel ran measurably faster than interpreting it on numpy, even for a trivial kernel, so the interpreter would have been a slow path carrying a second semantics to keep in sync. What ships instead is the native host provider described above, and its orphaned protocol declaration was deleted rather than left standing as a promise nothing implemented.

That mechanism may return, scoped to what only it can do: an interpretive basis for torch devices other than CPU and CUDA. That is ROADMAP.

A sidecar nesting hazard#

A separate and unrelated hazard lives in the sidecar reader (the sidecar is the small per-kernel JSON file describing how to call it): a graph-block descriptor embeds nested execution references whose keys share names with top-level keys, so a nested object appearing before its parent’s own key could be read as the parent’s value. That is a nesting hazard, not a key-order contract; it is handled by bounding and masking the nested objects before the top-level scan, and the conformance corpus is written in the adversarial order so the case is executed rather than reasoned about.

What the completeness gate does not certify#

Each owning repository asserts that every row declared for it has a registered test. Read the scope of that guarantee carefully, because it is narrower than it looks.

Registration happens when the test module is imported, not when the test is executed. The completeness gate therefore certifies row presence, not row execution. Two consequences follow, and both are load-bearing:

  • Explicitly deselecting the matrix by marker in a CI job is safe — the rows still register, so the gate does not go falsely red — and it is visible in the job definition rather than hidden in a runtime skip. That is the only sanctioned way a row may fail to run.

  • Because deselection is safe, at least one job must run the matrix without deselecting it, or every job is green and nothing is certified. Any pipeline that adopts this matrix owes that job.

One further constraint: the collected-row registry is per-session, so a partial selection of tests will fail the completeness assertion for the right reason but at the wrong time. Suites containing the completeness assertion must therefore be run whole, in a single process, and not distributed across worker processes.

Everything else on this page is a row, and every row is a test.