mostlyright-data 0.31.47__tar.gz → 0.31.48__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 (132) hide show
  1. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/PKG-INFO +1 -1
  2. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/SKILL.md +7 -0
  3. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/enriching-with-small-models.md +23 -2
  4. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/readers.md +6 -0
  5. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/sources.md +38 -5
  6. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/recipe_lint.py +71 -0
  7. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/.gitignore +0 -0
  8. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/README.md +0 -0
  9. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/pyproject.toml +0 -0
  10. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/scripts/hatch_build.py +0 -0
  11. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/agents/openai.yaml +0 -0
  12. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/1-open-the-page-and-the-link-to-it-in-the-first-message.md +0 -0
  13. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/2-brief-two-to-four-questions-each-with-a-recommended-answer.md +0 -0
  14. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/3-probe-read-a-source-before-committing-to-it.md +0 -0
  15. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/4-decide-say-what-you-chose-what-you-refused-and-ask-one-question.md +0 -0
  16. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/5-draft-one-recipe-document-one-call.md +0 -0
  17. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/6-build-one-run-sized-to-acquire-every-measured-source-whole.md +0 -0
  18. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/7-interrogate-ask-the-run-what-it-actually-delivered.md +0 -0
  19. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/8-fix-revise-the-document-and-register-it-again.md +0 -0
  20. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/9-present-only-what-survived-inspection-with-caveats.md +0 -0
  21. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/agent-protocol.md +0 -0
  22. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/autonomous-delivery.md +0 -0
  23. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/before-the-first-tool-call.md +0 -0
  24. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/boundaries.md +0 -0
  25. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/cloud-authentication-preflight.md +0 -0
  26. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/commands.md +0 -0
  27. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/live-run.md +0 -0
  28. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/making-a-table-incremental.md +0 -0
  29. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/narrating-the-run.md +0 -0
  30. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/not-hosted-yet.md +0 -0
  31. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/one-install.md +0 -0
  32. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/patterns.md +0 -0
  33. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/predicting-with-tabular-models.md +0 -0
  34. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/prediction-labels.md +0 -0
  35. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/preparing-table-search.md +0 -0
  36. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/promote.md +0 -0
  37. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/receipts.md +0 -0
  38. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/recipe-test.md +0 -0
  39. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/recording-a-stream-venue.md +0 -0
  40. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/recovering-an-import-failure.md +0 -0
  41. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/reference-pages.md +0 -0
  42. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/required-protocol.md +0 -0
  43. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/satellite-signals.md +0 -0
  44. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/source-credentials.md +0 -0
  45. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/the-one-thing-to-say-about-the-skill-itself.md +0 -0
  46. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/transforms.md +0 -0
  47. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/user-communication-contract.md +0 -0
  48. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/references/writing-a-decision-record.md +0 -0
  49. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/skills/mr-data-build/scripts/write_research_notebook.py +0 -0
  50. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/__init__.py +0 -0
  51. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/agent_protocol.py +0 -0
  52. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/canonical.py +0 -0
  53. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/key_seam.py +0 -0
  54. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/page_coverage.py +0 -0
  55. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/part_check_evidence.py +0 -0
  56. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/session_probes.py +0 -0
  57. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/skill_assets.py +0 -0
  58. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/table_manifest.py +0 -0
  59. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/__init__.py +0 -0
  60. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/activity.py +0 -0
  61. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/backoff.py +0 -0
  62. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/categories.py +0 -0
  63. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/dataset-categories-v1.json +0 -0
  64. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/dataset_layout.py +0 -0
  65. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/delivery.py +0 -0
  66. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/description_shape.py +0 -0
  67. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/download.py +0 -0
  68. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/enrichment.py +0 -0
  69. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/fast_features.py +0 -0
  70. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/matching_benchmark.py +0 -0
  71. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/probe.py +0 -0
  72. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/progress_rate.py +0 -0
  73. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/progress_vocabulary.py +0 -0
  74. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/recipe.py +0 -0
  75. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/recipe_brief.py +0 -0
  76. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/recipe_explain.py +0 -0
  77. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/recipe_forecast.py +0 -0
  78. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/recipe_test.py +0 -0
  79. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/refresh_rehearsal.py +0 -0
  80. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/release_check.py +0 -0
  81. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/research.py +0 -0
  82. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/router.py +0 -0
  83. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/run_diagnose.py +0 -0
  84. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/run_prefix.py +0 -0
  85. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/runs.py +0 -0
  86. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/session.py +0 -0
  87. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/stream.py +0 -0
  88. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/stream_venue.py +0 -0
  89. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/studio_capabilities.py +0 -0
  90. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/support.py +0 -0
  91. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/table_search_contract.json +0 -0
  92. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/table_view.py +0 -0
  93. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/transport.py +0 -0
  94. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/user_agent.py +0 -0
  95. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4.py +0 -0
  96. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_artifacts.py +0 -0
  97. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_catalog.py +0 -0
  98. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_connected.py +0 -0
  99. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_connections.py +0 -0
  100. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_dataset_covers.py +0 -0
  101. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_datasets.py +0 -0
  102. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_handoff.py +0 -0
  103. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_matching.py +0 -0
  104. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_narrative.py +0 -0
  105. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_public.py +0 -0
  106. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_public_pull.py +0 -0
  107. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_query.py +0 -0
  108. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_reader.py +0 -0
  109. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_runs.py +0 -0
  110. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_search.py +0 -0
  111. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_search_contract.py +0 -0
  112. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_secrets.py +0 -0
  113. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_stream.py +0 -0
  114. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/v4_tables.py +0 -0
  115. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/thin/vocabulary.py +0 -0
  116. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/__init__.py +0 -0
  117. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/attendance.py +0 -0
  118. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/clarification.py +0 -0
  119. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/cloud_auth.py +0 -0
  120. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/commands/__init__.py +0 -0
  121. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/commands/auth.py +0 -0
  122. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/commands/clarify.py +0 -0
  123. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/commands/login.py +0 -0
  124. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/commands/whoami.py +0 -0
  125. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/credential_native.py +0 -0
  126. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/credential_store.py +0 -0
  127. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/credentials.py +0 -0
  128. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/login.py +0 -0
  129. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/path_kind.py +0 -0
  130. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/plain_file.py +0 -0
  131. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/src/mostlyright/data_harness/ux/remediation.py +0 -0
  132. {mostlyright_data-0.31.47 → mostlyright_data-0.31.48}/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.47
3
+ Version: 0.31.48
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/
@@ -193,6 +193,13 @@ step 6. The stage 3 reference holds its rule. Gate 4 is step 6.
193
193
  extract, standardize or match source when the brief asked for that judgement or the person accepted the offer,
194
194
  from the binding `mr-data models` lists, and let a rule settle every row it can before the
195
195
  model reads the rest ([writing a classify source](references/enriching-with-small-models.md#writing-a-classify-source)).
196
+ When enriching rows from a table's website URL column across many third-party domains, fetch the
197
+ pages with `public.https.collection@2.0.0` (`source_rows` `url_column` +
198
+ `pages.allow_any_public_origin: true`) pinned to `html.web_extract@1.8.0`
199
+ (`mode: "readable_text"`), test bounded with `pages.max_fetches_per_run: 30` over the real
200
+ upstream source, and choose `classify` (`gemini-decisions`) for fixed categories, booleans, or
201
+ multilingual normalization versus `extract` for verbatim spans
202
+ ([heterogeneous public websites](references/sources.md#extracting-from-heterogeneous-public-websites-allow_any_public_origin)).
196
203
  Register a live predict table only after a backtest table has compared it with a baseline
197
204
  ([predicting with tabular models](references/predicting-with-tabular-models.md)).
198
205
  Put the predictions in the table people read, in their own `predicted_<target>` columns beside
@@ -116,6 +116,26 @@ also keep the rows it settled from being sent at all: see [Needs server 4.14](#n
116
116
  offers, deterministic ones first, each with the column it reads and what it would add. One
117
117
  concrete sentence each, not a menu of everything possible.
118
118
 
119
+ ### Choosing `classify` vs `extract` on website text
120
+
121
+ When you fetch third-party websites with `public.https.collection@2.0.0` (`source_rows`
122
+ `url_column` + `pages.allow_any_public_origin: true`) and `html.web_extract@1.8.0`
123
+ (`mode: "readable_text"`), pick the downstream model by the shape of the answer you need:
124
+
125
+ - **Use `classify` (`gemini-decisions` first) for fixed categories, enums, booleans, or
126
+ multilingual normalization** — for example determining whether a site offers self-service bays
127
+ vs an automatic tunnel, whether a venue is open 24/7, or assigning a standardized industry or
128
+ topic label across pages written in German, French, Polish, or Russian. `gemini-decisions`
129
+ understands multilingual text directly without a translation step, answers in ~250 ms per row
130
+ with zero cold start, and returns calibrated per-label probabilities.
131
+ - **Use `extract` only for verbatim spans pulled from the page text** — exact company names,
132
+ prices, street addresses, phone numbers, dates, or lists of named offers. Every extracted value
133
+ must appear verbatim in the input text or it is dropped, so `extract` returns blanks whenever a
134
+ category name is normalized or in a different language than the source page, and its service
135
+ takes 3–5 minutes to cold-start when idle.
136
+
137
+ Do not force a fixed categorical or multilingual labelling task through `extract`.
138
+
119
139
  ### Writing a classify source
120
140
 
121
141
  A classify source is a [per-row request](sources.md#authoring-a-per-row-request) over the source
@@ -167,8 +187,9 @@ An extract source has the same per-row shape with the extraction body
167
187
 
168
188
  - `input` is `{"view": "input", "text": "{text_column}"}`. `text` is the only placeholder, and it
169
189
  names a column of the upstream source, never of the transform. Give it visible text, not raw
170
- HTML: read the page in the upstream source with a Reader such as `html.web_extract`
171
- ([Readers](readers.md)).
190
+ HTML: read the page in the upstream source with `html.web_extract@1.8.0` (`mode: "readable_text"`)
191
+ for heterogeneous public websites, or a pinned `html.web_extract` DOM selector for a single
192
+ structured publisher ([Readers](readers.md)).
172
193
  - `fields` is a literal list of 1 to 64 `{name, description}` entries. Changing it changes the
173
194
  source's capture identity, so settle the list in the brief.
174
195
  - `one: true` asks for a single object per row, for a detail page; leave it out for a list of
@@ -117,6 +117,12 @@ decoder. Zero matches and multiple matches both refuse.
117
117
  | `html.web_extract@1.0.0` | `mode: dom` with closed CSS-like record/field selectors, or `mode: json` with an inert JSON script selector and RFC 6901 field pointers. |
118
118
  | `html.web_extract@1.1.0` | Same settings as 1.0.0; extracted text follows DOM order, with one space at block-element boundaries and `<br>` and none between inline runs. |
119
119
  | `html.web_extract@1.2.0` | Same text as 1.1.0; bounded integer `:nth-child(N)` / `:nth-of-type(N)` and field `scope: ancestor` with `ancestor_selector`. Requires the corresponding deployed certification. |
120
+ | `html.web_extract@1.3.0` | Adds `value: html` (an element's own source markup); optional `required: false` multi-match returns null; `mode: json` adds `non_scalar`. |
121
+ | `html.web_extract@1.4.0` | Adds `value: count` and `value: inert_json` on DOM columns. |
122
+ | `html.web_extract@1.5.0` | Same settings and text as 1.4.0 with a 250,000-node DOM ceiling for large pages. |
123
+ | `html.web_extract@1.6.0` | Adds `mode: text_chunks` with a single-match `selector`, emitting `chunk_index`, `chunk_count`, and lossless 256 KiB `text` chunks. |
124
+ | `html.web_extract@1.7.0` | Same settings and modes as 1.6.0 over browser-implied end tags (300,000-node ceiling) for pages with unclosed `<p>`, `<li>`, and table tags. |
125
+ | `html.web_extract@1.8.0` | Same as 1.7.0 plus lenient HTML charset decoding (UTF-8, meta charset single-byte European/Cyrillic encodings, cp1252 fallback) and `mode: readable_text` (optional `max_chars` 512–65,536, default 16,384), emitting one row per page with fixed columns `title`, `meta_description`, `text`, and `text_length`. Use this coordinate for heterogeneous third-party websites. |
120
126
  | `protobuf.tabular@1.0.0` | Digest-pinned base64 FileDescriptorSet, fully-qualified message type, `single` or `length_delimited` framing, and fields with an explicit repeated `explode` or `refuse` choice. |
121
127
  | `parquet.tabular@1.0.0` | Optional `columns` selects a bounded ordered Parquet projection. |
122
128
  | `parquet.tabular@1.1.0` | Required `columns` of `{path, as}` select fields through structs by dotted path. An optional row filter keeps the rows every predicate in its `all` list admits. A public HTTPS source is read by range: only the footer and the selected column chunks are fetched. |
@@ -53,15 +53,17 @@ Write it as a source whose connector is that coordinate plus a `collection` memb
53
53
  this is not arbitrary recursive crawling. It requires the matching server API/worker release.
54
54
  A `source_rows` discovery may state a [per-row `request`](#authoring-a-per-row-request) instead
55
55
  of `url_column`.
56
- - `collection.pages` says what may be fetched and how much. It names `allowed_origins`, which
57
- must include the discovery address's own origin. It may state `max_pages`, `max_fetches_per_run`
56
+ - `collection.pages` says what may be fetched and how much. It names either `allowed_origins`
57
+ (which must include the discovery address's own origin) or, for a credential-free public
58
+ `source_rows` `url_column` or `explicit` collection over third-party sites,
59
+ `allow_any_public_origin: true` (never both). It may state `max_pages`, `max_fetches_per_run`
58
60
  (up to 50 000, or up to 4 000 000 on a per-row request collection), `concurrency` (up to
59
61
  10 000), `request_timeout_seconds`, `retries` and a `revisit` rule. `retries` is 0 to 3 and 2
60
62
  when left out. Registration refuses 4 or more. Its pace is `min_interval_milliseconds` in whole
61
63
  milliseconds. Left out, a collection starts at 1000 ms and adapts down to 250 ms. The legacy
62
- whole-second `min_interval_seconds` is the other spelling. Only `allowed_origins` is required.
63
- Every other member has a stated meaning when it is left out. [Pace and width](#pace-and-width)
64
- says which to state.
64
+ whole-second `min_interval_seconds` is the other spelling. One of `allowed_origins` or
65
+ `allow_any_public_origin: true` is required. Every other member has a stated meaning when it is
66
+ left out. [Pace and width](#pace-and-width) says which to state.
65
67
  - `limits.max_requests` is REQUIRED and bounds every request the run makes, discovery and detail
66
68
  pages together. `limits.max_source_bytes` bounds the fetched bytes; `limits.max_rows` clamps the
67
69
  merged relation.
@@ -119,6 +121,37 @@ redirects are likely — trailing slashes, `http`→`https`, `www`, which is mos
119
121
  `limits.max_requests >= discovery.max_requests + 2 * max_fetches_per_run`. A budget larger than the
120
122
  corpus can absorb costs nothing.
121
123
 
124
+ #### Extracting from heterogeneous public websites (`allow_any_public_origin`)
125
+
126
+ When an upstream table already has a URL column pointing to many distinct third-party websites
127
+ (for example a `website` column across hundreds or thousands of businesses, venues, or
128
+ organizations), do **not** hand-copy domains into `pages.allowed_origins` or build a fake
129
+ `explicit` list to work around origin limits. Declare a `source_rows` `url_column` collection with:
130
+
131
+ - `pages.allow_any_public_origin: true` (and omit `pages.allowed_origins`), on a credential-free
132
+ (`credential_mode: "none"`) `data_classification: "public"` source.
133
+ - Reader pin `html.web_extract@1.8.0` with canonical decode options
134
+ `{"max_chars":16384,"mode":"readable_text"}` (normalize with `/v4/readers/normalize` or
135
+ `mr-data reader normalize`). It decodes UTF-8 and common legacy European/Cyrillic charsets
136
+ leniently, strips scripts, styles, navigation, headers, footers, forms, and hidden overlays,
137
+ never fails on missing `<body>` or multiple tags, and emits four fixed columns per page:
138
+ `title`, `meta_description`, `text`, `text_length`.
139
+ - `limits.max_requests >= 3 * pages.max_fetches_per_run` to cover redirect hops (`apex` → `www`,
140
+ canonical domain moves) and retries.
141
+
142
+ Under `allow_any_public_origin: true`, dirty URLs in the upstream column are normalized before
143
+ fetching (`http://` upgraded to `https://`, bare hostnames like `www.example.de` prefixed with
144
+ `https://`, `#fragments` stripped, internationalized domains converted to punycode), and
145
+ malformed, non-HTTPS, IP-literal, or private/internal addresses are cleanly skipped per row
146
+ without failing the run. Safe public HTTPS redirects (`apex` ↔ `www`, canonical host moves) are
147
+ followed automatically, while private/loopback/metadata targets remain blocked on every hop.
148
+
149
+ To run a bounded scratch test before a full build, keep the same `source_rows` `url_column`
150
+ discovery over the real upstream table and set `pages.max_fetches_per_run: 30` (and
151
+ `limits.max_requests: 90`). The collection fetches up to 30 real sites, tolerates unreachable or
152
+ broken individual websites cleanly, and lets you inspect the extracted `title` and `text` before
153
+ scaling `max_fetches_per_run` to the full corpus.
154
+
122
155
  For a dependent graph, declare recipe-level `acquisition_limits` with `max_requests` and
123
156
  `max_source_bytes`. Every source must explicitly state both ceilings; their sums must fit the
124
157
  totals. Unused capacity does not transfer between sources.
@@ -1775,6 +1775,7 @@ def _coherence(document: Mapping[str, Any], *, declared: Sequence[str]) -> list[
1775
1775
  findings.extend(_unique(document.get("sources"), "sources", "name", "source names"))
1776
1776
  findings.extend(_source_coherence(document.get("sources")))
1777
1777
  findings.extend(_row_request_coherence(document.get("sources")))
1778
+ findings.extend(_public_web_pages(document.get("sources")))
1778
1779
  findings.extend(_row_request_batch_coherence(document.get("sources")))
1779
1780
  findings.extend(_predict_coherence(document.get("sources")))
1780
1781
  findings.extend(_table_partition_coherence(document, known=known))
@@ -2662,6 +2663,76 @@ def _row_request_coherence(sources: Any) -> list[Finding]:
2662
2663
  return findings
2663
2664
 
2664
2665
 
2666
+ def _public_web_pages(sources: Any) -> list[Finding]:
2667
+ """Coherence checks for ``collection.pages.allow_any_public_origin``."""
2668
+
2669
+ if not isinstance(sources, list):
2670
+ return []
2671
+ findings: list[Finding] = []
2672
+ for index, source in enumerate(sources):
2673
+ if not isinstance(source, Mapping):
2674
+ continue
2675
+ collection = source.get("collection")
2676
+ if not isinstance(collection, Mapping):
2677
+ continue
2678
+ pages = collection.get("pages")
2679
+ if not isinstance(pages, Mapping):
2680
+ continue
2681
+ allow_any = pages.get("allow_any_public_origin")
2682
+ if allow_any is None:
2683
+ continue
2684
+ at = f"/sources/{index}/collection/pages"
2685
+ if type(allow_any) is not bool:
2686
+ findings.append(
2687
+ Finding(
2688
+ DOCUMENT_INVALID,
2689
+ f"{at}/allow_any_public_origin",
2690
+ "must be a boolean",
2691
+ )
2692
+ )
2693
+ continue
2694
+ if not allow_any:
2695
+ continue
2696
+ if "allowed_origins" in pages:
2697
+ findings.append(
2698
+ Finding(
2699
+ DOCUMENT_INCOHERENT,
2700
+ f"{at}/allowed_origins",
2701
+ "must be omitted when allow_any_public_origin is true",
2702
+ )
2703
+ )
2704
+ discovery = collection.get("discovery")
2705
+ kind = discovery.get("kind") if isinstance(discovery, Mapping) else None
2706
+ url_column = discovery.get("url_column") if isinstance(discovery, Mapping) else None
2707
+ is_url_column = (
2708
+ kind == "source_rows"
2709
+ and isinstance(url_column, str)
2710
+ and bool(url_column)
2711
+ and isinstance(discovery, Mapping)
2712
+ and "request" not in discovery
2713
+ )
2714
+ if not (is_url_column or kind == "explicit"):
2715
+ findings.append(
2716
+ Finding(
2717
+ DOCUMENT_INCOHERENT,
2718
+ f"{at}/allow_any_public_origin",
2719
+ "is allowed only on source_rows url_column or explicit collections",
2720
+ )
2721
+ )
2722
+ connector = source.get("connector")
2723
+ mode = connector.get("credential_mode") if isinstance(connector, Mapping) else None
2724
+ classification = source.get("data_classification")
2725
+ if mode != "none" or classification != "public":
2726
+ findings.append(
2727
+ Finding(
2728
+ DOCUMENT_INCOHERENT,
2729
+ f"{at}/allow_any_public_origin",
2730
+ "is allowed only on credential-free public sources",
2731
+ )
2732
+ )
2733
+ return findings
2734
+
2735
+
2665
2736
  def _chart_coherence(table: Any) -> list[Finding]:
2666
2737
  """A chart held against the type of the column it is declared on, and its extra members."""
2667
2738