interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

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
6Atomic capability.
7
8Examples:
9
10```text
11filesystem.read
12filesystem.write
13process.execute
14git.diff
15git.commit
16mail.send
17cortex.search
18browser.navigate
19```
20
21### Skill
22Reusable procedure composed from tools, constraints, success conditions, and optional J-Space strategy.
23
24Examples:
25
26```text
27software.debug.rust
28software.review.pull_request
29research.deep
30communication.answer_email
31operations.release
32```
33
34### Capability Graph
35Authoritative 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
49intent
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
60A model should not receive thousands of schemas.
61
62## MCP role
63
64MCP is one provider protocol under the Capability Graph.
65
66```text
67Capability 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
80J-Space receives immutable or versioned capability snapshots.
81
82For irreversible tools:
83
84```text
85J-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
96For safe tools, J-Space may request execution through the speculation-safe lane.
97
98## Wire migration
99
100Recommended sequence:
101
1021. `McpWire` seam + in-memory provider.
1032. Attach official Rust `rmcp`.
1043. Add session manager/discovery snapshots.
1054. Enforce effect classes.
1065. Add vault-backed credential references.
1076. Migrate `spark-debugger` and `spark-harness`.
108
109## Authorization type rule
110
111Do not expose an unrestricted production constructor that lets arbitrary code mint `AuthorizedEffect<T>`.
112
113Production authority must be minted only by the policy path.
114
115```rust
116EffectIntent<T>
117 -> policy evaluation
118 -> AuthorizedEffect<T>
119```
120
121Test fixtures may use an explicit test-only constructor.
122
123## Effect classification
124
125Each tool declares its effects.
126
127```text
128PURE
129READ_FILESYSTEM
130READ_NETWORK
131SPAWN_PROCESS
132LOCAL_EPHEMERAL
133WORLD_MUTATION
134EXTERNAL_WRITE
135EXTERNAL_IRREVERSIBLE
136SECRET_BEARING
137```
138
139J-Space can execute only speculation-safe effect classes. External writes are staged until commit.