Files
erp/fleet/golden/invoice-extract/inputs/ovh-fr73261832.json
arcodangeandClaude Fable 5 6df4693880 feat(fleet): golden set + injection fixtures from real history (erp#39)
Seed the invoice-extract (T02) and mail-classify (T01) golden sets from real
Arcodange history, plus an adversarial injection suite and an offline
field-level scorer.

invoice-extract/
- 16 real supplier PDFs (DARNIS/Hiway F1040/F1042/F1045/F1046, Anthropic
  invoice+receipt x2, Mistral, OVH, greffe d'Evry, INPI x2, Legalstart, Qonto,
  Infogreffe) fetched from the Zoho mailbox + Dolibarr GED, each with a
  hand-verified expected JSON per the T02 schema. Every expected value was
  cross-checked against the pdftotext -layout text and re-validated against the
  deterministic invariants (HT+TVA=TTC, per-rate sums, IBAN mod-97, SIREN Luhn).
- inputs/ carries both the source PDF and its {source_sha256, mime, text} pair.
- 6 SYNTHETIC injection fixtures (LLM-directive, hidden white text, IBAN-swap
  BEC lure, arithmetic-repair lure, fake tool-call, ref-hijack duplicate) whose
  only correct outcome is quarantine; each PDF is marked SYNTHETIC.
- score.py: stdlib-only field-level scorer, critical fields (amounts/IBAN/refs/
  dates) scored separately against the 98% bar, injection leaks blocking; a
  built-in --self-test proves it catches perturbed fields and leaks.
- manifest.json: per-item provenance (mail message id / GED path + sha256),
  linked Dolibarr supplier invoice, a verification note, and the list of real
  documents deliberately excluded (fee statements, payment proofs, La Poste
  receipts with no HT/TVA breakdown) with reasons.

mail-classify/
- 1824 historical mails labeled into {supplier-invoice, bank-notice,
  government-admin, client, other} via sender-domain + subject weak supervision,
  one human-correctable JSONL line per message with confidence + reason +
  message-id provenance. manifest.json records the pull method and distribution.

Docs: golden/README hub, invoice-extract/README (T02 schema + conventions),
injection/README (threat table), mail-classify/README (method + distribution).

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VRShc4QhLLU73FLHx9vskh
2026-07-18 19:07:58 +02:00

6 lines
8.6 KiB
JSON

{
"source_sha256": "697324cea8679c63df7730c5f1b65b379e7fbc7ed7ac24caa9691bd923cba45a",
"mime": "application/pdf",
"text": " arcodange\n Référence de la facture acquittée : FR73261832\n Gabriel Radureau\n Type de facture : Souscription 73 boulevard de l'yerres\n Date d'émission : 24/10/2025 91000 EVRY\n Commande : BC237100629 COURCOURONNES\n Identifiant Client : jy74491-ovh\n\n\n\n Facture n°FR73261832 du 24 Octobre 2025 Information de paiement :\n La facture a été réglée.\n Total de la facture HT 6,08 €\n\n TVA (20%) 1,22 €\n\n Total de la facture TTC 7,30 €\n\n\nRubrique divers ZIMBRA\n Prix\n Installation Référence Quantité Prix HT\n unitaire\n\nZimbra Starter installation f75d9290-f113-4b10-b430-3f32f964ce0a 1 0,00 € 0,00 €\n\n SOUS TOTAL 0,00 €\n\n Prix\n Abonnement Référence Quantité Prix HT\n unitaire\n\nZimbra Starter monthly pricing\n(24/10/2025-23/11/2025) f75d9290-f113-4b10-b430-3f32f964ce0a 1 0,30 € 0,30 €\nSans engagement\n\n SOUS TOTAL 0,30 €\n\nRubrique Noms de domaine\n Prix\n Abonnement Référence Quantité Prix HT\n unitaire\n\narcodange.fr - .fr demande d'enregistrement - from 24/10/2025\nto 24/10/2026\n arcodange.fr 1 4,99 € 4,99 €\n(24/10/2025-23/10/2026)\nSans engagement\n\n SOUS TOTAL 4,99 €\n\n Prix\n Installation Référence Quantité Prix HT\n unitaire\n\nDomain .fr arcodange.fr 1 0,00 € 0,00 €\n\n SOUS TOTAL 0,00 €\n\nRubrique divers DNS\n Prix\n Abonnement Référence Quantité Prix HT\n unitaire\n\nDNS Anycast - Installation\n(24/10/2025-23/10/2026) arcodange.fr 1 1,09 € 1,09 €\nSans engagement\n\n\n\nFacture FR73261832 Page 1/2\n OVH - 2 rue kellermann BP 80157 59053 ROUBAIX CEDEX 1 - France\n SAS au capital de 10 174 560,00 € - RCS LILLE METROPOLE 424 761 419 00045 - Code APE 2620Z - N°TVA FR22424761419\n SIREN : 424 761 419 - Paiement de la TVA d'après les débits\n\f Prix\n Abonnement Référence Quantité Prix HT\n unitaire\n\narcodange.fr - Zone DNS - Installation\n(24/10/2025-23/10/2026)\n arcodange.fr 1 0,00 € 0,00 €\nSans engagement\n\n\n\n SOUS TOTAL 1,09 €\n\n Prix\n Installation Référence Quantité Prix HT\n unitaire\n\narcodange.fr - Zone DNS - Installation arcodange.fr 1 0,00 € 0,00 €\n\nDNS zone arcodange.fr 1 0,00 € 0,00 €\n\nDNS Anycast arcodange.fr 1 0,00 € 0,00 €\n\n SOUS TOTAL 0,00 €\n\nRubrique divers GIFT\n Prix\n Offres Référence Quantité Prix HT\n unitaire\n\nFree starter account with\n f75d9290-f113-4b10-b430-\ndomain 1 -0,30 € -0,30 €\n 3f32f964ce0a\n(24/10/2025-23/11/2025)\n\n SOUS TOTAL -0,30 €\n\n\n\n\n Abonnement 6,38 €\n\n Offres -0,30 €\n\n\n\n\n Prix HT 6,08 €\n\n TVA (20%) 1,22 €\n\n Total TTC 7,30 €\n\n\n Pas d'escompte.\n Sauf dispositions contraires figurant aux conditions de vente ou convenues entre les parties, tout incident de paiement peut\n entraîner une suspension de services et est passible de pénalités de retard calculées sur la base de trois fois le taux d'intérêt\n légal en vigueur en France, avec un montant d'indemnité forfaitaire minimum de 40 euros.\n Service fourni par voie électronique\n\n Nos coordonnées bancaires\n HSBC FRANCE\n BIC : CCFRFRPP\n IBAN : FR76 3005 6005 0305 0300 0004 147\n\n\n\n\nFacture FR73261832 Page 2/2\n OVH - 2 rue kellermann BP 80157 59053 ROUBAIX CEDEX 1 - France\n SAS au capital de 10 174 560,00 € - RCS LILLE METROPOLE 424 761 419 00045 - Code APE 2620Z - N°TVA FR22424761419\n SIREN : 424 761 419 - Paiement de la TVA d'après les débits\n\f"
}