pramanasutra 0.0.0-stage → 0.3.4

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 (274) hide show
  1. package/.agents/skills/pramanasutra-access/SKILL.md +21 -0
  2. package/.agents/skills/pramanasutra-api/SKILL.md +21 -0
  3. package/.agents/skills/pramanasutra-data/SKILL.md +21 -0
  4. package/.agents/skills/pramanasutra-defect/SKILL.md +21 -0
  5. package/.agents/skills/pramanasutra-evidence/SKILL.md +21 -0
  6. package/.agents/skills/pramanasutra-flake/SKILL.md +21 -0
  7. package/.agents/skills/pramanasutra-flow/SKILL.md +21 -0
  8. package/.agents/skills/pramanasutra-load/SKILL.md +21 -0
  9. package/.agents/skills/pramanasutra-pipeline/SKILL.md +21 -0
  10. package/.agents/skills/pramanasutra-prime/SKILL.md +22 -0
  11. package/.agents/skills/pramanasutra-regression/SKILL.md +21 -0
  12. package/.agents/skills/pramanasutra-release/SKILL.md +21 -0
  13. package/.agents/skills/pramanasutra-secure/SKILL.md +21 -0
  14. package/.agents/skills/pramanasutra-strategy/SKILL.md +21 -0
  15. package/.agents/skills/pramanasutra-unit/SKILL.md +21 -0
  16. package/.agents/skills/pramanasutra-verify/SKILL.md +21 -0
  17. package/.agents/skills/pramanasutra-visual/SKILL.md +21 -0
  18. package/.claude/agents/pramanasutra-prime.md +7 -0
  19. package/CHANGELOG.md +80 -0
  20. package/LICENSE +201 -0
  21. package/NOTICE +2 -0
  22. package/README.md +141 -2
  23. package/docs/.nojekyll +0 -0
  24. package/docs/00-start-here.html +207 -0
  25. package/docs/01-executive-summary.html +205 -0
  26. package/docs/02-functional-specification.html +212 -0
  27. package/docs/03-architecture.html +246 -0
  28. package/docs/04-technical-reference.html +217 -0
  29. package/docs/05-user-guide.html +246 -0
  30. package/docs/06-cli-and-reports.html +213 -0
  31. package/docs/07-rule-catalog.html +207 -0
  32. package/docs/08-skills-and-agents.html +204 -0
  33. package/docs/09-security-and-privacy.html +205 -0
  34. package/docs/10-legal-and-compliance.html +216 -0
  35. package/docs/11-testing-and-proof.html +210 -0
  36. package/docs/12-ci-and-release.html +221 -0
  37. package/docs/13-roadmap-and-status.html +199 -0
  38. package/docs/14-faq-and-glossary.html +217 -0
  39. package/docs/15-maintainer-guide.html +213 -0
  40. package/docs/agent-catalog.md +3 -0
  41. package/docs/api.md +3 -0
  42. package/docs/architecture.md +15 -0
  43. package/docs/assets/favicon.svg +1 -0
  44. package/docs/assets/site.css +183 -0
  45. package/docs/assets/site.js +79 -0
  46. package/docs/audit/report.html +41 -0
  47. package/docs/audit/report.json +61 -0
  48. package/docs/audit/report.md +83 -0
  49. package/docs/audit/report.sarif.json +16 -0
  50. package/docs/commands.md +13 -0
  51. package/docs/compatibility.md +15 -0
  52. package/docs/configuration.md +3 -0
  53. package/docs/execution-safety.md +3 -0
  54. package/docs/handbook/01-executive-summary.html +1 -0
  55. package/docs/handbook/01-executive-summary.md +51 -0
  56. package/docs/handbook/02-functional-specification.html +1 -0
  57. package/docs/handbook/02-functional-specification.md +69 -0
  58. package/docs/handbook/03-technical-specification.html +1 -0
  59. package/docs/handbook/03-technical-specification.md +85 -0
  60. package/docs/handbook/04-architecture.html +1 -0
  61. package/docs/handbook/04-architecture.md +107 -0
  62. package/docs/handbook/05-user-guide.html +1 -0
  63. package/docs/handbook/05-user-guide.md +118 -0
  64. package/docs/handbook/06-cli-reference.html +1 -0
  65. package/docs/handbook/06-cli-reference.md +88 -0
  66. package/docs/handbook/07-security-privacy-legal.html +1 -0
  67. package/docs/handbook/07-security-privacy-legal.md +65 -0
  68. package/docs/handbook/08-testing-and-proof.html +1 -0
  69. package/docs/handbook/08-testing-and-proof.md +83 -0
  70. package/docs/handbook/09-compatibility-and-roadmap.html +1 -0
  71. package/docs/handbook/09-compatibility-and-roadmap.md +53 -0
  72. package/docs/handbook/10-contributor-guide.html +1 -0
  73. package/docs/handbook/10-contributor-guide.md +64 -0
  74. package/docs/handbook/11-glossary-and-faq.html +1 -0
  75. package/docs/handbook/11-glossary-and-faq.md +52 -0
  76. package/docs/handbook/12-rule-catalog.html +1 -0
  77. package/docs/handbook/12-rule-catalog.md +65 -0
  78. package/docs/handbook/README.md +40 -0
  79. package/docs/handbook/index.html +1 -0
  80. package/docs/index.html +213 -0
  81. package/docs/legal/trademark-and-name-clearance.html +1 -0
  82. package/docs/legal/trademark-and-name-clearance.md +32 -0
  83. package/docs/master-claude-prompt.md +483 -0
  84. package/docs/proof/eval-results.json +91 -0
  85. package/docs/proof/test-results.txt +56 -0
  86. package/docs/quality-gates.md +10 -0
  87. package/docs/report-schema.md +22 -0
  88. package/docs/roadmap.md +3 -0
  89. package/docs/robots.txt +22 -0
  90. package/docs/samples/clean-project/report.html +30 -0
  91. package/docs/samples/clean-project/report.json +46 -0
  92. package/docs/samples/clean-project/report.md +69 -0
  93. package/docs/samples/clean-project/report.sarif.json +16 -0
  94. package/docs/samples/focused-test/report.html +30 -0
  95. package/docs/samples/focused-test/report.json +61 -0
  96. package/docs/samples/focused-test/report.md +76 -0
  97. package/docs/samples/focused-test/report.sarif.json +43 -0
  98. package/docs/samples/missing-ci/report.html +30 -0
  99. package/docs/samples/missing-ci/report.json +60 -0
  100. package/docs/samples/missing-ci/report.md +77 -0
  101. package/docs/samples/missing-ci/report.sarif.json +40 -0
  102. package/docs/samples/missing-tests/report.html +30 -0
  103. package/docs/samples/missing-tests/report.json +60 -0
  104. package/docs/samples/missing-tests/report.md +77 -0
  105. package/docs/samples/missing-tests/report.sarif.json +40 -0
  106. package/docs/samples/multi-language/report.html +34 -0
  107. package/docs/samples/multi-language/report.json +117 -0
  108. package/docs/samples/multi-language/report.md +112 -0
  109. package/docs/samples/multi-language/report.sarif.json +125 -0
  110. package/docs/samples/unsafe-names/report.html +30 -0
  111. package/docs/samples/unsafe-names/report.json +62 -0
  112. package/docs/samples/unsafe-names/report.md +77 -0
  113. package/docs/samples/unsafe-names/report.sarif.json +43 -0
  114. package/docs/server-deployment.md +3 -0
  115. package/docs/sitemap.xml +20 -0
  116. package/docs/standards.md +12 -0
  117. package/docs/status.md +22 -0
  118. package/docs/troubleshooting.md +7 -0
  119. package/docs/trust-model.md +3 -0
  120. package/documents/pramanasutra/00-start-here.md +82 -0
  121. package/documents/pramanasutra/01-executive-summary.md +61 -0
  122. package/documents/pramanasutra/02-functional-specification.md +90 -0
  123. package/documents/pramanasutra/03-architecture.md +102 -0
  124. package/documents/pramanasutra/04-technical-reference.md +123 -0
  125. package/documents/pramanasutra/05-user-guide.md +155 -0
  126. package/documents/pramanasutra/06-cli-and-reports.md +79 -0
  127. package/documents/pramanasutra/07-rule-catalog.md +79 -0
  128. package/documents/pramanasutra/08-skills-and-agents.md +68 -0
  129. package/documents/pramanasutra/09-security-and-privacy.md +73 -0
  130. package/documents/pramanasutra/10-legal-and-compliance.md +72 -0
  131. package/documents/pramanasutra/11-testing-and-proof.md +72 -0
  132. package/documents/pramanasutra/12-ci-and-release.md +89 -0
  133. package/documents/pramanasutra/13-roadmap-and-status.md +73 -0
  134. package/documents/pramanasutra/14-faq-and-glossary.md +81 -0
  135. package/documents/pramanasutra/15-maintainer-guide.md +81 -0
  136. package/documents/pramanasutra/README.md +11 -0
  137. package/documents/pramanasutra/audit/report.html +41 -0
  138. package/documents/pramanasutra/audit/report.json +61 -0
  139. package/documents/pramanasutra/audit/report.md +83 -0
  140. package/documents/pramanasutra/audit/report.sarif.json +16 -0
  141. package/documents/pramanasutra/html/00-start-here.html +207 -0
  142. package/documents/pramanasutra/html/01-executive-summary.html +205 -0
  143. package/documents/pramanasutra/html/02-functional-specification.html +212 -0
  144. package/documents/pramanasutra/html/03-architecture.html +246 -0
  145. package/documents/pramanasutra/html/04-technical-reference.html +217 -0
  146. package/documents/pramanasutra/html/05-user-guide.html +246 -0
  147. package/documents/pramanasutra/html/06-cli-and-reports.html +213 -0
  148. package/documents/pramanasutra/html/07-rule-catalog.html +207 -0
  149. package/documents/pramanasutra/html/08-skills-and-agents.html +204 -0
  150. package/documents/pramanasutra/html/09-security-and-privacy.html +205 -0
  151. package/documents/pramanasutra/html/10-legal-and-compliance.html +216 -0
  152. package/documents/pramanasutra/html/11-testing-and-proof.html +210 -0
  153. package/documents/pramanasutra/html/12-ci-and-release.html +221 -0
  154. package/documents/pramanasutra/html/13-roadmap-and-status.html +199 -0
  155. package/documents/pramanasutra/html/14-faq-and-glossary.html +217 -0
  156. package/documents/pramanasutra/html/15-maintainer-guide.html +213 -0
  157. package/documents/pramanasutra/html/audit/report.html +41 -0
  158. package/documents/pramanasutra/html/audit/report.json +61 -0
  159. package/documents/pramanasutra/html/audit/report.md +83 -0
  160. package/documents/pramanasutra/html/audit/report.sarif.json +16 -0
  161. package/documents/pramanasutra/html/index.html +213 -0
  162. package/documents/pramanasutra/html/proof/eval-results.json +91 -0
  163. package/documents/pramanasutra/html/proof/test-results.txt +56 -0
  164. package/documents/pramanasutra/html/robots.txt +22 -0
  165. package/documents/pramanasutra/html/samples/clean-project/report.html +30 -0
  166. package/documents/pramanasutra/html/samples/clean-project/report.json +46 -0
  167. package/documents/pramanasutra/html/samples/clean-project/report.md +69 -0
  168. package/documents/pramanasutra/html/samples/clean-project/report.sarif.json +16 -0
  169. package/documents/pramanasutra/html/samples/focused-test/report.html +30 -0
  170. package/documents/pramanasutra/html/samples/focused-test/report.json +61 -0
  171. package/documents/pramanasutra/html/samples/focused-test/report.md +76 -0
  172. package/documents/pramanasutra/html/samples/focused-test/report.sarif.json +43 -0
  173. package/documents/pramanasutra/html/samples/missing-ci/report.html +30 -0
  174. package/documents/pramanasutra/html/samples/missing-ci/report.json +60 -0
  175. package/documents/pramanasutra/html/samples/missing-ci/report.md +77 -0
  176. package/documents/pramanasutra/html/samples/missing-ci/report.sarif.json +40 -0
  177. package/documents/pramanasutra/html/samples/missing-tests/report.html +30 -0
  178. package/documents/pramanasutra/html/samples/missing-tests/report.json +60 -0
  179. package/documents/pramanasutra/html/samples/missing-tests/report.md +77 -0
  180. package/documents/pramanasutra/html/samples/missing-tests/report.sarif.json +40 -0
  181. package/documents/pramanasutra/html/samples/multi-language/report.html +34 -0
  182. package/documents/pramanasutra/html/samples/multi-language/report.json +117 -0
  183. package/documents/pramanasutra/html/samples/multi-language/report.md +112 -0
  184. package/documents/pramanasutra/html/samples/multi-language/report.sarif.json +125 -0
  185. package/documents/pramanasutra/html/samples/unsafe-names/report.html +30 -0
  186. package/documents/pramanasutra/html/samples/unsafe-names/report.json +62 -0
  187. package/documents/pramanasutra/html/samples/unsafe-names/report.md +77 -0
  188. package/documents/pramanasutra/html/samples/unsafe-names/report.sarif.json +43 -0
  189. package/documents/pramanasutra/html/sitemap.xml +20 -0
  190. package/documents/pramanasutra/proof/eval-results.json +91 -0
  191. package/documents/pramanasutra/proof/test-results.txt +56 -0
  192. package/documents/pramanasutra/samples/clean-project/report.html +30 -0
  193. package/documents/pramanasutra/samples/clean-project/report.json +46 -0
  194. package/documents/pramanasutra/samples/clean-project/report.md +69 -0
  195. package/documents/pramanasutra/samples/clean-project/report.sarif.json +16 -0
  196. package/documents/pramanasutra/samples/focused-test/report.html +30 -0
  197. package/documents/pramanasutra/samples/focused-test/report.json +61 -0
  198. package/documents/pramanasutra/samples/focused-test/report.md +76 -0
  199. package/documents/pramanasutra/samples/focused-test/report.sarif.json +43 -0
  200. package/documents/pramanasutra/samples/missing-ci/report.html +30 -0
  201. package/documents/pramanasutra/samples/missing-ci/report.json +60 -0
  202. package/documents/pramanasutra/samples/missing-ci/report.md +77 -0
  203. package/documents/pramanasutra/samples/missing-ci/report.sarif.json +40 -0
  204. package/documents/pramanasutra/samples/missing-tests/report.html +30 -0
  205. package/documents/pramanasutra/samples/missing-tests/report.json +60 -0
  206. package/documents/pramanasutra/samples/missing-tests/report.md +77 -0
  207. package/documents/pramanasutra/samples/missing-tests/report.sarif.json +40 -0
  208. package/documents/pramanasutra/samples/multi-language/report.html +34 -0
  209. package/documents/pramanasutra/samples/multi-language/report.json +117 -0
  210. package/documents/pramanasutra/samples/multi-language/report.md +112 -0
  211. package/documents/pramanasutra/samples/multi-language/report.sarif.json +125 -0
  212. package/documents/pramanasutra/samples/unsafe-names/report.html +30 -0
  213. package/documents/pramanasutra/samples/unsafe-names/report.json +62 -0
  214. package/documents/pramanasutra/samples/unsafe-names/report.md +77 -0
  215. package/documents/pramanasutra/samples/unsafe-names/report.sarif.json +43 -0
  216. package/examples/dotnet-app/README.md +3 -0
  217. package/examples/evidence/passing.json +12 -0
  218. package/examples/java-service/README.md +3 -0
  219. package/examples/mobile/README.md +3 -0
  220. package/examples/python-api/README.md +3 -0
  221. package/examples/release-policy/README.md +3 -0
  222. package/examples/sample-app/README.md +3 -0
  223. package/examples/sample-app/package.json +8 -0
  224. package/examples/sample-app/src/math.js +1 -0
  225. package/examples/sample-app/tests/math.test.js +5 -0
  226. package/examples/sample-output/clean-project/report.html +30 -0
  227. package/examples/sample-output/clean-project/report.json +46 -0
  228. package/examples/sample-output/clean-project/report.md +69 -0
  229. package/examples/sample-output/clean-project/report.sarif.json +16 -0
  230. package/examples/sample-output/focused-test/report.html +30 -0
  231. package/examples/sample-output/focused-test/report.json +61 -0
  232. package/examples/sample-output/focused-test/report.md +76 -0
  233. package/examples/sample-output/focused-test/report.sarif.json +43 -0
  234. package/examples/sample-output/missing-ci/report.html +30 -0
  235. package/examples/sample-output/missing-ci/report.json +60 -0
  236. package/examples/sample-output/missing-ci/report.md +77 -0
  237. package/examples/sample-output/missing-ci/report.sarif.json +40 -0
  238. package/examples/sample-output/missing-tests/report.html +30 -0
  239. package/examples/sample-output/missing-tests/report.json +60 -0
  240. package/examples/sample-output/missing-tests/report.md +77 -0
  241. package/examples/sample-output/missing-tests/report.sarif.json +40 -0
  242. package/examples/sample-output/multi-language/report.html +34 -0
  243. package/examples/sample-output/multi-language/report.json +117 -0
  244. package/examples/sample-output/multi-language/report.md +112 -0
  245. package/examples/sample-output/multi-language/report.sarif.json +125 -0
  246. package/examples/sample-output/unsafe-names/report.html +30 -0
  247. package/examples/sample-output/unsafe-names/report.json +62 -0
  248. package/examples/sample-output/unsafe-names/report.md +77 -0
  249. package/examples/sample-output/unsafe-names/report.sarif.json +43 -0
  250. package/llms.txt +63 -0
  251. package/package.json +65 -4
  252. package/packages/cli/bin/pramanasutra.mjs +91 -0
  253. package/packages/cli/lib/evidence.mjs +60 -0
  254. package/packages/cli/lib/installer.mjs +39 -0
  255. package/packages/cli/lib/policy.mjs +33 -0
  256. package/packages/cli/lib/report.mjs +224 -0
  257. package/packages/cli/lib/scanner.mjs +164 -0
  258. package/policies/recommended.json +11 -0
  259. package/policies/strict.json +12 -0
  260. package/templates/defect-report.md +11 -0
  261. package/templates/qa-strategy.md +9 -0
  262. package/templates/release-notes.md +9 -0
  263. package/templates/release-readiness.md +9 -0
  264. package/templates/rollback-plan.md +7 -0
  265. package/templates/test-evidence.json +11 -0
  266. package/templates/test-plan.md +4 -0
  267. package/templates/traceability-matrix.csv +1 -0
  268. package/workflows/create-test-plan.md +9 -0
  269. package/workflows/implement-tests.md +9 -0
  270. package/workflows/inspect-project.md +9 -0
  271. package/workflows/investigate-failure.md +9 -0
  272. package/workflows/post-release-observability.md +9 -0
  273. package/workflows/release-readiness.md +9 -0
  274. package/workflows/verify-regression.md +9 -0
@@ -0,0 +1,68 @@
1
+ # Skills and agents
2
+
3
+ <!-- summary: The 17 PramanaSutra Agent Skills, where they are installed, and the safety contract they share. The CLI does not run the skills. The IDE's model does, if the host loads them. -->
4
+
5
+ Canonical files: `.agents/skills/<name>/SKILL.md`. `agents list` reads that tree. `init` copies it. Editing a copy inside `.claude` or `.cursor` and not the canonical file will be overwritten on the next forced install, and will not ship.
6
+
7
+ The skills are instructions. They are not models, not processes, and not a guarantee. A host that does not load `SKILL.md` will not follow them. Live loading has not been smoke-tested in each IDE. See [Roadmap](13-roadmap-and-status.md).
8
+
9
+ ## Shared contract
10
+
11
+ Every skill in this repository is required by test to:
12
+
13
+ - start with YAML frontmatter
14
+ - set `name` equal to the directory name
15
+ - include a description
16
+ - include a `## Safe workflow` section that is not a copy of another skill's workflow
17
+ - tell the model not to fabricate, claim, or approve results it does not have
18
+
19
+ Each workflow is a different procedure: prime routes one lane, strategy picks the lane, unit reads focused-test markers, flow reads a written journey, api reads a contract, visual reads an attached image note, access reads source text, load reads a written budget, data reads a named fixture, secure reads a pasted diff for literals, regression reads a `--changed` report, flake reads a pasted rerun log, defect quotes a pasted error, pipeline reads the workflow files the scan listed, release runs `release-check` only when asked, evidence reads the JSON, verify compares `verify` output to saved stdout. None of them run a suite, open a browser, or sign a file.
20
+
21
+ If an assistant using these skills claims "all tests passed" and cannot point at a command and an output, it is breaking the skill. Prefer the CLI report.
22
+
23
+ ## The roster
24
+
25
+ | Skill | Job |
26
+ |---|---|
27
+ | `pramanasutra-prime` | Coordinates inspection, QA strategy, evidence review and a release recommendation. Does not approve a deploy |
28
+ | `pramanasutra-strategy` | Risk-based quality strategy and traceability from requirement to test |
29
+ | `pramanasutra-unit` | Focused, deterministic unit and component tests with real assertions |
30
+ | `pramanasutra-flow` | Cross-system and end-to-end scenarios that can be repeated |
31
+ | `pramanasutra-api` | REST, GraphQL, gRPC and event contracts, and whether tests cover them |
32
+ | `pramanasutra-visual` | Screenshot baselines and rendering gaps. Does not take screenshots by itself |
33
+ | `pramanasutra-access` | Accessibility and cross-device planning, including manual checks |
34
+ | `pramanasutra-load` | Performance test design, thresholds and abort rules. Not a license to load-test production |
35
+ | `pramanasutra-data` | Migration, backup, rollback and fixture review |
36
+ | `pramanasutra-secure` | Security-test gaps from evidence. Not a penetration test |
37
+ | `pramanasutra-regression` | What changed, and which tests are relevant |
38
+ | `pramanasutra-flake` | Nondeterministic tests, using a reproduction, not a hunch |
39
+ | `pramanasutra-defect` | A failure turned into a minimal reproduction |
40
+ | `pramanasutra-pipeline` | Whether automation and gates mean what the team thinks |
41
+ | `pramanasutra-release` | Criteria, rollout and rollback. Human approval stays human |
42
+ | `pramanasutra-evidence` | Reports and evidence that stay traceable and avoid leaking secrets |
43
+ | `pramanasutra-verify` | Challenges the gate before someone approves |
44
+
45
+ ## Install paths
46
+
47
+ | Host | Path | Verified live in that host? |
48
+ |---|---|---|
49
+ | Claude Code | `.claude/skills` | No |
50
+ | Cursor | `.cursor/skills` | No |
51
+ | OpenAI Codex | `.agents/skills` | No |
52
+ | GitHub Copilot | `.github/skills` | No |
53
+ | Gemini CLI | `.gemini/skills` | No |
54
+ | Generic | `.agents/skills` | No |
55
+
56
+ Product names belong to their owners. Listing a path is compatibility information, not an endorsement and not a partnership. See [Legal](10-legal-and-compliance.md).
57
+
58
+ ## How Prime is meant to delegate
59
+
60
+ The skill text tells the model to delegate to a specialist only if the host supports delegation, and otherwise to do the stages in order. PramanaSutra does not implement an orchestrator process. There is no message bus. "Agent team" in the README means seventeen instruction files and one chief file, not seventeen running programs.
61
+
62
+ ## What to put in a prompt
63
+
64
+ Name the skill, name the repository, and restate the two rules that matter most: cite file and line, and do not claim a test ran unless a tool returned that result. Ask it to read `report.md` if you have already produced one. Do not paste production secrets into the prompt. The skill tells the model not to collect secrets; the prompt should not hand them over anyway.
65
+
66
+ ## Changing a skill
67
+
68
+ Edit `.agents/skills/<name>/SKILL.md`. Keep the frontmatter `name` equal to the folder. Keep the safe workflow. Run `npm test`. The test reads every skill. Copies in a target project are not updated until someone runs `init` again with `--force` after review.
@@ -0,0 +1,73 @@
1
+ # Security and privacy
2
+
3
+ <!-- summary: Threat model, controls and residual risk for PramanaSutra AI. The CLI is local, read-only on the target, and not a vulnerability scanner. No independent security review has been done. -->
4
+
5
+ PramanaSutra is not a SAST product, not a secret scanner, and not a penetration test. This page describes how the CLI and the skills are built to avoid a class of mistakes. It is not a claim that the software has been attacked by a third party and found clean. It has not had an independent security review.
6
+
7
+ ## Assets
8
+
9
+ | Asset | Why it matters |
10
+ |---|---|
11
+ | The target source tree | May contain proprietary code. The scanner reads it |
12
+ | Evidence and policy files | May contain commands, host names, commit ids |
13
+ | The report | Repeats finding paths and the evidence fields. People forward it |
14
+ | Skill text | Tells a model how to behave. A hostile edit changes the assistant's instructions |
15
+ | The machine running the CLI | The process has the user's filesystem rights |
16
+
17
+ ## What the CLI does not do
18
+
19
+ - It does not open a socket as part of scan, gate, report or install. (The documentation HTML also does not load a third-party script. `npx` itself uses the network to download the package; that is npm, not the scan.)
20
+ - It does not execute the target's tests, package scripts, or binaries.
21
+ - It does not follow symlinks, so a link cannot pull in a directory outside the tree.
22
+ - It does not walk into a path that contains a symlink component during install.
23
+ - It does not put the absolute target path in the report. It stores the base name.
24
+ - It escapes report text so a file name or an evidence command cannot inject a tag.
25
+
26
+ ## Controls
27
+
28
+ | Threat | Control |
29
+ |---|---|
30
+ | Accidental execution of repo code | No test runner in the CLI. Evidence is data |
31
+ | Symlink escape while scanning | `lstat` / `Dirent` symlink check, skip, count |
32
+ | Symlink escape while installing skills | Walk the destination, refuse if any component is a symlink |
33
+ | Overwriting a team's own skills | Refuse when the destination exists, unless `--force` |
34
+ | Policy that allows unattended deploy | Loader rejects `allowAutomatedDeployment: true` |
35
+ | Tampered evidence promoted to "ready" | `external-unverified` cannot reach ready. This does not detect a lie in a `ci-ingested` file |
36
+ | HTML injection via a crafted file name | `escapeHtml` on every interpolated value. Tested |
37
+ | Markdown injection of the same name | `<` and `>` escaped in the Markdown renderer |
38
+ | Ignore file used as a path traversal | Entries containing `..` or an absolute path throw |
39
+ | Huge input | Size caps on evidence, policy, ignore, and per test file |
40
+ | Binary mistaken for source | NUL byte skips the file and marks the scan partial, so the gate cannot be ready |
41
+ | Secrets in a report | The tool does not redact. Do not put secrets in the evidence `command` or `environment`. The evidence skill tells the model the same |
42
+
43
+ ## Privacy
44
+
45
+ The CLI does not phone home, does not have an analytics hook, and does not write a user id. Data stays in the process and in the output directory you chose.
46
+
47
+ You can still leak data yourself:
48
+
49
+ - The evidence file's `command`, `environment` and `commit` are copied into the report.
50
+ - Finding paths are relative and can still reveal internal layout.
51
+ - If you paste a report or a skill prompt into a hosted model, that provider processes it under their terms. PramanaSutra does not control that.
52
+ - `init` copies skill files into the target. Those files are project content, not telemetry.
53
+
54
+ The HTML documentation uses `localStorage` only if you toggle the theme, and only in that browser. Search runs on the page. Nothing is sent.
55
+
56
+ GitHub Pages serves a copy of the HTML. That is a public site of this public repository. Do not put private audit output into `docs/`.
57
+
58
+ ## Residual risk
59
+
60
+ - Heuristic rules miss vulnerabilities entirely. Do not use a ready gate as a security sign-off.
61
+ - A person can write `ci-ingested` evidence that does not match any CI run. The schema cannot prove the command happened.
62
+ - `--out` writes wherever the operator points. That is intended. Point it at a directory you mean to create.
63
+ - `init --force` deletes an existing skill directory and replaces it. Read the diff first.
64
+ - Skill files are instructions to a model. Review them like code before you install them into a repository with secrets in context.
65
+ - Dependencies: there are none at runtime. The GitHub Actions workflows pin `actions/checkout` and `actions/setup-node` to commit SHAs. CodeQL actions are still on the v4 major tag; Dependabot is configured.
66
+
67
+ ## Reporting a vulnerability
68
+
69
+ Use GitHub private vulnerability reporting on [the repository](https://github.com/shahvatsalofficial/pramanasutra-ai). Do not open a public issue with an exploit, a token, or customer data. The policy file is `SECURITY.md`.
70
+
71
+ ## CodeQL
72
+
73
+ The CodeQL workflow runs on push to `main`, on pull requests, and weekly. A green CodeQL check is the queries that shipped with that action, on this JavaScript. It is not a full application assessment.
@@ -0,0 +1,72 @@
1
+ # Legal and compliance
2
+
3
+ <!-- summary: Project notice for PramanaSutra AI: Apache-2.0, third-party names, trademarks not cleared, and what the output is not. This page is not a legal opinion and not legal advice. -->
4
+
5
+ > **Important:** This page is a project notice written so users and reviewers can see what has and has not been checked. It is not legal advice, not a lawyer's opinion, and not a compliance attestation. Have a qualified lawyer review trademark, export, and regulated-industry use before you bet a company name or a certification on this project.
6
+
7
+ ## License
8
+
9
+ The source is Apache License 2.0. The full text is [LICENSE](../../LICENSE). [NOTICE](../../NOTICE) attributes the work to Vatsal Shah. Contributors keep the attribution the license requires.
10
+
11
+ Apache-2.0 is a permissive license with a patent grant and a requirement to keep notices. It is not a warranty. The license's disclaimer of warranty and limitation of liability apply. The software is provided "AS IS".
12
+
13
+ ## Third-party code
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.
16
+
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
+
19
+ ## Names that are not ours
20
+
21
+ Claude, Claude Code, Cursor, OpenAI, Codex, GitHub, Copilot, Google, Gemini, Node.js, npm, Jest, pytest, JUnit and the other product names in the docs are used to describe compatibility. They are the property of their owners. This project is not affiliated with, endorsed by, or sponsored by those owners. Do not write marketing that implies otherwise.
22
+
23
+ ## The name PramanaSutra
24
+
25
+ "PramanaSutra" and "PramanaSutra AI" are project names used by Vatsal Shah. As of this version:
26
+
27
+ - They are **not** described here as registered trademarks.
28
+ - A clearance search of trademark registers, domains and package names has **not** been completed for this project.
29
+ - No filing is claimed.
30
+
31
+ Before a company adopts the name in commerce, a trademark lawyer should search the classes that matter (commonly Nice classes 9 and 42 for software and software services, plus the countries where the name will be used) and should search package registries and domains. This document cannot do that search, and a previous draft that said the same thing is still the accurate status.
32
+
33
+ The Sanskrit word *pramana* is used here in its ordinary meaning, "valid proof" or "means of knowledge", as a project metaphor. That sentence is an explanation of the name, not a claim of exclusive rights over the word.
34
+
35
+ ## What the output is
36
+
37
+ A report is decision support. It is not:
38
+
39
+ - a certification of quality, security, accessibility or compliance
40
+ - an audit opinion under any professional standard
41
+ - a representation that tests passed, unless the evidence block is quoting a file the operator supplied
42
+ - legal advice about the scanned project
43
+ - permission to ship
44
+
45
+ Do not attach a PramanaSutra report to a regulatory submission as if it were an independent assessment.
46
+
47
+ ## Privacy laws
48
+
49
+ The CLI does not operate a service and does not collect accounts. If you put personal data into an evidence file or you scan a repository that contains personal data, you are the one processing it. The report will copy evidence fields through. Strip them before you publish a report. The public documentation site contains no customer data.
50
+
51
+ ## Acceptable use
52
+
53
+ The skills forbid destructive actions, unapproved production load tests, secret collection and publishing. Use the CLI on trees you are allowed to read. Do not point it at systems you do not own in order to interfere with them. The tool's refusal to execute target tests is a safety property; do not wrap it in a script that then runs arbitrary repository code unless that is already your CI and you accept that risk there.
54
+
55
+ ## Regulated industries
56
+
57
+ If the scanned product is medical, financial, aviation, or otherwise regulated, a heuristic QA gate is not your validation record. Keep the validation process your regulator already requires. This project does not claim IEC 62304, ISO 13485, SOC 2, FedRAMP, PCI-DSS, HIPAA, or any other program.
58
+
59
+ ## Export
60
+
61
+ This repository is a local source scanner and a set of text files. It does not implement cryptography as a product. This sentence is not an export classification. If your counsel needs a classification, ask them, with the source in front of them.
62
+
63
+ ## What a lawyer should still be asked
64
+
65
+ 1. Is "PramanaSutra" available for the goods and countries you care about?
66
+ 2. Does your use of the Apache-2.0 project, including NOTICE, match how you distribute it?
67
+ 3. If you publish reports from private repositories, what do they disclose?
68
+ 4. If a customer will rely on a gate in a contract, what warranty are you accidentally giving? The upstream license gives none. Your contract might.
69
+
70
+ ## Contact
71
+
72
+ Security reports: [Security and privacy](09-security-and-privacy.md) and `SECURITY.md`. Other maintainer contact is the GitHub repository [shahvatsalofficial/pramanasutra-ai](https://github.com/shahvatsalofficial/pramanasutra-ai).
@@ -0,0 +1,72 @@
1
+ # Testing and proof
2
+
3
+ <!-- summary: How PramanaSutra AI is tested, the captured results, the labeled fixtures, and the limits of that evidence. Numbers below come from scripts/generate-proof.mjs, not from memory. -->
4
+
5
+ Trust the files, then the prose. If they disagree, the files win, and this page is stale.
6
+
7
+ | Artifact | What it is |
8
+ |---|---|
9
+ | [proof/test-results.txt](proof/test-results.txt) | The stdout of `node --test --test-reporter=spec tests/cli.test.mjs`, with the Node version and OS on the first lines |
10
+ | [proof/eval-results.json](proof/eval-results.json) | Per-fixture expected rules versus found rules, plus precision and recall **on those fixtures** |
11
+ | [audit/report.md](audit/report.md) | Release check of this repository using that test run as evidence |
12
+ | [audit/report.html](audit/report.html) | The same audit |
13
+ | [samples/](samples) | The six fixtures rendered to Markdown, HTML and JSON |
14
+
15
+ Regenerate all of them with:
16
+
17
+ ```bash
18
+ node scripts/generate-proof.mjs
19
+ ```
20
+
21
+ The sample reports pin `generatedAt` to `2026-11-06T00:00:00.000Z` so a review is not a wall of timestamp noise. The test-results file is not pinned. It is the command output.
22
+
23
+ ## Captured unit run
24
+
25
+ On the run captured for version 0.3.4 the summary was:
26
+
27
+ - tests: 43
28
+ - pass: 43
29
+ - fail: 0
30
+ - skipped: 0
31
+
32
+ `nested symlink is skipped rather than followed` now runs on this Windows machine. A real symlink is refused, so the test creates a directory junction and checks the scanner does not follow it. On a machine that allows symlinks, the same test uses a symlink. Do not quote "43 passed" as a universal CI number. Quote the file, and quote the CI run for Ubuntu and Windows.
33
+
34
+ The command does not use a network and does not need `npm install`.
35
+
36
+ ## What the tests lock
37
+
38
+ The suite in `tests/cli.test.mjs` covers doctor, the 17 skills' frontmatter and distinct Safe workflow bodies, focused and skipped tests, missing tests/CI/license, CircleCI recognition, shared `scan` and `release-check` exit codes, HTML and Markdown escaping, default report paths, SARIF 2.1.0, evidence classification, the unbound and ci-environment binding sentences, `--changed` when git is unavailable, policy rejection, Java/C#/Ruby file names, the multi-language fixture, ignore-file traversal, binary test files, and `pytest.skip` / `test.todo`.
39
+
40
+ It does not cover a live IDE. It does not measure recall on a corpus the author did not write.
41
+
42
+ ## Labeled fixtures
43
+
44
+ | Fixture | Expected rules | Expected gate |
45
+ |---|---|---|
46
+ | `fixtures/clean-project` | none | `READY_FOR_HUMAN_APPROVAL` (its `evidence.json` is passing and `ci-ingested`) |
47
+ | `fixtures/focused-test` | `FOCUSED_TEST` | `NO_GO` |
48
+ | `fixtures/missing-ci` | `NO_CI` | `REVIEW_REQUIRED` |
49
+ | `fixtures/missing-tests` | `NO_TESTS` | `REVIEW_REQUIRED` |
50
+ | `fixtures/unsafe-names` | `FOCUSED_TEST` | `NO_GO` |
51
+ | `fixtures/multi-language` | `SKIPPED_TEST` three times, `NO_CI`, `NO_LICENSE` | `REVIEW_REQUIRED` |
52
+
53
+ `eval-results.json` records true positives, false positives and false negatives against that table. A value of 1.0 for precision and recall means every expected rule was found and no extra rule was found **in these six trees**. The file's `caveat` field says the fixtures were written by the rule author. Repeat that caveat wherever you quote the ratio. It is a regression lock.
54
+
55
+ ## Self-audit
56
+
57
+ `generate-proof.mjs` scans the repository root, attaches evidence built from the test summary (`source: local-executed`, counts copied from the reporter, not typed), and writes `documents/pramanasutra/audit`. `.pramanasutraignore` excludes `fixtures/` and `examples/sample-app/` because those trees contain deliberate `test.only` lines. The limitation section of the audit says they were excluded. Read that section or you will misread a ready gate.
58
+
59
+ The HTML documentation is generated after the audit file. A file count in the audit does not include pages that did not exist yet. Run `npm run proof` again after a large file add if you need the count to match the tree you are looking at.
60
+
61
+ `node scripts/ci-gate.mjs` is the same idea for CI: run the tests, parse `pass` and `fail` from the reporter, refuse to continue if the summary cannot be parsed, then `release-check` this repo. Exit code is the gate. On the maintainer run that gate was `READY_FOR_HUMAN_APPROVAL` with 0 findings. CI must show the same for the commit you care about. Do not paste this sentence over a red Actions run.
62
+
63
+ ## What would falsify the claims
64
+
65
+ - A unit test fails. The claim "37 passed" is then false for that run.
66
+ - A fixture in the table gains or loses a rule. `eval-results.json` will show `pass: false` and the script exits 1.
67
+ - `ci-gate` cannot parse the reporter. It exits 1 and writes no ready evidence. That is preferred to a made-up count.
68
+ - A ready gate appears while `releaseGate.evidenceState` is not `passing`. That would be a defect. The tests forbid it for the cases they construct.
69
+
70
+ ## Not in this proof
71
+
72
+ Field accuracy, mutation testing, a comparison against a commercial SAST tool, performance on a monorepo of tens of thousands of files beyond the documented caps, and any IDE transcript. Those are absent, not implied.
@@ -0,0 +1,89 @@
1
+ # CI and release
2
+
3
+ <!-- summary: How PramanaSutra AI uses GitHub Actions, why macOS is not scheduled, how to fail a build on NO_GO, and how this project itself is released. -->
4
+
5
+ ## Workflows in this repository
6
+
7
+ | File | What it gates | Badge |
8
+ |---|---|---|
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 |
10
+ | `.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
+ | `.github/workflows/codeql.yml` | CodeQL `javascript-typescript` on Ubuntu | CodeQL badge |
12
+ | `.github/dependabot.yml` | Update PRs for Actions | None |
13
+
14
+ `actions/checkout` and `actions/setup-node` are pinned to commit SHAs. Timeouts are 20 minutes. Concurrency cancels a superseded run on the same ref.
15
+
16
+ ## Why macOS is not scheduled
17
+
18
+ On 4 November 2026, Actions run [41884015367](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/runs/41884015367) finished as a failure. Ubuntu and Windows jobs succeeded. Both `macos-latest` jobs were **cancelled with zero steps**. They never checked out the repo. That failure painted the only CI badge red.
19
+
20
+ A separate `macos-14` workflow was tried on the 0.3.0 push. Run [42098256304](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/runs/42098256304) cancelled both jobs in about a second. `runner_name` was empty. No step ran. Scheduling that workflow again would only add a red badge. It was removed. macOS test execution in GitHub Actions is **unverified**. The unit suite has been run on the maintainer's Windows machine, and the required workflow covers Ubuntu and Windows.
21
+
22
+ ## What the gate job proves
23
+
24
+ `scripts/ci-gate.mjs`:
25
+
26
+ 1. Runs `node --test --test-reporter=spec tests/cli.test.mjs`.
27
+ 2. Reads the last `pass` and `fail` counts from that output.
28
+ 3. If it cannot read them, exits 1. It does not invent a passing evidence file.
29
+ 4. Writes a temporary evidence file with `source: ci-ingested` and those counts. When `GITHUB_REPOSITORY`, `GITHUB_SHA`, `GITHUB_RUN_ID` and `GITHUB_WORKFLOW` are all set, it also writes `github` with those four strings. The report then says `ci-environment`. That is not a signature. A checkout outside Actions omits `github`, and the report says `unbound`.
30
+ 5. Runs `release-check` on the repository root with that file.
31
+ 6. Exits with the gate code.
32
+
33
+ Because `fixtures/` and `examples/sample-app/` contain intentional focused tests, they are listed in `.pramanasutraignore`. The gate is about the product, and the report names the exclusion. A pull request that adds `test.only` under `tests/` or `packages/` fails this job with exit 2.
34
+
35
+ ## Use it on your repository
36
+
37
+ Run your tests in the job you already trust. Then either:
38
+
39
+ - call your own small script that writes evidence from that output, the way `ci-gate.mjs` does, or
40
+ - fail only when you are ready to maintain an evidence file
41
+
42
+ Example pattern, after your tests have already run and you have written `evidence.json` honestly:
43
+
44
+ ```yaml
45
+ - name: PramanaSutra release check
46
+ run: npx github:shahvatsalofficial/pramanasutra-ai release-check --path . --evidence evidence.json --out pramanasutra-reports
47
+ ```
48
+
49
+ Exit 2 fails the step. Exit 3 also fails a step, because it is non-zero. If you want review to be a comment and only `NO_GO` to be red, branch on the status in the shell and upload `report.md` as an artifact either way:
50
+
51
+ ```bash
52
+ set +e
53
+ npx github:shahvatsalofficial/pramanasutra-ai release-check --path . --evidence evidence.json --out pramanasutra-reports
54
+ code=$?
55
+ set -e
56
+ if [ "$code" -eq 2 ]; then exit 2; fi
57
+ if [ "$code" -eq 1 ]; then exit 1; fi
58
+ exit 0
59
+ ```
60
+
61
+ Exit 3 is then visible in the log and the report, and the job stays green. Do this on purpose. Do not "fix" a red gate by deleting findings.
62
+
63
+ Upload `pramanasutra-reports/report.md` and `report.html` as build artifacts so reviewers can read them without re-running.
64
+
65
+ ## GitHub Pages
66
+
67
+ Pages serves the `/docs` directory on `main`. `scripts/build-docs.mjs` writes the site to `documents/pramanasutra/html` and copies it to `docs/`, including `index.html`, `sitemap.xml` and `robots.txt`. Old handbook URLs under `docs/handbook/` redirect to the new pages.
68
+
69
+ The site URL is `https://shahvatsalofficial.github.io/pramanasutra-ai/`.
70
+
71
+ `robots.txt` allows general crawlers and names common answer-engine crawlers as allowed. The content is public documentation. Do not put a private report in `docs/`.
72
+
73
+ ## Releasing this project
74
+
75
+ 1. Update `package.json`, `CHANGELOG.md` and `CITATION.cff` to the same version.
76
+ 2. `node --test tests/cli.test.mjs`
77
+ 3. `node scripts/generate-proof.mjs`
78
+ 4. `node scripts/build-docs.mjs`
79
+ 5. Read `documents/pramanasutra/audit/report.md`. If the gate is not what you expect, stop.
80
+ 6. Commit, push to `main`.
81
+ 7. Wait until the required CI workflow is green. Do not claim macOS CI passed.
82
+ 8. On npm, as user `shahvatsal`, add a trusted publisher for `shahvatsalofficial/pramanasutra-ai` workflow file `publish.yml`. Do this once.
83
+ 9. `gh release create vX.Y.Z` with the changelog as notes. That event runs `publish.yml`.
84
+
85
+ npm name is 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` still returns 404. Local `npm publish` asks for 2FA. `publish.yml` runs only when a GitHub Release is published, uses `id-token: write`, and does not store an npm token. Connect that workflow on npm for the package `pramanasutra` before the first release, or the job fails authentication. `ci.yml` must not publish.
86
+
87
+ ## What this project will not automate
88
+
89
+ Deploy and tag signing are not implemented. `publish.yml` passes `--provenance` so npm can attach its own provenance attestation to the tarball. That is not a deploy, and it is not a separate SLSA workflow in this repository. Do not add a badge that implies either.
@@ -0,0 +1,73 @@
1
+ # Roadmap and status
2
+
3
+ <!-- summary: Honest status of PramanaSutra AI 0.3.4. Implemented, planned, and explicitly not claimed. -->
4
+
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
+
7
+ ## Implemented in 0.3.4
8
+
9
+ | Capability | Evidence |
10
+ |---|---|
11
+ | CLI: version, doctor, agents, scan, release-check, verify, init | `packages/cli`, `npm test` |
12
+ | Offline static rules in the [catalog](07-rule-catalog.md), including CircleCI, Buildkite, Drone and Woodpecker file names | Unit tests and six fixtures |
13
+ | Evidence ingestion and fail-closed policy | Unit tests, `policies/` |
14
+ | Evidence binding sentence: `none`, `unbound`, or `ci-environment` | Unit test. `ci-environment` is not a signature |
15
+ | `report.md`, `report.html`, `report.json`, `report.sarif.json` written together | Unit tests, `samples/`, `audit/` |
16
+ | `--changed` lists `git diff` names and says when git is unavailable | Unit test. Not a test selector |
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
+ | `.pramanasutraignore` | Unit test, this repo's ignore file |
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` |
21
+ | CI gate writes `github` when the four `GITHUB_*` variables exist | `scripts/ci-gate.mjs` |
22
+ | macOS in GitHub Actions | Not scheduled. Runs 41884015367 and 42098256304 cancelled with zero steps |
23
+ | CodeQL workflow | `.github/workflows/codeql.yml` |
24
+ | Documentation site with a product front page plus this handbook | `scripts/build-docs.mjs` |
25
+ | Public GitHub repository | `https://github.com/shahvatsalofficial/pramanasutra-ai` |
26
+ | npm publish workflow | `.github/workflows/publish.yml`. It has not been proven by a green run. A GitHub Release is what starts it, and npm must already list this repo as a trusted publisher |
27
+
28
+ ## Planned
29
+
30
+ These README-level packages exist as notes only. The CLI does not import them.
31
+
32
+ | Item | Not yet |
33
+ |---|---|
34
+ | Executing the target's tests | Would run arbitrary code. Needs an explicit, separate, opt-in design |
35
+ | Browser and device checks | No driver is bundled |
36
+ | Accessibility measurement | The access skill plans. It does not score |
37
+ | Performance measurement | The load skill plans. It does not generate load |
38
+ | Coverage, flake detection from history, mutation testing | No storage, no history |
39
+ | SBOM and SLSA provenance | No release attestation workflow |
40
+ | A long-running server or a local model adapter | `packages/server` is a note |
41
+ | Live smoke test in each IDE | Install paths only |
42
+
43
+ ## Not claimed
44
+
45
+ | Claim | Why it is absent |
46
+ |---|---|
47
+ | Certification or compliance | Reports say they are decision support |
48
+ | Independent security review | None has been commissioned |
49
+ | Trademark clearance | [Legal](10-legal-and-compliance.md) |
50
+ | Field precision equal to the fixture score | The fixture score is a regression lock |
51
+ | macOS CI passed | Those jobs never started a runner |
52
+ | npm package `@vatsalshah/pramanasutra` | Registry returned 404. The account is `shahvatsal` |
53
+ | Signed or GitHub-verified evidence | `ci-environment` only echoes four strings. `verify` checks schema. A person can still type them |
54
+ | The twelve `packages/*` notes (`runner`, `server`, `reporter`, `quality-gates`, `release`, `impact`, `integrators`, `evidence`, `discovery`, `core`, `static-audit`, `test-generation`) | READMEs only. The CLI does not import them |
55
+ | The assistant always obeys the skill | The host is outside this process |
56
+
57
+ ## Near-term work, in order
58
+
59
+ 1. Keep the required CI green on Ubuntu and Windows. Add macOS back only when a runner actually starts and the log shows test output.
60
+ 2. Confirm `npm view pramanasutra version` matches `package.json` after each release. Do not publish `@vatsalshah/pramanasutra`.
61
+ 3. One live smoke note per IDE: did `init` land where the host reads, and did a trivial prompt cite a file. Until that note exists, the compatibility table stays "not verified".
62
+ 4. A rule only with a true-positive fixture and a false-positive fixture. No drive-by patterns.
63
+
64
+ ## Compatibility summary
65
+
66
+ | Environment | Status |
67
+ |---|---|
68
+ | Node 20 and 22 on Ubuntu and Windows in CI | Required workflow. Trust the latest green run, not this sentence |
69
+ | Node on the maintainer's Windows machine | The captured proof file |
70
+ | macOS in CI | Not scheduled. Unverified |
71
+ | Claude Code, Cursor, Codex, Copilot, Gemini CLI | Copy paths implemented. Behavior not verified |
72
+
73
+ Older handbook pages under `docs/handbook/*.md` are earlier write-ups. The numbered files in this folder are the ones to update.
@@ -0,0 +1,81 @@
1
+ # FAQ and glossary
2
+
3
+ <!-- summary: Short answers about PramanaSutra AI and the terms used in its reports. -->
4
+
5
+ ## Questions
6
+
7
+ ### Is this a test framework?
8
+
9
+ No. It reviews test hygiene and release evidence. Keep Jest, pytest, JUnit, Go test, Playwright or whatever you already run. PramanaSutra reads the result only when you pass an evidence file.
10
+
11
+ ### Does the scan send my code anywhere?
12
+
13
+ No. The scan, the gate, the report writer and the skill installer do not open network connections. `npx` downloads the tool before it runs; that download is npm. After the process starts, the audit stays local.
14
+
15
+ ### Why is the gate REVIEW_REQUIRED when I can see tests?
16
+
17
+ Because nobody passed `--evidence`, or the evidence is unverified, or it records zero passes, or the scan was partial, or CI or a license file is missing under the policy. A clean reading of the files is not a test run. That split is the point of the tool.
18
+
19
+ ### Why did a clean scan still not say ready?
20
+
21
+ `READY_FOR_HUMAN_APPROVAL` requires passing `local-executed` or `ci-ingested` evidence and the policy's static checks. No evidence file means not ready. See the clean-project sample, which includes an evidence file, versus any scan without one.
22
+
23
+ ### Can I turn off the human?
24
+
25
+ No. `automatedDeploymentAuthorized` is always false, and the policy loader rejects an attempt to set it true. The ready state means "a person may now look", not "ship it".
26
+
27
+ ### The HTML and the Markdown disagree. Which is wrong?
28
+
29
+ They are written from the same object in one function. If they disagree, it is a bug. Open `report.json` for the object. Please report it.
30
+
31
+ ### It flagged test.only inside a string.
32
+
33
+ The pattern matches a line that starts with the declaration, after whitespace. A string later on the line does not match. A line whose first code is `test.only(` does match, even if a human considers it data. Move the sample off the start of the line, or exclude the path in `.pramanasutraignore` if it is a fixture tree. Do not ignore your real tests to silence a true positive.
34
+
35
+ ### It did not see my tests.
36
+
37
+ The naming rules are in the [technical reference](04-technical-reference.md). A custom folder that matches none of them produces `NO_TESTS`. That finding means "not recognised", not "proven absent".
38
+
39
+ ### Does a green CI file mean the tests ran?
40
+
41
+ No. `NO_CI` checks that a known file exists. It does not read the workflow steps.
42
+
43
+ ### Is the skill going to edit my repository?
44
+
45
+ Only if you ask the assistant to and the host allows it. The skill text says to ask before running tests or changing files. The CLI `scan` and `release-check` do not edit the target. `init` writes only the skill directories you named.
46
+
47
+ ### Which IDE was tested?
48
+
49
+ None end to end. The installer copies into documented paths. [Roadmap and status](13-roadmap-and-status.md) keeps the "verified live" column on No until there is a note.
50
+
51
+ ### Is the name trademarked?
52
+
53
+ Not as far as this project claims, and no clearance search has been completed. Details: [Legal](10-legal-and-compliance.md).
54
+
55
+ ### Where is the audit of PramanaSutra itself?
56
+
57
+ [audit/report.md](audit/report.md) and [audit/report.html](audit/report.html).
58
+
59
+ ### How do I cite it?
60
+
61
+ [CITATION.cff](../../CITATION.cff) at the repository root.
62
+
63
+ ## Glossary
64
+
65
+ | Term | Meaning |
66
+ |---|---|
67
+ | Agent Skill | A `SKILL.md` file an IDE may load as instructions. Not a running process |
68
+ | Prime | `pramanasutra-prime`, the coordinating skill |
69
+ | Static finding | A rule matched source text. Status `observed` |
70
+ | Evidence | A JSON file describing a test command someone already ran |
71
+ | Evidence state | `absent`, `failing`, `inconclusive`, `unverified`, or `passing` |
72
+ | Gate | The release decision derived from findings, evidence and policy |
73
+ | NO_GO | Do not release on this output. Exit 2 |
74
+ | REVIEW_REQUIRED | A person must look, or inputs are missing. Exit 3 |
75
+ | READY_FOR_HUMAN_APPROVAL | Policy checks passed. A person still approves. Exit 0 |
76
+ | Partial scan | The walk hit a limit or could not read something. Cannot be ready |
77
+ | Policy | JSON that turns optional strictness on or off, and cannot enable auto-deploy |
78
+ | Capability | A named activity and whether this run executed it, skipped it, or cannot do it |
79
+ | Ignore file | `.pramanasutraignore`, prefixes excluded from the walk, disclosed in limitations |
80
+ | Focused test | A declaration that runs a subset (`.only`, `fit`, `fdescribe`) |
81
+ | Base name | The last segment of the scanned directory. The report does not store the full path |
@@ -0,0 +1,81 @@
1
+ # Maintainer guide
2
+
3
+ <!-- summary: How to change a rule, refresh proof and HTML docs, and cut a PramanaSutra AI release without claiming results you did not run. -->
4
+
5
+ ## Layout a maintainer actually edits
6
+
7
+ | Path | Edit when |
8
+ |---|---|
9
+ | `packages/cli/lib/scanner.mjs` | Rules, walk limits, gate logic, ignore file |
10
+ | `packages/cli/lib/evidence.mjs` | Evidence schema |
11
+ | `packages/cli/lib/policy.mjs` | Policy keys |
12
+ | `packages/cli/lib/report.mjs` | Wording or layout of `report.md` and `report.html` |
13
+ | `packages/cli/bin/pramanasutra.mjs` | Flags and exit codes |
14
+ | `packages/cli/lib/installer.mjs` | IDE paths |
15
+ | `.agents/skills/` | Skill text. This is the canonical copy |
16
+ | `tests/cli.test.mjs` | Every behavior change |
17
+ | `fixtures/` | A labeled tree for a rule. Excluded from the product gate by `.pramanasutraignore` |
18
+ | `documents/pramanasutra/*.md` | These pages. Then rebuild HTML |
19
+ | `scripts/generate-proof.mjs` | How samples and the self-audit are produced |
20
+ | `scripts/ci-gate.mjs` | How CI turns a test run into evidence |
21
+ | `scripts/build-docs.mjs` | HTML chrome. The words live in the Markdown |
22
+
23
+ `packages/*` other than `cli` are notes. Do not import them from the CLI until they have tests and a status-page change from planned to implemented.
24
+
25
+ ## Change a rule
26
+
27
+ 1. Write the smallest fixture that should match, and one that should not.
28
+ 2. Add or extend a test in `tests/cli.test.mjs` before you celebrate the regex.
29
+ 3. Change `scanner.mjs`.
30
+ 4. Add the rule to [the catalog](07-rule-catalog.md) in the same change, including what it misses.
31
+ 5. Run `node --test tests/cli.test.mjs`.
32
+ 6. Run `node scripts/generate-proof.mjs` so samples and `eval-results.json` match.
33
+ 7. If the self-audit gate changes, read why before you commit it. A new `NO_GO` on the product itself means the rule hit the product, not only the fixture. Fixtures are ignored. Product tests are not.
34
+
35
+ Do not weaken a test to match a sloppy pattern. Do not special-case this repository inside the scanner. Use `.pramanasutraignore` for example trees, and keep the limitation text.
36
+
37
+ ## Change the report
38
+
39
+ `markdown()` and `html()` must show the same decision, the same location, and the same fix. The tests look for `NO_GO`, a `path:line`, and the remediation sentence. Escaping is not optional: a new interpolated field goes through `escMd` or `escapeHtml`. Add a hostile string to the escape test when you add a field.
40
+
41
+ Keep the report free of remote URLs for CSS, fonts and scripts. It is opened from disk and it is quoted as local.
42
+
43
+ ## Change the docs
44
+
45
+ Edit the numbered Markdown. Do not hand-edit `documents/pramanasutra/html` or the mirrored files under `docs/`. Those are generated.
46
+
47
+ ```bash
48
+ node scripts/build-docs.mjs
49
+ ```
50
+
51
+ The script also writes redirects from the old `docs/handbook/*.html` names. If you rename a page, update the `moved` map in the script or the old URL 404s on Pages.
52
+
53
+ Pages must stay readable without JavaScript: the article HTML is server-side (here, build-time). JavaScript only adds search, theme and copy buttons.
54
+
55
+ ## Checks before a commit that claims a fix
56
+
57
+ ```bash
58
+ node --test tests/cli.test.mjs
59
+ node scripts/ci-gate.mjs
60
+ node scripts/generate-proof.mjs
61
+ node scripts/build-docs.mjs
62
+ ```
63
+
64
+ `ci-gate` runs the tests again. That is deliberate. It is the path CI uses.
65
+
66
+ ## Release
67
+
68
+ Follow [CI and release](12-ci-and-release.md). Version strings that must move together: `package.json`, `CHANGELOG.md`, `CITATION.cff`. The CLI reads the version from `package.json` at runtime, so the help text does not have its own copy. The docs site prints `package.json` too.
69
+
70
+ Do not commit `reports/` or `pramanasutra-reports/`. They are gitignored local output. Do commit `documents/pramanasutra/audit` and `samples`, because those are the public proof.
71
+
72
+ ## Reviewing someone else's change
73
+
74
+ - A new ready-path without a test is a defect.
75
+ - A claim of IDE support, certification, or trademark clearance in a doc page is a defect unless the artifact exists.
76
+ - A dependency added "to make the HTML nicer" needs a third-party notice and a reason that beats the zero-dependency promise. System fonts and inline CSS are the current answer.
77
+ - Generated HTML that does not match the Markdown means the generator was not run. Ask for the rebuild. Do not patch the HTML by hand.
78
+
79
+ ## Secrets
80
+
81
+ Do not commit `.env`, tokens, or a real customer tree as a fixture. The unsafe-names fixture uses punctuation in a file name on purpose. It is not a credential.
@@ -0,0 +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.