Contexto
Context
Los modelos de lenguaje escriben buenos primeros borradores de un comentario mensual. También cometen exactamente los errores que hacen que finanzas deje de confiar en un reporte: una cifra parecida pero no exacta, el interanual citado como mensual, “creció” cuando el dato cayó, el número de otra métrica, o un dato externo sin fuente.
Language models write good first drafts of a monthly commentary. They also make exactly the mistakes that make finance stop trusting a report: a figure that is close but not right, year-on-year quoted as month-on-month, “grew” where the data fell, a number borrowed from another metric, or an outside figure nobody sourced.
Revisar oración por oración a mano anula el beneficio de automatizar.
Checking sentence by sentence by hand defeats the point of automating.
Enfoque
Approach
Prueba
Test
Dos borradores incluidos en el repositorio: uno correcto y otro con cinco errores típicos plantados a propósito. Esta es la salida real:
Two drafts ship with the repository: one correct and one with five typical mistakes planted on purpose. This is the actual output:
$ python run.py --draft examples/draft_ok.md 18 numbers checked, 0 problems -> RELEASED $ python run.py --draft examples/draft_with_errors.md 13 numbers checked, 5 problems -> BLOCKED NOT_FOUND 4,8 | La facturación bajó 4,8% contra agosto ... WRONG_DIRECTION 10,6 | Los clientes nuevos crecieron 10,6% contra agosto ... WRONG_METRIC 7,9 | La tasa de devolución fue 7,9% ... WRONG_PERIOD 30,7 | El CAC subió 30,7% contra agosto. NOT_FOUND 30 | ... una inflación cercana al 30% anual.
Resultado
Result
Salida del caso de prueba (datos sintéticos, errores cargados a propósito):
Output of the test case (synthetic data, errors planted on purpose):
Entregables
Deliverables
- Cálculo de KPIs reproducible desde los datos crudos.
- Verificador de números en formato argentino (1.234,5).
- Reporte HTML con cada cifra en verde o rojo.
- Compuerta que bloquea la publicación, lista para un job programado.
- Reproducible KPI computation from raw data.
- Number checker for Argentine formatting (1.234,5).
- HTML report with every figure in green or red.
- Release gate that blocks publishing, ready for a scheduled job.
