kyrexis: add kyrexis/README.md
Browse files- kyrexis/README.md +68 -0
kyrexis/README.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# KYREXIS AI — Quantum-Infused Intelligence Module
|
| 2 |
+
|
| 3 |
+
> KyrexisAI: a cutting-edge AI module infused with quantum skills and future
|
| 4 |
+
> knowledge — decision-making, problem-solving, and data analysis.
|
| 5 |
+
|
| 6 |
+
**Spec anchor:** 53 qubits · 847 entanglement pairs @ F=0.999423 ·
|
| 7 |
+
awakening 87.4% · 33.5% CAGR · ×4 progression scaling
|
| 8 |
+
|
| 9 |
+
## Modules
|
| 10 |
+
|
| 11 |
+
| Module | File | What it is |
|
| 12 |
+
|---|---|---|
|
| 13 |
+
| Core | `core.py` | `KyrexisCore` — quantum compute, future projection, ML, NLP, crypto, temporal/multiverse analysis, self-improvement |
|
| 14 |
+
| Quantum skills | `quantum_skills.py` | `QuantumSkillsEngine` — 5 cooldown-gated skills |
|
| 15 |
+
| Messenger | `messenger_integration.py` | Messenger Platform API integration (env-token, local mode) |
|
| 16 |
+
| Photonic display | `photonic_display.py` | PPLN crystal · SLM 1024×1024 · APD detector · 53-qubit processor (simulated) |
|
| 17 |
+
| Particle detector | `particle_detector.py` | Quantum state tomography, CHSH Bell test, concurrence/negativity |
|
| 18 |
+
| Progression scaling | `progression_scaling.py` | 20-year progression table with ×4 scaling |
|
| 19 |
+
| Agent network | `agents.py` | Universal Agent Network — 21 agents across 5 tiers |
|
| 20 |
+
| API | `api/routes.py` | FastAPI endpoints under `/api/v1/kyrexis/*` |
|
| 21 |
+
|
| 22 |
+
## Quick start
|
| 23 |
+
|
| 24 |
+
```bash
|
| 25 |
+
# Core
|
| 26 |
+
python3 -c "from kyrexis.core import KyrexisCore; KyrexisCore().initialize()"
|
| 27 |
+
|
| 28 |
+
# Skills
|
| 29 |
+
python3 -c "
|
| 30 |
+
from kyrexis.core import KyrexisCore
|
| 31 |
+
from kyrexis.quantum_skills import QuantumSkillsEngine
|
| 32 |
+
c = KyrexisCore().initialize()
|
| 33 |
+
print(QuantumSkillsEngine(c).execute_skill('decision_support', {'options': ['A','B','C']}))
|
| 34 |
+
"
|
| 35 |
+
|
| 36 |
+
# API (standalone)
|
| 37 |
+
uvicorn kyrexis.api.app:app --host 0.0.0.0 --port 8001
|
| 38 |
+
# → POST /api/v1/kyrexis/initialize (boots all subsystems)
|
| 39 |
+
# → GET /api/v1/kyrexis/status
|
| 40 |
+
# → GET /api/v1/kyrexis/progression/20
|
| 41 |
+
# → POST /api/v1/kyrexis/quantum/compute {"data": [1,2,3]}
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
The router is also wired into the Sovereign orchestrator
|
| 45 |
+
(`src/sovereign/main.py`, guarded) — the full stack serves
|
| 46 |
+
`/api/v1/kyrexis/*` on port 8000.
|
| 47 |
+
|
| 48 |
+
## Tests
|
| 49 |
+
|
| 50 |
+
```bash
|
| 51 |
+
.venv/bin/pytest tests/test_kyrexis.py -q # 21 tests
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
## Deployment
|
| 55 |
+
|
| 56 |
+
- `../scripts/start_kyrexis.sh` — boot every subsystem + API.
|
| 57 |
+
- `../docker/Dockerfile.kyrexis` + `../docker-compose.kyrexis.yml` — containerized core/messenger/photonic.
|
| 58 |
+
- `../buckets/kyrexis-bucket.yaml` — data-plane bucket layout (state/photonic/progression/messenger).
|
| 59 |
+
|
| 60 |
+
## Honest engineering notes
|
| 61 |
+
|
| 62 |
+
- All "quantum" operations are **simulations** (numpy models of gates,
|
| 63 |
+
entanglement, tomography). No real quantum hardware is required.
|
| 64 |
+
- Spec headline numbers that are mutually inconsistent (e.g. 33.5% CAGR
|
| 65 |
+
vs. the claimed 368× 20-year factor) are surfaced as parameters; the
|
| 66 |
+
engine computes `(1.335)^20 ≈ 323×` honestly.
|
| 67 |
+
- The Messenger integration requires `KYREXIS_PAGE_ACCESS_TOKEN`; without
|
| 68 |
+
it, it runs in local (record-only) mode.
|