Live now · macOS, Linux & Windows
Build with RIL.
Try a policy that lets an agent read project files, holds shared files for approval, and denies access to credentials. Then remove the forbid rule in a simulated pull request and see the policy check fail.
# macOS & Linux
curl -fsSL https://raw.githubusercontent.com/retvest/ril/main/install.sh | sh
# Windows (PowerShell)
irm https://raw.githubusercontent.com/retvest/ril/main/install.ps1 | iexlaws "File access" version 1
law protect-files
says "Protect sensitive files."
why "Limit unintended access."
on action read of File
forbid when context.secret
ask when context.shared
permit
evidence watched .env · The policy blocks this read. Exit 3.
RIL browser simulation · No install or account required
What you can build and govern with RIL.
The public repository provides the Apache-2.0 language specification, 10-case conformance suite, starter policies and editor grammar. The proprietary native engine runs free of charge offline with zero database required.
Coding agents & MCP hooks
Gate Claude Code, Codex, and MCP tool calls locally with
ril laws eval. Exit 0 allows, exit 2 holds for approval, and exit 3 denies.Formal proofs & test suites
Bind critical files in
laws.rilto Kani CBMC proof harnesses, Quint models, Verus, Lean, Bend, or deterministic test commands.Pull request diff gate
Run
ril laws diffin GitHub Actions or CI to block any pull request where an AI deletes a rule, widens a permission, or downgrades a proof.Starter templates
Bootstrap a verified policy in any repository with
ril laws init --templateclaude-code,rust,python,typescript, orgeneral.
View the full RIL policy example
laws "Example workspace" version 1
law private-work-is-private
says "People can read only their own private work."
why "Private work stays with its owner."
on action read of PrivateWork
forbid when resource.owner != principal
permit when resource.owner == principal
evidence watched
law export-needs-approval
says "External exports require approval."
why "Exported data leaves the workspace."
on action send of CustomerData
ask when resource.destination.external
evidence watched
# Code laws name a checker and its target.
law no-self-approval
says "Requesters cannot approve their own actions."
why "Approval requires an independent reviewer."
on code "ril-core/src/lifecycle.rs"
evidence proved by kani "lifecycle::kani_proofs::no_self_approval_ever_admitted" in "ril-core"
law action-lifecycle-model
says "The lifecycle preserves authorization and the order of recorded outcomes."
why "A worker must respect earlier decisions."
on code "formal/action_lifecycle.qnt"
evidence proved by quint "formal/action_lifecycle.qnt"
law bend-invariants
says "The implementation preserves its stated invariants."
why "The checker verifies the properties in LAWS.bend."
on code "src/**/*.bend"
evidence proved by bend "LAWS.bend"
law laws-conformance-suite
says "The evaluator agrees with the conformance cases."
why "A law file must have the same meaning across implementations."
on code "ril-core/src/laws/**/*.rs", "conformance/*.json"
evidence tested by command "cargo test --manifest-path ril-core/Cargo.toml --test conformance"Self-hosted architecture preview
Retvest Deploy SDKs and API.
For teams running a self-hosted Retvest Deploy environment, the Python, TypeScript and terminal clients connect your applications and scripts to your company server with caller permissions and Work Run records.
import os
from retvest_client import RetvestClient
client = RetvestClient(
os.environ["RETVEST_API_URL"],
api_key=os.environ["RETVEST_API_KEY"],
)
answer = client.query(
"Summarise the approved sample policy.",
top_k=5,
)import { RetvestClient } from "@retvest/client";
const client = new RetvestClient({
baseUrl: process.env.RETVEST_API_URL,
apiKey: process.env.RETVEST_API_KEY,
});
const answer = await client.query({
question: "Summarise the approved sample policy.",
topK: 5,
});retvest login --server https://retvest.company.example --email you@company.example
retvest doctor
retvest -p "Summarise the approved sample policy."
retvest deploy status Examples. Use the package version and connection details supplied with your deployment.
Guides.
- RIL on GitHub Open specification, conformance suite, editor grammar and free binary.
- RIL language specification Read the syntax, evaluation rules and evidence requirements.
- Download RIL v0.2.1 Get native binaries and checksums for macOS, Linux and Windows.
- Python client Install, connect and query from Python.
- TypeScript client Typed requests from your server-side services.
- Command line Sign in, check your setup and run prompts.
- API concepts Authentication, streaming, versions and safe retries.
- Work Run records and review How records, corrections and evidence fit together.
- API reference The published correction API snapshot.
Stop trusting prompts. Try RIL v0.2.1 today.
Retvest is an independent, non-commercial software project. Nothing on this site is for sale. Download the free RIL v0.2.1 binary for macOS, Linux, or Windows on GitHub.