Sokrates Implementation Status

What exists, what’s designed, and what’s still research. Updated after each major milestone.

Context: The Technical Architecture Whitepaper describes the full vision. This page tracks which parts of that vision have working code.


Status Legend

StatusMeaning
ShippedIn production or running on dev box. Code exists, tests pass.
In ProgressActive development. Partial implementation exists.
DesignedArchitecture defined in wiki/whitepaper. No implementation code.
ResearchExploratory. May inform future architecture but no commitment to build.

Core Type System (Hyle)

ComponentStatusCode LocationNotes
BaseNode base classShippedeidos/src/eidos/domain/models/hyle.pyUUID id, timestamps, source provenance, Neo4j serialization
HyleMeta metaclassShippedeidos/src/eidos/domain/models/hyle.pyExtends Pydantic ModelMetaclass, fail-at-construction registration
NodeRegistryShippedeidos/src/eidos/domain/models/hyle.pyLiving registry with versioning, observer hooks, dynamic discriminated union
@node decoratorShippedeidos/src/eidos/domain/models/hyle.pyGraph labels, indexes, constraints, repository binding, source provenance
Four primitives (Entity, Process, Law, Observation)Shippedeidos/src/eidos/domain/models/primitives.pyAll four with correct fields and embedding support
Typed edges (ParticipatesIn, Constrains, Evidences, etc.)Shippedeidos/src/eidos/domain/models/edges.py7 edge types with discriminated union, Neo4j serialization (neo4j_type(), to_neo4j_properties())
_defer_registration for abstract intermediariesShippedeidos/src/eidos/domain/models/hyle.pyPrevents abstract classes from polluting registry

Knowledge Graph (Eidos API)

ComponentStatusCode LocationNotes
FastAPI application with lifespan managementShippedeidos/src/eidos/main.pyNeo4j + embeddings init. Redis and OAuth removed in April 2026 refactor.
Health endpointShippedeidos/src/eidos/api/endpoints/core.pyNeo4j connectivity check
Unified Query DSL (POST /query)Shippedeidos/src/eidos/api/endpoints/unified_query.pyFull QueryDSL with specs, similarity, relationships, debug mode. Consolidated from 6 endpoints.
NodeRepository[T] generic repositoryShippedeidos/src/eidos/infrastructure/repositories/memory.pypersist/find/get/delete/persist_many/exists/count with type safety
EdgeRepository typed edge CRUDShippedeidos/src/eidos/infrastructure/repositories/edges.pyrelate/relate_many/find/get/delete for BaseEdge subtypes
EdgeQueries centralized CypherShippedeidos/src/eidos/infrastructure/neo4j/queries.pyMERGE, find, get, delete for typed relationships
Specification patternShippedeidos/src/eidos/domain/specifications/Composable predicates with Cypher generation
Cypher query builder (fluent, state-machine validated)Shippedeidos/src/eidos/infrastructure/neo4j/query_builder/PatternBuilder, LiteralString safety, clause sequencing
Filter compilerShippedeidos/src/eidos/infrastructure/neo4j/filter_compiler.pyOperators, logical groups, null checks
Neo4j vector index managementShippedeidos/src/eidos/infrastructure/neo4j/driver.py1024-dim eidos_embeddings index, legacy migration
MCP integrationShippedeidos/pyproject.tomlfastapi-mcp dependency present
ComponentStatusCode LocationNotes
Voyage AI embedding serviceShippedeidos/src/eidos/infrastructure/embeddings/voyage.pyCircuit breaker, retry, batch support
Embedding cache (Neo4j-backed)Shippedeidos/src/eidos/infrastructure/embeddings/cache.pyModel-aware, 30-day expiry, hit counting
Embedding service factory + builderShippedeidos/src/eidos/infrastructure/embeddings/factory.pyProtocol-based DI, validation
Cosine / Euclidean search strategiesShippedeidos/src/eidos/domain/search/strategies.pyProtocol-based strategy pattern
Similarity specification (Cypher generation)Shippedeidos/src/eidos/domain/specifications/similarity.pyReduce-based cosine in Cypher

Connectors

ComponentStatusCode LocationNotes
Git repository indexerShippedeidos/src/eidos/services/git_connector_service.pyWalk, filter, embed, semantic code search
Confluence connectorShippedeidos/src/eidos/services/confluence_connector_service.pySpace listing, page indexing, semantic search
GitHub webhook + reconciliationShippedeidos/src/eidos/api/endpoints/github.py, services/github/HMAC auth, push events, stale node cleanup
Code analysis & AST segmentationShippedeidos/src/eidos/services/code_processor.pyFunction/class extraction, importance scoring
Obsidian vault loaderShippedwiki/src/wiki/load/vault.pyLoads wiki vault pages as typed nodes into Neo4j

Shared Infrastructure (sokrates-core)

Extracted April 2026 from eidos/core/ into standalone workspace package (core/src/sokrates_core/). All workspace members depend on it.

ComponentStatusCode LocationNotes
Circuit breaker (generic)Shippedcore/src/sokrates_core/circuit_breaker.pyConfigurable thresholds, state machine, retry wrapper
Error hierarchy (ApplicationError tree)Shippedcore/src/sokrates_core/errors/Typed codes, levels, structured details (base, concrete, context)
@with_error_handling decoratorShippedcore/src/sokrates_core/decorators.pySync/async, error context capture, ErrorHandlerProtocol
@with_session decoratorShippedcore/src/sokrates_core/decorators.pyAsync session injection (generic, not Neo4j-specific)
Structlog + Logfire integrationShippedcore/src/sokrates_core/logging/Structured JSON, contextvars, OTEL via Logfire
Error context tracing (trace_id)Shippedcore/src/sokrates_core/errors/context.pyUUID trace, structured capture

Schema Ingestion (DMCG Pipeline — Hyle)

Full 6-stage pipeline shipped April 2026. Proven end-to-end: NorthWind OpenAPI spec → 11 typed node classes + 22 edge mappings → Neo4j (22 nodes, 18 relationships).

ComponentStatusCode LocationNotes
OpenAPI spec parserShippedhyle/src/hyle/spec_parser.pyExtracts schemas, scalar fields, $ref relationships, FK field detection
DMCG code generation (--base-class hyle.BaseNode)Shippedhyle/src/hyle/generator.pyPython API wrapper around datamodel-code-generator
Gemini ontological classifierShippedhyle/src/hyle/classifier.pyClassifies schemas into Entity/Process/Law/Observation. classification_override for deterministic CI.
Post-DMCG transformerShippedhyle/src/hyle/transformer.pyInjects node_type: Literal[...], rewrites base classes to primitives, strips $ref fields, preserves FK scalars, adds @node decorator
Typed edge mapperShippedhyle/src/hyle/edge_mapper.pyMaps $ref relationships to typed edges (ParticipatesIn/Evidences/Constrains/DependsOn) with direction normalization
importlib hot-loadingShippedhyle/src/hyle/loader.pyLoads transformed module, HyleMeta fires, NodeRegistry auto-registers types
HylePipeline orchestratorShippedhyle/src/hyle/pipeline.pyChains all 6 stages end-to-end
Declarative data fetcherShippedhyle/src/hyle/fetch/EndpointConfig model with auth + pagination discriminated unions. HttpxFetcher generic executor. Config factory from SpecInfo.
GraphWriter (Neo4j persistence)Shippedhyle/src/hyle/persist.pyNatural key MERGE for nodes, FK-based edge creation from EdgeManifest. Proven with NorthWind → Neo4j.
Schema healing (detect change → regenerate → reload)DesignedTechnical Architecture Whitepaper §2.3E0.2 (SOK-88): version-namespaced modules, importlib.reload()

Wiki Pipeline

ComponentStatusCode LocationNotes
Normalize (HTML → markdown)Shippedwiki/src/wiki/normalize.pyConfluence HTML to clean markdown
Embed (Voyage AI)Shippedwiki/src/wiki/embed.pyVoyage-4-large, 1024-dim
Discover (topic clustering)Shippedwiki/src/wiki/discover/HDBSCAN + LDA topic extraction
Extract (entity extraction)Shippedwiki/src/wiki/extract.pyGemini-powered entity extraction
Synthesize (cross-document)Shippedwiki/src/wiki/synthesize.pyGemini-powered document synthesis
Load (Neo4j)Shippedwiki/src/wiki/load/vault.pyObsidian vault → typed nodes in Neo4j

Curator Agent

ComponentStatusCode LocationNotes
Pydantic-AI curator agentShippedagents/src/agents/curator/agent.pySystem prompt, tools, structured CurationReport output
CurationReport / CurationProposal modelsShippedagents/src/agents/curator/models.pyActions: merge, archive, flag_obsolete, flag_contradiction
EidosClient HTTP wrapperShippedagents/src/agents/curator/client.pyAsync client for curator-to-Eidos communication
Hermes plugin (run_curator tool)Shippedhermes-plugin/sokrates/Registers tool for Hermes to invoke curator
Cron-triggered curator runsDesignedHermes cron config not yet wired
Telegram approval flowDesignedCurator proposals surfaced for human approval before execution
Action execution (merge/archive/delete)DesignedCurator proposes but cannot yet execute approved actions

Observer Pattern Wiring

ComponentStatusCode LocationNotes
NodeRegistry.on_register() hook mechanismShippedeidos/src/eidos/domain/models/hyle.py:74Observer hooks fire on type registration
Eidos subscribes to registry hooksDesignedE0.3 (SOK-89). No code subscribes yet. Technical Architecture Whitepaper §1.2 describes auto-creating Neo4j constraints and triggering relationship inference on registration.

Semantic Enrichment

ComponentStatusCode Location / Wiki ReferenceNotes
Ontological classification (auto-primitive assignment)Shippedhyle/src/hyle/classifier.pyGemini 3.1 Pro Preview classifies schemas into Entity/Process/Law/Observation. Deterministic override for CI.
Gemma 4 31B Dense integrationDesignedTechnical Architecture Whitepaper §3Will replace Gemini API with on-device Gemma for enrichment
Semantic field enrichmentDesignedTechnical Architecture Whitepaper §3.1
Cross-source entity resolutionDesignedTechnical Architecture Whitepaper §3.1
LoRA fine-tuning pipelineDesignedTechnical Architecture Whitepaper §3.3, §5.1

GQL Query Builder

ComponentStatusWiki ReferenceNotes
GQL AST layerDesignedHyle Graph-Native ORM with Dynamic Schema RegistryCurrent query builder targets Cypher only
Dialect serializers (Cypher, GQL, Fabric)DesignedTechnical Architecture Whitepaper §4.6

Hypergraph Metalayer

ComponentStatusWiki ReferenceNotes
Generating queries (hyperedges as computation)DesignedTechnical Architecture Whitepaper §4.1
Three-layer architecture (ground facts → queries → metalayer)DesignedTechnical Architecture Whitepaper §4.2
Materialization policy (MATERIALIZED / VIRTUAL)DesignedTechnical Architecture Whitepaper §4.4
Differential evaluationDesignedTechnical Architecture Whitepaper §4.5
Metalayer DSLDesignedHyle Graph-Native ORM with Dynamic Schema Registry

Self-Evolution Harness

ComponentStatusWiki ReferenceNotes
DSPy module wrappingDesignedTechnical Architecture Whitepaper §5.3
GEPA prompt evolutionDesignedTechnical Architecture Whitepaper §5.3
Atropos RL environmentsDesignedTechnical Architecture Whitepaper §5.3
Metalayer query evolutionResearchTechnical Architecture Whitepaper §5.3
Cognitive antibodiesResearchTechnical Architecture Whitepaper §5.3

Hardware & Fleet

ComponentStatusWiki ReferenceNotes
GMKtec dev box (sokrates-dev)Shippednixos/Running NixOS, Docker stack, Hermes Agent
CWWK N305 customer box (sokrates-box)Shippednixos/Locked down, nftables egress whitelist, fleet management. Budget option.
DGX Spark deploymentDesignedTechnical Architecture Whitepaper §5Primary target for on-device inference. No NixOS config yet.
DGX Station GB300 fleet commandResearchTechnical Architecture Whitepaper §5.6
Basis Genesis EngineShippedPre-seeds basis from external sources before customer engagements
Cross-fleet basis learningDesignedTechnical Architecture Whitepaper §9

Cognitive Architecture

ComponentStatusWiki ReferenceNotes
Strange loop / self-directed cognitionResearchTechnical Architecture Whitepaper §5.4Pure research direction
Metacognitive daemonsResearchTechnical Architecture Whitepaper §5.4
Negative space compressionResearchTechnical Architecture Whitepaper §5.3

Automation & Plugins

ComponentStatusCode LocationNotes
AI Sentinel (daily briefing agent)Shippedbundles/plugins/ai-sentinel/5 scanner subagents, tiered significance, email delivery
Wiki Sentinel (vault maintenance)Shippedbundles/plugins/wiki-sentinel/Reviews git logs, updates wiki pages, /wiki-update command