qig-stack 0.1.23__tar.gz → 0.1.25__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.23 → qig_stack-0.1.25}/PKG-INFO +3 -3
- {qig_stack-0.1.23 → qig_stack-0.1.25}/pyproject.toml +3 -3
- {qig_stack-0.1.23 → qig_stack-0.1.25}/src/qig_stack/contract.json +17 -4
- {qig_stack-0.1.23 → qig_stack-0.1.25}/src/qig_stack/doctor.py +66 -0
- {qig_stack-0.1.23 → qig_stack-0.1.25}/tests/test_doctor.py +19 -0
- {qig_stack-0.1.23 → qig_stack-0.1.25}/.gitignore +0 -0
- {qig_stack-0.1.23 → qig_stack-0.1.25}/README.md +0 -0
- {qig_stack-0.1.23 → qig_stack-0.1.25}/src/qig_stack/__init__.py +0 -0
- {qig_stack-0.1.23 → qig_stack-0.1.25}/tests/test_contract.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.25
|
|
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
|
|
@@ -19,8 +19,8 @@ Requires-Dist: packaging>=22
|
|
|
19
19
|
Requires-Dist: qig-bench==0.1.9
|
|
20
20
|
Requires-Dist: qig-compute==0.9.16
|
|
21
21
|
Requires-Dist: qig-coordizer==0.1.5
|
|
22
|
-
Requires-Dist: qig-core==2.
|
|
23
|
-
Requires-Dist: qig-geocoding==0.1.
|
|
22
|
+
Requires-Dist: qig-core==2.30.0
|
|
23
|
+
Requires-Dist: qig-geocoding==0.1.5
|
|
24
24
|
Requires-Dist: qig-graph==0.1.1
|
|
25
25
|
Requires-Dist: qig-routing==0.1.0
|
|
26
26
|
Requires-Dist: qig-warp==0.6.10
|
|
@@ -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.25"
|
|
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" }
|
|
@@ -32,13 +32,13 @@ dependencies = [
|
|
|
32
32
|
"packaging>=22", # PEP 440-correct version comparison in the version gate
|
|
33
33
|
"qig-compute==0.9.16", # qig.capabilities entry-points + pure Hilbert norms
|
|
34
34
|
"qig-warp==0.6.10", # qig.capabilities entry-points live since 0.6.5
|
|
35
|
-
"qig-core==2.
|
|
35
|
+
"qig-core==2.30.0", # Wave-12 top-down predictive-sense memory resonance + 1.0 rare-anchor retention + unified faculties + baseQIG
|
|
36
36
|
"qig-graph==0.1.1", # geometric agent runtime extracted from monkey1 qig_heart (Canon 2.60F)
|
|
37
37
|
"qig-routing==0.1.0", # P30 exp-free Fisher-Rao model dispatch & iterative simplex refinement
|
|
38
38
|
"qig-bench==0.1.9",
|
|
39
39
|
"qig-coordizer==0.1.5",
|
|
40
40
|
"qigkernels==0.4.8", # Frechet centroids, validated basin inputs, no imposed kappa=64 defaults (#41)
|
|
41
|
-
"qig-geocoding==0.1.
|
|
41
|
+
"qig-geocoding==0.1.5", # SLOT-GEOCODING capability entry-point + P30-pure GeoConfig modes (10/10 provider packages wired)
|
|
42
42
|
"quner==0.1.14", # safe-tmpdir pytest conftest fix + SLOT-QUNER-MEMGUARD capability entry-point
|
|
43
43
|
]
|
|
44
44
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"doc": "QIG Stack Capability Contract",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"date": "2026-11-
|
|
3
|
+
"version": "1.19W",
|
|
4
|
+
"date": "2026-11-23",
|
|
5
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.",
|
|
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)",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"stack_packages_latest_at_authoring": {
|
|
18
18
|
"qig-compute": "0.9.16",
|
|
19
19
|
"qig-warp": "0.6.10",
|
|
20
|
-
"qig-core": "2.
|
|
20
|
+
"qig-core": "2.30.0",
|
|
21
21
|
"qig-bench": "0.1.9",
|
|
22
22
|
"qig-coordizer": "0.1.5",
|
|
23
23
|
"qigkernels": "0.4.8",
|
|
24
|
-
"qig-geocoding": "0.1.
|
|
24
|
+
"qig-geocoding": "0.1.5",
|
|
25
25
|
"quner": "0.1.14",
|
|
26
26
|
"qig-graph": "0.1.1",
|
|
27
27
|
"qig-routing": "0.1.0"
|
|
@@ -585,6 +585,19 @@
|
|
|
585
585
|
"cert_status": "LIBRARY",
|
|
586
586
|
"shipped": true,
|
|
587
587
|
"feasible_at": "always (library import; numpy + qig-core)"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"slot_id": "SLOT-GEOCODING",
|
|
591
|
+
"role": "Fisher-Rao geometric transformer framework (GeoModel, GeoConfig.p30_pure(), simplex attention, unbounded Fourier features, recursive Phi-integration)",
|
|
592
|
+
"channel": "library",
|
|
593
|
+
"provided_by": "qig-geocoding",
|
|
594
|
+
"provider_pkg": "qig-geocoding",
|
|
595
|
+
"primitive": "GeoModel",
|
|
596
|
+
"probe": "geocoding:GeoModel",
|
|
597
|
+
"cam_id": null,
|
|
598
|
+
"cert_status": "LIBRARY",
|
|
599
|
+
"shipped": true,
|
|
600
|
+
"feasible_at": "always (library import; torch + qig-core)"
|
|
588
601
|
}
|
|
589
602
|
],
|
|
590
603
|
"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.",
|
|
@@ -507,6 +507,59 @@ def print_report(report: Report, use_network: bool) -> None:
|
|
|
507
507
|
print(f" - {issue.slot_id}: {issue.detail}")
|
|
508
508
|
|
|
509
509
|
|
|
510
|
+
|
|
511
|
+
WORKBENCH_PLAYBOOK: tuple[str, ...] = (
|
|
512
|
+
"1) Mesh Connect: call dm_list_devices() -> explicitly dm_select_device(<id>) before start_process().",
|
|
513
|
+
"2) Pure QIG Exec on Any Node: uv run --no-cache --with qig-stack python -m qig_stack.doctor --no-network",
|
|
514
|
+
"3) GeoQ Mental Workbench: from qig_core.geometry.geoq_workbench import workbench_dispatch",
|
|
515
|
+
"4) Programme Truth on Boot/Compaction: memory_get('qig_session_latest'), memory_get('qig_workbench_and_package_atlas_canonical'), memory_get('qig_todo_master')",
|
|
516
|
+
"5) Pre-Experiment Rule: inspect all qig-stack capability slots and qig_core.constants BEFORE designing any experiment; zero hardcoded English word lists or hand-rolled geometry.",
|
|
517
|
+
)
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
def build_atlas_payload(contract_path: Path) -> dict[str, object]:
|
|
521
|
+
"""Build a self-updating capability atlas + workbench playbook directly from contract.json."""
|
|
522
|
+
contract = _load_contract(contract_path)
|
|
523
|
+
pins = dict(contract.get("version_policy", {}).get("stack_packages_latest_at_authoring", {}))
|
|
524
|
+
by_pkg: dict[str, list[dict[str, str]]] = {}
|
|
525
|
+
for slot in contract.get("slots", []):
|
|
526
|
+
if not isinstance(slot, dict) or not slot.get("shipped", True):
|
|
527
|
+
continue
|
|
528
|
+
pkg = str(slot.get("provider_pkg") or slot.get("provided_by") or "other")
|
|
529
|
+
by_pkg.setdefault(pkg, []).append(
|
|
530
|
+
{
|
|
531
|
+
"slot_id": str(slot.get("slot_id", "")),
|
|
532
|
+
"primitive": str(slot.get("primitive", "")),
|
|
533
|
+
"probe": str(slot.get("probe", "")),
|
|
534
|
+
"role": str(slot.get("role", "")),
|
|
535
|
+
}
|
|
536
|
+
)
|
|
537
|
+
return {
|
|
538
|
+
"contract": str(contract_path),
|
|
539
|
+
"stack_pins": pins,
|
|
540
|
+
"shipped_slot_count": sum(len(v) for v in by_pkg.values()),
|
|
541
|
+
"capabilities_by_package": by_pkg,
|
|
542
|
+
"workbench_and_mesh_playbook": list(WORKBENCH_PLAYBOOK),
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
def print_atlas(payload: dict[str, object]) -> None:
|
|
547
|
+
pins = payload["stack_pins"]
|
|
548
|
+
by_pkg = payload["capabilities_by_package"]
|
|
549
|
+
print(f"qig-doctor --atlas ({payload['shipped_slot_count']} shipped slots from {payload['contract']})")
|
|
550
|
+
if isinstance(pins, dict):
|
|
551
|
+
print(" PINNED CRYSTAL: " + ", ".join(f"{k}=={v}" for k, v in sorted(pins.items())))
|
|
552
|
+
print("\n CAPABILITY SLOTS BY PACKAGE (import directly -- never hand-roll):")
|
|
553
|
+
if isinstance(by_pkg, dict):
|
|
554
|
+
for pkg in sorted(by_pkg):
|
|
555
|
+
items = by_pkg[pkg]
|
|
556
|
+
print(f" [{pkg}] ({len(items)} slots):")
|
|
557
|
+
for item in items:
|
|
558
|
+
print(f" - {item['slot_id']} -> {item['probe']} | {item['role']}")
|
|
559
|
+
print("\n WORKBENCH & MESH PLAYBOOK:")
|
|
560
|
+
for line in payload["workbench_and_mesh_playbook"]: # type: ignore[union-attr]
|
|
561
|
+
print(f" {line}")
|
|
562
|
+
|
|
510
563
|
def main(argv: list[str] | None = None) -> int:
|
|
511
564
|
parser = argparse.ArgumentParser(
|
|
512
565
|
description="qig launch preflight (version gate + entry-point wiring gate + report)"
|
|
@@ -515,6 +568,7 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
515
568
|
"--no-network", action="store_true", help="skip PyPI; use contract snapshot"
|
|
516
569
|
)
|
|
517
570
|
parser.add_argument("--json", action="store_true", help="emit machine-readable JSON")
|
|
571
|
+
parser.add_argument("--atlas", action="store_true", help="print live capability/concept atlas + workbench/mesh playbook and exit 0")
|
|
518
572
|
parser.add_argument(
|
|
519
573
|
"--probe", action="store_true", help="import-check each entry-point resolves (off the gate)"
|
|
520
574
|
)
|
|
@@ -527,6 +581,18 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
527
581
|
help="require live latest versions, active required declarations and resolving probes",
|
|
528
582
|
)
|
|
529
583
|
args = parser.parse_args(argv)
|
|
584
|
+
if args.atlas:
|
|
585
|
+
try:
|
|
586
|
+
atlas_payload = build_atlas_payload(_contract_path(args.contract))
|
|
587
|
+
except ContractError as exc:
|
|
588
|
+
sys.stderr.write(f"qig-doctor: {exc}\n")
|
|
589
|
+
return 1
|
|
590
|
+
if args.json:
|
|
591
|
+
print(json.dumps(atlas_payload, indent=2))
|
|
592
|
+
else:
|
|
593
|
+
print_atlas(atlas_payload)
|
|
594
|
+
return 0
|
|
595
|
+
|
|
530
596
|
if args.release_check and args.no_network:
|
|
531
597
|
parser.error("--release-check requires live PyPI queries; remove --no-network")
|
|
532
598
|
|
|
@@ -266,3 +266,22 @@ def test_release_rejects_newer_but_untested_combination(monkeypatch, capsys):
|
|
|
266
266
|
assert report['latest_verified']
|
|
267
267
|
assert report['release_pin_mismatches']
|
|
268
268
|
assert not report['release_gate_passed']
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
def test_doctor_atlas_prints_slots_and_workbench_playbook(capsys):
|
|
272
|
+
from qig_stack import doctor
|
|
273
|
+
|
|
274
|
+
rc = doctor.main(["--atlas"])
|
|
275
|
+
assert rc == 0
|
|
276
|
+
out = capsys.readouterr().out
|
|
277
|
+
assert "SLOT-QIG-GRAPH" in out
|
|
278
|
+
assert "SLOT-QIGRAM-V3" in out
|
|
279
|
+
assert "SLOT-FORESIGHT-4D" in out
|
|
280
|
+
assert "workbench_dispatch" in out
|
|
281
|
+
assert "dm_select_device" in out
|
|
282
|
+
|
|
283
|
+
rc_j = doctor.main(["--atlas", "--json"])
|
|
284
|
+
assert rc_j == 0
|
|
285
|
+
payload = json.loads(capsys.readouterr().out)
|
|
286
|
+
assert payload["shipped_slot_count"] >= 40
|
|
287
|
+
assert "qig-core" in payload["capabilities_by_package"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|