pramanasutra 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +18 -3
  3. package/docs/00-start-here.html +160 -151
  4. package/docs/01-executive-summary.html +151 -148
  5. package/docs/02-functional-specification.html +152 -150
  6. package/docs/03-architecture.html +151 -147
  7. package/docs/04-technical-reference.html +149 -147
  8. package/docs/05-user-guide.html +153 -147
  9. package/docs/06-cli-and-reports.html +150 -147
  10. package/docs/07-rule-catalog.html +152 -149
  11. package/docs/08-skills-and-agents.html +150 -147
  12. package/docs/09-security-and-privacy.html +149 -147
  13. package/docs/10-legal-and-compliance.html +150 -148
  14. package/docs/11-testing-and-proof.html +151 -148
  15. package/docs/12-ci-and-release.html +151 -148
  16. package/docs/13-roadmap-and-status.html +155 -153
  17. package/docs/14-faq-and-glossary.html +149 -147
  18. package/docs/15-maintainer-guide.html +150 -148
  19. package/docs/16-real-world-scenarios.html +293 -0
  20. package/docs/audit/report.html +3 -3
  21. package/docs/audit/report.json +2 -2
  22. package/docs/audit/report.md +3 -3
  23. package/docs/audit/report.sarif.json +1 -1
  24. package/docs/diagrams/ci-pipeline.svg +21 -0
  25. package/docs/diagrams/components.svg +19 -0
  26. package/docs/diagrams/evidence-binding.svg +12 -0
  27. package/docs/diagrams/evidence-states.svg +39 -0
  28. package/docs/diagrams/gate-flow.svg +23 -0
  29. package/docs/diagrams/overview.svg +25 -0
  30. package/docs/diagrams/proof-graphs.svg +32 -0
  31. package/docs/diagrams/quickstart.svg +25 -0
  32. package/docs/diagrams/report-files.svg +22 -0
  33. package/docs/diagrams/rules-overview.svg +35 -0
  34. package/docs/diagrams/scenario-ai-claim.svg +14 -0
  35. package/docs/diagrams/scenario-focused-test.svg +28 -0
  36. package/docs/diagrams/scenario-picker.svg +22 -0
  37. package/docs/diagrams/skills-team.svg +15 -0
  38. package/docs/diagrams/trust-boundaries.svg +22 -0
  39. package/docs/index.html +157 -149
  40. package/docs/proof/test-results.txt +44 -44
  41. package/docs/samples/clean-project/report.html +2 -2
  42. package/docs/samples/clean-project/report.json +1 -1
  43. package/docs/samples/clean-project/report.md +2 -2
  44. package/docs/samples/clean-project/report.sarif.json +1 -1
  45. package/docs/samples/focused-test/report.html +2 -2
  46. package/docs/samples/focused-test/report.json +1 -1
  47. package/docs/samples/focused-test/report.md +2 -2
  48. package/docs/samples/focused-test/report.sarif.json +1 -1
  49. package/docs/samples/missing-ci/report.html +2 -2
  50. package/docs/samples/missing-ci/report.json +1 -1
  51. package/docs/samples/missing-ci/report.md +2 -2
  52. package/docs/samples/missing-ci/report.sarif.json +1 -1
  53. package/docs/samples/missing-tests/report.html +2 -2
  54. package/docs/samples/missing-tests/report.json +1 -1
  55. package/docs/samples/missing-tests/report.md +2 -2
  56. package/docs/samples/missing-tests/report.sarif.json +1 -1
  57. package/docs/samples/multi-language/report.html +2 -2
  58. package/docs/samples/multi-language/report.json +1 -1
  59. package/docs/samples/multi-language/report.md +2 -2
  60. package/docs/samples/multi-language/report.sarif.json +1 -1
  61. package/docs/samples/unsafe-names/report.html +2 -2
  62. package/docs/samples/unsafe-names/report.json +1 -1
  63. package/docs/samples/unsafe-names/report.md +2 -2
  64. package/docs/samples/unsafe-names/report.sarif.json +1 -1
  65. package/docs/sitemap.xml +1 -0
  66. package/documents/pramanasutra/00-start-here.md +18 -2
  67. package/documents/pramanasutra/01-executive-summary.md +4 -1
  68. package/documents/pramanasutra/02-functional-specification.md +2 -2
  69. package/documents/pramanasutra/03-architecture.md +6 -0
  70. package/documents/pramanasutra/05-user-guide.md +11 -0
  71. package/documents/pramanasutra/06-cli-and-reports.md +3 -0
  72. package/documents/pramanasutra/07-rule-catalog.md +3 -1
  73. package/documents/pramanasutra/08-skills-and-agents.md +3 -0
  74. package/documents/pramanasutra/10-legal-and-compliance.md +1 -1
  75. package/documents/pramanasutra/11-testing-and-proof.md +4 -1
  76. package/documents/pramanasutra/12-ci-and-release.md +4 -1
  77. package/documents/pramanasutra/13-roadmap-and-status.md +4 -4
  78. package/documents/pramanasutra/16-real-world-scenarios.md +252 -0
  79. package/documents/pramanasutra/README.md +11 -11
  80. package/documents/pramanasutra/audit/report.html +3 -3
  81. package/documents/pramanasutra/audit/report.json +2 -2
  82. package/documents/pramanasutra/audit/report.md +3 -3
  83. package/documents/pramanasutra/audit/report.sarif.json +1 -1
  84. package/documents/pramanasutra/diagrams/ci-pipeline.svg +21 -0
  85. package/documents/pramanasutra/diagrams/components.svg +19 -0
  86. package/documents/pramanasutra/diagrams/evidence-binding.svg +12 -0
  87. package/documents/pramanasutra/diagrams/evidence-states.svg +39 -0
  88. package/documents/pramanasutra/diagrams/gate-flow.svg +23 -0
  89. package/documents/pramanasutra/diagrams/overview.svg +25 -0
  90. package/documents/pramanasutra/diagrams/proof-graphs.svg +32 -0
  91. package/documents/pramanasutra/diagrams/quickstart.svg +25 -0
  92. package/documents/pramanasutra/diagrams/report-files.svg +22 -0
  93. package/documents/pramanasutra/diagrams/rules-overview.svg +35 -0
  94. package/documents/pramanasutra/diagrams/scenario-ai-claim.svg +14 -0
  95. package/documents/pramanasutra/diagrams/scenario-focused-test.svg +28 -0
  96. package/documents/pramanasutra/diagrams/scenario-picker.svg +22 -0
  97. package/documents/pramanasutra/diagrams/skills-team.svg +15 -0
  98. package/documents/pramanasutra/diagrams/trust-boundaries.svg +22 -0
  99. package/documents/pramanasutra/html/00-start-here.html +160 -151
  100. package/documents/pramanasutra/html/01-executive-summary.html +151 -148
  101. package/documents/pramanasutra/html/02-functional-specification.html +152 -150
  102. package/documents/pramanasutra/html/03-architecture.html +151 -147
  103. package/documents/pramanasutra/html/04-technical-reference.html +149 -147
  104. package/documents/pramanasutra/html/05-user-guide.html +153 -147
  105. package/documents/pramanasutra/html/06-cli-and-reports.html +150 -147
  106. package/documents/pramanasutra/html/07-rule-catalog.html +152 -149
  107. package/documents/pramanasutra/html/08-skills-and-agents.html +150 -147
  108. package/documents/pramanasutra/html/09-security-and-privacy.html +149 -147
  109. package/documents/pramanasutra/html/10-legal-and-compliance.html +150 -148
  110. package/documents/pramanasutra/html/11-testing-and-proof.html +151 -148
  111. package/documents/pramanasutra/html/12-ci-and-release.html +151 -148
  112. package/documents/pramanasutra/html/13-roadmap-and-status.html +155 -153
  113. package/documents/pramanasutra/html/14-faq-and-glossary.html +149 -147
  114. package/documents/pramanasutra/html/15-maintainer-guide.html +150 -148
  115. package/documents/pramanasutra/html/16-real-world-scenarios.html +293 -0
  116. package/documents/pramanasutra/html/audit/report.html +3 -3
  117. package/documents/pramanasutra/html/audit/report.json +2 -2
  118. package/documents/pramanasutra/html/audit/report.md +3 -3
  119. package/documents/pramanasutra/html/audit/report.sarif.json +1 -1
  120. package/documents/pramanasutra/html/diagrams/ci-pipeline.svg +21 -0
  121. package/documents/pramanasutra/html/diagrams/components.svg +19 -0
  122. package/documents/pramanasutra/html/diagrams/evidence-binding.svg +12 -0
  123. package/documents/pramanasutra/html/diagrams/evidence-states.svg +39 -0
  124. package/documents/pramanasutra/html/diagrams/gate-flow.svg +23 -0
  125. package/documents/pramanasutra/html/diagrams/overview.svg +25 -0
  126. package/documents/pramanasutra/html/diagrams/proof-graphs.svg +32 -0
  127. package/documents/pramanasutra/html/diagrams/quickstart.svg +25 -0
  128. package/documents/pramanasutra/html/diagrams/report-files.svg +22 -0
  129. package/documents/pramanasutra/html/diagrams/rules-overview.svg +35 -0
  130. package/documents/pramanasutra/html/diagrams/scenario-ai-claim.svg +14 -0
  131. package/documents/pramanasutra/html/diagrams/scenario-focused-test.svg +28 -0
  132. package/documents/pramanasutra/html/diagrams/scenario-picker.svg +22 -0
  133. package/documents/pramanasutra/html/diagrams/skills-team.svg +15 -0
  134. package/documents/pramanasutra/html/diagrams/trust-boundaries.svg +22 -0
  135. package/documents/pramanasutra/html/index.html +157 -149
  136. package/documents/pramanasutra/html/proof/test-results.txt +44 -44
  137. package/documents/pramanasutra/html/samples/clean-project/report.html +2 -2
  138. package/documents/pramanasutra/html/samples/clean-project/report.json +1 -1
  139. package/documents/pramanasutra/html/samples/clean-project/report.md +2 -2
  140. package/documents/pramanasutra/html/samples/clean-project/report.sarif.json +1 -1
  141. package/documents/pramanasutra/html/samples/focused-test/report.html +2 -2
  142. package/documents/pramanasutra/html/samples/focused-test/report.json +1 -1
  143. package/documents/pramanasutra/html/samples/focused-test/report.md +2 -2
  144. package/documents/pramanasutra/html/samples/focused-test/report.sarif.json +1 -1
  145. package/documents/pramanasutra/html/samples/missing-ci/report.html +2 -2
  146. package/documents/pramanasutra/html/samples/missing-ci/report.json +1 -1
  147. package/documents/pramanasutra/html/samples/missing-ci/report.md +2 -2
  148. package/documents/pramanasutra/html/samples/missing-ci/report.sarif.json +1 -1
  149. package/documents/pramanasutra/html/samples/missing-tests/report.html +2 -2
  150. package/documents/pramanasutra/html/samples/missing-tests/report.json +1 -1
  151. package/documents/pramanasutra/html/samples/missing-tests/report.md +2 -2
  152. package/documents/pramanasutra/html/samples/missing-tests/report.sarif.json +1 -1
  153. package/documents/pramanasutra/html/samples/multi-language/report.html +2 -2
  154. package/documents/pramanasutra/html/samples/multi-language/report.json +1 -1
  155. package/documents/pramanasutra/html/samples/multi-language/report.md +2 -2
  156. package/documents/pramanasutra/html/samples/multi-language/report.sarif.json +1 -1
  157. package/documents/pramanasutra/html/samples/unsafe-names/report.html +2 -2
  158. package/documents/pramanasutra/html/samples/unsafe-names/report.json +1 -1
  159. package/documents/pramanasutra/html/samples/unsafe-names/report.md +2 -2
  160. package/documents/pramanasutra/html/samples/unsafe-names/report.sarif.json +1 -1
  161. package/documents/pramanasutra/html/sitemap.xml +1 -0
  162. package/documents/pramanasutra/proof/test-results.txt +44 -44
  163. package/documents/pramanasutra/samples/clean-project/report.html +2 -2
  164. package/documents/pramanasutra/samples/clean-project/report.json +1 -1
  165. package/documents/pramanasutra/samples/clean-project/report.md +2 -2
  166. package/documents/pramanasutra/samples/clean-project/report.sarif.json +1 -1
  167. package/documents/pramanasutra/samples/focused-test/report.html +2 -2
  168. package/documents/pramanasutra/samples/focused-test/report.json +1 -1
  169. package/documents/pramanasutra/samples/focused-test/report.md +2 -2
  170. package/documents/pramanasutra/samples/focused-test/report.sarif.json +1 -1
  171. package/documents/pramanasutra/samples/missing-ci/report.html +2 -2
  172. package/documents/pramanasutra/samples/missing-ci/report.json +1 -1
  173. package/documents/pramanasutra/samples/missing-ci/report.md +2 -2
  174. package/documents/pramanasutra/samples/missing-ci/report.sarif.json +1 -1
  175. package/documents/pramanasutra/samples/missing-tests/report.html +2 -2
  176. package/documents/pramanasutra/samples/missing-tests/report.json +1 -1
  177. package/documents/pramanasutra/samples/missing-tests/report.md +2 -2
  178. package/documents/pramanasutra/samples/missing-tests/report.sarif.json +1 -1
  179. package/documents/pramanasutra/samples/multi-language/report.html +2 -2
  180. package/documents/pramanasutra/samples/multi-language/report.json +1 -1
  181. package/documents/pramanasutra/samples/multi-language/report.md +2 -2
  182. package/documents/pramanasutra/samples/multi-language/report.sarif.json +1 -1
  183. package/documents/pramanasutra/samples/unsafe-names/report.html +2 -2
  184. package/documents/pramanasutra/samples/unsafe-names/report.json +1 -1
  185. package/documents/pramanasutra/samples/unsafe-names/report.md +2 -2
  186. package/documents/pramanasutra/samples/unsafe-names/report.sarif.json +1 -1
  187. package/examples/sample-output/clean-project/report.html +2 -2
  188. package/examples/sample-output/clean-project/report.json +1 -1
  189. package/examples/sample-output/clean-project/report.md +2 -2
  190. package/examples/sample-output/clean-project/report.sarif.json +1 -1
  191. package/examples/sample-output/focused-test/report.html +2 -2
  192. package/examples/sample-output/focused-test/report.json +1 -1
  193. package/examples/sample-output/focused-test/report.md +2 -2
  194. package/examples/sample-output/focused-test/report.sarif.json +1 -1
  195. package/examples/sample-output/missing-ci/report.html +2 -2
  196. package/examples/sample-output/missing-ci/report.json +1 -1
  197. package/examples/sample-output/missing-ci/report.md +2 -2
  198. package/examples/sample-output/missing-ci/report.sarif.json +1 -1
  199. package/examples/sample-output/missing-tests/report.html +2 -2
  200. package/examples/sample-output/missing-tests/report.json +1 -1
  201. package/examples/sample-output/missing-tests/report.md +2 -2
  202. package/examples/sample-output/missing-tests/report.sarif.json +1 -1
  203. package/examples/sample-output/multi-language/report.html +2 -2
  204. package/examples/sample-output/multi-language/report.json +1 -1
  205. package/examples/sample-output/multi-language/report.md +2 -2
  206. package/examples/sample-output/multi-language/report.sarif.json +1 -1
  207. package/examples/sample-output/unsafe-names/report.html +2 -2
  208. package/examples/sample-output/unsafe-names/report.json +1 -1
  209. package/examples/sample-output/unsafe-names/report.md +2 -2
  210. package/examples/sample-output/unsafe-names/report.sarif.json +1 -1
  211. package/llms.txt +2 -1
  212. package/package.json +5 -2
  213. package/packages/cli/lib/report.mjs +2 -2
@@ -22,6 +22,9 @@ npx pramanasutra doctor
22
22
 
23
23
  ## Check a project
24
24
 
25
+
26
+ ![Quick start: run, read, prove](diagrams/quickstart.svg)
27
+
25
28
  ```bash
26
29
  node packages/cli/bin/pramanasutra.mjs release-check --path path/to/project
27
30
  ```
@@ -68,6 +71,11 @@ This repository's own audit: [audit/report.md](audit/report.md) and [audit/repor
68
71
 
69
72
  ## Supply evidence
70
73
 
74
+
75
+ ![How each kind of evidence changes the gate](diagrams/evidence-states.svg)
76
+
77
+ ![The three evidence binding labels and why none is a signature](diagrams/evidence-binding.svg)
78
+
71
79
  The CLI will not run your tests. You run them, then describe the result. Minimum shape:
72
80
 
73
81
  ```json
@@ -133,6 +141,9 @@ The report will say how many paths were excluded. If you exclude your real tests
133
141
 
134
142
  ## Fix a NO_GO for a focused test
135
143
 
144
+
145
+ ![Before and after fixing a test.only: 1 of 2 tests run, then 2 of 2, and the gate moves from NO_GO to ready for a human](diagrams/scenario-focused-test.svg)
146
+
136
147
  1. Open the path in the finding, for example `tests/a.test.js:2`.
137
148
  2. Remove `.only`, `fit` or `fdescribe`.
138
149
  3. Run the project's real test command and keep the output.
@@ -27,6 +27,9 @@ Binary name: `pramanasutra`. From a clone: `node packages/cli/bin/pramanasutra.m
27
27
 
28
28
  ## Where files are written
29
29
 
30
+
31
+ ![One audit written as four files: Markdown, HTML, JSON and SARIF](diagrams/report-files.svg)
32
+
30
33
  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
34
 
32
35
  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.
@@ -1,11 +1,13 @@
1
1
  # Rule catalog
2
2
 
3
- <!-- summary: Every static rule PramanaSutra AI 0.3.4 can emit, with severity, what the line looks like, a committed sample, and the misses to expect. -->
3
+ <!-- summary: Every static rule PramanaSutra AI 0.3.6 can emit, with severity, what the line looks like, a committed sample, and the misses to expect. -->
4
4
 
5
5
  Rules are regular expressions on a single line of a file already classified as a test. They are not ASTs. Confidence is `medium` unless noted. Status on a finding is `observed`, which means "the pattern matched", not "a test was executed".
6
6
 
7
7
  A line that is a string in the middle of other code does not match, because the pattern is anchored at the start of the line (after whitespace). A line that is only the declaration does match. That is why a fixture string inside `const fixture = 'test.only(...)'` is not a finding, and a real `test.only` line is.
8
8
 
9
+ ![The five rules, their severity and their effect on the gate](diagrams/rules-overview.svg)
10
+
9
11
  ## FOCUSED_TEST
10
12
 
11
13
  | | |
@@ -22,6 +22,9 @@ If an assistant using these skills claims "all tests passed" and cannot point at
22
22
 
23
23
  ## The roster
24
24
 
25
+
26
+ ![The 17 skills grouped by job around PramanaSutra Prime](diagrams/skills-team.svg)
27
+
25
28
  | Skill | Job |
26
29
  |---|---|
27
30
  | `pramanasutra-prime` | Coordinates inspection, QA strategy, evidence review and a release recommendation. Does not approve a deploy |
@@ -12,7 +12,7 @@ Apache-2.0 is a permissive license with a patent grant and a requirement to keep
12
12
 
13
13
  ## Third-party code
14
14
 
15
- Version 0.3.4 has no runtime npm dependencies and does not vendor third-party libraries inside `packages/cli`. [THIRD_PARTY_NOTICES.md](../../THIRD_PARTY_NOTICES.md) records that. If a later change adds a dependency, that file has to change in the same commit. Documentation pages use system fonts and no remote script, so the HTML does not pull in a font license or a CDN library.
15
+ Version 0.3.6 has no runtime npm dependencies and does not vendor third-party libraries inside `packages/cli`. [THIRD_PARTY_NOTICES.md](../../THIRD_PARTY_NOTICES.md) records that. If a later change adds a dependency, that file has to change in the same commit. Documentation pages use system fonts and no remote script, so the HTML does not pull in a font license or a CDN library.
16
16
 
17
17
  GitHub Actions are third-party workflows pinned by SHA for checkout and setup-node. Their licenses are their own. Using them does not copy their source into this repository.
18
18
 
@@ -22,7 +22,10 @@ The sample reports pin `generatedAt` to `2026-11-06T00:00:00.000Z` so a review i
22
22
 
23
23
  ## Captured unit run
24
24
 
25
- On the run captured for version 0.3.4 the summary was:
25
+
26
+ ![Recorded results: 43 of 43 tests, 6 of 6 fixtures, 6 of 6 CI jobs](diagrams/proof-graphs.svg)
27
+
28
+ On the run captured for version 0.3.6 the summary was:
26
29
 
27
30
  - tests: 43
28
31
  - pass: 43
@@ -4,9 +4,12 @@
4
4
 
5
5
  ## Workflows in this repository
6
6
 
7
+
8
+ ![A pull request through tests, evidence, the gate and a human decision to release](diagrams/ci-pipeline.svg)
9
+
7
10
  | File | What it gates | Badge |
8
11
  |---|---|---|
9
- | `.github/workflows/ci.yml` | Ubuntu and Windows, Node 20 and 22. Unit tests, `doctor`, then `scripts/ci-gate.mjs`. Does not publish | The CI badge on the README |
12
+ | `.github/workflows/ci.yml` | Ubuntu and Windows, Node 20, 22 and 24. Unit tests, `doctor`, then `scripts/ci-gate.mjs`. Does not publish | The CI badge on the README |
10
13
  | `.github/workflows/publish.yml` | On a GitHub Release: `npm test`, then `npm publish --provenance` for the unscoped package `pramanasutra` | None. It is not a required check |
11
14
  | `.github/workflows/codeql.yml` | CodeQL `javascript-typescript` on Ubuntu | CodeQL badge |
12
15
  | `.github/dependabot.yml` | Update PRs for Actions | None |
@@ -1,10 +1,10 @@
1
1
  # Roadmap and status
2
2
 
3
- <!-- summary: Honest status of PramanaSutra AI 0.3.4. Implemented, planned, and explicitly not claimed. -->
3
+ <!-- summary: Honest status of PramanaSutra AI 0.3.6. Implemented, planned, and explicitly not claimed. -->
4
4
 
5
5
  Status words mean only what they say. **Implemented** has a command or file and a test or a committed artifact. **Planned** is a directory, a sentence, or an intention. It does not run. **Not claimed** is something people might assume that this project refuses.
6
6
 
7
- ## Implemented in 0.3.4
7
+ ## Implemented in 0.3.6
8
8
 
9
9
  | Capability | Evidence |
10
10
  |---|---|
@@ -17,7 +17,7 @@ Status words mean only what they say. **Implemented** has a command or file and
17
17
  | `scan` and `release-check` exit 2 or 3 for a failing gate. Exit 0 is `READY_FOR_HUMAN_APPROVAL` only | Help text and `packages/cli/bin/pramanasutra.mjs` |
18
18
  | `.pramanasutraignore` | Unit test, this repo's ignore file |
19
19
  | 17 skills with distinct Safe workflow sections | Installer tests and the uniqueness assertion |
20
- | Required CI on Ubuntu and Windows, Node 20 and 22, with a real release gate | `.github/workflows/ci.yml` |
20
+ | Required CI on Ubuntu and Windows, Node 20, 22 and 24, with a real release gate | `.github/workflows/ci.yml` |
21
21
  | CI gate writes `github` when the four `GITHUB_*` variables exist | `scripts/ci-gate.mjs` |
22
22
  | macOS in GitHub Actions | Not scheduled. Runs 41884015367 and 42098256304 cancelled with zero steps |
23
23
  | CodeQL workflow | `.github/workflows/codeql.yml` |
@@ -65,7 +65,7 @@ These README-level packages exist as notes only. The CLI does not import them.
65
65
 
66
66
  | Environment | Status |
67
67
  |---|---|
68
- | Node 20 and 22 on Ubuntu and Windows in CI | Required workflow. Trust the latest green run, not this sentence |
68
+ | Node 20, 22 and 24 on Ubuntu and Windows in CI | Required workflow. Trust the latest green run, not this sentence |
69
69
  | Node on the maintainer's Windows machine | The captured proof file |
70
70
  | macOS in CI | Not scheduled. Unverified |
71
71
  | Claude Code, Cursor, Codex, Copilot, Gemini CLI | Copy paths implemented. Behavior not verified |
@@ -0,0 +1,252 @@
1
+ # Real-world scenarios
2
+
3
+ <!-- summary: Eight true-to-life situations where PramanaSutra AI helps, each with the exact commands, the real terminal output captured from this repository's fixtures, and what to do next. -->
4
+
5
+ Every command on this page was run against a committed project in `fixtures/` of this repository. The terminal output is copied, not written by hand. Where a picture helps, it is drawn from the same facts.
6
+
7
+ > **Note:** Nothing here runs your tests. In each story the tests are run by your own tool. PramanaSutra reads the project and reads the result you hand it.
8
+
9
+ ## The eight stories at a glance
10
+
11
+ | # | Story | Who feels it | What PramanaSutra does |
12
+ |---|---|---|---|
13
+ | 1 | A stray `test.only` before Friday's release | Developer | Finds it by line and blocks with `NO_GO` |
14
+ | 2 | "The AI said all tests pass" | Tech lead | Refuses to treat a claim as evidence |
15
+ | 3 | The pull-request gate | Team | Fails the build with an exit code and a readable report |
16
+ | 4 | Skipped tests pile up | QA lead | Lists every skip in three languages, can block on them |
17
+ | 5 | The pasted "passing" JSON | Release manager | Labels how much the evidence can be trusted |
18
+ | 6 | A legacy service with no tests | New owner | Says plainly that nothing was found, not that it is fine |
19
+ | 7 | A repository with hostile file names | Security reviewer | Scans safely and escapes every name in the report |
20
+ | 8 | Teaching your AI IDE the method | Any developer | Installs 17 skills and shows the prompt to use |
21
+
22
+ ## Story 1: the stray `test.only`
23
+
24
+ **The situation.** It is 16:40 on a Friday. A developer was debugging one test and typed `test.only`. The build is green because the runner now executes **one** test. Nobody notices.
25
+
26
+ ![Before and after fixing a test.only: 1 of 2 tests run, then 2 of 2, and the gate moves from NO_GO to ready for a human](diagrams/scenario-focused-test.svg)
27
+
28
+ **What you run.**
29
+
30
+ ```bash
31
+ npx pramanasutra release-check --path fixtures/focused-test
32
+ ```
33
+
34
+ **What you see.**
35
+
36
+ ```text
37
+ PramanaSutra release-check: 4 file(s), 1 test file(s), 1 finding(s). Gate: NO_GO. Tests executed by this tool: NO. Evidence: absent.
38
+ exit=2
39
+ ```
40
+
41
+ **What the report says** (`report.md`, trimmed):
42
+
43
+ ```text
44
+ | high | `FOCUSED_TEST` | `tests/a.test.js:2` | Remove .only / fit / fdescribe, then execute the full suite. |
45
+ ```
46
+
47
+ **What you do.** Delete `.only` on line 2, run your full suite, write the result to an evidence file, and run the check again. See [story 2](#story-2-the-ai-said-all-tests-pass) for that last step.
48
+
49
+ **Why it matters.** A focused test is the cheapest way to lose coverage without any alarm. The scanner reads the line, not the runner's summary, so it still sees the problem when the build is green.
50
+
51
+ ## Story 2: "the AI said all tests pass"
52
+
53
+ **The situation.** An assistant summarised a pull request and wrote "all tests pass". There is no log. You need to know whether to believe it.
54
+
55
+ ![A claim of passing tests is not evidence: with no evidence file the result is REVIEW_REQUIRED, with real evidence it can reach ready for a human](diagrams/scenario-ai-claim.svg)
56
+
57
+ **Step 1: check the project without evidence.**
58
+
59
+ ```bash
60
+ npx pramanasutra release-check --path fixtures/clean-project
61
+ ```
62
+
63
+ ```text
64
+ PramanaSutra release-check: 6 file(s), 1 test file(s), 0 finding(s). Gate: REVIEW_REQUIRED. Tests executed by this tool: NO. Evidence: absent.
65
+ exit=3
66
+ ```
67
+
68
+ A clean project with no findings still stops at `REVIEW_REQUIRED`. The reason is in the report: *No executed-test evidence supplied.*
69
+
70
+ **Step 2: run the tests yourself, then describe the result.**
71
+
72
+ ```json
73
+ {
74
+ "schemaVersion": "1.0.0",
75
+ "source": "ci-ingested",
76
+ "command": "npm test",
77
+ "executedAt": "2026-11-01T10:00:00Z",
78
+ "exitCode": 0,
79
+ "passed": 1,
80
+ "failed": 0
81
+ }
82
+ ```
83
+
84
+ ```bash
85
+ npx pramanasutra verify --evidence evidence.json
86
+ npx pramanasutra release-check --path fixtures/clean-project --evidence fixtures/clean-project/evidence.json
87
+ ```
88
+
89
+ ```text
90
+ Evidence valid: source=ci-ingested, passed=1, failed=0, exitCode=0. Provenance is only as trustworthy as its source.
91
+ PramanaSutra release-check: 6 file(s), 1 test file(s), 0 finding(s). Gate: READY_FOR_HUMAN_APPROVAL. Tests executed by this tool: NO. Evidence: passing.
92
+ exit=0
93
+ ```
94
+
95
+ **The lesson.** The first answer was `REVIEW_REQUIRED` for a project that really was fine. That is the design. Being right without proof does not count.
96
+
97
+ > **Important:** `READY_FOR_HUMAN_APPROVAL` is not a deploy order. The gate always records `requiresHumanApproval: true` and `automatedDeploymentAuthorized: false`.
98
+
99
+ ## Story 3: the pull-request gate
100
+
101
+ **The situation.** Your team wants every pull request to prove its tests ran before a person reviews it.
102
+
103
+ ![A pull request through tests, evidence, the gate and a human decision to release](diagrams/ci-pipeline.svg)
104
+
105
+ This repository does exactly that. The `CI` workflow runs the real tests on Ubuntu and Windows with Node 20, 22 and 24. Then `scripts/ci-gate.mjs` reads the real test output, writes an evidence file, and runs `release-check` on the repository.
106
+
107
+ ```yaml
108
+ - run: npm test
109
+ - name: Release gate on this repo, using the test run as evidence
110
+ run: node scripts/ci-gate.mjs
111
+ ```
112
+
113
+ On the latest run all six jobs passed. A red step means the process stopped there: exit 2 is a blocker, exit 3 is missing evidence. A person reads `report.html` and decides.
114
+
115
+ > **Tip:** Upload the `pramanasutra-reports` folder as a CI artifact so reviewers can open the HTML report from the pull request.
116
+
117
+ Read [CI and release](12-ci-and-release.md) for the full workflow and for why macOS is not on the required matrix.
118
+
119
+ ## Story 4: skipped tests pile up
120
+
121
+ **The situation.** A polyglot repository has Python, Java and Go tests. Over the years people added skips "just for now".
122
+
123
+ ```bash
124
+ npx pramanasutra release-check --path fixtures/multi-language
125
+ ```
126
+
127
+ ```text
128
+ PramanaSutra release-check: 3 file(s), 3 test file(s), 5 finding(s). Gate: REVIEW_REQUIRED. Tests executed by this tool: NO. Evidence: absent.
129
+ exit=3
130
+ ```
131
+
132
+ Three of the five findings are skips, with exact locations:
133
+
134
+ | Rule | Where | What it saw |
135
+ |---|---|---|
136
+ | `SKIPPED_TEST` | `tests/test_api.py:3` | `@pytest.mark.skip(...)` |
137
+ | `SKIPPED_TEST` | `src/UserServiceTest.java:2` | `@Disabled` |
138
+ | `SKIPPED_TEST` | `pkg/b_test.go:3` | `t.Skip("later")` |
139
+
140
+ The other two are `NO_CI` and `NO_LICENSE`. By default skips only ask for review. If your team wants skips to stop a release, use the strict policy:
141
+
142
+ ```bash
143
+ npx pramanasutra release-check --path fixtures/multi-language --policy policies/strict.json
144
+ ```
145
+
146
+ ```text
147
+ PramanaSutra release-check: 3 file(s), 3 test file(s), 5 finding(s). Gate: NO_GO. Tests executed by this tool: NO. Evidence: absent.
148
+ exit=2
149
+ ```
150
+
151
+ ![The five rules, their severity and their effect on the gate](diagrams/rules-overview.svg)
152
+
153
+ ## Story 5: the pasted "passing" JSON
154
+
155
+ **The situation.** Someone pastes a JSON file that says the tests passed. How much should you trust it?
156
+
157
+ The tool cannot prove the tests ran. It can refuse to over-trust. It gives the evidence a state and a binding label.
158
+
159
+ ![Five evidence states and the gate effect of each](diagrams/evidence-states.svg)
160
+
161
+ Two real examples against the same clean project:
162
+
163
+ ```bash
164
+ # failures reported: exit code 1, 2 failed
165
+ npx pramanasutra release-check --path fixtures/clean-project --evidence fail.json
166
+ ```
167
+
168
+ ```text
169
+ Gate: NO_GO. Evidence: failing.
170
+ exit=2
171
+ ```
172
+
173
+ ```bash
174
+ # a file that admits its source is unverified
175
+ npx pramanasutra release-check --path fixtures/clean-project --evidence unverified.json
176
+ ```
177
+
178
+ ```text
179
+ Gate: REVIEW_REQUIRED. Evidence: unverified.
180
+ exit=3
181
+ ```
182
+
183
+ ![The three evidence binding labels and why none is a signature](diagrams/evidence-binding.svg)
184
+
185
+ The report also states a binding: `none`, `unbound` or `ci-environment`. A `ci-environment` file names a repository, commit, run id and workflow. That is more context, **not a signature**. A person can still type it by hand.
186
+
187
+ ## Story 6: a legacy service with no tests
188
+
189
+ **The situation.** You inherit a service. Nobody can say whether it has tests.
190
+
191
+ ```bash
192
+ npx pramanasutra release-check --path fixtures/missing-tests
193
+ ```
194
+
195
+ ```text
196
+ PramanaSutra release-check: 4 file(s), 0 test file(s), 1 finding(s). Gate: REVIEW_REQUIRED. Tests executed by this tool: NO. Evidence: absent.
197
+ exit=3
198
+ ```
199
+
200
+ The finding is `NO_TESTS`. It means *no file matched the known test naming conventions*. It does not mean the service has no tests. Some ecosystems keep tests beside the code with no naming pattern. The rule catalog explains the conventions that are recognised. Read [Rule catalog](07-rule-catalog.md) before you act on this finding.
201
+
202
+ **What good looks like.** You open `report.html`, see one finding with an explanation, and learn exactly what was and was not checked. The report never says "no risk".
203
+
204
+ ## Story 7: a repository with hostile file names
205
+
206
+ **The situation.** You review an unfamiliar repository. File names contain spaces, `&`, `$`, quotes and Unicode. Some tools break. Some reports become a way to inject HTML.
207
+
208
+ ```bash
209
+ npx pramanasutra release-check --path fixtures/unsafe-names
210
+ ```
211
+
212
+ ```text
213
+ PramanaSutra release-check: 5 file(s), 2 test file(s), 1 finding(s). Gate: NO_GO. Tests executed by this tool: NO. Evidence: absent.
214
+ exit=2
215
+ ```
216
+
217
+ ![Trust boundaries: untrusted project text enters a trusted read-only engine, and reports escape every value](diagrams/trust-boundaries.svg)
218
+
219
+ The scanner never runs the project and never follows symbolic links. Every name that reaches `report.html` or `report.md` is escaped. A committed test proves a name that looks like HTML cannot become markup.
220
+
221
+ ## Story 8: teaching your AI IDE the method
222
+
223
+ **The situation.** You use Cursor, Claude Code, Codex, Copilot or Gemini CLI and want the assistant to follow the same evidence-first method.
224
+
225
+ ```bash
226
+ npx pramanasutra init --ide cursor --target .
227
+ ```
228
+
229
+ ```text
230
+ Installed 17 skill directories into .cursor/skills. No AI model called.
231
+ ```
232
+
233
+ Then ask:
234
+
235
+ > PramanaSutra Prime: assess this repository's test quality and release readiness. Stay read-only, cite file and line, separate observed facts from executed results, and ask before running any tests.
236
+
237
+ ![The 17 skills grouped by job around PramanaSutra Prime](diagrams/skills-team.svg)
238
+
239
+ **What to expect.** The skill is instructions. Your IDE's own model reads them and follows them. The installer only copies files. Nobody has yet published a smoke test showing a host loaded a skill and obeyed it. The [roadmap](13-roadmap-and-status.md) lists that as not proven.
240
+
241
+ ## Pick your story
242
+
243
+ ![Decision guide: which of the eight stories matches what you are trying to do](diagrams/scenario-picker.svg)
244
+
245
+ Read it as a list too: hidden problem, stories 1, 4 and 6. A claim, stories 2 and 5. Pull requests, story 3. AI assistant, story 8.
246
+
247
+ ## What none of the stories claim
248
+
249
+ - The tool did not run any test in any story.
250
+ - A clean result is not proof the code is correct.
251
+ - A ready result is not a release. A person decides.
252
+ - Fixture results are a regression check written by the rule author, not field accuracy.
@@ -1,11 +1,11 @@
1
- # PramanaSutra AI documents
2
-
3
- This folder is the canonical documentation pack for the repository.
4
-
5
- - Markdown sources: the numbered files in this directory. Read [Start here](00-start-here.md).
6
- - HTML, same content, for a browser: [html/index.html](html/index.html).
7
- - Audit of this repository, Markdown and HTML: [audit/report.md](audit/report.md) and [audit/report.html](audit/report.html).
8
- - Sample audits: [samples](samples).
9
- - Captured test output: [proof/test-results.txt](proof/test-results.txt).
10
-
11
- The public site [shahvatsalofficial.github.io/pramanasutra-ai](https://shahvatsalofficial.github.io/pramanasutra-ai/) is a copy of `html/`, published from `docs/` by GitHub Pages. Regenerate both with `node scripts/build-docs.mjs` after editing the Markdown.
1
+ # PramanaSutra AI documents
2
+
3
+ This folder is the canonical documentation pack for the repository.
4
+
5
+ - Markdown sources: the numbered files in this directory. Read [Start here](00-start-here.md).
6
+ - HTML, same content, for a browser: [html/index.html](html/index.html).
7
+ - Audit of this repository, Markdown and HTML: [audit/report.md](audit/report.md) and [audit/report.html](audit/report.html).
8
+ - Sample audits: [samples](samples).
9
+ - Captured test output: [proof/test-results.txt](proof/test-results.txt).
10
+
11
+ The public site [shahvatsalofficial.github.io/pramanasutra-ai](https://shahvatsalofficial.github.io/pramanasutra-ai/) is a copy of `html/`, published from `docs/` by GitHub Pages. Regenerate both with `node scripts/build-docs.mjs` after editing the Markdown.
@@ -14,9 +14,9 @@ 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, JSON and SARIF are the same audit</p><h1>PramanaSutra-AI</h1><p class="muted">Generated 2026-11-06T00:00:00.000Z &middot; schema 1.0.0 &middot; tool 0.3.4</p>
17
+ <p class="muted">PramanaSutra AI &middot; QA &amp; Release Audit &middot; Markdown, HTML, JSON and SARIF are the same audit</p><h1>PramanaSutra-AI</h1><p class="muted">Generated 2026-11-06T00:00:00.000Z &middot; schema 1.0.0 &middot; tool 0.3.6</p>
18
18
  <section class="card banner READY_FOR_HUMAN_APPROVAL" role="status"><p class="muted" style="margin:0">Release decision</p><p style="margin:.35rem 0"><span class="pill READY_FOR_HUMAN_APPROVAL">READY_FOR_HUMAN_APPROVAL</span></p><p style="margin:.4rem 0 0">All policy checks passed. A human must still approve; this is never a deploy order.</p><p class="muted" style="margin:.35rem 0 0">Policy: recommended &middot; Supplied test evidence: passing</p></section>
19
- <section class="grid" aria-label="Summary"><div class="stat card"><b>320</b><span>files inspected</span></div><div class="stat card"><b>1</b><span>test files</span></div><div class="stat card"><b>3</b><span>CI workflows</span></div><div class="stat card"><b>0</b><span>findings</span></div><div class="stat card"><b>0</b><span>critical + high</span></div></section>
19
+ <section class="grid" aria-label="Summary"><div class="stat card"><b>369</b><span>files inspected</span></div><div class="stat card"><b>1</b><span>test files</span></div><div class="stat card"><b>3</b><span>CI workflows</span></div><div class="stat card"><b>0</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
21
  <h2>Supplied test evidence</h2><div class="card"><p>These numbers come from the evidence file the operator supplied. PramanaSutra did not run that command.</p><table><tbody>
22
22
  <tr><th scope="row">Source</th><td><code>local-executed</code></td></tr>
@@ -38,4 +38,4 @@ code{font-family:ui-monospace,Consolas,monospace;background:var(--bg);padding:.0
38
38
  <h2>Release gate reasons</h2><div class="card"><ul><li>All policy checks satisfied by supplied evidence and static inspection. A human must still approve and deploy.</li></ul></div>
39
39
  <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>evidence-supplied</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>
40
40
  <h2>Limitations</h2><div class="card"><ul><li>Excluded 2 path(s) listed in .pramanasutraignore. Excluded content was not inspected.</li><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>
41
- <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>
41
+ <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.4",
4
+ "toolVersion": "0.3.6",
5
5
  "generatedAt": "2026-11-06T00:00:00.000Z",
6
6
  "scannedPath": "PramanaSutra-AI",
7
7
  "capabilities": {
@@ -13,7 +13,7 @@
13
13
  "aiInference": "not-run"
14
14
  },
15
15
  "inventory": {
16
- "fileCount": 320,
16
+ "fileCount": 369,
17
17
  "testFiles": [
18
18
  "tests/cli.test.mjs"
19
19
  ],
@@ -6,7 +6,7 @@ This audit is four files with the same facts: **report.md** (this file), **repor
6
6
  |---|---|
7
7
  | Project | `PramanaSutra-AI` |
8
8
  | Generated | 2026-11-06T00:00:00.000Z |
9
- | Tool | PramanaSutra AI 0.3.4 (schema 1.0.0) |
9
+ | Tool | PramanaSutra AI 0.3.6 (schema 1.0.0) |
10
10
  | **Release decision** | **READY_FOR_HUMAN_APPROVAL** |
11
11
  | Policy | recommended |
12
12
  | Supplied test evidence | passing |
@@ -15,7 +15,7 @@ This audit is four files with the same facts: **report.md** (this file), **repor
15
15
 
16
16
  ## Summary
17
17
 
18
- - Files inspected: 320
18
+ - Files inspected: 369
19
19
  - Test files detected: 1
20
20
  - CI workflows detected: 3
21
21
  - Manifests detected: 1
@@ -80,4 +80,4 @@ None.
80
80
  - This report is decision support, not a compliance certification or legal advice.
81
81
 
82
82
  ---
83
- *Created by Vatsal Shah. Generated locally; nothing was sent over the network. Same audit: report.html, report.json and report.sarif.json.*
83
+ *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.*
@@ -5,7 +5,7 @@
5
5
  "tool": {
6
6
  "driver": {
7
7
  "name": "PramanaSutra AI",
8
- "version": "0.3.4",
8
+ "version": "0.3.6",
9
9
  "informationUri": "https://github.com/shahvatsalofficial/pramanasutra-ai",
10
10
  "rules": []
11
11
  }
@@ -0,0 +1,21 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 340" width="960" height="340" role="img" aria-labelledby="t d" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif">
2
+ <title id="t">A pull request through CI to a human decision</title><desc id="d">A pull request runs the tests on Ubuntu and Windows across Node 20, 22 and 24. A real evidence file is written from the test output, release-check runs, reports are kept, and a person reviews before release.</desc>
3
+ <defs><marker id="ah" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M0 0 L10 5 L0 10 z" fill="#5e584e"/></marker></defs>
4
+ <rect x="1" y="1" width="958" height="338" rx="16" fill="#fffdf8" stroke="#cfc6b4" stroke-width="2"/>
5
+ <rect x="20" y="40" width="205" height="100" rx="12" fill="#efeae0" stroke="#cfc6b4" stroke-width="1.6"/><text x="122.5" y="86.025" font-size="16" font-weight="700" fill="#1c1915" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="122.5" dy="0">1 Pull request</tspan></text><text x="122.5" y="106.825" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="122.5" dy="0">code and tests change</tspan></text>
6
+ <rect x="262" y="40" width="205" height="100" rx="12" fill="#dbeafe" stroke="#1e40af" stroke-width="1.6"/><text x="364.5" y="77.25" font-size="16" font-weight="700" fill="#1e40af" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="364.5" dy="0">2 Real tests run</tspan></text><text x="364.5" y="98.05" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="364.5" dy="0">Ubuntu and Windows</tspan><tspan x="364.5" dy="17.6">Node 20, 22, 24</tspan></text>
7
+ <rect x="504" y="40" width="205" height="100" rx="12" fill="#dbeafe" stroke="#1e40af" stroke-width="1.6"/><text x="606.5" y="77.25" font-size="16" font-weight="700" fill="#1e40af" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="606.5" dy="0">3 Evidence written</tspan></text><text x="606.5" y="98.05" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="606.5" dy="0">from the real output</tspan><tspan x="606.5" dy="17.6">scripts/ci-gate.mjs</tspan></text>
8
+ <rect x="746" y="40" width="195" height="100" rx="12" fill="#dff0ee" stroke="#0b5f63" stroke-width="1.6"/><text x="843.5" y="77.25" font-size="16" font-weight="700" fill="#0f3d3e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="843.5" dy="0">4 release-check</tspan></text><text x="843.5" y="98.05" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="843.5" dy="0">scan + gate</tspan><tspan x="843.5" dy="17.6">exit 0, 2 or 3</tspan></text>
9
+ <polyline points="225,90 262,90" fill="none" stroke="#5e584e" stroke-width="2" marker-end="url(#ah)"/>
10
+ <polyline points="467,90 504,90" fill="none" stroke="#5e584e" stroke-width="2" marker-end="url(#ah)"/>
11
+ <polyline points="709,90 746,90" fill="none" stroke="#5e584e" stroke-width="2" marker-end="url(#ah)"/>
12
+ <polyline points="843,140 843,175 122,175 122,210" fill="none" stroke="#5e584e" stroke-width="2" marker-end="url(#ah)"/>
13
+ <rect x="20" y="210" width="205" height="100" rx="12" fill="#efeae0" stroke="#cfc6b4" stroke-width="1.6"/><text x="122.5" y="247.25" font-size="16" font-weight="700" fill="#1c1915" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="122.5" dy="0">5 Reports kept</tspan></text><text x="122.5" y="268.05" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="122.5" dy="0">md, html, json, sarif</tspan><tspan x="122.5" dy="17.6">as CI artifacts</tspan></text>
14
+ <rect x="262" y="210" width="205" height="100" rx="12" fill="#dcfce7" stroke="#166534" stroke-width="1.6"/><text x="364.5" y="247.25" font-size="16" font-weight="700" fill="#166534" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="364.5" dy="0">6 Human review</tspan></text><text x="364.5" y="268.05" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="364.5" dy="0">read report.html</tspan><tspan x="364.5" dy="17.6">decide</tspan></text>
15
+ <rect x="504" y="210" width="205" height="100" rx="12" fill="#dcfce7" stroke="#166534" stroke-width="1.6"/><text x="606.5" y="256.025" font-size="16" font-weight="700" fill="#166534" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="606.5" dy="0">7 Merge or release</tspan></text><text x="606.5" y="276.825" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="606.5" dy="0">a person clicks it</tspan></text>
16
+ <rect x="746" y="210" width="195" height="100" rx="12" fill="#efeae0" stroke="#cfc6b4" stroke-width="1.6"/><text x="843.5" y="247.25" font-size="16" font-weight="700" fill="#1c1915" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="843.5" dy="0">8 Publish</tspan></text><text x="843.5" y="268.05" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="843.5" dy="0">npm, GitHub release</tspan><tspan x="843.5" dy="17.6">after a person says go</tspan></text>
17
+ <polyline points="225,260 262,260" fill="none" stroke="#5e584e" stroke-width="2" marker-end="url(#ah)"/>
18
+ <polyline points="467,260 504,260" fill="none" stroke="#5e584e" stroke-width="2" marker-end="url(#ah)"/>
19
+ <polyline points="709,260 746,260" fill="none" stroke="#5e584e" stroke-width="2" marker-end="url(#ah)"/>
20
+ <text x="480" y="330" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="480" dy="0">A red step 4 (exit 2 or 3) stops here. Nothing is released by the tool.</tspan></text>
21
+ </svg>
@@ -0,0 +1,19 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 430" width="960" height="430" role="img" aria-labelledby="t d" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif">
2
+ <title id="t">Inside the CLI</title><desc id="d">The bin file parses arguments and sets the exit code. It calls the scanner, the evidence and policy loaders and the report writer, and the installer copies skills into IDE folders.</desc>
3
+ <defs><marker id="ah" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M0 0 L10 5 L0 10 z" fill="#5e584e"/></marker></defs>
4
+ <rect x="1" y="1" width="958" height="428" rx="16" fill="#fffdf8" stroke="#cfc6b4" stroke-width="2"/>
5
+ <rect x="280" y="20" width="400" height="70" rx="12" fill="#dff0ee" stroke="#0b5f63" stroke-width="1.6"/><text x="480" y="51.025000000000006" font-size="16" font-weight="700" fill="#0f3d3e" text-anchor="middle" font-family="ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace"><tspan x="480" dy="0">bin/pramanasutra.mjs</tspan></text><text x="480" y="71.825" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="480" dy="0">parse arguments, dispatch, exit code</tspan></text>
6
+ <rect x="20" y="170" width="160" height="110" rx="12" fill="#dbeafe" stroke="#1e40af" stroke-width="1.6"/><text x="100" y="211.8" font-size="14.5" font-weight="700" fill="#1e40af" text-anchor="middle" font-family="ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace"><tspan x="100" dy="0">scanner.mjs</tspan></text><text x="100" y="230.65" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="100" dy="0">walk files, 5 rules</tspan><tspan x="100" dy="17.6">evaluateGate</tspan></text>
7
+ <polyline points="480,90 480,130 100,130 100,170" fill="none" stroke="#5e584e" stroke-width="2" marker-end="url(#ah)"/>
8
+ <rect x="210" y="170" width="160" height="110" rx="12" fill="#dbeafe" stroke="#1e40af" stroke-width="1.6"/><text x="290" y="211.8" font-size="14.5" font-weight="700" fill="#1e40af" text-anchor="middle" font-family="ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace"><tspan x="290" dy="0">evidence.mjs</tspan></text><text x="290" y="230.65" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="290" dy="0">validate JSON</tspan><tspan x="290" dy="17.6">classify state</tspan></text>
9
+ <polyline points="480,90 480,130 290,130 290,170" fill="none" stroke="#5e584e" stroke-width="2" marker-end="url(#ah)"/>
10
+ <rect x="400" y="170" width="160" height="110" rx="12" fill="#dbeafe" stroke="#1e40af" stroke-width="1.6"/><text x="480" y="211.8" font-size="14.5" font-weight="700" fill="#1e40af" text-anchor="middle" font-family="ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace"><tspan x="480" dy="0">policy.mjs</tspan></text><text x="480" y="230.65" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="480" dy="0">fail-closed load</tspan><tspan x="480" dy="17.6">unknown key = error</tspan></text>
11
+ <polyline points="480,90 480,130 480,130 480,170" fill="none" stroke="#5e584e" stroke-width="2" marker-end="url(#ah)"/>
12
+ <rect x="590" y="170" width="160" height="110" rx="12" fill="#dcfce7" stroke="#166534" stroke-width="1.6"/><text x="670" y="211.8" font-size="14.5" font-weight="700" fill="#166534" text-anchor="middle" font-family="ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace"><tspan x="670" dy="0">report.mjs</tspan></text><text x="670" y="230.65" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="670" dy="0">md, html</tspan><tspan x="670" dy="17.6">json, sarif</tspan></text>
13
+ <polyline points="480,90 480,130 670,130 670,170" fill="none" stroke="#5e584e" stroke-width="2" marker-end="url(#ah)"/>
14
+ <rect x="780" y="170" width="160" height="110" rx="12" fill="#efeae0" stroke="#cfc6b4" stroke-width="1.6"/><text x="860" y="211.8" font-size="14.5" font-weight="700" fill="#1c1915" text-anchor="middle" font-family="ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace"><tspan x="860" dy="0">installer.mjs</tspan></text><text x="860" y="230.65" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="860" dy="0">copy 17 skills</tspan><tspan x="860" dy="17.6">refuse overwrite</tspan></text>
15
+ <polyline points="480,90 480,130 860,130 860,170" fill="none" stroke="#5e584e" stroke-width="2" marker-end="url(#ah)"/>
16
+ <rect x="20" y="330" width="700" height="80" rx="12" fill="#ffffff" stroke="#cfc6b4" stroke-width="1.6"/><text x="370" y="365.575" font-size="14.5" font-weight="700" fill="#1c1915" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="370" dy="0">Zero runtime dependencies. Node standard library only. No network.</tspan></text><text x="370" y="384.425" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="370" dy="0">Runs git diff --name-only (read-only) only when you pass --changed</tspan></text>
17
+ <rect x="740" y="330" width="200" height="80" rx="12" fill="#efeae0" stroke="#cfc6b4" stroke-width="1.6"/><text x="840" y="365.575" font-size="14.5" font-weight="700" fill="#1c1915" text-anchor="middle" font-family="ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace"><tspan x="840" dy="0">.agents/skills</tspan></text><text x="840" y="384.425" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="840" dy="0">17 SKILL.md sources</tspan></text>
18
+ <polyline points="860,330 860,280" fill="none" stroke="#5e584e" stroke-width="2" marker-end="url(#ah)"/>
19
+ </svg>
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 300" width="960" height="300" role="img" aria-labelledby="t d" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif">
2
+ <title id="t">Evidence binding: three honest labels</title><desc id="d">Binding is none when no evidence file is given, unbound when the file names no GitHub run, and ci-environment when it names a repository, commit, run id and workflow. None of these is a signature.</desc>
3
+ <defs><marker id="ah" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M0 0 L10 5 L0 10 z" fill="#5e584e"/></marker></defs>
4
+ <rect x="1" y="1" width="958" height="298" rx="16" fill="#fffdf8" stroke="#cfc6b4" stroke-width="2"/>
5
+ <rect x="20" y="40" width="280" height="150" rx="12" fill="#efeae0" stroke="#cfc6b4" stroke-width="1.6"/><text x="160" y="103.45" font-size="20" font-weight="700" fill="#1c1915" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="160" dy="0">none</tspan></text><text x="160" y="129.45" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="160" dy="0">no evidence file</tspan><tspan x="160" dy="17.6">nothing to bind</tspan></text>
6
+ <rect x="340" y="40" width="280" height="150" rx="12" fill="#fef3c7" stroke="#92400e" stroke-width="1.6"/><text x="480" y="103.45" font-size="20" font-weight="700" fill="#92400e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="480" dy="0">unbound</tspan></text><text x="480" y="129.45" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="480" dy="0">a file, but no GitHub identity</tspan><tspan x="480" dy="17.6">anyone could have typed it</tspan></text>
7
+ <rect x="660" y="40" width="280" height="150" rx="12" fill="#dbeafe" stroke="#1e40af" stroke-width="1.6"/><text x="800" y="103.45" font-size="20" font-weight="700" fill="#1e40af" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="800" dy="0">ci-environment</tspan></text><text x="800" y="129.45" font-size="13" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="800" dy="0">repository, commit, run id</tspan><tspan x="800" dy="17.6">and workflow are named</tspan></text>
8
+ <polyline points="300,115 340,115" fill="none" stroke="#5e584e" stroke-width="2" marker-end="url(#ah)"/>
9
+ <polyline points="620,115 660,115" fill="none" stroke="#5e584e" stroke-width="2" marker-end="url(#ah)"/>
10
+ <text x="480" y="225" font-size="14" font-weight="700" fill="#1c1915" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="480" dy="0">More claims as you move right.</tspan></text>
11
+ <text x="480" y="252" font-size="13.5" font-weight="400" fill="#5e584e" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"><tspan x="480" dy="0">No label is a cryptographic signature. A person can still hand-write a ci-environment file.</tspan></text>
12
+ </svg>