A Run file
A Run file records one execution of one benchmark binary, with one parameter set, on one box, whether it succeeded or failed: the evidence each Method's figures rest on.
Where it is
- Address:
https://api.ledgermath.com/runs/<yyyy>/<mm>/<dd>/<id>.json, with the UTC day the Run started and the Run's id. - Reached from: each point's
evidence, in a month file or among a Series file's newest points; and, for a Run file no Method could read,methods.<method>_v<version>.unreadable[].evidencein the list of every Series. - Links to: each blob it names by hash,
sha256:<hex>(its binary, its source archive, its runner, its resolved compiler flags, its stdout, its stderr and its dumps), at the table of contents'evidence.blob_url_templatewith{hex}replaced by the 64 hex digits. - Not a file of version 1: a Run file is evidence, written once, on the box that ran the binary, and never edited.
- Schema: Run, kept with LedgerMath's source; the API does not serve it.
What its schema says
One execution of one benchmark binary, written whether it succeeded or failed.
A Run describes itself: it holds the parameters the binary was given, the provider's own words for where it ran, the bytes that ran, the box's environment before and after, and the binary's stdout, whose lines are its events. Nothing in it is a judgement. Every value of the form sha256:<hex> names a blob stored at blobs/sha256/<hex> whose bytes hash to it. The root is closed: a key not listed here makes a record invalid.
Example
An excerpt, made by the generator, of the file at https://api.ledgermath.com/runs/2026/11/26/01a218b7-46f4-72cb-83d7-f2477c8b426e.json (4,856 bytes) as LedgerMath's fixed sample took it on 2026-11-26; the file is never edited, so that address serves the same bytes.
{
"schema": "ledgermath.run/1",
"id": "01a218b7-46f4-72cb-83d7-f2477c8b426e",
"boot": "38243c34-aef2-4f89-95b3-6cda0167a7c7",
"started_at": "2026-11-26T16:36:34.164681903Z",
"ended_at": "2026-11-26T16:36:50.393997345Z",
"benchmark": "http_get",
"params": {
"object_bytes": 16777216,
"key": "http_get/v1/16777216",
"connection": "new",
"budget_seconds": 120,
"gap_mean_ms": 200,
"timeout_ms": 10000,
"ca_file": "/etc/pki/tls/certs/ca-bundle.crt",
"resolv_conf": "/etc/resolv.conf",
"auth": "sigv4"
},
"samples": 40,
"service": {
"name": "s3_fixtures",
"inputs": {
"endpoint": "https://ledgermath-production-runs-fixturesbucketbucket-zkntsvnz.s3.us-east-2.amazonaws.com",
"region": "us-east-2"
},
"secret_inputs": ["aws_access_key_id", "aws_secret_access_key", "aws_session_token"]
},
"source_commit": "b156710f5a7483889d44e3b26584edfd680b0e12",
"source": "sha256:223fe5f9b0a0f812b83856a2aa4b399de6c2baab2f7a57458ecc4c7db051f81b",
"binary": {
"blob": "sha256:7a46cca0dca68523c5bf0bee93dc56abf2dd40d8de5d83ec1a93b623ff19daaf",
"build": "static",
"compiler": "cc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5)",
"command": "aws-lc: the source archive /var/tmp/ledgermath/aws-lc-8895a9d2434e875e009e652a1015f9c2c275261634c7132253ca5aa60d266888.tar.gz has the pinned sha256 8895a9d2434e…",
"resolved_flags": "sha256:31d5e25f592533c25124e913ee13449f1309e20943cd6876c69438f3d64dd4dc"
},
"provider": {
"name": "aws",
"instance_type": "m5.large",
"region": "us-east-2",
"availability_zone": "us-east-2c",
"availability_zone_id": "use2-az3",
"image_id": "ami-03499a87bbb39a09a",
"instance_id": "i-0da59894bdb2fbd8b"
},
"environment": {
"before": "sha256:209ab0316f0a8c7cd80806c4ee974261829f9fe1bfa70ce0b2c4c2d2325e653b",
"after": "sha256:5869a07b380d13a76d17bcec868c1cf9686ee904b8fb15439f9be75fcd08e857"
},
"runner": "sha256:5b3e1d9a5ffdf2e6ec2cafed38f3914da74b0760432f17bf479d897bd356b203",
"exit": {"code": 0},
"stdout": "sha256:46cf012c4fb71b9e047b3a7a461aaa18d7ec915cdcbf5de2a626abd53bc93fa4",
"stdout_bytes": 161116,
"stdout_lines": 418,
"stderr": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}
What the excerpt leaves out, in 1 place
The excerpt is made by one rule, applied at every depth, and changes nothing else. A list of more than one element keeps its first, unless every element is a string, a number, true, false or null and the list takes at most 120 characters as JSON: then it is kept whole. An object keeps every member its schema names, but of members whose schemas are each nothing but a reference to one and the same definition (such as a request's eight phases), it keeps the first. Of an object's members whose names its schema does not fix, it keeps the first, then each next one while the values kept, as excerpted, take at most 300 bytes as JSON, and none after the first that does not fit. A string longer than 160 characters keeps its first 160 and ends with …
binary.command: its first 160 of 2,684 characters
Fields
Each field is named by its path from the top of the file: a.b is the member b of the object a, [] stands for each element of a list, * for a member whose name is not fixed (its object's type says when the names must match a pattern), and a name with a dot in it is written ["p99.9"]. Under each path are its type and whether it is required (present wherever the object holding it is) or optional (it may be absent). An object said to have no other members holds none but those listed for it; any other object may hold members this page does not list. The file holds no top-level member but those below.
A file takes exactly one of these 2 shapes:
- Shape 1. The older shape: written before the runner stopped copying stdout into the Run, it carries the events. It has
events, and never hasstdout_bytesorstdout_lines. - Shape 2. The shape written since: the stdout blob's size and lines, and no copy of its events. It has
stdout_bytesandstdout_lines, and never haseventsorevents_error.
schema
always "ledgermath.run/1" · required
What this file is, and which version of its shape.
id
string matching ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ · required
A version 7 UUID, minted on the box when the binary is launched.
boot
string · required
The kernel's boot id. The Runs of one boot share it.
started_at
string matching ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{9}Z$ · required
Read just before the binary was launched.
UTC, to the nanosecond.
ended_at
string matching ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{9}Z$ · required
Read just after the binary exited.
UTC, to the nanosecond.
benchmark
string matching ^[a-z][a-z0-9_]*$ · required
The benchmark's name, as the schedule entry gives it. The binary was built from the directory of that name under benchmarks in the source archive (source), a git archive of source_commit.
params
object, each member's name matching ^[a-z][a-z0-9_]*$ · required
Exactly the parameters delivered to the binary, as LM_PARAM_<KEY>.
params.*
string, number or boolean · any number of them, each named to match ^[a-z][a-z0-9_]*$
One parameter's value, under its key: delivered to the binary as LM_PARAM_<KEY>, the key upper-cased, a boolean as true or false.
samples
integer, 1 or more · required
Delivered to the binary as LM_SAMPLES.
service
object, no other members · optional
Present when the schedule entry named a Service the benchmark measures, such as s3_fixtures (the stage's private bucket of Fixtures).
Its inputs were delivered to the binary beside its params, each as LM_SERVICE_<KEY>. inputs holds every input that is not secret, exactly as delivered; secret_inputs names the ones that are, such as short-lived keys, whose values are never written anywhere: not here, not in a blob, a dump, the boot summary or a log.
service.name
string matching ^[a-z][a-z0-9_]*$ · required
The Service, as the schedule entry names it.
service.inputs
object, each member's name matching ^[a-z][a-z0-9_]*$ · required
Every input of the Service that is not secret, by name, exactly as delivered to the binary as LM_SERVICE_<KEY>: for s3_fixtures, endpoint and region.
service.inputs.*
string · any number of them, each named to match ^[a-z][a-z0-9_]*$
One input's value, exactly as delivered.
service.secret_inputs
list of strings matching ^[a-z][a-z0-9_]*$, no element twice · required
The names of the Service's secret inputs, delivered to the binary as LM_SERVICE_<KEY>, whose values are written nowhere: for s3_fixtures, aws_access_key_id, aws_secret_access_key and aws_session_token.
source_commit
string matching ^[0-9a-f]{40}$ · required
The git commit the source archive was made from.
source
string matching ^sha256:[0-9a-f]{64}$ · required
The source archive the box unpacked and built from.
A blob's name: sha256: and the 64 hex digits of the SHA-256 of its bytes, which are stored at blobs/sha256/<hex>.
binary
object, no other members · required
The binary that ran, as the box built it: its bytes, the build, the compiler, what the build printed, and what the compiler resolved its flags to.
binary.blob
string matching ^sha256:[0-9a-f]{64}$ · required
The bytes that ran.
A blob's name: sha256: and the 64 hex digits of the SHA-256 of its bytes, which are stored at blobs/sha256/<hex>.
binary.build
string · required
The name of the build, as given to the benchmark's Makefile.
binary.compiler
string · required
The compiler's own first line of version output.
binary.command
string · required
What the build printed: the commands it ran.
binary.resolved_flags
string matching ^sha256:[0-9a-f]{64}$ · required
What the compiler resolved its flags to on this box, such as -march=native.
A blob's name: sha256: and the 64 hex digits of the SHA-256 of its bytes, which are stored at blobs/sha256/<hex>.
provider
object · required
Where this ran, in the provider's own words: under LedgerMath's names for them, each value is the provider's, verbatim, or null when the box could not read it. name says whose words the values are.
provider.name
string · required
Whose words the other keys' values are: aws; or unknown, with no other key, when the box could not read its instance ID from the instance metadata service.
provider.*
string or null · any number of them
One fact of where the binary ran: the key is LedgerMath's name for it, the value the provider's words, verbatim; null when the box could not read that value.
For aws, read from the instance metadata service: instance_type, region, availability_zone, availability_zone_id, image_id (the service's ami-id) and instance_id.
environment
object, no other members · required
The box's environment dump taken just before the launch and just after the exit. Each names an index blob that lists the dump's sections by hash.
environment.before
string matching ^sha256:[0-9a-f]{64}$ · required
The index blob of the dump taken just before the binary was launched.
A blob's name: sha256: and the 64 hex digits of the SHA-256 of its bytes, which are stored at blobs/sha256/<hex>.
environment.after
string matching ^sha256:[0-9a-f]{64}$ · required
The index blob of the dump taken just after the binary exited.
A blob's name: sha256: and the 64 hex digits of the SHA-256 of its bytes, which are stored at blobs/sha256/<hex>.
runner
string matching ^sha256:[0-9a-f]{64}$ · required
The runner that launched the binary: a blob listing every file of the directory named runner in the source archive (source), one line each, its sha256 in hex, two spaces and its path within that directory, sorted by path, leaving out any directory named build or __pycache__.
A blob's name: sha256: and the 64 hex digits of the SHA-256 of its bytes, which are stored at blobs/sha256/<hex>.
exit
object of exactly one of 2 shapes · required
How the process ended: its exit code, or the signal that killed it.
timeout_seconds is present when the runner killed it for running that long. runner_signal is present when the runner was told to stop before it collected the binary's exit: it is the number of the signal that told it.
It takes exactly one of these 2 shapes:
- Shape 1. It has
code, may haverunner_signal, and has no other member. - Shape 2. It has
signal, may havetimeout_secondsandrunner_signal, and has no other member.
exit.code
integer, 0 or more · required in shape 1
The binary's exit status, when it exited by itself rather than being killed by a signal.
0 means it completed. Each benchmark defines what its other codes mean; a non-zero code does not by itself mean the binary stopped short (http_get exits 4 only after printing its whole stream, finished included). Method series v1 counts a Run only when its code is 0; Method requests v1 accepts 4 as well, subject to its other checks.
exit.runner_signal
integer, 1 or more · optional in shapes 1 and 2
The signal that told the runner to stop (15 SIGTERM, 2 SIGINT, 1 SIGHUP), received after the runner launched the binary and before it collected the binary's exit.
The runner then killed the binary if it had not ended, and started no further execution. code or signal beside it is still how the binary actually ended. A stop signal that arrives after the exit was collected stops the boot but is not recorded here.
exit.signal
integer, 1 or more · required in shape 2
The number of the signal that ended the binary.
exit.timeout_seconds
integer, 1 or more · optional in shape 2
The runner's timeout for the execution, in seconds: present only when the runner killed the binary (signal 9) for running that long.
events
list of objects · required in shape 1; absent in shape 2
Carried only by Runs written before the runner stopped copying stdout into the Run (they have no `stdout_bytes`): the JSON objects parsed from the binary's stdout lines, in order, up to and not including the first line the runner that wrote the Run could not parse as a JSON object, which `events_error` then names.
Later Runs do not carry it. For every Run the stdout blob is the source of its events, and every reader reads them there, parsed the same way; for a Run that carries events, they must equal the events read from the blob, line for line.
events[].event
string · required
The event's name.
events[].t
integer, 0 or more · required
Whole nanoseconds on the clock that the stream's started event names.
events_error
object, no other members · optional; absent in shape 2
Carried, like `events`, only by Runs written before the runner stopped copying stdout into the Run, when a stdout line could not be parsed: the line's number and why.
A reader of a later Run finds such a line when it parses the stdout blob.
events_error.line
integer, 1 or more · required
The number of the stdout line that could not be parsed, counting from 1.
events_error.message
string · required
Why it could not be parsed: not JSON, with the parser's error, or not a JSON object.
stdout
string matching ^sha256:[0-9a-f]{64}$ · required
The binary's stdout, exactly as it printed it.
Each line is meant to be one event, of the shape the events schema gives (the data API serves it at v1/schemas/events.schema.json), and a Method counts a Run only when every line is; a line may fail that, or not be JSON at all. The source of the Run's events for every Run.
A blob's name: sha256: and the 64 hex digits of the SHA-256 of its bytes, which are stored at blobs/sha256/<hex>.
stdout_bytes
integer, 0 or more · required in shape 2; absent in shape 1
The length of the stdout blob, in bytes. Written, with stdout_lines, by every Run since the runner stopped copying stdout into the Run; such a Run carries no events.
stdout_lines
integer, 0 or more · required in shape 2; absent in shape 1
The number of lines in the stdout blob: the pieces between newlines, a last line without one counted too. Written with stdout_bytes.
stderr
string matching ^sha256:[0-9a-f]{64}$ · required
The binary's stderr, verbatim.
A blob's name: sha256: and the 64 hex digits of the SHA-256 of its bytes, which are stored at blobs/sha256/<hex>.