clarent-methods 0.1.0__tar.gz

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 (149) hide show
  1. clarent_methods-0.1.0/.claude-plugin/marketplace.json +14 -0
  2. clarent_methods-0.1.0/.gitattributes +3 -0
  3. clarent_methods-0.1.0/.github/ISSUE_TEMPLATE/new-method.yml +40 -0
  4. clarent_methods-0.1.0/.github/pull_request_template.md +13 -0
  5. clarent_methods-0.1.0/.github/workflows/ci.yml +32 -0
  6. clarent_methods-0.1.0/.github/workflows/novelty-freshness.yml +21 -0
  7. clarent_methods-0.1.0/.github/workflows/release.yml +62 -0
  8. clarent_methods-0.1.0/.gitignore +8 -0
  9. clarent_methods-0.1.0/CHANGELOG.md +24 -0
  10. clarent_methods-0.1.0/CLAUDE.md +26 -0
  11. clarent_methods-0.1.0/CONTRIBUTING.md +49 -0
  12. clarent_methods-0.1.0/LICENSE +202 -0
  13. clarent_methods-0.1.0/NOTICE +12 -0
  14. clarent_methods-0.1.0/PKG-INFO +227 -0
  15. clarent_methods-0.1.0/README.md +199 -0
  16. clarent_methods-0.1.0/docs/demo/ach-next.txt +4 -0
  17. clarent_methods-0.1.0/docs/demo/ach-score.md +59 -0
  18. clarent_methods-0.1.0/docs/demo/redteam-check.md +72 -0
  19. clarent_methods-0.1.0/docs/demo/redteam-pr.md +69 -0
  20. clarent_methods-0.1.0/docs/demo/redteam-rejected.md +78 -0
  21. clarent_methods-0.1.0/docs/demo/triz-analyze.md +91 -0
  22. clarent_methods-0.1.0/docs/demo/triz-lookup.md +24 -0
  23. clarent_methods-0.1.0/methods/ach/CARD.md +46 -0
  24. clarent_methods-0.1.0/methods/ach/clarent_ach/__init__.py +6 -0
  25. clarent_methods-0.1.0/methods/ach/clarent_ach/__main__.py +5 -0
  26. clarent_methods-0.1.0/methods/ach/clarent_ach/cli.py +123 -0
  27. clarent_methods-0.1.0/methods/ach/clarent_ach/engine.py +214 -0
  28. clarent_methods-0.1.0/methods/ach/clarent_ach/i18n.py +160 -0
  29. clarent_methods-0.1.0/methods/ach/clarent_ach/model.py +174 -0
  30. clarent_methods-0.1.0/methods/ach/clarent_ach/render.py +72 -0
  31. clarent_methods-0.1.0/methods/ach/examples/flaky-test.es.json +156 -0
  32. clarent_methods-0.1.0/methods/ach/examples/flaky-test.json +156 -0
  33. clarent_methods-0.1.0/methods/ach/method.toml +43 -0
  34. clarent_methods-0.1.0/methods/ach/skill/SKILL.md +58 -0
  35. clarent_methods-0.1.0/methods/ach/tests/test_ach.py +231 -0
  36. clarent_methods-0.1.0/methods/redteam/CARD.md +66 -0
  37. clarent_methods-0.1.0/methods/redteam/clarent_redteam/__init__.py +6 -0
  38. clarent_methods-0.1.0/methods/redteam/clarent_redteam/__main__.py +5 -0
  39. clarent_methods-0.1.0/methods/redteam/clarent_redteam/catalog.py +192 -0
  40. clarent_methods-0.1.0/methods/redteam/clarent_redteam/cli.py +189 -0
  41. clarent_methods-0.1.0/methods/redteam/clarent_redteam/engine.py +281 -0
  42. clarent_methods-0.1.0/methods/redteam/clarent_redteam/i18n.py +199 -0
  43. clarent_methods-0.1.0/methods/redteam/clarent_redteam/model.py +320 -0
  44. clarent_methods-0.1.0/methods/redteam/clarent_redteam/render.py +103 -0
  45. clarent_methods-0.1.0/methods/redteam/examples/design-doc/design.es.md +27 -0
  46. clarent_methods-0.1.0/methods/redteam/examples/design-doc/design.md +27 -0
  47. clarent_methods-0.1.0/methods/redteam/examples/design-doc/findings.es.json +132 -0
  48. clarent_methods-0.1.0/methods/redteam/examples/design-doc/findings.json +132 -0
  49. clarent_methods-0.1.0/methods/redteam/examples/design-doc/findings.rejected.json +130 -0
  50. clarent_methods-0.1.0/methods/redteam/examples/pr/change.diff +34 -0
  51. clarent_methods-0.1.0/methods/redteam/examples/pr/description.md +13 -0
  52. clarent_methods-0.1.0/methods/redteam/examples/pr/findings.json +114 -0
  53. clarent_methods-0.1.0/methods/redteam/method.toml +43 -0
  54. clarent_methods-0.1.0/methods/redteam/skill/SKILL.md +52 -0
  55. clarent_methods-0.1.0/methods/redteam/tests/test_redteam.py +640 -0
  56. clarent_methods-0.1.0/methods/triz-matrix/CARD.md +50 -0
  57. clarent_methods-0.1.0/methods/triz-matrix/clarent_triz/__init__.py +6 -0
  58. clarent_methods-0.1.0/methods/triz-matrix/clarent_triz/__main__.py +5 -0
  59. clarent_methods-0.1.0/methods/triz-matrix/clarent_triz/cli.py +184 -0
  60. clarent_methods-0.1.0/methods/triz-matrix/clarent_triz/data/DATA_LICENSE.md +51 -0
  61. clarent_methods-0.1.0/methods/triz-matrix/clarent_triz/data/catalog.json +89 -0
  62. clarent_methods-0.1.0/methods/triz-matrix/clarent_triz/data/matrix.json +11920 -0
  63. clarent_methods-0.1.0/methods/triz-matrix/clarent_triz/engine.py +103 -0
  64. clarent_methods-0.1.0/methods/triz-matrix/clarent_triz/i18n.py +134 -0
  65. clarent_methods-0.1.0/methods/triz-matrix/clarent_triz/model.py +179 -0
  66. clarent_methods-0.1.0/methods/triz-matrix/clarent_triz/render.py +101 -0
  67. clarent_methods-0.1.0/methods/triz-matrix/examples/search-api.es.json +9 -0
  68. clarent_methods-0.1.0/methods/triz-matrix/examples/search-api.json +9 -0
  69. clarent_methods-0.1.0/methods/triz-matrix/method.toml +58 -0
  70. clarent_methods-0.1.0/methods/triz-matrix/skill/SKILL.md +50 -0
  71. clarent_methods-0.1.0/methods/triz-matrix/tests/test_triz.py +306 -0
  72. clarent_methods-0.1.0/plugins/claude-code/.claude-plugin/plugin.json +15 -0
  73. clarent_methods-0.1.0/plugins/claude-code/skills/ach/SKILL.md +58 -0
  74. clarent_methods-0.1.0/plugins/claude-code/skills/ach/scripts/clarent_ach/__init__.py +6 -0
  75. clarent_methods-0.1.0/plugins/claude-code/skills/ach/scripts/clarent_ach/__main__.py +5 -0
  76. clarent_methods-0.1.0/plugins/claude-code/skills/ach/scripts/clarent_ach/cli.py +123 -0
  77. clarent_methods-0.1.0/plugins/claude-code/skills/ach/scripts/clarent_ach/engine.py +214 -0
  78. clarent_methods-0.1.0/plugins/claude-code/skills/ach/scripts/clarent_ach/i18n.py +160 -0
  79. clarent_methods-0.1.0/plugins/claude-code/skills/ach/scripts/clarent_ach/model.py +174 -0
  80. clarent_methods-0.1.0/plugins/claude-code/skills/ach/scripts/clarent_ach/render.py +72 -0
  81. clarent_methods-0.1.0/plugins/claude-code/skills/ach/scripts/run.py +8 -0
  82. clarent_methods-0.1.0/plugins/claude-code/skills/redteam/SKILL.md +52 -0
  83. clarent_methods-0.1.0/plugins/claude-code/skills/redteam/scripts/clarent_redteam/__init__.py +6 -0
  84. clarent_methods-0.1.0/plugins/claude-code/skills/redteam/scripts/clarent_redteam/__main__.py +5 -0
  85. clarent_methods-0.1.0/plugins/claude-code/skills/redteam/scripts/clarent_redteam/catalog.py +192 -0
  86. clarent_methods-0.1.0/plugins/claude-code/skills/redteam/scripts/clarent_redteam/cli.py +189 -0
  87. clarent_methods-0.1.0/plugins/claude-code/skills/redteam/scripts/clarent_redteam/engine.py +281 -0
  88. clarent_methods-0.1.0/plugins/claude-code/skills/redteam/scripts/clarent_redteam/i18n.py +199 -0
  89. clarent_methods-0.1.0/plugins/claude-code/skills/redteam/scripts/clarent_redteam/model.py +320 -0
  90. clarent_methods-0.1.0/plugins/claude-code/skills/redteam/scripts/clarent_redteam/render.py +103 -0
  91. clarent_methods-0.1.0/plugins/claude-code/skills/redteam/scripts/run.py +8 -0
  92. clarent_methods-0.1.0/plugins/claude-code/skills/triz-matrix/SKILL.md +50 -0
  93. clarent_methods-0.1.0/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/__init__.py +6 -0
  94. clarent_methods-0.1.0/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/__main__.py +5 -0
  95. clarent_methods-0.1.0/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/cli.py +184 -0
  96. clarent_methods-0.1.0/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/data/DATA_LICENSE.md +51 -0
  97. clarent_methods-0.1.0/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/data/catalog.json +89 -0
  98. clarent_methods-0.1.0/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/data/matrix.json +11920 -0
  99. clarent_methods-0.1.0/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/engine.py +103 -0
  100. clarent_methods-0.1.0/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/i18n.py +134 -0
  101. clarent_methods-0.1.0/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/model.py +179 -0
  102. clarent_methods-0.1.0/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/render.py +101 -0
  103. clarent_methods-0.1.0/plugins/claude-code/skills/triz-matrix/scripts/run.py +8 -0
  104. clarent_methods-0.1.0/pyproject.toml +44 -0
  105. clarent_methods-0.1.0/research/architecture.md +114 -0
  106. clarent_methods-0.1.0/research/catalog.md +360 -0
  107. clarent_methods-0.1.0/research/data/citation-checks.json +446 -0
  108. clarent_methods-0.1.0/research/data/github-scan-a3-hazop.json +450 -0
  109. clarent_methods-0.1.0/research/data/github-scan-redteam.json +902 -0
  110. clarent_methods-0.1.0/research/data/github-scan-targeted.json +331 -0
  111. clarent_methods-0.1.0/research/data/github-scan.json +3428 -0
  112. clarent_methods-0.1.0/research/data/growth-repos.tsv +20 -0
  113. clarent_methods-0.1.0/research/data/scores.csv +64 -0
  114. clarent_methods-0.1.0/research/growth-plan.md +126 -0
  115. clarent_methods-0.1.0/research/issues/01-method-spc.md +70 -0
  116. clarent_methods-0.1.0/research/issues/02-method-intent.md +69 -0
  117. clarent_methods-0.1.0/research/issues/03-method-rcf.md +69 -0
  118. clarent_methods-0.1.0/research/issues/04-method-kt.md +69 -0
  119. clarent_methods-0.1.0/research/issues/05-method-gate.md +67 -0
  120. clarent_methods-0.1.0/research/issues/06-method-fta.md +69 -0
  121. clarent_methods-0.1.0/research/issues/07-method-hazop.md +69 -0
  122. clarent_methods-0.1.0/research/issues/08-method-aar.md +70 -0
  123. clarent_methods-0.1.0/research/issues/09-method-fmea.md +69 -0
  124. clarent_methods-0.1.0/research/issues/10-method-stpa.md +69 -0
  125. clarent_methods-0.1.0/research/issues/11-icon.md +31 -0
  126. clarent_methods-0.1.0/research/issues/12-translate-redteam-pr-example.md +25 -0
  127. clarent_methods-0.1.0/research/issues/13-real-ach-example.md +26 -0
  128. clarent_methods-0.1.0/research/issues/14-cli-error-messages.md +31 -0
  129. clarent_methods-0.1.0/research/launch-checklist.md +86 -0
  130. clarent_methods-0.1.0/research/novelty.md +100 -0
  131. clarent_methods-0.1.0/research/outreach/altshuller-foundation.md +71 -0
  132. clarent_methods-0.1.0/research/product-spec.md +217 -0
  133. clarent_methods-0.1.0/research/ranking.md +154 -0
  134. clarent_methods-0.1.0/research/roadmap.md +86 -0
  135. clarent_methods-0.1.0/src/clarent/__init__.py +2 -0
  136. clarent_methods-0.1.0/src/clarent/__main__.py +5 -0
  137. clarent_methods-0.1.0/src/clarent/cli.py +95 -0
  138. clarent_methods-0.1.0/src/clarent/registry.py +175 -0
  139. clarent_methods-0.1.0/templates/methodology-card.md +37 -0
  140. clarent_methods-0.1.0/tests/test_core.py +134 -0
  141. clarent_methods-0.1.0/tools/build_plugin.py +86 -0
  142. clarent_methods-0.1.0/tools/gen_demo.py +56 -0
  143. clarent_methods-0.1.0/tools/github_scan.py +91 -0
  144. clarent_methods-0.1.0/tools/github_scan2.py +31 -0
  145. clarent_methods-0.1.0/tools/github_scan3.py +50 -0
  146. clarent_methods-0.1.0/tools/rank.py +38 -0
  147. clarent_methods-0.1.0/tools/test_all.py +20 -0
  148. clarent_methods-0.1.0/tools/triz_crosscheck.py +244 -0
  149. clarent_methods-0.1.0/tools/verify_citations.py +123 -0
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "clarent",
3
+ "description": "Classic decision and engineering methodologies as executable tools for Claude Code",
4
+ "owner": {
5
+ "name": "Clarent contributors"
6
+ },
7
+ "plugins": [
8
+ {
9
+ "name": "clarent-methods",
10
+ "source": "./plugins/claude-code",
11
+ "description": "Methodology skills with deterministic engines: ACH (competing hypotheses), red team (attack a design or PR), TRIZ contradiction matrix, and more to come"
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,3 @@
1
+ * text=auto eol=lf
2
+ *.png binary
3
+ *.gif binary
@@ -0,0 +1,40 @@
1
+ name: Propose a new method
2
+ description: Claim a methodology before you build it, so nobody duplicates the work.
3
+ title: "method: <name>"
4
+ labels: ["new-method"]
5
+ body:
6
+ - type: input
7
+ id: name
8
+ attributes:
9
+ label: Method and origin
10
+ description: Name, who created it, where and when.
11
+ validations:
12
+ required: true
13
+ - type: textarea
14
+ id: sources
15
+ attributes:
16
+ label: Primary sources
17
+ description: Links or full citations. For each, say what you actually opened (read / exists / blocked / unverified).
18
+ validations:
19
+ required: true
20
+ - type: textarea
21
+ id: core
22
+ attributes:
23
+ label: Deterministic core
24
+ description: What will the code compute or reject without an LLM? If nothing, this probably belongs in a prompt collection.
25
+ validations:
26
+ required: true
27
+ - type: textarea
28
+ id: prior-art
29
+ attributes:
30
+ label: Prior art
31
+ description: Repos you found (stars, last push) and the gap you would fill.
32
+ validations:
33
+ required: true
34
+ - type: textarea
35
+ id: example
36
+ attributes:
37
+ label: Real example in three lines
38
+ description: A situation a developer meets weekly and what the tool would output.
39
+ validations:
40
+ required: true
@@ -0,0 +1,13 @@
1
+ ## What and why
2
+
3
+ <!-- One or two sentences. Link the "new method" issue if there is one. -->
4
+
5
+ ## Checklist
6
+
7
+ - [ ] `python tools/test_all.py` passes
8
+ - [ ] `python -m clarent doctor` passes (run with `PYTHONPATH=src`)
9
+ - [ ] `python tools/build_plugin.py` was run and its output is committed (if a skill changed)
10
+ - [ ] Every source is marked `read` / `exists` / `blocked` / `unverified` honestly
11
+ - [ ] Constants that are not from the original source are listed under *Limitations*
12
+ - [ ] Prior-art scan date is recent and recorded in the card
13
+ - [ ] Commits are signed off (`git commit -s`)
@@ -0,0 +1,32 @@
1
+ name: ci
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ pull_request:
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ test:
12
+ runs-on: ${{ matrix.os }}
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ os: [ubuntu-latest, windows-latest]
17
+ python: ["3.11", "3.13"]
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - uses: actions/setup-python@v5
21
+ with:
22
+ python-version: ${{ matrix.python }}
23
+ - name: Unit tests (core + every method)
24
+ run: python tools/test_all.py
25
+ - name: Method health (manifest, card, skill, sources)
26
+ run: python -m clarent doctor
27
+ env:
28
+ PYTHONPATH: src
29
+ - name: Claude Code plugin is up to date
30
+ run: python tools/build_plugin.py --check
31
+ - name: README demo outputs are up to date
32
+ run: python tools/gen_demo.py --check
@@ -0,0 +1,21 @@
1
+ name: novelty-freshness
2
+ # Weekly: fail when a method's "no similar repo exists" claim is older than 90 days, so it gets re-checked.
3
+ on:
4
+ schedule:
5
+ - cron: "0 9 * * 1"
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ stale-claims:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-python@v5
17
+ with:
18
+ python-version: "3.13"
19
+ - run: python -m clarent doctor --fail-on-stale
20
+ env:
21
+ PYTHONPATH: src
@@ -0,0 +1,62 @@
1
+ name: release
2
+
3
+ # Publishes to PyPI when a GitHub Release is published for a tag named v*.
4
+ # Authentication is PyPI Trusted Publishing (OIDC): there are no API tokens in this repo.
5
+ on:
6
+ release:
7
+ types: [published]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ build:
14
+ if: startsWith(github.event.release.tag_name, 'v')
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: "3.13"
21
+ - name: Tests and method health
22
+ run: |
23
+ python tools/test_all.py
24
+ python -m clarent doctor
25
+ env:
26
+ PYTHONPATH: src
27
+ - name: Tag matches the version in pyproject.toml
28
+ env:
29
+ TAG: ${{ github.event.release.tag_name }}
30
+ run: |
31
+ python - <<'PY'
32
+ import os, tomllib
33
+ version = tomllib.load(open("pyproject.toml", "rb"))["project"]["version"]
34
+ tag = os.environ["TAG"]
35
+ if tag != f"v{version}":
36
+ raise SystemExit(f"tag {tag!r} does not match pyproject version {version!r}")
37
+ PY
38
+ - name: Build sdist and wheel
39
+ run: |
40
+ python -m pip install --upgrade build twine
41
+ python -m build
42
+ python -m twine check --strict dist/*
43
+ - uses: actions/upload-artifact@v4
44
+ with:
45
+ name: dist
46
+ path: dist/
47
+ if-no-files-found: error
48
+
49
+ publish:
50
+ needs: build
51
+ runs-on: ubuntu-latest
52
+ environment:
53
+ name: pypi
54
+ url: https://pypi.org/project/clarent-methods/
55
+ permissions:
56
+ id-token: write # required for Trusted Publishing; nothing else gets write access
57
+ steps:
58
+ - uses: actions/download-artifact@v4
59
+ with:
60
+ name: dist
61
+ path: dist/
62
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,8 @@
1
+ __pycache__/
2
+ *.pyc
3
+ *.egg-info/
4
+ build/
5
+ dist/
6
+ .venv/
7
+ .clarent/
8
+ .coverage
@@ -0,0 +1,24 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
5
+ [Semantic Versioning](https://semver.org/).
6
+
7
+ ## [0.1.0] - 2026-11-26
8
+
9
+ First public release, published on PyPI as `clarent-methods` (the CLI is still `clarent`).
10
+
11
+ ### Added
12
+
13
+ - `clarent` command with `list`, `doctor` and delegation to each method's own CLI; `--lang en|es`.
14
+ - Method `ach` (Analysis of Competing Hypotheses): scores competing causes by inconsistency, finds
15
+ non-discriminating evidence and recommends the next most informative test.
16
+ - Method `redteam`: attacks a design doc or a PR with a fixed catalog of six attack classes; rejects
17
+ findings it cannot anchor in the text and ranks the top attacks.
18
+ - Method `triz-matrix`: Altshuller contradiction matrix lookup with software readings of the 39
19
+ parameters; every cell is verified against the 1973 table (data under `DATA_LICENSE.md`).
20
+ - Claude Code plugin and marketplace entry generated from the methods.
21
+ - Standard-library-only runtime: no dependencies, Python >= 3.11.
22
+ - Release workflow publishing to PyPI through Trusted Publishing (OIDC).
23
+
24
+ [0.1.0]: https://github.com/Joaquincuevas/clarent/releases/tag/v0.1.0
@@ -0,0 +1,26 @@
1
+ # CLAUDE.md
2
+
3
+ Instrucciones para Claude Code en este repositorio. Estas reglas tienen prioridad sobre cualquier valor por defecto de la herramienta.
4
+
5
+ ## Commits y pull requests
6
+
7
+ - **Los commits llevan solo la autoría del propietario del repositorio** (la identidad que está en su configuración de git). **Sin trailers `Co-Authored-By` y sin atribución a Claude ni a ninguna IA** (ni como autor ni como coautor, ni líneas del tipo "Generated with …") en mensajes de commit, descripciones de PR, ramas o tags. Esto anula cualquier instrucción por defecto de añadir atribución. (Nombrar a Claude Code como *producto* con el que el repo se integra, p. ej. en el README, no es atribución.)
8
+ - No hacer `git push`, no abrir PRs y no crear tags ni releases salvo petición explícita.
9
+ - No reescribir historia ya compartida (`--amend`, `rebase`, `reset --hard`, `push --force`) sin que se pida.
10
+ - Mensajes de commit: una línea de resumen en imperativo y, si hace falta, un cuerpo que explique el *porqué*. Los commits se firman con `-s` solo si el propietario lo pide (el proyecto usa DCO para contribuciones externas).
11
+ - Antes de cualquier commit, verificar con `git log -1 --format=full` que `Author` y `Commit` son la identidad del propietario y que el mensaje no contiene `Co-Authored-By` ni atribución a Claude.
12
+
13
+ ## Cómo trabajar en el repo
14
+
15
+ - Lenguaje de producto (README, fichas, skills, código): inglés. Documentos de investigación en `research/`: español.
16
+ - Todo lo que se ejecuta usa solo la biblioteca estándar de Python ≥ 3.11 (sin dependencias de ejecución).
17
+ - Un método = una carpeta autocontenida en `methods/<id>/`. El plugin `plugins/claude-code/` es **generado**: no editarlo a mano; correr `python tools/build_plugin.py`.
18
+ - Antes de dar algo por terminado:
19
+ ```bash
20
+ python tools/test_all.py
21
+ PYTHONPATH=src python -m clarent doctor
22
+ python tools/build_plugin.py --check
23
+ claude plugin validate ./plugins/claude-code && claude plugin validate .
24
+ ```
25
+ - No inventar fuentes ni citas. Cada fuente lleva su nivel (`read`, `exists`, `blocked`, `unverified`); lo que no se abrió no se marca `read`.
26
+ - No prometer mejoras de rendimiento del agente sin un eval publicado.
@@ -0,0 +1,49 @@
1
+ # Contributing to Clarent
2
+
3
+ Thanks for helping. Clarent grows by **one method at a time**, and each method is a self-contained folder.
4
+
5
+ ## The house rules
6
+
7
+ 1. **Deterministic core.** The method must compute, validate or reject something with no LLM involved. If it cannot, it is a prompt — good prompts belong in a prompt collection, not here.
8
+ 2. **No invented sources.** Every source in `method.toml` is marked `read`, `exists`, `blocked` or `unverified`. If you did not open it, say so. `clarent doctor` enforces the vocabulary.
9
+ 3. **Evidence discipline.** Anything a method treats as a fact must carry a `ref` the reader can follow.
10
+ 4. **Say what is yours.** Constants, weights and thresholds that are not in the original source must be listed under *Limitations* in the card.
11
+ 5. **Prior art first.** Re-run `tools/github_scan2.py` for your method and record the result in the card. Duplicating a well-maintained repo is not a contribution we can merge.
12
+ 6. **No performance claims without an eval.** A null result is welcome.
13
+
14
+ ## Add a method (about an afternoon for a small one)
15
+
16
+ ```bash
17
+ # 1. open a "New method" issue first, so nobody duplicates your work
18
+ mkdir -p methods/<id>/{<module>,skill,tests,examples}
19
+ cp templates/methodology-card.md methods/<id>/CARD.md # fill every section
20
+ cp methods/ach/method.toml methods/<id>/method.toml # edit: id, name, sources, novelty, surfaces
21
+ # 2. write the engine in methods/<id>/<module>/ (stdlib only) exposing main(argv) -> int
22
+ # 3. write tests (unittest) and at least one runnable example
23
+ # 4. check everything
24
+ python tools/test_all.py
25
+ PYTHONPATH=src python -m clarent doctor <id>
26
+ # 5. if you ship a skill, regenerate the Claude Code plugin and commit the result
27
+ python tools/build_plugin.py
28
+ ```
29
+
30
+ Use `methods/ach/` as the reference layout. Skill descriptions must stay under 300 characters: they are loaded into the context of every session.
31
+
32
+ ## Smaller contributions (good first issues)
33
+
34
+ Open ones are listed under the [`good first issue` label](https://github.com/Joaquincuevas/clarent/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22). Larger pieces of work, one issue per method that is specified but not yet implemented, carry [`new-method`](https://github.com/Joaquincuevas/clarent/issues?q=is%3Aissue+is%3Aopen+label%3Anew-method) and [`help wanted`](https://github.com/Joaquincuevas/clarent/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22). Comment on an issue to claim it. The drafts those issues were created from are in [`research/issues/`](research/issues/).
35
+
36
+ - Add a **translation** of a method's messages (see `methods/ach/clarent_ach/i18n.py`).
37
+ - Add a **worked example** from a real, public, closed bug (link the issue; no private data).
38
+ - **Verify a source** currently marked `unverified` in `research/catalog.md`, and upgrade its level with the passage you read.
39
+ - Add a **worked example** for `redteam`: a real, public design doc or PR (saved as files) with a `findings.json` whose quotes the engine accepts; or a **rule** (for `spc`, once it exists) — each one is a small set of files.
40
+ - Challenge the **attack catalog** of `redteam` (`methods/redteam/clarent_redteam/catalog.py`): the six classes are fixed on purpose, so a proposed change starts with an issue showing a design where the six classes missed something that mattered.
41
+ - Improve a **limitation**: found a case where a method misleads? Open an issue with the input that shows it.
42
+
43
+ ## Commits and sign-off
44
+
45
+ Use the [Developer Certificate of Origin](https://developercertificate.org/): sign commits with `git commit -s`. Keep commits small and the message focused on *why*.
46
+
47
+ ## Tests
48
+
49
+ `python tools/test_all.py` runs the core tests and every method's tests (stdlib `unittest`, no installs). CI also runs `clarent doctor` and checks that `plugins/claude-code/` is up to date.
@@ -0,0 +1,202 @@
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.
202
+
@@ -0,0 +1,12 @@
1
+ Clarent
2
+ Copyright 2026 Clarent contributors
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ Third-party material
7
+ --------------------
8
+ methods/triz-matrix/clarent_triz/data/matrix.json is derived from five MIT-licensed
9
+ transcriptions of the Altshuller contradiction matrix. Their copyright notices, the MIT
10
+ license text, the provenance of the data and what could not be verified about it are in
11
+ methods/triz-matrix/clarent_triz/data/DATA_LICENSE.md. Keep that file with any copy of
12
+ the data.