qualia-cli 0.3.0rc15__tar.gz → 0.3.0rc17__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/PKG-INFO +93 -19
  2. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/README.md +91 -17
  3. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/pyproject.toml +5 -2
  4. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/qualia-cli.spec.md +12 -4
  5. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/__init__.py +1 -1
  6. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/checks.py +81 -9
  7. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/dataset_episodes.py +20 -1
  8. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/dataset_ops.py +63 -7
  9. qualia_cli-0.3.0rc17/src/qualia_cli/commands/dataset_sync.py +230 -0
  10. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/datasets.py +103 -23
  11. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/pipelines.py +18 -4
  12. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_checks.py +207 -0
  13. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_dataset_episodes.py +88 -1
  14. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_dataset_ops.py +116 -0
  15. qualia_cli-0.3.0rc17/tests/commands/test_dataset_sync.py +329 -0
  16. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_datasets.py +204 -1
  17. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_pipelines.py +26 -0
  18. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/test_dataset_ref.py +5 -0
  19. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/test_main.py +41 -0
  20. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/uv.lock +2 -2
  21. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/.gitignore +0 -0
  22. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/examples/agent_path.sh +0 -0
  23. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/client.py +0 -0
  24. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/__init__.py +0 -0
  25. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/activity.py +0 -0
  26. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/auth.py +0 -0
  27. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/credits.py +0 -0
  28. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/dataset_studio.py +0 -0
  29. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/git.py +0 -0
  30. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/grippers.py +0 -0
  31. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/instances.py +0 -0
  32. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/integrations.py +0 -0
  33. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/issues.py +0 -0
  34. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/members.py +0 -0
  35. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/mixtures.py +0 -0
  36. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/models.py +0 -0
  37. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/preparation.py +0 -0
  38. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/projects.py +0 -0
  39. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/robots.py +0 -0
  40. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/statuses.py +0 -0
  41. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/tasks.py +0 -0
  42. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/commands/versions.py +0 -0
  43. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/config.py +0 -0
  44. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/dataset_ref.py +0 -0
  45. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/main.py +0 -0
  46. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/output.py +0 -0
  47. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/src/qualia_cli/run_ref.py +0 -0
  48. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/__init__.py +0 -0
  49. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/agent_path_stub.py +0 -0
  50. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/__init__.py +0 -0
  51. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_activity.py +0 -0
  52. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_auth.py +0 -0
  53. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_credits.py +0 -0
  54. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_dataset_studio.py +0 -0
  55. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_dataset_transfer.py +0 -0
  56. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_git.py +0 -0
  57. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_grippers.py +0 -0
  58. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_integrations.py +0 -0
  59. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_issues.py +0 -0
  60. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_members.py +0 -0
  61. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_mixtures.py +0 -0
  62. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_models.py +0 -0
  63. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_preparation.py +0 -0
  64. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_projects.py +0 -0
  65. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_robots.py +0 -0
  66. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_robots_parity.py +0 -0
  67. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_statuses.py +0 -0
  68. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_tasks.py +0 -0
  69. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_umi_setup.py +0 -0
  70. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/commands/test_versions.py +0 -0
  71. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/conftest.py +0 -0
  72. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/test_agent_path_example.py +0 -0
  73. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/test_client.py +0 -0
  74. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/test_config.py +0 -0
  75. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/test_older_sdk.py +0 -0
  76. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/test_output.py +0 -0
  77. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/test_run_ref.py +0 -0
  78. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc17}/tests/test_sdk_floor.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: qualia-cli
3
- Version: 0.3.0rc15
3
+ Version: 0.3.0rc17
4
4
  Summary: CLI for Qualia robot data curation: upload, curate, version and export datasets
5
5
  Project-URL: Homepage, https://qualiastudios.dev
6
6
  Project-URL: Documentation, https://docs.qualiastudios.dev
@@ -18,14 +18,14 @@ Classifier: Typing :: Typed
18
18
  Requires-Python: >=3.10
19
19
  Requires-Dist: click>=8.1.0
20
20
  Requires-Dist: pyyaml>=6.0
21
- Requires-Dist: qualia-sdk>=0.8.0rc15
21
+ Requires-Dist: qualia-sdk>=0.8.0rc17
22
22
  Requires-Dist: rich>=13.0.0
23
23
  Requires-Dist: typer>=0.15.0
24
24
  Description-Content-Type: text/markdown
25
25
 
26
26
  # qualia-cli — terminal client for Qualia robot data: upload, curate, version, export
27
27
 
28
- **Status:** beta pre-release (0.3.0rc15) · **Distribution:** PyPI, `qualia-cli` (installs `qualia-sdk`)
28
+ **Status:** beta pre-release (0.3.0rc17) · **Distribution:** PyPI, `qualia-cli` (installs `qualia-sdk`)
29
29
 
30
30
  Qualia keeps robot recordings (MCAP or LeRobot) as datasets of episodes. The `qualia` command
31
31
  uploads a folder of takes and shows what preparation found in it. It links the episodes to a Task
@@ -55,7 +55,7 @@ pre-release for now.
55
55
  ### Pre-release builds
56
56
 
57
57
  The CLI and the deployment it talks to negotiate the upload protocol exactly, so pin the version
58
- your deployment's docs name. This candidate is `0.3.0rc15` and requires `qualia-sdk>=0.8.0rc15`.
58
+ your deployment's docs name. This candidate is `0.3.0rc17` and requires `qualia-sdk>=0.8.0rc17`.
59
59
  `qualia dataset preparation` and `qualia dataset confirm-task-names` first shipped in `0.3.0rc12`;
60
60
  `0.3.0rc11` answers "No such command". `qualia dataset preparation --wait` and
61
61
  `qualia --version` first shipped in `0.3.0rc14`; `0.3.0rc13` answers "No such option".
@@ -63,14 +63,14 @@ your deployment's docs name. This candidate is `0.3.0rc15` and requires `qualia-
63
63
  releases need an organization key and return the stored folder, `meta/qds` included.
64
64
 
65
65
  ```sh
66
- pip install 'qualia-cli==0.3.0rc15'
66
+ pip install 'qualia-cli==0.3.0rc17'
67
67
  ```
68
68
 
69
69
  uv does not resolve a pre-release through a dependency, even one that names it, so uv needs the
70
70
  flag as well as the pin:
71
71
 
72
72
  ```sh
73
- uv tool install --prerelease=allow 'qualia-cli==0.3.0rc15'
73
+ uv tool install --prerelease=allow 'qualia-cli==0.3.0rc17'
74
74
  ```
75
75
 
76
76
  Upgrading from 0.1.2: 0.3.0rc10 removed the fine-tuning commands (`qualia job list`, `launch`,
@@ -271,6 +271,38 @@ qualia dataset upload ./week-2 week-2 --source-format lerobot_v3 \
271
271
  --merge-target accounts/<account-uuid>/datasets/<merged-uuid>
272
272
  qualia dataset upload ./calibration calibration --source-format lerobot_v3 --standalone
273
273
 
274
+ # An append into a merged dataset that is re-processing its recordings to a time
275
+ # sync is queued, not refused: `qualia dataset merge --into` prints "Queued N
276
+ # recording(s) to join <dataset> after its current re-processing", and an upload's
277
+ # `merge_append` reads `status: "joining"`. The upload stays its own dataset
278
+ # until the server joins it, once the re-processing has settled. What waits is in
279
+ # `qualia dataset sync-status <MERGED>` and in
280
+ # `qualia dataset get <MERGED> --json` under `syncPreparation.joining`. A tool
281
+ # center point move still refuses the append, and so does one that carries
282
+ # --resolve answers. Details:
283
+ # https://docs.qualiastudios.dev/cli/commands/#qualia-dataset-merge
284
+
285
+ # Name the rig a teleop or joint-recorded session was recorded on: any rig of the
286
+ # workspace (an arm rig, a UMI rig or another capture rig, the Rigs page's "Other
287
+ # rigs"), by name or id. Only a UMI rig converts a handheld recording; an arm rig
288
+ # or another capture rig is just recorded on the upload, and the dataset shows it
289
+ # once the upload publishes. A name that is no rig of the workspace (a robot
290
+ # template, a gripper template, a robot's own mounted gripper) is refused before
291
+ # anything is stored, as is an arm rig named for a tree whose meta/ingest.toml
292
+ # declares a [rig], or another capture rig named for a tree that declares the UMI
293
+ # kind; one that fits several rigs asks which. This needs
294
+ # qualia-sdk 0.8.0rc13 or newer: earlier ones send no transfer session, so
295
+ # nothing is recorded and the server asks you to upgrade.
296
+ qualia dataset upload ./session kitchen --rig my-franka-rig
297
+
298
+ # An upload needs no rig: add one later, change it, or clear it with '' (pass --rig
299
+ # alone; the name or id is looked up in the dataset's workspace, and the recording's
300
+ # kind decides which kind it takes). A UMI rig set this way is a record only: it
301
+ # moves no poses (`qualia dataset poses <dataset> --at tcp` does). `qualia dataset get`
302
+ # shows it as "Rig", or "Not recorded". Needs qualia-sdk 0.8.0rc17 or newer.
303
+ qualia dataset update kitchen --rig my-franka-rig
304
+ qualia dataset update kitchen --rig ''
305
+
274
306
  # Convert a handheld (UMI) recording at a UMI rig's TCP as it lands. The rig is
275
307
  # its name or id (make one first: New rig, UMI in the dashboard or
276
308
  # `qualia gripper umi-rig TEMPLATE`, then
@@ -278,16 +310,16 @@ qualia dataset upload ./calibration calibration --source-format lerobot_v3 --sta
278
310
  # someone made and none otherwise, and a rig that does not exist is refused. An
279
311
  # upload into a merged dataset whose uploads agree on one rig takes that rig
280
312
  # without --rig. A recording whose meta/ingest.toml declares
281
- # `kind = "umi-handheld"` and names no rig takes the workspace's one UMI rig; none
282
- # is refused ("no UMI rig in this workspace", with how to make one) and several
283
- # are refused asking which, before anything is stored. The old name `umi-handheld`
284
- # is the rig that held that key, else the one UMI rig. A recording that only
285
- # ingest recognises as UMI is checked there. One that is declared (`robot_type`, a
286
- # sidecar `rig_id`) or from which a complete hand pair settles by its channel
287
- # names fails with no UMI rig in the workspace, nothing published. One whose
288
- # channel names only loosely look UMI-like publishes raw, with a
289
- # `handheld_conversion_skipped` finding. With several UMI rigs either asks which,
290
- # so pass --rig. Your local files are untouched.
313
+ # `kind = "umi-handheld"` and names no rig takes the workspace's one UMI rig; with
314
+ # none or several it is not refused: it converts at the gripper roots (or at the
315
+ # TCP its own meta/ingest.toml declares) and records no rig (pass --rig, or add one later with
316
+ # `qualia dataset update --rig`). The old name `umi-handheld`
317
+ # is the rig that held that key, else the one UMI rig (refused with none or several).
318
+ # A recording that only ingest recognises as UMI is checked there, and admitted the
319
+ # same way (`robot_type`, a sidecar `rig_id`, or a complete hand pair by its channel
320
+ # names). One whose channel names only loosely look UMI-like and has no UMI rig in
321
+ # the workspace publishes raw, with a `handheld_conversion_skipped` finding.
322
+ # Your local files are untouched.
291
323
  qualia dataset upload ./umi-session umi-session --source-format mcap_ros2 --rig "Kitchen UMI"
292
324
 
293
325
  # Workspace selection is the gateway's X-Qualia-Workspace context. An explicit
@@ -379,6 +411,8 @@ qualia dataset edit -d <dataset> --from edits.json
379
411
  # List, open and count a dataset's episodes, then keep, reject, reset or
380
412
  # restore them by id or by filter. A take a person has open in the studio is
381
413
  # left as it was and listed on stderr with who holds it; the call exits 0.
414
+ # `dataset episode` says who set the outcome: a person, a graph check's
415
+ # proposal, or the operator while recording.
382
416
  qualia dataset episodes <dataset> --filter 'state = UNREVIEWED'
383
417
  qualia dataset episode <episode> -d <dataset>
384
418
  qualia dataset summary <dataset> --facet open_issue_codes --metric metrics.duration_seconds
@@ -407,6 +441,12 @@ qualia dataset download <dataset> --format original
407
441
  # the older route instead, for an organization key, with a notice on stderr (also
408
442
  # under --json): a sent file over 4.995 GiB, an upload that derived no episodes,
409
443
  # a sent file with no recorded SHA-256, or a failed original build.
444
+ # --labels (lerobot_v3 and lerobot_v2_1) also writes what Qualia knows about
445
+ # each exported episode: meta/qualia/labels.jsonl, one JSON line per episode
446
+ # (where it came from, the decision, the video check's reading, open issues,
447
+ # subtasks), and meta/qualia/export.json (the version, when the labels were
448
+ # read, counts). The fields are in sdk/python/docs/lerobot-labels.md. After 0.3.0rc15.
449
+ qualia dataset download <dataset>:<tag> --labels
410
450
  # pi_mcap_v1 and dreamlabs_v2_1 are files to upload to Physical Intelligence or
411
451
  # Dream Labs with your own account: the version's episodes that are not
412
452
  # rejected (Dream Labs: successful ones only). A failed episode is listed in
@@ -443,6 +483,12 @@ default, so internal templates and runs are not returned to the CLI. With the
443
483
  flag on, they appear marked as internal. No new command or CLI-side override
444
484
  is needed: the gateway applies the visibility filter.
445
485
 
486
+ Your workspace's templates are billed per run. On a deployment that does not bill
487
+ per run, `qualia pipeline template apply` still applies the file but prints
488
+ `Not launchable here: <reason> (<code>)` in place of the launch hint, and a
489
+ launch is refused with `run_billing_required`. `--json` carries the same answer
490
+ as `launchable` and `launch_refusal`.
491
+
446
492
  ### Tasks
447
493
 
448
494
  Tasks say what a robot should do and how success shows, as five pieces of
@@ -609,7 +655,7 @@ defaults; dataset writers set dataset overrides.
609
655
  qualia check policy <ORG_UUID> --org
610
656
  qualia check policy <WORKSPACE_UUID> --workspace
611
657
  qualia check policy-set <ORG_UUID> --org --graph off
612
- qualia check policy-set <DATASET_UUID> --graph inherit
658
+ qualia check policy-set <dataset> --graph inherit
613
659
  ```
614
660
 
615
661
  [Policy commands and permissions](https://docs.qualiastudios.dev/cli/commands/#qualia-check-policy-and-policy-set).
@@ -678,6 +724,13 @@ else its dataset's), with that revision in the `Task rev` column
678
724
  after `dataset relink-task` an episode has none until a run reads the new
679
725
  revision. `--all-revisions` lists every run's.
680
726
 
727
+ A heuristic check lists only its failures: where it assessed an episode and
728
+ lists no finding, the episode passed. `--verdict PASS` that lists nothing for
729
+ heuristic checks says so in one line on stderr, with the passes their last
730
+ completed runs counted (stdout, and so `--json`, is unchanged). Each check's
731
+ are in `dataset checks list --json`, as `lastResult.passCount`; that command's
732
+ table does not print them.
733
+
681
734
  `--check` and `--category` repeat and combine with `--all` as a union. `--kind`
682
735
  pins what `--all` or `--category` takes; unset, the current catalog selects
683
736
  runnable heuristics (VLM catalog checks are unavailable here). It lists skipped checks with their reasons,
@@ -735,11 +788,13 @@ qualia check reach-cancel <dataset> # stop it; solved takes keep th
735
788
  Only what you pass is written, and repeating a command writes nothing. Picking
736
789
  a robot with `--robot` also **starts the resolve at the TCP** when the dataset
737
790
  is an upload with handheld poses, every arm of the robot has a TCP, the
738
- workspace has exactly one UMI rig of the upload's kind with a calibration, and the
791
+ workspace has a UMI rig of the upload's kind with a calibration (the one it
792
+ records, else the workspace's one), and the
739
793
  poses are not at the TCP yet (or are there with another calibration). The
740
794
  resolve uses that capture gripper's calibration, not the robot's own gripper's;
741
795
  a robot with no TCP leaves the poses at the gripper root and says so, and with
742
- several UMI rigs of one kind none is the upload's (name it:
796
+ several UMI rigs of one kind and none recorded, the resolve is skipped (record it with
797
+ `qualia dataset update <dataset> --rig <rig>`, or name it:
743
798
  `qualia dataset poses <dataset> --at tcp --gripper <rig>`). `--no-resolve`
744
799
  never resolves, `--resolve` resolves whatever the robot.
745
800
 
@@ -783,6 +838,25 @@ A move of an upload with split episodes is blocked
783
838
  until pose correction can preserve its pieces ([QUA-3786](https://linear.app/qualia-studios/issue/QUA-3786)).
784
839
  Run a fresh check after membership changes.
785
840
 
841
+ A merged dataset has one time sync, a clock and an alignment per channel, that every upload it
842
+ holds is processed to. Check it, apply it, and follow it the same way:
843
+
844
+ ```sh
845
+ qualia dataset sync-precheck <merged-dataset> --file ingest.toml
846
+ qualia dataset sync-apply <merged-dataset> --file ingest.toml --revision <revision>
847
+ qualia dataset sync-apply <merged-dataset> --file ingest.toml --revision <revision> --member <upload> # try one again
848
+ qualia dataset sync-status <merged-dataset>
849
+ ```
850
+
851
+ The file is a patch (`schema = 1`, a `[clock]` and `[channels.<topic>]` `align` entries). Each
852
+ upload keeps its other settings, such as its camera offsets and rig. The output shows how many of
853
+ the uploads hold the time sync, how many are running, waiting and blocked, and a row with the
854
+ reason for each upload that does not hold it. LeRobot uploads have no time sync and are listed
855
+ apart. A merged dataset's time sync cannot change its uploads' frame rate yet, so an upload it
856
+ would give another rate is blocked. Apply stores the time sync and returns; the server then
857
+ re-processes the uploads a few at a time, each taking minutes. To try an upload again, run
858
+ `sync-apply` with the time sync `sync-status` prints and `--member <upload>`.
859
+
786
860
  ### Robots and their grippers
787
861
 
788
862
  `qualia robot` registers robots, imports their URDFs and gives a robot a gripper of
@@ -1,6 +1,6 @@
1
1
  # qualia-cli — terminal client for Qualia robot data: upload, curate, version, export
2
2
 
3
- **Status:** beta pre-release (0.3.0rc15) · **Distribution:** PyPI, `qualia-cli` (installs `qualia-sdk`)
3
+ **Status:** beta pre-release (0.3.0rc17) · **Distribution:** PyPI, `qualia-cli` (installs `qualia-sdk`)
4
4
 
5
5
  Qualia keeps robot recordings (MCAP or LeRobot) as datasets of episodes. The `qualia` command
6
6
  uploads a folder of takes and shows what preparation found in it. It links the episodes to a Task
@@ -30,7 +30,7 @@ pre-release for now.
30
30
  ### Pre-release builds
31
31
 
32
32
  The CLI and the deployment it talks to negotiate the upload protocol exactly, so pin the version
33
- your deployment's docs name. This candidate is `0.3.0rc15` and requires `qualia-sdk>=0.8.0rc15`.
33
+ your deployment's docs name. This candidate is `0.3.0rc17` and requires `qualia-sdk>=0.8.0rc17`.
34
34
  `qualia dataset preparation` and `qualia dataset confirm-task-names` first shipped in `0.3.0rc12`;
35
35
  `0.3.0rc11` answers "No such command". `qualia dataset preparation --wait` and
36
36
  `qualia --version` first shipped in `0.3.0rc14`; `0.3.0rc13` answers "No such option".
@@ -38,14 +38,14 @@ your deployment's docs name. This candidate is `0.3.0rc15` and requires `qualia-
38
38
  releases need an organization key and return the stored folder, `meta/qds` included.
39
39
 
40
40
  ```sh
41
- pip install 'qualia-cli==0.3.0rc15'
41
+ pip install 'qualia-cli==0.3.0rc17'
42
42
  ```
43
43
 
44
44
  uv does not resolve a pre-release through a dependency, even one that names it, so uv needs the
45
45
  flag as well as the pin:
46
46
 
47
47
  ```sh
48
- uv tool install --prerelease=allow 'qualia-cli==0.3.0rc15'
48
+ uv tool install --prerelease=allow 'qualia-cli==0.3.0rc17'
49
49
  ```
50
50
 
51
51
  Upgrading from 0.1.2: 0.3.0rc10 removed the fine-tuning commands (`qualia job list`, `launch`,
@@ -246,6 +246,38 @@ qualia dataset upload ./week-2 week-2 --source-format lerobot_v3 \
246
246
  --merge-target accounts/<account-uuid>/datasets/<merged-uuid>
247
247
  qualia dataset upload ./calibration calibration --source-format lerobot_v3 --standalone
248
248
 
249
+ # An append into a merged dataset that is re-processing its recordings to a time
250
+ # sync is queued, not refused: `qualia dataset merge --into` prints "Queued N
251
+ # recording(s) to join <dataset> after its current re-processing", and an upload's
252
+ # `merge_append` reads `status: "joining"`. The upload stays its own dataset
253
+ # until the server joins it, once the re-processing has settled. What waits is in
254
+ # `qualia dataset sync-status <MERGED>` and in
255
+ # `qualia dataset get <MERGED> --json` under `syncPreparation.joining`. A tool
256
+ # center point move still refuses the append, and so does one that carries
257
+ # --resolve answers. Details:
258
+ # https://docs.qualiastudios.dev/cli/commands/#qualia-dataset-merge
259
+
260
+ # Name the rig a teleop or joint-recorded session was recorded on: any rig of the
261
+ # workspace (an arm rig, a UMI rig or another capture rig, the Rigs page's "Other
262
+ # rigs"), by name or id. Only a UMI rig converts a handheld recording; an arm rig
263
+ # or another capture rig is just recorded on the upload, and the dataset shows it
264
+ # once the upload publishes. A name that is no rig of the workspace (a robot
265
+ # template, a gripper template, a robot's own mounted gripper) is refused before
266
+ # anything is stored, as is an arm rig named for a tree whose meta/ingest.toml
267
+ # declares a [rig], or another capture rig named for a tree that declares the UMI
268
+ # kind; one that fits several rigs asks which. This needs
269
+ # qualia-sdk 0.8.0rc13 or newer: earlier ones send no transfer session, so
270
+ # nothing is recorded and the server asks you to upgrade.
271
+ qualia dataset upload ./session kitchen --rig my-franka-rig
272
+
273
+ # An upload needs no rig: add one later, change it, or clear it with '' (pass --rig
274
+ # alone; the name or id is looked up in the dataset's workspace, and the recording's
275
+ # kind decides which kind it takes). A UMI rig set this way is a record only: it
276
+ # moves no poses (`qualia dataset poses <dataset> --at tcp` does). `qualia dataset get`
277
+ # shows it as "Rig", or "Not recorded". Needs qualia-sdk 0.8.0rc17 or newer.
278
+ qualia dataset update kitchen --rig my-franka-rig
279
+ qualia dataset update kitchen --rig ''
280
+
249
281
  # Convert a handheld (UMI) recording at a UMI rig's TCP as it lands. The rig is
250
282
  # its name or id (make one first: New rig, UMI in the dashboard or
251
283
  # `qualia gripper umi-rig TEMPLATE`, then
@@ -253,16 +285,16 @@ qualia dataset upload ./calibration calibration --source-format lerobot_v3 --sta
253
285
  # someone made and none otherwise, and a rig that does not exist is refused. An
254
286
  # upload into a merged dataset whose uploads agree on one rig takes that rig
255
287
  # without --rig. A recording whose meta/ingest.toml declares
256
- # `kind = "umi-handheld"` and names no rig takes the workspace's one UMI rig; none
257
- # is refused ("no UMI rig in this workspace", with how to make one) and several
258
- # are refused asking which, before anything is stored. The old name `umi-handheld`
259
- # is the rig that held that key, else the one UMI rig. A recording that only
260
- # ingest recognises as UMI is checked there. One that is declared (`robot_type`, a
261
- # sidecar `rig_id`) or from which a complete hand pair settles by its channel
262
- # names fails with no UMI rig in the workspace, nothing published. One whose
263
- # channel names only loosely look UMI-like publishes raw, with a
264
- # `handheld_conversion_skipped` finding. With several UMI rigs either asks which,
265
- # so pass --rig. Your local files are untouched.
288
+ # `kind = "umi-handheld"` and names no rig takes the workspace's one UMI rig; with
289
+ # none or several it is not refused: it converts at the gripper roots (or at the
290
+ # TCP its own meta/ingest.toml declares) and records no rig (pass --rig, or add one later with
291
+ # `qualia dataset update --rig`). The old name `umi-handheld`
292
+ # is the rig that held that key, else the one UMI rig (refused with none or several).
293
+ # A recording that only ingest recognises as UMI is checked there, and admitted the
294
+ # same way (`robot_type`, a sidecar `rig_id`, or a complete hand pair by its channel
295
+ # names). One whose channel names only loosely look UMI-like and has no UMI rig in
296
+ # the workspace publishes raw, with a `handheld_conversion_skipped` finding.
297
+ # Your local files are untouched.
266
298
  qualia dataset upload ./umi-session umi-session --source-format mcap_ros2 --rig "Kitchen UMI"
267
299
 
268
300
  # Workspace selection is the gateway's X-Qualia-Workspace context. An explicit
@@ -354,6 +386,8 @@ qualia dataset edit -d <dataset> --from edits.json
354
386
  # List, open and count a dataset's episodes, then keep, reject, reset or
355
387
  # restore them by id or by filter. A take a person has open in the studio is
356
388
  # left as it was and listed on stderr with who holds it; the call exits 0.
389
+ # `dataset episode` says who set the outcome: a person, a graph check's
390
+ # proposal, or the operator while recording.
357
391
  qualia dataset episodes <dataset> --filter 'state = UNREVIEWED'
358
392
  qualia dataset episode <episode> -d <dataset>
359
393
  qualia dataset summary <dataset> --facet open_issue_codes --metric metrics.duration_seconds
@@ -382,6 +416,12 @@ qualia dataset download <dataset> --format original
382
416
  # the older route instead, for an organization key, with a notice on stderr (also
383
417
  # under --json): a sent file over 4.995 GiB, an upload that derived no episodes,
384
418
  # a sent file with no recorded SHA-256, or a failed original build.
419
+ # --labels (lerobot_v3 and lerobot_v2_1) also writes what Qualia knows about
420
+ # each exported episode: meta/qualia/labels.jsonl, one JSON line per episode
421
+ # (where it came from, the decision, the video check's reading, open issues,
422
+ # subtasks), and meta/qualia/export.json (the version, when the labels were
423
+ # read, counts). The fields are in sdk/python/docs/lerobot-labels.md. After 0.3.0rc15.
424
+ qualia dataset download <dataset>:<tag> --labels
385
425
  # pi_mcap_v1 and dreamlabs_v2_1 are files to upload to Physical Intelligence or
386
426
  # Dream Labs with your own account: the version's episodes that are not
387
427
  # rejected (Dream Labs: successful ones only). A failed episode is listed in
@@ -418,6 +458,12 @@ default, so internal templates and runs are not returned to the CLI. With the
418
458
  flag on, they appear marked as internal. No new command or CLI-side override
419
459
  is needed: the gateway applies the visibility filter.
420
460
 
461
+ Your workspace's templates are billed per run. On a deployment that does not bill
462
+ per run, `qualia pipeline template apply` still applies the file but prints
463
+ `Not launchable here: <reason> (<code>)` in place of the launch hint, and a
464
+ launch is refused with `run_billing_required`. `--json` carries the same answer
465
+ as `launchable` and `launch_refusal`.
466
+
421
467
  ### Tasks
422
468
 
423
469
  Tasks say what a robot should do and how success shows, as five pieces of
@@ -584,7 +630,7 @@ defaults; dataset writers set dataset overrides.
584
630
  qualia check policy <ORG_UUID> --org
585
631
  qualia check policy <WORKSPACE_UUID> --workspace
586
632
  qualia check policy-set <ORG_UUID> --org --graph off
587
- qualia check policy-set <DATASET_UUID> --graph inherit
633
+ qualia check policy-set <dataset> --graph inherit
588
634
  ```
589
635
 
590
636
  [Policy commands and permissions](https://docs.qualiastudios.dev/cli/commands/#qualia-check-policy-and-policy-set).
@@ -653,6 +699,13 @@ else its dataset's), with that revision in the `Task rev` column
653
699
  after `dataset relink-task` an episode has none until a run reads the new
654
700
  revision. `--all-revisions` lists every run's.
655
701
 
702
+ A heuristic check lists only its failures: where it assessed an episode and
703
+ lists no finding, the episode passed. `--verdict PASS` that lists nothing for
704
+ heuristic checks says so in one line on stderr, with the passes their last
705
+ completed runs counted (stdout, and so `--json`, is unchanged). Each check's
706
+ are in `dataset checks list --json`, as `lastResult.passCount`; that command's
707
+ table does not print them.
708
+
656
709
  `--check` and `--category` repeat and combine with `--all` as a union. `--kind`
657
710
  pins what `--all` or `--category` takes; unset, the current catalog selects
658
711
  runnable heuristics (VLM catalog checks are unavailable here). It lists skipped checks with their reasons,
@@ -710,11 +763,13 @@ qualia check reach-cancel <dataset> # stop it; solved takes keep th
710
763
  Only what you pass is written, and repeating a command writes nothing. Picking
711
764
  a robot with `--robot` also **starts the resolve at the TCP** when the dataset
712
765
  is an upload with handheld poses, every arm of the robot has a TCP, the
713
- workspace has exactly one UMI rig of the upload's kind with a calibration, and the
766
+ workspace has a UMI rig of the upload's kind with a calibration (the one it
767
+ records, else the workspace's one), and the
714
768
  poses are not at the TCP yet (or are there with another calibration). The
715
769
  resolve uses that capture gripper's calibration, not the robot's own gripper's;
716
770
  a robot with no TCP leaves the poses at the gripper root and says so, and with
717
- several UMI rigs of one kind none is the upload's (name it:
771
+ several UMI rigs of one kind and none recorded, the resolve is skipped (record it with
772
+ `qualia dataset update <dataset> --rig <rig>`, or name it:
718
773
  `qualia dataset poses <dataset> --at tcp --gripper <rig>`). `--no-resolve`
719
774
  never resolves, `--resolve` resolves whatever the robot.
720
775
 
@@ -758,6 +813,25 @@ A move of an upload with split episodes is blocked
758
813
  until pose correction can preserve its pieces ([QUA-3786](https://linear.app/qualia-studios/issue/QUA-3786)).
759
814
  Run a fresh check after membership changes.
760
815
 
816
+ A merged dataset has one time sync, a clock and an alignment per channel, that every upload it
817
+ holds is processed to. Check it, apply it, and follow it the same way:
818
+
819
+ ```sh
820
+ qualia dataset sync-precheck <merged-dataset> --file ingest.toml
821
+ qualia dataset sync-apply <merged-dataset> --file ingest.toml --revision <revision>
822
+ qualia dataset sync-apply <merged-dataset> --file ingest.toml --revision <revision> --member <upload> # try one again
823
+ qualia dataset sync-status <merged-dataset>
824
+ ```
825
+
826
+ The file is a patch (`schema = 1`, a `[clock]` and `[channels.<topic>]` `align` entries). Each
827
+ upload keeps its other settings, such as its camera offsets and rig. The output shows how many of
828
+ the uploads hold the time sync, how many are running, waiting and blocked, and a row with the
829
+ reason for each upload that does not hold it. LeRobot uploads have no time sync and are listed
830
+ apart. A merged dataset's time sync cannot change its uploads' frame rate yet, so an upload it
831
+ would give another rate is blocked. Apply stores the time sync and returns; the server then
832
+ re-processes the uploads a few at a time, each taking minutes. To try an upload again, run
833
+ `sync-apply` with the time sync `sync-status` prints and `--member <upload>`.
834
+
761
835
  ### Robots and their grippers
762
836
 
763
837
  `qualia robot` registers robots, imports their URDFs and gives a robot a gripper of
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "qualia-cli"
3
- version = "0.3.0rc15"
3
+ version = "0.3.0rc17"
4
4
  description = "CLI for Qualia robot data curation: upload, curate, version and export datasets"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -56,7 +56,10 @@ dependencies = [
56
56
  # rc14 adds `client.preparation.wait()`, which `dataset preparation --wait` calls.
57
57
  # rc15 downloads `original` over qualia.v1 and tells of the older route first,
58
58
  # which `dataset download --format original` relies on.
59
- "qualia-sdk>=0.8.0rc15",
59
+ # rc16 words the refusals of `dataset upload --rig` for any rig, an arm rig
60
+ # as much as a UMI rig.
61
+ # rc17 adds `datasets.update(rig=)`, which `dataset update --rig` calls.
62
+ "qualia-sdk>=0.8.0rc17",
60
63
  "typer>=0.15.0",
61
64
  "rich>=13.0.0",
62
65
  # Task definitions are authored as YAML files (`qualia task create/edit`).
@@ -7,7 +7,7 @@ verifies:
7
7
  - sdk:contract
8
8
  summary: The end-user Typer CLI wrapping the Qualia SDK.
9
9
  owners: SDK / DX
10
- updated: 2026-11-04
10
+ updated: 2026-11-10
11
11
  ---
12
12
 
13
13
  `dataset pin DATASET TAG` and `dataset version create DATASET TAG` use the SDK's
@@ -75,7 +75,10 @@ and QUA-4342 land, and stderr says so, also under `--json`, where `older_route`
75
75
  over 4.995 GiB, an upload that derived no episodes, a sent file with no recorded SHA-256, or a failed original build); the default folder is `./<slug>-<tag>`, plus `-v21`,
76
76
  `-mcap`, `-pi` or `-dreamlabs` (`./<slug>-original` for `original`); a spinner then a byte bar run on stderr unless `--json`; it ends with
77
77
  `Saved <version> as <format> to <dir> (<n> files, <size>)`; all rules and error wording live in
78
- `client.data.download`), read, compare,
78
+ `client.data.download`; `--labels`, with a LeRobot format only (a usage error otherwise), also writes
79
+ `meta/qualia/labels.jsonl` and `meta/qualia/export.json`, what Qualia knows about each exported episode,
80
+ prints their counts and adds a `labels` object (the two paths, `labels_as_of`, `counts`) to `--json`),
81
+ read, compare,
79
82
  tag and annotate versions and read a version's curation record (`dataset version …`), compose
80
83
  mixtures (`qualia mixture …`), list models/instances and a model type's camera slots (`model slots`), poll job status and print
81
84
  or follow a job's log lines (`job logs --follow`), launch any launchable pipeline template
@@ -98,7 +101,7 @@ robot, give it a gripper of its own, line that gripper up, set its jaw, TCP and
98
101
  `tcp_calibration.json`, delete); a URDF is PUT to a signed storage URL without the API key. A robot
99
102
  owns its gripper: attaching copies it and a robot that carries one never swaps it. Pairs that do one
100
103
  action stay both: `robot show`/`get`, `rename`/`update`, `gripper tcp`/`gripper tcp`, `dataset poses
101
- --at`/`resolve-poses`. A handheld (UMI) dataset is set up from a terminal: `dataset poses` shows where an upload's poses are and moves them (`--at tcp|root`, `--wait`, `--follow`), `dataset setup` picks the robot and placement (a dataset follows its robot's solver; `--solver` and `dataset update --reach-solver` are hidden and refuse, QUA-3742) and, after a robot pick, starts the resolve at the TCP only when every arm of the robot has a TCP, and `check reach-status` and `check reach-cancel` follow and stop Run solver, which only `dataset setup --run-solver` or `check run --check reach` presses (QUA-3760). Robots are kept from a terminal too (QUA-3759): `robot list|show|create|rename|delete|copy|import|model` and `robot gripper attach|detach|mount|jaw|tcp|calibration` and `gripper umi-rig` (a UMI rig made from a gripper template; the workspace has the rigs someone made and `dataset upload --rig` names one, QUA-4121) call `client.robots`, where a robot owns its gripper (attaching copies it, a robot that carries one never swaps it, `robot copy` makes a copy to try another) and the gripper commands take the robot that carries the gripper. `qualia member` and `qualia invitation` read and
104
+ --at`/`resolve-poses`. A handheld (UMI) dataset is set up from a terminal: `dataset poses` shows where an upload's poses are and moves them (`--at tcp|root`, `--wait`, `--follow`), `dataset setup` picks the robot and placement (a dataset follows its robot's solver; `--solver` and `dataset update --reach-solver` are hidden and refuse, QUA-3742) and, after a robot pick, starts the resolve at the TCP only when every arm of the robot has a TCP, and `check reach-status` and `check reach-cancel` follow and stop Run solver, which only `dataset setup --run-solver` or `check run --check reach` presses (QUA-3760). Robots are kept from a terminal too (QUA-3759): `robot list|show|create|rename|delete|copy|import|model` and `robot gripper attach|detach|mount|jaw|tcp|calibration` and `gripper umi-rig` (a UMI rig made from a gripper template; the workspace has the rigs someone made; `dataset upload --rig` names the rig the data was recorded on, any rig of the workspace (an arm rig, a UMI rig or another capture rig), QUA-4121, QUA-4129) call `client.robots`, where a robot owns its gripper (attaching copies it, a robot that carries one never swaps it, `robot copy` makes a copy to try another) and the gripper commands take the robot that carries the gripper. `qualia member` and `qualia invitation` read and
102
105
  change a workspace's people, roles and invitations (`/v1/members`, `/v1/invitations`, the opt-in
103
106
  `members:read`/`members:write` scopes). `qualia integration list|add|remove|default` manages the
104
107
  organization's Hugging Face tokens (`/v1/integrations`, the opt-in `integrations:write` scope,
@@ -122,7 +125,12 @@ plain line per run, as `dataset episodes` and `status list` do, so the name is w
122
125
  the runs of another account's check (`--check accounts/<other>/checks/<check>`) print in full,
123
126
  since the short form would be read under the client's account. The tables that stay boxed keep a
124
127
  column the next command takes on one line (`print_table(whole=...)`: the check ids of
125
- `dataset checks list`).
128
+ `dataset checks list`). A heuristic check lists only its failures, so
129
+ `dataset checks findings --verdict PASS` that lists nothing where heuristic checks were asked (`-`
130
+ or a `heuristic.` id, and no VLM run) says so in one line on stderr, with the passes their last
131
+ completed runs counted, from one `checks.list` read on that path only, and with where each check's
132
+ are (`lastResult.passCount` in `dataset checks list --json`; its table prints no passes); stdout is
133
+ as it was.
126
134
 
127
135
  Dataset settings and source actions go through qualia.v1 `Datasets`, so every key that can read the
128
136
  dataset reaches them: `dataset get`, `update` (name, description, target robot, reach settings),
@@ -1,3 +1,3 @@
1
1
  """Qualia CLI for robotics data and VLA workflows."""
2
2
 
3
- __version__ = "0.3.0rc15"
3
+ __version__ = "0.3.0rc17"
@@ -36,6 +36,17 @@ def _resolved(ctx: typer.Context, value: Any) -> Any:
36
36
 
37
37
 
38
38
  _DATASET = typer.Argument(help=DATASET_HELP, callback=_resolved)
39
+ _POLICY_PARENT = typer.Argument(
40
+ help=f"{DATASET_HELP}; with --workspace or --org, the workspace's or "
41
+ "organization's id or full name"
42
+ )
43
+
44
+
45
+ def _policy_parent(ctx: typer.Context, parent: str, workspace: bool, org: bool) -> str:
46
+ """A policy's parent as the SDK takes it: a dataset resolved as every
47
+ command resolves one, so a slug or a short id works too; a workspace or an
48
+ organization as it was given."""
49
+ return parent if workspace or org else _resolved(ctx, parent)
39
50
 
40
51
 
41
52
  def _run(ctx: typer.Context, value: Any) -> Any:
@@ -251,9 +262,8 @@ def _print_started(started: Any, *, err: bool = False) -> None:
251
262
 
252
263
  @app.command("policy")
253
264
  def policy(
254
- parent: str = typer.Argument(
255
- help="Dataset, workspace or organization ID (or resource name)"
256
- ),
265
+ ctx: typer.Context,
266
+ parent: str = _POLICY_PARENT,
257
267
  workspace: bool = typer.Option(
258
268
  False, "--workspace", help="Read a workspace default"
259
269
  ),
@@ -262,7 +272,7 @@ def policy(
262
272
  ) -> None:
263
273
  """Show automatic heuristic and graph policy, with effective sources."""
264
274
  p = _method("automatic_policy", "Automatic check policy")(
265
- parent, workspace=workspace, org=org
275
+ _policy_parent(ctx, parent, workspace, org), workspace=workspace, org=org
266
276
  )
267
277
  if json:
268
278
  print_json(p.to_wire())
@@ -275,9 +285,8 @@ def policy(
275
285
 
276
286
  @app.command("policy-set")
277
287
  def policy_set(
278
- parent: str = typer.Argument(
279
- help="Dataset, workspace or organization ID (or resource name)"
280
- ),
288
+ ctx: typer.Context,
289
+ parent: str = _POLICY_PARENT,
281
290
  workspace: bool = typer.Option(
282
291
  False, "--workspace", help="Change a workspace default"
283
292
  ),
@@ -294,7 +303,7 @@ def policy_set(
294
303
  raise typer.BadParameter("set --heuristic or --graph to on, off or inherit")
295
304
  reset = tuple(half for half, value in values.items() if value == "inherit")
296
305
  p = _method("set_automatic_policy", "Automatic check policy")(
297
- parent,
306
+ _policy_parent(ctx, parent, workspace, org),
298
307
  workspace=workspace,
299
308
  org=org,
300
309
  heuristic=None if heuristic in (None, "inherit") else heuristic == "on",
@@ -1003,6 +1012,55 @@ def catalog_run(
1003
1012
  raise SystemExit(1)
1004
1013
 
1005
1014
 
1015
+ def _heuristic_passes_note(
1016
+ dataset: str, check: str, check_run: str | None, episode: str | None
1017
+ ) -> None:
1018
+ """Called when `findings --verdict PASS` listed nothing. Where the request
1019
+ reached heuristic checks, say on stderr that they list failures only, with
1020
+ the passes their last completed runs counted: one read of the dataset's
1021
+ checks, on this path only. Nothing for a VLM check or run, whose passes
1022
+ are listed, or when no heuristic check asked for has a result. No count
1023
+ when --run or --episode narrowed the request: the counts are a whole
1024
+ run's, and the newest one's."""
1025
+ if check != "-" and not check.startswith("heuristic."):
1026
+ return
1027
+ if check_run is not None and "/checks/heuristic/runs/" not in check_run:
1028
+ return
1029
+ said = "Heuristic checks list failures only"
1030
+ # The list's table prints issues, notes and episodes, never the passes.
1031
+ hint = (
1032
+ f"`qualia dataset checks list {shlex.quote(dataset)} --json` has each "
1033
+ "check's `lastResult.passCount`."
1034
+ )
1035
+ try:
1036
+ last = [
1037
+ c.last_result
1038
+ for c in _checks().list(dataset, limit=1000).items
1039
+ if _value(c.kind) == "HEURISTIC"
1040
+ and c.last_result is not None
1041
+ and check in ("-", c.check_id)
1042
+ ]
1043
+ passes = sum(result.pass_count for result in last)
1044
+ except Exception: # noqa: BLE001
1045
+ # An SDK without client.checks.list, or a read that failed: no count,
1046
+ # and under `-` nothing says a heuristic check ran here.
1047
+ if check != "-":
1048
+ typer.echo(f"{said}. {hint}", err=True)
1049
+ return
1050
+ if not last:
1051
+ return
1052
+ if check_run is not None or episode is not None:
1053
+ typer.echo(f"{said}. {hint}", err=True)
1054
+ return
1055
+ counted = f"{passes} pass{'' if passes == 1 else 'es'}"
1056
+ where = (
1057
+ f"{counted} in their last completed runs"
1058
+ if check == "-"
1059
+ else f"{check} had {counted} in its last completed run"
1060
+ )
1061
+ typer.echo(f"{said}: {where}. {hint}", err=True)
1062
+
1063
+
1006
1064
  @catalog_app.command("findings")
1007
1065
  def catalog_findings(
1008
1066
  dataset: str = _DATASET,
@@ -1017,7 +1075,11 @@ def catalog_findings(
1017
1075
  callback=_run,
1018
1076
  ),
1019
1077
  episode: str = typer.Option(None, "--episode", "-e", help="Only this episode"),
1020
- verdict: str = typer.Option(None, "--verdict", help="PASS, FAIL or UNKNOWN"),
1078
+ verdict: str = typer.Option(
1079
+ None,
1080
+ "--verdict",
1081
+ help="PASS, FAIL or UNKNOWN; a heuristic check lists only its failures",
1082
+ ),
1021
1083
  all_revisions: bool = typer.Option(
1022
1084
  False,
1023
1085
  "--all-revisions",
@@ -1031,6 +1093,10 @@ def catalog_findings(
1031
1093
 
1032
1094
  Only the findings that stand: per check and episode, the newest run's at
1033
1095
  the episode's linked Task revision. --all-revisions lists every run's.
1096
+
1097
+ A heuristic check lists only its failures: where it assessed an episode
1098
+ and lists no finding, the episode passed. `qualia dataset checks list`
1099
+ says how many episodes each check assessed, and why the rest were not.
1034
1100
  """
1035
1101
  # Asked for only when set, so an older SDK still lists the default.
1036
1102
  revisions = {"all_revisions": True} if all_revisions else {}
@@ -1045,8 +1111,12 @@ def catalog_findings(
1045
1111
  cursor=cursor,
1046
1112
  **revisions,
1047
1113
  )
1114
+ # An empty answer to "which passed": heuristic checks keep no pass to list.
1115
+ no_passes = not page.items and cursor is None and (verdict or "").upper() == "PASS"
1048
1116
  if json:
1049
1117
  _page_json(page, "checkFindings")
1118
+ if no_passes:
1119
+ _heuristic_passes_note(dataset, check, check_run, episode)
1050
1120
  return
1051
1121
  rows = [
1052
1122
  {
@@ -1071,3 +1141,5 @@ def catalog_findings(
1071
1141
  ],
1072
1142
  )
1073
1143
  _next(page)
1144
+ if no_passes:
1145
+ _heuristic_passes_note(dataset, check, check_run, episode)