← story.propek
STORY MI-2.4
MI-2.4
Epic: Market Intel Macro v1
PENDING
ACCEPTANCE CRITERIA (10/10)
1. Script `scripts/daily-digest.js` reads all state files: bcb-latest, commodities-latest, fred-latest, rss-latest, gdelt-latest, alerts-active, impact-report-latest
2. Generates a markdown report at `reports/YYYY-MM-DD-daily-digest.md`
3. Report includes frontmatter: title, date, type=daily-digest, version=1.0, agents=[sentinel], status=published, tags
4. Report sections in order: Alertas Ativos, Indicadores Brasil (BCB), Commodities, Indicadores EUA (FRED), Noticias Relevantes, Eventos Geopoliticos (GDELT), Impacto Propek, Recomendacoes
5. For numeric indicators, shows: valor atual, anterior, delta (%), tendencia arrow
6. If any state file is missing, includes "Dados nao disponiveis" for that section (does NOT crash)
7. Writes `data/state/digest-latest.json` with metadata: date, generated_at, report_path, sections_available, sections_missing, alert_count
8. Supports `--dry-run` (prints report to stdout without writing), `--verbose`, `--help`
9. Supports `--date YYYY-MM-DD` flag for retroactive digest generation
10. Alertas section only appears if there are active alerts