Codexcoder commited on
Commit
e71e63b
·
verified ·
1 Parent(s): 6b2a07c

integration: add docs/production-readiness.md

Browse files
Files changed (1) hide show
  1. docs/production-readiness.md +57 -0
docs/production-readiness.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Production Readiness — Sovereign Stack
2
+
3
+ ## Gate
4
+
5
+ ```bash
6
+ python3 scripts/production_check.py # imports · routes · registries · tests · assets
7
+ ```
8
+
9
+ PASS = 5/5 checks. The gate runs as the `stage` step of the
10
+ [agent build/deploy workflow](../workflows/agent-build-deploy.yaml).
11
+
12
+ ## What is checked
13
+
14
+ | Check | Expectation |
15
+ |---|---|
16
+ | Imports | all module packages import cleanly (sovereign, kyrexis, pec5d, coldcase, chat) |
17
+ | API routes | kyrexis 19 · pec5d 22 · chat 5 (coldcase ≥ its suite) |
18
+ | Registries | `verify_registries.py` → ALL VALID |
19
+ | Tests | fast suite passes (140+) |
20
+ | Deploy assets | dockerfiles, compose, PWA (manifest/sw), chat/store pages, build scripts, proofs |
21
+
22
+ ## Configuration & env
23
+
24
+ | Env | Module | Purpose |
25
+ |---|---|---|
26
+ | `DEEPSEEK_API_BASE` / `DEEPSEEK_API_KEY` / `DEEPSEEK_MODEL` | chat | model endpoint (unset ⇒ local echo) |
27
+ | `KYREXIS_PAGE_ACCESS_TOKEN` | kyrexis | Messenger integration (unset ⇒ local mode) |
28
+ | `PULSE_LOCK` | sovereign | biometric admin gate (default off) |
29
+ | `HF_TOKEN` | deploy | dataset uploads (env-only, never persisted) |
30
+
31
+ ## Health endpoints
32
+
33
+ | App | Endpoint |
34
+ |---|---|
35
+ | Sovereign orchestrator | `/health` (src/sovereign/main.py) |
36
+ | KyrexisAI | `/health` (kyrexis/api/app.py, port 8001) |
37
+ | PEC5D | `/health` (pec5d/api/app.py, port 8002) |
38
+ | Chat | `/health` (chat/api/app.py, port 8003) |
39
+
40
+ ## Docker
41
+
42
+ - `docker/Dockerfile.kyrexis` + `docker-compose.kyrexis.yml`
43
+ - `docker-compose.coldcase.yml` (cold-case profile)
44
+ - Each module exposes its own port; the orchestrator serves all routers
45
+ on 8000.
46
+
47
+ ## Patches
48
+
49
+ Release track + continuous patches: see `docs/pec5d-releases.md`
50
+ (daily_resonance_patch, coherence_hotfix, pattern_security_update,
51
+ bio_interface_stability_patch).
52
+
53
+ ## Theory proofing
54
+
55
+ `proofs/theory_proofs.py` (P1–P7) + `tests/test_proofs.py` — internal
56
+ math consistency verified; honesty gate documented in
57
+ `proofs/README.md`.