qig-stack 0.1.41__tar.gz → 0.1.43__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.
@@ -10,3 +10,4 @@ dist/
10
10
  venv/
11
11
  *.whl
12
12
  *.tar.gz
13
+ .venv-verify/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: qig-stack
3
- Version: 0.1.41
3
+ Version: 0.1.43
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,10 +16,10 @@ 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.10
20
- Requires-Dist: qig-compute==0.9.20
19
+ Requires-Dist: qig-bench==0.1.11
20
+ Requires-Dist: qig-compute==0.10.0
21
21
  Requires-Dist: qig-coordizer==0.2.0
22
- Requires-Dist: qig-core==2.40.0
22
+ Requires-Dist: qig-core==2.41.0
23
23
  Requires-Dist: qig-geocoding==0.3.3
24
24
  Requires-Dist: qig-graph==0.1.1
25
25
  Requires-Dist: qig-routing==0.2.0
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "qig-stack"
7
- version = "0.1.41"
7
+ version = "0.1.43"
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" }
@@ -30,12 +30,12 @@ classifiers = [
30
30
  # launch and fails closed if the installed venv is behind.
31
31
  dependencies = [
32
32
  "packaging>=22", # PEP 440-correct version comparison in the version gate
33
- "qig-compute==0.9.20", # checked full-basis Born response + sparse CSR/LinearOperator Born ingress (#74)
33
+ "qig-compute==0.10.0", # canonical CPU/GPU/NPU backend dispatch + batched Fisher-Rao + sparse eigensolve/expm (#81); auto-release publish-on-merge (#79)
34
34
  "qig-warp==0.6.12", # P1 dedup: canonical qig-core Fisher-Rao delegation, eps-preserving to_simplex, strict find_spec fallback
35
- "qig-core==2.40.0", # SimplexTRMRefiner P33 pedestal flattening & converged_undecided fixed-point halting (PR #154/#155)
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.10",
38
+ "qig-bench==0.1.11",
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.32W",
4
- "date": "2026-11-28",
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 \u2014 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 \u2014 qig-core 2.35.0 (hardened fail-closed PurityGate: sovereignty anti-cage lint with match/loop/exception-flow taint tracking; continuous adult 4D foresight \u2014 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.",
3
+ "version": "1.34W",
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 — 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.",
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",
@@ -15,10 +15,10 @@
15
15
  "rule": "installed == latest-published (PyPI) at every launch; installed < latest is a LAUNCH BLOCKER (fail-closed, non-zero exit).",
16
16
  "pin_exception": "Frozen reproducibility scripts keep pinned era-versions for bit-for-bit replay; this is never a reason to run a NEW launcher behind latest.",
17
17
  "stack_packages_latest_at_authoring": {
18
- "qig-compute": "0.9.20",
18
+ "qig-compute": "0.10.0",
19
19
  "qig-warp": "0.6.12",
20
- "qig-core": "2.40.0",
21
- "qig-bench": "0.1.10",
20
+ "qig-core": "2.41.0",
21
+ "qig-bench": "0.1.11",
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 \u2014 the entry-point must resolve to the named callable. shipped:false until the package republishes with it.",
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 \u2014 retired",
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 \u00a74.5)",
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": 47,
791
+ "slot_count": 54,
692
792
  "by_provider": {
693
793
  "None": 2,
694
- "qig-compute": 8,
794
+ "qig-compute": 13,
695
795
  "qig-warp": 3,
696
- "qig-core": 26,
796
+ "qig-core": 28,
697
797
  "qigkernels": 1,
698
798
  "qig-coordizer": 1,
699
799
  "qig-bench": 1,
@@ -93,3 +93,56 @@ def test_dependency_pins_match_contract_and_exclude_retired():
93
93
  policy = _load()["version_policy"]
94
94
  assert pins == policy["stack_packages_latest_at_authoring"]
95
95
  assert not set(policy["retired_packages"]) & pins.keys()
96
+
97
+
98
+ def test_slot_distribution_matches_slots():
99
+ from collections import Counter
100
+
101
+ data = _load()
102
+ dist = data["slot_distribution"]
103
+ actual = Counter(str(s.get("provider_pkg")) for s in data["slots"])
104
+ assert dist["slot_count"] == len(data["slots"])
105
+ assert dist["by_provider"] == dict(actual)
106
+
107
+
108
+ def test_all_shipped_slots_resolve_via_installed_entrypoints():
109
+ import importlib
110
+ import importlib.metadata as md
111
+
112
+ import pytest
113
+
114
+ from qig_stack import doctor
115
+
116
+ data = _load()
117
+ expected_pkgs = list(data["version_policy"]["stack_packages_latest_at_authoring"])
118
+ missing_pkgs = []
119
+ for pkg in expected_pkgs:
120
+ try:
121
+ md.distribution(pkg)
122
+ except md.PackageNotFoundError:
123
+ missing_pkgs.append(pkg)
124
+ if missing_pkgs:
125
+ pytest.skip(f"full stack not installed in this environment (missing: {', '.join(missing_pkgs)})")
126
+
127
+ eps = {ep.name: ep for ep in md.entry_points(group=data["entry_point_group"])}
128
+ declared = {name: ep.value for name, ep in eps.items()}
129
+ underfill, drift = doctor.check_entrypoint_wiring(
130
+ data["slots"],
131
+ declared,
132
+ require_activation=data.get("entry_point_gates", {}).get("require_activation", False),
133
+ )
134
+ assert underfill == [], f"under-filled slots: {underfill}"
135
+ assert drift == [], f"drifting entry points: {drift}"
136
+
137
+ for slot in data["slots"]:
138
+ if not slot.get("provider_pkg") or slot.get("shipped", True) is False:
139
+ continue
140
+ sid = slot["slot_id"]
141
+ assert sid in eps, f"{sid} missing from {data['entry_point_group']} entry points"
142
+ loaded_ep = eps[sid].load()
143
+ assert loaded_ep is not None, f"{sid} entry point {eps[sid].value!r} loaded None"
144
+
145
+ mod_name, _, attr = slot["probe"].partition(":")
146
+ mod = importlib.import_module(mod_name)
147
+ resolved_probe = getattr(mod, attr)
148
+ assert resolved_probe is not None, f"{sid} canonical probe {slot['probe']!r} resolved None"
@@ -158,12 +158,22 @@ def test_bundled_contract_corrections_and_multiplicity():
158
158
  split = c["cam_cert_splits"]["CAM-QFI-SITELOCAL"]
159
159
  assert split["impl_cert"] == "CERTIFIED"
160
160
  assert split["scientific_cert"] == "FAILED_OPT001_BANNED_KAPPA"
161
- # slot/provider distribution preserved exactly (47 slots incl. SLOT-4B-CONVERSION-STAGE)
161
+ # slot/provider distribution preserved exactly (54 slots incl. qig-compute 0.10.0 + qig-core 2.41.0)
162
162
  dist = c["slot_distribution"]
163
163
  assert "SLOT-4B-CONVERSION-STAGE" in by_id
164
- assert dist["slot_count"] == len(c["slots"]) == 47
165
- assert sum(dist["by_provider"].values()) == 47
166
- assert len(contract_registry.provider_distribution(c)) == 47
164
+ for sid in ("SLOT-COMPUTE-BACKEND", "SLOT-BATCH-FISHER-RAO", "SLOT-SPARSE-EIGEN"):
165
+ assert by_id[sid]["cert_status"] == "IMPL_TESTED"
166
+ assert by_id[sid]["cert_owner"] == "package-impl"
167
+ assert "cam_id" not in by_id[sid]
168
+ assert by_id[sid].get("impl_tests") and by_id[sid].get("caveat")
169
+ for sid in ("SLOT-LINALG", "SLOT-SIGNAL", "SLOT-PROJECTIVE-RAY-GEOMETRY", "SLOT-QGT-TENSOR-NORM"):
170
+ assert by_id[sid]["cert_status"] == "LIBRARY"
171
+ assert by_id[sid]["channel"] == "library"
172
+ assert by_id[sid]["shipped"] is True
173
+ assert by_id[sid]["cam_id"] is None
174
+ assert dist["slot_count"] == len(c["slots"]) == 54
175
+ assert sum(dist["by_provider"].values()) == 54
176
+ assert len(contract_registry.provider_distribution(c)) == 54
167
177
 
168
178
 
169
179
  # ───────────────────────── Test 2: sys.path shadow module must fail ─────────────────────────
File without changes