Specification 1.0¶
Real2SimLab's specification fixes the files that pass between benchmarks, methods and the Lab, so that any method's delivery can be built, frozen, re-run and scored the same way on any benchmark, and its result read the same way. It is 1.0 and frozen: see Compatibility.
| Object | Version string | Page | JSON Schema |
|---|---|---|---|
Task directory, task.toml |
r2s-task/1.0 |
Tasks | r2s-task |
Capture, capture.json |
r2s-capture/1.0 |
Captures | r2s-capture |
Twin package, twin.json |
r2s-twin/1.0 |
Twins | r2s-twin |
tracks output format |
r2s-tracks/1.0 |
Output formats | meta, camera |
| Scoring protocols | reproduction/1.0, native |
Scoring | — |
| Run record | r2s-run/1.0 |
Records | r2s-run |
| Build record | r2s-build/1.0 |
Records | r2s-build |
| Agent record | r2s-agent-run/1.0 |
Records | r2s-agent-run |
| Task result | r2s-task-result/1.0 |
Records | r2s-task-result |
| Aggregate results and scorecard | r2s-results/1.0 |
Records | r2s-results |
| Experiment configuration | r2s-experiment/1.0 |
Records | r2s-experiment |
Training record of a checkpoint, training.json |
r2s-training/1.0 |
Records | r2s-training |
Regenerate the schemas with r2s spec schema --out docs/spec/schemas; a test fails when they
are stale.
Versions¶
- Every document names its object and version in a
specfield, e.g.spec = "r2s-task/1.0". - A reader accepts the same major version with a minor version up to its own. A newer minor version may add optional fields; an older Lab rejects such a document with a message that asks for an upgrade, instead of silently dropping fields.
- The specification versions are independent of the package version.
Compatibility¶
The specification 1.0 is frozen. Two rules govern every later change:
- Within 1.x, only additions. A minor version (1.1, 1.2, ...) may add optional fields, new objects, output formats, delivery conventions, metrics and protocols. It never removes or renames anything, never changes the meaning or unit of an existing field, and never makes an optional field required. Every 1.0 document stays valid and means the same.
- A breaking change needs a new major version (2.0) of the object it changes, together with a migration note in the changelog that says what changed and how to convert documents. Labs reject documents of a major version they do not implement, with a message saying so.
Rules that hold everywhere¶
- Strict models. Every object rejects unknown fields. Extensions go into the places made
for them (
Capture.extensions, taskmetadata). - Explicit failure. Missing inputs, wrong formats and broken environments raise clear errors; nothing degrades silently. A method that delivers no valid twin is a result (scored as zero), not an exception.
- Units and frames. Metres, seconds, radians, kilograms. The world frame is right-handed
with +Z up; gravity points along −Z. Cameras use OpenCV axes (+x right, +y down, +z forward);
intrinsicsis a 3×3 pixel matrix,extrinsicsa 4×4 camera-to-world transform. Poses are[x, y, z, qw, qx, qy, qz]. Frameiis at timei / fps. - Provenance. Every non-media quantity in a capture carries how it was obtained:
measured,estimated,default,human_editedorsynthetic. - Paths. Paths inside documents are relative to the document's directory and may not
contain
..; symbolic links are not allowed in tasks, twins or outputs. The exception is what a user points to: an experiment file's task paths and the method options that name files (path,checkpoint) start from its directory and may contain..or be absolute (Experiments), and records keep the paths a command was given as they were given (next rule). - No credentials in any record. No host paths either, except where a record keeps
what a command was given:
experiment.json(the experiment as given, and where its tasks are), a build record's methodoptions, and a checkpoint'sdataset(Records).