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
@@ -14,11 +14,11 @@ code{font-family:ui-monospace,Consolas,monospace;background:var(--bg);padding:.0
14
14
  @media(prefers-color-scheme:dark){.skip{color:#10201f}}
15
15
  @media print{body{background:#fff;color:#000}.card{break-inside:avoid}.skip{display:none}}
16
16
  @media(max-width:640px){body{font-size:16px}}</style></head><body><a class="skip" href="#content">Skip to content</a><main id="content">
17
- <p class="muted">PramanaSutra AI &middot; QA &amp; Release Audit &middot; Markdown, HTML and JSON are the same audit</p><h1>multi-language</h1><p class="muted">Generated 2026-11-06T00:00:00.000Z &middot; schema 1.0.0 &middot; tool 0.3.0</p>
17
+ <p class="muted">PramanaSutra AI &middot; QA &amp; Release Audit &middot; Markdown, HTML, JSON and SARIF are the same audit</p><h1>multi-language</h1><p class="muted">Generated 2026-11-06T00:00:00.000Z &middot; schema 1.0.0 &middot; tool 0.3.5</p>
18
18
  <section class="card banner REVIEW_REQUIRED" role="status"><p class="muted" style="margin:0">Release decision</p><p style="margin:.35rem 0"><span class="pill REVIEW_REQUIRED">REVIEW_REQUIRED</span></p><p style="margin:.4rem 0 0">Evidence is missing or incomplete. A human must review before any release decision.</p><p class="muted" style="margin:.35rem 0 0">Policy: recommended &middot; Supplied test evidence: absent</p></section>
19
19
  <section class="grid" aria-label="Summary"><div class="stat card"><b>3</b><span>files inspected</span></div><div class="stat card"><b>3</b><span>test files</span></div><div class="stat card"><b>0</b><span>CI workflows</span></div><div class="stat card"><b>5</b><span>findings</span></div><div class="stat card"><b>0</b><span>critical + high</span></div></section>
20
20
  <p class="card"><strong>Tests executed by PramanaSutra: NO (static scan only). Executed-test results count only when supplied as evidence.</strong></p>
21
- <h2>Supplied test evidence</h2><div class="card"><p>No evidence file was supplied. Counts on this page are not test results. The release gate cannot treat the suite as passed.</p></div>
21
+ <h2>Supplied test evidence</h2><div class="card"><p>No evidence file was supplied. Counts on this page are not test results. The release gate cannot treat the suite as passed.</p><p>Evidence binding: none. No evidence file was supplied.</p></div>
22
22
  <h2>Findings at a glance</h2><div class="card" style="overflow-x:auto"><table><thead><tr><th>Severity</th><th>Rule</th><th>Where</th><th>Fix</th></tr></thead><tbody><tr><td><span class="pill low">low</span></td><td><code>SKIPPED_TEST</code></td><td><code>pkg/b_test.go:3</code></td><td>Confirm the skip is intended, tracked and does not conceal a required case.</td></tr><tr><td><span class="pill low">low</span></td><td><code>SKIPPED_TEST</code></td><td><code>src/UserServiceTest.java:2</code></td><td>Confirm the skip is intended, tracked and does not conceal a required case.</td></tr><tr><td><span class="pill low">low</span></td><td><code>SKIPPED_TEST</code></td><td><code>tests/test_api.py:3</code></td><td>Confirm the skip is intended, tracked and does not conceal a required case.</td></tr><tr><td><span class="pill medium">medium</span></td><td><code>NO_CI</code></td><td><code>.</code></td><td>Verify your CI configuration and enforce required test gates.</td></tr><tr><td><span class="pill low">low</span></td><td><code>NO_LICENSE</code></td><td><code>.</code></td><td>Review intended licensing and add the correct LICENSE file before publication.</td></tr></tbody></table></div>
23
23
  <h2>Findings</h2><article class="card"><h3 style="margin:.1rem 0"><span class="pill low">low</span> Skipped test found</h3><p class="muted">Rule <code>SKIPPED_TEST</code> &middot; confidence medium &middot; observed &middot; <code>pkg/b_test.go:3</code></p><p><strong>Why it matters:</strong> A skipped test needs review before release.</p><p><strong>Fix:</strong> Confirm the skip is intended, tracked and does not conceal a required case.</p></article>
24
24
  <article class="card"><h3 style="margin:.1rem 0"><span class="pill low">low</span> Skipped test found</h3><p class="muted">Rule <code>SKIPPED_TEST</code> &middot; confidence medium &middot; observed &middot; <code>src/UserServiceTest.java:2</code></p><p><strong>Why it matters:</strong> A skipped test needs review before release.</p><p><strong>Fix:</strong> Confirm the skip is intended, tracked and does not conceal a required case.</p></article>
@@ -26,8 +26,9 @@ code{font-family:ui-monospace,Consolas,monospace;background:var(--bg);padding:.0
26
26
  <article class="card"><h3 style="margin:.1rem 0"><span class="pill medium">medium</span> No recognized CI workflow discovered</h3><p class="muted">Rule <code>NO_CI</code> &middot; confidence medium &middot; observed &middot; <code>.</code></p><p><strong>Why it matters:</strong> No recognized CI configuration was found in the files scanned.</p><p><strong>Fix:</strong> Verify your CI configuration and enforce required test gates.</p></article>
27
27
  <article class="card"><h3 style="margin:.1rem 0"><span class="pill low">low</span> No license file at root</h3><p class="muted">Rule <code>NO_LICENSE</code> &middot; confidence high &middot; observed &middot; <code>.</code></p><p><strong>Why it matters:</strong> A recognized open-source license file was not found at the root.</p><p><strong>Fix:</strong> Review intended licensing and add the correct LICENSE file before publication.</p></article>
28
28
  <h2>Test files seen</h2><div class="card"><ul><li><code>pkg/b_test.go</code></li><li><code>src/UserServiceTest.java</code></li><li><code>tests/test_api.py</code></li></ul></div>
29
- <h2>CI workflows seen</h2><div class="card"><p>None recognised (GitHub Actions, GitLab CI, Jenkins, Azure Pipelines, Bitbucket Pipelines).</p></div>
29
+ <h2>CI workflows seen</h2><div class="card"><p>None recognised (GitHub Actions, GitLab CI, Jenkins, Azure Pipelines, Bitbucket Pipelines, CircleCI, Buildkite, Drone, Woodpecker).</p></div>
30
+
30
31
  <h2>Release gate reasons</h2><div class="card"><ul><li>No executed-test evidence supplied (use --evidence).</li><li>No recognized CI workflow detected.</li><li>No license file at root.</li></ul></div>
31
32
  <h2>Capabilities</h2><div class="card" style="overflow-x:auto"><table><thead><tr><th>Capability</th><th>State</th><th>What that means</th></tr></thead><tbody><tr><th scope="row">staticAudit</th><td><code>executed</code></td><td>Source text was inspected with heuristic rules.</td></tr><tr><th scope="row">testExecution</th><td><code>not-run</code></td><td>not-run means this tool did not execute tests. evidence-supplied means an evidence file was attached.</td></tr><tr><th scope="row">browser</th><td><code>not-supported</code></td><td>No browser was launched.</td></tr><tr><th scope="row">securityScan</th><td><code>not-run</code></td><td>This is not a vulnerability scanner.</td></tr><tr><th scope="row">performanceTest</th><td><code>not-run</code></td><td>No load or timing test was run.</td></tr><tr><th scope="row">aiInference</th><td><code>not-run</code></td><td>The CLI did not call a model.</td></tr></tbody></table></div>
32
33
  <h2>Limitations</h2><div class="card"><ul><li>Heuristic checks do not prove the absence of bugs or release readiness.</li><li>No target tests, security scanners, browser, load tests or deploy checks were run by this tool.</li><li>This report is decision support, not a compliance certification or legal advice.</li></ul></div>
33
- <footer>Created by Vatsal Shah. Generated locally; nothing was sent over the network. Not a compliance certification, a security test, or a release authorization. Open <code>report.md</code> for the same audit in Markdown.</footer></main></body></html>
34
+ <footer>Created by <a href="https://shahvatsal.com" rel="noopener">Vatsal Shah</a>. Official site: <a href="https://shahvatsal.com" rel="noopener">shahvatsal.com</a>. Generated locally; nothing was sent over the network. Not a compliance certification, a security test, or a release authorization. Open <code>report.md</code> for the same audit in Markdown.</footer></main></body></html>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
3
  "product": "PramanaSutra AI",
4
- "toolVersion": "0.3.0",
4
+ "toolVersion": "0.3.5",
5
5
  "generatedAt": "2026-11-06T00:00:00.000Z",
6
6
  "scannedPath": "multi-language",
7
7
  "capabilities": {
@@ -21,6 +21,7 @@
21
21
  ],
22
22
  "manifests": [],
23
23
  "ciWorkflows": [],
24
+ "changedFiles": null,
24
25
  "skippedSymlinks": 0,
25
26
  "oversizedFiles": 0,
26
27
  "binaryFiles": 0,
@@ -1,12 +1,12 @@
1
1
  # PramanaSutra AI: QA & Release Audit Report
2
2
 
3
- This audit is three files with the same facts: **report.md** (this file), **report.html** (open in a browser) and **report.json** (for CI). A static finding is text the scanner saw. It is not a test PramanaSutra ran.
3
+ This audit is four files with the same facts: **report.md** (this file), **report.html** (open in a browser), **report.json** (for tools) and **report.sarif.json** (SARIF 2.1.0 for code scanning). A static finding is text the scanner saw. It is not a test PramanaSutra ran.
4
4
 
5
5
  | | |
6
6
  |---|---|
7
7
  | Project | `multi-language` |
8
8
  | Generated | 2026-11-06T00:00:00.000Z |
9
- | Tool | PramanaSutra AI 0.3.0 (schema 1.0.0) |
9
+ | Tool | PramanaSutra AI 0.3.5 (schema 1.0.0) |
10
10
  | **Release decision** | **REVIEW_REQUIRED** |
11
11
  | Policy | recommended |
12
12
  | Supplied test evidence | absent |
@@ -26,6 +26,8 @@ This audit is three files with the same facts: **report.md** (this file), **repo
26
26
 
27
27
  No evidence file was supplied. Counts below are not test results. The release gate cannot treat the suite as passed.
28
28
 
29
+ Evidence binding: none. No evidence file was supplied.
30
+
29
31
  ## Findings at a glance
30
32
 
31
33
  | Severity | Rule | Where | Fix |
@@ -81,7 +83,7 @@ No evidence file was supplied. Counts below are not test results. The release ga
81
83
 
82
84
  ## CI workflows seen
83
85
 
84
- None recognised (GitHub Actions, GitLab CI, Jenkins, Azure Pipelines, Bitbucket Pipelines).
86
+ None recognised (GitHub Actions, GitLab CI, Jenkins, Azure Pipelines, Bitbucket Pipelines, CircleCI, Buildkite, Drone, Woodpecker).
85
87
 
86
88
  ## Capabilities
87
89
 
@@ -107,4 +109,4 @@ None recognised (GitHub Actions, GitLab CI, Jenkins, Azure Pipelines, Bitbucket
107
109
  - This report is decision support, not a compliance certification or legal advice.
108
110
 
109
111
  ---
110
- *Created by Vatsal Shah. Generated locally; nothing was sent over the network. Same audit: report.html and report.json.*
112
+ *Created by [Vatsal Shah](https://shahvatsal.com). Official site: [shahvatsal.com](https://shahvatsal.com). Generated locally; nothing was sent over the network. Same audit: report.html, report.json and report.sarif.json.*
@@ -0,0 +1,125 @@
1
+ {
2
+ "version": "2.1.0",
3
+ "runs": [
4
+ {
5
+ "tool": {
6
+ "driver": {
7
+ "name": "PramanaSutra AI",
8
+ "version": "0.3.5",
9
+ "informationUri": "https://github.com/shahvatsalofficial/pramanasutra-ai",
10
+ "rules": [
11
+ {
12
+ "id": "SKIPPED_TEST",
13
+ "shortDescription": {
14
+ "text": "Skipped test found"
15
+ }
16
+ },
17
+ {
18
+ "id": "NO_CI",
19
+ "shortDescription": {
20
+ "text": "No recognized CI workflow discovered"
21
+ }
22
+ },
23
+ {
24
+ "id": "NO_LICENSE",
25
+ "shortDescription": {
26
+ "text": "No license file at root"
27
+ }
28
+ }
29
+ ]
30
+ }
31
+ },
32
+ "results": [
33
+ {
34
+ "ruleId": "SKIPPED_TEST",
35
+ "level": "note",
36
+ "message": {
37
+ "text": "Skipped test found"
38
+ },
39
+ "locations": [
40
+ {
41
+ "physicalLocation": {
42
+ "artifactLocation": {
43
+ "uri": "pkg/b_test.go"
44
+ },
45
+ "region": {
46
+ "startLine": 3
47
+ }
48
+ }
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "ruleId": "SKIPPED_TEST",
54
+ "level": "note",
55
+ "message": {
56
+ "text": "Skipped test found"
57
+ },
58
+ "locations": [
59
+ {
60
+ "physicalLocation": {
61
+ "artifactLocation": {
62
+ "uri": "src/UserServiceTest.java"
63
+ },
64
+ "region": {
65
+ "startLine": 2
66
+ }
67
+ }
68
+ }
69
+ ]
70
+ },
71
+ {
72
+ "ruleId": "SKIPPED_TEST",
73
+ "level": "note",
74
+ "message": {
75
+ "text": "Skipped test found"
76
+ },
77
+ "locations": [
78
+ {
79
+ "physicalLocation": {
80
+ "artifactLocation": {
81
+ "uri": "tests/test_api.py"
82
+ },
83
+ "region": {
84
+ "startLine": 3
85
+ }
86
+ }
87
+ }
88
+ ]
89
+ },
90
+ {
91
+ "ruleId": "NO_CI",
92
+ "level": "warning",
93
+ "message": {
94
+ "text": "No recognized CI workflow discovered"
95
+ },
96
+ "locations": [
97
+ {
98
+ "physicalLocation": {
99
+ "artifactLocation": {
100
+ "uri": "."
101
+ }
102
+ }
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ "ruleId": "NO_LICENSE",
108
+ "level": "note",
109
+ "message": {
110
+ "text": "No license file at root"
111
+ },
112
+ "locations": [
113
+ {
114
+ "physicalLocation": {
115
+ "artifactLocation": {
116
+ "uri": "."
117
+ }
118
+ }
119
+ }
120
+ ]
121
+ }
122
+ ]
123
+ }
124
+ ]
125
+ }
@@ -14,16 +14,17 @@ code{font-family:ui-monospace,Consolas,monospace;background:var(--bg);padding:.0
14
14
  @media(prefers-color-scheme:dark){.skip{color:#10201f}}
15
15
  @media print{body{background:#fff;color:#000}.card{break-inside:avoid}.skip{display:none}}
16
16
  @media(max-width:640px){body{font-size:16px}}</style></head><body><a class="skip" href="#content">Skip to content</a><main id="content">
17
- <p class="muted">PramanaSutra AI &middot; QA &amp; Release Audit &middot; Markdown, HTML and JSON are the same audit</p><h1>unsafe-names</h1><p class="muted">Generated 2026-11-06T00:00:00.000Z &middot; schema 1.0.0 &middot; tool 0.3.0</p>
17
+ <p class="muted">PramanaSutra AI &middot; QA &amp; Release Audit &middot; Markdown, HTML, JSON and SARIF are the same audit</p><h1>unsafe-names</h1><p class="muted">Generated 2026-11-06T00:00:00.000Z &middot; schema 1.0.0 &middot; tool 0.3.5</p>
18
18
  <section class="card banner NO_GO" role="status"><p class="muted" style="margin:0">Release decision</p><p style="margin:.35rem 0"><span class="pill NO_GO">NO_GO</span></p><p style="margin:.4rem 0 0">Blocking issue found. Do not release until it is fixed and re-checked.</p><p class="muted" style="margin:.35rem 0 0">Policy: recommended &middot; Supplied test evidence: absent</p></section>
19
19
  <section class="grid" aria-label="Summary"><div class="stat card"><b>5</b><span>files inspected</span></div><div class="stat card"><b>2</b><span>test files</span></div><div class="stat card"><b>1</b><span>CI workflows</span></div><div class="stat card"><b>1</b><span>findings</span></div><div class="stat card"><b>1</b><span>critical + high</span></div></section>
20
20
  <p class="card"><strong>Tests executed by PramanaSutra: NO (static scan only). Executed-test results count only when supplied as evidence.</strong></p>
21
- <h2>Supplied test evidence</h2><div class="card"><p>No evidence file was supplied. Counts on this page are not test results. The release gate cannot treat the suite as passed.</p></div>
21
+ <h2>Supplied test evidence</h2><div class="card"><p>No evidence file was supplied. Counts on this page are not test results. The release gate cannot treat the suite as passed.</p><p>Evidence binding: none. No evidence file was supplied.</p></div>
22
22
  <h2>Findings at a glance</h2><div class="card" style="overflow-x:auto"><table><thead><tr><th>Severity</th><th>Rule</th><th>Where</th><th>Fix</th></tr></thead><tbody><tr><td><span class="pill high">high</span></td><td><code>FOCUSED_TEST</code></td><td><code>tests/a &amp; b (x) $y &#39;q&#39;.test.js:2</code></td><td>Remove .only / fit / fdescribe, then execute the full suite.</td></tr></tbody></table></div>
23
23
  <h2>Findings</h2><article class="card"><h3 style="margin:.1rem 0"><span class="pill high">high</span> Focused test found</h3><p class="muted">Rule <code>FOCUSED_TEST</code> &middot; confidence medium &middot; observed &middot; <code>tests/a &amp; b (x) $y &#39;q&#39;.test.js:2</code></p><p><strong>Why it matters:</strong> A focused test declaration may silently omit other tests.</p><p><strong>Fix:</strong> Remove .only / fit / fdescribe, then execute the full suite.</p></article>
24
24
  <h2>Test files seen</h2><div class="card"><ul><li><code>tests/a &amp; b (x) $y &#39;q&#39;.test.js</code></li><li><code>tests/ünïcode 测试.test.js</code></li></ul></div>
25
25
  <h2>CI workflows seen</h2><div class="card"><ul><li><code>.github/workflows/ci.yml</code></li></ul></div>
26
+
26
27
  <h2>Release gate reasons</h2><div class="card"><ul><li>Found 1 blocking static finding(s) under policy &quot;recommended&quot;.</li></ul></div>
27
28
  <h2>Capabilities</h2><div class="card" style="overflow-x:auto"><table><thead><tr><th>Capability</th><th>State</th><th>What that means</th></tr></thead><tbody><tr><th scope="row">staticAudit</th><td><code>executed</code></td><td>Source text was inspected with heuristic rules.</td></tr><tr><th scope="row">testExecution</th><td><code>not-run</code></td><td>not-run means this tool did not execute tests. evidence-supplied means an evidence file was attached.</td></tr><tr><th scope="row">browser</th><td><code>not-supported</code></td><td>No browser was launched.</td></tr><tr><th scope="row">securityScan</th><td><code>not-run</code></td><td>This is not a vulnerability scanner.</td></tr><tr><th scope="row">performanceTest</th><td><code>not-run</code></td><td>No load or timing test was run.</td></tr><tr><th scope="row">aiInference</th><td><code>not-run</code></td><td>The CLI did not call a model.</td></tr></tbody></table></div>
28
29
  <h2>Limitations</h2><div class="card"><ul><li>Heuristic checks do not prove the absence of bugs or release readiness.</li><li>No target tests, security scanners, browser, load tests or deploy checks were run by this tool.</li><li>This report is decision support, not a compliance certification or legal advice.</li></ul></div>
29
- <footer>Created by Vatsal Shah. Generated locally; nothing was sent over the network. Not a compliance certification, a security test, or a release authorization. Open <code>report.md</code> for the same audit in Markdown.</footer></main></body></html>
30
+ <footer>Created by <a href="https://shahvatsal.com" rel="noopener">Vatsal Shah</a>. Official site: <a href="https://shahvatsal.com" rel="noopener">shahvatsal.com</a>. Generated locally; nothing was sent over the network. Not a compliance certification, a security test, or a release authorization. Open <code>report.md</code> for the same audit in Markdown.</footer></main></body></html>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
3
  "product": "PramanaSutra AI",
4
- "toolVersion": "0.3.0",
4
+ "toolVersion": "0.3.5",
5
5
  "generatedAt": "2026-11-06T00:00:00.000Z",
6
6
  "scannedPath": "unsafe-names",
7
7
  "capabilities": {
@@ -24,6 +24,7 @@
24
24
  "ciWorkflows": [
25
25
  ".github/workflows/ci.yml"
26
26
  ],
27
+ "changedFiles": null,
27
28
  "skippedSymlinks": 0,
28
29
  "oversizedFiles": 0,
29
30
  "binaryFiles": 0,
@@ -1,12 +1,12 @@
1
1
  # PramanaSutra AI: QA & Release Audit Report
2
2
 
3
- This audit is three files with the same facts: **report.md** (this file), **report.html** (open in a browser) and **report.json** (for CI). A static finding is text the scanner saw. It is not a test PramanaSutra ran.
3
+ This audit is four files with the same facts: **report.md** (this file), **report.html** (open in a browser), **report.json** (for tools) and **report.sarif.json** (SARIF 2.1.0 for code scanning). A static finding is text the scanner saw. It is not a test PramanaSutra ran.
4
4
 
5
5
  | | |
6
6
  |---|---|
7
7
  | Project | `unsafe-names` |
8
8
  | Generated | 2026-11-06T00:00:00.000Z |
9
- | Tool | PramanaSutra AI 0.3.0 (schema 1.0.0) |
9
+ | Tool | PramanaSutra AI 0.3.5 (schema 1.0.0) |
10
10
  | **Release decision** | **NO_GO** |
11
11
  | Policy | recommended |
12
12
  | Supplied test evidence | absent |
@@ -26,6 +26,8 @@ This audit is three files with the same facts: **report.md** (this file), **repo
26
26
 
27
27
  No evidence file was supplied. Counts below are not test results. The release gate cannot treat the suite as passed.
28
28
 
29
+ Evidence binding: none. No evidence file was supplied.
30
+
29
31
  ## Findings at a glance
30
32
 
31
33
  | Severity | Rule | Where | Fix |
@@ -72,4 +74,4 @@ No evidence file was supplied. Counts below are not test results. The release ga
72
74
  - This report is decision support, not a compliance certification or legal advice.
73
75
 
74
76
  ---
75
- *Created by Vatsal Shah. Generated locally; nothing was sent over the network. Same audit: report.html and report.json.*
77
+ *Created by [Vatsal Shah](https://shahvatsal.com). Official site: [shahvatsal.com](https://shahvatsal.com). Generated locally; nothing was sent over the network. Same audit: report.html, report.json and report.sarif.json.*
@@ -0,0 +1,43 @@
1
+ {
2
+ "version": "2.1.0",
3
+ "runs": [
4
+ {
5
+ "tool": {
6
+ "driver": {
7
+ "name": "PramanaSutra AI",
8
+ "version": "0.3.5",
9
+ "informationUri": "https://github.com/shahvatsalofficial/pramanasutra-ai",
10
+ "rules": [
11
+ {
12
+ "id": "FOCUSED_TEST",
13
+ "shortDescription": {
14
+ "text": "Focused test found"
15
+ }
16
+ }
17
+ ]
18
+ }
19
+ },
20
+ "results": [
21
+ {
22
+ "ruleId": "FOCUSED_TEST",
23
+ "level": "error",
24
+ "message": {
25
+ "text": "Focused test found"
26
+ },
27
+ "locations": [
28
+ {
29
+ "physicalLocation": {
30
+ "artifactLocation": {
31
+ "uri": "tests/a & b (x) $y 'q'.test.js"
32
+ },
33
+ "region": {
34
+ "startLine": 2
35
+ }
36
+ }
37
+ }
38
+ ]
39
+ }
40
+ ]
41
+ }
42
+ ]
43
+ }
package/docs/status.md CHANGED
@@ -8,13 +8,15 @@ Canonical narrative: [documents/pramanasutra/13-roadmap-and-status.md](../docume
8
8
  | Offline static checks, including todo/pytest.skip/unittest skipTest and binary-file skip | Implemented | Heuristic, not a parser. No coverage |
9
9
  | `.pramanasutraignore` | Implemented | Exclusions are listed in report limitations. This repo ignores `fixtures/` and `examples/sample-app/` |
10
10
  | Policy files, fail-closed | Implemented | Safety flags cannot be weakened |
11
- | report.md + report.html + report.json, evidence section included | Implemented | Default `./pramanasutra-reports` |
12
- | Documentation pack, Markdown and HTML | Implemented | `documents/pramanasutra/`, site mirrored to `docs/` |
11
+ | report.md + report.html + report.json + report.sarif.json | Implemented | Default `./pramanasutra-reports`. SARIF is not uploaded |
12
+ | Evidence binding line | Implemented | `none`, `unbound`, or `ci-environment`. Not a signature |
13
+ | `--changed` | Implemented | `git diff` names only. Not test selection |
14
+ | Documentation pack, Markdown, HTML, and a product front page | Implemented | `documents/pramanasutra/`, site mirrored to `docs/` |
13
15
  | Release gate | Implemented | Ready only with valid supplied evidence. Not a deploy |
14
16
  | Self-audit of this repo | Implemented | `documents/pramanasutra/audit/`. Regenerated by `scripts/generate-proof.mjs` |
15
17
  | Required CI | Implemented | Ubuntu + Windows, Node 20 and 22, `scripts/ci-gate.mjs` |
16
18
  | macOS CI | Not scheduled | GitHub cancelled the jobs with zero steps (runs 41884015367 and 42098256304). Not a pass |
17
- | 17 skills and IDE copy installer | Implemented as files | Live host behavior not verified |
19
+ | 17 skills and IDE copy installer | Implemented as files | Workflows differ. Live host behavior not verified |
18
20
  | npm package `pramanasutra` | Name in `package.json` | Unscoped, so the install name is `pramanasutra`. `@shahvatsal/pramanasutra` was deleted. `@vatsalshah/pramanasutra` returns 404 |
19
21
  | Executing target tests, browser, security scan, performance, server | Planned | Do not describe these as available |
20
22
  | Certification, trademark clearance, independent security review | Not claimed | See the legal and security pages |
@@ -1,13 +1,13 @@
1
1
  # Start here
2
2
 
3
- <!-- summary: PramanaSutra AI is an open-source QA and release-readiness agent: 17 portable skills plus an offline CLI that writes a Markdown report, an HTML report and JSON, and a human release gate. Created by Vatsal Shah. Apache-2.0. -->
3
+ <!-- summary: PramanaSutra AI is an open-source QA and release-readiness agent: 17 portable skills plus an offline CLI that writes Markdown, HTML, JSON and SARIF, and a human release gate. Created by Vatsal Shah. Apache-2.0. -->
4
4
 
5
5
  PramanaSutra AI (from Sanskrit *pramana*, "valid proof") is an open-source **QA and release-readiness agent**. It has two parts that do different jobs:
6
6
 
7
7
  1. **Seventeen Agent Skills**, led by PramanaSutra Prime, for Claude Code, Cursor, OpenAI Codex, GitHub Copilot and Gemini CLI. The skill uses the IDE's own model. There is no extra API key.
8
- 2. **A deterministic command-line tool** that reads a project, does not run its tests, and writes three files of the same audit: `report.md`, `report.html` and `report.json`. A release check then returns `NO_GO`, `REVIEW_REQUIRED` or `READY_FOR_HUMAN_APPROVAL`.
8
+ 2. **A deterministic command-line tool** that reads a project, does not run its tests, and writes four files of the same audit: `report.md`, `report.html`, `report.json` and `report.sarif.json`. `scan` and `release-check` both return `NO_GO` (exit 2), `REVIEW_REQUIRED` (exit 3) or `READY_FOR_HUMAN_APPROVAL` (exit 0).
9
9
 
10
- Created by Vatsal Shah. Licensed Apache-2.0. Version 0.3.2. npm name: `pramanasutra`, published by `.github/workflows/publish.yml` after a GitHub Release. The command line has **zero runtime dependencies** and makes **no network calls**.
10
+ Created by [Vatsal Shah](https://shahvatsal.com). Official site: [shahvatsal.com](https://shahvatsal.com). Licensed Apache-2.0. Version 0.3.5. npm package: `pramanasutra`. The command line has **zero runtime dependencies** and makes **no network calls**. The copy on npmjs.com is the last tarball someone published. It can lag this version until that publish finishes.
11
11
 
12
12
  > **Important:** The tool does not certify quality, security or compliance. `READY_FOR_HUMAN_APPROVAL` means the configured checks passed. A person still decides. It is never a deploy order.
13
13
 
@@ -32,24 +32,22 @@ Created by Vatsal Shah. Licensed Apache-2.0. Version 0.3.2. npm name: `pramanasu
32
32
  Node.js 20 or newer.
33
33
 
34
34
  ```bash
35
- npx github:shahvatsalofficial/pramanasutra-ai release-check --path .
35
+ npx pramanasutra release-check --path .
36
36
  ```
37
37
 
38
- After `npm view pramanasutra version` prints `0.3.2`, use `npx pramanasutra release-check --path .`.
39
-
40
- That writes `./pramanasutra-reports/report.md`, `report.html` and `report.json` in the current directory, not inside the project you scanned. Open the HTML file in a browser. The exit code is `2` for `NO_GO`, `3` for `REVIEW_REQUIRED`, `0` for `READY_FOR_HUMAN_APPROVAL`.
38
+ That writes `./pramanasutra-reports/report.md`, `report.html`, `report.json` and `report.sarif.json` in the current directory, not inside the project you scanned. Open the HTML file in a browser. For both `scan` and `release-check`, the exit code is `2` for `NO_GO`, `3` for `REVIEW_REQUIRED`, `0` for `READY_FOR_HUMAN_APPROVAL`. A scan with no evidence file exits `3`.
41
39
 
42
40
  To copy the skills into an IDE:
43
41
 
44
42
  ```bash
45
- npx github:shahvatsalofficial/pramanasutra-ai init --ide cursor --target .
43
+ npx pramanasutra init --ide cursor --target .
46
44
  ```
47
45
 
48
46
  Use `claude`, `cursor`, `codex`, `gemini`, `copilot`, `generic` or `all`. The copy refuses to overwrite an existing skill unless you pass `--force`.
49
47
 
50
48
  ## What is already proven
51
49
 
52
- The captured run on the maintainer's Windows machine is in [proof/test-results.txt](proof/test-results.txt): **38 tests, 37 passed, 0 failed, 1 skipped**. The skip is the symlink test, because creating a symlink was prohibited by the OS. Six labeled fixtures match the expected rules and gate with no false positives and no false negatives **on those fixtures**. That is a regression check written by the same author as the rules. It is not a measure of accuracy on arbitrary repositories.
50
+ The captured run on the maintainer's Windows machine is in [proof/test-results.txt](proof/test-results.txt): **43 tests, 43 passed, 0 failed, 0 skipped**. The symlink test creates a directory junction when Windows refuses a symlink, and checks the scanner does not follow it. Six labeled fixtures match the expected rules and gate with no false positives and no false negatives **on those fixtures**. That is a regression check written by the same author as the rules. It is not a measure of accuracy on arbitrary repositories.
53
51
 
54
52
  With that same test output supplied as evidence, a release check of this repository returned `READY_FOR_HUMAN_APPROVAL`. The report is [audit/report.md](audit/report.md) and [audit/report.html](audit/report.html). Focused-test examples under `fixtures/` and `examples/sample-app/` are excluded by `.pramanasutraignore` so they are not treated as product failures. The report says they were excluded.
55
53
 
@@ -59,7 +57,6 @@ With that same test output supplied as evidence, a release check of this reposit
59
57
  - Accuracy on large real repositories. The rules are line heuristics, not parsers.
60
58
  - An independent security review.
61
59
  - Trademark clearance of the name PramanaSutra. See [Legal](10-legal-and-compliance.md).
62
- - A public npm tarball of the unscoped package `pramanasutra`. `@shahvatsal/pramanasutra@0.3.1` was published and then deleted so the install name would not show that scope. `@vatsalshah/pramanasutra` returned `404`. `.github/workflows/publish.yml` publishes `pramanasutra@0.3.2` when a GitHub Release is published and an npm trusted publisher is connected for that package name.
63
60
 
64
61
  ## The documentation set
65
62
 
@@ -17,7 +17,7 @@ PramanaSutra AI is a counter to that habit. It separates three things that get m
17
17
  | Piece | What a buyer gets | What they do not get |
18
18
  |---|---|---|
19
19
  | Agent Skills (17) | Instructions a supported IDE can load, so the assistant plans QA, cites files, and asks before running tests | A private model, a hosted agent, or a guarantee the IDE obeyed the skill |
20
- | CLI | An offline scan and a release gate, with Markdown, HTML and JSON of the same audit | Test execution, coverage, a browser, a vulnerability scan, or a deploy |
20
+ | CLI | An offline scan and a release gate. Four files of the same audit: Markdown, HTML, JSON, SARIF. `scan` and `release-check` both exit 2, 3, or 0 | Test execution, coverage, a browser, a vulnerability scan, a signed evidence file, or a deploy |
21
21
  | Reports | A page a reviewer can read without the CLI | A certificate, an audit attestation, or legal advice |
22
22
  | Policy | A fail-closed JSON file. Unknown keys are rejected. "Allow automatic deploy" cannot be turned on | A workflow engine or an approval product |
23
23
 
@@ -37,8 +37,8 @@ Price of the software: zero. License: Apache-2.0. Operator cost: Node.js 20+ and
37
37
 
38
38
  Supported by the artifacts in [Testing and proof](11-testing-and-proof.md):
39
39
 
40
- - The unit suite on the captured Windows run: 38 tests, 37 passed, 0 failed, 1 skipped (OS refused a symlink).
41
- - Ubuntu and Windows CI are required checks on Node 20 and 22. The job runs the tests and then the release gate with that output as evidence.
40
+ - The unit suite on the captured Windows run: 43 tests, 43 passed, 0 failed, 0 skipped. The symlink case uses a directory junction when Windows refuses a symlink.
41
+ - Ubuntu and Windows CI are required checks on Node 20, 22 and 24. The job runs the tests and then the release gate with that output as evidence.
42
42
  - macOS is not in CI. Actions run `41884015367` cancelled both macOS jobs while they were queued, with zero steps. Run `42098256304` cancelled a `macos-14` job in about a second, with no runner. Neither run executed tests. Ubuntu and Windows are the required checks.
43
43
  - Six author-written fixtures produce exactly the expected rules. State the caveat in the same sentence: perfect precision here is a regression lock, not field accuracy.
44
44
  - The CLI's own release check of this repository, given that test evidence, was `READY_FOR_HUMAN_APPROVAL`. Read [audit/report.md](audit/report.md).
@@ -1,8 +1,8 @@
1
1
  # Functional specification
2
2
 
3
- <!-- summary: Actors, use cases, functional requirements and acceptance criteria for PramanaSutra AI 0.3.0. Planned work is marked planned and is not described as shipped. -->
3
+ <!-- summary: Actors, use cases, functional requirements and acceptance criteria for PramanaSutra AI 0.3.5. Planned work is marked planned and is not described as shipped. -->
4
4
 
5
- This specification describes version 0.3.0 as implemented. A requirement marked **planned** is not available. Tests that mention a requirement are named so a reader can find them in `tests/cli.test.mjs`.
5
+ This specification describes version 0.3.5 as implemented. A requirement marked **planned** is not available. Tests that mention a requirement are named so a reader can find them in `tests/cli.test.mjs`.
6
6
 
7
7
  ## Actors
8
8
 
@@ -19,7 +19,7 @@ This specification describes version 0.3.0 as implemented. A requirement marked
19
19
 
20
20
  ### UC-1 Static audit
21
21
 
22
- The developer points the CLI at a directory. The tool walks the tree, skips symlinks, skips ignored paths, and reports focused tests, skipped tests, missing tests, missing CI and a missing license. It writes `report.md`, `report.html` and `report.json` together. It does not execute the project.
22
+ The developer points the CLI at a directory. The tool walks the tree, skips symlinks, skips ignored paths, and reports focused tests, skipped tests, missing tests, missing CI and a missing license. It writes `report.md`, `report.html`, `report.json` and `report.sarif.json` together. It does not execute the project. `scan` and `release-check` use the same exit codes.
23
23
 
24
24
  ### UC-2 Release check with evidence
25
25
 
@@ -46,7 +46,7 @@ A repository that contains labeled bad examples (this one does) lists them in `.
46
46
  | FR-3 | `agents list` lists 17 skills whose folder name matches frontmatter | Implemented | Test `agents catalog includes Prime and 16 specialists` |
47
47
  | FR-4 | `scan` and `release-check` require `--path` to a real directory | Implemented | Missing path exits 1, no stack trace |
48
48
  | FR-5 | Default output is `./pramanasutra-reports` in the current working directory, not inside the scanned project | Implemented | Test `scan writes md, html and json reports by default` |
49
- | FR-6 | The three report files are always written together unless `--no-report` | Implemented | Tests assert `report.md`, `report.html`, `report.json` |
49
+ | FR-6 | The four report files are always written together unless `--no-report` | Implemented | Tests assert `report.md`, `report.html`, `report.json`, and SARIF 2.1.0 |
50
50
  | FR-7 | HTML and Markdown escape `<`, `>` and quotes from file names, titles and evidence commands | Implemented | Escape tests, including a portable path test that does not need a forbidden file name |
51
51
  | FR-8 | The scanned path stored in the report is the directory's base name, not the absolute path | Implemented | Test `reports do not disclose absolute target paths by default` |
52
52
  | FR-9 | A focused test (`test.only`, `it.only`, `describe.only`, `fit`, `fdescribe`) is high severity and `NO_GO` under the default policy | Implemented | Fixture `focused-test`, exit code 2 |
@@ -45,7 +45,7 @@ There is one program: `packages/cli/bin/pramanasutra.mjs`. It loads four librari
45
45
  <text x="40" y="416" font-size="12" fill="#5e584e">Writes go to the output directory the operator chose, default ./pramanasutra-reports in the current working directory.</text>
46
46
  </svg>
47
47
 
48
- The diagram is inline. The page does not fetch a chart library.
48
+ The diagram is inline. The page does not fetch a chart library. The reports box lists Markdown, HTML and JSON. The same write also emits `report.sarif.json` (SARIF 2.1.0).
49
49
 
50
50
  ## Trust boundaries
51
51
 
@@ -22,12 +22,12 @@ Source of the running tool: `packages/cli/`. Node.js ES modules. No `npm install
22
22
 
23
23
  | Code | When |
24
24
  |---|---|
25
- | 0 | `doctor` on Node 20+, `help`, `version`, `agents`, `init`, `verify` success, `scan` finished, `release-check` with `READY_FOR_HUMAN_APPROVAL` |
25
+ | 0 | `doctor` on Node 20+, `help`, `version`, `agents`, `init`, `verify` success, `scan` or `release-check` with `READY_FOR_HUMAN_APPROVAL` |
26
26
  | 1 | Bad arguments, unreadable input, invalid evidence, invalid policy, doctor on Node older than 20, unknown command |
27
- | 2 | `release-check` decision `NO_GO` |
28
- | 3 | `release-check` decision `REVIEW_REQUIRED` |
27
+ | 2 | `scan` or `release-check` decision `NO_GO` |
28
+ | 3 | `scan` or `release-check` decision `REVIEW_REQUIRED` |
29
29
 
30
- `scan` does not use 2 or 3. It always exits 0 after a successful inspection so a search can be informational. Use `release-check` when the exit code must mean the gate.
30
+ `scan` and `release-check` both use 2 for `NO_GO` and 3 for `REVIEW_REQUIRED`. Exit 0 from either command is `READY_FOR_HUMAN_APPROVAL` only. A scan without an evidence file cannot be ready.
31
31
 
32
32
  ## Report object (schema 1.0.0)
33
33
 
@@ -44,13 +44,14 @@ Written as `report.json`. The Markdown and HTML are renderings of this object, p
44
44
  | `inventory.fileCount` | Files that were listed, after ignore rules and skip directories |
45
45
  | `inventory.testFiles` | Relative paths classified as tests |
46
46
  | `inventory.manifests` | `package.json`, `pyproject.toml`, `go.mod`, Gradle, Maven, Cargo, Gemfile, Composer, pubspec, `.sln`, `.csproj`, `requirements.txt` |
47
- | `inventory.ciWorkflows` | GitHub Actions under `.github/workflows`, plus GitLab, Jenkins, Azure Pipelines, Bitbucket Pipelines file names |
47
+ | `inventory.ciWorkflows` | GitHub Actions under `.github/workflows`, plus GitLab, Jenkins, Azure Pipelines, Bitbucket Pipelines, CircleCI, Buildkite, Drone and Woodpecker file names |
48
+ | `inventory.changedFiles` | Present as an array only when `--changed` could run `git diff`. `null` when the flag was omitted or git was unavailable |
48
49
  | `inventory.partial` | True when the walk truncated, skipped a large or binary test file, or could not read a directory |
49
50
  | `inventory.ignoredPaths` | Count of file or directory entries skipped because of `.pramanasutraignore` |
50
51
  | `findings[]` | `id`, `ruleId`, `severity`, `confidence`, `title`, `description`, `evidence.path`, `evidence.line`, `recommendation`, `status` |
51
52
  | `limitations[]` | Sentences about skips, truncation, ignore |
52
53
  | `releaseGate` | `decision`, `policy`, `reasons[]`, `requiresHumanApproval`, `executedTestEvidence`, `evidenceState`, `automatedDeploymentAuthorized` |
53
- | `evidence` | Present only when `--evidence` was accepted. Echoes source, command, time, exit code, passed, failed, skipped, environment, commit. Omitted on a plain scan |
54
+ | `evidence` | Present only when `--evidence` was accepted. Echoes source, command, time, exit code, passed, failed, skipped, environment, commit, and `github` or null. Omitted on a plain scan |
54
55
 
55
56
  Adding `toolVersion` and `evidence` does not change `schemaVersion`. Consumers that ignore unknown fields keep working. Consumers that reject unknown fields will need a change; none are shipped in this repo.
56
57
 
@@ -66,6 +67,7 @@ Adding `toolVersion` and `evidence` does not change `schemaVersion`. Consumers t
66
67
  | `passed`, `failed` | Integers ≥ 0 |
67
68
  | `skipped` | Optional integer ≥ 0 |
68
69
  | `environment`, `commit` | Optional strings |
70
+ | `github` | Optional object. When present, `repository`, `sha`, `runId` and `workflow` must each be a non-empty string. The report then says `ci-environment`. Missing `github` is `unbound`. Neither state is a signature |
69
71
 
70
72
  Classification order: no file → `absent`. `failed > 0` or `exitCode !== 0` → `failing`. `passed === 0` → `inconclusive`. `external-unverified` → `unverified`. Otherwise → `passing`. Only `passing` can unlock the ready state, and only together with the policy's static requirements.
71
73
 
@@ -15,11 +15,9 @@ node packages/cli/bin/pramanasutra.mjs doctor
15
15
  From anywhere, once the repository is public on GitHub:
16
16
 
17
17
  ```bash
18
- npx github:shahvatsalofficial/pramanasutra-ai doctor
18
+ npx pramanasutra doctor
19
19
  ```
20
20
 
21
- After the publish workflow has released `0.3.2`, `npx pramanasutra doctor` is the same command.
22
-
23
21
  `npx` downloads the repository. The CLI that then runs still does not call a model and does not scan until you ask it to.
24
22
 
25
23
  ## Check a project
@@ -28,13 +26,18 @@ After the publish workflow has released `0.3.2`, `npx pramanasutra doctor` is th
28
26
  node packages/cli/bin/pramanasutra.mjs release-check --path path/to/project
29
27
  ```
30
28
 
31
- You get a paragraph on the terminal and three files in `./pramanasutra-reports/`:
29
+ You get a paragraph on the terminal and four files in `./pramanasutra-reports/`:
32
30
 
33
31
  | File | Open it with |
34
32
  |---|---|
35
33
  | `report.md` | The pull request, an editor, or GitHub |
36
34
  | `report.html` | Any browser. Light and dark follow the system. It prints |
37
- | `report.json` | A script. Same facts as the other two |
35
+ | `report.json` | A script. Same facts as the other files |
36
+ | `report.sarif.json` | A SARIF 2.1.0 reader. The CLI writes the file and does not upload it |
37
+
38
+ `scan` and `release-check` use the same exit codes: `2` for `NO_GO`, `3` for `REVIEW_REQUIRED`, `0` for `READY_FOR_HUMAN_APPROVAL`. A scan with no evidence file exits `3`.
39
+
40
+ `--changed` adds names from `git diff` when the directory is a Git checkout. Those names are not a test selection. If git cannot read the directory, the report says `git diff was not available for this directory, so no changed-file list was collected.`
38
41
 
39
42
  Choose another folder with `--out reports/feature-a`. Skip the files with `--no-report` if you only want the exit code.
40
43
 
@@ -1,6 +1,6 @@
1
1
  # CLI and reports
2
2
 
3
- <!-- summary: Every PramanaSutra AI command and flag, and how report.md, report.html and report.json present the same audit. -->
3
+ <!-- summary: Every PramanaSutra AI command and flag, and how report.md, report.html, report.json and report.sarif.json present the same audit. -->
4
4
 
5
5
  Binary name: `pramanasutra`. From a clone: `node packages/cli/bin/pramanasutra.mjs`.
6
6
 
@@ -12,8 +12,8 @@ Binary name: `pramanasutra`. From a clone: `node packages/cli/bin/pramanasutra.m
12
12
  | `help`, `--help`, `-h` | Prints usage | 0 |
13
13
  | `doctor [--json]` | Node major version, platform, offline, no model | 0 if Node ≥ 20, else 1 |
14
14
  | `agents list [--json]` | Canonical skill names | 0 |
15
- | `scan --path <dir> [--out <dir>] [--no-report] [--json]` | Static audit plus a gate with no evidence file | 0 on success, 1 on bad input |
16
- | `release-check --path <dir> [--evidence <file>] [--policy <file>] [--out <dir>] [--no-report] [--json]` | Audit plus gate. This is the CI command | 0, 2, 3, or 1 |
15
+ | `scan --path <dir> [--changed] [--out <dir>] [--no-report] [--json]` | Static audit plus a gate with no evidence file. Same exit codes as `release-check` | 0, 2, 3, or 1 |
16
+ | `release-check --path <dir> [--evidence <file>] [--policy <file>] [--changed] [--out <dir>] [--no-report] [--json]` | Audit plus gate. This is the CI command | 0, 2, 3, or 1 |
17
17
  | `verify --evidence <file> [--json]` | Schema-check an evidence file. Does not scan | 0 or 1 |
18
18
  | `init --ide <name> --target <dir> [--force]` | Copy skills. `--ide` is `claude`, `cursor`, `codex`, `gemini`, `copilot`, `generic` or `all` | 0 or 1 |
19
19
 
@@ -23,20 +23,20 @@ Binary name: `pramanasutra`. From a clone: `node packages/cli/bin/pramanasutra.m
23
23
 
24
24
  ## Flags that take a value
25
25
 
26
- `--path`, `--out`, `--ide`, `--target`, `--evidence`, `--policy`. The value is the next argument. A missing value is an error. `--force`, `--json` and `--no-report` take no value.
26
+ `--path`, `--out`, `--ide`, `--target`, `--evidence`, `--policy`. The value is the next argument. A missing value is an error. `--force`, `--json`, `--no-report` and `--changed` take no value. `--changed` is only meaningful on `scan` and `release-check`.
27
27
 
28
28
  ## Where files are written
29
29
 
30
30
  Default: `pramanasutra-reports` under the **current working directory**, resolved to an absolute path at write time. The scanned project is not the default output location, so a scan of a foreign tree does not drop files into it.
31
31
 
32
- The three names are fixed: `report.md`, `report.html`, `report.json`. They are written in that order, in one directory, in one call. If the directory cannot be created, nothing is reported as success.
32
+ The four names are fixed: `report.md`, `report.html`, `report.json`, `report.sarif.json`. They are written in that order, in one directory, in one call. If the directory cannot be created, nothing is reported as success. SARIF is a rendering of the findings for other tools. The CLI does not upload it and does not fetch the SARIF schema.
33
33
 
34
34
  ## How to read report.md
35
35
 
36
36
  1. The first table is identity: project base name, time, tool version, schema, **Release decision**, policy, evidence state.
37
37
  2. The blockquote repeats the decision in a sentence.
38
38
  3. **Summary** counts files, test files, workflows, manifests and findings by severity. It states that this tool did not execute tests.
39
- 4. **Supplied test evidence** is either an explicit "no file" or a table of source, command, time, exit code, passed, failed, skipped. Those numbers are from the file. They are not a new test run.
39
+ 4. **Supplied test evidence** is either an explicit "no file" or a table of source, command, time, exit code, passed, failed, skipped, and GitHub fields when present. Those numbers are from the file. They are not a new test run. The next paragraph is the binding: `none` (no file), `unbound` (no `github` object), or `ci-environment` (repository, commit, run id and workflow are all set). `ci-environment` is still not checked with GitHub. A person can type those four strings.
40
40
  5. **Findings at a glance** is the table to paste into a review: severity, rule, `path:line`, fix.
41
41
  6. **Findings** repeats each item with why it matters.
42
42
  7. **Test files seen** and **CI workflows seen** show what the classification actually matched, up to 40 paths, then a count of the rest.