1. ¿Qué es el Monitor XAI?
El Monitor XAI (eXplainable Artificial Intelligence) es una plataforma web de auditoría automatizada del gasto público argentino. Cruza tres fuentes oficiales — el Boletín Oficial de la República Argentina (BORA), el portal Comprar.gob.ar y la Tesorería General de la Nación (TGN) — y aplica una matriz de 7 escenarios desarrollada por el Ph.D. Vicente Humberto Monteverde para detectar patrones de transferencia regresiva de ingresos.
Importante: el sistema NO detecta delitos penales, no es un canal de denuncia y no analiza la corrupción de personas individuales.
Lo que SÍ hace: analiza decisiones discrecionales del Estado, detecta transferencias económicas regresivas y genera alertas tempranas basadas en evidencia, como herramienta de transparencia.
1.1 Las tres fuentes de datos
- Boletín Oficial (BORA) — Sección 3ª: avisos de licitaciones y adjudicaciones.
- Comprar.gob.ar — portal oficial de compras públicas, con el detalle de cada proceso.
- Tesorería General de la Nación (TGN) — confirma si el proveedor efectivamente cobró.
Cuando un mismo contrato aparece en las tres fuentes, el sistema lo marca como "Flujo Completo": trazabilidad total desde la decisión hasta el cobro.
2. Fundamento teórico — Los 7 escenarios de la Matriz XAI
La Gran Corrupción no se limita a actos ilegales. Según la investigación del Dr. Monteverde (Journal of Financial Crime, 2020), la corrupción moderna se diversificó en fenómenos legales que producen las mismas consecuencias económicas.
| Escenario | Peso XAI | Dirección de la transferencia |
|---|---|---|
| Privatización / Concesión | 9.0 | Estado → Privados |
| Obra Pública / Contratos | 8.0 | Estado → Empresas contratistas |
| Tarifas de Servicios Públicos | 7.0 | Usuarios → Concesionarias |
| Precios Regulados | 6.0 | Consumidores → Productores |
| Salarios y Paritarias | 5.0 | Asalariados → Empleadores |
| Jubilaciones / Pensiones | 10.0 | Jubilados → Estado |
| Traslado de Impuestos | 9.0 | Contribuyentes → Estado |
Cada proceso recibe un Índice XAI de 0 a 10 según el escenario y el contexto del contrato. A mayor índice, mayor nivel de discrecionalidad detectado.
Monteverde, V. H. (2020). Great corruption – theory of corrupt phenomena. Journal of Financial Crime, Vol. 28 No. 2, pp. 580-595. doi.org/10.1108/JFC-04-2020-0062
3. Estructura de navegación
📊 Dashboard
Resumen ejecutivo con métricas y gráficos del último análisis.
🚀 Análisis en Vivo
Pantalla operativa para ejecutar el scraping y el análisis del día.
🏛️ Licitaciones
Flujo cruzado BORA → Comprar.gob.ar → TGN, con trazabilidad completa.
📖 Documentación
Marco teórico, guía de uso y referencia de la API.
4. Dashboard
Pantalla principal con el resumen ejecutivo del último análisis ejecutado.
4.1 Métricas principales
Cuatro tarjetas superiores: total de procesos analizados, alertas de alto riesgo, escenario más frecuente e índice XAI promedio.
4.2 Gráficos
- Distribución por Tipo de Fenómeno — frecuencia de cada uno de los 7 escenarios.
- Nivel de Riesgo — distribución proporcional por categoría de riesgo.
- Detalle del Análisis Algorítmico — tabla expandible con índice XAI, escenario, organismo, proveedor y monto.
5. Análisis en Vivo
Sección operativa: ejecuta el scraper y aplica la Matriz XAI sobre los datos del día seleccionado.
5.2 Ciclo de Análisis Completo
- Conexión con Comprar.gob.ar
- Extracción de datos del día
- Cruce con BORA
- Consulta TGN (confirmación de cobro)
- Aplicación de la Matriz XAI
- Generación del reporte Excel
- Redireccionamiento a Dashboard y Licitaciones
6. Licitaciones — Flujo Cruzado BORA → Comprar → TGN
La pantalla más informativa para el seguimiento diario: combina las tres fuentes en una vista unificada.
6.2 Métricas del flujo
- Total Publicaciones BORA — todos los avisos de la Sección 3ra del día.
- Con CUIT Extraído — publicaciones con CUIT identificado.
- Sin CUIT (pendientes) — requieren revisión manual.
- Flujo Completo BORA→TGN — trazabilidad total: BORA + Comprar.gob.ar + cobro confirmado en TGN.
6.3 Tabla de adjudicaciones
Junto al CUIT de cada proveedor aparecen dos señales adicionales (ver Secciones 7 y 8):
- ✓ / ⚠️ — validación de formato del CUIT (dígito verificador AFIP).
- 🌍 ALERTA INTERNACIONAL — CUIT en la base de sanciones internacionales (MEACI).
7. Validación de formato de CUIT
Cada CUIT de proveedor se extrae automáticamente del texto de un aviso del Boletín Oficial (a veces un PDF escaneado), así que la extracción puede fallar. El sistema valida cada CUIT con el algoritmo real de dígito verificador módulo 11 de AFIP.
✓ SÍ confirma que el número tiene 11 dígitos y que el dígito verificador es matemáticamente correcto — es decir, que el CUIT está bien formado.
⚠️ NO consulta ningún padrón oficial: no confirma inscripción real en AFIP, ni devuelve razón social o estado. Eso requeriría el webservice oficial de AFIP (padrón A13) con certificado digital, no integrado aún.
Acceso programático (API)
GET /api/cuit/validar?cuit=30-12345678-1 GET /api/cuit/validar-lote?cuits=30-12345678-1,20-12345678-6 (máx. 200)
8. Cruce internacional de sanciones (MEACI)
Servicio independiente que cruza el CUIT del proveedor adjudicado contra bases de sanciones internacionales. Si hay coincidencia, la fila muestra 🌍 ALERTA INTERNACIONAL.
GET /api/cruce-cuit?cuit=30-12345678-1 GET /api/cruce-cuits-bulk?cuits=cuit1,cuit2,cuit3 (máx. 50)
9. Documentación e interpretación de resultados
9.1 Guía rápida
- Ir a Análisis en Vivo y pulsar 🚀 para ejecutar el scraping del día.
- En Dashboard, revisar métricas y gráficos.
- Ordenar por Índice XAI para priorizar los casos más críticos.
9.2 Interpretación del índice
El Índice XAI (0-10) mide el nivel de discrecionalidad detectado. Cuanto más alto, mayor la probabilidad de un fenómeno de transferencia regresiva (Sección 2).
10. API REST
API construida con FastAPI. Documentación interactiva (Swagger UI) en /docs.
| Endpoint | Descripción |
|---|---|
GET /api/status | Estado general del sistema |
GET /api/licitaciones/datos | Datos del último reporte |
POST /api/licitaciones/ejecutar | Ejecuta el ciclo de análisis |
GET /api/marco-teorico | Detalle de la Matriz XAI |
GET /api/cuit/validar | Valida el formato de un CUIT |
GET /api/cruce-cuit | Consulta sanciones internacionales (MEACI) |
GET /api/ia/status | Indica si la IA está configurada |
GET /health | Healthcheck del servicio |
11. Flujo de trabajo recomendado
- Todas las mañanas: ejecutar el ciclo del día en Análisis en Vivo.
- Revisar el Dashboard por nuevas alertas de alto riesgo.
- En Licitaciones, filtrar por "Sin CUIT" para revisión manual.
- Verificar los íconos ✓/⚠️ antes de dar por buena una adjudicación.
- Prestar atención a cualquier fila 🌍 ALERTA INTERNACIONAL.
- Ordenar por Índice XAI para priorizar los casos más críticos.
12. Aviso
Esta herramienta es de carácter experimental y académico. Los datos provienen de fuentes públicas oficiales del Estado argentino. Los resultados son indicadores algorítmicos de riesgo — no implican juicio de valor, acusación ni determinación de responsabilidad sobre ninguna empresa, organismo o persona.
Contacto: vhmonte@retina.ar / viny01958@gmail.com · Licencia MIT
1. What is Monitor XAI?
Monitor XAI (eXplainable Artificial Intelligence) is a web platform for automated auditing of Argentine public spending. It cross-references three official sources — the Official Gazette (BORA), the Comprar.gob.ar procurement portal, and the National Treasury (TGN) — and applies a 7-scenario matrix developed by Ph.D. Vicente Humberto Monteverde to detect regressive income transfer patterns.
Important: this system does NOT detect criminal offenses, is not a whistleblowing channel, and does not analyze individual people's corruption.
What it DOES do: it analyzes discretionary state decisions, detects regressive economic transfers, and generates evidence-based early warnings.
1.1 The three data sources
- Official Gazette (BORA) — Section 3: tender and award notices.
- Comprar.gob.ar — the official public procurement portal.
- National Treasury (TGN) — confirms whether the vendor was actually paid.
When the same contract appears in all three sources, the system flags it as "Complete Flow": fully traceable from decision to payment.
2. Theoretical foundation — The 7 scenarios of the XAI Matrix
Grand corruption is not limited to illegal acts. Per Dr. Monteverde's research (Journal of Financial Crime, 2020), modern corruption diversified into legal phenomena producing the same economic consequences.
| Scenario | XAI Weight | Direction of the transfer |
|---|---|---|
| Privatization / Concession | 9.0 | State → Private sector |
| Public Works / Contracts | 8.0 | State → Contracting firms |
| Public Utility Tariffs | 7.0 | Users → Utility companies |
| Regulated Prices | 6.0 | Consumers → Producers |
| Wages and Collective Bargaining | 5.0 | Employees → Employers |
| Pensions | 10.0 | Retirees → State |
| Tax Shifting | 9.0 | Taxpayers → State |
Each process receives an XAI Index from 0 to 10 based on the detected scenario and contract context. The higher the index, the greater the discretion detected.
Monteverde, V. H. (2020). Great corruption – theory of corrupt phenomena. Journal of Financial Crime, Vol. 28 No. 2, pp. 580-595. doi.org/10.1108/JFC-04-2020-0062
3. Navigation structure
📊 Dashboard
Executive summary with metrics and charts from the latest analysis.
🚀 Live Analysis
Operational screen to run the day's scraping and analysis.
🏛️ Tenders
Cross-referenced BORA → Comprar.gob.ar → TGN flow.
📖 Documentation
Theoretical framework, usage guide and API reference.
4. Dashboard
The system's main screen, showing an executive summary of the latest analysis run.
4.1 Key metrics
Four top cards: total processes analyzed, high-risk alerts, most frequent scenario, and average XAI index.
4.2 Charts
- Distribution by Phenomenon Type — frequency of each of the 7 scenarios.
- Risk Level — proportional distribution by risk category.
- Algorithmic Analysis Detail — expandable table with index, scenario, agency, vendor and amount.
5. Live Analysis
The operational section: runs the scraper and applies the XAI Matrix to the selected day's data.
5.2 Full Analysis Cycle
- Connect to Comprar.gob.ar
- Extract the day's data
- Cross-reference with BORA
- Query the TGN (payment confirmation)
- Apply the XAI Matrix
- Generate the Excel report
- Redirect to Dashboard and Tenders
6. Tenders — BORA → Comprar → TGN Cross-Referenced Flow
The most informative screen for daily monitoring, combining all three sources into one unified view.
6.2 Flow metrics
- Total BORA Publications — every notice from the day's Section 3.
- With CUIT Extracted — publications with an identified CUIT.
- Without CUIT (pending) — require manual review.
- Complete BORA→TGN Flow — fully traceable: BORA + Comprar.gob.ar + confirmed TGN payment.
6.3 Awards table
Next to each vendor's CUIT, two additional signals appear (see Sections 7 and 8):
- ✓ / ⚠️ — CUIT format validation (AFIP check digit).
- 🌍 INTERNATIONAL ALERT — CUIT found in the international sanctions database (MEACI).
7. CUIT format validation
Every vendor CUIT is automatically extracted from an Official Gazette notice (sometimes a scanned PDF), so extraction can fail. The system validates every CUIT with AFIP's real modulus-11 check-digit algorithm.
✓ It DOES confirm the number has 11 digits and a mathematically correct check digit — i.e., the CUIT is well-formed.
⚠️ It does NOT query any official registry: it does not confirm real AFIP registration, nor return the legal name or status. That would require AFIP's official webservice (Padrón A13) via digital certificate, not yet integrated.
Programmatic access (API)
GET /api/cuit/validar?cuit=30-12345678-1 GET /api/cuit/validar-lote?cuits=30-12345678-1,20-12345678-6 (max. 200)
8. International sanctions cross-reference (MEACI)
An independent service that cross-references the awarded vendor's CUIT against international sanctions databases. On a match, the row shows 🌍 INTERNATIONAL ALERT.
GET /api/cruce-cuit?cuit=30-12345678-1 GET /api/cruce-cuits-bulk?cuits=cuit1,cuit2,cuit3 (max. 50)
9. Documentation and how to interpret results
9.1 Quick start
- Go to Live Analysis and click 🚀 to run the day's scraping.
- On the Dashboard, review metrics and charts.
- Sort by XAI Index to prioritize the most critical cases.
9.2 Interpreting the index
The XAI Index (0-10) measures the level of discretion detected. The higher it is, the more likely it corresponds to a regressive-transfer scenario (Section 2).
10. REST API
A REST API built with FastAPI. Interactive documentation (Swagger UI) at /docs.
| Endpoint | Description |
|---|---|
GET /api/status | Overall system status |
GET /api/licitaciones/datos | Data from the latest report |
POST /api/licitaciones/ejecutar | Runs the analysis cycle |
GET /api/marco-teorico | Detail of the XAI Matrix |
GET /api/cuit/validar | Validates a CUIT's format |
GET /api/cruce-cuit | Checks international sanctions (MEACI) |
GET /api/ia/status | Indicates whether the AI is configured |
GET /health | Service health check |
11. Recommended workflow
- Every morning: run the day's cycle in Live Analysis.
- Check the Dashboard for new high-risk alerts.
- In Tenders, filter by "No CUIT" for manual review.
- Check the ✓/⚠️ icons before treating an award as reliable.
- Pay attention to any row marked 🌍 INTERNATIONAL ALERT.
- Sort by XAI Index to prioritize the most critical cases.
12. Disclaimer
This tool is experimental and academic in nature. Data comes from official public sources of the Argentine State. Results are algorithmic risk indicators — they do not imply a value judgment, accusation, or determination of liability against any company, agency or person.
Contact: vhmonte@retina.ar / viny01958@gmail.com · MIT License