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
@@ -0,0 +1,183 @@
1
+ /* PramanaSutra AI documentation site. Hand-written, no framework. */
2
+ :root {
3
+ --bg: #fbfbfd;
4
+ --surface: #ffffff;
5
+ --surface-2: #f2f3f8;
6
+ --text: #15181e;
7
+ --muted: #565e6e;
8
+ --line: #e1e4ec;
9
+ --accent: #4338ca;
10
+ --accent-ink: #ffffff;
11
+ --accent-soft: #eceafd;
12
+ --ok: #17794a;
13
+ --warn: #8a5a00;
14
+ --code-bg: #f3f4f9;
15
+ --shadow: 0 1px 2px rgba(20, 24, 40, .06), 0 8px 24px rgba(20, 24, 40, .06);
16
+ --radius: 12px;
17
+ --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
18
+ --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
19
+ color-scheme: light;
20
+ }
21
+ @media (prefers-color-scheme: dark) {
22
+ :root:not([data-theme="light"]) {
23
+ --bg: #0c0f14; --surface: #131820; --surface-2: #1a202a; --text: #e8ebf2; --muted: #a2abbb; --line: #262e3b;
24
+ --accent: #a5a8ff; --accent-ink: #0c0f14; --accent-soft: #1f2340; --ok: #5fd39a; --warn: #f0c36a; --code-bg: #10151d;
25
+ --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35); color-scheme: dark;
26
+ }
27
+ }
28
+ :root[data-theme="dark"] {
29
+ --bg: #0c0f14; --surface: #131820; --surface-2: #1a202a; --text: #e8ebf2; --muted: #a2abbb; --line: #262e3b;
30
+ --accent: #a5a8ff; --accent-ink: #0c0f14; --accent-soft: #1f2340; --ok: #5fd39a; --warn: #f0c36a; --code-bg: #10151d;
31
+ --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35); color-scheme: dark;
32
+ }
33
+
34
+ *, *::before, *::after { box-sizing: border-box; }
35
+ html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
36
+ body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); text-rendering: optimizeLegibility; }
37
+ a { color: var(--accent); text-underline-offset: 3px; }
38
+ a:hover { text-decoration-thickness: 2px; }
39
+ :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
40
+ code, pre { font-family: var(--mono); font-size: .9em; }
41
+ :not(pre) > code { background: var(--code-bg); border: 1px solid var(--line); padding: .1em .38em; border-radius: 6px; overflow-wrap: anywhere; }
42
+ img, svg { max-width: 100%; }
43
+
44
+ .skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
45
+ .skip:focus { left: 8px; }
46
+
47
+ /* Top bar */
48
+ .topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
49
+ .topbar-inner { display: flex; align-items: center; gap: 16px; max-width: 1360px; margin: 0 auto; padding: 10px 20px; }
50
+ .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; color: var(--text); text-decoration: none; margin-right: auto; }
51
+ .brand svg { color: var(--accent); }
52
+ .brand b { color: var(--accent); }
53
+ .top-links { display: flex; gap: 4px; }
54
+ .top-links a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .94rem; }
55
+ .top-links a:hover { background: var(--surface-2); }
56
+ .theme-btn, .menu-btn { font: inherit; font-size: .88rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); padding: 7px 12px; border-radius: 8px; cursor: pointer; }
57
+ .theme-btn:hover, .menu-btn:hover { background: var(--surface-2); }
58
+ .theme-btn .moon { display: none; }
59
+ :root[data-theme="dark"] .theme-btn .sun { display: none; }
60
+ :root[data-theme="dark"] .theme-btn .moon { display: inline; }
61
+ @media (prefers-color-scheme: dark) {
62
+ :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
63
+ :root:not([data-theme="light"]) .theme-btn .moon { display: inline; }
64
+ }
65
+ .menu-btn { display: none; }
66
+
67
+ /* Doc layout */
68
+ .layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 230px; gap: 40px; max-width: 1360px; margin: 0 auto; padding: 28px 20px 64px; }
69
+ .sidebar, .rail { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 92px); overflow: auto; font-size: .92rem; }
70
+ .nav-title { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--muted); margin: 18px 0 8px; }
71
+ .nav-group:first-child .nav-title { margin-top: 0; }
72
+ .sidebar ul, .rail ul { list-style: none; margin: 0; padding: 0; }
73
+ .sidebar a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
74
+ .sidebar a:hover { background: var(--surface-2); }
75
+ .sidebar a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
76
+ .rail a { display: block; padding: 4px 10px; color: var(--muted); text-decoration: none; border-left: 2px solid var(--line); }
77
+ .rail a:hover, .rail a.active { color: var(--accent); border-left-color: var(--accent); }
78
+ .rail .l3 a { padding-left: 22px; font-size: .86rem; }
79
+
80
+ .content { min-width: 0; }
81
+ .prose { max-width: 78ch; }
82
+ .prose h1 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; margin: .2em 0 .35em; }
83
+ .prose h2 { font-size: 1.5rem; letter-spacing: -.018em; margin: 2.2em 0 .6em; padding-top: 1.1em; border-top: 1px solid var(--line); line-height: 1.25; }
84
+ .prose h3 { font-size: 1.15rem; margin: 1.7em 0 .5em; }
85
+ .prose h4 { font-size: 1rem; margin: 1.4em 0 .4em; }
86
+ .prose h2 .anchor, .prose h3 .anchor { margin-left: .4em; opacity: 0; text-decoration: none; color: var(--muted); font-weight: 400; }
87
+ .prose h2:hover .anchor, .prose h3:hover .anchor, .anchor:focus { opacity: 1; }
88
+ .crumbs { color: var(--muted); font-size: .86rem; margin: 0; }
89
+ .crumbs a { color: var(--muted); }
90
+ .lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 .6em; }
91
+ .meta { color: var(--muted); font-size: .84rem; margin: 0 0 1.6em; }
92
+ .prose p, .prose li { overflow-wrap: break-word; }
93
+ .prose ul, .prose ol { padding-left: 1.4em; }
94
+ .prose li { margin: .3em 0; }
95
+ .prose li > ul, .prose li > ol { margin: .3em 0; }
96
+ .prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
97
+ blockquote { margin: 1.4em 0; padding: 14px 18px; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
98
+ blockquote p { margin: 0; }
99
+
100
+ /* Tables */
101
+ .table-wrap { overflow-x: auto; margin: 1.3em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
102
+ table { border-collapse: collapse; width: 100%; font-size: .93rem; }
103
+ th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
104
+ th { background: var(--surface-2); font-weight: 650; white-space: nowrap; position: sticky; top: 0; }
105
+ tbody tr:last-child td { border-bottom: 0; }
106
+ tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
107
+
108
+ /* Code */
109
+ .code { position: relative; margin: 1.3em 0; }
110
+ pre { margin: 0; overflow: auto; background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; line-height: 1.55; tab-size: 2; }
111
+ .code pre { padding-right: 76px; }
112
+ .copy { position: absolute; top: 8px; right: 8px; font: inherit; font-size: .78rem; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
113
+ .copy:hover { background: var(--surface-2); }
114
+ figure.diagram { margin: 1.6em 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
115
+ figure.diagram figcaption { color: var(--muted); font-size: .8rem; margin-top: 8px; }
116
+ pre.mermaid { background: transparent; border: 0; padding: 0; text-align: center; white-space: pre; }
117
+ pre.mermaid[data-processed="true"] ~ figcaption { display: none; }
118
+
119
+ /* Footer */
120
+ .footer { border-top: 1px solid var(--line); background: var(--surface); }
121
+ .footer-inner { max-width: 1360px; margin: 0 auto; padding: 28px 20px; color: var(--muted); font-size: .9rem; }
122
+ .footer p { margin: 0 0 8px; }
123
+ .footer .fine { font-size: .8rem; max-width: 100ch; }
124
+
125
+ /* Landing */
126
+ .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
127
+ .landing section { padding: 56px 0; }
128
+ .landing h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; margin: 0 0 20px; }
129
+ .hero { padding: 84px 0 56px !important; background:
130
+ radial-gradient(900px 380px at 12% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
131
+ radial-gradient(700px 320px at 95% 0%, color-mix(in srgb, var(--ok) 12%, transparent), transparent 70%); }
132
+ .eyebrow { display: inline-block; margin: 0 0 18px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--muted); background: var(--surface); }
133
+ .hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; max-width: 18ch; }
134
+ .hero-lede { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--muted); max-width: 62ch; margin: 0 0 28px; }
135
+ .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
136
+ .btn { display: inline-block; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
137
+ .btn:hover { background: var(--surface-2); }
138
+ .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
139
+ .btn.primary:hover { filter: brightness(1.08); }
140
+ .btn.ghost { background: transparent; }
141
+ .hero-code { max-width: 560px; margin: 0; }
142
+ .hero-note { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
143
+ .stats { padding: 0 !important; }
144
+ .stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
145
+ .stats li { padding: 20px 16px; text-align: center; border-right: 1px solid var(--line); }
146
+ .stats li:last-child { border-right: 0; }
147
+ .stats .num { display: block; font-size: 1.9rem; font-weight: 750; letter-spacing: -.03em; color: var(--accent); }
148
+ .stats .lbl { display: block; color: var(--muted); font-size: .82rem; }
149
+ .band { background: var(--surface-2); border-block: 1px solid var(--line); }
150
+ .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
151
+ .cards.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
152
+ .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
153
+ .card h3 { margin: 0 0 8px; font-size: 1.05rem; }
154
+ .card p { margin: 0; color: var(--muted); font-size: .95rem; }
155
+ .card > a { display: inline-block; margin-top: 12px; font-weight: 600; }
156
+ a.card.link { text-decoration: none; color: inherit; transition: transform .15s ease, border-color .15s ease; }
157
+ a.card.link:hover { transform: translateY(-2px); border-color: var(--accent); }
158
+ .honest { margin-top: 20px; padding: 14px 18px; border: 1px dashed var(--warn); border-radius: var(--radius); background: var(--surface); }
159
+ .muted { color: var(--muted); font-size: .9rem; }
160
+ .faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; margin: 10px 0; }
161
+ .faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
162
+ .faq details p { margin: 0 0 14px; color: var(--muted); }
163
+
164
+ /* Responsive */
165
+ @media (max-width: 1100px) { .layout { grid-template-columns: 240px minmax(0, 1fr); } .rail { display: none; } }
166
+ @media (max-width: 820px) {
167
+ .menu-btn { display: inline-block; }
168
+ .top-links { display: none; }
169
+ .layout { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
170
+ .sidebar { display: none; position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); }
171
+ .sidebar.open { display: block; }
172
+ .stats ul { grid-template-columns: repeat(2, 1fr); }
173
+ .stats li { border-bottom: 1px solid var(--line); }
174
+ .hero { padding-top: 52px !important; }
175
+ }
176
+ @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
177
+ @media print {
178
+ .topbar, .sidebar, .rail, .footer, .copy, .skip { display: none !important; }
179
+ .layout { display: block; padding: 0; }
180
+ body { background: #fff; color: #000; }
181
+ a { color: #000; }
182
+ pre, .table-wrap { break-inside: avoid; }
183
+ }
@@ -0,0 +1,79 @@
1
+ // PramanaSutra AI docs: theme toggle, mobile nav, copy buttons, active TOC, Mermaid rendering.
2
+ const MERMAID_SRC = 'https://cdn.jsdelivr.net/npm/mermaid@11.4.0/dist/mermaid.esm.min.mjs';
3
+ const root = document.documentElement;
4
+
5
+ const store = {
6
+ get: (k) => { try { return localStorage.getItem(k); } catch { return null; } },
7
+ set: (k, v) => { try { localStorage.setItem(k, v); } catch { /* storage unavailable */ } },
8
+ };
9
+
10
+ function currentTheme() {
11
+ return root.getAttribute('data-theme') || (matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
12
+ }
13
+
14
+ document.querySelector('.theme-btn')?.addEventListener('click', () => {
15
+ const next = currentTheme() === 'dark' ? 'light' : 'dark';
16
+ root.setAttribute('data-theme', next);
17
+ store.set('ps-theme', next);
18
+ renderDiagrams();
19
+ });
20
+
21
+ const menu = document.querySelector('.menu-btn');
22
+ const sidebar = document.getElementById('sidebar');
23
+ menu?.addEventListener('click', () => {
24
+ const open = sidebar?.classList.toggle('open');
25
+ menu.setAttribute('aria-expanded', String(Boolean(open)));
26
+ });
27
+
28
+ document.querySelectorAll('.copy').forEach((btn) => {
29
+ btn.addEventListener('click', async () => {
30
+ const code = btn.parentElement?.querySelector('code')?.textContent ?? '';
31
+ try {
32
+ await navigator.clipboard.writeText(code);
33
+ btn.textContent = 'Copied';
34
+ } catch {
35
+ btn.textContent = 'Press Ctrl+C';
36
+ }
37
+ setTimeout(() => { btn.textContent = 'Copy'; }, 1600);
38
+ });
39
+ });
40
+
41
+ const links = [...document.querySelectorAll('.rail a')];
42
+ if (links.length && 'IntersectionObserver' in window) {
43
+ const map = new Map(links.map((a) => [a.getAttribute('href')?.slice(1), a]));
44
+ const io = new IntersectionObserver((entries) => {
45
+ for (const e of entries) {
46
+ if (e.isIntersecting) {
47
+ links.forEach((l) => l.classList.remove('active'));
48
+ map.get(e.target.id)?.classList.add('active');
49
+ }
50
+ }
51
+ }, { rootMargin: '-80px 0px -70% 0px' });
52
+ map.forEach((_a, id) => { const el = id ? document.getElementById(id) : null; if (el) io.observe(el); });
53
+ }
54
+
55
+ const sources = new Map();
56
+ let mermaidApi = null;
57
+ async function renderDiagrams() {
58
+ const nodes = [...document.querySelectorAll('pre.mermaid')];
59
+ if (!nodes.length) return;
60
+ nodes.forEach((n) => {
61
+ if (!sources.has(n)) sources.set(n, n.textContent ?? '');
62
+ n.removeAttribute('data-processed');
63
+ n.textContent = sources.get(n) ?? '';
64
+ });
65
+ try {
66
+ mermaidApi ??= (await import(MERMAID_SRC)).default;
67
+ const dark = currentTheme() === 'dark';
68
+ mermaidApi.initialize({
69
+ startOnLoad: false, securityLevel: 'strict', theme: 'base', fontFamily: 'ui-sans-serif, system-ui, sans-serif',
70
+ themeVariables: dark
71
+ ? { background: '#131820', primaryColor: '#1f2340', primaryTextColor: '#e8ebf2', primaryBorderColor: '#a5a8ff', lineColor: '#a2abbb', secondaryColor: '#1a202a', tertiaryColor: '#131820', edgeLabelBackground: '#131820', textColor: '#e8ebf2', noteBkgColor: '#1a202a', noteTextColor: '#e8ebf2' }
72
+ : { background: '#ffffff', primaryColor: '#eceafd', primaryTextColor: '#15181e', primaryBorderColor: '#4338ca', lineColor: '#565e6e', secondaryColor: '#f2f3f8', tertiaryColor: '#ffffff', edgeLabelBackground: '#ffffff', textColor: '#15181e', noteBkgColor: '#f2f3f8', noteTextColor: '#15181e' },
73
+ });
74
+ await mermaidApi.run({ nodes });
75
+ } catch {
76
+ /* offline or blocked: the diagram source stays visible as text */
77
+ }
78
+ }
79
+ renderDiagrams();
@@ -0,0 +1,39 @@
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="color-scheme" content="light dark"><meta name="description" content="PramanaSutra AI QA and release audit report. Decision support, not a certification."><title>PramanaSutra AI QA &amp; Release Audit Report</title><style>:root{--bg:#f4f1ea;--card:#fffcf7;--ink:#1c1915;--mut:#5c564c;--line:#e4ddd0;--ac:#0f3d3e;--ok:#166534;--warn:#92400e;--bad:#991b1b}
2
+ @media(prefers-color-scheme:dark){:root{--bg:#121410;--card:#1c1f1a;--ink:#f3efe6;--mut:#c4bbaa;--line:#34382f;--ac:#8ec9c4;--ok:#86efac;--warn:#fbbf24;--bad:#fca5a5}}
3
+ *{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
4
+ main{max-width:980px;margin:0 auto;padding:1.5rem 1rem 4rem}h1{font-size:clamp(1.6rem,3vw,2.1rem);line-height:1.2;margin:.2rem 0 .4rem}h2{margin-top:2.2rem;font-size:1.25rem}
5
+ .card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:1.1rem 1.25rem;margin:1rem 0}
6
+ .banner{border-left:6px solid var(--ac)}.NO_GO{border-color:var(--bad)}.REVIEW_REQUIRED{border-color:var(--warn)}.READY_FOR_HUMAN_APPROVAL{border-color:var(--ok)}
7
+ .pill{display:inline-block;padding:.12rem .7rem;border-radius:999px;font-weight:700;font-size:.85rem;border:1px solid currentColor}
8
+ .pill.NO_GO,.pill.critical,.pill.high{color:var(--bad)}.pill.REVIEW_REQUIRED,.pill.medium{color:var(--warn)}.pill.READY_FOR_HUMAN_APPROVAL{color:var(--ok)}.pill.low,.pill.info{color:var(--mut)}
9
+ .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem}.stat b{display:block;font-size:1.6rem;line-height:1.2}.stat span{color:var(--mut);font-size:.88rem}
10
+ table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:.5rem .55rem;border-bottom:1px solid var(--line);vertical-align:top}th{color:var(--mut);font-size:.8rem;letter-spacing:.03em}
11
+ code{font-family:ui-monospace,Consolas,monospace;background:var(--bg);padding:.05rem .35rem;border-radius:5px;overflow-wrap:anywhere}
12
+ .muted{color:var(--mut)}footer{margin-top:2.5rem;color:var(--mut);font-size:.9rem}a{color:var(--ac)}:focus-visible{outline:3px solid var(--ac);outline-offset:2px}
13
+ .skip{position:absolute;left:-999px;top:.4rem;background:var(--ac);color:#fff;padding:.4rem .7rem;z-index:2}.skip:focus{left:.4rem}
14
+ @media(prefers-color-scheme:dark){.skip{color:#10201f}}
15
+ @media print{body{background:#fff;color:#000}.card{break-inside:avoid}.skip{display:none}}
16
+ @media(max-width:640px){body{font-size:16px}}</style></head><body><a class="skip" href="#content">Skip to content</a><main id="content">
17
+ <p class="muted">PramanaSutra AI &middot; QA &amp; Release Audit &middot; Markdown, HTML and JSON are the same audit</p><h1>PramanaSutra-AI</h1><p class="muted">Generated 2026-11-06T00:00:00.000Z &middot; schema 1.0.0 &middot; tool 0.3.0</p>
18
+ <section class="card banner READY_FOR_HUMAN_APPROVAL" role="status"><p class="muted" style="margin:0">Release decision</p><p style="margin:.35rem 0"><span class="pill READY_FOR_HUMAN_APPROVAL">READY_FOR_HUMAN_APPROVAL</span></p><p style="margin:.4rem 0 0">All policy checks passed. A human must still approve; this is never a deploy order.</p><p class="muted" style="margin:.35rem 0 0">Policy: recommended &middot; Supplied test evidence: passing</p></section>
19
+ <section class="grid" aria-label="Summary"><div class="stat card"><b>292</b><span>files inspected</span></div><div class="stat card"><b>1</b><span>test files</span></div><div class="stat card"><b>2</b><span>CI workflows</span></div><div class="stat card"><b>0</b><span>findings</span></div><div class="stat card"><b>0</b><span>critical + high</span></div></section>
20
+ <p class="card"><strong>Tests executed by PramanaSutra: NO (static scan only). Executed-test results count only when supplied as evidence.</strong></p>
21
+ <h2>Supplied test evidence</h2><div class="card"><p>These numbers come from the evidence file the operator supplied. PramanaSutra did not run that command.</p><table><tbody>
22
+ <tr><th scope="row">Source</th><td><code>local-executed</code></td></tr>
23
+ <tr><th scope="row">Command</th><td><code>node --test --test-reporter=spec tests/cli.test.mjs</code></td></tr>
24
+ <tr><th scope="row">Executed at</th><td>2026-11-06T00:00:00.000Z</td></tr>
25
+ <tr><th scope="row">Exit code</th><td>0</td></tr>
26
+ <tr><th scope="row">Passed</th><td>37</td></tr>
27
+ <tr><th scope="row">Failed</th><td>0</td></tr>
28
+ <tr><th scope="row">Skipped</th><td>1</td></tr>
29
+ <tr><th scope="row">Environment</th><td>win32 v24.15.0</td></tr>
30
+
31
+ </tbody></table></div>
32
+ <h2>Findings at a glance</h2><p class="card">No static issues detected. This does <strong>not</strong> mean the project is release-ready; other checks were not run.</p>
33
+ <h2>Findings</h2><p class="card">None.</p>
34
+ <h2>Test files seen</h2><div class="card"><ul><li><code>tests/cli.test.mjs</code></li></ul></div>
35
+ <h2>CI workflows seen</h2><div class="card"><ul><li><code>.github/workflows/ci.yml</code></li><li><code>.github/workflows/codeql.yml</code></li></ul></div>
36
+ <h2>Release gate reasons</h2><div class="card"><ul><li>All policy checks satisfied by supplied evidence and static inspection. A human must still approve and deploy.</li></ul></div>
37
+ <h2>Capabilities</h2><div class="card" style="overflow-x:auto"><table><thead><tr><th>Capability</th><th>State</th><th>What that means</th></tr></thead><tbody><tr><th scope="row">staticAudit</th><td><code>executed</code></td><td>Source text was inspected with heuristic rules.</td></tr><tr><th scope="row">testExecution</th><td><code>evidence-supplied</code></td><td>not-run means this tool did not execute tests. evidence-supplied means an evidence file was attached.</td></tr><tr><th scope="row">browser</th><td><code>not-supported</code></td><td>No browser was launched.</td></tr><tr><th scope="row">securityScan</th><td><code>not-run</code></td><td>This is not a vulnerability scanner.</td></tr><tr><th scope="row">performanceTest</th><td><code>not-run</code></td><td>No load or timing test was run.</td></tr><tr><th scope="row">aiInference</th><td><code>not-run</code></td><td>The CLI did not call a model.</td></tr></tbody></table></div>
38
+ <h2>Limitations</h2><div class="card"><ul><li>Excluded 2 path(s) listed in .pramanasutraignore. Excluded content was not inspected.</li><li>Heuristic checks do not prove the absence of bugs or release readiness.</li><li>No target tests, security scanners, browser, load tests or deploy checks were run by this tool.</li><li>This report is decision support, not a compliance certification or legal advice.</li></ul></div>
39
+ <footer>Created by Vatsal Shah. Generated locally; nothing was sent over the network. Not a compliance certification, a security test, or a release authorization. Open <code>report.md</code> for the same audit in Markdown.</footer></main></body></html>
@@ -0,0 +1,59 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "product": "PramanaSutra AI",
4
+ "toolVersion": "0.3.0",
5
+ "generatedAt": "2026-11-06T00:00:00.000Z",
6
+ "scannedPath": "PramanaSutra-AI",
7
+ "capabilities": {
8
+ "staticAudit": "executed",
9
+ "testExecution": "evidence-supplied",
10
+ "browser": "not-supported",
11
+ "securityScan": "not-run",
12
+ "performanceTest": "not-run",
13
+ "aiInference": "not-run"
14
+ },
15
+ "inventory": {
16
+ "fileCount": 292,
17
+ "testFiles": [
18
+ "tests/cli.test.mjs"
19
+ ],
20
+ "manifests": [
21
+ "package.json"
22
+ ],
23
+ "ciWorkflows": [
24
+ ".github/workflows/ci.yml",
25
+ ".github/workflows/codeql.yml"
26
+ ],
27
+ "skippedSymlinks": 0,
28
+ "oversizedFiles": 0,
29
+ "binaryFiles": 0,
30
+ "ignoredPaths": 2,
31
+ "partial": false
32
+ },
33
+ "findings": [],
34
+ "limitations": [
35
+ "Excluded 2 path(s) listed in .pramanasutraignore. Excluded content was not inspected."
36
+ ],
37
+ "releaseGate": {
38
+ "decision": "READY_FOR_HUMAN_APPROVAL",
39
+ "policy": "recommended",
40
+ "reasons": [
41
+ "All policy checks satisfied by supplied evidence and static inspection. A human must still approve and deploy."
42
+ ],
43
+ "requiresHumanApproval": true,
44
+ "executedTestEvidence": true,
45
+ "evidenceState": "passing",
46
+ "automatedDeploymentAuthorized": false
47
+ },
48
+ "evidence": {
49
+ "schemaVersion": "1.0.0",
50
+ "source": "local-executed",
51
+ "command": "node --test --test-reporter=spec tests/cli.test.mjs",
52
+ "executedAt": "2026-11-06T00:00:00.000Z",
53
+ "exitCode": 0,
54
+ "passed": 37,
55
+ "failed": 0,
56
+ "skipped": 1,
57
+ "environment": "win32 v24.15.0"
58
+ }
59
+ }
@@ -0,0 +1,80 @@
1
+ # PramanaSutra AI: QA & Release Audit Report
2
+
3
+ This audit is three files with the same facts: **report.md** (this file), **report.html** (open in a browser) and **report.json** (for CI). A static finding is text the scanner saw. It is not a test PramanaSutra ran.
4
+
5
+ | | |
6
+ |---|---|
7
+ | Project | `PramanaSutra-AI` |
8
+ | Generated | 2026-11-06T00:00:00.000Z |
9
+ | Tool | PramanaSutra AI 0.3.0 (schema 1.0.0) |
10
+ | **Release decision** | **READY_FOR_HUMAN_APPROVAL** |
11
+ | Policy | recommended |
12
+ | Supplied test evidence | passing |
13
+
14
+ > **READY_FOR_HUMAN_APPROVAL.** All policy checks passed. A human must still approve; this is never a deploy order.
15
+
16
+ ## Summary
17
+
18
+ - Files inspected: 292
19
+ - Test files detected: 1
20
+ - CI workflows detected: 2
21
+ - Manifests detected: 1
22
+ - Findings: 0 (critical 0, high 0, medium 0, low 0, info 0)
23
+ - Tests executed by PramanaSutra: NO (static scan only). Executed-test results count only when supplied as evidence.
24
+
25
+ ## Supplied test evidence
26
+
27
+ These numbers come from the evidence file the operator supplied. PramanaSutra did not run that command.
28
+
29
+ | Field | Value |
30
+ |---|---|
31
+ | Source | `local-executed` |
32
+ | Command | `node --test --test-reporter=spec tests/cli.test.mjs` |
33
+ | Executed at | 2026-11-06T00:00:00.000Z |
34
+ | Exit code | 0 |
35
+ | Passed | 37 |
36
+ | Failed | 0 |
37
+ | Skipped | 1 |
38
+ | Environment | win32 v24.15.0 |
39
+
40
+ ## Findings at a glance
41
+
42
+ No static issues detected. This does **not** mean the project is release-ready; other checks were not run.
43
+
44
+ ## Findings
45
+
46
+ None.
47
+
48
+ ## Test files seen
49
+
50
+ - `tests/cli.test.mjs`
51
+
52
+ ## CI workflows seen
53
+
54
+ - `.github/workflows/ci.yml`
55
+ - `.github/workflows/codeql.yml`
56
+
57
+ ## Capabilities
58
+
59
+ | Capability | State | What that means |
60
+ |---|---|---|
61
+ | staticAudit | executed | Source text was inspected with heuristic rules. |
62
+ | testExecution | evidence-supplied | not-run means this tool did not execute tests. evidence-supplied means an evidence file was attached. |
63
+ | browser | not-supported | No browser was launched. |
64
+ | securityScan | not-run | This is not a vulnerability scanner. |
65
+ | performanceTest | not-run | No load or timing test was run. |
66
+ | aiInference | not-run | The CLI did not call a model. |
67
+
68
+ ## Release gate reasons
69
+
70
+ - All policy checks satisfied by supplied evidence and static inspection. A human must still approve and deploy.
71
+
72
+ ## Limitations
73
+
74
+ - Excluded 2 path(s) listed in .pramanasutraignore. Excluded content was not inspected.
75
+ - Heuristic checks do not prove the absence of bugs or release readiness.
76
+ - No target tests, security scanners, browser, load tests or deploy checks were run by this tool.
77
+ - This report is decision support, not a compliance certification or legal advice.
78
+
79
+ ---
80
+ *Created by Vatsal Shah. Generated locally; nothing was sent over the network. Same audit: report.html and report.json.*
@@ -0,0 +1,13 @@
1
+ # CLI commands (implemented)
2
+
3
+ ```text
4
+ node packages/cli/bin/pramanasutra.mjs help
5
+ node packages/cli/bin/pramanasutra.mjs doctor [--json]
6
+ node packages/cli/bin/pramanasutra.mjs agents list [--json]
7
+ node packages/cli/bin/pramanasutra.mjs scan --path <folder> [--out <folder>] [--json]
8
+ node packages/cli/bin/pramanasutra.mjs release-check --path <folder> [--evidence <file>] [--out <folder>] [--json]
9
+ node packages/cli/bin/pramanasutra.mjs verify --evidence <file> [--json]
10
+ node packages/cli/bin/pramanasutra.mjs init --ide <claude|cursor|codex|gemini|copilot|generic|all> --target <existing-folder> [--force]
11
+ ```
12
+
13
+ Exit codes: `0` normal completion; `0` also for `READY_FOR_HUMAN_APPROVAL`; `2` known blocking release finding (`NO_GO`); `3` release review required; `1` invalid input/runtime error. A scan may return `0` despite findings; use `release-check` for gate outcomes. Reports are saved only when `--out` is present. `init` modifies only target skill directories and does not run any installed skill.
@@ -0,0 +1,15 @@
1
+ # Compatibility and honest scope
2
+
3
+ | Host | Installer destination | Status |
4
+ |---|---|---|
5
+ | Claude Code | `.claude/skills` | Path supported by official docs; host execution not verified here |
6
+ | Cursor | `.cursor/skills` | Path supported by official docs; host execution not verified here |
7
+ | OpenAI Codex | `.agents/skills` | Path supported by official docs; host execution not verified here |
8
+ | Gemini CLI | `.gemini/skills` | Path supported by official docs; host execution not verified here |
9
+ | GitHub Copilot | `.github/skills` | Path supported by official docs; host execution not verified here |
10
+ | Generic | `.agents/skills` | Only portable skill files; arbitrary host support not guaranteed |
11
+ | Servers / CI | `node .../pramanasutra.mjs` | Deterministic static CLI works where Node 20+ and filesystem access are available |
12
+
13
+ Host-specific skills use existing host AI sessions and their existing model permission/quota. Installing a skill does not grant access to an IDE's private model API. The standalone CLI needs no AI key and does not perform model inference. See current host documentation for version-specific behavior.
14
+
15
+ Official documentation: Claude Code (support.claude.com), Cursor (cursor.com), Codex (learn.chatgpt.com), Gemini CLI (geminicli.com), GitHub Copilot (docs.github.com).
@@ -0,0 +1,3 @@
1
+ # Configuration
2
+
3
+ The current CLI uses explicit `--path`, `--out`, `--ide` and `--target` arguments. No credentials, central configuration or model keys are required for offline scan. Policy-as-code server configuration is planned.
@@ -0,0 +1,3 @@
1
+ # Execution safety
2
+
3
+ The starter has no target test-runner implementation. Static scanning neither installs dependencies nor invokes package scripts. The installer only copies agent instruction files after explicit user invocation and refuses to overwrite without `--force`. Avoid sending source, reports or user information to external providers unless permission is given. Future test runners must require command-level approval, isolated execution, timeout and logs redaction. Release gate output is decision support, not permission to deploy.
@@ -0,0 +1 @@
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="robots" content="index,follow"><link rel="canonical" href="https://shahvatsalofficial.github.io/pramanasutra-ai/01-executive-summary.html"><meta http-equiv="refresh" content="0; url=../01-executive-summary.html"><title>Moved — PramanaSutra AI</title></head><body><p>This page moved to <a href="../01-executive-summary.html">Executive summary</a>.</p></body></html>
@@ -0,0 +1,51 @@
1
+ # Executive summary
2
+
3
+ <!-- summary: Why PramanaSutra AI exists, what value it gives, what it deliberately does not do, and the risks of adopting it. -->
4
+
5
+ ## The problem
6
+
7
+ AI coding assistants write and review tests quickly, but they often claim "all tests pass" without running anything, miss `test.only` and skipped tests that silently shrink coverage, and produce release advice with no proof behind it. Teams then ship on confidence that was never earned.
8
+
9
+ ## The product
10
+
11
+ PramanaSutra AI is an **evidence-first QA and release-readiness agent**:
12
+
13
+ - **17 Agent Skills** (a chief orchestrator and 16 specialists) that make an AI IDE follow a disciplined QA method.
14
+ - **A deterministic offline CLI** that inspects a project read-only, reports test-hygiene findings with file and line, accepts test-run evidence from your own runner or CI, and issues a conservative release gate.
15
+ - **Reports in three formats**: Markdown and HTML for people, JSON for tools.
16
+
17
+ ## Value
18
+
19
+ | Benefit | How it is delivered |
20
+ |---|---|
21
+ | Fewer silent coverage losses | Detects focused and skipped tests across JS/TS, pytest, unittest, JUnit and Go |
22
+ | No false confidence | The gate stays at `REVIEW_REQUIRED` unless valid executed-test evidence is supplied |
23
+ | Auditability | Every finding has rule ID, severity, confidence, evidence location and remediation |
24
+ | Low adoption cost | Node 20+, zero runtime dependencies, no account, no API key, no network |
25
+ | Safe by default | Read-only on your project; never runs project scripts; escapes all HTML |
26
+ | Human accountability | Best outcome is `READY_FOR_HUMAN_APPROVAL`; deployment is never automated |
27
+
28
+ ## What it deliberately does not do (v0.2.0)
29
+
30
+ - It does not run your tests. Test execution is planned and will require explicit approval.
31
+ - It does not perform browser, visual, accessibility, performance or security testing.
32
+ - It does not certify quality, security or compliance.
33
+ - It does not give legal, financial or investment advice.
34
+
35
+ ## Risks and mitigations
36
+
37
+ | Risk | Mitigation |
38
+ |---|---|
39
+ | Heuristic rules produce false positives or negatives | Confidence labels, published limits, labeled fixtures, user review required |
40
+ | Users read a clean scan as "release ready" | Reports repeat that static checks do not prove readiness; the gate needs evidence |
41
+ | Supplied evidence is forged or stale | Provenance field; `external-unverified` can never reach ready; human approval always required |
42
+ | Skill instructions drift from the CLI | One canonical skill source, tests check names, frontmatter and install paths |
43
+ | Name or trademark conflict | Not trademark-cleared; see [name clearance](../legal/trademark-and-name-clearance.md) |
44
+
45
+ ## Status
46
+
47
+ Version 0.2.0 is an **executable starter**: the CLI, reports, gate, policy and installer work and are tested on Windows, macOS and Linux in CI. Live behavior in each AI IDE is not yet smoke-tested. See [compatibility and roadmap](09-compatibility-and-roadmap.md).
48
+
49
+ ## Decision guide
50
+
51
+ Adopt now if you want a cheap, offline guard against silent test rot and over-confident AI release advice. Wait for later versions if you need automated test execution, browser/E2E, accessibility or performance measurement, or a hosted server.
@@ -0,0 +1 @@
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="robots" content="index,follow"><link rel="canonical" href="https://shahvatsalofficial.github.io/pramanasutra-ai/02-functional-specification.html"><meta http-equiv="refresh" content="0; url=../02-functional-specification.html"><title>Moved — PramanaSutra AI</title></head><body><p>This page moved to <a href="../02-functional-specification.html">Functional specification</a>.</p></body></html>
@@ -0,0 +1,69 @@
1
+ # Functional specification
2
+
3
+ <!-- summary: Every user-visible requirement of PramanaSutra AI v0.2.0 with inputs, outputs, decision rules and scenarios. -->
4
+
5
+ ## Actors
6
+
7
+ | Actor | Goal |
8
+ |---|---|
9
+ | Developer | Find test-hygiene problems before merging |
10
+ | QA lead | Get an auditable, readable report |
11
+ | Release manager | Know whether evidence supports a release and what is missing |
12
+ | CI system | Fail a build on `NO_GO` or `REVIEW_REQUIRED` via exit codes |
13
+ | AI IDE assistant | Follow the QA method defined by the skills |
14
+
15
+ ## Functional requirements
16
+
17
+ | ID | Requirement | Verified by |
18
+ |---|---|---|
19
+ | F-01 | `doctor` reports Node version, platform and that no AI key is needed | CLI test |
20
+ | F-02 | `agents list` lists the 17 bundled skills | CLI test |
21
+ | F-03 | `scan` inventories files, test files, manifests and CI workflows without executing anything | scanner tests |
22
+ | F-04 | `scan` flags focused tests (`.only`, `fit`, `fdescribe`) as high severity with file and line | scanner tests |
23
+ | F-05 | `scan` flags skipped tests in JS/TS, pytest, unittest, JUnit and Go as low severity | scanner tests |
24
+ | F-06 | `scan` reports missing tests, missing CI and missing license | scanner tests |
25
+ | F-07 | Every run writes `report.md`, `report.html`, `report.json` (default `./pramanasutra-reports`) | CLI tests |
26
+ | F-08 | HTML reports escape all untrusted text | XSS test |
27
+ | F-09 | `release-check` returns exit 2 for `NO_GO`, 3 for `REVIEW_REQUIRED`, 0 for `READY_FOR_HUMAN_APPROVAL` | CLI tests |
28
+ | F-10 | `release-check --evidence` accepts a validated test-evidence file | evidence tests |
29
+ | F-11 | The gate never reaches ready without passing evidence from `local-executed` or `ci-ingested` | gate tests |
30
+ | F-12 | `verify --evidence` validates an evidence file and exits 1 if invalid | CLI tests |
31
+ | F-13 | `--policy` loads a fail-closed JSON policy | policy tests |
32
+ | F-14 | `init` copies skills to a host-specific path and refuses to overwrite without `--force` | installer tests |
33
+ | F-15 | Invalid input exits 1 with a one-line message and no stack trace | CLI tests |
34
+
35
+ ## Release decision rules
36
+
37
+ Evaluated in this order:
38
+
39
+ 1. Any blocking static finding under the active policy gives `NO_GO`.
40
+ 2. Supplied evidence with failures or a non-zero exit code gives `NO_GO`.
41
+ 3. Otherwise collect missing items: evidence not passing (if the policy requires it), incomplete scan, no tests, no CI, no license.
42
+ 4. Any missing item gives `REVIEW_REQUIRED`.
43
+ 5. Nothing missing gives `READY_FOR_HUMAN_APPROVAL`.
44
+
45
+ `requiresHumanApproval` is always `true`; `automatedDeploymentAuthorized` is always `false`.
46
+
47
+ ## Evidence states
48
+
49
+ | State | Meaning | Effect |
50
+ |---|---|---|
51
+ | `absent` | No evidence supplied | `REVIEW_REQUIRED` |
52
+ | `failing` | Failures or non-zero exit code | `NO_GO` |
53
+ | `inconclusive` | Zero passed tests | `REVIEW_REQUIRED` |
54
+ | `unverified` | Source is `external-unverified` | `REVIEW_REQUIRED` |
55
+ | `passing` | Exit 0, passed above 0, failed 0, trusted source | Counts toward ready |
56
+
57
+ ## Scenarios
58
+
59
+ **Clean project with passing CI evidence.** Tests, CI and license present; no findings; evidence `ci-ingested`, 12 passed. Result: `READY_FOR_HUMAN_APPROVAL`, exit 0.
60
+
61
+ **Focused test left in.** `test.only(...)` in `tests/a.test.js:2`. Result: `NO_GO`, exit 2, finding with remediation "Remove .only".
62
+
63
+ **No evidence supplied.** Clean static scan. Result: `REVIEW_REQUIRED`, exit 3, reason "No executed-test evidence supplied".
64
+
65
+ **Unsafe file names.** A test named `a & b (x) $y 'q'.test.js`. Result: scanned normally; HTML shows the name escaped.
66
+
67
+ ## Out of scope in v0.2.0
68
+
69
+ Running tests, browsers, load tests, accessibility audits, security scanners, SBOM or provenance generation, a server API, model inference from the CLI.
@@ -0,0 +1 @@
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="robots" content="index,follow"><link rel="canonical" href="https://shahvatsalofficial.github.io/pramanasutra-ai/04-technical-reference.html"><meta http-equiv="refresh" content="0; url=../04-technical-reference.html"><title>Moved — PramanaSutra AI</title></head><body><p>This page moved to <a href="../04-technical-reference.html">Technical reference</a>.</p></body></html>