19 features

Local or remote generation

Runs a Hugging Face model built into the image (CPU or GPU), or calls an OpenAI-compatible server (vLLM, Ollama, llama.cpp server).

REMOTE_INFERENCE_URL=http://serveur:8000/v1 ./reprobox generate "..."
Show more Show less
  • Local model downloaded at build time, at a specific revision.
  • In remote mode: the endpoint and the model reported by the server are recorded.
  • Optional provenance check through the Hugging Face API and Ollama's native API.
  • A network outage does not interrupt generation.

Three generation modes

Greedy decoding, unseeded sampling or fixed-seed sampling. Each mode has its own expected level of reproducibility, which is stated in the manifest.

DO_SAMPLE=1 TEMPERATURE=0.8 SAMPLING_SEED=42 ./reprobox generate "..."
Show more Show less
  • Greedy (default): reproducible in an identical environment.
  • Unseeded sampling: no reproducibility claimed.
  • Fixed seed: reproducible with the same model and environment.
  • reproducibility_note field filled in for every generation.

GPU acceleration

Generate on AMD GPUs locally, or hand off to an NVIDIA server (vLLM). Every manifest records the hardware used, and reproducibility is only claimed once it has been measured on your machine.

COMPOSE="docker compose -f docker-compose.yml -f docker-compose.rocm.yml" DEVICE=cuda ./reprobox generate "..."
Show more Show less
  • AMD ROCm validated locally, docker-compose.rocm.yml provided.
  • NVIDIA: through an OpenAI-compatible server (vLLM), with the endpoint and model recorded in the manifest.
  • float16 and bfloat16 to fit larger models in memory, flagged in the manifest.
  • GPU reproducibility declared by you, after measurement (GPU_REPRODUCIBILITY_VALIDATED): no unverifiable promise.

One JSON manifest per generation

Each generation produces a manifest describing the prompt, the output, the model, the runtime environment, the hardware and the parameters used.

./reprobox inspect out/manifests/<manifest>.json
Show more Show less
  • SHA-256 hashes of the prompt and output.
  • Model identifier, revision, and hashes of the weights, tokenizer and configuration.
  • Software versions, CPU, GPU and detected instruction sets.
  • box_sha256 hash of the ReproBox modules involved in generation.

Chaining and signing

Each manifest references the hash of the previous one and carries an ECDSA P-256 (default) or Ed25519 signature. Any later modification is detectable.

./reprobox verify chain out/manifests/
Show more Show less
  • chain_hash = sha256(prev_chain_hash + content_hash), signed by the instance key.
  • Files numbered by their position in the chain.
  • Writing is refused if the chain state is inconsistent (ChainStateError).
  • Clear-text signing block in each manifest: backend, key_id, algorithm, public key and signing date.

Chain verification

Checks hashes, links and signatures, then the signer's identity against an expected key or a trusted key registry.

./reprobox verify chain out/manifests/ --expect-pubkey "$EXPECT_PUBKEY"
Show more Show less
  • --expect-pubkey option for a single key, --trusted-keys for a key registry.
  • ECDSA P-256 and Ed25519 signatures verifiable with OpenSSL 3 or cryptography (commands in the ReproBox README).
  • Tools run on the host, outside the container.

Key rotation and registry

Replaces the signing key without breaking the chain, with an auditor-side trusted key registry that supports validity periods and revocation.

./reprobox verify chain out/manifests/ --trusted-keys trusted_keys.json
Show more Show less
  • keys rotate command for the file backend; rotation in Vault or on the token for the other backends.
  • The manifest that follows a rotation stays linked to the previous one and records the new key.
  • Revoked key: manifests signed before the revocation remain valid, later ones are rejected.
  • Revocation cut-off expressed as a chain index (last_trusted_index), independent of the box's clock.

Manifest comparison

Compares two manifests by category: model, dependencies, code, runtime, hardware, reproducibility, parameters, remote backend and signing key.

make diff A=out/manifests/<a>.json B=out/manifests/<b>.json
Show more Show less
  • Lists every category that changed.
  • Field resolution shared with the policy check tool.
  • SIGNING KEY category: change of backend, key_id or public key between two manifests.

Controlled execution of generated code

Check generated code by running it against your own assertions, preferably in an isolated container (--sandbox). Without that option it runs unisolated, with your privileges.

./reprobox verify code <manifest>.json --sandbox --check "assert add(2, 3) == 5"
Show more Show less
  • With the --sandbox option: container with no network, read-only, running without root privileges.
  • With --sandbox: CPU, memory and process count limits.
  • Code linked to the manifest it comes from.
  • Alpha version: only Python code is supported for now.

Compliance checks

Checks manifests against rules defined by the organization in a YAML file, with a severity level for each rule.

make verify-policy
Show more Show less
  • Rules apply to any manifest field (required value, maximum, etc.).
  • error severity (exit code 1) or warning.
  • Checks a single manifest or a whole directory.

Reproducibility testing

Runs the same prompt repeatedly to measure output stability, with or without reproducibility safeguards, or under concurrent load.

./reprobox test --safe --runs 20 --prompt-file prompt.txt
Show more Show less
  • test --safe: reproducibility safeguards enabled.
  • test --baseline: safeguards disabled, for comparison.
  • test-concurrent: detects differences caused by server-side batching.

Command-line interface

The reprobox command handles generation, testing, verification, inspection, diagnostics and the HTTP service. A Makefile covers build and audit operations.

./reprobox doctor
Show more Show less
  • generate, test, verify, inspect, keys, doctor and serve subcommands.
  • Prompt passed as an argument, from a file or on standard input.
  • Text or JSON output for generate.

HTTP API

/generate endpoint (FastAPI) for integrating ReproBox into an existing application.

./reprobox serve --port 8000
Show more Show less
  • Bearer token authentication.
  • Configurable maximum prompt size.
  • Per-IP rate limiting.

Local dashboard

Read-only web interface for browsing manifests, chain status, comparisons and compliance results.

make dashboard POLICY_FILE=policy.yaml TRUSTED_KEYS=trusted_keys.json
Show more Show less
  • Only reachable from the local machine (127.0.0.1).
  • Integrity and compliance shown in the same view.
  • On-demand decryption when the key is configured.
  • Trusted key registry applied with TRUSTED_KEYS.

Containerized deployment

Works with Docker Compose or Podman. An installation script prepares the configuration and build files.

./install.sh && make build
Show more Show less
  • Compatible with Docker Compose and podman compose.
  • Idempotent script: existing values are kept.
  • Deployed on the organization's own infrastructure.

Content encryption

Prompts and outputs are encrypted before signing. Hashes remain in plain text, so the chain can be verified without decryption.

make generate-encryption-key
Show more Show less
  • Enabled with the MANIFEST_ENCRYPTION_KEY variable.
  • Decryption tool included.

Reproducible builds

Base image pinned by digest, Python dependencies locked with hashes, and a mandatory model revision for releases.

make release MODEL_ID=... MODEL_REVISION=<sha>
Show more Show less
  • make resolve-base: base image digest.
  • make lock: generates and verifies requirements.lock.txt.
  • make release: exact Hugging Face revision required.

Signing key location

The private key that signs the chain can be kept in a local file, in HashiCorp Vault or OpenBao, or on an HSM reachable through PKCS#11.

SIGNER_BACKEND=vault VAULT_TRANSIT_KEY=reprobox ./reprobox generate "..."
Show more Show less
  • file backend (default): key encrypted with a passphrase, in keys/.
  • vault backend: Vault or OpenBao Transit engine; the key never leaves Vault.
  • pkcs11 backend: HSM or PKCS#11 token; the key cannot be extracted.
  • Each signature is checked against the backend's public key before the manifest is written.

Instance identity

The signing key identifies the ReproBox instance by its key_id and public key. Information that cannot be observed, such as hardware ownership, is declared by the operator and flagged as such.

./reprobox keys show
Show more Show less
  • keys show command: backend, key_id and public key to hand to auditors.
  • ENVIRONMENT_CONTROL setting: owned hardware or third-party hosted.

Architecture

Prompt
CLI, Makefile or HTTP API
Routing
Local model or OpenAI-compatible server
Manifest
Model, runtime, hardware, parameters
Signed chain
SHA-256 and ECDSA P-256 or Ed25519, stored in out/manifests/
Verification
Chain, comparison, code, compliance

Verification tools

Three separate tools cover integrity, differences between runs, and compliance.

ToolScopeCommand
Chain verification Hashes, links, signatures and signer identity (expected key or key registry) ./reprobox verify chain --expect-pubkey
Comparison Categories that changed between two manifests make diff A=… B=…
Compliance check Compliance with the organization's YAML rules tools/verify_policy.py

The compliance check does not verify integrity: chain verification must be run first.

Evaluate ReproBox in your environment

We can arrange a demonstration on your models and infrastructure.

Contact us