kyrexis: add docs/kyrexis.md
Browse files- docs/kyrexis.md +107 -0
docs/kyrexis.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# KyrexisAI β Module Documentation
|
| 2 |
+
|
| 3 |
+
Status: **integrated** (v1.0.0, 2026-08-08) Β· Registry: `modules/kyrexis-module.yaml`
|
| 4 |
+
|
| 5 |
+
## 1. Overview
|
| 6 |
+
|
| 7 |
+
KyrexisAI is the quantum-infused intelligence module of the Sovereign stack.
|
| 8 |
+
It implements the Kyrexis AI module spec (78-page module brief, 2026-08-08):
|
| 9 |
+
|
| 10 |
+
- **10 core features** β quantum computing, future knowledge, machine
|
| 11 |
+
learning, NLP, quantum cryptography, time-travel analysis, multiverse
|
| 12 |
+
exploration, exponential intelligence, neural-network optimization,
|
| 13 |
+
human-AI collaboration.
|
| 14 |
+
- **5 quantum skills** β strategic planning, risk assessment, innovation
|
| 15 |
+
generation, decision support, complex problem-solving.
|
| 16 |
+
- **Photonic entanglement display** β PPLN crystal (775 nm), SLM
|
| 17 |
+
(1024Γ1024 @ 100 Hz), APD detector (10β»ΒΉΒ² W), 53-qubit surface-code
|
| 18 |
+
processor.
|
| 19 |
+
- **Particle pair detector** β quantum state tomography, CHSH Bell tests,
|
| 20 |
+
concurrence/negativity verification.
|
| 21 |
+
- **20-year progression scaling** β 33.5% CAGR table with a Γ4 multiplier.
|
| 22 |
+
- **Messenger AI integration** β Messenger Platform API webhooks + send.
|
| 23 |
+
- **Universal Agent Network** β 21 named agents (Earth / Solar System /
|
| 24 |
+
Galactic / Cosmic / Meta) + 5 universal tasks.
|
| 25 |
+
|
| 26 |
+
## 2. Architecture
|
| 27 |
+
|
| 28 |
+
```
|
| 29 |
+
kyrexis/
|
| 30 |
+
βββ core.py KyrexisCore + KyrexisState (anchor constants)
|
| 31 |
+
βββ quantum_skills.py QuantumSkillsEngine (5 skills, cooldown-gated)
|
| 32 |
+
βββ messenger_integration.py KyrexisMessengerIntegration
|
| 33 |
+
βββ photonic_display.py LaserCrystalPhotonicDisplay
|
| 34 |
+
βββ particle_detector.py ParticlePairDetector
|
| 35 |
+
βββ progression_scaling.py ProgressionScalingEngine (Γ4)
|
| 36 |
+
βββ agents.py UniversalAgentNetwork (21 agents)
|
| 37 |
+
βββ api/
|
| 38 |
+
βββ routes.py FastAPI router /api/v1/kyrexis/*
|
| 39 |
+
βββ app.py Standalone FastAPI app (port 8001)
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
Wired into `src/sovereign/main.py` with a guarded include (same pattern as
|
| 43 |
+
the Reality Matrix router).
|
| 44 |
+
|
| 45 |
+
## 3. API reference
|
| 46 |
+
|
| 47 |
+
All endpoints are lazy β call `POST /api/v1/kyrexis/initialize` first;
|
| 48 |
+
other endpoints return 503 until then.
|
| 49 |
+
|
| 50 |
+
| Method | Path | Purpose |
|
| 51 |
+
|---|---|---|
|
| 52 |
+
| POST | `/initialize` | Boot core, skills, messenger, photonic, particle, progression |
|
| 53 |
+
| GET | `/status` | Core state (qubits, pairs, fidelity, awakening) |
|
| 54 |
+
| GET | `/quantum/state` | Quantum snapshot |
|
| 55 |
+
| POST | `/quantum/compute` | Quantum-superposition simulation on a vector |
|
| 56 |
+
| POST | `/predict` | 20-year forward projection |
|
| 57 |
+
| POST | `/self-improve` | One exponential-intelligence cycle |
|
| 58 |
+
| GET | `/skills` | Skill registry + cooldowns |
|
| 59 |
+
| POST | `/skills/{skill_id}` | Execute a quantum skill |
|
| 60 |
+
| POST | `/messenger/webhook` | Messenger webhook handler |
|
| 61 |
+
| POST | `/messenger/send` | Send a message (env token / local mode) |
|
| 62 |
+
| GET | `/photonic/display` | Display system state |
|
| 63 |
+
| POST | `/photonic/pulse` | Generate a 775 nm laser pulse (simulated) |
|
| 64 |
+
| GET | `/particle/state` | Detector state |
|
| 65 |
+
| POST | `/particle/detect` | Detect pair + verify entanglement |
|
| 66 |
+
| GET | `/progression/status` | 20-year table + summary |
|
| 67 |
+
| GET | `/progression/{year}` | Progression at year 1β20 |
|
| 68 |
+
| POST | `/progression/project` | Project a value with Γ4 scaling |
|
| 69 |
+
| GET | `/agents` | Universal Agent Network status |
|
| 70 |
+
| POST | `/agents/sync` | Network sync protocol (simulated) |
|
| 71 |
+
|
| 72 |
+
## 4. Configuration
|
| 73 |
+
|
| 74 |
+
`config/kyrexis.yaml` β core anchors, scaling params, photonic display
|
| 75 |
+
specs, messenger settings (token via `KYREXIS_PAGE_ACCESS_TOKEN` env),
|
| 76 |
+
skill gate, agent network flags.
|
| 77 |
+
|
| 78 |
+
## 5. Buckets (data plane)
|
| 79 |
+
|
| 80 |
+
`buckets/kyrexis-bucket.yaml` β 4 buckets: `kyrexis-state`,
|
| 81 |
+
`kyrexis-photonic`, `kyrexis-progression`, `kyrexis-messenger` (object
|
| 82 |
+
lock). Provisioned via `buckets/bucket_bootstrap.py`.
|
| 83 |
+
|
| 84 |
+
## 6. Deployment
|
| 85 |
+
|
| 86 |
+
- Local: `scripts/start_kyrexis.sh`
|
| 87 |
+
- Docker: `docker/Dockerfile.kyrexis` + `docker-compose.kyrexis.yml`
|
| 88 |
+
(core :8000, messenger, photonic services)
|
| 89 |
+
|
| 90 |
+
## 7. Verification
|
| 91 |
+
|
| 92 |
+
- Tests: `tests/test_kyrexis.py` β 21 tests (core anchors, skills +
|
| 93 |
+
cooldown, messenger local/webhook, photonic specs + loop, particle
|
| 94 |
+
tomography + Bell, progression anchors + projection, agent network,
|
| 95 |
+
API route surface).
|
| 96 |
+
- Full suite: `pytest tests/` (71 fast tests pass).
|
| 97 |
+
- Registry: `scripts/verify_registries.py` validates the `kyrexis`
|
| 98 |
+
module entry.
|
| 99 |
+
|
| 100 |
+
## 8. Engineering notes
|
| 101 |
+
|
| 102 |
+
- Quantum features are deterministic **simulations** (numpy), not real
|
| 103 |
+
quantum hardware β deployment needs no QPU.
|
| 104 |
+
- The spec's 368Γ 20-year headline is retained as a stated parameter;
|
| 105 |
+
the engine's honest CAGR math yields β323Γ for `(1.335)^20`.
|
| 106 |
+
- The Universal Agent Network and progression tables are product-level
|
| 107 |
+
planning surfaces, not physical predictions.
|