Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.4.2 instead.
Reason given by maintainers: superseded by the 0.3.0 open standard.

bohrin

CI License

Everyone tests the AI. Bohrin tests the test.

When you train a model with reinforcement learning, a program decides whether each task was solved. That program — the verifier — is the only thing the model learns from. If it is wrong, the model learns the defect, efficiently and without any visible symptom.

Measured on two widely used code-RL datasets, roughly one task in four accepts a patch that does not fix the bug.

Bohrin finds those tasks in your environments and reports one number.

What it does

This is a real run against scratchpad, a public environment in the verifiers repository — not an illustration:

$ pip install 'bohrin[verifiers]'
$ pip install ./environments/scratchpad      # a taskset is an installed package
$ bohrin audit ./environments/scratchpad --max-tasks 8 --unsafe-local
Bohrin  ·  environments/scratchpad
verifiers_v1 · 8 tasks · 4 probes · isolation: none
  note verifier code ran in-process with no isolation boundary

  answer_leakage ░░░░░░░░░░░░░░░  the declared answer appears in the prompt on 8
tasks (of 8 checked) (not scored)
  determinism    ░░░░░░░░░░░░░░░  no variance observed in 5 runs
  ground_truth_rejected ░░░░░░░░░░░░░░░  the declared answer was accepted on
every task
  weak_oracle    ███████████████  8 tasks accept known-wrong solutions (of 8
measured · 95% CI 68–100%)

  VERIFICATION GAP: 50 / 100   coverage: 4 of 4 probes
  rests on: determinism 0 of 8 tasks (95% CI 0–32%) · weak_oracle 8 of 8 tasks
(95% CI 68–100%)
  sides: acceptance 100 / 100 · rejection 0 / 100 (the rejection side is
reported, not counted in the gap)

  IN PROMPT ▸ the declared answer appears verbatim in the prompt on 8 tasks (not
scored)
           A task whose answer can be copied does not test producing it. This is
a lead, not a verdict: a reading-comprehension or look-up task, where the answer
is meant to be in the passage, looks exactly like this.
           example (task 0): Call the `scratchpad_roundtrip` tool with
word="alpha". It returns a single word. Then reply with that returned w…
           bohrin audit environments/scratchpad --task 0 --probe answer_leakage
--unsafe-local

  EXPLOIT ▸ false_negation accepted on 8 tasks (reward 1)
           explicitly denies the declared answer 'alpha'
           example (task 0): The answer is not alpha.
           bohrin audit environments/scratchpad --task 0 --operator
false_negation --unsafe-local

  EXPLOIT ▸ identity_return accepted on 8 tasks (reward 1)
           echoes the prompt verbatim instead of answering
           example (task 0): Call the `scratchpad_roundtrip` tool with
word="alpha". It returns a single word. Then reply wi…
           bohrin audit environments/scratchpad --task 0 --operator
identity_return --unsafe-local

Findings are grouped by the operator that produced them, because one operator landing on eight tasks is one defect with one fix — not eight findings.

Every finding carries the candidate that passed, why it is wrong, and a command to reproduce it. That last line is copy-pasteable: running it re-runs exactly that one finding, against that one task, with that one operator.

In CI

An audit is exit 0 by default, whatever it finds, so adding Bohrin to a pipeline never breaks it by surprise. Ask for a gate when you want one:

bohrin audit ./environments/my-taskset --fail-on-gap 20
Exit Meaning
0 the audit ran; no gate was set, or the gate passed
1 a gate was set and the audit is over it
2 bad input, or the taskset could not be loaded
3 a gate was set but coverage was incomplete — no verdict, not a pass

Exit 3 is the one worth wiring up deliberately. A gate can pass because nothing was found, or because nothing was measured, and those are not the same claim — a taskset whose rewards all need a runtime measures nothing and would otherwise report a green build. Bohrin says it could not tell instead.

What that finding means

scratchpad grades with self.data.word in answer, and its own prompt contains word="alpha". So a model that echoes the prompt back scores full marks without ever calling the tool — on all 8 tasks.

That matters more than one weak grader. The environment exists to test per-rollout isolation, and its docstring offers a mean reward of 1.0 as the evidence that isolation holds. A mean reward of 1.0 is also what you get from a model that never touches the server, so the number does not support the conclusion drawn from it.

Bohrin reports this as an exploit rather than a lead because echoing the question is structurally not an answer — wrongness established without asking the verifier. Confirmed independently by scoring the same payload through verifiers directly, with Bohrin out of the loop.

Reading a taskset

Bohrin audits verifiers environments through both of the APIs in use:

  • load_environment — the entry point most published environments expose. This is the one you almost certainly have.
  • verifiers.v1 — the newer taskset class.

The report header names which one it read (verifiers_legacy or verifiers_v1), so a result always says how the environment was loaded. A taskset is an installed Python package, so install it before auditing the directory it came from.

One pin to know about: upstream removed load_environment after verifiers 0.3.1. If your environment resolves a newer build, Bohrin cannot read it through that API and will say so, naming the removal — pin verifiers<0.3.2 to audit it.

Scoring invokes the task's reward functions directly — no agent, no model inference, no rollout — so an audit takes seconds.

A taskset that generates tasks forever is refused unless you bound it with --max-tasks N, rather than run until you notice.

--max-tasks N audits the first N tasks. Add --sample-seed S to audit N drawn uniformly at random instead, which is what makes the reported rate an estimate of the whole taskset rather than a statement about its opening tasks. The mode and the seed are printed and recorded, and the same seed redraws the same sample.

Reading Inspect tasks

Bohrin also audits Inspect evaluations: point it at a file that defines @task functions, or at a directory of them.

$ pip install 'bohrin[inspect]'
$ bohrin audit ./my_eval.py --unsafe-local

Each sample becomes one task, its target the declared answer, and each scorer is called directly with the candidate as the model's reply — no solver runs and no model is asked. Tasks built with no arguments are read; one that needs arguments is reported as not loadable.

Some scorers cannot be graded this way, and Bohrin refuses them rather than scoring them: a task that runs in a sandbox, a model-graded scorer, and choice, which grades answers the multiple-choice solver marks. A custom scorer that reaches for a model or a sandbox while grading — even one that catches the failure itself — has that submission declined, and a declined submission is never reported as a grader defect.

What it will not do without being asked

Scoring runs the taskset's own code. Bohrin refuses to execute it with no isolation boundary unless you pass --unsafe-local, and the level it ran under is recorded in the report. A task whose reward function needs a runtime is refused rather than scored on a partial rubric, because a partial rubric awards full marks to a submission that does nothing.

The four open probes

Two directions of the same failure, one check on the signal itself, and one on the task.

Weak oracle — will the verifier accept work that is provably incorrect? This is mutation testing with the roles relabelled: your verifier is the test suite, and a surviving mutant is a wrong solution it accepted.

Ground truth rejected — will the verifier reject work that is right? It submits the taskset's own declared answer, rendered every way the relation catalogue certifies as meaning-preserving, and reports tasks where none was accepted. A verifier that rejects correct answers trains a model away from correct behaviour: the gradient says the right answer was wrong. This probe reports findings but deliberately does not contribute to the Verification Gap — a verifier enforcing an output format its prompt documents looks identical to a broken one, and scoring them together would accuse the wrong party.

Determinism — does the verifier return the same reward for the same submission? A grader that disagrees with itself injects noise straight into the reward signal.

Answer leakage — is the declared answer already written in the prompt? A model does not have to solve a task whose answer it can copy, and a grader that only checks the answer appears in the reply pays full marks for the copy. It calls no reward function. Like ground truth rejected it reports findings without moving the Verification Gap, because a reading-comprehension task is meant to contain its answer and looks identical.

What they will and will not find

The open probes use nine deterministic, model-free operators. They cost nothing but reward invocations and they are reproducible, but they do not find what a motivated attacker finds.

Across six verifiers v1 environments they reported one defect — scratchpad, above — and no false accusations. Of the other five: three measured clean at full coverage, and two Bohrin declined to score, saying so in the report rather than reporting them clean (gsm8k needs a runtime; reverse_text's own reference answer fails its own verifier).

That sweep predates 1.1.0, and two of its "clean" results have since been resolved. glossary, which accepts any reply containing the answer as a substring, is now caught by false_negation — an explicit denial of the answer contains the answer too, and a substring check cannot tell the two apart. And proposer_solver turned out to attach no reward function to its tasks at all; it is now reported as unmeasured rather than clean.

Until 1.3.0 the boundary left after those was a grader that reads only one answer format — the last \boxed{}, say — because no fixed payload was written in it. It no longer is: the baseline learns the format from the verifier's own acceptance of the declared answer, and every wrong payload is re-submitted through the same meaning-preserving rewriting.

The boundary that remains is a task that declares no answer at all. Most operators need one — there is nothing to contradict, and nothing to be provably distinct from — so only the payloads needing none are tried: an empty reply, a refusal, the prompt echoed back. A grader rejecting those three has been asked very little, and the report says so on the clean line rather than letting it read as a full audit. That is the honest edge of the open core, and it is stated here rather than discovered later.

The rule this codebase is built around

Bohrin must never falsely accuse a verifier.

A missed exploit costs you one finding. A false accusation costs the tool its reason to exist. So a candidate is only reported as an exploit when its wrongness is established independently of the verifier being audited — everything else is a lead, not a finding. CI enforces this from both directions, including a clean fixture where any finding fails the build.

Free forever, and what is sold

Bohrin does one job completely, for free: check a grader you own, on your machine. No account, no upload, no part of that job held back, and never a message telling you a finding is withheld. Nothing released as open source is ever withdrawn.

What is sold is not more of that job. It is different jobs: searching a grader for cheats a fixed list cannot construct, watching a training run, reaching into systems Bohrin does not run, holding a risky action before it happens, keeping history for a team, and issuing a certificate an outsider can rely on. See docs/04_RELEASE.md.

Runs on your infrastructure

Bohrin provisions no compute and transmits no environment data. It runs where your environments already run, and it refuses to execute generated candidates unless the required isolation properties are present.

Documentation

Document Contents
docs/01_ARCHITECTURE.md Layout, core types, plugin seam, concurrency, isolation
docs/02_VERIFICATION_GAP.md What the number means and how it is computed
docs/03_PROBES.md Probe designs, including what we refuse to do
docs/04_RELEASE.md What is open, what is not, and why

What Bohrin is not

  • It does not train models and does not provide a reward signal.
  • It does not host or execute environments.
  • It does not grade model outputs — that is a verifier's job. Bohrin grades the verifier.

Authorisation

Bohrin generates working exploits against verifiers. Audit only environments you own or are authorised to assess — the same norm the security industry applies to offensive tooling.

Not a novelty claim

The techniques are published. Weak oracle is mutation testing; the adversarial hacker/fixer loop is arXiv:2606.08960; the acceptance rates are arXiv:2606.16062. What Bohrin contributes is the productised system and its position — not the algorithms.

License

Apache-2.0. Copyright 2026 Bohrin.

Metadata

Release files for bohrin 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bohrin 1.5.0
File Size Uploaded
bohrin-1.5.0.tar.gz 248.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bohrin 1.5.0
File Interpreter ABI Platform
bohrin-1.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 375.9 kB

Release files / bohrin-1.5.0.tar.gz

Download URL bohrin-1.5.0.tar.gz
Size 248.1 kB
Tags Source
SHA-256 checksum
How to use checksums
afa18cb7aba54c0c3f2e04dae253752dc42fdceba588d39583bc7c68ffa8e080
BLAKE2b-256 checksum
How to use checksums
459d35ad4e471146817bd186292cd48c9a3863b129801ae403a5405a4c24f0b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.

Transparency log

Release files / bohrin-1.5.0-py3-none-any.whl

Download URL bohrin-1.5.0-py3-none-any.whl
Size 127.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31bff25bb8011ef3534dd11ee8f46e43155f2a2a631d06245d7e3731c5ecb8de
BLAKE2b-256 checksum
How to use checksums
64a4b983f0a23dbd0c590540e2bca43b3b43085d7cbe1ee2c0144a5a4dfc1c7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.0

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page