Skip to main content

Bront

Repeatable reliability tests and release evidence for inference deployments. Bront checks an existing HTTP JSON endpoint against representative inputs, correctness assertions, and latency/error limits. Add fault or rollout scenarios, compare repeated baseline and candidate runs, and share an offline HTML report. Your service does not need to adopt Bront's reference gateway.

Quickstart

Requires Python 3.12 or newer; tested on CPython 3.12, 3.13, and 3.14. From this checkout:

uv sync --frozen
uv run python examples/http-json/server.py

In another terminal:

uv run bront run examples/http-json/suite.toml --output reports/run.json
uv run bront report reports/run.json --output reports/review.html

Open reports/review.html in a browser. The standalone example requires no Docker, Kubernetes, Triton, or backend-specific status API.

For your own service, configure the URL, JSONL input cases, expected outputs, workload, and assertions in a TOML suite. Read the external endpoint guide for the supported contract. Credentials can reference environment variables; raw payloads and credential values are excluded from normal reports.

Release workflow

uv run bront run baseline.toml --repeat 3 --output reports/baseline.json
uv run bront run candidate.toml --repeat 3 --output reports/candidate.json
uv run bront compare reports/baseline.json reports/candidate.json \
  --policy limits.toml --output reports/comparison.json
uv run bront report reports/comparison.json --output reports/comparison.html

Record deployment metadata and explicitly allow the intended change in the comparison policy. Bront checks experiment compatibility before evaluating regressions. Missing context, incomplete execution, or insufficient repeat evidence cannot produce a passing comparison. Observed variation is not a statistical significance test.

Command Purpose
bront run Execute a suite, retain samples, and evaluate release assertions.
bront compare Compare compatible repeated experiments against an explicit policy.
bront report Render recorded evidence as self-contained HTML with JSON downloads.

run and compare return 0 for passing evidence, 1 for failed checks, and 2 for execution/configuration problems or inconclusive/incompatible comparisons. Interrupted runs use exit 130 and retain partial evidence. report returns 0 when rendering succeeds; it does not replace a release gate.

Guides

Optional reference deployment

The reference gateway, compatible mock fallback, Triton double model, fault proxy, and monitoring stack exercise the same suite workflow. They are fixtures, not required infrastructure for using Bront. Gateway code lives in bront.reference; its server dependencies are an optional reference extra.

# Build and start the mock reference stack.
docker compose up --build --wait
uv run bront run examples/gateway/suite.toml --output reports/gateway.json
uv run python scripts/smoke_compose.py

For controlled outage and delay scenarios:

docker compose -f compose.yaml -f compose.scenarios.yaml up --build --wait
uv run bront run examples/scenarios/proxy-outage.toml --output reports/outage.json
uv run bront run examples/scenarios/proxy-delay.toml --output reports/delay.json
uv run bront report reports/outage.json --output reports/outage.html

Run one fault experiment at a time against a disposable reference stack. Scenarios record control events and restore owned faults on ordinary errors and interruption. The scenario guide explains cleanup and recovery boundaries.

See the Triton walkthrough for the ONNX CPU integration, Kubernetes guide for two independent gateway replicas, and observability guide for per-pod metrics. The double model is an integration fixture; a trained-model example remains on the roadmap.

For a locally launched gateway, copy .env.example to .env and install the reference dependencies with uv sync --extra reference. Entry points are bront.reference.gateway:app and bront.reference.mock_backend:app. Reference environment variables use BRONT_; metrics use bront_. The suite runner uses explicit TOML and process environment variables, not .env.

Development and packaging

uv sync --frozen
uv run ruff check .
uv run ruff format --check .
uv run ty check --python-version 3.12
uv run pytest
uv run python scripts/smoke_external.py
uv build

The distribution, import package, and CLI are all named bront. A core wheel installation needs no FastAPI or Prometheus dependencies. Source-checkout dev requirements include the reference dependencies to test both workflows. No registry publication is required to install a locally built wheel.

The .python-version file selects Python 3.14 for default checkout development; it is not the package's installation requirement. To work on another supported version:

uv sync --python 3.12 --frozen
uv run --python 3.12 pytest

CI tests the full suite and an isolated wheel installation on Python 3.12, 3.13, and 3.14, including the run/compare/report smoke workflow. Ruff and type checking target the 3.12 minimum to catch accidental use of newer syntax or APIs. The reference Docker images continue using Python 3.14.

The Dockerfile provides a cli build target for the tool alone and a default reference target for the fixture services:

docker build --target cli -t bront:cli .
docker run --rm bront:cli

CI runs lint, types, tests, the reference Compose smoke check, reusable proxy scenarios, and the standalone run/compare/report workflow. It uploads JSON and HTML artifacts, including evidence retained after failed experiments. Generated reports belong under the ignored reports/ directory rather than in Git.

Metadata

Release files for bront 0.1.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 bront 0.1.0
File Size Uploaded Provenance Actions
bront-0.1.0.tar.gz 133.2 kB Without provenance Details for bront-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bront 0.1.0
File Interpreter ABI Platform Actions
bront-0.1.0-py3-none-any.whl Python 3 none any Details for bront-0.1.0-py3-none-any.whl

Total release size: 188.8 kB

Release files / bront-0.1.0.tar.gz

Download URL bront-0.1.0.tar.gz
Size 133.2 kB
Tags Source
SHA-256 checksum
How to use checksums
db8eb48b1c9a9ad2c78c7dc2f78ca60a660d505749872a19e763570183fe9990
BLAKE2b-256 checksum
How to use checksums
723a21eee57d0f4d67d21961006db7ba07c5b2d99b020d2af7de3c1b7b1ac614
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / bront-0.1.0-py3-none-any.whl

Download URL bront-0.1.0-py3-none-any.whl
Size 55.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e36b7930183055068669cc24f34030acfac92fb6c1ad7f371c8e1690ac5afa70
BLAKE2b-256 checksum
How to use checksums
34aa05e3a8357fbe3ddb40dd4ffb8de7931cbe174eeb67f12cd8e7f175d5352e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for bront 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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