pramanasutra 0.3.5 → 0.3.6

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 (211) hide show
  1. package/CHANGELOG.md +104 -93
  2. package/README.md +16 -1
  3. package/docs/00-start-here.html +20 -11
  4. package/docs/01-executive-summary.html +10 -7
  5. package/docs/02-functional-specification.html +12 -10
  6. package/docs/03-architecture.html +11 -7
  7. package/docs/04-technical-reference.html +9 -7
  8. package/docs/05-user-guide.html +13 -7
  9. package/docs/06-cli-and-reports.html +10 -7
  10. package/docs/07-rule-catalog.html +12 -9
  11. package/docs/08-skills-and-agents.html +10 -7
  12. package/docs/09-security-and-privacy.html +9 -7
  13. package/docs/10-legal-and-compliance.html +10 -8
  14. package/docs/11-testing-and-proof.html +11 -8
  15. package/docs/12-ci-and-release.html +10 -7
  16. package/docs/13-roadmap-and-status.html +13 -11
  17. package/docs/14-faq-and-glossary.html +9 -7
  18. package/docs/15-maintainer-guide.html +10 -8
  19. package/docs/16-real-world-scenarios.html +293 -0
  20. package/docs/audit/report.html +2 -2
  21. package/docs/audit/report.json +2 -2
  22. package/docs/audit/report.md +2 -2
  23. package/docs/audit/report.sarif.json +1 -1
  24. package/docs/diagrams/ci-pipeline.svg +21 -0
  25. package/docs/diagrams/components.svg +19 -0
  26. package/docs/diagrams/evidence-binding.svg +12 -0
  27. package/docs/diagrams/evidence-states.svg +39 -0
  28. package/docs/diagrams/gate-flow.svg +23 -0
  29. package/docs/diagrams/overview.svg +25 -0
  30. package/docs/diagrams/proof-graphs.svg +32 -0
  31. package/docs/diagrams/quickstart.svg +25 -0
  32. package/docs/diagrams/report-files.svg +22 -0
  33. package/docs/diagrams/rules-overview.svg +35 -0
  34. package/docs/diagrams/scenario-ai-claim.svg +14 -0
  35. package/docs/diagrams/scenario-focused-test.svg +28 -0
  36. package/docs/diagrams/scenario-picker.svg +22 -0
  37. package/docs/diagrams/skills-team.svg +15 -0
  38. package/docs/diagrams/trust-boundaries.svg +22 -0
  39. package/docs/index.html +16 -8
  40. package/docs/proof/test-results.txt +44 -44
  41. package/docs/samples/clean-project/report.html +1 -1
  42. package/docs/samples/clean-project/report.json +1 -1
  43. package/docs/samples/clean-project/report.md +1 -1
  44. package/docs/samples/clean-project/report.sarif.json +1 -1
  45. package/docs/samples/focused-test/report.html +1 -1
  46. package/docs/samples/focused-test/report.json +1 -1
  47. package/docs/samples/focused-test/report.md +1 -1
  48. package/docs/samples/focused-test/report.sarif.json +1 -1
  49. package/docs/samples/missing-ci/report.html +1 -1
  50. package/docs/samples/missing-ci/report.json +1 -1
  51. package/docs/samples/missing-ci/report.md +1 -1
  52. package/docs/samples/missing-ci/report.sarif.json +1 -1
  53. package/docs/samples/missing-tests/report.html +1 -1
  54. package/docs/samples/missing-tests/report.json +1 -1
  55. package/docs/samples/missing-tests/report.md +1 -1
  56. package/docs/samples/missing-tests/report.sarif.json +1 -1
  57. package/docs/samples/multi-language/report.html +1 -1
  58. package/docs/samples/multi-language/report.json +1 -1
  59. package/docs/samples/multi-language/report.md +1 -1
  60. package/docs/samples/multi-language/report.sarif.json +1 -1
  61. package/docs/samples/unsafe-names/report.html +1 -1
  62. package/docs/samples/unsafe-names/report.json +1 -1
  63. package/docs/samples/unsafe-names/report.md +1 -1
  64. package/docs/samples/unsafe-names/report.sarif.json +1 -1
  65. package/docs/sitemap.xml +1 -0
  66. package/documents/pramanasutra/00-start-here.md +18 -2
  67. package/documents/pramanasutra/01-executive-summary.md +3 -0
  68. package/documents/pramanasutra/02-functional-specification.md +2 -2
  69. package/documents/pramanasutra/03-architecture.md +6 -0
  70. package/documents/pramanasutra/05-user-guide.md +11 -0
  71. package/documents/pramanasutra/06-cli-and-reports.md +3 -0
  72. package/documents/pramanasutra/07-rule-catalog.md +3 -1
  73. package/documents/pramanasutra/08-skills-and-agents.md +3 -0
  74. package/documents/pramanasutra/10-legal-and-compliance.md +1 -1
  75. package/documents/pramanasutra/11-testing-and-proof.md +4 -1
  76. package/documents/pramanasutra/12-ci-and-release.md +3 -0
  77. package/documents/pramanasutra/13-roadmap-and-status.md +2 -2
  78. package/documents/pramanasutra/16-real-world-scenarios.md +252 -0
  79. package/documents/pramanasutra/audit/report.html +2 -2
  80. package/documents/pramanasutra/audit/report.json +2 -2
  81. package/documents/pramanasutra/audit/report.md +2 -2
  82. package/documents/pramanasutra/audit/report.sarif.json +1 -1
  83. package/documents/pramanasutra/diagrams/ci-pipeline.svg +21 -0
  84. package/documents/pramanasutra/diagrams/components.svg +19 -0
  85. package/documents/pramanasutra/diagrams/evidence-binding.svg +12 -0
  86. package/documents/pramanasutra/diagrams/evidence-states.svg +39 -0
  87. package/documents/pramanasutra/diagrams/gate-flow.svg +23 -0
  88. package/documents/pramanasutra/diagrams/overview.svg +25 -0
  89. package/documents/pramanasutra/diagrams/proof-graphs.svg +32 -0
  90. package/documents/pramanasutra/diagrams/quickstart.svg +25 -0
  91. package/documents/pramanasutra/diagrams/report-files.svg +22 -0
  92. package/documents/pramanasutra/diagrams/rules-overview.svg +35 -0
  93. package/documents/pramanasutra/diagrams/scenario-ai-claim.svg +14 -0
  94. package/documents/pramanasutra/diagrams/scenario-focused-test.svg +28 -0
  95. package/documents/pramanasutra/diagrams/scenario-picker.svg +22 -0
  96. package/documents/pramanasutra/diagrams/skills-team.svg +15 -0
  97. package/documents/pramanasutra/diagrams/trust-boundaries.svg +22 -0
  98. package/documents/pramanasutra/html/00-start-here.html +20 -11
  99. package/documents/pramanasutra/html/01-executive-summary.html +10 -7
  100. package/documents/pramanasutra/html/02-functional-specification.html +12 -10
  101. package/documents/pramanasutra/html/03-architecture.html +11 -7
  102. package/documents/pramanasutra/html/04-technical-reference.html +9 -7
  103. package/documents/pramanasutra/html/05-user-guide.html +13 -7
  104. package/documents/pramanasutra/html/06-cli-and-reports.html +10 -7
  105. package/documents/pramanasutra/html/07-rule-catalog.html +12 -9
  106. package/documents/pramanasutra/html/08-skills-and-agents.html +10 -7
  107. package/documents/pramanasutra/html/09-security-and-privacy.html +9 -7
  108. package/documents/pramanasutra/html/10-legal-and-compliance.html +10 -8
  109. package/documents/pramanasutra/html/11-testing-and-proof.html +11 -8
  110. package/documents/pramanasutra/html/12-ci-and-release.html +10 -7
  111. package/documents/pramanasutra/html/13-roadmap-and-status.html +13 -11
  112. package/documents/pramanasutra/html/14-faq-and-glossary.html +9 -7
  113. package/documents/pramanasutra/html/15-maintainer-guide.html +10 -8
  114. package/documents/pramanasutra/html/16-real-world-scenarios.html +293 -0
  115. package/documents/pramanasutra/html/audit/report.html +2 -2
  116. package/documents/pramanasutra/html/audit/report.json +2 -2
  117. package/documents/pramanasutra/html/audit/report.md +2 -2
  118. package/documents/pramanasutra/html/audit/report.sarif.json +1 -1
  119. package/documents/pramanasutra/html/diagrams/ci-pipeline.svg +21 -0
  120. package/documents/pramanasutra/html/diagrams/components.svg +19 -0
  121. package/documents/pramanasutra/html/diagrams/evidence-binding.svg +12 -0
  122. package/documents/pramanasutra/html/diagrams/evidence-states.svg +39 -0
  123. package/documents/pramanasutra/html/diagrams/gate-flow.svg +23 -0
  124. package/documents/pramanasutra/html/diagrams/overview.svg +25 -0
  125. package/documents/pramanasutra/html/diagrams/proof-graphs.svg +32 -0
  126. package/documents/pramanasutra/html/diagrams/quickstart.svg +25 -0
  127. package/documents/pramanasutra/html/diagrams/report-files.svg +22 -0
  128. package/documents/pramanasutra/html/diagrams/rules-overview.svg +35 -0
  129. package/documents/pramanasutra/html/diagrams/scenario-ai-claim.svg +14 -0
  130. package/documents/pramanasutra/html/diagrams/scenario-focused-test.svg +28 -0
  131. package/documents/pramanasutra/html/diagrams/scenario-picker.svg +22 -0
  132. package/documents/pramanasutra/html/diagrams/skills-team.svg +15 -0
  133. package/documents/pramanasutra/html/diagrams/trust-boundaries.svg +22 -0
  134. package/documents/pramanasutra/html/index.html +16 -8
  135. package/documents/pramanasutra/html/proof/test-results.txt +44 -44
  136. package/documents/pramanasutra/html/samples/clean-project/report.html +1 -1
  137. package/documents/pramanasutra/html/samples/clean-project/report.json +1 -1
  138. package/documents/pramanasutra/html/samples/clean-project/report.md +1 -1
  139. package/documents/pramanasutra/html/samples/clean-project/report.sarif.json +1 -1
  140. package/documents/pramanasutra/html/samples/focused-test/report.html +1 -1
  141. package/documents/pramanasutra/html/samples/focused-test/report.json +1 -1
  142. package/documents/pramanasutra/html/samples/focused-test/report.md +1 -1
  143. package/documents/pramanasutra/html/samples/focused-test/report.sarif.json +1 -1
  144. package/documents/pramanasutra/html/samples/missing-ci/report.html +1 -1
  145. package/documents/pramanasutra/html/samples/missing-ci/report.json +1 -1
  146. package/documents/pramanasutra/html/samples/missing-ci/report.md +1 -1
  147. package/documents/pramanasutra/html/samples/missing-ci/report.sarif.json +1 -1
  148. package/documents/pramanasutra/html/samples/missing-tests/report.html +1 -1
  149. package/documents/pramanasutra/html/samples/missing-tests/report.json +1 -1
  150. package/documents/pramanasutra/html/samples/missing-tests/report.md +1 -1
  151. package/documents/pramanasutra/html/samples/missing-tests/report.sarif.json +1 -1
  152. package/documents/pramanasutra/html/samples/multi-language/report.html +1 -1
  153. package/documents/pramanasutra/html/samples/multi-language/report.json +1 -1
  154. package/documents/pramanasutra/html/samples/multi-language/report.md +1 -1
  155. package/documents/pramanasutra/html/samples/multi-language/report.sarif.json +1 -1
  156. package/documents/pramanasutra/html/samples/unsafe-names/report.html +1 -1
  157. package/documents/pramanasutra/html/samples/unsafe-names/report.json +1 -1
  158. package/documents/pramanasutra/html/samples/unsafe-names/report.md +1 -1
  159. package/documents/pramanasutra/html/samples/unsafe-names/report.sarif.json +1 -1
  160. package/documents/pramanasutra/html/sitemap.xml +1 -0
  161. package/documents/pramanasutra/proof/test-results.txt +44 -44
  162. package/documents/pramanasutra/samples/clean-project/report.html +1 -1
  163. package/documents/pramanasutra/samples/clean-project/report.json +1 -1
  164. package/documents/pramanasutra/samples/clean-project/report.md +1 -1
  165. package/documents/pramanasutra/samples/clean-project/report.sarif.json +1 -1
  166. package/documents/pramanasutra/samples/focused-test/report.html +1 -1
  167. package/documents/pramanasutra/samples/focused-test/report.json +1 -1
  168. package/documents/pramanasutra/samples/focused-test/report.md +1 -1
  169. package/documents/pramanasutra/samples/focused-test/report.sarif.json +1 -1
  170. package/documents/pramanasutra/samples/missing-ci/report.html +1 -1
  171. package/documents/pramanasutra/samples/missing-ci/report.json +1 -1
  172. package/documents/pramanasutra/samples/missing-ci/report.md +1 -1
  173. package/documents/pramanasutra/samples/missing-ci/report.sarif.json +1 -1
  174. package/documents/pramanasutra/samples/missing-tests/report.html +1 -1
  175. package/documents/pramanasutra/samples/missing-tests/report.json +1 -1
  176. package/documents/pramanasutra/samples/missing-tests/report.md +1 -1
  177. package/documents/pramanasutra/samples/missing-tests/report.sarif.json +1 -1
  178. package/documents/pramanasutra/samples/multi-language/report.html +1 -1
  179. package/documents/pramanasutra/samples/multi-language/report.json +1 -1
  180. package/documents/pramanasutra/samples/multi-language/report.md +1 -1
  181. package/documents/pramanasutra/samples/multi-language/report.sarif.json +1 -1
  182. package/documents/pramanasutra/samples/unsafe-names/report.html +1 -1
  183. package/documents/pramanasutra/samples/unsafe-names/report.json +1 -1
  184. package/documents/pramanasutra/samples/unsafe-names/report.md +1 -1
  185. package/documents/pramanasutra/samples/unsafe-names/report.sarif.json +1 -1
  186. package/examples/sample-output/clean-project/report.html +1 -1
  187. package/examples/sample-output/clean-project/report.json +1 -1
  188. package/examples/sample-output/clean-project/report.md +1 -1
  189. package/examples/sample-output/clean-project/report.sarif.json +1 -1
  190. package/examples/sample-output/focused-test/report.html +1 -1
  191. package/examples/sample-output/focused-test/report.json +1 -1
  192. package/examples/sample-output/focused-test/report.md +1 -1
  193. package/examples/sample-output/focused-test/report.sarif.json +1 -1
  194. package/examples/sample-output/missing-ci/report.html +1 -1
  195. package/examples/sample-output/missing-ci/report.json +1 -1
  196. package/examples/sample-output/missing-ci/report.md +1 -1
  197. package/examples/sample-output/missing-ci/report.sarif.json +1 -1
  198. package/examples/sample-output/missing-tests/report.html +1 -1
  199. package/examples/sample-output/missing-tests/report.json +1 -1
  200. package/examples/sample-output/missing-tests/report.md +1 -1
  201. package/examples/sample-output/missing-tests/report.sarif.json +1 -1
  202. package/examples/sample-output/multi-language/report.html +1 -1
  203. package/examples/sample-output/multi-language/report.json +1 -1
  204. package/examples/sample-output/multi-language/report.md +1 -1
  205. package/examples/sample-output/multi-language/report.sarif.json +1 -1
  206. package/examples/sample-output/unsafe-names/report.html +1 -1
  207. package/examples/sample-output/unsafe-names/report.json +1 -1
  208. package/examples/sample-output/unsafe-names/report.md +1 -1
  209. package/examples/sample-output/unsafe-names/report.sarif.json +1 -1
  210. package/llms.txt +2 -1
  211. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,93 +1,104 @@
1
- # Changelog
2
-
3
- ## 0.3.5 - 2026-11-16
4
-
5
- ### Added
6
- - Node 24 (current LTS) joins the required CI matrix: Ubuntu and Windows, Node 20, 22 and 24.
7
- - Reports, the documentation site and package metadata link the author site https://shahvatsal.com.
8
-
9
- ### Changed
10
- - Version bump only for code: no scanner, gate or evidence behavior changed.
11
-
12
- ### Not in this release
13
- - The CLI still does not run the target's tests, a browser, a load generator, or a vulnerability scanner.
14
- - Evidence JSON is still unsigned. macOS stays off the required CI matrix.
15
-
16
- ## 0.3.4 - 2026-11-07
17
-
18
- ### Added
19
- - `report.sarif.json` (SARIF 2.1.0) is written with `report.md`, `report.html` and `report.json`. Nothing uploads it.
20
- - `--changed` on `scan` and `release-check` lists names from `git diff`. It does not select or run tests. A directory that is not a Git checkout says git diff was not available.
21
- - Reports state an evidence binding: `none`, `unbound`, or `ci-environment`. `ci-environment` means the JSON names a repository, commit, run id and workflow. It is not a signature.
22
- - `scripts/ci-gate.mjs` writes that `github` object when `GITHUB_REPOSITORY`, `GITHUB_SHA`, `GITHUB_RUN_ID` and `GITHUB_WORKFLOW` are set.
23
- - CI file detection also matches CircleCI (`.circleci/config.yml`), Buildkite (`.buildkite/pipeline.yml`), Drone (`.drone.yml`) and Woodpecker (`woodpecker.yml`).
24
- - The 17 skill workflows are different procedures. A test rejects a copied Safe workflow.
25
- - The documentation site opens on a product page. The 16 handbook chapters stay linked from it.
26
- - `scan` and `release-check` use the same exit codes. Exit 0 is only `READY_FOR_HUMAN_APPROVAL`. A scan with no evidence file exits 3.
27
- - The Windows symlink test uses a directory junction when the OS refuses a symlink.
28
-
29
- ### Not in this release
30
- - The CLI still does not run the target's tests, a browser, a load generator, or a vulnerability scanner.
31
- - Evidence JSON is still unsigned. A person can hand-write a `ci-environment` file.
32
- - macOS stays off the required CI matrix.
33
- - The twelve `packages/*` READMEs that say planned are still notes.
34
-
35
- ## 0.3.3 - 2026-11-06
36
-
37
- ### Fixed
38
- - The npm page for `pramanasutra` showed a blank README. The file began with a raw HTML `<div align="center">`, which npmjs.com does not render. The README is Markdown only, and its links are absolute so they work on the package page.
39
-
40
- ## 0.3.2 - 2026-11-06
41
-
42
- ### Added
43
- - `.github/workflows/publish.yml` publishes `pramanasutra` when a GitHub Release is published. Login is npm trusted publishing (OIDC). There is no stored npm token. `ci.yml` still only runs tests.
44
-
45
- ### Fixed
46
- - `@vatsalshah/pramanasutra` cannot be published. npm user `shahvatsal` does not own that scope (registry 404).
47
- - `@shahvatsal/pramanasutra@0.3.1` was published, then deleted, because the install name showed the scope. The public package name is the unscoped name `pramanasutra`.
48
- - `bin` path no longer starts with `./`, which npm 11 rewrote and reported as removed.
49
-
50
- ## 0.3.0 - 2026-11-06
51
-
52
- ### Added
53
- - Canonical documentation pack at `documents/pramanasutra/`: executive, functional, architecture, technical, user, rules, skills, security, legal, proof, CI, roadmap, FAQ and maintainer pages, in Markdown and generated HTML.
54
- - Self-audit of this repository as `documents/pramanasutra/audit/report.md` and `report.html`, produced by the CLI from a real unit-test run.
55
- - Sample audits copied beside the docs. Evidence counts are now a section in both Markdown and HTML reports, not only a state word.
56
- - `.pramanasutraignore` so labeled bad fixtures are excluded from a scan and the exclusion is written into the report. `..` entries are rejected.
57
- - `scripts/ci-gate.mjs`: CI runs the tests, parses the summary, and release-checks this repo. It exits 1 if it cannot read the counts.
58
- - Skip detection for `test.todo` / `xtest`, `pytest.skip()`, `pytest.xfail()`, `self.skipTest` and `raise unittest.SkipTest`.
59
- - Binary test files (NUL byte) are skipped and the scan is marked partial, so the gate cannot go ready.
60
- - `version` and `--version`. `doctor` includes the version from `package.json`.
61
-
62
- ### Fixed
63
- - Required CI no longer requests macOS. Run 41884015367 failed because both macOS jobs were cancelled in the queue with zero steps. A follow-up workflow on `macos-14` was cancelled the same way in about a second, with no runner (run 42098256304), so that workflow was removed. Ubuntu and Windows stay required. macOS execution is unverified in Actions.
64
- - `--help` and `--version` were rejected as unknown options.
65
- - Markdown reports escape `<` and `>` so a hostile path is not raw HTML on GitHub.
66
- - The malicious-filename escape test no longer depends on creating a file the OS forbids, so it runs on Windows.
67
-
68
- ### Changed
69
- - Reports lead with how to read them, a findings table, the test files seen, and the workflows seen.
70
- - `actions/checkout` and `actions/setup-node` are pinned to commit SHAs.
71
- - Documentation HTML does not load a chart library from a CDN.
72
-
73
- ## 0.2.0 - 2026-11-04
74
-
75
- ### Added
76
- - `release-check --evidence <file>` and `verify --evidence <file>`: schema-validated test-evidence ingestion. The gate can now reach `READY_FOR_HUMAN_APPROVAL`, only with passing `local-executed` or `ci-ingested` evidence and clean static checks.
77
- - `--policy <file>`: fail-closed policy loader (unknown keys rejected, safety flags cannot be weakened). New policy keys `blockOnSkippedTests`, `requireCi`, `requireLicense`, `requireTests`.
78
- - Reports are now written by default to `./pramanasutra-reports` as `report.md`, `report.html` and `report.json`; `--no-report` disables. Redesigned Markdown and HTML reports (summary, capabilities, findings with fixes, gate reasons, limitations; light/dark, printable).
79
- - Skip detection for pytest, unittest, JUnit and Go; test-file detection for Java, Kotlin, C#, Swift, Scala, PHP, Dart and Ruby naming conventions.
80
- - Six labeled fixtures, generated sample reports (`examples/sample-output`), captured test results and fixture evaluation (`docs/proof`).
81
- - Full handbook (13 pages) and a generated HTML documentation site in `docs/`; `llms.txt`, `CITATION.cff`, `THIRD_PARTY_NOTICES.md`, `SUPPORT.md`, CodeQL and Dependabot.
82
-
83
- ### Fixed
84
- - CI failed on Windows/Node 20 because `node --test tests/*.test.mjs` depended on shell globbing; the test file is now named explicitly.
85
- - `scan` no longer recurses into its own `pramanasutra-reports` output.
86
- - Reports no longer print "tests not run" ambiguously when evidence is supplied.
87
-
88
- ### Changed
89
- - GitHub Actions bumped to `checkout@v7`, `setup-node@v7`, `codeql-action@v4`.
90
-
91
- ## 0.1.0 - Starter snapshot
92
-
93
- - Dependency-free local QA scanner, conservative release gate, Markdown/JSON/HTML reports, portable specialist skills, IDE skill installer and CLI tests.
1
+ # Changelog
2
+
3
+ ## 0.3.6 - 2026-11-23
4
+
5
+ ### Added
6
+ - 15 diagrams in `documents/pramanasutra/diagrams/` (generated by `scripts/make-diagrams.mjs`): overview, release-gate flowchart, report files, evidence states and binding, trust boundaries, CI pipeline, skills team, component map, rules table, recorded-results graphs, quick start and scenario figures. Each is a self-contained SVG with a text alternative.
7
+ - New chapter `16-real-world-scenarios.md`: eight stories using real terminal output captured from the committed fixtures.
8
+ - The documentation site and the README now show the diagrams. The site accepts `![alt](path.svg)` as a captioned, click-to-open figure.
9
+
10
+ ### Changed
11
+ - Content width on the site is wider so diagrams are readable.
12
+ - No scanner, gate, evidence or report behavior changed.
13
+
14
+ ## 0.3.5 - 2026-11-16
15
+
16
+ ### Added
17
+ - Node 24 (current LTS) joins the required CI matrix: Ubuntu and Windows, Node 20, 22 and 24.
18
+ - Reports, the documentation site and package metadata link the author site https://shahvatsal.com.
19
+
20
+ ### Changed
21
+ - Version bump only for code: no scanner, gate or evidence behavior changed.
22
+
23
+ ### Not in this release
24
+ - The CLI still does not run the target's tests, a browser, a load generator, or a vulnerability scanner.
25
+ - Evidence JSON is still unsigned. macOS stays off the required CI matrix.
26
+
27
+ ## 0.3.4 - 2026-11-07
28
+
29
+ ### Added
30
+ - `report.sarif.json` (SARIF 2.1.0) is written with `report.md`, `report.html` and `report.json`. Nothing uploads it.
31
+ - `--changed` on `scan` and `release-check` lists names from `git diff`. It does not select or run tests. A directory that is not a Git checkout says git diff was not available.
32
+ - Reports state an evidence binding: `none`, `unbound`, or `ci-environment`. `ci-environment` means the JSON names a repository, commit, run id and workflow. It is not a signature.
33
+ - `scripts/ci-gate.mjs` writes that `github` object when `GITHUB_REPOSITORY`, `GITHUB_SHA`, `GITHUB_RUN_ID` and `GITHUB_WORKFLOW` are set.
34
+ - CI file detection also matches CircleCI (`.circleci/config.yml`), Buildkite (`.buildkite/pipeline.yml`), Drone (`.drone.yml`) and Woodpecker (`woodpecker.yml`).
35
+ - The 17 skill workflows are different procedures. A test rejects a copied Safe workflow.
36
+ - The documentation site opens on a product page. The 16 handbook chapters stay linked from it.
37
+ - `scan` and `release-check` use the same exit codes. Exit 0 is only `READY_FOR_HUMAN_APPROVAL`. A scan with no evidence file exits 3.
38
+ - The Windows symlink test uses a directory junction when the OS refuses a symlink.
39
+
40
+ ### Not in this release
41
+ - The CLI still does not run the target's tests, a browser, a load generator, or a vulnerability scanner.
42
+ - Evidence JSON is still unsigned. A person can hand-write a `ci-environment` file.
43
+ - macOS stays off the required CI matrix.
44
+ - The twelve `packages/*` READMEs that say planned are still notes.
45
+
46
+ ## 0.3.3 - 2026-11-06
47
+
48
+ ### Fixed
49
+ - The npm page for `pramanasutra` showed a blank README. The file began with a raw HTML `<div align="center">`, which npmjs.com does not render. The README is Markdown only, and its links are absolute so they work on the package page.
50
+
51
+ ## 0.3.2 - 2026-11-06
52
+
53
+ ### Added
54
+ - `.github/workflows/publish.yml` publishes `pramanasutra` when a GitHub Release is published. Login is npm trusted publishing (OIDC). There is no stored npm token. `ci.yml` still only runs tests.
55
+
56
+ ### Fixed
57
+ - `@vatsalshah/pramanasutra` cannot be published. npm user `shahvatsal` does not own that scope (registry 404).
58
+ - `@shahvatsal/pramanasutra@0.3.1` was published, then deleted, because the install name showed the scope. The public package name is the unscoped name `pramanasutra`.
59
+ - `bin` path no longer starts with `./`, which npm 11 rewrote and reported as removed.
60
+
61
+ ## 0.3.0 - 2026-11-06
62
+
63
+ ### Added
64
+ - Canonical documentation pack at `documents/pramanasutra/`: executive, functional, architecture, technical, user, rules, skills, security, legal, proof, CI, roadmap, FAQ and maintainer pages, in Markdown and generated HTML.
65
+ - Self-audit of this repository as `documents/pramanasutra/audit/report.md` and `report.html`, produced by the CLI from a real unit-test run.
66
+ - Sample audits copied beside the docs. Evidence counts are now a section in both Markdown and HTML reports, not only a state word.
67
+ - `.pramanasutraignore` so labeled bad fixtures are excluded from a scan and the exclusion is written into the report. `..` entries are rejected.
68
+ - `scripts/ci-gate.mjs`: CI runs the tests, parses the summary, and release-checks this repo. It exits 1 if it cannot read the counts.
69
+ - Skip detection for `test.todo` / `xtest`, `pytest.skip()`, `pytest.xfail()`, `self.skipTest` and `raise unittest.SkipTest`.
70
+ - Binary test files (NUL byte) are skipped and the scan is marked partial, so the gate cannot go ready.
71
+ - `version` and `--version`. `doctor` includes the version from `package.json`.
72
+
73
+ ### Fixed
74
+ - Required CI no longer requests macOS. Run 41884015367 failed because both macOS jobs were cancelled in the queue with zero steps. A follow-up workflow on `macos-14` was cancelled the same way in about a second, with no runner (run 42098256304), so that workflow was removed. Ubuntu and Windows stay required. macOS execution is unverified in Actions.
75
+ - `--help` and `--version` were rejected as unknown options.
76
+ - Markdown reports escape `<` and `>` so a hostile path is not raw HTML on GitHub.
77
+ - The malicious-filename escape test no longer depends on creating a file the OS forbids, so it runs on Windows.
78
+
79
+ ### Changed
80
+ - Reports lead with how to read them, a findings table, the test files seen, and the workflows seen.
81
+ - `actions/checkout` and `actions/setup-node` are pinned to commit SHAs.
82
+ - Documentation HTML does not load a chart library from a CDN.
83
+
84
+ ## 0.2.0 - 2026-11-04
85
+
86
+ ### Added
87
+ - `release-check --evidence <file>` and `verify --evidence <file>`: schema-validated test-evidence ingestion. The gate can now reach `READY_FOR_HUMAN_APPROVAL`, only with passing `local-executed` or `ci-ingested` evidence and clean static checks.
88
+ - `--policy <file>`: fail-closed policy loader (unknown keys rejected, safety flags cannot be weakened). New policy keys `blockOnSkippedTests`, `requireCi`, `requireLicense`, `requireTests`.
89
+ - Reports are now written by default to `./pramanasutra-reports` as `report.md`, `report.html` and `report.json`; `--no-report` disables. Redesigned Markdown and HTML reports (summary, capabilities, findings with fixes, gate reasons, limitations; light/dark, printable).
90
+ - Skip detection for pytest, unittest, JUnit and Go; test-file detection for Java, Kotlin, C#, Swift, Scala, PHP, Dart and Ruby naming conventions.
91
+ - Six labeled fixtures, generated sample reports (`examples/sample-output`), captured test results and fixture evaluation (`docs/proof`).
92
+ - Full handbook (13 pages) and a generated HTML documentation site in `docs/`; `llms.txt`, `CITATION.cff`, `THIRD_PARTY_NOTICES.md`, `SUPPORT.md`, CodeQL and Dependabot.
93
+
94
+ ### Fixed
95
+ - CI failed on Windows/Node 20 because `node --test tests/*.test.mjs` depended on shell globbing; the test file is now named explicitly.
96
+ - `scan` no longer recurses into its own `pramanasutra-reports` output.
97
+ - Reports no longer print "tests not run" ambiguously when evidence is supplied.
98
+
99
+ ### Changed
100
+ - GitHub Actions bumped to `checkout@v7`, `setup-node@v7`, `codeql-action@v4`.
101
+
102
+ ## 0.1.0 - Starter snapshot
103
+
104
+ - Dependency-free local QA scanner, conservative release gate, Markdown/JSON/HTML reports, portable specialist skills, IDE skill installer and CLI tests.
package/README.md CHANGED
@@ -19,7 +19,15 @@ PramanaSutra AI (from *pramana*, "valid proof") is an open-source **QA and relea
19
19
 
20
20
  > **No extra API key.** Skills use the IDE's own model. The CLI makes no network calls and has no telemetry.
21
21
 
22
- Created by **[Vatsal Shah](https://shahvatsal.com)**. Official site: [shahvatsal.com](https://shahvatsal.com). Apache-2.0. Version 0.3.5. The npm page stays on the last published tarball until `npm view pramanasutra version` matches this line.
22
+ Created by **[Vatsal Shah](https://shahvatsal.com)**. Official site: [shahvatsal.com](https://shahvatsal.com). Apache-2.0. Version 0.3.6. The npm page stays on the last published tarball until `npm view pramanasutra version` matches this line.
23
+
24
+ ## At a glance
25
+
26
+ ![Overview: your project files, test results and policy go into the pramanasutra command, which writes four report files and an exit code. A person decides.](https://raw.githubusercontent.com/shahvatsalofficial/pramanasutra-ai/main/documents/pramanasutra/diagrams/overview.svg)
27
+
28
+ The tool never runs your tests. It reads the project and reads the test results you give it, then decides one of three outcomes.
29
+
30
+ ![Release gate flowchart: a blocking finding or failing evidence is NO_GO; anything missing is REVIEW_REQUIRED; otherwise READY_FOR_HUMAN_APPROVAL, then a person decides.](https://raw.githubusercontent.com/shahvatsalofficial/pramanasutra-ai/main/documents/pramanasutra/diagrams/gate-flow.svg)
23
31
 
24
32
  ## Install
25
33
 
@@ -91,6 +99,12 @@ Every `scan` and `release-check` writes the four files together unless you pass
91
99
 
92
100
  Open a finished example: [Markdown](https://github.com/shahvatsalofficial/pramanasutra-ai/blob/main/documents/pramanasutra/samples/focused-test/report.md), [HTML](https://shahvatsalofficial.github.io/pramanasutra-ai/samples/focused-test/report.html). How to read them: [CLI and reports](https://shahvatsalofficial.github.io/pramanasutra-ai/06-cli-and-reports.html).
93
101
 
102
+ ## Real-world scenarios
103
+
104
+ Eight true stories with the real terminal output: a stray `test.only`, an AI that says "all tests pass", a pull-request gate, piled-up skipped tests, a pasted JSON, a legacy service, hostile file names, and teaching your IDE. [Read the scenarios](https://shahvatsalofficial.github.io/pramanasutra-ai/16-real-world-scenarios.html).
105
+
106
+ ![Before and after fixing a test.only: 1 of 2 tests run, then 2 of 2, and the gate moves from NO_GO to ready for a human](https://raw.githubusercontent.com/shahvatsalofficial/pramanasutra-ai/main/documents/pramanasutra/diagrams/scenario-focused-test.svg)
107
+
94
108
  ## Release gate
95
109
 
96
110
  | Decision | Exit | Meaning |
@@ -126,6 +140,7 @@ The maintained pack is [documents/pramanasutra](https://github.com/shahvatsaloff
126
140
  | Architecture | [03](https://shahvatsalofficial.github.io/pramanasutra-ai/03-architecture.html) |
127
141
  | Technical reference | [04](https://shahvatsalofficial.github.io/pramanasutra-ai/04-technical-reference.html) |
128
142
  | User guide | [05](https://shahvatsalofficial.github.io/pramanasutra-ai/05-user-guide.html) |
143
+ | Real-world scenarios | [16](https://shahvatsalofficial.github.io/pramanasutra-ai/16-real-world-scenarios.html) |
129
144
  | Security | [09](https://shahvatsalofficial.github.io/pramanasutra-ai/09-security-and-privacy.html) |
130
145
  | Legal | [10](https://shahvatsalofficial.github.io/pramanasutra-ai/10-legal-and-compliance.html) |
131
146
  | Roadmap | [13](https://shahvatsalofficial.github.io/pramanasutra-ai/13-roadmap-and-status.html) |