-
Notifications
You must be signed in to change notification settings - Fork 1
Data model
Arun Soman edited this page Aug 31, 2026
·
1 revision
Core data model — migrated from the README on 2026-08-31 and verified against the code at tag v0.1.4; if code and wiki ever disagree, the code wins and this page gets a PR.
Core data model (models.py, repository.py, neo4j_repository.py, in_memory_repository.py, embedded_repository.py)
-
NodeKindcovers the structural kinds (FILE/CLASS/FUNC/METHOD/SYMBOL) and every analysis-result kind — CloneCluster, AntiPattern, DriftFinding, MetricSnapshot, CommunitySummary, Type, Package, Document, Contract, TestSkeleton, StateMachine, State, Transition, AgentVerdict, ConfidenceReport, JustificationTrace, InvariantViolation, SemanticDiffFinding, RuntimeErrorTrace, Page, ImpliedPage, InteractiveElement, DerivedTaskHint, TestExecution, MockEndpoint, MockCall, ContractViolation, ApmMetric, PerformanceBaseline, PerformanceRegression, CoverageGap. Analysis nodes are never produced byextract.py— only by on-demand passes, written viareplace_analysis_nodes. -
Edgeconfidence: EXTRACTED / INFERRED / AMBIGUOUS, stamped with IN-08 provenance (extracted_at,extractor_version,source_ref). - Three
Repositorybackends behind one Protocol:Neo4jRepository(Cypher, per-project namespacing, vector index, query/write/schema timeouts),InMemoryRepository(the reference test double both backends are verified against), andEmbeddedRepository(SQLite, two tables, full graph re-persisted per call — simple, single-project, local-first). -
QueryEngine(query.py): thin, backend-agnostic orchestration — search, traversal, neighbors, community, god nodes, stats, shortest path, signatures, methods-of-class, file listing, feature discovery, semantic search (requires embeddings written at load time).
If code and this wiki disagree, the code wins — then this wiki gets a PR. Evidence lives in the repo, not here.
Start
How-tos
- Install & serve to your MCP client
- Choose your storage backend
- Run the Neo4j team mode
- Index & keep it fresh
- Ask impact questions
- Task & QA layer
- Semantic search
- Snapshot or serve HTTP
- Policies & the write boundary
- Troubleshoot
Reference
- Extraction pipeline
- Data model
- Tool reference
- Benchmarks
- Security & determinism
- Two tiers · Project layout · Docs index
Contribute