ai-powered-conversational-intelligence

AI-Powered Conversational Intelligence

Ask your own database a question in plain English — get validated, read-only SQL you review before it ever runs.

[User Guide](/ai-powered-conversational-intelligence/USER_GUIDE.html)   |   [Architecture](/ai-powered-conversational-intelligence/docs/ARCHITECTURE.html)   |   [API Reference](/ai-powered-conversational-intelligence/docs/API.html)   |   [Configuration](/ai-powered-conversational-intelligence/docs/CONFIGURATION.html) [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE) [![Docs](https://img.shields.io/badge/docs-available-blue.svg)](USER_GUIDE.md) [![Status](https://img.shields.io/badge/status-UAT%20(pre--production)-yellow.svg)](#-project-status)

UAT (pre-production). The platform builds, deploys and runs: the production container image was verified on 2026-10-17 to build and import every module on its target Python 3.11, and the core workflows, authorization and data-protection controls were driven end to end against live databases and a live local model. As of 2026-10-22 the project has entered user-acceptance testing, which is the phase the 2026-10-17 release gate held it at (“NO-GO for production, READY FOR UAT with conditions”).

Entering UAT is not passing it, and this is still not production-ready. No business user has yet executed or signed off a single acceptance journey; the 15-journey, 6-role script exists with every result cell blank. Two blocking CI gates (ruff, bandit) were re-measured red today on verified-benign findings awaiting a decision and a third (pip-audit) could not be re-measured here at all; capacity and container-CVE testing are unblocked but unrun, recovery has never been drilled, and the measured answer-latency target is not met. See Project status.

📰 News and Updates

💻 Example Usage

The REST API (api/, FastAPI) is a thin wrapper over the same LangGraph agent the React dashboard calls — POST /ask works standalone, with or without the dashboard built/running:

curl -X POST http://localhost:8000/ask \
  -H "Content-Type: application/json" \
  -d '{
        "question": "What were total sales last quarter?",
        "enable_insight": true
      }'

Add -H "Authorization: Bearer $API_AUTH_TOKEN" if you’ve set API_AUTH_TOKEN in .env (unset by default — see docs/API.md). The response includes the generated SQL, result rows, retry/attempt history, and (if enabled) a grounded plain-English insight — see api/schemas.py::AskResponse for the full shape.

POST /ask answers one question and blocks until it has an answer. To run many questions at once as a single user, submit them to the asynchronous queue instead — it returns a job id immediately and runs the question through the identical governed pipeline:

# Submit; returns 202 with {"job_id": "...", "status": "queued"}
curl -X POST http://localhost:8000/questions   -H "Content-Type: application/json"   -H "Authorization: Bearer $TOKEN"   -d '{"question": "What were total sales last quarter?"}'

# Poll it; add /cancel to stop it, or GET /questions for all of yours
curl -H "Authorization: Bearer $TOKEN" http://localhost:8000/questions/$JOB_ID

Up to MAX_CONCURRENT_QUESTIONS_PER_USER (default 100) run at once per user; the rest queue rather than being refused. This path requires a real user account (LOCAL_AUTH_ENABLED or OIDC), since a job has to belong to someone. See docs/CONCURRENCY.md.

🌟 Get Started & Stay Tuned

Animated diagram: a question flowing through the LangGraph router to SQL/Documents/Policy/Web sources and back as a synthesized, cited answer

An animated diagram, not a screen recording — a real screenshot of the chat + generated-SQL view is still TODO.

Ready to try it? Jump to Getting Started below.

We’re glad you’re here — star the repository if you want to keep it on your radar, and open an issue for bugs, questions, or feature ideas.

🔎 What is this?

A Text-to-SQL dashboard connected to one or more real, user-configured databases. A user asks a natural-language question, a LangGraph agent turns it into SQL against the configured database (schema retrieved via ChromaDB, embedded from live schema introspection — not a hardcoded sample), the SQL is validated (SELECT-only allowlist, AST-parsed with sqlglot) and executed read-only, and the result is rendered as a table + auto-picked chart. The LLM runs locally via Ollama — no network calls for generation, no API keys required for that part. Database connectivity is fully config-driven via .env; there is no hardcoded connection string, host, or schema anywhere in the codebase.

Diagram: a question routes through the LangGraph router to one or more of SQL Database, Documents, Policy, and Web Search, then returns as a synthesized, cited answer

🧭 Choose your interface

Interface Status Run it
React dashboard (frontend/) The only UI this project ships — theme/accent/font/language pickers, installable as a PWA, chat history npm run build in frontend/, then uvicorn api.main:app serves it at http://localhost:8000/
REST API (api/) No UI — for scripts, notebooks, or your own frontend uvicorn api.main:app → see docs/API.md

Both drive the identical agent.graph.run_agent (or, with multi-source routing enabled, agent.orchestrator.graph.run_orchestrated) — no logic is duplicated per interface. A Streamlit app used to ship alongside the React dashboard; it was removed once the dashboard reached full feature parity (history note, like the earlier bundled-DuckDB removal — see CLAUDE.md).

💡 Why this project

Full agent graph (12 nodes) ```mermaid flowchart TD U[User] --> ENTRY{"React dashboard
or REST API"} ENTRY --> SI["sanitize_input
length cap, Unicode normalization,
prompt-injection pre-filter"] SI -->|rejected| STOP1(["Rejected"]) SI --> CF["classify_followup
standalone / follow-up / ambiguous"] CF -->|ambiguous| STOP2(["Needs clarification"]) CF --> RS["retrieve_schema
ChromaDB top-k + FK-adjacency
bridge expansion, auto-routed database"] RS --> RGE["retrieve_golden_examples
human-approved past (question, SQL) pairs"] RGE --> RBC["retrieve_business_context
glossary/metric/relationship chunks, fails open"] RBC --> PQ["plan_query
LLM plan, only for complex questions"] PQ --> GS["generate_sql
Ollama, via LangGraph"] GS -->|off-topic / LLM error / rate limit| STOP3(["Rejected / Failed / Rate limited"]) GS --> RV["review_sql
plan-conformance check, only if planned"] RV -->|plan not satisfied, retryable| GS RV --> VS["validate_sql
sqlglot AST allowlist"] VS -->|retryable mistake| GS VS -->|safety violation| STOP4(["Failed closed
(security gate, no retry)"]) VS -->|valid| CE["estimate_cost
non-executing EXPLAIN / SHOWPLAN"] CE -->|high cost, retryable| GS CE -->|low/moderate| ES["execute_sql
read-only engine, row cap, timeout"] ES -->|unknown table/column| RS ES -->|other error, retries left| GS ES -->|timeout| STOP4 ES -->|success| GI["generate_insight
optional, grounded summary"] GI --> REVIEW["Show SQL + cost notice for review"] REVIEW -->|Confirm and Run| RUN[Re-validate + re-execute] RUN --> RESULTS[Results table, chart, insight] ``` See [`docs/ARCHITECTURE.md`](/ai-powered-conversational-intelligence/docs/ARCHITECTURE.html) for the full per-node walkthrough and retry-routing table.

🚀 Getting Started

Prerequisites

Clone, install, configure

git clone https://github.com/surajkumarnavodya/ai-powered-conversational-intelligence.git
cd ai-powered-conversational-intelligence
python -m venv .venv
source .venv/bin/activate        # Windows: .venv\Scripts\Activate.ps1
pip install --upgrade pip
pip install -r requirements-dev.txt   # or requirements.txt for a runtime-only install
cp .env.example .env             # Windows: Copy-Item .env.example .env

Edit .env with your real database connection details (every variable is documented inline in .env.example) — use a dedicated read-only database account, not an admin login (see SECURITY.md). Then verify the connection and build the schema index:

python scripts/test_db_connection.py
python scripts/build_embeddings.py

On top of the schema index above, the agent can also retrieve business glossary terms, metric definitions, table/column/relationship descriptions, curated SQL examples, and documentation — see docs/vector-retrieval-design.md for the full design. It’s additive and fails open (the app works identically with none of this ingested — see that doc’s “Fallback behavior” section), but improves context recall once ingested:

# Preview what would be ingested, without embedding or writing anything:
python -m scripts.ingest_schema --database-id default --dry-run

# Actually ingest (safe to re-run any time -- only changed chunks are
# re-embedded; see the design doc's "Ingestion strategy" section):
python -m scripts.ingest_schema --database-id default

(--database-id matches one of Settings.databases’ names — default for a plain single-database .env, or the name you gave it under DB_CONNECTIONS for a multi-database setup.)

Sample glossary/metric/SQL-example/documentation content lives under data/knowledge/ — replace it with your own before relying on this in production (the shipped samples are clearly labeled demonstration content, not reviewed business documentation).

If you ever need to fully rebuild a database’s business-context index (e.g. after changing RETRIEVAL_SIMILARITY_METRIC, which — like the schema-DDL collection above — is fixed at collection-creation time):

python -m scripts.rebuild_index --database-id default

User accounts, universal chat history & password policy (optional)

Set LOCAL_AUTH_ENABLED=true (plus AUTH_DATABASE_URL, a dedicated PostgreSQL database, and JWT_SECRET_KEY — see .env.example) to enable this app’s own self-hosted accounts. See docs/AUTHENTICATION.md for the full picture; this section covers only what’s new in this pass:

Run the identity database’s migrations before first use (or after pulling an update that touches identity/models.py):

alembic -c identity/alembic.ini upgrade head

Run it

Build and serve the React dashboard (recommended):

cd frontend && npm install && npm run build && cd ..
uvicorn api.main:app --host 0.0.0.0 --port 8000

Open http://localhost:8000/ — the same FastAPI process serves both the API and the dashboard’s built static files (see api/main.py’s StaticFiles mount).

Frontend hot-reload during active frontend development: run the API as above in one terminal, then in a second terminal:

cd frontend && npm run dev

Open http://localhost:5173/ — Vite proxies /ask, /execute, /documents, /schema, /feedback, /health, /media, /generate, /voice, and /search to the API on port 8000 (see frontend/vite.config.ts), so no CORS setup is needed either way.

REST API only (no UI): uvicorn api.main:app --host 0.0.0.0 --port 8000 — see docs/API.md.

Tests and linters

pytest
ruff check . && black --check . && mypy .

PowerShell equivalents are in tasks.ps1 (.\tasks.ps1 run, .\tasks.ps1 test, .\tasks.ps1 lint); Make targets for bash are in the Makefile. CI (.github/workflows/ci.yml) runs the same lint + test steps on GitHub Actions — with one difference worth knowing: mypy is report-only there (continue-on-error, and last in the job, so a type error cannot stop bandit/pytest/pip-audit from running). A type error will therefore not turn CI red. Treat it as a real defect anyway; the standing backlog is in CLAUDE.md §13.

Frontend tests (frontend/, vitest + React Testing Library — added alongside the UI overhaul below, previously no test runner existed):

cd frontend
npm run test        # vitest run -- one-shot
npm run test:watch  # vitest -- watch mode
npm run lint         # oxlint (incl. the jsx-a11y rules)
npm run build        # tsc -b && vite build (also the typecheck)

Accessibility is checked at two levels: oxlint’s static jsx-a11y rules, and axe-core against the rendered tree in frontend/src/components/ui/accessibility.test.tsx, which catches what static rules structurally cannot — a control that ends up with no accessible name once components compose. Colour contrast is not covered and cannot be: jsdom has no layout engine, so that rule is explicitly disabled rather than left to report a misleading pass. See Known limitations.

Frontend UI

The React dashboard has a persistent left sidebar (conversation history + search, replacing an earlier combined history/settings drawer — see docs/ui-design-system.md and docs/chat-history-ui.md), collapsible on desktop to a narrow icon rail via the header’s sidebar toggle (the collapsed/expanded preference persists across sessions, localStorage only, never chat content), a single consolidated account menu (avatar, top-right — display name/email, Settings, Theme, Sign out; previously duplicated as two independent copies of Settings and Sign out, see docs/ui-production-audit.md and docs/navigation-and-actions.md for the one-owner-per-action rule that replaced it), a Stop button that genuinely cancels an in-flight question (AbortController, no fake token stream), and an optional attachment (image, PDF, DOCX, XLSX, PPTX, TXT, MD, CSV, JSON) + local image editor (crop/draw/annotate/undo-redo) in the composer. Attachments are real, not local-only: each one is uploaded, validated, malware-scanned (if configured), and processed server-side, and the model genuinely sees its content — a vision model’s description or an OCR fallback for images, extracted text for documents — via a dedicated LangGraph subgraph (see “Known limitations” below and CLAUDE.md’s “Chat attachments, image actions, and their security hardening” section). The image editor’s own “AI-guided editing” panel (natural-language-prompted generative edits — “remove the selected object,” “replace the sky”) is also real, provider-backed editing now (IMA Studio, off by default via ENABLE_IMAGE_EDITING), not a stub — see docs/image-editing-architecture.md for the full design, the mask-conveyance approach IMA’s lack of a native mask parameter required, and disclosed limitations.

Running with Docker

cp .env.example .env   # then edit .env as above
docker compose build
docker compose up -d
docker compose exec api python scripts/build_embeddings.py
docker compose exec api python -m scripts.ingest_schema --database-id default   # optional, see below

This builds the React dashboard (a Node build stage) and bakes it into the same image as the API (a Python stage) — one container, serving both the REST API and the dashboard at http://localhost:8000. See docs/DEPLOYMENT.md for external Ollama/database connectivity and reverse-proxy placement.

📚 Explore the documentation

Goal Start here
Just use the app USER_GUIDE.md
Understand the LangGraph node design and retry logic docs/ARCHITECTURE.md
Understand business-context vector retrieval (glossary/metrics/SQL examples) docs/vector-retrieval-design.md
Evaluate retrieval quality docs/retrieval-evaluation.md
Turn on document RAG, policy RAG, or web search docs/MULTI_SOURCE_GUIDE.md
Understand the source connector contract, the source picker, the REST connector and the MCP client docs/architecture/source-connector-contract.md
See which capability is actually implemented, and how it was verified docs/architecture/feature-inventory.md
Compare source types by capability, auth model and ACL fidelity docs/architecture/data-source-matrix.md
Run the opt-in live tests, or set up a Microsoft 365 tenant for them docs/LIVE_INTEGRATION_TESTING.md
Look up REST API endpoints and auth docs/API.md
Find every .env variable docs/CONFIGURATION.md
Understand why results show business names instead of database keys docs/DISPLAY_NAMES.md
Understand how chart axes are chosen (why Total Sales, not ProductKey) docs/CHART_AXIS_BINDING.md
Find out why a question is slow, and what actually helps docs/PERFORMANCE.md
Run many questions at once per user, or tune source/model routing, guardrails and grounding docs/CONCURRENCY.md
Deploy with Docker / an external DB or Ollama docs/DEPLOYMENT.md
See the latest measured benchmark accuracy docs/EVALUATION.md
Diagnose a common failure mode docs/TROUBLESHOOTING.md
Understand this project’s security posture SECURITY.md
Set up OIDC login and RBAC roles docs/AUTHENTICATION.md, docs/AUTHORIZATION.md
Understand universal server-side chat history docs/chat-history-architecture.md, docs/chat-history-search.md
Understand the display-name/password-strength requirements docs/authentication-and-password-policy.md
See what the chat-history feature replaced and why docs/chat-history-authentication-audit.md
Understand the frontend’s design tokens (colors, spacing, motion, theming) docs/ui-design-system.md
Understand the sidebar/history/search UI (not the backend behind it) docs/chat-history-ui.md
See which UI action lives where (Settings, Theme, Logout, sidebar collapse, …) and why docs/navigation-and-actions.md
See the duplicated controls a later UI pass found and removed (two settings dialogs, two logout buttons, no sidebar collapse) docs/ui-production-audit.md
Understand the local Konva image editor, including real AI-guided (generative) editing via IMA Studio docs/image-editing-architecture.md
See the full frontend audit this UI pass started from docs/frontend-ui-audit.md
See the live, browser-verified root-cause investigation of reported Settings/search/New-Chat/image-attachment issues docs/functional-ui-audit.md
Understand exactly how the Settings modal’s overlay/focus/keyboard behavior works docs/settings-modal.md
Understand the New Chat lazy-persistence flow and its duplicate-creation safeguards docs/new-chat-flow.md
See the historical record of the image-attachment gap this project closed (superseded — see CLAUDE.md’s “Chat attachments, image actions, and their security hardening” section for the current pipeline) docs/image-attachment-flow.md
See a point-in-time production-UI checklist and what it found docs/production-ui-checklist.md
Understand the root cause of the dark-mode Settings-modal transparency bug and its fix docs/settings-modal-visual-bug.md
Understand the generic Tool/MCP abstraction (agent/tools/) — what it wraps, why the orchestrator doesn’t call it yet docs/TOOLS.md
Share a conversation (invite-only or “anyone with the link”) — RBAC/ABAC model, token lifecycle, snapshot rules docs/SHARING_SECURITY.md
Understand what’s suitable for multi-instance deployment today vs. not (bounded /ask concurrency, identity-keyed rate limits, trusted-proxy IPs) and the measured load-test baseline docs/ENTERPRISE_SCALABILITY_SECURITY_ASSESSMENT.md, docs/SCALE_BASELINE.md
See what this app actually logs/emits today (correlation IDs, per-stage timing, health checks) with no monitoring-stack dependency docs/OBSERVABILITY.md
See the full platform-transformation discovery/assessment/roadmap this and other recent passes were scoped from docs/PLATFORM_TRANSFORMATION_ASSESSMENT.md, docs/DEEP_FEATURE_PERFORMANCE_ASSESSMENT.md
See the live performance-metrics rollup (GET /metrics/performance) docs/API.md
Check production readiness before deploying docs/PRODUCTION_CHECKLIST.md, docs/PRODUCTION_READINESS_REPORT.md
Governance, compliance, responsible-AI, risk tracking docs/GOVERNANCE.md, docs/COMPLIANCE.md, docs/RESPONSIBLE_AI.md, docs/RISK_REGISTER.md
Use the AI Data Analyst agent (POST /analyst/investigate): the bounded multi-step loop, its budgets, and its evidence model 33_AI_DATA_ANALYST_AGENT_CONTRACT.md
Use the multi-agent supervisor (POST /analyst/supervise): specialist agents, tool allowlists, circuit breakers, and the benchmark against the analyst 34_MULTI_AGENT_SUPERVISOR_CONTRACT.md
Use semantic intelligence (synonyms, ambiguity, conflicts, impact, the risk-ordered review queue) 35_SEMANTIC_INTELLIGENCE_CONTRACT.md
Contribute a change or an eval case CONTRIBUTING.md

🧩 Supported models & databases

Ollama is the only supported LLM runtime — there is no hosted-API code path. Any ollama pull-able model works; OLLAMA_MODEL is a plain config string (config/settings.py), not hardcoded:

Model Notes
llama3.1:8b (default) What this project is built and benchmarked against — see docs/EVALUATION.md for measured accuracy.
sqlcoder, duckdb-nsql, or any other Ollama-hosted model Supported by the same config knob; untested by this project’s own benchmark as of this writing.

Per-question model selection: a caller (or the dashboard’s own “AI Model” picker, in Settings) can choose a different Ollama model per question via POST /ask’s optional model field, without touching OLLAMA_MODEL/any code — validated server-side against OLLAMA_ALLOWED_MODELS (a small, practical starter set out of the box: qwen2.5:7b, qwen2.5:14b, llama3.2:3b, mistral:7b, deepseek-r1:8b, alongside the configured default) and cross-checked live against what’s actually ollama pulled on the connected server via GET /models. See docs/CONFIGURATION.md for the full design (why the online Ollama Library is never a runtime dependency, how to add/remove a model, request-scoping guarantees).

DB_TYPE Driver Notes
postgresql psycopg2-binary  
mysql pymysql  
mssql pyodbc Requires the Microsoft ODBC Driver for SQL Server installed as a system package — see docs/TROUBLESHOOTING.md.
oracle oracledb (thin mode) No separate Oracle Client install needed.

Selected via DB_TYPE in .env (single database) or DB_CONNECTIONS=name1,name2,... (multiple, auto-routed per question — see docs/CONFIGURATION.md). Source of truth: db/connection.py::SUPPORTED_DB_TYPES.

🛟 Get help and file an issue

Use the issue chooser (bug report / feature request templates under .github/ISSUE_TEMPLATE/) for usage questions, reproducible bugs, and feature requests.

Follow SECURITY.md to report a suspected security vulnerability rather than filing a public issue.

🧾 Feature matrix

Status vocabulary is deliberate. Verification is the column that matters: a capability can be fully implemented and still never have met a real provider, and this table says so rather than letting “implemented” imply “proven”.

Status Meaning
IMPLEMENTED_AND_TESTED wired into a request path, covered by the mocked suite
IMPLEMENTED_BUT_NOT_FULLY_TESTED implemented, but a material path is unverified
PARTIALLY_IMPLEMENTED narrower than the name suggests
DOCUMENTED_BUT_NOT_IMPLEMENTED described somewhere, no implementation
PLANNED agreed, not started

Verification: mocked = the fully-mocked pytest suite (no real DB, no Ollama). live = exercised against real infrastructure. blocked = cannot be verified here; the reason is named.

Core pipeline

Capability Status Verification Docs
Text-to-SQL (19-node LangGraph pipeline) IMPLEMENTED_AND_TESTED mocked; accuracy measured in a dated benchmark (see Known limitations) docs/ARCHITECTURE.md
AST SELECT-only SQL validation IMPLEMENTED_AND_TESTED mocked + tests/security/ SECURITY.md
Live schema introspection → ChromaDB IMPLEMENTED_AND_TESTED mocked docs/architecture/overview.md
Multi-database auto-routing IMPLEMENTED_AND_TESTED mocked docs/architecture/overview.md
Result governance / restricted columns IMPLEMENTED_AND_TESTED mocked docs/DATA_PRIVACY_GOVERNANCE_ENGINE.md
Follow-up questions IMPLEMENTED_AND_TESTED mocked; per-request, not checkpointed docs/ARCHITECTURE.md
Generated-SQL structural description (joins, filters, aggregates, grain) IMPLEMENTED_AND_TESTED mocked; read from the parsed AST, no LLM call docs/API.md
Business display names (joins the dimension, never renames a column) IMPLEMENTED_AND_TESTED mocked + live against AdventureWorks docs/DISPLAY_NAMES.md
Chart axis binding (y-axis is a measure, never a key) IMPLEMENTED_AND_TESTED mocked, backend + frontend docs/CHART_AXIS_BINDING.md

Sources

Capability Status Verification Docs
SQL databases (PostgreSQL, MySQL, SQL Server, Oracle) IMPLEMENTED_AND_TESTED mocked; live via scripts/test_db_connection.py docs/CONFIGURATION.md
File attachments (PDF/DOCX/XLSX/PPTX/TXT/CSV/JSON) IMPLEMENTED_AND_TESTED mocked docs/FILE_UPLOAD_SECURITY.md
Document + policy RAG IMPLEMENTED_BUT_NOT_FULLY_TESTED blocked — needs SQL Server 2025+/Azure SQL VECTOR docs/MULTI_SOURCE_GUIDE.md
Web search (Tavily) IMPLEMENTED_AND_TESTED mocked; live opt-in docs/MULTI_SOURCE_GUIDE.md
Media search / generation IMPLEMENTED_BUT_NOT_FULLY_TESTED image generation confirmed live; video unconfirmed docs/MULTI_SOURCE_GUIDE.md
Per-conversation source selection IMPLEMENTED_AND_TESTED mocked docs/architecture/source-connector-contract.md
REST / OpenAPI connector PARTIALLY_IMPLEMENTED mocked; not routable (no descriptor/orchestrator node) docs/architecture/source-connector-contract.md
MCP client (stdio) IMPLEMENTED_BUT_NOT_FULLY_TESTED mocked; never met a real MCP server docs/architecture/source-connector-contract.md
SharePoint, OneDrive, Dataverse, Outlook, Teams DOCUMENTED_BUT_NOT_IMPLEMENTED n/a — zero implementation files docs/architecture/data-source-matrix.md

Platform

Capability Status Verification Docs
Identity (local accounts, Argon2id + JWT) IMPLEMENTED_AND_TESTED mocked docs/AUTHENTICATION.md
OIDC sign-in IMPLEMENTED_BUT_NOT_FULLY_TESTED blocked — never run against a live IdP docs/AUTHENTICATION.md
RBAC + tenant isolation IMPLEMENTED_AND_TESTED mocked (294 tenancy tests) docs/MULTI_TENANCY.md
Streaming (SSE, per-node progress) IMPLEMENTED_AND_TESTED mocked docs/API.md
Token-level LLM streaming PLANNED n/a —
Scheduler / background worker / alert delivery DOCUMENTED_BUT_NOT_IMPLEMENTED n/a — CLI scripts are the cron entry points CLAUDE.md
Analytics, forecasting, recommendations IMPLEMENTED_BUT_NOT_FULLY_TESTED mocked; output quality unmeasured docs/architecture/features-analytics.md
Per-model token usage rollup IMPLEMENTED_AND_TESTED mocked; per worker, resets on restart; no cost figure — the model is local docs/OBSERVABILITY.md
Accessibility checks (static jsx-a11y + runtime axe-core) IMPLEMENTED_AND_TESTED mocked; colour contrast not covered — jsdom has no layout docs/architecture/features-frontend.md
Answer translation into a UI locale PARTIALLY_IMPLEMENTED mocked; built, not wired — no route, node or setting calls it CHANGELOG.md
Multi-replica deployment PLANNED n/a — all shared state is per-process docs/SCALE_BASELINE.md

Opt-in live verification for the credential-blocked rows above: docs/LIVE_INTEGRATION_TESTING.md.

🧪 Project status

This project is in UAT (pre-production) — status set 2026-10-22 at commit 628565d, on re-measured evidence. It was advanced beta — pre-production hardening from 2026-10-17, and the move reflects entering the phase that gate pointed at, not clearing it.

Entering UAT is not passing UAT. The release gate’s verdict — NO-GO for production, READY FOR UAT with conditions — is unchanged, and every condition below that is still open is still open.

What that means, precisely, because the distinction matters. Every row was re-measured on 2026-10-22 unless it says otherwise:

Question Answer Evidence
Does it build and deploy? Yes Production image verified 2026-10-17 running python 3.11.16 with every module importing, incl. all five scipy-dependent ones. Not re-measured since.
Do the automated tests pass? Yes, bar 5 known failures 7,673 backend passed with 5 known failures — a pre-existing cross-file-state interaction (tests/security running before test_agent_nodes.py), unrelated to any 2026-10-22 change and recorded in CLAUDE.md §13; 11 tests/live/ deselected · 1,334 frontend across 95 files · tsc clean · npm run lint exit 0 · black clean over 1,661 files
Do the core workflows run for real? Yes 20 live end-to-end probes (2026-10-17) against 4 live SQL Server databases and local Ollama — auth, RBAC, chat history, SQL validation, row cap, restricted-column masking. Re-driven 2026-10-22 for the display-name, chart-axis and retrieval fixes
Is CI green? No ruff exits non-zero on one import-order finding (agent/multiagent/agents.py); bandit on 4 Low, 0 Medium, 0 High, all deliberate and annotated for ruff but not for bandit. pip-audit could not be re-measured here — it needs PyPI and this environment has no egress, so its 2026-10-17 red state stands as last known
Is capacity known? No Load testing is unblocked but still not run. No capacity claim is made anywhere
Is answer latency acceptable? No Measured 2026-10-22: a SQL answer takes ~80s on this hardware against a 3–5s target, because the 7B model fits only 41% into a 4 GB GPU. Progress does meet it — first stream event at 0.025s. See docs/PERFORMANCE.md
Is answer accuracy known? No The only full-corpus benchmark is self-disclaimed as stale, and now also predates a model change — see Known limitations
Has recovery been drilled? No RPO/RTO proposed, awaiting sign-off; no restore drill
Has UAT been completed? NO — IN PROGRESS, NOTHING SIGNED OFF The project entered UAT on 2026-10-22. The 15-journey, 6-role script still has every result cell blank: no business user has executed or signed off anything. Automated tests are not UAT

Read these two documents before forming a view, in this order: docs/certification/2026-10-17_release_gate_v2.md (the current verdict — NO-GO for production, READY FOR UAT with conditions — with its §11 addendum carrying the live verification and the open findings) and docs/certification/UAT_SCRIPTS_AND_SIGNOFF.md (what acceptance testing would have to cover). Neither claims this platform is production-ready, and nothing in this README should be read as claiming it either.

The React dashboard is now the only UI — a previous Streamlit app was removed once the dashboard reached full feature parity with it. Three completed security review passes (referenced throughout this codebase as “2026 Phase 1/2/3”) have covered authentication (OIDC + this app’s own self-hosted accounts), RBAC, the AST-based SQL validator, content moderation, audit logging, security headers/CSP, and SSRF/CORS hardening — see SECURITY_FINAL_REPORT.md, SECURITY_BASELINE.md, and SECURITY_CHANGELOG.md for the full, cited audit trail, and SECURITY_PRODUCTION_CHECKLIST.md for what still needs operator action before a production deployment.

A later engagement went further (docs/security/, distinct from the repo-root SECURITY_*.md files above): CI’s security gates (SAST, dependency scanning, secret scanning) are now blocking, not just report-only; a MalwareScanner abstraction was added (opt-in, fail-closed once configured — see docs/security/FINAL_PRODUCTION_GATE.md); and a first production-readiness gate was run end-to-end. Its verdict is NOT READY — not because a vulnerability was found (the tested security architecture — auth, RBAC, SQL validation, SSRF, IDOR — holds up well), but because three things this project has never had the infrastructure to verify remain open: the frontend OIDC flow still hasn’t been exercised against a live identity provider, DAST has never been run against this app at all, and the malware scanner above has never been tested against a real scanner daemon. See docs/security/PRODUCTION_SECURITY_READINESS_REPORT.md for the full, current, evidence-cited answer to “is this production ready” — it supersedes this section and the checklist linked above where they differ. See Known limitations below for the honest current state of answer accuracy — that has not changed as part of any of this security work and remains a separate, equally real gap.

⚠️ Known limitations

🤝 Contributing