mostlyright-data 0.31.24__tar.gz → 0.31.25__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 (128) hide show
  1. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/PKG-INFO +1 -1
  2. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/SKILL.md +13 -10
  3. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/making-a-table-incremental.md +8 -4
  4. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/delivery.py +11 -9
  5. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/recipe.py +18 -5
  6. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/refresh_rehearsal.py +18 -3
  7. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_tables.py +12 -3
  8. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/.gitignore +0 -0
  9. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/README.md +0 -0
  10. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/pyproject.toml +0 -0
  11. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/scripts/hatch_build.py +0 -0
  12. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/agents/openai.yaml +0 -0
  13. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/1-open-the-page-and-the-link-to-it-in-the-first-message.md +0 -0
  14. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/2-brief-two-to-four-questions-each-with-a-recommended-answer.md +0 -0
  15. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/3-probe-read-a-source-before-committing-to-it.md +0 -0
  16. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/4-decide-say-what-you-chose-what-you-refused-and-ask-one-question.md +0 -0
  17. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/5-draft-one-recipe-document-one-call.md +0 -0
  18. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/6-build-one-run-sized-to-acquire-every-measured-source-whole.md +0 -0
  19. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/7-interrogate-ask-the-run-what-it-actually-delivered.md +0 -0
  20. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/8-fix-revise-the-document-and-register-it-again.md +0 -0
  21. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/9-present-only-what-survived-inspection-with-caveats.md +0 -0
  22. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/agent-protocol.md +0 -0
  23. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/autonomous-delivery.md +0 -0
  24. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/before-the-first-tool-call.md +0 -0
  25. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/boundaries.md +0 -0
  26. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/cloud-authentication-preflight.md +0 -0
  27. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/commands.md +0 -0
  28. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/enriching-with-small-models.md +0 -0
  29. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/live-run.md +0 -0
  30. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/narrating-the-run.md +0 -0
  31. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/not-hosted-yet.md +0 -0
  32. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/one-install.md +0 -0
  33. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/patterns.md +0 -0
  34. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/prediction-labels.md +0 -0
  35. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/preparing-table-search.md +0 -0
  36. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/promote.md +0 -0
  37. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/readers.md +0 -0
  38. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/receipts.md +0 -0
  39. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/recipe-test.md +0 -0
  40. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/recording-a-stream-venue.md +0 -0
  41. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/recovering-an-import-failure.md +0 -0
  42. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/reference-pages.md +0 -0
  43. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/required-protocol.md +0 -0
  44. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/source-credentials.md +0 -0
  45. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/sources.md +0 -0
  46. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/the-one-thing-to-say-about-the-skill-itself.md +0 -0
  47. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/transforms.md +0 -0
  48. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/user-communication-contract.md +0 -0
  49. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/references/writing-a-decision-record.md +0 -0
  50. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/skills/mr-data-build/scripts/write_research_notebook.py +0 -0
  51. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/__init__.py +0 -0
  52. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/agent_protocol.py +0 -0
  53. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/canonical.py +0 -0
  54. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/key_seam.py +0 -0
  55. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/page_coverage.py +0 -0
  56. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/part_check_evidence.py +0 -0
  57. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/session_probes.py +0 -0
  58. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/skill_assets.py +0 -0
  59. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/table_manifest.py +0 -0
  60. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/__init__.py +0 -0
  61. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/activity.py +0 -0
  62. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/backoff.py +0 -0
  63. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/categories.py +0 -0
  64. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/dataset-categories-v1.json +0 -0
  65. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/description_shape.py +0 -0
  66. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/download.py +0 -0
  67. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/enrichment.py +0 -0
  68. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/fast_features.py +0 -0
  69. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/matching_benchmark.py +0 -0
  70. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/probe.py +0 -0
  71. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/progress_rate.py +0 -0
  72. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/progress_vocabulary.py +0 -0
  73. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/recipe_brief.py +0 -0
  74. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/recipe_explain.py +0 -0
  75. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/recipe_forecast.py +0 -0
  76. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/recipe_lint.py +0 -0
  77. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/recipe_test.py +0 -0
  78. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/release_check.py +0 -0
  79. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/research.py +0 -0
  80. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/router.py +0 -0
  81. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/run_diagnose.py +0 -0
  82. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/run_prefix.py +0 -0
  83. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/runs.py +0 -0
  84. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/session.py +0 -0
  85. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/stream.py +0 -0
  86. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/stream_venue.py +0 -0
  87. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/studio_capabilities.py +0 -0
  88. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/support.py +0 -0
  89. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/table_search_contract.json +0 -0
  90. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/table_view.py +0 -0
  91. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/transport.py +0 -0
  92. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/user_agent.py +0 -0
  93. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4.py +0 -0
  94. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_artifacts.py +0 -0
  95. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_catalog.py +0 -0
  96. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_connected.py +0 -0
  97. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_connections.py +0 -0
  98. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_dataset_covers.py +0 -0
  99. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_datasets.py +0 -0
  100. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_handoff.py +0 -0
  101. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_matching.py +0 -0
  102. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_narrative.py +0 -0
  103. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_public.py +0 -0
  104. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_query.py +0 -0
  105. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_reader.py +0 -0
  106. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_runs.py +0 -0
  107. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_search.py +0 -0
  108. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_search_contract.py +0 -0
  109. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_secrets.py +0 -0
  110. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/v4_stream.py +0 -0
  111. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/thin/vocabulary.py +0 -0
  112. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/__init__.py +0 -0
  113. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/attendance.py +0 -0
  114. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/clarification.py +0 -0
  115. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/cloud_auth.py +0 -0
  116. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/commands/__init__.py +0 -0
  117. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/commands/auth.py +0 -0
  118. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/commands/clarify.py +0 -0
  119. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/commands/login.py +0 -0
  120. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/commands/whoami.py +0 -0
  121. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/credential_native.py +0 -0
  122. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/credential_store.py +0 -0
  123. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/credentials.py +0 -0
  124. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/login.py +0 -0
  125. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/path_kind.py +0 -0
  126. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/plain_file.py +0 -0
  127. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/remediation.py +0 -0
  128. {mostlyright_data-0.31.24 → mostlyright_data-0.31.25}/src/mostlyright/data_harness/ux/render.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mostlyright-data
3
- Version: 0.31.24
3
+ Version: 0.31.25
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/
@@ -316,16 +316,19 @@ chat, and pass on its answer.
316
316
  even when the run succeeded. Untruncated acquisition does not prove publisher pagination, nested
317
317
  records or population coverage is complete. A null coverage window does not mean all history was acquired.
318
318
  Repair only evidenced faults on the same dataset/table and verify the revision again.
319
- Record cadence only when authorized and `mr-data recipe readiness --json` reports the current
320
- revision refresh-ready. A blocked mutable snapshot requires an explicit table resync, not a
321
- scheduled whole-source fallback. Do not promise freshness without evidence.
322
- A recipe that is not refresh-ready is a design fault to repair, not a state to wait out. Run
323
- `mr-data recipe explain RECIPE_ID --json`: each finding names its rule code, its sources and
324
- the server's suggested repair, and [making a table incremental](references/making-a-table-incremental.md#which-plans-refresh)
325
- says what each code means. Revise against what this run measured, register the revision and
326
- resync once. The revision changes the recipe digest, so one full resync is the price of the
327
- repair, which is why the decision belongs in step 5. A table left not refresh-ready never
328
- refreshes unless it declares `rebuild`; it does not become ready later.
319
+ Record cadence only when authorized. Distinguish incremental refresh from a declared
320
+ whole-table rebuild: `recipe readiness` and incremental findings such as `SOURCE_READS_WHOLE`
321
+ do not by themselves prohibit an authorized `rebuild`. Read `mr-data table show TABLE_ID`: a
322
+ `scheduled_rebuild` strategy, its actual schedule, next rebuild and recovery state are the
323
+ evidence for automatic whole-table updates. The rebuild's `min_interval_seconds` is a floor,
324
+ not the configured cadence; preserve a requested fixed cron. A declaration alone does not
325
+ prove a schedule is active or a build succeeded. A held table without an eligible declared
326
+ rebuild needs a recipe repair or explicit resync; do not invent source windows.
327
+ For incremental plans that are not ready, run `mr-data recipe explain RECIPE_ID --json` and
328
+ repair the findings using [making a table incremental](references/making-a-table-incremental.md#which-plans-refresh).
329
+ A recipe revision changes the digest and requires a full build. Respect existing authorization
330
+ for that repair and resync; do not ask again for work already authorized. `rehearse-refresh`
331
+ tests incremental refresh only, so its refusal does not test a scheduled whole-table rebuild.
329
332
  Download and verify artifacts when the user requested bytes.
330
333
  10. Search is on by default for the dataset's main table. Supporting tables such as lookups and
331
334
  code lists do not need it. Enable it, inspect search readiness and test meaningful queries against
@@ -115,7 +115,8 @@ The server records the answer as one classification per source:
115
115
  The rows are in the server's precedence order, and the first match wins. A source may not state both
116
116
  `closed: true` and a request window: registration refuses that pair with
117
117
  `422 RECIPE_DOCUMENT_INCOHERENT` at `/sources/N/closed`. One `resync_only`
118
- source makes the whole table resync-only, however truthful its siblings are. Say which sources you
118
+ source blocks incremental refresh of the whole table, however truthful its siblings are.
119
+ An eligible declared `rebuild` can still update that table automatically. Say which sources you
119
120
  left `resync_only` and why, because a recipe that never asked the question registers the same way
120
121
  as one that did.
121
122
 
@@ -214,8 +215,10 @@ source and the pointer to change.
214
215
  A `permanence` of `predecessor` clears after one full. `estate` is the platform's state, not the
215
216
  recipe's. Report it and do not revise the document for it. `document` needs a revision.
216
217
 
217
- A table that is not refresh-ready never refreshes, and it does not become ready later. Repair the
218
- design, declare `rebuild`, or report that the table stays as built. Only returned state and durable
218
+ A table that is not incrementally refresh-ready does not become ready merely by waiting.
219
+ It can still update automatically through an eligible declared `rebuild`; inspect its actual
220
+ strategy and schedule before telling the user it needs manual resync. Otherwise repair the design,
221
+ declare `rebuild` with authorization, or report that the table stays as built. Only returned state and durable
219
222
  run evidence support a claim that a table is refreshing.
220
223
 
221
224
  ### Rebuild: the fifth continuation
@@ -249,7 +252,8 @@ full read:
249
252
  per-row source whose answers change over time.
250
253
 
251
254
  `mr-data table show TABLE_ID --json` prints the strategy the server reports for the table, such as
252
- "rebuilds every 7d; next T" or "held: blocker". When the server reports a retry of a failed rebuild, it
255
+ "rebuilds on 30 6 * * * (UTC); minimum interval 1h; next T" or "held: blocker".
256
+ The minimum interval is a floor, not the actual schedule. When the server reports a retry of a failed rebuild, it
253
257
  prints that too ("retry 1/3 at T"). `mr-data reschedule` on a table that cannot refresh answers
254
258
  `status: table_schedule_held` and exits 2. It names the two repairs: declare `rebuild`, or run
255
259
  `mr-data table resync`. Never report a held table's schedule as fixed.
@@ -77,22 +77,24 @@ _SNAPSHOT = (
77
77
  _CADENCE_WHY = (
78
78
  "Record it from the update answer in the brief. First confirm mr-data recipe readiness "
79
79
  "--table {table_id} --current-only --json reports the current revision refresh-ready, or that "
80
- "the recipe declares rebuild. A recipe that is not refresh-ready is a design fault to repair "
81
- "with mr-data recipe explain, not a reason to skip this step. Then record the cadence and "
80
+ "the recipe declares an eligible whole-table rebuild. Incremental readiness blockers do not "
81
+ "by themselves prohibit scheduled rebuilding. Then record the cadence and "
82
82
  "the reasoning with promote. "
83
83
  )
84
84
 
85
85
  _NOT_READY_WHY = (
86
- "Its current recipe is not refresh-ready: {blocker}. That is a design fault to repair, not a "
87
- "state to wait out. Run mr-data recipe explain RECIPE_ID --json, repair the recipe, register "
88
- "the revision and resync once, then record the cadence and the reasoning with promote. "
86
+ "Its current strategy reports a blocker: {blocker}. Run mr-data recipe explain RECIPE_ID "
87
+ "--json and check whether an eligible whole-table rebuild is already declared. Incremental "
88
+ "blockers alone do not mean manual resync only. If no eligible rebuild is declared, repair "
89
+ "the recipe, register the revision and resync once. Record the authorized cadence and verify "
90
+ "the actual strategy and schedule with mr-data table show. "
89
91
  )
90
92
 
91
93
  _PARKED_WHY = (
92
- "A cadence was requested, but the server holds it because the current recipe is not "
93
- "refresh-ready: {blocker}. That is a design fault to repair, not a state to wait out. Run "
94
- "mr-data recipe explain RECIPE_ID --json, repair the recipe, register the revision and resync "
95
- "once. The server restores the held schedule when the recipe is ready."
94
+ "A cadence was requested, but the server holds it: {blocker}. Run mr-data recipe explain "
95
+ "RECIPE_ID --json and inspect the actual strategy with mr-data table show. Incremental "
96
+ "findings alone do not prohibit an eligible declared whole-table rebuild. Repair the "
97
+ "reported cause and verify that the original schedule is restored before calling it active."
96
98
  )
97
99
 
98
100
  #: Every block says this: a scratch table is a test, not the delivered dataset.
@@ -878,7 +878,9 @@ def unrefreshable_plan_finding(
878
878
  )
879
879
 
880
880
 
881
- def continuation_warnings(absent: list[str], total: int) -> list[str]:
881
+ def continuation_warnings(
882
+ absent: list[str], total: int, *, rebuild_declared: bool = False
883
+ ) -> list[str]:
882
884
  """One sentence naming the sources a scheduled refresh will refuse to continue.
883
885
 
884
886
  ⚠ A WARNING RATHER THAN A FINDING, because ``resync_only`` is a TRUTHFUL answer. A mutable
@@ -898,6 +900,13 @@ def continuation_warnings(absent: list[str], total: int) -> list[str]:
898
900
  beyond = len(absent) - NAMED_UNCONTINUED_SOURCES
899
901
  if beyond > 0:
900
902
  named += f", and {beyond} more"
903
+ if rebuild_declared:
904
+ return [
905
+ f"{len(absent)} of {total} sources state no bounded continuation: {named}. "
906
+ "They cannot refresh incrementally. This recipe declares a whole-table rebuild, "
907
+ "which can reread them on a schedule within its declared bounds. Check the table's "
908
+ "actual refresh strategy and schedule; the declaration alone does not arm a schedule."
909
+ ]
901
910
  return [
902
911
  f"{len(absent)} of {total} sources state no bounded continuation: {named}. The server "
903
912
  "classifies these as `resync_only` -- and marks every other source `resync_only` too, so "
@@ -1485,7 +1494,9 @@ def register(
1485
1494
  declared_sources, execution_policy=document.get("execution_policy")
1486
1495
  )
1487
1496
  warnings += continuation_warnings(
1488
- uncontinued, len(declared_sources) if isinstance(declared_sources, list) else 0
1497
+ uncontinued,
1498
+ len(declared_sources) if isinstance(declared_sources, list) else 0,
1499
+ rebuild_declared=recipe_explain.declared_rebuild(document) is not None,
1489
1500
  )
1490
1501
  # THE SECOND GATE, in the same place as the first. A recipe that passed the first one can
1491
1502
  # still hold a plan Studio refuses outright, and an author who repaired the first warning by
@@ -1977,9 +1988,11 @@ def readiness(
1977
1988
  **({"page_size_used": limit} if halvings else {}),
1978
1989
  **(partial or {}),
1979
1990
  "note": (
1980
- "Only the server's persisted readiness classification may authorize a scheduled "
1981
- "refresh. "
1982
- "A resync-only source requires table resync; it is never widened by a schedule."
1991
+ "These classifications describe incremental refresh. A resync-only source cannot be "
1992
+ "made incremental by setting a schedule, but an eligible declared whole-table "
1993
+ "rebuild can update it automatically. Read mr-data table show TABLE_ID for the "
1994
+ "actual strategy, schedule and recovery state; rebuild_declared alone does not "
1995
+ "prove a schedule is active."
1983
1996
  ),
1984
1997
  }
1985
1998
 
@@ -30,6 +30,7 @@ from mostlyright.data_harness.thin.backoff import jittered
30
30
  from mostlyright.data_harness.thin.recipe_explain import (
31
31
  NO_SEALED_PREDECESSOR,
32
32
  RECIPE_DIGEST_CHANGED,
33
+ declared_rebuild,
33
34
  explain_document_at_studio,
34
35
  explain_table_at_studio,
35
36
  )
@@ -89,6 +90,13 @@ def _studio_block(
89
90
  ready = answer.get("refresh_ready") is True
90
91
  if ready:
91
92
  summary = "The server says this table can refresh on a schedule."
93
+ elif isinstance(answer.get("rebuild"), Mapping) and answer["rebuild"].get("declared") is True:
94
+ summary = (
95
+ "The server reports that incremental refresh is not ready, but a whole-table "
96
+ "rebuild is declared. These findings do not by themselves mean manual resync only. "
97
+ f"Check mr-data table show {table_id} for the active rebuild strategy, schedule "
98
+ "and recovery state; declaration alone does not prove a scheduled build succeeded."
99
+ )
92
100
  elif blocking and len(waiting) == len(blocking):
93
101
  summary = (
94
102
  "The plan can refresh; the table has no version of this revision to continue from "
@@ -164,7 +172,14 @@ def refresh_plan(
164
172
  answer, source=FROM_DOCUMENT, table_id=table_id, recipe_id=recipe_id
165
173
  )
166
174
  block: dict[str, Any] = {"source": FROM_CLIENT}
167
- if local is None:
175
+ if declared_rebuild(document) is not None:
176
+ block["summary"] = (
177
+ "This document declares a whole-table rebuild. Incremental refresh findings do not "
178
+ "by themselves prohibit scheduled rebuilding. No server explanation was obtained; "
179
+ f"check mr-data table show {table_id} for the actual strategy and schedule."
180
+ )
181
+ block["blocking_rule_codes"] = [local[0]] if local else []
182
+ elif local is None:
168
183
  block["summary"] = (
169
184
  "This client found nothing in the plan's shape that stops a refresh. It reads the "
170
185
  "document alone; the server, which was not asked, also checks the table's versions and "
@@ -297,8 +312,8 @@ def rehearse(
297
312
  NOT_READY,
298
313
  explanation=explained,
299
314
  first_blocker=answer.get("first_blocker"),
300
- note="The server would not admit a refresh of this table now, so none was asked for "
301
- "and "
315
+ note="The server would not admit an incremental refresh of this table now, "
316
+ "so none was asked for and "
302
317
  "nothing ran. The findings above say why.",
303
318
  )
304
319
  record = selected.table(table_id)
@@ -1349,7 +1349,7 @@ HELD_WITHOUT_BLOCKER = (
1349
1349
  )
1350
1350
 
1351
1351
 
1352
- def refresh_strategy_sentence(strategy: Mapping[str, Any]) -> str | None:
1352
+ def refresh_strategy_sentence(strategy: Mapping[str, Any], schedule: Any = None) -> str | None:
1353
1353
  """How a table keeps up, in one line: ``rebuilds every 7d; next T; retry 1/3 at T``.
1354
1354
 
1355
1355
  ⚠ A HELD TABLE SAYS SO FIRST. ``held`` is a live table nothing is refreshing: its schedule is
@@ -1362,7 +1362,16 @@ def refresh_strategy_sentence(strategy: Mapping[str, Any]) -> str | None:
1362
1362
  rebuild = strategy.get("rebuild")
1363
1363
  rebuild = rebuild if isinstance(rebuild, Mapping) else {}
1364
1364
  every = _duration(rebuild.get("min_interval_seconds"))
1365
- said = [f"rebuilds every {every}" if every else "rebuilds on a declared interval"]
1365
+ actual = schedule_phrase(schedule)
1366
+ said = [
1367
+ f"rebuilds {actual}"
1368
+ if actual and actual.startswith("every ")
1369
+ else f"rebuilds on {actual}"
1370
+ if actual
1371
+ else "scheduled whole-table rebuild"
1372
+ ]
1373
+ if every:
1374
+ said.append(f"minimum interval {every}")
1366
1375
  upcoming = rebuild.get("next_rebuild_at")
1367
1376
  said.append(f"next {upcoming}" if upcoming else "next rebuild not scheduled yet")
1368
1377
  retry = rebuild.get("retry")
@@ -1396,7 +1405,7 @@ def refresh_strategy_state(record: Mapping[str, Any]) -> dict[str, Any] | None:
1396
1405
  return None
1397
1406
  return {
1398
1407
  "kind": strategy.get("kind"),
1399
- "said": refresh_strategy_sentence(strategy),
1408
+ "said": refresh_strategy_sentence(strategy, record.get("schedule")),
1400
1409
  "blocker_code": strategy.get("blocker_code"),
1401
1410
  "blocker": strategy.get("blocker"),
1402
1411
  "record": dict(strategy),