chore: import coordenador (subtree)
git-subtree-dir: coordenador git-subtree-mainline:facbe2e340git-subtree-split:ce7af94d55
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// AI_FALLBACK e um estado tecnico: significa "a IA nunca analisou este chamado" (erro,
|
||||
// timeout, IA desligada, JSON invalido, ou cortado pelo limite de AI_MAX_CANDIDATES). NAO e
|
||||
// uma conclusao da IA -- por isso nunca usa uma das 11 classes que a IA pode retornar
|
||||
// (ver logic/classification.js). Politica de elegibilidade fica centralizada em
|
||||
// logic/cooldown.js (applyFallbackPolicy), nao aqui.
|
||||
const AI_FALLBACK_CLASSIFICATION = 'AI_FALLBACK';
|
||||
|
||||
function buildFallbackClassification(reason) {
|
||||
return {
|
||||
classification: AI_FALLBACK_CLASSIFICATION,
|
||||
actionable_today: false,
|
||||
confidence: 0,
|
||||
blocker_type: null,
|
||||
waiting_for: null,
|
||||
next_action: 'Revisar chamado manualmente (nao analisado pela IA)',
|
||||
suggested_action_type: 'manual_review',
|
||||
business_risk: 'medium',
|
||||
reason: `Fallback deterministico: ${reason}`,
|
||||
evidence: [],
|
||||
is_fallback: true,
|
||||
fallback_reason: reason,
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = { buildFallbackClassification, AI_FALLBACK_CLASSIFICATION };
|
||||
Reference in New Issue
Block a user