Skip to main content

release-readiness-core

A deterministic release-readiness engine: same evidence in, same PASS / WARN / BLOCK out. Project-agnostic, configured in YAML, with adapters for Playwright, JUnit, and LCOV — and a four-command quickstart that lands a green Check on your first PR.

release-readiness-core logical flow — how evidence becomes PASS, WARN, or BLOCK

The gate is deterministic: configured rules applied to concrete evidence and changed-file risk, no LLM in the loop. Click the diagram to view it full-size.

Sample apps

End-to-end working examples — the fastest way to see the gate in motion on real PRs:

  • release-readiness-sample-app (Go) — Phase-2 rollout: --enforcement-mode block_only paired with WARN → neutral Check mapping. WARN visible on PRs but doesn't block merge.
  • release-readiness-node-js-sample-app (TypeScript) — Phase-3 rollout: --enforcement-mode warn_and_block paired with WARN → failure Check mapping. WARN PRs are blocked from merging.

Reading the two side by side shows the full phased adoption path.

Package layout

Path Role
release_readiness_core.engine Core validation merge types and deterministic summary
release_readiness_core.pr_gate Generic N-input PR gate combiner
release_readiness_core.readiness_engine Full artifact-based PASS/WARN/BLOCK evaluation
release_readiness_core.cli CLI entries release-readiness (validation summary) and release-readiness-evaluate (YAML + artifacts)
release_readiness_core.readiness_io JSON/YAML/git helpers for evaluate
release_readiness_core.adapters Optional helpers (Playwright → schema, GitHub check payloads)

Quickstart

The shortest path to a green release-readiness Check on your first PR is four commands:

pip install "release-readiness-core==0.5.0"
release-readiness-init my-project --demo --stack <go|pytest|jest|playwright|cypress|vitest|go-coverage>
cd my-project && git init && git add . && git commit -m "release-readiness scaffold"
# push, open a PR — the release-readiness Check appears

--demo ships synthetic green evidence so the first PR proves your CI plumbing before you've changed any product code. Full walkthrough including the seven-stage path from synthetic green to a required gate on main: docs/how-to/0-quickstart.md.

Toolchain: docs standardize on pip install for local / PyPI adoption; some GitHub Actions examples use uvx --from … so CLIs work on PEP 668–managed runners without a venv dance. Why both appear: docs/how-to/9-adoption-tiers.md.

Configuration

Scoring, evidence paths, and PR-risk behavior are YAML-configurable — omitting new sections keeps the same defaults as earlier releases.

File What you tune
ops/release-readiness/config.yaml PASS/WARN/BLOCK thresholds, penalties, warnings_suppress_pass, default artifact paths, validations
ops/release-readiness/pr-risk-config.yaml Domains, gates, factor weights, risk bands, merge policy, score floors, intent rules

release-readiness-init writes commented starters for both files; release-readiness-doctor validates shapes before CI.

Direct CLI usage

If you'd rather skip the scaffold and call the engine directly:

uv run release-readiness --input-json '[{"key":"go-test","status":"PASS"}]'

Evaluate from a YAML config and JSON evidence (writes report.json, report.md, release-readiness.json):

uv run release-readiness-evaluate --repo-root . --config path/to/config.yaml \
  --empty-diff --output-dir artifacts/release-readiness

Adapter CLIs

# Playwright JSON reporter -> readiness e2e shape
uv run playwright-to-readiness --input playwright-results.json --output e2e_results.json \
  --validation-map ops/release-readiness/validation_map.yaml

# JUnit XML (Cypress / Jest / pytest / Mocha / etc.) -> readiness e2e shape
uv run junit-to-readiness --input test-results.xml --output e2e_results.json \
  --validation-map ops/release-readiness/validation_map.yaml

# LCOV info -> readiness coverage shape
uv run lcov-to-readiness --input coverage/lcov.info --output coverage.json \
  --baseline-percent 85

# PR-risk semantic combiner (consumes existing pr-risk.json)
uv run pr-risk-semantic --pr-risk-json artifacts/pr-risk.json --generator-outcome success

--validation-map is optional on Playwright and JUnit; without it the converter emits an empty validations object (counts and failures still reported). For Playwright, override default spec extensions with --spec-extensions ts,js,mjs,e2e.

The N-input PR gate combiner lives in release_readiness_core.pr_gate (combine_gate_inputs).

Install from PyPI (version-pinned)

pip install "release-readiness-core==0.5.0"

Install from Git (SHA-pinned)

pip install "git+https://github.com/psuthar/release-readiness-core.git@<sha>"

Use this when you need an unreleased commit or a fork. Release policy and versioning: RELEASE.md.

Development

uv run pytest
uv build

See CONTRIBUTING.md for branch/PR conventions and how to add an adapter.

Configuring PR Risk for your project

release-readiness-pr-risk ships a generic, language-agnostic baseline by default — domains classify everything to other, only generic gates (CI fetch depth, PR review summary, workflow / config validation, add tests / evidence, intent alignment, scattered review plan, test proximity, hotspot regression) fire. To make it project-specific (auth E2E gate when src/auth/ changes, migration validation when SQL files change, etc.), author a pr-risk-config.yaml:

release-readiness-init writes a commented starter at ops/release-readiness/pr-risk-config.yaml; release-readiness-doctor --pr-risk-config <path> validates it (typos, malformed predicates, references to undeclared domains, unknown evidence templates).

How-to guides

  • Quickstart — adopt the package in a new project: docs/how-to/0-quickstart.md
  • Map evidence — wire CI artifacts to validation keys: docs/how-to/1-map-evidence.md
  • Tune scoring — penalties, thresholds, remediation: docs/how-to/2-tune-scoring.md
  • CI integration — GitHub Checks and the generic adapter pattern: docs/how-to/3-ci-integration.md
  • Multi-job CI — split smoke / e2e / coverage across jobs: docs/how-to/4-multi-job-ci.md
  • Branch protection — make the readiness check required: docs/how-to/5-branch-protection.md
  • Migrating from an existing gate: docs/how-to/6-migrate-from-existing-gate.md
  • Configure PR Risk for your project: docs/how-to/7-configure-pr-risk.md
  • Recipe matrix — adapter snippets per stack (Playwright / pytest / Cypress / Jest / Vitest / Go): docs/how-to/8-recipe-matrix.md
  • Adoption tiers — pick reusable workflow vs. composables vs. raw CLIs: docs/how-to/9-adoption-tiers.md
  • Config surface map — all optional YAML knobs: docs/how-to/10-config-surface.md

Reference

  • Outputs glossary — every field in report.json / release-readiness.json explained: docs/reference/outputs.md
  • JSON contracts: docs/contracts/
  • Release process and SHA-pin policy: RELEASE.md
  • Changelog: CHANGELOG.md

Pre-flight

Before wiring CI, run the doctor against your scaffolded config:

release-readiness-doctor --config ops/release-readiness/config.yaml \
  --smoke-results evidence/smoke.json \
  --e2e-results evidence/e2e.json \
  --coverage evidence/coverage.json

Doctor catches config typos, evidence-shape mismatches, and common inconsistencies (e.g. failed_count > 0 but failures: []) before they reach a real run. Exits non-zero on any error.

Two CLIs — when to use which

  • release-readiness-evaluate — the full evaluator. Loads config.yaml, reads evidence files, computes PASS/WARN/BLOCK, writes report.json / report.md / release-readiness.json. Use this in CI.
  • release-readiness — a lightweight summary of validation booleans given inline JSON. No scoring, no thresholds, no artifacts on disk. Useful for quick sanity checks (release-readiness --input-json '[{"key":"x","status":"PASS"}]') or as a debugging probe in scripts. Not a substitute for the evaluator in production CI.

Contracts

  • PR risk input schema: docs/contracts/pr-risk-input-v1.schema.json
  • Readiness output schema: docs/contracts/release-readiness-output-v1.schema.json
  • Validation config schema: docs/contracts/validation-config-v1.schema.json
  • Contract reference guide: docs/contracts/README.md

Contributing

See CONTRIBUTING.md for development setup, PR conventions, and how to add an adapter for a new test runner. Maintainer-specific tooling (MCP servers, Jira automation) lives there too.

Metadata

Release files for release-readiness-core 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 release-readiness-core 0.5.0
File Size Uploaded Provenance Actions
release_readiness_core-0.5.0.tar.gz 478.4 kB With provenance Details for release_readiness_core-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for release-readiness-core 0.5.0
File Interpreter ABI Platform Actions
release_readiness_core-0.5.0-py3-none-any.whl Python 3 none any Details for release_readiness_core-0.5.0-py3-none-any.whl

Total release size: 609.1 kB

Release files / release_readiness_core-0.5.0.tar.gz

Download URL release_readiness_core-0.5.0.tar.gz
Size 478.4 kB
Tags Source
SHA-256 checksum
How to use checksums
716ab4a3c079814d6471540c3b6632e03ddf8ffe8d41f3d5c0bf9f1b149bfc51
BLAKE2b-256 checksum
How to use checksums
0ee7035ec3b50ec133f548630a903f9ea1fceb5809a6b5118340560f2345e248
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 21, 2026.

Transparency log

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

Download URL release_readiness_core-0.5.0-py3-none-any.whl
Size 130.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
faeb4d928d66cab1e6488b39e3f8479b6942ec9edfbb70158c3ff6d4ee7a3c6a
BLAKE2b-256 checksum
How to use checksums
a81a65b1c21b809bce71b0544d806996a66ee225be079bb53f8d6fce476bd148
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 21, 2026.

Transparency log

Security for release-readiness-core 0.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 release_readiness_core-0.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 May 21, 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