refactor(ux): garantir agnosticismo polimorfico e exemplos neutros nos artefatos de UX
This commit is contained in:
parent
b540fd97c0
commit
790b56e614
21 changed files with 259 additions and 254 deletions
|
|
@ -64,6 +64,17 @@ if [ -d "$ROOT_DIR/.agent/rules" ] && [ -d "$ROOT_DIR/.agent/global/rules" ]; th
|
|||
fi
|
||||
fi
|
||||
|
||||
# Verificar agnosticismo polimórfico do .agent em relação ao modulo-id hospedeiro
|
||||
HOST_MODULO_ID=$(grep -E "^modulo-id:" "$ROOT_DIR/memorias-ia/modulo.yml" 2>/dev/null | awk '{print $2}' || true)
|
||||
if [ -n "$HOST_MODULO_ID" ] && [ -d "$ROOT_DIR/.agent/rules" ]; then
|
||||
if grep -rnI -i "$HOST_MODULO_ID" "$ROOT_DIR/.agent/rules" "$ROOT_DIR/.agent/skills" "$ROOT_DIR/.agent/agents" >/dev/null 2>&1; then
|
||||
echo -e " ${VERMELHO}✗${RESET} Violação de agnosticismo: modulo-id '$HOST_MODULO_ID' encontrado hardcoded dentro de .agent/."
|
||||
TOTAL_ERROS=$((TOTAL_ERROS + 1))
|
||||
else
|
||||
echo -e " ${VERDE}✓${RESET} Agnosticismo verificado: zero menções ao módulo hospedeiro (${NEGRITO}$HOST_MODULO_ID${RESET}) em .agent/."
|
||||
fi
|
||||
fi
|
||||
|
||||
# 1. Validar memorias-ia/modulo.yml (Pilar 6 - Identidade)
|
||||
MODULO_YML="$ROOT_DIR/memorias-ia/modulo.yml"
|
||||
echo -e "\n${NEGRITO}[1/6] Identidade do Módulo (memorias-ia/modulo.yml)${RESET}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue