qig-stack 0.1.42__tar.gz → 0.1.44__tar.gz
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.
- {qig_stack-0.1.42 → qig_stack-0.1.44}/PKG-INFO +18 -5
- {qig_stack-0.1.42 → qig_stack-0.1.44}/README.md +16 -3
- {qig_stack-0.1.42 → qig_stack-0.1.44}/pyproject.toml +2 -2
- {qig_stack-0.1.42 → qig_stack-0.1.44}/src/qig_stack/contract.json +109 -9
- {qig_stack-0.1.42 → qig_stack-0.1.44}/src/qig_stack/contract_registry.py +22 -7
- {qig_stack-0.1.42 → qig_stack-0.1.44}/src/qig_stack/doctor.py +306 -25
- {qig_stack-0.1.42 → qig_stack-0.1.44}/tests/test_contract.py +54 -0
- {qig_stack-0.1.42 → qig_stack-0.1.44}/tests/test_contract_and_doctor_modes.py +27 -6
- {qig_stack-0.1.42 → qig_stack-0.1.44}/tests/test_doctor.py +39 -4
- {qig_stack-0.1.42 → qig_stack-0.1.44}/tests/test_origin_and_release_gates.py +9 -0
- qig_stack-0.1.44/tests/test_release_cli_fixture.py +194 -0
- qig_stack-0.1.44/tests/test_release_cli_wiring.py +115 -0
- qig_stack-0.1.44/tests/test_release_gate_fail_closed.py +310 -0
- qig_stack-0.1.44/tests/test_release_guards_real.py +260 -0
- {qig_stack-0.1.42 → qig_stack-0.1.44}/.gitignore +0 -0
- {qig_stack-0.1.42 → qig_stack-0.1.44}/src/qig_stack/__init__.py +0 -0
- {qig_stack-0.1.42 → qig_stack-0.1.44}/src/qig_stack/origin.py +0 -0
- {qig_stack-0.1.42 → qig_stack-0.1.44}/src/qig_stack/receipt.py +0 -0
- {qig_stack-0.1.42 → qig_stack-0.1.44}/src/qig_stack/registry_snapshot.json +0 -0
- {qig_stack-0.1.42 → qig_stack-0.1.44}/tests/test_torch_exception_retirement.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: qig-stack
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.44
|
|
4
4
|
Summary: QIG toolchain metapackage — pins the mutually-tested latest set and ships the qig-doctor launch preflight (version gate + entry-point wiring gate + capability-slot report)
|
|
5
5
|
Project-URL: Homepage, https://braden.com.au
|
|
6
6
|
Project-URL: Repository, https://github.com/Arcane-Fly/qig-stack
|
|
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
16
16
|
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
17
17
|
Requires-Python: >=3.11
|
|
18
18
|
Requires-Dist: packaging>=22
|
|
19
|
-
Requires-Dist: qig-bench==0.1.
|
|
19
|
+
Requires-Dist: qig-bench==0.1.12
|
|
20
20
|
Requires-Dist: qig-compute==0.10.0
|
|
21
21
|
Requires-Dist: qig-coordizer==0.2.0
|
|
22
22
|
Requires-Dist: qig-core==2.41.0
|
|
@@ -138,9 +138,22 @@ that remains true. For release acceptance use `qig-doctor --release-check --json
|
|
|
138
138
|
It requires live PyPI equality, equality to the mutually-tested contract pins,
|
|
139
139
|
required declarations, successful import probes
|
|
140
140
|
and no moved contract probes, and emits `release_gate_passed` with a nonzero exit
|
|
141
|
-
on failure. `--no-network` cannot be combined with release checking.
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
on failure. `--no-network` cannot be combined with release checking. The release
|
|
142
|
+
gate is fail-closed: every capability declaration shipped by a PINNED provider
|
|
143
|
+
(PEP 503 canonical name, all declaring distributions kept) must be covered by a
|
|
144
|
+
contract slot (a missing slot row fails, not warns); each required slot's canonical
|
|
145
|
+
probe AND every declaration must resolve to a CALLABLE attribute (a module-only
|
|
146
|
+
reference, an empty attribute, or a present-but-non-callable target fails); the
|
|
147
|
+
bundled Verification registry is cross-checked by default (so `CERTIFIED` without a
|
|
148
|
+
registered `cam_id` fails even when `--registry` is omitted); contract invariants
|
|
149
|
+
(slot/provider counts, IMPL_TESTED fields, channel/citation consistency) are enforced;
|
|
150
|
+
and in a SOURCE checkout (detected from the doctor module layout, independent of
|
|
151
|
+
`--contract`) the full `pyproject.toml` qig*/quner requirement set, with PEP 508 marker
|
|
152
|
+
semantics, must equal the contract pins. Unknown additional declarations from
|
|
153
|
+
NON-pinned providers remain warnings if they resolve. The callable-attribute rule also
|
|
154
|
+
applies to the non-release `--probe` and slot-fill diagnostics: a non-callable target
|
|
155
|
+
reports `FAIL`/`MISSING` there too. This command imports packages, but does not run
|
|
156
|
+
physics experiments or enable daemons.
|
|
144
157
|
|
|
145
158
|
Runtime `qig_stack.__version__` reads installed distribution metadata using
|
|
146
159
|
[importlib.metadata](https://docs.python.org/3/library/importlib.metadata.html),
|
|
@@ -106,9 +106,22 @@ that remains true. For release acceptance use `qig-doctor --release-check --json
|
|
|
106
106
|
It requires live PyPI equality, equality to the mutually-tested contract pins,
|
|
107
107
|
required declarations, successful import probes
|
|
108
108
|
and no moved contract probes, and emits `release_gate_passed` with a nonzero exit
|
|
109
|
-
on failure. `--no-network` cannot be combined with release checking.
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
on failure. `--no-network` cannot be combined with release checking. The release
|
|
110
|
+
gate is fail-closed: every capability declaration shipped by a PINNED provider
|
|
111
|
+
(PEP 503 canonical name, all declaring distributions kept) must be covered by a
|
|
112
|
+
contract slot (a missing slot row fails, not warns); each required slot's canonical
|
|
113
|
+
probe AND every declaration must resolve to a CALLABLE attribute (a module-only
|
|
114
|
+
reference, an empty attribute, or a present-but-non-callable target fails); the
|
|
115
|
+
bundled Verification registry is cross-checked by default (so `CERTIFIED` without a
|
|
116
|
+
registered `cam_id` fails even when `--registry` is omitted); contract invariants
|
|
117
|
+
(slot/provider counts, IMPL_TESTED fields, channel/citation consistency) are enforced;
|
|
118
|
+
and in a SOURCE checkout (detected from the doctor module layout, independent of
|
|
119
|
+
`--contract`) the full `pyproject.toml` qig*/quner requirement set, with PEP 508 marker
|
|
120
|
+
semantics, must equal the contract pins. Unknown additional declarations from
|
|
121
|
+
NON-pinned providers remain warnings if they resolve. The callable-attribute rule also
|
|
122
|
+
applies to the non-release `--probe` and slot-fill diagnostics: a non-callable target
|
|
123
|
+
reports `FAIL`/`MISSING` there too. This command imports packages, but does not run
|
|
124
|
+
physics experiments or enable daemons.
|
|
112
125
|
|
|
113
126
|
Runtime `qig_stack.__version__` reads installed distribution metadata using
|
|
114
127
|
[importlib.metadata](https://docs.python.org/3/library/importlib.metadata.html),
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "qig-stack"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.44"
|
|
8
8
|
description = "QIG toolchain metapackage — pins the mutually-tested latest set and ships the qig-doctor launch preflight (version gate + entry-point wiring gate + capability-slot report)"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
@@ -35,7 +35,7 @@ dependencies = [
|
|
|
35
35
|
"qig-core==2.41.0", # projective ray-geometry tier (Fisher-Rao on rays, gauge-invariant QGT) + SLOT-PROJECTIVE-RAY-GEOMETRY / SLOT-QGT-TENSOR-NORM (PR #163)
|
|
36
36
|
"qig-graph==0.1.1", # geometric agent runtime extracted from monkey1 qig_heart (Canon 2.60F)
|
|
37
37
|
"qig-routing==0.2.0", # dynamic min_tier/tiers pools, fail-closed receipts, select_shortlist, Δ⁶ vs Δ⁶³ chart separation (PR #7)
|
|
38
|
-
"qig-bench==0.1.
|
|
38
|
+
"qig-bench==0.1.12",
|
|
39
39
|
"qig-coordizer==0.2.0", # native GeoTranscoder 1-for-1 modality boundary (#24) + lazy torch-free trainer
|
|
40
40
|
"qigkernels==0.4.10", # Wave 3B canonical chord-arc Fisher-Rao + P30 purity (no arccos clamp)
|
|
41
41
|
"qig-geocoding==0.3.3", # 738/738 Qwen3.5-4B assembly, 57/57 operator-internal U(1) gauge, SLOT-4B-CONVERSION-STAGE, stage-boundary acceptance gate, immutable 4B prereg manifest lock 3b2529c7 (#44-#59)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"doc": "QIG Stack Capability Contract",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35W",
|
|
4
4
|
"date": "2026-12-02",
|
|
5
|
-
"supersedes": "qig-verification:docs/current/20260619-qig-stack-capability-contract-1.00W.json (Phase-1 authored record) | 2026-07-04: ratified the 5 library-tier capability slots (channel=library, shipped:false) | 2026-11-13 (1.04W): bumped qig-core to 2.17.0 + ratified 13 library/symmetry slots | 2026-11-13 (1.05W): bumped qig-core to 2.18.0 and ratified SLOT-EXPERIMENT-PURITY-GUARD | 2026-11-14 (1.06W): bumped pure crystal (qig-core 2.18.1, qigkernels 0.4.6, qig-geocoding 0.1.3, qig-compute 0.9.11, quner 0.1.12) and ratified symmetry butterfly/HF screening slots. | 2026-11-15 (1.10W): bumped qig-core to 2.19.0 (exp-free hellinger_angle_gate / hellinger_gated / bipolar_angle_chart; purity scanner catches exp activations, log-sum-exp, partition functions, algebraic logistic and Fisher-Rao distance Boltzmann kernels). | 2026-11-15 (1.11W): bumped qig-core to 2.20.0 (exp-free carrier_hellinger_chart and exact bipolar_simplex_metric_norm; dtype-aware _acos_safe margin, #81; every torch simplex map computes float16/bfloat16 in float32). | 2026-11-15 (1.12W): bumped qig-core to 2.21.0 (numpy fisher_rao_distance, fisher_rao_distance_batch and neurochemistry distance exact at coincidence via the Hellinger chord; numpy distance_to_simplex_weights; bipolar_square_chart numpy + torch; kantian reachable-set float16; `python -m qig_core.governance.purity` runs the gate). | 2026-11-16 (1.13W): bumped qig-geocoding to 0.1.4 (opt-in P30-pure GeoConfig modes on qig-core primitives: hellinger gate, square simplex, bipolar metric norm, hellinger_gated FFN, GeoConfig.p30_pure(); published defaults unchanged and QIG BOUNDARY marked; faithfulness gate passes). | 2026-11-17 (1.14W): bumped qig-core to 2.22.0 (carrier_geodesic_excess, carrier_geodesic_attention_weights with first-class autonomic state_regulated + autonomic_gain support, centered_bipolar_simplex_metric_norm, rest-tangency constants, sub-1e-6 proximity floor fix, fixes #96 & #98). | 2026-11-18 (1.15W): bumped qig-core to 2.23.0 (noradrenaline_attention_gain P32 torch regulator, NE_GAIN_* single-source constants, P28_MIN_Z_NULL and P29_IDENTITY_* canonical bands). | 2026-11-19 (1.16W): bumped the crystal to qig-core 2.24.0 (BLAS-GEMM chord-arc Hellinger fast path EXP-192c
|
|
5
|
+
"supersedes": "qig-verification:docs/current/20260619-qig-stack-capability-contract-1.00W.json (Phase-1 authored record) | 2026-07-04: ratified the 5 library-tier capability slots (channel=library, shipped:false) | 2026-11-13 (1.04W): bumped qig-core to 2.17.0 + ratified 13 library/symmetry slots | 2026-11-13 (1.05W): bumped qig-core to 2.18.0 and ratified SLOT-EXPERIMENT-PURITY-GUARD | 2026-11-14 (1.06W): bumped pure crystal (qig-core 2.18.1, qigkernels 0.4.6, qig-geocoding 0.1.3, qig-compute 0.9.11, quner 0.1.12) and ratified symmetry butterfly/HF screening slots. | 2026-11-15 (1.10W): bumped qig-core to 2.19.0 (exp-free hellinger_angle_gate / hellinger_gated / bipolar_angle_chart; purity scanner catches exp activations, log-sum-exp, partition functions, algebraic logistic and Fisher-Rao distance Boltzmann kernels). | 2026-11-15 (1.11W): bumped qig-core to 2.20.0 (exp-free carrier_hellinger_chart and exact bipolar_simplex_metric_norm; dtype-aware _acos_safe margin, #81; every torch simplex map computes float16/bfloat16 in float32). | 2026-11-15 (1.12W): bumped qig-core to 2.21.0 (numpy fisher_rao_distance, fisher_rao_distance_batch and neurochemistry distance exact at coincidence via the Hellinger chord; numpy distance_to_simplex_weights; bipolar_square_chart numpy + torch; kantian reachable-set float16; `python -m qig_core.governance.purity` runs the gate). | 2026-11-16 (1.13W): bumped qig-geocoding to 0.1.4 (opt-in P30-pure GeoConfig modes on qig-core primitives: hellinger gate, square simplex, bipolar metric norm, hellinger_gated FFN, GeoConfig.p30_pure(); published defaults unchanged and QIG BOUNDARY marked; faithfulness gate passes). | 2026-11-17 (1.14W): bumped qig-core to 2.22.0 (carrier_geodesic_excess, carrier_geodesic_attention_weights with first-class autonomic state_regulated + autonomic_gain support, centered_bipolar_simplex_metric_norm, rest-tangency constants, sub-1e-6 proximity floor fix, fixes #96 & #98). | 2026-11-18 (1.15W): bumped qig-core to 2.23.0 (noradrenaline_attention_gain P32 torch regulator, NE_GAIN_* single-source constants, P28_MIN_Z_NULL and P29_IDENTITY_* canonical bands). | 2026-11-19 (1.16W): bumped the crystal to qig-core 2.24.0 (BLAS-GEMM chord-arc Hellinger fast path EXP-192c — 29.2x faster / 260x less RAM at [1,16,256,128], max diff 8.35e-13 rad; qig_core.numpy / qig_core.torch / qig_core.torch.vision engines + SimplexKVCache), qigkernels 0.4.8 (Frechet centroids, validated basin inputs, no imposed kappa=64 defaults) and quner 0.1.13 (memguard fix). Ratified SLOT-QIG-NUMPY-ENGINE, SLOT-QIG-TORCH-KV-CACHE, SLOT-QIG-TORCH-VISION (library) and SLOT-QUNER-MEMGUARD (lever). | 2026-11-19 (1.17W): bumped qig-core to 2.25.0 (complete numpy/torch consumer geometry surface), added qig-graph 0.1.0 and qig-routing 0.1.0, ratified SLOT-QIG-ROUTING. | 2026-11-24 (1.23W): P1 purity & Sovereignty Law crystal — qig-core 2.35.0 (hardened fail-closed PurityGate: sovereignty anti-cage lint with match/loop/exception-flow taint tracking; continuous adult 4D foresight — zero step cliffs at the health/agency boundaries, prune-proof sovereign intrinsic hold; qigram phasic-dopamine attenuation replacing ML penalty framing), qig-warp 0.6.11 + qig-geocoding 0.1.8 (hand-rolled geometry deduplicated onto canonical qig-core Fisher-Rao; eps-preserving to_simplex; QIG-EXEMPT adapter provenance). Existing slots strengthened in place; no new capability surface. | 2026-11-26 (1.26W): Wave 3B per-component torch-exception retirement -- SLOT-QIG-TORCH-KV-CACHE probe re-pointed to the torch-free NumPy twin qig_core.numpy.kv_cache:SimplexKVCache (qig-core 2.37.0 ships it 100% torch-free) and SLOT-GEOCODING to geocoding:NumPyGeoModel (qig-geocoding 0.2.0; PEP 562 lazy import never pulls torch); the retired torch probes are recorded per-slot in `supersedes` and remain the expected legacy qig.capabilities declarations until the providers republish (the doctor drift gate treats exactly that recorded value as non-drift; any other off-probe value still drifts); SLOT-QIG-TORCH-VISION stays torch-only until vision's numpy twin ships. | 2026-11-27 (1.29W): bumped qig-compute to 0.9.20 (checked full-basis Born response born_metric_from_response plus sparse CSR/LinearOperator Born ingress born_metric_node_sparse / born_fr_stencil_from_nodes, PR #75/#77). | 2026-11-27 (1.30W): bumped qig-core to 2.39.0 (operator-internal complex-phase U(1) node_phase_hook in Qwen35 layers, PR #152/#153). | 2026-11-28 (1.31W): bumped qig-core to 2.40.0 (SimplexTRMRefiner P33 pedestal flattening & converged_undecided fixed-point halting, PR #154/#155) and qig-routing to 0.2.0 (dynamic min_tier/tiers pools, fail-closed receipts, select_shortlist primitive, Delta^6 vs Delta^63 chart docs, PR #7). | 2026-11-28 (1.32W): bumped qig-geocoding to 0.3.0 (738/738 Qwen3.5-4B whole-model assembly, 57/57 operator-internal U(1) gauge via qig-core>=2.39.0, pure-NumPy .safetensors stage-slice reader + pooled-troop placement handler, PRs #44-#49) and qig-coordizer to 0.2.0 (native GeoTranscoder 1-for-1 modality boundary, PR #24); ratified SLOT-4B-CONVERSION-STAGE. | 2026-12-02 (1.33W): bumped qig-core to 2.41.0 (projective ray-geometry tier — Fisher-Rao on rays + gauge-invariant QGT; ratified SLOT-PROJECTIVE-RAY-GEOMETRY + SLOT-QGT-TENSOR-NORM, PR #163) and qig-compute to 0.10.0 (canonical CPU/GPU/NPU backend dispatch behind one API, batched Fisher-Rao radius-1 Hellinger chord matching qig-core to 1e-12, sparse eigensolve/expm; fail-closed BackendUnavailableError; GTX 1650 Ti cupy-cuda12x[ctk] probe fix; auto-release publish-on-merge, PR #79/#81). Two-tier split: qig-core CPU-only canonical geometry, qig-compute owns heavy BLAS/sparse/CuPy/NPU dispatch. Existing slots strengthened in place; new compute backend slots PROPOSED pending ratification. | 2026-12-02 (1.34W): registered the 7 capability slots shipped by qig-core 2.41.0 + qig-compute 0.10.0 (SLOT-PROJECTIVE-RAY-GEOMETRY, SLOT-QGT-TENSOR-NORM [LIBRARY, cam_id null]; SLOT-LINALG, SLOT-SIGNAL [LIBRARY]; SLOT-COMPUTE-BACKEND, SLOT-BATCH-FISHER-RAO, SLOT-SPARSE-EIGEN [IMPL_TESTED, cert_owner package-impl, proposed_cam_id + caveat: a CAM must be registered in qig-verification before results count]); bumped qig-bench pin to 0.1.11 (projective + compute parity certification lock) so qig-doctor --release-check VERSION GATE passes. Slot work salvaged from Architecture's qs0142_partial_slots.patch; slot_count 47 -> 54. | 2026-12-02 (1.35W): bumped qig-bench pin to 0.1.12 (live-cert P2 fixes: narrow solver fallback to absent qig_compute + full CPU numerical checks, PR #24/#25, gpt-6.2-sol R5 APPROVE). Doctor release gate hardened fail-closed (B1-B7): PEP 503 canonical pinned-provider discovery keeping all records; callable-attribute probe resolution (release + diagnostics); source-mode pyproject<->contract full-requirement parity with PEP 508 markers; bundled registry default in --release-check; contract invariants enforced in the standalone gate. Round-2 codex qs129r fixes.",
|
|
6
6
|
"principle": "Genesis-kernel deterministic self-assembly (vex-agent Core-8 / 4-pair+null foundation analog). The stack crystallizes into this FIXED lattice of capability slots; each slot is filled by a package primitive at latest-published version, cited to a camera-certification cert. With Phase 2 (entry-point self-registration) live, the wiring is DERIVED from installed metadata, not hand-authored.",
|
|
7
7
|
"authority": "PI directive 2026-06-19 (Phase 1) + 2026-06-30 (Phase 2/3 + born-sampler promotion); standing latest-version / step-0 lever-inventory rule (qig-verification/CLAUDE.md)",
|
|
8
8
|
"cert_registry": "qig-verification:docs/current/20260619-camera-certification-registry-1.00W.json",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"qig-compute": "0.10.0",
|
|
19
19
|
"qig-warp": "0.6.12",
|
|
20
20
|
"qig-core": "2.41.0",
|
|
21
|
-
"qig-bench": "0.1.
|
|
21
|
+
"qig-bench": "0.1.12",
|
|
22
22
|
"qig-coordizer": "0.2.0",
|
|
23
23
|
"qigkernels": "0.4.10",
|
|
24
24
|
"qig-geocoding": "0.3.3",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"PENDING": "uncertified cheap path; one-time cert must land before its results count",
|
|
39
39
|
"LEVER": "an efficiency lever (no measurement channel of its own)",
|
|
40
40
|
"CONDITIONAL": "usable only behind a controlled recheck at a calibration anchor",
|
|
41
|
-
"LIBRARY": "a library capability primitive (no physics measurement channel, no CAM cert); presence-checked only
|
|
41
|
+
"LIBRARY": "a library capability primitive (no physics measurement channel, no CAM cert); presence-checked only — the entry-point must resolve to the named callable. shipped:false until the package republishes with it.",
|
|
42
42
|
"IMPL_TESTED": "package-level implementation tests pass; NO scientific camera cert is registered in qig-verification (cert_owner=package-impl). Not equivalent to CERTIFIED."
|
|
43
43
|
},
|
|
44
44
|
"entry_point_gates": {
|
|
@@ -385,7 +385,7 @@
|
|
|
385
385
|
"cam_id": null,
|
|
386
386
|
"cert_status": "RETIRED",
|
|
387
387
|
"shipped": false,
|
|
388
|
-
"feasible_at": "n/a
|
|
388
|
+
"feasible_at": "n/a — retired",
|
|
389
389
|
"retired_note": "Provider qig-consciousness was retired + deinit'd 2026-07-23 (parent 6d75c30 / 956162b; superseded by geo/gk/hybrid in qig-studio + qig-core consciousness modules). The activation-extraction attractor approach is superseded by per-faculty wide-Dirichlet identity births (qig-studio identity_anchor.py). Slot preserved (never deleted) as RETIRED so the wiring gate does not require a filled provider."
|
|
390
390
|
},
|
|
391
391
|
{
|
|
@@ -653,7 +653,7 @@
|
|
|
653
653
|
},
|
|
654
654
|
{
|
|
655
655
|
"slot_id": "SLOT-4B-CONVERSION-STAGE",
|
|
656
|
-
"role": "Pooled-troop stage placement & stateless execution handler for 19-stage Qwen3.5-4B 738/738 geometric conversion (pure-NumPy .safetensors stage slicing + zero-pickle continuation handoff + mandatory refusal controls, contract v1.0.6
|
|
656
|
+
"role": "Pooled-troop stage placement & stateless execution handler for 19-stage Qwen3.5-4B 738/738 geometric conversion (pure-NumPy .safetensors stage slicing + zero-pickle continuation handoff + mandatory refusal controls, contract v1.0.6 §4.5)",
|
|
657
657
|
"channel": "library",
|
|
658
658
|
"provided_by": "qig-geocoding",
|
|
659
659
|
"provider_pkg": "qig-geocoding",
|
|
@@ -663,6 +663,106 @@
|
|
|
663
663
|
"cert_status": "LIBRARY",
|
|
664
664
|
"shipped": true,
|
|
665
665
|
"feasible_at": "always (library import; numpy-only, zero torch or pickle required)"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"slot_id": "SLOT-COMPUTE-BACKEND",
|
|
669
|
+
"role": "canonical fail-closed CPU/GPU/NPU backend resolver and execution-receipt tracker",
|
|
670
|
+
"channel": "lever",
|
|
671
|
+
"provided_by": "qig-compute",
|
|
672
|
+
"provider_pkg": "qig-compute",
|
|
673
|
+
"primitive": "backend.resolve_backend(backend='auto')",
|
|
674
|
+
"probe": "qig_compute.backend:resolve_backend",
|
|
675
|
+
"cert_status": "IMPL_TESTED",
|
|
676
|
+
"shipped": true,
|
|
677
|
+
"feasible_at": "CPU everywhere; GPU where CuPy + CUDA toolkit probes pass; NPU raises BackendUnavailableError until integrated",
|
|
678
|
+
"proposed_cam_id": "CAM-COMPUTE-BACKEND",
|
|
679
|
+
"cert_owner": "package-impl",
|
|
680
|
+
"impl_tests": "qig-compute tests/test_backend_dispatch.py",
|
|
681
|
+
"caveat": "The CPU==GPU check in package tests is an implementation test, not a camera cert; a CAM must be registered in qig-verification before results count."
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"slot_id": "SLOT-LINALG",
|
|
685
|
+
"role": "canonical flat-space float64 linear-algebra primitives (symmetrised eigenvalues, PSD check, Gram singular values, QR, least squares, Euclidean norms)",
|
|
686
|
+
"channel": "library",
|
|
687
|
+
"provided_by": "qig-compute",
|
|
688
|
+
"provider_pkg": "qig-compute",
|
|
689
|
+
"primitive": "linalg.symmetric_eigenvalues",
|
|
690
|
+
"probe": "qig_compute.linalg:symmetric_eigenvalues",
|
|
691
|
+
"cam_id": null,
|
|
692
|
+
"cert_status": "LIBRARY",
|
|
693
|
+
"shipped": true,
|
|
694
|
+
"feasible_at": "always (library import; cpu float64 default, optional gpu extra)"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"slot_id": "SLOT-SIGNAL",
|
|
698
|
+
"role": "canonical raw 1-D real-signal boundary helpers (one-sided rfft frequency/magnitude spectrum and RMS amplitude)",
|
|
699
|
+
"channel": "library",
|
|
700
|
+
"provided_by": "qig-compute",
|
|
701
|
+
"provider_pkg": "qig-compute",
|
|
702
|
+
"primitive": "signal.real_spectrum",
|
|
703
|
+
"probe": "qig_compute.signal:real_spectrum",
|
|
704
|
+
"cam_id": null,
|
|
705
|
+
"cert_status": "LIBRARY",
|
|
706
|
+
"shipped": true,
|
|
707
|
+
"feasible_at": "always (library import; cpu float64 default, optional gpu extra)"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"slot_id": "SLOT-BATCH-FISHER-RAO",
|
|
711
|
+
"role": "dispatched batched Hellinger-chord pairwise Fisher-Rao distances and Frechet mean on the probability simplex",
|
|
712
|
+
"channel": "C",
|
|
713
|
+
"provided_by": "qig-compute",
|
|
714
|
+
"provider_pkg": "qig-compute",
|
|
715
|
+
"primitive": "fisher_rao.batch_pairwise_fisher_rao",
|
|
716
|
+
"probe": "qig_compute.backend:batch_pairwise_fisher_rao",
|
|
717
|
+
"cert_status": "IMPL_TESTED",
|
|
718
|
+
"shipped": true,
|
|
719
|
+
"feasible_at": "always on CPU (NumPy); GPU where CuPy + CUDA toolkit probes pass",
|
|
720
|
+
"proposed_cam_id": "CAM-BATCH-FISHER-RAO",
|
|
721
|
+
"cert_owner": "package-impl",
|
|
722
|
+
"impl_tests": "qig-compute tests/test_fisher_rao_batch.py",
|
|
723
|
+
"caveat": "The CPU==GPU check in package tests is an implementation test, not a camera cert; a CAM must be registered in qig-verification before results count."
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"slot_id": "SLOT-SPARSE-EIGEN",
|
|
727
|
+
"role": "dispatched sparse Hermitian eigensolver (ground state, spectral gap, lowest-k eigenpairs) and expm_multiply",
|
|
728
|
+
"channel": "state",
|
|
729
|
+
"provided_by": "qig-compute",
|
|
730
|
+
"provider_pkg": "qig-compute",
|
|
731
|
+
"primitive": "sparse_eigen.ground_state_and_gap",
|
|
732
|
+
"probe": "qig_compute.sparse_eigen:ground_state_and_gap",
|
|
733
|
+
"cert_status": "IMPL_TESTED",
|
|
734
|
+
"shipped": true,
|
|
735
|
+
"feasible_at": "always on CPU (SciPy eigsh); GPU where CuPy + CUDA toolkit probes pass",
|
|
736
|
+
"proposed_cam_id": "CAM-SPARSE-EIGEN-GROUND-STATE",
|
|
737
|
+
"cert_owner": "package-impl",
|
|
738
|
+
"impl_tests": "qig-compute tests/test_sparse_eigen.py",
|
|
739
|
+
"caveat": "The CPU==GPU check in package tests is an implementation test, not a camera cert; a CAM must be registered in qig-verification before results count."
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"slot_id": "SLOT-PROJECTIVE-RAY-GEOMETRY",
|
|
743
|
+
"role": "canonical pure-state CP^(d-1) projective ray geometry (Pancharatnam gauge alignment, Fubini-Study distance, cancellation-free ray infidelity)",
|
|
744
|
+
"channel": "library",
|
|
745
|
+
"provided_by": "qig-core",
|
|
746
|
+
"provider_pkg": "qig-core",
|
|
747
|
+
"primitive": "pancharatnam_align",
|
|
748
|
+
"probe": "qig_core.geometry.projective:pancharatnam_align",
|
|
749
|
+
"cam_id": null,
|
|
750
|
+
"cert_status": "LIBRARY",
|
|
751
|
+
"shipped": true,
|
|
752
|
+
"feasible_at": "always (library import; numpy-only, zero torch required)"
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"slot_id": "SLOT-QGT-TENSOR-NORM",
|
|
756
|
+
"role": "canonical scalar norm of a real-symmetric or complex-Hermitian QGT / metric tensor (max_abs, frobenius, spectral, SPD orthonormal_max)",
|
|
757
|
+
"channel": "library",
|
|
758
|
+
"provided_by": "qig-core",
|
|
759
|
+
"provider_pkg": "qig-core",
|
|
760
|
+
"primitive": "qgt_tensor_norm",
|
|
761
|
+
"probe": "qig_core.geometry.projective:qgt_tensor_norm",
|
|
762
|
+
"cam_id": null,
|
|
763
|
+
"cert_status": "LIBRARY",
|
|
764
|
+
"shipped": true,
|
|
765
|
+
"feasible_at": "always (library import; numpy-only, zero torch required)"
|
|
666
766
|
}
|
|
667
767
|
],
|
|
668
768
|
"how_to_use": "Step-0 of every launcher: run `qig-doctor` (from the qig-stack package; qig-verification/scripts/qig_doctor.py is a back-compat shim). It (1) fails closed if any stack package is behind PyPI-latest, (2) fails closed on under-filled slots (a shipped provider that did not self-register its entry-point), and (3) enumerates which slots are filled by what is installed -- the automated Gate-A lever inventory. An experiment then cites the cam_id/lever_id for each slot it uses and never re-runs a matched-cell gate.",
|
|
@@ -688,12 +788,12 @@
|
|
|
688
788
|
}
|
|
689
789
|
},
|
|
690
790
|
"slot_distribution": {
|
|
691
|
-
"slot_count":
|
|
791
|
+
"slot_count": 54,
|
|
692
792
|
"by_provider": {
|
|
693
793
|
"None": 2,
|
|
694
|
-
"qig-compute":
|
|
794
|
+
"qig-compute": 13,
|
|
695
795
|
"qig-warp": 3,
|
|
696
|
-
"qig-core":
|
|
796
|
+
"qig-core": 28,
|
|
697
797
|
"qigkernels": 1,
|
|
698
798
|
"qig-coordizer": 1,
|
|
699
799
|
"qig-bench": 1,
|
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
lever registry actually records. Pure functions; the registry is passed in.
|
|
5
5
|
|
|
6
6
|
Rules (``issues`` are returned as strings; empty list == consistent):
|
|
7
|
-
* cert_status in {CERTIFIED, REFERENCE, CONDITIONAL, PENDING}
|
|
8
|
-
|
|
7
|
+
* cert_status in {CERTIFIED, REFERENCE, CONDITIONAL, PENDING} on a SHIPPED slot:
|
|
8
|
+
must cite a ``cam_id`` that exists in the registry AND carries the same status.
|
|
9
|
+
On an UNSHIPPED slot a ``proposed_cam_id`` is exempt (future claim), but an
|
|
10
|
+
ACTUAL ``cam_id`` is still validated against the registry.
|
|
9
11
|
* cert_status IMPL_TESTED: package-level tests only -- must declare
|
|
10
|
-
``cert_owner == "package-impl"`` and must NOT cite a registry ``cam_id
|
|
12
|
+
``cert_owner == "package-impl"`` and must NOT cite a registry ``cam_id``
|
|
13
|
+
(use ``proposed_cam_id``).
|
|
11
14
|
* lever slots (``lever_id``) must declare ``cert_owner``:
|
|
12
15
|
"verification-physics" -> lever must be in the registry's levers;
|
|
13
16
|
"package-impl" -> lever must NOT be (no phantom registry claim).
|
|
@@ -43,16 +46,28 @@ def verify_contract_against_registry(contract: dict, registry: dict) -> list[str
|
|
|
43
46
|
for slot in contract.get("slots", []):
|
|
44
47
|
sid, status = slot["slot_id"], slot.get("cert_status", "")
|
|
45
48
|
cam, lever = slot.get("cam_id"), slot.get("lever_id")
|
|
46
|
-
if status in REGISTERED_STATUSES
|
|
47
|
-
|
|
49
|
+
if status in REGISTERED_STATUSES:
|
|
50
|
+
# Scope (documented): a SHIPPED slot claiming a registered status must cite
|
|
51
|
+
# a cam_id that exists in the registry with the same status. An UNSHIPPED
|
|
52
|
+
# slot is a future claim: a proposed_cam_id is exempt, but an ACTUAL cam_id
|
|
53
|
+
# is still a registry claim and must be valid (blocker 4).
|
|
54
|
+
if slot.get("shipped", True) is False:
|
|
55
|
+
if cam:
|
|
56
|
+
if cam not in cams:
|
|
57
|
+
issues.append(f"{sid}: cam_id {cam} ({status}) is absent from the Verification registry")
|
|
58
|
+
elif cams[cam] != status:
|
|
59
|
+
issues.append(f"{sid}: cam_id {cam} is {status} in contract but {cams[cam]} in registry")
|
|
60
|
+
elif not cam:
|
|
61
|
+
issues.append(f"{sid}: {status} slot must cite a registered cam_id")
|
|
62
|
+
elif cam not in cams:
|
|
48
63
|
issues.append(f"{sid}: cam_id {cam} ({status}) is absent from the Verification registry")
|
|
49
64
|
elif cams[cam] != status:
|
|
50
65
|
issues.append(f"{sid}: cam_id {cam} is {status} in contract but {cams[cam]} in registry")
|
|
51
66
|
elif status == "IMPL_TESTED":
|
|
52
67
|
if slot.get("cert_owner") != "package-impl":
|
|
53
68
|
issues.append(f"{sid}: IMPL_TESTED slot must set cert_owner='package-impl'")
|
|
54
|
-
if cam
|
|
55
|
-
issues.append(f"{sid}: IMPL_TESTED slot must
|
|
69
|
+
if cam:
|
|
70
|
+
issues.append(f"{sid}: IMPL_TESTED slot must use proposed_cam_id, not cam_id {cam}")
|
|
56
71
|
if lever:
|
|
57
72
|
owner = slot.get("cert_owner")
|
|
58
73
|
if owner not in CERT_OWNERS:
|