scientific-computing-system 1.0.0

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 (430) hide show
  1. package/.binder/postBuild +9 -0
  2. package/.binder/requirements.txt +10 -0
  3. package/.gitattributes +35 -0
  4. package/.github/CODEOWNERS +4 -0
  5. package/.github/FUNDING.yml +3 -0
  6. package/.github/ISSUE_TEMPLATE/bug_report.md +50 -0
  7. package/.github/ISSUE_TEMPLATE/config.yml +8 -0
  8. package/.github/ISSUE_TEMPLATE/feature_request.md +28 -0
  9. package/.github/PULL_REQUEST_TEMPLATE.md +29 -0
  10. package/.github/dependabot.yml +32 -0
  11. package/.github/labeler.yml +50 -0
  12. package/.github/workflows/benchmarks.yml +97 -0
  13. package/.github/workflows/bot-reviewer.yml +58 -0
  14. package/.github/workflows/changelog.yml +130 -0
  15. package/.github/workflows/cli-package-smoke.yml +45 -0
  16. package/.github/workflows/codeql.yml +55 -0
  17. package/.github/workflows/npm-publish.yml +33 -0
  18. package/.github/workflows/p08-cancel-noncanonical-runs.yml +41 -0
  19. package/.github/workflows/pr-automation.yml +78 -0
  20. package/.github/workflows/public-external-validation-p08-v2-glm.yml +161 -0
  21. package/.github/workflows/public-external-validation-p08-v2-recovery-merge-gate.yml +72 -0
  22. package/.github/workflows/public-external-validation-p08-v2-recovery-merge.yml +113 -0
  23. package/.github/workflows/public-external-validation-p08-v2-run-recovery-anatomy-gate.yml +57 -0
  24. package/.github/workflows/public-external-validation-p08-v2-run-recovery-merge-gate.yml +63 -0
  25. package/.github/workflows/public-external-validation-p08-v2-run-recovery-merge.yml +89 -0
  26. package/.github/workflows/public-external-validation-p08-v2-run-recovery.yml +182 -0
  27. package/.github/workflows/public-external-validation-p08-v3-glm-gate.yml +67 -0
  28. package/.github/workflows/public-external-validation-p08-v4-recovery-glm-gate.yml +78 -0
  29. package/.github/workflows/public-external-validation-p08-v4-recovery-glm.yml +248 -0
  30. package/.github/workflows/public-external-validation-p08-v5-run-recovery-glm-gate.yml +66 -0
  31. package/.github/workflows/public-external-validation-p08-v5-run-recovery-glm.yml +218 -0
  32. package/.github/workflows/pypi-registry-smoke.yml +116 -0
  33. package/.github/workflows/release.yml +359 -0
  34. package/.github/workflows/tests.yml +250 -0
  35. package/.github/workflows/tmp-compassion-raw-acquire.yml +63 -0
  36. package/.github/workflows/wsl-science-runner-smoke.yml +45 -0
  37. package/.pre-commit-config.yaml +48 -0
  38. package/CHANGELOG.md +1139 -0
  39. package/CITATION.cff +29 -0
  40. package/CODE_OF_CONDUCT.md +25 -0
  41. package/CONTRIBUTING.md +275 -0
  42. package/LICENSE +21 -0
  43. package/README.md +281 -0
  44. package/ROADMAP.md +155 -0
  45. package/SECURITY.md +82 -0
  46. package/assets/logo.svg +38 -0
  47. package/assets/social_preview.png +0 -0
  48. package/benchmarks/results.json +43 -0
  49. package/benchmarks/robust_runner.py +118 -0
  50. package/benchmarks/run_benchmarks.py +394 -0
  51. package/bin/scs.js +2 -0
  52. package/cliff.toml +100 -0
  53. package/dashboard/app.py +224 -0
  54. package/docs/ARCHITECTURE.md +252 -0
  55. package/docs/CASE_STUDY_HUBBLE.md +78 -0
  56. package/docs/CASE_STUDY_QUANTUM_ML.md +79 -0
  57. package/docs/api.md +133 -0
  58. package/docs/assets/icon.svg +17 -0
  59. package/docs/assets/logo.svg +38 -0
  60. package/docs/benchmarks.md +62 -0
  61. package/docs/cookbook.md +930 -0
  62. package/docs/getting-started.md +185 -0
  63. package/docs/index.md +111 -0
  64. package/docs/maintenance.md +61 -0
  65. package/docs/ml_reference.md +92 -0
  66. package/docs/research-workflows.md +82 -0
  67. package/docs/stylesheets/extra.css +122 -0
  68. package/docs/tour_of_numerical_methods.md +330 -0
  69. package/docs/tutorials/core_demo.md +35 -0
  70. package/docs/tutorials/data_analysis_demo.md +43 -0
  71. package/docs/tutorials/diffeq_demo.md +48 -0
  72. package/docs/tutorials/fft2_demo.md +67 -0
  73. package/docs/tutorials/graph_demo.md +45 -0
  74. package/docs/tutorials/hypothesis_demo.md +44 -0
  75. package/docs/tutorials/hypothesis_tests_demo.md +170 -0
  76. package/docs/tutorials/hypothesis_with_stats_demo.md +80 -0
  77. package/docs/tutorials/knowledge_demo.md +114 -0
  78. package/docs/tutorials/linalg_demo.md +103 -0
  79. package/docs/tutorials/math_utils_demo.md +46 -0
  80. package/docs/tutorials/ml_advanced_demo.md +96 -0
  81. package/docs/tutorials/ml_and_viz_demo.md +93 -0
  82. package/docs/tutorials/ml_demo.md +70 -0
  83. package/docs/tutorials/modeling_demo.md +82 -0
  84. package/docs/tutorials/montecarlo_demo.md +42 -0
  85. package/docs/tutorials/nlp_attention_demo.md +107 -0
  86. package/docs/tutorials/nlp_bpe_demo.md +103 -0
  87. package/docs/tutorials/nlp_mini_gpt_demo.md +110 -0
  88. package/docs/tutorials/nlp_viz.md +76 -0
  89. package/docs/tutorials/numerical_integration_demo.md +65 -0
  90. package/docs/tutorials/optimization_demo.md +106 -0
  91. package/docs/tutorials/pandas_io_demo.md +160 -0
  92. package/docs/tutorials/pca_demo.md +87 -0
  93. package/docs/tutorials/probability_demo.md +48 -0
  94. package/docs/tutorials/quantum_demo.md +31 -0
  95. package/docs/tutorials/quick_start.md +44 -0
  96. package/docs/tutorials/scientific_demo.md +46 -0
  97. package/docs/tutorials/signals_demo.md +167 -0
  98. package/docs/tutorials/stats_demo.md +94 -0
  99. package/docs/tutorials/stiff_ode_demo.md +84 -0
  100. package/docs/tutorials/time_series_demo.md +145 -0
  101. package/examples/core_demo.py +40 -0
  102. package/examples/data_analysis_demo.py +60 -0
  103. package/examples/diffeq_demo.py +34 -0
  104. package/examples/discovery_pipeline_demo.py +57 -0
  105. package/examples/ensemble_showcase.py +81 -0
  106. package/examples/fft2_demo.py +32 -0
  107. package/examples/graph_demo.py +49 -0
  108. package/examples/hypothesis_custom_generator.py +121 -0
  109. package/examples/hypothesis_demo.py +48 -0
  110. package/examples/hypothesis_tests_demo.py +52 -0
  111. package/examples/hypothesis_with_stats_demo.py +43 -0
  112. package/examples/interpolate_demo.py +57 -0
  113. package/examples/knowledge_demo.py +100 -0
  114. package/examples/linalg_demo.py +61 -0
  115. package/examples/math_utils_demo.py +53 -0
  116. package/examples/ml_and_viz_demo.py +47 -0
  117. package/examples/modeling_demo.py +110 -0
  118. package/examples/montecarlo_demo.py +41 -0
  119. package/examples/nlp_attention_demo.py +168 -0
  120. package/examples/nlp_bpe_demo.py +79 -0
  121. package/examples/nlp_mini_gpt_demo.py +76 -0
  122. package/examples/nlp_viz_demo.py +98 -0
  123. package/examples/numerical_integration_demo.py +60 -0
  124. package/examples/optimization_demo.py +34 -0
  125. package/examples/pca_demo.py +124 -0
  126. package/examples/pde_demo.py +65 -0
  127. package/examples/plot_demo.py +84 -0
  128. package/examples/plotting_notebook.ipynb +87 -0
  129. package/examples/probability_demo.py +39 -0
  130. package/examples/quantum_demo.py +42 -0
  131. package/examples/scientific_demo.py +49 -0
  132. package/examples/signals_demo.py +86 -0
  133. package/examples/stats_demo.py +40 -0
  134. package/examples/tour_of_numerical_methods.ipynb +497 -0
  135. package/index.js +1 -0
  136. package/mkdocs.yml +159 -0
  137. package/package.json +1 -0
  138. package/pyproject.toml +288 -0
  139. package/requirements-dev.lock +427 -0
  140. package/requirements-dev.txt +39 -0
  141. package/requirements.lock +6 -0
  142. package/requirements.txt +13 -0
  143. package/scripts/build_gif.py +111 -0
  144. package/scripts/build_video.py +214 -0
  145. package/scripts/cleanup_deployments.py +173 -0
  146. package/scripts/crop_readme_png.py +40 -0
  147. package/scripts/make_pi_dashboard.py +316 -0
  148. package/scripts/make_pi_gif.py +138 -0
  149. package/scripts/publish.py +203 -0
  150. package/scripts/render_promo.mjs +93 -0
  151. package/scripts/render_readme.py +211 -0
  152. package/scripts/render_readme_sections.py +168 -0
  153. package/scripts/verify_cli_install.py +99 -0
  154. package/scripts/verify_cookbook.py +601 -0
  155. package/scripts/verify_d1_numerics.py +504 -0
  156. package/scripts/verify_d2_edge_cases.py +442 -0
  157. package/scripts/verify_d4_hypothesis.py +337 -0
  158. package/scripts/verify_ml_reference.py +160 -0
  159. package/scripts/verify_pypi_release.py +97 -0
  160. package/scripts/verify_release_integrity.py +194 -0
  161. package/src/cds/__init__.py +132 -0
  162. package/src/cds/__main__.py +8 -0
  163. package/src/cds/_version.py +11 -0
  164. package/src/cds/bayes/__init__.py +25 -0
  165. package/src/cds/bayes/conjugate.py +560 -0
  166. package/src/cds/cli/__init__.py +104 -0
  167. package/src/cds/cli/__main__.py +8 -0
  168. package/src/cds/cli/_handlers.py +323 -0
  169. package/src/cds/cli/_parser.py +155 -0
  170. package/src/cds/cli/_style.py +208 -0
  171. package/src/cds/cli/_system_info.py +71 -0
  172. package/src/cds/core/__init__.py +5 -0
  173. package/src/cds/core/_numeric.py +92 -0
  174. package/src/cds/core/models.py +166 -0
  175. package/src/cds/data_analysis/__init__.py +30 -0
  176. package/src/cds/data_analysis/dataset.py +122 -0
  177. package/src/cds/data_analysis/loader.py +75 -0
  178. package/src/cds/data_analysis/pandas_io.py +108 -0
  179. package/src/cds/data_analysis/transform.py +36 -0
  180. package/src/cds/data_analysis/viz.py +88 -0
  181. package/src/cds/data_io/__init__.py +27 -0
  182. package/src/cds/data_io/streaming.py +314 -0
  183. package/src/cds/diffeq/__init__.py +37 -0
  184. package/src/cds/diffeq/_implicit.py +349 -0
  185. package/src/cds/diffeq/solvers.py +312 -0
  186. package/src/cds/diffeq/symplectic.py +225 -0
  187. package/src/cds/fractals/__init__.py +34 -0
  188. package/src/cds/fractals/sets.py +356 -0
  189. package/src/cds/genetics/__init__.py +22 -0
  190. package/src/cds/genetics/sequence.py +199 -0
  191. package/src/cds/graph/__init__.py +31 -0
  192. package/src/cds/graph/algorithms.py +399 -0
  193. package/src/cds/hypothesis/__init__.py +51 -0
  194. package/src/cds/hypothesis/evaluator.py +311 -0
  195. package/src/cds/hypothesis/generator.py +275 -0
  196. package/src/cds/hypothesis/mining.py +314 -0
  197. package/src/cds/infotheory/__init__.py +25 -0
  198. package/src/cds/infotheory/measures.py +276 -0
  199. package/src/cds/interpolate/__init__.py +156 -0
  200. package/src/cds/knowledge/__init__.py +45 -0
  201. package/src/cds/knowledge/graph.py +489 -0
  202. package/src/cds/knowledge/notes.py +231 -0
  203. package/src/cds/knowledge/retrieval.py +339 -0
  204. package/src/cds/math_utils/__init__.py +46 -0
  205. package/src/cds/math_utils/calculus.py +40 -0
  206. package/src/cds/math_utils/linalg.py +496 -0
  207. package/src/cds/math_utils/special.py +167 -0
  208. package/src/cds/math_utils/svd.py +261 -0
  209. package/src/cds/ml/__init__.py +60 -0
  210. package/src/cds/ml/boosting.py +304 -0
  211. package/src/cds/ml/clustering.py +190 -0
  212. package/src/cds/ml/decomposition.py +172 -0
  213. package/src/cds/ml/ensemble.py +152 -0
  214. package/src/cds/ml/linear_models.py +225 -0
  215. package/src/cds/ml/metrics.py +227 -0
  216. package/src/cds/ml/model_selection.py +150 -0
  217. package/src/cds/ml/naive_bayes.py +179 -0
  218. package/src/cds/ml/neighbors.py +162 -0
  219. package/src/cds/ml/neural.py +204 -0
  220. package/src/cds/ml/preprocessing.py +131 -0
  221. package/src/cds/ml/tree.py +228 -0
  222. package/src/cds/ml/voting.py +175 -0
  223. package/src/cds/modeling/__init__.py +44 -0
  224. package/src/cds/modeling/_base.py +210 -0
  225. package/src/cds/modeling/_nodes.py +526 -0
  226. package/src/cds/modeling/expression.py +81 -0
  227. package/src/cds/modeling/fitting.py +477 -0
  228. package/src/cds/modeling/model.py +134 -0
  229. package/src/cds/modeling/solver.py +187 -0
  230. package/src/cds/montecarlo/__init__.py +24 -0
  231. package/src/cds/montecarlo/markov.py +112 -0
  232. package/src/cds/montecarlo/methods.py +294 -0
  233. package/src/cds/nlp/__init__.py +170 -0
  234. package/src/cds/nlp/attention.py +285 -0
  235. package/src/cds/nlp/autograd/__init__.py +70 -0
  236. package/src/cds/nlp/autograd/_grad.py +120 -0
  237. package/src/cds/nlp/autograd/ops.py +133 -0
  238. package/src/cds/nlp/autograd/tensor.py +298 -0
  239. package/src/cds/nlp/bpe.py +449 -0
  240. package/src/cds/nlp/data.py +70 -0
  241. package/src/cds/nlp/embed.py +190 -0
  242. package/src/cds/nlp/layers.py +259 -0
  243. package/src/cds/nlp/model.py +456 -0
  244. package/src/cds/nlp/optim.py +163 -0
  245. package/src/cds/nlp/training.py +167 -0
  246. package/src/cds/nlp/viz.py +254 -0
  247. package/src/cds/numerical_integration/__init__.py +31 -0
  248. package/src/cds/numerical_integration/quadrature.py +480 -0
  249. package/src/cds/optimization/__init__.py +26 -0
  250. package/src/cds/optimization/_metaheuristics.py +287 -0
  251. package/src/cds/optimization/constrained.py +212 -0
  252. package/src/cds/optimization/minimize.py +425 -0
  253. package/src/cds/pde/__init__.py +266 -0
  254. package/src/cds/plot/__init__.py +49 -0
  255. package/src/cds/plot/_backend.py +32 -0
  256. package/src/cds/plot/charts.py +462 -0
  257. package/src/cds/probability/__init__.py +65 -0
  258. package/src/cds/probability/_advanced.py +283 -0
  259. package/src/cds/probability/distributions.py +236 -0
  260. package/src/cds/probability/extra_distributions.py +199 -0
  261. package/src/cds/provenance/__init__.py +25 -0
  262. package/src/cds/provenance/manifest.py +355 -0
  263. package/src/cds/py.typed +0 -0
  264. package/src/cds/quantum/__init__.py +51 -0
  265. package/src/cds/quantum/circuit.py +122 -0
  266. package/src/cds/quantum/multi_qubit.py +310 -0
  267. package/src/cds/quantum/simulator.py +53 -0
  268. package/src/cds/scientific/__init__.py +34 -0
  269. package/src/cds/scientific/constants.py +35 -0
  270. package/src/cds/scientific/formulas.py +116 -0
  271. package/src/cds/sensitivity.py +204 -0
  272. package/src/cds/signals/__init__.py +59 -0
  273. package/src/cds/signals/filters.py +449 -0
  274. package/src/cds/signals/processing.py +224 -0
  275. package/src/cds/signals/stft.py +177 -0
  276. package/src/cds/signals/wavelet.py +146 -0
  277. package/src/cds/stats/__init__.py +99 -0
  278. package/src/cds/stats/_distributions.py +102 -0
  279. package/src/cds/stats/bootstrap.py +188 -0
  280. package/src/cds/stats/descriptive.py +172 -0
  281. package/src/cds/stats/hypothesis_tests.py +294 -0
  282. package/src/cds/stats/nonparametric.py +141 -0
  283. package/src/cds/stats/power.py +290 -0
  284. package/src/cds/stats/regression.py +51 -0
  285. package/src/cds/stats/time_series.py +420 -0
  286. package/src/cds/tools/__init__.py +29 -0
  287. package/src/cds/tools/adapters.py +218 -0
  288. package/src/cds/tools/registry.py +181 -0
  289. package/src/cds/uncertainty/__init__.py +17 -0
  290. package/src/cds/uncertainty/propagation.py +233 -0
  291. package/src/cds/units/__init__.py +45 -0
  292. package/src/cds/units/core.py +199 -0
  293. package/src/cds/validation/__init__.py +41 -0
  294. package/src/cds/validation/adequacy.py +157 -0
  295. package/src/cds/validation/checks.py +485 -0
  296. package/src/cds/validation/report.py +50 -0
  297. package/src/cds/wavelets/__init__.py +5 -0
  298. package/src/cds/wavelets/haar.py +219 -0
  299. package/src/cds/workflow/__init__.py +77 -0
  300. package/src/cds/workflow/engine.py +116 -0
  301. package/src/cds/workflow/gates.py +120 -0
  302. package/src/cds/workflow/orchestrator.py +431 -0
  303. package/src/cds/workflow/selection.py +454 -0
  304. package/src/cds/workflow/tooling.py +155 -0
  305. package/src/cds/workflow/types.py +107 -0
  306. package/tests/__init__.py +0 -0
  307. package/tests/conftest.py +109 -0
  308. package/tests/test_advanced_fitting.py +247 -0
  309. package/tests/test_audit_completion_coverage.py +183 -0
  310. package/tests/test_audit_guard_coverage.py +115 -0
  311. package/tests/test_audit_hardening.py +138 -0
  312. package/tests/test_audit_hardening_coverage.py +111 -0
  313. package/tests/test_bayes_v2.py +208 -0
  314. package/tests/test_benchmarks.py +111 -0
  315. package/tests/test_bootstrap.py +135 -0
  316. package/tests/test_cli.py +51 -0
  317. package/tests/test_cli_color.py +114 -0
  318. package/tests/test_cli_extended.py +239 -0
  319. package/tests/test_cli_system_info.py +36 -0
  320. package/tests/test_constrained_opt.py +174 -0
  321. package/tests/test_core.py +273 -0
  322. package/tests/test_data_analysis.py +146 -0
  323. package/tests/test_data_analysis_lazy_bridge.py +68 -0
  324. package/tests/test_data_analysis_pandas_io.py +119 -0
  325. package/tests/test_data_io.py +149 -0
  326. package/tests/test_dataset.py +91 -0
  327. package/tests/test_diffeq.py +186 -0
  328. package/tests/test_diffeq_implicit.py +173 -0
  329. package/tests/test_domain_validation.py +66 -0
  330. package/tests/test_edge_misc_numerical.py +666 -0
  331. package/tests/test_edge_ml_quantum_linalg.py +191 -0
  332. package/tests/test_edge_nlp.py +229 -0
  333. package/tests/test_edge_quantum_evaluator_cli.py +601 -0
  334. package/tests/test_edge_stats_optimization_signals.py +406 -0
  335. package/tests/test_extra_distributions.py +206 -0
  336. package/tests/test_fft2.py +67 -0
  337. package/tests/test_fitting_bootstrap.py +202 -0
  338. package/tests/test_fractals.py +387 -0
  339. package/tests/test_genetics.py +159 -0
  340. package/tests/test_graph.py +380 -0
  341. package/tests/test_hardening_privacy_provenance.py +306 -0
  342. package/tests/test_hypothesis.py +216 -0
  343. package/tests/test_hypothesis_engine.py +59 -0
  344. package/tests/test_hypothesis_mining.py +247 -0
  345. package/tests/test_hypothesis_tests.py +277 -0
  346. package/tests/test_infotheory.py +302 -0
  347. package/tests/test_interpolate.py +189 -0
  348. package/tests/test_knowledge.py +1149 -0
  349. package/tests/test_layering.py +112 -0
  350. package/tests/test_linalg_extended.py +179 -0
  351. package/tests/test_linalg_qr_cholesky.py +68 -0
  352. package/tests/test_markov.py +155 -0
  353. package/tests/test_math_utils.py +157 -0
  354. package/tests/test_ml_boosting.py +148 -0
  355. package/tests/test_ml_clustering.py +92 -0
  356. package/tests/test_ml_ensemble.py +103 -0
  357. package/tests/test_ml_knn.py +95 -0
  358. package/tests/test_ml_linreg.py +70 -0
  359. package/tests/test_ml_logreg.py +84 -0
  360. package/tests/test_ml_metrics.py +125 -0
  361. package/tests/test_ml_model_selection.py +108 -0
  362. package/tests/test_ml_naive_bayes.py +183 -0
  363. package/tests/test_ml_pca.py +98 -0
  364. package/tests/test_ml_preprocessing.py +104 -0
  365. package/tests/test_ml_tree.py +89 -0
  366. package/tests/test_ml_viz.py +58 -0
  367. package/tests/test_ml_voting.py +219 -0
  368. package/tests/test_modeling.py +726 -0
  369. package/tests/test_modeling_fit_validation.py +46 -0
  370. package/tests/test_montecarlo.py +245 -0
  371. package/tests/test_multi_qubit.py +466 -0
  372. package/tests/test_nlp_attention.py +335 -0
  373. package/tests/test_nlp_autograd.py +435 -0
  374. package/tests/test_nlp_bpe.py +463 -0
  375. package/tests/test_nlp_embed.py +240 -0
  376. package/tests/test_nlp_layers.py +276 -0
  377. package/tests/test_nlp_model.py +172 -0
  378. package/tests/test_nlp_training.py +262 -0
  379. package/tests/test_nlp_viz.py +188 -0
  380. package/tests/test_numerical_integration.py +374 -0
  381. package/tests/test_numerical_invariants.py +768 -0
  382. package/tests/test_numerical_oracles.py +241 -0
  383. package/tests/test_optimization.py +139 -0
  384. package/tests/test_optimization_metaheuristics.py +221 -0
  385. package/tests/test_pde.py +294 -0
  386. package/tests/test_plot_charts.py +247 -0
  387. package/tests/test_plot_lazy.py +48 -0
  388. package/tests/test_power.py +226 -0
  389. package/tests/test_probability.py +274 -0
  390. package/tests/test_probability_advanced.py +226 -0
  391. package/tests/test_property_invariants.py +277 -0
  392. package/tests/test_provenance.py +215 -0
  393. package/tests/test_provenance_audit_hardening.py +45 -0
  394. package/tests/test_public_api.py +75 -0
  395. package/tests/test_quantum.py +195 -0
  396. package/tests/test_release_contract.py +105 -0
  397. package/tests/test_retrieval.py +255 -0
  398. package/tests/test_scientific.py +185 -0
  399. package/tests/test_selection_audit_hardening.py +55 -0
  400. package/tests/test_sensitivity.py +59 -0
  401. package/tests/test_sensitivity_global.py +73 -0
  402. package/tests/test_signals.py +146 -0
  403. package/tests/test_signals_filters.py +460 -0
  404. package/tests/test_special_invariants.py +222 -0
  405. package/tests/test_special_numerics.py +44 -0
  406. package/tests/test_statistical_audit.py +75 -0
  407. package/tests/test_stats.py +206 -0
  408. package/tests/test_stats_audit_coverage.py +17 -0
  409. package/tests/test_stats_nonparametric.py +87 -0
  410. package/tests/test_stats_time_series.py +352 -0
  411. package/tests/test_stft.py +208 -0
  412. package/tests/test_streaming_analytics.py +128 -0
  413. package/tests/test_svd.py +170 -0
  414. package/tests/test_symplectic.py +200 -0
  415. package/tests/test_tool_adapters.py +197 -0
  416. package/tests/test_tools_registry.py +132 -0
  417. package/tests/test_uncertainty.py +171 -0
  418. package/tests/test_units.py +139 -0
  419. package/tests/test_validation.py +100 -0
  420. package/tests/test_validation_adequacy.py +129 -0
  421. package/tests/test_validation_advanced.py +110 -0
  422. package/tests/test_wavelet.py +170 -0
  423. package/tests/test_wavelets_v2.py +119 -0
  424. package/tests/test_workflow.py +173 -0
  425. package/tests/test_workflow_gates.py +144 -0
  426. package/tests/test_workflow_orchestrator.py +516 -0
  427. package/tests/test_workflow_orchestrator_blocked_review.py +95 -0
  428. package/tests/test_workflow_selection.py +312 -0
  429. package/tests/test_workflow_selection_coverage.py +114 -0
  430. package/tests/test_workflow_tooling.py +190 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,1139 @@
1
+ # Changelog
2
+
3
+ All notable changes to **scientific-computing-system** will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+
12
+ - **Random Forest classifier** (`cds.ml`): bagged CART trees with
13
+ bootstrap resampling and per-split feature randomization (`sqrt`/`log2`
14
+ / explicit count), fully deterministic under a seed.
15
+ - **Metrics** (`cds.ml`): `accuracy`, `confusion_matrix`,
16
+ `precision_recall_f1`, `macro_prf`, regression `mse`/`mae`/`r2_score`,
17
+ and tie-aware rank-based `roc_auc`.
18
+ - **Cross-validation** (`cds.ml.model_selection`): `k_fold_indices` and
19
+ `cross_val_score` over the shared estimator interface.
20
+ - **Interpolation module** (`cds.interpolate`): `interp1d` (linear /
21
+ nearest) and `interp2d` (bilinear on regular grids).
22
+ - **SVD** (`cds.math_utils`): one-sided Jacobi decomposition with
23
+ `svd`, `rank` and `condition_number`; full U/Vt factors.
24
+ - **STFT / spectrogram** (`cds.signals`): Hann/Hamming windows, framed
25
+ zero-padded transforms reusing the radix-2 FFT, `STFTResult`.
26
+ - **Gradient Boosting classifier** (`cds.ml`): logistic-loss boosted
27
+ regression trees with Newton leaf values; binary labels.
28
+ - **Bootstrap confidence intervals** (`cds.stats`): percentile-method
29
+ `bootstrap_ci` and two-sample `bootstrap_diff_ci`.
30
+ - **Metropolis-Hastings sampler** (`cds.montecarlo`): 1-D random-walk
31
+ MCMC with burn-in/thinning and acceptance-rate reporting.
32
+ - **Symplectic integrators** (`cds.diffeq`): semi-implicit Euler and
33
+ velocity Verlet with forward/backward integration.
34
+ - **Constrained optimization** (`cds.optimization`): projected gradient
35
+ descent for box bounds and quadratic-penalty constrained solves.
36
+ - **Hypergeometric & negative-binomial distributions**
37
+ (`cds.probability`), pmf + cdf for both.
38
+ - **TF-IDF ranked retrieval** (`cds.knowledge`): `rank_tfidf` across
39
+ concepts and notes with smoothed idf.
40
+ - **Haar wavelet transform** (`cds.signals`): `dwt` / `idwt` /
41
+ `dwt_multi_level`, orthonormal with perfect reconstruction.
42
+ - **PDE solvers** (`cds.pde`): explicit FTCS heat equation (Dirichlet /
43
+ Neumann, stability-guarded) and wave equation (CFL-guarded).
44
+ - **Gaussian Naive Bayes** (`cds.ml`): log-space scoring with variance
45
+ smoothing.
46
+ - **Correlation-mining engine** (`cds.hypothesis`): `mine_correlations`
47
+ turns numeric datasets into statistically tested, falsifiable
48
+ `Hypothesis` objects.
49
+ - **Power analysis** (`cds.stats`): `power_t_test`,
50
+ `power_proportion_test` and `required_n_per_group` sample-size solver.
51
+ - **VotingClassifier** (`cds.ml`): hard (majority vote) and soft
52
+ (averaged probabilities) ensembles over the shared estimator interface.
53
+ - Four new runnable demos under `examples/`: interpolation, PDE,
54
+ ensemble showcase and the end-to-end discovery pipeline.
55
+ - **PCA end-to-end demo** (`examples/pca_demo.py`): scaling vs raw
56
+ variance comparison, component selection, 2-D ASCII projection,
57
+ reconstruction error and train/test discipline, with a matching
58
+ tutorial (`docs/tutorials/pca_demo.md`).
59
+ - **ML correctness reference table** (`scripts/verify_ml_reference.py`,
60
+ `docs/ml_reference.md`), LogisticRegression, DecisionTree, KMeans,
61
+ PCA and LinearRegression checked against scikit-learn 1.9.0 outputs
62
+ on a fixed seeded dataset; one-command, dependency-free verification.
63
+
64
+ ### Changed
65
+
66
+ - `DecisionTreeClassifier` now accepts `max_features` and `seed` for
67
+ random-forest-style split randomization (default behavior unchanged).
68
+ - The README now displays the sklearn-parity badge and links the ML
69
+ Reference table. (The matching `ml-reference` CI job is prepared but
70
+ not yet applied. It needs a push from a token with the `workflow`
71
+ OAuth scope; see the `backup/pre-reorder` branch.)
72
+
73
+ ## [v1.6.1] - 2026-08-21
74
+
75
+ A **patch** release completing the JSON round trip for core data models.
76
+
77
+ ### Added
78
+
79
+ - **`cds.core`**: `Hypothesis.from_dict()`: the inverse of `to_dict()`.
80
+ CLI/JSON output can now be re-imported: enum strings are coerced back to
81
+ `Domain` / `HypothesisStatus`, ISO-8601 timestamps are parsed, and missing
82
+ optional keys fall back to constructor defaults. Invalid `status` values
83
+ raise `ValueError`.
84
+
85
+ ### Changed
86
+
87
+ - Internal layering cleanup: shared special-function kernels moved to their
88
+ single home (`cds.math_utils.special`) so lower-level packages never depend
89
+ on higher-level ones; a suite-level import-direction guard enforces this.
90
+ - `cds.cli` is now a package (`_style` / `_handlers` / `_parser`) with
91
+ identical behaviour; refreshed module descriptions in `cds modules`.
92
+
93
+ ## [v1.6.0] - 2026-08-21
94
+
95
+ A **minor** release deepening the ML, probability, ODE, and optimization
96
+ toolkits toward scikit-learn / SciPy teaching parity, still zero runtime
97
+ dependencies, still 100% blended coverage.
98
+
99
+ ### Added
100
+
101
+ - **`cds.ml`**: `KNeighborsClassifier` / `KNeighborsRegressor` (brute-force,
102
+ deterministic tie-breaking), `KMeans` (k-means++ seeding, seeded),
103
+ `DecisionTreeClassifier` (CART + Gini), `LogisticRegression` (stable-BCE
104
+ gradient descent, optional L2), `LinearRegression` (closed-form vector OLS
105
+ via normal equations), `PCA` (cyclic Jacobi eigen-solver, transform /
106
+ inverse_transform), `StandardScaler`, `train_test_split` (seeded)
107
+ - **`cds.probability`**: chi-square and Student-t distributions
108
+ (`chi2_pdf/cdf/ppf`, `t_pdf/cdf/ppf`), `gamma_pdf` + `sample_gamma`
109
+ (Marsaglia–Tsang with shape<1 boost), `beta_pdf` + `sample_beta`
110
+ (exact gamma-ratio identity)
111
+ - **`cds.diffeq`**: implicit stiff solvers: `backward_euler`,
112
+ `trapezoid_method` (Crank–Nicolson) and their `_system` variants; unified
113
+ θ-method core with Newton iteration over analytic or central-difference
114
+ Jacobians via the shared PLU solver
115
+ - **`cds.optimization`**: `nelder_mead` simplex (degenerate-simplex and
116
+ symmetric false-convergence guards), `simulated_annealing` (Metropolis rule,
117
+ box bounds, seeded)
118
+ - **`cds.stats`**: nonparametric tests: `mann_whitney_u` and
119
+ `wilcoxon_signed_rank` with tie/zero corrections (normal approximation)
120
+
121
+ ### Fixed
122
+
123
+ - Test-suite pyplot figures are now closed per test, silencing matplotlib's
124
+ "more than 20 figures" memory warning in long sessions
125
+
126
+ ### Changed
127
+
128
+ - README "Why CDS?" pitch strengthened with proof numbers and a cross-domain
129
+ snippet; stale counts/versions synced across metadata (19 modules)
130
+
131
+ ## [v1.5.0] - 2026-07-20
132
+
133
+ A **minor** release expanding algorithms across graph theory, Monte Carlo,
134
+ linear algebra, and CLI, still zero runtime dependencies.
135
+
136
+ ### Added
137
+
138
+ - **`cds.graph`**: `degree`, `connected_components`, `bellman_ford`,
139
+ `floyd_warshall`, `prim_mst`
140
+ - **`cds.montecarlo`**: `mc_expectation`, `hit_or_miss` (2-D area estimation)
141
+ - **`cds.math_utils`**: `vector_norm`, `frobenius_norm`, `matrix_trace`
142
+ - **CLI**: `cds integrate <sin|cos|exp|x2|unit> --a --b -n --method`
143
+
144
+ ## [v1.4.0] - 2026-07-20
145
+
146
+ A **minor** release expanding core scientific APIs and CLI ergonomics.
147
+ Zero runtime dependencies preserved.
148
+
149
+ ### Added
150
+
151
+ - **`cds.probability`**: CDFs (`gaussian_cdf`, `uniform_cdf`, `exponential_cdf`),
152
+ `geometric_pmf`, samplers (`gaussian_sample` Box–Muller, `exponential_sample`,
153
+ `poisson_sample` Knuth)
154
+ - **`cds.stats`**: `spearman_correlation` (midranks), `percentile`, `z_scores`
155
+ - **`cds.scientific`**: constants `epsilon_0`, `g`, `mu_0`; formulas
156
+ `coulomb_force`, `centripetal_acceleration`, `pendulum_period`, `doppler_frequency`
157
+ - **CLI**: `cds stats <nums>`, `cds sample <dist> -n N --seed …`
158
+
159
+ ### Changed
160
+
161
+ - `cds info` no longer hardcodes a stale test count; module list includes modeling/knowledge/nlp
162
+
163
+ ## [v1.3.2] - 2026-07-20
164
+
165
+ A **patch** release expanding the optional ``cds[plot]`` surface.
166
+
167
+ ### Added
168
+
169
+ - **`cds.plot` charts**: `plot_multi_series`, `plot_scatter`, `plot_regression`
170
+ (OLS via `cds.stats`), `plot_power_spectrum` (via `cds.signals`),
171
+ `plot_seasonal_decompose` (4-panel), `plot_heatmap`, `plot_loss`,
172
+ `save_figure(..., close=)` helper; histogram gains ``density=``
173
+ - **CLI**: `cds plot … --kind series|hist|acf --file out.png`
174
+
175
+ ### Changed
176
+
177
+ - Docs / Cookbook / demo updated for the expanded plot API
178
+
179
+ ## [v1.3.1] - 2026-07-20
180
+
181
+ A **patch** release. Fixes the console entry point so `cds` works after a
182
+ plain PyPI install.
183
+
184
+ ### Fixed
185
+
186
+ - **`[project.scripts]`**: entry point was `cds.cli:app` but the CLI exports
187
+ `main` (argparse). Installing from PyPI then raised
188
+ `ImportError: cannot import name 'app' from 'cds.cli'`. Now points to
189
+ `cds.cli:main`. `python -m cds` was already correct.
190
+
191
+ ## [v1.3.0] - 2026-07-20
192
+
193
+ A **minor** release focused on **visualization and ergonomics**. Adds the
194
+ optional ``cds[plot]`` matplotlib extra, a CLI PNG export path, a companion
195
+ notebook, and documentation. The zero-dependency core is unchanged: matplotlib
196
+ is only imported when a plot function runs (or when ``cds plot --file`` is
197
+ used).
198
+
199
+ ### Added
200
+
201
+ - **`cds.plot` optional package** (`src/cds/plot/`):
202
+ - `plot_series`, `plot_histogram`, `plot_waveform`, `plot_spectrum`
203
+ - `plot_acf` / PACF stems via `cds.stats` time-series helpers
204
+ - `plot_optimization_path` for 2-D optimizer trajectories
205
+ - Lazy matplotlib backend with install-hint `ImportError`
206
+ - **Extra**: `pip install scientific-computing-system[plot]` (also in `[all]`)
207
+ - **CLI**: `cds plot 1,2,3 --file out.png` saves a PNG when matplotlib is
208
+ installed; without `--file` the existing ASCII terminal plot remains
209
+ - **Examples**: `examples/plot_demo.py`, `examples/plotting_notebook.ipynb`
210
+ - **Docs**: Cookbook matplotlib section, API reference for `cds.plot`, README /
211
+ module tables, ROADMAP v1.3.0 track
212
+
213
+ ### Changed
214
+
215
+ - CI main matrix installs `.[pandas,plot]` so optional bridges stay at 100%
216
+ coverage; minimal-deps job omits `cds/plot/*` like `pandas_io`
217
+ - PyPI description mentions optional matplotlib plotting
218
+
219
+ ## [v1.2.3] - 2026-06-29
220
+
221
+ A **patch** release. Fixes the release pipeline that silently broke every
222
+ publish since v1.1.8.
223
+
224
+ ### Fixed
225
+
226
+ - **Release workflow (`release.yml`)**: removed an invalid
227
+ `administration: write` entry from the `sync-about` job's `permissions:`
228
+ block. `administration` is not a valid `permissions:` key, so GitHub
229
+ rejected the entire workflow file as a "workflow file issue" before any
230
+ job could start, failing in 0s and leaving v1.1.9 onward without a PyPI
231
+ upload or GitHub Release. The About-sync step is now best-effort
232
+ (`continue-on-error: true`) since `gh repo edit` needs an admin REST
233
+ scope the default `GITHUB_TOKEN` can't grant; the repo description is
234
+ synced by hand on release.
235
+
236
+ ## [v1.2.2] - 2026-06-29
237
+
238
+ A **patch** release. No code changes. Documentation-only refresh.
239
+
240
+ ### Changed
241
+
242
+ - **README: removed pictographic emoji** from the top navigation row, the
243
+ callout blocks, the "Support the project" section heading, and the trailing
244
+ sign-off. Em dashes are preserved. Brings the README in line with the
245
+ emoji-free house style already applied to the docs and live PR bodies.
246
+ - **`.gitignore`: ignore local promo-GIF QA scratch** (audit/compare/measure
247
+ scripts under `scripts/_*.py` and extracted frames under `assets/_qa_*/`),
248
+ which are one-off diagnostic tooling and were never meant to ship.
249
+
250
+ ## [v1.2.1] - 2026-06-28
251
+
252
+ A **patch** release. No code changes. Metadata-only refresh to improve
253
+ PyPI discoverability.
254
+
255
+ ### Changed
256
+
257
+ - **Strengthened PyPI `description`**: the short one-liner now names all 18
258
+ domain modules (quantum circuits, ML, NLP, signal processing, optimization,
259
+ statistics & time-series, ODE solvers, Monte Carlo, symbolic math, knowledge
260
+ graphs, hypothesis generation) and states the zero-runtime-dependency
261
+ guarantee. Improves search-result relevance on PyPI.
262
+ - **Expanded `keywords`** from 12 to 20 entries, aligning them with the GitHub
263
+ repository topics (added `machine-learning`, `nlp`, `numerical-integration`,
264
+ `knowledge-graph`, `symbolic-math`, `data-analysis`, `physics`,
265
+ `hypothesis-generation`, `numerical-methods`; dropped the redundant `fft`
266
+ in favour of the broader `signal-processing`).
267
+
268
+ ## [v1.2.0] - 2026-06-25
269
+
270
+ A **minor** release. The theme is **horizontal expansion + hardening**: three
271
+ new domain features (time-series analysis, signal-filter design, 2-D
272
+ quadrature), an optional pandas interop extra, and a documentation overhaul
273
+ (Cookbook, Architecture guide, expanded Tour). Plus numerical-stability fixes
274
+ and a no-behavior-change refactor of the two largest source files.
275
+
276
+ No existing public API is removed or renamed; the `cds[pandas]` adapter is
277
+ gated behind an optional extra so the zero-dependency core is untouched.
278
+
279
+ ### Added
280
+
281
+ - **`cds.stats`: time-series analysis** (`src/cds/stats/time_series.py`):
282
+ - `moving_average`, `exponential_smoothing`, `difference`, `seasonal_decompose`
283
+ - `autocorrelation_function` (sample ACF), `partial_autocorrelation_function` (PACF)
284
+ - `kpss_statistic` (stationarity test) and `ljung_box` (autocorrelation test),
285
+ both returning result objects with `.statistic` / `.p_value`
286
+ - Exported from the top-level `cds.stats` namespace.
287
+ - **`cds.signals`: filter design** (`src/cds/signals/filters.py`):
288
+ - `butter_lowpass(order, cutoff)`: Butterworth IIR low-pass coefficient design
289
+ - `apply_filter(signal, coeffs)`: direct-form IIR application
290
+ - `moving_median(signal, window)`: order-statistic denoiser (edge-preserving)
291
+ - **`cds.numerical_integration`: 2-D quadrature** (`src/cds/numerical_integration/`):
292
+ - `simpson_2d(f, ax, bx, ay, by, nx, ny)`: 2-D tensor-product Simpson rule
293
+ - `gaussian_quadrature_2d(f, ax, bx, ay, by, n)`: 2-D tensor-product Gauss-Legendre
294
+ - **`cds[pandas]` optional extra** (`src/cds/data_analysis/pandas_io.py`):
295
+ - `to_dataframe(data_set)` / `from_dataframe(df)` round-trip a `DataSet` to/from
296
+ a `pandas.DataFrame`, guarded so importing `cds` never requires pandas.
297
+ - Declared as an optional dependency in `pyproject.toml` (`pandas = {version = ...}`).
298
+ - **Documentation**:
299
+ - **`docs/cookbook.md`**: a new problem-oriented recipe book (~48 recipes, one
300
+ per concrete task), verified end-to-end against the real API by
301
+ `_verify_cookbook.py`.
302
+ - **`docs/ARCHITECTURE.md`**: layered module dependency graph and data flow.
303
+ - **Tour of Numerical Methods** expanded with 2-D quadrature, time-series, and
304
+ filter-design stops.
305
+ - `docs/index.md` Quick Navigation now links the Cookbook, Tour, and Architecture.
306
+
307
+ ### Changed
308
+
309
+ - **`cds.modeling` refactor**: `expression.py` (708 lines) split into
310
+ `_base.py` (AST base classes, visitors) and `_nodes.py` (operator/leaf node
311
+ types). Pure reorganization; no public symbols moved or renamed.
312
+ - **`cds.stats` refactor**: distribution functions (normal/t/chi²/F CDFs and
313
+ inverses) extracted from `hypothesis_tests.py` into the private
314
+ `_distributions.py`, with `__all__` declared so the re-exports pass
315
+ `mypy --strict`.
316
+
317
+ ### Fixed
318
+
319
+ - **`cds.math_utils.linalg`: numerical stability of pivoting.** Pivoting now
320
+ uses a scale-relative threshold (`max(|row|) * epsilon`) instead of a fixed
321
+ absolute epsilon, and rejects exact-zero pivots at sub-normal matrix scales.
322
+ Prevents spurious singular-matrix errors and mis-pivoting on
323
+ small-magnitude matrices. No change to well-scaled inputs.
324
+ - **`cds.stats`**: `__all__` declared so the `_distributions` re-exports are
325
+ recognized as intentional public surface under `mypy --strict`.
326
+ - **Tests**: stabilized a flaky mean-homogeneity property test by anchoring on
327
+ an absolute tolerance instead of a relative one.
328
+
329
+ ## [v1.1.9] - 2026-06-24
330
+
331
+ ### Minor — effect-size measures for the statistics & hypothesis stack
332
+
333
+ A backward-compatible feature release. Adds standardized **effect-size**
334
+ measures to `cds.stats` so users can report the *magnitude* of an effect
335
+ alongside its significance, closing the long-standing gap where a
336
+ hypothesis test answered *"is there an effect?"* but not *"how large?"*.
337
+ No existing API or behavior changes; all prior tests remain green.
338
+
339
+ ### Added
340
+
341
+ - **`cds.stats`: effect-size measures** (`src/cds/stats/hypothesis_tests.py`):
342
+ - `cohens_d(group_a, group_b)`: Cohen's *d* standardized mean difference
343
+ between two samples (pooled-SD denominator).
344
+ - `eta_squared_from_f(f, df1, df2)`: η² proportion of variance explained
345
+ by group membership, derived from a one-way ANOVA *F* statistic.
346
+ - `cramers_v(contingency_table)`: Cramér's *V* association strength for
347
+ an *r* × *c* contingency table (χ²-based, normalized to `[0, 1]`).
348
+ All three functions are exported from the top-level `cds.stats` namespace and
349
+ documented in the tutorial (`docs/tutorials/hypothesis_tests_demo.md`).
350
+ - **Tutorial section**: *"Effect sizes"* walkthrough in
351
+ `hypothesis_tests_demo.md` showing how `cohens_d` / `cramers_v` pair with
352
+ the existing `t_test` / `chi_square_independence` tests.
353
+ - **Getting-started snippets** (EN + TR) and `docs/index.md` now surface the
354
+ effect-size functions in the Python-API quick-start and module table.
355
+
356
+ ### Documentation
357
+
358
+ - README module table, `docs/index.md` Key Features & module description,
359
+ and the EN/TR getting-started guides now mention effect-size support.
360
+
361
+ ## [v1.1.8] - 2026-06-21
362
+
363
+ ### Patch — ODE backward integration bug fix
364
+
365
+ A user-facing **bug-fix release**. Forward integration is byte-identical
366
+ to v1.1.7; only the previously-broken `t_end < t0` case changes behavior.
367
+ Includes corrected deep-verification scripts and a docs sync, no new
368
+ modules, no API additions.
369
+
370
+ ### Fixed
371
+
372
+ - **`diffeq.solvers`: backward integration silently returned only the
373
+ initial value.** The fixed-step (`euler`, `rk4`, `midpoint`) and
374
+ adaptive (`rk45`) ODE solvers, plus `solve_system`, used a forward-only
375
+ loop guard `while t < t_end - LOOP_EPSILON`. When `t_end < t0` the
376
+ guard was immediately `False`, so the solvers did nothing and returned
377
+ only `y0`. The integration direction is now derived from
378
+ `copysign(1.0, t_end - t0)` and applied as
379
+ `direction * min(dt, abs(t_end - t0))`; `dt` stays an unambiguous
380
+ positive magnitude and the loop guard becomes
381
+ `(t_end - t) * direction > LOOP_EPSILON`. A zero-length span
382
+ (`t_end == t0`) still skips the loop because `copysign(1, 0) == +1`.
383
+ For `rk45`, step size is tracked as an always-positive `h_mag` so the
384
+ shrink/grow/snap logic keeps its forward semantics in either direction.
385
+ 7 new `TestBackwardIntegration` regression tests cover all five
386
+ solvers.
387
+
388
+ - **`hypothesis.generator`: confidence overflow past `n >= 12`.** The
389
+ generated-confidence formula `0.45 + i*0.05` overflowed the
390
+ `Hypothesis.confidence` `le=1.0` constraint for 12+ hypotheses,
391
+ raising `ValidationError`. Now clamped to `min(0.9, 0.4 + i*0.05)`.
392
+
393
+ ### Changed (verification tooling)
394
+
395
+ - **`scripts/verify_d1_numerics.py`, `verify_d2_edge_cases.py`,
396
+ `verify_d4_hypothesis.py`**, stale reference values/thresholds that
397
+ produced spurious failures against correct code: D1.3 Romberg
398
+ monotone-decrease check only asserted above `1e-13`; D1.4 RK45
399
+ singularity now uses `t_end=2.0` (past the pole) so `RuntimeError` is
400
+ genuinely triggered; D1.7/D1.2 odd-degree Gauss-Legendre exact
401
+ integral corrected to `0`; Simpson `O(h^4)` thresholds loosened to
402
+ match the method's order; D4.2 confidence expectation updated to the
403
+ clamped formula. All three scripts now report **0 failures**.
404
+
405
+ ### Documentation
406
+
407
+ - README "recent improvements" → v1.1.8 ODE fix entry; ROADMAP marks
408
+ hatch-vcs / git-cliff as tried-and-abandoned with the real rollback
409
+ reasons; SECURITY supported-versions refresh; dashboard UX
410
+ touch-ups; nav/cross-ref drift. **No code or behavior changes.**
411
+
412
+ ## [v1.1.7] - 2026-06-20
413
+
414
+ ### Patch — PEP 639 SPDX license metadata
415
+
416
+ A maintenance release with **no API or behavior changes**. Standardizes
417
+ the license declaration so it is recognized as a valid SPDX identifier
418
+ both on PyPI and in package metadata, and removes drift-prone
419
+ hardcoded numbers from the README.
420
+
421
+ ### Changed
422
+
423
+ - **`pyproject.toml`**: adopted [PEP 639](https://peps.python.org/pep-0639/):
424
+ replaced the legacy `license = {text = "MIT"}` table form with the
425
+ SPDX `license = "MIT"` expression plus `license-files = ["LICENSE"]`.
426
+ The wheel/sdist METADATA now emit `License-Expression: MIT` and
427
+ `License-File: LICENSE`, which PyPI and GitHub recognize as a valid
428
+ SPDX id (the old table form was not parsed, so the license read as
429
+ unrecognized). Removed the now-redundant `License :: OSI Approved ::
430
+ MIT License` classifier (deprecated under PEP 639; would trigger a
431
+ metadata warning).
432
+
433
+ ### Documentation
434
+
435
+ - **`README.md`**: removed hardcoded, drift-prone numbers (version
436
+ tag, test count, module count) in favor of the existing PyPI / CI /
437
+ codecov badges, so the docs no longer go stale between releases.
438
+
439
+ ## [v1.1.6] - 2026-06-20
440
+
441
+ ### Patch — release pipeline fix (OIDC → scoped API token)
442
+
443
+ A maintenance release with **no API or behavior changes**. Fixes the
444
+ broken automated release pipeline: the previous Trusted Publishing (OIDC)
445
+ path required a PyPI publisher configuration that was never set up, so
446
+ the v1.1.5 tag push failed at the upload step with an `invalid-publisher`
447
+ error. The pipeline now uses a scoped **PyPI API token** (stored as the
448
+ `PYPI_API_TOKEN` repo secret), which is the sole publish authority.
449
+
450
+ This is the first release actually published by the automated pipeline,
451
+ v1.1.4 and v1.1.5 were uploaded manually before the pipeline existed.
452
+
453
+ ### Changed
454
+
455
+ - **`release.yml`**: removed the `id-token: write` permission and the
456
+ Trusted Publishing path; publishes via `pypa/gh-action-pypi-publish`
457
+ with `password: ${{ secrets.PYPI_API_TOKEN }}`. The workflow now also
458
+ creates the GitHub Release (previously done by the local script).
459
+ - **`scripts/publish.py`**: no longer uploads to PyPI or creates the
460
+ GitHub release. It now builds, verified the built version against the
461
+ tag, runs tests, and pushes the tag (which triggers CI). Removed the
462
+ `--skip-release` flag and the local `~/.pypi-token` handling.
463
+ - **`pyproject.toml`**: dropped `twine` from the `[all]` and `[dev]`
464
+ extras (no longer needed locally).
465
+ - **Version bump `1.1.5` → `1.1.6`** in `pyproject.toml`,
466
+ `src/cds/_version.py`, and `CITATION.cff`.
467
+
468
+ ### Documentation
469
+
470
+ - **`README.md`** and **`docs/maintenance.md`**: updated the release
471
+ pipeline description to reflect the scoped-API-token flow and
472
+ `release.yml` as the sole publish authority.
473
+
474
+ ## [v1.1.5] - 2026-06-20
475
+
476
+ ### Patch — quality, type-safety, test depth, and a 100% coverage gate
477
+
478
+ A patch release: no API changes, no behavior changes. A coordinated sweep
479
+ of refactoring (type-safety, code deduplication), deeper testing
480
+ (property-based invariants, shared fixtures), expanded documentation
481
+ (tutorials, architecture guide), and a hardening of CI to enforce full
482
+ blended coverage. The result is the cleanest, most thoroughly verified
483
+ release to date: **17 modules, 1230 tests, and 100% code coverage
484
+ (statement + branch)**.
485
+
486
+ ### Added
487
+
488
+ - **Python 3.13 support**: added 3.13 to the CI test matrix and the
489
+ `pyproject.toml` classifiers; the full suite is now green on 3.10–3.13.
490
+ - **Shared test fixtures**: `tests/conftest.py` plus `tests/test_core.py`
491
+ centralize reusable fixtures and core invariants, reducing duplication
492
+ across the suite.
493
+ - **Property-based invariant suite (B5)**: a Hypothesis-driven test set
494
+ that exercises numerical invariants (associativity, identity,
495
+ round-trip) over generated inputs, catching edge cases that
496
+ example-based tests miss.
497
+ - **Tutorials for optimization, signals, ML, and statistics (B3)**: new
498
+ guided walkthroughs under `docs/tutorials/` covering the four most-used
499
+ subsystems.
500
+ - **Contributing architecture section (B4)**: `CONTRIBUTING.md` now
501
+ documents the module layout and the data flow between subsystems, with
502
+ stale cross-references fixed.
503
+ - **`examples/modeling_demo.py`**: a new end-to-end example demonstrating
504
+ the modeling workflow referenced by the tutorials.
505
+
506
+ ### Changed
507
+
508
+ - **Closed remaining `Any` type escapes**: the last untyped boundaries in
509
+ the core and hypothesis modules now carry concrete types; `mypy --strict`
510
+ stays green.
511
+ - **Generic `OptResult`**: the optimization result type is now generic
512
+ over its scalar type, and the narrowing casts that worked around the old
513
+ concrete signature have been removed.
514
+ - **Deduplicated scalar central-difference**: the scalar central-
515
+ difference implementation that existed in both `calculus` and
516
+ `optimization` is now shared from a single source.
517
+ - **Version bump `1.1.4` → `1.1.5`** in `pyproject.toml`,
518
+ `src/cds/_version.py`, and `CITATION.cff`.
519
+
520
+ ### CI
521
+
522
+ - **100% blended coverage gate**: CI now fails unless both statement and
523
+ branch coverage reach 100%, locking in the coverage level as a
524
+ non-regression boundary.
525
+ - **Regenerated benchmark report**: the benchmark report and
526
+ `results.json` were regenerated against the current codebase.
527
+
528
+ ### Documentation
529
+
530
+ - **Synced stale test count and coverage**: corrected the documented test
531
+ count (1165 → 1230) and coverage figure (~99.6% → 100%) to match CI.
532
+ - **Roadmap items shipped**: roadmap entries #2 (modeling) and #3
533
+ (knowledge organization) are marked released; the corresponding issues
534
+ are closed.
535
+
536
+ ## [v1.1.4] - 2026-06-19
537
+
538
+ ### Patch — documentation, CI, and housekeeping cleanup
539
+
540
+ A patch release: no API changes, no behavior changes. Removes cosmetic
541
+ distractions (emojis, sprint references) from issue templates and docs,
542
+ fixes CI workflow schemas, and deletes ~3 500 lines of no-op autograd
543
+ shim code that was never exercised at runtime.
544
+
545
+ ### Changed
546
+
547
+ - **Issue templates**: removed decorative emojis from
548
+ `bug_report.md`, `config.yml`, and `changelog.yml` for a cleaner,
549
+ more professional appearance.
550
+ - **`.github/labeler.yml`**: migrated to the `actions/labeler` v5
551
+ configuration schema (`triage` → `labels` key).
552
+ - **`.github/workflows/changelog.yml`**: fixed a missing trailing
553
+ newline flagged by lint checks.
554
+ - **Documentation**: stripped sprint-tracking references and
555
+ ephemeral planning files (`docs/superpowers/plans/`,
556
+ `docs/superpowers/specs/`); unified inline-code formatting across
557
+ tutorials and case-study pages.
558
+ - **Removed no-op autograd shims**: deleted `src/cds/nlp/autograd/`
559
+ shim functions (`_grad.py` stubs, pass-through wrappers in
560
+ `ops.py` and `tensor.py`) that were placeholders and never
561
+ participated in any real gradient computation. ~3 500 lines removed.
562
+ - **Examples**: aligned `ruff` formatting in
563
+ `examples/data_analysis_demo.py` and
564
+ `examples/ml_and_viz_demo.py`.
565
+ - **Version bump `1.1.3` → `1.1.4`** in `pyproject.toml`,
566
+ `src/cds/_version.py`, and `CITATION.cff`.
567
+
568
+ ## [v1.1.3] - 2026-06-19
569
+
570
+ ### Patch — type-safety cleanup
571
+
572
+ A patch release: no API changes, no behavior changes. Resolves the final
573
+ block of `mypy --strict` errors so the type checker reports **0 errors
574
+ across 136 files**. No public surface changed; all 1165 tests pass and
575
+ the suite is unchanged.
576
+
577
+ ### Fixed
578
+
579
+ - **43 `mypy --strict` errors resolved** across `examples/`, `dashboard/`,
580
+ and `scripts/`. The fixes fall into five categories, none of which
581
+ alter runtime behavior:
582
+ - **`int` → `float` argument types**: numeric literals passed to APIs
583
+ typed as `float` (e.g. integration tolerances, attention scaling)
584
+ now use explicit `float` literals so the call matches the signature.
585
+ - **`Domain` enum usage**: iteration and membership checks against the
586
+ `Domain` enum now go through `Domain.__members__.values()` / explicit
587
+ member references, matching the pattern established in v1.1.2 for
588
+ CodeQL compatibility.
589
+ - **Attention tensor rank**: reshape/transpose calls in
590
+ `examples/nlp_attention_demo.py` and `examples/nlp_mini_gpt_demo.py`
591
+ annotated to reflect the actual tensor rank rather than an
592
+ over-narrow `Any`/scalar guess.
593
+ - **Invariant list widening**: a few demo helper functions that
594
+ return heterogeneous sequences now declare `list[object]` (or the
595
+ specific union) instead of an impossible precise element type.
596
+ - **`Protocol` signature alignment**: a duck-typed callback protocol
597
+ in `scripts/publish.py` had a signature that diverged from its
598
+ concrete implementations; the protocol and call sites now agree.
599
+
600
+ ### Changed
601
+
602
+ - **Version bump `1.1.2` → `1.1.3`** in `pyproject.toml` and
603
+ `src/cds/_version.py`.
604
+
605
+ ## [v1.1.2] - 2026-06-19
606
+
607
+ ### Patch — security hardening & CodeQL closure
608
+
609
+ A patch release: no API changes, no behavior changes. Closes the remaining
610
+ CodeQL code-scanning alerts with a fix (not a workaround),
611
+ tightens `main` branch protection, and improves the discoverability of the
612
+ vulnerability-reporting flow. Brings the repo to **0 open** code-scanning
613
+ alerts (22/22 closed: 20 fixed by code, 2 dismissed as documented false
614
+ positives).
615
+
616
+ ### Security
617
+
618
+ - **CodeQL `py/non-iterable-in-for-loop`: fix.** Enum iteration
619
+ in `examples/core_demo.py` and `tests/test_hypothesis.py` now uses
620
+ `Domain.__members__.values()` instead of `for x in Domain:`. This is the
621
+ Enum API's standard member-collection view: functionally identical (same
622
+ members, same insertion order, all 1164 tests pass) but the return type
623
+ is an explicitly iterable mapping view that CodeQL's type resolver can
624
+ follow. Previous attempts (idiomatic iteration, direct import from the
625
+ defining module) did not satisfy the analyzer; this does, with no
626
+ camouflage (`list()` wrapping) and no behavior change.
627
+ - **`main` branch protection strengthened.** Added `required_status_checks`
628
+ for `CI` and `CodeQL`, a PR can no longer merge into `main` while those
629
+ checks are red. `enforce_admins` is left disabled so the maintainer
630
+ retains a direct-push path; everything else (linear history, conversation
631
+ resolution, no force-pushes, no deletions) is unchanged.
632
+ - **Security-reporting guidance.** The README now links to `SECURITY.md`
633
+ and the private-advisory flow; the bug-report issue template warns against
634
+ opening public issues for vulnerabilities and redirects to private
635
+ advisories.
636
+
637
+ ### Changed
638
+
639
+ - **`CITATION.cff` version refresh.** Two stale `1.1.0` references (root and
640
+ `preferred-citation` blocks) bumped to `1.1.2`. This was missed in v1.1.1.
641
+
642
+ ## [v1.1.1] - 2026-06-19
643
+
644
+ ### Patch — supply-chain & CI hardening
645
+
646
+ A patch release: no API changes, no behavior changes. Strengthens release
647
+ integrity and CI correctness so downstream consumers and contributors get
648
+ verifiable, low-churn workflows.
649
+
650
+ ### Security
651
+
652
+ - **CodeQL static analysis** (`codeql.yml`): runs `security-and-quality`
653
+ query pack on every push/PR into `main` plus a weekly schedule; findings
654
+ surface as code-scanning alerts under the Security tab. Complements
655
+ `attest.yml` (which signs release artifacts with build provenance) and
656
+ `dependabot.yml` (dependency CVEs).
657
+ - **README security badge**: live CodeQL status added next to the CI badge.
658
+
659
+ ### Changed
660
+
661
+ - **`changelog.yml` made idempotent**: all dispatches now target a single
662
+ fixed branch (`chore/changelog-regen`); `peter-evans/create-pull-request`
663
+ updates the existing open PR instead of opening a duplicate per tag.
664
+ Previously up to 6 stale changelog PRs accumulated; now only one is ever
665
+ open. Also bumped the action `v6 → v7` and added a `concurrency` group to
666
+ serialize simultaneous dispatches.
667
+ - **`benchmarks.yml` respects branch protection**: switched from a direct
668
+ bot push (rejected on protected `main`) to opening a PR via
669
+ `peter-evans/create-pull-request@v7`, so regenerated artifacts merge
670
+ through the normal review flow without breaking protection rules.
671
+
672
+ ### Removed
673
+
674
+ - 6 stale auto-generated changelog PRs (#10, #19, #20, #21, #22, #23) and
675
+ their per-tag branches, all superseded by the hand-curated CHANGELOG on
676
+ `main`.
677
+
678
+ ## [v1.1.0] - 2026-06-19
679
+
680
+ ### Minor — two new modules (symbolic math + knowledge organization)
681
+
682
+ A backward-compatible feature release. Adds two new public subpackages
683
+ (`cds.modeling`, `cds.knowledge`) without changing any existing API. The
684
+ platform now spans **17 modules**, **1164 tests**, and **99.59%** coverage.
685
+
686
+ ### Added
687
+
688
+ - **`cds.modeling`**: symbolic algebra for equation development:
689
+ - An expression tree (`+`, `-`, `*`, `/`, `**`, unary `-`, variables,
690
+ numbers) built by overloading Python operators on a `Variable`/`Constant`
691
+ AST.
692
+ - Symbolic differentiation (`diff`), algebraic simplification
693
+ (`simplify`), substitution (`subs`), evaluation (`evaluate`), and
694
+ LaTeX export (`to_latex`).
695
+ - A `MathModel` for equation systems with `solve_equation` (Newton-Raphson
696
+ root finding) and `fit_parameters` (least-squares parameter fitting to
697
+ observations).
698
+ - Runnable demo (`examples/modeling_demo.py`) + tutorial.
699
+ - **`cds.knowledge`**: a knowledge-organization layer in three pure-Python,
700
+ dependency-free files:
701
+ - `graph.py`: `Concept`, `Relation` (typed directed edges), and a
702
+ `KnowledgeGraph` with undirected traversal (shortest path via BFS,
703
+ transitive closure, cycle detection), neighbors, and JSON persistence.
704
+ - `notes.py`: `Note` + `Notebook` research notebook with tag and
705
+ concept lookups, and JSON persistence.
706
+ - `retrieval.py`: `search()` producing ranked `SearchResult` hits across
707
+ both concepts and notes (matched field + normalized score).
708
+ - Runnable demo (`examples/knowledge_demo.py`) + tutorial.
709
+ - Both modules are wired into the package `__all__`, the CLI `modules`
710
+ listing, and the API reference (`docs/api.md`).
711
+
712
+ ### Maintenance
713
+
714
+ - Docs: resync README, `docs/index.md`, getting-started (EN + TR), and
715
+ CITATION.cff to v1.1.0, module count 16→17, test count 883→1164,
716
+ coverage 99.48%→99.59%. Keep `pyproject.toml` + `src/cds/_version.py`
717
+ lockstepped at 1.1.0.
718
+ - Chore(repo): ignore the `_demo_*.json` runtime artifacts the
719
+ knowledge demo writes next to its script, so a demo run no longer
720
+ dirties the working tree.
721
+
722
+ ## [v1.0.4] - 2026-06-18
723
+
724
+ ### Security & Tooling — CI hardening
725
+
726
+ A follow-up patch to v1.0.3. No behavior changes to the published package;
727
+ fully backward compatible. Adds continuous dependency-vulnerability scanning
728
+ to CI, tightens the type-check configuration, and resynchronizes docs that
729
+ had drifted after v1.0.0.
730
+
731
+ ### Maintenance
732
+
733
+ - Chore(ci): add a `pip-audit` job to the CI workflow (`tests.yml`). Runs
734
+ once on the reference cell (Linux + Python 3.12) against the PyPI Advisory
735
+ database. Currently `continue-on-error: true`, the dev/docs/test toolchain
736
+ (jupyter, mkdocs, build, twine, pillow, lxml, ...) carries transitive deps
737
+ with open CVEs unrelated to the published runtime (typer/pydantic/rich,
738
+ which audit clean). Surfacing them every run gives visibility without
739
+ red-flashing the matrix on a fresh advisory.
740
+ - Chore(types): remove the global `ignore_missing_imports = true` from
741
+ `[tool.mypy]`. CDS only depends on PEP 561 typed runtime libs (typer,
742
+ pydantic, rich), all of which resolve cleanly under strict mypy (98 files,
743
+ 0 errors). Dropping the escape hatch means a future un-stubbed dependency
744
+ surfaces a real error instead of being silently typed as `Any`.
745
+ - Chore(repo): delete a stray Windows `nul` artifact left in the working tree.
746
+ - Docs: resync README + `docs/` after v1.0.0: test count 845→878, version
747
+ strings updated, `CITATION.cff` bumped to 1.0.4. Keep `pyproject.toml` +
748
+ `src/cds/_version.py` lockstepped at 1.0.4.
749
+
750
+ ## [v1.0.3] - 2026-06-18
751
+
752
+ ### Hygiene — test-suite type correctness
753
+
754
+ A follow-up patch to v1.0.2. No behavior changes to the published package;
755
+ fully backward compatible. Brings `tests/` to the same mypy baseline as
756
+ `src/` so the full type-check (`mypy src/ tests/`) is green, and resolves
757
+ post-release lint/test/publish findings caught after v1.0.2 shipped.
758
+
759
+ ### Testing
760
+
761
+ - Test(types): clear all remaining mypy errors across `tests/` (39 files,
762
+ 0 errors). Fixes list-variance issues (`Parameter <: Tensor`), redundant
763
+ `type: ignore` comments, and intentional error-path `**` operands.
764
+ - Test(benchmarks): isolate benchmark test artifacts: `run_all()` /
765
+ `_write_json()` accept an `output_dir` parameter so `pytest` no longer
766
+ clobbers the committed `benchmarks/results.json`.
767
+
768
+ ### Maintenance
769
+
770
+ - Chore(ci): resolve post-1.0.2 lint/test/publish findings (commit 5e429ec).
771
+ - Docs: keep `pyproject.toml` + `src/cds/_version.py` lockstepped at 1.0.3.
772
+
773
+ ## [v1.0.2] - 2026-06-18
774
+
775
+ ### Hygiene — test isolation for benchmark artifacts
776
+
777
+ A follow-up patch to v1.0.1. No behavior changes to the published package;
778
+ fully backward compatible. Resolves a repo-hygiene issue where running the
779
+ benchmark test suite silently clobbered the committed
780
+ `benchmarks/results.json` artifact (and `docs/benchmarks.md`) on every
781
+ `pytest` invocation.
782
+
783
+ ### Bug Fixes
784
+
785
+ - Fix(tests): `test_run_all_generates_report` no longer writes into the
786
+ working tree. `run_all()` and `_write_json()` now accept an optional
787
+ `output_dir` parameter; the test passes its `tmp_path`, so the committed
788
+ `benchmarks/results.json` and `docs/benchmarks.md` are never modified by a
789
+ test run. Verified: object hash of `results.json` is byte-identical before
790
+ and after `pytest`.
791
+
792
+ ### Testing
793
+
794
+ - Test(benchmarks): added a regression assertion that `results.json` lands
795
+ in `tmp_path` (not `benchmarks/`) after `run_all(output_dir=...)`.
796
+
797
+ ### Features
798
+
799
+ - Feat(benchmarks): `run_all(output_dir=None)` and
800
+ `_write_json(record, output_dir=None)`, new optional parameter for
801
+ redirecting artifact output. Defaults preserve existing CLI behaviour.
802
+
803
+ ## [v1.0.1] - 2026-06-18
804
+
805
+ ### Maintenance — typed, documented, hardened
806
+
807
+ A follow-up to the v1.0 stable release focused on packaging quality and
808
+ numerical correctness guarantees. No behavior changes; fully backward
809
+ compatible.
810
+
811
+ ### Features
812
+
813
+ - Feat(packaging): declare PEP 561 type information: ship `src/cds/py.typed`
814
+ marker and force-include it in the wheel so downstream users get full
815
+ static type-checking support out of the box.
816
+ - Feat(docs): add "type checked" badge to the README.
817
+
818
+ ### Testing
819
+
820
+ - Test(invariants): add `tests/test_numerical_invariants.py`: 32
821
+ property-based numerical invariants across 8 modules (linalg, signals,
822
+ stats, quadrature, quantum, diffeq, monte carlo, probability). Fixed
823
+ seed, fully reproducible, zero new dev dependencies.
824
+
825
+ ### Documentation
826
+
827
+ - Docs(api): add docstrings to all 51 previously-undocumented public
828
+ functions identified via AST scan (3 empty-docstring gaps closed).
829
+
830
+ ### Bug Fixes
831
+
832
+ - Chore: bump version to 1.0.1.
833
+
834
+ ## [v1.0.0] - 2026-06-18
835
+
836
+ ### 1.0 — Stable release
837
+
838
+ Cognitive Discovery Platform reaches its first stable release. All five
839
+ subsystems of the v1.0 completion spec are implemented, gated, and
840
+ verified: 99.16% statement coverage (845 tests passing), zero mypy
841
+ errors, clean ruff, and a strict mkdocs build.
842
+
843
+ ### Features
844
+
845
+ - Feat(nlp): NLP visualisation module: attention heatmap, PCA projection, training curve ([7956597](7956597))
846
+ - Feat(benchmarks): emit results.json with timestamp + git SHA provenance, add CI workflow ([4e18500](4e18500))
847
+
848
+ ### Testing
849
+
850
+ - Test(coverage): close NLP edge-case gaps: tensor/ops/optim/bpe/layers/model/attention; reach 99.16% statement coverage ([6f0a487](6f0a487))
851
+ - Style(tests): ruff format cleanup: collapse over-split listcomp, expand train() signature, remove duplicate inline imports ([36f4ee4](36f4ee4))
852
+
853
+ ### Documentation
854
+
855
+ - Docs(examples): add 9 module demos + matching tutorials ([9f00fc5](9f00fc5))
856
+ - Docs(api): restructure mkdocs nav, add api.md lead-ins, fix stale test counts ([4cad8be](4cad8be))
857
+ - Docs(nlp): fix griffe warnings: split combined params in docstrings ([3aedff4](3aedff4))
858
+ - Docs(benchmarks): regenerate results.json with current SHA provenance ([69c5a88](69c5a88))
859
+
860
+ ### Bug Fixes
861
+
862
+ - Chore: bump version to 1.0.0 + Production/Stable classifier; sync _version.py
863
+
864
+ ### Other
865
+
866
+ - Promoted from `Development Status :: 4 - Beta` to `Development Status :: 5 - Production/Stable`.
867
+
868
+ ## [v0.10.0b1] - 2026-06-17
869
+
870
+
871
+ ### Features
872
+
873
+
874
+ - Feat(nlp): autograd engine + MiniGPT-from-scratch ([5e0d308](5e0d308))
875
+
876
+
877
+ ### Documentation
878
+
879
+
880
+ - Docs(changelog): regenerate for v0.9.0b8 (#17) ([2b0a7d3](2b0a7d3))
881
+
882
+
883
+ ## [v0.9.0b8] - 2026-06-17
884
+
885
+
886
+ ### Features
887
+
888
+
889
+ - Feat(nlp): add multi-head attention + transformer block ([4f38cae](4f38cae))
890
+
891
+
892
+ ### Documentation
893
+
894
+
895
+ - Docs(changelog): regenerate for v0.9.0b7 (#16) ([44ec93c](44ec93c))
896
+
897
+
898
+ ## [v0.9.0b7] - 2026-06-17
899
+
900
+
901
+ ### Bug Fixes
902
+
903
+
904
+ - Fix: catch two more stale surfaces (CITATION.cff, mkdocs api.md) ([b59b6e3](b59b6e3))
905
+
906
+
907
+ ### Documentation
908
+
909
+
910
+ - Docs(changelog): regenerate for v0.9.0b6 (#15) ([e1244ce](e1244ce))
911
+
912
+
913
+ ## [v0.9.0b6] - 2026-06-17
914
+
915
+
916
+ ### Bug Fixes
917
+
918
+
919
+ - Fix: sync test count 572 to 655 across all surfaces ([952ffe0](952ffe0))
920
+
921
+
922
+ ### Documentation
923
+
924
+
925
+ - Docs(changelog): regenerate for v0.9.0b5 (#14) ([f7a037b](f7a037b))
926
+
927
+
928
+ ## [v0.9.0b5] - 2026-06-17
929
+
930
+
931
+ ### Features
932
+
933
+
934
+ - Feat(nlp): add cds.nlp module: BPE tokenizer + sinusoidal embeddings ([045b9d1](045b9d1))
935
+
936
+
937
+ ### Other
938
+
939
+
940
+ - Build: drop hatch-vcs + setuptools_scm, switch to static versioning ([6e04d31](6e04d31))
941
+
942
+
943
+ ### Documentation
944
+
945
+
946
+ - Docs(changelog): regenerate for v0.9.0b4 (#13) ([da52ee0](da52ee0))
947
+
948
+
949
+ ## [v0.9.0b4] - 2026-06-17
950
+
951
+
952
+ ### Bug Fixes
953
+
954
+
955
+ - Fix: drop stale 'auditor' comment + sync 570 to 572 across docs and cli ([0dcaba6](0dcaba6))
956
+
957
+
958
+ ### Documentation
959
+
960
+
961
+ - Docs(changelog): regenerate for v0.9.0b4 (#11) ([b1eda78](b1eda78))
962
+
963
+
964
+ ## [v0.9.0b3] - 2026-06-17
965
+
966
+
967
+ ### Bug Fixes
968
+
969
+
970
+ - Fix(docs): include getting-started.tr.md in mkdocs nav; fix broken CONTRIBUTING link ([85316fe](85316fe))
971
+
972
+ - Fix: bump CITATION.cff top-level version to 0.9.0b2 ([80cc3b4](80cc3b4))
973
+
974
+ - Fix: bump CITATION.cff top-level version to 0.9.0b2 (was 0.8.5, missed during release) ([adee53c](adee53c))
975
+
976
+ - Fix: keep cast() in test_legendre (Python 3.10/3.11 mypy needs it, 3.12 ignores) ([bcd20fc](bcd20fc))
977
+
978
+ - Fix: resolve 34 mypy errors (matrix/fft type unions, plot float types, missing confidence arg, cli.Path) ([eea36a3](eea36a3))
979
+
980
+ - Fix: type local _legendre import as Callable[[int, float], tuple[float, float]] (cross-Python mypy fix) ([486bad5](486bad5))
981
+
982
+ - Fix: use # type: ignore[no-any-return] instead of cast() for cross-Python compat ([bd3aaa8](bd3aaa8))
983
+
984
+
985
+ ### Other
986
+
987
+
988
+ - Build: add setuptools_scm local-scheme config (no-local-version, fallback) ([82d07c9](82d07c9))
989
+
990
+ - Build: exclude hatch-vcs generated _version.py from ruff ([76760d3](76760d3))
991
+
992
+ - Build: publish.py ignores hatch-vcs regenerated _version.py in dirty check ([bea5f71](bea5f71))
993
+
994
+ - Build: setuptools_scm version_scheme=no-guess-dev; fix wheel version regex ([8ccb292](8ccb292))
995
+
996
+ - Release: v0.9.0b1 - Beta milestone, CI multi-OS, hatch-vcs, git-cliff, attestation ([3e3928f](3e3928f))
997
+
998
+ - Release: v0.9.0b2 - same code, re-tag to trigger attest workflow (checkout fix) ([c54e900](c54e900))
999
+
1000
+ - Release: v0.9.0b3 - branch protection, threat model, i18n, signed commits guide ([31983fe](31983fe))
1001
+
1002
+
1003
+ ### Documentation
1004
+
1005
+
1006
+ - Docs(changelog): regenerate for v0.9.0b1 ([44f7823](44f7823))
1007
+
1008
+ - Docs(changelog): regenerate for v0.9.0b2 ([404532c](404532c))
1009
+
1010
+ - Docs(changelog): regenerate for v0.9.0b3 (#8) ([3a8ef95](3a8ef95))
1011
+
1012
+ - Docs(changelog): regenerate for v0.9.0b3 (#9) ([c4fcb9b](c4fcb9b))
1013
+
1014
+ - Docs: add threat model, signed commits guide, Why CDS comparison, Turkish i18n; update ROADMAP ([0ba07cf](0ba07cf))
1015
+
1016
+ - Docs: update SECURITY.md supported versions (0.6.x → 0.8.x) ([b42cf5f](b42cf5f))
1017
+
1018
+
1019
+ ### Styling
1020
+
1021
+
1022
+ - Style: pre-commit auto-fix (trailing whitespace, import order, ruff format) ([9adbf5a](9adbf5a))
1023
+
1024
+ - Style: pre-commit auto-fix _version.py (add blank line before __version__) ([277b535](277b535))
1025
+
1026
+
1027
+ ### Miscellaneous Tasks
1028
+
1029
+
1030
+ - Ci: changelog PR action needs explicit base branch (checked out on tag) ([b96d322](b96d322))
1031
+
1032
+ - Ci: changelog action checks out main (not tag) to avoid detached HEAD issues ([af3cd12](af3cd12))
1033
+
1034
+ - Ci: changelog workflow needs write contents + pull-requests perms ([a319a9f](a319a9f))
1035
+
1036
+ - Ci: changelog workflow uses PR instead of direct push (branch protection compat) ([3f593cb](3f593cb))
1037
+
1038
+ - Ci: fix attest + changelog workflows (checkout step, detached HEAD push) ([d2c9d6e](d2c9d6e))
1039
+
1040
+ - Ci: quote step name with colon (YAML parse error) ([0731ca8](0731ca8))
1041
+
1042
+ - Ci: rewrite tests.yml with simple bash conditional (no GitHub conditional parse issues) ([2cc8483](2cc8483))
1043
+
1044
+ - Ci: split test step into 2 by matrix (gate vs report-only) - fix missing fi ([9e68ff0](9e68ff0))
1045
+
1046
+
1047
+ ## [v0.8.5] - 2026-06-16
1048
+
1049
+
1050
+ ### Other
1051
+
1052
+
1053
+ - Release: v0.8.5 - cds[all] extras, auto-generated API ref, docs deploy ([12b03b0](12b03b0))
1054
+
1055
+
1056
+ ## [v0.8.4] - 2026-06-16
1057
+
1058
+
1059
+ ### Other
1060
+
1061
+
1062
+ - Release: v0.8.4 - pydantic upgrade ([58ee8d9](58ee8d9))
1063
+
1064
+
1065
+ ## [v0.8.3] - 2026-06-16
1066
+
1067
+
1068
+ ### Other
1069
+
1070
+
1071
+ - Release: v0.8.3 - example guard consistency ([5017680](5017680))
1072
+
1073
+
1074
+ ## [v0.8.2] - 2026-06-16
1075
+
1076
+
1077
+ ### Other
1078
+
1079
+
1080
+ - Release: v0.8.2 - docstrings, knowledge/ removal, CHANGELOG backfill ([f22150c](f22150c))
1081
+
1082
+ - Scripts: replace publish.ps1 with pure-Python publish.py ([c7c08e2](c7c08e2))
1083
+
1084
+
1085
+ ### Miscellaneous Tasks
1086
+
1087
+
1088
+ - Ci: fix pre-commit and coverage gate for stable CI ([ca66c9f](ca66c9f))
1089
+
1090
+ - Ci: remove Docs workflow; relax coverage gate; re-enable legacy Pages ([cdcf5d0](cdcf5d0))
1091
+
1092
+
1093
+ ## [v0.8.1] - 2026-06-16
1094
+
1095
+
1096
+ ### Other
1097
+
1098
+
1099
+ - Release: v0.8.1 ([4dc49e2](4dc49e2))
1100
+
1101
+
1102
+ ### Documentation
1103
+
1104
+
1105
+ - Docs(roadmap): link open enhancement issues #2 and #3 under Longer Term ([ee6103b](ee6103b))
1106
+
1107
+ - Docs: mark v0.8.0 as released; move 3 pending perf items to v0.8.1 ([80e6afe](80e6afe))
1108
+
1109
+
1110
+ ### Testing
1111
+
1112
+
1113
+ - Test: hit 100% statement coverage; keep branch coverage off ([5c606c4](5c606c4))
1114
+
1115
+
1116
+ ### Miscellaneous Tasks
1117
+
1118
+
1119
+ - Ci(pypi): fix pypi-publish workflow ([8335cb6](8335cb6))
1120
+
1121
+ - Ci(scripts): add publish.ps1 for local PyPI releases ([57e81a4](57e81a4))
1122
+
1123
+ - Ci: harden repo to 10/10 - pre-commit, lockfiles, coverage gate ([7c3b18f](7c3b18f))
1124
+
1125
+ - Ci: remove pypi-publish workflow ([043b7f5](043b7f5))
1126
+
1127
+
1128
+ ## [v0.8.0] - 2026-06-16
1129
+
1130
+
1131
+ ### Other
1132
+
1133
+
1134
+ - Squashed: collapse 108 commits into a single cohesive history ([d4e8aee](d4e8aee))
1135
+
1136
+ - Release: v0.8.0 - Performance & Benchmarks ([83211ef](83211ef))
1137
+
1138
+
1139
+ <!-- generated by git-cliff -->