clarent-methods 0.1.0__tar.gz → 0.2.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 (396) hide show
  1. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/.github/workflows/ci.yml +9 -2
  2. clarent_methods-0.2.0/.github/workflows/clarent.yml +36 -0
  3. clarent_methods-0.2.0/.github/workflows/docs.yml +42 -0
  4. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/.github/workflows/novelty-freshness.yml +2 -2
  5. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/.github/workflows/release.yml +4 -4
  6. clarent_methods-0.2.0/.gitignore +12 -0
  7. clarent_methods-0.2.0/CHANGELOG.md +92 -0
  8. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/PKG-INFO +81 -24
  9. clarent_methods-0.2.0/README.es.md +254 -0
  10. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/README.md +77 -22
  11. clarent_methods-0.2.0/action.yml +75 -0
  12. clarent_methods-0.2.0/docs/demo/aar-axios.md +53 -0
  13. clarent_methods-0.2.0/docs/demo/ach.cast +150 -0
  14. clarent_methods-0.2.0/docs/demo/ach.gif +0 -0
  15. clarent_methods-0.2.0/docs/demo/intent-lint.txt +1 -0
  16. clarent_methods-0.2.0/docs/demo/make_ach_gif.py +111 -0
  17. clarent_methods-0.2.0/docs/demo/rcf-forecast.md +30 -0
  18. clarent_methods-0.2.0/docs/demo/spc-pytest.md +65 -0
  19. clarent_methods-0.2.0/docs/eval.es.md +34 -0
  20. clarent_methods-0.2.0/docs/eval.md +31 -0
  21. clarent_methods-0.2.0/docs/index.es.md +21 -0
  22. clarent_methods-0.2.0/docs/index.md +21 -0
  23. clarent_methods-0.2.0/docs/integrations/github-action.es.md +47 -0
  24. clarent_methods-0.2.0/docs/integrations/github-action.md +47 -0
  25. clarent_methods-0.2.0/docs/integrations/hooks.es.md +35 -0
  26. clarent_methods-0.2.0/docs/integrations/hooks.md +40 -0
  27. clarent_methods-0.2.0/docs/integrations/mcp.es.md +41 -0
  28. clarent_methods-0.2.0/docs/integrations/mcp.md +43 -0
  29. clarent_methods-0.2.0/docs/methods/aar.es.md +30 -0
  30. clarent_methods-0.2.0/docs/methods/aar.md +28 -0
  31. clarent_methods-0.2.0/docs/methods/ach.es.md +30 -0
  32. clarent_methods-0.2.0/docs/methods/ach.md +29 -0
  33. clarent_methods-0.2.0/docs/methods/intent.es.md +29 -0
  34. clarent_methods-0.2.0/docs/methods/intent.md +29 -0
  35. clarent_methods-0.2.0/docs/methods/rcf.es.md +29 -0
  36. clarent_methods-0.2.0/docs/methods/rcf.md +29 -0
  37. clarent_methods-0.2.0/docs/methods/redteam.es.md +28 -0
  38. clarent_methods-0.2.0/docs/methods/redteam.md +28 -0
  39. clarent_methods-0.2.0/docs/methods/spc.es.md +29 -0
  40. clarent_methods-0.2.0/docs/methods/spc.md +28 -0
  41. clarent_methods-0.2.0/docs/methods/triz-matrix.es.md +24 -0
  42. clarent_methods-0.2.0/docs/methods/triz-matrix.md +24 -0
  43. clarent_methods-0.2.0/docs/quickstart.es.md +44 -0
  44. clarent_methods-0.2.0/docs/quickstart.md +44 -0
  45. clarent_methods-0.2.0/docs/redteam/mcp-server.json +36 -0
  46. clarent_methods-0.2.0/docs/requirements.txt +3 -0
  47. clarent_methods-0.2.0/evals/README.md +43 -0
  48. clarent_methods-0.2.0/evals/RESULTS.md +139 -0
  49. clarent_methods-0.2.0/evals/aar/axios-10576/aar.json +398 -0
  50. clarent_methods-0.2.0/evals/aar/axios-10576/case.json +5 -0
  51. clarent_methods-0.2.0/evals/aar/axios-10576/incident.json +21 -0
  52. clarent_methods-0.2.0/evals/ach/axios-10780/analysis.json +214 -0
  53. clarent_methods-0.2.0/evals/ach/axios-10780/case.json +24 -0
  54. clarent_methods-0.2.0/evals/ach/axios-10780/context.md +96 -0
  55. clarent_methods-0.2.0/evals/ach/axios-10780/generation.json +8 -0
  56. clarent_methods-0.2.0/evals/ach/cpython-104344/analysis.json +226 -0
  57. clarent_methods-0.2.0/evals/ach/cpython-104344/case.json +24 -0
  58. clarent_methods-0.2.0/evals/ach/cpython-104344/context.md +162 -0
  59. clarent_methods-0.2.0/evals/ach/cpython-104344/generation.json +8 -0
  60. clarent_methods-0.2.0/evals/ach/cpython-115634/analysis.json +289 -0
  61. clarent_methods-0.2.0/evals/ach/cpython-115634/case.json +23 -0
  62. clarent_methods-0.2.0/evals/ach/cpython-115634/context.md +385 -0
  63. clarent_methods-0.2.0/evals/ach/cpython-115634/generation.json +8 -0
  64. clarent_methods-0.2.0/evals/ach/jest-15712/analysis.json +235 -0
  65. clarent_methods-0.2.0/evals/ach/jest-15712/case.json +23 -0
  66. clarent_methods-0.2.0/evals/ach/jest-15712/context.md +80 -0
  67. clarent_methods-0.2.0/evals/ach/jest-15712/generation.json +8 -0
  68. clarent_methods-0.2.0/evals/ach/numpy-30816/analysis.json +210 -0
  69. clarent_methods-0.2.0/evals/ach/numpy-30816/case.json +24 -0
  70. clarent_methods-0.2.0/evals/ach/numpy-30816/context.md +136 -0
  71. clarent_methods-0.2.0/evals/ach/numpy-30816/generation.json +8 -0
  72. clarent_methods-0.2.0/evals/ach/pydantic-12800/analysis.json +224 -0
  73. clarent_methods-0.2.0/evals/ach/pydantic-12800/case.json +24 -0
  74. clarent_methods-0.2.0/evals/ach/pydantic-12800/context.md +139 -0
  75. clarent_methods-0.2.0/evals/ach/pydantic-12800/generation.json +8 -0
  76. clarent_methods-0.2.0/evals/ach/pydantic-9545/analysis.json +258 -0
  77. clarent_methods-0.2.0/evals/ach/pydantic-9545/case.json +23 -0
  78. clarent_methods-0.2.0/evals/ach/pydantic-9545/context.md +361 -0
  79. clarent_methods-0.2.0/evals/ach/pydantic-9545/generation.json +8 -0
  80. clarent_methods-0.2.0/evals/ach/pytest-13312/analysis.json +188 -0
  81. clarent_methods-0.2.0/evals/ach/pytest-13312/case.json +23 -0
  82. clarent_methods-0.2.0/evals/ach/pytest-13312/context.md +99 -0
  83. clarent_methods-0.2.0/evals/ach/pytest-13312/generation.json +8 -0
  84. clarent_methods-0.2.0/evals/ach/pytest-9236/analysis.json +225 -0
  85. clarent_methods-0.2.0/evals/ach/pytest-9236/case.json +23 -0
  86. clarent_methods-0.2.0/evals/ach/pytest-9236/context.md +122 -0
  87. clarent_methods-0.2.0/evals/ach/pytest-9236/generation.json +8 -0
  88. clarent_methods-0.2.0/evals/ach/webpack-19394/analysis.json +193 -0
  89. clarent_methods-0.2.0/evals/ach/webpack-19394/case.json +24 -0
  90. clarent_methods-0.2.0/evals/ach/webpack-19394/context.md +65 -0
  91. clarent_methods-0.2.0/evals/ach/webpack-19394/generation.json +8 -0
  92. clarent_methods-0.2.0/evals/fetch.py +65 -0
  93. clarent_methods-0.2.0/evals/generate.py +93 -0
  94. clarent_methods-0.2.0/evals/intent/subagent-hook/README.md +23 -0
  95. clarent_methods-0.2.0/evals/intent/subagent-hook/hook.log +4 -0
  96. clarent_methods-0.2.0/evals/intent/subagent-hook/run.sh +31 -0
  97. clarent_methods-0.2.0/evals/out/aar-axios-10576.md +53 -0
  98. clarent_methods-0.2.0/evals/out/ach-axios-10780.md +67 -0
  99. clarent_methods-0.2.0/evals/out/ach-cpython-104344.md +73 -0
  100. clarent_methods-0.2.0/evals/out/ach-cpython-115634.md +77 -0
  101. clarent_methods-0.2.0/evals/out/ach-jest-15712.md +70 -0
  102. clarent_methods-0.2.0/evals/out/ach-numpy-30816.md +75 -0
  103. clarent_methods-0.2.0/evals/out/ach-pydantic-12800.md +65 -0
  104. clarent_methods-0.2.0/evals/out/ach-pydantic-9545.md +75 -0
  105. clarent_methods-0.2.0/evals/out/ach-pytest-13312.md +67 -0
  106. clarent_methods-0.2.0/evals/out/ach-pytest-9236.md +70 -0
  107. clarent_methods-0.2.0/evals/out/ach-webpack-19394.md +67 -0
  108. clarent_methods-0.2.0/evals/out/redteam-axios-10576.md +72 -0
  109. clarent_methods-0.2.0/evals/out/redteam-cpython-98582.md +67 -0
  110. clarent_methods-0.2.0/evals/out/redteam-pydantic-11670.md +73 -0
  111. clarent_methods-0.2.0/evals/out/redteam-pytest-12409.md +80 -0
  112. clarent_methods-0.2.0/evals/out/redteam-webpack-14357.md +63 -0
  113. clarent_methods-0.2.0/evals/out/spc-pytest-ci.md +65 -0
  114. clarent_methods-0.2.0/evals/rcf/pytest/case.json +6 -0
  115. clarent_methods-0.2.0/evals/rcf/pytest/history.json +6232 -0
  116. clarent_methods-0.2.0/evals/redteam/axios-10576/case.json +14 -0
  117. clarent_methods-0.2.0/evals/redteam/axios-10576/change.diff +166 -0
  118. clarent_methods-0.2.0/evals/redteam/axios-10576/description.md +37 -0
  119. clarent_methods-0.2.0/evals/redteam/axios-10576/findings.json +120 -0
  120. clarent_methods-0.2.0/evals/redteam/axios-10576/generation.json +8 -0
  121. clarent_methods-0.2.0/evals/redteam/cpython-98582/case.json +15 -0
  122. clarent_methods-0.2.0/evals/redteam/cpython-98582/change.diff +75 -0
  123. clarent_methods-0.2.0/evals/redteam/cpython-98582/description.md +46 -0
  124. clarent_methods-0.2.0/evals/redteam/cpython-98582/findings.json +133 -0
  125. clarent_methods-0.2.0/evals/redteam/cpython-98582/generation.json +8 -0
  126. clarent_methods-0.2.0/evals/redteam/pydantic-11670/case.json +12 -0
  127. clarent_methods-0.2.0/evals/redteam/pydantic-11670/change.diff +101 -0
  128. clarent_methods-0.2.0/evals/redteam/pydantic-11670/description.md +29 -0
  129. clarent_methods-0.2.0/evals/redteam/pydantic-11670/findings.json +120 -0
  130. clarent_methods-0.2.0/evals/redteam/pydantic-11670/generation.json +8 -0
  131. clarent_methods-0.2.0/evals/redteam/pytest-12409/case.json +12 -0
  132. clarent_methods-0.2.0/evals/redteam/pytest-12409/change.diff +257 -0
  133. clarent_methods-0.2.0/evals/redteam/pytest-12409/description.md +11 -0
  134. clarent_methods-0.2.0/evals/redteam/pytest-12409/findings.json +147 -0
  135. clarent_methods-0.2.0/evals/redteam/pytest-12409/generation.json +8 -0
  136. clarent_methods-0.2.0/evals/redteam/webpack-14357/case.json +16 -0
  137. clarent_methods-0.2.0/evals/redteam/webpack-14357/change.diff +791 -0
  138. clarent_methods-0.2.0/evals/redteam/webpack-14357/description.md +138 -0
  139. clarent_methods-0.2.0/evals/redteam/webpack-14357/findings.json +153 -0
  140. clarent_methods-0.2.0/evals/redteam/webpack-14357/generation.json +8 -0
  141. clarent_methods-0.2.0/evals/results.before.json +390 -0
  142. clarent_methods-0.2.0/evals/results.json +480 -0
  143. clarent_methods-0.2.0/evals/run.py +274 -0
  144. clarent_methods-0.2.0/evals/spc/pytest-ci/case.json +12 -0
  145. clarent_methods-0.2.0/evals/spc/pytest-ci/runs.json +1 -0
  146. clarent_methods-0.2.0/methods/aar/CARD.md +82 -0
  147. clarent_methods-0.2.0/methods/aar/clarent_aar/__init__.py +5 -0
  148. clarent_methods-0.2.0/methods/aar/clarent_aar/cli.py +200 -0
  149. clarent_methods-0.2.0/methods/aar/clarent_aar/engine.py +200 -0
  150. clarent_methods-0.2.0/methods/aar/clarent_aar/i18n.py +87 -0
  151. clarent_methods-0.2.0/methods/aar/clarent_aar/model.py +108 -0
  152. clarent_methods-0.2.0/methods/aar/examples/release.es.json +93 -0
  153. clarent_methods-0.2.0/methods/aar/examples/release.json +93 -0
  154. clarent_methods-0.2.0/methods/aar/method.toml +33 -0
  155. clarent_methods-0.2.0/methods/aar/skill/SKILL.md +46 -0
  156. clarent_methods-0.2.0/methods/aar/tests/test_aar.py +194 -0
  157. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/ach/CARD.md +1 -1
  158. {clarent_methods-0.1.0/plugins/claude-code/skills/ach/scripts → clarent_methods-0.2.0/methods/ach}/clarent_ach/engine.py +22 -6
  159. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/ach/clarent_ach/i18n.py +14 -2
  160. {clarent_methods-0.1.0/plugins/claude-code/skills/ach/scripts → clarent_methods-0.2.0/methods/ach}/clarent_ach/model.py +11 -1
  161. {clarent_methods-0.1.0/plugins/claude-code/skills/ach/scripts → clarent_methods-0.2.0/methods/ach}/clarent_ach/render.py +1 -1
  162. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/ach/tests/test_ach.py +40 -1
  163. clarent_methods-0.2.0/methods/intent/CARD.md +87 -0
  164. clarent_methods-0.2.0/methods/intent/clarent_intent/__init__.py +5 -0
  165. clarent_methods-0.2.0/methods/intent/clarent_intent/cli.py +177 -0
  166. clarent_methods-0.2.0/methods/intent/clarent_intent/engine.py +145 -0
  167. clarent_methods-0.2.0/methods/intent/clarent_intent/i18n.py +87 -0
  168. clarent_methods-0.2.0/methods/intent/clarent_intent/model.py +136 -0
  169. clarent_methods-0.2.0/methods/intent/examples/httpx-migration.es.md +15 -0
  170. clarent_methods-0.2.0/methods/intent/examples/httpx-migration.md +15 -0
  171. clarent_methods-0.2.0/methods/intent/method.toml +38 -0
  172. clarent_methods-0.2.0/methods/intent/skill/SKILL.md +48 -0
  173. clarent_methods-0.2.0/methods/intent/tests/test_intent.py +203 -0
  174. clarent_methods-0.2.0/methods/rcf/CARD.md +81 -0
  175. clarent_methods-0.2.0/methods/rcf/clarent_rcf/__init__.py +5 -0
  176. clarent_methods-0.2.0/methods/rcf/clarent_rcf/cli.py +206 -0
  177. clarent_methods-0.2.0/methods/rcf/clarent_rcf/engine.py +146 -0
  178. clarent_methods-0.2.0/methods/rcf/clarent_rcf/i18n.py +71 -0
  179. clarent_methods-0.2.0/methods/rcf/clarent_rcf/model.py +114 -0
  180. clarent_methods-0.2.0/methods/rcf/examples/history.synthetic.es.json +1086 -0
  181. clarent_methods-0.2.0/methods/rcf/examples/history.synthetic.json +1086 -0
  182. clarent_methods-0.2.0/methods/rcf/method.toml +33 -0
  183. clarent_methods-0.2.0/methods/rcf/skill/SKILL.md +45 -0
  184. clarent_methods-0.2.0/methods/rcf/tests/test_rcf.py +144 -0
  185. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/CARD.md +1 -1
  186. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/clarent_redteam/i18n.py +2 -0
  187. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/clarent_redteam/model.py +9 -1
  188. clarent_methods-0.2.0/methods/redteam/examples/pr/description.es.md +13 -0
  189. clarent_methods-0.2.0/methods/redteam/examples/pr/findings.es.json +132 -0
  190. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/tests/test_redteam.py +5 -0
  191. clarent_methods-0.2.0/methods/spc/CARD.md +98 -0
  192. clarent_methods-0.2.0/methods/spc/clarent_spc/__init__.py +6 -0
  193. clarent_methods-0.2.0/methods/spc/clarent_spc/cli.py +159 -0
  194. clarent_methods-0.2.0/methods/spc/clarent_spc/engine.py +203 -0
  195. clarent_methods-0.2.0/methods/spc/clarent_spc/i18n.py +93 -0
  196. clarent_methods-0.2.0/methods/spc/clarent_spc/model.py +113 -0
  197. clarent_methods-0.2.0/methods/spc/clarent_spc/render.py +78 -0
  198. clarent_methods-0.2.0/methods/spc/examples/flaky-rate.es.json +205 -0
  199. clarent_methods-0.2.0/methods/spc/examples/flaky-rate.json +205 -0
  200. clarent_methods-0.2.0/methods/spc/examples/gh-pytest-main-runs.json +1 -0
  201. clarent_methods-0.2.0/methods/spc/method.toml +43 -0
  202. clarent_methods-0.2.0/methods/spc/skill/SKILL.md +47 -0
  203. clarent_methods-0.2.0/methods/spc/tests/test_spc.py +168 -0
  204. clarent_methods-0.2.0/mkdocs.yml +62 -0
  205. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/.claude-plugin/plugin.json +2 -2
  206. clarent_methods-0.2.0/plugins/claude-code/skills/aar/SKILL.md +46 -0
  207. clarent_methods-0.2.0/plugins/claude-code/skills/aar/scripts/clarent_aar/__init__.py +5 -0
  208. clarent_methods-0.2.0/plugins/claude-code/skills/aar/scripts/clarent_aar/__main__.py +5 -0
  209. clarent_methods-0.2.0/plugins/claude-code/skills/aar/scripts/clarent_aar/cli.py +200 -0
  210. clarent_methods-0.2.0/plugins/claude-code/skills/aar/scripts/clarent_aar/engine.py +200 -0
  211. clarent_methods-0.2.0/plugins/claude-code/skills/aar/scripts/clarent_aar/i18n.py +87 -0
  212. clarent_methods-0.2.0/plugins/claude-code/skills/aar/scripts/clarent_aar/model.py +108 -0
  213. clarent_methods-0.2.0/plugins/claude-code/skills/aar/scripts/run.py +8 -0
  214. clarent_methods-0.2.0/plugins/claude-code/skills/ach/scripts/clarent_ach/__main__.py +5 -0
  215. {clarent_methods-0.1.0/methods/ach → clarent_methods-0.2.0/plugins/claude-code/skills/ach/scripts}/clarent_ach/engine.py +22 -6
  216. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/ach/scripts/clarent_ach/i18n.py +14 -2
  217. {clarent_methods-0.1.0/methods/ach → clarent_methods-0.2.0/plugins/claude-code/skills/ach/scripts}/clarent_ach/model.py +11 -1
  218. {clarent_methods-0.1.0/methods/ach → clarent_methods-0.2.0/plugins/claude-code/skills/ach/scripts}/clarent_ach/render.py +1 -1
  219. clarent_methods-0.2.0/plugins/claude-code/skills/intent/SKILL.md +48 -0
  220. clarent_methods-0.2.0/plugins/claude-code/skills/intent/scripts/clarent_intent/__init__.py +5 -0
  221. clarent_methods-0.2.0/plugins/claude-code/skills/intent/scripts/clarent_intent/__main__.py +5 -0
  222. clarent_methods-0.2.0/plugins/claude-code/skills/intent/scripts/clarent_intent/cli.py +177 -0
  223. clarent_methods-0.2.0/plugins/claude-code/skills/intent/scripts/clarent_intent/engine.py +145 -0
  224. clarent_methods-0.2.0/plugins/claude-code/skills/intent/scripts/clarent_intent/i18n.py +87 -0
  225. clarent_methods-0.2.0/plugins/claude-code/skills/intent/scripts/clarent_intent/model.py +136 -0
  226. clarent_methods-0.2.0/plugins/claude-code/skills/intent/scripts/run.py +8 -0
  227. clarent_methods-0.2.0/plugins/claude-code/skills/rcf/SKILL.md +45 -0
  228. clarent_methods-0.2.0/plugins/claude-code/skills/rcf/scripts/clarent_rcf/__init__.py +5 -0
  229. clarent_methods-0.2.0/plugins/claude-code/skills/rcf/scripts/clarent_rcf/__main__.py +5 -0
  230. clarent_methods-0.2.0/plugins/claude-code/skills/rcf/scripts/clarent_rcf/cli.py +206 -0
  231. clarent_methods-0.2.0/plugins/claude-code/skills/rcf/scripts/clarent_rcf/engine.py +146 -0
  232. clarent_methods-0.2.0/plugins/claude-code/skills/rcf/scripts/clarent_rcf/i18n.py +71 -0
  233. clarent_methods-0.2.0/plugins/claude-code/skills/rcf/scripts/clarent_rcf/model.py +114 -0
  234. clarent_methods-0.2.0/plugins/claude-code/skills/rcf/scripts/run.py +8 -0
  235. clarent_methods-0.2.0/plugins/claude-code/skills/redteam/scripts/clarent_redteam/__main__.py +5 -0
  236. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/redteam/scripts/clarent_redteam/i18n.py +2 -0
  237. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/redteam/scripts/clarent_redteam/model.py +9 -1
  238. clarent_methods-0.2.0/plugins/claude-code/skills/spc/SKILL.md +47 -0
  239. clarent_methods-0.2.0/plugins/claude-code/skills/spc/scripts/clarent_spc/__init__.py +6 -0
  240. clarent_methods-0.2.0/plugins/claude-code/skills/spc/scripts/clarent_spc/__main__.py +5 -0
  241. clarent_methods-0.2.0/plugins/claude-code/skills/spc/scripts/clarent_spc/cli.py +159 -0
  242. clarent_methods-0.2.0/plugins/claude-code/skills/spc/scripts/clarent_spc/engine.py +203 -0
  243. clarent_methods-0.2.0/plugins/claude-code/skills/spc/scripts/clarent_spc/i18n.py +93 -0
  244. clarent_methods-0.2.0/plugins/claude-code/skills/spc/scripts/clarent_spc/model.py +113 -0
  245. clarent_methods-0.2.0/plugins/claude-code/skills/spc/scripts/clarent_spc/render.py +78 -0
  246. clarent_methods-0.2.0/plugins/claude-code/skills/spc/scripts/run.py +8 -0
  247. clarent_methods-0.2.0/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/__main__.py +5 -0
  248. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/pyproject.toml +5 -2
  249. clarent_methods-0.2.0/research/data/github-scan-aar.json +557 -0
  250. clarent_methods-0.2.0/research/data/github-scan-intent.json +557 -0
  251. clarent_methods-0.2.0/research/data/github-scan-rcf.json +488 -0
  252. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/data/github-scan-redteam.json +2 -2
  253. clarent_methods-0.2.0/research/data/github-scan-spc.json +626 -0
  254. clarent_methods-0.2.0/research/launch/README.md +37 -0
  255. clarent_methods-0.2.0/research/launch/ach-10-bugs.es.md +106 -0
  256. clarent_methods-0.2.0/research/launch/ach-10-bugs.md +103 -0
  257. clarent_methods-0.2.0/research/launch/reddit-claudeai.md +53 -0
  258. clarent_methods-0.2.0/research/launch/reddit-claudecode.md +54 -0
  259. clarent_methods-0.2.0/research/launch/reddit-python.md +67 -0
  260. clarent_methods-0.2.0/research/launch/show-hn.md +71 -0
  261. clarent_methods-0.2.0/research/launch/social-preview.md +41 -0
  262. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/launch-checklist.md +4 -19
  263. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/roadmap.md +22 -1
  264. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/src/clarent/__init__.py +1 -1
  265. clarent_methods-0.2.0/src/clarent/__main__.py +5 -0
  266. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/src/clarent/cli.py +12 -0
  267. clarent_methods-0.2.0/src/clarent/hooks.py +88 -0
  268. clarent_methods-0.2.0/src/clarent/init.py +193 -0
  269. clarent_methods-0.2.0/src/clarent/mcp_server.py +95 -0
  270. clarent_methods-0.2.0/tests/test_action.py +44 -0
  271. clarent_methods-0.2.0/tests/test_hooks.py +70 -0
  272. clarent_methods-0.2.0/tests/test_init.py +80 -0
  273. clarent_methods-0.2.0/tests/test_mcp.py +65 -0
  274. clarent_methods-0.2.0/tools/action.py +126 -0
  275. clarent_methods-0.2.0/tools/check_readmes.py +81 -0
  276. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/tools/gen_demo.py +5 -0
  277. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/tools/github_scan3.py +9 -1
  278. clarent_methods-0.1.0/.gitignore +0 -8
  279. clarent_methods-0.1.0/CHANGELOG.md +0 -24
  280. clarent_methods-0.1.0/research/outreach/altshuller-foundation.md +0 -71
  281. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/.claude-plugin/marketplace.json +0 -0
  282. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/.gitattributes +0 -0
  283. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/.github/ISSUE_TEMPLATE/new-method.yml +0 -0
  284. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/.github/pull_request_template.md +0 -0
  285. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/CLAUDE.md +0 -0
  286. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/CONTRIBUTING.md +0 -0
  287. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/LICENSE +0 -0
  288. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/NOTICE +0 -0
  289. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/docs/demo/ach-next.txt +0 -0
  290. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/docs/demo/ach-score.md +0 -0
  291. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/docs/demo/redteam-check.md +0 -0
  292. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/docs/demo/redteam-pr.md +0 -0
  293. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/docs/demo/redteam-rejected.md +0 -0
  294. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/docs/demo/triz-analyze.md +0 -0
  295. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/docs/demo/triz-lookup.md +0 -0
  296. {clarent_methods-0.1.0/methods/ach/clarent_ach → clarent_methods-0.2.0/methods/aar/clarent_aar}/__main__.py +0 -0
  297. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/ach/clarent_ach/__init__.py +0 -0
  298. {clarent_methods-0.1.0/methods/redteam/clarent_redteam → clarent_methods-0.2.0/methods/ach/clarent_ach}/__main__.py +0 -0
  299. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/ach/clarent_ach/cli.py +0 -0
  300. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/ach/examples/flaky-test.es.json +0 -0
  301. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/ach/examples/flaky-test.json +0 -0
  302. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/ach/method.toml +0 -0
  303. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/ach/skill/SKILL.md +0 -0
  304. {clarent_methods-0.1.0/methods/triz-matrix/clarent_triz → clarent_methods-0.2.0/methods/intent/clarent_intent}/__main__.py +0 -0
  305. {clarent_methods-0.1.0/plugins/claude-code/skills/ach/scripts/clarent_ach → clarent_methods-0.2.0/methods/rcf/clarent_rcf}/__main__.py +0 -0
  306. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/clarent_redteam/__init__.py +0 -0
  307. {clarent_methods-0.1.0/plugins/claude-code/skills/redteam/scripts → clarent_methods-0.2.0/methods/redteam}/clarent_redteam/__main__.py +0 -0
  308. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/clarent_redteam/catalog.py +0 -0
  309. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/clarent_redteam/cli.py +0 -0
  310. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/clarent_redteam/engine.py +0 -0
  311. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/clarent_redteam/render.py +0 -0
  312. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/examples/design-doc/design.es.md +0 -0
  313. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/examples/design-doc/design.md +0 -0
  314. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/examples/design-doc/findings.es.json +0 -0
  315. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/examples/design-doc/findings.json +0 -0
  316. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/examples/design-doc/findings.rejected.json +0 -0
  317. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/examples/pr/change.diff +0 -0
  318. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/examples/pr/description.md +0 -0
  319. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/examples/pr/findings.json +0 -0
  320. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/method.toml +0 -0
  321. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/redteam/skill/SKILL.md +0 -0
  322. {clarent_methods-0.1.0/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz → clarent_methods-0.2.0/methods/spc/clarent_spc}/__main__.py +0 -0
  323. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/triz-matrix/CARD.md +0 -0
  324. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/triz-matrix/clarent_triz/__init__.py +0 -0
  325. {clarent_methods-0.1.0/src/clarent → clarent_methods-0.2.0/methods/triz-matrix/clarent_triz}/__main__.py +0 -0
  326. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/triz-matrix/clarent_triz/cli.py +0 -0
  327. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/triz-matrix/clarent_triz/data/DATA_LICENSE.md +0 -0
  328. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/triz-matrix/clarent_triz/data/catalog.json +0 -0
  329. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/triz-matrix/clarent_triz/data/matrix.json +0 -0
  330. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/triz-matrix/clarent_triz/engine.py +0 -0
  331. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/triz-matrix/clarent_triz/i18n.py +0 -0
  332. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/triz-matrix/clarent_triz/model.py +0 -0
  333. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/triz-matrix/clarent_triz/render.py +0 -0
  334. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/triz-matrix/examples/search-api.es.json +0 -0
  335. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/triz-matrix/examples/search-api.json +0 -0
  336. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/triz-matrix/method.toml +0 -0
  337. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/triz-matrix/skill/SKILL.md +0 -0
  338. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/methods/triz-matrix/tests/test_triz.py +0 -0
  339. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/ach/SKILL.md +0 -0
  340. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/ach/scripts/clarent_ach/__init__.py +0 -0
  341. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/ach/scripts/clarent_ach/cli.py +0 -0
  342. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/ach/scripts/run.py +0 -0
  343. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/redteam/SKILL.md +0 -0
  344. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/redteam/scripts/clarent_redteam/__init__.py +0 -0
  345. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/redteam/scripts/clarent_redteam/catalog.py +0 -0
  346. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/redteam/scripts/clarent_redteam/cli.py +0 -0
  347. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/redteam/scripts/clarent_redteam/engine.py +0 -0
  348. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/redteam/scripts/clarent_redteam/render.py +0 -0
  349. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/redteam/scripts/run.py +0 -0
  350. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/triz-matrix/SKILL.md +0 -0
  351. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/__init__.py +0 -0
  352. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/cli.py +0 -0
  353. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/data/DATA_LICENSE.md +0 -0
  354. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/data/catalog.json +0 -0
  355. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/data/matrix.json +0 -0
  356. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/engine.py +0 -0
  357. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/i18n.py +0 -0
  358. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/model.py +0 -0
  359. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/triz-matrix/scripts/clarent_triz/render.py +0 -0
  360. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/plugins/claude-code/skills/triz-matrix/scripts/run.py +0 -0
  361. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/architecture.md +0 -0
  362. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/catalog.md +0 -0
  363. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/data/citation-checks.json +0 -0
  364. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/data/github-scan-a3-hazop.json +0 -0
  365. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/data/github-scan-targeted.json +0 -0
  366. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/data/github-scan.json +0 -0
  367. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/data/growth-repos.tsv +0 -0
  368. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/data/scores.csv +0 -0
  369. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/growth-plan.md +0 -0
  370. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/issues/01-method-spc.md +0 -0
  371. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/issues/02-method-intent.md +0 -0
  372. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/issues/03-method-rcf.md +0 -0
  373. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/issues/04-method-kt.md +0 -0
  374. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/issues/05-method-gate.md +0 -0
  375. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/issues/06-method-fta.md +0 -0
  376. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/issues/07-method-hazop.md +0 -0
  377. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/issues/08-method-aar.md +0 -0
  378. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/issues/09-method-fmea.md +0 -0
  379. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/issues/10-method-stpa.md +0 -0
  380. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/issues/11-icon.md +0 -0
  381. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/issues/12-translate-redteam-pr-example.md +0 -0
  382. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/issues/13-real-ach-example.md +0 -0
  383. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/issues/14-cli-error-messages.md +0 -0
  384. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/novelty.md +0 -0
  385. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/product-spec.md +0 -0
  386. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/research/ranking.md +0 -0
  387. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/src/clarent/registry.py +0 -0
  388. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/templates/methodology-card.md +0 -0
  389. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/tests/test_core.py +0 -0
  390. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/tools/build_plugin.py +0 -0
  391. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/tools/github_scan.py +0 -0
  392. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/tools/github_scan2.py +0 -0
  393. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/tools/rank.py +0 -0
  394. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/tools/test_all.py +0 -0
  395. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/tools/triz_crosscheck.py +0 -0
  396. {clarent_methods-0.1.0 → clarent_methods-0.2.0}/tools/verify_citations.py +0 -0
@@ -3,6 +3,7 @@ on:
3
3
  push:
4
4
  branches: [main]
5
5
  pull_request:
6
+ workflow_dispatch:
6
7
 
7
8
  permissions:
8
9
  contents: read
@@ -16,10 +17,12 @@ jobs:
16
17
  os: [ubuntu-latest, windows-latest]
17
18
  python: ["3.11", "3.13"]
18
19
  steps:
19
- - uses: actions/checkout@v4
20
- - uses: actions/setup-python@v5
20
+ - uses: actions/checkout@v7
21
+ - uses: actions/setup-python@v7
21
22
  with:
22
23
  python-version: ${{ matrix.python }}
24
+ - name: Optional MCP extra (so tests/test_mcp.py runs the stdio test too)
25
+ run: python -m pip install "mcp>=2,<3"
23
26
  - name: Unit tests (core + every method)
24
27
  run: python tools/test_all.py
25
28
  - name: Method health (manifest, card, skill, sources)
@@ -30,3 +33,7 @@ jobs:
30
33
  run: python tools/build_plugin.py --check
31
34
  - name: README demo outputs are up to date
32
35
  run: python tools/gen_demo.py --check
36
+ - name: README.md and README.es.md have the same sections
37
+ run: python tools/check_readmes.py
38
+ - name: Eval results are up to date
39
+ run: python evals/run.py --check
@@ -0,0 +1,36 @@
1
+ name: clarent
2
+ # Dogfooding: this repository runs its own action on every pull request.
3
+ on:
4
+ pull_request:
5
+ workflow_dispatch:
6
+
7
+ permissions:
8
+ contents: read
9
+ actions: read # spc reads the CI run history
10
+ pull-requests: write # one sticky comment
11
+
12
+ jobs:
13
+ clarent:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v7
17
+ - uses: ./
18
+ with:
19
+ methods: redteam,spc
20
+ spc-workflow: ci.yml
21
+ redteam-findings: docs/redteam/*.json
22
+ redteam-fail-on: S1
23
+
24
+ # This repository has too few CI runs for a control chart yet; this job shows the spc check on a repository that
25
+ # has them (pytest's test.yml), in the job summary only.
26
+ spc-demo:
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - uses: actions/checkout@v7
30
+ - uses: ./
31
+ with:
32
+ methods: spc
33
+ spc-repo: pytest-dev/pytest
34
+ spc-workflow: test.yml
35
+ spc-limit: "300"
36
+ comment: "false"
@@ -0,0 +1,42 @@
1
+ name: docs
2
+ # Builds the MkDocs site (English and Spanish) and publishes it to GitHub Pages.
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ paths: ["docs/**", "mkdocs.yml", ".github/workflows/docs.yml"]
7
+ pull_request:
8
+ paths: ["docs/**", "mkdocs.yml", ".github/workflows/docs.yml"]
9
+ workflow_dispatch:
10
+
11
+ permissions:
12
+ contents: read
13
+
14
+ jobs:
15
+ build:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v7
19
+ - uses: actions/setup-python@v7
20
+ with:
21
+ python-version: "3.13"
22
+ - run: python -m pip install -r docs/requirements.txt
23
+ - run: mkdocs build --strict
24
+ env:
25
+ NO_MKDOCS_2_WARNING: "1"
26
+ - uses: actions/upload-pages-artifact@v5
27
+ with:
28
+ path: site
29
+
30
+ deploy:
31
+ if: github.event_name != 'pull_request'
32
+ needs: build
33
+ runs-on: ubuntu-latest
34
+ permissions:
35
+ pages: write
36
+ id-token: write
37
+ environment:
38
+ name: github-pages
39
+ url: ${{ steps.deployment.outputs.page_url }}
40
+ steps:
41
+ - id: deployment
42
+ uses: actions/deploy-pages@v5
@@ -12,8 +12,8 @@ jobs:
12
12
  stale-claims:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- - uses: actions/checkout@v4
16
- - uses: actions/setup-python@v5
15
+ - uses: actions/checkout@v7
16
+ - uses: actions/setup-python@v7
17
17
  with:
18
18
  python-version: "3.13"
19
19
  - run: python -m clarent doctor --fail-on-stale
@@ -14,8 +14,8 @@ jobs:
14
14
  if: startsWith(github.event.release.tag_name, 'v')
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
- - uses: actions/checkout@v4
18
- - uses: actions/setup-python@v5
17
+ - uses: actions/checkout@v7
18
+ - uses: actions/setup-python@v7
19
19
  with:
20
20
  python-version: "3.13"
21
21
  - name: Tests and method health
@@ -40,7 +40,7 @@ jobs:
40
40
  python -m pip install --upgrade build twine
41
41
  python -m build
42
42
  python -m twine check --strict dist/*
43
- - uses: actions/upload-artifact@v4
43
+ - uses: actions/upload-artifact@v7
44
44
  with:
45
45
  name: dist
46
46
  path: dist/
@@ -55,7 +55,7 @@ jobs:
55
55
  permissions:
56
56
  id-token: write # required for Trusted Publishing; nothing else gets write access
57
57
  steps:
58
- - uses: actions/download-artifact@v4
58
+ - uses: actions/download-artifact@v8
59
59
  with:
60
60
  name: dist
61
61
  path: dist/
@@ -0,0 +1,12 @@
1
+ __pycache__/
2
+ *.pyc
3
+ *.egg-info/
4
+ build/
5
+ dist/
6
+ .venv/
7
+ .clarent/
8
+ .coverage
9
+
10
+ # Private correspondence (kept outside the repo)
11
+ research/outreach/
12
+ site/
@@ -0,0 +1,92 @@
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.2.0] - 2026-11-29
8
+
9
+ Four new methods, an eval on real bugs and PRs, engine fixes that came out of it, and integrations for daily use.
10
+
11
+ ### Added
12
+
13
+ - **Eval** (`evals/`, `python evals/run.py`, checked in CI): 10 closed bugs for `ach` and 5 merged PRs that later
14
+ needed a fix for `redteam`, with inputs written blind by a model from the pre-fix material, plus one real case
15
+ each for `spc`, `rcf`, `intent` and `aar`. `evals/RESULTS.md` reports before and after, failures included.
16
+ - Method `spc` (Statistical Process Control): XmR and p charts with the four Western Electric rules named by
17
+ definition, configurable run length, candidate commit ranges, averaging windows, `--from-gh-runs` /
18
+ `--gh-json`, SVG output and a false-alarm simulator (#1).
19
+ - Method `intent` (Commander's Intent): a TOML front-matter contract with purpose, end state, verification
20
+ commands, stop conditions and path constraints; `lint`, `verify` and a `SubagentStop` hook tested with a real
21
+ subagent (#2).
22
+ - Method `rcf` (Reference Class Forecasting): history from merged PRs or merge commits, P50/P80/P90 with bootstrap
23
+ intervals, refusal below 10 cases, inside view after the outside view, a forecast log and calibration score, and
24
+ a backtest (#3).
25
+ - Method `aar` (After Action Review): the four TC 25-20 questions as data, a timeline from git, CI and incidents,
26
+ computed verdicts, completeness rules, SHA and `file:line` checks, a blameless warning and `followup` (#8).
27
+ - `clarent mcp`: an MCP server exposing every method as a tool (optional extra: `pip install 'clarent-methods[mcp]'`).
28
+ - A reusable GitHub Action (`uses: Joaquincuevas/clarent@v0.2.0`): one PR comment with red team findings checked
29
+ against the code and an SPC chart of CI duration; methods are handlers in `tools/action.py` (the extension point
30
+ for `gate`, #5).
31
+ - `clarent hook ach-on-repeat-failure` and `clarent hook aar-on-incident-close`: optional Claude Code hooks.
32
+ - `clarent init`: detects the project and sets up hooks, the MCP server and the action, asking before each change.
33
+ - Documentation site in English and Spanish: <https://joaquincuevas.github.io/clarent/>.
34
+ - Spanish translation of the red team PR example (`methods/redteam/examples/pr/*.es.*`) with a test that pins the
35
+ same ranking as the English one, by [mamoun123121314](https://github.com/mamoun123121314) (#15, fixes #12). The first outside contribution.
36
+ - CI: `workflow_dispatch`, the MCP extra installed so its stdio test runs, and a docs build.
37
+
38
+ ### Changed
39
+
40
+ - `ach`: refuting a hypothesis needs at least two contradicting observations (`refute_min_items`, default 2); with
41
+ one it is *contested* and the report says which item to re-check. Proposed tests that separate the current
42
+ leaders rank first, with a warning when none does. An evidence item with no `status` and no `ref` is treated as
43
+ a proposed test, not an observation.
44
+ - `redteam`: attacks without an `id` are numbered (X1, X2…) with a warning instead of refusing the whole file.
45
+
46
+ ### Contributors
47
+
48
+ - [mamoun123121314](https://github.com/mamoun123121314) — Spanish red team PR example (#15).
49
+
50
+ ### Known limits (measured in the eval)
51
+
52
+ - `ach` kept the real cause alive in 10/10 bugs but led with it in only 5/10.
53
+ - `rcf`'s similarity did no better than the whole history on pytest, and forecasts from merged-only history run
54
+ optimistic (66% under P80).
55
+ - `spc` with all four rules alarms on pure noise in 49% of 50-point series; the action uses `beyond-3sigma,run`.
56
+
57
+ ## [0.1.1] - 2026-11-26
58
+
59
+ Documentation and tooling release; no change to the methods or to the `clarent` command.
60
+
61
+ ### Added
62
+
63
+ - README: a "What is Clarent?" section that explains the problem, what the commands do and how the
64
+ AI-proposes / engine-validates split works, with a table of the three implemented commands.
65
+ - `README.es.md`: a Spanish translation of the README, linked from both files.
66
+ - CI check (`tools/check_readmes.py`) that fails when `README.md` and `README.es.md` have different sections.
67
+
68
+ ### Changed
69
+
70
+ - GitHub Actions updated to versions that run on Node 24: `actions/checkout` v7,
71
+ `actions/setup-python` v7, `actions/upload-artifact` v7 and `actions/download-artifact` v8.
72
+
73
+ ## [0.1.0] - 2026-11-26
74
+
75
+ First public release, published on PyPI as `clarent-methods` (the CLI is still `clarent`).
76
+
77
+ ### Added
78
+
79
+ - `clarent` command with `list`, `doctor` and delegation to each method's own CLI; `--lang en|es`.
80
+ - Method `ach` (Analysis of Competing Hypotheses): scores competing causes by inconsistency, finds
81
+ non-discriminating evidence and recommends the next most informative test.
82
+ - Method `redteam`: attacks a design doc or a PR with a fixed catalog of six attack classes; rejects
83
+ findings it cannot anchor in the text and ranks the top attacks.
84
+ - Method `triz-matrix`: Altshuller contradiction matrix lookup with software readings of the 39
85
+ parameters; every cell is verified against the 1973 table (data under `DATA_LICENSE.md`).
86
+ - Claude Code plugin and marketplace entry generated from the methods.
87
+ - Standard-library-only runtime: no dependencies, Python >= 3.11.
88
+ - Release workflow publishing to PyPI through Trusted Publishing (OIDC).
89
+
90
+ [0.2.0]: https://github.com/Joaquincuevas/clarent/releases/tag/v0.2.0
91
+ [0.1.1]: https://github.com/Joaquincuevas/clarent/releases/tag/v0.1.1
92
+ [0.1.0]: https://github.com/Joaquincuevas/clarent/releases/tag/v0.1.0
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: clarent-methods
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: Classic decision, optimization and engineering methodologies as executable developer tools.
5
5
  Project-URL: Homepage, https://github.com/Joaquincuevas/clarent
6
6
  Project-URL: Repository, https://github.com/Joaquincuevas/clarent
7
7
  Project-URL: Issues, https://github.com/Joaquincuevas/clarent/issues
8
- Project-URL: Documentation, https://github.com/Joaquincuevas/clarent#readme
8
+ Project-URL: Documentation, https://joaquincuevas.github.io/clarent/
9
9
  Project-URL: Changelog, https://github.com/Joaquincuevas/clarent/blob/main/CHANGELOG.md
10
10
  Author: Joaquín Cuevas Muñoz
11
11
  License-Expression: Apache-2.0
@@ -24,22 +24,45 @@ Classifier: Programming Language :: Python :: 3.13
24
24
  Classifier: Topic :: Software Development :: Debuggers
25
25
  Classifier: Topic :: Software Development :: Quality Assurance
26
26
  Requires-Python: >=3.11
27
+ Provides-Extra: mcp
28
+ Requires-Dist: mcp<3,>=2; extra == 'mcp'
27
29
  Description-Content-Type: text/markdown
28
30
 
29
- # Clarent
31
+ # Clarent<!-- id: title -->
32
+
33
+ English | [Español](https://github.com/Joaquincuevas/clarent/blob/main/README.es.md)
30
34
 
31
35
  [![ci](https://github.com/Joaquincuevas/clarent/actions/workflows/ci.yml/badge.svg)](https://github.com/Joaquincuevas/clarent/actions/workflows/ci.yml)
32
36
  [![PyPI](https://img.shields.io/pypi/v/clarent-methods.svg)](https://pypi.org/project/clarent-methods/)
33
37
  [![license: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
34
38
  [![python: >=3.11](https://img.shields.io/badge/python-%E2%89%A53.11-blue.svg)](pyproject.toml)
35
39
 
40
+ ![clarent ach scoring the flaky-test example, then listing the next tests to run](https://raw.githubusercontent.com/Joaquincuevas/clarent/main/docs/demo/ach.gif)
41
+
42
+ <sub>Real output of `clarent ach` on the synthetic flaky-test example; only typing speed and pauses are staged ([`docs/demo/make_ach_gif.py`](docs/demo/make_ach_gif.py) regenerates it).</sub>
43
+
36
44
  **Classic decision, optimization and engineering methods — as tools that compute, not prompts that sound smart.**
37
45
 
38
- Military doctrine, Toyota's shop floor, Soviet inventors' algorithms, NASA safety engineering: decades of method for finding root causes, attacking plans and estimating honestly. Clarent turns them into small, auditable tools for developers and their coding agents: Claude Code skills, a CLI, and (soon) hooks, MCP tools and GitHub Actions.
46
+ ## What is Clarent?<!-- id: what-is -->
47
+
48
+ People and AI agents tend to anchor on the first plausible hypothesis. Proven methods exist (CIA, army, Toyota, NASA, Soviet TRIZ), but they live in manuals.
49
+ Clarent turns them into commands that compute (a deterministic engine, no LLM involved), not prompts:
50
+
51
+ | Command | Origin | What it does |
52
+ |---|---|---|
53
+ | `clarent ach` | Analysis of Competing Hypotheses, CIA (Heuer) | Ranks rival causes by how much evidence contradicts them and suggests the next test to run. |
54
+ | `clarent redteam` | Red Teaming, US Army (UFMCS) | Attacks a design doc or PR and rejects every attack that is not quoted from the text. |
55
+ | `clarent triz-matrix` | TRIZ contradiction matrix, Altshuller (USSR) | Given "improve X without worsening Y", returns the inventive principles from the 1973 table. |
56
+ | `clarent spc` | Statistical Process Control, Shewhart / Western Electric | Tells a real shift in CI duration or failure rate from noise and names the candidate commits. |
57
+ | `clarent intent` | Commander's Intent, US Army (ADP 6-0) | Delegates with purpose, end state and limits, then checks the change stayed inside them. |
58
+ | `clarent rcf` | Reference Class Forecasting (Kahneman & Tversky; Flyvbjerg) | "How long will this take?" from your own PR history, outside view first. |
59
+ | `clarent aar` | After Action Review, US Army (TC 25-20) | Reviews a release or incident with computed verdicts and no action without an owner and a check. |
60
+
61
+ The difference: the AI proposes; the engine scores, validates and rejects whatever has no evidence.
39
62
 
40
- > **Status: pre-release (v0.1).** Three methods are implemented end-to-end (`ach`, 24 tests; `redteam`, 82; `triz-matrix`, 38). Eight more are specified in [`research/product-spec.md`](research/product-spec.md); the rest of the plan is in [`research/roadmap.md`](research/roadmap.md). Nothing here claims to make your agent fix more bugs — see [What we do not claim](#what-we-do-not-claim).
63
+ > **Status: v0.2 (beta).** Seven methods are implemented end-to-end (`ach`, 30 tests; `redteam`, 82; `triz-matrix`, 38; `spc`, 15; `intent`, 16; `rcf`, 10; `aar`, 13; core and integrations, 34), and evaluated on real bugs and PRs — [see what worked and what did not](#does-it-help). Documentation: [https://joaquincuevas.github.io/clarent/](https://joaquincuevas.github.io/clarent/). Nothing here claims to make your agent fix more bugs — see [What we do not claim](#what-we-do-not-claim).
41
64
 
42
- ## Install
65
+ ## Install<!-- id: install -->
43
66
 
44
67
  ```bash
45
68
  pip install clarent-methods # the `clarent` CLI; Python >= 3.11, no dependencies
@@ -51,7 +74,33 @@ pip install clarent-methods # the `claren
51
74
  /plugin install clarent-methods@clarent # ...and install the skills
52
75
  ```
53
76
 
54
- ## Why another methods repo?
77
+ ## Does it help?<!-- id: eval -->
78
+
79
+ Measured on real, already-solved problems, with the failures included ([`evals/RESULTS.md`](evals/RESULTS.md), reproducible with `python evals/run.py`). Inputs were written blind by a model from what existed before each fix; one model, one run per case, so these are anecdotes with numbers, not a benchmark.
80
+
81
+ | Method | Real cases | Result |
82
+ |---|---|---|
83
+ | `ach` | 10 closed bugs (numpy, webpack, axios, jest, pytest, CPython, pydantic) | The real cause was among the hypotheses in 10/10 and still alive in 10/10 (7/10 before the v0.2 fixes), but it **led in only 5/10**; maintainers who knew the code were faster. |
84
+ | `redteam` | 5 merged PRs that later needed a fix | The assumption that later failed was named in **3/5** (rank 1 in two); a 1000x slowdown and a PyPy-only bug were missed. |
85
+ | `spc` | pytest's CI, 228 runs | One signal, in the window of the first run after a PR that removed quadratic work (15.5 → 13.4 min median). Pure noise alarms in 49% of 50-point series with all four rules. |
86
+ | `rcf` | 400 pytest PRs, backtest | Forecasts were optimistic (66% of real durations under P80) and the **similarity added nothing** over the whole history; it is now optional. |
87
+ | `intent` | a real subagent | Blocked once for writing a forbidden path; it deleted the file and passed. |
88
+ | `aar` | the axios 1.15.1 listener leak | Verdicts and intervals computed; the first draft was refused for a missing cause. |
89
+
90
+ ## Integrations<!-- id: integrations -->
91
+
92
+ ```bash
93
+ clarent init --dry-run # detects the project; then `clarent init` asks before each change
94
+ pip install 'clarent-methods[mcp]' && claude mcp add --scope project clarent -- clarent mcp # every method as an MCP tool
95
+ ```
96
+
97
+ - **MCP server** (optional extra): one tool per method for Claude Code, Cursor and other clients — [docs](https://joaquincuevas.github.io/clarent/integrations/mcp/).
98
+ - **GitHub Action** (`uses: Joaquincuevas/clarent@v0.2.0`): one PR comment with red team findings checked against the code and an SPC chart of CI duration — [docs](https://joaquincuevas.github.io/clarent/integrations/github-action/).
99
+ - **Claude Code hooks** (optional): suggest `ach` after the same test fails twice, `aar` when an incident closes, and keep a subagent inside its `intent` contract — [docs](https://joaquincuevas.github.io/clarent/integrations/hooks/).
100
+
101
+ ## Why another methods repo?<!-- id: why -->
102
+
103
+ Military doctrine, Toyota's shop floor, Soviet inventors' algorithms, NASA safety engineering: decades of method for finding root causes, attacking plans and estimating honestly. Clarent turns them into small, auditable tools for developers and their coding agents: Claude Code skills, a CLI, an MCP server, a GitHub Action and optional hooks.
55
104
 
56
105
  Collections of "thinking frameworks as prompts" already exist (the biggest we found has ~1.7k stars; see [`research/novelty.md`](research/novelty.md)). They give an agent a checklist. Clarent's rule is stricter: **every method must have a deterministic core** — something the code computes or rejects with no LLM involved — plus evidence discipline:
57
106
 
@@ -59,11 +108,11 @@ Collections of "thinking frameworks as prompts" already exist (the biggest we fo
59
108
  - every observed fact needs a `ref` (the command, `file:line` or log that produced it);
60
109
  - reports say what they are: an ACH score is a *ranking of inconsistencies*, never a probability.
61
110
 
62
- ## Demo
111
+ ## Demo<!-- id: demo -->
63
112
 
64
113
  Everything below is the real output of the command shown, on the synthetic examples shipped in [`methods/`](methods/). The files in [`docs/demo/`](docs/demo/) hold the complete outputs and are regenerated by `python tools/gen_demo.py` (CI fails if they drift).
65
114
 
66
- ### `ach` — debugging with competing hypotheses
115
+ ### `ach` — debugging with competing hypotheses<!-- id: demo-ach -->
67
116
 
68
117
  A test, `test_checkout_total`, fails about 1 run in 8 on CI. Five rival causes and a catch-all, five pieces of evidence, each rated against *every* hypothesis:
69
118
 
@@ -102,7 +151,7 @@ T2 priority=9.0 for=H1 against=-
102
151
  Changing the fixture from scope=session to scope=function removes the failures in 200 runs with '-n 4'
103
152
  ```
104
153
 
105
- ### `redteam` — attack a design or a PR; the engine refuses what it cannot anchor
154
+ ### `redteam` — attack a design or a PR; the engine refuses what it cannot anchor<!-- id: demo-redteam -->
106
155
 
107
156
  A synthetic design doc moves notifications from a cron job to a stream consumer ([`design.md`](methods/redteam/examples/design-doc/design.md)). A model proposes assumptions and attacks as JSON, each quoting the passage it rests on; the engine checks them against the text:
108
157
 
@@ -148,7 +197,7 @@ $ clarent redteam check methods/redteam/examples/design-doc/findings.rejected.js
148
197
 
149
198
  The engine proves a finding is anchored and backed, not that it is right. It also works on PRs (description plus `gh pr diff`): [`docs/demo/redteam-pr.md`](docs/demo/redteam-pr.md).
150
199
 
151
- ### `triz-matrix` — a design trade-off, resolved against the 1973 table
200
+ ### `triz-matrix` — a design trade-off, resolved against the 1973 table<!-- id: demo-triz -->
152
201
 
153
202
  "Make `/search` faster without making the system harder to run":
154
203
 
@@ -177,51 +226,59 @@ $ clarent triz-matrix lookup latency "Device complexity"
177
226
 
178
227
  The report goes on with a reminder that principles are prompts for ideas, not solutions, and the reverse cell. `triz-matrix analyze methods/triz-matrix/examples/search-api.json` does the same for several contradictions at once and ranks the principles that recur ([`docs/demo/triz-analyze.md`](docs/demo/triz-analyze.md)). Ambiguous names are rejected with the candidates listed, never guessed.
179
228
 
180
- ### In Claude Code
229
+ ### In Claude Code<!-- id: claude-code -->
181
230
 
182
231
  ```text
183
232
  /clarent-methods:ach test_checkout_total fails ~1 in 8 CI runs
184
233
  /clarent-methods:redteam docs/adr-014-event-sourcing.md
185
234
  /clarent-methods:triz-matrix make /search faster without making it harder to run
235
+ /clarent-methods:spc .github/workflows/ci.yml
236
+ /clarent-methods:intent migrate the HTTP client to httpx
237
+ /clarent-methods:rcf add pagination to /orders
238
+ /clarent-methods:aar the 2.4 release
186
239
  ```
187
240
 
188
241
  The skills are manual-only (`disable-model-invocation`), so they cost no context until you call them. `ach` makes the agent list rival causes first, gather evidence by running commands, rate each item against *all* hypotheses, and re-score until one explanation survives or the diagnosis is declared unresolved.
189
242
 
190
- ## Methods
243
+ ## Methods<!-- id: methods -->
191
244
 
192
245
  | Method | Tool | Status |
193
246
  |--------|------|--------|
194
247
  | Analysis of Competing Hypotheses (Heuer, CIA) | `ach` | **implemented** (reference) |
195
248
  | Red Teaming (UFMCS) | `redteam` | **implemented** (beta) |
196
249
  | TRIZ contradiction matrix (Altshuller) | `triz-matrix` | **implemented** (beta); additional method, outside the top-10 ranking |
197
- | Statistical Process Control (Shewhart) on CI | `spc` | spec |
198
- | Commander's Intent / Mission Command | `intent` | spec |
199
- | Reference Class Forecasting | `rcf` | spec |
250
+ | Statistical Process Control (Shewhart) on CI | `spc` | **implemented** (beta) |
251
+ | Commander's Intent / Mission Command | `intent` | **implemented** (beta) |
252
+ | Reference Class Forecasting | `rcf` | **implemented** (beta) |
200
253
  | Kepner-Tregoe IS / IS-NOT | `kt` | spec |
201
254
  | Heilmeier Catechism | `gate` | spec |
202
255
  | Fault Tree Analysis | `fta` | spec |
203
256
  | HAZOP (guide words on APIs and data flows) | `hazop` | spec |
204
- | After Action Review (US Army TC 25-20) | `aar` | spec |
257
+ | After Action Review (US Army TC 25-20) | `aar` | **implemented** (beta) |
205
258
  | FMEA, STAMP / STPA | `fmea`, `stpa` | deferred to v2 |
206
259
 
207
260
  The ranking is the author's judgment, not a measurement; scores, criteria and the corrections made along the way are in [`research/ranking.md`](research/ranking.md). 63 methods were catalogued, each source marked `read / exists / blocked / unverified`: [`research/`](research/).
208
261
 
209
- ## What we do not claim
262
+ ## What we do not claim<!-- id: no-claims -->
210
263
 
211
- - That a skill makes an agent solve more tasks. gstack (one of the biggest repos in this space) publishes a null result on its own bug-fixing benchmark in its README; we will publish ours, null or not.
264
+ - That a skill makes an agent solve more tasks. Our eval ([`evals/RESULTS.md`](evals/RESULTS.md)) measures what the engines do with model-written inputs on real cases; it does not compare agents with and without Clarent.
212
265
  - That the numbers are Heuer's, Shewhart's or Goldratt's. Where a constant is ours (weights, thresholds) the method card says so.
213
266
  - That the catalog's sources are all verified. Each one carries its verification level.
214
267
  - That the TRIZ matrix data has a clean chain of title. Its licenses and gaps are written down in [`DATA_LICENSE.md`](methods/triz-matrix/clarent_triz/data/DATA_LICENSE.md); 29 of its 1 248 cells are contested between transcriptions, and you can supply your own matrix with `--data`.
215
- - That the demos are real incidents. The examples are synthetic and labelled so.
216
- - That the specified methods exist. `spc`, `intent`, `rcf`, `kt`, `gate`, `fta`, `hazop` and `aar` are specifications; nothing is promised about when they ship.
268
+ - That the examples are real incidents. Files in `methods/*/examples/` are synthetic and labelled so; the real cases are in `evals/`, each with its source links.
269
+ - That the specified methods exist. `kt`, `gate`, `fta` and `hazop` are specifications; nothing is promised about when they ship.
217
270
  - That the red team's findings are correct. The engine rejects findings that are not quoted from the text or not backed by evidence; whether an attack is right is still a judgment. Three of its six attack classes (`scale`, `dependency`, `reversibility`) are Clarent's own and are not in the UFMCS handbook it draws on.
218
- - That it works in agents other than Claude Code. The plugin is validated with `claude plugin validate`; Cursor, Codex and others have not been tested.
271
+ - That it works in agents other than Claude Code. The plugin is validated with `claude plugin validate` and the MCP server is tested with the official MCP client; Cursor, Codex and others have not been tested.
219
272
  - That the ranking of methods is a measurement, or that its "no existing repo" findings are proof of absence: they are lower bounds from GitHub search.
220
273
 
221
- ## Contributing
274
+ ## Contributors<!-- id: contributors -->
275
+
276
+ - [mamoun123121314](https://github.com/mamoun123121314) — Spanish translation of the red team PR example ([#15](https://github.com/Joaquincuevas/clarent/pull/15)).
277
+
278
+ ## Contributing<!-- id: contributing -->
222
279
 
223
280
  A new method is one folder, one card, one engine, tests and an example. Start with [`CONTRIBUTING.md`](CONTRIBUTING.md); `clarent doctor` tells you what is missing.
224
281
 
225
- ## License
282
+ ## License<!-- id: license -->
226
283
 
227
284
  Apache-2.0. See [`LICENSE`](LICENSE).