Deterministic runtime verification of autonomous AI agents using formal methods.
VAREK is an open-source runtime, with a companion language, for verifying the behavior of autonomous AI agents before that behavior takes effect. Policy is discharged by a satisfiability-modulo-theories (SMT) decision procedure that returns one of three verdicts — SATISFIED, UNSATISFIED, or UNKNOWN — and the runtime is fail-closed: an action proceeds only on an explicit SATISFIED. The stack is vertical, from a declared plan checked before the agent starts to each system call the agent makes at the kernel boundary.
The Warden, VAREK's supervisor, holds each file open, file lookup, outbound connect, program launch and datagram send at the kernel boundary through seccomp-BPF and seccomp user-notify, and decides it before the kernel carries it out. From v1.13 the decision is made in the enforcement path by a purpose-built SMT decision procedure over bounded strings (the object) and 32-bit bitvectors (the open flags), cross-checked against an off-the-shelf SMT solver; from v1.14 it matches exact, prefix, suffix, contains and glob patterns on the resolved canonical path. From v1.15 every authorization carries a certificate that a small, independently written checker must accept before the action takes effect, so the checker, not the procedure, is the trusted decision code for authorizations. From v1.16 the verdict stream is hash-chained, signed with Ed25519 and anchored off the host, so it cannot be rewritten by whoever holds it. From v1.17 the agent runs unprivileged, file lookups are decided like opens, and the Warden's own key, anchor and log are refused by identity through any path. From v1.18 the plan gate, run before the agent starts, runs the cross-action data-flow check, the bounded-refusal breaker and the load-time progress-safety proof, which certifies that an unattended, human-out-of-the-loop (HOOTL) deployment always has an automated next move. From v1.21 the Warden decides each outbound connect on the destination it copied once, dials it itself outside the agent's empty network namespace, and hands the agent the connected socket — the same resolve-then-decide-then-deliver discipline it has applied to files since v1.12. v1.21.1 lets a plan step declare how it opens a file, so the plan gate can authorize a declared read that the runtime would allow. From v1.24 a policy can name hosts: the Warden resolves every named host itself and serves the agent a hosts view of only those names, so the agent sends no DNS, and each connect is decided on its address and on every name that address belongs to. From v1.25 a policy can opt in to every name under a domain; the agent's lookups then go to a stub resolver the Warden runs, which answers only names a rule allows, within budgets, and records every question. From v1.26 a policy can turn on an egress proxy: connects on the proxied ports go to a separate, unprivileged proxy that reads the name the client asks the server for (the TLS SNI or the HTTP Host), and the Warden decides that name, certifies it and dials only an address the name resolves to, so another site on a shared content network is not reached by naming it. From v1.26.1 a policy can have that proxy inspect: it verifies each server, terminates the agent's TLS with a certificate authority made for the run and constrained to the policy's names, and holds each request until the Warden has decided its method, path and query against request rules and the certificate checker has accepted the certificate. From v1.27 a policy can have the agent's program launches after its first decided: at startup the Warden expands the policy's allow exec rules to the files they admit and the agent runs in a Landlock domain that lets it launch those files and no others; each launch is decided on its name with a certificate, and before the Warden answers any call of a launched process it checks the process runs a program it decided to run. From v1.27.1, under the same opt-in, every directory the policy lets the agent write is mounted noexec in the Warden's own mount namespace, where it opens every file it hands the agent, so nothing written during the run is launched or mapped executable. From v1.28 the agent can hold only placeholders for the credentials it uses: a separate helper fetches each from a file, HashiCorp Vault or AWS Secrets Manager and hands it to the egress proxy, never to the Warden, and the proxy writes it into a request only in the header an allowing rule names, on a request decided SATISFIED; varek revoke makes every later call of a run UNSATISFIED. From v1.28.1 every decision record says whom it was for: the user, verified from a token a trusted identity provider signed; the agent, verified from its SPIFFE X.509-SVID; and the sub-agent that made the call, attributed by a control group the Warden gives it at its launch. From v1.29.0 an agent runs with nothing set up first: varek run writes a baseline policy for the run with a profile for the agent, the Warden opens and changes files as the agent's own user so the kernel's permissions hold as well as the policy, a dry run decides and records every call while enforcing none but a fixed set of refusals, and varek policy suggest drafts a policy from what a run refused. From v1.31.0 a local MCP server the policy declares is confined to the rules written for it, and none of the agent's; a call to a remote MCP server is decided on its method and the tool, resource or prompt it names, read from the body the server will act on; an MCP access token is released only into calls to the server it was issued for, and a token the agent sends that was issued for another is refused; and the verdict stream exports as OCSF 1.9.0 events a SIEM can read. From v1.32.0 the Warden runs in a container as on a host, from an official, signed image under a published, minimal set of container settings that never includes --privileged.
No release from v1.9.1 through v1.34.0 changes the three-state decision semantics or the symmetric-suppression invariant: no extension may move a genuinely unsafe action to SATISFIED.
Agentic AI systems act in the world: they call tools, read and write data, and chain those actions toward goals. The dominant safety posture is probabilistic — a system that is "usually right." Medicine does not deploy systems that are usually right, because the tail is where people get hurt. VAREK applies that standard to agent behavior.
The governing principle is authorization before execution: an action is checked against an explicit policy, with a determinate decision, before it is allowed to take effect. The decision procedure does not guess. When it cannot prove an action satisfies policy, it returns UNKNOWN, and the runtime refuses to proceed. A refusal is a safe outcome; an unverified action is not.
VAREK is a single vertical stack. Before the agent starts, an optional plan gate checks the agent's declared action-graph — a directed acyclic graph of planned actions — against policy and, with a flow policy, the data moving along its edges. While the agent runs, the Warden holds each policy-relevant system call at the kernel boundary, lifts it into a structured action, decides it, and enforces the verdict before the call completes. System calls the kernel filter admits without asking (memory, time, threads, and reads and writes on descriptors the agent already holds) run undecided; everything else is refused outright.
Policies are written in the var:: surface language and compiled to a formal representation suitable for a decision procedure. The compiler is the trust boundary between human-authored intent and machine-checked obligation. The VAREK pipeline language, in which unsafe operations are not expressible, is stable at v1.0; active development is in the Warden runtime.
Compiled policy is discharged by an SMT decision procedure returning SATISFIED, UNSATISFIED, or UNKNOWN. UNKNOWN is never coerced to a pass; the runtime treats it as fail-closed.
In the Warden (from v1.13) the procedure is purpose-built for a quantifier-free fragment of two theories: bounded strings for the object an action names (the canonical path, host:port, or the exec path) and 32-bit bitvectors for the open flags ((flags & mask) == value, faithful to the syscall argument, the kernel's int flags, rather than to the descriptor's later state, which fcntl can partly change). A policy compiles to one ordered formula per action kind. The same procedure answers concrete per-syscall queries (where satisfiability reduces to evaluation), symbolic-flag queries for the plan gate (SATISFIED only if every admissible flags value is), and rule-reachability queries at policy load (is there any action for which this rule fires first). Policies can say read-only (readonly, access=ro, +O_… / -O_…); before v1.13 a path rule admitted every open flag.
From v1.14 a path or exec rule takes a matcher before its constant — exact, prefix (the default), suffix, contains or glob (?, [...], *, **, and /**/ for any number of segments) — each a regular language over bytes, matched on the resolved canonical path, so a symlink with an innocent name is decided as its target. A policy can therefore deny a kind of file wherever it appears under an allowed tree: private keys, dotenv files at any depth, a patient's psychotherapy notes. Globs compile to a small automaton stepped word-parallel.
The fragment boundary is a soundness obligation: an over-length string (more than 4,095 bytes), a flag bit outside the ABI set, access mode 3, or a query beyond the enumeration bound is UNKNOWN. Rule reachability is decided exactly over the abstract domain (any byte string up to the bound) by a breadth-first search of the product of the rules' automata, and each reachable rule comes with a shortest witness; at load the Warden reports every rule that can never fire. A general SMT solver is kept off the hot path (v1.5 measured tail latencies of tens of milliseconds for its string theory) and used instead as an independent differential oracle over every repository policy and seeded random policies — zero disagreements over 26,624 checks at v1.13 — joined from v1.14 by a derivative-based procedure that settles bounded reachability where the solver's regular-expression theory does not finish.
Cost. At v1.14 the procedure alone decided a representative path in about 155–165 ns on the finance and healthcare policies. In the live Warden on a 2-vCPU host (varek bench, v1.22.0), the Warden's own time for a decision is 13–17 µs for a refused file open and 56–66 µs for an authorized one, which includes resolving and opening the file and checking its certificate; what the agent waits for the call, notification round trip included, is 53–57 µs and 70–80 µs, against 1–2.4 µs natively (bench_results_v1_22_0.txt). From v1.16 a policy's globs are capped at 4,096 tokens, which bounds the work of one decision: on adversarial policies built to hit the worst case, one decision in the live Warden takes about 26 ms (median); real policies are unchanged.
Through v1.14 the Warden authorized an action when the procedure said SATISFIED, so the procedure — about 1,400 lines of C with fast paths, word-parallel automata and a reachability search — was trusted. From v1.15 every SATISFIED verdict carries a certificate naming the deciding rule and a witness that the rule's constant matches, and the Warden authorizes the action only if an independently written checker accepts it. The checker (about 540 lines including SHA-256) has its own policy parser and its own matchers, shares no source with the procedure, and has none of its optimizations. If it refuses, the action is denied and recorded as certificate_refused. A test build with a deliberately planted procedure bug shows the effect: the procedure wrongly says SATISFIED for a file under an explicit deny rule, the checker refuses, and the open is denied.
For the property that matters most — no action is authorized that the policy does not allow — the decision procedure moves from trusted to checked, for logic bugs. The two run in the same process, so a memory-safety bug in the procedure could in principle corrupt the checker's state; this is stated in the trusted-computing-base document. Certificates are recorded in the verdict stream with the SHA-256 of the policy, so tools/varek_audit.py can re-check every authorization in a saved run later, from the stream and the policy file alone. Building and checking a certificate adds about 1 µs per authorized open on the example policies.
Agent plans are represented as action-graphs and verified compositionally before any constituent action runs. As a plan is revised mid-task it is re-verified, so the authorization guarantee holds across plan changes rather than only at the start.
In the Warden this is the optional --plan gate. It decides each file_open step on the lexically canonical form of its declared absolute path (from v1.12.4; symlinks are not followed, because there is no agent yet, and every open is still decided again at run time). From v1.18.0, with --flow-policy, it runs the whole v1.7–v1.9 pipeline — the cross-action data-flow check (§2.6), the bounded-refusal breaker and the progress-safety proof (§2.7) — which through v1.17.0 were a library with tests that the Warden did not call. From v1.21.0 it decides net_connect steps like the connect they name (§2.14), where through v1.20.0 it refused them all.
Fields on plan steps (v1.20). A step can carry up to 16 key=value fields after its target (quoted values may hold spaces, e.g. contains="a customer record"), and the flow policy's rules match them like any named argument. Fields are the agent's declarations, like the plan's edges: the node check and the runtime see only the target, and nothing compares the agent's later calls with its fields. Because the agent chooses them, the Warden refuses a flow policy whose rules match a field unless the policy declares trust_declared_fields. Targets are limited to 4,095 bytes; the node check calls a longer one UNKNOWN.
Declared open flags (v1.21.1). See §2.15.
Operating and measuring it (v1.22). See §2.16.
The verification layer binds to runtime enforcement at the system boundary. Observed low-level behavior is intercepted, lifted into structured actions, checked against policy, and gated before the action completes. The same policy a developer reasons about is the policy enforced against the agent's actual runtime behavior — not a weaker approximation of it.
v1.8 extends verification from single actions to data flow across sequences of actions, tracking where data originates and where it is permitted to travel. Policies can express constraints over information movement — for example, that data drawn from a sensitive source must not reach a particular sink — rather than evaluating each action without regard to what came before it. v1.8.0 adds operator-designated, audited declassification (sanitize-then-send), the only mechanism that can bypass the read-secret-then-exfiltrate guarantee, governed by four test-pinned safety properties. From v1.18.0 flow rules can match a URL's host component (match url.host), and a plan whose URL a rule cannot read is refused rather than skipped.
v1.6–v1.8 prove safety: nothing unauthorized executes. They do not by themselves prove liveness — that the system always has a legal, automated next move. An unattended deployment needs both, or "never requires a human" is a hope: a policy could admit a reachable state in which an action is refused and no authorized fallback exists, a deadlock only a human could break.
v1.9 discharges that obligation once, at policy load, before anything runs. It certifies:
For every non-authorizing verdict (UNSATISFIED or UNKNOWN) the policy can produce, the deterministic refusal resolution reaches an automated terminal outcome in finitely many steps, with no point requiring human intervention.
The proof decomposes into four obligations — bounded refusal, disposed UNKNOWN, disposed exhaustion, and an authorized-fallback reachability proof that composes the underlying decision procedure as its authorization oracle. The result is three-state like every other VAREK verdict: SATISFIED (certified human-out-of-the-loop), UNSATISFIED (a concrete gap, failing obligation named), UNKNOWN (could not decide; fail closed, not certified). From v1.18.0 the Warden runs it on the --flow-policy at startup and refuses to start if it fails, so "no human at run time" is provable: if no automated terminal is guaranteed, the system never reaches run time.
The bounded-refusal breaker (v1.8.2) is a loop bound in the trusted boundary, keyed by (session, action-graph signature), so a stuck or adversarial planner cannot resubmit a refused action-graph forever: after the policy's refusal budget, the outcome is a declared terminal (deny, or a pre-authorized action). Each verdict stays a pure function of plan and policy; the breaker only interprets the sequence of verdicts. From v1.18.0 its counts persist across runs in a state file the agent cannot reach. From v1.19.0 a flow policy must also declare session_refusal_budget N: the breaker counts every refused plan in a session, whatever the plan, so a planner that changes one step each time is stopped too.
io_uring bypass closed. io_uring dispatches operations from kernel worker threads off the syscall entry path, where a seccomp filter — and therefore the Warden's user-notification mediation — cannot observe them. The Warden's filter refuses io_uring instance creation; there is no sound way to mediate it at this layer. From v1.21.0 io_uring_setup answers ENOSYS rather than killing the agent, so runtimes such as Node.js fall back to epoll; no ring can be created, and io_uring_enter and io_uring_register stay in the hard-deny set. The live filter's test (test_v14_filter) asserts this.
TOCTOU discipline, measured. When a mediation decision depends on a pointer argument — a path, a socket address — letting the original syscall proceed after approval is unsafe: a second thread in the target can rewrite the argument between the check and the kernel's use of it, a time-of-check-to-time-of-use (TOCTOU) race. For file opens, the supervisor resolves the approved path itself and injects the resulting descriptor into the target, so the target's syscall never runs against mutable memory. On the race harness (tests/seccomp_toctou_harness.c), approve-then-continue leaked the protected target 1,848 to 1,889 times in 20,000 attempts and resolve-and-inject leaked 0 (three runs each on a 2-vCPU host, tests/toctou_results_v1.18.0.txt; the count depends on the host). Connects, for which there is no file descriptor to resolve, were deny-only from v1.9.1 through v1.20.0; v1.21.0 applies the same discipline to them (§2.14). Agent-initiated execve remains deny-only.
v1.9.2 inverts the Warden's enforcement model and wires the result into the live supervisor. The filter is default-deny, so the residue — every syscall not explicitly admitted — is refused by construction rather than by enumeration. Completeness of mediation is treated as a closure property: for each policy-relevant effect, the obligation is to have enumerated all the syscalls that produce it, across all application binary interfaces.
Default-deny allowlist. Unknown syscalls, variant syscalls (clone3, openat2, faccessat2, the pidfd_* family), and the 32-bit multiplexers (socketcall, ipc) are denied unless admitted — a bypass that was not enumerated becomes one that was not admitted.
Native-ABI lockdown. The deny default applies across every architecture, and no secondary ABI is admitted, so the same operation re-issued through the 32-bit compat ABI (int 0x80) or the x32 ABI (__X32_SYSCALL_BIT set) hits the deny path — closing the most common real-world seccomp escape, asserted on the live kernel by a release-blocking test.
Hard-deny set and namespace denial. Syscalls with no legitimate use inside a mediated agent — ptrace, bpf, userfaultfd, process_vm_readv/writev, pidfd_getfd, the mount/FUSE family, the kernel-module and kexec family, perf_event_open, and the key-management calls — are denied with process termination in strict mode. clone and unshare are filtered on their scalar flags argument (a register value, so the check is race-free) to deny CLONE_NEWUSER and the namespace-creation set. clone3, whose flags live behind a pointer, never executes: from v1.12.2 it is answered ENOSYS, so the C library falls back to clone and every thread or child passes the same flag filter.
Integration and validation. The default-deny baseline replaces the filter the Warden installs. A conformance target — a running, agent-shaped workload — exercises the boundary end to end: it opens an allowed file (served by descriptor injection), is refused a denied path, creates a socket, and is refused an outbound connection (deny-only through v1.20.0; from v1.21.0 refused because the conformance policy has no host rule allowing it). Under live enforcement it passes every phase. An observe mode logs rather than blocks, so a target's required syscalls can be harvested before the deny default is turned on, while the hard-deny set still terminates on a dangerous call. The conformance target also surfaced, and verified the fix for, a regression in which deny-only exec mediation refused the target's own bootstrap execve; the Warden authorizes exactly the operator-specified launch, once per run.
Enforcement assumes the supervisor is alive. If it stops, mediated calls fail closed, but an agent that keeps running can still act through capabilities it already holds. v1.9.3 removes that window in the live Warden.
The target requests a kill signal on supervisor death before it installs its filter, and first confirms, through a pipe only the supervisor holds open, that the supervisor is still alive. It runs as the first process of a dedicated PID namespace, so when it dies the kernel kills every other process in the namespace; on orderly shutdown the supervisor kills the whole tree. The supervisor watches the target through a process descriptor. The namespace requires CAP_SYS_ADMIN; the Warden checks for it at startup and refuses to run without it unless explicitly told otherwise. A crash test kills a live supervisor with SIGKILL and, separately, stops it with SIGTERM, and asserts no agent process survives either; against the pre-fix Warden it fails (two survivors after a crash, one after orderly shutdown).
A decision is only as sound as the identity of the object it is made about, and a record is only evidence if the process it describes cannot forge it.
Resolve-then-decide. Through v1.9.3 the Warden matched policy against the pathname string the agent supplied and then, separately, opened whatever that string resolved to — two steps that could name two different objects: /allowed/../../denied matched an allowed prefix as text, a symlink planted inside an allowed directory was followed to a denied target, and /proc/self, which the kernel resolves in the caller's context, resolved to the supervisor rather than the agent. From v1.12 the Warden resolves the object once, reads the canonical path back from the resolved descriptor, decides policy on that path, and hands the agent the same descriptor, so decision and delivered capability refer to the same inode by construction. From v1.12.1 it pins the object with O_PATH, decides, and only after an ALLOW opens it with the agent's flags, so a denied open has no side effect (no truncation, no creation, no FIFO that wedges the supervisor). From v1.12.3 ordinary symlinks are followed and decided as their targets, so dynamically linked agents (CPython, a JVM, Node.js) can load their libraries; a leading /proc/self or /proc/thread-self is mapped to the agent's own process, and any other process's /proc is refused after resolution. Because the decision is on the canonical path, allow path prefixes name canonical locations (/usr/lib/, not /lib/).
Record integrity. Every agent-controlled field is escaped, so no agent string can begin, end or fabricate a record, and each record reports the resolved canonical object it was decided on. From v1.12.1 the agent's own stderr is relayed with an [agent] prefix and every record carries a per-run id and a contiguous sequence number, so a forged, missing or foreign record is detected.
Threads, children and inbound networking. From v1.12.1 bind, listen and accept are refused and the agent runs in its own network namespace, holding only a loopback interface. From v1.12.2 agents can start threads and wait for their children, and the launch exec is granted once per run, not once per process, closing a race in which a thread could change the launch path.
Lookups are decided. stat (newfstatat), statx, access, faccessat, faccessat2, readlink and readlinkat were admitted and unlogged, so an agent could learn whether any file existed and read where any link pointed. From v1.17 the Warden resolves the name like an open, decides it with the SMT decision procedure as a read-only open of the same object (access(W_OK) as a write), certifies an ALLOW, records it, and answers the call itself. A name that does not exist is decided on where it would be — ENOENT inside the policy, EACCES outside it — so a lookup says nothing about what exists elsewhere. Lookups of the directories leading to an allowed path are answered with existence and type only, and recorded as metadata_ancestor; lookups of descriptors the agent already holds are answered like read().
Protected objects, refused by identity. Every open and lookup is checked after resolution, on the object actually pinned and before the policy is asked, against the device and inode of the signing key, the anchor and the verdict stream, so a bind mount, overlay or hard link into an allowed tree cannot reach them (protected_object). Raw storage and memory devices — block devices, /dev/mem, /dev/kmem, /dev/port, the sg, bsg and NVMe command devices, /proc/kcore — are refused the same way whatever the policy says (raw_device).
The agent runs unprivileged. Through v1.16.3 the agent ran as root with every capability, held back only by the filter. From v1.17 it runs as nobody or the user --run-as names; before the filter is loaded, the Warden's child clears its supplementary groups, empties the capability bounding and ambient sets, switches group and user, and verifies that no capability remains. File access does not depend on the agent's rights: the Warden opens allowed files on its behalf only after the policy allows it.
From v1.12.1 the supervised agent cannot forge, drop or reorder a record. From v1.16 neither can a person who holds the log afterwards. Every record is hash-chained; with --sign-key, run start, a checkpoint every 64 records (and at least once a second) and run end are signed with Ed25519; with --anchor, each checkpoint is appended to storage the log's holder cannot rewrite. tools/varek_audit.py --pubkey --anchor catches any edit, insertion, removal or reordering before the last signature, and a stream cut short, by anyone without the key, and any rewrite of anchored history even by someone with it. It verifies signatures with its own pure-Python RFC 8032 verifier. The Warden refuses to start if the policy would let the agent open the key, the anchor, the verdict stream or a raw disk.
An anchor on the Warden's own host does not protect against that host's root, who also holds the key. From v1.16.2 tools/varek_anchor_forward.py sends each checkpoint off the host, normally within a second, spooling through outages, to an append-only receiver set up by tools/varek_anchor_receiver.sh — an SSH account restricted to one forced command that appends well-formed anchor lines to a chattr +a file. tools/varek_preflight.sh (v1.16.1) checks a deployment ahead of its first run, including every location the Warden refuses at startup, and with --run performs an audited trial run.
Evidence export. The verdict stream exports as a Bill of Materials in the CycloneDX 1.6 format: the runtime as a tool component, the supervised run as the subject, each authorized object and connected destination as a component, and an Authorization-Before-Execution attestation. From v1.18.0 the attestation is derived from the stream, the exporter checks the policy file against the recorded SHA-256, the BOM can be signed (JSON Signature Format, Ed25519), and output is tested against the published CycloneDX 1.6 schema. The exporter refuses a stream that does not verify, so a corrupted log cannot be laundered into an attestation. (CycloneDX is a trademark of the OWASP Foundation; VAREK is not affiliated with or endorsed by the OWASP Foundation or the CycloneDX project, and uses the name only to describe interoperability with the openly published CycloneDX format, standardized as ECMA-424.)
Through v1.20.0 a supervised agent had no network: every connect was refused, whatever the policy said, because letting an allowed connect continue in the kernel would let a second thread change the destination between the Warden's check and the kernel's read of it. From v1.21.0 the Warden decides each outbound connect and carries it out itself:
The kernel never reads the agent's socket address, so the race stays closed: in 2,000 attempts to swap the destination from an allowed one to a denied one after the check, the denied side was reached 0 times. The agent's own network namespace stays empty; the only way out is a socket the Warden made. Covered: TCP and connected UDP over IPv4 and IPv6, and Unix stream, datagram and seqpacket sockets named by a path (IPv6 decisions are tested; IPv6 dialing was not exercised on the release host).
A send that names a destination is still refused, because an unconnected datagram cannot be decided without a race on its address; a send with no destination goes to the peer of a connect the Warden decided. Routing options that could redirect a connected socket's packets (IP_OPTIONS, IPV6_RTHDR and two legacy IPv6 forms) are refused on every socket. bind is refused except the wildcard, port-0 form libuv uses before connecting a UDP socket; listen and accept stay refused.
Cost. On a 2-vCPU host a connect took about 75 to 125 µs longer than a native one at the median; a whole Python requests.get to a local server took about 0.17 ms longer (1.21 → 1.38 ms). A profile put about 2 µs of the Warden's part in the decision and certificate check.
Scope. VAREK decides where an agent may connect, not what it sends: an allowed host is a channel. Through v1.23 rules matched only the numeric address dialed; from v1.24.0 they can name hosts (§2.18), and from v1.26.0 connects on proxied ports are decided on the name sent to the server (§2.20).
A plan step has no open flags of its own, so through v1.21.0 the plan gate decided a file_open step with the flags unknown. A path allowed only by a rule with a flag clause (readonly, access=ro, -O_TRUNC) was therefore UNKNOWN at the gate, although the runtime allowed the same open — and all five shipped sector policies grant their libraries read-only. From v1.21.1 a file_open step may declare how it opens its file:
action load file_open /srv/agent/reference/in.json open=read
action save file_open /srv/agent/work/out.json open=O_WRONLY|O_CREAT|O_TRUNC
edge load save
open=read means O_RDONLY and nothing else; otherwise the value is one access mode followed by any of 17 named flags, each at most once, joined by |. A name has the value an agent's open() passes for it (O_LARGEFILE is the kernel's bit, as in the policy language). Anything else — another word, a lowercase name, a repeated flag, an open field on a step that is not a file_open — makes the step UNKNOWN, never SATISFIED, with the reason logged. The node check decides and certifies the step with exactly the declared flags, as the runtime decides an open with the flags the agent passes. The field is a declaration: it does not bind the agent, and an open with other flags is decided on its own flags at run time.
Through v1.21 the Warden and its tools each took their own arguments: the policy, the verdict stream, the signing key, the anchor and the agent's user for the Warden, then the policy checker, the audit and the CycloneDX exporter afterwards. v1.22 puts them behind one command, varek, which reads the shared settings from /etc/varek/varek.conf: doctor checks the host, init writes the settings and the signing key, run supervises an agent, refusals explains each refusal by the policy line or the reason that produced it, audit re-checks a run's certificates, chain and signatures, and export writes signed CycloneDX 1.6 evidence. It wraps the existing tools and changes no verdict semantics; --show-commands prints each underlying call.
varek bench measures what mediation costs on the host it runs on. A fixed workload runs natively and as the agent under the Warden, alternating, for six kinds of call (an allowed, a denied and an unmatched file open; an allowed and a denied connect; a small whole request), and reports per kind what the agent waited, what the Warden added and the Warden's own decision time from its records. It checks every verdict while it measures: each allowed call certified and successful, each refused call EACCES, and the listener behind a denied destination never reached. It decides with the active policy's rules followed by its own, so the cost of a real policy is in the numbers. The figures in §2 come from it.
v1.23.0 is the first VAREK Enterprise image on AWS Marketplace: an Amazon Machine Image (AMI) on Amazon Linux 2023 (x86_64) with the Warden, the varek command, the Enterprise policy packs (HIPAA, SOC 2) and an AWS License Manager entitlement check. The image is built from the packaging in the source (varek/v1_4/packaging/aws-marketplace/): the build installs the runtime, removes the compiler, proves the installed image with a real run, audit and signed export, and hardens it to the AWS Marketplace AMI policy (key-only SSH, no root login, no passwords or stored keys). On the image, choosing an Enterprise pack checks the buyer's contract with License Manager; without an entitlement varek explains and lists the VAREK Core packs. The license gates only the Enterprise packs: the Warden and the Core packs never depend on it, and off the image nothing is checked. The Warden's decisions are unchanged from v1.22.0; the only code change is the version it reports, so the release, the image and the listing agree. Deploying, operating, backing up, upgrading and supporting the image are covered in the deployment guide (docs/aws-deployment-guide.md).
v1.23.1 fixes the license check, which on the v1.23.0 image refused every subscriber. AWS Marketplace issues each contract dimension as a License Manager Count entitlement; the check now asks for one unit and returns it at once, so the next check is not refused while a checkout holds it. The fix was found before any customer was affected, by an end-to-end test through a private offer to a second AWS account. v1.23.1 also lets the VAREK Core packs read /usr/share/ (time zones, locale) and points the anchor forwarder's service unit at the installed tools. The Warden's decisions are unchanged.
Through v1.23 a host rule matched only a numeric address. A policy either hard-coded addresses, which break when a cloud provider or content network moves them, or let the agent reach a DNS server, through which it can send data out in the questions it asks. From v1.24.0 a policy names hosts:
require warden 1.24
allow host api.salesforce.com:443
The plan gate decides net_connect api.example.com:443 steps on the name.
Measured. The Warden fetched three URLs by name once a minute for 24 hours on a cloud host, one each from Fastly, Cloudflare and CloudFront: 4,320 of 4,320 fetches succeeded while CloudFront changed its answer 2,034 times, no connect was refused, and the audit passed on the 114,279-record stream. Deciding a connect over 16 candidate names cost no time that could be measured end to end; the decision procedure takes about 0.5 µs per candidate.
Scope. A name decides which addresses the agent may reach, not which site it asks for there: an allowed name on a shared content network also reaches the other sites served from its addresses, by another name in TLS SNI or the HTTP Host header. The Warden trusts the host's resolver, or the one named by --dns-server, and does not validate DNSSEC itself, so whoever controls an allowed name's DNS chooses its addresses, private ones included. Deciding on the name sent to the server is the v1.26 egress proxy (§2.20). Wildcard names are §2.19.
v1.24 needs every name listed in advance. An agent that reaches per-tenant names (acme.api.example.com, globex.api.example.com) cannot list them. From v1.25.0 a policy can allow every name under a domain:
require warden 1.25
allow host *.example.com:443 acknowledge=dns-channel
Those names are known only when the agent asks for one, so under a wildcard the agent's lookups have to leave the host. The design keeps that path narrow, visible and bounded:
Measured. A name already in the table is answered by the stub in about 50 µs; a new name costs the two upstream questions (A and AAAA) plus 0.7 to 1.2 ms for the hand-off to the resolver helper and the records. A connect decided over 41 candidates on one address, hashed for the record, takes the Warden 34 to 79 µs more at the median than one allowed by a numeric rule, about 1 to 2 µs a name. A 24-hour run against 40 Wikipedia language editions served from one address fetched 1,440 of 1,440 times with no refused connect, every one of its 2,880 questions recorded, and no budget refusal; it used 40 of 256 names and at most 2 a minute of 30.
Scope. The name channel is bounded, not closed: within the budgets, labels the agent chooses, and which names it asks again and when, reach the host's resolver and the domain's DNS servers, which a DNS provider rather than the API's owner may run. The lists are snapshots; a domain where anyone can create a name and which neither list holds is not refused. With the v1.26 egress proxy on, names the agent asks for on proxied ports get synthetic addresses and are not looked up; the Warden looks a wildcard's name up only to dial a request the policy allowed, charged to the same budgets (§2.20).
v1.24 and v1.25 decide a connect on the address dialed and the names that address belongs to. On a shared content network that is not enough: every site served from the address shares its names' fate, and a client can ask the server for another site while the Warden's decision holds. From v1.26.0 a policy can turn on the egress proxy:
require warden 1.26
proxy on
allow host api.example.com:443
allow host *.svc.example.com:443 acknowledge=dns-channel
The Warden then decides connects on the proxied ports (proxy ports, default 80 and 443) on the name the client sends, not on the address. A separate proxy reads the name; the Warden decides, records and dials; the proxy relays.
Measured. Over 1,000 new connections each on a 4-vCPU cloud host, the proxy adds about 1.0 ms at the median to a TLS request (full handshake) over a direct dial, and 0.35 ms to a plain HTTP request; deciding, certifying and dialing take the Warden 105 µs at the median (p99 234 µs). A 24-hour run against three content networks is reported in the release notes.
Scope. Inside TLS, SNI mode reads only the ClientHello: a request inside TLS can carry a Host for another site on the same content network (domain fronting), and later requests on a kept-open TLS connection can name another host, though both reach only the server the allowed name resolved to. The gap is closed on proxied ports only. With an upstream, the address checks are the upstream's, since the Warden never sees the address it dials. The close records' byte counts are the proxy's claims. Rules on method, path and query, deciding every request inside TLS, are the v1.26.1 inspecting mode (§2.21).
SNI mode decides which site a connection asks for, but not what it asks there: once a name is allowed, any request on the connection passes, including one whose Host names another site on the same content network. From v1.26.1 a policy can have every request decided:
require warden 1.26
proxy inspect
allow host api.example.com:443
deny request * https://api.example.com/v1/admin/**
allow request GET https://api.example.com/v1/models
allow request GET https://api.example.com/v1/files?limit=*
allow request POST https://api.example.com/v1/chat/completions max_body=256k
A connection is decided on its name as in §2.20; then each request on it is decided before any of it reaches the server.
Measured. Over 1,000 requests each on a 4-vCPU cloud host, inspecting mode adds about 0.8 ms at the median to a new TLS connection over SNI mode (the agent's handshake with the run's CA) and about 0.2 ms to a request on a kept-alive connection; the Warden decides and certifies a request in 3 to 13 µs at the median. Measuring it found and fixed a 40 ms stall on each new connection: with no session tickets the proxy sent nothing after the client's Finished, so the client's next small write waited for a delayed acknowledgement; the proxy now acknowledges at once during the handshake. A 24-hour run against three content networks in inspecting mode fetched 1,296 of 1,296 times with no allowed request refused, refused and recorded all 144 probes (fronting by SNI and by Host, a path written another way, a denied path and an unlisted one), and passed the audit on the 19,658-record stream; the Warden decided and certified a request in 15 to 18 µs at the median.
Scope. What is decided is the request line: headers are not decided (beyond Host and framing) and bodies only by length, so what the agent puts in an allowed request reaches the server the policy allows. The proxy sees plaintext and holds the run's CA key. The path and query are recorded as sent, so a secret in a URL is in the stream. Clients that bring their own trust (a pinned certificate, an application-bundled store) fail unless their host is a passthrough host, and passthrough hosts are not inspected. HTTP/1.1 only. A server any root in the trust bundle vouches for is believed.
Through v1.26.1 the agent's own launch is allowed once and every later execve or execveat is refused, whatever allow exec says: answering an allowed launch with SECCOMP_USER_NOTIF_FLAG_CONTINUE lets the kernel read the path again from the agent's memory after the decision, and another thread can swap it in between. Opens and connects avoid this because the Warden performs them and hands over a descriptor; a launch must replace the agent's own image, so the kernel has to perform it. From v1.27.0 a policy can opt in:
require warden 1.27
allow exec /usr/bin/git
allow exec /usr/bin/python3
allow exec prefix /usr/libexec/gcc/x86_64-linux-gnu/13/
Measured. An allowed launch costs about 0.3 ms more than natively at the median on a 4-vCPU host; the Warden decides it in 72 µs (a refused one in 46 µs), and the identity check is within the spread between runs. A 24-hour run on a 1-vCPU, 1 GB host launched git, python3 and a compiler a minute in turn: 1,296 tasks all succeeded, 3,456 launches allowed and each seen running, 144 probes (an unlisted program, a denied one, one written during the run) all refused and recorded, no process killed, and the audit passed on the 282,662-record stream; a 6-minute run of the reviewed build, a task every 5 seconds, passed the same checks (65 tasks, 7 probes, 171 launches).
Scope. Arguments are not decided or recorded: they are in the agent's memory and another thread may change them after they are read. An allowed interpreter runs any code the agent can read. A swap between allowed programs is killed at the swapped program's first mediated call, not prevented. Shared libraries are not decided: Landlock governs launches, not the executable mappings of libraries, so where a policy lets the agent both write and read a directory, a library it writes may run inside an allowed program; v1.27.1 closes this for files (§2.23).
v1.27.0 keeps the agent from launching a file it wrote, but not from loading one: a shared library written to a directory the agent may also read could be mapped executable into an allowed program (LD_PRELOAD, dlopen, a native extension). Such a library runs under the same filter, Landlock domain and rules as the agent, so it escapes no containment; what it breaks is the claim that nothing written during the run runs as a file, and the meaning of a launch record. A noexec mount in the agent's own namespace would not help: the agent opens no file itself. The Warden opens each file it allows and hands over the descriptor, and the kernel checks an executable mapping against the mount the file was opened through, so the mount has to be where the Warden opens. From v1.27.1, under require warden 1.27:
Measured. A run's startup grows with the number of writable directories, about 0.2 ms a directory at 50; an open under one is within the spread between runs. make test-v1271 (73 checks) runs a probe as the agent with copies of host libraries. A 24-hour run on a 1-vCPU, 1 GB host, with the work directory mounted noexec, passed: 1,296 tasks (git, python3, a compile) all succeeded, 144 probes all refused and recorded, among them 36 copies of a library the agent wrote and tried to load, and the audit passed on the 282,917-record stream.
Scope. Code the agent writes into memory and runs there is not covered, and is not claimed. A mount of a writable directory that the host made elsewhere before the run is not under a listed directory. A compiled package installed into a writable directory during the run cannot be loaded without --writable-exec.
An agent that calls an API needs its key, and through v1.27.1 the key was in the agent's memory, where anything the agent ran could read it and send it anywhere a rule allowed. Deciding the request does not help once the key is in the process: a request rule can say where a request may go, but not keep the agent from putting the key in an allowed request's query, or into a file it may write. v1.28.0 keeps the key out of the process. Under require warden 1.28:
Measured. make test-v1280 (168 checks, 155 of which fail against v1.27.1) runs against stand-ins for Vault and AWS Secrets Manager that check each request's signature, and a TLS server that logs what reaches it: the value arrives where a rule names it and nowhere else. A soak trial on a 1-vCPU, 1 GB host, four credentials, revoked near the end, passed.
Scope. A server the policy lets a credential reach can send the value back in a response the agent reads; the policy must not allow such an endpoint with a credential, and the proxy does not scan responses, which could not see through compression or an encoding. What was sent before a revocation stays sent. The proxy holds the values for the run. Only headers, only in inspecting mode.
An agent acts for a user, and it may start other agents that act for it. Through v1.28.0 a verdict said what was done and which rule decided it, but an auditor asking for whom had a process id and nothing else, and anything the agent said about its user or its sub-agents would be the agent's own claim. v1.28.1 records the chain from evidence the agent does not control. Under require warden 1.28:
Decisions do not depend on the chain: v1.28.1 records and audits it, and a rule on it (for=subagent:NAME) is left for a later release. Recording cannot move any action to SATISFIED.
Measured. make test-v1281 (208 checks, 197 of which fail against v1.28.0) runs against a stand-in identity provider and SPIFFE authority whose tokens and SVIDs are signed by an implementation apart from the C verifier, with each check of a token or SVID failing on its own. Attributing a call by its group adds −1 to +4 µs to the p50 decision time through a pidfd and 4 to 9 µs through /proc; a run with a user's token starts in 38 ms against 16 ms without (keys fetched from a local stand-in).
Scope. The token is checked at the start: a token its issuer revokes during the run is not noticed, its expiry is. Its typ is not checked. A compromised issuer or trust-domain CA can name any user or agent. Records that are not a process's call carry no obo. An X.509-SVID from a file only. The operator is recorded as the host reports it, not verified.
Every guarantee above starts from a policy, and through v1.28.1 someone had to write one before the agent could run. Most people do not know what their agent touches. v1.29.0 writes the first policy for them, shows them what a narrower one would refuse without enforcing it, and drafts the next one from the record. Under require warden 1.29:
None of this changes a decision: the baseline, the profiles and the drafts are policies decided by the same procedure and certified by the same checker, and a dry run's records keep the verdict the policy gave. No extension may move a genuinely unsafe action to SATISFIED.
Measured. make test-v1290 (316 checks; 290 of the 313 of the tests-and-regression step fail against v1.28.1). Opening as the agent adds 11 to 19 µs to the p50 decision time of an allowed open and 5 to 7 µs to a refused one; the baseline and profiles (205 to 221 rules) cost no measurable time against a 34-rule pack, since the procedure compiles the rules before the run; in a dry run a system call outside the allowlist takes 51 µs against 0.4 µs refused. The launch set is hashed with OpenSSL's libcrypto, which reads no configuration: a run under the baseline starts in about 170 ms, and with a Node.js agent's profile in 540 to 650 ms on a CPU without SHA extensions (230 and 920 ms with libsodium's SHA-256).
Scope. A dry run is not a sandbox: in one, the agent can do what its own user can, outside the fixed refusals. A program root does not own (Node.js under nvm) is not named by a profile. inotify, statfs(2) on a path, link, symlink and listening sockets stay refused under the baseline. The adversarial review by AI review agents has not been done for this edition (§5).
An MCP server is a program the agent starts and talks to (over stdio), or a service it calls over HTTP. Through v1.29.0 a local server was decided by the agent's own rules, so a filesystem server could read whatever the agent could; a call to a remote one was a POST to one URL, so a policy could not allow one tool and refuse another on the same server; and an MCP token was a credential like any other. Under require warden 1.31:
None of this changes a decision outside what the new lines decide: confinement and the token checks only refuse, and an OCSF event reports a decision, it decides nothing. No extension may move a genuinely unsafe action to SATISFIED.
Measured. make test-v1310 (317 checks; 263 of 271 fail against v1.29.0, the 8 that pass holding trivially there). A confined server's decision costs no more than the agent's (103 µs against 126 µs p50 for an allowed open after the baseline); an MCP rule adds nothing to a small call and about 9.6 ms per MiB to a large one, since the body is held whole before it is sent; the decision itself stays under 30 µs. A run starts in about 170 ms under the baseline, 250 ms with one MCP server and 420 ms with four. The rule cap is 512 (256 before); a decision's work stays bounded by the 4,096 glob tokens of §2. A 24-hour run on a 2 GB host passed: two confined MCP servers kept for the run, 1,291 tasks before the user's token expired, all succeeding, 144 probes held, the MCP token reaching the remote server in exactly the 258 calls a for=gh rule allowed, the run revoked at the expiry, and 11,719 OCSF events followed live and verified against the 13,891-record stream.
Scope. The agent's calls to a local MCP server are bytes on a pipe and are not decided; a confined server bounds what any call to it can do. A call's arguments and a server's responses are not decided. A server that reads code or settings from a file another subject may write runs what was written there, under its own rules; the environment check is a list of variables that name code, not an allowlist. The review by six AI review agents found three high findings, all fixed before this edition (§5).
Most production agents run in containers, where through v1.31.1 the Warden could not start under the runtime's defaults (it needs CAP_SYS_ADMIN for the agent's namespaces) and the usual answer, --privileged, grants everything and turns off the container's own seccomp profile and its AppArmor or SELinux confinement. From v1.32.0:
None of this changes a decision procedure, a rule or a record: the Warden in a container decides as on a host, and the one launch decided differently (a sub-agent of its launcher's image, without process events) is now made where it can be told and refused where it cannot. No extension may move a genuinely unsafe action to SATISFIED.
Measured. Every suite passes inside the container, 31 of 31, on Docker 29.1.3 on Ubuntu 24.04 (kernel 6.8, AppArmor) and on rootful and rootless Podman 5.8.2 on RHEL 9.8 (kernel 5.14, SELinux enforcing). make test-v1320 adds 25 checks (the version, varek doctor and the run's refusal in a container, the packaging and the release workflow's pins and gates). The shared 24-hour soak passed inside a container under the documented settings and nothing more: 1,440 turns in each run, every task done, every probe held, the user's token expiry revoking the run 0.02 s after, and memory flat.
Scope. The container holds CAP_SYS_ADMIN, the agent never does; running the Warden outside the agent's container is v1.34's node agent. The AppArmor profile bounds what is mounted, not where: a process with CAP_SYS_ADMIN in the container may bind any path and make a bind mount read-write. Container detection knows Docker and Podman. The review by six AI review agents found five high findings (the release workflow's check that could not fail and its actions on movable tags, an image build that could take binaries built on the host, varek run refusing every run under docker-default, and a test's skip decided by the Warden under test) and a cgroup remount that reconfigured the filesystem every cgroup2 mount shares, all fixed before this edition (§5).
v1.32 runs the Warden inside the agent's container, which needs ten capabilities, VAREK's confinement profile and a private cgroup namespace in the pod; a cluster's admission policy (Pod Security's "restricted" and "baseline" levels, OpenShift's default constraints) refuses that pod. From v1.34.0 the Warden can supervise a pod's containers from outside them, and the agent's pod passes "restricted":
None of this changes a policy line or a decision procedure: a container under the node agent is decided as an agent on a host. The policy grammar stays at 1.31 (require warden 1.34 is refused). No extension may move a genuinely unsafe action to SATISFIED.
Measured. A 24-hour run passed on Amazon EKS (two m6i.large nodes, Amazon Linux 2023, Kubernetes 1.35.8, containerd 2.3.5): 2,592 turns of work and 576 git commits by the long agents, 97 short Jobs, 3,465 requests to the allowed service (p50 3 ms, p99 18 ms at the agent) and none to the denied one, every probe held (/etc/shadow, an unnamed volume, a program the agent wrote, an unnamed service, the instance metadata), and 99 streams of 1,246,748 records all audited. A 24-hour run also passed on single-node OpenShift 4.22.18 (CRI-O 1.35.9, SELinux enforcing): 1,296 turns, 2,160 allowed requests and none denied, every probe held, 97 streams of 807,885 records all audited.
Scope. The admission webhook is part of the guarantee: it requires each supervised container to name the unsupervised profile, and an annotated pod in a namespace it does not check (kube-system by default) is not checked. The pod's other containers share its network namespace. The node's signing key is one Secret given to every node. Credentials (§2.24), sub-agents and confined MCP servers, require on-behalf-of, plans and the dry run are not yet carried under the node agent; a policy that needs them is refused at deploy and at the container's start. The node image is amd64 only. The review by seven AI review agents found, among others, a supervised pod that could run unsupervised where the plugin did not adjust it, and a node-agent connection taken on a parent process's word; both were fixed before release, and every finding is listed in RELEASE-v1.34.0.md.
The three-state result is the core of VAREK's safety claim and the reason the system is honest about its own limits.
| Result | Meaning | Runtime behavior |
|---|---|---|
| SATISFIED | Provably compliant | Proceed |
| UNSATISFIED | Provably non-compliant | Deny |
| UNKNOWN | Not provable within bounds | Fail closed (deny) |
A two-state system is forced to convert every UNKNOWN into either a false pass or a false block. VAREK refuses that conversion: it reports UNKNOWN as UNKNOWN and lets the fail-closed runtime resolve it safely. In the running agent an UNKNOWN is refused, like an UNSATISFIED (symmetric suppression). At the plan gate with a flow policy, it goes to the deterministic disposition that policy declares, and the progress-safety proof certifies that every such refusal ends in an automated outcome.
VAREK is sound but deliberately incomplete. Soundness: no action is reported SATISFIED unless it provably satisfies policy. Incompleteness: some safe actions cannot be proved safe within the decision procedure's bounds and are reported UNKNOWN. The asymmetry is intentional — over-refusing a safe action is a utility cost; wrongly authorizing an unsafe one is a safety failure. The system is built to never make the second trade.
This is also why the input space being effectively infinite is not a problem the way enumerating edge cases would be. The decision procedure reasons over whole domains symbolically rather than sampling points, and the three-state verdict is total: every input lands in exactly one of SATISFIED / UNSATISFIED / UNKNOWN, deterministically, with UNKNOWN as the fail-safe residue. Coverage of the infinite space is by construction, not by enumeration.
An UNKNOWN record's rule field says why: fragment_escape_flags, fragment_escape_length, or default_deny_unknown when no rule matched (from v1.13.0). The procedure's work is bounded by construction — a length guard on the object (4,095 bytes), a bounded enumeration of symbolic flag bits (16), and from v1.16.0 a cap of 4,096 glob tokens per policy, which bounds the steps of one decision. There is no wall-clock ceiling and no memoization cache; a bound is structural, so a decision that would exceed it is UNKNOWN before it starts rather than cut off mid-way.
The verdict-distribution harness (v1.13.0) measures what fraction of safe actions a policy clears and gates every change on unsafe_satisfied == 0. On its synthetic seed corpus of file opens, v1.13 cleared 85.4% of safe opens with no unsafe open authorized, where the example policies as v1.12.4 shipped them cleared 75.6% and authorized 24 unsafe opens. These are figures on a synthetic seed corpus, not on a customer workload; a baseline on a customer workload is future work.
VAREK verifies that agent actions and plans satisfy explicitly authored policy, that data flow across declared plan steps respects explicitly authored information-flow constraints, and that an unattended policy is progress-safe. The guarantees are relative to the policy as written and to the fidelity of the action model derived at the system boundary.
What the Warden decides. File opens, file lookups, outbound connects, datagram sends and the agent's launch are held and decided. Agent-initiated program launches after the first are refused whatever the policy says unless it opts in with require warden 1.27 (§2.22), and sends that name a destination are refused (except a question to the v1.25 stub resolver) and inbound networking. System calls the filter admits without asking (memory, time, threads, and reads and writes on descriptors the agent already holds) run undecided, and every other system call is refused outright.
Independence from the agent platform. The decision procedure and the Warden run outside the supervised agent and do not depend on its model provider, agent framework, or orchestration platform: the action model is derived at the system boundary, and enforcement uses seccomp-BPF and seccomp user-notify, which apply to any supervised process. The verdict stream and its CycloneDX 1.6 export are produced by the Warden, not by the agent or its vendor, and can be signed and anchored, so a third party can inspect and verify the authorization record without relying on the vendor that built the agent. The dependency is on the host kernel (Linux with seccomp user-notify) and on the Warden's trusted computing base, stated in docs/security/TRUSTED-COMPUTING-BASE.md; it is not on any particular model or agent platform.
Declarations are not observations. Plan edges, plan-step fields (v1.20) and declared open flags (v1.21.1) are the agent's declarations. The plan gate decides what the agent declares; the runtime decides what the agent does. Nothing compares the agent's later calls with its declarations, and every call is decided again at run time.
Explicit information flow. The data-flow subsystem covers explicit flows — data that moves through observable action inputs and outputs. Implicit flows (information conveyed through control structure rather than data movement) are on the roadmap and are not claimed. An allowed network destination is a channel; what the agent sends over it is outside the Warden's decision, except that in inspecting mode (§2.21) each request's method, path and query are decided and its body bounded by length. The published docs/security/threat-model.md, docs/security/threat-model-dataflow.md, docs/security/bypass-classes.md, and docs/security/TRUSTED-COMPUTING-BASE.md are the authoritative statement of assumptions, adversary models, in-scope and out-of-scope threats, the per-class mediation status, and the per-component trusted-versus-verified status of the verification chain. Every release's notes list its known limits.
The testing posture mirrors the runtime posture: where a guarantee cannot be established, the build fails closed rather than presenting an unverified result as a passing one. Each release adds a regression suite that fails against the previous Warden, and every earlier suite must still pass.
A narrated demo walks through the stack end to end: authorization on a compliant action, denial on a violating action, fail-closed behavior on UNKNOWN, and cross-action data-flow scenarios where a sequence is blocked on the basis of where data originated (youtu.be/6E1Yrt02GNM). A browser visualization of the three-state verdict is published on the project site; the runnable C demo is in the repository (v1_7, make demo; demo_hootl.c for the HOOTL walkthrough), and the conformance target runs a real workload under the live Warden. The VAREK Verdict Service at api.varek-lang.org answers plan-verification requests with the v1.6 compositional evaluator; its front end, v1_6/plan_verify_cli.c, is in the repository from v1.16.3 and remains a demonstration with a built-in policy.
The v1.10/v1.11 verification program has one goal: move cases out of UNKNOWN into a provable SATISFIED or UNSATISFIED, raising the clear rate on safe actions, under a soundness obligation that forbids ever turning an unsafe action into SATISFIED. Its first three releases have shipped:
Next, stated as direction and not claimed as shipped:
External validation context: the DARPA/NSF AI Forge program (June 2026) names provably secure-by-construction agent sandboxes with verifiable action and information-flow bounds and low-latency runtime intervention as a national priority — the problem class VAREK's shipped architecture addresses. This is cited as third-party validation of the problem, not as a claim of program involvement.
VAREK is released under the MIT license. Three provisional patent applications are on file covering the formal-verification (SMT decision procedure) layer, the Warden kernel-level enforcement architecture, and action-graph compositional policy decision. The project is patent-pending; nothing in this release is granted. Non-provisional conversions begin in 2027. Relicensing considerations are deferred pending conversion.
| Version | Focus |
|---|---|
| v1.0 (Apr 2026) | Public launch. Formal-verification layer, MIT license. |
| v1.1 | Security release: pluggable isolation backend; subprocess-boundary fix. |
| v1.4 | The Warden: a seccomp user-notify supervisor in C (kernel-boundary enforcement). |
| v1.5 | Fast-path matcher and SMT feasibility study for the decision layer. |
| v1.6 | Plan-time verification of agent action-graphs; compositional three-state decision. |
| v1.7 | Kernel-boundary integration; vertical stack from system boundary to formal decision. |
| v1.8 | Cross-action data-flow verification; audited declassification (v1.8.0); bounded-refusal breaker (v1.8.2). |
| v1.9 | Progress-safety verification. Load-time liveness proof; certified human-out-of-the-loop. |
| v1.9.1 | Enforcement hardening. io_uring refused; TOCTOU-safe file-open mediation; connect and execve deny-only; threat model and trusted-computing-base published. |
| v1.9.2 | Mediation completeness. Default-deny allowlist; native-ABI lockdown (x32 closed); hard-deny set; scalar-flag CLONE_NEWUSER denial; conformance target. |
| v1.9.3 | Lifecycle coupling in the live Warden. PID namespace, death-signal coupling, fork-race guard, process-descriptor watch, crash test. |
| v1.12.0 | Mediation correctness. Resolve-then-decide; escaped records carrying the resolved object; datagram egress refused; CycloneDX 1.6 evidence export. |
| v1.12.1 | Side-effect-free denial (O_PATH pin, then open); authenticated verdict stream (run id, contiguous sequence); inbound networking refused; agent in its own network namespace. |
| v1.12.2 | Threads and child processes (clone3 answered ENOSYS); launch exec granted once per run. |
| v1.12.3 | Dynamically linked agents: symlinks followed and decided as their targets; /proc/self mapped to the agent. |
| v1.12.4 | The --plan gate decides file opens on the lexically canonical declared path. |
| v1.13.0 | SMT decision procedure in the enforcement path (first release of the v1.10 program). Bounded strings and bitvectors; read-only flag clauses; load-time rule reachability; solver cross-check; verdict-distribution harness (85.4% of safe opens cleared, 0 unsafe, on the seed corpus). |
| v1.14.0 | Bounded string fragment: exact, suffix, contains and glob matchers on the resolved path; exact reachability with witnesses; derivative-based oracle. |
| v1.15.0 | Certificates: every authorization checked by an independent checker before it takes effect; tools/varek_audit.py. |
| v1.16.0 | Hash-chained, Ed25519-signed, anchored verdict stream; 4,096-token glob cap bounding every decision. |
| v1.16.1 | Deployment preflight (tools/varek_preflight.sh); CI build with libseccomp and libsodium. |
| v1.16.2 | Off-host anchor: forwarder and append-only receiver. |
| v1.16.3 | The Verdict Service's plan checker in the repository; escaped JSON output. |
| v1.17.0 | Protected objects refused by identity; raw devices refused; stat/access/readlink decided; agent runs unprivileged (--run-as, default nobody). |
| v1.18.0 | The claims and the code agree. Plan gate runs the data-flow check, breaker and progress-safety proof; URL-host flow rules; signed, schema-tested CycloneDX export; EACCES in records; figures re-measured or restated. |
| v1.19.0 | A refusal limit per session (session_refusal_budget). |
| v1.20.0 | Fields on plan steps; trust_declared_fields. |
| v1.21.0 | Decided connections: each connect decided on the destination copied once, dialed by the Warden and handed to the agent; TCP, connected UDP, Unix sockets; tested with curl, Python and Node.js. |
| v1.21.1 | Plan steps say how they open a file (open=), so the plan gate can authorize declared reads on read-only paths. Corrects the sample plan and the data-flow threat model. |
| v1.22.0 | The varek command (doctor, init, run, refusals, audit, export, ...) and varek bench, which measures the cost of mediation per call on the host it runs on and checks every verdict. Corrects the latency figure (Appendix B, item 8). |
| v1.23.0 | VAREK Enterprise on AWS Marketplace: an Amazon Linux 2023 AMI with the Warden, the varek command, the Enterprise policy packs (HIPAA, SOC 2) and an AWS License Manager check. No decision changes. |
| v1.23.1 | The Enterprise license check works with Marketplace contract entitlements; the Core packs read /usr/share/; the deployment guide for AWS. No decision changes. |
| v1.24.0 | Host names without agent DNS: the Warden resolves every named host, serves the agent hosts and resolver views, refuses its DNS, and decides each connect on its address and every name of it; the audit checks each name against the lookup records. musl agents can open files. |
| v1.25.0 | Wildcard host names, opt-in (acknowledge=dns-channel): shared domains refused at load, a stub resolver in the agent's namespace answering only names a rule allows, budgets on new names, every question recorded and audited, connects decided over any number of names on one address. |
| v1.26.0 | The egress proxy, SNI mode (proxy on): connects on proxied ports decided on the TLS SNI or HTTP Host by an unprivileged proxy and the Warden, synthetic addresses for proxied names, plain HTTP checked request by request, chaining to a customer's proxy (proxy upstream), every hand-off, decision and close recorded and audited. |
| v1.26.1 | The egress proxy's inspecting mode (proxy inspect): warden-proxy as its own hashed binary, TLS terminated with a name-constrained CA made for the run, servers verified first, every request's method, path and query decided by request rules and certified before it is sent, max_body, passthrough hosts, every request and body recorded and audited. |
| v1.27.0 | Decided program launches (require warden 1.27): allow exec rules expanded to a launch set held by Landlock, each launch decided on its name and certified, the identity check, launch records and their audit; what a compile needs. |
| v1.27.1 | Nothing written during the run is mapped executable: under require warden 1.27 the policy's writable directories mounted noexec where the Warden opens files, a descriptor not coming through such a mount refused, each directory recorded and audited against its rule; --writable-exec to turn it off for a run. |
| v1.28.0 | Credential release: the agent holds only placeholders; warden-secrets fetches from a file, Vault or AWS Secrets Manager and hands the values to the proxy, which writes one into a request only in the header an allowing rule names; varek revoke; each credential recorded and every request that carried one audited against its rule. |
| v1.28.1 | The on-behalf-of chain in every decision record: the user's token verified against a trusted identity provider's keys, the agent's X.509-SVID against its trust domain's bundle, each sub-agent attributed by a control group of its own from its launch; the token's expiry revokes the run; the chain recorded and audited, not enforced. |
| v1.29.0 | varek run with nothing set up first: a baseline policy and agent profiles; files opened and changed by name as the agent's own user; a dry run that records what a policy refuses and enforces only a fixed set; varek policy suggest. |
| v1.31.0 | MCP servers confined to their own rules (mcp server, for=), launched only with an environment that names no code; MCP calls over HTTP decided by method and tool; MCP tokens bound to their server and the agent's own checked; OCSF 1.9.0 events with --verify and --follow; the Agent Baseline mapping; the rule cap 512. |
| v1.31.1 | A patch release: epoll_wait, epoll_create, pipe and getpgrp admitted under every policy (asyncio, a shell's command substitution, bash). |
| v1.32.0 | Containers: an official, signed image with its SBOM; Docker and Podman, rootless included, under ten capabilities and the runtime's seccomp profile, never --privileged; AppArmor and SELinux profiles for the Warden's mounts; sub-agents and confined MCP servers in a container; varek doctor and varek run checking the container. |
| v1.32.1 | A patch release: rootless Podman runs sub-agents and confined MCP servers without --systemd=always. |
| v1.34.0 | Kubernetes: a node agent (one Warden per node, the runtime handing it each container's seccomp notifications), an NRI plugin, the varek-init launcher, VarekPolicy resources and an admission webhook, per-container streams exported as OCSF, and a signed Helm chart; the agent's pod passes Pod Security's "restricted" level; 24-hour runs passed on Amazon EKS and OpenShift. |
| (planned) | macOS through a Linux VM (planned as v1.30.0, then v1.33.0; takes the next number when it is released). |
| v1.35.0 (planned) | Agent frameworks: plans generated from the framework, Amazon Bedrock AgentCore first. |
| v1.36.0 (planned) | Security operations: Splunk, Microsoft Sentinel, OpenTelemetry. |
| v1.11 (candidate) | Bounded sequence fragment for cross-action data flow. |
Earlier editions of this paper (v1.9.1 through v1.31.0) made statements a later review of the code did not bear out. They are corrected in the text above; this list records what changed.
Superseded editions are kept at stable URLs so existing citations continue to resolve. They describe earlier releases and are not current; statements corrected since are listed in Appendix B.
The current paper is also available as a PDF.
Copyright Sober Agentic Infrastructure, Inc. VAREK is open source under the MIT license.