πΊοΈ Yojaka AI: Product Roadmap¶
This document outlines high-level implementation milestones and strategic release targets for Yojaka AI (Agentic Profile Matching Engine).
π Detailed Specifications: For system architecture diagrams, mathematical formulations, and formal design decisions, see System Architecture, Architecture Decision Records (ADRs), and Changelog.
π Implementation Milestones (Phases 1β19)¶
Foundational Pipeline & Core State Machine (Phases 1β7 β’ v0.1.0) β ¶
- Agentic Core: 9-node LangGraph
StateGraphworkflow with deterministic state transitions andMemorySavercheckpointing. - Tooling & Gateway: Dual-mode tool execution gateway supporting local in-process and FastMCP JSON-RPC
stdioservers (ADR-001). - Candidate Vetting Tools: Schema-validated requirement extraction, side-by-side comparison matrix, and tailored interview question generation.
Enterprise Abstractions & Background Workers (Phase 8 β’ v0.8.0) β ¶
- Service Decoupling: Dedicated
IngestionServiceisolating core business logic from transport protocols. - Pluggable Storage:
BaseVectorStorestructural protocol with ChromaDB default and Qdrant stub (ADR-003). - Async Task Queue: Distributed Celery workers with Redis 7 message broker and Docker Compose orchestration (ADR-006).
Observability, Hybrid Retrieval & Multi-Provider Scale (Phases 9β10 β’ v1.0.0) β ¶
- Enterprise Observability: Structured JSON logging and latency tracing with Langfuse and OpenTelemetry backends (ADR-007).
- Hybrid Scoring: Min-max normalized dense vector cosine + BM25Okapi lexical retrieval with cached sparse index (ADR-004, ADR-008).
- Multi-Provider LLM Gateway: Unified provider abstraction supporting Groq (Llama 3.3 70B), Google Gemini, Sarvam AI (105B Indic), and OpenAI (ADR-010).
Security, State Invariance & Async Screening (Phases 11β12 β’ v1.1.0) β ¶
- Stateless Credential Isolation: Credentials passed via
RunnableConfig, eliminating secret exposure in checkpoints (CWE-312) (ADR-011). - Functional State Immutability: Copy-on-write candidate dictionary updates ensuring safe LangGraph retries (ADR-012).
- Concurrent Screening: Parallel candidate screening with
ThreadPoolExecutorand rate-limit semaphores (ADR-014).
Quality Gates & Engine Resilience (Phases 13β14 β’ v1.1.5) β ¶
- Automated Quality Gates: Strict
mypystatic typing,pytest-covβ₯ 75% coverage gate, andgitleaks/pip-auditsecurity scanning. - Deterministic Cache Correctness: Global BM25 corpus fingerprinting and async subprocess lifecycle management.
In-Memory Ingestion, Modern Routing & UI (Phase 15 β’ v1.2.0) β ¶
- Zero-Disk In-Memory Ingestion: Stream-based file parsing (
io.BytesIO) without disk persistence, layered with ephemeral session stores (ADR-016). - Dynamic Semantic Skill Expansion: LLM requirement expansion with word-boundary matching, replacing brittle static taxonomies (ADR-013).
- LLM Intent Routing & Caching: Structured zero-shot intent router with dynamic anchor synthesis and sub-millisecond query caching (ADR-009).
- UI Ergonomics: Compact zero-scroll recruiter sidebar with instant repository path auto-discovery.
Modular UI Architecture & Headless API Sidecar (Phase 16 β’ v1.3.0) β ¶
- Modular Presentation Layer: Monolithic
app.pydecomposed into an executive<75-LOCconductor and modularui/components. - Streamlit-Native Streaming: Real-time typewriter output via
st.write_stream()and dynamic intent-aware execution tracking. - Headless FastAPI Gateway: Additive ASGI sidecar exposing REST and Server-Sent Events (SSE) streaming endpoints.
Layout Parsing, Contextual Retrieval & Two-Stage Reranking (Phase 17 β’ v1.4.0) β ¶
- Layout-Aware Section Parsing: PyMuPDF visual bounding block extraction preserving work experience integrity without boundary truncation.
- Anthropic Contextual Retrieval Prepending: Document-level metadata banners prepended to chunks before dense and BM25 embedding.
- Two-Stage Hybrid Reranking: Fine-grained Cross-Encoder joint reranking (
ms-marco-MiniLM-L-6-v2) with Sigmoid calibration and Reciprocal Rank Fusion. - Serverless Cloud Resilience: Zero-disk pure NumPy
InMemoryVectorStorefallback ensuring 100% crash-free ephemeral execution.
Calibrated Margin Routing, Native Commands & Dual-Rubric Subgraphs (Phase 18 β’ v1.5.0) β ¶
- Calibrated Margin Routing: Mathematical embedding margin scoring (\(\Delta \ge 0.12\)) routing confident queries in < 2ms at $0 LLM cost while escalating ambiguity to structured LLMs (ADR-018).
- LangGraph Native Commands: Refactored workflow nodes to native LangGraph
Command(goto=..., update={...})primitives with destination routing, eliminating conditional edge boilerplate. - Parallel Dual-Rubric Structured Evaluation: Concurrent structured scoring (Technical Architecture Competence 60% + Talent Sourcing Fit 40%) with deterministic mathematical aggregation, eliminating slow debate loops while delivering committee-grade scorecards.
- Modular Typed Subgraphs: Pipeline decomposed into isolated, independently testable subgraphs (
JDAnalyzerSubgraph,TalentRetrievalSubgraph,DeepScreeningSubgraph,SynthesisSubgraph).
Advanced RAG Architecture & Air-Gapped Local Inference (Phase 19 β’ v1.6.0) β ¶
- HyDE (Hypothetical Document Embeddings): Query expansion synthesizing realistic candidate profile summaries from job descriptions before vector search to bridge vocabulary mismatch (ADR-019).
- Hierarchical Parent-Document Chunking: Fine-grained 150β250 token child vector retrieval linked to 1,000β1,500 character parent sections in
ParentDocumentStore, eliminating context fragmentation during screening. - Air-Gapped Local Inference: Turnkey offline model execution via Ollama and vLLM daemons for GDPR sovereign cloud compliance and zero cloud API costs.
- Pre-Retrieval Faceted Filtering: Direct vector and lexical metadata constraints for experience years and education criteria with dynamic skill expansion support.
π Future Milestones (Phases 20β22)¶
Phase 20: Resume Threat Security, Zero-Trust PII Redaction Vault & Multi-Tenancy (v1.7.0)¶
- Indirect Prompt Injection Defense (OWASP LLM01): Input sanitization heuristics, canary detection, and strict XML boundary tags neutralizing hidden resume injection payloads.
- Zero-Trust PII Tokenization Vault: Pre-screening entity tokenization replacing personal candidate identifiers (
[CANDIDATE_A]) for EEOC blind hiring meritocracy. - Reversible Recruiter Vault: AES-256 encrypted candidate identity mapping revealed only upon authorized recruiter outreach with immutable audit logging.
- Hardware-Partitioned Multi-Tenancy: Isolated collection namespaces across vector stores (
tenant_{org_id}_resumes) and session checkpoints.
Phase 21: Unit Economics, Semantic Caching & Budget Circuit Breakers (v1.8.0)¶
- Pool-Aware Semantic Evaluation Cache: Sub-5ms response caching for semantically equivalent recruiter queries, guarded by pool-version hashes to prevent stale candidate rankings.
- Granular Cost & Token Budgeting: Predictive
tiktokencalculation, real-time per-query and per-tenant cost accounting, daily spend caps, and runaway loop circuit breakers. - Job Description Inclusivity Scanner: Automated open-source linguistic analysis flagging exclusionary or demographic-biased wording and generating auditable competency-grounded rationale trails.
Phase 22: Production Infrastructure, Containerization & Continuous Evals (v2.0.0)¶
- Multi-Stage Hardened Production Dockerfile: Minimal non-root container image (<250MB) isolating build dependencies for ASGI sidecar and workers.
- Docker Compose Multi-Service Topology: Single-command orchestration for FastAPI sidecar, Streamlit UI, Celery worker, Redis 7, vector services, and self-hosted Langfuse.
- Continuous Ragas & DeepEval CI/CD Quality Gates: Automated RAG Triad benchmarks (Context Precision \(\ge 0.88\), Recall@K, Faithfulness \(\ge 0.90\)) blocking pull requests on score regression.
- Deep Health Probes & Rate Limiting:
/healthzand/readyzprobing database, Redis, and workers withslowapirate-limiting shield.