LanternDOCS

Headless Agent Runtime

The runtime is where headless agents actually execute. You hand Lantern an agent.yaml — an image, an isolation class, resource limits, egress rules, and secret refs — and the platform schedules it, boots it, streams its logs and traces back, meters its cost, and tears it down. Every spawn runs in your own VPC, on your Kubernetes cluster.

The model in one picture

lantern run agent.yaml
submit the spec — image · isolation · limits · egress · secrets
schedules
Control Plane · SaaS
Schedules the spec onto a node; never runs your workload itself.
↓ gRPC · authenticated tenant ↓
Your VPC · Data Plane
The manager sets the isolation tier; the harness streams logs & traces and vends short-TTL secrets.

What makes it different

Kubernetes-default substrate

Every isolation class runs as a Kubernetes pod. There is no separate microVM fleet to provision for the common case — the data plane is already K8s in your VPC, and the runtime rides the same substrate. See Isolation classes and ADR 0009.

Isolation is a RuntimeClass tier

Isolation strength is selected by runtimeClassName, not by a separate orchestration backend. A reviewer reads isolation: untrusted in the spec and knows exactly what kernel boundary the workload runs behind. Untrusted and hostile classes fail closed — they refuse to run on a node that does not advertise the hardened RuntimeClass, never downgrading to a bare pod.

Durable execution

Work is event-sourced into a journal. If a node dies mid-run, the agent resumes from the last step_completed on another node — it does not re-spend tokens or re-fire side effects. Read how.

Per-instance identity

Each spawn is issued its own Ed25519 keypair. The instance authenticates secret-vending calls with it and is externally verifiable. Read how.

One trace per spawn

Every spawn emits a single OTel trace correlated by (tenant_id, run_id, step_id, agent_instance_id, trace_id), with GenAI semantic-convention attributes for token and cost telemetry. Read how.

In this section

Note: The runtime is the headless (autonomous, non-interactive) execution path. For interactive multi-turn agents see Agents; for the control-plane REST surface see the API reference.