Skip to content

Reference

CLI reference

Every command Oloproof registers, with what it does. Each one takes --help, which prints the full text these summaries come from.

This page is generated from the CLI by scripts/generate_cli_reference.py. Editing it by hand is pointless: the next run overwrites it, and make check fails while the committed copy is stale.

Commands

CommandWhat it does
oloproof assurance checkCheck the case against the policy and the register, and read each goal's evidence.
oloproof auditEvery act a person took in this project, and what each one proves.
oloproof checkCheck a project before its first run: does it import, answer and get measured?
oloproof collectReceive OpenTelemetry traces, and serve case content to reviewers, here.
oloproof compareReport the paired counts, differences and decisions of two stored runs.
oloproof controlA monitor's safety against its honest flag rate over every threshold, with bands that hold at all thresholds at once. With --budget and --min-safety it decides.
oloproof credentials listThe names this workspace holds. Never the values.
oloproof credentials setStore a provider key for this workspace, read from the environment or standard input.
oloproof data baselinePin a record as its suite's baseline; later checks are compared with it.
oloproof data checkCount the cases breaking each declared check, record it and compare it with the baseline; exit 1 on a failing check, 4 on one not yet decided.
oloproof data listEvery recorded check, oldest first, with its issues and their case ids.
oloproof data showOne record: each check's count, rate, state and offending case ids.
oloproof diagnoseRe-execute a run's failed cases with gold context, under an intervention.
oloproof doctorReport the Python, platform and provider environment this machine offers.
oloproof evalCheck a file of answers you already have, and say what it shows.
oloproof evaluators calibrateMeasure a probability judge's stated probabilities against people, and fit a correction.
oloproof evaluators listList every stored evaluator version with the status a decision would read.
oloproof evaluators probeProbe a judge without labels: how often its verdict moves when nothing that matters did.
oloproof evaluators retireWithdraw trust in an evaluator version. Terminal: record a new version to replace it.
oloproof evaluators tryMeasure a draft evaluator against the labels already recorded, and validate nothing.
oloproof evaluators validateMeasure the evaluator against stored human labels and validate it on that evidence.
oloproof evidence graphWrite the typed evidence graph, with dangling edges, stale runs and contradictions.
oloproof experimentDecide an online A/B test from its assignment and outcome logs: a sample ratio check, then treatment minus control. Exit 0 on PASS, 1 FAIL, 3 INSUFFICIENT_EVIDENCE, 4 MANUAL_REVIEW.
oloproof exportWrite a portable bundle for a run, a comparison or an evaluator version.
oloproof factorialDecide the effects a policy's factorial: block declares, from one run per cell of a factorial on one suite, every effect on its family's Bonferroni bounds. Exit 0, 1, 3, or 4.
oloproof fairnessDecide group parity from a file of decided cases: the largest gap in a rate between groups, calibration by group and crossed groups. Exit 0 on PASS, 1 FAIL, 3 INSUFFICIENT_EVIDENCE, 4 MANUAL_REVIEW.
oloproof gateDecide the release against the policy, and exit on the decision.
oloproof generate attacksWrite adversarial test cases from the template library, seeded and deterministic.
oloproof generate casesWrite test cases with a model, from a description and optionally documents.
oloproof governance ai-registerRead the Government of Canada AI Register and match its entries to registered systems.
oloproof governance azuremlRead an Azure ML model registry (AZURE_ACCESS_TOKEN) and match its models to systems.
oloproof governance catalogue-decideApprove or reject a proposed catalogue version.
oloproof governance catalogue-proposePropose a catalogue version for approval by a second person.
oloproof governance catalogue-statusWhether each catalogue in use is approved at its current version, and its sources' state.
oloproof governance checkEvery requirement of every registered system: met, partially met, not met, n/a or unable.
oloproof governance crosswalkAccept a crosswalk row's rule as evidence for one requirement of one system.
oloproof governance draftA model's draft finding for an assisted entry, logged for review; never a finding.
oloproof governance exportThe last sealed record as OSCAL, or as a register or technical-file draft.
oloproof governance export-ticketsOpen corrective actions as Jira issues or ServiceNow records; the key goes in the log.
oloproof governance mlflowRead an MLflow model registry (MLFLOW_TRACKING_URI) and match its models to systems.
oloproof governance reportThe last sealed record as an HTML report with a portfolio page; print it to PDF.
oloproof governance reviewA reviewer's action on a finding, appended to the hash-chained log.
oloproof governance sagemakerRead a SageMaker Model Registry (AWS credentials) and match its groups to systems.
oloproof governance sourcesFetch each catalogue's official sources and say which changed since the last reading.
oloproof governance ticketOpen or close a corrective action on a requirement (DADM 6.3.4).
oloproof governance verifyCheck a findings record's digest and its signature; exit 3 when either fails.
oloproof hazards checkCheck the register against the policy, and read each hazard's rules at the latest runs.
oloproof human-ai checkCheck the decisions file and say what it can answer; exit 2 if it cannot be read.
oloproof human-ai gateDecide each rule of the policy; exit 0 PASS, 1 FAIL, 3 insufficient, 4 manual review.
oloproof human-ai reportThe accuracy difference, the reliance rates and time to decision; decides nothing.
oloproof initScaffold a project: an example system, oloproof.yaml and release.yaml. --system module:function writes it around your own function instead; --example NAME copies a tutorial's example project; --example list names them.
oloproof inspectRead a stored run, case, comparison or diagnosis.
oloproof jobWhat became of a managed job, exiting on the gate of the run it produced.
oloproof keys adoptKey this project's withheld categories from now on; every content id changes.
oloproof keys exportWrite the key for a teammate or a CI secret (OLOPROOF_EXPORT_KEY).
oloproof keys importHold the project's key here, checked against the fingerprint oloproof.yaml names.
oloproof keys showPrint the key's fingerprint, where it is held and what it keys. Never the key.
oloproof labels disagreementsWhere the judge and people part on labelled cases, grouped by a tag; reported only.
oloproof labels exportWrite cases to a CSV for people to label: a blind random sample, or cases to review.
oloproof labels importRecord every filled-in row of a labelling file as a label, or none of them.
oloproof leakage checkFind suite cases that appear in the training data, by exact match; exit 3 if any do.
oloproof loginConnect this terminal to a workspace, by approving it in a browser.
oloproof mcpServe this project to a coding agent over MCP (stdio): read and run, never label or push.
oloproof monitor driftWhether a monitor's judged pass rate dropped below a declared baseline, hour by hour.
oloproof monitor statusEach traffic monitor's current window: PASS, FAIL, INSUFFICIENT_EVIDENCE or MANUAL_REVIEW.
oloproof notifyPost a run's gate to Slack, PagerDuty or a webhook, read from an environment variable; exits with the gate's code.
oloproof passkpass@k from several attempts per case, with an interval over the suite. Exit 0 on PASS or no bar, 1 FAIL, 3 INSUFFICIENT_EVIDENCE, 4 MANUAL_REVIEW.
oloproof planWhat it would take to decide what this run or comparison could not.
oloproof preferWhich of two runs answered better, by a pairwise judge asked in both orders.
oloproof proofs importKeep another solver's result: its property, model digest, solver, outcome and scope.
oloproof proofs listThe formal results the project holds.
oloproof proofs runRun z3 on the file and keep its answer: unsat is PROVED, sat is DISPROVED.
oloproof pushSend a run's evidence to the workspace.
oloproof record exportWrite a signed run's decision, evidence digests and limits for a second party to check.
oloproof record verifyCheck a decision record offline: signatures, digests, and the decision recomputed.
oloproof redteamAttack your sandboxed system round by round: generated attacks, then an attacker model's harder variants of those it resisted; counts per OWASP category.
oloproof reportWrite a run or a comparison as one offline HTML file, or figures and methods.
oloproof reviewLabel cases one at a time in the terminal, storing each verdict as it is given.
oloproof review-rule routeRoute a run's items under the review rule the workspace holds in force, ALLOW or BLOCK; an edited or superseded record exits 5.
oloproof runExecute every case against the system and store the evidence.
oloproof runner keygenMake a runner's Ed25519 key pair; print the public key to register with the workspace.
oloproof runsList this project's runs, newest first, each with its answer in words.
oloproof scores importRead another tool's per-case results as runs, and compare two of them.
oloproof scores judgeCan you trust the judge? Read its agreement with people's labels against your bar.
oloproof seedsDecide a training recipe over seeds: k checkpoint runs on one suite, the recipe's expected pass rate for one criterion. Exit 0 on PASS, 1 FAIL, 3 INSUFFICIENT_EVIDENCE, 4 MANUAL_REVIEW.
oloproof selectChoose among candidate runs: each decided under the policy at 1 - alpha/k, the objective ranked only among those that pass every rule. Exit 3 when no candidate qualifies.
oloproof signoffRecord shipping against a blocked gate, with two approvers and a written reason.
oloproof simulated-usersReport a simulated user's realism and the shape of its conversations beside real ones.
oloproof sweepDecide the contrasts a sweep file names among its conditions' runs, every claim at 1 - alpha/m so that all hold together. Exit 0, 1, 3, or 4 for a person.
oloproof traces evaluateEvaluate a traffic sample the workspace drew, on the outputs production recorded.
oloproof traces listThe newest traces in this project's store.
oloproof traces promoteAdd a trace to a dataset as a test case, with where it came from.
oloproof traces showOne trace, with its input, output, spans and artifacts, as JSON.
oloproof trendShow one suite's runs across system versions, oldest first: each run's stored estimate, interval and judge check, with evaluator changes said in words. Report only: it decides nothing and names the compare command that would.
oloproof uiOpen this project's runs in the local workbench, in Docker: no account, no network.
oloproof usageWhat this project consumed, measured from its own evidence.

In `oloproof --help`

oloproof --help groups every command into panels, in the order of a first hour, and hides none. A group's subcommands are listed under its name.

  • Start here: init, run, inspect, gate, runs
  • Compare: compare, trend, select, seeds, experiment, passk, sweep, factorial, control, scores, eval, prefer, plan, diagnose
  • Judges and labels: evaluators, labels, review, human-ai, simulated-users
  • Share and approve: report, ui, login, push, job, signoff, export, record, audit, usage
  • Production traffic: collect, traces, monitor, review-rule, notify
  • Assurance: hazards, assurance, evidence, proofs, generate, redteam, governance, fairness
  • Setup: doctor, check, mcp, leakage, data, credentials, runner, keys

It ends: New here? oloproof init, then oloproof run, then oloproof inspect latest. Already have scores from another tool? oloproof scores import before.csv after.csv.

Decisions as data

run, gate, inspect, plan and compare print their decisions as JSON with --json, and exit with the same code as without it. The documents are the engine's own records, described in schemas/v1; nothing in them is recomputed.

  • oloproof run --json streams one event per line; when a policy decides the run, a run_decided event carries the decisions just before run_finished.
  • With no bar, oloproof run --json sends a run_explored event before run_finished instead: the plain words the terminal prints (each metric's estimate and range, or "Not gated: no bar." under CI), with decided always false.
  • oloproof gate RUN --json prints the same decisions as one document (gate_verdict.schema.json), with whether the evidence is still current. It does not combine with --summary. With --base-policy or --base-config it adds relaxed: what the pull request relaxed against the base branch's policy, checks and suite, in words.
  • oloproof inspect RUN --json prints the run's state, its metrics and its gate, re-decided as gate would (run_inspection.schema.json).
  • oloproof plan RUN --power also sizes each undecided score or quantile rule for a 4-in-5 chance, if the values are as you saw them; with --json the sentence is in four_in_five.
  • oloproof plan RUN --json prints each undecided rule's sizing and what it would cost. Without an id, oloproof plan --json prints what each rule can decide at the current suite size: each rule's sentences, and for a rate rule the counts that reach each state (bands).
  • oloproof compare CANDIDATE BASELINE --json prints the comparison record. With --base-policy or --base-config, a relaxed key is added beside it.
  • Under --json, a command that stops on an error prints one error document on standard output (error.schema.json: its kind, message and exit code), as one line of the stream for run. The text still goes to standard error, and the exit code is unchanged.

Each rule carries its state (PASS, FAIL, INSUFFICIENT_EVIDENCE or MANUAL_REVIEW), the state in words, its reasons, the estimate and its range with the engine's formatted figures, the method, the cases it counted, the bar, its release action and, when it could not decide, how many more cases would.

oloproof gate latest --json | jq -r '.decisions[] | "\(.rule_id): \(.state)"'

Sent to a pipe or a file with COLUMNS unset, a report's tables print as plain sentences, one per row: the table's title, then each row's first cell and every other column's name and value. Set COLUMNS (for example COLUMNS=200) to keep the tables at that width.

Coding agents and MCP

oloproof init --agent writes .claude/skills/oloproof/SKILL.md and a block in AGENTS.md: how a rule is decided, the golden path, and what an agent must never do (record human labels; lower a bar, add warn_on or turn validation off to get green; log in or push).

oloproof mcp serves the project to an MCP client over stdio (protocol 2025-06-18). Its tools are check, plan, run (on this machine only), gate, inspect, runs, compare and scores_import; each runs the CLI command of that name and returns what it printed, its --json document where it has one, with its exit code. Nothing is decided again by the server. No tool records labels, validates an evaluator, edits a file, logs in, pushes or calls the hosted service, and a path outside the project root is refused. --config picks the project.

{"mcpServers": {"oloproof": {"command": "oloproof", "args": ["mcp"]}}}

The workbench in a browser

oloproof ui runs the local workbench in Docker over this project's .oloproof directory, mounted read-only: the image this version pins by digest (--image for another), published on 127.0.0.1 only (--port, default 4317), no account. It opens the browser unless --no-open. Without Docker installed or running it exits 2 and never starts Docker; Ctrl-C removes the one container it started. Exported runs (oloproof export) and live runs appear; see The workbench in a browser.

Exit codes

Every command uses the same codes. Gating CI lists what each means and the order they are reported in when more than one gate is blocked.