system-prompts-and-models-o.../salesflow-saas/backend/app
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 fix(dealix): resolve Python deps, SQLAlchemy metadata, JWT, and frontend CI 2026-04-12 10:32:05 +00:00
ai chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
api feat(dealix): wire ALL 17 schemas + Saudi workflow + release gate 2026-04-17 06:27:15 +00:00
flows chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
integrations Dealix OS Frontend implementation v1 2026-03-31 19:53:49 +03:00
middleware chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
models fix(dealix): rename EvidencePack.metadata_ to pack_metadata 2026-04-16 15:14:09 +00:00
openclaw feat(dealix): enforcement layer + weekly pack + auto evidence + sales pack 2026-04-17 06:15:59 +00:00
schemas feat(dealix): Tier-1 closure program — 10 tracks complete 2026-04-16 13:08:26 +00:00
services fix(dealix): eliminate ALL stubs found by brutal audit 2026-04-17 06:43:16 +00:00
utils fix(dealix): resolve Python deps, SQLAlchemy metadata, JWT, and frontend CI 2026-04-12 10:32:05 +00:00
workers fix(dealix): resolve Python deps, SQLAlchemy metadata, JWT, and frontend CI 2026-04-12 10:32:05 +00:00
__init__.py Add SalesMatic AI Sales SaaS Platform - Complete Foundation 2026-03-28 03:06:53 +00:00
config.py Dealix: OpenClaw safe core, SLA phase 2.5, full-ops UI 2026-04-08 23:31:02 +03:00
database.py chore(dealix): launch runbooks, staging env templates, SQLite init on startup, product journey test 2026-04-12 11:01:09 +00:00
main.py chore(dealix): launch runbooks, staging env templates, SQLite init on startup, product journey test 2026-04-12 11:01:09 +00:00
sqlite_patch.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00