Skip to main content

senbonzakura-check

Read an evaluation result file and report how the number could be wrong.

pip install senbonzakura-check
senbonzakura-check results/

It installs in seconds and pulls nothing. No torch, no model, no corpus, no GPU, no network. It reads JSON and does arithmetic.

It understands result files from lm-evaluation-harness, Inspect, and senbonzakura itself, at the artefact level: it never imports those tools, so their release schedule is not your breakage.

Every finding names four things, because a finding that says only what fired sends you to the source:

  • what it detects
  • the incident that motivated it, because a finding with no citation is an opinion
  • how to fix it
  • what would make the check wrong, so you can judge it without reading the code

Three exit codes, and they mean different things

Code Meaning
0 every file was read, and nothing fired
1 at least one finding
2 at least one file could not be read at all

A file the checker cannot parse is reported unchecked, never clean. A clean report on something nobody read is indistinguishable from a clean bill of health, and a CI gate that treats the two the same goes green the day your result format changes.

For the same reason the summary says how many checks did not apply to a file: "nothing found" across checks that could not run is a different statement from "nothing found".

A clean report is not a certificate. It looks for known failure modes. It cannot tell you a number is right, and it says so in its own output.

Running it without choosing to

In GitHub Actions:

- uses: elementmerc/senbonzakura@v0.4.0      # pin it
  with:
    path: results/

As a pre-commit hook:

repos:
  - repo: https://github.com/elementmerc/senbonzakura
    rev: v0.4.0                               # pin it
    hooks:
      - id: senbonzakura-check

Adding a check

A check is a JSON file in checks/, and the engine never hardcodes one. It carries an id, what it detects, the incident behind it, the remedy, a confidence, what would make it wrong, and two controls: a document that makes it fire and one that does not. A check that cannot demonstrate firing is not merged, because a check nobody has watched fail is a check nobody has tested.

Licence

AGPL-3.0-or-later. This is part of senbonzakura; the abliterator lives in the senbonzakura distribution and brings the deep-learning stack with it. This one does not.

Metadata

Release files for senbonzakura-check 0.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 senbonzakura-check 0.5.0
File Size Uploaded
senbonzakura_check-0.5.0.tar.gz 130.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for senbonzakura-check 0.5.0
File Interpreter ABI Platform
senbonzakura_check-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 287.9 kB

Release files / senbonzakura_check-0.5.0.tar.gz

Download URL senbonzakura_check-0.5.0.tar.gz
Size 130.9 kB
Tags Source
SHA-256 checksum
How to use checksums
90816d98ecee3ab6008d2cd9cf33de95cde1e1edbde5ae2083330586a261813b
BLAKE2b-256 checksum
How to use checksums
e390736399c7955533fef952454e63b9bb39637a3a384fd195717e32b5383672
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 Oct 13, 2026.

Transparency log

Release files / senbonzakura_check-0.5.0-py3-none-any.whl

Download URL senbonzakura_check-0.5.0-py3-none-any.whl
Size 157.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a676f8b18f3fc66c8daf318a0fe810471c1675ef5fdbc5aa4fa1634db6d362a4
BLAKE2b-256 checksum
How to use checksums
548c93d91821bc39b43e6827cb0de71d91ff02a2d10867b2d01c05cdf6694601
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 Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.1

2 release files

This release

0.5.0 This release

2 release files

0.4.1

2 release files

0.4.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