How joelrajjoe/mk-path works
MK-Path is an evidence-gated data transformation platform: users manage projects, upload datasets, build semantic context, analyze and model data, apply healing, and review verification results. The graph combines documented capabilities with relationships visible in the excerpts and SOURCE INDEX; several UI-to-API and unsampled subsystem details are therefore omitted or marked unverified.
Main entry points: pipeline.py Pipeline routes · main.py FastAPI application · datasets.py Dataset routes · service.py Archive ingestion
Components 26
User experience
- Project workspace
frontend/src/pages/projects/ProjectWorkspace.tsx - Analysis workspace
frontend/src/pages/projects/analysis/DataAnalystWorkspace.tsx - Data visualizer
frontend/src/components/visualization/DataVisualizer.tsx - API client
frontend/src/lib/api.ts
API and workflow
- FastAPI application
backend/app/main.py - Dataset routes
backend/app/routers/datasets.py - Pipeline routes
backend/app/routers/pipeline.py - Run routes
backend/app/routers/runs.py
Ingestion and data
- Archive ingestion
backend/app/ingestion/service.py - Format parsers
backend/app/ingestion/parsers.py - Archive security
backend/app/ingestion/security.py - DuckDB registry
backend/app/ingestion/registry.py - Data profiler
backend/app/profiling/profiler.py
Analysis and knowledge
- Goal-driven analysis
backend/app/analysis/analyst.py - Causal analysis
backend/app/analysis/causal.py - Model tournament
backend/app/modeling/tournament.py - Data healing
backend/app/healing/engine.py - Semantic workflow
backend/app/semantic/service.py - Context builder
backend/app/semantic/builder.py - LLM providers
backend/app/semantic/llm.py
Governance and state
- Readiness gates
backend/app/verification/engine.py - Audit events
backend/app/audit.py - Metadata repository
backend/app/repo.py - MongoDB and local fallback
backend/app/database.py
Other components
- Platform user
- LLM services
Connections 28
- Platform user → Project workspace: uses
- Project workspace → Analysis workspace: opens
- Analysis workspace → Data visualizer: renders
- Project workspace → API client: requests
- API client → FastAPI application: calls API
- FastAPI application → Dataset routes: mounts
backend/app/main.py - FastAPI application → Pipeline routes: mounts
backend/app/main.py - FastAPI application → Run routes: mounts
backend/app/main.py - Dataset routes → Archive ingestion: invokes
backend/app/routers/datasets.py - Archive ingestion → Archive security: validates archives
backend/app/ingestion/service.py - Archive ingestion → Format parsers: parses files
backend/app/ingestion/service.py - Archive ingestion → DuckDB registry: registers views
backend/app/ingestion/service.py - Dataset routes → Data profiler: profiles data
backend/app/routers/datasets.py - Pipeline routes → Goal-driven analysis: plans analysis
backend/app/routers/pipeline.py - Pipeline routes → DuckDB registry: loads views
backend/app/routers/pipeline.py - Pipeline routes → Model tournament: runs tournament
backend/app/routers/pipeline.py - Pipeline routes → Data healing: applies healing
backend/app/routers/pipeline.py - Pipeline routes → Readiness gates: runs gates
backend/app/routers/pipeline.py - Pipeline routes → Semantic workflow: gets context
backend/app/routers/pipeline.py - Pipeline routes → Audit events: records events
backend/app/routers/pipeline.py - Semantic workflow → Context builder: builds context
backend/app/semantic/service.py - Context builder → LLM providers: requests proposals
backend/app/semantic/builder.py - LLM providers → LLM services: calls provider
- Goal-driven analysis → LLM services: optional interpretation
- Run routes → Metadata repository: loads metadata
backend/app/routers/runs.py - Dataset routes → Metadata repository: stores metadata
backend/app/routers/datasets.py - Metadata repository → MongoDB and local fallback: uses collections
backend/app/repo.py - Audit events → MongoDB and local fallback: stores records
backend/app/audit.py