system-prompts-and-models-o.../salesflow-saas/backend
Claude 503bf2e5d7
feat: AI Cost, Quality & Proof OS — complete
AI Layer:
- llm_router.py: routes cheap/mid/high models, enforces daily budget, caches
- token_counter.py: estimates tokens, truncates to budget
- response_cache.py: in-memory cache with TTL per agent
- prompt_registry.py: versioned prompts with stable prefix for caching
- ai_budget.yaml: model costs, agent budgets, daily limits (10 SAR/day)

Guardrails:
- output_validator.py: blocks fake claims + prohibited actions
- cost_guard.py: prevents runaway spending

Observability:
- trace.py: trace_id, cost, latency, steps per pipeline run

Tests: ALL PASS
- 30/30 evals (100%) — 9 sectors, 30 companies
- 10/10 prohibited actions blocked
- 4/4 allowed actions verified
- 3/3 forbidden claims blocked
- 3/3 message quality checks passed

https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
2026-04-26 17:42:47 +00:00
..
alembic feat(dealix): close ALL 4 Tier-1 runtime gaps (Programs E, F, G, K, J) 2026-04-17 10:12:04 +00:00
app fix: parents[4] IndexError in Docker — path too short in container 2026-04-26 01:33:17 +00:00
dealix_gtm_os feat: AI Cost, Quality & Proof OS — complete 2026-04-26 17:42:47 +00:00
knowledge_base 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
scripts feat: Dealix GTM Intelligence OS — multi-agent system 2026-04-26 17:16:52 +00:00
tests feat: AI Cost, Quality & Proof OS — complete 2026-04-26 17:42:47 +00:00
.env.phase2.example chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
alembic.ini Add SalesMatic AI Sales SaaS Platform - Complete Foundation 2026-03-28 03:06:53 +00:00
campaign_results.json 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
Dockerfile fix: rewrite Dockerfile single-stage — kill Railway cache completely 2026-04-26 01:46:26 +00:00
main.py feat(intelligence): Revenue Intelligence OS — Lead Machine complete 2026-04-20 06:35:59 +00:00
pyproject.toml feat(dealix): execute ALL automatable blueprint tasks 2026-04-17 10:39:21 +00:00
pytest.ini fix(ci): restore pytest.ini to match passing commit + clean CI YAML 2026-04-17 05:54:32 +00:00
railway.toml fix: remove healthcheck from railway.toml — let app deploy without it 2026-04-26 01:28:32 +00:00
README_DEPLOY.md chore: trigger Railway rebuild after root directory fix 2026-04-26 00:53:55 +00:00
requirements-dev.txt fix(ci): pin pytest==8.3.4 + pytest-asyncio==0.24.0 exact versions 2026-04-17 05:02:44 +00:00
requirements.txt fix: remove 18 unused heavy deps — Docker image ~4GB → ~800MB 2026-04-26 00:20:43 +00:00
seed_database.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
start.sh fix: root cause — sqlite_patch not applied when DATABASE_URL empty 2026-04-26 01:16:57 +00:00
update_requirements.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00