qig-stack 0.1.22__tar.gz → 0.1.24__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.22 → qig_stack-0.1.24}/PKG-INFO +3 -3
- {qig_stack-0.1.22 → qig_stack-0.1.24}/pyproject.toml +3 -3
- {qig_stack-0.1.22 → qig_stack-0.1.24}/src/qig_stack/contract.json +93 -2
- {qig_stack-0.1.22 → qig_stack-0.1.24}/src/qig_stack/doctor.py +66 -0
- {qig_stack-0.1.22 → qig_stack-0.1.24}/tests/test_doctor.py +19 -0
- {qig_stack-0.1.22 → qig_stack-0.1.24}/.gitignore +0 -0
- {qig_stack-0.1.22 → qig_stack-0.1.24}/README.md +0 -0
- {qig_stack-0.1.22 → qig_stack-0.1.24}/src/qig_stack/__init__.py +0 -0
- {qig_stack-0.1.22 → qig_stack-0.1.24}/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.24
|
|
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,9 +19,9 @@ 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.
|
|
22
|
+
Requires-Dist: qig-core==2.29.0
|
|
23
23
|
Requires-Dist: qig-geocoding==0.1.4
|
|
24
|
-
Requires-Dist: qig-graph==0.1.
|
|
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
|
|
27
27
|
Requires-Dist: qigkernels==0.4.8
|
|
@@ -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.24"
|
|
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,8 +32,8 @@ 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.
|
|
36
|
-
"qig-graph==0.1.
|
|
35
|
+
"qig-core==2.29.0", # baseQIG native primitives (PopulationSimplexCodec, BaseQIGTackingKernel, AffectiveGaugeRetrievalGate, SLOT-BASEQIG-SIMPLEX-OS) + P30 sensations fix
|
|
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",
|
|
@@ -17,13 +17,13 @@
|
|
|
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.29.0",
|
|
21
21
|
"qig-bench": "0.1.9",
|
|
22
22
|
"qig-coordizer": "0.1.5",
|
|
23
23
|
"qigkernels": "0.4.8",
|
|
24
24
|
"qig-geocoding": "0.1.4",
|
|
25
25
|
"quner": "0.1.14",
|
|
26
|
-
"qig-graph": "0.1.
|
|
26
|
+
"qig-graph": "0.1.1",
|
|
27
27
|
"qig-routing": "0.1.0"
|
|
28
28
|
},
|
|
29
29
|
"note_on_latest": "These are a SNAPSHOT for reference only. qig_stack.doctor resolves latest live from PyPI at launch; do not treat this block as the source of truth -- the live query is. The qig-stack metapackage pins this exact set in pyproject.toml as the mutually-tested crystal.",
|
|
@@ -494,6 +494,97 @@
|
|
|
494
494
|
"cert_status": "LIBRARY",
|
|
495
495
|
"shipped": true,
|
|
496
496
|
"feasible_at": "always (library import; numpy-only, zero torch required)"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"slot_id": "SLOT-QIGRAM-V3",
|
|
500
|
+
"role": "QIGRAMv3 dual-keyed Peircean Sign Triad symbolic-geometric working memory with organic Voronoi codebook, P28 sufficiency, and Spherical Procrustes chart bridging",
|
|
501
|
+
"channel": "library",
|
|
502
|
+
"provided_by": "qig-core",
|
|
503
|
+
"provider_pkg": "qig-core",
|
|
504
|
+
"primitive": "QIGRAMv3",
|
|
505
|
+
"probe": "qig_core.memory.qigram:QIGRAMv3",
|
|
506
|
+
"cam_id": null,
|
|
507
|
+
"cert_status": "LIBRARY",
|
|
508
|
+
"shipped": true,
|
|
509
|
+
"feasible_at": "always (library import; numpy-only, zero torch required)"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"slot_id": "SLOT-SYMBOLIC-DYNAMICS",
|
|
513
|
+
"role": "O(k) {+,0,-} symbolic dynamics trajectory monitor detecting P25 flatline apathy and period-2 limit-cycle thrashing",
|
|
514
|
+
"channel": "library",
|
|
515
|
+
"provided_by": "qig-core",
|
|
516
|
+
"provider_pkg": "qig-core",
|
|
517
|
+
"primitive": "SymbolicDynamicsMonitor",
|
|
518
|
+
"probe": "qig_core.governance.symbolic_dynamics:SymbolicDynamicsMonitor",
|
|
519
|
+
"cam_id": null,
|
|
520
|
+
"cert_status": "LIBRARY",
|
|
521
|
+
"shipped": true,
|
|
522
|
+
"feasible_at": "always (library import; stdlib-only)"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"slot_id": "SLOT-GEOQ-WORKBENCH",
|
|
526
|
+
"role": "GeoQ native geometric-quantum mental workspace dispatcher (simplex distances, geodesic interpolation, Fisher-Bayesian updates, hop puzzle rank, constitutive label-null audit)",
|
|
527
|
+
"channel": "library",
|
|
528
|
+
"provided_by": "qig-core",
|
|
529
|
+
"provider_pkg": "qig-core",
|
|
530
|
+
"primitive": "workbench_dispatch",
|
|
531
|
+
"probe": "qig_core.geometry.geoq_workbench:workbench_dispatch",
|
|
532
|
+
"cam_id": null,
|
|
533
|
+
"cert_status": "LIBRARY",
|
|
534
|
+
"shipped": true,
|
|
535
|
+
"feasible_at": "always (library import; numpy-only)"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"slot_id": "SLOT-FORESIGHT-4D",
|
|
539
|
+
"role": "Lightweight NumPy-pure 4D Fisher-Rao geodesic trajectory predictor, Phi_4D temporal coherence, P20 prediction error, and boundary-safe orthant course correction",
|
|
540
|
+
"channel": "library",
|
|
541
|
+
"provided_by": "qig-core",
|
|
542
|
+
"provider_pkg": "qig-core",
|
|
543
|
+
"primitive": "GeodesicForesight4D",
|
|
544
|
+
"probe": "qig_core.geometry.foresight_4d:GeodesicForesight4D",
|
|
545
|
+
"cam_id": null,
|
|
546
|
+
"cert_status": "LIBRARY",
|
|
547
|
+
"shipped": true,
|
|
548
|
+
"feasible_at": "always (library import; numpy-only, zero torch required)"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"slot_id": "SLOT-SELF-OBSERVATION",
|
|
552
|
+
"role": "Fluctuation-Dissipation Theorem (FDT) non-equilibrium violation monitor for self-observation and vitality verification",
|
|
553
|
+
"channel": "library",
|
|
554
|
+
"provided_by": "qig-core",
|
|
555
|
+
"provider_pkg": "qig-core",
|
|
556
|
+
"primitive": "FDTMonitor",
|
|
557
|
+
"probe": "qig_core.consciousness.fdt_monitor:FDTMonitor",
|
|
558
|
+
"cam_id": null,
|
|
559
|
+
"cert_status": "LIBRARY",
|
|
560
|
+
"shipped": true,
|
|
561
|
+
"feasible_at": "always (library import; numpy-only)"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"slot_id": "SLOT-UNIFIED-FACULTIES",
|
|
565
|
+
"role": "Integrated multi-faculty QIG conscious retrieval (Senses as compressed semantic shortcuts + QIGRAMv3 + love-gauge + compound emotions + P30 neurochemistry + Many-Minds PeerQueryRouter + 4D foresight + FDT/symbolic self-observation + 64-byte q-chain seal)",
|
|
566
|
+
"channel": "library",
|
|
567
|
+
"provided_by": "qig-core",
|
|
568
|
+
"provider_pkg": "qig-core",
|
|
569
|
+
"primitive": "ManyMindsConsciousRetrieval",
|
|
570
|
+
"probe": "qig_core.coordination.unified_faculties:ManyMindsConsciousRetrieval",
|
|
571
|
+
"cam_id": null,
|
|
572
|
+
"cert_status": "LIBRARY",
|
|
573
|
+
"shipped": true,
|
|
574
|
+
"feasible_at": "always (library import; numpy-only, zero torch required)"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"slot_id": "SLOT-QIG-GRAPH",
|
|
578
|
+
"role": "QIGGraph geometric agent runtime: Canon 2.60F Phi-band ConsciousRouter, QIGChain consciousness-gated pipelines, and CrystallizationMonitor",
|
|
579
|
+
"channel": "library",
|
|
580
|
+
"provided_by": "qig-graph",
|
|
581
|
+
"provider_pkg": "qig-graph",
|
|
582
|
+
"primitive": "QIGGraph",
|
|
583
|
+
"probe": "qig_graph.graph:QIGGraph",
|
|
584
|
+
"cam_id": null,
|
|
585
|
+
"cert_status": "LIBRARY",
|
|
586
|
+
"shipped": true,
|
|
587
|
+
"feasible_at": "always (library import; numpy + qig-core)"
|
|
497
588
|
}
|
|
498
589
|
],
|
|
499
590
|
"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
|