# v4928.1.5.28 — Chatwoot context SQL + audit allow-list hotfix Correções: - Corrige erro PostgreSQL `AmbiguousParameter` na query de histórico Chatwoot usada pelo classificador LLM com últimos emails. - A query passa a fazer `CAST(:current_source_event_id AS TEXT)` para parâmetros nulos. - Inclui `scripts/audit_system_health.py` no pacote. - Atualiza auditoria para aceitar actions operacionais válidas (`PREPARE_ORDER`, `REVIEW_RECONCILIATION`). - Distingue erros reais `processing_exception:*` de eventos benignos `outgoing:*` e `ignored:*`. Validação: - `python -m compileall -q app scripts tests` - `python -m pytest -q`