Using falsepass from an agent#
falsepass is built to be driven by a coding agent as much as by a person. Every command is non-interactive, writes its results to files, and has a machine-readable form. There are three ways in, from most to least structured.
1. MCP server#
falsepass mcp serves the commands as tools over stdio. Any MCP client can start it
without installing anything first:
uvx --from "falsepass[mcp]" falsepass mcp
For Claude Code:
claude mcp add falsepass -- uvx --from "falsepass[mcp]" falsepass mcp
For clients configured with JSON (Cursor, Claude Desktop, and others):
{
"mcpServers": {
"falsepass": {
"command": "uvx",
"args": ["--from", "falsepass[mcp]", "falsepass", "mcp"]
}
}
}
Without an MCP client at hand (a script, a sandbox), twenty lines of Python drive it; this
works with the mcp SDK 1.x and 2.x:
import asyncio, json
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
async def call(tool: str, **arguments):
server = StdioServerParameters(command="uvx", args=["--from", "falsepass[mcp]", "falsepass", "mcp"])
async with stdio_client(server) as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()
result = await session.call_tool(tool, arguments)
text = result.content[0].text
if getattr(result, "isError", None) or getattr(result, "is_error", False):
raise RuntimeError(text) # the reason and the next step, in one message
return json.loads(text)
init = asyncio.run(call("falsepass_init", target="rewards.py", dataset="data.jsonl"))
print(asyncio.run(call("falsepass_audit", env=init["name"], wait=120))["headline"])
Each call above starts a fresh server; that is fine, because state lives in audits/ and a
running audit is found again by falsepass_audit_status.
| Tool | Arguments | Returns |
|---|---|---|
falsepass_scan |
path |
static hints for a source folder or file; nothing is installed |
falsepass_init |
target (Prime Hub id, OpenEnv Space hf:owner/space or folder, a file of reward functions with dataset, local folder, Inspect task, HUD folder); optional name, version, framework, task, answers, extra, without, dataset, functions, weights, split, dataset_config, answer_column, prompt_column, map, path, env_class, action_class, manual, policies, force |
{"name": ..., "folder": ..., "framework": ..., "env": {...}, "next": ...}: name is what the other tools take |
falsepass_audit |
env, n (tasks, default 25), search (mutation budget), wait (seconds, default 45), source (a patched local copy), offline (a cached Hugging Face dataset without the Hub check; also on reach, repro and verify_fix) |
the results digest below with "status": "finished", or "status": "running" if the audit needs longer |
falsepass_audit_status |
env, wait |
the same, for an audit already started: results, or "running" with the latest progress lines |
falsepass_cancel |
env |
stops the background job of env (audit, reach, repro or verify-fix); results stored earlier stay |
falsepass_results |
env |
the digest of the last finished run; while a job runs on that environment, also its progress under job (the progress alone when nothing has finished yet) |
falsepass_completion |
env, completion_id |
the full text of one completion; the digest shows only its start and end |
falsepass_reach |
env, probe (e.g. ["P15/denied"]) and/or templates (completions of your own, e.g. ["\\boxed{{answer} \\text{ is wrong}}"]), expect (zero or full, for templates), tasks (0 = every task), wait |
per probe row, per template and for the reference (P1) as a control: tasks counted, how many failed, full-reward and error counts, the failing task keys, up to three failing completions, and for a template the text it became on the first task; runs in the background like an audit |
falsepass_repro |
env, probe (e.g. ["P5"]); run (true: also run it twice), script (run an existing script instead), wait |
where the stand-alone repro script was written; with run, whether the two runs were identical, where the first is stored, and how many cases still fail (in the background like an audit) |
falsepass_verify_fix |
env, source (a patched package, or a patched copy of the audit's src/), known_good (-1 off, 0 every task, N a sample), wait |
report: the repro lines the patch changes and, with known_good, the tasks whose correct answer it stops paying; in the background like an audit |
falsepass_draft |
env |
writes REPORT.draft.md (each failing probe group as a candidate finding, confirmed static hints attached, judgement calls marked) and returns its text |
falsepass_upstream |
env, optional repo (owner/name), limit |
the environment's source repository on GitHub, a file-by-file comparison with the audited version, default branch, licence, last push, open PRs (needs the gh CLI) |
falsepass_discover |
days, limit |
recently maintained Hub environments and what each needs |
Every tool takes workdir; audits are created in workdir/audits/<name>/.
An audit installs the environment before it probes it, so it can take several minutes,
longer than many clients allow for one tool call. It therefore runs in the background:
falsepass_audit waits up to wait seconds and either returns the results or
{"status": "running", "elapsed_s": ..., "log_tail": [...]}. Call
falsepass_audit_status with the same env until it finishes. Calling
falsepass_audit again while one is running doesn't start a second audit. The job is
recorded in audits/<env>/job.json, its output in audits/<env>/job.log. The result's
timings (and the summary's Time line) say where the time went: the virtualenv, the
probes, rewardlint, and how many tasks ran at once, so you know what a rerun or a larger
n costs.
When something goes wrong (no such audit, a failed install, a dataset that needs a
login), the tool returns an MCP error whose text says what happened and what to try
next, so a client sees isError and the reason without reading server logs. Names are
forgiving: arc_easy finds the audit init named arc-easy.
For a HUD or OpenEnv environment, pass reference answers with answers: a JSON file holding either
an object from task slug to answer ({"add-2-3": "5"}) or a list in task order. Without
it only the answer-free probes run. Adding answers to an existing audit takes
force: true. uv must be
on the PATH: each audit installs the environment in its own throw-away virtualenv.
2. Agent skill#
skills/falsepass/SKILL.md is the whole audit procedure in
the Agent Skills format: run, read the numbers, confirm a lead before claiming it, decide
defect or design, and write it up for the maintainer. Copy the folder into the agent's
skills directory (for Claude Code, ~/.claude/skills/) and ask the agent to audit an
environment.
3. Plain CLI#
falsepass init owner/environment # or hf:owner/space (OpenEnv), ./folder, task.py, inspect_evals/<task>, a HUD folder
falsepass audit environment --fail-on 'ceiling>0.1' # exit 1 when the condition is met
falsepass audit environment --jobs 1 # one task at a time (default: up to 8 at once where safe)
falsepass audit environment --time-limit 1200 # stop after 20 minutes, keeping the finished tasks' rows
falsepass audit environment --offline # a cached Hugging Face dataset without the Hub check (also reach, repro --run, verify-fix)
falsepass results environment --json # compact digest, small enough for a context window
falsepass scan path/to/source --json # static pre-scan only
The digest from results --json and from the MCP audit tools (abridged):
{
"environment": "owner/env",
"headline": {"false_pass_ceiling": 1.0, "false_pass_via": "P5 shotgun/all_in_one_slot",
"lazy_policy_reward": 0.0, "false_fail_rate": 0.108, "scoring_errors": 0},
"failing": [{"probe": "P5", "variant": "all_in_one_slot", "runs": 10, "failed": 10,
"completion": "start of the completion … [316 chars] … its end, where the answer is",
"completion_id": "da79bcea66a8"}],
"static_hints": ["..."],
"note": "Leads, not findings: ..."
}
All fields are described in Output files.
Games, simulations and tool tasks#
Automatic mode needs a reference answer it can write into a reply. A game, a
customer-service simulation or a tool task has none: the reward depends on what the model
does over several turns. There, an audit ends "status": "inconclusive" (the reference
and an empty reply earned about the same) or, for tool tasks, runs only the generic tool
policies. The digest then lists only facts_that_hold: rows built without the answer,
such as "an empty reply earned 1.0 on 20 of 20 tasks", which are true either way. A finished
run of task-blind policies also carries facts_that_hold (each policy's mean, and on how
many tasks it earned the maximum or nothing), not_counted (the tasks where doing nothing
earns the maximum, with a completion id each, so you can read them) and next.
falsepass_audit returns the digest's own status: inconclusive stays inconclusive.
A run is also "status": "inconclusive" when at least half its probe rows produced no score
(the environment raised, or an episode did not finish): reason quotes the first error. That
is usually the environment's set-up failing (a runtime, a package, a blocked outside call),
not its grader; fix it and audit again. When the error is "could not build trace", it is
falsepass's side instead, and next says what to do. And it is "inconclusive" when no
reference could be replayed and every reply tried scored the same on each task, that score
being on most tasks neither nothing nor the maximum (a simulation or a P&L: the replies
never reached what is graded; a task that pays every policy nothing, or every policy the
maximum, was graded); write policies, and for a reward with no fixed maximum give
scale_points.
Tasks that carry no reference answer (for example the flawed items of a premise-checking
set, whose right reply is an abstention) are left out of an automatic audit and of reach.
The summary's note and reach's tasks_without_reference say how many; a fixed reply that is
right on exactly those tasks is not measured, so score it by hand.
Some repair tasks want a file back as the reply (an EXR, a PNG, a video) and grade it against
a known-good file in the package; init lists such files as reference_files. With that
file as the reference in a hand-written adapter, the probes that write text around the
reference are skipped on those tasks (the summary's "Binary replies" line): a reader sees the
same file whatever follows it. Damaged files (a channel left wrong, a value off by a step) are
then rows of your own, through equivalent_forms and extra_probes.
The next step is to write policies, which takes a capable agent a few minutes per environment:
falsepass init owner/environment --policies --force # adds adapter.py: a policy skeleton
A policy is a function from the conversation so far (a list of {"role", "content"}
dicts) to the next assistant message, either a string or
{"content": ..., "tool_calls": [{"name": ..., "arguments": {...}}]}. Policy(name, act)
calls act(messages); Policy(name, act, wants_tools=True) calls act(messages, tools) with
the tool schemas (the --policies skeletons use this form throughout). Each policy runs
through the environment's own rollout loop and rubric. Fill in:
solver(example): a policy that does the task properly (it may read the row's answer). It should earn full reward; setmax_rewardto what it earns.gives_up(example): plays honestly without solving. It should earn nothing.exploits(example): policies that never use the answer. The skeleton starts from the ready-made ones infalsepass.policies, each of which found a real hole:after_the_end(wrong, say)(answer wrong, then repeat what the environment gives away),keeps_talking(first)(carry on after "game over"),never_acts(). Adapt their messages to the environment's format.special_number_scripts(example): one message sequence the environment accepts;policies.special_numbers()turns it into variants withnan,inf,-1,1e999and-0in place of its numbers (ids such as#1234are left alone). A limit written asamount > LIMITis false for NaN.- Edit tasks (the model changes a document through a tool; not code, where a later line can
override an earlier one): add a known-bad policy that makes the solver's edits but keeps
each old text next to its replacement. Widen each edit to whole lines first, then
new_text = old_text + "\n" + new_text; an edit inside a line would leave the new line incomplete and the row would say nothing. Give it its owncheck("X1", "policy", "keeps_old_lines", Expect.ZERO, ...)line inpolicy_probes(it reads the answer, so notanswer_free). The document then states both the old and the new value; on one environment, which subtracts 0.02 for each old line left in, such documents earned 0.89 on average where a correct one earns 1.0. P18 does the same for single-turn replies.
Then run falsepass audit <env> as usual. Each policy's episode (what it said, and the
whole conversation) is kept: falsepass_completion shows it, and falsepass repro
replays the policy's turns as a fixed script, so a lead found by a policy is reproduced
without falsepass.
v1 tool tasksets (verifiers.v1: tools served over MCP, a taskset's own episode
loop, a scripted user). falsepass init owner/environment then falsepass audit already
plays the generic tool policies (T5, T6) as whole episodes through the taskset's own loop,
as vf-eval (vf-run from verifiers 0.4.1) runs them: its harness, tool servers, scripted user, stop conditions and
rewards. The model is a local endpoint on 127.0.0.1 that answers with the policy; nothing
is billed or uploaded. The summary's note lists the tools offered. When the taskset offers
no tools (the model answers in text inside the loop), the answer-free replies P3, P4 and A1
are played as well, each sent as every reply of the episode.
For a control and task-aware exploits, falsepass init owner/environment --policies --force
writes a v1 skeleton. Policies there are act(messages, tools): messages carry
tool_calls and role tool results; return a string to end the turn or
call("tool_name", arg=value) for a tool call. Fill in:
solver(example): does the task from its own data (example.raw.data, the fields the grader compares against). It should earn the maximum; setmax_rewardto what it earns. Its rows are the control,X0 control/solver, kept apart from the known-badX1rows. When the package ships a step-by-step solver that calls the tools one at a time (solve(prompt, use), whereuse(tool_name, arguments_dict)returns the tool's result, parsed as JSON when it is JSON),falsepass.policies.sequential("solver", solve)plays it as a policy: on each turn it replays the solver against the tool results so far and sends the next call, then the final answer. The same works for broken variants of the solver.- Wrong episodes under per-rule partial credit (a forbidden step, then the correct run): a
grader that pays each rule separately keeps some reward for them, so judge them with
Expect.BELOW_REFERENCEandreference=found[0].score(the solver's score on the same task) instead ofExpect.ZERO; the row passes when it earns less than the solver. - A policy that raises shows as
policy 'solver' raised StopIteration on turn 3 at adapter.py:88 (...), the first error of that row. refusing_is_right(example): true for tasks where the correct episode moves nothing (a scam to refuse, a request to decline). Known-bad policies are not judged there, and T5/T6 rows on those tasks are markedno_controlinstead of counting as false passes.exploits(example): policies that never read the task data. Ideas that found real holes: claim success without acting; act on everything the tools show; a number written another way (1, 2, 3, 4, words);nan,inf,-1,1e999in an amount (send them as strings: JSON has no NaN); a reply that lists every candidate answer.- Edit tasks (a document changed through tools): a known-bad policy that makes the solver's
edits but keeps each old text next to its replacement, as above, with its own
check("X1", "policy", "keeps_old_lines", bad, ...)line inpolicy_probes, not inexploits(): it reads the task data, so it is notanswer_free.
LOAD_ARGS takes the taskset's options (what --env.taskset.<option> sets on the
command line), e.g. {"families": ["pin_request"]}. The harness runs in verifiers'
subprocess runtime; when it can run code (a bash tool), the summary says so, and
runtime = "docker" in env.toml (or RUNTIME in the adapter) isolates it. Extra
vf-eval / vf-run options go in env.toml as vf_args = ["--env.option", "value"].
Outside hosts are blocked during episodes: falsepass points HTTP(S) proxies at a closed port
(127.0.0.1, localhost and the package indexes are exempt), so an environment that registers
with, posts to or plays on an outside service fails to reach it instead of acting there under
your run. The summary lists the hosts its source names. To test such an environment, point it
at a local stand-in through its own option (vf_args), or, knowing what it will do there,
allow named hosts with network = ["host"] in env.toml (NETWORK in a policy adapter). The
guard is best effort: a client that ignores proxy settings is not stopped. Episodes run up to
8 at once; when they wait mostly on the local policy endpoint, a sandbox or a tool server,
--jobs 32 is usually safe and faster on a large run (reach --tasks all counts every task).
A reward that computes in the audit's own Python process (a simulation, a solver) runs on one
core whatever --jobs says; there the run time is the reward's own. Each episode is
kept: falsepass results <env> --completion <id> shows the conversation, and falsepass
repro <env> writes a script that replays the recorded tool calls through the same loop
with verifiers alone.
Rewards with no fixed scale#
Some rewards measure an outcome instead of checking an answer: a hedging error or a cost (maximum 0, no floor), a game score, a distance. "Full" and "nothing" then have no fixed values, and a fixed strategy really achieves part of the outcome. Give the adapter two reference points per task:
class Env(Adapter):
scale_floor = "no hedge at all" # names used in the summary
scale_reference = "the textbook delta hedge"
def scale_points(self, example):
return no_hedge(example), textbook_hedge(example) # policies or completions
falsepass scores both on every task first, then reports every score on that task as
(raw - floor) / (reference - floor): 0 is the floor, 1 the reference, above 1 beats the
reference. The ceiling, lazy-policy and false-fail figures are on that scale; each row keeps
its raw reward in metrics.raw_reward, and meta.scale in probe-results.json has both
points per task. Tasks where the reference does not beat the floor cannot be scaled and are
left out (listed in meta.scale.excluded). Pick a reference that uses only what the prompt
shows, and a floor a model could fall back on without working the task. Under such a reward
a fixed strategy keeps what it really achieves, as a fixed label keeps its base rate on a
yes/no task: read the lazy-policy figure as where answer-free strategies fall between the
two points, and look for what the grader pays beyond the outcome reached. In the v1 policy
skeleton, exploits are then judged as fixed strategies (lazy: only their mean is read).
The summary also gives the lazy-policy strategy's pooled share, Σ(raw − floor) /
Σ(reference − floor), which a task where the reference barely beats the floor cannot swing
the way it swings a mean of per-task ratios. falsepass repro replays raw rewards.
When the reference is not a reply#
Some Q&A environments store something other than a reply in their answer field: a
grading record (a JSON object with the truth phrases and the source text), a list of
accepted answers, or a placeholder. Automatic mode then writes that field into the reply,
the reference scores below the maximum, and the run is inconclusive. Write an adapter whose
reference is a complete reply:
falsepass init owner/environment --manual --force # adds adapter.py (a v1 skeleton for v1 tasksets)
What the skeleton's parts mean:
load(n, seed)returns the scorer andnexamples. Each isExample(key, prompt, answer, raw):answeris the correct reply's content, which the probes render, vary and deny;rawis the environment's own row or task object, which the scorer uses (the scorer never readsanswer). Buildanswerfromrawhere, e.g. the JSON object the prompt asks for, filled from the grading record.render(answer, example)writes an answer the way the prompt asks for it, andwrong_answer(example)returns one that is certainly wrong.alternative_answer(example)(optional, defaults towrong_answer) is the wrong answer the probes put next to the reference (P5, P15, S3): override it when your wrong answer is a non-answer ("I can't tell"), since a reward that rejects doubt would reject every reply holding it.equivalent_forms(example)gives P2 its correct variants as a dict{name: completion}(a name such as"uppercase"to the text). The default is three (whitespace, a sentence after, CRLF); override it to add forms the prompt allows, e.g.return {**super().equivalent_forms(example), "uppercase": self.render(example.answer.upper(), example)}.loadertellsfalsepass reprohow to load the same rows without the adapter: keep the skeleton's line, and keep example keys that end in the row's index (row-17,task-17).max_rewardis what the reference earns when it is below 1.0 by design.
Reward functions without an environment#
When the grader is a set of functions written for TRL's GRPOTrainer (def
accuracy_reward(completions, solution, **kwargs)), point falsepass_init at the file (or
at a module name such as trl.rewards with framework="reward") and give the rows it is
trained on as dataset: a .jsonl/.json/.csv/.parquet file, hf:owner/name (add
split, and dataset_config on the CLI), or call:function for a loader defined in the
same file. functions picks and orders the functions, weights gives the trainer's
reward_weights. Each function is called as the trainer calls it (every column as a keyword,
one completion per call) and the weighted sum is the reward; metrics in each row holds every
function's own value, so the term that pays is visible.
Read the digest's note first. It names the functions and weights used, the dataset's
columns, the prompt and reference columns chosen, whether completions were passed as
message lists, and, when the reference column is a worked solution, that the probes use its
final answer. If the reference column is wrong, re-init with answer_column; if a function
refuses one of the trainer's keywords (no **kwargs), it would raise TypeError under
GRPOTrainer itself, which is worth telling its author. The file's third-party imports are
installed for the audit; extra adds one, without drops one. A file that is part of a
package (from .utils import ...) cannot be imported alone: give the module name and the
folder that holds the package, target="open_r1.rewards", framework="reward",
path=["./open-r1/src"], with the package's third-party imports in extra; init says so
when it sees relative imports.
The answer format is inferred from the prompt and from the markup the functions themselves
look for (<think>, <reasoning>, <answer>, \boxed), so the reference is written the
way the format rewards pay it and max_reward is what a correct, well-formatted reply
earns. metrics in each row (and mean_terms in a falsepass_reach row) holds every
function's own value: a row paid by a format term alone shows there. A function that
returns None for the reference itself marks a task the trainer skips: such tasks are left
out of the audit (the note counts them) and counted as skipped by falsepass_reach. When
the reference column holds worked solutions without a marked final answer and a short
answer column exists, the probes take their value from that column and the note says so;
the functions still receive the original column, so P1 failing then means the functions
read a different value out of it than the answer column holds.
OpenEnv environments#
falsepass init hf:owner/space clones the Space into audits/<name>/space and records it as
the source; a local folder with an openenv.yaml works the same. The audit installs the
Space's own requirements plus openenv, imports its app module, and drives the environment
class directly: reset() to a task, step() with the reply as the action. There is no
Docker and no server; the HTTP /reset and /step routes of an openenv server build a fresh
environment per request, which is why they are not used.
What to check in the results and how to steer the run:
- Tasks. Few Spaces implement the Task API; most pick a task through extra
reset()keywords (task_id,task_name,difficulty, a seed). Theload_notesin the digest name those keywords. Writeaudits/<name>/tasks.json, a JSON list of keyword sets, each optionally with ananswer([{"task_id": 1, "answer": "approve"}, ...], or an object from task key to such a set), and rerun the audit. Without it, falsepass callsreset()repeatedly and keeps one task per distinct prompt (reset-Nkeys). An environment that draws a task at random on every reset is reset again until the recorded prompt comes back; when it never does, the rows carry an error saying so instead of a grade for another task. - References. Give them with
--answers(an object by task key or a list in task order) or intasks.json; a Task API record'sanswer/target/expected/labelfield is used too. An environment that reveals the answer only after a step (correct_answerin the next observation,ground_truthin its state) is stepped once per task at load time and those values are taken, with a note saying so; the P1 control then shows whether that is whatstep()compares against. Without any, only the answer-free probes run and the digest says so. An answer may be a JSON object naming the action's fields ({"decision": "approve"}), intasks.jsonand in--answersalike. - Structured actions. When the action is a decision (
category: Literal[...],approve: bool) plus optional text, a plain reply goes into the text field and the decision is filled with a constant (load_notessays which). O1 then plays every value of the decision field with nothing else said: its per-value mean is what a policy earns without reading the task, shown as the lazy-policy reward. O2 sets a self-reported number (confidence,score,quality) to its maximum and to its minimum: a grader that trusts it pays the two differently. O3 repeats each of these actions within one episode for as long as it is paid, and fails when it is paid on at least 5 steps in a row: an action whose reward is not recorded as given can be collected on every step. Its score is the sum over the steps, so it stays out of the false-pass ceiling and the lazy-policy reward. It needs judgement, because an environment that pays every step survived, or returns a running score at each step, looks the same; check the score it reports for the episode. When the run is inconclusive because episodes stay open after one reply, such actions are listed infacts_that_hold. To grade a real decision, give answers that are JSON objects naming the action's fields ({"category": "billing"}), or write an adapter whoserender()returns such an object as a string: a reply that parses as a JSON object with the action's field names is the action. - Reading a flat run. When every reply scores the same (an empty one and a sentence
alike), the digest's
notesays so: the reply never reached the graded part of the action (a decision or id field kept its default). The note also says where a plain reply goes and what the other fields get. The rows of such a run show that constant, not a grader property.falsepass_reachtemplates may be whole JSON actions ('{"claim_id": "C-7", "decision": "deny"}'), which is the quick way to score specific actions on every task. - Tool environments and multi-step episodes: policies. An MCP tool environment
(
CallToolAction;initreports it asautomatic_likely: falsefromdeclared_toolsin openenv.yaml), and any environment whose reward comes after several steps, is played with policies:falsepass init <target> --policies(MCPpolicies=true;--manualwrites the same skeleton) writes an adapter whose policies play whole episodes in this process: the task'sreset(), then onestep()per action until the environment saysdone. A policy isact(messages, tools): the task's text is the first user message, a tool's result atoolmessage (with itsname), a text environment's next observation a user message (feedback included);toolsare the MCP tools (name,description,parameters), listed once through the MCP route, so no step counter moves. Returncall("tool", arg=value)for a tool call (one step each), or a string: in a text environment the action's text (or a JSON object naming the action's fields), in a tool environment the end of the policy's turn and of the episode. Fill insolver(example)(the control; it may readexample.raw,example.answeror the live environment throughENV(), e.g.ENV().state),exploits(example)(policies that never read the task, rows X1) andbreaks_rule(example)(policies that may read the task but reach the outcome by a route the environment forbids, rows X3). Numbers in the last observation's metadata, top level and one dict down (grade.integrity), are the rows' reward terms. The reward is the episode's return, every step's reward added;REWARD = "last"in the adapter takes the last step's instead, when that is what the trainer reads. T5 and T6 run as well.reproreplays each stored episode throughreset()andstep()with openenv alone, andverify-fix --sourcereplays it on a patched copy. Hand-written servers without anEnvironmentsubclass still stop with a message. - Reading a policy run. The summary's
Load note:lines (digestmeta.notes) say what is odd about the environment: a class that overridesstep()but inheritsstep_async()(the server never runs thatstep(), so a reward computed there is never paid); tasks keyed by their text becausereset()does not follow its keywords; a walk that stopped at its cap; a reset that always shows the same text (hidden state such as a secret word: givetasks.jsonseeds); a tool listing that failed. The run isinconclusivewhen the solver (X0) earns less than the maximum on at least half the tasks (a wrong solver, or correct episodes not paid: read an X0 episode) and when every tool call failed (the tools did not run: often a database or a service the server's start-up creates outside the environment class, which falsepass does not run). A Space's own tool action with another required field (action_type) is filled for calls and listing. - Settings and patched copies.
falsepass init <target> --var NAME=VALUE(MCPvars) sets an environment variable on every run (a data path the Space reads,varsin env.toml). A patched copy goes toaudit,reach,repro --runandverify-fixas--source(MCPsource); a hand-writtenrepro.pyfor an OpenEnv folder reads the patched folder from$FALSEPASS_SOURCE(unset: the original); the audit records it (meta.source) and a patched repro is stored apart from the unpatched output. In automatic mode, an environment whose episode is still open after the one reply gets awarning: it takes several steps, so play it with policies. So does one whosereset()takes keywords that pick a task (task_name,level) when notasks.jsonnamed any: every row then ran the default set-up, which may be none of the documented tasks. In a policy episode, each observation reaches the policy as its text fields plus, when they leave numbers out, its other fields as JSON; an adapter can setSCORER.render_observationto the environment's own text form instead. - Git LFS. A shallow clone of a Space leaves pointer files where its data should be;
initfetches each one from the Space and checks its sha256, and names any it could not fetch. The environment class is read from the served app (whatcreate_appwas given); when detection still picks the wrong one,falsepass init ... --env-class module:Class --action-class module:Class(MCPenv_class,action_class) names them, andenv.tomltakesapp = "module:attr"as well.--withadds a requirement to the environment's own,--without namedrops one (a pin that does not resolve); pins of openenv's own dependencies (fastapi==...) are relaxed atinit, and the env.toml comment says which.
Reading the output#
false_pass_ceilingnear the maximum: some known-bad completion was paid.failingsays which probe and variant.lazy_policy_rewardabove zero: one fixed strategy that never uses the answer earns that much on average. On a closed answer set (yes/no, A–J), subtract what one fixed label earns under any correct grader.false_fail_rate: correct answers refused. Some of it is deliberate strictness.static_hintswithverdict: confirmed: the line that most likely causes a failure.
Rules worth giving your agent#
The output is a list of leads. Before an agent reports anything:
- Read the whole completion if the preview isn't enough:
falsepass_completion(orfalsepass results <env> --completion <id>). - Reproduce it:
falsepass repro <env> --probe P5writes a script that depends only on the environment's own packages. Run it twice from a clean virtualenv, or add--run(MCP:run=true): falsepass runs it twice, each in a fresh virtualenv, compares the output and stores the first run headed by its command and the comparison. - Find the line in the reward code that causes it.
- Decide whether it is a defect or a design choice. A grader that is exploitable on purpose, or strictness the prompt asks for, is not a bug.
- Measure how many of the environment's own tasks it affects. The audit samples 25
tasks by default;
falsepass reach <env> --probe P15/denied(MCPfalsepass_reach) scores that one row, and the reference as a control, on every task (--tasks Nfor a sample) and writes the counts and failing task keys toaudits/<env>/reach/. It covers the per-example probes (P1–P9, P13–P19, A1, X1) and T9. A count is for the completion the probe wrote, including the wrong value falsepass picked and where it put it (on open-ended tasks, the one next to the reference in P5, P15 and S3 is the reference with its numbers moved or its names swapped, not the stand-in passage P6 uses): P15 has both orders (false_equationandfalse_equation_reversed), because a grader that keeps one side pays only one. To count a completion of your own, pass it as a template:falsepass reach <env> --template '\boxed{{wrong} \lor {answer}}'(MCPtemplates) fills{answer}and{wrong}(the reference and a wrong value), or{answer_in_format}and{wrong_in_format}(the same written in the audit's answer format), on each task; other braces stay as typed. RowsU1/t1,t2, ... count where it is paid (--expect full: where it is not paid in full), andfirst_completionshows what it became on the first task, so a mistyped placeholder shows. Look at a few failing completions before you quote a count to a maintainer. - If you have a fix, check it: copy the audit's
src/(or the package), patch the copy, and runfalsepass verify-fix <env> --source <copy>(MCPfalsepass_verify_fix). It reruns the repro script (repro.py, elserepro_auto.py) unpatched once if no output is stored yet, then with the patch, and prints the lines that changed (the repro only:falsepass audit <env> --source <copy>, MCPfalsepass_auditwithsource, runs the whole probe suite on the patch; a fix to the prompt shows only there, since the repro replays the old prompt's text). A folder withoutpyproject.tomlis laid over the released package, so its dependencies stay as released. Add--known-goodto also score every correct-answer row (P1, P2, P14) on every task with and without the patch (--known-good 500for a sample): it lists the tasks whose correct answer the patch stops paying. A fix that refuses correct answers is not ready.
Don't let an agent call an environment broken on the strength of a probe table, and don't let it file issues on other people's repositories without a person agreeing.
Text versions#
Every page on this site is also published as Markdown (link at the bottom of each page),
and llms.txt / llms-full.txt
index all of them.