quantum-reasoning-skill 1.1.5 → 1.2.2

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/README.md CHANGED
@@ -18,19 +18,20 @@ computing** — "measurement" means letting evidence collapse a branch.
18
18
 
19
19
  ## Quick start
20
20
 
21
- `SKILL.md` is the deliverable. Three verified paths reach it:
21
+ `SKILL.md` is the deliverable. Three channels reach it, though they are not all on
22
+ the same version today (see [Channel versions](#channel-versions)):
22
23
 
23
24
  ```bash
24
- # 1. from a clone — nothing to install
25
+ # 1. from a clone — nothing to install (current packaging: 1.2.0)
25
26
  git clone https://github.com/Furox-Art/quantum-reasoning-skill.git
26
27
  cd quantum-reasoning-skill
27
28
  python docs/quickstart.py
28
29
 
29
- # 2. from PyPI — SKILL.md ships inside the wheel
30
+ # 2. from PyPI — SKILL.md ships inside the 1.2.0 wheel
30
31
  pip install quantum-reasoning-skill
31
32
  quantum-reasoning --validate
32
33
 
33
- # 3. from npm — also published
34
+ # 3. from npm — all three channels are on 1.2.0
34
35
  npm i quantum-reasoning-skill
35
36
  npx quantum-reasoning --validate
36
37
  ```
@@ -50,11 +51,34 @@ drifts.
50
51
 
51
52
  ## Distribution and the surface it exposes
52
53
 
53
- Three channels ship `SKILL.md`, all on one version: a `git clone` (everything); the PyPI
54
- wheel (`SKILL.md` + `VERSION` as package data, plus `reference/`, `benchmark/`, `docs/`,
55
- `examples/`, and a `quantum-reasoning` console script); and the npm tarball (`SKILL.md`,
56
- `VERSION`, `index.js`, `LICENSE`, `README.md`, and a `quantum-reasoning` bin). Both packaged
57
- artifacts are verified against the **built** artifact, not a checkout.
54
+ Three channels ship `SKILL.md`, and all three are on **1.2.0**: a `git clone` of
55
+ `main`, the PyPI wheel and the npm tarball.
56
+
57
+ ### Channel versions
58
+
59
+ | channel | current version |
60
+ | --- | --- |
61
+ | `git clone` of `main` | `1.2.0` |
62
+ | PyPI | `1.2.0` |
63
+ | npm | `1.2.0` |
64
+
65
+ An earlier attempt to publish npm `1.2.0` failed with an `E404` response to the
66
+ `PUT` request (publish workflow run `39672649928`), a publisher/credential
67
+ configuration issue rather than a packaging failure. That is resolved: npm
68
+ serves `1.2.0`, its `latest` tag points at it, and the tarball carries the
69
+ 1.2.0 content.
70
+
71
+ The PyPI wheel (1.2.0 packaging: `SKILL.md`, `VERSION`, `reference/`,
72
+ `benchmark/`, `docs/` and `examples/` ship under the
73
+ `quantum_reasoning_skill/` package namespace, plus a `quantum-reasoning` console
74
+ script backed by `quantum_reasoning_skill.cli`); and the npm tarball (1.2.0:
75
+ `SKILL.md`, `VERSION`, `index.js`, `package.json`, `LICENSE` and `README.md`;
76
+ the `quantum-reasoning` bin is declared in `package.json` and points at
77
+ `index.js`). Both packaged artifacts are verified against the
78
+ **built** artifact, not a checkout. Checkouts and installed distributions use
79
+ the same canonical paths: the reference controller and benchmark harness live
80
+ under `quantum_reasoning_skill/`, so the wheel and the source tree expose one
81
+ import layout.
58
82
 
59
83
  ### Supply-chain attestations
60
84
 
@@ -62,22 +86,30 @@ Only some published versions carry a build attestation, so check before relying
62
86
 
63
87
  | release | npm attestation | PyPI PEP 740 attestation |
64
88
  | --- | --- | --- |
65
- | `1.1.0` (npm) | yes — SLSA provenance and npm publish attestation, Sigstore | n/a |
66
- | `1.1.1` (npm and PyPI) | **no** | **no** |
67
-
68
- `1.1.1` was published through the long-lived-token path, which cannot produce a Sigstore
69
- attestation. Attestations are bound to a publish event and cannot be added afterwards, so
70
- this is permanent for that version. The package itself is unchanged and passes the same
71
- release contract as every other version; only the provenance *record* is missing.
72
-
73
- If you need to verify how a build was produced, use `1.1.0` on npm. To check an attestation
89
+ | `1.1.0` (npm and PyPI) | yes — SLSA provenance and npm publish attestation, Sigstore | yes — PEP 740 per-file provenance |
90
+ | `1.1.1` (npm and PyPI) | **no** — token publish path | yes — PEP 740 per-file provenance |
91
+ | `1.1.2`–`1.1.5` (npm and PyPI) | **no** — token publish path | yes — PEP 740 per-file provenance |
92
+ | `1.2.0` (npm and PyPI) | yes — SLSA provenance and npm publish attestation, Sigstore | yes — PEP 740 per-file provenance |
93
+
94
+ Version `1.1.1` was published through the long-lived-token path on npm and has no attestation.
95
+ That path cannot produce a Sigstore record. npm attestations are bound to a publish
96
+ event and cannot be added afterwards, so
97
+ this is permanent for that version. The npm package itself is unchanged and passes the same
98
+ release contract as every other version; only the npm provenance *record* is missing. The npm
99
+ releases `1.1.2`, `1.1.3`, `1.1.4` and `1.1.5` have no attestation either. Every PyPI release
100
+ from `1.1.0` through `1.2.0` carries PEP 740 per-file provenance.
101
+
102
+ If you need to verify how a build was produced, use `1.2.0`: it is attested on
103
+ both channels, as is `1.1.0` on npm and PyPI. To check an attestation
74
104
  yourself:
75
105
 
76
106
  ```bash
77
107
  curl -sS -o /dev/null -w '%{http_code}\n' \
78
- https://registry.npmjs.org/-/npm/v1/attestations/quantum-reasoning-skill@1.1.0 # 200
108
+ https://registry.npmjs.org/-/npm/v1/attestations/quantum-reasoning-skill@1.2.0 # 200
79
109
  curl -sS -o /dev/null -w '%{http_code}\n' \
80
110
  https://registry.npmjs.org/-/npm/v1/attestations/quantum-reasoning-skill@1.1.1 # 404
111
+ curl -sS -o /dev/null -w '%{http_code}\n' \
112
+ https://pypi.org/integrity/quantum-reasoning-skill/1.1.1/quantum_reasoning_skill-1.1.1-py3-none-any.whl/provenance # 200
81
113
  ```
82
114
 
83
115
  A missing attestation is not evidence of tampering. Versions are locked
@@ -90,9 +122,9 @@ CLIs plus a library:
90
122
 
91
123
  | Surface | Flags it actually accepts |
92
124
  | --- | --- |
93
- | `quantum-reasoning` — **Python** console script ([`bin/quantum-reasoning`](bin/quantum-reasoning)) | `--skill-file PATH`, `--validate`, `--json`, `--quiet`, `--help` |
125
+ | `quantum-reasoning` — **Python** console script; implementation `quantum_reasoning_skill.cli` (checkout launcher: [`bin/quantum-reasoning`](bin/quantum-reasoning)) | `--skill-file PATH`, `--validate`, `--json`, `--quiet`, `--help` |
94
126
  | `npx quantum-reasoning` — **npm** CLI ([`index.js`](index.js)) | `--validate`, `--json`, `--path`, `--help` |
95
- | `reference.branch_controller` — Python library | importable; see [Reference controller](#reference-controller) |
127
+ | `quantum_reasoning_skill.reference.branch_controller` — Python library | importable; see [Reference controller](#reference-controller) |
96
128
  | `quantum_reasoning_skill.SKILL.md`, `.VERSION` | the shipped asset, as package data |
97
129
 
98
130
  `--path` is npm-only; `--skill-file` and `--quiet` are Python-only. An unsupported flag exits
@@ -103,10 +135,10 @@ CLIs plus a library:
103
135
  [`bin/check_release_contract.py`](bin/check_release_contract.py) is the gate CI runs before
104
136
  any release. It asserts that `SKILL.md` resolves inside the installed wheel, that the
105
137
  `quantum-reasoning` entry point is installed and succeeds against the installed asset, that
106
- `reference.branch_controller` imports with a callable API, and that the version agrees
138
+ `quantum_reasoning_skill.reference.branch_controller` imports with a callable API, and that the version agrees
107
139
  everywhere.
108
140
 
109
- **Twelve public names in `reference/branch_controller.py` are frozen** — `DEFAULT_THRESHOLDS`,
141
+ **Twelve public names in `quantum_reasoning_skill/reference/branch_controller.py` are frozen** — `DEFAULT_THRESHOLDS`,
110
142
  `Branch`, `BranchMetrics`, `BranchState`, `Thresholds`, `branch_score`, `classify_branch`,
111
143
  `collapse_decision`, `diversity_ratio`, `recommended_width`, `uncertainty_from_branches`,
112
144
  `update_branch_state`. Renaming or removing any one **halts the release**. `WEIGHTS` is
@@ -140,14 +172,18 @@ must be calibrated first.
140
172
 
141
173
  ## Benchmark harness
142
174
 
143
- [`benchmark/`](benchmark/README.md) measures whether the skill helps rather than merely
144
- producing more text: `benchmark/evaluate.py` (evaluator), `benchmark/validate_submission.py`
145
- (machine-validates a reproducible bundle), `benchmark/paths.py` (path confinement that rejects
146
- `..` traversal and symlink escapes), `benchmark/cases.jsonl`, and four JSON Schemas — `case`,
175
+ [`quantum_reasoning_skill/benchmark/`](quantum_reasoning_skill/benchmark/README.md) measures whether the skill helps rather than merely
176
+ producing more text: `quantum_reasoning_skill/benchmark/evaluate.py` (evaluator),
177
+ `quantum_reasoning_skill/benchmark/validate_submission.py`
178
+ (machine-validates a reproducible bundle), `quantum_reasoning_skill/benchmark/paths.py`
179
+ (path confinement that rejects `..` traversal and symlink escapes),
180
+ `quantum_reasoning_skill/benchmark/cases.jsonl`, and four JSON Schemas — `case`,
147
181
  `result`, `metadata`, `comparison`.
148
182
 
149
183
  ```bash
150
- python benchmark/evaluate.py --cases benchmark/cases.jsonl --skill skill-results.jsonl
184
+ python quantum_reasoning_skill/benchmark/evaluate.py \
185
+ --cases quantum_reasoning_skill/benchmark/cases.jsonl \
186
+ --skill skill-results.jsonl
151
187
  ```
152
188
 
153
189
  `--cases` is optional: it defaults to the packaged seed cases. Paths are resolved against the
@@ -155,13 +191,14 @@ current working directory, so the command above runs unchanged from a fresh clon
155
191
  file does not exist the evaluator prints a typed error, names the flag, and exits 2 — it never
156
192
  substitutes placeholder rows, because a fabricated measurement is worse than a missing one.
157
193
  Inputs are confined to `--cases-dir` (default: each input's own directory), `--output` must
158
- stay inside it, and reads are bounded by `--max-bytes`. Both `python benchmark/evaluate.py`
159
- and `python -m benchmark.evaluate` work.
194
+ stay inside it, and reads are bounded by `--max-bytes`. Both
195
+ `python quantum_reasoning_skill/benchmark/evaluate.py` and
196
+ `python -m quantum_reasoning_skill.benchmark.evaluate` work.
160
197
 
161
198
  ## Tests, tooling and governance
162
199
 
163
- About **46% of the Python here is tests** — 4,044 of 8,813 lines across **16 test modules**,
164
- run with the standard library's `unittest` on Python 3.10–3.14 on Linux, Windows and macOS.
200
+ About **53% of the Python here is tests** — 6,901 of 12,967 lines across **30 test modules**,
201
+ run with the standard library's `unittest` on Python 3.10–3.14 (Linux) and 3.12 (Windows, macOS).
165
202
  They cover the controller, the benchmark harness, import hardening, path boundaries,
166
203
  dependency-lock drift and release-gate polling; the documented benchmark command run as a
167
204
  subprocess against a clean copy of the tree; the `paths` filters that decide when a release
@@ -199,13 +236,13 @@ scenarios, the multi-hypothesis branch controller achieved **100% final accuracy
199
236
  for a single-hypothesis policy that commits to its first leader (0/4 on falsification
200
237
  scenarios, 0/3 on revival scenarios; both policies scored 2/2 on the control scenarios). It
201
238
  abandoned the falsified hypothesis at the same evidence step the falsification arrived, and
202
- revived a rejected-then-supported alternative in 3/3 revival scenarios. Confidence calibration
203
- showed **no difference** (Brier score 0.033 vs 0.033), and the accuracy gain cost **109.6%
204
- more tokens** per scenario. Methodology and reproduction:
205
- [`benchmark/falsification/METHODOLOGY.md`](benchmark/falsification/METHODOLOGY.md).
239
+ revived a dormant alternative (or an explicitly reopened rejected one) in 3/3 revival
240
+ scenarios. Confidence calibration showed **no difference** (Brier score 0.033 vs 0.033), and
241
+ the accuracy gain cost **108.5% more tokens** per scenario. Methodology and reproduction:
242
+ [`quantum_reasoning_skill/benchmark/falsification/METHODOLOGY.md`](quantum_reasoning_skill/benchmark/falsification/METHODOLOGY.md).
206
243
 
207
244
  These results measure the reference decision controller on **synthetic evidence streams**, not
208
- any language model. `benchmark/cases.jsonl` holds six deterministic smoke-test cases that
245
+ any language model. `quantum_reasoning_skill/benchmark/cases.jsonl` holds six deterministic smoke-test cases that
209
246
  prove the harness runs; they are explicitly **not sufficient evidence of reasoning
210
247
  improvement**. A baseline-vs-skill **model** evaluation has not been published, so this
211
248
  project makes **no claim that it improves any language model's accuracy or costs less
@@ -231,3 +268,18 @@ benchmarked against the rows above it.
231
268
  Everything lives in [`docs/index.md`](docs/index.md) — getting started, quickstart and its
232
269
  verified output, measurement methodology, host compatibility, report forms. Release history:
233
270
  [CHANGELOG.md](CHANGELOG.md). License: [MIT](LICENSE).
271
+
272
+ ## Related projects
273
+
274
+ 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.
275
+
276
+ - [scientific-computing-system](https://github.com/Furox-Art/scientific-computing-system) — zero-dependency Python numerics with run manifests.
277
+ - [scientific-computing-system-2.0](https://github.com/Furox-Art/scientific-computing-system-2.0) — NumPy/SciPy/pandas build with replayable fit records.
278
+ - [scientific-toolkit](https://github.com/Furox-Art/scientific-toolkit) — MCP gateway over nine research tools.
279
+ - [axiomize](https://github.com/Furox-Art/axiomize) — unit-checked modeling engine with SBML, CellML and Modelica export.
280
+ - [axiomize-quantum-skills-2.0](https://github.com/Furox-Art/axiomize-quantum-skills-2.0) — modeling engine plus quantum-inspired reasoning bundle.
281
+ - [plan-auditor](https://github.com/Furox-Art/plan-auditor) — evidence-based completion gate for coding agents.
282
+ - [nomosguard](https://github.com/Furox-Art/nomosguard) — deterministic security decision layer with a hash-chained ledger.
283
+ - [eq-layer](https://github.com/Furox-Art/eq-layer) — interaction-policy layer that decides how an agent speaks.
284
+ - [literature-evidence-mcp](https://github.com/Furox-Art/literature-evidence-mcp) — literature MCP server with a hash-chained evidence ledger.
285
+ - [repocraft](https://github.com/Furox-Art/repocraft) — byte-deterministic project scaffolding.
package/SKILL.md CHANGED
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  name: quantum-reasoning
3
3
  description: Maintain multiple genuinely different candidate hypotheses or solution paths, test them against evidence and tools, suppress weak or contradictory paths, revive useful alternatives when new evidence appears, and collapse to the best-supported answer only at the end.
4
+ metadata:
5
+ version: "1.2.2"
4
6
  ---
5
7
 
6
8
  # Quantum Reasoning Skill
@@ -115,7 +117,7 @@ Do not mechanically maximize branch count. The goal is better search of the poss
115
117
 
116
118
  When the host system can track aggregate branch metadata, use explicit normalized values in `[0, 1]` for evidence, verification, independence, information gain, contradiction severity, unresolved assumptions, compute cost, shared-assumption overlap, and semantic redundancy.
117
119
 
118
- A provider-agnostic reference controller is available in [`reference/branch_controller.py`](./reference/branch_controller.py). Its defaults make the qualitative protocol testable:
120
+ A provider-agnostic reference controller is available at `quantum_reasoning_skill/reference/branch_controller.py` ([source on GitHub](https://github.com/Furox-Art/quantum-reasoning-skill/blob/main/quantum_reasoning_skill/reference/branch_controller.py)). Its defaults make the qualitative protocol testable:
119
121
 
120
122
  - independence is reduced when branches share critical assumptions or are near-duplicates
121
123
  - strong contradiction can reject a branch
@@ -132,7 +134,7 @@ Hosts that cannot expose these aggregate measurements should still follow the qu
132
134
 
133
135
  Do not claim that this skill improves reasoning merely because the protocol sounds plausible. Compare the same model and task configuration with and without the skill and measure at least accuracy, compute/token cost, latency, error recovery, contradiction resolution, and branch diversity when observable.
134
136
 
135
- The reproducible benchmark schema and evaluator live under [`benchmark/`](./benchmark/README.md).
137
+ The reproducible benchmark schema and evaluator live under `quantum_reasoning_skill/benchmark/` ([source on GitHub](https://github.com/Furox-Art/quantum-reasoning-skill/blob/main/quantum_reasoning_skill/benchmark/README.md)).
136
138
 
137
139
  ## Non-negotiable rules
138
140
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.5
1
+ 1.2.2
package/index.js CHANGED
@@ -148,6 +148,8 @@ Exit codes:
148
148
  2 SKILL.md could not be read
149
149
  `;
150
150
 
151
+ const KNOWN_FLAGS = new Set(['--json', '--validate', '--path', '--help', '-h']);
152
+
151
153
  function main(argv) {
152
154
  const args = argv.slice(2);
153
155
  const wantsJson = args.includes('--json');
@@ -159,6 +161,12 @@ function main(argv) {
159
161
  return 0;
160
162
  }
161
163
 
164
+ const unsupported = args.filter((arg) => arg.startsWith('-') && !KNOWN_FLAGS.has(arg));
165
+ if (unsupported.length > 0) {
166
+ process.stderr.write(`error: unsupported flag(s): ${unsupported.join(', ')}\n`);
167
+ return 2;
168
+ }
169
+
162
170
  let report;
163
171
  try {
164
172
  report = validateSkill(readSkillDocument());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quantum-reasoning-skill",
3
- "version": "1.1.5",
3
+ "version": "1.2.2",
4
4
  "description": "Quantum-inspired reasoning skill for exploring multiple solution paths",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -14,7 +14,7 @@
14
14
  "README.md"
15
15
  ],
16
16
  "scripts": {
17
- "test": "node index.js --validate && node -e \"const s=require('./index.js'); if(!s.loadSkill().valid){console.error('skill contract invalid');process.exit(1)}\""
17
+ "test": "node npm.test.js"
18
18
  },
19
19
  "engines": {
20
20
  "node": ">=20"
@@ -26,7 +26,11 @@
26
26
  "multi-branch",
27
27
  "agent-skills",
28
28
  "mcp",
29
- "claude-skill"
29
+ "claude-skill",
30
+ "llm",
31
+ "planning",
32
+ "tree-of-thought",
33
+ "benchmark"
30
34
  ],
31
35
  "author": "Furox-Art",
32
36
  "license": "MIT",