pramanasutra 0.0.0-stage → 0.3.2

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 (247) hide show
  1. package/.agents/skills/pramanasutra-access/SKILL.md +34 -0
  2. package/.agents/skills/pramanasutra-api/SKILL.md +34 -0
  3. package/.agents/skills/pramanasutra-data/SKILL.md +34 -0
  4. package/.agents/skills/pramanasutra-defect/SKILL.md +34 -0
  5. package/.agents/skills/pramanasutra-evidence/SKILL.md +34 -0
  6. package/.agents/skills/pramanasutra-flake/SKILL.md +34 -0
  7. package/.agents/skills/pramanasutra-flow/SKILL.md +34 -0
  8. package/.agents/skills/pramanasutra-load/SKILL.md +34 -0
  9. package/.agents/skills/pramanasutra-pipeline/SKILL.md +34 -0
  10. package/.agents/skills/pramanasutra-prime/SKILL.md +38 -0
  11. package/.agents/skills/pramanasutra-regression/SKILL.md +34 -0
  12. package/.agents/skills/pramanasutra-release/SKILL.md +34 -0
  13. package/.agents/skills/pramanasutra-secure/SKILL.md +34 -0
  14. package/.agents/skills/pramanasutra-strategy/SKILL.md +34 -0
  15. package/.agents/skills/pramanasutra-unit/SKILL.md +34 -0
  16. package/.agents/skills/pramanasutra-verify/SKILL.md +34 -0
  17. package/.agents/skills/pramanasutra-visual/SKILL.md +34 -0
  18. package/.claude/agents/pramanasutra-prime.md +7 -0
  19. package/CHANGELOG.md +56 -0
  20. package/LICENSE +201 -0
  21. package/NOTICE +2 -0
  22. package/README.md +138 -2
  23. package/docs/.nojekyll +0 -0
  24. package/docs/00-start-here.html +195 -0
  25. package/docs/01-executive-summary.html +192 -0
  26. package/docs/02-functional-specification.html +199 -0
  27. package/docs/03-architecture.html +233 -0
  28. package/docs/04-technical-reference.html +204 -0
  29. package/docs/05-user-guide.html +232 -0
  30. package/docs/06-cli-and-reports.html +200 -0
  31. package/docs/07-rule-catalog.html +194 -0
  32. package/docs/08-skills-and-agents.html +191 -0
  33. package/docs/09-security-and-privacy.html +192 -0
  34. package/docs/10-legal-and-compliance.html +203 -0
  35. package/docs/11-testing-and-proof.html +197 -0
  36. package/docs/12-ci-and-release.html +208 -0
  37. package/docs/13-roadmap-and-status.html +186 -0
  38. package/docs/14-faq-and-glossary.html +204 -0
  39. package/docs/15-maintainer-guide.html +200 -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 +39 -0
  47. package/docs/audit/report.json +59 -0
  48. package/docs/audit/report.md +80 -0
  49. package/docs/commands.md +13 -0
  50. package/docs/compatibility.md +15 -0
  51. package/docs/configuration.md +3 -0
  52. package/docs/execution-safety.md +3 -0
  53. package/docs/handbook/01-executive-summary.html +1 -0
  54. package/docs/handbook/01-executive-summary.md +51 -0
  55. package/docs/handbook/02-functional-specification.html +1 -0
  56. package/docs/handbook/02-functional-specification.md +69 -0
  57. package/docs/handbook/03-technical-specification.html +1 -0
  58. package/docs/handbook/03-technical-specification.md +85 -0
  59. package/docs/handbook/04-architecture.html +1 -0
  60. package/docs/handbook/04-architecture.md +107 -0
  61. package/docs/handbook/05-user-guide.html +1 -0
  62. package/docs/handbook/05-user-guide.md +117 -0
  63. package/docs/handbook/06-cli-reference.html +1 -0
  64. package/docs/handbook/06-cli-reference.md +88 -0
  65. package/docs/handbook/07-security-privacy-legal.html +1 -0
  66. package/docs/handbook/07-security-privacy-legal.md +65 -0
  67. package/docs/handbook/08-testing-and-proof.html +1 -0
  68. package/docs/handbook/08-testing-and-proof.md +83 -0
  69. package/docs/handbook/09-compatibility-and-roadmap.html +1 -0
  70. package/docs/handbook/09-compatibility-and-roadmap.md +53 -0
  71. package/docs/handbook/10-contributor-guide.html +1 -0
  72. package/docs/handbook/10-contributor-guide.md +64 -0
  73. package/docs/handbook/11-glossary-and-faq.html +1 -0
  74. package/docs/handbook/11-glossary-and-faq.md +52 -0
  75. package/docs/handbook/12-rule-catalog.html +1 -0
  76. package/docs/handbook/12-rule-catalog.md +65 -0
  77. package/docs/handbook/README.md +40 -0
  78. package/docs/handbook/index.html +1 -0
  79. package/docs/index.html +195 -0
  80. package/docs/legal/trademark-and-name-clearance.html +1 -0
  81. package/docs/legal/trademark-and-name-clearance.md +32 -0
  82. package/docs/master-claude-prompt.md +483 -0
  83. package/docs/proof/eval-results.json +91 -0
  84. package/docs/proof/test-results.txt +51 -0
  85. package/docs/quality-gates.md +10 -0
  86. package/docs/report-schema.md +22 -0
  87. package/docs/roadmap.md +3 -0
  88. package/docs/robots.txt +22 -0
  89. package/docs/samples/clean-project/report.html +29 -0
  90. package/docs/samples/clean-project/report.json +45 -0
  91. package/docs/samples/clean-project/report.md +67 -0
  92. package/docs/samples/focused-test/report.html +29 -0
  93. package/docs/samples/focused-test/report.json +60 -0
  94. package/docs/samples/focused-test/report.md +74 -0
  95. package/docs/samples/missing-ci/report.html +29 -0
  96. package/docs/samples/missing-ci/report.json +59 -0
  97. package/docs/samples/missing-ci/report.md +75 -0
  98. package/docs/samples/missing-tests/report.html +29 -0
  99. package/docs/samples/missing-tests/report.json +59 -0
  100. package/docs/samples/missing-tests/report.md +75 -0
  101. package/docs/samples/multi-language/report.html +33 -0
  102. package/docs/samples/multi-language/report.json +116 -0
  103. package/docs/samples/multi-language/report.md +110 -0
  104. package/docs/samples/unsafe-names/report.html +29 -0
  105. package/docs/samples/unsafe-names/report.json +61 -0
  106. package/docs/samples/unsafe-names/report.md +75 -0
  107. package/docs/server-deployment.md +3 -0
  108. package/docs/sitemap.xml +20 -0
  109. package/docs/standards.md +12 -0
  110. package/docs/status.md +20 -0
  111. package/docs/troubleshooting.md +7 -0
  112. package/docs/trust-model.md +3 -0
  113. package/documents/pramanasutra/00-start-here.md +85 -0
  114. package/documents/pramanasutra/01-executive-summary.md +61 -0
  115. package/documents/pramanasutra/02-functional-specification.md +90 -0
  116. package/documents/pramanasutra/03-architecture.md +102 -0
  117. package/documents/pramanasutra/04-technical-reference.md +121 -0
  118. package/documents/pramanasutra/05-user-guide.md +152 -0
  119. package/documents/pramanasutra/06-cli-and-reports.md +79 -0
  120. package/documents/pramanasutra/07-rule-catalog.md +79 -0
  121. package/documents/pramanasutra/08-skills-and-agents.md +68 -0
  122. package/documents/pramanasutra/09-security-and-privacy.md +73 -0
  123. package/documents/pramanasutra/10-legal-and-compliance.md +72 -0
  124. package/documents/pramanasutra/11-testing-and-proof.md +72 -0
  125. package/documents/pramanasutra/12-ci-and-release.md +89 -0
  126. package/documents/pramanasutra/13-roadmap-and-status.md +68 -0
  127. package/documents/pramanasutra/14-faq-and-glossary.md +81 -0
  128. package/documents/pramanasutra/15-maintainer-guide.md +81 -0
  129. package/documents/pramanasutra/README.md +11 -0
  130. package/documents/pramanasutra/audit/report.html +39 -0
  131. package/documents/pramanasutra/audit/report.json +59 -0
  132. package/documents/pramanasutra/audit/report.md +80 -0
  133. package/documents/pramanasutra/html/00-start-here.html +195 -0
  134. package/documents/pramanasutra/html/01-executive-summary.html +192 -0
  135. package/documents/pramanasutra/html/02-functional-specification.html +199 -0
  136. package/documents/pramanasutra/html/03-architecture.html +233 -0
  137. package/documents/pramanasutra/html/04-technical-reference.html +204 -0
  138. package/documents/pramanasutra/html/05-user-guide.html +232 -0
  139. package/documents/pramanasutra/html/06-cli-and-reports.html +200 -0
  140. package/documents/pramanasutra/html/07-rule-catalog.html +194 -0
  141. package/documents/pramanasutra/html/08-skills-and-agents.html +191 -0
  142. package/documents/pramanasutra/html/09-security-and-privacy.html +192 -0
  143. package/documents/pramanasutra/html/10-legal-and-compliance.html +203 -0
  144. package/documents/pramanasutra/html/11-testing-and-proof.html +197 -0
  145. package/documents/pramanasutra/html/12-ci-and-release.html +208 -0
  146. package/documents/pramanasutra/html/13-roadmap-and-status.html +186 -0
  147. package/documents/pramanasutra/html/14-faq-and-glossary.html +204 -0
  148. package/documents/pramanasutra/html/15-maintainer-guide.html +200 -0
  149. package/documents/pramanasutra/html/audit/report.html +39 -0
  150. package/documents/pramanasutra/html/audit/report.json +59 -0
  151. package/documents/pramanasutra/html/audit/report.md +80 -0
  152. package/documents/pramanasutra/html/index.html +195 -0
  153. package/documents/pramanasutra/html/proof/eval-results.json +91 -0
  154. package/documents/pramanasutra/html/proof/test-results.txt +51 -0
  155. package/documents/pramanasutra/html/robots.txt +22 -0
  156. package/documents/pramanasutra/html/samples/clean-project/report.html +29 -0
  157. package/documents/pramanasutra/html/samples/clean-project/report.json +45 -0
  158. package/documents/pramanasutra/html/samples/clean-project/report.md +67 -0
  159. package/documents/pramanasutra/html/samples/focused-test/report.html +29 -0
  160. package/documents/pramanasutra/html/samples/focused-test/report.json +60 -0
  161. package/documents/pramanasutra/html/samples/focused-test/report.md +74 -0
  162. package/documents/pramanasutra/html/samples/missing-ci/report.html +29 -0
  163. package/documents/pramanasutra/html/samples/missing-ci/report.json +59 -0
  164. package/documents/pramanasutra/html/samples/missing-ci/report.md +75 -0
  165. package/documents/pramanasutra/html/samples/missing-tests/report.html +29 -0
  166. package/documents/pramanasutra/html/samples/missing-tests/report.json +59 -0
  167. package/documents/pramanasutra/html/samples/missing-tests/report.md +75 -0
  168. package/documents/pramanasutra/html/samples/multi-language/report.html +33 -0
  169. package/documents/pramanasutra/html/samples/multi-language/report.json +116 -0
  170. package/documents/pramanasutra/html/samples/multi-language/report.md +110 -0
  171. package/documents/pramanasutra/html/samples/unsafe-names/report.html +29 -0
  172. package/documents/pramanasutra/html/samples/unsafe-names/report.json +61 -0
  173. package/documents/pramanasutra/html/samples/unsafe-names/report.md +75 -0
  174. package/documents/pramanasutra/html/sitemap.xml +20 -0
  175. package/documents/pramanasutra/proof/eval-results.json +91 -0
  176. package/documents/pramanasutra/proof/test-results.txt +51 -0
  177. package/documents/pramanasutra/samples/clean-project/report.html +29 -0
  178. package/documents/pramanasutra/samples/clean-project/report.json +45 -0
  179. package/documents/pramanasutra/samples/clean-project/report.md +67 -0
  180. package/documents/pramanasutra/samples/focused-test/report.html +29 -0
  181. package/documents/pramanasutra/samples/focused-test/report.json +60 -0
  182. package/documents/pramanasutra/samples/focused-test/report.md +74 -0
  183. package/documents/pramanasutra/samples/missing-ci/report.html +29 -0
  184. package/documents/pramanasutra/samples/missing-ci/report.json +59 -0
  185. package/documents/pramanasutra/samples/missing-ci/report.md +75 -0
  186. package/documents/pramanasutra/samples/missing-tests/report.html +29 -0
  187. package/documents/pramanasutra/samples/missing-tests/report.json +59 -0
  188. package/documents/pramanasutra/samples/missing-tests/report.md +75 -0
  189. package/documents/pramanasutra/samples/multi-language/report.html +33 -0
  190. package/documents/pramanasutra/samples/multi-language/report.json +116 -0
  191. package/documents/pramanasutra/samples/multi-language/report.md +110 -0
  192. package/documents/pramanasutra/samples/unsafe-names/report.html +29 -0
  193. package/documents/pramanasutra/samples/unsafe-names/report.json +61 -0
  194. package/documents/pramanasutra/samples/unsafe-names/report.md +75 -0
  195. package/examples/dotnet-app/README.md +3 -0
  196. package/examples/evidence/passing.json +12 -0
  197. package/examples/java-service/README.md +3 -0
  198. package/examples/mobile/README.md +3 -0
  199. package/examples/python-api/README.md +3 -0
  200. package/examples/release-policy/README.md +3 -0
  201. package/examples/sample-app/README.md +3 -0
  202. package/examples/sample-app/package.json +8 -0
  203. package/examples/sample-app/src/math.js +1 -0
  204. package/examples/sample-app/tests/math.test.js +5 -0
  205. package/examples/sample-output/clean-project/report.html +29 -0
  206. package/examples/sample-output/clean-project/report.json +45 -0
  207. package/examples/sample-output/clean-project/report.md +67 -0
  208. package/examples/sample-output/focused-test/report.html +29 -0
  209. package/examples/sample-output/focused-test/report.json +60 -0
  210. package/examples/sample-output/focused-test/report.md +74 -0
  211. package/examples/sample-output/missing-ci/report.html +29 -0
  212. package/examples/sample-output/missing-ci/report.json +59 -0
  213. package/examples/sample-output/missing-ci/report.md +75 -0
  214. package/examples/sample-output/missing-tests/report.html +29 -0
  215. package/examples/sample-output/missing-tests/report.json +59 -0
  216. package/examples/sample-output/missing-tests/report.md +75 -0
  217. package/examples/sample-output/multi-language/report.html +33 -0
  218. package/examples/sample-output/multi-language/report.json +116 -0
  219. package/examples/sample-output/multi-language/report.md +110 -0
  220. package/examples/sample-output/unsafe-names/report.html +29 -0
  221. package/examples/sample-output/unsafe-names/report.json +61 -0
  222. package/examples/sample-output/unsafe-names/report.md +75 -0
  223. package/llms.txt +60 -0
  224. package/package.json +65 -4
  225. package/packages/cli/bin/pramanasutra.mjs +90 -0
  226. package/packages/cli/lib/evidence.mjs +46 -0
  227. package/packages/cli/lib/installer.mjs +39 -0
  228. package/packages/cli/lib/policy.mjs +33 -0
  229. package/packages/cli/lib/report.mjs +169 -0
  230. package/packages/cli/lib/scanner.mjs +146 -0
  231. package/policies/recommended.json +11 -0
  232. package/policies/strict.json +12 -0
  233. package/templates/defect-report.md +11 -0
  234. package/templates/qa-strategy.md +9 -0
  235. package/templates/release-notes.md +9 -0
  236. package/templates/release-readiness.md +9 -0
  237. package/templates/rollback-plan.md +7 -0
  238. package/templates/test-evidence.json +11 -0
  239. package/templates/test-plan.md +4 -0
  240. package/templates/traceability-matrix.csv +1 -0
  241. package/workflows/create-test-plan.md +9 -0
  242. package/workflows/implement-tests.md +9 -0
  243. package/workflows/inspect-project.md +9 -0
  244. package/workflows/investigate-failure.md +9 -0
  245. package/workflows/post-release-observability.md +9 -0
  246. package/workflows/release-readiness.md +9 -0
  247. package/workflows/verify-regression.md +9 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,56 @@
1
+ # Changelog
2
+
3
+ ## 0.3.2 - 2026-11-06
4
+
5
+ ### Added
6
+ - `.github/workflows/publish.yml` publishes `pramanasutra` when a GitHub Release is published. Login is npm trusted publishing (OIDC). There is no stored npm token. `ci.yml` still only runs tests.
7
+
8
+ ### Fixed
9
+ - `@vatsalshah/pramanasutra` cannot be published. npm user `shahvatsal` does not own that scope (registry 404).
10
+ - `@shahvatsal/pramanasutra@0.3.1` was published, then deleted, because the install name showed the scope. The public package name is the unscoped name `pramanasutra`.
11
+ - `bin` path no longer starts with `./`, which npm 11 rewrote and reported as removed.
12
+
13
+ ## 0.3.0 - 2026-11-06
14
+
15
+ ### Added
16
+ - Canonical documentation pack at `documents/pramanasutra/`: executive, functional, architecture, technical, user, rules, skills, security, legal, proof, CI, roadmap, FAQ and maintainer pages, in Markdown and generated HTML.
17
+ - Self-audit of this repository as `documents/pramanasutra/audit/report.md` and `report.html`, produced by the CLI from a real unit-test run.
18
+ - Sample audits copied beside the docs. Evidence counts are now a section in both Markdown and HTML reports, not only a state word.
19
+ - `.pramanasutraignore` so labeled bad fixtures are excluded from a scan and the exclusion is written into the report. `..` entries are rejected.
20
+ - `scripts/ci-gate.mjs`: CI runs the tests, parses the summary, and release-checks this repo. It exits 1 if it cannot read the counts.
21
+ - Skip detection for `test.todo` / `xtest`, `pytest.skip()`, `pytest.xfail()`, `self.skipTest` and `raise unittest.SkipTest`.
22
+ - Binary test files (NUL byte) are skipped and the scan is marked partial, so the gate cannot go ready.
23
+ - `version` and `--version`. `doctor` includes the version from `package.json`.
24
+
25
+ ### Fixed
26
+ - Required CI no longer requests macOS. Run 41884015367 failed because both macOS jobs were cancelled in the queue with zero steps. A follow-up workflow on `macos-14` was cancelled the same way in about a second, with no runner (run 42098256304), so that workflow was removed. Ubuntu and Windows stay required. macOS execution is unverified in Actions.
27
+ - `--help` and `--version` were rejected as unknown options.
28
+ - Markdown reports escape `<` and `>` so a hostile path is not raw HTML on GitHub.
29
+ - The malicious-filename escape test no longer depends on creating a file the OS forbids, so it runs on Windows.
30
+
31
+ ### Changed
32
+ - Reports lead with how to read them, a findings table, the test files seen, and the workflows seen.
33
+ - `actions/checkout` and `actions/setup-node` are pinned to commit SHAs.
34
+ - Documentation HTML does not load a chart library from a CDN.
35
+
36
+ ## 0.2.0 - 2026-11-04
37
+
38
+ ### Added
39
+ - `release-check --evidence <file>` and `verify --evidence <file>`: schema-validated test-evidence ingestion. The gate can now reach `READY_FOR_HUMAN_APPROVAL`, only with passing `local-executed` or `ci-ingested` evidence and clean static checks.
40
+ - `--policy <file>`: fail-closed policy loader (unknown keys rejected, safety flags cannot be weakened). New policy keys `blockOnSkippedTests`, `requireCi`, `requireLicense`, `requireTests`.
41
+ - Reports are now written by default to `./pramanasutra-reports` as `report.md`, `report.html` and `report.json`; `--no-report` disables. Redesigned Markdown and HTML reports (summary, capabilities, findings with fixes, gate reasons, limitations; light/dark, printable).
42
+ - Skip detection for pytest, unittest, JUnit and Go; test-file detection for Java, Kotlin, C#, Swift, Scala, PHP, Dart and Ruby naming conventions.
43
+ - Six labeled fixtures, generated sample reports (`examples/sample-output`), captured test results and fixture evaluation (`docs/proof`).
44
+ - Full handbook (13 pages) and a generated HTML documentation site in `docs/`; `llms.txt`, `CITATION.cff`, `THIRD_PARTY_NOTICES.md`, `SUPPORT.md`, CodeQL and Dependabot.
45
+
46
+ ### Fixed
47
+ - CI failed on Windows/Node 20 because `node --test tests/*.test.mjs` depended on shell globbing; the test file is now named explicitly.
48
+ - `scan` no longer recurses into its own `pramanasutra-reports` output.
49
+ - Reports no longer print "tests not run" ambiguously when evidence is supplied.
50
+
51
+ ### Changed
52
+ - GitHub Actions bumped to `checkout@v7`, `setup-node@v7`, `codeql-action@v4`.
53
+
54
+ ## 0.1.0 - Starter snapshot
55
+
56
+ - Dependency-free local QA scanner, conservative release gate, Markdown/JSON/HTML reports, portable specialist skills, IDE skill installer and CLI tests.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,2 @@
1
+ PramanaSutra AI — created by Vatsal Shah.
2
+ Original project identity and codebase. Contributors retain attribution according to applicable license terms.
package/README.md CHANGED
@@ -1,3 +1,139 @@
1
- # Temporary Holding Version
1
+ <div align="center">
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ # PramanaSutra AI
4
+
5
+ ### QA and release-readiness agent for Claude Code, Cursor, Codex, GitHub Copilot and Gemini CLI
6
+
7
+ Evidence-first review with `file:line` findings. The audit is a Markdown file and an HTML file, plus JSON for tools. No extra API key.
8
+
9
+ [![CI](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/workflows/ci.yml/badge.svg)](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/workflows/ci.yml)
10
+ [![CodeQL](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/workflows/codeql.yml/badge.svg)](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/workflows/codeql.yml)
11
+ [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
12
+ ![Node](https://img.shields.io/badge/node-%E2%89%A520-339933)
13
+ ![Runtime dependencies](https://img.shields.io/badge/runtime%20dependencies-0-brightgreen)
14
+
15
+ [**Documentation**](https://shahvatsalofficial.github.io/pramanasutra-ai/) · [Start here](documents/pramanasutra/00-start-here.md) · [HTML docs](documents/pramanasutra/html/index.html) · [This repo's audit (Markdown)](documents/pramanasutra/audit/report.md) · [This repo's audit (HTML)](documents/pramanasutra/audit/report.html) · [Proof](documents/pramanasutra/11-testing-and-proof.md)
16
+
17
+ </div>
18
+
19
+ ---
20
+
21
+ PramanaSutra AI (from *pramana*, "valid proof") is an open-source **QA and release-readiness agent**. It ships 17 portable [Agent Skills](https://agentskills.io/specification), led by **PramanaSutra Prime**, and a deterministic offline CLI. The CLI reads a repository, does not run its tests, and writes **`report.md`**, **`report.html`** and **`report.json`** of the same audit. The release gate is `NO_GO`, `REVIEW_REQUIRED` or `READY_FOR_HUMAN_APPROVAL`. A ready result still needs a person. It is never a deploy order.
22
+
23
+ > **No extra API key.** Skills use the IDE's own model. The CLI makes no network calls and has no telemetry.
24
+
25
+ Created by **[Vatsal Shah](https://github.com/shahvatsalofficial)**. Apache-2.0. Version 0.3.2. Public repository: [github.com/shahvatsalofficial/pramanasutra-ai](https://github.com/shahvatsalofficial/pramanasutra-ai).
26
+
27
+ ## Why
28
+
29
+ | Problem | What PramanaSutra does |
30
+ |---|---|
31
+ | An assistant says the tests passed without running them | Static findings and supplied evidence stay in different sections. The gate cannot go ready without a valid evidence file |
32
+ | `test.only` slips into main | `FOCUSED_TEST` cites `file:line` and the default policy returns `NO_GO` |
33
+ | A green board hides what was not checked | Every report lists capabilities as executed, not-run, not-supported, or evidence-supplied |
34
+ | Another key, another bill | Zero runtime dependencies |
35
+
36
+ ## Proof
37
+
38
+ | Evidence | Result |
39
+ |---|---|
40
+ | Unit tests on the captured Windows run | **38 tests, 37 passed, 0 failed, 1 skipped** (symlink creation was prohibited). Output: [proof/test-results.txt](documents/pramanasutra/proof/test-results.txt) |
41
+ | Labeled fixtures | 6 of 6 match the expected rules and decision. Precision and recall are 1 **on those author-written fixtures**, which is a regression lock, not field accuracy. [eval-results.json](documents/pramanasutra/proof/eval-results.json) |
42
+ | This repository, with that test output as evidence | `READY_FOR_HUMAN_APPROVAL`, 0 findings, after `fixtures/` and `examples/sample-app/` were excluded and named in the report. [audit Markdown](documents/pramanasutra/audit/report.md), [audit HTML](documents/pramanasutra/audit/report.html) |
43
+ | Required CI | Ubuntu and Windows, Node 20 and 22, then the same release gate. [Actions](https://github.com/shahvatsalofficial/pramanasutra-ai/actions) |
44
+ | macOS in GitHub Actions | Not scheduled. Jobs were cancelled with zero steps: [41884015367](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/runs/41884015367) (queued) and [42098256304](https://github.com/shahvatsalofficial/pramanasutra-ai/actions/runs/42098256304) (cancelled in about a second, no runner). That is not a test result. Do not read it as a pass or a product failure |
45
+ | Runtime dependencies | 0 |
46
+ | Network calls by the CLI | 0 |
47
+
48
+ Not yet proven: live behavior in each IDE, accuracy on large real repositories, an independent security review, trademark clearance. Details: [testing and proof](documents/pramanasutra/11-testing-and-proof.md) and [legal](documents/pramanasutra/10-legal-and-compliance.md).
49
+
50
+ npm name: [`pramanasutra`](https://www.npmjs.com/package/pramanasutra). `@shahvatsal/pramanasutra` was deleted. `@vatsalshah/pramanasutra` cannot be published by npm user `shahvatsal` (registry 404). Until `npm view pramanasutra version` prints `0.3.2`, install from GitHub.
51
+
52
+ ## 60-second start
53
+
54
+ Node.js 20+.
55
+
56
+ ```bash
57
+ npx github:shahvatsalofficial/pramanasutra-ai release-check --path .
58
+ ```
59
+
60
+ After the publish workflow has put `0.3.2` on npm, the same command is `npx pramanasutra release-check --path .`.
61
+
62
+ Writes `./pramanasutra-reports/report.md`, `report.html` and `report.json`. Exit `2` is `NO_GO`, `3` is `REVIEW_REQUIRED`, `0` is `READY_FOR_HUMAN_APPROVAL`.
63
+
64
+ ```bash
65
+ npx github:shahvatsalofficial/pramanasutra-ai init --ide claude --target .
66
+ ```
67
+
68
+ `--ide` is `claude`, `cursor`, `codex`, `gemini`, `copilot`, `generic` or `all`.
69
+
70
+ From a clone:
71
+
72
+ ```bash
73
+ node packages/cli/bin/pramanasutra.mjs doctor
74
+ node packages/cli/bin/pramanasutra.mjs release-check --path fixtures/focused-test --no-report
75
+ node packages/cli/bin/pramanasutra.mjs release-check --path fixtures/clean-project --evidence fixtures/clean-project/evidence.json --no-report
76
+ npm test
77
+ ```
78
+
79
+ The first check exits 2. The second exits 0.
80
+
81
+ ## Reports
82
+
83
+ Every `scan` and `release-check` writes the three files together unless you pass `--no-report`. Default directory: `./pramanasutra-reports` in the current working directory, not inside the scanned tree.
84
+
85
+ | File | Use |
86
+ |---|---|
87
+ | `report.md` | Pull requests and plain reading |
88
+ | `report.html` | Browser. No remote assets. Light, dark, print |
89
+ | `report.json` | CI. Schema 1.0.0 |
90
+
91
+ Open a finished example: [Markdown](documents/pramanasutra/samples/focused-test/report.md), [HTML](documents/pramanasutra/samples/focused-test/report.html). How to read them: [CLI and reports](documents/pramanasutra/06-cli-and-reports.md).
92
+
93
+ ## Release gate
94
+
95
+ | Decision | Exit | Meaning |
96
+ |---|---|---|
97
+ | `NO_GO` | 2 | Blocking static finding, or supplied evidence shows failure |
98
+ | `REVIEW_REQUIRED` | 3 | Evidence missing, untrusted, empty, or scan incomplete, or policy requires tests, CI or a license that were not found |
99
+ | `READY_FOR_HUMAN_APPROVAL` | 0 | Passing `local-executed` or `ci-ingested` evidence and clean policy checks. A human still approves |
100
+
101
+ `external-unverified` evidence cannot reach ready. The gate object always has `automatedDeploymentAuthorized: false`.
102
+
103
+ ## Skills
104
+
105
+ `pramanasutra-prime` plus strategy, unit, flow, api, visual, access, load, data, secure, regression, flake, defect, pipeline, release, evidence, verify. Canonical source: [`.agents/skills`](.agents/skills). Catalog: [skills and agents](documents/pramanasutra/08-skills-and-agents.md).
106
+
107
+ | Host | Skill path | Verified live? |
108
+ |---|---|---|
109
+ | Claude Code | `.claude/skills` | No |
110
+ | Cursor | `.cursor/skills` | No |
111
+ | OpenAI Codex | `.agents/skills` | No |
112
+ | GitHub Copilot | `.github/skills` | No |
113
+ | Gemini CLI | `.gemini/skills` | No |
114
+
115
+ ## Documentation
116
+
117
+ The pack a future reader, a site, or a crawler should use is [documents/pramanasutra](documents/pramanasutra/00-start-here.md). HTML of the same pages: [documents/pramanasutra/html](documents/pramanasutra/html/index.html) and [the GitHub Pages site](https://shahvatsalofficial.github.io/pramanasutra-ai/).
118
+
119
+ | | |
120
+ |---|---|
121
+ | Executive | [01](documents/pramanasutra/01-executive-summary.md) |
122
+ | Functional spec | [02](documents/pramanasutra/02-functional-specification.md) |
123
+ | Architecture | [03](documents/pramanasutra/03-architecture.md) |
124
+ | Technical reference | [04](documents/pramanasutra/04-technical-reference.md) |
125
+ | User guide | [05](documents/pramanasutra/05-user-guide.md) |
126
+ | Security | [09](documents/pramanasutra/09-security-and-privacy.md) |
127
+ | Legal | [10](documents/pramanasutra/10-legal-and-compliance.md) |
128
+ | Roadmap | [13](documents/pramanasutra/13-roadmap-and-status.md) |
129
+ | FAQ | [14](documents/pramanasutra/14-faq-and-glossary.md) |
130
+
131
+ Machine-readable summary: [llms.txt](llms.txt).
132
+
133
+ ## Legal
134
+
135
+ Apache-2.0 ([LICENSE](LICENSE), [NOTICE](NOTICE)). No runtime dependencies ([third-party notices](THIRD_PARTY_NOTICES.md)). Claude, Cursor, OpenAI, Codex, GitHub, Copilot, Gemini and other product names belong to their owners. This project is not affiliated with or endorsed by them. "PramanaSutra" is not claimed as a registered trademark and has not been clearance-searched. Output is decision support, not a certification and not legal advice. Provided "AS IS". Full notice: [legal and compliance](documents/pramanasutra/10-legal-and-compliance.md).
136
+
137
+ ## Contributing
138
+
139
+ [Maintainer guide](documents/pramanasutra/15-maintainer-guide.md), [CONTRIBUTING.md](CONTRIBUTING.md), [SECURITY.md](SECURITY.md). Citation: [CITATION.cff](CITATION.cff).
package/docs/.nojekyll ADDED
File without changes