Prover benchmark history
The dashboard lives at dev/prover-history/ on the existing gh-pages branch.
It appends each result and its raw JSON without changing dev/bench/ or other
site files. Main, nightly and opted-in PR comparisons have separate views.
Benchmark execution requires the Pika App dispatcher and forced-command target setup in
scripts/bench/README.md; publication needs neither a new repository variable
nor a Pages-source change.
Read one benchmark point
| View | Source and build route |
|---|---|
| Standard main | Every main push's new first-parent commits; hosted build, target run-only |
| Nightly | Wider suite on main at 07:00 UTC; hosted build, target run-only |
| Pull requests | PRs into main with a maintainer/admin-applied benchmark label; local build and proof |
| Manual previews | Explicitly labelled imported measurements, never authenticated main history |
The PR workload matrix is defined in scripts/bench/suites.json. At 24 physical
cores it covers these trace ceilings; the producer README
lists all core counts, operation counts and nightly cases.
“All five” means Fibonacci, SHA2 chain, SHA3 chain, BTreeMap and secp256k1 ECDSA.
| 24-core ceiling | Akita workloads | Dory workloads |
|---|---|---|
2^16 | All except secp256k1 | — |
2^18, 2^20, 2^24 | All five | — |
2^22 | All five | SHA2, BTreeMap |
2^27 | SHA2 only | — |
The capacity model gives per-push forecasts. A main-push job whose tip is superseded when it reaches calibration skips only the null, retains every history commit and records its reason. Lookup failure retains calibration. Nightly, manual main and bootstrap jobs always calibrate. Without another matching reference, a PR based on a skipped tip keeps its measurements but has a neutral reference-unavailable check.
On a same-repository PR the label persists across pushes. On a fork PR it admits
only the head it was applied to; after a push, a maintainer removes and
re-applies it. The trusted producer checks the actual label
applier, current label and merge parents; a label from a write-only collaborator
is not admitted. The merge must have exactly two parents: a commit on main's fetched
first-parent history and the submitted PR head. A stale merge ref remains valid
against that exact older base; it need not include the newest main commit.
Planning refuses a PR that GitHub reports as conflicting with main; unknown
mergeability does not block planning.
The target rechecks the label, head repository and PR head after queue/lock waits.
The dashboard shows the PR link, submitted head, base and measured merge, source
run/attempt, admission event, and raw result. Select a PR, workload/input/core
count, base or head leg, host/build configuration, and metric. PR legs do not enter
the main trend. PR ingest applies authenticated exact-base calibration references,
with matching build and host identities and a 48-hour expiry, in the PR's
End-to-end benchmark check summary and the ingest artifact's comparison.json.
Those bands describe repeated measurements of the same build; they are
informational, not statistical significance or a future false-positive guarantee.
The dashboard shows the raw PR measurements without bands.
The sticky PR comment links to full results and benchmark history. It lists every
core-count/trace-ceiling pair with a recorded process exit, even when no change
exceeds its reporting threshold. Thresholds depend on the trace ceiling; the
producer README
gives the table, which SIZE_THRESHOLDS in scripts/bench/calibration.py
defines, and the measurements behind it. The comment keeps
a case's row only when its time or peak-RSS change exceeds the larger of the
table value and that metric's observed envelope, comparing head/base and
base/head symmetrically. A missing envelope leaves the table value alone. A size
group is the cases sharing a PCS, core count and trace ceiling; a group of two or
more cases is listed when the geometric mean of its changes exceeds the group
column. Each threshold is shown next to its signed change. Each case row
identifies its physical cores, 2^k ceiling and measured base/head trace rows.
If planning refuses a labelled PR, the same sticky comment instead gives the
reason and links to the planning run. A dependent job in that workflow reads its
own plan artifact and runs only main's code, using the same comment writer as
ingest. Before posting a refusal it rechecks the current PR head; a refusal for
a superseded head is skipped. No target work or App check is created for this
refusal-only path. The PR trigger accepts only bases named main.
A point is the median of complete measured repetitions. The table shows its minimum–maximum range; raw JSON retains warmups. Failed cases/builds, incomplete repetitions and missing metrics have no plotted value and break the line. The initial view loads the newest 30 records; Load older runs retains and reads earlier records. Each rerun attempt remains distinct.
Inputs, PCS, core count (1/8/24), scale, tier and leg separate points. Two things separate configurations. The first is the machine that ran the proof: the case's CPU affinity and every recorded field of the run host except the two omitted below (machine ID, hostname, CPU model, flags and topology, kernel, microcode, memory size and settings). The second is the build settings that can change the binary: compiler, Cargo version, target triple, CPU and features, flags, profile, harness file hashes and the benchmark runner's hash.
Three recorded fields describe one run without changing what it measures, so configuration identity omits them:
swap_free_bytesis a changing observation; swap capacity and the other settings remain.control_planeis the version and binary hashes of the Pika management node and CLI on the run host. The proof process never executes them, and a version does not say how busy the node was during a run.- The build manifest's
hostis a snapshot of the machine that built the binary. On main and nightly that machine is a disposable hosted runner, which never runs the proof. On pull requests it is the run host itself, which the run-host fields above already identify. Whatever the build machine changes in the binary shows in the per-point binary hash.
Source revisions, binary/guest/lockfile/schedule hashes remain per-point metadata.
Build and source shows each run's control_plane and its original full build
manifest, including the build machine. The manifest's construction time is not
the current cost of reusing a bundle; current preparation is wall_time.build_s.
e2e_s covers prebuilt guest loading, tracing, preprocessing, setup, proving and
serialization, excluding compilation and verification. prove_s covers only the
prove call. process_s includes launch, both verifications, logging and reaped
exit; peak RSS spans that process. The metric selector states each boundary.
Local PR build time and total time are separate from proof metrics. Historical
artifact-only timings do not predict changed-source PR compilation time.
Trusted collection and append-only publication
prover-history.yml collects successful End-to-end benchmark ingest runs
started by 0xandoroid-ai-agent[bot] on main, or replays such a run by manual
dispatch. A successful ingest may contain a failed target measurement: validation
success does not mean the benchmark succeeded. Failed, cancelled or skipped
ingests are refused because they have no validated canonical publication.
The executable collector and UI assets come from main, never the source PR or
an artifact. The workflow publishes only to the existing legacy Pages source,
gh-pages at /, and does not edit that setting.
The canonical artifact is jolt-e2e-INGEST_RUN_ID-ATTEMPT. Its ingest.json
receipt binds the ingest attempt to the original plan run/attempt, job ID, plan
and dispatch artifact IDs and SHA-256 digests. The collector checks repository,
ingest actor/path, event, main branch, attempt and display title. It follows
the receipt to the successful End-to-end prover benchmarks producer and its
exact plan and dispatch artifacts. The ingest workflow's own main checkout SHA
is not the measured commit.
The result JSON retains the original plan run's provenance. Main/nightly plans
are bound to the producer's main head. PR plans bind the payload PR number,
label event/actor, base, submitted head, measured merge and harness; merge parents
and planned native inputs are checked. GitHub's pull_request_target run head
is the submitted PR head, and the run's head repository and branch must equal
the plan's admitted ones; a plan that records no head repository is bound to
a16z/jolt. A fork head repository is accepted only for a
pull_request_target producer, whose workflow file GitHub takes from the
repository's default branch. An empty live pull_requests list is accepted: GitHub lists no
PR for a fork head or after a PR merges. A non-empty
list must still contain the planned PR with base main. Current PR state can change after a
valid measurement; it does not rewrite archived history. Only JSON is read;
downloaded scripts, HTML and binaries are never executed.
For multi-commit pushes, index.json declares the oldest-first documents. The
tip uses benchmark-results.json; earlier commits use
commits/FULL_SHA/benchmark-results.json. GitHub commit ancestry checks the chain
and order, including absent document gaps. The producer-recorded push_before
is not independent proof of the original event boundary. The original index is
archived with the results. The page shows received records, not proof that no
provider job was missed.
Each immutable key includes measured revision, ingest run ID and attempt. The record also retains the original plan run ID and attempt. Identical replay is a no-op; conflicting bytes are refused. Expired upstream artifacts cannot erase archived results. Missing, rejected, unsupported and failed runs remain visible rather than becoming zero timings. JSON is limited to 32 MiB and result archives to 128 MiB. No automatic retention deletes history.
The publisher serializes with concurrency.queue: max (100 pending jobs), then
retries non-force pushes against the latest gh-pages tree. Only
dev/prover-history/ is staged. This preserves concurrent updates by the legacy
benchmark writer. Queue overflow or provider limits still require an explicit
replay; no custom scheduler is introduced.
GitHub concurrency limits
Pages deployment without changing its source
A GITHUB_TOKEN push alone is not the deployment contract: GitHub documents that
such pushes do not trigger Pages builds. The existing legacy benchmark job has
nevertheless produced built Pages receipts for its pushed commits; those
observations do not establish a supported trigger guarantee.
Branch publishing
After appending to gh-pages, this publisher explicitly requests a Pages build
with POST /repos/a16z/jolt/pages/builds. That endpoint accepts GitHub App
installation tokens with pages: write; GITHUB_TOKEN is such an installation
token. The workflow also needs contents: write for the branch and actions: read
for producer artifacts. It uses no personal token, OIDC deployment, new enable
variable or Pages-source switch. The request's acceptance is not proof the later
Pages build completed: check that build and both URLs after the first merged run.
Pages build API,
GITHUB_TOKEN type
Publication preserves the existing branch-based site and allowed actions. A successful ingest then appends results and requests a build automatically. A user with workflow-dispatch permission can refresh assets or replay an existing ingest attempt before its artifact expires:
# Refresh history assets and request a build of the existing site.
gh workflow run prover-history.yml --repo a16z/jolt --ref main
# Append a specific existing ingest attempt, preserving its original identity.
gh workflow run prover-history.yml --repo a16z/jolt --ref main \
-f run_id="$RUN_ID" -f run_attempt="$RUN_ATTEMPT"
A valid recorded attempt is immutable. Repair a rejected producer result with a new attempt, not relabelled bytes. If the Pages build API is denied by repository policy, keep the failed request visible; do not substitute a token or change settings. Pages size, build-frequency and build-duration limits still apply. Pages limits
Local preview and focused checks
Preview preserves manual provenance; it never contacts GitHub or publishes. Use a task-owned directory and a label describing the actual measurement:
uv run --no-project python scripts/ci/benchmark_history.py preview \
--input "$RESULTS_JSON" --site "$TMPDIR/jolt-history-preview" \
--label "Manual hosted-artifact comparison; not an automated PR run"
uv run --no-project python -m http.server 8000 --bind 127.0.0.1 \
--directory "$TMPDIR/jolt-history-preview"
Open http://127.0.0.1:8000/dev/prover-history/; file: URLs are unsupported.
The same renderer handles real campaign previews and explicit synthetic route
fixtures. Never relabel a manual sample as authenticated PR/main/nightly data.
uv run --no-project python -m unittest scripts.tests.test_benchmark_history -v
uv run --no-project --with playwright==1.61.0 playwright install chromium
uv run --no-project --with playwright==1.61.0 python -m unittest scripts.tests.test_benchmark_history_browser -v
Browser checks use bundled headless Chromium and the page's unchanged content policy. They exercise PR/main separation, filters, details, raw downloads, failure gaps, hostile strings and mobile/desktop layout. A live dashboard still needs merged workflows, an enabled App dispatcher and target, and received ingest runs; source and preview checks do not establish live execution or deployment.
Calibration references
Each nightly run, manual main run and still-current main-push tip first measures
a ten-pair null for every PR case in its pinned suite, using its hosted tip bundle
twice. With N PR cases,
one warmup and ten measured pairs require 22N proof processes. Trusted ingest
validates the complete configured case set and every process, then
recomputes the informational time/RSS envelopes. It retains the reference and raw
evidence in the canonical ingest artifact for 30 days. The publisher appends them
under dev/prover-history/calibration/<reference-sha256>/ and lists immutable
artifact/ingest identities in calibration/index.json; this catalog grants no
measurement authority by itself.
PR ingest authenticates those artifacts, their main App producer and original plan/dispatch, then recomputes the reference. Exact base SHA, normalized prover bytes, harness/suite/build/input identities and stable host settings must match. The newest reference finished before the comparison is selected, expiring 48 hours after measurement. Missing or mismatched evidence leaves medians and signed deltas visible with an unavailable reference, never a regression verdict.
Main-only tier=calibration bootstrap is allowed while ordinary execution is
disabled. It adds a local same-source PR-recipe probe after the hosted null;
bootstrap probes do not enter history trends. After catalog publication, this
workflow runs publication.py verify-calibration against its immutable ingest
artifact and requires bands for every probe case in that run's pinned PR suite.
The README's first-run and
post-main-advance acceptance steps remain prerequisites to ordinary enablement.