mostlyright-data 0.31.27__tar.gz → 0.31.28__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 (131) hide show
  1. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/PKG-INFO +1 -1
  2. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/SKILL.md +27 -5
  3. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/3-probe-read-a-source-before-committing-to-it.md +9 -4
  4. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/9-present-only-what-survived-inspection-with-caveats.md +4 -0
  5. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/commands.md +1 -1
  6. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/preparing-table-search.md +3 -1
  7. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/promote.md +3 -1
  8. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/__init__.py +21 -2
  9. mostlyright_data-0.31.28/src/mostlyright/data_harness/thin/delivery.py +1015 -0
  10. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/enrichment.py +3 -3
  11. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/recipe.py +0 -1
  12. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/recipe_forecast.py +97 -4
  13. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/recipe_test.py +1 -1
  14. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_datasets.py +48 -2
  15. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_query.py +23 -7
  16. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_runs.py +4 -2
  17. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_tables.py +3 -4
  18. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/render.py +12 -1
  19. mostlyright_data-0.31.27/src/mostlyright/data_harness/thin/delivery.py +0 -459
  20. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/.gitignore +0 -0
  21. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/README.md +0 -0
  22. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/pyproject.toml +0 -0
  23. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/scripts/hatch_build.py +0 -0
  24. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/agents/openai.yaml +0 -0
  25. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/1-open-the-page-and-the-link-to-it-in-the-first-message.md +0 -0
  26. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/2-brief-two-to-four-questions-each-with-a-recommended-answer.md +0 -0
  27. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/4-decide-say-what-you-chose-what-you-refused-and-ask-one-question.md +0 -0
  28. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/5-draft-one-recipe-document-one-call.md +0 -0
  29. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/6-build-one-run-sized-to-acquire-every-measured-source-whole.md +0 -0
  30. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/7-interrogate-ask-the-run-what-it-actually-delivered.md +0 -0
  31. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/8-fix-revise-the-document-and-register-it-again.md +0 -0
  32. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/agent-protocol.md +0 -0
  33. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/autonomous-delivery.md +0 -0
  34. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/before-the-first-tool-call.md +0 -0
  35. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/boundaries.md +0 -0
  36. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/cloud-authentication-preflight.md +0 -0
  37. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/enriching-with-small-models.md +0 -0
  38. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/live-run.md +0 -0
  39. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/making-a-table-incremental.md +0 -0
  40. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/narrating-the-run.md +0 -0
  41. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/not-hosted-yet.md +0 -0
  42. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/one-install.md +0 -0
  43. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/patterns.md +0 -0
  44. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/prediction-labels.md +0 -0
  45. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/readers.md +0 -0
  46. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/receipts.md +0 -0
  47. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/recipe-test.md +0 -0
  48. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/recording-a-stream-venue.md +0 -0
  49. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/recovering-an-import-failure.md +0 -0
  50. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/reference-pages.md +0 -0
  51. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/required-protocol.md +0 -0
  52. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/satellite-signals.md +0 -0
  53. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/source-credentials.md +0 -0
  54. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/sources.md +0 -0
  55. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/the-one-thing-to-say-about-the-skill-itself.md +0 -0
  56. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/transforms.md +0 -0
  57. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/user-communication-contract.md +0 -0
  58. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/references/writing-a-decision-record.md +0 -0
  59. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/skills/mr-data-build/scripts/write_research_notebook.py +0 -0
  60. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/__init__.py +0 -0
  61. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/agent_protocol.py +0 -0
  62. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/canonical.py +0 -0
  63. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/key_seam.py +0 -0
  64. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/page_coverage.py +0 -0
  65. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/part_check_evidence.py +0 -0
  66. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/session_probes.py +0 -0
  67. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/skill_assets.py +0 -0
  68. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/table_manifest.py +0 -0
  69. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/activity.py +0 -0
  70. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/backoff.py +0 -0
  71. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/categories.py +0 -0
  72. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/dataset-categories-v1.json +0 -0
  73. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/dataset_layout.py +0 -0
  74. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/description_shape.py +0 -0
  75. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/download.py +0 -0
  76. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/fast_features.py +0 -0
  77. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/matching_benchmark.py +0 -0
  78. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/probe.py +0 -0
  79. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/progress_rate.py +0 -0
  80. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/progress_vocabulary.py +0 -0
  81. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/recipe_brief.py +0 -0
  82. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/recipe_explain.py +0 -0
  83. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/recipe_lint.py +0 -0
  84. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/refresh_rehearsal.py +0 -0
  85. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/release_check.py +0 -0
  86. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/research.py +0 -0
  87. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/router.py +0 -0
  88. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/run_diagnose.py +0 -0
  89. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/run_prefix.py +0 -0
  90. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/runs.py +0 -0
  91. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/session.py +0 -0
  92. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/stream.py +0 -0
  93. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/stream_venue.py +0 -0
  94. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/studio_capabilities.py +0 -0
  95. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/support.py +0 -0
  96. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/table_search_contract.json +0 -0
  97. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/table_view.py +0 -0
  98. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/transport.py +0 -0
  99. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/user_agent.py +0 -0
  100. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4.py +0 -0
  101. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_artifacts.py +0 -0
  102. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_catalog.py +0 -0
  103. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_connected.py +0 -0
  104. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_connections.py +0 -0
  105. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_dataset_covers.py +0 -0
  106. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_handoff.py +0 -0
  107. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_matching.py +0 -0
  108. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_narrative.py +0 -0
  109. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_public.py +0 -0
  110. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_reader.py +0 -0
  111. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_search.py +0 -0
  112. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_search_contract.py +0 -0
  113. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_secrets.py +0 -0
  114. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/v4_stream.py +0 -0
  115. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/thin/vocabulary.py +0 -0
  116. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/__init__.py +0 -0
  117. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/attendance.py +0 -0
  118. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/clarification.py +0 -0
  119. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/cloud_auth.py +0 -0
  120. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/commands/__init__.py +0 -0
  121. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/commands/auth.py +0 -0
  122. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/commands/clarify.py +0 -0
  123. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/commands/login.py +0 -0
  124. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/commands/whoami.py +0 -0
  125. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/credential_native.py +0 -0
  126. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/credential_store.py +0 -0
  127. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/credentials.py +0 -0
  128. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/login.py +0 -0
  129. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/path_kind.py +0 -0
  130. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/plain_file.py +0 -0
  131. {mostlyright_data-0.31.27 → mostlyright_data-0.31.28}/src/mostlyright/data_harness/ux/remediation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mostlyright-data
3
- Version: 0.31.27
3
+ Version: 0.31.28
4
4
  Summary: Mostly Right hosted CLI for reviewed datasets
5
5
  Project-URL: Homepage, https://mostlyright.md/
6
6
  Project-URL: Documentation, https://mostlyright.md/docs/guides/cli/
@@ -22,6 +22,11 @@ each deliverable the brief names. Then list every delivery step: the description
22
22
  shape, the cover, search on the main table, the table view review, the refresh cadence and the
23
23
  enrichment offer. Keep the list current as you work. Each item ends done, or skipped on purpose
24
24
  with the reason written beside it. Do not report the build as done while an item is open.
25
+ The last item is always `mr-data dataset check DATASET_ID`. The build is done only when it exits
26
+ 0 and its last line says `Delivery complete.` (with `--json`, `status` is
27
+ `dataset_delivery_complete`). While it exits 2, the build is not done. When you probed, also run
28
+ `mr-data dataset check SCRATCH_DATASET_ID` on the "Scratch probes" dataset and archive every
29
+ `scratch_table` item it names. That dataset is a test bench, so it owes none of its other items.
25
30
 
26
31
  ## Four gates
27
32
 
@@ -71,14 +76,16 @@ pages. [Readers](references/readers.md) has the Reader pins and the limits of a
71
76
  **Gate 3. Run a bounded test on a scratch table.** Never test on the real table: its first
72
77
  succeeded run goes live, truncated or not. For a public CSV that needs no key, run
73
78
  `mr-data source inspect`. For anything else follow [the probe rule](references/3-probe-read-a-source-before-committing-to-it.md#the-probe-rule-test-on-a-scratch-table-never-on-the-real-table): copy the drafted
74
- recipe under another `table.name`, drop `table.search` from the copy, write small budgets into
79
+ recipe under a `table.name` that starts with `scratch_`, drop `table.search` from the copy, write small budgets into
75
80
  it, and take one bounded run.
76
81
  A sample's `--max-rows` cuts rows after the fetch. It does not shorten a collection walk, so the
77
82
  scratch recipe states a small `pages.max_fetches_per_run`. A per-row request collection also
78
83
  states `pages.stop_at_budget: true`, or it fails at that budget. A source whose provider bills
79
84
  per call spends real calls on the test, and the real table cannot reuse them. Forecast it and get
80
- the user's decision before the test. Retire the scratch table with `mr-data demote TABLE_ID` and
81
- then `mr-data table archive TABLE_ID --confirm DELETE`.
85
+ the user's decision before the test. Retire the scratch table as soon as its test is read, with
86
+ `mr-data demote TABLE_ID` and then `mr-data table archive TABLE_ID --confirm DELETE`. Never
87
+ `promote` a scratch table: it is already live, and promote only arms a refresh schedule for it.
88
+ `mr-data dataset check` names every scratch table still listed.
82
89
 
83
90
  **Gate 4. Forecast, then one full run.** Run
84
91
  `mr-data recipe forecast RECIPE_ID --digest DIGEST --json`. Exit 3 means resize before you run.
@@ -303,13 +310,28 @@ chat, and pass on its answer.
303
310
  saved view, a refresh cadence when none is recorded, and always the enrichment offer.
304
311
  Complete every step before you report the build as done. The server marks no main table, so you
305
312
  judge it: skip the search and view steps for a supporting table and say so in one line. A
306
- scratch table you test and demote owes none of these steps.
313
+ scratch table you test, demote and archive owes none of these steps. The block also names every
314
+ scratch table still listed, and it ends by naming `mr-data dataset check DATASET_ID`.
315
+ When every step is finished, run `mr-data dataset check DATASET_ID`. It reads the whole
316
+ dataset once and lists what is still open: the cover, the description shape, the catalogue
317
+ topics (a licence is never required), each real table still unbuilt, queued, building, held
318
+ or live on a build cut short, search on the main table, a saved view, each live table's cadence, every
319
+ failing refresh and every scratch table still listed. When the layout names a
320
+ `search_table_id` or `default_table_id`, search or the view must be on that table. A note
321
+ headed `No search: REASON` closes the search item when no table should carry search. A
322
+ table that rebuilds when its upstream promotes, or that a stream fills, owes no cadence. It exits 2 and ends
323
+ `Delivery open: N items.` while anything is open. Fix each item and run it again. Done means it
324
+ exits 0 and ends `Delivery complete.`, or with `--json` reports `status`
325
+ `dataset_delivery_complete`. It cannot see the enrichment offer, so make that offer
326
+ yourself.
307
327
  Review the view with `mr-data table view TABLE_ID --json`. It lists the view kinds this
308
328
  deployment offers and the roles each one binds. Choose from the columns and a bounded sample,
309
329
  check the choice with `--set VIEW.json --dry-run`, then save it. The plain table is fine when
310
330
  it reads best, but save it as a deliberate choice.
311
331
  Record the cadence under step 9's readiness rule. A fixed snapshot has no cadence to record:
312
- write that decision as a dataset note and skip the step, saying so in one line.
332
+ write that decision as a dataset note and skip the step, saying so in one line. A note that
333
+ names tables, each in backticks, covers only those, so a refreshing dataset can record its
334
+ static archive or lookup tables without claiming the whole dataset is a snapshot.
313
335
  Offering enrichment is mandatory. Accepting it is the person's choice, and a no is a complete
314
336
  answer.
315
337
  9. Any truncated source means a preview, not the requested complete dataset. Inspect coverage
@@ -142,8 +142,8 @@ table on the dataset page. This stage starts no full build of the real table. St
142
142
  that one build. The test needs a drafted recipe, so run it once stage 5 has a draft and before
143
143
  stage 6.
144
144
 
145
- 1. Copy the recipe document. Give the copy its own `table.name` and a scratch dataset's
146
- `dataset.id`. Never register a probe in the user's dataset, because the dataset page lists
145
+ 1. Copy the recipe document. Give the copy its own `table.name`, starting with `scratch_`, and a
146
+ scratch dataset's `dataset.id`. Never register a probe in the user's dataset, because the dataset page lists
147
147
  every table registered in it. The build itself keeps the user's dataset. Reuse the workspace's
148
148
  scratch dataset when `mr-data dataset list --json` names one. Otherwise create it with
149
149
  `mr-data dataset create --name "Scratch probes" --separate --json`. The scratch dataset is the
@@ -157,8 +157,13 @@ stage 6.
157
157
  their go-ahead to build. It returns a recipe id, a digest and a table id of
158
158
  its own.
159
159
  4. Take one bounded run and read it back.
160
- 5. Retire the scratch table. A scratch table goes live too, so withdraw it first. Keep the
161
- scratch dataset for the next probe.
160
+ 5. Retire the scratch table as soon as its test is read. A scratch table goes live too, so
161
+ demote it first, then archive it. Never promote a scratch table: promote does not make it a
162
+ test, it arms a refresh schedule for it. Keep the scratch dataset for the next probe.
163
+ `mr-data dataset check SCRATCH_DATASET_ID` names every `scratch_` table still listed on the
164
+ scratch dataset; the check of the user's dataset never sees them. Before you report the build
165
+ as done, run it and archive each `scratch_table` item. The scratch dataset owes none of the
166
+ other items it lists.
162
167
 
163
168
  ```sh
164
169
  mr-data run --recipe SCRATCH_RECIPE_ID --digest SCRATCH_DIGEST --sample --max-rows 2000 --json
@@ -1,5 +1,9 @@
1
1
  ### 9. Present — only what survived inspection, with caveats
2
2
 
3
+ **Run `mr-data dataset check DATASET_ID` before you present anything.** The build is done only
4
+ when it exits 0 and ends `Delivery complete.` (with `--json`, `status` is
5
+ `dataset_delivery_complete`). While it exits 2, finish each item it names first.
6
+
3
7
  Report what you inspected, and nothing you did not. Nothing else checks this run: `verified` is
4
8
  what you established by reading it, not a word another worker said. Report how many rows you
5
9
  inspected and how you selected them, what the declared checks reported, and whether `coverage.truncated` was true anywhere. Include the source evidence and
@@ -22,7 +22,7 @@ run in full.
22
22
  | `mr-data public` | Read Mostly Right's public dataset catalogue. `public search "QUERY"` ranks published datasets (`--topic`, `--limit` and `--cursor` narrow and page it), `show SLUG` reads one overview, `tables SLUG` lists its table identifiers, `schema TABLE_ID` reads one table's schema, `sample TABLE_ID` prints its published preview rows, `lookup "QUERY"` is the connector search shape and `fetch SLUG` returns the dataset's Markdown document. Those seven need no login. `query TABLE_ID`, with `--body` or `--body-file`, and `download-url TABLE_ID` do need `mr-data login`: they ask Cloud, with the device key, to run one query over a public table and to say how it can be downloaded. Preview rows are not a query, and no table bytes pass through the command. |
23
23
  | `mr-data connected` | `connected list` shows the public datasets connected to this workspace and `connected add SLUG` connects one by its slug. It needs `mr-data login`: both ask Cloud, with the device key, over the routes MCP's `list_connected_datasets` and `connect_dataset` use. |
24
24
  | `mr-data ask` | `ask "QUESTION" [--run RUN_ID ...] [--failure-code CODE]` asks the Mostly Right support agent one question and waits for the answer; `--no-wait` prints the question id at once and `ask status QUESTION_ID` reads it later. It needs `mr-data login` and a workspace the agent is switched on for: while it is off the answer is `THIN_CLOUD_SUPPORT_AGENT_DISABLED`, which is final. The agent may file a problem for the Mostly Right team and prints its reference (`SR-N`). |
25
- | `mr-data dataset` | Bring the dataset page into existence before there is anything on it, then fill it in while somebody watches. `dataset create --name TEXT` mints it and prints the `dataset_id`, unless the user's own request already has an empty dataset open, in which case it answers `open_request_reused` with that `dataset_id` and mints nothing (`--separate` mints a new one for a different dataset); `dataset show ID` reads it back; `dataset set ID --name TEXT --topics "a,b,c" --license ID --description-file F` writes the title, the descriptive tags, the SPDX licence and the description under the version it was read at, retrying once if somebody else wrote first, and an empty `--topics` or `--license` takes that value off the page; send `--name` and `--topics` whenever you send `--description-file`, because a description sent on its own can make the server write a new title and new tags, and read `changed` and `written_by_studio` on the receipt for every field the write moved; a saved write whose public sync fails exits 2 and reports `public_projection_synced: false` — use `dataset sync ID` to retry that sync without writing the dataset again; `dataset note ID --heading H --blocks-file B` writes one cell of the decision record that OUTLIVES every run, and `--list` reads it back; `dataset watch ID` follows the page's own event stream; `dataset activity ID --phase P --message TEXT` says what is happening right now, silently, and is never a chat message and never a cell; `dataset publish ID [--mode public|link|private]` says who can read the dataset — `public` lists it in the public directory and serves it at an address anybody can read, `link` serves it at an unlisted address, `private` takes it back to the workspace — and `dataset publish ID --show` reads that back without changing it; `dataset layout ID` reads the dataset's layout from Cloud: its sections, `default_table_id` (the table the Data tab opens on), `search_table_id` (the table the dataset's search runs on), the main-table choice and the dataset's tables; `dataset layout ID --set LAYOUT.json` saves `{"version": 1, "default_table_id", "search_table_id", "sections": [{"id", "title", "collapsed", "tables": [{"table_id", "title", "description"}]}]}`, `--dry-run` has Cloud check it and save nothing, replacing a saved layout needs its revision as `--expected-revision`, and a first layout takes `--expected-main-table TABLE_ID|none`, the main-table choice the read printed; a stale one is refused `THIN_DATASET_LAYOUT_LAYOUT_CHANGED`, and it uses the device key; `dataset archive ID --confirm-name TITLE` retires the page and frees its title, deleting nothing. |
25
+ | `mr-data dataset` | Bring the dataset page into existence before there is anything on it, then fill it in while somebody watches. `dataset create --name TEXT` mints it and prints the `dataset_id`, unless the user's own request already has an empty dataset open, in which case it answers `open_request_reused` with that `dataset_id` and mints nothing (`--separate` mints a new one for a different dataset); `dataset show ID` reads it back; `dataset check ID` lists every delivery step the whole dataset still owes (cover, description shape, topics (never a licence), a real table that is unbuilt, queued, building, held or live on a build cut short, search and a saved view on the main table (the layout's `search_table_id` and `default_table_id` when it names them), cadence, failing refreshes, every `scratch_` table still listed), exits 2 and ends `Delivery open: N items.` while any is open, and exits 0 with `Delivery complete.` when none is (with `--json`, `status` is `dataset_delivery_open` or `dataset_delivery_complete`); `dataset set ID --name TEXT --topics "a,b,c" --license ID --description-file F` writes the title, the descriptive tags, the SPDX licence and the description under the version it was read at, retrying once if somebody else wrote first, and an empty `--topics` or `--license` takes that value off the page; send `--name` and `--topics` whenever you send `--description-file`, because a description sent on its own can make the server write a new title and new tags, and read `changed` and `written_by_studio` on the receipt for every field the write moved; a saved write whose public sync fails exits 2 and reports `public_projection_synced: false` — use `dataset sync ID` to retry that sync without writing the dataset again; `dataset note ID --heading H --blocks-file B` writes one cell of the decision record that OUTLIVES every run, and `--list` reads it back; `dataset watch ID` follows the page's own event stream; `dataset activity ID --phase P --message TEXT` says what is happening right now, silently, and is never a chat message and never a cell; `dataset publish ID [--mode public|link|private]` says who can read the dataset — `public` lists it in the public directory and serves it at an address anybody can read, `link` serves it at an unlisted address, `private` takes it back to the workspace — and `dataset publish ID --show` reads that back without changing it; `dataset layout ID` reads the dataset's layout from Cloud: its sections, `default_table_id` (the table the Data tab opens on), `search_table_id` (the table the dataset's search runs on), the main-table choice and the dataset's tables; `dataset layout ID --set LAYOUT.json` saves `{"version": 1, "default_table_id", "search_table_id", "sections": [{"id", "title", "collapsed", "tables": [{"table_id", "title", "description"}]}]}`, `--dry-run` has Cloud check it and save nothing, replacing a saved layout needs its revision as `--expected-revision`, and a first layout takes `--expected-main-table TABLE_ID|none`, the main-table choice the read printed; a stale one is refused `THIN_DATASET_LAYOUT_LAYOUT_CHANGED`, and it uses the device key; `dataset archive ID --confirm-name TITLE` retires the page and frees its title, deleting nothing. |
26
26
  | `mr-data recipe` | Register one recipe document (dataset, question, table plan, sources, transform, checks and units) in one call, and print the identifiers the server derived. The document is read first and every fault comes back in one refusal, each with the JSON pointer that names it. `--no-lint` sends it as written instead. A recipe that misses a feature that sets how fast a run fetches (a stated `pages.concurrency` under 64, a per-row request open to `batch`, a page walk open to `pagination.parallel`, or a Parquet file open to a ranged read) is refused `THIN_RECIPE_SLOW`, with each feature's pointer and fix, before anything is sent. Apply the fixes, or pass `--accept-slow "REASON"` with one sentence on why the slow path is right for this source. The receipt prints the reason and the features it covered. Registration refuses `THIN_BRIEF_MISSING` when the dataset's record carries no answered question and no delegation, and `THIN_RECIPE_DATASET_UNBOUND` when the document names no `dataset.id`. `--delegated "their words"` writes the delegation onto the dataset and registers in the same command, and clears the first of those two and never the second. `mr-data recipe show ID` reads one back. `mr-data recipe explain FILE` (or a recipe identifier) lists every reason its table can or cannot refresh, each with a rule code and the server's suggested repair, and exits 2 when one blocks it. `mr-data recipe forecast RECIPE_ID` says what one run would ask of each source before it runs, and exits 3 when the run would overrun today's platform quota or one attempt. `--digest` is optional there, and without it the digest the recipe was registered with is forecast. `mr-data recipe readiness --table TABLE_ID --current-only` reads the revision one table runs now. The explanation's `fast_features` names each fast feature the recipe uses or misses, with a one-line fix. [Making a table incremental](making-a-table-incremental.md#the-loop-explain-forecast-run-diagnose) says when to use each. |
27
27
  | `mr-data cover` | Generate and attach one branded 1200×630 dataset cover. Give it the dataset ID and what the image should depict; the server fixes the model, single-color style, curated random palette, dimensions and storage. |
28
28
  | `mr-data run` | Start one run against a registered recipe, named as `--recipe RECIPE_ID`, with `--digest RECIPE_DIGEST` when you want the run to assert which bytes it means. Neither is positional. The digest is the bare hex the registration receipt printed. Left out, the run reads it back from the registered recipe, which is the same value, because a recipe identifier names one revision. A full of a recipe that misses a fetch-speed feature is refused `THIN_RECIPE_SLOW`, as registration is, unless `--accept-slow "REASON"` is passed. Other modes print the missed features and are not refused. The mode is one of six: `sample`, `full`, `refresh`, `backfill`, `compact` and `replay`. Four have a shorthand flag (`--sample`, `--full`, `--refresh`, `--backfill`) and two do not, so write `--mode MODE`, which is accepted for every one of them. A refresh executes only the server's persisted source-action plan, and a plan shape it does not refresh returns `RESYNC_REQUIRED` before acquisition. [Which plans refresh](making-a-table-incremental.md#which-plans-refresh) lists them, and `mr-data recipe explain` says which one a table is. Use `mr-data table resync TABLE_ID --request-id UUID` for an explicit full source reread, retaining that UUID if the response is uncertain. `--backfill` states the exact window with `--window START END`. `--mode replay --sources-from RUN_ID` asks the server to run the registered revision against the RETAINED RAW INPUTS of one named successful run of the same table: nothing is fetched from this computer, nothing is acquired again, the result is compared against that run and never becomes the live version, and it neither asks for nor records an approval. Where the server has replay switched off, or the named run is not successful, not the same table, or no longer retains its inputs, it answers a typed refusal. Report the code rather than retrying in another mode. `--sources-from` on any other mode is refused `THIN_ARGUMENT_INVALID` before anything is sent. `--max-rows` and `--max-source-bytes` bound ONE SOURCE rather than the finished table. `--max-rows` cuts rows after a source is fetched and decoded, so it does not shorten a collection walk. A sample with no clamp is refused: `CLAMPS_REQUIRED` from the server, and `THIN_REQUEST_INVALID` from this client first. A table's first succeeded run goes live, truncated or not, so test on a scratch table as [the probe rule](3-probe-read-a-source-before-committing-to-it.md#the-probe-rule-test-on-a-scratch-table-never-on-the-real-table) says. A large run is held for a size confirmation (not a charge), which `--confirm` settles and whose printed `confirm_command` re-states every argument the request carried. `--approve-full RUN_ID` releases the full an existing legacy sample-first pair is holding once its preview has succeeded, naming either half of the pair. Where the deployment still wants a person at a browser it answers `THIN_INTERACTIVE_HUMAN_REQUIRED` and names the run page. `--retry RUN_ID` resumes a failed or cancelled progressive full from the pages it saved (`resume_capture_run_id` and the ceilings it carried; `retry_of_run_id` as well only when the server admits a named retry). A failure that says the recipe must change is refused before anything is posted. Any other failed run is tried again when its triple carries `room_fault: true`, re-stating that run's own coordinate and ceilings and naming the failed run so the server starts a new attempt, and is refused with the triple and the next step the server's recovery category names when it is not. `room_fault` is the server's `recovery.room_fault` where the server states one. A source that kept refusing (`SOURCE_RATE_LIMITED`, `SOURCE_HTTP_5XX`, `SOURCE_PROXY_BUSY`) is sent anyway: the server admits it 120 seconds after the failure and refuses `RUN_RETRY_TOO_SOON` with a Retry-After before then, so wait that long and run `--retry` again. `--cancel RUN` stops one. |
@@ -64,7 +64,9 @@ table that serves the dataset's search over long text needs it, and the main tab
64
64
  full run's `delivery` block names the search step whenever the run's table has no search, a
65
65
  search whose build failed included. The server marks no main table, so you judge which one it is.
66
66
  Skip the step for a supporting table, while the capability is missing, or when the table has
67
- nothing searchable, and say why in one line.
67
+ nothing searchable, and say why in one line. When no table on the dataset should carry search,
68
+ record why with `mr-data dataset note DATASET_ID --heading "No search: REASON" --markdown-file
69
+ NOTE.md`; that note closes the search item in `mr-data dataset check`.
68
70
 
69
71
  When the brief does not mention search, search is optional only while the capability is missing.
70
72
  Then omit `table.search`, keep the drafted intent beside the recipe, and record the limit in the
@@ -60,7 +60,9 @@ means never. Leave the table unscheduled, confirm `mr-data table TABLE_ID` shows
60
60
  and record the decision and its reason with
61
61
  `mr-data dataset note DATASET_ID --heading "Fixed snapshot: no refresh" --markdown-file NOTE.md`.
62
62
  Then skip the delivery block's cadence step, saying so in one line. The step stays listed, and
63
- the note is the record.
63
+ the note is the record. A note that names tables, each name in backticks (`` `archive_2025` ``),
64
+ covers only those tables; one that names none covers every table on the dataset. A table whose
65
+ recipe declares `refresh.trigger: upstream_promoted`, or that a stream fills, needs no note.
64
66
 
65
67
  This call records a schedule; it is not proof of data continuation. Schedule only a current recipe
66
68
  that `mr-data recipe readiness --table TABLE_ID --current-only --json` reports as refresh-ready, or
@@ -8,10 +8,10 @@ site-packages. That is the whole contract of the package and it is asserted rath
8
8
 
9
9
  from __future__ import annotations
10
10
 
11
- from collections.abc import Sequence
11
+ from collections.abc import Mapping, Sequence
12
12
  from typing import Any
13
13
 
14
- __all__ = ["THIN_SCHEMA_PREFIX", "numbered"]
14
+ __all__ = ["THIN_SCHEMA_PREFIX", "numbered", "priceless"]
15
15
 
16
16
  #: Every payload this lane emits carries a ``schema_version`` beginning with this prefix, so a
17
17
  #: reader can tell a thin-lane receipt from a local one without inspecting the fields.
@@ -32,3 +32,22 @@ def numbered(prefix: str, items: Sequence[Any]) -> dict[str, Any]:
32
32
 
33
33
  width = len(str(max(len(items), 1)))
34
34
  return {f"{prefix} {index:0{width}d}": item for index, item in enumerate(items, start=1)}
35
+
36
+
37
+ def priceless(value: Any) -> Any:
38
+ """``value`` without any money member, at any depth: the plan is flat, so no run has a price.
39
+
40
+ Studio still serves ``projected_cost``, ``*_cost_micros`` and ``*_spend_*_micros``. They are
41
+ the platform's own infrastructure accounting and read to a subscriber as a bill.
42
+ """
43
+
44
+ if isinstance(value, Mapping):
45
+ return {
46
+ key: priceless(item)
47
+ for key, item in value.items()
48
+ if key != "projected_cost"
49
+ and not (key.endswith("_micros") and ("cost" in key or "spend" in key))
50
+ }
51
+ if isinstance(value, list):
52
+ return [priceless(item) for item in value]
53
+ return value