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.
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). - A deliberate bypass from
test.shby the same user — a background process,~/.gitconfig,PATH— is not caught (D26). - Editing evidence after the verdict is visible when re-checking against
gate.json; a coordinated substitution of the files and the result is not caught (D34).
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.
- 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.5.2
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.5.2.tar.gz | 124.1 kB | With provenance | Details for witnessbox-0.5.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| witnessbox-0.5.2-py3-none-any.whl | Python 3 | none | any | Details for witnessbox-0.5.2-py3-none-any.whl |
Total release size: 182.4 kB
Release files / witnessbox-0.5.2.tar.gz
| Download URL | witnessbox-0.5.2.tar.gz |
|---|---|
| Size | 124.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf46ebb61fc2e799f236eac296c38b48282f618c6698f1d023e8c1261a6e4c26
|
|
BLAKE2b-256 checksum How to use checksums |
f024f3e982ae9646414210f95be6614a3f4a47e948610129e6be4bef551b789b
|
| 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.5.2-py3-none-any.whl
| Download URL | witnessbox-0.5.2-py3-none-any.whl |
|---|---|
| Size | 58.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9cff38c9326f9e6e3749e4f2ed2f822c59052f38225863af553a17064aa5566f
|
|
BLAKE2b-256 checksum How to use checksums |
d10f443fc2dc9b61441ba07fc3cac5a55006290d7e09c86f2f46814ebd086faf
|
| 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.5.2
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.5.2.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.