Metis - alexar76/aicom GitHub Wiki

Metis — cognition & verification tier

Metis (Îŧáŋ†Ī„ÎšĪ‚) is the ecosystem's distributed cognitive layer over any LLM — Understanding Council → fail-closed confidence gate → layered Mixture-of-Agents → grounded verifier. It returns a machine-readable verification envelope (verify_score, verified, optional needs_clarification).

Live demo: metis.modelmarket.dev ¡ 3D landing: alexar76.github.io/metis ¡ Source: github.com/alexar76/metis ¡ PyPI: aimarket-metis ¡ Factory integration: docs/metis-integration.md


Why Metis matters in AICOM

Layer Role
Oracles Verifiable math primitives (randomness, VDF, reputation, â€Ļ)
Metis Verifiable cognition — multi-agent reasoning + confidence gate on natural-language decisions
AI-Factory Produces products; optionally calls Metis on high-stakes stages (architect, methodologist)
ARGUS Demand-side agent; can consume Metis + MCP tools like any other host

Hard invariant: factory and Metis are independent. Missing Metis → factory runs unchanged (fail-open gate). Missing factory → Metis serves /v1/* normally.


Factory integration (optional gate)

High-stakes pipeline stages can POST to Metis /v1/verify via llm/metis_gate.py (HTTP only — never imports metis).

export METIS_URL=https://metis.internal:8080   # default http://127.0.0.1:8080
export AIFACTORY_METIS_GATE=auto               # auto | on | off (default auto)
export AIFACTORY_METIS_GATE_BLOCK=0          # 1 = allow low-confidence to escalate

Full env table + sequence diagrams: docs/metis-integration.md ¡ RU ¡ ES ¡ FR ¡ ZH


MCP tools (Metis as consumer)

Metis agents can attach ecosystem MCP servers via presets:

Preset Server Tools
aimarket-oracle-gateway aimarket-oracle-gateway 35 verifiable oracle tools
aimarket-web aimarket-mcp web_fetch, web_search, metis_verify (SSRF-hardened)
enable_mcp_tools: true
mcp_ecosystem_presets:
  - aimarket-oracle-gateway
  - aimarket-web

aimarket-mcp — shared MCP gateway (stdio on Glama, HTTP self-host). Written once; consumed by Metis, ARGUS, and any stdio/HTTP MCP host.

Metis-side doc: metis/docs/en/ECOSYSTEM.md


Alien Monitor

Metis appears as the cognition node in Alien Monitor — live stats + in-graph chat proxied server-side (POST /api/metis/chat) so API keys never reach the browser.


Quick start (standalone)

git clone https://github.com/alexar76/metis.git && cd metis
pip install -e ".[dev,distributed]"
metis-serve --port 8080
# OpenAPI: /v1/verify ¡ /v1/chat/completions ¡ /aimarket/invoke

Docker: docker compose up -d in the metis repo.


Related