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 / docs / 13-golden-path.md
| 1 | # Golden Path |
| 2 | |
| 3 | The release gate should exercise real boundaries, not mocked claims. |
| 4 | |
| 5 | ```mermaid |
| 6 | flowchart TD |
| 7 | U[User request] --> R[Runtime] |
| 8 | R --> SR[Skill Router] |
| 9 | SR --> CG[Capability Graph] |
| 10 | CG --> JS[J-Space] |
| 11 | JS --> F[Fabric] |
| 12 | F --> M[Selected Machine] |
| 13 | M --> I[Native Inference] |
| 14 | I --> T[ToolCall] |
| 15 | T --> A[AEGIS] |
| 16 | A --> EB[Effect Broker] |
| 17 | EB --> W[World Commit] |
| 18 | W --> P[Signed Provenance] |
| 19 | P --> C[Cortex] |
| 20 | C --> O[Streamed Result] |
| 21 | ``` |
| 22 | |
| 23 | ## Required assertions |
| 24 | |
| 25 | ### Inference |
| 26 | - real model identity, |
| 27 | - real tokenizer/template, |
| 28 | - no synthetic reference-weight fallback in production mode, |
| 29 | - streamed output. |
| 30 | |
| 31 | ### Fabric |
| 32 | - Machine capability selected by constraints, |
| 33 | - unavailable Machine excluded, |
| 34 | - lease/failover behavior tested. |
| 35 | |
| 36 | ### Skill/tool |
| 37 | - relevant subset retrieved, |
| 38 | - missing requirements filtered, |
| 39 | - effect class known before execution. |
| 40 | |
| 41 | ### MCP |
| 42 | - discovery snapshot, |
| 43 | - safe call allowed, |
| 44 | - irreversible call impossible from speculative API, |
| 45 | - `AuthorizedEffect` required for effect driver. |
| 46 | |
| 47 | ### Secrets |
| 48 | - raw secret absent from prompt, arguments, logs, receipts, World, Cortex, |
| 49 | - production env fallback rejected, |
| 50 | - Machine placement accounts for vault resolvability. |
| 51 | |
| 52 | ### Effects |
| 53 | - denied effect makes zero external driver calls, |
| 54 | - allowed effect executes once, |
| 55 | - ambiguous retry cannot duplicate irreversible action silently. |
| 56 | |
| 57 | ### World/provenance |
| 58 | - parent lineage, |
| 59 | - effect root, |
| 60 | - policy/build/model digests, |
| 61 | - signed receipt/commit verification, |
| 62 | - tampering fails. |
| 63 | |
| 64 | ### Cortex |
| 65 | - result/evidence stored through explicit ingress, |
| 66 | - inferred relationships remain candidates until promoted. |
| 67 | |
| 68 | ### Resource cleanup |
| 69 | - sequences reclaimed, |
| 70 | - KV blocks reclaimed, |
| 71 | - losing Worlds released, |
| 72 | - expired work leases recovered. |