Repository navigation
Releases
HFlow 0.2.22
Behavior change: the transform behavior version moves from 10 to 13, so canonical episodes written by earlier releases get new identities. Regenerate derived outputs from your source recordings.
- Grouped MCAP writing,
CompressedVideoencoding and pass-through video rewriting now run on the shared Rust core inhebbian-mcap(#785, #786). Decoded message content is unchanged; the schema record and the bytes of repaired messages differ. - A declared camera channel with no messages is written as an empty canonical video channel instead of being dropped (#724).
- The canonical MCAP header's
libraryfield is the fixed stringhflow(#787), so a later dependency release that serializes the same way no longer changes canonical bytes.
Dependencies:
- DuckDB 2 is now required.
foxglove-schemas-protobufis no longer installed with HFlow (#785). Depend on it directly if your code imports it.hebbian-mcap0.1.2 installs from prebuilt wheels.
New:
- Verify frozen manifest split deliveries (#769).
- Run the LeRobot example workflow on any corpus with
--source-manifest(#766).
Fixes:
- Frame sampling stays aligned with decoded source frames across decode gaps, lost keyframes and MPEG-TS sources (#730, #732, #734, #764, #767, #772).
- LeRobot export declares every feature in
info.json, preserves source Parquet schemas and AUD start codes, compares video times in presentation order, and imports every repeated--episode-index(#743, #745, #756, #765, #777, #781, #782). - Snapshots reject receipt symlinks that escape the root and non-object format markers, and restore the delivery after an interrupted activation (#746, #761, #763).
doctorreports files without read permission, and names empty and truncated files (#737, #748).- Checks handle empty streams, empty vectors, non-advancing camera clocks and backward trajectory timestamps (#708, #713, #714, #717, #720, #735).
- FFmpeg child processes no longer read the caller's standard input (#784).
- Curation rejects unsupported output schemes, counts parsed queries during dry-run, and the server accepts preview SQL that ends in a comment (#725, #736, #741).
- Superseded defaults stay
MEASUREDwith filtered measurements (#752), zero-byte inputs keep their requested batches (#749), and the catalog UI waits for the episodes file before binding an append (#775).
HFlow 0.2.21
Breaking: HFlowHostedExecution no longer has a default base_url (#702). Constructing it without one raises; contact us to get access to the hosted API.
Behavior change: curation results now use each check's latest run. An error or a newer check version withdraws evidence from an earlier run in dataset admission and coverage (#678), measurements_latest (#694), and the server timeline and dossier (#697). New tags_latest and intervals_latest views (#705).
Also:
- Per-step
metaplanning reruns only outstanding checks (#692). - A crashed critical check no longer clears an existing quarantine (#686).
- Case-colliding manifest column names are refused instead of renamed (#685).
- Frame extraction no longer caches camera payloads (#689).
- Sparse and empty stream fixes in
timestamp_regularityandtrajectory_metrics(#695, #701).
v0.2.20
Changes
- Add audited manifest deduplication with explicit identity and label-conflict handling.
- Add deterministic manifest splitting that preserves connected sample groups.
- Expose bounded model video and frame preparation APIs.
- Add the public tiny-VLM autoresearch example.
- Improve NumPy compatibility and execution-stage diagnostics.
Validation
Release checks passed on Python 3.11 and 3.14. Local validation passed Ruff, formatting, type checking, 2,506 tests (8 skipped), and wheel/source distribution builds.
HFlow 0.2.19
HFlow 0.2.19 samples keyframes from videos in object storage without downloading them. hflow.serve_byte_ranges serves a byte-range reader to FFmpeg on loopback, and probe_video and sample_source_frames accept the source it yields in place of a local path. hflow.sources.PinnedSourceRangeReader is that reader for one pinned obstore revision: it checks the revision, path, and size on every range. A reader failure is raised as itself, never as unreadable media.
KEYFRAMES sampling now seeks to each bin instead of decoding every keyframe in the window, for local files too. It selects the same keyframes and writes byte-identical JPEGs, so SOURCE_FRAME_SAMPLING_VERSION is unchanged. On 90 MB, 2-minute test videos, probing plus 3-frame keyframe sampling fetched 4.5 to 5.5 MB. UNIFORM, NEAREST_KEYFRAMES, and the keyframes-first fallback still read the whole window.
Validation
- Ruff and ty passed; 2,412 tests passed and 8 skipped locally.
- PR CI passed on Python 3.11 and 3.14.
HFlow 0.2.18
HFlow 0.2.18 adds mergeable camera-shake rate bins and a duration-weighted percentile helper for run-wide p99 calculation. Bins retain one-degree-per-second resolution below 4,096°/s and 64 bins per doubling above it, with bounded memory. The selected bin's upper bound is capped by the observed maximum.
The summary accumulates bin durations and percentile prefixes precisely, including 30 fps boundary cases. Existing mean, RMS, maximum, and coverage fields keep their behavior.
Validation
- Ruff and ty passed; 2,385 tests passed and 8 skipped locally.
- PR CI passed on Python 3.11 and 3.14.
HFlow 0.2.17
HFlow 0.2.17 adds bounded prefetch for loops that prepare media and then wait on a model.
Changes
hflow.asyncio_utils.prefetch(items, prepare, *, working_directory, lookahead=1, cancel_hook=None)prepares upcoming items in their own scratch directories while the caller uses the current one. It yieldsPrefetchedItem(item, value, directory)in input order, runs at mostmax(lookahead, 1)preparations at once, keeps at mostlookahead + 1directories, and removes each directory when the caller advances. Leaving early runs the cancel hook, drains started preparations, then removes every directory. (#612)hflow.asyncio_utils.run_blocking_with_cancel_hook(cancel_hook, operation, ...)runs a hook to completion before draining blocking work on cancellation, so the drain cannot wait on an outside reader, such as a local model server, that only the hook can stop. A failing or repeatedly cancelled hook never skips the drain. (#611)- New runnable example
examples/score_source_windows.pyand how-to guide Score source windows with a model while the next ones are prepared. (#612)
Compatibility
Additive only. run_blocking behaves as before. No change to runtime processing, persisted-data formats, or TRANSFORM_BEHAVIOR_VERSION.
Validation
HFlow 0.2.16
HFlow 0.2.16 adds parallel native overlay builds.
hflow package build --jobs Nparallelizes Cython generation and native compilation. The default remains one job.- Overlay manifests and compiled artifact bytes remain identical across job counts.
This release does not change runtime processing or persisted-data formats.
HFlow 0.2.15
HFlow 0.2.15 adds public APIs for stateless embedded video workers:
hflow.ffmpegnow exports the bounded media command runner and input-rejection classifier.hflow.importers.prepare_model_framesselects indexed JPEGs from canonical model-video pixels without retaining an intermediate video.hflow.window_measurements.measure_video_window_independentlypreserves successful branch measurements when another branch's calculation or parsing fails. Shared decode and infrastructure failures remain shared; the existing strict API is unchanged.
The motion-recovery path drains raw video in bounded chunks. See the embedded-boundary and video-primitive documentation for contracts and limits.
HFlow 0.2.14
Changes
- Add
hflow.window_measurements.measure_video_window, which measures one fixed-rate source window with a single shared decode. Frame statistics, blur, and camera shake are computed from the original source frames without encoding an intermediate window (#603). - Transcode supported source videos directly to in-band H.264 during import instead of landing JPEG images, with an explicit encoded-byte budget (#594).
- Refuse a source with more than one channel on the same topic before a canonical episode is written;
hflow doctorreportsmultiple-channels-for-topic(#598). - Stream canonical video remuxing with bounded memory instead of materializing the whole camera channel (#581).
- Paginate LeRobot episode metadata discovery (#595).
- Expose object-store mirror refresh activity with bounded progress (#589).
- Log hosted check retries (#591).
- Keep the library silent when embedded unless the host configures logging (#590).
- Migrate the Airflow REST client to
httpx2(#578). - Add a WebDataset tar converter to the egocentric example (#592).
Compatibility
Transform behavior version is now 10 (#598). Every existing corpus is re-versioned once; regenerate canonical outputs from retained source recordings. Unique-topic episodes change bytes only because the version stamp moved.
Imports of supported videos now land H.264 instead of JPEG images. Callers using custom CRF/GOP settings must pass the same TransformConfig when importing and processing; a mismatch raises SourceNotConforming (#594).
measure_video_window is additive. Its results equal measuring an uncompressed copy of the window, so they differ from measuring prepare_video_window output, whose H.264 encode changes pixel values.
Validation
Each change passed Python 3.11/3.14 CI and the workspace example checks. The shared window decode passed 2,316 core tests (8 optional skips) and was compared against three separate decodes of the same frames on real first-person footage, matching on 36 of 37 fields (the remaining field is a 1 ms container-duration rounding). Release validation additionally checks clean-wheel imports, managed binary downloads, and native-overlay build/apply/verify before PyPI publication.
Full changes: v0.2.13...v0.2.14
HFlow 0.2.13
Changes
- Add timestamp-preserving selected-camera MCAP export through
hflow.mcap_video, with the optionalhflow[video]dependency. - Extend source-frame sampling with nearest-position keyframes, unpadded fitting, and explicit JPEG quality. Fix short-window sampling after seeks into long GOPs on managed FFmpeg.
- Expose public frame statistics with explicit luma-range and cache policies, raw blur measurements, and duration-weighted camera-shake summaries.
- Prepare model video directly through the existing JPEG and canonical H.264 recipe, without an intermediate MCAP.
- Reject null or incorrectly shaped snapshot-integrity containers with a clear verification failure.
- Migrate the Build AI and EgoSuite evaluation example CLIs to Typer.
Compatibility
Existing sampling defaults and canonical transform behavior remain unchanged. Transform behavior version remains 9; this release does not require regeneration solely for a transform-version change. New media APIs leave source files intact and expose raw measurements without classifying footage as blurry or unstable.
Validation
The implementation passed 2,255 core tests (8 optional skips), Python 3.11/3.14 CI, and the workspace example checks. HUD integration passed 1,138 tests and 108 subtests. Changed media modules were compiled and exercised on Python 3.12; sampling was checked against system and managed FFmpeg. Release validation additionally checks clean-wheel imports, managed binary downloads, and native-overlay build/apply/verify before PyPI publication.
Full changes: v0.2.12...v0.2.13