Witnessbox
Evidence-based testing (EBT) of application behaviour: during tests the code records which decision it made and on what data, and an independent checker re-verifies every decision against a human-approved specification. The kit consists of a run gate, a checker and SDKs for Java, Dart and TypeScript. The runtime requires Python 3.11+ and has no third-party dependencies. The gate is a bash script tested on macOS and Linux; native Windows is not supported, and running it under WSL is not covered by tests.
Quick start
uv tool install witnessbox # or: pipx install witnessbox
ebt-gate --scaffold ts ebt # ebt/ scaffold for the dart, ts or jvm stack
ebt-gate ebt /path/to/clean-checkout /path/to/results
The scaffold contains an example spec.toml, checks.py and a stack-specific test.sh. A human approves the specification before the first run, and test.sh wires in the project's tests (new project). The installation provides ebt-gate and ebt-check; there is no separate witnessbox command. Gate exit codes: 0 PASS, 1 FAIL, 2 ERROR. The machine-readable result for CI is gate.json in the results directory.
ebt-gate --installation prints the version and the SHA-256 of the gate and checker code; compare them with the release values in the decision log. Building from source, moving from the previous distribution and migration are covered in usage.
The documentation is written in Russian.
Guarantees and limits
The gate checks what was recorded and re-verifies the rule, but it is not a sandbox: the code under test and the gate run as the same OS user, so the guarantee is detection, not a privilege boundary (D26).
- A decision that was made but not recorded, with consequences not visible outside observation-level (OBS) scenarios, is not caught; mutation audit is a research tool, not part of the gate (D29).
- An installation tampered with before the run is not caught: the caller compares
gate_sha256andchecker_sha256with the release values (D33); in CI,actions/setupchecks the wheel and--installationagainst the release (D45). - A deliberate bypass from
test.shby the same user — a background process,~/.gitconfig,PATH— is not caught (D26). - A coordinated substitution of evidence and
gate.jsonbefore the verdict is not caught; in CI the trusted stage re-checks the evidence and signs the result, but the evidence is still produced by the code under test (D34, D45). - In CI, a verdict from the untrusted
pull_requeststage is not trusted: aworkflow_runstage re-verifies the evidence againstebt/from the base branch, signsgate.jsonand sets thewitnessbox/gatecommit status (D45, CI mode).
A human approves the specification (D4). The full "attack → how it is caught → what is not" table is in the threat model.
Documents
- How it works — one example from requirement to verdict, for a first look.
- Threat model — what the gate detects and what it does not promise.
- CI mode — two-stage GitHub Actions gate with a signed verdict and the
witnessbox/gatestatus. - New project — the
ebt/scaffold: specification, stack-specifictest.shandpinned.txt. - Architecture — the actual modules and the verification flow.
- Extensions — public types and the contract for project checkers.
- Development — test commands, SDKs and the standalone build.
- Decisions — current status and the append-only decision log.
License
MIT. The SDK files (Ebt.java, ebt.ts, ebt.dart) are copied into application code unchanged and carry the line SPDX-License-Identifier: MIT.
Metadata
Release files for witnessbox 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| witnessbox-0.6.0.tar.gz | 166.5 kB | With provenance | Details for witnessbox-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| witnessbox-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for witnessbox-0.6.0-py3-none-any.whl |
Total release size: 227.8 kB
Release files / witnessbox-0.6.0.tar.gz
| Download URL | witnessbox-0.6.0.tar.gz |
|---|---|
| Size | 166.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
914066cb71067dbce19d26ee367986ad16b9e0143451765a50317d669d1d7a8a
|
|
BLAKE2b-256 checksum How to use checksums |
195a26dda8bfb31b33904db49e019c73372c433528cac8de5d3870ac29bf6b64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 1, 2026.
Transparency logRelease files / witnessbox-0.6.0-py3-none-any.whl
| Download URL | witnessbox-0.6.0-py3-none-any.whl |
|---|---|
| Size | 61.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef476e6363f6356758802403eb113c3d8f2d85b0b7ee831df74970408c2ed1c0
|
|
BLAKE2b-256 checksum How to use checksums |
95b9e83aede37265150ca43c97fb808e7378bc3bb09fb4db15a8b66b8129c7ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 1, 2026.
Transparency logSecurity for witnessbox 0.6.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for witnessbox-0.6.0.tar.gz
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 Nov 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.