Skip to main content

Kalanos Tracking

Put dataset evidence beside your training curves.

A lightweight bridge from a saved Kalanos assessment to an existing Weights & Biases, MLflow, Trackio or TensorBoard run. For robotics engineers preparing imitation-learning experiments, it answers a question a loss curve cannot: what did we actually check about the data used for this run?

Quickstart · W&B · MLflow · Trackio · TensorBoard · Private setups · Integration guide

flowchart LR
    A[Your robotics dataset] --> B[Kalanos grader]
    B --> C[audit.json]
    C --> D[Kalanos Tracking]
    D --> E[Existing W&B run]
    D --> F[Existing MLflow run]
    D --> H[Existing Trackio run]
    D --> I[Existing TensorBoard writer]
    G[Your trainer] --> E
    G --> F

Separate package. No grader modifications. No MCP. No automatic grading or training.

Alpha release: pip install kalanos-tracking. See validation for exactly what was tested.

Make experiments easier to understand

Question What appears with your experiment
What assessment did we use? Report SHA-256, grader version, assessment run ID and available source revision/digest.
How many episodes need attention? Separate pass, review, blocked and unknown counts.
Is the readiness score established? Recorded score only when defined, plus an explicit readiness_defined flag.
What was the assessment scope? Requirements/policy identifiers, tier, completion and sufficiency status.
Can I inspect the evidence later? Optional summary artifact or explicitly selected full original report.

A descriptive score is not training readiness. Readiness is relative to recorded requirements, and neither is a measured prediction of policy success. A parent dataset's report does not automatically describe a filtered training subset.

Start in three steps

Requirements: Python 3.10+, a local Kalanos report and an existing tracker run.

1. Install

Choose the tracker used by your training script:

python -m pip install 'kalanos-tracking[wandb]'       # W&B only
# or
python -m pip install 'kalanos-tracking[mlflow]'      # MLflow only
# or
python -m pip install 'kalanos-tracking[trackio]'     # Trackio only
# or
python -m pip install 'kalanos-tracking[tensorboard]' # TensorBoard; use your existing PyTorch writer
# or
python -m pip install 'kalanos-tracking[wandb,mlflow,trackio,tensorboard]'

To run the examples or the tests, install from a checkout instead: clone this repository and replace kalanos-tracking with . in the commands above (for example python -m pip install '.[mlflow,smoke]').

The adapter requires kalanos>=0.10.3,<0.11 and is validated against 0.10.3; reports with an unknown schema are rejected. Tracker dependencies are optional. Use an isolated environment compatible with your trainer; freeze resolved versions for production.

2. Grade once, then reuse the report

kalanos grade ./dataset --report audit.json

This command can return a nonzero status when the dataset fails the configured gate. A report may still exist: logging that report does not override the grader's outcome. Run grading in your existing data-preparation or CI workflow; do not grade every training batch.

3. Attach it to your training run

Weights & Biases

Open in Colab

Grade a small LeRobot dataset, inspect the episode decisions, and see the audit beside a CPU training curve. The notebook defaults to offline mode and needs no W&B account to run that way. See the notebook guide for the hosted option and data-sharing details.

import wandb
from kalanos_tracking import load_assessment, log_to_wandb

assessment = load_assessment("audit.json")
with wandb.init(project="robot-learning") as run:
    result = log_to_wandb(assessment, run=run, slot="train_data")
    print(result.status)  # logged | already_logged | error
    # Your existing training loop continues here.

If your trainer already initializes W&B, pass that run object. Do not create a second run just for Kalanos. The helper writes static run-summary fields, not training history, and never advances W&B's training-step counter.

MLflow

import mlflow
from kalanos_tracking import load_assessment, log_to_mlflow

assessment = load_assessment("audit.json")
with mlflow.start_run() as run:
    result = log_to_mlflow(assessment, run_id=run.info.run_id,
                          slot="train_data", artifact="summary")
    print(result.status)
    # Your existing training loop continues here.

For an already-running experiment, pass its run ID and optionally your configured MlflowClient. The helper never starts or ends a run, changes the active run, or changes your tracking URI. Assessment metrics are logged at MLflow's default step 0 in their own namespace.

To attach the verdict to the dataset record itself, also call log_dataset_input(assessment, dataset=..., run_id=...) with an MLflow dataset (for example from mlflow.data.from_pandas). It writes compact kalanos.* input tags (descriptive score, episode counts, report SHA-256, grader version) through log_input, which is experimental in MLflow. An undefined readiness score is recorded as undefined, never 0. Call it before your own mlflow.log_input for the same dataset: MLflow keeps the first record of an identical input, so the helper returns error (or raises with strict=True) instead of reporting logged when the tags could not be attached. Use a different slot for each distinct dataset input; reusing a slot with another dataset or context raises ValueError. A different slot does not force MLflow to store the same dataset twice with different contexts. The helper verifies the requested tags and context before returning success, including on retries. A 0.2.0 slot marker is upgraded only if the stored input already matches. See examples/mlflow_dataset_input.py.

Trackio

import trackio
from kalanos_tracking import load_assessment, log_to_trackio

run = trackio.init(project="robot-learning")  # or your trainer's existing run
result = log_to_trackio(load_assessment("audit.json"), run=run,
                       step=0, slot="train_data", artifact="summary")
# Start training at the next chosen step; this call advances Trackio's counter.
# The caller finishes/flushes its run normally.

This is one history entry, not W&B-style static summary. logged means submitted to Trackio's SDK: it queues writes and can convert internal failures into warnings. Verify persistence after your run finishes. Check TRACKIO_SPACE_ID / TRACKIO_SERVER_URL and your init arguments before assuming data stays local.

TensorBoard

from torch.utils.tensorboard import SummaryWriter
from kalanos_tracking import load_assessment, log_to_tensorboard

with SummaryWriter("runs/robot-learning") as writer:
    result = log_to_tensorboard(load_assessment("audit.json"), writer=writer,
                               step=0, slot="train_data")
    # Your training loop writes to the same writer.

Use your existing PyTorch installation; the tensorboard extra does not install PyTorch. A compatible tensorboardX.SummaryWriter can also be supplied. Metadata and coverage appear in TensorBoard's Text panel.

For an optional local report copy, pass artifact="summary" or "full" and report_dir="reports". Files are placed under <report_dir>/<slot>/<report-sha256>/. This is a sidecar export, not an uploaded or clickable TensorBoard artifact. The caller flushes/closes the writer.

What you will see in your run

With slot="train_data", look for kalanos/train_data/ in the same run as your training metrics:

Backend Example location and content
W&B Run summary: kalanos/train_data/episodes_review; optional report under the run's Artifacts. These static fields are not added to training history automatically.
MLflow Run metrics: kalanos/train_data/episodes_review; provenance in tags; optional files under kalanos/train_data in Artifacts.
Trackio Run history at your chosen step: kalanos/train_data/episodes_review, plus the Markdown kalanos/train_data/assessment entry; optional report artifact.
TensorBoard Scalars: kalanos/train_data/episodes_review; Text: kalanos/train_data/assessment. Optional report copies remain local sidecars.

The readiness_score field appears only when the report defines it. These are field-name examples, not fabricated assessment results or a promise that dataset scores predict training performance.

Choose what to send

artifact What the helper sends
"none" (default) Allowlisted numeric metrics and metadata only.
"summary" Above, plus summary.json with structured coverage counts.
"full" Above, plus the original report bytes as audit.json. Explicit opt-in. TensorBoard writes local sidecars only.
result = log_to_wandb(assessment, run=run, artifact="summary")

Metrics appear under kalanos/<slot>/…, for example:

kalanos/train_data/descriptive_score
kalanos/train_data/readiness_score       # absent if undefined, never fabricated as 0
kalanos/train_data/episodes_pass
kalanos/train_data/episodes_review
kalanos/train_data/episodes_blocked
kalanos/train_data/episodes_unknown
kalanos/train_data/confirmed_eligible_share

Unknown readiness remains explicitly marked in metadata. Coverage uses recorded units and denominators, not a synthetic aggregate percentage. Missing coverage remains missing. Summary artifacts omit free-form reasons, source paths, task text, episode details and embedded previews. Inspect the local assessment.summary before logging; scope identifiers and source revision/digest are still metadata you are choosing to share.

Your data, your tracking destination

  • Use wandb.init(..., mode="offline") for offline W&B logging. The user owns any later sync.
  • Configure your team's MLflow server or local store normally; the adapter does not choose a hosted destination.
  • No dataset files are uploaded by the adapter. Full reports can contain private data, including local paths, instructions, diagnostics and previews. Review before using artifact="full".
  • Existing tracker SDKs may independently collect their normal telemetry/configuration. These helpers do not turn those SDK features off or guarantee zero network traffic.
  • No token handling, public Hub publication, report retrieval or credentials are added.

Fits your existing robotics pipeline

LeRobot: call the helper after your trainer creates its experiment run, before the first optimization step. Use the report for the exact data revision and episode selection you train on; this package records report provenance but does not independently verify your training dataset.

Microsoft Physical AI Toolchain: its LeRobot wrapper already initializes MLflow and logs dataset lineage. Add log_to_mlflow(...) after run initialization and before launching training. See the recipe. This is a proposed integration point, not a Microsoft-endorsed integration or an upstream patch.

GitHub Actions: retain audit.json from the grader step, then log it when a training run is available. Preserve the grading step's exit status. Keep access to logs and report artifacts aligned with the dataset's privacy.

Predictable behavior, explicit limits

  • The authoritative Kalanos loader decodes compact reports, resolves reason tables and validates report consistency. Legacy 6.x reports are rejected; regrade rather than invent missing decisions.
  • For W&B/MLflow, repeated successful calls with the same report and artifact option in one run/slot are skipped. A different report in the same slot is rejected; choose another slot to avoid stale metrics. Use one writer per slot.
  • SDK exceptions caught by the helper return LoggingResult(status="error", error_type=...) by default; pass strict=True to raise. Check the result. Parsing/configuration/slot conflicts raise directly. A logging failure is not a grader failure.
  • Tracker writes are not transactional. Partial failures may leave some metrics written; retries may duplicate MLflow metric history or artifact versions. W&B may queue writes: logged means the SDK accepted the operation, not that a remote service has durably acknowledged it. Finish/flush the caller's run normally.
  • No report comparisons, dataset merges, readiness recalculation, UI dashboards or model-performance claims.

Backend differences matter

Backend Assessment display Report attachment Step behavior
W&B Static summary fields Optional artifact Does not advance training history
MLflow Metrics and tags Optional artifact Assessment metrics at step 0
Trackio One history entry + Markdown Optional artifact Advances next-step counter; caller supplies step
TensorBoard Scalars + Text panel Optional local sidecar, not an artifact registry Caller supplies global step

W&B/MLflow successful identical calls are skipped per run/slot. Trackio/TensorBoard are call-once helpers, not deduplicated ingestion. They don't own the caller's lifecycle or automatically start/sync a hosted service.

Validate and contribute

PYTHONPATH=src python -m unittest discover -s tests -v
python -m compileall -q src tests examples

See VALIDATION.md for mocked versus actual SDK coverage, and docs/DESIGN.md for architecture. An integration is ready only after testing the user's actual tracker versions and destination.

Local smoke recipes

After installing the chosen backend extras, optional local-test helpers can be installed with python -m pip install '.[smoke]' (SQLAlchemy and Alembic for SQLite MLflow, TensorBoardX for a small writer). Then run:

python examples/wandb_offline.py audit.json ./smoke/wandb
python examples/mlflow_local.py audit.json ./smoke/mlflow
python examples/mlflow_dataset_input.py audit.json ./smoke/mlflow-input
python examples/tensorboard_local.py audit.json ./smoke/tensorboard
python examples/trackio_local.py audit.json ./smoke/trackio      # needs the trackio extra

Use a fresh output directory for the MLflow example because it creates a named experiment. These scripts use local/offline output; they do not launch training. The Trackio example refuses to run if TRACKIO_SPACE_ID, TRACKIO_SERVER_URL or TRACKIO_BUCKET_ID is set (even to an empty value). Unset those variables for this local-only smoke; it does not silently change your configured remote destination. Trackio itself may still contact Hugging Face to look up your default username when an HF_TOKEN is present (no assessment data is sent); unset HF_TOKEN for a strictly offline run. For intentional remote logging, use examples/trackio_existing_run.py. With those settings absent, the local example stores output in the requested directory; the Trackio snippet above deliberately takes an existing run so your application, not the adapter, selects the destination.

Learn more

Kalanos · Data Hub · Grader · Report schema

Apache-2.0 (LICENSE, NOTICE). Tracker and dataset licenses remain their own. All product and project names are trademarks of their respective owners and identify compatibility only; this independent Kalanos AI package is not affiliated with, sponsored by or endorsed by them.

Report suspected vulnerabilities privately as described in SECURITY.md. For other questions or reports, email reports@kalanos.ai.

Metadata

Release files for kalanos-tracking 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kalanos-tracking 0.2.2
File Size Uploaded Provenance Actions
kalanos_tracking-0.2.2.tar.gz 28.9 kB With provenance Details for kalanos_tracking-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kalanos-tracking 0.2.2
File Interpreter ABI Platform Actions
kalanos_tracking-0.2.2-py3-none-any.whl Python 3 none any Details for kalanos_tracking-0.2.2-py3-none-any.whl

Total release size: 48.0 kB

Release files / kalanos_tracking-0.2.2.tar.gz

Download URL kalanos_tracking-0.2.2.tar.gz
Size 28.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2127039fdb4d65dcc1f3076b1408bfac4acf762890cfce03e4d3de6c14b151f6
BLAKE2b-256 checksum
How to use checksums
214a81919757c094634f20e89376c801a1ad585c3b97d5ee2e8a9d6641157666
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 29, 2026.

Transparency log

Release files / kalanos_tracking-0.2.2-py3-none-any.whl

Download URL kalanos_tracking-0.2.2-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99f719fbeb9a00e46bf54617c8ad5ea95eaa90973b5fba546c58dc96b0f1d2b1
BLAKE2b-256 checksum
How to use checksums
d254ae47e3c2ece30852937d8495620b7e6a84db787147e483886c0c66fd6f62
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 29, 2026.

Transparency log

Security for kalanos-tracking 0.2.2

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.

Select from 2 files

Attestation for kalanos_tracking-0.2.2.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 29, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page