integration: add docs/agent-deployment.md
Browse files- docs/agent-deployment.md +52 -0
docs/agent-deployment.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Agent Build & Deployment — Guide
|
| 2 |
+
|
| 3 |
+
Covers building the agent fleet (registry + definitions), validating it,
|
| 4 |
+
and deploying across the four channels.
|
| 5 |
+
|
| 6 |
+
## 1. Build
|
| 7 |
+
|
| 8 |
+
```bash
|
| 9 |
+
python3 scripts/build_agents.py # human report
|
| 10 |
+
python3 scripts/build_agents.py --json # machine manifest
|
| 11 |
+
```
|
| 12 |
+
|
| 13 |
+
The builder:
|
| 14 |
+
- parses `agents/registry.yaml` + every `agents/*.agent.yaml`
|
| 15 |
+
- cross-checks registry↔file references (orphans flagged)
|
| 16 |
+
- reports per-agent: kind, workers, tasks, tools, triggers
|
| 17 |
+
|
| 18 |
+
## 2. Validate
|
| 19 |
+
|
| 20 |
+
```bash
|
| 21 |
+
python3 scripts/verify_registries.py # modules/agents/triggers cross-refs
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
## 3. Test
|
| 25 |
+
|
| 26 |
+
```bash
|
| 27 |
+
.venv/bin/pytest tests/ -q --ignore=tests/test_72h_closed_loop.py
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
## 4. Stage
|
| 31 |
+
|
| 32 |
+
```bash
|
| 33 |
+
python3 scripts/production_check.py # imports, routes, registries, health
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
## 5. Deploy (guarded)
|
| 37 |
+
|
| 38 |
+
| Channel | How | Gate |
|
| 39 |
+
|---|---|---|
|
| 40 |
+
| **Repo / GitHub** | `git push origin main` (CI builds APK/iOS/exe, releases) | human/chamber approval |
|
| 41 |
+
| **Site (GitHub Pages)** | `site/*.html` + PWA manifest + sw.js ship with the repo | push |
|
| 42 |
+
| **HuggingFace datasets** | `scripts/upload_kyrexis_dataset.py` / `upload_pec5d_dataset.py` | `HF_TOKEN` present |
|
| 43 |
+
| **Docker** | `docker-compose.yml` + per-module Dockerfiles | CI |
|
| 44 |
+
|
| 45 |
+
## 6. Rollback
|
| 46 |
+
|
| 47 |
+
- `git revert HEAD` for code/site; re-upload prior dataset revisions for HF.
|
| 48 |
+
|
| 49 |
+
## Agents currently in the fleet
|
| 50 |
+
|
| 51 |
+
`scripts/build_agents.py` lists them — includes the sovereign core agents,
|
| 52 |
+
the PEC5D `pec5d-agent` (9 workers), and the `coldcase-agent` group.
|