This commit is contained in:
2026-06-15 07:51:07 -03:00
parent 1f1188dd4e
commit 9af4e10a92
10 changed files with 1057 additions and 534 deletions

View File

@@ -1,54 +1,34 @@
# Source of truth for global/default guardrails in Compass Backoffice.
# This file is intentionally aligned with config/agents/backoffice_anatel/guardrails.yaml
# so framework stages that read the global path and stages that read the agent profile
# apply the same policy set.
agent_id: backoffice_anatel
profile: backoffice_anatel_enterprise
profile: backoffice_anatel
input:
- code: INPUT_SIZE
enabled: true
action: block
max_chars: 12000
- code: MSK
enabled: true
action: sanitize
- code: PINJ
enabled: true
action: block
- code: TOX
enabled: true
action: block
- code: DLEX_IN
enabled: true
action: block
- code: RAGSEC
enabled: true
action: block
- code: VLOOP
enabled: true
action: block
output:
- code: REVPREC
enabled: true
action: sanitize
- code: DLEX_OUT
enabled: true
action: sanitize
- code: OOS
enabled: true
action: review
- code: CMP
enabled: true
action: review
- code: AOFERTA
enabled: true
action: block
business_rules:
require_evidence_for:
- protocolo
- cliente
- contrato
- status_siebel
- acao_operacional
forbid_without_tool_ok:
- registrar_acao_backoffice
- registrar_acao_siebel
domain_workflows:
checklist: src.agent.graphs.main_graph.create_main_agent_graph
response_emulator: src.agent.graphs.emulator_graph.create_emulator_graph

View File

@@ -1,4 +1,9 @@
# Source of truth for global/default judges in Compass Backoffice.
# Aligned with config/agents/backoffice_anatel/judges.yaml to avoid running a
# weaker judge set when the framework is configured with the global path.
agent_id: backoffice_anatel
profile: judge
fail_closed: true
judges:
- name: response_quality
enabled: true
@@ -8,13 +13,21 @@ judges:
threshold: 0.80
- name: backoffice_no_fabricated_protocol
enabled: true
type: llm
threshold: 0.80
description: Verifica se a resposta não inventa protocolo, cliente, contrato, SLA ou status operacional.
- name: siebel_action_requires_tool_ok
enabled: true
type: llm
threshold: 0.85
description: Bloqueia confirmação de registro/fechamento Siebel sem evidência ok/registered.
- name: anatel_domain_traceability
enabled: true
type: llm
threshold: 0.80
description: Exige rastreabilidade para decisão de cancelamento, reclassificação, tratamento ou encaminhamento.
- name: response_emulator_policy
enabled: true
type: llm
threshold: 0.80
description: Valida resposta formal ANATEL gerada pelo emulador antes de persistir/aprovar/fechar.