system-prompts-and-models-o.../salesflow-saas/backend/app/services
Claude 7a8c572f71
fix(dealix): eliminate ALL stubs found by brutal audit
Audit finding 1 — Saudi consent was hardcoded True:
  _check_consent() now queries real PDPLConsent table.
  Returns consent_valid=True only if active consents exist or tenant
  has no records yet (new tenant grace). Otherwise blocks.

Audit finding 2 — Saudi export rules were hardcoded True:
  _check_export_rules() now enforces: restricted data with
  requires_dpo_review=True blocks export by default.
  Returns blocked_reason_ar explaining why.

Audit finding 3 — MASTER_OPERATING_PROMPT overclaimed:
  Rule 6 said "controls are live, not aspirational" which
  contradicted current-vs-target-register showing 52% maturity.
  Rewritten to accurately describe: enforcement is live on golden
  path and Saudi workflow, full coverage tracked in register.

Audit finding 4 — forecast accuracy_trend was empty stub:
  Now queries real Deal table: closed_won vs total pipeline,
  returns actual accuracy percentage.

Post-fix audit status:
  - Saudi consent: REAL (queries PDPLConsent)
  - Saudi export: REAL (enforces classification)
  - MASTER_OPERATING_PROMPT: NO OVERCLAIM
  - Forecast accuracy: REAL (queries deals)

https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
2026-04-17 06:43:16 +00:00
..
agents 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
ai fix: Wire all new systems into project — models, services, workers 2026-04-11 07:51:53 +00:00
cpq fix: Finalize proposals API, sales agent, and quote engine 2026-04-11 07:46:37 +00:00
llm Dealix OS Frontend implementation v1 2026-03-31 19:53:49 +03:00
pdpl feat: Add conversation intelligence, message writer, sales agent, APIs, and templates 2026-04-11 07:43:11 +00:00
strategic_deals feat: Complete Layer 3 — Strategic Growth OS (final layer) 2026-04-11 10:56:56 +00:00
__init__.py fix: Wire all components end-to-end — final integration 2026-04-11 10:36:01 +00:00
affiliate_service.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
alert_delivery.py feat: Finalize all systems + add 20 production libraries 2026-04-11 07:56:24 +00:00
analytics_service.py Dealix OS Frontend implementation v1 2026-03-31 19:53:49 +03:00
arabic_ops.py feat: Add gstack discipline, skill governance, Arabic ops layer 2026-04-11 08:33:58 +00:00
audit_service.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
auth_service.py fix(dealix): resolve Python deps, SQLAlchemy metadata, JWT, and frontend CI 2026-04-12 10:32:05 +00:00
auto_pipeline.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
autonomous_core.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
autopilot.py fix: Update autopilot with full 9-step pipeline and 5 built-in tasks 2026-04-11 08:00:09 +00:00
behavior_intelligence.py feat: Finalize all systems + add 20 production libraries 2026-04-11 07:56:24 +00:00
channel_orchestrator.py feat: Complete Omnichannel Intelligence — 7 AI brains for every channel 2026-04-12 03:21:53 +00:00
company_research.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
company_service.py Dealix OS Frontend implementation v1 2026-03-31 19:53:49 +03:00
comparison_engine.py feat: Add WhatsApp AI Brain — central intelligence for Dealix number 2026-04-12 02:40:28 +00:00
connector_governance.py feat(dealix): complete Tier-1 Sovereign Enterprise Growth OS 2026-04-16 12:48:13 +00:00
contract_intelligence_service.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
contradiction_engine.py feat(dealix): complete Tier-1 Sovereign Enterprise Growth OS 2026-04-16 12:48:13 +00:00
crm_sync_service.py Dealix OS Frontend implementation v1 2026-03-31 19:53:49 +03:00
customer_onboarding_journey.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
deal_lifecycle_hooks.py feat(dealix): enforcement layer + weekly pack + auto evidence + sales pack 2026-04-17 06:15:59 +00:00
deal_service.py Dealix OS Frontend implementation v1 2026-03-31 19:53:49 +03:00
email_brain.py feat: Complete Omnichannel Intelligence — 7 AI brains for every channel 2026-04-12 03:21:53 +00:00
email_service.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
escalation.py feat: Finalize all systems + add 20 production libraries 2026-04-11 07:56:24 +00:00
esign_service.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
evidence_pack_service.py fix(dealix): rename EvidencePack.metadata_ to pack_metadata 2026-04-16 15:14:09 +00:00
execution_router.py feat: Complete Hermes Fusion — execution router, Shannon, self-improvement, observability, API 2026-04-11 08:29:09 +00:00
executive_roi_service.py feat(dealix): enforcement layer + weekly pack + auto evidence + sales pack 2026-04-17 06:15:59 +00:00
feature_flags.py fix: Enhanced feature flags with PostgreSQL persistence and beta program 2026-04-11 08:10:25 +00:00
forecast_control_center.py fix(dealix): eliminate ALL stubs found by brutal audit 2026-04-17 06:43:16 +00:00
go_live_matrix.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
golden_path.py feat(dealix): golden path service + correlation_id + stack recommendations 2026-04-17 05:59:32 +00:00
gstack_discipline.py feat: Add gstack discipline, skill governance, Arabic ops layer 2026-04-11 08:33:58 +00:00
hermes_orchestrator.py feat: Add Hermes orchestrator with 6 profiles + update memory engine 2026-04-11 08:26:05 +00:00
invoice_generator.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
invoice_service.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
knowledge_brain.py fix: Update knowledge brain and tool receipts with final implementations 2026-04-11 08:22:12 +00:00
knowledge_service.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
lead_generation.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
lead_pipeline.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
lead_service.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
linkedin_brain.py feat: Complete Omnichannel Intelligence — 7 AI brains for every channel 2026-04-12 03:21:53 +00:00
linkedin_service.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
local_inference.py feat: Add local inference adapter + operations schedule — complete master prompt coverage 2026-04-11 08:46:59 +00:00
meeting_intelligence.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
meeting_service.py Dealix OS Frontend implementation v1 2026-03-31 19:53:49 +03:00
memory_engine.py feat: Add Hermes orchestrator with 6 profiles + update memory engine 2026-04-11 08:26:05 +00:00
model_router.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
model_routing_dashboard.py fix(dealix): replace all placeholder services + wire frontend to APIs 2026-04-17 05:05:10 +00:00
notification_service.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
observability.py fix: Enhanced Hermes API, router registration, and observability service 2026-04-11 08:36:50 +00:00
operations_hub.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
osint_service.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
outbound_governance.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
payment_service.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
predictive_revenue_service.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
prospecting_service.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
sales_os_service.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
salesforce_agentforce.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
saudi_compliance_matrix.py feat(dealix): complete Tier-1 Sovereign Enterprise Growth OS 2026-04-16 12:48:13 +00:00
saudi_sensitive_workflow.py fix(dealix): eliminate ALL stubs found by brutal audit 2026-04-17 06:43:16 +00:00
security_gate.py feat: Add AI engine, PDPL compliance, sequences, CPQ, and governance layers 2026-04-11 07:40:39 +00:00
self_improvement.py fix: Enhanced self-improvement engine with detailed inspection and metrics 2026-04-11 08:34:09 +00:00
sequence_engine.py fix(dealix): resolve Python deps, SQLAlchemy metadata, JWT, and frontend CI 2026-04-12 10:32:05 +00:00
session_continuity.py fix: Update memory engine and session continuity implementations 2026-04-11 08:24:02 +00:00
shannon_security.py feat: Add gstack discipline, skill governance, Arabic ops layer 2026-04-11 08:33:58 +00:00
signal_intelligence.py feat: Add skill registry, autopilot, escalation, signal & alert intelligence 2026-04-11 07:52:25 +00:00
signal_selling_service.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
skill_governance.py feat: Add gstack discipline, skill governance, Arabic ops layer 2026-04-11 08:33:58 +00:00
skill_registry.py feat: Finalize all systems + add 20 production libraries 2026-04-11 07:56:24 +00:00
sla_escalation_alerts.py Dealix: OpenClaw safe core, SLA phase 2.5, full-ops UI 2026-04-08 23:31:02 +03:00
social_media_brain.py feat: Complete Omnichannel Intelligence — 7 AI brains for every channel 2026-04-12 03:21:53 +00:00
stripe_service.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
structured_output_producers.py feat(dealix): wire ALL 17 schemas + Saudi workflow + release gate 2026-04-17 06:27:15 +00:00
territory_manager.py feat: Add conversation intelligence, message writer, sales agent, APIs, and templates 2026-04-11 07:43:11 +00:00
tool_receipts.py fix: Update knowledge brain and tool receipts with final implementations 2026-04-11 08:22:12 +00:00
tool_verification.py feat: Add AI engine, PDPL compliance, sequences, CPQ, and governance layers 2026-04-11 07:40:39 +00:00
trust_score_service.py Dealix OS Frontend implementation v1 2026-03-31 19:53:49 +03:00
voice_service.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
wallet_service.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
whatsapp_brain.py feat: Add WhatsApp AI Brain — central intelligence for Dealix number 2026-04-12 02:40:28 +00:00
whatsapp_knowledge.py fix: Align ALL systems with single plan pricing (1,499 SAR) 2026-04-12 03:38:52 +00:00
whatsapp_service.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
zatca_compliance.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00