scientific-computing-system 2.2.20 → 2.2.22
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 +68 -21
- package/README.md +25 -9
- package/SECURITY.md +3 -2
- package/index.js +1 -1
- package/package.json +10 -3
package/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,51 @@ a git tag in this repository or on `origin` (checked with `git ls-remote --tags`
|
|
|
19
19
|
Any retroactive `v2.2.6` or `v2.2.7` tag should point at those commits. This note records
|
|
20
20
|
what the history supports; it does not claim that a tag exists.
|
|
21
21
|
|
|
22
|
+
## [Unreleased]
|
|
23
|
+
|
|
24
|
+
### Release policy keeps the signed source snapshot
|
|
25
|
+
|
|
26
|
+
- The `PyPI Release Policy` workflow deleted every `.tar.gz` asset from the matching GitHub Release, including the `<repository>-<tag>.tar.gz` snapshot that `sign-release.yml` attaches together with its `.sigstore` bundle. The verifier in `scripts/verify_release_integrity.py` has permitted exactly that snapshot since 2.2.18, so the removal step contradicted the policy it enforces and left the signature without its subject. Releases `v2.2.18` and `v2.2.20` carry only the `.sigstore` bundle; the snapshot is gone. The removal step now keeps the signed snapshot and deletes only wheels and other tarballs.
|
|
27
|
+
|
|
28
|
+
### Release verifier waits longer for PyPI propagation
|
|
29
|
+
|
|
30
|
+
- `scripts/verify_release_integrity.py` now allows five minutes (60 attempts at a 5-second pause) for the PyPI JSON API to expose a freshly uploaded release, up from one minute. Release run 40231188282 (v2.2.20) failed on the old budget while the artifacts were already live, and a rerun verified the same release; the release job's 30-minute timeout leaves room for the wider wait.
|
|
31
|
+
- That five minutes is a wall-clock deadline as well as a sleep total: each request may take up to 30 seconds, so the retry loop stops once the deadline passes instead of letting sixty slow requests outlast the release job.
|
|
32
|
+
- Each attempt line is flushed as it is written. In that failed run the twelve attempts shared one buffered timestamp, which hid the retry spacing from the log; flushed writes make a future failure diagnosable directly.
|
|
33
|
+
|
|
34
|
+
### Determinism matrix covers figure artifacts
|
|
35
|
+
|
|
36
|
+
- The determinism workload now writes `series.pdf` and `series.svg` through `cds.plot.charts.save_figure` whenever `DETERMINISM_ARTIFACT_DIR` is set, so the matrix records and hashes the figure exports on every seed, thread count, locale, timezone and OS variant instead of only `payload.json`. The workload fails when any artifact is empty.
|
|
37
|
+
- The determinism matrix job installs the `plot` extra, because the workload now renders figures. PDFs compare byte-for-byte; SVG line endings are normalized by the engine, so the Windows CRLF copy matches the POSIX LF copy.
|
|
38
|
+
|
|
39
|
+
### Determinism matrix covers the ML models
|
|
40
|
+
|
|
41
|
+
- The determinism workload now fits `cds.ml.clustering.KMeans` and `cds.ml.ensemble.RandomForestClassifier` on integer-grid data with fixed seeds and records cluster labels, centroids, inertia, iteration count and forest predictions on every seed, thread, locale, timezone and OS variant. Both models are documented as reproducible for a fixed seed, but no matrix run executed the ML suite, so a seeding or tie-breaking regression would have passed every gate.
|
|
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
|
+
- The workload fails when the clustering leaves a cluster empty or the forest predicts a single label, which keeps the sampled payload meaningful.
|
|
44
|
+
|
|
45
|
+
## [v2.2.22] - 2026-11-07
|
|
46
|
+
|
|
47
|
+
### Adaptive Simpson returns its error estimate
|
|
48
|
+
|
|
49
|
+
- `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).
|
|
50
|
+
- 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.
|
|
51
|
+
- 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`).
|
|
52
|
+
|
|
53
|
+
## [v2.2.21] - 2026-10-29
|
|
54
|
+
|
|
55
|
+
### Python 3.10 support removed
|
|
56
|
+
|
|
57
|
+
- `requires-python` is now `>=3.11`; the 3.10 classifier, the CI matrix entry, the ruff `target-version` and the mypy `python_version` all move together, so the three settings can no longer describe different support floors. CDS code and tests keep working unchanged on 3.11 through 3.13.
|
|
58
|
+
- The `tomli` fallbacks in `scripts/check_version_lockstep.py` and `scripts/verify_release_integrity.py` are gone: `tomllib` is stdlib on every supported interpreter, and CI no longer installs `tomli` for the suite.
|
|
59
|
+
- Documentation states the new floor: the README badge, `docs/getting-started.md`, `paper.md`, and the npm launcher's "no usable Python interpreter" message.
|
|
60
|
+
|
|
61
|
+
### numpy dev cap removed (issue #62)
|
|
62
|
+
|
|
63
|
+
- The `[dev]` extra no longer pins `numpy<2.5`. The cap existed because the numpy 2.5 stub (`numpy/__init__.pyi`) uses PEP 695 `type` aliases, which mypy releases before 2.4.1 reject whenever `python_version` is below 3.12. The mypy floor is now `>=2.4.1`, the first release verified to parse those aliases at the project's 3.11 target, so the uncapped stub type-checks.
|
|
64
|
+
- `tests/test_type_check_toolchain_contract.py` replaces the cap guard: it requires the mypy and ruff targets to match `requires-python`, rejects any numpy upper bound in the extras, and rejects a mypy floor below 2.4.1. The previous test would have accepted the cap being silently reintroduced.
|
|
65
|
+
- Bump synchronized package metadata to 2.2.21 as required by the version-discipline gate for the `[project]` change.
|
|
66
|
+
|
|
22
67
|
## [v2.2.20] - 2026-10-25
|
|
23
68
|
|
|
24
69
|
### Deterministic offline hypothesis ids
|
|
@@ -159,16 +204,16 @@ what the history supports; it does not claim that a tag exists.
|
|
|
159
204
|
paths, and pinned every doc claim to a test so it cannot silently
|
|
160
205
|
drift again. Regression tests fail without the corresponding fix.
|
|
161
206
|
|
|
162
|
-
##
|
|
207
|
+
## Post-release notes on v2.2.2 - 2026-10-05
|
|
163
208
|
|
|
164
209
|
### Distribution status of 2.2.2 — read this before assuming npm has it
|
|
165
210
|
|
|
166
|
-
The two registries
|
|
211
|
+
The two registries were **not** in the same state for 2.2.2.
|
|
167
212
|
|
|
168
213
|
| Registry | `2.2.2` | Build attestation |
|
|
169
214
|
|---|---|---|
|
|
170
215
|
| **PyPI** `scientific-computing-system` | **published** | **PEP 740 provenance present** |
|
|
171
|
-
| **npm** `scientific-computing-system` |
|
|
216
|
+
| **npm** `scientific-computing-system` | published later, without an attestation | none — the attestations endpoint returns 404 for `2.2.2` |
|
|
172
217
|
|
|
173
218
|
PyPI 2.2.2 is live and carries a PEP 740 attestation. Verified against the live
|
|
174
219
|
registries on 2026-10-05: the PEP 740 per-file provenance endpoint returns
|
|
@@ -181,18 +226,21 @@ curl -sS -o /dev/null -w '%{http_code}\n' \
|
|
|
181
226
|
https://pypi.org/integrity/scientific-computing-system/2.2.2/scientific_computing_system-2.2.2.tar.gz/provenance # 200
|
|
182
227
|
```
|
|
183
228
|
|
|
184
|
-
npm 2.2.2
|
|
185
|
-
|
|
186
|
-
|
|
229
|
+
At the time of this note npm `2.2.2` did not exist; it was published afterwards,
|
|
230
|
+
without an attestation, because npm attestations begin at `2.2.3`. The npm line
|
|
231
|
+
today runs `2.2.0` through `2.2.6`, `2.2.12` through `2.2.15` and `2.2.17`
|
|
232
|
+
through `2.2.21`; `1.0.0` through `2.2.2` carry no attestation and cannot be
|
|
233
|
+
backfilled.
|
|
187
234
|
|
|
188
|
-
###
|
|
235
|
+
### Resolved: npm trusted publisher registration
|
|
189
236
|
|
|
190
|
-
npmjs.com
|
|
191
|
-
`scientific-computing-system
|
|
192
|
-
|
|
237
|
+
npmjs.com had **no trusted publisher** configured for the package
|
|
238
|
+
`scientific-computing-system`, so the OIDC path could not complete a publish and
|
|
239
|
+
npm served no provenance for this package. The publisher was registered before
|
|
240
|
+
`2.2.3`, and every npm release from `2.2.3` onward carries an attestation.
|
|
193
241
|
|
|
194
|
-
The
|
|
195
|
-
**Settings → Trusted Publisher → GitHub Actions**:
|
|
242
|
+
The registration that was applied — on npmjs.com → package
|
|
243
|
+
`scientific-computing-system` → **Settings → Trusted Publisher → GitHub Actions**:
|
|
196
244
|
|
|
197
245
|
| Field | Value |
|
|
198
246
|
|---|---|
|
|
@@ -200,15 +248,14 @@ The coordinates to enter on npmjs.com → package `scientific-computing-system`
|
|
|
200
248
|
| Package | `scientific-computing-system` |
|
|
201
249
|
| Workflow filename | `npm-publish.yml` |
|
|
202
250
|
| Environment name | `npm` |
|
|
203
|
-
| Allowed actions | **`npm publish`** — must be enabled, see the
|
|
251
|
+
| Allowed actions | **`npm publish`** — must be enabled, see the note below |
|
|
204
252
|
|
|
205
|
-
**The allowed-actions field
|
|
206
|
-
`npm stage publish` by default on newly created configurations and
|
|
253
|
+
**The allowed-actions field was not optional in practice.** npm's UI granted
|
|
254
|
+
`npm stage publish` by default on newly created configurations and made direct
|
|
207
255
|
`npm publish` **opt-in**. This repository's workflow calls `npm publish` directly,
|
|
208
|
-
so
|
|
209
|
-
publish failing — with a permission error this time rather than a 404.
|
|
256
|
+
so the registration enables `npm publish` explicitly.
|
|
210
257
|
|
|
211
|
-
The same registration from the CLI
|
|
258
|
+
The same registration, applied from the CLI:
|
|
212
259
|
|
|
213
260
|
```
|
|
214
261
|
npm trust github --file npm-publish.yml \
|
|
@@ -223,9 +270,9 @@ has **no Actions variables at all** (none at repository or organization scope),
|
|
|
223
270
|
`npm_publish_mode` appears nowhere in the tree. Nothing needs to be switched back:
|
|
224
271
|
OIDC is already the default, and token mode remains an explicit per-run opt-in.
|
|
225
272
|
|
|
226
|
-
`NPM_TOKEN`
|
|
227
|
-
|
|
228
|
-
|
|
273
|
+
`NPM_TOKEN` still exists as a repository secret. It is only read by a run that
|
|
274
|
+
explicitly opts into token mode, so it is an unused fallback now that OIDC
|
|
275
|
+
publishes succeed, and it can be deleted whenever convenient.
|
|
229
276
|
|
|
230
277
|
### Fixed: a 404 from npm no longer reads as "already published"
|
|
231
278
|
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
<a href="https://pypi.org/project/scientific-computing-system/"><img src="https://img.shields.io/pypi/v/scientific-computing-system.svg" alt="PyPI version"></a>
|
|
11
11
|
<a href="https://www.npmjs.com/package/scientific-computing-system"><img src="https://img.shields.io/npm/v/scientific-computing-system.svg" alt="npm version"></a>
|
|
12
|
-
<a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.
|
|
12
|
+
<a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11+-green.svg" alt="Python 3.11+"></a>
|
|
13
13
|
<a href="https://codecov.io/gh/Furox-Art/scientific-computing-system"><img src="https://codecov.io/gh/Furox-Art/scientific-computing-system/branch/main/graph/badge.svg" alt="codecov"></a>
|
|
14
14
|
<a href="https://github.com/Furox-Art/scientific-computing-system/actions/workflows/tests.yml"><img src="https://github.com/Furox-Art/scientific-computing-system/actions/workflows/tests.yml/badge.svg" alt="CI"></a>
|
|
15
15
|
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT"></a>
|
|
@@ -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-
|
|
53
|
-
but
|
|
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
|
|
59
|
-
endpoint, so "every release since attestations were
|
|
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
|
|
67
|
-
versions
|
|
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.
|
|
@@ -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.
|
|
187
|
+
System version 2.2.22
|
|
187
188
|
$ cds constants # physical constants table
|
|
188
189
|
```
|
|
189
190
|
|
|
@@ -225,6 +226,21 @@ HDF5/NetCDF, plotting and scientific backends together.
|
|
|
225
226
|
Issues and PRs welcome; see [CONTRIBUTING.md](CONTRIBUTING.md) and
|
|
226
227
|
[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
|
|
227
228
|
|
|
229
|
+
## Related projects
|
|
230
|
+
|
|
231
|
+
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.
|
|
232
|
+
|
|
233
|
+
- [scientific-computing-system-2.0](https://github.com/Furox-Art/scientific-computing-system-2.0) — NumPy/SciPy/pandas build with replayable fit records.
|
|
234
|
+
- [scientific-toolkit](https://github.com/Furox-Art/scientific-toolkit) — MCP gateway over nine research tools.
|
|
235
|
+
- [axiomize](https://github.com/Furox-Art/axiomize) — unit-checked modeling engine with SBML, CellML and Modelica export.
|
|
236
|
+
- [axiomize-quantum-skills-2.0](https://github.com/Furox-Art/axiomize-quantum-skills-2.0) — modeling engine plus quantum-inspired reasoning bundle.
|
|
237
|
+
- [quantum-reasoning-skill](https://github.com/Furox-Art/quantum-reasoning-skill) — agent skill that keeps competing hypotheses alive.
|
|
238
|
+
- [plan-auditor](https://github.com/Furox-Art/plan-auditor) — evidence-based completion gate for coding agents.
|
|
239
|
+
- [nomosguard](https://github.com/Furox-Art/nomosguard) — deterministic security decision layer with a hash-chained ledger.
|
|
240
|
+
- [eq-layer](https://github.com/Furox-Art/eq-layer) — interaction-policy layer that decides how an agent speaks.
|
|
241
|
+
- [literature-evidence-mcp](https://github.com/Furox-Art/literature-evidence-mcp) — literature MCP server with a hash-chained evidence ledger.
|
|
242
|
+
- [repocraft](https://github.com/Furox-Art/repocraft) — byte-deterministic project scaffolding.
|
|
243
|
+
|
|
228
244
|
## License
|
|
229
245
|
|
|
230
246
|
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-
|
|
133
|
-
2.2.14, 2.2.15 and 2.2.17
|
|
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/index.js
CHANGED
|
@@ -76,7 +76,7 @@ function runSCS(args) {
|
|
|
76
76
|
process.stderr.write(
|
|
77
77
|
'scientific-computing-system: no usable Python interpreter found.\n' +
|
|
78
78
|
'Tried: ' + PYTHON_CANDIDATES.join(', ') + '\n' +
|
|
79
|
-
'Install Python 3.
|
|
79
|
+
'Install Python 3.11 or newer, or invoke the CLI directly with ' +
|
|
80
80
|
'`python -m cds` after `pip install scientific-computing-system`.\n'
|
|
81
81
|
);
|
|
82
82
|
return 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scientific-computing-system",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.22",
|
|
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
|
-
"
|
|
26
|
-
"
|
|
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
|
],
|