Files
erp/fleet/golden/invoice-extract/inputs/inpi-16834370.json
T
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
4.8 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"source_sha256": "6de23abd4bd18613741c6e42950b6be2fc3e269d0e6abbd8a3e20e38de99c9a3",
"mime": "application/pdf",
"text": "AGENCE COMPTABLE\n RADUREAU GABRIEL\n 73 Boulevard de l'Yerres (Courcouronn\nDÉCLARANT : 91000 ÉVRY-COURCOURONNES\nRADUREAU GABRIEL\n73 Boulevard de l'Yerres (Courcouronn\n91000 ÉVRY-COURCOURONNES\n\n\n\n\n Paiement internet, le 09/01/2026\n\n RECU DE PAIEMENT¹ / FACTURE²\n Commande n° 16834370\n\n Montant total de la commande : 55,93 €\n Détail du règlement de la commande :\n Réglé par : Carte Bancaire 55,93 €\n Date d'effet du paiement : 09/01/2026 Date d'encaissement : 09/01/2026\n\n Détail de la formalité : J00205614779\n Référence Client : ARCODANGE\n Désignation de la société : ARCODANGE\n Détail de la commande :\n Domaine : Entreprise\n Code recette Libellé - Mandant Quantité Prix unitaire Total HT Total TVA Total TTC\n HT\n IN000 INPI (0) 1 0,00 € 0,00 € 0,00 € 0,00 €\n BE001 Dépôt du document relatif au 1 16,95 € 16,95 € 3,39 € 20,34 €\n bénéficiaire effectif lors de la\n demande d'immatriculation -\n GREFFE D'EVRY\n IB711 Inscription principale de société 1 23,30 € 23,30 € 4,66 € 27,96 €\n commerciale suite à création\n (associé unique) - GREFFE\n D'EVRY\n DE052 Dépôt d'actes ou de pièces 1 6,36 € 6,36 € 1,27 € 7,63 €\n pour la publicité des sociétés -\n GREFFE D'EVRY\n BO000 BODACC (0) - GREFFE 1 0,00 € 0,00 € 0,00 € 0,00 €\n D'EVRY\n Sous-total soumis à TVA 46,61 € 9,32 € 55,93 €\n Sous-total non soumis à TVA 0,00 € 0,00 €\n Total 46,61 € 9,32 € 55,93 €\n Total payé : 55,93 €\n\n 1 - En conformité avec les dispositions du décret n° 2021-300 du 18 mars 2021, le présent reçu de paiement est établi par lInstitut\n National de la Propriété Industrielle au nom et pour le compte du mandant, dont les coordonnées figurent dans le tableau ci-\n dessous.\n Mandant Adresse N° TVA intracommunautaire\n GREFFE D'EVRY 1 RUE DE LA PATINOIRE 91011 EVRY CEDEX\n\n\n Siège : Institut national de la propriété industrielle,\n 15 rue des Minimes - CS 50001 - 92677 Courbevoie - www.inpi.fr - [email protected]\n\n\n\n Établissement public national créé par la loi n°51-444 du 19 avril 1951\n\f2 - Le présent reçu de paiement vaudra facture, avec pour numéro d'identification celui des formalités concernées, sil est\naccompagné du ou des documents de synthèse des formalités validées.\n\n\n\n\n Siège : Institut national de la propriété industrielle,\n 15 rue des Minimes - CS 50001 - 92677 Courbevoie - www.inpi.fr - [email protected]\n\n\n\n Établissement public national créé par la loi n°51-444 du 19 avril 1951\n\f"
}