Search ARuntime.com

Find runtime definitions and implementation guidance

Search page titles, summaries, headings, glossary terms, use cases, and runtime-directory entries.

Enter at least two characters.

Vendor-neutral reference for AI runtime architecture

Understand the execution stack behind reliable AI systems.

ARuntime.com maps the layers between model artifacts and production behavior—from compilers and inference engines to serving, distributed execution, edge deployment, and agentic controls.

  1. L6Product and workflow layer
  2. L5Agentic and application runtime
  3. L4Serving and distributed runtime
  4. L3Model and LLM inference engine
  5. L2Compiler and graph runtime
  6. L1Kernels and hardware libraries
  7. L0Hardware and system substrate

AI runtime is an overloaded term.

The phrase may refer to graph execution, inference, model serving, distributed systems, browser and edge execution, or the agentic layer that governs context, tools, memory, policy, and traces. This site separates those meanings.

Canonical definition: An AI runtime is the execution environment that turns model artifacts or model requests into operational behavior. Depending on the layer, it may compile computational graphs, schedule hardware, execute inference, serve models, coordinate distributed workloads, or govern context, tools, memory, policy, and traces.

AI runtime is an umbrella term, not a single product category. Correct architecture begins by naming the runtime layer under discussion.

Seven-layer reference model

The AI runtime stack

Layers describe responsibilities rather than marketing labels. One product may span several layers, and a production system usually composes several products.

Hardware and system substrate

CPUs, GPUs, NPUs, memory, storage, networking, drivers, operating systems, and isolation provide the physical execution boundary.

Compiler and graph runtime

Graph capture, intermediate representations, fusion, partitioning, lowering, scheduling, and memory planning turn models into executable work.

Model and LLM inference engine

Model loading, quantization, prefill, decode, KV-cache management, batching, streaming, and token metrics execute generation.

Serving and distributed runtime

APIs, repositories, versioning, scheduling, autoscaling, traffic management, parallelism, collectives, and failure handling operate models across requests and hosts.

Agentic and application runtime

Identity, context, model routing, tools, memory, approvals, policy, evaluation, evidence, traces, and recovery turn outputs into controlled work.

Product and workflow layer

User experience, domain workflows, business state, review queues, integrations, and outcomes connect runtime behavior to a product.

Seven-layer AI runtime stack

Seven-layer AI runtime stackA vertical stack of seven numbered layers. Layer 0 is hardware and system substrate. Layer 1 is kernels and hardware libraries. Layer 2 is the compiler and graph runtime. Layer 3 is the model and LLM inference engine. Layer 4 is serving and distributed execution. Layer 5 is the agentic and application runtime. Layer 6 is the product and workflow layer. Cross-cutting identity, security, observability, evaluation, cost, and evidence concerns apply across the stack.Layer 6 — Product and workflowLayer 5 — Agentic and application runtimeLayer 4 — Serving and distributed executionLayer 3 — Model and LLM inference engineLayer 2 — Compiler and graph runtimeLayer 1 — Kernels and hardware librariesLayer 0 — Hardware and system substrate
The runtime stack separates hardware, kernels, compilation, inference, serving, agentic control, and product workflow responsibilities.
Text description

A vertical stack of seven numbered layers. Layer 0 is hardware and system substrate. Layer 1 is kernels and hardware libraries. Layer 2 is the compiler and graph runtime. Layer 3 is the model and LLM inference engine. Layer 4 is serving and distributed execution. Layer 5 is the agentic and application runtime. Layer 6 is the product and workflow layer. Cross-cutting identity, security, observability, evaluation, cost, and evidence concerns apply across the stack.

Two paths through the stack

Model execution and request execution intersect, but they are not the same path.

Model execution path

  1. Model artifact or framework graph
  2. Intermediate representation and optimization
  3. Partitioning, lowering, or code generation
  4. Model loading and hardware execution

This path turns model structure and weights into operations that execute on hardware.

Request execution path

  1. Actor, tenant, task, risk, and authority
  2. Context assembly and model routing
  3. Queueing, batching, generation, and tool execution
  4. Validation, policy, evidence, response, and memory updates

This path turns an admitted request into a controlled outcome and a reviewable record.

Where they intersect: The request path selects and invokes model-serving and inference capabilities; the model path performs the compiled execution. Model output then returns to the request path for validation, tools, policy, evidence, response finalization, and memory decisions.

Model execution path

Model execution pathA left-to-right flow begins with a framework graph or model artifact, then creates an intermediate representation, applies graph rewrites and operator fusion, partitions and lowers work for execution providers, plans memory and generates code, loads and warms the model, and executes kernels on selected hardware. Feedback arrows show profiling data informing optimization and scheduling.Model artifactIR captureRewrite andfusePartition andlowerLoad and warmHardwareexecutionEvidence and feedback inform later control-plane decisions
A model artifact becomes executable through import, intermediate representation, optimization, lowering, loading, and hardware execution.
Text description

A left-to-right flow begins with a framework graph or model artifact, then creates an intermediate representation, applies graph rewrites and operator fusion, partitions and lowers work for execution providers, plans memory and generates code, loads and warms the model, and executes kernels on selected hardware. Feedback arrows show profiling data informing optimization and scheduling.

Request execution path

Request execution pathA left-to-right request flow starts with actor and tenant identity, proceeds through admission and risk classification, context assembly and model routing, queueing and inference, optional tool authorization and execution, validation and approval, response finalization, and trace, evidence, and memory decisions. Denied or failed actions branch to recovery and user-visible error handling.Identity andadmissionRisk andcontextRoute andinferenceAuthorize toolsValidate orapproveRespond andpersistevidenceEvidence and feedback inform later control-plane decisions
A production request carries identity, authority, risk, context, model-route, tool, policy, evidence, and memory decisions.
Text description

A left-to-right request flow starts with actor and tenant identity, proceeds through admission and risk classification, context assembly and model routing, queueing and inference, optional tool authorization and execution, validation and approval, response finalization, and trace, evidence, and memory decisions. Denied or failed actions branch to recovery and user-visible error handling.

Category boundaries

Different runtime categories own different execution units and controls.

Compact comparison; use the taxonomy for definitions, caveats, and cross-layer products.
Category Primary execution unit Typical input Typical output Owns model execution Owns tools Owns durable state Enforces policy Captures traces Typical boundary
Compiler or graph runtimeGraph or IRModel graph and shapesExecutable graph or device workYesNoNoUsually execution constraintsGraph and operator eventsProcess or device execution provider
Inference engineModel request or token stepWeights, tokens, generation parametersLogits, tokens, embeddings, or structured outputYesNoKV cache and runtime stateGeneration constraintsToken and model metricsModel instance or engine
Model serverNetwork inference requestAPI request and model identifierNetwork response or streamThrough an engineNoRepositories and request queuesAdmission and traffic policyRequest and serving tracesService endpoint
AI gatewayProvider requestPrompt or model API requestRouted provider responseUsually noUsually noRouting and usage recordsRouting, quota, and egress rulesGateway spans and usageProvider-facing API boundary
Workflow engineWorkflow stepEvents and deterministic stateState transition and scheduled workNoVia activitiesYesWorkflow rulesDurable execution historyWorkflow definition and state store
Agent frameworkAgent turn or graph nodeMessages, state, tools, model adaptersNext action or responseVia adapterPlans or invokesFramework-dependentOften prompt or callback basedFramework eventsApplication library
Agentic application runtimeGoverned task and side effectIdentity, task, authority, context, policyControlled work and evidenceVia route and serving layersYes, through a brokerYes, with scoped policiesYesCorrelated model, tool, policy, and outcome tracesApplication execution boundary
Product applicationUser or business workflowUser intent and domain stateProduct outcomeVia runtime servicesVia runtime servicesBusiness stateBusiness and product rulesOutcome and experience telemetryProduct and organization boundary

Open the detailed category comparison

Developer contract

Make authority, budget, policy, and evidence explicit before execution.

The runtime request contract gives products and runtime services a versioned boundary for identity, tenancy, risk, context, route constraints, tools, memory, approval, output, tracing, retention, idempotency, and deadlines.

Valid runtime request

{
  "contractVersion": "aruntime.runtime-request.v1",
  "requestId": "req_01",
  "correlationId": "corr_01",
  "idempotencyKey": "answer:01",
  "timestampUtc": "2026-06-23T14:30:00Z",
  "deadlineUtc": "2026-06-23T14:30:20Z",
  "actor": {
    "type": "user",
    "idRef": "user:42"
  },
  "tenant": {
    "idRef": "tenant:acme"
  },
  "taskType": "answer-with-evidence",
  "riskLevel": "medium",
  "input": {
    "question": "Summarize the approved architecture."
  },
  "permissions": [
    "read:architecture"
  ],
  "contextPolicy": {
    "classificationMax": "internal",
    "citeSources": true,
    "allowExternalRetrieval": false,
    "maxContextTokens": 12000
  },
  "modelRouteConstraints": {
    "allowHosted": true,
    "allowedRoutes": [
      "hosted-general-v3"
    ],
    "maxLatencyMs": 8000
  },
  "allowedTools": [
    "document.search.v2"
  ],
  "toolPolicy": {
    "defaultDecision": "deny",
    "maxCalls": 4,
    "allowSideEffects": false
  },
  "memoryPolicy": {
    "writeScopes": [],
    "writeRequiresApproval": true,
    "ttlSeconds": 3600,
    "readScopes": []
  },
  "budget": {
    "maxInputTokens": 14000,
    "maxOutputTokens": 1200,
    "maxToolCalls": 4,
    "maxCostUsd": 0.25,
    "currency": "USD"
  },
  "approvalPolicy": {
    "mode": "policy-driven",
    "timeoutSeconds": 300,
    "requiredFor": []
  },
  "outputContract": {
    "format": "json-schema",
    "schemaRef": "answer-with-citations.v1.json",
    "maxBytes": 64000,
    "requiresCitations": true
  },
  "traceSettings": {
    "level": "standard",
    "redactInputs": true,
    "captureToolResults": false,
    "samplingDecision": "record-and-sample"
  },
  "dataClassification": "internal",
  "retentionPolicy": {
    "policyId": "retention:standard-30d",
    "days": 30,
    "storeRawInputs": false
  }
}

Editorial trust

Claims are scoped, sourced, dated, and correctable.

Vendor-neutral taxonomy

Primary-source citations

UTC review dates

Scoped comparison methodology

No unsupported leaderboard claims

Public corrections process

Visible changelog

Clear fact, synthesis, and proposal labels

Read the editorial policy and source hierarchy

Start from your role

Move from orientation to the depth your decisions require.

Platform architect

Start with the taxonomy, reference architecture, control and execution planes, deployment patterns, and selection guide.

Infrastructure engineer

Follow inference, serving, distributed execution, observability, benchmarking, and capacity planning.

Agent developer

Use the developer guide, request and tool contracts, examples, approval policies, and failure-recovery guidance.

Security and governance leader

Review authority boundaries, data classification, policy decisions, evidence, retention, approvals, and incident behavior.

Technical decision-maker

Orient with the overview, choose-by-job paths, comparison scope, directory methodology, and architecture guide.

Updated in v3.10.0

Emerging runtime categories now have boundary pages

The current release keeps the runtime-type expansion, repairs the RSS endpoint, and makes the top navigation easier to scan on desktop and mobile.