File size: 2,858 Bytes
101767f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# KYREXIS AI — Quantum-Infused Intelligence Module

> KyrexisAI: a cutting-edge AI module infused with quantum skills and future
> knowledge — decision-making, problem-solving, and data analysis.

**Spec anchor:** 53 qubits · 847 entanglement pairs @ F=0.999423 ·
awakening 87.4% · 33.5% CAGR · ×4 progression scaling

## Modules

| Module | File | What it is |
|---|---|---|
| Core | `core.py` | `KyrexisCore` — quantum compute, future projection, ML, NLP, crypto, temporal/multiverse analysis, self-improvement |
| Quantum skills | `quantum_skills.py` | `QuantumSkillsEngine` — 5 cooldown-gated skills |
| Messenger | `messenger_integration.py` | Messenger Platform API integration (env-token, local mode) |
| Photonic display | `photonic_display.py` | PPLN crystal · SLM 1024×1024 · APD detector · 53-qubit processor (simulated) |
| Particle detector | `particle_detector.py` | Quantum state tomography, CHSH Bell test, concurrence/negativity |
| Progression scaling | `progression_scaling.py` | 20-year progression table with ×4 scaling |
| Agent network | `agents.py` | Universal Agent Network — 21 agents across 5 tiers |
| API | `api/routes.py` | FastAPI endpoints under `/api/v1/kyrexis/*` |

## Quick start

```bash
# Core
python3 -c "from kyrexis.core import KyrexisCore; KyrexisCore().initialize()"

# Skills
python3 -c "
from kyrexis.core import KyrexisCore
from kyrexis.quantum_skills import QuantumSkillsEngine
c = KyrexisCore().initialize()
print(QuantumSkillsEngine(c).execute_skill('decision_support', {'options': ['A','B','C']}))
"

# API (standalone)
uvicorn kyrexis.api.app:app --host 0.0.0.0 --port 8001
# → POST /api/v1/kyrexis/initialize  (boots all subsystems)
# → GET  /api/v1/kyrexis/status
# → GET  /api/v1/kyrexis/progression/20
# → POST /api/v1/kyrexis/quantum/compute {"data": [1,2,3]}
```

The router is also wired into the Sovereign orchestrator
(`src/sovereign/main.py`, guarded) — the full stack serves
`/api/v1/kyrexis/*` on port 8000.

## Tests

```bash
.venv/bin/pytest tests/test_kyrexis.py -q        # 21 tests
```

## Deployment

- `../scripts/start_kyrexis.sh` — boot every subsystem + API.
- `../docker/Dockerfile.kyrexis` + `../docker-compose.kyrexis.yml` — containerized core/messenger/photonic.
- `../buckets/kyrexis-bucket.yaml` — data-plane bucket layout (state/photonic/progression/messenger).

## Honest engineering notes

- All "quantum" operations are **simulations** (numpy models of gates,
  entanglement, tomography). No real quantum hardware is required.
- Spec headline numbers that are mutually inconsistent (e.g. 33.5% CAGR
  vs. the claimed 368× 20-year factor) are surfaced as parameters; the
  engine computes `(1.335)^20 ≈ 323×` honestly.
- The Messenger integration requires `KYREXIS_PAGE_ACCESS_TOKEN`; without
  it, it runs in local (record-only) mode.