Repository navigation
Releases
v0.13.0: Trustworthy integrity checks
Changed
-
velocity_discontinuity_rateseverity ignores sensor noise. The flag
level now comes from the rate after the same ~10 Hz low-pass LDLJ uses (no-op
at ≤10 Hz); the text shows the unfiltered rate when it differs. Unfiltered, the
metric was CRITICAL on clean 50 Hz data and non-monotone: an injected spike
raised peak speed and hid the noise, so lightly corrupted ALOHA scored 2.9% vs
6.5% clean. Filtered: 0.0% clean, rising with corruption. ALOHA CRITICAL → OK,
Unitree H1 CRITICAL → WARNING, PushT unchanged. The unfiltered rate is kept
(mean_disc_fraction, per-episode values) for regime thresholds, prune limits,
profiles, the Calibra Score and claims, so those do not move; filtered values
are added alongside. Evidence:eval/investigations/vel_disc/FINDINGS.md. -
Local dataset copies get their dataset profile automatically when they
can be identified from their own files: thehf downloadrevision equals the
revision a profile was measured on, or the dataset card links a covered Hub
ID. Previously only Hub IDs did, socalibra prune ./pushtsilently used the
global Stage-1 limits and dropped 48 clean PushT episodes (0 with the
profile). The applied profile and the evidence are printed and stored in the
report (dataset_profile_reason); a directory named like a profiled dataset
only prints a--profilehint. An explicit--profilestill wins. -
short_episode_fractionno longer flags fixed-length recordings. The lower
fence is nowQ1 − 1.5 × max(IQR, 0.25 × median). Datasets recorded at a few
fixed lengths have IQR = 0, which put the fence at Q1: on
lerobot/unitreeh1_rearrange_objects(23 × 250 and 7 × 200 steps) every
complete 200-step episode was an "outlier" andcalibra integrityfailed CI.
An episode must now be below about 62% of the typical length to count as
short; ordinary variable-length datasets are unaffected (regression goldens
unchanged for this metric). -
ldljis now computed per sub-movement (ldlj_definition: per_submovement_v1). Whole-episode LDLJ was defined for a single movement;
over a demonstration of N movements it fell by about 4 ln N regardless of
smoothness, and triple differentiation amplified sensor noise by 1/dt³, so it
was CRITICAL on all 30 official LeRobot datasets audited and correlated −0.95
with episode length on PushT. Velocities are now low-pass filtered (moving
average, ~10 Hz; no-op at ≤10 Hz), split into sub-movements at speed minima,
scored per sub-movement and combined as a duration-weighted mean. Thresholds
(−10 / −15) are unchanged; they are the single-movement scale the new values
are on. Details and evidence:eval/investigations/ldlj/FINDINGS.md.- Smooth synthetic demos score −4.6 to −5.0 for any number of movements
(previously −4.5 to −18.4). Injected glitches and heavy noise still lower
the score. White-noise actions score about −11 to −13 (WARNING); they
remain CRITICAL onvelocity_discontinuity_rate. - PushT:
ldljCRITICAL → OK (mean −16.0 → −8.1); Calibra Score
44.3 → 63.1. The old value zeroed the smoothness dimension, which through
the integrity gate also halved coverage and task-structure credit.
Regression goldens updated (ldljonly). - Expect higher Calibra Scores and fewer
ldljflags on most datasets,
especially long or 50 Hz ones. Stage-1 per-episode drops atmin_ldlj
(−30) effectively no longer occur. - Reference profiles in
calibra/references/were made with the old
definition.calibra compareno longer comparesldljagainst them and
says so; regenerate a reference withscripts/profile_dataset.py, which
now recordsldlj_definition. Claims LDLJ-001 / LDLJ-002 are annotated as
measured with the old definition, with re-tests pending.
- Smooth synthetic demos score −4.6 to −5.0 for any number of movements
-
Synthetic timestamps are reported as not evaluable, not passed. When every
episode's timestamps lie on an exactt0 + k*dtgrid (LeRobot writes
frame_index / fps; simulators step a fixed clock),timestamp_jitter_cvand
timestamp_dropout_rateare emitted at level INFO with the reason, and
calibra integritylists them under Not Evaluated instead of Passed. They no
longer count toward the integrity score, so integrity scores of LeRobot and
simulated datasets drop accordingly. Raw metric values, the Calibra Score and
pruning decisions are unchanged. Regression goldens for PushT updated
(OK → INFO for these two metrics only). -
calibra analyzeandcalibra integritytreat INFO integrity flags as not
evaluated. Previously a category with only skipped checks (e.g. calibration
drift with no stationary holds) showed as OK inanalyzeand was omitted
entirely fromintegrity. -
Dataset cards no longer show a predicted training success rate. The
prediction is not validated, and cards are meant for other people's dataset
pages. The Calibra Score is labelled as a heuristic composite. -
calibra pruneprints a readylerobot-traincommand for LeRobot sources
instead of the oldpython train.pyhint.
Added
calibra integrity --decode-videorunsduplicate_frame_rateand
camera_freeze_eventson LeRobot v2/v3 video (previously Not Evaluated).
Opt-in, sampled (--video-sample N, default 20 episodes, evenly spaced),
full resolution in 64-frame chunks, every camera; same measure and
thresholds as for image datasets. Validated on real data: flags
lerobot/aloha_static_battery(cam_high30% repeated frames, cameras
slower than the 50 Hz recording), passesunitreeh1_rearrange_objects
(<1%) andpusht(1.5%).- Duplicate episode check (
duplicate_episode_fraction, task_structure
analyzer): episodes whose actions and numeric observations are byte-identical
to another episode are CRITICAL and block-level incalibra integrity; the
finding names each copy and its original. Found in practice: episode 26 of
lerobot/unitreeh1_rearrange_objects@e874d89bcopies episode 6. calibra integritychecks LeRobot v2/v3 video files (missing, undecodable,
frame-count/coverage mismatch, wrong fps) on local datasets. New optional
extracalibra-robotics[video](OpenCV).calibra.integrations.lerobot:lerobot_train_args,lerobot_episode_indices
andload_lerobot_datasetto train on kept episodes without exporting a copy.calibra card --push --create-propens the card as a Hub pull request.- Real-fault evaluation tooling (
calibra.fault_eval,scripts/fault_eval.py,
eval/real_faults/).
Fixed
calibra card --pushreplaced the dataset's entire README with the card (it
read a non-existent attribute and always saw an empty README). It now edits
only the Calibra section and aborts if the README can't be read.calibra benchmarkprinted--dataset.episodeswith batch positions instead
of LeRobotepisode_indexvalues.
Install: pip install -U calibra-robotics
Full changelog: v0.12.0...v0.13.0
v0.12.0: Apache 2.0 core
Changed
- Calibra is now licensed under the Apache License 2.0 (previously Business
Source License 1.1). It is OSI open source with no restriction on hosting.
Theee/directory keeps its own license and is not part of the
calibra-roboticspackage; seeNOTICEandLICENSING.md. Releases up to
0.11.x keep their BSL terms. - Calibra Cloud code moved out of the core into
ee/(ADR-012), ahead of
relicensing the core under Apache 2.0.calibra/cloud/is now
ee/calibra_ee/cloud/andserver/is nowee/server/; neither is
published to PyPI. The core finds them through a newcalibra.pluginsentry
point (calibra/plugins.py).calibra login,logout,whoamiandcloudare available only with
the extension installed (pip install -e ee/). Without it they exit 2
with an explanation.- The core no longer contacts Calibra Cloud on its own. Recording an
outcome stays local (~/.calibra/outcomes.jsonl); the anonymous outcome
sync, the community percentiles printed after
calibra predict --record-outcome, and badge registration after
calibra card --pushnow run only with the extension. Dataset cards use
the static shields.io badge unless the extension provides a live one.
calibra compare --communityandcalibra calibrate --globalstill reach
the service, because the user asks for them explicitly. predict_outcome()accepts anoutcome_sourcefor empirical blending;
the local outcome store remains the default.
- Outside contributions are closed for now: issues and discussions are
turned off, and a workflow closes external pull requests automatically with
a pointer to the contact email. A draft Contributor License Agreement
(CLA.md) is kept for when contributions open.GOVERNANCE.mddescribes
who decides what. - CI now also runs on Python 3.13, fails if the mypy error count rises
above its baseline (scripts/mypy_ratchet.py), and fails if test coverage
drops below 58% (measured with only the dev extra installed, as in CI). - Added
pre-commithooks andCITATION.cff.SECURITY.mdnow points to
private vulnerability reporting, andSECURITY.mdandCODE_OF_CONDUCT.md
name a contact.
Fixed
- The certify GitHub Actions never failed a job. In
.github/actions/certifyand the reusable.github/workflows/certify.yml,
$(calibra certify ...) || truefollowed byEXIT_CODE=$?always read 0, so
NOT CERTIFIED datasets passed andstricthad no effect. Both now fail on
NOT CERTIFIED, and on warnings whenstrictis on. - The reusable certify workflow could not see local datasets: it never
checked out the caller's repository. It now does. - The root
action.ymlinterpolated the report into its PR-comment script,
so report text containing a backtick or${broke the script or ran as
JavaScript. All three certify entry points now pass inputs and outputs
through environment variables. Itsscoreoutput was always empty (it read
a keycertify --jsondoes not emit) and now comes fromcalibra score.
The comment is truncated to fit GitHub's size limit, and a comment that
cannot be posted no longer fails the job. calibra compare <dataset> pushtjudged velocity discontinuities with the
position-command thresholds calibrated on arm datasets once the PushT
reference was correctly labelledposition, so PushT-like data (~17%) read
as "significantly rougher than pusht". References produced under a dataset
profile are now interpreted against their own clean baseline, and only
class-agnostic claims are shown next to them.- Claim confidence now follows the SPEC scale (
calibra/claims/SPEC.md):
2–4 supporting datasets is MODERATE. The code had labelled 2 as LOW (below
1's LOW-MODERATE) and 3–4 as an undocumented MEDIUM. JS-003, PAI-001 and
TEMP-003 (2 supporting datasets each) move LOW → MODERATE. - aloha_mobile_cabinet numbers in
calibra/references/README.mdquoted
the first reference run (2026-06-15, 5387172), which excluded only dim 13 and
scored the left gripper as motion. They now match the committed reference
(both grippers excluded), which reproduces on current code: LDLJ −24.08 →
−24.70, spikes 1.0% → 0.42%, velocity discontinuities 1.3% → 0.84%, jitter
3.1e-5 → 3.0e-5, contact 78.9% → 78.8%. The 8 / 85 outliers reproduce
exactly (same episodes) and are unchanged. - An explicit
--gripper-dimsnow survives a dataset profile. Profiles
replaced anygripper_dimsequal to the default[-1], so asking for-1
explicitly on a profiled Hub ID (e.g.lerobot/pusht) was silently
overridden. Analyzers now default to a markedDefaultGripperDims([-1]),
which behaves identically but is the only value a profile replaces.
compare,corruptandscripts/profile_dataset.pyshare one
parse_gripper_dimshelper. No default behavior changes (the benchmark
regression gate is unchanged).
Added
- Evidence-gated dataset profiles. Every profile now carries a
ProfileEvidencerecord (dataset revision, sampling rate, action space,
reference run, clean baseline, justification, reproduction command). Tests
fail if it is incomplete, if the baseline disagrees with the cited reference
file, or if a profile's prune limits would cut its own clean episodes. - Benchmark regression gate (
tests/regression/, its own CI step). Runs
analyze and prune on a frozen copy oflerobot/pusht(revision7628202a,
259 KB fixture) and fails when any flag level, regime, headline metric or
kept/dropped episode changes. Intended changes regenerate the golden file
withCALIBRA_UPDATE_GOLDEN=1 pytest tests/regression. - Evidence rules for GitHub Copilot code review
(.github/copilot-instructions.md, plus path-specific rules in
.github/instructions/for claims and for references, golden results and
profiles). Copilot's advisory review flags PRs that change golden results,
thresholds, profiles, claims or reference data without evidence. It needs no
repository secret, unlike the Claude Code workflow it replaces. .github/CODEOWNERSfor verdict-affecting code, a dataset profile proposal
issue form, and contribution docs describing the evidence standard.
Changed
- Refreshed the PushT reference (
calibra/references/pusht_velocity_command.json).
It predated the float64 differentiation fix in the smoothness analyzer, so its
means were stale: spike rate 4.939% → 4.946%, velocity discontinuity rate
16.718% → 16.696%. p95 and max, which the profile thresholds rest on, are
unchanged, so no verdict moves. The stalecontrol_mode: velocitylabel is
dropped (PushT actions are position targets). - Regenerated the
pusht_imagereference. The old file reproduces exactly
on its original code (8762669), which scored only the x axis (the y target
was excluded as a "gripper"), differentiated in float32, and labelled the
datavelocitywithout using that label.lerobot/pusht_imagehas the same
actions aslerobot/pusht; profiled correctly (position, both axes) its
smoothness distributions match PushT exactly (spike 7.76% → 4.95%, velocity
discontinuities 11.11% → 16.70%, LDLJ −16.01 → −16.34). - Reference metadata is now authoritative.
scripts/profile_pusht.py
recordscontrol_mode,gripper_dimsanddataset_profile, and
scripts/profile_dataset.pyrecords the gripper dims actually applied (a
dataset profile can replace an explicit--gripper-dimsequal to the
default). The paper table's Ctrl column for both PushT rows now reads
positionfrom that metadata. - PushT episode outliers in
calibra/references/README.md: 27 / 206 → 16 / 206.
27 reproduces only on June 2026 code (x axis only, float32). - Claims registry corrected. PushT is position control, so it was never
evidence for the velocity-class claims JS-002, JS-004, VD-002 and VD-003, and
pusht_image(the same data) was never a second dataset. Those entries, and
two BridgeData-vs-PushT comparisons that assumed both were velocity control
(JS-003, LDLJ-002), move to a newretracted_evidencelist with a date and
reason. Confidence: JS-004 and VD-003 MEDIUM → LOW-MODERATE, LDLJ-002
STRONG → HIGH; no status changes. LDLJ-001 and ENT-001 keep their PushT
evidence with dated corrections to its reasoning. Three stale values
(ENT-001 for two ALOHA datasets, VD-001 for aloha_mobile_cabinet) now match
their references and still support their claims. - Claim values are checked against references
(tests/test_claims_references.py): every numeric evidence entry must match
its dataset's reference file.docs/claims.mdshows retracted evidence. - The report's cross-dataset table lists pusht and pusht_image as one row.
v0.11.0 - Dataset profiles and README fixes
Every command in the README was re-run end to end; this release fixes what did
not work as documented. Highlights: the Isaac Lab → GR00T integration and
--export-dataset produce usable output again (the exported PushT coreset loads
and trains in LeRobot 0.4.4), calibra serve POST endpoints work again, and
dataset profiles let PushT be analysed correctly without changing any global
default.
Added
- Dataset profiles (
calibra/dataset_profiles.py). Smoothness and
calibration-drift checks exclude the last action dimension as a gripper by
default, which silently dropped PushT'syaxis (its 2-D action is an
(x, y)target with no gripper). The global default is unchanged; instead the
pushtprofile setsgripper_dims=[]and applies automatically to
lerobot/pushtandlerobot/pusht_image. Local copies take
--profile pusht(onintegrity,audit,review,prune,analyze,
score;Pipeline(profile=...)in Python). Profiles only replace analyzer
defaults, never explicit settings. The applied profile is recorded in the new
DiagnosticReport.dataset_profilefield and included inconfig_hashand the
cache key. With the profile, PushT's smoothness metrics match the hand-measured
reference profile incalibra/references/README.md(LDLJ −16.34, jerk spikes
4.9%, velocity discontinuities 16.7%). - PushT calibration baselines re-measured with the profile
(experiments/benign_firing_rate_benchmark.py, 2026-09-23):spike_rate
5.8% (was 1.5%),vel_disc_rate1.9% (was 3.9%),jitter_cv0.0% (was 6.8%,
stale since the 1% jitter floor). ALOHA was re-measured too and is unchanged.
calibra audit lerobot/pushtnow sits exactly at its baseline. - Profile regime thresholds. Scoring PushT's
yaxis raises its velocity
discontinuity rate to 16.7%, above the global 13% HIGH NOISE cutoff, which
madeanalyzerecommend 81/206 episodes and drop 125 as "corrupted". That rate
is PushT's clean baseline under 10 Hz mouse teleop, not corruption, so the
pushtprofile setsdisc_high=0.25(about 1.5× the clean rate) via the new
DatasetProfile.regime_thresholds.diagnose_regimeapplies a report's
profile thresholds automatically (explicitcustom_thresholdsstill win), and
the noise score uses the same thresholds. The global thresholds are unchanged.
PushT stays MODERATE NOISE with 175/206 episodes recommended. - Profile
prunelimits (DatasetProfile.prune_thresholds).prune's
global Stage 1 limits (spike 0.10, velocity discontinuities 0.25) sit at
PushT's own clean p95 (10.4%, 27.5%), so they removed 27 known-clean episodes.
Thepushtprofile uses the limitsanalyzealready applies to PushT (0.25,
0.40), which clear its clean maximum (16.1%, 37.5%): PushT now loses 0
episodes in Stage 1 (48 without the profile, the global limits being
unchanged). Explicit--max-spike-rate/--max-vel-disc-ratestill win;
--max-vel-disc-ratenow defaults to unset (resolved to 0.25) soprunecan
tell. The profile also reachesPi0CompatibilityAnalyzer's internal
smoothness check (newgripper_dimsfield) and everycalibra serve
endpoint (new optionalprofilerequest field for local paths).
Fixed
- Every
calibra servePOST endpoint returned 422.serve.pyused
from __future__ import annotationswhile defining its request models inside
_make_app(), so FastAPI could not resolvereq: AnalyzeRequestand expected
areqquery parameter instead of a JSON body. The import is removed; a test
now checks every POST endpoint reads a JSON body.serveoutlier detection
also gets the dataset ID for calibration baselines, asauditdoes. - PushT was documented as velocity commands. Its actions are absolute (x, y)
target positions (they correlate 0.99 with the next position, 0.10 with the
position change).calibra/references/README.mdand
scripts/profile_pusht.pyare corrected; the reference metrics were already
computed correctly in position mode. - Isaac Lab → GR00T integration crashed on every Isaac Lab file. The reader
emits episode IDs likedemo_21, butexport_gr00t_manifest,
recommended_demo_indices,rejected_demo_indices, andfilter_hdf5parsed
them withint(). They now accept bothdemo_NandN.filter_hdf5also
keeps thedatagroup attributes (robomimicenv_args), updatestotal, and
rewritesmask/train/mask/validfor the new demo numbering. calibra prune --export-datasetproduced unloadable LeRobot datasets. It
wrote onetrain-00000-of-00001.parquetregardless of the source layout, and
dropped videos and the episode index. It now followsinfo.json: LeRobot v3
getsdata/…/file-000.parquet, a rewrittenmeta/episodes/*.parquet, the
referenced video files, andtasks.parquet. LeRobot v2 gets per-episode
Parquet and mp4 files.splitsis an episode range. Verified by loading the
exported PushT coreset withLeRobotDataset(lerobot 0.4.4) and training on it.- HDF5
--export-datasetsilently exported every demo for robomimic /
Isaac Lab files, because demos live underdata/demo_N. Only the kept demos
are now copied, withtotalandmask/updated. calibra auditnever showed calibration baselines. The "Clean baseline"
column always read "unavailable" because the dataset ID was not passed through.
Hub datasets with a built-in baseline (e.g.lerobot/pusht) now show it.calibra prune(default world-model strategy) was non-deterministic. JEPA
weights and minibatch order were unseeded, so the same input could keep
different episodes.RobotJEPAConfig.seed(default 0) now fixes both, without
touching global RNG state.- Duplicate-frame and camera-freeze checks blocked clean datasets. A
transition counted as a repeat when the mean pixel difference was below 0.5,
which is also true when a small object moves in a low-resolution frame:
lerobot/pusht_imagegot BLOCK on 206/206 episodes although no two consecutive
frames are identical. A repeat is now a transition where fewer than 0.05% of
pixels changed by more than 2 levels, which separates re-emitted frames from
both small motion and live sensor noise.activity_thresholdis replaced by
pixel_toleranceandmin_changed_fractionon both analyzers. - Smoothness metrics depended on the action dtype. Jerk, velocity
discontinuity, and LDLJ were differentiated in whatever dtype the reader
returned. With quantised actions (PushT's integer pixel targets), float32
rounding broke exact ties at thek × medianspike boundary, so the same data
read by different loaders gave different results (PushTspike_rateoutliers:
7 vs 3), and audit disagreed with its own calibration baseline. Derivatives are
now always computed in float64. With default analyzer settings (no dataset
profile),pruneon PushT now removes 48 (was 51) quality failures. - Install hints named the wrong PyPI package (
calibra[...], an unrelated
project). They now saycalibra-robotics[...].
v0.10.0 - Calibrated detection
Addresses the core HF feedback question: "Is this anomaly actually corruption, or just unusual data?" Three interlocking additions answer it. A CalibrationRegistry ships empirically-measured benign firing rates on known-clean LeRobot datasets (PushT n=206, ALOHA n=50), so any observed rate can be compared to a baseline rather than treated as absolute. AnomalySummary (schema 1.2.0) surfaces per-detector context — baseline, concentration, detection rate — in the public JSON report. The FindingCharacterization evidence schema (ADR-012) provides vocabulary to distinguish true corruption from unusual-but-valid episodes. Architecture rule enforced throughout: detected anomaly ≠ confirmed corruption ≠ DROP decision.
Added
CalibrationRegistry/CalibrationProfile— in-memory registry of empirically-measured benign firing rates keyed by detector, dataset, task family, and detector version.DEFAULT_REGISTRYships 10 benchmark-measured profiles across PushT (n=206) and ALOHA (n=50) for five detectors (jitter_cv,dropout_rate,spike_rate,vel_disc_rate,ldlj). Provenance tagbuiltin_estimatevsbenchmark_runalways shown.AnomalySummary/DetectorCalibrationSummary(schema 1.2.0) — new top-level field onCalibraReportpairing observed flag rates against calibration baselines, with concentration tags (spread/clustered/endpoint/unknown).Finding.benign_baseline_rate/Finding.baseline_source— calibration context attached per-finding in schema 1.2.0.- Human-reviewed evidence schema (ADR-012) (
calibra/schema/evidence.py) —FindingCharacterizationenum (TRUE_CORRUPTION/UNUSUAL_VALID/AMBIGUOUS),ReviewedFinding, andReviewedFindingDatasetwithprecision_table(),to_markdown(),summary(). - Benign firing rate benchmark (
experiments/benign_firing_rate_benchmark.py) — full HuggingFace-backed benchmark script with Wilson-score 95% CIs; results for PushT and ALOHA included inexperiments/results/.
Changed
CalibraReport.schema_versionbumped to1.2.0. Reports from earlier versions are structurally forward-compatible — new nullable fields default to null.
v0.9.0 — Dataset decision layer & annotate mode
[0.9.0] — Dataset decision layer & annotate mode
ADR-011: calibra prune no longer only removes episodes. It can now emit a
per-episode decision layer — every episode gets a disposition
(KEEP / DROP / ANNOTATE / …) and a characterization (quality_risk,
coverage_value, anomaly_score, calibra_score, redundancy, …) — and
annotate mode writes that as a training-ready, model-agnostic sidecar so a
metadata-conditioned policy can use data that aggressive pruning would drop.
The existing calibra prune coreset workflow is unchanged. See
docs/adr/adr-011-dataset-decision-layer.md and docs/annotate.md; the
research gate (does the metadata actually improve training?) is
experiments/METADATA_CONDITIONING_BENCHMARK.md.
Added
- Dataset decision layer (ADR-011), schema groundwork.
CurationReportnow carries adispositionslist — oneEpisodeCharacterizationper episode holding its decision (newDispositionenum:KEEP/DROP/DOWNWEIGHT/ANNOTATE/REVIEW/RECOLLECT) plus the signals behind it (n_steps,quality_risk,coverage_value,anomaly_score,integrity_flags,reasons, …). The legacyretained_indices/dropped_indicesare unchanged and now derived fromdispositions(KEEP / DOWNWEIGHT / ANNOTATE → retained) when only one side is supplied, so existing callers keep working.EpisodeCurator.curate()populatesdispositions(threshold pass →KEEP, threshold failure →DROP). NewCurationReport.by_disposition()/disposition_counts(). calibra prune --annotate DIR— annotate mode (ADR-011): instead of only removing episodes, write a training-ready sidecar that keeps every episode with a decision and characterization attached.calibra_annotations.jsonlhas one row per episode —calibra_disposition(KEEP/DROP/ANNOTATE) pluscalibra_score,quality_risk,coverage_value,anomaly_score,redundancy,success,n_steps,integrity_flags,weight— alongsidecalibra_annotations.manifest.json(versioned schema + a field dictionary, so the sidecar is self-describing) and the rawcalibra_curation_report.json. Redundant episodes (ones vanilla pruning would drop) are markedANNOTATE: keep them if your trainer conditions on the metadata.--annotate-format {jsonl,parquet,both}(defaultjsonl) additionally writescalibra_annotations.parquet(columnar, explicit typed schema; needs pyarrow). The schema is model-agnostic; ACT / Diffusion / VLA conditioning recipes live indocs/annotate.md. New:calibra.schema.annotations(AnnotationManifest,EpisodeAnnotation),calibra.annotate.write_annotations().- Decision-layer characterization —
EpisodeCharacterization(onCurationReport.dispositions) now carriescalibra_score(100·(1 − quality_risk)),quality_risk,anomaly_score,coverage_value,redundancy(1 − coverage_value) andsuccess, not just the triggering threshold. New helperscalibra.assessment.episode_calibra_score()/episode_redundancy().calibra.pruning.pruning_result_to_curation_report(result, batch, *, report=None, redundant_disposition=DROP)maps a prune run to the decision-layer schema — pass theDiagnosticReportto fill the assessment axes, andDOWNWEIGHT/ANNOTATEto retain redundant episodes instead of dropping them — and is also reachable asPruningResult.to_curation_report(batch, ...), soCoresetSelectorandEpisodeCuratorexpose the sameCurationReportview.EpisodeCurator.curate()populates the same enriched characterization. calibra experiment record --from-metrics PATH— reads GPU-hours / wall-clock / eval success / loss / energy straight out of a finished run's metrics file (flat JSON, or a Weights & Biaseswandb-summary.jsonfrom an offline run) instead of retyping them. Point it at a file or a run directory. A built-in alias table matches common key names;--map FIELD=path.to.key(repeatable) handles anything unusual. An explicit flag always overrides the file.gpu_hoursis only taken when literally present — never derived from wall-clock — so a derived figure can't be mistaken for a measured one by the benchmark classifier. The provenance string is stored on the record asmetrics_source. New modulecalibra/metrics_ingest.py. No network access.calibra experiment record --from-review PATH— folds acalibra review --jsonfile's per-episode assessments into the record'smean_anomaly_score/mean_quality_risk/mean_coverage_value, capturing the dataset side and the training-outcome side of an experiment in one command. Rejects a partial review queue rather than logging a biased dataset-level mean.calibra experiment record --dry-run— parse--from-metrics/--from-reviewand print what would be recorded, writing nothing.calibra experiment record— metadata-conditioning benchmark fields. New--arm(label in the A/B/C/D/R/R+ matrix),--metadata-conditioning(was the policy conditioned on the annotate-mode sidecar?), and--actual-retention PCT(fraction of the original dataset actually trained on — diverges from--retention, the nominal prune target, for the KEEP∪ANNOTATE arm where rescued episodes raise effective retention).ExperimentRecordgainsarm,metadata_conditioning,actual_retention_pct; old rows default them.calibra experiment listshowsarm=… +metaand(actual N%). Supportsexperiments/METADATA_CONDITIONING_BENCHMARK.md.
Fixed
- Annotate mode verified against real data.
tests/test_annotate_integration.py(markedintegration) runscalibra prune --annotateend-to-end againstlerobot/pusht(206 episodes, v2 Parquet) and asserts sidecar/dataset episode alignment, disposition partitioning,DROProws carrying integrity flags, populated non-degenerate characterization columns,ANNOTATE < KEEPmean coverage (rescue semantics), JSONL == Parquet ==load()round-trip, and that the coreset output is unchanged by--annotate. anomaly_scoreno longer saturates at 1.0 for every episode on small datasets.calibra.assessment.compute_episode_assessmentstook the max percentile-rank extremity across all ~9 per-episode metrics; with few episodes relative to the metric count, nearly every episode is the batch min or max on some metric, so the score collapsed to ~1.0 for the whole batch (visible incalibra reviewand the annotate-mode sidecar). A metric now counts towardanomaly_scoreonly when the episode is BOTH in that metric's rank tail (p≤0.1 or p≥0.9) AND ≥2.5 robust-MAD deviations from the batch median — i.e. being last in a tight cluster is not an anomaly, being a genuine magnitude outlier is. On a 12-episode dataset with two jerk-spike episodes,anomaly_scoreis now1.0for exactly those two and0.0for the rest (was1.0for all twelve). The reason list is unchanged. The signal is still weak below ~100 episodes and is documented as such.
v0.8.0 — Measured training results
Calibra's predictions (calibra benchmark) were always simulated — a heuristic outcome model plus linear GPU-hour scaling. That's useful for a first pass, but not evidence. This release adds the other half: a way to record what a design partner's real training runs actually cost and achieved, and to fold those measured numbers into the benchmark report wherever they're available, so a report is never presented as a validated result when parts of it are still predictions.
Added
calibra experiment record— logs one training run's result (GPU-hours, wall-clock time, energy, eval success rate) against the design-partner protocol'sfull/random/calibraconditions at a given retention percentage. Training itself runs in the partner's own pipeline; this only records the outcome. Stored locally as JSON Lines at~/.calibra/experiments.jsonl— never synced to any network endpoint. New modulecalibra/experiment_log.py.calibra experiment list/calibra experiment report— list recorded runs, or print the full retention-curve comparison for one experiment, including the Calibra-vs-random delta at each level and which(retention%, condition)pairs the protocol still expects but haven't been recorded yet. New CLI handlercalibra/experiment.py.calibra benchmark --sweep— runs the full design-partner retention curve (default10/25/50/75/100%, override with--fractions) in one shot instead of a single--keepfraction.calibra benchmark --experiment-id ID— substitutes real measured GPU-hours / eval success rate fromcalibra experiment recordinto the benchmark report wherever a matching condition and retention level has been logged, falling back to simulated values for anything not yet measured.- Benchmark reports now carry a status:
SIMULATED(nothing measured — a prediction),PARTIAL MEASUREMENT(some conditions measured, others still simulated — not safe to report as validated), orCASE STUDY / VALIDATED(full, random, and Calibra all backed by real recorded training runs). Every number is individually tagged(measured)or(simulated). - Compute savings are now computed from GPU-hours rather than episode-count reduction, since the two can diverge once real measured numbers are mixed in.
See docs/commands.md's calibra benchmark and calibra experiment sections for the full partner workflow.
Fixed
compute_trajectory_entropyforce-cast actions tofloat32beforenp.histogram, which could collapse distinct values (and raise "Too many bins for data range") on large-offset, sub-millimeter-variance action columns — exactly the near-duplicate-trajectory case the function is meant to detect. Now computed infloat64. Reported via a Reddit user testing on real data.
Full Changelog: v0.7.1...v0.8.0
v0.7.1 — Dataset Integrity
Calibra now starts with Dataset Integrity
Before diversity, coreset selection, or any other quality question, robotics teams first need to know whether they can trust their data. That's the question this release is built around — not diversity scores, not training-cost estimates, just: can I trust this dataset?
We reorganized Calibra's workflow to answer that question first, cheaply, and up front:
$ calibra integrity dataset/
✓ Timestamp consistency
✓ Episode completeness
✓ Motion is smooth (no jerk/jitter)
⚠ Camera freeze detected
⚠ Duplicate frames detected
Integrity Score: 80/100 · Status: Warning
Findings are grouped into Critical / Warnings / Passed rather than led with a single number — a score is still computed, but it's a summary line, not the headline.
What calibra integrity checks
- Timestamps & sensor sync — jitter, dropout, camera lag, action/observation alignment
- Episode completeness — statistical detection of suspiciously short episodes
- Duplicate frames — a dropped grab or re-emitted buffer rather than a genuinely new observation
- Camera freeze — a sustained run of near-identical frames, the camera has stopped updating
- Blur — episodes anomalously blurry relative to the rest of the dataset
- Jittery / jerky motion — smoothness (LDLJ), jerk spikes, velocity discontinuities in the recorded actions themselves
That last one shipped this release specifically because a LeRobot practitioner told us directly that the issues they hit most are "the basics — wrong timestamps, jittery movements, blurred camera frames." We had timestamps and blur covered; motion jerkiness turned out to live only in the old Quality-layer audit, not in the front-door Integrity check where it belonged. It does now.
Where this fits
Integrity is the first of four questions Calibra answers, in the order practitioners actually ask them:
Integrity (can I trust this?) → Quality (is it clean?) → Coverage (is it diverse enough?) → Optimization (can I train cheaper?)
Everything in this release is the first step of that pipeline — Quality, Coverage, and Optimization are unchanged and still available via calibra audit, calibra review, and calibra prune.
Also in this release
- LeRobot v1 image decoding (
--decode-images) — duplicate/freeze/blur checks now work on LeRobot v1 datasets, not just HDF5/Isaac Lab/robomimic. (v2/v3, which store frames as encoded video, are a deliberately deferred follow-up.) - Hugging Face Space reorganized to check Integrity first, ahead of the Quality/Coverage score, matching the CLI and docs.
- Documentation — new Integrity Checks page, updated README workflow table and examples,
mkdocs.ymlnav fixes. --jsonoutput for CI gating (exit code1on any CRITICAL finding).
Known gap
PyPI publishing for this tag needs a trusted-publisher configuration update on our end — the GitHub release and code are current regardless; pip install calibra-robotics will pick up this version once that's sorted.
Full Changelog: https://github.com/omertt27/Calibra/blob/main/CHANGELOG.md
v0.7.0 — Dataset Integrity
Calibra now starts with Dataset Integrity — before diversity, coreset selection, or any other quality question, robotics teams first need to know whether they can trust their data.
$ calibra integrity dataset/
✓ Timestamp consistency
✓ Episode completeness
⚠ Camera freeze detected
⚠ Duplicate frames detected
Status: Warning
Added
calibra integrity— new front-door command answering "can I trust this dataset?" before quality, coverage, or optimization matter. Findings are grouped into Critical / Warnings / Passed rather than led with a single score; anIntegrity Scoreis still computed but demoted to a summary line.- Timestamp consistency and sensor sync (jitter, dropout, camera lag, action/observation alignment)
- Episode completeness (statistical short-episode detection)
- Duplicate frame detection
- Camera freeze detection
- Blur detection
- Image integrity checks (duplicate/freeze/blur) now available for LeRobot v1 datasets via the new opt-in
--decode-imagesflag
LeRobotReader(decode_images=True)— decodes HuggingFaceImage-feature columns for LeRobot v1 datasets. Off by default (increases load time/memory); no effect on the existing v2/v3 fast path.- Homepage and documentation reorganized around the Integrity → Quality → Coverage → Optimize workflow (new
docs/integrity.md, updated README,mkdocs.ymlnav, demo assets underdocs/demo.tape/docs/demo_fixture.py). - Hugging Face Space reorganized to check Dataset Integrity first, ahead of the Quality/Coverage score.
Notes
- Duplicate-frame, camera-freeze, and blur checks work out of the box on HDF5/Isaac Lab/robomimic data, and on LeRobot v1 via
--decode-images. LeRobot v2/v3 (video-encoded) datasets are intentionally out of scope for this release —--decode-imagesprints a warning and has no effect there.
Planned next
- Vision Integrity for video-backed LeRobot datasets (v2/v3) — decode a sampled subset of frames from LeRobot's mp4-encoded v2/v3 datasets so duplicate-frame/camera-freeze/blur detection work there too.
Full Changelog: https://github.com/omertt27/Calibra/blob/main/CHANGELOG.md