Skip to content

Releases

v0.13.0: Trustworthy integrity checks

Choose a tag to compare

@omertt27 omertt27 released this 17 Oct 08:02

Changed

  • velocity_discontinuity_rate severity 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: the hf download revision equals the
    revision a profile was measured on, or the dataset card links a covered Hub
    ID. Previously only Hub IDs did, so calibra prune ./pusht silently 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 --profile hint. An explicit --profile still wins.

  • short_episode_fraction no longer flags fixed-length recordings. The lower
    fence is now Q1 − 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" and calibra integrity failed 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).

  • ldlj is 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 on velocity_discontinuity_rate.
    • PushT: ldlj CRITICAL → 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 (ldlj only).
    • Expect higher Calibra Scores and fewer ldlj flags on most datasets,
      especially long or 50 Hz ones. Stage-1 per-episode drops at min_ldlj
      (−30) effectively no longer occur.
    • Reference profiles in calibra/references/ were made with the old
      definition. calibra compare no longer compares ldlj against them and
      says so; regenerate a reference with scripts/profile_dataset.py, which
      now records ldlj_definition. Claims LDLJ-001 / LDLJ-002 are annotated as
      measured with the old definition, with re-tests pending.
  • Synthetic timestamps are reported as not evaluable, not passed. When every
    episode's timestamps lie on an exact t0 + k*dt grid (LeRobot writes
    frame_index / fps; simulators step a fixed clock), timestamp_jitter_cv and
    timestamp_dropout_rate are emitted at level INFO with the reason, and
    calibra integrity lists 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 analyze and calibra integrity treat INFO integrity flags as not
    evaluated. Previously a category with only skipped checks (e.g. calibration
    drift with no stationary holds) showed as OK in analyze and was omitted
    entirely from integrity.

  • 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 prune prints a ready lerobot-train command for LeRobot sources
    instead of the old python train.py hint.

Added

  • calibra integrity --decode-video runs duplicate_frame_rate and
    camera_freeze_events on 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_high 30% repeated frames, cameras
    slower than the 50 Hz recording), passes unitreeh1_rearrange_objects
    (<1%) and pusht (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 in calibra integrity; the
    finding names each copy and its original. Found in practice: episode 26 of
    lerobot/unitreeh1_rearrange_objects @ e874d89b copies episode 6.
  • calibra integrity checks LeRobot v2/v3 video files (missing, undecodable,
    frame-count/coverage mismatch, wrong fps) on local datasets. New optional
    extra calibra-robotics[video] (OpenCV).
  • calibra.integrations.lerobot: lerobot_train_args, lerobot_episode_indices
    and load_lerobot_dataset to train on kept episodes without exporting a copy.
  • calibra card --push --create-pr opens the card as a Hub pull request.
  • Real-fault evaluation tooling (calibra.fault_eval, scripts/fault_eval.py,
    eval/real_faults/).

Fixed

  • calibra card --push replaced 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 benchmark printed --dataset.episodes with batch positions instead
    of LeRobot episode_index values.

Install: pip install -U calibra-robotics

Full changelog: v0.12.0...v0.13.0

v0.12.0: Apache 2.0 core

Choose a tag to compare

@omertt27 omertt27 released this 10 Oct 06:47

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.
    The ee/ directory keeps its own license and is not part of the
    calibra-robotics package; see NOTICE and LICENSING.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/ and server/ is now ee/server/; neither is
    published to PyPI. The core finds them through a new calibra.plugins entry
    point (calibra/plugins.py).
    • calibra login, logout, whoami and cloud are 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 --push now run only with the extension. Dataset cards use
      the static shields.io badge unless the extension provides a live one.
      calibra compare --community and calibra calibrate --global still reach
      the service, because the user asks for them explicitly.
    • predict_outcome() accepts an outcome_source for 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.md describes
    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-commit hooks and CITATION.cff. SECURITY.md now points to
    private vulnerability reporting, and SECURITY.md and CODE_OF_CONDUCT.md
    name a contact.

Fixed

  • The certify GitHub Actions never failed a job. In
    .github/actions/certify and the reusable .github/workflows/certify.yml,
    $(calibra certify ...) || true followed by EXIT_CODE=$? always read 0, so
    NOT CERTIFIED datasets passed and strict had no effect. Both now fail on
    NOT CERTIFIED, and on warnings when strict is on.
  • The reusable certify workflow could not see local datasets: it never
    checked out the caller's repository. It now does.
  • The root action.yml interpolated 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. Its score output was always empty (it read
    a key certify --json does not emit) and now comes from calibra 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> pusht judged velocity discontinuities with the
    position-command thresholds calibrated on arm datasets once the PushT
    reference was correctly labelled position, 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.md quoted
    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-dims now survives a dataset profile. Profiles
    replaced any gripper_dims equal 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 marked DefaultGripperDims([-1]),
    which behaves identically but is the only value a profile replaces.
    compare, corrupt and scripts/profile_dataset.py share one
    parse_gripper_dims helper. No default behavior changes (the benchmark
    regression gate is unchanged).

Added

  • Evidence-gated dataset profiles. Every profile now carries a
    ProfileEvidence record (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 of lerobot/pusht (revision 7628202a,
    259 KB fixture) and fails when any flag level, regime, headline metric or
    kept/dropped episode changes. Intended changes regenerate the golden file
    with CALIBRA_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/CODEOWNERS for 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 stale control_mode: velocity label is
    dropped (PushT actions are position targets).
  • Regenerated the pusht_image reference. 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
    data velocity without using that label. lerobot/pusht_image has the same
    actions as lerobot/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
    records control_mode, gripper_dims and dataset_profile, and
    scripts/profile_dataset.py records the gripper dims actually applied (a
    dataset profile can replace an explicit --gripper-dims equal to the
    default). The paper table's Ctrl column for both PushT rows now reads
    position from 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 new retracted_evidence list 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.md shows retracted evidence.
  • The report's cross-dataset table lists pusht and pusht_image as one row.

v0.11.0 - Dataset profiles and README fixes

Choose a tag to compare

@omertt27 omertt27 released this 24 Sep 14:06

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's y axis (its 2-D action is an
    (x, y) target with no gripper). The global default is unchanged; instead the
    pusht profile sets gripper_dims=[] and applies automatically to
    lerobot/pusht and lerobot/pusht_image. Local copies take
    --profile pusht (on integrity, 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_profile field and included in config_hash and the
    cache key. With the profile, PushT's smoothness metrics match the hand-measured
    reference profile in calibra/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_rate 1.9% (was 3.9%), jitter_cv 0.0% (was 6.8%,
    stale since the 1% jitter floor). ALOHA was re-measured too and is unchanged.
    calibra audit lerobot/pusht now sits exactly at its baseline.
  • Profile regime thresholds. Scoring PushT's y axis raises its velocity
    discontinuity rate to 16.7%, above the global 13% HIGH NOISE cutoff, which
    made analyze recommend 81/206 episodes and drop 125 as "corrupted". That rate
    is PushT's clean baseline under 10 Hz mouse teleop, not corruption, so the
    pusht profile sets disc_high=0.25 (about 1.5× the clean rate) via the new
    DatasetProfile.regime_thresholds. diagnose_regime applies a report's
    profile thresholds automatically (explicit custom_thresholds still win), and
    the noise score uses the same thresholds. The global thresholds are unchanged.
    PushT stays MODERATE NOISE with 175/206 episodes recommended.
  • Profile prune limits (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.
    The pusht profile uses the limits analyze already 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-rate still win;
    --max-vel-disc-rate now defaults to unset (resolved to 0.25) so prune can
    tell. The profile also reaches Pi0CompatibilityAnalyzer's internal
    smoothness check (new gripper_dims field) and every calibra serve
    endpoint (new optional profile request field for local paths).

Fixed

  • Every calibra serve POST endpoint returned 422. serve.py used
    from __future__ import annotations while defining its request models inside
    _make_app(), so FastAPI could not resolve req: AnalyzeRequest and expected
    a req query parameter instead of a JSON body. The import is removed; a test
    now checks every POST endpoint reads a JSON body. serve outlier detection
    also gets the dataset ID for calibration baselines, as audit does.
  • 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.md and
    scripts/profile_pusht.py are 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 like demo_21, but export_gr00t_manifest,
    recommended_demo_indices, rejected_demo_indices, and filter_hdf5 parsed
    them with int(). They now accept both demo_N and N. filter_hdf5 also
    keeps the data group attributes (robomimic env_args), updates total, and
    rewrites mask/train / mask/valid for the new demo numbering.
  • calibra prune --export-dataset produced unloadable LeRobot datasets. It
    wrote one train-00000-of-00001.parquet regardless of the source layout, and
    dropped videos and the episode index. It now follows info.json: LeRobot v3
    gets data/…/file-000.parquet, a rewritten meta/episodes/*.parquet, the
    referenced video files, and tasks.parquet. LeRobot v2 gets per-episode
    Parquet and mp4 files. splits is an episode range. Verified by loading the
    exported PushT coreset with LeRobotDataset (lerobot 0.4.4) and training on it.
  • HDF5 --export-dataset silently exported every demo for robomimic /
    Isaac Lab files, because demos live under data/demo_N. Only the kept demos
    are now copied, with total and mask/ updated.
  • calibra audit never 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_image got 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_threshold is replaced by
    pixel_tolerance and min_changed_fraction on 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 the k × median spike boundary, so the same data
    read by different loaders gave different results (PushT spike_rate outliers:
    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), prune on PushT now removes 48 (was 51) quality failures.
  • Install hints named the wrong PyPI package (calibra[...], an unrelated
    project). They now say calibra-robotics[...].

v0.10.0 - Calibrated detection

Choose a tag to compare

@omertt27 omertt27 released this 11 Sep 18:40

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_REGISTRY ships 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 tag builtin_estimate vs benchmark_run always shown.
  • AnomalySummary / DetectorCalibrationSummary (schema 1.2.0) — new top-level field on CalibraReport pairing 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) — FindingCharacterization enum (TRUE_CORRUPTION / UNUSUAL_VALID / AMBIGUOUS), ReviewedFinding, and ReviewedFindingDataset with precision_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 in experiments/results/.

Changed

  • CalibraReport.schema_version bumped to 1.2.0. Reports from earlier versions are structurally forward-compatible — new nullable fields default to null.

v0.9.0 — Dataset decision layer & annotate mode

Choose a tag to compare

@omertt27 omertt27 released this 03 Sep 17:41

[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. CurationReport now carries a dispositions list — one EpisodeCharacterization per episode holding its decision (new Disposition enum: KEEP / DROP / DOWNWEIGHT / ANNOTATE / REVIEW / RECOLLECT) plus the signals behind it (n_steps, quality_risk, coverage_value, anomaly_score, integrity_flags, reasons, …). The legacy retained_indices / dropped_indices are unchanged and now derived from dispositions (KEEP / DOWNWEIGHT / ANNOTATE → retained) when only one side is supplied, so existing callers keep working. EpisodeCurator.curate() populates dispositions (threshold pass → KEEP, threshold failure → DROP). New CurationReport.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.jsonl has one row per episode — calibra_disposition (KEEP / DROP / ANNOTATE) plus calibra_score, quality_risk, coverage_value, anomaly_score, redundancy, success, n_steps, integrity_flags, weight — alongside calibra_annotations.manifest.json (versioned schema + a field dictionary, so the sidecar is self-describing) and the raw calibra_curation_report.json. Redundant episodes (ones vanilla pruning would drop) are marked ANNOTATE: keep them if your trainer conditions on the metadata. --annotate-format {jsonl,parquet,both} (default jsonl) additionally writes calibra_annotations.parquet (columnar, explicit typed schema; needs pyarrow). The schema is model-agnostic; ACT / Diffusion / VLA conditioning recipes live in docs/annotate.md. New: calibra.schema.annotations (AnnotationManifest, EpisodeAnnotation), calibra.annotate.write_annotations().
  • Decision-layer characterization — EpisodeCharacterization (on CurationReport.dispositions) now carries calibra_score (100·(1 − quality_risk)), quality_risk, anomaly_score, coverage_value, redundancy (1 − coverage_value) and success, not just the triggering threshold. New helpers calibra.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 the DiagnosticReport to fill the assessment axes, and DOWNWEIGHT / ANNOTATE to retain redundant episodes instead of dropping them — and is also reachable as PruningResult.to_curation_report(batch, ...), so CoresetSelector and EpisodeCurator expose the same CurationReport view. 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 & Biases wandb-summary.json from 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_hours is 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 as metrics_source. New module calibra/metrics_ingest.py. No network access.
  • calibra experiment record --from-review PATH — folds a calibra review --json file's per-episode assessments into the record's mean_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-review and 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). ExperimentRecord gains arm, metadata_conditioning, actual_retention_pct; old rows default them. calibra experiment list shows arm=… +meta and (actual N%). Supports experiments/METADATA_CONDITIONING_BENCHMARK.md.

Fixed

  • Annotate mode verified against real data. tests/test_annotate_integration.py (marked integration) runs calibra prune --annotate end-to-end against lerobot/pusht (206 episodes, v2 Parquet) and asserts sidecar/dataset episode alignment, disposition partitioning, DROP rows carrying integrity flags, populated non-degenerate characterization columns, ANNOTATE < KEEP mean coverage (rescue semantics), JSONL == Parquet == load() round-trip, and that the coreset output is unchanged by --annotate.
  • anomaly_score no longer saturates at 1.0 for every episode on small datasets. calibra.assessment.compute_episode_assessments took 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 in calibra review and the annotate-mode sidecar). A metric now counts toward anomaly_score only 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_score is now 1.0 for exactly those two and 0.0 for the rest (was 1.0 for 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

Choose a tag to compare

@omertt27 omertt27 released this 12 Aug 11:41

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's full / random / calibra conditions 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 module calibra/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 handler calibra/experiment.py.
  • calibra benchmark --sweep — runs the full design-partner retention curve (default 10/25/50/75/100%, override with --fractions) in one shot instead of a single --keep fraction.
  • calibra benchmark --experiment-id ID — substitutes real measured GPU-hours / eval success rate from calibra experiment record into 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), or CASE 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_entropy force-cast actions to float32 before np.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 in float64. Reported via a Reddit user testing on real data.

Full Changelog: v0.7.1...v0.8.0

v0.7.1 — Dataset Integrity

Choose a tag to compare

@omertt27 omertt27 released this 01 Aug 20:28

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.yml nav fixes.
  • --json output for CI gating (exit code 1 on 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

Choose a tag to compare

@omertt27 omertt27 released this 01 Aug 19:33

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; an Integrity Score is 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-images flag
  • LeRobotReader(decode_images=True) — decodes HuggingFace Image-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.yml nav, demo assets under docs/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-images prints 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