aien-architecture-mv
Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.
Brought by drakestapleton
aien-architecture-mv / CONTRIBUTING.md
| 1 | # Contributing to AIEN Architecture |
| 2 | |
| 3 | Architecture changes must answer four questions: |
| 4 | |
| 5 | 1. **Owner:** which subsystem owns the responsibility? |
| 6 | 2. **Boundary:** what typed protocol crosses into or out of it? |
| 7 | 3. **Failure:** what happens if the subsystem, Machine, network, provider, or model fails? |
| 8 | 4. **Evidence:** how can the behavior be tested and proven? |
| 9 | |
| 10 | ## Rules |
| 11 | |
| 12 | - Do not describe planned work as implemented. |
| 13 | - Use **Machine 1**, **Machine 2**, etc. in architecture diagrams. |
| 14 | - Hardware/vendor names belong only in capability examples. |
| 15 | - Distinguish Tool, Skill, World, Cortex, J-Space, policy, effect, and provenance. |
| 16 | - External irreversible effects must pass AEGIS and the Effect Broker. |
| 17 | - Models never own raw credentials. |
| 18 | - MCP is a compatibility transport under the Capability Graph, not the internal semantic model. |
| 19 | - New architectural decisions require an ADR. |
| 20 | - Changes to security boundaries require explicit negative tests. |
| 21 | - Claims about current code should name the repository/path or PR/commit that establishes them. |
| 22 | |
| 23 | ## ADR workflow |
| 24 | |
| 25 | Create `docs/adr/NNNN-short-title.md` containing: |
| 26 | |
| 27 | - Context |
| 28 | - Decision |
| 29 | - Alternatives considered |
| 30 | - Consequences |
| 31 | - Security implications |
| 32 | - Performance implications |
| 33 | - Migration plan |
| 34 | - Acceptance tests |
| 35 | |
| 36 | ## Architecture-gap workflow |
| 37 | |
| 38 | Open an issue when: |
| 39 | |
| 40 | - current code contradicts an ADR, |
| 41 | - two repositories claim ownership of the same canonical behavior, |
| 42 | - a required typed boundary does not exist, |
| 43 | - a bypass exists around policy/provenance, |
| 44 | - documentation refers to a component that no longer exists. |
| 45 | |
| 46 | ## Crumbs |
| 47 | |
| 48 | Retired from the active workflow (DRA-97, 2026-11-07). The `.crumb` files and `docs/crumbs/BACKFILL.md` stay as history; you do not need to read, compile or verify them before a change, and no gate checks them. The text below describes the protocol as it was. |
| 49 | |
| 50 | This repo uses the Crumb Protocol (RFC-0001). Each directory carries a `.crumb` file (what the directory is for, its rules, and a backfilled history). Agents on one machine may keep local scratch state in `.crumb.local`, which is never committed; coordination between agents goes through tracked claims and draft pull requests (see Scope in `docs/CRUMB_PROTOCOL.md`). |
| 51 | Before editing a directory, read its `.crumb`. Rules and the `crumb` tool: https://github.com/aien-spark/aien-architecture/blob/main/docs/CRUMB_PROTOCOL.md |
| 52 | Backfilled history (marked as such, not live whispers) is in `docs/crumbs/BACKFILL.md`. |