Public Snapshot
The public snapshot is the dataset the site is built from. The backend exports its published runs to a public Cloudflare R2 bucket, and the site build fetches that export. This page is the authoritative contract for the snapshot’s layout, the surface between the backend that writes it and the site that reads it.
The snapshot’s run documents hold only published runs. A produced run that has
not been published is private, and a run that can never be published, such as an
infrastructure failure or a canceled
run, never reaches them. The gg document
corpus is the one exception, and it is
redacted rather than gated on publication.
The backend regenerates the whole snapshot from its full published set on each coalesced publish, uploads it, and swaps it into place. Regenerating everything rather than applying deltas keeps the operation idempotent.
Regenerating is distinct from re-uploading. The per-generation index files are small and are rewritten every publish. Everything else is content-addressed under a prefix shared by every generation, and a refresh uploads only the objects the bucket does not already hold:
- A run’s document under
documents/runs/<run-id>/, keyed by a digest of its own bytes. - A run’s media under
media/runs/<run-id>/, keyed by run id and immutable once the run is published. - A case version’s media under
media/cases/<slug>/<version>/and its starter-workspace files underfiles/cases/<slug>/<version>/. A version with a published run is frozen, so these are effectively immutable too.
Writing each object once keeps a publish cheap as runs and cases accumulate, and it lets a publish keep a run’s media after the volumes the bytes were read from are gone.
Atomic swap
Section titled “Atomic swap”A site build must never read a half-written dataset. The backend writes every
file of a new snapshot under a generation prefix snapshots/<snapshotId>/
first, uploading the objects concurrently, and writes the small top-level
index.json pointer last. index.json is a single small object, so
overwriting it is the atomic cut-over: until that write lands the site keeps
reading the previous snapshot, and a new snapshot never clobbers the previous
one’s files. A failed upload leaves index.json unwritten and the previous
generation live. Superseded prefixes are
pruned after a grace period.
<snapshotId> is a timestamp plus a hash, for example 2026-06-17T2148Z-1a7b9c3d.
The documents, rewritten every publish:
index.jsonsnapshots/<snapshotId>/runs.jsonsnapshots/<snapshotId>/cases/<slug>/<version>.jsonsnapshots/<snapshotId>/models.jsonsnapshots/<snapshotId>/comparisons.jsonsnapshots/<snapshotId>/comparisons/<id>.jsonsnapshots/<snapshotId>/test-case-groups.jsonsnapshots/<snapshotId>/gg-runs.jsonThe content-addressed objects, shared across every generation:
documents/runs/<run-id>/<digest>.jsonmedia/runs/<run-id>/proof/<file>media/runs/<run-id>/asset/<file>media/runs/<run-id>/validation/<file>media/runs/<run-id>/showcase/<file>media/runs/<run-id>/code-analysis/v<generation>.jsonmedia/cases/<slug>/<version>/references/<scope>/<digest>-<view>.pngmedia/cases/<slug>/<version>/validation-baseline/<engine>/<variant>/<digest>-<file>media/cases/<slug>/<version>/showcase/<variant>/<digest>-<file>files/cases/<slug>/<version>/workspace/<digest>-<basename>pfp/<account-id>index.json is the pointer, overwritten last. A run’s summary card names its
document by key, and a per-run or per-case document references its media by
these snapshot-relative keys, so the atomic index.json swap still points a site
build at a complete, self-consistent dataset.
<scope> is _common for a reference shown on every variant, or a variant slug
for one scoped to that variant.
The site reads index.json, then follows its keys and prefixes to the rest.
Every JSON file carries a schemaVersion, currently 2.
index.json — the pointer
Section titled “index.json — the pointer”The top-level pointer and summary: the snapshot id, when it was generated, the run count, and the keys and prefixes the rest of the snapshot lives under.
{ "schemaVersion": 2, "snapshotId": "2026-06-17T2148Z-1a7b9c3d", "generatedAt": "2026-06-17T21:48:00Z", "runCount": 128, "runsKey": "snapshots/2026-06-17T2148Z-1a7b9c3d/runs.json", "runDocumentsPrefix": "documents/runs/", "casesPrefix": "snapshots/2026-06-17T2148Z-1a7b9c3d/cases/", "modelsKey": "snapshots/2026-06-17T2148Z-1a7b9c3d/models.json", "comparisonsKey": "snapshots/2026-06-17T2148Z-1a7b9c3d/comparisons.json", "comparisonsPrefix": "snapshots/2026-06-17T2148Z-1a7b9c3d/comparisons/", "ggRunsKey": "snapshots/2026-06-17T2148Z-1a7b9c3d/gg-runs.json", "testCaseGroupsKey": "snapshots/2026-06-17T2148Z-1a7b9c3d/test-case-groups.json",}runDocumentsPrefix is informational: a run document’s key carries a content
digest, so a reader reaches it through the documentKey on the run’s summary
card rather than by composing a path. testCaseGroupsKey is optional, and a
reader treats its absence as an empty group set.
Schema:
snapshot/index.schema.json.
runs.json — the run index
Section titled “runs.json — the run index”A runs array of summary cards, newest first, one per published run. It is
enough for the gallery’s cards and its client-side filter, sort and paging
without fetching every per-run file.
Each summary carries the run’s id and timestamps, its
subject including the test
type, its metrics, the
denormalized case name, the validationLoaded signal, the run state, the links,
and every headline figure a listing needs: the functional rating, the
aesthetic rating, whether the run is validatorRated, the score, and the
reviewCount. A performance run’s fuel result and the ranking slice of a run’s
code analysis ride along too. Each card names the run’s full
document by documentKey.
The site fetches full records lazily, one per run page. This summary index is the whole dataset the list, home, leaderboard, and metrics views read.
Schema:
snapshot/runs.schema.json.
Run documents
Section titled “Run documents”A run’s full document lives at documents/runs/<run-id>/<digest>.json, where
<digest> is over the document’s own bytes. A run whose public content is
unchanged since the last refresh keeps the key it already occupies and is
skipped; a new review, a newly uploaded proof, or an edited record mints a new
key and is uploaded. The key cannot be composed from the run id, so the
documentKey on the run’s summary card is the only supported way to reach it.
The document is the full run record blob, verbatim, with its links populated, plus the array of reviews and the run’s links. Every run here is published, so the document carries no publication flag. Each review entry includes the reviewer’s id and display name, and the key of their profile picture when they have one.
A legacy run’s score and functional rating are computed from this array, and any run’s aesthetic rating is the worst run-wide tier across its reviews. A validator-rated run’s figures start from the verdicts on its record and case version: each review’s effective checklist is the validators’ verdicts overlaid with that review’s overrides, the run’s score is the average of its reviews’ effective scores and its functional rating the worst of their effective ratings, and the validators’ own figures stand while the run has no reviews.
A validator-rated review entry carries its run-wide aesthetic tier and, in
checklist, only the verdicts it overrides. A reader resolves a review’s tier
as aesthetic when set, falling back to the worst tier in a per-domain
aesthetics array when that is what the entry carries.
When the run captured a normalized event
stream it is included as events. Only the
normalized stream is published.
This document is published to the open internet, so any provider-shaped sk-…
token anywhere in the record or events is replaced with [REDACTED] before
upload. The backend never holds a key value, so it redacts by shape. Only this
public export is rewritten. The backend’s own stored copy is left intact.
{ "schemaVersion": 2, "record": { "…": "full RunRecord, links populated" }, "reviews": [ { "reviewerId": "acct_7yq…", "reviewer": "Ada", "pictureKey": "pfp/acct_7yq…", "ratings": [ { "domain": "single-player", "rating": "great" }, { "domain": "versus", "rating": "scuffed" }, ], "writeup": "Plays well, but the AI paddle…", "checklist": [], "reviewedAt": "2026-06-21T18:00:00Z", }, { "reviewerId": "acct_3kd…", "reviewer": "Bao", "aesthetic": "amazing", "checklist": [ { "id": "controls.ai", "status": "fail", "note": "Precondition unmet.", }, ], "writeup": "Gorgeous art; overrode one point whose precondition was unmet.", "reviewedAt": "2026-08-24T09:00:00Z", }, ], "links": { "sourceRepo": "https://github.com/…", "playableBuild": "https://abc123.test-cabinet-runs.pages.dev", }, // Optional: the normalized event stream, a JSON array of HarnessEvents. "events": [{ "timestamp": "…", "type": "agent", "message": "…" }],}Schema:
snapshot/run.schema.json.
Run media
Section titled “Run media”A per-run document names its media by snapshot-relative key: proofMedia for
the proof-of-implementation images and videos, validationMedia for the run’s
synthesized automated-validation outputs, assetMedia for an asset-generation
run’s produced images and action logs, and showcaseMedia for the files of the
run’s showcase, each entry pairing the recorded
file name with its published key. Those keys point under
media/runs/<run-id>/.
validationMedia covers two sets. The synthesized outputs are declared on the
run record. A recording’s shared image
store backs no verdict and
appears on no record, so the builder enumerates the run’s stored validation
media for it. A store file is published under the same flat name it is served
under, so a console resolves it through the lookup that resolved the recording
naming it, and the static gallery composes its URL by appending that name to a
single per-run prefix.
A published run’s media never changes, so it is keyed by the run id and written
once. On each publish the builder lists what is already under media/ and
references any object already there without reading the source bytes or
re-uploading. Only media not yet in the bucket is read, from the backend store
or the artifact service, and uploaded, so a
run’s media is exported exactly once across all snapshots.
A video is transcoded from webm to mp4, for iOS playback, exactly once. A
transcoded video’s recorded file name keeps its .webm spelling while its
published key ends .mp4, so a reader follows the key rather than composing one
from the name. A replay recorded as .webm is published as recorded, because
the player decodes its frames and timestamps as the engine wrote them.
Two consequences follow. A publish stays cheap as asset-generation runs
accumulate, because it uploads only new media. Media already in the bucket is
referenced without needing its source bytes, so a publish keeps a run’s media
even when the volumes it was originally read from have been lost, such as after
a cluster is recreated. To re-seed the bucket from a prior snapshot in that
recovery case, use scripts/recover-run-media-from-snapshot.sh.
An upload stores both labels the object is served under: what the resource is
and how its bytes are framed. A 2D engine’s validation recording is stored as
application/json with a gzip content encoding, so a published recording
arrives at the gallery as JSON, and a 3D engine’s is stored as video/webm.
Case media
Section titled “Case media”A case-metadata file names its media the same way: references[] for the
rendered reference baselines, validationBaselines[] for the committed
validation baselines, and each variant’s showcase for its authored case
showcase media, under
media/cases/<slug>/<version>/. A version with a published run is
frozen, so re-uploading its baselines on every
publish would be waste.
validationBaselines[] covers every committed file of each engine and variant’s
baseline directory, including the shared image
store a baseline recording
draws from, alongside the recordings naming it. A store file is the one
case-scoped object published under its bare name rather than a content-addressed
key, because that name is already a hash of its own bytes, and a key a consumer
can compose lets the static gallery carry one URL prefix per subject instead of
an entry per image.
A reference image is rendered from a committed mockup at ingest rather than committed as bytes, so a re-ingest on a different browser build can legitimately produce different bytes for the same view. Each object is therefore content-addressed: its key carries a short digest of the source bytes.
media/cases/pong/v1.0.0/references/_common/3f2a9c1b8e04d75a-gameplay.pngIdentical bytes reuse the identical key and are skipped; changed bytes mint a new key and are uploaded. The key is derived from the source bytes, so the decision is made before any work happens: a video baseline already in the bucket costs neither an upload nor a transcode. Computing the digest needs only a local store read.
Showcase media follows the same content-addressed rule, and its videos the same
transcode rule as run media: a .webm entry is published as .mp4, with the
entry’s file keeping its authored spelling while its key ends .mp4. A
replay baseline recorded as .webm is published as recorded.
Case files
Section titled “Case files”A case version’s starter-workspace files are published under
files/cases/<slug>/<version>/workspace/, content-addressed like case media and
keyed by digest plus base name. They sit under their own prefix because they are
the text files a run is seeded with, served with text content types so the
gallery displays a fetched file rather than downloading it.
Reviewer pictures
Section titled “Reviewer pictures”Each distinct reviewer’s profile picture is exported as a pfp/<account-id>
object, served with its own content type. The bytes are fetched from the auth
service on each refresh, because a picture is
mutable. A per-run document’s review entries carry the key, and the site
resolves it against the snapshot base. A reviewer with no picture carries no
key.
Code analysis
Section titled “Code analysis”A run’s code analysis is published in the two tiers it is computed in, which is what keeps a run’s page load bounded.
The bounded summary rides on the record inside the per-run document, and its
ranking-relevant slice (code lines, the size Gini, mean cognitive complexity) is
lifted onto the run’s summary card in runs.json as code, alongside the
analyzer generation, the authored-or-tree basis, and the truncation flag. One
file therefore ranks every run’s code without a fetch per run. The provenance
travels with the figures, because two analysed runs are comparable only under
the same generation and basis.
The unbounded document, holding every authored file, scored function, import edge, cycle and clone group, is published as its own object with the analyzer generation in its key:
media/runs/<run-id>/code-analysis/v2.jsonLike run media it sits under media/, so a refresh after the first skips it and
two refreshes upload it exactly once. A re-analysis under a newer generation is
a different document, and the generation in the key is what makes it mint a new
object rather than overwrite figures a published snapshot still points at. The
per-run document names it as codeAnalysisKey, and the site fetches it on
demand.
The object is a static read of model-written source, so it is parsed and passed
through the same secret scrubber before it becomes an object. An absent code
means the run was never measured rather than measured at zero.
models.json — the model catalog
Section titled “models.json — the model catalog”The composed model catalog: the curated model configuration unioned with the models derived from recorded runs, each with its rate history. The public site renders its Models section from this file rather than a bundled dataset.
comparisons.json — published comparisons
Section titled “comparisons.json — published comparisons”The index of published harness comparisons, each a
full read model of arms, distributions and diagnostics, with a per-comparison
comparisons/<id>.json for a direct fetch. Each document is scrubbed like every
other published document. An empty list is a valid index.
Pruning superseded generations
Section titled “Pruning superseded generations”Every refresh writes a whole new snapshots/<snapshotId>/ generation and cuts
over by overwriting index.json. Nothing can reach an earlier generation
afterwards, so after the cut-over the refresh prunes the ones that are done
with. A generation is deleted only when both hold:
- It is not the one
index.jsonpoints at. The live generation is kept however old it is, so a bucket whose live snapshot predates the retention window keeps serving the site. - It is older than
TCAB_SNAPSHOT_RETENTION_HOURS, default24. A site build that already readindex.jsonis still fetching that generation’s files, so a just-superseded generation has to outlive the build it is serving.
A generation id that does not parse as a timestamp is kept. The prune is best-effort: it runs after the snapshot is already live, so a failure logs and leaves the work to the next refresh rather than failing the publish. Without it the bucket grows by a full generation per publish and never shrinks.
The content-addressed objects under documents/, media/, and files/ are
never generation-scoped and are untouched by the prune. A run document
superseded by a content change, and the media of a deleted run, stay in the
bucket; that accumulation is proportional to content changes rather than to
publishes, and collecting it is a future cleanup.
cases/<slug>/<version>.json — case metadata
Section titled “cases/<slug>/<version>.json — case metadata”The site-facing slice of a test case version:
what the gallery shows to frame a run. It carries the name, test type,
difficulty, tags, summary and description, engineFormat, the declared checks
without their action lists, the review items with each point’s domains and
failureCap, and a references array naming each rendered reference baseline
by its snapshot-relative media/cases/… key, with a variant of
null for a common reference or the variant slug for a variant-scoped one. The
site resolves those keys to absolute URLs.
Each variant carries its own fully rendered prompt and its own seededInputs,
the seeded spec bodies inlined in seed order, so the static site shows the same
instruction and specs a run is seeded with. Both are the engineless rendering,
which is also what a run on the none engine
received. An engineRenderings map keyed by engine slug carries the same pair
re-rendered for every other engine the version declares, and a reader takes the
entry for the engine its run recorded. A variant also names its deployed
reference implementations: a referenceBuilds map of engine slug to URL for
playable builds, or a referenceSheet of published frame indices whose object
keys the site derives itself. The file carries the case’s addressing rather than
its mockup HTML or host paths.
A variant carries its authored showcase when it declares one: the description,
verbatim markdown, and the media carousel with each entry naming the published
object its bytes live at. It also carries workspaceFiles, the
starter-workspace files a run of it is seeded with, each pairing the
run-root-relative destination path with the published key of its
bytes. The engineless set rides the variant and each engineRenderings entry
carries the set for its engine, matching the prompt-and-specs split. Only the
addressing is inlined, so the site fetches a starter file on demand.
Only a version that at least one published run built is emitted. The site keys
lookups by (slug, version) from each run’s subject, so it fetches exactly the
case files that are present.
This metadata is read from the backend’s ingested definition store rather than
from the run record, which carries only the run’s (slug, version, variant)
subject. The store is regenerable, and on a deployment where it lives on
ephemeral local disk a pod reschedule empties it until the ingest repopulates
it. A snapshot regenerated while the store is momentarily empty would emit each
published run with no case file for it, and the gallery would show a run with no
case to browse. To keep the snapshot self-consistent, an ingest that actually
(re)ingests a version queues a snapshot refresh, the same coalesced regeneration
a publish triggers. A no-op ingest does not, so the periodic refresh does not
rebuild the gallery on every cycle.
Schema:
snapshot/case.schema.json.
Test-case groups
Section titled “Test-case groups”The ingested test-case group set is
exported as one object, test-case-groups.json, under the snapshot’s own
prefix, and the snapshot’s top-level index.json names it under an optional
testCaseGroupsKey. The file carries a schemaVersion and the groups in the
order GET /test-case-groups
serves them, each with its slug, name, optional summary, and member case slugs.
A reader treats an absent key as an empty group set. An ingest that changes the
group set queues a snapshot refresh even when no version was re-ingested.
gg-runs.json — the gg document corpus
Section titled “gg-runs.json — the gg document corpus”Every recorded gg run as one flat document of dotted, typed fields, plus the instant the export was taken. This is the whole of the public analysis surface: the site’s Discover page runs the mirrored browser evaluator over these documents, so querying on the public gallery makes no backend request.
Three rules govern the corpus’s contents:
- It is decoupled from run publication. A document carries configuration ids and outcome numbers, with no source, prompts or model output, and hardly any gg run is ever published, so redaction is the control rather than a publication gate.
- It respects the experimental catalog gate. A document for an experimental case version is dropped, and a case whose manifest this process cannot read is treated as unreleasable.
- It is field-redacted and scrubbed. A field is dropped when its name is on the private-field deny-list, and any field whose name or string value exceeds 200 characters is dropped whatever it is called. The whole object then passes the same secret scrubber as every other published document.
A session record is never exported. A document carries configuration and outcomes, while a record carries the complete model conversation verbatim, so records stay console-only.
The corpus is a build-time export, so it lags the console’s live index, and the
file carries its own generatedAt.
Schema:
snapshot/gg-runs.schema.json.