Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-architecture-mv/blob/main/docs/04-capabilities-skills-tools-mcp.md # aien-architecture-mv Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-architecture-mv / docs / 04-capabilities-skills-tools-mcp.md` 139 lines · 2668 bytes Raw Blame History Rendered 1 # Capabilities, Skills, Tools, and MCP 2 3 ## Definitions 4 5 ### Tool 6 Atomic capability. 7 8 Examples: 9 10 ```text 11 filesystem.read 12 filesystem.write 13 process.execute 14 git.diff 15 git.commit 16 mail.send 17 cortex.search 18 browser.navigate 19 ``` 20 21 ### Skill 22 Reusable procedure composed from tools, constraints, success conditions, and optional J-Space strategy. 23 24 Examples: 25 26 ```text 27 software.debug.rust 28 software.review.pull_request 29 research.deep 30 communication.answer_email 31 operations.release 32 ``` 33 34 ### Capability Graph 35 Authoritative semantic catalog describing: 36 37 - what a capability means, 38 - required tools/resources, 39 - possible effects, 40 - providers, 41 - compatible Machines, 42 - required credentials, 43 - policy constraints, 44 - cost/performance metadata. 45 46 ## Router pipeline 47 48 ```text 49 intent 50 → deterministic aliases 51 → metadata/tags 52 → lexical retrieval 53 → semantic retrieval 54 → small router model if needed 55 → J-Space if genuinely ambiguous 56 → hard constraint filter 57 → top-K candidates 58 ``` 59 60 A model should not receive thousands of schemas. 61 62 ## MCP role 63 64 MCP is one provider protocol under the Capability Graph. 65 66 ```text 67 Capability Graph 68 ├─ Native AIEN provider 69 ├─ MCP provider 70 ├─ WASM provider 71 ├─ Process provider 72 ├─ HTTP/OpenAPI provider 73 └─ Fabric remote provider 74 ``` 75 76 ## Session ownership 77 78 `aien-mcp` owns live MCP sessions. 79 80 J-Space receives immutable or versioned capability snapshots. 81 82 For irreversible tools: 83 84 ```text 85 J-Space 86 → stages intent 87 → winner selected 88 → OMEGA formalizes program 89 → PHYSICS lowers realization 90 → AEGIS verifies contract 91 → Effect Broker adapter 92 → aien-mcp effect driver 93 → MCP tools/call 94 ``` 95 96 For safe tools, J-Space may request execution through the speculation-safe lane. 97 98 ## Wire migration 99 100 Recommended sequence: 101 102 1. `McpWire` seam + in-memory provider. 103 2. Attach official Rust `rmcp`. 104 3. Add session manager/discovery snapshots. 105 4. Enforce effect classes. 106 5. Add vault-backed credential references. 107 6. Migrate `spark-debugger` and `spark-harness`. 108 109 ## Authorization type rule 110 111 Do not expose an unrestricted production constructor that lets arbitrary code mint `AuthorizedEffect`. 112 113 Production authority must be minted only by the policy path. 114 115 ```rust 116 EffectIntent 117 -> policy evaluation 118 -> AuthorizedEffect 119 ``` 120 121 Test fixtures may use an explicit test-only constructor. 122 123 ## Effect classification 124 125 Each tool declares its effects. 126 127 ```text 128 PURE 129 READ_FILESYSTEM 130 READ_NETWORK 131 SPAWN_PROCESS 132 LOCAL_EPHEMERAL 133 WORLD_MUTATION 134 EXTERNAL_WRITE 135 EXTERNAL_IRREVERSIBLE 136 SECRET_BEARING 137 ``` 138 139 J-Space can execute only speculation-safe effect classes. External writes are staged until commit.