jPipe Runner
jPipe Runner checks jPipe justifications by running them. A justification argues that a claim holds, such as "version 2.0 is ready to ship", from evidence and the reasoning that connects it. The runner binds each piece of evidence and each step of reasoning to a Python function, calls them in order, and reports which claims hold, for a person at a terminal or for a CI pipeline.
Install
jPipe Runner needs Python 3.11 or later. Install it in your project's virtual environment, beside the packages your checks import:
pip install jpipe-runner
Homebrew (brew tap jpipe-mcscert/mcscert && brew install jpipe-runner) and the Ubuntu
PPA (sudo add-apt-repository ppa:mcscert/ppa && sudo apt install jpipe-runner) install
it in an environment of its own, which suits checks that only use Python's standard
library. Drawing diagrams also needs Graphviz's dot
program.
In 60 seconds
The release argument
rests on two pieces of evidence, a passing test suite and an up-to-date changelog, and on
a strategy that judges them. Compiled by jPipe to justification.json, it is checked by a
Python step library, steps.py, with one function for each:
from pathlib import Path
from xml.etree import ElementTree
from jpipe_runner import Fail, Outcome, Pass, evidence, strategy
RELEASE = "2.0"
@evidence("release:e1", observes={"report": "mock/junit.xml"}, produces=["tests_pass"])
def the_test_suite_passes(report: Path) -> Outcome:
"""[evidence] The test suite passes"""
suite = ElementTree.parse(report).getroot()
failed = int(suite.get("failures", "0")) + int(suite.get("errors", "0"))
if failed == 0:
return Pass(tests_pass=True)
return Fail(f"{report}: {failed} tests failed")
@evidence("release:e2", observes={"changelog": "mock/CHANGELOG.md"}, produces=["changelog_ok"])
def the_changelog_is_up_to_date(changelog: Path) -> Outcome:
"""[evidence] The changelog is up to date"""
if RELEASE in changelog.read_text(encoding="utf-8"):
return Pass(changelog_ok=True)
return Fail(f"{changelog} does not name release {RELEASE}")
@strategy("release:s", consumes=["tests_pass", "changelog_ok"])
def all_release_gates_pass(tests_pass: bool, changelog_ok: bool) -> Outcome:
"""[strategy] All release gates pass"""
if tests_pass and changelog_ok:
return Pass()
return Fail("a release gate did not pass")
Each evidence declares the file it reads and the value it produces; the strategy consumes both values. Run the argument against the library:
$ jpipe-runner --library steps.py justification.json
Justification: release
Version 2.0 is ready to ship
✔ Evidence The test suite passes # release:e1
✔ Evidence The changelog is up to date # release:e2
✔ Strategy All release gates pass # release:s
✔ Conclusion Version 2.0 is ready to ship # release:c
4 elements (4 passed)
verdict: pass
$ echo $?
0
Every check passed, so the claim holds, and the exit code is 0. Had the test report
recorded a failure, the evidence would fail, the strategy and the conclusion above it
would be skipped, and the exit code would be 1. --report report.json writes the same run
as JSON for programs, and --diagram release.svg draws its dataflow.
For GitHub Actions, an action that runs a justification on every pull request, and
comments with what holds and what does not, is built in jpipe-ci-actions. Its
first release is pending.
Documentation
- Tutorial:
from a
.jdfile to a green run, every file on one page. - Writing a step library, the command line, diagnostic codes and the JSON report.
- Troubleshooting, and migrating from v3.
- Every page, in reading order.
Contributing
docs/contributing.md
explains how to set up a development environment, run the tests, and propose a change.
Authors
Licence
MIT. See LICENSE.
How to cite
@software{mcscert:jpipe-runner,
author = {Mosser, Sébastien and Lyu, Jason and Lacroix, Baptiste and Veillard, Corentin},
license = {MIT},
title = {{jPipe Runner}},
url = {https://github.com/jpipe-mcscert/jpipe-runner}
}
Metadata
Release files for jpipe-runner 4.2.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 |
|---|---|---|---|---|
| jpipe_runner-4.2.0.tar.gz | 91.6 kB | With provenance | Details for jpipe_runner-4.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jpipe_runner-4.2.0-py3-none-any.whl | Python 3 | none | any | Details for jpipe_runner-4.2.0-py3-none-any.whl |
Total release size: 197.9 kB
Release files / jpipe_runner-4.2.0.tar.gz
| Download URL | jpipe_runner-4.2.0.tar.gz |
|---|---|
| Size | 91.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d08a2a6575728ed9ddf2e840f77c535a31fa271bdd8f55ff86f7f8042c38450
|
|
BLAKE2b-256 checksum How to use checksums |
93479b58a12e08f07db0e4d00250a9e8537e07d0b2a93461850e412bee795cb1
|
| 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 22, 2026.
Transparency logRelease files / jpipe_runner-4.2.0-py3-none-any.whl
| Download URL | jpipe_runner-4.2.0-py3-none-any.whl |
|---|---|
| Size | 106.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6a309a2bae9b9b0fb4492c5811d3f4d6eb991ade38ee8436132a32c518c098a
|
|
BLAKE2b-256 checksum How to use checksums |
18e87d8b4a61e8e3a0893252245cbb77f2680c977f456f74ee27bc2095152e88
|
| 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 22, 2026.
Transparency logSecurity for jpipe-runner 4.2.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
Both files in this release have been uploaded with provenance metadata.
Attestation for jpipe_runner-4.2.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 22, 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.