File size: 1,513 Bytes
6b2a07c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Agent Build & Deployment — Guide

Covers building the agent fleet (registry + definitions), validating it,
and deploying across the four channels.

## 1. Build

```bash
python3 scripts/build_agents.py          # human report
python3 scripts/build_agents.py --json   # machine manifest
```

The builder:
- parses `agents/registry.yaml` + every `agents/*.agent.yaml`
- cross-checks registry↔file references (orphans flagged)
- reports per-agent: kind, workers, tasks, tools, triggers

## 2. Validate

```bash
python3 scripts/verify_registries.py     # modules/agents/triggers cross-refs
```

## 3. Test

```bash
.venv/bin/pytest tests/ -q --ignore=tests/test_72h_closed_loop.py
```

## 4. Stage

```bash
python3 scripts/production_check.py      # imports, routes, registries, health
```

## 5. Deploy (guarded)

| Channel | How | Gate |
|---|---|---|
| **Repo / GitHub** | `git push origin main` (CI builds APK/iOS/exe, releases) | human/chamber approval |
| **Site (GitHub Pages)** | `site/*.html` + PWA manifest + sw.js ship with the repo | push |
| **HuggingFace datasets** | `scripts/upload_kyrexis_dataset.py` / `upload_pec5d_dataset.py` | `HF_TOKEN` present |
| **Docker** | `docker-compose.yml` + per-module Dockerfiles | CI |

## 6. Rollback

- `git revert HEAD` for code/site; re-upload prior dataset revisions for HF.

## Agents currently in the fleet

`scripts/build_agents.py` lists them — includes the sovereign core agents,
the PEC5D `pec5d-agent` (9 workers), and the `coldcase-agent` group.