Files
Alby96andClaude Opus 5.5 f1ba452aba Collect news from the SPEC 4.4 feeds, group retold stories and link them to instruments (refs #56)
News is the first input of Phase 7. Every two minutes the "notizie" job asks each
enabled feed conditionally and backs off a failing one up to an hour.

- Parsing: RSS 2.0, RSS 1.0 and Atom are read without DTDs or entity expansion, so a
  hostile feed reads nothing from disk.
- Deduplication: articles are deduplicated by canonical URL.
- Grouping: retold titles join one story by word similarity within 48 hours, and
  independent publishers are counted by registrable domain.
- Linking: stories are linked to instruments by source symbols, cashtags, exchange
  tickers, coin tickers and capitalised company names; to the crypto or equity class
  or to the market by theme; to the source topic as a fallback.

ADR 0014 records the thresholds. The tests read a synthetic archive in each source's
real format and run on both engines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 18:57:49 +01:00

14 lines
890 B
Markdown

# Archivio di notizie per i test (issue #56)
Feed nella forma che le fonti di SPEC 4.4 avevano il 14/11/2026: struttura, spazi dei nomi, formati delle date e degli
indirizzi presi dai feed veri. I titoli e i testi sono inventati per i test: nessun articolo vero è copiato qui.
- `cnbc.xml`, `marketwatch.xml`: la stessa storia raccontata da due giornali con titoli diversi.
- `coindesk.xml`, `cointelegraph.xml`: date con `+0000`, parametri di tracciamento negli indirizzi, una ripresa.
- `investing.xml`: data senza fuso (`2026-11-14 17:01:16`), da leggere come UTC.
- `fxstreet.xml`: data con `Z` dopo l'ora, senza dichiarazione XML.
- `sole24ore.xml`, `ansa.xml`: italiano, accenti, fuso `+0100`.
- `fed.xml`: la Fed, fonte affidabile sul mercato in generale.
- `atom.xml`: un feed Atom.
- `hostile.xml`: un documento con DTD ed entità esterne, che non deve leggere nulla dal disco.