@malloy-publisher/skills 0.1.61 → 0.1.63

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 (44) hide show
  1. package/package.json +1 -1
  2. package/skills/eval-answer/SKILL.md +1 -1
  3. package/skills/eval-diagnose/SKILL.md +1 -1
  4. package/skills/eval-import/SKILL.md +1 -1
  5. package/skills/eval-improve/SKILL.md +1 -1
  6. package/skills/eval-judge/SKILL.md +1 -1
  7. package/skills/eval-loop/SKILL.md +1 -1
  8. package/skills/eval-loop/templates/eval-run-package/README.md +2 -3
  9. package/skills/eval-report/SKILL.md +1 -1
  10. package/skills/malloy-analysis/SKILL.md +1 -1
  11. package/skills/malloy-analysis-report/SKILL.md +3 -3
  12. package/skills/malloy-charts/SKILL.md +1 -1
  13. package/skills/malloy-classify/SKILL.md +1 -1
  14. package/skills/malloy-compliance-review/SKILL.md +1 -1
  15. package/skills/malloy-dashboards/SKILL.md +1 -1
  16. package/skills/malloy-define/SKILL.md +1 -1
  17. package/skills/malloy-define-agent/SKILL.md +1 -1
  18. package/skills/malloy-discover/SKILL.md +1 -1
  19. package/skills/malloy-document/SKILL.md +1 -1
  20. package/skills/malloy-excel-review/SKILL.md +1 -1
  21. package/skills/malloy-getting-started/SKILL.md +1 -1
  22. package/skills/malloy-gotchas-modeling/SKILL.md +1 -1
  23. package/skills/malloy-html-data-apps/SKILL.md +2 -2
  24. package/skills/malloy-lookml-review/SKILL.md +1 -1
  25. package/skills/malloy-materialization/SKILL.md +17 -26
  26. package/skills/malloy-materialization/reference/access-filter.md +1 -1
  27. package/skills/malloy-materialization/reference/annotation.md +3 -3
  28. package/skills/malloy-materialization/reference/storage.md +2 -2
  29. package/skills/malloy-materialization/reference/tuning.md +1 -1
  30. package/skills/malloy-model/SKILL.md +1 -1
  31. package/skills/malloy-model/reference/analysis-to-model.md +1 -1
  32. package/skills/malloy-model-as-you-go/SKILL.md +1 -1
  33. package/skills/malloy-modeling/SKILL.md +3 -3
  34. package/skills/malloy-notebooks/SKILL.md +1 -1
  35. package/skills/malloy-phrase-detection/SKILL.md +1 -1
  36. package/skills/malloy-powerbi-review/SKILL.md +1 -1
  37. package/skills/malloy-publish/SKILL.md +2 -2
  38. package/skills/malloy-queries/SKILL.md +1 -1
  39. package/skills/malloy-reports/SKILL.md +3 -3
  40. package/skills/malloy-reports/reference/linear.md +1 -3
  41. package/skills/malloy-review/SKILL.md +1 -1
  42. package/skills/malloy-review/reference/rubric-structure.md +1 -1
  43. package/skills/malloy-run-agent/SKILL.md +1 -1
  44. package/skills/malloy-source-unreachable/SKILL.md +2 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@malloy-publisher/skills",
3
3
  "description": "Agent skills for Malloy and the Malloy Publisher",
4
- "version": "0.1.61",
4
+ "version": "0.1.63",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: eval-answer
3
3
  description: 'Score one analytical answer against a verified golden, and score which of the entities the golden depends on retrieval delivered to the answerer. Run the contamination checklist, re-execute the submitted query yourself, then spawn a judge subagent per skill:eval-judge. Append attempt, tool_call, score, and retrieval_score events to the file ledger (reference/ledger-schema.md). Never explain the failure (eval-diagnose) or edit the model (eval-improve). Use when asked whether an answer was correct, to score a run, or to baseline a model.'
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  # Evaluate One Answer
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: eval-diagnose
3
3
  description: 'Diagnose why a scored answer failed and who owns the fix, then cluster the failures by shared root cause. Walk dataset, agent-call, get_context/model, get_context/retrieval, construction, then model-definition. Append issue events to the file ledger, linked by traceId, one per cluster. Use after eval-answer, when triaging a run, or before changing a model. Does not edit the model (eval-improve).'
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  # Diagnose One Answer
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: eval-import
3
3
  description: 'Turn a list of questions into an eval set, whatever shape it arrived in: a JSONL a customer sent, a CSV, a spreadsheet export, a markdown doc, an email thread, or a pull from production logs. Classify each item by what came WITH the question (a query, a number, prose criteria, or nothing), write cases.jsonl and set.json per reference/case-format.md, keep the file as it arrived, and seal each question so a later edit is detectable. Never marks a value-bearing golden verified and never invents a question. Use when questions arrive from outside and need to become a set, or before the first run against a set nobody here authored.'
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  # Import questions into an eval set
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: eval-improve
3
3
  description: 'Make the smallest safe edit that closes a diagnosed gap the model repo owns: a Malloy model edit, or a package skill under skills/. Every factual claim carries a probe receipt. Use after eval-diagnose, or when asked to fix a model so an agent can discover the right answer. Never accepts its own edit; the acceptance check belongs to eval-loop. Does not decide whether an answer was wrong (eval-answer) or why (eval-diagnose).'
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  # Improve the Model
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: eval-judge
3
3
  description: 'Decide whether ONE answer matches its golden, and say whether you believe the golden. Read this before emitting any verdict. Covers containment, column pairing, near_match, refusals, and the gold_status judgement. Use when scoring an attempt in an evaluation run; never to conduct a run (eval-loop), diagnose a failure (eval-diagnose) or edit a model (eval-improve).'
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  # The judge
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: eval-loop
3
3
  description: 'Conduct a local Publisher evaluation loop in five steps: scrape/run, eval, diagnose, improve, checkpoint. You are the conductor: import cases into the file ledger, spawn a blind answerer, then run eval-answer, eval-diagnose, and eval-improve. Persistence is plain files: the set in the model package''s evals/ directory, runs in the set''s workdir; checkpoints are git commits of the model repo. `eval.py` runs each step from the set''s eval.toml. Use to score a model, diagnose failures, improve behind an acceptance check, or roll back a bad direction.'
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  # The Evaluation Loop
@@ -152,9 +152,8 @@ curl -s .../api/v0/environments/<env>/packages/<pkg>/reports # lists the rep
152
152
  `models` returns a 424 with the full compiler error when the Malloy is broken,
153
153
  which is the fastest way to see a compile failure. Reports are listed by
154
154
  `reports`, and a linear report is **not** in the `models` list. It still compiles
155
- as a model, so `models/notebooks/eval_run.malloy` shows its compile errors; only a
156
- legacy `.malloynb` returns `404 "<file> is a notebook"` there. To verify every
157
- tile, run each named query through `execute_query`.
155
+ as a model, so `models/notebooks/eval_run.malloy` shows its compile errors. To verify
156
+ every tile, run each named query through `execute_query`.
158
157
 
159
158
  Pass `--mcp_port` explicitly. It defaults to 4040 and any other local Publisher
160
159
  already holds it; the server logs `Port 4040 in use` and carries on without an MCP
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: eval-report
3
3
  description: 'Write the summary a person reads after an evaluation run: what ran, what it scored, which failures were the MODEL and which were the EVAL itself (out of turns, contaminated, unestablished golden, unreadable judge), what was learned, and what to do next. Every claim links to the artifact behind it. Use at the end of any run, before quoting a number to anyone. Never scores an answer (eval-answer) or decides who owns a failure (eval-diagnose).'
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  # Report a Run
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-analysis
3
3
  description: "Read before your first get_context call on any business or data question. The required workflow, not background: which source, which rows, how to verify. Skipping it causes confident wrong answers."
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  <!-- Copyright (c) Credible Data Inc. SPDX-License-Identifier: MIT -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-analysis-report
3
3
  description: Combine validated Malloy queries into a report (a linear report, read top to bottom). Use when the user asks to "create a report", "combine these into a report", or wants a persistent multi-query artifact.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  <!--
@@ -11,7 +11,7 @@ SPDX-License-Identifier: MIT
11
11
 
12
12
  # Creating Reports
13
13
 
14
- An ad-hoc report is a Publisher **report** with `layout=linear`: a `.malloy` file at the package root, `<slug>.malloy` (unless the user asks for another location), that combines markdown narrative with live Malloy queries, as text tiles and query tiles read top to bottom. Load `skill:malloy-reports` for the full format and authoring rules; this skill covers when to build one and how to design good report content (tiles, chart annotations, narrative structure). Never write a new `.malloynb`, never write a report as bare `run:` statements (that older form is no longer read), and do not create a `notebooks/` or `dashboards/` directory for it.
14
+ An ad-hoc report is a Publisher **report** with `layout=linear`: a `.malloy` file at the package root, `<slug>.malloy` (unless the user asks for another location), that combines markdown narrative with live Malloy queries, as text tiles and query tiles read top to bottom. Load `skill:malloy-reports` for the full format and authoring rules; this skill covers when to build one and how to design good report content (tiles, chart annotations, narrative structure). Never write a report as bare `run:` statements (that older form is no longer read), and do not create a `notebooks/` or `dashboards/` directory for it.
15
15
 
16
16
  ## Before building a report
17
17
 
@@ -188,7 +188,7 @@ Key rendering rules to keep in mind when shaping a tile:
188
188
 
189
189
  ## Editing an existing report
190
190
 
191
- For small targeted changes (fix one view, insert one tile), edit that view or text block in place and add its entry to `tiles=[…]`, rather than recreating the whole report. For structural rewrites (reordering many tiles, changing the narrative arc), rewrite the report file. An existing `.malloynb` is read, not edited: to change its story, write a `.malloy` report. A tag that sets `kind=notebook` is no longer read, so the file is not a report (`report-kind-removed`): replace it with `layout=linear` and list the tiles. A linear file with no `tiles=[…]`, written as bare `run:` statements, is no longer a report: rewrite it as tiles (`skill:malloy-reports`, `reference/linear.md`).
191
+ For small targeted changes (fix one view, insert one tile), edit that view or text block in place and add its entry to `tiles=[…]`, rather than recreating the whole report. For structural rewrites (reordering many tiles, changing the narrative arc), rewrite the report file. A tag that sets `kind=notebook` is no longer read, so the file is not a report (`report-kind-removed`): replace it with `layout=linear` and list the tiles. A linear file with no `tiles=[…]`, written as bare `run:` statements, is no longer a report: rewrite it as tiles (`skill:malloy-reports`, `reference/linear.md`).
192
192
 
193
193
  ## IMPORTANT
194
194
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-charts
3
3
  description: Read before choosing a chart or adding a chart annotation. Chart types, tag syntax and scale rules, KPI cards, dashboards, sparklines, and the renderer mistakes that fail silently.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-classify
3
3
  description: 'Propose #(classification) annotations for a Malloy model from an access policy''s class scheme, backed by aggregate value evidence from the served data, and show them as a diff before writing anything. Use when the user asks to "classify the model", "tag PHI/PII", "label sensitive fields", or adds fields to a package that a policy governs, and before running malloy-compliance-review on a model nobody has classified.'
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  <!--
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-compliance-review
3
3
  description: 'Check a Malloy package and its controls against a written access policy: turn the policy''s prose into a control register, run compliance.py check against a served package (structure, access as each role, and the values themselves), judge what needs a person, and produce a report and a signable attestation. Use when the user asks whether a model "complies with", "satisfies" or "meets" a policy, HIPAA, SOC 2, PCI or the like, asks for a compliance review or attestation, or wants the review in CI.'
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  <!--
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-dashboards
3
3
  description: "Renamed to malloy-reports. A dashboard is now a report with layout=grid: a .malloy file with an ## artifact tag, written at the package root. Load malloy-reports instead when the user asks for a dashboard, a filterable view, or drill-through between views."
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  <!--
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-define
3
3
  description: Propose scope, a source plan and field definitions for a Malloy model. Which tables and questions, which sources at what grain, then renames, dimensions and measures, each backed by querying data.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-define-agent
3
3
  description: Define a package agent - a named brief, with its own skills, optional schedules and a run budget, declared in a package's publisher.json. Use when the user asks to create, add, change or fix an agent in a package, or wants a recurring or unattended job. Not for adopting an agent that already exists (that is malloy-run-agent), and not for a one-off question, which you just answer.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-discover
3
3
  description: Silent data discovery for Malloy modeling. Used at Step 1 of the modeling workflow. Scans tables, columns, distributions, and relationships without user interaction. The agent builds an internal picture before presenting anything.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-document
3
3
  description: 'Add documentation with #(doc) tags to Malloy models so fields and sources are described in plain language. Use when user asks to "add documentation", "add doc tags", "document the model", or wants fields and sources described for natural-language search and discovery. For runtime filters, declare given: parameters (see the malloy-model skill); #(filter) is deprecated. Filters are a runtime/modeling construct (governance, latency, correctness), not a documentation tag.'
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  <!--
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-excel-review
3
3
  description: Move an Excel workbook (.xlsx or .xlsm) onto Malloy - recover the model hiding in its cells, translate its formulas and pivots, and prove the numbers match against the values the file already stores. Use when a workbook is present, when a user wants to migrate or switch off a spreadsheet, and whenever a specific formula has to become Malloy - SUMIFS, COUNTIF, SUMPRODUCT, VLOOKUP, XLOOKUP, INDEX/MATCH, pivot tables, assumption cells, roll-forwards, circular references, Monte Carlo, or a Power Pivot model. Carries worked recipes, each labelled executed or semantics-cited in place, and states what each port costs. Works with or without a database connection.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-getting-started
3
3
  description: First steps for using a Malloy Publisher deployment through its MCP tools. Use when connecting to Publisher for the first time, when you do not yet know the available environments, packages, or models, or when a user asks what data they can explore. Also use for "malloy help" or which Malloy skill to read. Covers verifying the server, discovering data with get_context, and running a first grounded query.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-gotchas-modeling
3
3
  description: Malloy modeling mistakes and compile-error fixes. Read before writing sources, dimensions, measures or joins, and when a .malloy file will not compile. Reserved words, NULLs, dates, field access.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-html-data-apps
3
3
  description: "Build or modify an in-package HTML data app for a Malloy Publisher package (a public/ directory the package serves): design it, write its Publisher.query code, embed it. Hand-authored, no build step."
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -182,7 +182,7 @@ If you did not start the server (someone handed you a running one), **probe befo
182
182
  }
183
183
  ```
184
184
 
185
- A local package uses a filesystem `location` (`"./<pkg>"`, relative to the directory holding `publisher.config.json`); a remote one uses a GitHub `tree` URL. If one model in the package fails to compile, the **whole package** fails to load, so a stray notebook/model error blanks every tile. (Common one: a notebook that imports `x.malloy` more than once, such as a `.malloynb` whose cells each `import "x.malloy"`, compiles as one batch, so the repeated import errors `Cannot redefine 'x'`. Import once, at the top.)
185
+ A local package uses a filesystem `location` (`"./<pkg>"`, relative to the directory holding `publisher.config.json`); a remote one uses a GitHub `tree` URL. If one model in the package fails to compile, the **whole package** fails to load, so a stray notebook/model error blanks every tile. (Common one: a report that imports `x.malloy` more than once compiles as one batch, so the repeated import errors `Cannot redefine 'x'`. Import once, at the top.)
186
186
 
187
187
  ### Publishing
188
188
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-lookml-review
3
3
  description: Analyze LookML files as prior art for Malloy modeling. Used during Step 1 (DISCOVER) when .lkml files are present. Coordinates reference files that extract business logic, relationships, and curation decisions. Works with or without a database connection.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-materialization
3
3
  description: Add, confirm and debug Malloy Persistence materializations in a package - persist an expensive source so queries read a pre-built table, in the source's own warehouse or in a storage destination. Read this whenever the user wants to materialize a source, add a persist annotation, speed up a slow source, build one stored rollup over another, tune what to persist, or asks why a persist source isn't building or isn't being read.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -12,7 +12,7 @@ SPDX-License-Identifier: MIT
12
12
 
13
13
  Materialize an expensive source once so queries read a **pre-built table** instead of recomputing it every time. You tag a source `#@ persist`, a materialization run builds it into a physical table, and queries against it are rewritten to read that table.
14
14
 
15
- > **The #1 gotcha, up front:** if a persist source isn't materializing, it is almost always one of four things - no build ever ran (a standalone Publisher does not build on publish - see **Building and refreshing**), a build ran and failed or lost that one source (a run can finish ready with `failures`; read them), the model declaring the source has no `##! experimental.persistence` flag and nothing flagged imports it (it is skipped without a warning), or the package was reloaded since the build (a reload drops the bindings until the next run). Jump to **Debugging a no-op build**.
15
+ > **The #1 gotcha, up front:** if a persist source isn't materializing, it is almost always one of three things - no build ever ran (a standalone Publisher does not build on publish - see **Building and refreshing**), a build ran and failed or lost that one source (a run can finish ready with `failures`; read them), or the package was reloaded since the build (a reload drops the bindings until the next run). Jump to **Debugging a no-op build**.
16
16
 
17
17
  This file is the core. The details live beside it, one topic per file, and each is a prompt of its own:
18
18
 
@@ -26,19 +26,17 @@ This file is the core. The details live beside it, one topic per file, and each
26
26
 
27
27
  ## v1 or v2: which spelling to write
28
28
 
29
- Publisher has two spellings. **v1** is `#@ persist` on a source and `#@ preaggregate` on a measure, and every server reads it. **v2** is `#(materialize)` on a source and `#(rollup)` on a measure, on by default behind the server switch `PUBLISHER_MATERIALIZE` (`false` turns it off; the switch is removed one release after the default ships). Since the v1 cutover both are served the same way: a stored table by the served copy (the author's own files with each stored source re-rooted on its table), a rollup by the rollup leg, so a query reads a table only when the path report says so. Everything else in this skill describes v1 unless it says otherwise.
29
+ Publisher has two spellings. **v1** is `#@ persist` on a source and `#@ preaggregate` on a measure, and every server reads it. **v2** is `#(materialize)` on a source and `#(rollup)` on a measure, and every server reads it too. Since the v1 cutover both are served the same way: a stored table by the served copy (the author's own files with each stored source re-rooted on its table), a rollup by the rollup leg, so a query reads a table only when the path report says so. Everything else in this skill describes v1 unless it says otherwise.
30
30
 
31
- **Pick by what the server runs, then by where the table goes:**
31
+ **Pick by where the table goes:**
32
32
 
33
- | The server | A table in a storage destination | A table in the source's own warehouse | A rollup on a measure |
34
- |---|---|---|---|
35
- | `PUBLISHER_MATERIALIZE` on (the default) | `#(materialize) storage="lake"` (needs `PERSIST_STORAGE_MODE=on` too) | `#(materialize)`, or `#(materialize) name="schema.table"` to name and place it | `#(rollup) grain=["a", "b"]` |
36
- | switch off (`PUBLISHER_MATERIALIZE=false`) | `#@ persist name="..." storage="lake"` | `#@ persist name="..."` | `#@ preaggregate grain="a, b"` |
33
+ | A table in a storage destination | A table in the source's own warehouse | A rollup on a measure |
34
+ |---|---|---|
35
+ | `#(materialize) storage="lake"` | `#(materialize)`, or `#(materialize) name="schema.table"` to name and place it | `#(rollup) grain=["a", "b"]` |
37
36
 
38
- So for new work, write v2 where the server has the switch on, and v1 where it is off. A source with a row-level gate (`#(authorize)`, `#(access_filter)`) of its own is built and served past that gate on either tier, database or `storage=`, `#(materialize)` or `#@ persist`, with `PUBLISHER_MATERIALIZE_GATED_SOURCES` off: the table holds every caller's rows and the gate is re-applied on every read. A `storage=` table puts those rows, ungated, in the destination, where anyone with direct access to it can read them; say so when you materialize a gated source there. A row filter it inherits, a gate reached through a join, or a gate over a source whose build reads a given is refused on both tiers. Ask whoever runs the server if you cannot tell; the startup log lists `materialize.enabled=true from PUBLISHER_MATERIALIZE` when it is on. **With the switch off, `#(materialize)` is ignored with no warning at all** (no build, no serve verdict, answered live), and `#(rollup)` is only an `annotation-near-miss` warning, so a v2 annotation on a v1 server looks exactly like a build that never ran.
37
+ So for new work, write v2. A source with a row-level gate (`#(authorize)`, `#(access_filter)`) of its own is built and served past that gate on either tier, database or `storage=`, `#(materialize)` or `#@ persist`: the table holds every caller's rows and the gate is re-applied on every read. A `storage=` table puts those rows, ungated, in the destination, where anyone with direct access to it can read them; say so when you materialize a gated source there. A row filter it inherits, a gate reached through a join, or a gate over a source whose build reads a given is refused on both tiers.
39
38
 
40
39
  ```malloy
41
- // v2, switch on: no ##! experimental.persistence needed in this file
42
40
  #(materialize) name="east_orders" storage="lake"
43
41
  source: east_orders is orders_base extend {
44
42
  where: region = 'east'
@@ -55,20 +53,16 @@ source: sales is orders_base extend {
55
53
  What is different about v2, briefly:
56
54
 
57
55
  - **It stores the source as written** - every dimension (computed, private and internal ones too) with its `where:` applied, not a query's output - so a plain `extend` over a table is fine and needs no `-> { select: * }`. Keys are closed: `name`, `storage`, `refresh`, `watermark`, `merge_key`, `lookback`, `freshness.*`, `queryMetadata.*`, `inline`. Any other key fails the publish and the load (`materialize-unknown-key`; the retired `partition=` is `materialize-retired-key`).
58
- - **The base must not declare measures, views or joins**, unless the base is materialized too. A `#(materialize)` source that inherits one is built but never read: `served-copy-not-served` ("This source inherits fields ..."), serve verdict `live` / `served_copy`, every query live. Build over a base with none (as above), or keep the query shape (`orders -> { select: * } extend { ... }`) and declare the measures after it.
56
+ - **A base's measures, views and joins are carried** when the base is named by its own name, in the source's file or a file it imports: the served copy writes the base's `extend` block again over the table, and every file that imports the source reads the table. A source the base's block reads that the source's file cannot see (a join to a source the base's file imports) is imported into the served copy for it. It cannot when the base comes in under another name (`import { o is orders } from ...`), or the source's file declares or imports a different source under a name the block reads: then the source is built but answered live, `served-copy-not-served` ("This source inherits fields ..."), serve verdict `live` / `served_copy`. Name the base by its own name and rename the clashing source, build over a base with none (as above), or keep the query shape (`orders -> { select: * } extend { ... }`) and declare the measures after it.
59
57
  - **Joins are references by default.** `inline=["j"]` stores a join_one as `j__<field>` columns, or a join_many as a pair table; an incremental pair table names a watermark on each side, `watermark=["updated_at", "j.updated_at"]`.
60
- - **`#@ persist` on a view and `#@ -persist` on a reader are the same in both.** A persisted view is built only with the switch on, and so is `#@ persist` on a named `query:` (`reference/annotation.md`). Off, either is answered live, its line is still read (an invalid one fails the load), and a valid one warns `persist-view-not-built` or `persist-query-not-built`. `#@ preaggregate` is deprecated (a `deprecated-preaggregate-annotation` warning with the switch on; it still builds). So is `#(preaggregate)`, `#(rollup)`'s former name: it is read the same for one release, with the same warning, and a measure that carries both fails the load (`rollup-invalid`). Write `#(rollup)`.
58
+ - **`#@ persist` on a view and `#@ -persist` on a reader are the same in both.** A persisted view is built, and so is `#@ persist` on a named `query:` (`reference/annotation.md`). `#@ preaggregate` is deprecated (a `deprecated-preaggregate-annotation` warning; it still builds). So is `#(preaggregate)`, `#(rollup)`'s former name: it is read the same for one release, with the same warning, and a measure that carries both fails the load (`rollup-invalid`). Write `#(rollup)`.
61
59
  - **Confirm it the v2 way.** The package's serve verdicts (`GET .../packages/{pkg}/status`, `serveVerdicts`) read `serves`; a query's path report reads `servedBy.kind: "materialized"` with `via: "served_copy"` (a rollup: `kind: "rollup"`; a persisted view: `kind: "view"`; a persisted named query: `kind: "query"`). `manifestBindingStatus` does not cover v2 tables.
62
60
 
63
61
  **Existing v1 code is not wrong**, and moving it is optional. When asked to move it, follow `docs/materialization-migration.md` in the Publisher repository: one v1 spelling at a time, a dry-run publish (`POST .../packages?dryRun=true`) to read the warnings and serve verdicts, a build (every migrated source rebuilds once, because its content address moves), then the path report and a served-versus-live comparison against an opted-out reader (`#@ -persist source: x_live is x extend {}`, declared in a model file, not in the query text). Keep the v1 source's `name=` when you move it: an unversioned or `scope: "package"` package's table stays at that name (the package's own runs wrote it). Without `name=`, a v2 table takes a readable name, `<package>__<file>__<source>__p<hash>`, and on BigQuery a database table then is not built: a `#(materialize)` or `#@ persist` source with no dataset-qualified `name=`, or a rollup whose `name=` (or its base's) gives no dataset, is refused at plan (reason `needs_qualified_name`) and serves live, so give it a dataset-qualified `name=`. Under `scope: "version"` a `name=` sets the start of the table's name, schema or dataset included, and the version and a hash follow it (`analytics.summary_t__v1_2_0__p<hash>`), and no view is ever made at `name=`.
64
62
 
65
63
  ## The recipe (get this right and it just works)
66
64
 
67
- 1. **`##! experimental.persistence` on every `.malloy` file that declares a `#@ persist` source** (a file whose only materializations are v2 `#(materialize)` needs none). Either form enables it:
68
- - `##! experimental.persistence`, or
69
- - `##! experimental { access_modifiers, sql_functions, persistence }` (add `persistence` to the existing list).
70
-
71
- **Why it matters:** the build plan walks only the models that carry the flag, and skips every other file **without a warning**. The flag is a property of the model being *walked*, not of the file that declares the annotation: a flagged model builds every persist source its walk reaches, including ones declared in a flagless file it imports, and a flagless file's persist sources build only when some flagged model imports it. So a `#@ persist` in a flagless file that nothing flagged imports is silently never built, while adding a flagged entry model that imports it starts building tables that were inert - neither state warns. Put the flag in the declaring file itself: that is the one placement whose effect does not depend on what else imports it. A file with no persist source of its own does not need the flag; adding it anyway is harmless. (`#@ preaggregate` rollups are the one exception: they build from an unflagged file, because they live in a model Publisher synthesizes.)
65
+ 1. **No `##! experimental.persistence` is needed.** Publisher plans every file's `#@ persist` sources itself, flagged or not, so a persist source is never skipped for a missing flag. A file that already carries the flag (either `##! experimental.persistence` or `persistence` in an `##! experimental { … }` list) is read the same way; leave it or remove it.
72
66
 
73
67
  2. **`#@ persist name="..."` on a query-based source, with the name quoted:**
74
68
  ```malloy
@@ -115,7 +109,7 @@ Either way, a successful publish alone does not prove a table exists - confirm t
115
109
 
116
110
  A green run is not proof, and neither is a fast query (on small data a live recompute is fast too). Check what the server says it serves:
117
111
 
118
- 1. **The run lists your source, and did not lose it.** A run's detail (`malloy-pub get materialization <id> --environment <env> --package <pkg>`) carries `manifest.entries`, a map keyed by `sourceEntityId` whose values name each built or reused source (`sourceName`) and its physical table. A run can finish `MANIFEST_FILE_READY` having built nothing (every source skipped for a missing flag, or carried forward unchanged) **or having lost a source**: a source that failed is absent from `entries` and present in `manifest.failures` with its error, and a source the eligibility gate refused is in `metadata.refusedSources`, while the run still reads ready. `metadata.sourcesBuilt` / `sourcesReused` / `sourcesFailed` / `sourcesRefused` are the counts. For a source built over another stored source, the entry's `upstreamReuse` says whether it read the parent's table (`reused`) or recomputed it (`recomputed`, with `upstreamRecomputeReason`) - see `reference/chaining.md`.
112
+ 1. **The run lists your source, and did not lose it.** A run's detail (`malloy-pub get materialization <id> --environment <env> --package <pkg>`) carries `manifest.entries`, a map keyed by `sourceEntityId` whose values name each built or reused source (`sourceName`) and its physical table. A run can finish `MANIFEST_FILE_READY` having built nothing (every source carried forward unchanged) **or having lost a source**: a source that failed is absent from `entries` and present in `manifest.failures` with its error, and a source the eligibility gate refused is in `metadata.refusedSources`, while the run still reads ready. `metadata.sourcesBuilt` / `sourcesReused` / `sourcesFailed` / `sourcesRefused` are the counts. For a source built over another stored source, the entry's `upstreamReuse` says whether it read the parent's table (`reused`) or recomputed it (`recomputed`, with `upstreamRecomputeReason`) - see `reference/chaining.md`.
119
113
  2. **The package is bound to those tables.** On a standalone Publisher the package's serving state, `GET /api/v0/environments/{env}/packages/{pkg}/status`, reports `manifestBindingStatus` and `manifestEntryCount` (an older server: its entry in `GET /api/v0/status`, or the package's details). The count covers tables built in the source's own warehouse only: it reads `bound` with a nonzero count when such a table is bound and `unbound` otherwise. A `storage=` table never counts there - it appears under the package's `storageServeBindings`, so a package whose only persist sources are `storage=` reads `unbound` while serving from the store. `live_fallback` is a hosted-only status: a configured `manifestLocation` could not be fetched or bound, and the previously bound manifest (if any) stays in force.
120
114
  3. **The query names the table.** A query's full result (the REST query response without `compactJson`) carries the SQL it ran. Served from the table, its `FROM` names the physical table; computed live, it carries the source's own SQL instead. This is the per-query proof.
121
115
  4. **A reload unbinds them.** Reloading the package - including the automatic reload when a watched file is saved - drops the binding, and queries compute live until the next materialization run, which reuses unchanged tables and binds them again. (A server *restart* re-establishes the bindings from its store; a reload does not.) After editing a model, run a build before you trust a timing.
@@ -128,23 +122,20 @@ Symptom: no table was built and the source still recomputes on every query. Chec
128
122
 
129
123
  0. **Did a build actually run?** On a standalone Publisher, publish/load does **not** build - run `malloy-pub materialize` (or enable the scheduler). "Publishes fine, no table" is the *expected* standalone state, not a model bug. On a hosted deployment the build is automatic but best-effort, so a failure is silent - look for a `FAILED` run, and for a ready run with `failures`.
130
124
  1. **Did the run fail, or lose this source?** A `FAILED` run's `error` names what stopped it. A ready run's `manifest.failures` names each source that did not build, and `metadata.refusedSources` each one the gate refused, with the reason to act on. The package flags some of these before any run: an unbuildable persist source appears in its warnings, and `GET …/packages/{pkg}/build-plan` lists the sources a run will build, the ones it will refuse, and under `omittedSources` any the planner itself failed on (a code per source, or under `omittedFiles` a file whose sources it could not name; the server log has the error). A `#@ persist` on a non-persistable source fails every run that covers it, naming the source.
131
- 2. **The declaring model is missing the persistence flag** and nothing flagged imports it: skipped without any warning, the run succeeds, the source is simply absent from what was built. Add the flag to the declaring file.
132
- 3. **An unquoted persist name** - a bare `name=foo` **always** stops the load with `persist annotation name must be quoted`. (If you got *no* error at all, it isn't this.)
133
- 4. **The package was reloaded** after the build (a saved file under watch mode counts). The tables exist and the run reads ready; the binding is gone. Run a build. And if a watched edit failed to compile, the server keeps serving the **old** model and its binding, and records the error under `staleCompileErrors` on `/status` - so "still bound" after an edit can mean the edit never took.
134
- 5. **A `storage=` source serves live while the store is switched off.** With `PERSIST_STORAGE_MODE=off` a `storage=` source is skipped by the build and served live, with no error; it is never built into the warehouse instead. See `reference/storage.md`.
125
+ 2. **An unquoted persist name** - a bare `name=foo` **always** stops the load with `persist annotation name must be quoted`. (If you got *no* error at all, it isn't this.)
126
+ 3. **The package was reloaded** after the build (a saved file under watch mode counts). The tables exist and the run reads ready; the binding is gone. Run a build. And if a watched edit failed to compile, the server keeps serving the **old** model and its binding, and records the error under `staleCompileErrors` on `/status` - so "still bound" after an edit can mean the edit never took.
127
+ 4. **A `storage=` source naming a destination the environment does not configure** serves live, with a `materialization-destination-missing` warning; no build can write its table. See `reference/storage.md`.
135
128
 
136
129
  **Isolation test** - add a trivial, self-contained persist source in its own file and rebuild:
137
130
  ```malloy
138
- ##! experimental.persistence
139
131
  source: smoke_raw is my_conn.table('some_dataset.some_table')
140
132
  #@ persist name="scratch_dataset.persist_smoke_test"
141
133
  source: persist_smoke is smoke_raw -> { aggregate: n is count() }
142
134
  ```
143
- If **even this** doesn't build after a real run, the problem is package-wide: read the run's error (a non-persistable source anywhere fails the whole run and names it), then check that the connection can write the target dataset. If the smoke source builds and your real one doesn't, your real source is the problem: its file's flag, or its entry in `failures` / `refusedSources`. Delete the smoke file, delete its run (`malloy-pub delete materialization <id>`, record-only), and drop its table (`DELETE …/connections/{connectionName}/materializedTables/{physicalTableName}`, which refuses a table still in use).
135
+ If **even this** doesn't build after a real run, the problem is package-wide: read the run's error (a non-persistable source anywhere fails the whole run and names it), then check that the connection can write the target dataset. If the smoke source builds and your real one doesn't, your real source is the problem: read its entry in `failures` / `refusedSources`, and its build-plan record. Delete the smoke file, delete its run (`malloy-pub delete materialization <id>`, record-only), and drop its table (`DELETE …/connections/{connectionName}/materializedTables/{physicalTableName}`, which refuses a table still in use).
144
136
 
145
137
  ## Gotchas
146
138
 
147
- - **Flag every file that declares a persist source** - a flagless model nothing flagged imports is skipped without a warning.
148
139
  - **A `#@ persist` on a plain `extend` over `conn.table(...)` fails the run** - every run that covers it, naming the source.
149
140
  - **A tag doesn't build** - only an explicit run, the standalone scheduler, or a hosted control plane does.
150
141
  - **Quote the name, once** - bare stops the load, and so does a name with quotes inside it; Publisher quotes each segment for you.
@@ -154,4 +145,4 @@ If **even this** doesn't build after a real run, the problem is package-wide: re
154
145
  - **Removing a persist source does not drop its table** - and neither does `delete materialization`, which is record-only. Drop the table once no remaining ready run, of any version (list runs per version with `versionId`), names a table with that name in any place: `DELETE …/connections/{connectionName}/materializedTables/{physicalTableName}` checks that itself and answers 409 `TABLE_IN_USE` otherwise; serving reverts to live in place.
155
146
  - **A given inside the persisted query is refused; in the source's own `extend` block it is applied per caller; inherited from a base it is refused and the source answers live** - `reference/storage.md`.
156
147
  - **A join to a non-persisted source, or a nested column, serves live for the queries that touch it** - the source's own fields still serve from the table.
157
- - **A `#(access_filter)`-gated source freezes its gating column when persisted** - `#@ preaggregate` refuses it outright; a `storage=` table holds every caller's rows, ungated, in the destination; `reference/access-filter.md`.
148
+ - **A `#(access_filter)`-gated source freezes its gating column when persisted** - a rollup (`#(rollup)`, or `#@ preaggregate`, read as it) is built only when every gate is the base's own and reads grain dimensions; a `storage=` table holds every caller's rows, ungated, in the destination; `reference/access-filter.md`.
@@ -7,7 +7,7 @@ SPDX-License-Identifier: MIT
7
7
 
8
8
  A gated source **can** be persisted, on either tier but only in one shape, and the thing to be careful about is not refused by anything - you have to decide it.
9
9
 
10
- - **A rollup (`#(rollup)` or `#@ preaggregate`) over a gated source is built only where its gate holds on the rollup's rows**: database, every gate the base's own (declared on the base's own statement, not inherited from a source it extends, not through a join), and every field it reads a grain dimension. The gate is then re-applied on every read, as on a stored source (with `PUBLISHER_MATERIALIZE_GATED_SOURCES` on, an inherited gate too). Any other gated rollup is refused, naming it. The build skips a refused source, records it on the run (`metadata.refusedSources`), and builds the rest of the package. A run fails on a refusal only when every authored source it targeted was refused, or when `sourceNames` named this one; a refused rollup never fails it. (`#@ preaggregate` stores a rollup Publisher derives from a measure you annotated with a grain, rather than a source you wrote.) A rollup also groups *across* the gated column, so it could not be row-filtered afterwards even in principle.
10
+ - **A rollup (`#(rollup)` or `#@ preaggregate`) over a gated source is built only where its gate holds on the rollup's rows**: database, every gate the base's own (declared on the base's own statement, not inherited from a source it extends, not through a join), and every field it reads a grain dimension. The gate is then re-applied on every read, as on a stored source. Any other gated rollup is refused, naming it. The build skips a refused source, records it on the run (`metadata.refusedSources`), and builds the rest of the package. A run fails on a refusal only when every authored source it targeted was refused, or when `sourceNames` named this one; a refused rollup never fails it. (`#@ preaggregate` stores a rollup Publisher derives from a measure you annotated with a grain, rather than a source you wrote.) A rollup also groups *across* the gated column, so it could not be row-filtered afterwards even in principle.
11
11
  - **A `#@ persist`, database or `storage=`, is admitted** when the gate is the entry point's **own row filter** (or an `#(authorize)` lock): declared on the persisted source itself, and classified as a row filter. Both tiers follow the same rule (so does `#(materialize)`): the table holds every caller's rows and the gate is re-applied on every read through Publisher. (`#@ persist storage=<name>` materializes into a separate registered storage destination and serves from there, rather than building in the source's own connection.) **A `storage=` table puts those rows, ungated, at rest in the destination**, where anyone with direct access to the destination reads every row; tell the author before choosing that tier for a gated source, and make sure no connection a model can name reaches the destination (its catalog, schema or data path): stored tables are named predictably, so any package could read the gated rows through it. It is refused in three cases: the gate is reached only through a join, it does not classify as a row filter at all, or the persisted source inherits it from a source it derives from or extends (`source: mine is gated -> { ... }`, `gated extend { ... }`, across imports or two hops away). A table of an inherited gate would hold every caller's rows, and the served copy, which reads the table in place of the source that declares the gate, cannot apply the gate to it, so every query would answer live anyway: it is not built. Declare the gate on the persisted source itself to serve it from a table.
12
12
 
13
13
  **What to be wary of.** Persisting does not weaken the gate: it changes only where rows are read FROM, and the gate still runs live on every query as that query's own `WHERE`, so filtered rows come back filtered. What freezes is the **column the gate filters on**. A row whose access decision changes - it changes owner, say - keeps being served under its OLD decision until the next rebuild. That is a stale *access decision*, not merely stale data, and nothing raises an error.
@@ -14,7 +14,7 @@ source: my_rollup is some_source -> { group_by: ...; aggregate: ... }
14
14
 
15
15
  **Only `query_source` and `sql_select` sources are persistable** - a source whose definition has a `-> { ... }` pipeline or a `conn.sql("...")`, including one refined by a trailing `extend { ... }`. What is **not** persistable is a *plain* `extend` over a bare `conn.table(...)` (a filtered pass-through). A `#@ persist` on such a source (or on a table base with only added fields, such as `duckdb.table('x') extend { measure: … }`, or on an unbound parameterized source) is **not ignored**: the publish and the load fail, naming the source (code `persist-not-materializable`). Persist a query source instead (`source: x is raw -> { where: ...; select: * }`), or remove the annotation.
16
16
 
17
- **A named `query:` persists its result only with `PUBLISHER_MATERIALIZE` on.** Then `#@ persist` on a top-level `query:` builds its result (as `<query>__query`), and the table answers `run: q`, a `queryName` call, a report naming `q`, and `run: q -> { … }`; a refinement (`q + { … }`) and any use of `q` inside another definition are answered live. A query that reaches a row-level gate (its source's own, an inherited one, or a joined source's), or reads a given or `now`, is not built; persist a view on a gated source instead. Whenever it is not built, the package carries a `warn` with code `persist-query-not-built` saying why, and the workaround that works everywhere: persist a source over it (`#@ persist` on `source: q_result is q`) and query that source.
17
+ **A named `query:` persists its result.** `#@ persist` on a top-level `query:` builds its result (as `<query>__query`), and the table answers `run: q`, a `queryName` call, a report naming `q`, and `run: q -> { … }`; a refinement (`q + { … }`) and any use of `q` inside another definition are answered live. A query that reaches a row-level gate (its source's own, an inherited one, or a joined source's), or reads a given or `now`, is not built; persist a view on a gated source instead. Whenever it is not built, the package carries a `warn` with code `persist-query-not-built` saying why, and the workaround that works everywhere: persist a source over it (`#@ persist` on `source: q_result is q`) and query that source.
18
18
 
19
19
  **A parameterized source must have its argument bound.** `#@ persist` on `high_value(min_amount is 500) -> { ... }` builds one fixed relation; on the free template `high_value -> { ... }` it is refused (`free_parameter`), since there is no single relation to store. A `given` the persisted *query* reads is refused the same way (`reads_given`); a given in the source's own `extend` block is applied per caller at read. `reference/storage.md` says where a given may sit. A persisted query that reads the current time (`now`, or a relative time filter string such as `f'last 7 days'`, `f'today'` or `f'this month'`; an absolute one such as `f'2024'` does not), in its stages, a view it runs, the `where:`, a field or a join of the source it reads (`select: *` included), or the query of a query-shaped source it is built from or joins, is built and served **as of its build**, and rebuilt on every run (never skipped as unchanged; its build plan entry says `asOfBuild: true`); the package carries a `persist-reads-current-time` warning saying so and naming where it reads the clock. The same holds for a persisted view or named query. It is still refused (`current_time`, a `persist-not-built` warning, answered live) when it is gated (`#(authorize)`/`#(access_filter)` beneath it), an access input (anything a gated or given-reading source, query or view of the package depends on, at any depth: extends, derives from with `->`, joins or composes, stored or live; or a source scoped by a given in its own `extend`), or `refresh="incremental"`; a rollup over such a relation is refused too. `now` or such a filter in the source's own `extend` block is applied at every read, so it answers as of each query: move it there when the time column survives into the output.
20
20
 
@@ -25,7 +25,7 @@ source: my_rollup is some_source -> { group_by: ...; aggregate: ... }
25
25
  - **Quote it, once.** `name="my_table"`, or a path `name="dataset.table"` / `name="project.dataset.table"`. A **bare** `name=my_table` fails the package **load** - so every publish and every restart - with `persist annotation name must be quoted`; it never silently no-ops.
26
26
  - **Plain identifier segments only**: dot-separated segments of letters, digits, underscores and hyphens. A quoted name holding a space, quote, semicolon or backtick is rejected with its own message (`persist annotation name must be a plain identifier path`), because the name is inlined into DDL. Publisher quotes each segment for the target warehouse, so case is preserved (`name="OrdersDaily"`) and reserved words work (`name="order"`); never add quotes inside the value.
27
27
  - **Never quote inside the quotes.** `name="\"Quoted Tbl\""` fails the load (`persist-invalid`): a name must be a plain identifier path (letters, digits, `_`, `-`, dot-separated), and Publisher quotes each segment for the warehouse itself.
28
- - **One name per table.** Two distinct persist sources that resolve to the same `name=` in the same destination clobber each other (the second build overwrites the first, and dropping one drops the other's). The publish and the load fail (`materialization-table-collision`). A deployment that opts out with `PERSIST_COLLISION_ENFORCE=false` loads the package instead, refuses both sources alone (`persist-not-built`), and answers them live rather than from the shared table. A shared *body* is fine (it shares one table by content address); a shared name over different bodies is not.
28
+ - **One name per table.** Two distinct persist sources that resolve to the same `name=` in the same destination clobber each other (the second build overwrites the first, and dropping one drops the other's). The publish and the load fail (`materialization-table-collision`); there is no opt-out. A shared *body* is fine (it shares one table by content address); a shared name over different bodies is not.
29
29
  - **The target's container must exist.** `name="analytics.daily"` puts the table in `analytics`, which the connection must be able to write and which Publisher does not create. The source can *read* anything the connection can read.
30
30
  - **The name is not the identity.** In a standalone Publisher `name=` is the physical table, rebuilt in place; a hosted deployment may assign the physical name itself. A `storage=` destination takes `name="daily"` (built in the destination's schema: its `ducklakeConnection.destinationSchema`, else `main`) or `name="analytics.daily"`; a second dot fails the build with a DuckDB parser error. That schema must already exist in the destination, since the build does not create it. A hosting platform may refuse a schema there.
31
31
 
@@ -58,7 +58,7 @@ A persist source's identity is its **`sourceEntityId`**: a content address of it
58
58
 
59
59
  `storage=` and `name=` may be written beside the route's key or inside it: `#@ persist storage="lake"` and `#@ persist { storage="lake" }` place the table the same way, on every route (`#@ persist`, a persisted view, `#@ preaggregate`, `#(materialize)`, `#(rollup)`). When both are written, the one inside the key wins, even when it names nothing. A `storage=` that is empty or only whitespace, or that is a list or a block rather than text, fails the publish and the load (`persist-invalid`, or the route's own `*-invalid` code): name the destination, or drop the key to build in the source's own warehouse.
60
60
 
61
- On a server with `PUBLISHER_MATERIALIZE` on, the v2 spelling `#(materialize)` takes the same keys, plus `inline=[...]`, as a closed set (an unknown key fails the publish and the load), and `#(rollup) grain=["a", "b"]` replaces `#@ preaggregate`.
61
+ The v2 spelling `#(materialize)` takes the same keys, plus `inline=[...]`, as a closed set (an unknown key fails the publish and the load), and `#(rollup) grain=["a", "b"]` replaces `#@ preaggregate`.
62
62
 
63
63
  A rollup (`#(rollup)` or `#@ preaggregate`) takes `name=` too, as a prefix: `name="analytics.orders_rollup"` creates `analytics.orders_rollup__p<hash>`, the container placing it and the leaf starting its name, as `name=` does under `scope: "version"`; the hash, and so the identity, stays Publisher's. Without `name=` the table takes the readable name `<pkg>__<file>__<base>_by_<grain>__p<hash>`, in its base's database `name=` container if it has one (`#@ persist` or `#(materialize)`). The leaf is lowercased in the name; one the name would otherwise rewrite (a space, punctuation, a leading digit, `__`), an empty one, or one ending in `__p<8 hex>`, fails the load (`rollup-invalid`). Changing the leaf renames the table (rebuilt once; the old one is dropped). `namespace="analytics"` is the deprecated spelling of the container alone, with a `deprecated-rollup-namespace` warning. The main skill's "v1 or v2" section says when to write which.
64
64
 
@@ -15,7 +15,7 @@ source: daily_orders is orders -> { group_by: order_date; aggregate: total is am
15
15
  - `storage=` names a **storage destination**, never a connection. Destinations are declared on the environment (`storageDestinations: [{ "name": "lake", "type": "ducklake", "ducklakeConnection": { "catalog": {...}, "storage": {...} } }]`, by config or by environment PATCH); a build naming one the environment does not hold fails the run with a `DestinationNotFoundError`. Reads of the environment report a destination's name and type only, never its config.
16
16
  - The build is a native **query passthrough**: the source warehouse (Postgres, BigQuery or Snowflake) computes the query and only the result crosses into the store, through DuckDB. A source on any other connection, the package's DuckDB sandbox (`duckdb.sql(...)`, `duckdb.table(...)`) and an environment DuckDB connection included, is refused at load: it is not built, it is answered live, and the route's `*-not-built` warning (reason `storage_source_unsupported`) names the connection. Drop `storage=` to build it in its own connection, or move the source to a warehouse connection. A DuckLake source builds only into its own catalog. A `#(access_filter)`-gated source is always refused on this tier (`reference/access-filter.md`).
17
17
  - **A source already in the destination's own catalog is the exception to the passthrough** (the access-filter refusal still applies): a DuckLake connection whose catalog is the destination's, matched not by name but by the catalog database's `host`, `port` and `databaseName` (a `connectionString` config never matches), its metadata schema, and its data path when both configs state one (`docs/ducklake.md`). Its build runs inside the catalog with no passthrough. That session can write the catalog, so it runs only SQL Malloy generated: a source with `.sql()` or a `sql_*` expression anywhere beneath it is refused, as is a table read from a file or URL: refused at load (`persist-not-built`, reason `storage_source_unsupported`) and answered live, never left to fail its build. On a connection configured `managed` this holds without `storage=` too, since a managed catalog's tables are always built inside it. It uses the DuckDB dialect, so `refresh="incremental"` is refused on it, as on any DuckDB source.
18
- - The tier is gated by `PERSIST_STORAGE_MODE` (`off` / `write-only` / `on`). Under `off` a `storage=` source is **skipped by the build and served live, with no error** - it is never built in the database tier instead. Under `write-only` it builds but is still served live, and the package warns (`materialization-storage-mode`). If a `storage=` source "did nothing", check the mode before the model.
18
+ - `storage=` is always honored: a `storage=` source is built into its destination and served from it. It is never built in the database tier instead. The former `PERSIST_STORAGE_MODE` switch was removed; a server that still sets it warns at startup that it is ignored.
19
19
  - **Hidden columns are stored.** A `storage=` table holds every column its source declares, `private:` and `internal:` ones included (a renamed one under the name its query gives it; an `except:`-ed one not at all, unless another source with identical SQL shares the table and stores it - a fix is coming), and the served copy hides them again: a measure over a hidden column is answered from the table, and a caller is refused a hidden column in live's words. The values are at rest in the destination, readable by anyone with direct access to it, never through Publisher. To keep a value out of the destination, leave it out of the source's query, do not just hide it. `#(carries)` checks what a caller can reach, not what a table stores.
20
20
  - A package may name several destinations; each source routes to its own.
21
21
  - `partition=` is not supported: a stored table is written unpartitioned, and a package whose `#@ persist` or `#(materialize)` carries `partition=` fails the publish and the load (`persist-retired-key`, `materialize-retired-key`). Remove the key; it was a layout only, so the cost is scan time and no answer changes.
@@ -59,4 +59,4 @@ What the server reports:
59
59
 
60
60
  ## Pre-aggregation uses the same tier
61
61
 
62
- `#@ preaggregate grain="category, order_day"` on a **measure** stores a rollup Publisher derives at that grain and routes to it when a query groups by a subset of the grain; queries do not change. It builds through the same plan, manifest and scheduler as `#@ persist`, needs no `##!` flag, inherits the base source's freshness, and refuses a gated source. A rollup on a measure the published surface hides is not built; the package loads and warns. A hidden (`private` or `internal`) grain dimension is stored and stays hidden; a `where:` of the source's own that reads a given over grain dimensions is left out of the build and re-applied per caller at read; and a query that sets its own `timezone:` but reads no date or timestamp is answered from the rollup. See `docs/preaggregation.md` for grain choice. On a server with `PUBLISHER_MATERIALIZE` on, write it `#(rollup) grain=["category", "order_day"]` instead; `#@ preaggregate` is deprecated there.
62
+ `#@ preaggregate grain="category, order_day"` on a **measure** stores a rollup Publisher derives at that grain and routes to it when a query groups by a subset of the grain; queries do not change. It builds through the same plan, manifest and scheduler as `#@ persist`, needs no `##!` flag, and inherits the base source's freshness. It is read as exactly the `#(rollup)` line it means, so over a gated base it is built only when every gate is the base's own and reads grain dimensions. A rollup on a measure the published surface hides is not built; the package loads and warns. A hidden (`private` or `internal`) grain dimension is stored and stays hidden; a `where:` of the source's own that reads a given over grain dimensions is left out of the build and re-applied per caller at read; and a query that sets its own `timezone:` but reads no date or timestamp is answered from the rollup. See `docs/preaggregation.md` for grain choice. Write it `#(rollup) grain=["category", "order_day"]` instead; `#@ preaggregate` is deprecated.
@@ -9,7 +9,7 @@ This skill turns the signals the open-source Publisher already records (the mate
9
9
 
10
10
  > **Recommendations only. Never change a model, schedule, or scope without the user's explicit go-ahead.** Present the findings and the proposed edits, then apply them only when asked. Persisting the wrong source wastes storage and rebuild time; unpersisting a hot one makes queries slow. Let the user decide.
11
11
 
12
- Assumes the `malloy-pub` CLI is on PATH and points at the server (`--url` or `MALLOY_PUBLISHER_URL`). Substitute the real environment and package for `<env>` / `<pkg>`.
12
+ Assumes the `malloy-pub` CLI is on PATH (`npm i -g @malloy-publisher/cli`, or prefix each command with `npx @malloy-publisher/cli@latest` in place of `malloy-pub`) and points at the server (`--url` or `MALLOY_PUBLISHER_URL`). Substitute the real environment and package for `<env>` / `<pkg>`.
13
13
 
14
14
  ## Step 1: Take inventory
15
15
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-model
3
3
  description: Build Malloy semantic models with base source and joined source files. Use when creating or modifying .malloy files, user asks to "create a malloy model", "add dimensions", "add measures", "create a source", or any Malloy model authoring task.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  <!--
@@ -11,7 +11,7 @@ When you've been doing analysis, writing queries, building views, creating repor
11
11
 
12
12
  ## Step 1: IDENTIFY, what belongs in a model?
13
13
 
14
- Scan your analysis `.malloy` files and reports (any `.malloy` with an `## artifact` tag, wherever it sits, or an existing `.malloynb`). A report (a `tiles=[…]` layout, of either layout) is not a model file to restructure: lift its reusable definitions into a model and leave the report to import them. For each dimension, measure, join, or calculation, ask: **is this a reusable building block?**
14
+ Scan your analysis `.malloy` files and reports (any `.malloy` with an `## artifact` tag, wherever it sits). A report (a `tiles=[…]` layout, of either layout) is not a model file to restructure: lift its reusable definitions into a model and leave the report to import them. For each dimension, measure, join, or calculation, ask: **is this a reusable building block?**
15
15
 
16
16
  A measure or dimension belongs in a model if it meets ANY of these criteria:
17
17
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-model-as-you-go
3
3
  description: 'After answering a data question, write down what the answer assumed so the next reader can trust the number. A field with a #(doc) in the model when you can edit it, an extend in the notebook when you can only author reports, or a stated assumption plus a Malloy snippet when you can only chat. Use after every answered question that rested on a judgment call, and whenever a question is asked against tables that have no model yet.'
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  <!--
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-modeling
3
3
  description: Build semantic models with Malloy for the Malloy Publisher. Read this skill whenever the user asks about modeling data or specifically mentions Malloy.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -154,12 +154,12 @@ Publisher compiles each configured package at boot and serves that cached model,
154
154
  1. **Validate** the change with `compile_model`, picking the scope that matches what you are doing:
155
155
  - Adding a new definition or query: the default (`scope: "append"`) compiles your text in the model's namespace. Note its diagnostic positions land in the model-plus-your-text concatenation. Append checks your text against what the model already publishes, so it refuses text that declares its own data root -- `import`, `connection.table(...)` and `connection.sql(...)` are rejected. A `source:` line handed to you by `search_database_schema` is exactly that shape, so validate it at `file` or `package` scope instead.
156
156
  - **Editing an existing definition: `scope: "file"`**, with the whole edited file as `source`. It compiles your text AS the file (append would collide with "Cannot redefine"), and diagnostics land at the true line numbers of your text.
157
- - Before saving a change other files import: `scope: "package"` with the edited file as `source` runs reload's worker compiler over every `.malloy` and `.malloynb` file against your edit, so a rename that breaks an importer surfaces now instead of at reload. Each diagnostic carries `model`, the file it points at; files hidden from discovery can appear. If `modelPath` does not exactly match an existing file, a warning says the source was treated as new.
157
+ - Before saving a change other files import: `scope: "package"` with the edited file as `source` runs reload's worker compiler over every `.malloy` file against your edit, so a rename that breaks an importer surfaces now instead of at reload. Each diagnostic carries `model`, the file it points at; files hidden from discovery can appear. If `modelPath` does not exactly match an existing file, a warning says the source was treated as new.
158
158
  2. **Save** it to the package's model file.
159
159
  3. **Reload** with `reload_package`.
160
160
  4. **Run** the new view with `execute_query`.
161
161
 
162
- A reload that fails to compile is safe: your files are left alone and the previously compiled model keeps serving, with the compile errors returned to you. Compile first anyway for faster feedback, and a `scope: "package"` dry-run with no `source` uses reload's compiler and file selection (imports across files, every `.malloy` and `.malloynb` file as saved) without touching the served model. Keep the source of truth outside `publisher_data/`, which is not version-controlled and is wiped by a `--init` restart. If these tools are missing, the Publisher you are connected to predates them; fall back to validating with a throwaway `execute_query`. An older Publisher that has `compile_model` but rejects `scope` supports only the append behavior.
162
+ A reload that fails to compile is safe: your files are left alone and the previously compiled model keeps serving, with the compile errors returned to you. Compile first anyway for faster feedback, and a `scope: "package"` dry-run with no `source` uses reload's compiler and file selection (imports across files, every `.malloy` file as saved) without touching the served model. Keep the source of truth outside `publisher_data/`, which is not version-controlled and is wiped by a `--init` restart. If these tools are missing, the Publisher you are connected to predates them; fall back to validating with a throwaway `execute_query`. An older Publisher that has `compile_model` but rejects `scope` supports only the append behavior.
163
163
 
164
164
  ## SQL-to-Malloy Quick Reference
165
165
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-notebooks
3
3
  description: "Renamed to malloy-reports. A notebook is now a report with layout=linear: a .malloy file with an ## artifact tag, written at the package root. Load malloy-reports instead when the user asks for a notebook, a data story, or a report that reads top to bottom."
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  <!--
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-phrase-detection
3
3
  description: How to phrase search_text on a get_context call so retrieval returns the fields you need instead of a truncated catalog. Covers target-type classification and decomposition patterns.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!-- Copyright (c) Credible Data Inc. SPDX-License-Identifier: MIT -->
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-powerbi-review
3
3
  description: Move a Power BI semantic model (TMDL, PBIP, or .pbix) onto Malloy - read their model, transpile its DAX, and prove the numbers match. Use when Power BI artifacts are present, when a user wants to migrate or switch off Power BI, and whenever a specific DAX measure has to become Malloy - CALCULATE, ALL/ALLSELECTED/ALLEXCEPT, RANKX and top-N, time intelligence, USERELATIONSHIP, calculation groups, what-if parameters, or an RLS role. Carries a worked, executed transpile per construct and states what each port costs. Works with or without a database connection.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-publish
3
3
  description: Package Malloy models for serving by Malloy Publisher. Use when user asks to "publish", "package", "deploy", or wants to share models with others.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -138,7 +138,7 @@ A flat layout at the package root is the simplest default, for models and report
138
138
 
139
139
  Publishable contents:
140
140
  - `.malloy` files - Semantic model definitions (base sources + joined sources)
141
- - Reports: `.malloy` files with an `## artifact { layout=linear … }` or `## artifact { layout=grid … }` tag, anywhere in the package (outside `public/`), written as tiles (see `skill:malloy-reports`). A linear tag with no tiles, the retired `run:`-cell form, is no report. The tag alone makes a file a report and sets its layout; the folder means nothing. An existing `.malloynb` is still served as a linear report; never write a new one.
141
+ - Reports: `.malloy` files with an `## artifact { layout=linear … }` or `## artifact { layout=grid … }` tag, anywhere in the package (outside `public/`), written as tiles (see `skill:malloy-reports`). A linear tag with no tiles, the retired `run:`-cell form, is no report. The tag alone makes a file a report and sets its layout; the folder means nothing.
142
142
  - Data files (CSV/Parquet/XLSX) - Embedded data published with package
143
143
 
144
144
  ## Version Management
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-queries
3
3
  description: Read before writing or debugging a Malloy query. Dates, aggregates vs dimensions, joins, filters, strings, window functions, chart annotations, and the compile errors a SQL habit produces.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-reports
3
- description: "Build or modify a Malloy Publisher report: a .malloy file with an ## artifact tag, written at the package root unless asked otherwise, laid out as a grid (a dashboard, scanned at a glance) or linear (a notebook or data story, read top to bottom), with filter controls rendered from givens and # drill click-through. Use when the user asks for a dashboard, a notebook, a report, a data story, a filterable view, or drill-through between views, and no code is wanted. Legacy .malloynb files are read, not authored."
4
- version: 0.1.61
3
+ description: "Build or modify a Malloy Publisher report: a .malloy file with an ## artifact tag, written at the package root unless asked otherwise, laid out as a grid (a dashboard, scanned at a glance) or linear (a notebook or data story, read top to bottom), with filter controls rendered from givens and # drill click-through. Use when the user asks for a dashboard, a notebook, a report, a data story, a filterable view, or drill-through between views, and no code is wanted."
4
+ version: 0.1.63
5
5
  ---
6
6
 
7
7
  <!--
@@ -299,6 +299,6 @@ A person can open any report in the Console's builder (**Edit** on the report pa
299
299
  ## Reference
300
300
 
301
301
  - `reference/grid.md`: the grid recipe, its traps, and one query as the whole page.
302
- - `reference/linear.md`: linear reports, rewriting a retired `run:`-cell file, legacy `.malloynb`, style, and common mistakes.
302
+ - `reference/linear.md`: linear reports, rewriting a retired `run:`-cell file or a `.malloynb`, style, and common mistakes.
303
303
  - `docs/reports.md`: the full guide this skill condenses.
304
304
  - `docs/givens.md`: the givens the controls are generated from.
@@ -86,9 +86,7 @@ One query per tile, and remember a chart renders only the **first** aggregate in
86
86
 
87
87
  ## Existing `.malloynb` files
88
88
 
89
- A `.malloynb` (cells delimited by `>>>markdown` and `>>>malloy`) is a deprecated format, served read-only as a linear report. **Do not create one.** When maintaining one: its compile errors show only when cells run, so test queries in the model first; imports belong in a setup cell at the top, never inside a `run:` cell; and it reads `## autorun=false` and `## givens { … }` as file-level lines, where a `.malloy` report takes them inside its artifact tag.
90
-
91
- Each code cell runs its `run:` statement as query text on the notebook's path, over REST with `POST …/models/{path}/query` and in the `show_report` panel. MCP `execute_query` does not take a `.malloynb` path and answers that the model is not found, so to check a cell's query there, run it against the `model_path` that `get_context` returns, which is `index.malloy` when the package has one; a model file the surface does not publish answers not found. The `run:` runs in restricted mode: it may not call a `sql_*` function or read a table directly, such as `duckdb.table(…)`; put either in a source in a cell and run that source. A join written in the `run:` is the caller's join, so a gate on the joined source applies to it. On a package with an `index.malloy`, a source the cells declare is not queryable, even over a published source; declare it in a model file and export it from `index.malloy`.
89
+ A `.malloynb` (cells delimited by `>>>markdown` and `>>>malloy`) is a deprecated format. **Do not create one.** To change one, rewrite it as a `.malloy` linear report beside it: each query cell a query tile, each markdown cell a text tile.
92
90
 
93
91
  ## Common mistakes
94
92
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-review
3
3
  description: Malloy semantic-model code review. Invoke when the user asks to review, audit, or critique a `.malloy` file, a folder of Malloy models, or a GitHub PR that touches Malloy. Enforces project modeling standards and emits a navigable review file.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -8,7 +8,7 @@ SPDX-License-Identifier: MIT
8
8
  **Dimension:** `structure`
9
9
  **Rules:** 5
10
10
 
11
- Applies to the organization of `.malloy` files within a package. Skip a file for structural review if it's a report (a `.malloy` file anywhere in the package whose model-level notes carry an `## artifact` tag, of either layout, `layout=grid` or `layout=linear` or the deprecated `kind=`, written as `tiles=[…]`; a legacy query-level `# artifact` on a `query:`; or a `.malloynb`), which has its own conventions (the `malloy-reports` skill), or a one-off sandbox script. Do not flag a report for where it sits: no directory is required for one, and the package root is the default.
11
+ Applies to the organization of `.malloy` files within a package. Skip a file for structural review if it's a report (a `.malloy` file anywhere in the package whose model-level notes carry an `## artifact` tag, of either layout, `layout=grid` or `layout=linear` or the deprecated `kind=`, written as `tiles=[…]`; or a legacy query-level `# artifact` on a `query:`), which has its own conventions (the `malloy-reports` skill), or a one-off sandbox script. Do not flag a report for where it sits: no directory is required for one, and the package root is the default.
12
12
 
13
13
  For every rule, the linked instruction-skill section is the canonical source for rationale and examples.
14
14
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-run-agent
3
3
  description: Adopt an agent a Malloy package declares, by name. Use only when the user names a package agent, for example "run the analyst agent on storefront" or "work as the agent in this package". Fetches the agent's definition with get_agent, works from its instructions, installs its skills, and runs one of its tasks when asked.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!--
7
7
  Copyright (c) Credible Data Inc.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: malloy-source-unreachable
3
3
  description: Work out why a source is missing from get_context, or why a query against it was refused with a 404 or a 403, and what to do next. Use when a source you expect is absent from discovery, when execute_query answers "No queryable source", when a query that used to work stops working, or when deciding whether a package's curation is hiding something you need.
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  ---
6
6
  <!-- Copyright (c) Credible Data Inc. SPDX-License-Identifier: MIT -->
7
7
 
@@ -18,6 +18,7 @@ Most packages publish a curated surface, so a source being absent or refused is
18
18
  | **404** that says "not on this package's published surface" | the name is real and the package does not publish it. It is curation, not a typo | follow the fix the message names (usually: name it in the `export { ... }` of `index.malloy` and address the query there), or query what IS published |
19
19
  | **404**, plain "No queryable source", "No queryable model" or "Query target is not queryable" | the name does not exist, or it is hidden in a model that carries an `#(authorize)` or `#(access_filter)` gate. In a gated model the two are deliberately indistinguishable, so a refusal cannot be used to probe for hidden names | check the name against `get_context`, then query something on the surface or ask the package's author to publish it |
20
20
  | **403**, "Access denied" | the source exists and is on the surface, but an `#(authorize)` gate did not admit you | supply the givens the gate reads, or accept that this caller may not read it |
21
+ | **403**, "Access denied … could not be verified here … This is not a permission rule" (`reason: INHERITED_FILTER_UNVERIFIED`) | no gate refused you: a `where:` the source inherits, or a row-level access filter the model's own `rename:`/`except:` moved, could not be verified to read the fields it was written against, a problem in the model itself | do not supply givens or rewrite the query, which will not help. Report it to the model's author with the reason class the message names; the server log names the filter and the source that declares it. Other sources may answer |
21
22
  | **200** with zero rows | you were admitted, and an `#(access_filter)` narrowed the rows to none of them | this is a real answer. Report it as "no matching rows", never as an error |
22
23
 
23
24
  A 403 names a source, so it tells you the source exists. A plain 404 tells you nothing at all. That asymmetry is deliberate: a source that is both hidden AND gated answers a plain **404**, so you can never use a 403, or the wording of a 404, to discover that a hidden gated name is real.