system-prompts-and-models-o.../salesflow-saas/memory/architecture/module-map.md
Claude b9fabe7465
docs: Add Dealix PRD v2 and complete module map
PRD v2: Full 4-layer product requirements document
- Layer 0: Core Platform (Company Twin, Taxonomy, Channels, Approvals, Trust)
- Layer 1: Sales OS (leads, outreach, proposals, pipeline)
- Layer 2: Deal Exchange OS (matching, barter, co-sell, deal rooms)
- Layer 3: Strategic Growth OS (acquisition, ecosystem, simulator, ROI)

Module map: Complete inventory of all 50+ services, 52 API routes,
30 models, 37 frontend components with build status

https://claude.ai/code/session_01LsnvBa7HwF5hs99VZbgLGj
2026-04-11 10:44:49 +00:00

98 lines
4.1 KiB
Markdown

# Dealix Module Map
## Layer 0 — Core Platform (Built)
| Module | File | Status | Lines |
|--------|------|--------|-------|
| Company Twin | `strategic_deals/company_twin.py` | ✅ | 792 |
| Deal Taxonomy | `strategic_deals/deal_taxonomy.py` | ✅ | 573 |
| Deal Room | `strategic_deals/deal_room.py` | ✅ | 674 |
| Operating Modes | `strategic_deals/operating_modes.py` | ✅ | 429 |
| Channel Compliance | `strategic_deals/channel_compliance.py` | ✅ | 803 |
| Approval Center | `security_gate.py` + `escalation.py` | ✅ | ~600 |
| Trust & Verification | `tool_verification.py` + `tool_receipts.py` | ✅ | ~600 |
| Memory Engine | `memory_engine.py` + `knowledge_brain.py` | ✅ | ~560 |
| Session Continuity | `session_continuity.py` | ✅ | ~230 |
| Observability | `observability.py` | ✅ | ~350 |
| Feature Flags | `feature_flags.py` | ✅ | ~500 |
| Hermes Orchestrator | `hermes_orchestrator.py` | ✅ | ~450 |
| Execution Router | `execution_router.py` | ✅ | ~375 |
## Layer 1 — Sales OS (Built)
| Module | File | Status |
|--------|------|--------|
| Lead Service | `lead_service.py` | ✅ |
| AI Lead Scoring | `ai/lead_scoring.py` | ✅ |
| Arabic NLP | `ai/arabic_nlp.py` | ✅ |
| Conversation Intelligence | `ai/conversation_intelligence.py` | ✅ |
| Message Writer | `ai/message_writer.py` | ✅ |
| Sales Forecasting | `ai/forecasting.py` | ✅ |
| AI Sales Agent | `ai/sales_agent.py` | ✅ |
| Sequence Engine | `sequence_engine.py` | ✅ |
| Territory Manager | `territory_manager.py` | ✅ |
| CPQ Quote Engine | `cpq/quote_engine.py` | ✅ |
| Proposal Generator | `cpq/proposal_generator.py` | ✅ |
| WhatsApp Service | `whatsapp_service.py` | ✅ |
| Email Service | `email_service.py` | ✅ |
| Lead Generation | `lead_generation.py` | ✅ |
| Auto Pipeline | `auto_pipeline.py` | ✅ |
## Layer 2 — Deal Exchange OS (Built)
| Module | File | Status |
|--------|------|--------|
| Company Profiler | `strategic_deals/company_profiler.py` | ✅ |
| Deal Matcher | `strategic_deals/deal_matcher.py` | ✅ |
| Deal Negotiator | `strategic_deals/deal_negotiator.py` | ✅ |
| Deal Agent | `strategic_deals/deal_agent.py` | ✅ |
| Company Twin | `strategic_deals/company_twin.py` | ✅ |
| Deal Taxonomy | `strategic_deals/deal_taxonomy.py` | ✅ |
| Deal Room | `strategic_deals/deal_room.py` | ✅ |
| Channel Compliance | `strategic_deals/channel_compliance.py` | ✅ |
| Operating Modes | `strategic_deals/operating_modes.py` | ✅ |
## Layer 3 — Strategic Growth OS (Planned)
| Module | File | Status |
|--------|------|--------|
| Acquisition Scouting | `strategic_deals/acquisition_scouting.py` | 📋 Planned |
| Ecosystem Mapper | `strategic_deals/ecosystem_mapper.py` | 📋 Planned |
| Strategic Simulator | `strategic_deals/strategic_simulator.py` | 📋 Planned |
| ROI Engine | `strategic_deals/roi_engine.py` | 📋 Planned |
| Portfolio Intelligence | `strategic_deals/portfolio_intelligence.py` | 📋 Planned |
## Governance & Ops (Built)
| Module | File | Status |
|--------|------|--------|
| gstack Discipline | `gstack_discipline.py` | ✅ |
| Skill Registry | `skill_registry.py` | ✅ |
| Skill Governance | `skill_governance.py` | ✅ |
| Autopilot | `autopilot.py` | ✅ |
| Self-Improvement | `self_improvement.py` | ✅ |
| Shannon Security | `shannon_security.py` | ✅ |
| Signal Intelligence | `signal_intelligence.py` | ✅ |
| Alert Delivery | `alert_delivery.py` | ✅ |
| Behavior Intelligence | `behavior_intelligence.py` | ✅ |
| Arabic Ops | `arabic_ops.py` | ✅ |
| Local Inference | `local_inference.py` | ✅ |
## Frontend (Built)
| Component | File | Status |
|-----------|------|--------|
| Premium Landing | `premium-landing.tsx` | ✅ |
| Pipeline Kanban | `pipeline-kanban.tsx` | ✅ |
| Unified Inbox | `unified-inbox.tsx` | ✅ |
| Lead Score Card | `lead-score-card.tsx` | ✅ |
| 3D Logo | `dealix-3d-logo.tsx` | ✅ |
| Stats Counter | `stats-counter.tsx` | ✅ |
| UI Library | `ui/` (7 components) | ✅ |
| Dashboard Views | 25+ views | ✅ |
## Summary
- **Built**: ~50 backend services, 52 API routes, 30 models, 37 frontend components
- **Planned**: 5 Strategic Growth modules (Layer 3)
- **Completion**: ~90% of full vision