L9 Harness is the deterministic local execution, conformance, replay, and shadow-comparison tool for the Quantum-L9 CI constellation.
CI Core orchestrates and publishes.
CI SDK executes checks and emits canonical observations.
Harness exercises public contracts and preserves bytes.
Assurance admits evidence, evaluates controls, and issues decisions.
Harness is never a required hop in authoritative Release-zero CI. It does not admit evidence, calculate verdicts, publish GitHub checks, repair repositories, or promote corpus candidates.
Every CLI command enters through l9_harness.application.ingress. The ingress normalizes arguments once, validates the route once, assigns deterministic request and trace identifiers once, and emits only argument names plus an argument digest. Raw argument values are not copied into the public ingress record. Typed internal modules remain composable for tests and embedding and do not become an alternate CLI entrypoint.
This repository is a controlled clean rewrite from the locked Harness v1.2.1 specification. The target GitHub repository could not be retrieved during this build, so the live baseline commit remains UNKNOWN_REPOSITORY_UNAVAILABLE. See BUILD_AUTHORIZATION.md and VALIDATION.md.
Harness-owned behavior is implemented and locally validated. Production cross-repository adapters remain fail-closed until immutable upstream authority is supplied:
- Assurance release commit and executable build digest;
- Assurance schema, profile, policy, registry, fixture, SBOM, and provenance digests;
- registered
l9.assurance-planschema; - trusted SDK release/build identity and public invocation contract;
- authority-published canonicalization vectors.
Bundled development fixtures exercise Harness mechanics only. They are not production authority.
- Python 3.11 through 3.13
uv- Git
pytestfor the test suite- optional external quality tools: Ruff and mypy
The runtime package has no third-party dependencies.
uv sync --offline --reinstall
uv run l9-harness --version
uv run l9-harness --helpInstall the built wheel without dependencies:
python -m venv .venv-wheel
.venv-wheel/bin/pip install --no-deps dist/l9_harness-2.0.4-py3-none-any.whl
.venv-wheel/bin/l9-harness --versionThe dependency-free acceptance ladder is:
find . -type d \( -name __pycache__ -o -name .pytest_cache -o -name .mypy_cache -o -name .ruff_cache \) -prune -exec rm -rf {} +
python scripts/generate_bindings.py
python scripts/update_schema_registry.py
python scripts/update_fixtures.py
python scripts/update_filetree.py
python scripts/update_manifest.py
python scripts/generate_source_identity.py
python scripts/update_tracked_files.py
python scripts/verify_generated.py
python -B scripts/validate_repository.py
python -m compileall -q src tests scripts build_backend.py
python -m pytest -q
python scripts/build_release.pyWhen Ruff and mypy are installed, also run:
ruff format --check .
ruff check .
mypy src/l9_harnessl9-harness doctor . --json
l9-harness plan \
--repo . \
--profile profiles/release-zero-local.yaml \
--assurance-plan fixtures/assurance/development/assurance-plan.json \
--sdk-manifest fixtures/sdk/development/capability-manifest.json \
--output .l9/harness/plan.json \
--jsonProduction plan parsing requires --production and fails closed while authority records remain incomplete.
src/l9_harness/: runtime and CLI;schemas/v1/: strict Harness-owned JSON Schemas;profiles/: execution mechanics, never assurance policy;fixtures/: explicitly labeled development and conformance inputs;tests/: unit, contract, integration, conformance, replay, adversarial, property, performance, and architecture coverage;docs/requirements/traceability.yaml: invariant-to-evidence map;RUNBOOK.md: operation and recovery procedures;MANIFEST.md: complete source-pack responsibility inventory;FILETREE.md: deterministic source-pack path inventory;PROVENANCE_MAP.yaml: source-to-release lineage;DECISION_LOG.md: material architecture and release decisions;VALIDATION.md: evidence-backed release status.
python scripts/build_release.py produces:
- deterministic wheel and source distribution;
- schema and fixture bundles;
- CLI command snapshot;
- package-content manifest;
- SPDX SBOM;
- provenance record;
- byte-preserved repository-validation evidence;
- SHA-256 checksum manifest.
python scripts/generate_source_identity.py
python scripts/update_tracked_files.py
uv build --offline
python scripts/finalize_distribution.py
python scripts/verify_distribution.py --dist distInspect distribution/source-identity.json, dist/distribution-manifest.json, and dist/distribution-alignment.json. A successful import alone is not distribution alignment.