Skip to main content

RiskReplay

RiskReplay is an outcome-aware evaluation engine for financial AI systems operating under delayed and selective labels. It is built for teams that need more than a drift alert: they need to know whether a metric is trustworthy, what it means financially, and which cases a human reviewer should inspect first.

RiskReplay produces evidence and prioritization support. It is not an AML decision engine, a credit-decision service, or a compliance certification tool.

What it does

Capability RiskReplay output
Calibration Brier score, log loss, ECE, calibration intercept/slope, reliability bands
Label health Maturity rate, pending rate, observed-label coverage, delay diagnostics
Distribution shift Score PSI, Jensen–Shannon divergence, per-feature PSI when supplied
Audit evidence Schema and quality checks, reproducibility manifest, data/window fingerprints
Human review Budget-aware queue ranked by expected loss, uncertainty, and OOD signals

Install

pip install riskreplay

For local development:

pip install -e ".[dev]"

Minimal evaluation

from riskreplay import ColumnSpec, ObservationPolicy, ReviewPolicy, evaluate

report = evaluate(
    events="/secure/path/aml_alerts.parquet",
    reference="/secure/path/reference_window.parquet",
    columns=ColumnSpec(
        id="alert_id", score="aml_score", label="confirmed_suspicious",
        label_status="label_status", exposure="amount_usd",
        uncertainty="model_uncertainty", ood_score="network_ood_score",
        segment="channel", model_version="model_version",
    ),
    observation=ObservationPolicy(maturity_days=45),
    review=ReviewPolicy(budget=500),
    slices=["channel", "risk_band"],
)
report.write_evidence_bundle("artifacts/run-2026-08-23")

The important constraint

Labels are not always a random sample. If only some alerts are reviewed, a score calculated from observed labels can be biased. RiskReplay reports label_coverage, pending_rate, and identifiability alongside model metrics. If it has no defensible observation information, it does not label a selection-corrected metric as reliable.

Privacy

RiskReplay runs locally. The evidence bundle stores aggregate metrics, configuration, timestamps, and content fingerprints by default; it does not export raw customer records unless an application explicitly writes the review queue.

Public assets

The public Hugging Face catalog at adnanallemon/riskreplay-public-assets holds only publication-safe schema and reproducibility material. It intentionally does not contain production financial records or simulated customer data.

Project status

0.1.0 is the first Python MVP. The Rust crate in crates/riskreplay-core contains deterministic primitives that can be exposed through PyO3 in a later performance release without changing the public Python contract.

License

Apache-2.0.

Metadata

Release files for riskreplay 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 riskreplay 0.1.0
File Size Uploaded Provenance Actions
riskreplay-0.1.0.tar.gz 17.6 kB With provenance Details for riskreplay-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 35.8 kB

Release files / riskreplay-0.1.0.tar.gz

Download URL riskreplay-0.1.0.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
252c8e9d51a110e7593f7263f129a18e036bed0e01b93b4c7dc1c7ccac5c3a56
BLAKE2b-256 checksum
How to use checksums
35dc3acc3e33d2a8d9a15004c9cd525d8d8afcf567b7ffd2276cbadd9d30c96a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 22, 2026.

Transparency log

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

Download URL riskreplay-0.1.0-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99bfff22deddccfb7ab876ddea66cd2664d417a7fc86349d63e86b66d220ef03
BLAKE2b-256 checksum
How to use checksums
0f095d47c873d7f7ccff02a9487fe87fbd66543ad9c9292d48122e86a6e7fc81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 22, 2026.

Transparency log

Security for riskreplay 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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for riskreplay-0.1.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 Aug 22, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full 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