pramanasutra 0.3.2 → 0.3.5

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 (187) hide show
  1. package/.agents/skills/pramanasutra-access/SKILL.md +5 -18
  2. package/.agents/skills/pramanasutra-api/SKILL.md +5 -18
  3. package/.agents/skills/pramanasutra-data/SKILL.md +5 -18
  4. package/.agents/skills/pramanasutra-defect/SKILL.md +5 -18
  5. package/.agents/skills/pramanasutra-evidence/SKILL.md +5 -18
  6. package/.agents/skills/pramanasutra-flake/SKILL.md +5 -18
  7. package/.agents/skills/pramanasutra-flow/SKILL.md +5 -18
  8. package/.agents/skills/pramanasutra-load/SKILL.md +5 -18
  9. package/.agents/skills/pramanasutra-pipeline/SKILL.md +5 -18
  10. package/.agents/skills/pramanasutra-prime/SKILL.md +6 -22
  11. package/.agents/skills/pramanasutra-regression/SKILL.md +5 -18
  12. package/.agents/skills/pramanasutra-release/SKILL.md +5 -18
  13. package/.agents/skills/pramanasutra-secure/SKILL.md +5 -18
  14. package/.agents/skills/pramanasutra-strategy/SKILL.md +5 -18
  15. package/.agents/skills/pramanasutra-unit/SKILL.md +5 -18
  16. package/.agents/skills/pramanasutra-verify/SKILL.md +5 -18
  17. package/.agents/skills/pramanasutra-visual/SKILL.md +5 -18
  18. package/CHANGELOG.md +93 -56
  19. package/README.md +64 -61
  20. package/docs/00-start-here.html +156 -144
  21. package/docs/01-executive-summary.html +149 -136
  22. package/docs/02-functional-specification.html +152 -139
  23. package/docs/03-architecture.html +148 -135
  24. package/docs/04-technical-reference.html +151 -138
  25. package/docs/05-user-guide.html +152 -138
  26. package/docs/06-cli-and-reports.html +153 -140
  27. package/docs/07-rule-catalog.html +150 -137
  28. package/docs/08-skills-and-agents.html +149 -136
  29. package/docs/09-security-and-privacy.html +147 -134
  30. package/docs/10-legal-and-compliance.html +148 -135
  31. package/docs/11-testing-and-proof.html +151 -138
  32. package/docs/12-ci-and-release.html +149 -136
  33. package/docs/13-roadmap-and-status.html +155 -142
  34. package/docs/14-faq-and-glossary.html +147 -134
  35. package/docs/15-maintainer-guide.html +147 -134
  36. package/docs/audit/report.html +9 -7
  37. package/docs/audit/report.json +7 -5
  38. package/docs/audit/report.md +10 -7
  39. package/docs/audit/report.sarif.json +16 -0
  40. package/docs/handbook/05-user-guide.md +2 -1
  41. package/docs/handbook/06-cli-reference.md +1 -1
  42. package/docs/index.html +189 -171
  43. package/docs/proof/test-results.txt +47 -42
  44. package/docs/samples/clean-project/report.html +4 -3
  45. package/docs/samples/clean-project/report.json +2 -1
  46. package/docs/samples/clean-project/report.md +5 -3
  47. package/docs/samples/clean-project/report.sarif.json +16 -0
  48. package/docs/samples/focused-test/report.html +4 -3
  49. package/docs/samples/focused-test/report.json +2 -1
  50. package/docs/samples/focused-test/report.md +5 -3
  51. package/docs/samples/focused-test/report.sarif.json +43 -0
  52. package/docs/samples/missing-ci/report.html +5 -4
  53. package/docs/samples/missing-ci/report.json +2 -1
  54. package/docs/samples/missing-ci/report.md +6 -4
  55. package/docs/samples/missing-ci/report.sarif.json +40 -0
  56. package/docs/samples/missing-tests/report.html +4 -3
  57. package/docs/samples/missing-tests/report.json +2 -1
  58. package/docs/samples/missing-tests/report.md +5 -3
  59. package/docs/samples/missing-tests/report.sarif.json +40 -0
  60. package/docs/samples/multi-language/report.html +5 -4
  61. package/docs/samples/multi-language/report.json +2 -1
  62. package/docs/samples/multi-language/report.md +6 -4
  63. package/docs/samples/multi-language/report.sarif.json +125 -0
  64. package/docs/samples/unsafe-names/report.html +4 -3
  65. package/docs/samples/unsafe-names/report.json +2 -1
  66. package/docs/samples/unsafe-names/report.md +5 -3
  67. package/docs/samples/unsafe-names/report.sarif.json +43 -0
  68. package/docs/status.md +5 -3
  69. package/documents/pramanasutra/00-start-here.md +7 -10
  70. package/documents/pramanasutra/01-executive-summary.md +3 -3
  71. package/documents/pramanasutra/02-functional-specification.md +4 -4
  72. package/documents/pramanasutra/03-architecture.md +1 -1
  73. package/documents/pramanasutra/04-technical-reference.md +8 -6
  74. package/documents/pramanasutra/05-user-guide.md +8 -5
  75. package/documents/pramanasutra/06-cli-and-reports.md +6 -6
  76. package/documents/pramanasutra/07-rule-catalog.md +3 -3
  77. package/documents/pramanasutra/08-skills-and-agents.md +2 -2
  78. package/documents/pramanasutra/10-legal-and-compliance.md +1 -1
  79. package/documents/pramanasutra/11-testing-and-proof.md +6 -6
  80. package/documents/pramanasutra/12-ci-and-release.md +2 -2
  81. package/documents/pramanasutra/13-roadmap-and-status.md +16 -11
  82. package/documents/pramanasutra/README.md +11 -11
  83. package/documents/pramanasutra/audit/report.html +9 -7
  84. package/documents/pramanasutra/audit/report.json +7 -5
  85. package/documents/pramanasutra/audit/report.md +10 -7
  86. package/documents/pramanasutra/audit/report.sarif.json +16 -0
  87. package/documents/pramanasutra/html/00-start-here.html +156 -144
  88. package/documents/pramanasutra/html/01-executive-summary.html +149 -136
  89. package/documents/pramanasutra/html/02-functional-specification.html +152 -139
  90. package/documents/pramanasutra/html/03-architecture.html +148 -135
  91. package/documents/pramanasutra/html/04-technical-reference.html +151 -138
  92. package/documents/pramanasutra/html/05-user-guide.html +152 -138
  93. package/documents/pramanasutra/html/06-cli-and-reports.html +153 -140
  94. package/documents/pramanasutra/html/07-rule-catalog.html +150 -137
  95. package/documents/pramanasutra/html/08-skills-and-agents.html +149 -136
  96. package/documents/pramanasutra/html/09-security-and-privacy.html +147 -134
  97. package/documents/pramanasutra/html/10-legal-and-compliance.html +148 -135
  98. package/documents/pramanasutra/html/11-testing-and-proof.html +151 -138
  99. package/documents/pramanasutra/html/12-ci-and-release.html +149 -136
  100. package/documents/pramanasutra/html/13-roadmap-and-status.html +155 -142
  101. package/documents/pramanasutra/html/14-faq-and-glossary.html +147 -134
  102. package/documents/pramanasutra/html/15-maintainer-guide.html +147 -134
  103. package/documents/pramanasutra/html/audit/report.html +9 -7
  104. package/documents/pramanasutra/html/audit/report.json +7 -5
  105. package/documents/pramanasutra/html/audit/report.md +10 -7
  106. package/documents/pramanasutra/html/audit/report.sarif.json +16 -0
  107. package/documents/pramanasutra/html/index.html +189 -171
  108. package/documents/pramanasutra/html/proof/test-results.txt +47 -42
  109. package/documents/pramanasutra/html/samples/clean-project/report.html +4 -3
  110. package/documents/pramanasutra/html/samples/clean-project/report.json +2 -1
  111. package/documents/pramanasutra/html/samples/clean-project/report.md +5 -3
  112. package/documents/pramanasutra/html/samples/clean-project/report.sarif.json +16 -0
  113. package/documents/pramanasutra/html/samples/focused-test/report.html +4 -3
  114. package/documents/pramanasutra/html/samples/focused-test/report.json +2 -1
  115. package/documents/pramanasutra/html/samples/focused-test/report.md +5 -3
  116. package/documents/pramanasutra/html/samples/focused-test/report.sarif.json +43 -0
  117. package/documents/pramanasutra/html/samples/missing-ci/report.html +5 -4
  118. package/documents/pramanasutra/html/samples/missing-ci/report.json +2 -1
  119. package/documents/pramanasutra/html/samples/missing-ci/report.md +6 -4
  120. package/documents/pramanasutra/html/samples/missing-ci/report.sarif.json +40 -0
  121. package/documents/pramanasutra/html/samples/missing-tests/report.html +4 -3
  122. package/documents/pramanasutra/html/samples/missing-tests/report.json +2 -1
  123. package/documents/pramanasutra/html/samples/missing-tests/report.md +5 -3
  124. package/documents/pramanasutra/html/samples/missing-tests/report.sarif.json +40 -0
  125. package/documents/pramanasutra/html/samples/multi-language/report.html +5 -4
  126. package/documents/pramanasutra/html/samples/multi-language/report.json +2 -1
  127. package/documents/pramanasutra/html/samples/multi-language/report.md +6 -4
  128. package/documents/pramanasutra/html/samples/multi-language/report.sarif.json +125 -0
  129. package/documents/pramanasutra/html/samples/unsafe-names/report.html +4 -3
  130. package/documents/pramanasutra/html/samples/unsafe-names/report.json +2 -1
  131. package/documents/pramanasutra/html/samples/unsafe-names/report.md +5 -3
  132. package/documents/pramanasutra/html/samples/unsafe-names/report.sarif.json +43 -0
  133. package/documents/pramanasutra/proof/test-results.txt +47 -42
  134. package/documents/pramanasutra/samples/clean-project/report.html +4 -3
  135. package/documents/pramanasutra/samples/clean-project/report.json +2 -1
  136. package/documents/pramanasutra/samples/clean-project/report.md +5 -3
  137. package/documents/pramanasutra/samples/clean-project/report.sarif.json +16 -0
  138. package/documents/pramanasutra/samples/focused-test/report.html +4 -3
  139. package/documents/pramanasutra/samples/focused-test/report.json +2 -1
  140. package/documents/pramanasutra/samples/focused-test/report.md +5 -3
  141. package/documents/pramanasutra/samples/focused-test/report.sarif.json +43 -0
  142. package/documents/pramanasutra/samples/missing-ci/report.html +5 -4
  143. package/documents/pramanasutra/samples/missing-ci/report.json +2 -1
  144. package/documents/pramanasutra/samples/missing-ci/report.md +6 -4
  145. package/documents/pramanasutra/samples/missing-ci/report.sarif.json +40 -0
  146. package/documents/pramanasutra/samples/missing-tests/report.html +4 -3
  147. package/documents/pramanasutra/samples/missing-tests/report.json +2 -1
  148. package/documents/pramanasutra/samples/missing-tests/report.md +5 -3
  149. package/documents/pramanasutra/samples/missing-tests/report.sarif.json +40 -0
  150. package/documents/pramanasutra/samples/multi-language/report.html +5 -4
  151. package/documents/pramanasutra/samples/multi-language/report.json +2 -1
  152. package/documents/pramanasutra/samples/multi-language/report.md +6 -4
  153. package/documents/pramanasutra/samples/multi-language/report.sarif.json +125 -0
  154. package/documents/pramanasutra/samples/unsafe-names/report.html +4 -3
  155. package/documents/pramanasutra/samples/unsafe-names/report.json +2 -1
  156. package/documents/pramanasutra/samples/unsafe-names/report.md +5 -3
  157. package/documents/pramanasutra/samples/unsafe-names/report.sarif.json +43 -0
  158. package/examples/sample-output/clean-project/report.html +4 -3
  159. package/examples/sample-output/clean-project/report.json +2 -1
  160. package/examples/sample-output/clean-project/report.md +5 -3
  161. package/examples/sample-output/clean-project/report.sarif.json +16 -0
  162. package/examples/sample-output/focused-test/report.html +4 -3
  163. package/examples/sample-output/focused-test/report.json +2 -1
  164. package/examples/sample-output/focused-test/report.md +5 -3
  165. package/examples/sample-output/focused-test/report.sarif.json +43 -0
  166. package/examples/sample-output/missing-ci/report.html +5 -4
  167. package/examples/sample-output/missing-ci/report.json +2 -1
  168. package/examples/sample-output/missing-ci/report.md +6 -4
  169. package/examples/sample-output/missing-ci/report.sarif.json +40 -0
  170. package/examples/sample-output/missing-tests/report.html +4 -3
  171. package/examples/sample-output/missing-tests/report.json +2 -1
  172. package/examples/sample-output/missing-tests/report.md +5 -3
  173. package/examples/sample-output/missing-tests/report.sarif.json +40 -0
  174. package/examples/sample-output/multi-language/report.html +5 -4
  175. package/examples/sample-output/multi-language/report.json +2 -1
  176. package/examples/sample-output/multi-language/report.md +6 -4
  177. package/examples/sample-output/multi-language/report.sarif.json +125 -0
  178. package/examples/sample-output/unsafe-names/report.html +4 -3
  179. package/examples/sample-output/unsafe-names/report.json +2 -1
  180. package/examples/sample-output/unsafe-names/report.md +5 -3
  181. package/examples/sample-output/unsafe-names/report.sarif.json +43 -0
  182. package/llms.txt +7 -4
  183. package/package.json +6 -3
  184. package/packages/cli/bin/pramanasutra.mjs +11 -10
  185. package/packages/cli/lib/evidence.mjs +15 -1
  186. package/packages/cli/lib/report.mjs +64 -9
  187. package/packages/cli/lib/scanner.mjs +21 -3
package/CHANGELOG.md CHANGED
@@ -1,56 +1,93 @@
1
- # Changelog
2
-
3
- ## 0.3.2 - 2026-11-06
4
-
5
- ### Added
6
- - `.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.
7
-
8
- ### Fixed
9
- - `@vatsalshah/pramanasutra` cannot be published. npm user `shahvatsal` does not own that scope (registry 404).
10
- - `@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`.
11
- - `bin` path no longer starts with `./`, which npm 11 rewrote and reported as removed.
12
-
13
- ## 0.3.0 - 2026-11-06
14
-
15
- ### Added
16
- - 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.
17
- - Self-audit of this repository as `documents/pramanasutra/audit/report.md` and `report.html`, produced by the CLI from a real unit-test run.
18
- - Sample audits copied beside the docs. Evidence counts are now a section in both Markdown and HTML reports, not only a state word.
19
- - `.pramanasutraignore` so labeled bad fixtures are excluded from a scan and the exclusion is written into the report. `..` entries are rejected.
20
- - `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.
21
- - Skip detection for `test.todo` / `xtest`, `pytest.skip()`, `pytest.xfail()`, `self.skipTest` and `raise unittest.SkipTest`.
22
- - Binary test files (NUL byte) are skipped and the scan is marked partial, so the gate cannot go ready.
23
- - `version` and `--version`. `doctor` includes the version from `package.json`.
24
-
25
- ### Fixed
26
- - 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.
27
- - `--help` and `--version` were rejected as unknown options.
28
- - Markdown reports escape `<` and `>` so a hostile path is not raw HTML on GitHub.
29
- - The malicious-filename escape test no longer depends on creating a file the OS forbids, so it runs on Windows.
30
-
31
- ### Changed
32
- - Reports lead with how to read them, a findings table, the test files seen, and the workflows seen.
33
- - `actions/checkout` and `actions/setup-node` are pinned to commit SHAs.
34
- - Documentation HTML does not load a chart library from a CDN.
35
-
36
- ## 0.2.0 - 2026-11-04
37
-
38
- ### Added
39
- - `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.
40
- - `--policy <file>`: fail-closed policy loader (unknown keys rejected, safety flags cannot be weakened). New policy keys `blockOnSkippedTests`, `requireCi`, `requireLicense`, `requireTests`.
41
- - 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).
42
- - Skip detection for pytest, unittest, JUnit and Go; test-file detection for Java, Kotlin, C#, Swift, Scala, PHP, Dart and Ruby naming conventions.
43
- - Six labeled fixtures, generated sample reports (`examples/sample-output`), captured test results and fixture evaluation (`docs/proof`).
44
- - 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.
45
-
46
- ### Fixed
47
- - CI failed on Windows/Node 20 because `node --test tests/*.test.mjs` depended on shell globbing; the test file is now named explicitly.
48
- - `scan` no longer recurses into its own `pramanasutra-reports` output.
49
- - Reports no longer print "tests not run" ambiguously when evidence is supplied.
50
-
51
- ### Changed
52
- - GitHub Actions bumped to `checkout@v7`, `setup-node@v7`, `codeql-action@v4`.
53
-
54
- ## 0.1.0 - Starter snapshot
55
-
56
- - 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.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.
package/README.md CHANGED
@@ -1,73 +1,48 @@
1
- <div align="center">
2
-
3
1
  # PramanaSutra AI
4
2
 
5
- ### QA and release-readiness agent for Claude Code, Cursor, Codex, GitHub Copilot and Gemini CLI
6
-
7
- Evidence-first review with `file:line` findings. The audit is a Markdown file and an HTML file, plus JSON for tools. No extra API key.
3
+ QA and release-readiness agent for Claude Code, Cursor, Codex, GitHub Copilot and Gemini CLI.
8
4
 
9
5
  [![CI](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/workflows/ci.yml/badge.svg)](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/workflows/ci.yml)
10
6
  [![CodeQL](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/workflows/codeql.yml/badge.svg)](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/workflows/codeql.yml)
11
- [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
7
+ [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/shahvatsalofficial/pramanasutra-ai/blob/main/LICENSE)
8
+ [![npm](https://img.shields.io/npm/v/pramanasutra.svg)](https://www.npmjs.com/package/pramanasutra)
12
9
  ![Node](https://img.shields.io/badge/node-%E2%89%A520-339933)
13
10
  ![Runtime dependencies](https://img.shields.io/badge/runtime%20dependencies-0-brightgreen)
14
11
 
15
- [**Documentation**](https://shahvatsalofficial.github.io/pramanasutra-ai/) · [Start here](documents/pramanasutra/00-start-here.md) · [HTML docs](documents/pramanasutra/html/index.html) · [This repo's audit (Markdown)](documents/pramanasutra/audit/report.md) · [This repo's audit (HTML)](documents/pramanasutra/audit/report.html) · [Proof](documents/pramanasutra/11-testing-and-proof.md)
12
+ Evidence-first review with `file:line` findings. The audit is Markdown, HTML, JSON, and SARIF. No extra API key.
16
13
 
17
- </div>
14
+ [Documentation](https://shahvatsalofficial.github.io/pramanasutra-ai/) · [Start here](https://shahvatsalofficial.github.io/pramanasutra-ai/00-start-here.html) · [GitHub](https://github.com/shahvatsalofficial/pramanasutra-ai) · [npm](https://www.npmjs.com/package/pramanasutra) · [shahvatsal.com](https://shahvatsal.com)
18
15
 
19
- ---
16
+ PramanaSutra AI (from *pramana*, "valid proof") is an open-source **QA and release-readiness agent**. It ships 17 portable [Agent Skills](https://agentskills.io/specification), led by **PramanaSutra Prime**, and a deterministic offline CLI. The CLI reads a repository, does not run its tests, and writes **`report.md`**, **`report.html`**, **`report.json`** and **`report.sarif.json`** of the same audit. The release gate is `NO_GO`, `REVIEW_REQUIRED` or `READY_FOR_HUMAN_APPROVAL`. A ready result still needs a person. It is never a deploy order.
20
17
 
21
- PramanaSutra AI (from *pramana*, "valid proof") is an open-source **QA and release-readiness agent**. It ships 17 portable [Agent Skills](https://agentskills.io/specification), led by **PramanaSutra Prime**, and a deterministic offline CLI. The CLI reads a repository, does not run its tests, and writes **`report.md`**, **`report.html`** and **`report.json`** of the same audit. The release gate is `NO_GO`, `REVIEW_REQUIRED` or `READY_FOR_HUMAN_APPROVAL`. A ready result still needs a person. It is never a deploy order.
18
+ `scan` and `release-check` use the same exit codes. Exit `2` is `NO_GO`, `3` is `REVIEW_REQUIRED`, `0` is `READY_FOR_HUMAN_APPROVAL`. A scan with no evidence file is `REVIEW_REQUIRED`. `--changed` lists names from `git diff`. It does not choose or run tests. An evidence file with no `github` object is marked **unbound**. A file that names a repository, commit, run id and workflow is marked **ci-environment**. That label is not a signature. PramanaSutra does not ask GitHub whether those four values are real.
22
19
 
23
20
  > **No extra API key.** Skills use the IDE's own model. The CLI makes no network calls and has no telemetry.
24
21
 
25
- Created by **[Vatsal Shah](https://github.com/shahvatsalofficial)**. Apache-2.0. Version 0.3.2. Public repository: [github.com/shahvatsalofficial/pramanasutra-ai](https://github.com/shahvatsalofficial/pramanasutra-ai).
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.
26
23
 
27
- ## Why
24
+ ## Install
28
25
 
29
- | Problem | What PramanaSutra does |
30
- |---|---|
31
- | An assistant says the tests passed without running them | Static findings and supplied evidence stay in different sections. The gate cannot go ready without a valid evidence file |
32
- | `test.only` slips into main | `FOCUSED_TEST` cites `file:line` and the default policy returns `NO_GO` |
33
- | A green board hides what was not checked | Every report lists capabilities as executed, not-run, not-supported, or evidence-supplied |
34
- | Another key, another bill | Zero runtime dependencies |
35
-
36
- ## Proof
37
-
38
- | Evidence | Result |
39
- |---|---|
40
- | Unit tests on the captured Windows run | **38 tests, 37 passed, 0 failed, 1 skipped** (symlink creation was prohibited). Output: [proof/test-results.txt](documents/pramanasutra/proof/test-results.txt) |
41
- | Labeled fixtures | 6 of 6 match the expected rules and decision. Precision and recall are 1 **on those author-written fixtures**, which is a regression lock, not field accuracy. [eval-results.json](documents/pramanasutra/proof/eval-results.json) |
42
- | This repository, with that test output as evidence | `READY_FOR_HUMAN_APPROVAL`, 0 findings, after `fixtures/` and `examples/sample-app/` were excluded and named in the report. [audit Markdown](documents/pramanasutra/audit/report.md), [audit HTML](documents/pramanasutra/audit/report.html) |
43
- | Required CI | Ubuntu and Windows, Node 20 and 22, then the same release gate. [Actions](https://github.com/shahvatsalofficial/pramanasutra-ai/actions) |
44
- | macOS in GitHub Actions | Not scheduled. Jobs were cancelled with zero steps: [41884015367](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/runs/41884015367) (queued) and [42098256304](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/runs/42098256304) (cancelled in about a second, no runner). That is not a test result. Do not read it as a pass or a product failure |
45
- | Runtime dependencies | 0 |
46
- | Network calls by the CLI | 0 |
47
-
48
- Not yet proven: live behavior in each IDE, accuracy on large real repositories, an independent security review, trademark clearance. Details: [testing and proof](documents/pramanasutra/11-testing-and-proof.md) and [legal](documents/pramanasutra/10-legal-and-compliance.md).
49
-
50
- npm name: [`pramanasutra`](https://www.npmjs.com/package/pramanasutra). `@shahvatsal/pramanasutra` was deleted. `@vatsalshah/pramanasutra` cannot be published by npm user `shahvatsal` (registry 404). Until `npm view pramanasutra version` prints `0.3.2`, install from GitHub.
51
-
52
- ## 60-second start
53
-
54
- Node.js 20+.
26
+ Node.js 20 or newer.
55
27
 
56
28
  ```bash
57
- npx github:shahvatsalofficial/pramanasutra-ai release-check --path .
29
+ npx pramanasutra release-check --path .
58
30
  ```
59
31
 
60
- After the publish workflow has put `0.3.2` on npm, the same command is `npx pramanasutra release-check --path .`.
32
+ ```bash
33
+ npm install -g pramanasutra
34
+ pramanasutra release-check --path .
35
+ ```
61
36
 
62
- Writes `./pramanasutra-reports/report.md`, `report.html` and `report.json`. Exit `2` is `NO_GO`, `3` is `REVIEW_REQUIRED`, `0` is `READY_FOR_HUMAN_APPROVAL`.
37
+ Writes `./pramanasutra-reports/report.md`, `report.html`, `report.json` and `report.sarif.json` in the current directory. Exit `2` is `NO_GO`, `3` is `REVIEW_REQUIRED`, `0` is `READY_FOR_HUMAN_APPROVAL`. `scan` and `release-check` use that mapping. Exit 0 still needs passing evidence.
63
38
 
64
39
  ```bash
65
- npx github:shahvatsalofficial/pramanasutra-ai init --ide claude --target .
40
+ npx pramanasutra init --ide cursor --target .
66
41
  ```
67
42
 
68
43
  `--ide` is `claude`, `cursor`, `codex`, `gemini`, `copilot`, `generic` or `all`.
69
44
 
70
- From a clone:
45
+ From a clone of the repository:
71
46
 
72
47
  ```bash
73
48
  node packages/cli/bin/pramanasutra.mjs doctor
@@ -78,17 +53,43 @@ npm test
78
53
 
79
54
  The first check exits 2. The second exits 0.
80
55
 
56
+ ## Why
57
+
58
+ | Problem | What PramanaSutra does |
59
+ |---|---|
60
+ | An assistant says the tests passed without running them | Static findings and supplied evidence stay in different sections. The gate cannot go ready without a valid evidence file |
61
+ | `test.only` slips into main | `FOCUSED_TEST` cites `file:line` and the default policy returns `NO_GO` |
62
+ | A green board hides what was not checked | Every report lists capabilities as executed, not-run, not-supported, or evidence-supplied |
63
+ | Another key, another bill | Zero runtime dependencies |
64
+
65
+ ## Proof
66
+
67
+ | Evidence | Result |
68
+ |---|---|
69
+ | Unit tests on the captured Windows run | **43 tests, 43 passed, 0 failed, 0 skipped**. The symlink test uses a directory junction when Windows refuses a symlink. [test-results.txt](https://github.com/shahvatsalofficial/pramanasutra-ai/blob/main/documents/pramanasutra/proof/test-results.txt) |
70
+ | Labeled fixtures | 6 of 6 match the expected rules and decision. Precision and recall are 1 **on those author-written fixtures**, which is a regression lock, not field accuracy. [eval-results.json](https://github.com/shahvatsalofficial/pramanasutra-ai/blob/main/documents/pramanasutra/proof/eval-results.json) |
71
+ | This repository, with that test output as evidence | `READY_FOR_HUMAN_APPROVAL`, 0 findings, after `fixtures/` and `examples/sample-app/` were excluded and named in the report. [Audit Markdown](https://github.com/shahvatsalofficial/pramanasutra-ai/blob/main/documents/pramanasutra/audit/report.md), [audit HTML](https://shahvatsalofficial.github.io/pramanasutra-ai/audit/report.html) |
72
+ | Required CI | Ubuntu and Windows, Node 20, 22 and 24, then the same release gate. [Actions](https://github.com/shahvatsalofficial/pramanasutra-ai/actions) |
73
+ | macOS in GitHub Actions | Not scheduled. Jobs were cancelled with zero steps: [41884015367](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/runs/41884015367) (queued) and [42098256304](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/runs/42098256304) (cancelled in about a second, no runner). That is not a test result |
74
+ | Runtime dependencies | 0 |
75
+ | Network calls by the CLI | 0 |
76
+
77
+ Not yet proven: live behavior in each IDE, accuracy on large real repositories, an independent security review, trademark clearance. Details: [testing and proof](https://shahvatsalofficial.github.io/pramanasutra-ai/11-testing-and-proof.html) and [legal](https://shahvatsalofficial.github.io/pramanasutra-ai/10-legal-and-compliance.html).
78
+
81
79
  ## Reports
82
80
 
83
- Every `scan` and `release-check` writes the three files together unless you pass `--no-report`. Default directory: `./pramanasutra-reports` in the current working directory, not inside the scanned tree.
81
+ Every `scan` and `release-check` writes the four files together unless you pass `--no-report`. Default directory: `./pramanasutra-reports` in the current working directory, not inside the scanned tree.
84
82
 
85
83
  | File | Use |
86
84
  |---|---|
87
85
  | `report.md` | Pull requests and plain reading |
88
86
  | `report.html` | Browser. No remote assets. Light, dark, print |
89
- | `report.json` | CI. Schema 1.0.0 |
87
+ | `report.json` | CI and scripts. Schema 1.0.0 |
88
+ | `report.sarif.json` | SARIF 2.1.0. The file is written locally. Nothing uploads it |
90
89
 
91
- Open a finished example: [Markdown](documents/pramanasutra/samples/focused-test/report.md), [HTML](documents/pramanasutra/samples/focused-test/report.html). How to read them: [CLI and reports](documents/pramanasutra/06-cli-and-reports.md).
90
+ `--changed` adds a changed-file list when `git diff` works. A directory that is not a Git checkout says `git diff was not available for this directory, so no changed-file list was collected.`
91
+
92
+ 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).
92
93
 
93
94
  ## Release gate
94
95
 
@@ -102,7 +103,9 @@ Open a finished example: [Markdown](documents/pramanasutra/samples/focused-test/
102
103
 
103
104
  ## Skills
104
105
 
105
- `pramanasutra-prime` plus strategy, unit, flow, api, visual, access, load, data, secure, regression, flake, defect, pipeline, release, evidence, verify. Canonical source: [`.agents/skills`](.agents/skills). Catalog: [skills and agents](documents/pramanasutra/08-skills-and-agents.md).
106
+ `pramanasutra-prime` plus strategy, unit, flow, api, visual, access, load, data, secure, regression, flake, defect, pipeline, release, evidence, verify. Each `## Safe workflow` is a different procedure. They are instructions. They do not run tests, open a browser, or sign evidence. Canonical source: [`.agents/skills`](https://github.com/shahvatsalofficial/pramanasutra-ai/tree/main/.agents/skills). Catalog: [skills and agents](https://shahvatsalofficial.github.io/pramanasutra-ai/08-skills-and-agents.html).
107
+
108
+ These directories are notes, not programs: `packages/runner`, `packages/server`, `packages/reporter`, `packages/quality-gates`, `packages/release`, `packages/impact`, `packages/integrators`, `packages/evidence`, `packages/discovery`, `packages/core`, `packages/static-audit`, `packages/test-generation`. The CLI does not import them.
106
109
 
107
110
  | Host | Skill path | Verified live? |
108
111
  |---|---|---|
@@ -114,26 +117,26 @@ Open a finished example: [Markdown](documents/pramanasutra/samples/focused-test/
114
117
 
115
118
  ## Documentation
116
119
 
117
- The pack a future reader, a site, or a crawler should use is [documents/pramanasutra](documents/pramanasutra/00-start-here.md). HTML of the same pages: [documents/pramanasutra/html](documents/pramanasutra/html/index.html) and [the GitHub Pages site](https://shahvatsalofficial.github.io/pramanasutra-ai/).
120
+ The maintained pack is [documents/pramanasutra](https://github.com/shahvatsalofficial/pramanasutra-ai/blob/main/documents/pramanasutra/00-start-here.md). The same pages as HTML: [GitHub Pages](https://shahvatsalofficial.github.io/pramanasutra-ai/).
118
121
 
119
122
  | | |
120
123
  |---|---|
121
- | Executive | [01](documents/pramanasutra/01-executive-summary.md) |
122
- | Functional spec | [02](documents/pramanasutra/02-functional-specification.md) |
123
- | Architecture | [03](documents/pramanasutra/03-architecture.md) |
124
- | Technical reference | [04](documents/pramanasutra/04-technical-reference.md) |
125
- | User guide | [05](documents/pramanasutra/05-user-guide.md) |
126
- | Security | [09](documents/pramanasutra/09-security-and-privacy.md) |
127
- | Legal | [10](documents/pramanasutra/10-legal-and-compliance.md) |
128
- | Roadmap | [13](documents/pramanasutra/13-roadmap-and-status.md) |
129
- | FAQ | [14](documents/pramanasutra/14-faq-and-glossary.md) |
130
-
131
- Machine-readable summary: [llms.txt](llms.txt).
124
+ | Executive | [01](https://shahvatsalofficial.github.io/pramanasutra-ai/01-executive-summary.html) |
125
+ | Functional spec | [02](https://shahvatsalofficial.github.io/pramanasutra-ai/02-functional-specification.html) |
126
+ | Architecture | [03](https://shahvatsalofficial.github.io/pramanasutra-ai/03-architecture.html) |
127
+ | Technical reference | [04](https://shahvatsalofficial.github.io/pramanasutra-ai/04-technical-reference.html) |
128
+ | User guide | [05](https://shahvatsalofficial.github.io/pramanasutra-ai/05-user-guide.html) |
129
+ | Security | [09](https://shahvatsalofficial.github.io/pramanasutra-ai/09-security-and-privacy.html) |
130
+ | Legal | [10](https://shahvatsalofficial.github.io/pramanasutra-ai/10-legal-and-compliance.html) |
131
+ | Roadmap | [13](https://shahvatsalofficial.github.io/pramanasutra-ai/13-roadmap-and-status.html) |
132
+ | FAQ | [14](https://shahvatsalofficial.github.io/pramanasutra-ai/14-faq-and-glossary.html) |
133
+
134
+ Machine-readable summary: [llms.txt](https://github.com/shahvatsalofficial/pramanasutra-ai/blob/main/llms.txt).
132
135
 
133
136
  ## Legal
134
137
 
135
- Apache-2.0 ([LICENSE](LICENSE), [NOTICE](NOTICE)). No runtime dependencies ([third-party notices](THIRD_PARTY_NOTICES.md)). Claude, Cursor, OpenAI, Codex, GitHub, Copilot, Gemini and other product names belong to their owners. This project is not affiliated with or endorsed by them. "PramanaSutra" is not claimed as a registered trademark and has not been clearance-searched. Output is decision support, not a certification and not legal advice. Provided "AS IS". Full notice: [legal and compliance](documents/pramanasutra/10-legal-and-compliance.md).
138
+ Apache-2.0 ([LICENSE](https://github.com/shahvatsalofficial/pramanasutra-ai/blob/main/LICENSE), [NOTICE](https://github.com/shahvatsalofficial/pramanasutra-ai/blob/main/NOTICE)). No runtime dependencies ([third-party notices](https://github.com/shahvatsalofficial/pramanasutra-ai/blob/main/THIRD_PARTY_NOTICES.md)). Claude, Cursor, OpenAI, Codex, GitHub, Copilot, Gemini and other product names belong to their owners. This project is not affiliated with or endorsed by them. "PramanaSutra" is not claimed as a registered trademark and has not been clearance-searched. Output is decision support, not a certification and not legal advice. Provided "AS IS". Full notice: [legal and compliance](https://shahvatsalofficial.github.io/pramanasutra-ai/10-legal-and-compliance.html).
136
139
 
137
140
  ## Contributing
138
141
 
139
- [Maintainer guide](documents/pramanasutra/15-maintainer-guide.md), [CONTRIBUTING.md](CONTRIBUTING.md), [SECURITY.md](SECURITY.md). Citation: [CITATION.cff](CITATION.cff).
142
+ [Maintainer guide](https://shahvatsalofficial.github.io/pramanasutra-ai/15-maintainer-guide.html), [CONTRIBUTING.md](https://github.com/shahvatsalofficial/pramanasutra-ai/blob/main/CONTRIBUTING.md), [SECURITY.md](https://github.com/shahvatsalofficial/pramanasutra-ai/blob/main/SECURITY.md). Citation: [CITATION.cff](https://github.com/shahvatsalofficial/pramanasutra-ai/blob/main/CITATION.cff).