Skip to main content

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

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.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 jpipe-runner 4.5.0
File Size Uploaded Provenance Actions
jpipe_runner-4.5.0.tar.gz 106.1 kB With provenance Details for jpipe_runner-4.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jpipe-runner 4.5.0
File Interpreter ABI Platform Actions
jpipe_runner-4.5.0-py3-none-any.whl Python 3 none any Details for jpipe_runner-4.5.0-py3-none-any.whl

Total release size: 228.0 kB

Release files / jpipe_runner-4.5.0.tar.gz

Download URL jpipe_runner-4.5.0.tar.gz
Size 106.1 kB
Tags Source
SHA-256 checksum
How to use checksums
25d38ef8f8137857e6761c9a0187bb78e8e5dbabf67d42798f4f26f2e1c0780a
BLAKE2b-256 checksum
How to use checksums
4a1480d9f768728e8e3ebeb8192ccd054b6d33e7172af454df185633ac7cded7
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 24, 2026.

Transparency log

Release files / jpipe_runner-4.5.0-py3-none-any.whl

Download URL jpipe_runner-4.5.0-py3-none-any.whl
Size 121.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e984a89d14468bc2a8b1d683a26d5b088fff79d4f3bc0c8e8cfc8bf483af49b
BLAKE2b-256 checksum
How to use checksums
8430f1ae1bdf75645692da5ee3818bb954c05887b8bb91ddecb1dd490e50af67
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 24, 2026.

Transparency log

Security for jpipe-runner 4.5.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.

Select from 2 files

Attestation for jpipe_runner-4.5.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 24, 2026.

Transparency log

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

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