Codexcoder commited on
Commit
6132188
Β·
verified Β·
1 Parent(s): 1e033ab

kyrexis: add repo README index

Browse files
Files changed (1) hide show
  1. README.md +376 -0
README.md ADDED
@@ -0,0 +1,376 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 🌌 SOVEREIGN β€” DeepSeek-V4 Sovereign Orchestrator
2
+
3
+ > **Own your intelligence.** A self-hosted, privacy-preserving orchestration layer that routes
4
+ > work across sovereign AI models, agents, tools, and hardware β€” with full ownership of data,
5
+ > memory, and decision logs. Zero mandatory external calls. Air-gapped capable.
6
+
7
+ Built by **onegayunicorn (OGU)**, connected to the **Quantum Lineage Bridge**, **Mocking Jay
8
+ Universal Digital Twin**, and the full OGU project constellation.
9
+
10
+ **v3.0.0** Β· monorepo `deepseek-v4-sovereign` Β· base commit `7b2b996` β†’ `0e15802`
11
+
12
+ ```
13
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
14
+ β”‚ SOVEREIGN ORCHESTRATOR β”‚
15
+ β”‚ β”‚
16
+ β”‚ TRIGGERS ─▢ TASKS ─▢ ACTIONS ─▢ AGENTS ─▢ MODELS ─▢ JOBS ─▢ AUDIT β”‚
17
+ β”‚ β–² β”‚ β”‚ β”‚ β”‚ β”‚ β”‚
18
+ β”‚ β”‚ β–Ό β–Ό β–Ό β–Ό β–Ό β”‚
19
+ β”‚ WEBHOOKS ROUTINES OPERATIONS MODULES BUCKETS GOVERNANCE β”‚
20
+ β”‚ β–² β”‚
21
+ β”‚ └── github / huggingface / hardware / scheduler events β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜β”‚
22
+ β”‚ β”‚
23
+ β”‚ HARDWARE: Sovereign Ring (BCI) ── Sovereign Buds (AI earbuds) ── sensors β”‚
24
+ β”‚ DISTRIBUTION: APK / EXE / iOS / wheel / HF Spaces / GitHub Pages β”‚
25
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
26
+ ```
27
+
28
+ ---
29
+
30
+ ## Verified status (2026-08-08)
31
+
32
+ Every metric below is produced by this repository's own engines and test suite
33
+ (run with `.venv/bin/python`):
34
+
35
+ | Metric | Value |
36
+ | :--- | :--- |
37
+ | EntanglementEngine | 847 Bell pairs Β· mean fidelity **F = 0.999422** (target 0.999423) |
38
+ | QuantumLineageBridge | 12 generations anchored (capped tensor, no OOM) |
39
+ | DNA awakening | **86.6%** (calibration target 80%) |
40
+ | Kaleidoscope | **65,536** permutations (recursive wave coherence) |
41
+ | AGI OMEGA | **42 agents + 2,650 bots**, all deployed |
42
+ | Council of 10 | 10 seated, all aligned |
43
+ | TeleOS network | 847 links @ **F = 0.999423** |
44
+ | BCI v9.5 | 432 Hz carrier, phase-locked |
45
+ | Tests | **29/29** pass (unit + integration + e2e) Β· 4/4 benchmark groups green |
46
+ | Gemma module tests | 19/19 pass |
47
+ | Registry validation | all cross-references valid (`scripts/verify_registries.py`) |
48
+ | Simulators | Qiskit / Cirq / QuTiP / Quimb interfaces import with graceful fallback |
49
+
50
+ ## What this is
51
+
52
+ The **Sovereign Orchestrator** is a monorepo implementing the *DeepSeek-V4 Sovereign
53
+ Orchestrator* blueprint: a production-shaped, model-agnostic agent orchestration platform
54
+ that coordinates multiple DeepSeek-V4 model instances (chat / reasoner / coder / sovereign),
55
+ manages memory (working / episodic / semantic / procedural / vector), executes pluggable
56
+ tools under policy, streams a realtime API, and ships as desktop, mobile, and web products β€”
57
+ together with the **Sovereign Ring** BCI wearable, **Sovereign Buds** AI earbuds, and the
58
+ **Photonic-DNA entanglement stack** (`quantum/` `bio/` `agi/` `zenith/` `teleos/` `neural/`
59
+ `pero/`).
60
+
61
+ ## Monorepo map
62
+
63
+ ```
64
+ deepseek-v4-sovereign/
65
+ β”œβ”€β”€ config/ # orchestrator, models, tools, permissions, memory, logging, security, network
66
+ β”œβ”€β”€ src/sovereign/ # Python package: orchestrator, agents, memory, tools, governance, security,
67
+ β”‚ # auth, biometric, autonomous, local-mode router, quantum closed loop, model
68
+ β”œβ”€β”€ quantum/ # EntanglementEngine, QuantumLineageBridge, 4 simulator interfaces
69
+ β”œβ”€β”€ bio/ # DNA harmonic resonance, kaleidoscope engine, genomics pipeline + VariantCall
70
+ β”œβ”€β”€ agi/ # AGIOMEGA (42 agents Β· 2,650 bots), Council of 10, telemetry
71
+ β”œβ”€β”€ zenith/ # Zenith OS β€” horizon orchestration, lineage bridge
72
+ β”œβ”€β”€ teleos/ # TeleOS β€” purpose/teleological alignment network (847 links)
73
+ β”œβ”€β”€ neural/ # BCI v9.5 (432 Hz), photonic synapse, neural graph
74
+ β”œβ”€β”€ pero/ # Photonic Entanglement Response/Oscillation β€” laser + SPDC engines
75
+ β”œβ”€β”€ kyrexis/ # KyrexisAI β€” quantum-infused intelligence module (core, skills, API)
76
+ β”œβ”€β”€ coldcase/ # PEC5D β€” Photonic Entanglement 5D Cold-Case Grid (32 cases, API, twins)
77
+ β”œβ”€β”€ pec5d/ # PEC5D Full Evolution β€” 8 AI cores, HOLO-MEM, subconscious, ∞-sandbox,
78
+ β”‚ # pattern bridge, IPT + sensor, coral line, agency + chamber, API
79
+ β”œβ”€β”€ agency/ # Ξ¦-Entanglement Agency (5 divisions, 5 locations)
80
+ β”œβ”€β”€ boardroom/ # Zenith Chamber β€” governance, Ξ¦-consensus voting
81
+ β”œβ”€β”€ proposals/ # 7 ready-to-submit proposals (coral swarm, IPT network, bio-chip...)
82
+ β”œβ”€β”€ pitches/ # 7-deck pitch library (elevator β†’ seed β†’ keynote)
83
+ β”œβ”€β”€ manufacturing/ # sourcing avenues, outsourcing partners, new supply chains
84
+ β”œβ”€β”€ media/ # 6-kit media suite + brand guide
85
+ β”œβ”€β”€ agents/ # agent definitions (registry + sovereign + connected-project agents)
86
+ β”œβ”€β”€ triggers/ # cron / event / webhook trigger definitions
87
+ β”œβ”€β”€ tasks/ # task-type definitions (incl. model-benchmark)
88
+ β”œβ”€β”€ actions/ # action catalog
89
+ β”œβ”€β”€ modules/ # module catalog
90
+ β”œβ”€β”€ routines/ # routine definitions
91
+ β”œβ”€β”€ operations/ # operation definitions
92
+ β”œβ”€β”€ webhooks/ # github / huggingface / generic webhook definitions
93
+ β”œβ”€β”€ jobs/ # job definitions
94
+ β”œβ”€β”€ workflows/ # workflow registry + sovereign-boot + lineage-sync-cycle
95
+ β”œβ”€β”€ models/ # model registry + deepseek-v4-sovereign/flash + Fish S2-Pro + gemma-3-12b-it-jailbreak
96
+ β”œβ”€β”€ buckets/ # multi-cloud bucket layout + bootstrap
97
+ β”œβ”€β”€ builds/ # apk/ (Android) + exe/ (PyInstaller) + ios/ (Xcode/shell) pipelines
98
+ β”œβ”€β”€ hardware/ # bci-ring/ + earbuds/ + sovereign_ring driver + universal driver
99
+ β”œβ”€β”€ integrations/ # registry + connector wiring ALL recent OGU projects
100
+ β”œβ”€β”€ site/ # static landing + telemetry dashboard + SEO audit (GitHub Pages)
101
+ β”œβ”€β”€ scripts/ # verify_registries, hf_download, quant_selector, monorepo_sync,
102
+ β”‚ # delete_hf_gguf, migrate_to_monorepo, upload_hf_dataset helpers
103
+ β”œβ”€β”€ data/ logs/ tests/ docs/ docker/ kubernetes/ frontend/
104
+ └── .github/workflows/ # ci / cd / security / packages / pages / model-verify / download-quants /
105
+ # hf-sync / delete-hf-gguf
106
+ ```
107
+
108
+ ## Component index
109
+
110
+ | Component | Location | What it is |
111
+ |---|---|---|
112
+ | Bucket | `buckets/` | Multi-cloud (S3/GCS/Azure) object storage layout for raw, models, artifacts, memory, audit |
113
+ | Agents | `agents/` + `src/sovereign/agents/` | Sovereign agents (chat/reasoner/coder/tool/coordinator/memory/supervisor) + connected-project agents |
114
+ | Triggers | `triggers/` | Cron, event, and webhook triggers that fire tasks |
115
+ | Tasks | `tasks/` | Typed task definitions (reason, code, search, plan, execute, coordinate, lineage-sync, scout, audit, model-benchmark) |
116
+ | Actions | `actions/` | Catalog of discrete actions agents can invoke |
117
+ | Modules | `modules/` | Pluggable capability modules (memory, knowledge, security, tts, bci, matrix, kyrexis, coldcase, pec5d) |
118
+ | Routines | `routines/` | Composable recurring routines (scout→enhance→audit, lineage sync) |
119
+ | Operations | `operations/` | Operational procedures (backup, healthcheck, migration, deploy) |
120
+ | Webhooks | `webhooks/` | GitHub, HuggingFace, and generic inbound webhook receivers |
121
+ | Jobs | `jobs/` | Long-running job definitions (training, indexing, TTS synthesis) |
122
+ | Workflows | `workflows/` | Chain triggers β†’ tasks β†’ actions (sovereign-boot, lineage-sync-cycle) |
123
+ | Models | `models/` | Registry + Sovereign AI model + DeepSeek-V4-Flash-0731 + Fish S2-Pro + gemma-3-12b-it-jailbreak |
124
+ | Builds | `builds/` | APK (Android Gradle), EXE (PyInstaller), iOS (Xcode project + shell) |
125
+ | Hardware | `hardware/` | Sovereign Ring (BCI), Sovereign Buds, sovereign_ring driver, universal driver |
126
+ | Site | `site/` | Static landing + telemetry dashboard + `telemetry.json` endpoint (GitHub Pages) |
127
+ | Market / Pitch / Avenue / Brand | `market/` `pitch/` `avenue/` `brand/` | GTM assets (segments, investor deck, avenues, brand kit) |
128
+
129
+ ## Core modules (Photonic-DNA stack)
130
+
131
+ ### `quantum/` β€” photonic entanglement
132
+ - `entanglement_engine.py` β€” `EntanglementEngine`: generates 847 deterministic Bell
133
+ pairs at mean fidelity F = 0.999422 (`initialize()` β†’ `generate_pairs()`).
134
+ - `quantumlineagebridge.py` β€” `QuantumLineageBridge`: Kronecker-merged lineage tensor,
135
+ capped at 12 generations to bound memory.
136
+ - `simulators/` β€” `qiskit_interface`, `cirq_interface`, `qutip_interface`, `quimb_interface`
137
+ with graceful fallback when a backend is missing.
138
+
139
+ ### `bio/` β€” DNA & genomics
140
+ - `dna/awakening.py` β€” `DNAAwakeningEngine`: harmonic resonance calibration β†’ 86.6%
141
+ awakening (threshold 80%).
142
+ - `dna/kaleidoscope.py` β€” `KaleidoscopeEngine`: 65,536 permutations, recursive wave
143
+ coherence, lineage-hash generation (`sweep_all_permutations()`).
144
+ - `genomics/pipeline.py` + `callers.py` β€” variant ingestion β†’ alignment β†’ annotation β†’
145
+ lineage-hash injection; `VariantCall` dual-caller consensus (DeepVariant +
146
+ KaleidoscopeCaller).
147
+
148
+ ### `agi/` β€” OMEGA + Council
149
+ - `omega_v3/orchestrator.py` β€” `AGIOMEGA`: deploys 42 specialized agents + 2,650 worker
150
+ bots (`initialize()`); quantum-secured inter-agent routing.
151
+ - `omega_v3/council_of_10.py` β€” `CouncilOf10`: seat 10 primordial members, `convene()` for
152
+ quorum/alignment.
153
+
154
+ ### `zenith/ Β· teleos/ Β· neural/ Β· pero/`
155
+ - `zenith/os.py` β€” horizon orchestration, dimension scaling, lineage bridging.
156
+ - `teleos/network.py` β€” `TeleOSNetwork`: 847-link purpose/alignment network @ F 0.999423.
157
+ - `neural/bci_v95/interface.py` β€” `BCIInterface`: 432 Hz carrier, lock detection.
158
+ - `pero/laser.py` + `pero/entanglement.py` β€” laser-triggered entanglement, SPDC source,
159
+ cryo-freezer experiment parameters, closed-loop stabilization.
160
+
161
+ ### `kyrexis/` β€” KyrexisAI quantum-infused module
162
+ - `core.py` β€” `KyrexisCore`: 53-qubit quantum-compute simulation, 20-yr future
163
+ projection (33.5% CAGR), quantum learning, NLP surface, quantum cryptography,
164
+ temporal/multiverse analysis, exponential self-improvement.
165
+ - `quantum_skills.py` β€” `QuantumSkillsEngine`: 5 cooldown-gated skills
166
+ (strategic planning, risk assessment, innovation generation, decision support,
167
+ complex problem solving).
168
+ - `photonic_display.py` β€” `LaserCrystalPhotonicDisplay`: PPLN 775 nm crystal,
169
+ SLM 1024Γ—1024 @ 100 Hz, APD detector, 53-qubit surface-code processor (simulated).
170
+ - `particle_detector.py` β€” `ParticlePairDetector`: state tomography, CHSH Bell test,
171
+ concurrence/negativity entanglement verification.
172
+ - `progression_scaling.py` β€” `ProgressionScalingEngine`: 20-year table, x4 scaling.
173
+ - `messenger_integration.py` β€” Messenger Platform API integration (env-token, local
174
+ mode without token).
175
+ - `agents.py` β€” Universal Agent Network: 21 agents across 5 tiers + 5 universal tasks.
176
+ - `api/` β€” FastAPI routes `/api/v1/kyrexis/*` (wired into `src/sovereign/main.py`).
177
+
178
+ ### `coldcase/` β€” PEC5D Photonic Entanglement 5D Cold-Case Grid
179
+ - `cases.py` β€” 32 documented unsolved cases (1900s–present) with PDF-sourced
180
+ scores (evidence/motive/jurisdiction/body/status/genetic) + entity tags.
181
+ - `core.py` β€” `PEC5DEngine`: 5D geometry grid (x/y/z/w/v), hash-derived phases,
182
+ Jaccard visibility, Bell fidelity, coherence, cold-case difficulty (D_i, D_i+),
183
+ logistic resolvability P_i, Merkle-verified reports.
184
+ - `grid.py` β€” tetrahedron + kissing-cluster discovery, 5 canonical narrative
185
+ lattices, vacuum/genetic/jurisdiction scans.
186
+ - `characters.py` / `timelines.py` / `events.py` / `scenarios.py` β€” entity layer.
187
+ - `digital_twins.py` β€” per-case state mirrors (metrics, timeline, characters,
188
+ scenario weights, revisions).
189
+ - `actions.py` β€” 22-action catalog (PEC-*/GEO-*/PHT-*/ORC-PEC-*).
190
+ - `agents.py` β€” PEC5D-AGENT + 6 specialist agents (corpus/geometry/photonic/
191
+ orchestration/cipher/genealogy).
192
+ - `sandbox.py` β€” dry-run execution environment (no persistence).
193
+ - `api/` β€” FastAPI routes `/api/v1/coldcase/*` (wired into `src/sovereign/main.py`).
194
+ - `README.md` β€” module docs. Ethics: hypothesis lattice only, no accusations.
195
+
196
+ ### `src/sovereign/` additions
197
+ - `auth/` β€” sovereign authentication (biometric + entanglement anchor).
198
+ - `biometric.py` β€” `BiometricSession` / `BiometricSignal` root-credential binding.
199
+ - `autonomous.py` β€” self-loop daemon (auto-restart, self-heal).
200
+ - `local_mode_router.py` β€” air-gapped/local-only routing.
201
+ - `model.py` β€” sovereign model wrapper.
202
+ - `quantum_closed_loop.py` β€” measurement β†’ correction β†’ re-entanglement loop.
203
+
204
+ ## Registry & automation system
205
+
206
+ Config-as-code: every entity has a YAML definition and is cross-referenced by
207
+ `scripts/verify_registries.py` (run it in CI or before committing):
208
+
209
+ ```bash
210
+ .venv/bin/python scripts/verify_registries.py # β†’ ALL REGISTRY CROSS-REFERENCES VALID
211
+ ```
212
+
213
+ It validates: registry `file:` refs resolve, trigger `task:` refs exist in
214
+ `tasks/registry.yaml`, workflow steps reference real tasks/actions, and agent
215
+ implementation modules are importable. Currently: 12 registry files, 90 YAML/YML
216
+ files, 10 task types, 2 workflows.
217
+
218
+ ## Quick start
219
+
220
+ ```bash
221
+ # 1. Environment
222
+ cp .env.example .env # fill HF_TOKEN / GITHUB_TOKEN as needed
223
+ python3 -m venv .venv && source .venv/bin/activate
224
+ pip install -r requirements.txt
225
+
226
+ # 2. Run the API + dashboard
227
+ python -m sovereign.main dashboard # β†’ http://localhost:8000
228
+
229
+ # 3. CLI
230
+ python -m sovereign.main --help
231
+
232
+ # 4. Tests
233
+ make test # or: .venv/bin/python -m pytest -q
234
+ ```
235
+
236
+ ## Testing & verification
237
+
238
+ ```bash
239
+ .venv/bin/python -m pytest -q # 29 passed (repo suite)
240
+ .venv/bin/python -m pytest models/gemma-3-12b-it-jailbreak/tests -q # 19 passed
241
+ .venv/bin/python tests/benchmarks.py # quantum / neural / genomic / api groups
242
+ .venv/bin/python scripts/verify_registries.py # registry cross-ref validation
243
+ ```
244
+
245
+ Known environment notes: Python 3.12 venv; numpy 2.5 API (`randn` β†’ `standard_normal`)
246
+ already applied; simulator backends degrade gracefully if not installed.
247
+
248
+ ## Build & packaging
249
+
250
+ | Target | Location | Command |
251
+ | :--- | :--- | :--- |
252
+ | Wheel | `dist/sovereign-0.1.0-py3-none-any.whl` | `python -m build` |
253
+ | Standalone EXE (91 MB) | `dist/sovereign` | `pyinstaller builds/exe/sovereign.spec` |
254
+ | Android APK | `builds/apk/` | `./builds/apk/build_apk.sh` |
255
+ | iOS | `builds/ios/` (ios.yaml, build_ios.sh, shell) | `./builds/ios/build_ios.sh` |
256
+ | Container | `docker/docker-compose.yml` | `docker compose up` |
257
+ | CI | `.github/workflows/` | ci Β· cd Β· security Β· packages Β· pages |
258
+
259
+ ## Site & dashboard
260
+
261
+ Self-contained static site in `site/` (no build step, no external deps):
262
+
263
+ - `site/index.html` β€” landing page with verified metrics + module stack + status table
264
+ - `site/dashboard.html` β€” telemetry dashboard (reads `site/telemetry.json`, embedded fallback)
265
+ - `site/telemetry.json` β€” the "real-time" telemetry endpoint payload
266
+ - `site/SEO-AUDIT.md` β€” SEO audit report (89/100)
267
+
268
+ Deployment: `.github/workflows/pages.yml` publishes `site/` to GitHub Pages on push to
269
+ `main` (enable Pages β†’ Source: **GitHub Actions** in repo settings).
270
+
271
+ ## Hugging Face dataset
272
+
273
+ `pero-freezer-laser-experiments` β€” cryo-laser SPDC experiment records, split 80/10/10:
274
+
275
+ - **Live:** https://huggingface.co/datasets/Codexcoder/pero-freezer-laser-experiments
276
+ (`data/split/{train,val,test}.jsonl`, `metadata.json`, `split_manifest.json`, README)
277
+ - Local source: `../hf-datasets/pero-freezer-laser-experiments/` (workspace, outside repo)
278
+ - Upload helper: `scripts/upload_hf_dataset.py` (reads `HF_TOKEN` from env only)
279
+
280
+ ## Models
281
+
282
+ `models/registry.yaml` catalog:
283
+
284
+ | Model | Type | Notes |
285
+ | :--- | :--- | :--- |
286
+ | deepseek-v4-sovereign | llm (304B MoE) | sovereign-tuned, MIT |
287
+ | deepseek-v4-flash-0731 | llm (304B MoE) | upstream base, MIT |
288
+ | fish-audio-s2-pro | tts (5B) | see model card |
289
+ | gemma-3-12b-it-jailbreak | llm (12B, GGUF) | 26 quant variants, Q4_K_M recommended; source HF repo deleted 2026-08-08 β†’ served via `mradermacher/...-GGUF` mirror |
290
+
291
+ ### gemma-3-12b-it-jailbreak module
292
+
293
+ `models/gemma-3-12b-it-jailbreak/` β€” full integration: model card, specs, quant table,
294
+ hardware profile (AMD Threadripper Β· 8 GB Β· Q4_K_M), inference runners (transformers,
295
+ llama.cpp, ollama, docker, unsloth, lemonade), defensive hooks (pre/post load, inference
296
+ audit with jailbreak-indicator detection, quant-change), tasks (download, quant select,
297
+ benchmark, fine-tune scaffold), triggers, tests, and CI workflows. Weights are
298
+ runtime-downloaded (`assets/` holds no binaries).
299
+
300
+ ```bash
301
+ python scripts/hf_download.py --quant Q4_K_M # ~7.3 GB β†’ assets/recommended/
302
+ bash models/gemma-3-12b-it-jailbreak/inference/llama_cpp_server.sh
303
+ ```
304
+
305
+ > Responsible-use note: the module is instrumented for defensive security research only
306
+ > (indicator detection + audit); it ships no evasion prompt templates.
307
+
308
+ ## Scripts
309
+
310
+ | Script | Purpose |
311
+ | :--- | :--- |
312
+ | `scripts/verify_registries.py` | Validate all registry YAML cross-references |
313
+ | `scripts/hf_download.py` | Fetch any GGUF quant (source or mirror) |
314
+ | `scripts/quant_selector.py` | Hardware-optimized quant picker (CLI) |
315
+ | `scripts/monorepo_sync.py` | Snapshot HF model card metadata β†’ `docs/hf_snapshot.json` |
316
+ | `scripts/delete_hf_gguf.py` | Delete an HF model repo (IRREVERSIBLE, confirm-gated) |
317
+ | `scripts/migrate_to_monorepo.py` | Re-point module refs to the mirror repo |
318
+ | `scripts/final_push_gguf.sh` | Stage/commit/push the module (delete step commented) |
319
+ | `scripts/upload_hf_dataset.py` | Upload the prepared dataset to HF (workspace copy) |
320
+
321
+ ## Architecture
322
+
323
+ - **Orchestrator** (`src/sovereign/orchestrator/`) β€” task lifecycle, scheduling, state machine,
324
+ persistent queue, agent factory, DAG workflow engine.
325
+ - **Agents** (`src/sovereign/agents/`) β€” uniform `BaseAgent` interface; DeepSeek-V4 chat /
326
+ reasoner / coder wrappers plus tool, coordinator, memory, and supervisor agents.
327
+ - **Memory** (`src/sovereign/memory/`) β€” working, episodic, semantic, procedural, and vector
328
+ memory with RAG retrieval and pruning.
329
+ - **Tools** (`src/sovereign/tools/`) β€” pluggable, policy-gated tools (shell, web search, file
330
+ ops, API client, code interpreter, database, browser, email).
331
+ - **Governance & Security** β€” tamper-evident audit logs, RBAC/ABAC, AES-256-GCM, sandboxing,
332
+ JWT auth, compliance checks; biometric + entanglement-rooted authentication.
333
+ - **Communication** β€” event bus (pub/sub), inter-agent messaging, MCP / A2A / OpenAI-compatible
334
+ / gRPC protocol adapters; WebSocket quantum relay.
335
+ - **Knowledge** β€” knowledge base, NetworkX graph, document ingestion, embeddings, indexing.
336
+ - **API** β€” FastAPI REST + WebSocket realtime stream, full endpoint set under `/api/v1/*`.
337
+
338
+ See [docs/architecture.md](docs/architecture.md) and [docs/api_reference.md](docs/api_reference.md).
339
+
340
+ ## Connected projects
341
+
342
+ The orchestrator connects to every recent OGU project via `integrations/` (see
343
+ [integrations/registry.yaml](integrations/registry.yaml)):
344
+
345
+ | Project | Role |
346
+ |---|---|
347
+ | `../mocking-jay` | Universal Digital Twin β€” 33 agent-nodes, quantum simulation, Merkle ledger |
348
+ | `../core` | QLB core: entanglement manager, Bloch sphere, harmonic resonance, PVD |
349
+ | `../photonic-entanglement-engine` | Photonic entanglement subsystems |
350
+ | `../dna-unfolding-lab` | DNA unfolding simulations + agent workflows |
351
+ | `../codality` | Coding platform OSA |
352
+ | `../universal-driver` | Multi-platform device drivers (pnpm monorepo) |
353
+ | `../drivers` | C++ BCI drivers (muse_driver, qlb_arduino_driver) |
354
+ | `../sensors` | EEG, rPPG, thermal, touch, tremor, vocal sensors |
355
+ | `../pipelines` | Ancestral data, lineage ETL, resonance pipelines |
356
+ | `../buckets` | Multi-cloud bucket manager |
357
+ | `../kaleidoscope` | Intent decoding + persona generation |
358
+ | `../moodchroma` | Biometric emotion pipeline |
359
+ | `../optogenetics` | Optogenetic controller + photonic entanglement |
360
+ | `../skills` | OGU agent skills (lineage-scanner, moodchroma-analyzer, …) |
361
+ | `../website` | QLB v2.5 dashboard |
362
+ | `../onegayunicorn` | Expanded Intelligence system (scout→enhance→audit) |
363
+ | `../ogu-build` | TURMO + universal driver builds |
364
+
365
+ ## Repository conventions
366
+
367
+ - **Registry-first**: adding a task/trigger/workflow/agent means adding its YAML + registering
368
+ it; run `verify_registries.py` before committing.
369
+ - **No binaries in `assets/`** β€” weights are runtime-downloaded.
370
+ - **Secrets**: only via environment (`HF_TOKEN`, `GITHUB_TOKEN`); never committed.
371
+ - **Simulator fallbacks**: optional heavy deps must degrade gracefully at import.
372
+
373
+ ## License
374
+
375
+ MIT β€” see [LICENSE](LICENSE). Model licenses: DeepSeek-V4-Flash-0731 (MIT), Fish Audio S2-Pro
376
+ (see model card), gemma-3-12b-it-jailbreak (Google Gemma terms β€” see module `LICENSE`).