scientific-computing-system 2.2.21 → 2.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -42,6 +42,40 @@ what the history supports; it does not claim that a tag exists.
42
42
  - Centroids are rounded to 9 decimals and inertia to 6 before hashing, so compiler-level float noise cannot fail the cross-OS gate while a change in cluster assignments or split decisions still does.
43
43
  - The workload fails when the clustering leaves a cluster empty or the forest predicts a single label, which keeps the sampled payload meaningful.
44
44
 
45
+ ## [v2.2.23] - 2026-11-19
46
+
47
+ ### Numerical kernels
48
+
49
+ - `math_utils.svd` now runs Hestenes' one-sided Jacobi method on the columns of `A` itself instead of diagonalizing the Gram matrix `AᵀA`. The condition number is no longer squared, so small singular values keep relative accuracy: closed-form oracles pin a ~1e-12 singular value to machine relative error where the Gram approach lost it under ~1e-8 absolute noise. The `svd` / `rank` / `condition_number` API is unchanged; the docstrings now state the condition-number limit (~1/eps) explicitly.
50
+ - `diffeq.rk45_system` adds the adaptive Dormand-Prince integrator for ODE systems: the same embedded 4th/5th-order pair as the scalar `rk45`, with a per-component scaled RMS error norm, step rejection/growth control, backward integration and endpoint snap. It returns the new `ODESystemSolution` dataclass. The scalar `rk45` and fixed-step `solve_system` are unchanged; both RK45 variants share one tableau.
51
+ - `diffeq.rk45_system` no longer raises `OverflowError` when a component carries zero tolerance (`atol=rtol=0`) on a zero state: the embedded pair's combinations are summed with `math.fsum`, whose correct rounding makes `y5 - y4` cancel exactly on every supported Python version (3.11's plain `sum()` left ulp-level noise that the `NEAR_MIN_FLOAT` fallback scale amplified past the float range), and the scaled error is squared by multiplication, which saturates to a rejected step instead of raising out of the solver. The fail-closed contract is unchanged: a representable error estimate under zero tolerance rejects the step, while an estimate that rounds to zero still integrates.
52
+ - `math_utils.determinant` classifies "nearly singular" columns with a scale-relative threshold per column (`NEAR_ZERO` × the column's original largest entry) instead of inheriting LU's global-scale cutoff. Well-conditioned mixed-scale matrices such as `diag(1e-20, 1e20)` now return their true determinant (1) instead of 0; the classification rule and its accuracy limits are documented.
53
+
54
+ ### Statistics
55
+
56
+ - `stats.kpss_statistic` no longer labels its N(0,1) upper-tail heuristic as a p-value: `StationarityResult.p_value` is renamed to `normal_tail_probability`, because the KPSS asymptotic null distribution is non-standard and the old field was not a valid p-value. The old name survives as a deprecated read/write alias and constructor keyword that emit `DeprecationWarning`; `is_stationary` still applies the published 5% critical value (0.463).
57
+ - `stats.hypothesis_tests.__all__` no longer advertises the private Numerical-Recipes helpers (`_betacf`, `_gser`, `_EPS`, ...). They remain directly importable for backward compatibility; the star-import surface is now the 15 public statistical names.
58
+
59
+ ### Documentation and release metadata
60
+
61
+ - `src/cds/_version.py`'s `__version_tuple__` is back in lockstep with `__version__`, and `scripts/check_version_lockstep.py` now audits the tuple textually and at runtime (7 locked surfaces).
62
+ - README and CONTRIBUTING document the environment that actually passes the suite: `.[test,dev,docs,pandas,plot,property,io]` plus `hatchling==1.32.4` — the zero-skip gate in `tests/conftest.py` counts every skipped test as a failure. Verified by running the documented install and the full suite.
63
+ - README example count corrected to 35 (32 `.py`, 3 `.ipynb`) and pinned to `examples/` by a new surface test; export-count pins updated to 507 names (343 functions, 164 classes).
64
+ - Benchmark artifact headers now describe the data: "Approaching C-Speed", "Hardware Saturation" and "Algorithmic Intelligence" replaced with descriptive labels, the bare `CPU Cores Saturated` cpu_count row replaced by the sampling-mode row the generator actually emits, and the quantum speedup labelled as an extrapolation derived once from the displayed timings (53.3x in both the table and the conclusion). The `docs/benchmarks.md` generated block is re-rendered verbatim from `benchmarks/results.json`, a new gate compares them row for row, and regeneration now splices between the GENERATED markers instead of overwriting the hand-written analysis.
65
+ - `docs/ml_reference.md` consistently names scikit-learn 1.9.0 (the version the frozen reference constants were computed with); a new test pins doc/script agreement.
66
+
67
+ ### Dependency locks
68
+
69
+ - `requirements-dev.lock` bumps `soupsieve` 2.9.2 → 4.1.2 (CVE-2026-126190, CVE-2026-126191, CVE-2026-126192, CVE-2026-126193), `tornado` 6.6 → 6.6.1 (CVE-2026-126347) and `mistune` 3.3.3 → 3.3.4 (CVE-2026-97698, CVE-2026-97699) so the lock-file audit gate (`pip-audit -r requirements-dev.lock --strict`) passes again. The runtime dependency set stays zero: `requirements.lock` remains comment-only.
70
+
71
+ ## [v2.2.22] - 2026-11-07
72
+
73
+ ### Adaptive Simpson returns its error estimate
74
+
75
+ - `cds.numerical_integration.adaptive_simpson` reported `error_estimate=nan` for every integrand, because the recursive routine propagated only the integral value. The accepted subintervals' 1/15-scaled Lyness estimates are now accumulated and returned, so `QuadratureResult.error_estimate` carries a finite truncation-error estimate that shrinks with `tol` instead of NaN. The integral values themselves are unchanged: for `sin` over `[0, pi]` it is 3.4908e-07 at `tol=1e-6` and 2.9602e-13 at `tol=1e-12`, and 0.0 where Simpson is exact on the accepted leaves (`x**2` over `[0, 1]`, `|x-0.5|` once the kink is isolated).
76
+ - The `Raises` section claimed a `RuntimeError` when `max_depth` is exhausted. The code never raised it: exhaustion stops the refinement and returns the current approximation. The docstring now says so, and names NaN production as the actual `RuntimeError` condition — a divergent or otherwise undefined integrand.
77
+ - Synchronized package metadata to 2.2.22 as required by the version-discipline gate for a `src/cds/` change (`pyproject.toml`, `src/cds/_version.py`, `CITATION.cff`, `package.json`, `codemeta.json`, `SKILL.md`).
78
+
45
79
  ## [v2.2.21] - 2026-10-29
46
80
 
47
81
  ### Python 3.10 support removed
@@ -196,16 +230,16 @@ what the history supports; it does not claim that a tag exists.
196
230
  paths, and pinned every doc claim to a test so it cannot silently
197
231
  drift again. Regression tests fail without the corresponding fix.
198
232
 
199
- ## [Unreleased]
233
+ ## Post-release notes on v2.2.2 - 2026-10-05
200
234
 
201
235
  ### Distribution status of 2.2.2 — read this before assuming npm has it
202
236
 
203
- The two registries are **not** in the same state for 2.2.2.
237
+ The two registries were **not** in the same state for 2.2.2.
204
238
 
205
239
  | Registry | `2.2.2` | Build attestation |
206
240
  |---|---|---|
207
241
  | **PyPI** `scientific-computing-system` | **published** | **PEP 740 provenance present** |
208
- | **npm** `scientific-computing-system` | **NOT published** | none — the version does not exist on npm |
242
+ | **npm** `scientific-computing-system` | published later, without an attestation | none — the attestations endpoint returns 404 for `2.2.2` |
209
243
 
210
244
  PyPI 2.2.2 is live and carries a PEP 740 attestation. Verified against the live
211
245
  registries on 2026-10-05: the PEP 740 per-file provenance endpoint returns
@@ -218,18 +252,21 @@ curl -sS -o /dev/null -w '%{http_code}\n' \
218
252
  https://pypi.org/integrity/scientific-computing-system/2.2.2/scientific_computing_system-2.2.2.tar.gz/provenance # 200
219
253
  ```
220
254
 
221
- npm 2.2.2 does not exist. The published npm versions remain `1.0.0`, `2.2.0` and
222
- `2.2.1`. Nothing about the npm launcher is broken — the publish is blocked on a
223
- one-time npmjs.com registration, described next.
255
+ At the time of this note npm `2.2.2` did not exist; it was published afterwards,
256
+ without an attestation, because npm attestations begin at `2.2.3`. The npm line
257
+ today runs `2.2.0` through `2.2.6`, `2.2.12` through `2.2.15` and `2.2.17`
258
+ through `2.2.21`; `1.0.0` through `2.2.2` carry no attestation and cannot be
259
+ backfilled.
224
260
 
225
- ### Pending: register the npm trusted publisher (one-time, maintainer, in a browser)
261
+ ### Resolved: npm trusted publisher registration
226
262
 
227
- npmjs.com has **no trusted publisher** configured for the package
228
- `scientific-computing-system`. Until one exists, the OIDC path cannot complete a
229
- publish, and npm publishes no provenance for this package.
263
+ npmjs.com had **no trusted publisher** configured for the package
264
+ `scientific-computing-system`, so the OIDC path could not complete a publish and
265
+ npm served no provenance for this package. The publisher was registered before
266
+ `2.2.3`, and every npm release from `2.2.3` onward carries an attestation.
230
267
 
231
- The coordinates to enter on npmjs.com → package `scientific-computing-system` →
232
- **Settings → Trusted Publisher → GitHub Actions**:
268
+ The registration that was applied — on npmjs.com → package
269
+ `scientific-computing-system` → **Settings → Trusted Publisher → GitHub Actions**:
233
270
 
234
271
  | Field | Value |
235
272
  |---|---|
@@ -237,15 +274,14 @@ The coordinates to enter on npmjs.com → package `scientific-computing-system`
237
274
  | Package | `scientific-computing-system` |
238
275
  | Workflow filename | `npm-publish.yml` |
239
276
  | Environment name | `npm` |
240
- | Allowed actions | **`npm publish`** — must be enabled, see the warning below |
277
+ | Allowed actions | **`npm publish`** — must be enabled, see the note below |
241
278
 
242
- **The allowed-actions field is not optional in practice.** npm's current UI grants
243
- `npm stage publish` by default on newly created configurations and makes direct
279
+ **The allowed-actions field was not optional in practice.** npm's UI granted
280
+ `npm stage publish` by default on newly created configurations and made direct
244
281
  `npm publish` **opt-in**. This repository's workflow calls `npm publish` directly,
245
- so registering the publisher *without* also allowing `npm publish` will leave the
246
- publish failing — with a permission error this time rather than a 404.
282
+ so the registration enables `npm publish` explicitly.
247
283
 
248
- The same registration from the CLI, using the maintainer's own npm login and 2FA:
284
+ The same registration, applied from the CLI:
249
285
 
250
286
  ```
251
287
  npm trust github --file npm-publish.yml \
@@ -260,9 +296,9 @@ has **no Actions variables at all** (none at repository or organization scope),
260
296
  `npm_publish_mode` appears nowhere in the tree. Nothing needs to be switched back:
261
297
  OIDC is already the default, and token mode remains an explicit per-run opt-in.
262
298
 
263
- `NPM_TOKEN` does still exist as a repository secret. It is what token mode would
264
- use, and it should be deleted once the trusted publisher is registered and the
265
- first OIDC publish has succeeded.
299
+ `NPM_TOKEN` still exists as a repository secret. It is only read by a run that
300
+ explicitly opts into token mode, so it is an unused fallback now that OIDC
301
+ publishes succeed, and it can be deleted whenever convenient.
266
302
 
267
303
  ### Fixed: a 404 from npm no longer reads as "already published"
268
304
 
package/README.md CHANGED
@@ -49,22 +49,23 @@ The import name is **`cds`** (the distribution is `scientific-computing-system`)
49
49
  | **PyPI** (the library) | `pip install scientific-computing-system` | The actual Python package. Zero runtime dependencies. This is what you want. |
50
50
  | **npm** (a launcher shim) | `npm i -g scientific-computing-system` | A thin Node wrapper that runs `python -m cds`. It ships no Python and needs the Python distribution installed so that `python -m cds` resolves. |
51
51
 
52
- At the time of writing (2026-10-25), both registries' latest versions are 2.2.17,
53
- but they are not published in lockstep and are **not** equally verifiable:
52
+ At the time of writing (2026-10-30), both registries' latest version is 2.2.21,
53
+ but their 2.2.x histories differ and the two channels are **not** equally
54
+ verifiable:
54
55
 
55
56
  - **PyPI** — carries a **PEP 740 provenance attestation** (Sigstore-signed,
56
57
  binding the file digest to the publishing workflow). Verified on 2.2.3,
57
58
  2.2.4, 2.2.5, 2.2.6, 2.2.8, 2.2.11, 2.2.12, 2.2.13, 2.2.14, 2.2.15 and
58
- 2.2.17. The 2.2.7 wheel and sdist return 404 from the per-file provenance
59
- endpoint, so "every release since attestations were enabled" would be false;
60
- 2.2.16 was never published.
59
+ 2.2.17 through 2.2.21. The 2.2.7 wheel and sdist return 404 from the
60
+ per-file provenance endpoint, so "every release since attestations were
61
+ enabled" would be false; 2.2.16 was never published.
61
62
  - **npm** — carries a **Sigstore attestation as of 2.2.3**, minted by npm's
62
63
  OIDC trusted publisher (the registry serves both an npm publish attestation
63
64
  and a SLSA provenance v1 bundle for that tarball). 1.0.0 through 2.2.2
64
65
  predate the publisher registration and have none, so pin 2.2.3 or newer. npm
65
66
  has no 2.2.7, 2.2.8, 2.2.11 or 2.2.16 at all: its 2.2.x line is 2.2.0
66
- through 2.2.6, 2.2.12 through 2.2.15, and 2.2.17, which is how the latest
67
- versions can match while the histories do not. npm also exposes
67
+ through 2.2.6, 2.2.12 through 2.2.15, and 2.2.17 through 2.2.21, so the
68
+ latest versions match while the histories do not. npm also exposes
68
69
  `dist.integrity` (sha512), which is a content pin, not proof of origin, and
69
70
  `dist.signatures`, which is npm's registry transport signature, not build
70
71
  provenance.
@@ -78,7 +79,7 @@ and what to register to close the npm gap.
78
79
 
79
80
  `src/cds/` holds **34 subpackages plus `causal.py` and `sensitivity.py`**. That is
80
81
  35 public feature modules — the `cds` CLI entry point is the 36th subpackage —
81
- exporting **505 names** (342 functions, 163 classes), all pure standard library.
82
+ exporting **507 names** (343 functions, 164 classes), all pure standard library.
82
83
  `tests/test_readme_surface.py` derives these numbers from the package, so they
83
84
  cannot drift silently.
84
85
 
@@ -86,7 +87,7 @@ cannot drift silently.
86
87
  |---|---|---|
87
88
  | Core models | `cds.core` | Shared `Domain`, `Hypothesis`, `HypothesisStatus` types |
88
89
  | Linear algebra & calculus | `cds.math_utils`, `cds.interpolate` | SVD, QR, Cholesky, LU, power iteration, derivatives, integrals |
89
- | ODE / PDE | `cds.diffeq`, `cds.pde` | Euler, RK4, adaptive RK45, implicit stiff methods, symplectic integrators; 1-D heat & wave equations |
90
+ | ODE / PDE | `cds.diffeq`, `cds.pde` | Euler, RK4, adaptive RK45 (scalar + systems), implicit stiff methods, symplectic integrators; 1-D heat & wave equations |
90
91
  | Quadrature | `cds.numerical_integration` | Trapezoid, Simpson 1/3 & 3/8, Romberg, Gauss-Legendre, adaptive Simpson, 2-D tensor rules |
91
92
  | Optimization | `cds.optimization` | Gradient descent, Newton, Adam, Nelder-Mead, annealing, constrained search |
92
93
  | Statistics | `cds.stats`, `cds.probability`, `cds.bayes` | Descriptive stats, regression, t/chi-square/ANOVA, effect sizes, nonparametric ranks, time series, multiple testing, Bayesian conjugate updates |
@@ -117,7 +118,7 @@ The authoritative per-module list is the [API reference](https://furox-art.githu
117
118
 
118
119
  ### Runnable examples and the dashboard
119
120
 
120
- - **[`examples/`](examples/)** — 34 runnable scripts and notebooks (32 `.py`, 2
121
+ - **[`examples/`](examples/)** — 35 runnable scripts and notebooks (32 `.py`, 3
121
122
  `.ipynb`), each self-contained and dependency-free unless noted. Every tutorial
122
123
  page in the docs has a matching example.
123
124
  - **[`dashboard/app.py`](dashboard/app.py)** — a Streamlit dashboard:
@@ -183,7 +184,7 @@ The package installs a `cds` command with 13 subcommands:
183
184
 
184
185
  ```console
185
186
  $ cds --version
186
- System version 2.2.21
187
+ System version 2.2.22
187
188
  $ cds constants # physical constants table
188
189
  ```
189
190
 
@@ -213,18 +214,36 @@ NumPy or the 2.0 build instead.
213
214
  ## Contributing
214
215
 
215
216
  ```bash
216
- pip install -e ".[dev,test,docs]" # lint/type, test, and docs tooling
217
+ pip install -e ".[test,dev,docs,pandas,plot,property,io]" "hatchling==1.32.4"
217
218
  pytest # CI also enforces 100% blended coverage (statement + branch)
218
219
  mkdocs serve # docs at http://127.0.0.1:8000/
219
220
  ```
220
221
 
221
- `.[dev,test,docs]` is the smallest environment for the default test suite and the docs.
222
- Add `.[property]` for the Hypothesis invariants, or `.[all]` for the dashboard,
223
- HDF5/NetCDF, plotting and scientific backends together.
222
+ That is the same environment CI installs, and it is the smallest one that
223
+ passes the full suite: `tests/conftest.py` counts every skipped test as a
224
+ failure, so the optional backends the suite exercises (matplotlib, pandas,
225
+ h5py/netCDF4, Hypothesis) must be present, and `hatchling` is required by the
226
+ editable install and the release-toolchain tests. `.[all]` adds the dashboard
227
+ and the scientific backends on top.
224
228
 
225
229
  Issues and PRs welcome; see [CONTRIBUTING.md](CONTRIBUTING.md) and
226
230
  [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
227
231
 
232
+ ## Related projects
233
+
234
+ Part of the Furox scientific-computing portfolio: independently versioned projects that pair agent-facing interfaces (MCP servers and Agent Skills) with deterministic, fail-closed verification.
235
+
236
+ - [scientific-computing-system-2.0](https://github.com/Furox-Art/scientific-computing-system-2.0) — NumPy/SciPy/pandas build with replayable fit records.
237
+ - [scientific-toolkit](https://github.com/Furox-Art/scientific-toolkit) — MCP gateway over nine research tools.
238
+ - [axiomize](https://github.com/Furox-Art/axiomize) — unit-checked modeling engine with SBML, CellML and Modelica export.
239
+ - [axiomize-quantum-skills-2.0](https://github.com/Furox-Art/axiomize-quantum-skills-2.0) — modeling engine plus quantum-inspired reasoning bundle.
240
+ - [quantum-reasoning-skill](https://github.com/Furox-Art/quantum-reasoning-skill) — agent skill that keeps competing hypotheses alive.
241
+ - [plan-auditor](https://github.com/Furox-Art/plan-auditor) — evidence-based completion gate for coding agents.
242
+ - [nomosguard](https://github.com/Furox-Art/nomosguard) — deterministic security decision layer with a hash-chained ledger.
243
+ - [eq-layer](https://github.com/Furox-Art/eq-layer) — interaction-policy layer that decides how an agent speaks.
244
+ - [literature-evidence-mcp](https://github.com/Furox-Art/literature-evidence-mcp) — literature MCP server with a hash-chained evidence ledger.
245
+ - [repocraft](https://github.com/Furox-Art/repocraft) — byte-deterministic project scaffolding.
246
+
228
247
  ## License
229
248
 
230
249
  MIT — see [LICENSE](LICENSE).
package/SECURITY.md CHANGED
@@ -129,8 +129,9 @@ repository's publish workflows mints an attestation on each channel:
129
129
  `scientific-computing-system`, workflow `release.yml`, environment `pypi`.
130
130
  Exercised since 2.2.1. The per-file provenance endpoint returned 200 for the
131
131
  published files of 2.2.1–2.2.6, 2.2.8, 2.2.11, 2.2.12 and 2.2.13 on 2026-10-22;
132
- 2.2.7 returns 404 for both its wheel and sdist. Re-checked on 2026-10-25:
133
- 2.2.14, 2.2.15 and 2.2.17 also return 200, and 2.2.16 was never published.
132
+ 2.2.7 returns 404 for both its wheel and sdist. Re-checked on 2026-10-30:
133
+ 2.2.14, 2.2.15 and 2.2.17 through 2.2.21 all return 200 for both files, and
134
+ 2.2.16 was never published.
134
135
  - **npm** — Trusted Publisher: owner `Furox-Art`, repository
135
136
  `scientific-computing-system`, workflow `npm-publish.yml`, environment `npm`.
136
137
  Registered before 2.2.3, which is the first npm release published through it
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scientific-computing-system",
3
- "version": "2.2.21",
3
+ "version": "2.2.23",
4
4
  "description": "Scientific Computing System launcher - a thin Node wrapper that forwards to the pure-Python `cds` CLI. This npm package ships NO Python code: it requires the Python distribution to be installed (`pip install scientific-computing-system`), otherwise `scs` exits non-zero with an actionable message.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -22,10 +22,17 @@
22
22
  },
23
23
  "keywords": [
24
24
  "scientific-computing",
25
- "quantum",
26
- "machine-learning",
25
+ "python",
26
+ "numerics",
27
+ "linear-algebra",
27
28
  "statistics",
29
+ "machine-learning",
30
+ "quantum",
28
31
  "ode-solvers",
32
+ "pde",
33
+ "optimization",
34
+ "uncertainty-quantification",
35
+ "reproducibility",
29
36
  "cli",
30
37
  "launcher"
31
38
  ],