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 Source # Capabilities, Skills, Tools, and MCP ## Definitions ### Tool Atomic capability. Examples: ``` filesystem.read filesystem.write process.execute git.diff git.commit mail.send cortex.search browser.navigate ``` ### Skill Reusable procedure composed from tools, constraints, success conditions, and optional J-Space strategy. Examples: ``` software.debug.rust software.review.pull_request research.deep communication.answer_email operations.release ``` ### Capability Graph Authoritative semantic catalog describing: - what a capability means, - required tools/resources, - possible effects, - providers, - compatible Machines, - required credentials, - policy constraints, - cost/performance metadata. ## Router pipeline ``` intent → deterministic aliases → metadata/tags → lexical retrieval → semantic retrieval → small router model if needed → J-Space if genuinely ambiguous → hard constraint filter → top-K candidates ``` A model should not receive thousands of schemas. ## MCP role MCP is one provider protocol under the Capability Graph. ``` Capability Graph ├─ Native AIEN provider ├─ MCP provider ├─ WASM provider ├─ Process provider ├─ HTTP/OpenAPI provider └─ Fabric remote provider ``` ## Session ownership `aien-mcp` owns live MCP sessions. J-Space receives immutable or versioned capability snapshots. For irreversible tools: ``` J-Space → stages intent → winner selected → OMEGA formalizes program → PHYSICS lowers realization → AEGIS verifies contract → Effect Broker adapter → aien-mcp effect driver → MCP tools/call ``` For safe tools, J-Space may request execution through the speculation-safe lane. ## Wire migration Recommended sequence: - `McpWire` seam + in-memory provider. - Attach official Rust `rmcp`. - Add session manager/discovery snapshots. - Enforce effect classes. - Add vault-backed credential references. - Migrate `spark-debugger` and `spark-harness`. ## Authorization type rule Do not expose an unrestricted production constructor that lets arbitrary code mint `AuthorizedEffect`. Production authority must be minted only by the policy path. ``` EffectIntent -> policy evaluation -> AuthorizedEffect ``` Test fixtures may use an explicit test-only constructor. ## Effect classification Each tool declares its effects. ``` PURE READ_FILESYSTEM READ_NETWORK SPAWN_PROCESS LOCAL_EPHEMERAL WORLD_MUTATION EXTERNAL_WRITE EXTERNAL_IRREVERSIBLE SECRET_BEARING ``` J-Space can execute only speculation-safe effect classes. External writes are staged until commit.