@malloy-publisher/skills 0.1.48 → 0.1.49

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 (49) hide show
  1. package/package.json +1 -1
  2. package/skills/eval-answer/SKILL.md +1 -1
  3. package/skills/eval-answer/scripts/init_truth_package.py +1 -1
  4. package/skills/eval-answer/scripts/verify_goldens.py +1 -1
  5. package/skills/eval-diagnose/SKILL.md +1 -1
  6. package/skills/eval-diagnose/scripts/diagnose.py +1 -1
  7. package/skills/eval-import/SKILL.md +1 -1
  8. package/skills/eval-improve/SKILL.md +1 -1
  9. package/skills/eval-judge/SKILL.md +1 -1
  10. package/skills/eval-loop/SKILL.md +1 -1
  11. package/skills/eval-loop/reference/running-a-run.md +1 -1
  12. package/skills/eval-loop/scripts/run_baseline.py +2 -2
  13. package/skills/eval-loop/scripts/serve.py +1 -1
  14. package/skills/eval-report/SKILL.md +1 -1
  15. package/skills/malloy-analysis/SKILL.md +3 -2
  16. package/skills/malloy-analysis-report/SKILL.md +1 -1
  17. package/skills/malloy-charts/SKILL.md +1 -1
  18. package/skills/malloy-classify/SKILL.md +195 -0
  19. package/skills/malloy-compliance-review/SKILL.md +123 -0
  20. package/skills/malloy-compliance-review/reference/checks.md +50 -0
  21. package/skills/malloy-compliance-review/reference/register.md +74 -0
  22. package/skills/malloy-compliance-review/reference/report.md +48 -0
  23. package/skills/malloy-compliance-review/scripts/compliance.py +924 -0
  24. package/skills/malloy-compliance-review/scripts/compliance_test.py +375 -0
  25. package/skills/malloy-dashboards/SKILL.md +1 -1
  26. package/skills/malloy-define/SKILL.md +1 -1
  27. package/skills/malloy-define-agent/SKILL.md +31 -9
  28. package/skills/malloy-discover/SKILL.md +4 -2
  29. package/skills/malloy-document/SKILL.md +43 -12
  30. package/skills/malloy-getting-started/SKILL.md +4 -3
  31. package/skills/malloy-gotchas-modeling/SKILL.md +1 -1
  32. package/skills/malloy-html-data-apps/SKILL.md +2 -2
  33. package/skills/malloy-html-data-apps/reference/runtime.md +48 -29
  34. package/skills/malloy-lookml-review/SKILL.md +1 -1
  35. package/skills/malloy-materialization/SKILL.md +1 -1
  36. package/skills/malloy-model/SKILL.md +59 -44
  37. package/skills/malloy-model-as-you-go/SKILL.md +1 -1
  38. package/skills/malloy-modeling/SKILL.md +1 -1
  39. package/skills/malloy-notebooks/SKILL.md +1 -1
  40. package/skills/malloy-phrase-detection/SKILL.md +24 -10
  41. package/skills/malloy-powerbi-review/SKILL.md +3 -3
  42. package/skills/malloy-powerbi-review/reference/limitations.md +2 -2
  43. package/skills/malloy-powerbi-review/reference/translate-measures.md +1 -1
  44. package/skills/malloy-publish/SKILL.md +1 -1
  45. package/skills/malloy-queries/SKILL.md +1 -1
  46. package/skills/malloy-reports/SKILL.md +1 -1
  47. package/skills/malloy-review/SKILL.md +1 -1
  48. package/skills/malloy-run-agent/SKILL.md +13 -3
  49. package/skills/malloy-source-unreachable/SKILL.md +1 -1
@@ -0,0 +1,48 @@
1
+ <!--
2
+ Copyright (c) Credible Data Inc.
3
+ SPDX-License-Identifier: MIT
4
+ -->
5
+
6
+ # Reading the report
7
+
8
+ `check` writes two files to `--out-dir`:
9
+
10
+ - `report.json`: every control with its status and findings, the summary, and whether the package
11
+ was serving a stale model. `attest` reads it; so can a CI step.
12
+ - `report.md`: the same, for a person.
13
+
14
+ ## Statuses
15
+
16
+ | Status | Means |
17
+ | --- | --- |
18
+ | Holds | Every check the control names passed |
19
+ | FAILS | At least one finding failed. The command exits 1 |
20
+ | Needs review | Nothing failed, but a finding could not decide on its own |
21
+ | Not provable here | The register says the model cannot prove it, and why |
22
+
23
+ ## A stale model
24
+
25
+ When the latest files did not load, Publisher keeps serving the model it compiled before, and the
26
+ report says so at the top. Read the two halves of that together: the controls the refusal names
27
+ fail, because the change on disk breaks them, and `refusals` holds, because the change was not
28
+ deployed. The fix is to the files on disk; the served model is still the last good one.
29
+
30
+ ## A package that is not served
31
+
32
+ On a fresh server, as in CI, a change Publisher refuses at load leaves no earlier model to serve, so
33
+ the package is absent. The report says so at the top. The controls the refusal names fail; every
34
+ other control needs review, marked "not checked", because nothing could be checked. A package the
35
+ server does not know at all fails `loads`: check the environment and package names.
36
+
37
+ ## Evidence
38
+
39
+ Every finding carries its evidence as counts: `53346 distinct of 53346 rows, uuid 100%`,
40
+ `64 distinct values for 70 patient records`, `403`. That is all a reader needs to see why, and it
41
+ is deliberately all the report holds. To investigate further, run another aggregate; never read
42
+ the rows.
43
+
44
+ ## The attestation
45
+
46
+ `attest` writes one page: the policy, its version, the server and time, every control with its
47
+ status in the policy's words, and signature lines. It is a statement about the package as served
48
+ at that time, generated from the report; it is not edited by hand.