quantum-reasoning-skill 1.1.5 → 1.2.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.
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 — currently 1.1.5; npm 1.2.0 was never published
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`, but they are not all on one version today: a
55
+ `git clone` of `main` and the PyPI wheel are at **1.2.0**, while the npm tarball
56
+ is at **1.1.5**.
57
+
58
+ ### Channel versions
59
+
60
+ | channel | current version |
61
+ | --- | --- |
62
+ | `git clone` of `main` | `1.2.0` |
63
+ | PyPI | `1.2.0` |
64
+ | npm | `1.1.5` |
65
+
66
+ The npm 1.2.0 publish failed at the registry with an `E404` response to the
67
+ `PUT` request (publish workflow run `39672649928`), a publisher/credential
68
+ configuration issue rather than a packaging failure. No retry date is set and
69
+ the npm `latest` tag therefore still resolves to 1.1.5. The npm tarball carries
70
+ the 1.1.5 content; use PyPI 1.2.0 or a clone of `main` for the 1.2.0 packaging.
71
+
72
+ The PyPI wheel (1.2.0 packaging: `SKILL.md`, `VERSION`, `reference/`,
73
+ `benchmark/`, `docs/` and `examples/` ship under the
74
+ `quantum_reasoning_skill/` package namespace, plus a `quantum-reasoning` console
75
+ script backed by `quantum_reasoning_skill.cli`); and the npm tarball (1.1.5:
76
+ `SKILL.md`, `VERSION`, `index.js`, `LICENSE`, `README.md`, and a
77
+ `quantum-reasoning` bin). 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
 
@@ -68,7 +92,8 @@ Only some published versions carry a build attestation, so check before relying
68
92
  `1.1.1` was published through the long-lived-token path, which cannot produce a Sigstore
69
93
  attestation. Attestations are bound to a publish event and cannot be added afterwards, so
70
94
  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.
95
+ release contract as every other version; only the provenance *record* is missing. The npm
96
+ releases `1.1.2`, `1.1.3`, `1.1.4` and `1.1.5` have no attestation either.
72
97
 
73
98
  If you need to verify how a build was produced, use `1.1.0` on npm. To check an attestation
74
99
  yourself:
@@ -90,9 +115,9 @@ CLIs plus a library:
90
115
 
91
116
  | Surface | Flags it actually accepts |
92
117
  | --- | --- |
93
- | `quantum-reasoning` — **Python** console script ([`bin/quantum-reasoning`](bin/quantum-reasoning)) | `--skill-file PATH`, `--validate`, `--json`, `--quiet`, `--help` |
118
+ | `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
119
  | `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) |
120
+ | `quantum_reasoning_skill.reference.branch_controller` — Python library | importable; see [Reference controller](#reference-controller) |
96
121
  | `quantum_reasoning_skill.SKILL.md`, `.VERSION` | the shipped asset, as package data |
97
122
 
98
123
  `--path` is npm-only; `--skill-file` and `--quiet` are Python-only. An unsupported flag exits
@@ -103,10 +128,10 @@ CLIs plus a library:
103
128
  [`bin/check_release_contract.py`](bin/check_release_contract.py) is the gate CI runs before
104
129
  any release. It asserts that `SKILL.md` resolves inside the installed wheel, that the
105
130
  `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
131
+ `quantum_reasoning_skill.reference.branch_controller` imports with a callable API, and that the version agrees
107
132
  everywhere.
108
133
 
109
- **Twelve public names in `reference/branch_controller.py` are frozen** — `DEFAULT_THRESHOLDS`,
134
+ **Twelve public names in `quantum_reasoning_skill/reference/branch_controller.py` are frozen** — `DEFAULT_THRESHOLDS`,
110
135
  `Branch`, `BranchMetrics`, `BranchState`, `Thresholds`, `branch_score`, `classify_branch`,
111
136
  `collapse_decision`, `diversity_ratio`, `recommended_width`, `uncertainty_from_branches`,
112
137
  `update_branch_state`. Renaming or removing any one **halts the release**. `WEIGHTS` is
@@ -140,14 +165,18 @@ must be calibrated first.
140
165
 
141
166
  ## Benchmark harness
142
167
 
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`,
168
+ [`quantum_reasoning_skill/benchmark/`](quantum_reasoning_skill/benchmark/README.md) measures whether the skill helps rather than merely
169
+ producing more text: `quantum_reasoning_skill/benchmark/evaluate.py` (evaluator),
170
+ `quantum_reasoning_skill/benchmark/validate_submission.py`
171
+ (machine-validates a reproducible bundle), `quantum_reasoning_skill/benchmark/paths.py`
172
+ (path confinement that rejects `..` traversal and symlink escapes),
173
+ `quantum_reasoning_skill/benchmark/cases.jsonl`, and four JSON Schemas — `case`,
147
174
  `result`, `metadata`, `comparison`.
148
175
 
149
176
  ```bash
150
- python benchmark/evaluate.py --cases benchmark/cases.jsonl --skill skill-results.jsonl
177
+ python quantum_reasoning_skill/benchmark/evaluate.py \
178
+ --cases quantum_reasoning_skill/benchmark/cases.jsonl \
179
+ --skill skill-results.jsonl
151
180
  ```
152
181
 
153
182
  `--cases` is optional: it defaults to the packaged seed cases. Paths are resolved against the
@@ -155,13 +184,14 @@ current working directory, so the command above runs unchanged from a fresh clon
155
184
  file does not exist the evaluator prints a typed error, names the flag, and exits 2 — it never
156
185
  substitutes placeholder rows, because a fabricated measurement is worse than a missing one.
157
186
  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.
187
+ stay inside it, and reads are bounded by `--max-bytes`. Both
188
+ `python quantum_reasoning_skill/benchmark/evaluate.py` and
189
+ `python -m quantum_reasoning_skill.benchmark.evaluate` work.
160
190
 
161
191
  ## Tests, tooling and governance
162
192
 
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.
193
+ About **53% of the Python here is tests** — 5,775 of 10,913 lines across **25 test modules**,
194
+ run with the standard library's `unittest` on Python 3.10–3.14 (Linux) and 3.12 (Windows, macOS).
165
195
  They cover the controller, the benchmark harness, import hardening, path boundaries,
166
196
  dependency-lock drift and release-gate polling; the documented benchmark command run as a
167
197
  subprocess against a clean copy of the tree; the `paths` filters that decide when a release
@@ -202,10 +232,10 @@ abandoned the falsified hypothesis at the same evidence step the falsification a
202
232
  revived a rejected-then-supported alternative in 3/3 revival scenarios. Confidence calibration
203
233
  showed **no difference** (Brier score 0.033 vs 0.033), and the accuracy gain cost **109.6%
204
234
  more tokens** per scenario. Methodology and reproduction:
205
- [`benchmark/falsification/METHODOLOGY.md`](benchmark/falsification/METHODOLOGY.md).
235
+ [`quantum_reasoning_skill/benchmark/falsification/METHODOLOGY.md`](quantum_reasoning_skill/benchmark/falsification/METHODOLOGY.md).
206
236
 
207
237
  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
238
+ any language model. `quantum_reasoning_skill/benchmark/cases.jsonl` holds six deterministic smoke-test cases that
209
239
  prove the harness runs; they are explicitly **not sufficient evidence of reasoning
210
240
  improvement**. A baseline-vs-skill **model** evaluation has not been published, so this
211
241
  project makes **no claim that it improves any language model's accuracy or costs less
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.0"
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.0
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.0",
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"