# Profils des Sub-Agents IFPB

## Architecture Multi-Agent IFPB

Le projet IFPB s'appuie sur une équipe de sub-agents IA spécialisés, chacun responsable d'un domaine métier spécifique.

## 1. ifpb-fiscal-engine — Moteur Fiscal

**Rôle :** Calcul automatique de l'IFTB (Impôt Foncier sur la Propriété Bâtie)

**Compétences clés :**
- Grille tarifaire A/B/C/D (valeur locative théorique / m²)
- Ventilation verticale (immeubles mixtes) et horizontale (multi-bâtiments)
- Verrouillage faux chantiers (détection occupation effective)
- Requalification commerces précaires (plancher Cat B)
- Exonération temporaire CGI (constructions neuves < 5 ans)
- Calcul IFTB principal + CAC (10% centimes additionnels)

**Entrées :** Données Kobo (parcelle, bâtiments, étages, matériaux, usage)
**Sorties :** Rôle fiscal JSON, notification SMS, statut paiement

---

## 2. ifpb-kobo-form — Concepteur Formulaire

**Rôle :** Conception et maintenance du XLSForm de recensement foncier

**Compétences clés :**
- Design XLSForm (survey/choices/settings)
- Skip logic & relevance rules
- Contraintes validation (GPS < 10m, CIN 12 chiffres, téléphone 10 chiffres)
- Photo obligatoire par étage (preuve technique anti-fraude)
- Calculate fields (read-only pour agent)
- Offline-first architecture

**Règle d'or :** L'agent recense, il n'évalue PAS. Montant visible, catégories cachées.

---

## 3. ifpb-collection-circuit — Circuit Recouvrement

**Rôle :** Implémentation du circuit Zéro-Coulage (Notification → Paiement → Trésor → Rapprochement)

**Compétences clés :**
- Notification SMS automatique (template, retry 3x)
- Encaissement dématérialisé (Mobile Money, Virement, Guichet)
- Sécurisation Trésor Public (adossement compte marchand)
- Rapprochement automatisé quotidien
- Gestion restes à recouvrer (J+7, J+15, J+30, J+60, J+90)
- États du rôle : EMIS → NOTIFIÉ → PAYÉ / RETARD → CONTENTIEUX

---

## 4. ifpb-elop-procedure — Chaîne ELOP

**Rôle :** Procédure d'exécution des dépenses communales (Loi 2014-018)

**Compétences clés :**
- Phase ENGAGEMENT (bon de commande, disponibilité budgétaire)
- Phase LIQUIDATION (PV de réception, commission)
- Phase ORDONNANCEMENT (mandat de paiement, pièces justificatives)
- Phase PAIEMENT (contrôle receveur, chèque du trésor)
- Séparation Ordonnateur ≠ Comptable (principe fondamental)
- Cas particuliers : urgences, avances, annulations

---

## 5. ifpb-ppp-framework — Cadre PPP/BOT

**Rôle :** Structuration des partenariats public-privé (Loi 2015-039)

**Compétences clés :**
- Modèle BOT (Build-Operate-Transfer) 15 ans
- Redevance fixe + variable (revenue share)
- Matrice priorisation projets (Urgence 40%, Rendement 35%, Faisabilité 25%)
- Clause d'audit annuelle obligatoire
- Gestion risques (construction, retard, demande, force majeure)
- Intégration PIC (Plan d'Investissement Communal)

---

## 6. ifpb-data-quality — Qualité & Terrain

**Rôle :** Validation données, détection fraudes, KPIs agents, éthique

**Compétences clés :**
- Charte éthique recenseur (zéro tolérance corruption)
- Scripts réponse objections contribuables
- Validation automatique Kobo (GPS, photo, CIN, superficie)
- Contrôles post-soumission serveur (Python)
- Audit aléatoire 5% (photo, GPS, terrain, intégrité)
- KPIs agents : productivité, fiabilité, succès, intégrité
- Planification tournées (90 jours, 10 agents, 14 636 foyers)

---

## Coordination

Tous les sub-agents partagent :
- Un format de données commun (JSON schema)
- Une charte graphique cohérente (IFPB Platform)
- Un principe de traçabilité complète (audit trail)
- Une documentation unifiée (cette plateforme)

---
*Document généré par IFPB Platform — v2026.06.02*
