|
| 1 | +# CAES Spec (v1.0.0) |
| 2 | + |
| 3 | +CAES = **Coordination and Execution Standard** for HUMMBL repos. |
| 4 | + |
| 5 | +This spec defines the minimum interoperability rules for: |
| 6 | +- Human operators |
| 7 | +- Cloud models (Codex/Claude/etc.) |
| 8 | +- Local models (Ollama) |
| 9 | +- Deterministic scripts (cron/launchd/CI) |
| 10 | + |
| 11 | +## 1) Non-Negotiables |
| 12 | + |
| 13 | +- **UTC timestamps only** in durable logs and bus entries. |
| 14 | +- **Append-only coordination**: do not edit or delete historical entries from the bus. |
| 15 | +- **Receipts-first**: if it cannot be supported by a command output, file path, or log line, it is not "done." |
| 16 | +- **Draft-only local inference**: local model output is advisory; terminal + CI are authoritative. |
| 17 | + |
| 18 | +## 2) Coordination Bus |
| 19 | + |
| 20 | +The coordination bus is a TSV file: |
| 21 | + |
| 22 | +`founder_mode/_state/coordination/messages.tsv` |
| 23 | + |
| 24 | +### Required columns (tab-separated) |
| 25 | + |
| 26 | +1. `timestamp_utc` (ISO-8601, e.g. `2026-02-08T22:00:00Z`) |
| 27 | +2. `from` |
| 28 | +3. `to` |
| 29 | +4. `type` (see below) |
| 30 | +5. `message` (single line; avoid secrets) |
| 31 | + |
| 32 | +### Recommended message types |
| 33 | + |
| 34 | +- `PROPOSAL`: intent before execution |
| 35 | +- `ACK`: acknowledgement of a directive |
| 36 | +- `STATUS`: progress update |
| 37 | +- `SITREP`: end-of-thread summary with receipts |
| 38 | +- `BLOCKED`: cannot proceed; include the blocker and evidence |
| 39 | +- `DECISION`: operator decision recorded |
| 40 | +- `QUESTION`: request for clarification |
| 41 | + |
| 42 | +### Tooling |
| 43 | + |
| 44 | +- Preferred writer: `tools/scripts/post_coordination_message.py` |
| 45 | +- Integrity monitor: `tools/scripts/monitor_coordination_bus.py` (agent: `claire`) |
| 46 | + |
| 47 | +## 3) Governance Guardrails |
| 48 | + |
| 49 | +- **Network / destructive ops** must be explicitly authorized by the operator. |
| 50 | +- If a repo ruleset requires **non-author approvals** but a shared identity blocks review, use **admin bypass** only when explicitly authorized and log it to the bus (`SITREP`). |
| 51 | +- Never paste secrets into the bus. If a receipt includes secrets, store it privately and post only the path and a redacted summary. |
| 52 | + |
| 53 | +## 4) Local Models (Ollama) |
| 54 | + |
| 55 | +- Local models are **OFFLINE ONLY** and **draft-only**. |
| 56 | +- All local-model runs should: |
| 57 | + - emit `PROPOSAL` before execution |
| 58 | + - store output under `founder_mode/state/local_models/` |
| 59 | + - emit `STATUS` with the output path and `SITREP` on completion |
| 60 | + |
| 61 | +## 5) Versioning and Canonical Distribution |
| 62 | + |
| 63 | +This repo is the canonical CAES source for HUMMBL. |
| 64 | + |
| 65 | +Downstream repos that adopt CAES SHOULD include: |
| 66 | +- `governance/CAES_SPEC.md` |
| 67 | +- `governance/CAES_VERSION` |
| 68 | +- `governance/CAES_CANONICAL.sha256` (sha256 pinned to canonical) |
| 69 | + |
| 70 | +Automation for distribution/verification lives in `tools/caes/`. |
0 commit comments