Physlint
Robot data integrity, before training.
Local-first, deterministic validation for physical-AI recordings and robot-learning datasets.
Quickstart · Agents · Demo · Rules · Evidence · Observatory · Roadmap · Contributing
Physlint finds concrete integrity defects before robot data reaches training. It explains the impact, identifies the affected episode and stream, recommends remediation, writes a stable JSON report, and returns a CI-safe exit code.
Release 0.5.0 supports LeRobot Dataset v2.0/v2.1 and v3.x, generic MCAP container validation, and a ROS 2-over-MCAP semantic profile, plus dataset comparison, reviewed baselines, CI report formats, and a plugin SDK. Read the documentation or explore the Community Evidence Atlas. Claims stay scoped to pinned conformance data and controlled evidence. Native rosbag2 SQLite remains a conversion workflow.
The download badge above is refreshed daily from PyPI Stats and reports downloads from the preceding month.
Why Physlint?
- Catch failures before GPU time: malformed manifests, broken episode ranges, reordered clocks, missing values, corrupt video, frozen cameras, and black frames become actionable findings.
- Keep robot data local: local-source checks do not need network access and never modify the source dataset. Explicit Hub references download to your local cache; use
--offlinefor cached sources. - Get evidence, not a mystery score: every finding includes a stable rule ID, severity, source location, observed condition, expected condition, impact, and remediation.
- Use it in CI: deterministic execution, versioned JSON, atomic report writes, strict configuration, and documented exit codes.
- Trust scoped claims: the public release gate pins exact dataset revisions and commits sanitized reports, corruption recipes, checksums, and publication metrics.
Quickstart
Physlint requires Python 3.11 or newer.
Install from PyPI
python -m pip install "physlint[all]==0.5.0"
physlint doctor
To test the exact tagged source instead of the PyPI distribution, install the GitHub release directly:
python -m pip install "physlint[all] @ git+https://github.com/pranayjoshi/physlint.git@v0.5.0"
Check a LeRobot dataset or MCAP recording
physlint inspect /path/to/lerobot-dataset
physlint check /path/to/lerobot-dataset
physlint inspect /path/to/recording.mcap
physlint check /path/to/recording.mcap
# Force ROS 2 semantics when an MCAP header does not declare the profile.
physlint inspect /path/to/recording.mcap --profile ros2
Try the demo without finding a dataset first:
physlint demo
For development, install from an existing repository checkout:
python -m pip install -e ".[all]"
physlint demo
The demo validates one healthy miniature dataset and proves that a deterministic NaN corruption is caught.
Check a revision-pinned Hugging Face dataset
Install the optional Hub client, then use an explicit revision:
python -m pip install "physlint[hub,video]==0.5.0"
physlint check hf://datasets/owner/dataset@REVISION
Downloads use the standard Hugging Face cache. Pass --offline to prohibit network access or --hub-cache PATH to select the cache. The resolved snapshot revision is preserved in the report.
Write JSON, JUnit, SARIF, or HTML to exact destinations:
physlint check /path/to/lerobot-dataset \
--output json \
--json-output artifacts/physlint-report.json \
--junit-output artifacts/physlint.junit.xml \
--sarif-output artifacts/physlint.sarif \
--html-output artifacts/physlint.html
Compare two dataset versions or previously written reports:
physlint compare /path/to/previous /path/to/current
physlint compare artifacts/previous.json artifacts/current.json --output json
Accept known findings into a reviewed baseline. New fingerprints of the same rule still fail:
physlint baseline /path/to/dataset --author ada --reason "station clock offset" --output .physlint/baseline.yaml
physlint check /path/to/dataset --baseline .physlint/baseline.yaml
The source remains untouched. Exit code 0 means the configured contract passed; 1 means validation completed with a blocking finding.
Coding agents
Physlint exposes versioned Pydantic models, stable exit codes, JSON on stdout for completed operations, and structured JSON errors on stderr:
physlint inspect /path/to/data --format json
physlint check /path/to/data --format json --safe
physlint schema report
physlint schema error
Safe mode is the default. Installed plugin packages remain available, but Python plugins named by a discovered physlint.yaml are recorded and ignored unless a trusted caller passes --allow-config-plugins.
Read the agent operating guide, use the reusable agent skill, or integrate the typed Python API. Committed contracts are under schemas/.
Watch the 18-second demo
Watch widescreen, download the 4:5 social clip, or read the transcript. The animation uses actual findings from the synthetic demo; its pacing is edited.
See it locate a controlled defect
These publication-safe captures summarize the built-in demo. It creates one healthy LeRobot v3 dataset and a copy with one deterministic NaN injected into the action stream at episode 0, sample 4, dimension 0.
| Healthy synthetic dataset | Controlled NaN corruption |
|---|---|
Physlint owns NaN and infinity semantics in numeric.finite_values; the same sample is not duplicated as a missing-stream finding.
What Physlint checks
Forty-nine deterministic rules are installed; temporal.signal_alignment is opt-in. Physlint plans only the rules for the detected adapter and profile:
| Area | Checks |
|---|---|
| Manifest | Required files, declared/stored schema agreement, required streams, feature shapes, declared totals, and unreferenced stored files |
| Episodes | Unique identifiers, positive lengths, non-overlapping boundaries, stored-row agreement, frame/dataset index order, and task references |
| Temporal | Finite, strictly monotonic timestamps, episode start and clock drift, FPS cadence, FPS-aware maximum gaps, complete stream overlap, and observation/action delay when independently timestamped |
| Numeric | NaN/Inf, configured physical bounds, and configured discontinuity limits |
| Video | Complete decode, bitstream errors, stored frame times against episode ranges, motion-aware frozen and repeated frames, black or saturated frames, and camera identity |
| Statistical | Warnings calibrated from the dataset itself: outlier jumps, range, stuck channels, noise, action/state coupling, near-duplicate episodes, and opt-in signal alignment |
| Duplication | Exact numeric episode copies |
| MCAP | Record/CRC readability, summary consistency, index coverage, channel/schema coherence, timestamp order, duplicate timestamps, and sequence continuity |
| ROS 2 | Portable CDR schemas, full decode, required topics, cadence gaps, configured header/log skew, known message invariants, and TF parent consistency |
List or explain the installed rule contract:
physlint rules
physlint rules --json
physlint explain temporal.max_gap
physlint explain video.frozen_frames
Rules whose required inputs are unavailable return not_run with a reason; they are never misreported as passed. Robot-specific bounds and discontinuity checks stay not_run until the user supplies meaningful thresholds.
Read the complete LeRobot MVP rules, MCAP/ROS 2 rules, and plugin SDK. Task-specific checks stay out of the default contract; load them with plugins: or a physlint.rules entry point.
For ROS 2 contracts, configure the topics and timing assumptions that Physlint cannot infer honestly:
config_version: 1
adapter: mcap
profile: ros2
fail_on: error
rules:
ros2.required_topics:
options:
required_topics: [/joint_states, /tf, /camera/front/image_raw]
ros2.topic_gaps:
options:
topic_rates_hz:
/joint_states: 100
/camera/front/image_raw: 30
max_gap_multiplier: 5
ros2.header_clock_skew:
options:
max_header_skew_ms: 25
Configuration
Run physlint init to generate a documented quality contract, or create physlint.yaml yourself:
config_version: 1
adapter: auto
required_streams:
- observation.state
- action
fail_on: error
rules:
temporal.max_gap:
options:
# Default limit is 2× the interval implied by declared FPS.
max_gap_multiplier: 2.0
video.frozen_frames:
options:
max_consecutive_frames: 5
# A run counts only if motion streams moved this fraction of their range during it.
min_run_displacement: 0.05
# Action is preferred over noisier observed state by default.
motion_streams: [action, observation.state]
numeric.configured_bounds:
options:
limits:
action:
min: [-1.0, -1.0]
max: [1.0, 1.0]
numeric.discontinuity:
options:
max_delta:
observation.state: [0.25, 0.25]
reports:
json: true
junit: false
sarif: false
html: false
output_dir: .physlint/reports
cache:
enabled: true
directory: .physlint/cache
# baseline: .physlint/baseline.yaml
# plugins:
# - ./rules/idle_prefix.py:IdlePrefixRule
Use it explicitly when needed:
physlint check /path/to/dataset --config physlint.yaml
Unknown top-level keys, rule IDs, rule options, duplicate required streams, and invalid values are rejected instead of silently ignored.
CI integration
The CLI has stable exit codes and writes reports atomically, so a basic GitHub Actions gate is small:
- uses: pranayjoshi/physlint@v1 # Pin a full commit for an immutable workflow.
with:
source: data/
config: physlint.yaml
The action runs in safe mode, uploads JSON, JUnit, SARIF, and HTML as one artifact, then preserves Physlint's exit code. Set upload-sarif: "true" and grant security-events: write to publish code-scanning results. Config plugins remain disabled unless allow-config-plugins: "true" is set explicitly.
The equivalent manual workflow is:
- name: Install Physlint
run: python -m pip install "physlint[video]==0.5.0"
- name: Validate robot dataset
run: |
physlint check "$DATASET_PATH" \
--json-output artifacts/physlint-report.json \
--junit-output artifacts/physlint.junit.xml \
--sarif-output artifacts/physlint.sarif
- uses: actions/upload-artifact@v4
if: always()
with:
name: physlint-report
path: artifacts/physlint-report.json
| Exit code | Meaning |
|---|---|
0 |
Validation completed and the configured contract passed |
1 |
Validation completed and the contract failed, or compare found a regression |
2 |
Invalid command or configuration |
3 |
Dataset or adapter failure |
4 |
Internal Physlint error |
130 |
Interrupted by the user |
Reproducible public-data evidence
The alpha release gate evaluates four immutable public snapshots from four producers:
| Dataset | Robot | Episodes | Frames | Applicable rules | Result |
|---|---|---|---|---|---|
ViaCatalyst/robomimic-can-ph-lerobot-v3 |
Panda | 10 | 1,160 | 11 | Pass |
cagataydev/scout-earth-rover-mini-20260616-053232 |
Earth Rover Mini | 3 | 4,176 | 14 | Pass |
lerobot/svla_so101_pickplace |
SO-101 | 50 | 11,939 | 14 | Pass |
vikram-avea/sentinel-demo-09 |
YAM humanoid | 11 | 13,983 | 14 | Pass |
Clean-source result: 4/4 snapshots pass with zero findings and zero rule errors. Controlled-defect recall: 3/3 for a non-finite value, reordered timestamps, and a deleted source row.
Everything needed to audit or rerun those claims is versioned:
- Pinned repository manifest
- Deterministic corruption and execution harness
- Sanitized reports and SHA-256 values
- Publication-ready CSV
- Manual classification and performance analysis
- Reproduction instructions
Runtime measurements are observations from the documented machine and run—not universal performance guarantees.
A larger compatibility survey adds ten revision-pinned public LeRobot v3 snapshots (1,678 episodes, 182,128 frames) plus five fail-closed v2 screens. Five of the ten v3 snapshots passed the default contract; the rest are classified in that report. Those rows are Observatory survey evidence. They do not expand the four-snapshot release claim and they are not a Hugging Face quality score.
The corruption benchmark measures 58 defect types and benign transforms. With the shipped defaults, macro detection on 5 datasets reserved from tuning is 89% including warnings, and 66% counting only findings that fail CI by default. No real dataset fails the default contract, but some receive warnings that have not been manually classified. These figures depend on the recipe mix and are not a real-world catch rate.
The MCAP/ROS 2 release gate additionally verifies an exact Foxglove conformance fixture, a public robot-captured RobotisAI episode, and two deterministic ROS 2 recordings:
| Recording | Profile | Provenance | Checks | Expected outcome |
|---|---|---|---|---|
Foxglove TenMessages conformance case |
Generic MCAP | Public, revision-pinned | 7 | Duplicate-time findings reproduced |
| RobotisAI ARX X5 elevator-button episode | ROS 2 | Public robot capture, revision-pinned | 12 | 7,047 messages decoded; configured topic contract and applicable checks pass |
| JointState baseline | ROS 2 | Controlled recipe | 12 | Pass |
| JointState cadence + dimension corruption | ROS 2 | Controlled recipe | 13 | Gap and semantic findings reproduced |
See the MCAP/ROS 2 manifest, reproduction harness, and sanitized summary.
Physlint Observatory
The repository now includes the Physlint Community Evidence Atlas: a profile-aware public map spanning LeRobot, MCAP, and ROS 2, with real defect stories and a contribution path for dataset maintainers. It deliberately does not collapse unlike contracts into one universal quality score. Every row exposes provenance, applicable checks, findings, a stable share link, and a sanitized report.
Format roadmap
The storage format is an adapter boundary, not the product boundary.
| Format | Status | Intended mode |
|---|---|---|
| LeRobot Dataset v2.0/v2.1 and v3.x | Alpha—implemented and publicly validated | Training datasets |
| Generic MCAP | Alpha preview—implemented and validated | Recording/container integrity |
| ROS 2 over MCAP | Alpha preview—implemented and validated | Topic/schema/semantic recording checks |
| Robomimic HDF5 | Planned | Demonstration datasets |
| RLDS/TFDS | Researching | Episode/step datasets |
| ROS bag2 SQLite and ROS 1 bag | Researching | Recordings |
MCAP support intentionally separates container/channel health from ROS 2 semantics. Training mappings from arbitrary topics to actions, state, cameras, and episode boundaries remain a later explicit profile. See the cross-format roadmap and MCAP/ROS design.
Use the adapter-request issue form to contribute an immutable public example and a real failure mode.
Current LeRobot boundary
Supported:
- LeRobot v2.0/v2.1 JSONL episode metadata and per-episode Parquet/MP4 files
- LeRobot v3.x
meta/info.jsonschema and path templates - Chunked Parquet episode metadata and sample shards
- Multiple episodes per shared Parquet/MP4 file
- Fixed-size and regular vector features
- Shared video segments using per-camera timestamp ranges
- Metadata-first discovery and bounded batch iteration
Not currently supported:
- Image-directory features in the video rule set
- Arbitrary codecs unavailable to the installed OpenCV build
- Inferred safety, calibration, task-success, or coordinate-frame conclusions
Read the LeRobot adapter boundary.
Current MCAP and ROS 2 boundary
Supported:
- Standalone MCAP files and directories containing exactly one MCAP file
- MCAP profile auto-detection plus explicit
genericandros2overrides - CRC-aware single-pass scanning with bounded timing evidence
- Summary/statistics consistency, index coverage, schemas, timestamps, and sequences
- ROS 2 CDR decode using embedded
ros2msgschemas without a ROS installation JointState,Image,CompressedImage,/tf, and/tf_staticinvariants- User-defined required topics, expected rates, gap multipliers, and header/log skew
Not currently supported:
- Native rosbag2 SQLite
.db3; Physlint returns conversion guidance - Multi-file/split MCAP bag directories
- Custom message invariants beyond portable decode
- Automatic action/state/camera/episode training-semantic mappings
- Safety, calibration, task-success, or coordinate-frame correctness certification
Read the MCAP and ROS 2 adapter boundary.
Design principles
source format → read-only adapter → canonical episodes/streams → capability planner
↓
deterministic rule engine
↓
terminal + versioned JSON evidence
- Read only: source datasets are never repaired or rewritten.
- Lazy by default: metadata first, bounded Parquet batches, and one shared privacy-safe video analysis pass.
- Explicit applicability: adapters advertise capabilities; unavailable checks explain why they did not run.
- Stable evidence: rule versions, fingerprints, source revisions, and report schema are serialized.
- Exception isolation: one rule failure cannot masquerade as a clean dataset pass.
Security and privacy
Validation is offline. Reports contain source references, timestamps, aggregate statistics, and targeted evidence—not embedded images or complete source samples. Treat every dataset parser as an attack surface and report suspected vulnerabilities privately through GitHub Security Advisories.
See SECURITY.md before submitting a vulnerability. Do not attach private datasets or sensitive reports to public issues.
Contributing
Contributions are welcome, particularly:
- Public healthy and defective datasets for adapter release gates
- False-positive reproductions
- MCAP/ROS recording schemas and failure modes
- New deterministic rules with controlled corruptions
- Plugin rules that follow the plugin SDK
- Documentation, performance characterization, and privacy reviews
Development setup:
git clone https://github.com/pranayjoshi/physlint.git
cd physlint
python -m pip install -e ".[video,dev]"
ruff check .
ruff format --check .
mypy
pytest
Rules require positive and negative fixtures, stable remediation, a bounded finding count, and controlled corruption evidence where applicable. Adapters must remain read-only, metadata-first, lazy over samples, and explicit about capabilities.
Read CONTRIBUTING.md, open a format request, file a bug or feature request through GitHub Issues, or start a GitHub Discussion.
Project status
Physlint is released. Its claims are deliberately limited to the documented LeRobot, generic MCAP, and ROS 2-over-MCAP boundaries and their committed evidence. The project does not train policies, repair data, host datasets, infer task success, produce an opaque quality score, or certify that a robot or policy is safe.
See CHANGELOG.md for release notes.
License
Physlint is available under the MIT License.
Metadata
Release files for physlint 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| physlint-0.5.0.tar.gz | 3.5 MB | With provenance | Details for physlint-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| physlint-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for physlint-0.5.0-py3-none-any.whl |
Total release size: 3.6 MB
Release files / physlint-0.5.0.tar.gz
| Download URL | physlint-0.5.0.tar.gz |
|---|---|
| Size | 3.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29e727f6234b0bbd4972f03be3bdb0cc8bea99694a9009f481822aac8bb82f32
|
|
BLAKE2b-256 checksum How to use checksums |
b7097a545a66f7d937394851566f02d8e0dd5a0ada0f644bbb434e8f36453ee8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / physlint-0.5.0-py3-none-any.whl
| Download URL | physlint-0.5.0-py3-none-any.whl |
|---|---|
| Size | 95.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
695850a0969a6870eae33f4ffea66b407db62012f0b2ddb38f7181f9003a1d3e
|
|
BLAKE2b-256 checksum How to use checksums |
04a297e1c554d139ec757fc8ffb6bee617d24283fec61f3f075d919ff656f90e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for physlint 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for physlint-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.