Skip to main content

quality

Homepage: https://github.com/infinito-nexus/quality

Install

flake.lock is the only pin source (requirement 001, decision 18). On a host with Nix, install packages.default, the runner wrapped with every tool by absolute store path, and call it by absolute path:

nix profile install github:infinito-nexus/quality/<release-tag>
~/.nix-profile/bin/quality check --staged

Dev stack

Hosts without Nix, CI and dev stacks use packages.image (nix build .#image), the OCI image of the same closure, published to ghcr by digest; the digest is in the release notes. A dev stack adds it as a compose service under the profile tools and a make target that runs it:

services:
  quality:
    image: ghcr.io/infinito-nexus/quality@sha256:<digest>
    profiles: [tools]
    network_mode: none
    read_only: true
    tmpfs: [/tmp]
    user: "65534"
    working_dir: /src
    volumes:
      - .:/src:ro
quality-check:
	docker compose --profile tools run --rm quality check --staged

--staged needs no database. --base and --all add the deep tier, which reads the bundle of quality db update: mount it with - <db>:/db:ro and pass --db /db. quality db update --licenses <repo>, repeatable, also stores the registry licences of the exact pins at each named repository's HEAD and in its staging index for legal.dependency-license; a pin without an SPDX licence there stays unchecked, and an update without --licenses keeps the stored licences. Run the service from a main checkout, because a linked worktree's .git file points outside /src.

CI

Another repository calls the reusable workflows by the commit of a release tag. Each workflow builds its tools from the flake at the commit it is called at (job.workflow_sha), so that uses: line is the only pin, and Dependabot's github-actions ecosystem moves it to the next release. quality.yml gates the range a pull request or push adds and scans every commit of it for secrets; tool.yml runs one tool of the flake, under its package name, over the whole tree:

jobs:
  quality:
    uses: infinito-nexus/quality/.github/workflows/quality.yml@<commit> # <release-tag>
  ruff:
    uses: infinito-nexus/quality/.github/workflows/tool.yml@<commit> # <release-tag>
    with:
      tool: ruff
      args: check src tests

Layer contracts

A repository that holds .quality/architecture.yml gets the rules architecture.layer and architecture.cycle (requirement 005, decision 3); each new hit lowers the architecture score by 25. Python runs through lint-imports of import-linter, JavaScript through depcruise of dependency-cruiser, both bundled like every other tool. Each section is optional, every key inside it is required, and a malformed file stops the check with an error naming the key. source is the directory holding the code, . for the root, and for JavaScript also the scope of the cycle check; layers lists the highest layer first, and no layer may import one above it:

python:
  source: src
  packages: [shop]
  layers: [shop.web, shop.domain]
  forbidden:
    - {from: [shop.domain], to: [shop.web]}
javascript:
  source: web
  layers: [web/ui, web/core]
  forbidden: []

Hosted scan

The role web-app-cst-quality-check serves the scan as a web page (requirement 002).

Command What it does
make up Builds the images and serves the page at http://localhost:18098/, or on the port QUALITY_DEV_PORT names; make down removes the stack and its volumes. Needs a vulnerability bundle at $QUALITY_DEV_DB/bundle (default ~/.cache/quality-check/dev-db/bundle), created once with quality db update --db <that path>. An exported INFINITO_CACHE_PACKAGE_URL makes the Nix builds use that package cache's raw-nixos-cache repository.
make test-service Unit tests of the web app and the launcher, in a virtual environment under .venv/service.
make test-egress INFINITO_CORE_DIR=<core> EGRESS_RUNTIMES="<runtimes>" Egress tests against the stack of make up; the step flags run through that core checkout's container wrapper, and every launcher and test-proxy test runs once under each runtime of EGRESS_RUNTIMES, such as "runc sysbox-runc", which docker info must offer.
make verify-test INFINITO_CORE_DIR=<core> Pulls the role into a core checkout with custom-role support and runs core's full test suite, lints included.
make verify-compose INFINITO_CORE_DIR=<core> Runs verify-test first, then deploys the role with Keycloak through that checkout and runs its Playwright spec.

Distribution

Command What it does
make test-distribution Builds packages.default and packages.image, then checks pins, notices, quality doctor and the image.
make test-e2e QUALITY_E2E_SKILLS=<repo> QUALITY_E2E_PACKAGE_MANAGER=<repo> QUALITY_E2E_RUNTIME=<runtime> Builds both outputs and checks that the host binary and the image, run under that Docker runtime (core's SANDBOX_RUNTIME, such as runsc), print the same quality doctor output and report the same findings on both repositories; needs Docker and the test bundle make test-integration fetches.

Benchmarks

The speed criteria of requirement 001 and its recall bound on core run apart from test-unit and test-integration. The core checkout is only read.

Command What it does
make test-bench QUALITY_CORE_DIR=<core> QUALITY_DB_DIR=<db> Times quality --version of the built packages.default against 0.15 s as the median of 9 runs and its quality check --all on core, deep tier included, against 360 s on 20 CPUs, both timings skipped with the measured load as the reason when 50 % or more of the CPUs are busy in the 5 s before or after them, and checks that clean.default-value finds every shell, Python and JavaScript default of tests/bench/default-value-hits.json, the hits of defaults.py of the kvb-code-clean skill on the core commit named there, which QUALITY_CORE_DIR must hold. Needs nix build .#default of this tree and a fresh bundle of quality db update.

Author

Kevin Veen-Birkenbach kevin@veen.world

Metadata

Release files for kvb-quality 0.2.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 kvb-quality 0.2.0
File Size Uploaded Provenance Actions
kvb_quality-0.2.0.tar.gz 118.9 kB With provenance Details for kvb_quality-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kvb-quality 0.2.0
File Interpreter ABI Platform Actions
kvb_quality-0.2.0-py3-none-any.whl Python 3 none any Details for kvb_quality-0.2.0-py3-none-any.whl

Total release size: 268.9 kB

Release files / kvb_quality-0.2.0.tar.gz

Download URL kvb_quality-0.2.0.tar.gz
Size 118.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b9afba49c00a2e7e328d43e30dd38502899cbbbfb888e35cdfc5ce4de5eab314
BLAKE2b-256 checksum
How to use checksums
d7a360038a0bbd56ba2ff4a1de772bbed0d4c6cfbf1c04b955b907c51b2040f3
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 25, 2026.

Transparency log

Release files / kvb_quality-0.2.0-py3-none-any.whl

Download URL kvb_quality-0.2.0-py3-none-any.whl
Size 150.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd72af6da8c891fa0268094e405df013a525fc567e5b24628acf69f0995eb772
BLAKE2b-256 checksum
How to use checksums
93406e60ed4b775524ea0ab40788b1c10a2e337a8b7ddf9c9e503ea3f0ce24a9
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 25, 2026.

Transparency log

Security for kvb-quality 0.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.

Select from 2 files

Attestation for kvb_quality-0.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 25, 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