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.
- package/.agents/skills/pramanasutra-access/SKILL.md +34 -0
- package/.agents/skills/pramanasutra-api/SKILL.md +34 -0
- package/.agents/skills/pramanasutra-data/SKILL.md +34 -0
- package/.agents/skills/pramanasutra-defect/SKILL.md +34 -0
- package/.agents/skills/pramanasutra-evidence/SKILL.md +34 -0
- package/.agents/skills/pramanasutra-flake/SKILL.md +34 -0
- package/.agents/skills/pramanasutra-flow/SKILL.md +34 -0
- package/.agents/skills/pramanasutra-load/SKILL.md +34 -0
- package/.agents/skills/pramanasutra-pipeline/SKILL.md +34 -0
- package/.agents/skills/pramanasutra-prime/SKILL.md +38 -0
- package/.agents/skills/pramanasutra-regression/SKILL.md +34 -0
- package/.agents/skills/pramanasutra-release/SKILL.md +34 -0
- package/.agents/skills/pramanasutra-secure/SKILL.md +34 -0
- package/.agents/skills/pramanasutra-strategy/SKILL.md +34 -0
- package/.agents/skills/pramanasutra-unit/SKILL.md +34 -0
- package/.agents/skills/pramanasutra-verify/SKILL.md +34 -0
- package/.agents/skills/pramanasutra-visual/SKILL.md +34 -0
- package/.claude/agents/pramanasutra-prime.md +7 -0
- package/CHANGELOG.md +56 -0
- package/LICENSE +201 -0
- package/NOTICE +2 -0
- package/README.md +138 -2
- package/docs/.nojekyll +0 -0
- package/docs/00-start-here.html +195 -0
- package/docs/01-executive-summary.html +192 -0
- package/docs/02-functional-specification.html +199 -0
- package/docs/03-architecture.html +233 -0
- package/docs/04-technical-reference.html +204 -0
- package/docs/05-user-guide.html +232 -0
- package/docs/06-cli-and-reports.html +200 -0
- package/docs/07-rule-catalog.html +194 -0
- package/docs/08-skills-and-agents.html +191 -0
- package/docs/09-security-and-privacy.html +192 -0
- package/docs/10-legal-and-compliance.html +203 -0
- package/docs/11-testing-and-proof.html +197 -0
- package/docs/12-ci-and-release.html +208 -0
- package/docs/13-roadmap-and-status.html +186 -0
- package/docs/14-faq-and-glossary.html +204 -0
- package/docs/15-maintainer-guide.html +200 -0
- package/docs/agent-catalog.md +3 -0
- package/docs/api.md +3 -0
- package/docs/architecture.md +15 -0
- package/docs/assets/favicon.svg +1 -0
- package/docs/assets/site.css +183 -0
- package/docs/assets/site.js +79 -0
- package/docs/audit/report.html +39 -0
- package/docs/audit/report.json +59 -0
- package/docs/audit/report.md +80 -0
- package/docs/commands.md +13 -0
- package/docs/compatibility.md +15 -0
- package/docs/configuration.md +3 -0
- package/docs/execution-safety.md +3 -0
- package/docs/handbook/01-executive-summary.html +1 -0
- package/docs/handbook/01-executive-summary.md +51 -0
- package/docs/handbook/02-functional-specification.html +1 -0
- package/docs/handbook/02-functional-specification.md +69 -0
- package/docs/handbook/03-technical-specification.html +1 -0
- package/docs/handbook/03-technical-specification.md +85 -0
- package/docs/handbook/04-architecture.html +1 -0
- package/docs/handbook/04-architecture.md +107 -0
- package/docs/handbook/05-user-guide.html +1 -0
- package/docs/handbook/05-user-guide.md +117 -0
- package/docs/handbook/06-cli-reference.html +1 -0
- package/docs/handbook/06-cli-reference.md +88 -0
- package/docs/handbook/07-security-privacy-legal.html +1 -0
- package/docs/handbook/07-security-privacy-legal.md +65 -0
- package/docs/handbook/08-testing-and-proof.html +1 -0
- package/docs/handbook/08-testing-and-proof.md +83 -0
- package/docs/handbook/09-compatibility-and-roadmap.html +1 -0
- package/docs/handbook/09-compatibility-and-roadmap.md +53 -0
- package/docs/handbook/10-contributor-guide.html +1 -0
- package/docs/handbook/10-contributor-guide.md +64 -0
- package/docs/handbook/11-glossary-and-faq.html +1 -0
- package/docs/handbook/11-glossary-and-faq.md +52 -0
- package/docs/handbook/12-rule-catalog.html +1 -0
- package/docs/handbook/12-rule-catalog.md +65 -0
- package/docs/handbook/README.md +40 -0
- package/docs/handbook/index.html +1 -0
- package/docs/index.html +195 -0
- package/docs/legal/trademark-and-name-clearance.html +1 -0
- package/docs/legal/trademark-and-name-clearance.md +32 -0
- package/docs/master-claude-prompt.md +483 -0
- package/docs/proof/eval-results.json +91 -0
- package/docs/proof/test-results.txt +51 -0
- package/docs/quality-gates.md +10 -0
- package/docs/report-schema.md +22 -0
- package/docs/roadmap.md +3 -0
- package/docs/robots.txt +22 -0
- package/docs/samples/clean-project/report.html +29 -0
- package/docs/samples/clean-project/report.json +45 -0
- package/docs/samples/clean-project/report.md +67 -0
- package/docs/samples/focused-test/report.html +29 -0
- package/docs/samples/focused-test/report.json +60 -0
- package/docs/samples/focused-test/report.md +74 -0
- package/docs/samples/missing-ci/report.html +29 -0
- package/docs/samples/missing-ci/report.json +59 -0
- package/docs/samples/missing-ci/report.md +75 -0
- package/docs/samples/missing-tests/report.html +29 -0
- package/docs/samples/missing-tests/report.json +59 -0
- package/docs/samples/missing-tests/report.md +75 -0
- package/docs/samples/multi-language/report.html +33 -0
- package/docs/samples/multi-language/report.json +116 -0
- package/docs/samples/multi-language/report.md +110 -0
- package/docs/samples/unsafe-names/report.html +29 -0
- package/docs/samples/unsafe-names/report.json +61 -0
- package/docs/samples/unsafe-names/report.md +75 -0
- package/docs/server-deployment.md +3 -0
- package/docs/sitemap.xml +20 -0
- package/docs/standards.md +12 -0
- package/docs/status.md +20 -0
- package/docs/troubleshooting.md +7 -0
- package/docs/trust-model.md +3 -0
- package/documents/pramanasutra/00-start-here.md +85 -0
- package/documents/pramanasutra/01-executive-summary.md +61 -0
- package/documents/pramanasutra/02-functional-specification.md +90 -0
- package/documents/pramanasutra/03-architecture.md +102 -0
- package/documents/pramanasutra/04-technical-reference.md +121 -0
- package/documents/pramanasutra/05-user-guide.md +152 -0
- package/documents/pramanasutra/06-cli-and-reports.md +79 -0
- package/documents/pramanasutra/07-rule-catalog.md +79 -0
- package/documents/pramanasutra/08-skills-and-agents.md +68 -0
- package/documents/pramanasutra/09-security-and-privacy.md +73 -0
- package/documents/pramanasutra/10-legal-and-compliance.md +72 -0
- package/documents/pramanasutra/11-testing-and-proof.md +72 -0
- package/documents/pramanasutra/12-ci-and-release.md +89 -0
- package/documents/pramanasutra/13-roadmap-and-status.md +68 -0
- package/documents/pramanasutra/14-faq-and-glossary.md +81 -0
- package/documents/pramanasutra/15-maintainer-guide.md +81 -0
- package/documents/pramanasutra/README.md +11 -0
- package/documents/pramanasutra/audit/report.html +39 -0
- package/documents/pramanasutra/audit/report.json +59 -0
- package/documents/pramanasutra/audit/report.md +80 -0
- package/documents/pramanasutra/html/00-start-here.html +195 -0
- package/documents/pramanasutra/html/01-executive-summary.html +192 -0
- package/documents/pramanasutra/html/02-functional-specification.html +199 -0
- package/documents/pramanasutra/html/03-architecture.html +233 -0
- package/documents/pramanasutra/html/04-technical-reference.html +204 -0
- package/documents/pramanasutra/html/05-user-guide.html +232 -0
- package/documents/pramanasutra/html/06-cli-and-reports.html +200 -0
- package/documents/pramanasutra/html/07-rule-catalog.html +194 -0
- package/documents/pramanasutra/html/08-skills-and-agents.html +191 -0
- package/documents/pramanasutra/html/09-security-and-privacy.html +192 -0
- package/documents/pramanasutra/html/10-legal-and-compliance.html +203 -0
- package/documents/pramanasutra/html/11-testing-and-proof.html +197 -0
- package/documents/pramanasutra/html/12-ci-and-release.html +208 -0
- package/documents/pramanasutra/html/13-roadmap-and-status.html +186 -0
- package/documents/pramanasutra/html/14-faq-and-glossary.html +204 -0
- package/documents/pramanasutra/html/15-maintainer-guide.html +200 -0
- package/documents/pramanasutra/html/audit/report.html +39 -0
- package/documents/pramanasutra/html/audit/report.json +59 -0
- package/documents/pramanasutra/html/audit/report.md +80 -0
- package/documents/pramanasutra/html/index.html +195 -0
- package/documents/pramanasutra/html/proof/eval-results.json +91 -0
- package/documents/pramanasutra/html/proof/test-results.txt +51 -0
- package/documents/pramanasutra/html/robots.txt +22 -0
- package/documents/pramanasutra/html/samples/clean-project/report.html +29 -0
- package/documents/pramanasutra/html/samples/clean-project/report.json +45 -0
- package/documents/pramanasutra/html/samples/clean-project/report.md +67 -0
- package/documents/pramanasutra/html/samples/focused-test/report.html +29 -0
- package/documents/pramanasutra/html/samples/focused-test/report.json +60 -0
- package/documents/pramanasutra/html/samples/focused-test/report.md +74 -0
- package/documents/pramanasutra/html/samples/missing-ci/report.html +29 -0
- package/documents/pramanasutra/html/samples/missing-ci/report.json +59 -0
- package/documents/pramanasutra/html/samples/missing-ci/report.md +75 -0
- package/documents/pramanasutra/html/samples/missing-tests/report.html +29 -0
- package/documents/pramanasutra/html/samples/missing-tests/report.json +59 -0
- package/documents/pramanasutra/html/samples/missing-tests/report.md +75 -0
- package/documents/pramanasutra/html/samples/multi-language/report.html +33 -0
- package/documents/pramanasutra/html/samples/multi-language/report.json +116 -0
- package/documents/pramanasutra/html/samples/multi-language/report.md +110 -0
- package/documents/pramanasutra/html/samples/unsafe-names/report.html +29 -0
- package/documents/pramanasutra/html/samples/unsafe-names/report.json +61 -0
- package/documents/pramanasutra/html/samples/unsafe-names/report.md +75 -0
- package/documents/pramanasutra/html/sitemap.xml +20 -0
- package/documents/pramanasutra/proof/eval-results.json +91 -0
- package/documents/pramanasutra/proof/test-results.txt +51 -0
- package/documents/pramanasutra/samples/clean-project/report.html +29 -0
- package/documents/pramanasutra/samples/clean-project/report.json +45 -0
- package/documents/pramanasutra/samples/clean-project/report.md +67 -0
- package/documents/pramanasutra/samples/focused-test/report.html +29 -0
- package/documents/pramanasutra/samples/focused-test/report.json +60 -0
- package/documents/pramanasutra/samples/focused-test/report.md +74 -0
- package/documents/pramanasutra/samples/missing-ci/report.html +29 -0
- package/documents/pramanasutra/samples/missing-ci/report.json +59 -0
- package/documents/pramanasutra/samples/missing-ci/report.md +75 -0
- package/documents/pramanasutra/samples/missing-tests/report.html +29 -0
- package/documents/pramanasutra/samples/missing-tests/report.json +59 -0
- package/documents/pramanasutra/samples/missing-tests/report.md +75 -0
- package/documents/pramanasutra/samples/multi-language/report.html +33 -0
- package/documents/pramanasutra/samples/multi-language/report.json +116 -0
- package/documents/pramanasutra/samples/multi-language/report.md +110 -0
- package/documents/pramanasutra/samples/unsafe-names/report.html +29 -0
- package/documents/pramanasutra/samples/unsafe-names/report.json +61 -0
- package/documents/pramanasutra/samples/unsafe-names/report.md +75 -0
- package/examples/dotnet-app/README.md +3 -0
- package/examples/evidence/passing.json +12 -0
- package/examples/java-service/README.md +3 -0
- package/examples/mobile/README.md +3 -0
- package/examples/python-api/README.md +3 -0
- package/examples/release-policy/README.md +3 -0
- package/examples/sample-app/README.md +3 -0
- package/examples/sample-app/package.json +8 -0
- package/examples/sample-app/src/math.js +1 -0
- package/examples/sample-app/tests/math.test.js +5 -0
- package/examples/sample-output/clean-project/report.html +29 -0
- package/examples/sample-output/clean-project/report.json +45 -0
- package/examples/sample-output/clean-project/report.md +67 -0
- package/examples/sample-output/focused-test/report.html +29 -0
- package/examples/sample-output/focused-test/report.json +60 -0
- package/examples/sample-output/focused-test/report.md +74 -0
- package/examples/sample-output/missing-ci/report.html +29 -0
- package/examples/sample-output/missing-ci/report.json +59 -0
- package/examples/sample-output/missing-ci/report.md +75 -0
- package/examples/sample-output/missing-tests/report.html +29 -0
- package/examples/sample-output/missing-tests/report.json +59 -0
- package/examples/sample-output/missing-tests/report.md +75 -0
- package/examples/sample-output/multi-language/report.html +33 -0
- package/examples/sample-output/multi-language/report.json +116 -0
- package/examples/sample-output/multi-language/report.md +110 -0
- package/examples/sample-output/unsafe-names/report.html +29 -0
- package/examples/sample-output/unsafe-names/report.json +61 -0
- package/examples/sample-output/unsafe-names/report.md +75 -0
- package/llms.txt +60 -0
- package/package.json +65 -4
- package/packages/cli/bin/pramanasutra.mjs +90 -0
- package/packages/cli/lib/evidence.mjs +46 -0
- package/packages/cli/lib/installer.mjs +39 -0
- package/packages/cli/lib/policy.mjs +33 -0
- package/packages/cli/lib/report.mjs +169 -0
- package/packages/cli/lib/scanner.mjs +146 -0
- package/policies/recommended.json +11 -0
- package/policies/strict.json +12 -0
- package/templates/defect-report.md +11 -0
- package/templates/qa-strategy.md +9 -0
- package/templates/release-notes.md +9 -0
- package/templates/release-readiness.md +9 -0
- package/templates/rollback-plan.md +7 -0
- package/templates/test-evidence.json +11 -0
- package/templates/test-plan.md +4 -0
- package/templates/traceability-matrix.csv +1 -0
- package/workflows/create-test-plan.md +9 -0
- package/workflows/implement-tests.md +9 -0
- package/workflows/inspect-project.md +9 -0
- package/workflows/investigate-failure.md +9 -0
- package/workflows/post-release-observability.md +9 -0
- package/workflows/release-readiness.md +9 -0
- package/workflows/verify-regression.md +9 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Contributor guide
|
|
2
|
+
|
|
3
|
+
<!-- summary: How to set up, test, add rules, skills and host adapters, and submit changes to PramanaSutra AI. -->
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
git clone https://github.com/shahvatsalofficial/pramanasutra-ai.git
|
|
9
|
+
cd pramanasutra-ai
|
|
10
|
+
npm test
|
|
11
|
+
node packages/cli/bin/pramanasutra.mjs doctor
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
No `npm install` is needed: there are no dependencies.
|
|
15
|
+
|
|
16
|
+
## Rules of the road
|
|
17
|
+
|
|
18
|
+
1. **Evidence first.** Never write code or docs that imply tests ran when they did not.
|
|
19
|
+
2. **Fail closed.** New inputs are validated; unknown values are errors.
|
|
20
|
+
3. **No new dependencies** without a written reason in the pull request.
|
|
21
|
+
4. **No network, no telemetry** in the CLI.
|
|
22
|
+
5. **Every behavior change has a test** in `tests/cli.test.mjs`.
|
|
23
|
+
6. **Docs move with code.** Update the handbook page and `docs/status.md`.
|
|
24
|
+
|
|
25
|
+
## Add a rule
|
|
26
|
+
|
|
27
|
+
1. Add the regex and finding in `packages/cli/lib/scanner.mjs`. Keep it line-based and anchored.
|
|
28
|
+
2. Add a fixture under `fixtures/` and an entry in `scripts/generate-proof.mjs`.
|
|
29
|
+
3. Add unit tests for a hit and a look-alike that must not hit.
|
|
30
|
+
4. Document it in [rule catalog](12-rule-catalog.md), including false positives.
|
|
31
|
+
5. Run `node scripts/generate-proof.mjs` and commit the regenerated proof.
|
|
32
|
+
|
|
33
|
+
## Add or change a skill
|
|
34
|
+
|
|
35
|
+
1. Edit `.agents/skills/<name>/SKILL.md`. Frontmatter needs `name` (equal to the folder) and `description`.
|
|
36
|
+
2. State triggers, inputs, safe workflow, output contract and boundaries.
|
|
37
|
+
3. Never instruct an agent to run tests, install software or contact the network without user approval.
|
|
38
|
+
4. `npm test` checks names and frontmatter.
|
|
39
|
+
|
|
40
|
+
## Add a host adapter
|
|
41
|
+
|
|
42
|
+
1. Read the vendor's current documentation and note the access date.
|
|
43
|
+
2. Add the path to `ADAPTERS` in `installer.mjs`.
|
|
44
|
+
3. Test install, collision refusal and `--force`.
|
|
45
|
+
4. Mark it **adapter** until someone has tested it live and recorded the result.
|
|
46
|
+
|
|
47
|
+
## Rebuild docs and proof
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
node scripts/generate-proof.mjs # test results, fixture evaluation, sample reports
|
|
51
|
+
node scripts/build-docs.mjs # HTML site from docs/**/*.md
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Pull requests
|
|
55
|
+
|
|
56
|
+
Describe the change, show `npm test` output, list affected docs, and state which platforms you tested on. Security issues: follow `SECURITY.md`, not a public issue.
|
|
57
|
+
|
|
58
|
+
## Style
|
|
59
|
+
|
|
60
|
+
Plain ESM, small functions, clear errors with no stack traces for expected failures, UTF-8, LF line endings. Handle spaces and non-ASCII in paths.
|
|
61
|
+
|
|
62
|
+
## Conduct
|
|
63
|
+
|
|
64
|
+
See `CODE_OF_CONDUCT.md`. Contributions are accepted under Apache-2.0.
|
|
@@ -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/14-faq-and-glossary.html"><meta http-equiv="refresh" content="0; url=../14-faq-and-glossary.html"><title>Moved — PramanaSutra AI</title></head><body><p>This page moved to <a href="../14-faq-and-glossary.html">FAQ and glossary</a>.</p></body></html>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Glossary and FAQ
|
|
2
|
+
|
|
3
|
+
<!-- summary: Definitions of PramanaSutra AI terms and answers to common questions about keys, privacy, test execution, accuracy and licensing. -->
|
|
4
|
+
|
|
5
|
+
## Glossary
|
|
6
|
+
|
|
7
|
+
| Term | Meaning |
|
|
8
|
+
|---|---|
|
|
9
|
+
| Pramana | Sanskrit for a means of valid knowledge or proof |
|
|
10
|
+
| Sutra | Sanskrit for a concise rule or thread |
|
|
11
|
+
| Agent Skill | A folder with a `SKILL.md` file of instructions an AI assistant loads on demand |
|
|
12
|
+
| Prime | `pramanasutra-prime`, the chief QA orchestrator skill |
|
|
13
|
+
| Finding | One observation with rule, severity, confidence, evidence and fix |
|
|
14
|
+
| Evidence (static) | What a file scan observed |
|
|
15
|
+
| Evidence (executed) | A test run result supplied from a runner or CI |
|
|
16
|
+
| Release gate | The decision computed from findings, evidence and policy |
|
|
17
|
+
| `NO_GO` | A blocking issue exists |
|
|
18
|
+
| `REVIEW_REQUIRED` | Evidence is missing, unverified or incomplete |
|
|
19
|
+
| `READY_FOR_HUMAN_APPROVAL` | All policy checks satisfied; a person must still approve |
|
|
20
|
+
| Policy | A fail-closed JSON file that sets which conditions block or require review |
|
|
21
|
+
| Focused test | A test marked to run alone (`.only`), silently excluding the rest |
|
|
22
|
+
| Skipped test | A test marked not to run |
|
|
23
|
+
| Flaky test | A test that passes and fails without code changes |
|
|
24
|
+
| Provenance | Where evidence came from and whether it can be trusted |
|
|
25
|
+
|
|
26
|
+
## FAQ
|
|
27
|
+
|
|
28
|
+
**Is this a testing framework?** No. It reviews test hygiene and release evidence and guides your assistant. It complements Jest, Vitest, pytest, JUnit, Go test, Playwright and others.
|
|
29
|
+
|
|
30
|
+
**Does it run my tests?** No. You run them and supply the result. Running tests is planned and will need explicit approval.
|
|
31
|
+
|
|
32
|
+
**Do I need an API key or account?** No.
|
|
33
|
+
|
|
34
|
+
**Does it send my code anywhere?** The CLI never does. Your AI IDE's provider sees whatever you send it when you use the skills.
|
|
35
|
+
|
|
36
|
+
**Why does a perfect-looking project still say `REVIEW_REQUIRED`?** Because no passing test evidence was supplied, or something required is missing. The report lists exact reasons.
|
|
37
|
+
|
|
38
|
+
**Can it approve my release?** No. The best outcome still requires a person. `automatedDeploymentAuthorized` is always false.
|
|
39
|
+
|
|
40
|
+
**How accurate are the rules?** On the committed labeled fixtures: all expected findings found, none extra. Those fixtures were written by the rule author, so this is a regression guarantee, not real-world accuracy. Expect false positives and negatives on real projects.
|
|
41
|
+
|
|
42
|
+
**Why was my test layout not recognised?** Detection uses naming conventions; see the [rule catalog](12-rule-catalog.md).
|
|
43
|
+
|
|
44
|
+
**Can I weaken the safety flags in a policy?** No. `allowAutomatedDeployment` must be `false` and `manualApprovalsRequired` must be `true`.
|
|
45
|
+
|
|
46
|
+
**Is it free?** Yes, Apache-2.0.
|
|
47
|
+
|
|
48
|
+
**Is it affiliated with Anthropic, OpenAI, Cursor, GitHub or Google?** No.
|
|
49
|
+
|
|
50
|
+
**How do I cite it?** Use `CITATION.cff` in the repository.
|
|
51
|
+
|
|
52
|
+
**Where do I report a security issue?** `SECURITY.md`.
|
|
@@ -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/07-rule-catalog.html"><meta http-equiv="refresh" content="0; url=../07-rule-catalog.html"><title>Moved — PramanaSutra AI</title></head><body><p>This page moved to <a href="../07-rule-catalog.html">Rule catalog</a>.</p></body></html>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Rule catalog
|
|
2
|
+
|
|
3
|
+
<!-- summary: Every static rule in PramanaSutra AI, with severity, confidence, what it matches, known false positives and the fix. -->
|
|
4
|
+
|
|
5
|
+
All rules are line-based, deterministic and run **only on test files**. Each finding carries `ruleId`, `severity`, `confidence`, `evidence {path, line}`, `description`, `recommendation` and `status: observed`.
|
|
6
|
+
|
|
7
|
+
| Rule | Severity | Confidence | Blocks under `recommended`? |
|
|
8
|
+
|---|---|---|---|
|
|
9
|
+
| `FOCUSED_TEST` | high | medium | Yes (`NO_GO`) |
|
|
10
|
+
| `SKIPPED_TEST` | low | medium | No (yes under `strict`) |
|
|
11
|
+
| `NO_TESTS` | medium | medium | Review required |
|
|
12
|
+
| `NO_CI` | medium | medium | Review required |
|
|
13
|
+
| `NO_LICENSE` | low | high | Review required |
|
|
14
|
+
|
|
15
|
+
## FOCUSED_TEST
|
|
16
|
+
|
|
17
|
+
**Matches:** a line starting with `describe.only(`, `test.only(`, `it.only(` (optionally `await`), `fit(` or `fdescribe(`.
|
|
18
|
+
|
|
19
|
+
**Why it matters:** the runner executes only the focused test; the rest silently do not run, so a green result proves little.
|
|
20
|
+
|
|
21
|
+
**Fix:** remove the focus marker and run the full suite.
|
|
22
|
+
|
|
23
|
+
**False positives:** a matching line inside a multi-line template string. A match embedded in a single-line string literal is ignored (tested).
|
|
24
|
+
|
|
25
|
+
**False negatives:** focus markers built dynamically, `.only` on a later line than the call, and frameworks with other markers.
|
|
26
|
+
|
|
27
|
+
## SKIPPED_TEST
|
|
28
|
+
|
|
29
|
+
**Matches:**
|
|
30
|
+
|
|
31
|
+
| Ecosystem | Pattern |
|
|
32
|
+
|---|---|
|
|
33
|
+
| Jest, Vitest, Mocha, node:test | `describe/test/it.skip(`, `xit(`, `xdescribe(` |
|
|
34
|
+
| pytest | `@pytest.mark.skip`, `@pytest.mark.xfail` |
|
|
35
|
+
| unittest | `@unittest.skip...` |
|
|
36
|
+
| JUnit | `@Ignore`, `@Disabled` |
|
|
37
|
+
| Go | `t.Skip(`, `t.SkipNow(` |
|
|
38
|
+
|
|
39
|
+
**Why it matters:** skipped tests are untested behavior; each needs an owner and a reason.
|
|
40
|
+
|
|
41
|
+
**Fix:** confirm the skip is intended, tracked and time-limited.
|
|
42
|
+
|
|
43
|
+
## NO_TESTS
|
|
44
|
+
|
|
45
|
+
**Matches:** no file recognised as a test file.
|
|
46
|
+
|
|
47
|
+
**Test-file recognition:** a path component `test`, `tests`, `__tests__`, `spec`, `specs` or `e2e`; names containing `.test.` or `.spec.`; `*_test.go`, `*_test.py`, `*_test.rb`, `*_test.dart`, `*_spec.rb`, `test_*.py`; and class-style names ending in `Test`, `Tests`, `Spec` or `IT` for `java`, `kt`, `cs`, `swift`, `scala`, `php`, `dart` (case-sensitive, so `Submit.java` is not a test).
|
|
48
|
+
|
|
49
|
+
**False positives:** unconventional layouts, and ecosystems where tests live beside code with no naming convention (for example Rust unit tests inside `src/`).
|
|
50
|
+
|
|
51
|
+
## NO_CI
|
|
52
|
+
|
|
53
|
+
**Matches:** none of `.github/workflows/*.yml|yaml`, `.gitlab-ci.yml`, `Jenkinsfile`, `azure-pipelines.yml`, `bitbucket-pipelines.yml`.
|
|
54
|
+
|
|
55
|
+
**Fix:** add CI that runs the tests and make it a required check. Other CI systems are not recognised.
|
|
56
|
+
|
|
57
|
+
## NO_LICENSE
|
|
58
|
+
|
|
59
|
+
**Matches:** no root file named `LICENSE`, `LICENSE.md`, `LICENSE.txt` or `COPYING`.
|
|
60
|
+
|
|
61
|
+
**Fix:** choose a license deliberately and add it before publishing.
|
|
62
|
+
|
|
63
|
+
## Planned rules
|
|
64
|
+
|
|
65
|
+
No-assertion tests, test-order dependence, unbounded sleeps, snapshot churn, mock-only tests, coverage regressions. None exist yet.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# PramanaSutra AI Handbook
|
|
2
|
+
|
|
3
|
+
<!-- summary: Earlier handbook. The canonical detailed pack is documents/pramanasutra. -->
|
|
4
|
+
|
|
5
|
+
> **The canonical documentation is [`documents/pramanasutra`](../../documents/pramanasutra/00-start-here.md).** Those pages are the ones maintained for 0.3.0, in Markdown and in HTML. This handbook is the earlier set. Prefer the documents folder when the two differ.
|
|
6
|
+
|
|
7
|
+
PramanaSutra AI (from the Sanskrit *pramana*, "valid proof") is an open-source **AI QA engineer and release-readiness agent**. It ships 17 portable Agent Skills and a deterministic, offline CLI. Created by Vatsal Shah. Apache-2.0. Version 0.3.0.
|
|
8
|
+
|
|
9
|
+
This handbook is written so that a new reader needs nothing else: what it is, what it does, what it does not do, how it is built, how to use it, and how much to trust it.
|
|
10
|
+
|
|
11
|
+
## Read by role
|
|
12
|
+
|
|
13
|
+
| You are | Start with |
|
|
14
|
+
|---|---|
|
|
15
|
+
| Executive or decision maker | [Executive summary](01-executive-summary.md) |
|
|
16
|
+
| Product or QA lead | [Functional specification](02-functional-specification.md), [Rule catalog](12-rule-catalog.md) |
|
|
17
|
+
| Developer who wants to try it | [User guide](05-user-guide.md), [CLI reference](06-cli-reference.md) |
|
|
18
|
+
| Architect or reviewer | [Architecture](04-architecture.md), [Technical specification](03-technical-specification.md) |
|
|
19
|
+
| Security or legal reviewer | [Security, privacy and legal](07-security-privacy-legal.md), [Trademark and name clearance](../legal/trademark-and-name-clearance.md) |
|
|
20
|
+
| Skeptic | [Testing and proof](08-testing-and-proof.md) |
|
|
21
|
+
| Contributor | [Contributor guide](10-contributor-guide.md), [Compatibility and roadmap](09-compatibility-and-roadmap.md) |
|
|
22
|
+
|
|
23
|
+
## Pages
|
|
24
|
+
|
|
25
|
+
1. [Executive summary](01-executive-summary.md)
|
|
26
|
+
2. [Functional specification](02-functional-specification.md)
|
|
27
|
+
3. [Technical specification](03-technical-specification.md)
|
|
28
|
+
4. [Architecture](04-architecture.md)
|
|
29
|
+
5. [User guide](05-user-guide.md)
|
|
30
|
+
6. [CLI reference](06-cli-reference.md)
|
|
31
|
+
7. [Security, privacy and legal](07-security-privacy-legal.md)
|
|
32
|
+
8. [Testing and proof](08-testing-and-proof.md)
|
|
33
|
+
9. [Compatibility and roadmap](09-compatibility-and-roadmap.md)
|
|
34
|
+
10. [Contributor guide](10-contributor-guide.md)
|
|
35
|
+
11. [Glossary and FAQ](11-glossary-and-faq.md)
|
|
36
|
+
12. [Rule catalog](12-rule-catalog.md)
|
|
37
|
+
|
|
38
|
+
## One-paragraph truth
|
|
39
|
+
|
|
40
|
+
The CLI reads a project **without changing it**, finds test-hygiene problems with `file:line` evidence, reads test results that **you** supply, and prints a release decision: `NO_GO`, `REVIEW_REQUIRED` or `READY_FOR_HUMAN_APPROVAL`. It does **not** run your tests, does **not** call the network or any AI model, and **never** authorizes a deployment. The 17 skills guide your AI IDE's own model through the same evidence-first method.
|
|
@@ -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/00-start-here.html"><meta http-equiv="refresh" content="0; url=../00-start-here.html"><title>Moved — PramanaSutra AI</title></head><body><p>This page moved to <a href="../00-start-here.html">Start here</a>.</p></body></html>
|