mostlyright-data 0.31.41__tar.gz → 0.31.42__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.
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/PKG-INFO +1 -1
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/SKILL.md +2 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/commands.md +1 -1
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/router.py +1 -1
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_public.py +25 -5
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/render.py +1 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/.gitignore +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/README.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/pyproject.toml +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/scripts/hatch_build.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/agents/openai.yaml +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/1-open-the-page-and-the-link-to-it-in-the-first-message.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/2-brief-two-to-four-questions-each-with-a-recommended-answer.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/3-probe-read-a-source-before-committing-to-it.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/4-decide-say-what-you-chose-what-you-refused-and-ask-one-question.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/5-draft-one-recipe-document-one-call.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/6-build-one-run-sized-to-acquire-every-measured-source-whole.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/7-interrogate-ask-the-run-what-it-actually-delivered.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/8-fix-revise-the-document-and-register-it-again.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/9-present-only-what-survived-inspection-with-caveats.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/agent-protocol.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/autonomous-delivery.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/before-the-first-tool-call.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/boundaries.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/cloud-authentication-preflight.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/enriching-with-small-models.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/live-run.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/making-a-table-incremental.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/narrating-the-run.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/not-hosted-yet.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/one-install.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/patterns.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/predicting-with-tabular-models.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/prediction-labels.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/preparing-table-search.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/promote.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/readers.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/receipts.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/recipe-test.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/recording-a-stream-venue.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/recovering-an-import-failure.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/reference-pages.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/required-protocol.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/satellite-signals.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/source-credentials.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/sources.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/the-one-thing-to-say-about-the-skill-itself.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/transforms.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/user-communication-contract.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/writing-a-decision-record.md +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/scripts/write_research_notebook.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/__init__.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/agent_protocol.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/canonical.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/key_seam.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/page_coverage.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/part_check_evidence.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/session_probes.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/skill_assets.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/table_manifest.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/__init__.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/activity.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/backoff.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/categories.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/dataset-categories-v1.json +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/dataset_layout.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/delivery.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/description_shape.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/download.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/enrichment.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/fast_features.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/matching_benchmark.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/probe.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/progress_rate.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/progress_vocabulary.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/recipe.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/recipe_brief.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/recipe_explain.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/recipe_forecast.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/recipe_lint.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/recipe_test.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/refresh_rehearsal.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/release_check.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/research.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/run_diagnose.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/run_prefix.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/runs.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/session.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/stream.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/stream_venue.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/studio_capabilities.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/support.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/table_search_contract.json +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/table_view.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/transport.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/user_agent.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_artifacts.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_catalog.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_connected.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_connections.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_dataset_covers.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_datasets.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_handoff.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_matching.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_narrative.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_public_pull.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_query.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_reader.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_runs.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_search.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_search_contract.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_secrets.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_stream.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_tables.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/vocabulary.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/__init__.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/attendance.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/clarification.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/cloud_auth.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/commands/__init__.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/commands/auth.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/commands/clarify.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/commands/login.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/commands/whoami.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/credential_native.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/credential_store.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/credentials.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/login.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/path_kind.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/plain_file.py +0 -0
- {mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/remediation.py +0 -0
|
@@ -15,6 +15,8 @@ prediction where a column is known for some rows and wanted for others. Do not
|
|
|
15
15
|
wait for the person to name a model. Steps 3, 4, 5, 8 and 10 say where, and
|
|
16
16
|
[enriching with small models](references/enriching-with-small-models.md) says how.
|
|
17
17
|
|
|
18
|
+
For application access, API queries or polling for updates, use `mr-data public api-guide TABLE_ID`. It returns table-specific requests and key setup. Use environment variables for secrets.
|
|
19
|
+
|
|
18
20
|
## Set the goal as a checklist
|
|
19
21
|
|
|
20
22
|
At the start of every build, write the goal as a checklist with the host's todo or plan tool:
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/commands.md
RENAMED
|
@@ -19,7 +19,7 @@ run in full.
|
|
|
19
19
|
| `mr-data source` | `source inspect` takes a bounded look at one source, and it is the v4 path where `probe` is not. [Stage 3](3-probe-read-a-source-before-committing-to-it.md) says when to use it. It starts one of three ways, and each prints the `session_id`, `probe_id` and `source_id`, plus the `dataset_id` and `question_id` when it has them. For a new public HTTPS CSV that needs no key, give `--dataset-id`, `--question`, `--source-name`, `--source-url`, `--claimed-basis` and `--claim-evidence-digest`: it prepares the source and opens a session. For a source already prepared, give `--dataset-id`, `--question-id` and `--source-id`, which opens a session. In a session you already hold, give `--session-id` with `--source-id`. `--context-source-id` adds a source to a session it opens. `--session-id` with `--probe-id` reads the answer back; `--probe-id` alone is refused. A look is bounded to 65,536 bytes, 1,000 rows and 300 seconds. A larger file can fail `BYTE_LIMIT` after a wait, so read it by a bounded run of a scratch table. `queued` and `truncated` are not complete answers, and `capability_unavailable` means this deployment cannot inspect, so read the source by a bounded run of a scratch table instead, 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. What it finds is exploratory evidence, not a run and not a receipt. |
|
|
20
20
|
| `mr-data reader` | `reader normalize --family-id ID --family-version VERSION --options-file FILE [--workspace-id ID]` asks the server's Reader service to apply one certified family's own defaults and option rules to a JSON object of options, at most 64 KiB, and prints the normalized `decode_options`, `decode_options_json` and `options_digest`. The second is the text a recipe carries as `reader.decode_options`, and the third is the `options_digest` a Generic API's `generic_api.response.reader` states for exactly those options. A connector pin takes no `reader.options_digest` parameter ([Readers](readers.md)). It changes nothing, and this client does not validate or invent a family's options: the server decides. Run it for every Reader pin before you register, so a wrong option is refused here and not inside a run. |
|
|
21
21
|
| `mr-data catalog` | `catalog search "QUESTION"` asks the sealed public-source catalogue which of its entries might answer a question and ranks them best first. Every ranked entry comes back with the disposition its own facts earned — `admitted`, `human_escalation_required` or `refused` — because an entry the catalogue could not vouch for is still a finding. `--format csv` states the one data format the question requires — one token per question, never repeated — and it is not a filter: an entry that does not declare that format still comes back ranked, with disposition `refused` and `filters_match` false, so nothing is held back; `--limit N` ranks at most N, up to 25. It fetches nothing and registers nothing. The catalogue holds one provider (Data.gov) and only part of it, so it is never exhaustive and an empty answer is not evidence that no such source exists. When the answer is `catalog_unavailable`, this deployment has no catalogue to search: record the lane and carry on. |
|
|
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. A `query` body with `search.engine=resident` uses MCP and the workspace of `MOSTLYRIGHT_USE_KEY`. For ordinary query bodies, `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 those commands pass no table bytes. `pull SLUG` writes the dataset into `DIR/SLUG/` (`--dir`, default `./datasets`; `--table TABLE_ID` repeats to pick tables): `README.md`, `dataset.json`, and per table `schema.json` and `sample.json`, all read-only. Only with `--data` does it add each table's `data.parquet`, and only where the publisher enabled download and an `mr_use_` key is in the `MOSTLYRIGHT_USE_KEY` environment variable; never pass the key as an argument. `--data` connects the dataset to the key's workspace and counts each download against its allowance, so leave it off unless the bytes are needed. A rerun asks Cloud whether a file it already verified is still current and keeps it when Cloud says so, and a failed table is recorded in `dataset.json` without stopping the others. |
|
|
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. For app integration or polling, run `mr-data public api-guide TABLE_ID` for the table’s query and conditional snapshot requests. A public guide needs no login. For a private workspace table set `MOSTLYRIGHT_USE_KEY` in the environment. A `query` body with `search.engine=resident` uses MCP and the workspace of `MOSTLYRIGHT_USE_KEY`. For ordinary query bodies, `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 those commands pass no table bytes. `pull SLUG` writes the dataset into `DIR/SLUG/` (`--dir`, default `./datasets`; `--table TABLE_ID` repeats to pick tables): `README.md`, `dataset.json`, and per table `schema.json` and `sample.json`, all read-only. Only with `--data` does it add each table's `data.parquet`, and only where the publisher enabled download and an `mr_use_` key is in the `MOSTLYRIGHT_USE_KEY` environment variable; never pass the key as an argument. `--data` connects the dataset to the key's workspace and counts each download against its allowance, so leave it off unless the bytes are needed. A rerun asks Cloud whether a file it already verified is still current and keeps it when Cloud says so, and a failed table is recorded in `dataset.json` without stopping the others. |
|
|
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
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. |
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/router.py
RENAMED
|
@@ -148,7 +148,7 @@ HOSTED_SUMMARY = dict(
|
|
|
148
148
|
("catalog", "ask the sealed public-source catalogue what might answer a question"),
|
|
149
149
|
(
|
|
150
150
|
"public",
|
|
151
|
-
"
|
|
151
|
+
"browse published datasets, get application API examples (api-guide) and download data",
|
|
152
152
|
),
|
|
153
153
|
("connected", "list or connect public datasets for this workspace (device key)"),
|
|
154
154
|
("ask", "ask the support agent a question about a run, a source or a refusal"),
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_public.py
RENAMED
|
@@ -16,6 +16,7 @@ Command map (MCP tool → CLI verb):
|
|
|
16
16
|
* ``get_dataset`` → ``mr-data public show``
|
|
17
17
|
* ``list_tables`` → ``mr-data public tables``
|
|
18
18
|
* ``get_table_schema`` → ``mr-data public schema``
|
|
19
|
+
* ``get_access_instructions`` with table_id → ``mr-data public api-guide``
|
|
19
20
|
* ``sample_rows`` → ``mr-data public sample``
|
|
20
21
|
* ``search`` (connector) → ``mr-data public lookup``
|
|
21
22
|
* ``fetch`` (connector) → ``mr-data public fetch``
|
|
@@ -87,6 +88,7 @@ ACTIONS: tuple[str, ...] = (
|
|
|
87
88
|
"fetch",
|
|
88
89
|
"query",
|
|
89
90
|
"download-url",
|
|
91
|
+
"api-guide",
|
|
90
92
|
"pull",
|
|
91
93
|
)
|
|
92
94
|
|
|
@@ -189,7 +191,7 @@ def declare_arguments(parser: argparse.ArgumentParser) -> None:
|
|
|
189
191
|
"tables lists table ids; schema reads one table schema; sample "
|
|
190
192
|
"returns published preview rows; lookup is the connector search "
|
|
191
193
|
"shape; fetch returns the Markdown document; pull writes the dataset "
|
|
192
|
-
"into DIR/SLUG"
|
|
194
|
+
"into DIR/SLUG; api-guide prints application query and polling examples for a table"
|
|
193
195
|
),
|
|
194
196
|
)
|
|
195
197
|
parser.add_argument(
|
|
@@ -198,7 +200,7 @@ def declare_arguments(parser: argparse.ArgumentParser) -> None:
|
|
|
198
200
|
default=None,
|
|
199
201
|
help=(
|
|
200
202
|
"for search/lookup: the query string; for show/tables/fetch/pull: the "
|
|
201
|
-
"dataset slug; for schema/sample: the table UUID"
|
|
203
|
+
"dataset slug; for schema/sample/api-guide: the table UUID"
|
|
202
204
|
),
|
|
203
205
|
)
|
|
204
206
|
parser.add_argument(
|
|
@@ -980,7 +982,7 @@ class AgentSearchClient(PublicCatalogClient):
|
|
|
980
982
|
envelope = None
|
|
981
983
|
self.response_metadata = cloud_response_metadata(status, envelope, response_headers)
|
|
982
984
|
if status != 200:
|
|
983
|
-
raise cloud_refusal(status, envelope, act="
|
|
985
|
+
raise cloud_refusal(status, envelope, act=f"call {name}", headers=response_headers)
|
|
984
986
|
if (
|
|
985
987
|
not isinstance(envelope, dict)
|
|
986
988
|
or envelope.get("id") != 1
|
|
@@ -1002,7 +1004,7 @@ class AgentSearchClient(PublicCatalogClient):
|
|
|
1002
1004
|
raise cloud_refusal(
|
|
1003
1005
|
http_status if type(http_status) is int else 400,
|
|
1004
1006
|
{**answer, "detail": answer.get("message") or answer.get("detail")},
|
|
1005
|
-
act="
|
|
1007
|
+
act=f"call {name}",
|
|
1006
1008
|
headers=headers,
|
|
1007
1009
|
)
|
|
1008
1010
|
return answer
|
|
@@ -1172,6 +1174,21 @@ def _query(args: argparse.Namespace, client: Any = None) -> dict[str, Any]:
|
|
|
1172
1174
|
}
|
|
1173
1175
|
|
|
1174
1176
|
|
|
1177
|
+
def _api_guide(args: argparse.Namespace, client: Any = None) -> dict[str, Any]:
|
|
1178
|
+
table_id = _require_table_id(getattr(args, "target", None))
|
|
1179
|
+
selected = client or AgentSearchClient(resolve_public_origin())
|
|
1180
|
+
answer = selected.call_tool("get_access_instructions", table_id, {})
|
|
1181
|
+
guide = answer.get("integration")
|
|
1182
|
+
if not isinstance(guide, dict):
|
|
1183
|
+
raise ThinLaneError("THIN_RESPONSE_INVALID", "Cloud returned no table integration guide")
|
|
1184
|
+
return {
|
|
1185
|
+
"schema_version": f"{THIN_SCHEMA_PREFIX}-v4-public-api-guide.v1",
|
|
1186
|
+
"status": "public_api_guide_shown",
|
|
1187
|
+
"integration": guide,
|
|
1188
|
+
**({"note": answer["note"]} if answer.get("note") else {}),
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
|
|
1175
1192
|
def _download_url(args: argparse.Namespace, client: Any = None) -> dict[str, Any]:
|
|
1176
1193
|
table_id = _require_table_id(getattr(args, "target", None))
|
|
1177
1194
|
selected = _auth_query_client(client if isinstance(client, PublicQueryClient) else None)
|
|
@@ -1205,6 +1222,7 @@ _HANDLERS = {
|
|
|
1205
1222
|
"fetch": _fetch,
|
|
1206
1223
|
"query": _query,
|
|
1207
1224
|
"download-url": _download_url,
|
|
1225
|
+
"api-guide": _api_guide,
|
|
1208
1226
|
"pull": _pull,
|
|
1209
1227
|
}
|
|
1210
1228
|
|
|
@@ -1256,6 +1274,7 @@ def public(
|
|
|
1256
1274
|
"lookup",
|
|
1257
1275
|
"query",
|
|
1258
1276
|
"download-url",
|
|
1277
|
+
"api-guide",
|
|
1259
1278
|
"pull",
|
|
1260
1279
|
}
|
|
1261
1280
|
and not args.target
|
|
@@ -1269,6 +1288,7 @@ def public(
|
|
|
1269
1288
|
"lookup": "a query string",
|
|
1270
1289
|
"query": "a table UUID",
|
|
1271
1290
|
"download-url": "a table UUID",
|
|
1291
|
+
"api-guide": "a table UUID",
|
|
1272
1292
|
"pull": "a dataset slug",
|
|
1273
1293
|
}[action]
|
|
1274
1294
|
raise ThinLaneError("THIN_REQUEST_INVALID", f"public {action} needs {needed}")
|
|
@@ -1288,7 +1308,7 @@ def public(
|
|
|
1288
1308
|
"THIN_REQUEST_INVALID",
|
|
1289
1309
|
f"{', '.join(stray)} apply to public pull, not public {action}",
|
|
1290
1310
|
)
|
|
1291
|
-
if action in {"query", "download-url"}:
|
|
1311
|
+
if action in {"query", "download-url", "api-guide"}:
|
|
1292
1312
|
return _HANDLERS[action](args, client)
|
|
1293
1313
|
selected = _client(args, client=client)
|
|
1294
1314
|
return _HANDLERS[action](args, selected)
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/render.py
RENAMED
|
@@ -498,6 +498,7 @@ STATUS_HEADLINES: dict[str, str] = {
|
|
|
498
498
|
"support_budget_exhausted": "The support agent ran out of budget; this is as far as it got.",
|
|
499
499
|
"support_pending": "The support agent has the question.",
|
|
500
500
|
"support_running": "The support agent is still working on that question.",
|
|
501
|
+
"public_api_guide_shown": "Connect your application to this table.",
|
|
501
502
|
"public_table_queried": "Here are the query results.",
|
|
502
503
|
"public_download_url_shown": "Here are the download instructions for that table.",
|
|
503
504
|
"table_verified": "The table matches the manifest that names it.",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/agents/openai.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/boundaries.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/live-run.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/one-install.md
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/patterns.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/promote.md
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/readers.md
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/receipts.md
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/recipe-test.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/sources.md
RENAMED
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/skills/mr-data-build/references/transforms.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/__init__.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/agent_protocol.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/canonical.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/key_seam.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/page_coverage.py
RENAMED
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/session_probes.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/skill_assets.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/table_manifest.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/__init__.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/activity.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/backoff.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/delivery.py
RENAMED
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/download.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/probe.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/recipe.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/research.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/runs.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/session.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/stream.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/support.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/transport.py
RENAMED
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_query.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_reader.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_runs.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_search.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_stream.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/thin/v4_tables.py
RENAMED
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/__init__.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/attendance.py
RENAMED
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/cloud_auth.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/credentials.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/login.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/path_kind.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/plain_file.py
RENAMED
|
File without changes
|
{mostlyright_data-0.31.41 → mostlyright_data-0.31.42}/src/mostlyright/data_harness/ux/remediation.py
RENAMED
|
File without changes
|