TorbatYar/docs/architecture/ai-architecture.md
Mortezakoohjani 12c8615615 Ship enterprise Accounting FE/API with CRUD parity and production wiring.
Adds accounting-service PATCH/archive, fiscal helpers, COA templates and setup status, plus SuperApp Accounting UI (DS, scoreboard, masters, vouchers, ledger, ops modules) with session refresh and HTTPS public API URLs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 15:26:43 +03:30

1.1 KiB

AI Architecture

Independence Rule

AI capabilities are an independent module family. Business modules may consume AI via API/events but must remain functional when AI is disabled or unavailable.

Boundaries

AI may AI must not
Suggest, classify, draft, route Be the sole authority for money, compliance, or authorization
Read tenant-scoped knowledge bases Cross tenant data
Emit assistance events Bypass entitlement checks

Planned Module

ai_assistant — chat assistance, knowledge bases, handoff to humans. Database: ai_assistant_db. Feature prefix: ai_assistant.*.

Provider Independence

Model providers are registered like any other provider (provider-registry.md). Swapping vendors must not rewrite CRM/Accounting domain logic.