NOTICE - EPITA-IS verbatim copies in `MyIA.AI.Notebooks/SymbolicAI/ArgumentAnalysis/argumentation_lib/` ======================================================================================================== This directory contains verbatim copies of source files from the **2025-Epita-Intelligence-Symbolique** project (EPITA-IS), a pedagogical multi-agent argumentation analysis platform developed at EPITA. Source repository : https://github.com/jsboigeEpita/2025-Epita-Intelligence-Symbolique Source LICENSE : MIT License (Copyright (c) 2025 jsboigeEpita) See https://opensource.org/licenses/MIT CoursIA copy ------------ | File in CoursIA `argumentation_lib/` | Upstream path in EPITA-IS | Upstream commit | |---------------------------------------|----------------------------|-----------------| | `_shared_state.py` (1502 lines) **partial** | `argumentation_analysis/core/shared_state.py` | bfff7542 (2026-09-29, re-vendor audit #18478) | | `_bipolar_insight.py` (227 lines) | `argumentation_analysis/agents/core/logic/bipolar_insight.py` | 9f1ecd05a (2026-12-01, tronc EPITA lot 2 #16457) -- VERBATIM, aucune modification ; corps SHA1 `663bed136f5ad21ddd5e88ad7e5accbe8e6653ff` | | `_state_manager_plugin.py` (840 lines) **partial** | `argumentation_analysis/core/state_manager_plugin.py` | 9834462 (clusterManager LGTM SHA, B.2 vendor faa10e74f, PRs #2137/#2856) | | `_taxonomy_sophism_detector.py` (442 lines) | `argumentation_analysis/agents/core/informal/taxonomy_sophism_detector.py` | a8025f60 (2026-07-02) | | `_informal_definitions.py` (891 lines) | `argumentation_analysis/agents/core/informal/informal_definitions.py` | a8025f60 (2026-07-02) | | `_tweety_bridge.py` (488 lines) | `argumentation_analysis/agents/core/logic/tweety_bridge.py` | a8025f60 (2026-07-02) | | `_pl_handler.py` (689 lines) | `argumentation_analysis/agents/core/logic/pl_handler.py` | a8025f60 (2026-07-02) | | `_fol_handler.py` (1163 lines) | `argumentation_analysis/agents/core/logic/fol_handler.py` | a8025f60 (2026-07-02) | | `_modal_handler.py` (327 lines) | `argumentation_analysis/agents/core/logic/modal_handler.py` | a8025f60 (2026-07-02) | | `_adf_handler.py` (NOT-VERBATIM : adaptation locale du 2026-10-29, voir « Adaptations locales declarees » ci-dessous) | `argumentation_analysis/agents/core/logic/adf_handler.py` | a8025f60 (2026-07-02) + adaptation CoursIA du 2026-10-29 | | `_af_handler.py` (234 lines) | `argumentation_analysis/agents/core/logic/af_handler.py` | a8025f60 (2026-07-02) | | `_ranking_handler.py` (120 lines) | `argumentation_analysis/agents/core/logic/ranking_handler.py` | a8025f60 (2026-07-02) | | `_belief_revision_handler.py` (NOT-VERBATIM : adaptation locale du 2026-11-11 -- validation de `method` contre `REVISION_METHODS`, voir « Adaptations locales declarees » ci-dessous) | `argumentation_analysis/agents/core/logic/belief_revision_handler.py` | a8025f60 (2026-07-02) + adaptation CoursIA du 2026-11-11 (#23163) | | `_probabilistic_handler.py` (152 lines) | `argumentation_analysis/agents/core/logic/probabilistic_handler.py` | a8025f60 (2026-07-02) | | `_dialogue_handler.py` (153 lines) | `argumentation_analysis/agents/core/logic/dialogue_handler.py` | a8025f60 (2026-07-02) | | `_tweety_initializer.py` (365 lines) | `argumentation_analysis/agents/core/logic/tweety_initializer.py` | a8025f60 (2026-07-02) | | `_fallacy_workflow_plugin.py` (NOT-VERBATIM depuis #29732 : confiance non mesuree = `None`, voir « Adaptations locales declarees ») | `argumentation_analysis/plugins/fallacy_workflow_plugin.py` | ecfd9b9c (2026-09-29, tronc EPITA figé sur issue #18391 portee 2) + adaptation CoursIA du 2026-12-01 (#29732) | | `_exploration_plugin.py` (191 lines) | `argumentation_analysis/plugins/exploration_plugin.py` | ecfd9b9c (2026-09-29, tronc EPITA figé sur issue #18391 portee 2) | | `_taxonomy_navigator.py` (192 lines) | `argumentation_analysis/agents/utils/taxonomy_navigator.py` | ecfd9b9c (2026-09-29, tronc EPITA figé sur issue #18391 portee 2) | | `_taxonomy_local_overrides.py` (123 lines) | `argumentation_analysis/utils/taxonomy_local_overrides.py` | ecfd9b9c (2026-09-29, dep transitive de fallacy_workflow_plugin) | | `_taxonomy_tree.py` (55 lines) | `argumentation_analysis/utils/taxonomy_tree.py` | ecfd9b9c (2026-09-29, dep transitive de taxonomy_navigator) | | `_plaintext_destination.py` (75 lines) | `argumentation_analysis/core/plaintext_destination.py` | ecfd9b9c (2026-09-29, dep transitive de fallacy_workflow_plugin) | | `_identification_models.py` (NOT-VERBATIM depuis #29732 : `confidence` optionnelle, deux helpers d'ordre, voir « Adaptations locales declarees ») | `argumentation_analysis/plugins/identification_models.py` | ecfd9b9c (2026-09-29, dep transitive de fallacy_workflow_plugin) + adaptation CoursIA du 2026-12-01 (#29732) | | `_delegating_selection.py` (204 lines) | `argumentation_analysis/core/strategies.py` (L134-L246, classe `DelegatingSelectionStrategy`) | ecfd9b9c (2026-09-29, ref pinned par issue #18393, NOT-VERBATIM : 1 token `ProjectManager` -> `ProjectManagerAgent` documente en en-tete du fichier, portee 3 PR #20338 review) | | `_file_loaders.py` (213 lines) | `argumentation_analysis/core/utils/file_loaders.py` | a8025f60 (2026-07-02, #23633 Volet B etape 4 -- helper amont de `_informal_definitions.py`, section dediee ci-dessous) | | `_taxonomy_loader.py` (360 lines) | `argumentation_analysis/utils/taxonomy_loader.py` | a8025f60 (2026-07-02, #23633 Volet B etape 4 -- helper amont de `_informal_definitions.py`, section dediee ci-dessous) | | `_epita_paths.py` (NOT-VERBATIM : appel module-level desactive + `DATA_DIR` sur la racine APPLICATION, voir « Adaptations locales declarees ») | `argumentation_analysis/paths.py` | a8025f60 (2026-07-02, #23633 Volet B etape 4 -- helper amont de `_informal_definitions.py` ; nom `_epita_paths` : collision avec le `_paths.py` natif CoursIA) | | `_prompts.py` (163 lines) | `argumentation_analysis/agents/core/informal/prompts.py` | a8025f60 (2026-07-02, #23633 Volet B etape 4 -- import relatif litteral `from .prompts import ...` de `_informal_definitions.py`, mesure au scoping : aucun sibling n'existait) | Package `ai_shield/` (garde-fous de pipeline LLM) — porte dans le cadre de l'issue #23163 (serie `ArgumentAnalysis` completee sur CoursIA ; le depot EPITA reste le cadre experimental, pas la destination). Sous-module `ai_shield/` : | File in CoursIA `argumentation_lib/ai_shield/` | Upstream path in EPITA-IS | Upstream commit | |---------------------------------------|----------------------------|-----------------| | `shield.py` | `argumentation_analysis/services/ai_shield/shield.py` | 713927e1 (2026-10-28) — VERBATIM, aucune modification | | `presets.py` | `argumentation_analysis/services/ai_shield/presets.py` | 713927e1 (2026-10-28) — prefixe d'import seul | | `__init__.py` | `argumentation_analysis/services/ai_shield/__init__.py` | 713927e1 (2026-10-28) — prefixe d'import seul | | `layers/__init__.py` | `argumentation_analysis/services/ai_shield/layers/__init__.py` | 713927e1 (2026-10-28) — prefixe d'import seul | | `layers/heuristic.py` | `argumentation_analysis/services/ai_shield/layers/heuristic.py` | 713927e1 (2026-10-28) — prefixe d'import seul | | `layers/output_filter.py` | `argumentation_analysis/services/ai_shield/layers/output_filter.py` | 713927e1 (2026-10-28) — prefixe d'import seul | | `layers/llm_validator.py` | `argumentation_analysis/services/ai_shield/layers/llm_validator.py` | 713927e1 (2026-10-28) — prefixe d'import seul + 4 imports de services EPITA non vendoringes (`core.llm_service`, `core.reading_window`, `core.utils.llm_completion_guard`, `services.llm_cache`) rediriges vers `_llm_transport` (adaptation declaree) | | `_llm_transport.py` | **AUCUN equivalent amont** — adaptation CoursIA | ecrit pour ce portage ; raison et contrat dans l'en-tete du fichier | « Prefixe d'import seul » = `argumentation_analysis.services.ai_shield` est reecrit en `argumentation_lib.ai_shield` (shim du depot, cf `argumentation_lib/_paths.py`) ; aucune autre ligne n'est modifiee. `_llm_transport.py` est une **adaptation declaree** : aucun fournisseur LLM n'est cable dans CoursIA, donc la couche `LLMValidatorLayer` leve `LLMValidatorUnavailable` et la politique `fail_open` / `fail_closed` tranche — le carnet `Argumentation-09-Guardrails-AI-Shield-Python.ipynb` exerce ce chemin reel. Adaptations locales declarees ----------------------------- Une copie **NOT-VERBATIM** est une copie dont le contenu a ete adapte en CoursIA pour etre **executable contre le runtime reellement vendu**, avec la raison ecrite dans l'en-tete du fichier. La table « CoursIA copy » signale ces copies par la mention NOT-VERBATIM ; une copie **partial** (`_shared_state.py`) peut en outre porter une divergence declaree supplementaire, listee dans la table ci-dessous. | Fichier | Nature de l'adaptation | Pourquoi | |---|---|---| | `_shared_state.py` (#16457, lot 2) | `add_bipolar_result` calcule `support_cycles` et `articulation_points` sur `supports` (module verbatim `_bipolar_insight.py`) quand l'appelant les laisse a `None` ; une liste passee est stockee telle quelle. Import lazy, dans la methode. | Le tronc EPITA (fil #16457, 30/11) a mesure que ces deux champs avaient une place dans l'etat sans producteur : `detect_support` n'apparaissait nulle part hors de la signature, les deux champs restaient vides a chaque appel. Temoin sans appel modele : `scripts/tests/test_argumentation_bipolar_insight.py`. | | `_delegating_selection.py` | 1 jeton : `ProjectManager` -> `ProjectManagerAgent` | L'API amont a change de nom ; la correction est cosmetique sur la ligne concernee. | | `_epita_paths.py` (#23633) | **Deux** deviations declarees : (1) 1 appel module-level commente (`ensure_directories_exist()`, derniere ligne amont) + 3 lignes de commentaire ; (2) `DATA_DIR = PROJECT_ROOT_DIR / DATA_DIR_NAME` au lieu de `ROOT_DIR / DATA_DIR_NAME`. La fonction `ensure_directories_exist()` et les autres constantes restent byte-identiques. | (1) L'appel amont cree 8 repertoires vides a CHAQUE import, dont `ArgumentAnalysis/libs/tweety` retire par l'arbitrage #23109 (duplication des libs natives). Sans la deviation, `import argumentation_lib` aurait un effet de bord d'ecriture sur l'arbre a chaque processus. (2) La taxonomie **suivie** de CoursIA est `ArgumentAnalysis/data/argumentum_fallacies_taxonomy.csv` ; avec la valeur amont, `_taxonomy_loader.TAXONOMY_FILE` et `_informal_definitions.DEFAULT_TAXONOMY_PATH` visent `argumentation_lib/data/` (absent du disque), et `get_taxonomy_path()` y cree le dossier puis **telecharge** la taxonomie depuis la branche `master` d'Argumentum -- non epinglee, `requests.get(...)` **sans `timeout`** : l'ensemble d'etiquettes de l'EPIC #10355 pouvait donc changer en amont sans aucun signal. Une seule constante couvre les deux consommateurs vivants (`_taxonomy_loader.py:53`, `_informal_definitions.py:126`) ; `EXTRACT_SOURCES_FILE`, le troisieme usage de `DATA_DIR`, n'a **aucun** appelant (recherche de code : 0). | | `_adf_handler.py` | Adaptation d'API (4 derives mesurees) + vocabulaire de conditions etendu (`or:`, `and:`) + gate-out explicite sur `parse_adf_file` + **import optionnel de `jpype`** + **limite de composition a un seul niveau** | L'organe ADF n'etait exerce par **aucun** carnet de la serie (organe orphelin) et il etait **casse** contre le jar reellement vendu `MyIA.AI.Notebooks/SymbolicAI/Tweety/libs/adf-1.30.jar` : surcharge `builder.add(arg)` inexistante, conditions de base devenues des enumerations, liens du graphe exiges par le builder, reasoners ADF SAT-based sans solveur. Les quatre derives, leur symptome mesure et le correctif applique sont detailes dans l'en-tete du fichier. La lecture de fichier KPPADF n'est pas cablee contre ce jar : `parse_adf_file` leve une erreur explicite plutot que de laisser passer une derivation silencieuse. **Adaptation 5 (2026-10-29)** : `import jpype` est rendu optionnel — le module s'importe sans JPype, seule son *instanciation* (qui amorce la JVM) est refusee, avec un message qui nomme la dependance et la maniere de l'installer. Motif mesure : le job CI `Scripts Tests (CPU)` cible `ArgumentAnalysis` dans sa liste pytest mais ne declare pas `jpype` dans ses installations ; l'import au niveau module echouait donc a la **collecte** (`ModuleNotFoundError`) et faisait echouer le job entier (21 846 tests verts + 1 erreur de collecte, exit 1). Meme convention que le paquet lui-meme (`argumentation_lib/__init__.py`, dont `get_adf_handler_symbol` degrade deja gracieusement). **Limite de composition** : `or:` / `and:` acceptent exactement deux conditions **simples** — une condition composite ne peut pas en contenir une autre ; le message d'erreur nomme la limite et donne la forme acceptee. Le carnet `Argumentation-03d-ADF-Semantiques-Python.ipynb` exerce l'organe repare et rend ses sorties. | | `_nl_to_logic_plugin.py` (#18390) | **NOT-VERBATIM** : adaptateur minimal. L'amont `NLToLogicPlugin` importe `argumentation_analysis.services.nl_to_logic.NLToLogicTranslator` (absent de CoursIA). Ce module remplace ce service par la chaine `_text_to_pl` deja vendue (prompts, extraction JSON, validation par le vrai parseur). Seules `translate_to_pl` et `generate_queries` sont exposees (le chemin texte->PL de #18392) ; les fonctions FOL et modale de l'amont exigent des moteurs non vendores. Le service LLM est le service SK injecte (`AIChatCompletion`) ; les fonctions sont async. | La traduction texte->PL est le maillon manquant du pattern "le LLM pilote un raisonneur deterministe" du tronc EPITA (#18390). Sans ce plugin, le LogicAgent devait encoder les formules lui-meme au lieu de les faire traduire par le LLM puis valider par le parseur. | | `_logic_agent_plugin.py` (#18390, amont `1bce902c4`, dernier toucher amont `7eaacd0a4` #2612) | **NOT-VERBATIM** : adaptateur. L'amont `LogicAgentPlugin` lazy-importe `TweetyBridge` dans chacune de ses 8 `@kernel_function` PL/FOL/Modales ; le bridge n'est pas importable dans ce checkout (mesure 2026-11-08 : handlers amont non vendores + prefixe underscore), et une copie verbatim serait une surface morte — chaque appel rendrait `{"error": "JVM/Tweety non disponible"}`. La moitie PL (`parse_pl_formula`, `execute_pl_query`, `check_pl_consistency`, `validate_formula`/propositionnelle) est routee sur `TweetyPLEngine` (`_pl_reasoner.py`, SatReasoner) avec les gardes #23120 (reecriture `->` en `=>`, refus des phrases) ; `check_pl_consistency` decide par sonde ex falso (atome `pl_consistency_probe`) — jamais un verdict fabrique. Les moities FOL et modales rendent une erreur honnete et precise (handlers non importables au pin actuel) : surface preservee, aucun verdict simule. Moteur injectable au constructeur pour les tests. | Moitie **verdict** de la phase formelle (#18390, inventaire EPITA du 27/10) : `LogicAgentPlugin` (8 fonctions moteur seul) complete `NLToLogicPlugin` (ligne ci-dessus, moitie traduction). Sans cet adaptateur, le pattern "le LLM pilote un raisonneur deterministe" avait une traduction sans verdict. | | `_belief_revision_handler.py` (#23163) | **Une** deviation declaree : `revise()` valide `method` contre `REVISION_METHODS` en tete de methode, **avant** le bloc `try` — une valeur hors ensemble leve `ValueError` nommant les methodes acceptees. Le reste du fichier est byte-identique a l'amont (SHA1 corps amont `2b02bd64800e9b8c47489cba94ba03cd42b8948d`, 158L ; apres adaptation `22e5904f57c47195e23e551d73993d8e31c96753`, 172L). Validation placee avant tout appel JVM : le refus s'observe sans JVM demarree (contract test JVM-free `tests/test_belief_revision_handler.py`). | L'amont declare `REVISION_METHODS = {"dalal", "levi"}` (l. 59) mais ne le consulte **jamais** : une methode inconnue etait routee silencieusement par le chemin Levi puis recopiee telle quelle dans la cle `method` du resultat (defaut mesure c.6784603097 sur #23163, sortie commitee du carnet `Argumentation-06c` cellule [7]). Un appelant passant une methode mal orthographiee ne le savait pas. Le carnet 06c documentait le defaut sans le corriger ; l'adaptation declaree le corrige cote CoursIA (le correctif amont reste recommande mais n'est plus un prerequis — meme mecanisme que `_adf_handler.py` 2026-10-29). Le carnet 06c met a jour sa mesure (refus observe) et re-execute. | | `_identification_models.py`, `_fallacy_workflow_plugin.py` (#29732) | **NOT-VERBATIM** : `IdentifiedFallacy.confidence` devient `Optional[float]` (`None` = non mesure) avec un champ `confidence_note` ; trois helpers (`fallacy_measured_fields`, `confidence_outranks`, `confidence_sort_key`) ; dans le plugin, les quatre defauts `0.7`, le `0.5` du one-shot et le `0.35` de la repli par nom de taxonomie ne fabriquent plus de nombre, et les deux comparateurs de dedoublonnage plus le tri final passent par les helpers. Porte des issues amont #3029 et #3453 (commits 3032, 3034, 3454). | Un modele qui omet sa confiance produisait un `0.7` qui se lisait comme une mesure. Re-vendor complet ecarte sur mesure (01/12) : a `ef33283698` la cloture statique du plugin passe de 7 a 15 modules et tire `shared_state.py` (copie partielle epinglee a `bfff7542`). Temoin sans modele : `scripts/tests/test_argumentation_unmeasured_confidence.py`. | | `_shared_state.py` (#18390, adaptation locale du 2026-11-22) | Canal d'attribution `argument_provenance` ajoute en CoursIA-only (la copie reste **partial** au sens #14026 ; cette tranche ajoute une divergence declaree supplementaire). Ajouts : (1) la constante de classe `MOVE_AUTHORS = ("speaker", "reported")` ; (2) le dict d'instance `self.argument_provenance = {}` dans `__init__` ; (3) la signature etendue de `add_argument(description, move_author=None, move_author_label=None)` qui ne stocke une entree que si `move_author in MOVE_AUTHORS` ; (4) la restauration `state.argument_provenance = data.get("argument_provenance", {})` dans `from_dict`. Retro-compatible : un appel legacy `add_argument("...")` ne cree aucune entree. | Le Conseil EPITA a mesure que la restitution (carnet `Argumentation-08d`) ne distinguait pas un argument **defendu par le locuteur** d'un argument **rapporte pour etre discute ou conteste** : une position pretee a un tiers etait imputee au locuteur, ce qui faisait retomber sur lui la defaite ou le sophisme d'une these qu'il citait justement pour la combattre. Le vocabulaire ferme (`speaker` = le geste appartient au locuteur ; `reported` = position reellement tenue par un tiers, nomme par `move_author_label`) et la lecture brute (absence = « non dit », jamais defaut `speaker`, jamais tiers invente) sont **distilles** des references EPITA #3180/#3429 (`argumentation_analysis/core/fallacy_attribution.py`, `reporting/restitution/act3_conclusion_plugin.py`) — non recopies en bloc. Le sanitizer (`_sanitize_state.py:137`) connaissait deja `argument_provenance` (il ne retire que `source_quote`), ce qui prouve que la forme etait prevue par le vendor sans que le canal de restitution existe. Le carnet 08d porte le temoin d'acceptance : deux etats de meme texte dont seule l'attribution change produisent deux entrees d'Acte III distinctes, et un etat sans provenance n'invente aucune appartenance. | Tranche T3 -- privacy / export (`opaque_id`, `sanitize_state`, `pattern_mining`) ------------------------------------------------------------------------------ Porte dans le cadre de l'issue #23163 (serie `ArgumentAnalysis` completee sur CoursIA). Les quatre modules ci-dessous forment la **chaine d'export prive** : opacification des identifiants -> garde d'etat -> minage de motifs agreges. Le carnet `Argumentation-10-Privacy-Export-Python.ipynb` les exerce tous les quatre, sur un etat synthetique, et **falsifie ses resultats contre la fixture amont** `data/privacy_mining_examples.json` (meme valeurs, memes cles). | File in CoursIA `argumentation_lib/` | Upstream path in EPITA-IS | Upstream commit | |---------------------------------------|----------------------------|-----------------| | `_opaque_id.py` (65 lines) | `argumentation_analysis/evaluation/opaque_id.py` | 2e2a1c3c (2026-10-29) -- VERBATIM, aucune modification | | `_sanitize_state.py` (1131 lines) | `argumentation_analysis/evaluation/sanitize_state.py` | 2e2a1c3c (2026-10-29) -- prefixe d'import seul | | `_native_dung.py` (411 lines) | `argumentation_analysis/reporting/restitution/native_dung.py` | 2e2a1c3c (2026-10-29) -- VERBATIM, aucune modification | | `_pattern_mining.py` (512 lines) | `argumentation_analysis/evaluation/pattern_mining.py` | 2e2a1c3c (2026-10-29) -- prefixe d'import seul | **Integrite verbatim** (SHA1 du corps, apres conversion CRLF -> LF, entete de provenance exclue) : - `_opaque_id.py` body SHA1=`60933b0904a86a77eb9a5017069b43e4b6fac0bc` (65L) - `_sanitize_state.py` body SHA1 amont=`236f5290f869cc8f1e76f9b76a15e17cd2321fba` -> apres reecriture du prefixe d'import `c6ad422fa90013aad12d4d7316a55d7d608da103` (1131L) - `_native_dung.py` body SHA1=`c2976b6f200de307698a8bf3f9ed5e6527fade97` (411L) - `_pattern_mining.py` body SHA1 amont=`0176c88bfaf7c82184dd69e6fda85a0dae8c2e02` -> apres reecriture du prefixe d'import `2ce4e3033e924c021d890af0b328832db51ddb93` (512L) **Divergences declarees** (deux, et deux seulement) : 1. `_sanitize_state.py` : l'unique import `argumentation_analysis.*` (l.61) est reecrit en `from argumentation_lib._opaque_id import opaque_id` -- le module jumeau verbatim porte ci-contre. Aucune autre ligne n'est modifiee. 2. `_pattern_mining.py` : l'unique import `argumentation_analysis.*` (l.91, **LAZY**, a l'interieur de `DungTopologyDetector.detect`) est reecrit en `from argumentation_lib._native_dung import (KEYED_SEMANTICS, dung_reading)`. Aucune autre ligne n'est modifiee. Sans la divergence 2, le detecteur de topologie Dung de `pattern_mining.py` retournait `{"error": 1.0}` (import non resolu) au lieu des mesures reelles -- **verifie en execution** : la cellule 12 du carnet echouait sur l'assertion `det == stored_mining["formal_detectors"]["result"]` avant le portage de `_native_dung.py`, et passe a 15/15 cellules vertes apres. `_native_dung.py` est auto-porte (bibliotheque standard seule, aucun import `argumentation_analysis.*`), il n'a donc pas de dependance non vendoree. **Fixture associee** : `data/privacy_mining_examples.json` est la copie de `docs/coursia_contrib/privacy_mining_examples.json` amont. L'amont la livre en CRLF (10 483 octets) ; le depot n'impose aucune regle `eol` sur les `.json` de `data/`, la copie est donc stockee en LF (10 121 octets), SHA1 `42f748471e4ab10f8008ed270f4292a278118a56`. Contenu identique aux fins de ligne pres. **Suite de test portee** : `tests/test_privacy_mining_roundtrip.py` est le round-trip test amont (`tests/unit/coursia/privacy_mining/test_privacy_mining_roundtrip.py`, 470 lignes, corps SHA1 apres conversion CRLF -> LF `9752c075af56ec2de5be7c93b2a716ac1148cdcf`), repris tel quel avec quatre adaptations declarees dans son en-tete (prefixes d'import, chemins de la fixture et du carnet, comptage de lignes de l'inventaire compare au **corps** des copies portees, ajout de la racine de la serie au `sys.path`). Il rejoue les 21 cas de la fixture contre les modules reels -- c'est la preuve que le portage est fidele, pas une reecriture. Deux tests CoursIA y sont ajoutes (prefixe du port Dung ; cas `cooccurrence_doc_unit` mesure). Rationale for verbatim import ----------------------------- Per EPIC #4960 (Volet B etape 3: "Lander l'ESSENCE de l'analyse multidimensionnelle EPITA-IS"), the EPITA-IS source contains the canonical `UnifiedAnalysisState` / `RhetoricalAnalysisState` data model (~14 dimensions: extraction/sources, logiques PL/FOL/modale, Dung, sophismes, qualite, contre-arguments, debat Walton-Krabbe, gouvernance, JTMS, etc.) plus the `ArgumentProfile` aggregated view. The EPIC mandates the "ESSENCE landing" pattern: extract canonical classes without the 306 MB of orchestration bruit, mocks, vendor JDK, etc. The two files imported verbatim here are: 1. `RhetoricalAnalysisState` (lifecycle) and `ArgumentProfile` (per-argument aggregated dataclass) from `_shared_state.py` -- both are **pure-Python stdlib data structures** (dataclasses + Dict/List/Any typing + json + logging). No semantic-kernel, no pandas, no LLM dependencies. Stable, side-effect-free, easy to verify byte-for-byte. 2. `_state_manager_plugin.py` -- the Semantic Kernel plugin wrapper that exposes the state to LLM agents via `@kernel_function` decorators. Included for downstream parity with EPITA-IS semantics; consumers in CoursIA notebooks can opt-in via `import argumentation_lib._state_manager_plugin as smp` (or be refactored in a later tranche if the SK plugin contract becomes a liability). The remaining EPITA-IS source (`UnifiedAnalysisState` runtime, `TweetyBridge` JPype shim, the 12 logic handlers, the orchestration workflows, the 7 governance methods, the JTMS, the speech-to-text pipeline, the 14 `services/` adapters, etc.) is NOT vendored here -- the EPIC explicitly excludes the orchestration, mocks, UI/API/webapp, vendor JDK/Node, and 12 etudiant dossiers from the "essence" import. Future tranches (Volet B etapes 4-5) may add selected ports as separate, atomic PRs with their own NOTICE entries. Verbatim integrity ------------------ Each verbatim file begins with a MIT attribution header (this NOTICE per-file, with the exact upstream commit cited) followed by the byte-for-byte upstream content below the header. **Any divergence from the cited upstream commit is a regression and must be documented in this NOTICE before commit.** CoursIA-original code that extends or wraps the verbatim content lives in separate files (NOT prefixed with `_`). **Fins de ligne (seule divergence documentee).** L'amont livre `_fallacy_workflow_plugin.py`, `_taxonomy_navigator.py`, `_atms_core.py` et `_conflict_resolution.py` en CRLF. Le depot impose `*.py text eol=lf` (`.gitattributes`) : ces quatre fichiers sont stockes en LF. Un blob CRLF sous `eol=lf` fait apparaitre le fichier modifie apres chaque checkout et bloque tout organe qui exige un arbre propre. Le contenu reste identique a l'amont aux fins de ligne pres : `git diff --ignore-cr-at-eol` est vide. L'identite SHA256 octet a octet se verifie donc apres conversion CRLF -> LF du fichier amont. Partial copies (See #14026) --------------------------- Two files in the table above are marked **`partial`** rather than verbatim, because the CoursIA copy is shorter than the upstream source at the cited commit. A `git pull` of upstream will NOT repair this divergence -- the surface is intentionally absent (deliberate perimeter of EPIC #4960, not a sync bug). The symbols listed below are the **known missing surface**, which downstream consumers should treat as **not imported**: | CoursIA file | Missing surface (upstream symbols absent in CoursIA) | |---------------------------|-----------------------------------------------------| | `_shared_state.py` (1502 lines vs 1811 upstream at bfff7542, delta -357 +48 CoursIA-only: 20-line header + `quality_fraction` inline, see drift note) | `DesignationRecord`, `record_designation`, `_designation_fingerprint`, `_designation_delta_summary`, `backfill_last_designation_for`, `record_cap_breach`, `record_designation_unresolved`, `record_unresolved_designation`, `set_source_metadata`, `add_structured_arg_status` (the designation machinery + structured-arg surface) | | `_state_manager_plugin.py` (840 lines; upstream SHA 9834462) | `record_designation` (the trace-writing companion of `designate_next_agent`, which DID cross). The pair is a contract: designating without recording the motivation is observable at runtime. | The two files are still **safe to import** for the symbols they do vendore (`RhetoricalAnalysisState`, `ArgumentProfile`, all `designate_*` / `record_*` / `update_*` etc. kernel-functions present at the cited commit). The `partial` qualifier is a semantic precision, not a correctness verdict. Anti-regression discipline -------------------------- Per CoursIA `.claude/rules/anti-regression.md`, replacing or stubbing the verbatim code (e.g. turning `ArgumentProfile` fields into `pass` / `return None`) without explicit user sign-off is forbidden. The data classes here are referenced by the ArgumentAnalysis notebook series (e.g. the `Restitution 3 actes` notebook uses `ArgumentProfile` as the in-memory shape for per-argument aggregation) and stripping their implementation would break the pedagogical contract. Volet B etape 3 sub-tranche C184 (TaxonomySophismDetector) ----------------------------------------------------------- PR #5205 (C184) added `_taxonomy_sophism_detector.py` as a verbatim copy of the EPITA-IS `TaxonomySophismDetector` class. This class provides: - `get_main_branches()` -- list of depth=0/1 taxonomy branches (root + 7 first-level families) - `explore_branch(taxonomy_key, max_depth=3)` -- recursive subtree exploration - `detect_sophisms_from_taxonomy(text, max_sophisms=10)` -- lexical detection heuristic - `search_sophisms_by_pattern(pattern, max_results=10)` -- multi-field text search - `get_sophism_details_by_key(taxonomy_key)` -- delegate to plugin for full details - `_get_parent_context(taxonomy_key)` -- sibling retrieval (private but kept verbatim) - Module-level helpers: `create_unified_detector()`, `get_global_detector()` (singleton) **DEPENDENCY (NOT vendored in this tranche)** : the class imports `InformalAnalysisPlugin` from `argumentation_analysis.agents.core.informal.informal_definitions` (891 lines, Semantic-Kernel coupled). This plugin is **explicitly excluded** from the "essence landing" pattern of EPIC #4960 Volet B etape 3 and will be ported as part of **Volet B etape 4** (TweetyBridge shim JPype + 12 logic handlers). **Practical consequence** : the class symbol itself is import-safe (`from argumentation_lib._taxonomy_sophism_detector import TaxonomySophismDetector` succeeds because the import is lazy via the wrapper module-level `InformalAnalysisPlugin` reference). However, **instantiation** (`TaxonomySophismDetector(...)`) will fail with `ImportError: cannot import name 'InformalAnalysisPlugin' from partially initialized module 'argumentation_analysis.agents.core.informal'` until the upstream plugin shim is vendored. The lazy accessor `get_taxonomy_sophism_detector()` in `__init__.py` returns the class symbol without triggering instantiation. **Anti-regression** : the verbatim block is byte-for-byte identical to the upstream source at commit `a8025f60`. No CoursIA modification has been applied (no stub, no `pass`, no `return None`, no header rewrite inside the class). Only an MIT attribution header was prepended (10 LOC of comments). Volet B etape 4 sub-tranche C185 (informal_definitions) ------------------------------------------------------- PR #5216 (C185) added `_informal_definitions.py` as a verbatim copy of the EPITA-IS `informal_definitions.py` module. This module exposes: - `IdentifiedFallacy` -- Pydantic model for a single identified sophism. - `FallacyAnalysisResult` -- Pydantic model for analysis output. - `InformalAnalysisPlugin` -- `KernelFunction` wrapper that orchestrates the identification + justification pipeline against the real taxonomy CSV. - `setup_informal_kernel(kernel)` -- registers the plugin + semantic functions on a Semantic Kernel `Kernel` instance. - `INFORMAL_AGENT_INSTRUCTIONS` -- system-prompt template for the LLM agent. Dependency disclosure (G.9 honest caveat): this module imports `semantic_kernel`, `pandas`, `pydantic`, `requests` upstream, plus three EPITA-internal helpers (`load_csv_file`, `get_taxonomy_path`, `DATA_DIR`) that are NOT vendored in `argumentation_lib/`. It is therefore **NOT standalone-importable today**: even the module-level `import` raises `ModuleNotFoundError: No module named 'argumentation_analysis'` because the top-level imports cannot resolve. The lazy accessor `argumentation_lib.get_informal_definitions_symbols()` is preserved for API symmetry with C184 (`get_taxonomy_sophism_detector`) but does **not** bypass the top-level imports (unlike the C184 accessor, which only required a class-level symbol). The verbatim copy is preserved here as a reference for the future TweetyBridge shim JPype (Volet B etape 4, slice C186+) that will re-export these symbols through a JPype-compatible wrapper. **Why deliver the verbatim copy anyway** (G.9 honesty over abandonment): the verbatim block is the authoritative source for the eventual shim, and preserving it byte-for-byte in `argumentation_lib/` documents the exact contract the shim must satisfy. The cost is a 913-line file that is currently dead-weight (cannot be imported); the benefit is no drift between this reference and the eventual shim. Volet B etape 4 sub-tranche C186a (tweety_bridge) -------------------------------------------------- PR #5231 (C186a) added `_tweety_bridge.py` (488L body, 531L with MIT header) as a verbatim copy of the EPITA-IS `tweety_bridge.py` module at commit `a8025f60`. This is the **JPype bridge singleton** that ties the 12 logic handlers (PL/FOL/Modal/ADF/AF/Ranking/BeliefRevision/Probabilistic/ Dialogue + the unimported Bipolar/ABA/ASPIC) into a single `TweetyBridge.initialize_jvm()` -> `TweetyBridge.().is_consistent()` runtime. Symbols exposed (5 public via lazy accessor tuple): - `get_tweety_bridge_symbol()` -> tuple `(TweetyBridge, TweetyBridgeSK, initialize_jvm, shutdown_jvm, is_jvm_started)` (lazy import, returns the verbatim tuple) Verbatim integrity: - `_tweety_bridge.py` body SHA1=`6999e355db2bd25156d1358959c0c09660d9cd12` (488L, no prelude, starts with `# FORCE_RELOAD` marker). - LF line endings (no CRLF), UTF-8 (no BOM), FORCE_RELOAD marker preserved. Dependency disclosure (G.9 honest caveat): the bridge file imports multiple upstream modules at module-load time that are NOT vendored in `argumentation_lib/` today: - `argumentation_analysis.core.jvm_setup.shutdown_jvm` (line ~442 of upstream, imported at top-level) - `from .pl_handler import PLHandler as PropositionalLogicHandler` - `from .fol_handler import FOLHandler as FirstOrderLogicHandler` - `from .modal_handler import ModalHandler` - `from .af_handler import AFHandler as ArgumentationFrameworkHandler` - `from .ranking_handler import RankingHandler` - `from .bipolar_handler import BipolarHandler` - `from .aba_handler import ABAHandler` - `from .adf_handler import ADFHandler` - `from .aspic_handler import ASPICHandler` - `from .belief_revision_handler import BeliefRevisionHandler` - `from .probabilistic_handler import ProbabilisticHandler` - `from .dialogue_handler import DialogueHandler` - `from .tweety_initializer import TweetyInitializer` Total: **13 sibling modules absent from the vendored context** -> the top-level import `from argumentation_lib._tweety_bridge import TweetyBridge` raises `ModuleNotFoundError: No module named 'argumentation_analysis.agents.core.logic.pl_handler'` (or equivalent for whichever handler is hit first by the import chain). The lazy accessor `argumentation_lib.get_tweety_bridge_symbol()` preserves the API symmetry with C184/C185/C186b accessors but, like them, does **not** bypass the top-level imports. Runtime usability awaits Volet B etape 4 sub-tranches C186c (modal/adf, PR #5242) + C186d (af/ranking, this PR) + C186e (belief_rev/prob/ dialogue) + C186f (tweety_initializer) + C186g (runtime bridge shim wrapping `argumentation_lib.shutdown_jvm` from C184's `_jvm_compat.py`). For a **fully-functional JPype bridge today**, use `argumentation_lib.initialize_jvm()` (the CoursIA-native bridge via `Tweety.tweety_init` -- see `_jvm_compat.py`) and write the reasoning glue manually. The verbatim Python is preserved here as the authoritative reference contract for the future CoursIA integration. **Sub-tranche plan (after this PR)** -- see NOTICE-EPITA section C186b below for the full C186b-g chain. C186a is the singleton shell; C186b-g populate its dependencies. Volet B etape 4 sub-tranche C186b (pl_handler + fol_handler) -------------------------------------------------------------- PR #5234 (C186b) added `_pl_handler.py` (689L) and `_fol_handler.py` (1163L) as verbatim copies of the EPITA-IS `pl_handler.py` and `fol_handler.py` modules at commit `a8025f60`. These are the **PL (Propositional Logic)** and **FOL (First-Order Logic) core handlers** for the JPype-based Tweety bridge runtime. Symbols exposed (2 public via lazy accessors): - `get_pl_handler_symbol()` -> `PLHandler` class (lazy import) - `get_fol_handler_symbol()` -> `FOLHandler` class (lazy import) Verbatim integrity: - `_pl_handler.py` body SHA1=`7341823ac37aaa83e8b77c54ccd2d4dfd133ee76` (689L). - `_fol_handler.py` body SHA1=`f8a70e45b70ece23dd13e680c9d5e9fd54e983f4` (1163L). - LF line endings (no CRLF), UTF-8 (no BOM), first line of body = `import jpype` (no shebang prelude, full upstream SHA1 == body SHA1). Dependency disclosure (G.9 honest caveat): both files import multiple upstream modules that are NOT vendored in `argumentation_lib/` today: - `argumentation_analysis.core.utils.logging_utils.setup_logging` - `from .tweety_initializer import TweetyInitializer` (sub-tranche C186f) - `argumentation_analysis.core.jvm_setup.{initialize_jvm_robustly, shutdown_jvm, is_jvm_started}` (line ~16 of pl_handler.py) - `argumentation_analysis.core.prover9_runner.run_prover9` (fol_handler only -- third-party prover9 binding via shell subprocess) Therefore, both `PLHandler` and `FOLHandler` symbols are **NOT standalone- importable today**: `from argumentation_lib._pl_handler import PLHandler` raises `ModuleNotFoundError: No module named 'argumentation_analysis.core.utils.logging_utils'` (or equivalent). The lazy accessors `argumentation_lib.get_pl_handler_symbol()` and `argumentation_lib.get_fol_handler_symbol()` preserve the API symmetry with C184/C185 accessors but, like C185, do **not** bypass the top-level imports. Runtime usability awaits Volet B etape 4 sub-tranches C186f (TweetyInitializer) and C186g (runtime bridge shim wrapping `argumentation_lib.shutdown_jvm` from C184's `_jvm_compat.py`). **Note re: C186a** : `_pl_handler.py` and `_fol_handler.py` are **referenced at module-load time** by `tweety_bridge.py` (the C186a sub-tranche, awaiting merge via PR #5231). Once C186a lands in `main`, the bridge singleton will be able to load all three layers together (C186a bridge + C186b PL/FOL core + C186c-f other handlers + C186g runtime shim). Until then, PLHandler and FOLHandler can only be imported through the lazy accessors (which surface the G.9 caveat honestly). **Why deliver the verbatim copy anyway** (G.9 honesty over abandonment): the verbatim blocks are the authoritative source for the eventual CoursIA JPype runtime integration. The cost is two dead-weight files today (1852L total, ~0 usable at runtime); the benefit is no drift between this reference and the future shim that routes the 12 handlers through CoursIA's native JPype runtime. **Sub-tranche plan (after this PR)** : - **C186c** (delivered via #5242) : `modal_handler.py` + `adf_handler.py` = 488L. - **C186d** (this PR) : `af_handler.py` + `ranking_handler.py` = 354L. - **C186e** (future) : `belief_revision_handler.py` + `probabilistic_handler.py` + `dialogue_handler.py` = 463L. - **C186f** (future) : `tweety_initializer.py` 365L -- initializer isole. - **C186g** (future) : runtime bridge shim `_jvm_shutdown_shim.py` ~10L wrapping `argumentation_lib.shutdown_jvm` from C184's `_jvm_compat.py`. **Excluded by ai-01 mandate** (gap NL->structured) : `bipolar_handler.py`, `aba_handler.py`, `aspic_handler.py`. **Out of scope** : `setaf_handler.py`, `weighted_handler.py`, `social_handler.py` (not imported by upstream `tweety_bridge.py:29-41`). Volet B etape 4 sub-tranche C186c (modal_handler + adf_handler) --------------------------------------------------------------- PR #5242 (C186c) added `_modal_handler.py` (327L) and `_adf_handler.py` (161L) as verbatim copies of the EPITA-IS `modal_handler.py` and `adf_handler.py` modules at commit `a8025f60`. These are the **Modal Logic** and **Abstract Dialectical Framework** core handlers for the JPype-based Tweety bridge runtime. Symbols exposed (2 public via lazy accessors): - `get_modal_handler_symbol()` -> `ModalHandler` class (lazy import) - `get_adf_handler_symbol()` -> `ADFHandler` class (lazy import) Verbatim integrity: - `_modal_handler.py` body SHA1=`ea424fff87cccd77c322d5a97ff0c516190f0f54` (327L, no prelude, starts with `import jpype`). - `_adf_handler.py` body SHA1=`3ac651e01cdfde50641710c5ef3ebddb8154761d` (161L, no prelude, starts with `"""Handler for Abstract Dialectical`). - LF line endings (no CRLF), UTF-8 (no BOM), full upstream SHA1 == body SHA1 (no shebang prelude). Dependency disclosure (G.9 honest caveat): **`_modal_handler.py`** imports at module-load: - `from .modal_kb_identifier_normalizer import ModalIdentifierNormalizer` (sibling not vendored, MlParser underscore-normalization #1326) - `from .tweety_initializer import TweetyInitializer` (sub-tranche C186f) - `from argumentation_analysis.core.config import settings, ModalSolverChoice` (upstream internal settings module, not vendored) - `jpype.JClass`, `jpype.JException` (JPype runtime singleton, sub-tranche C186g bridge shim) Therefore, the `ModalHandler` symbol is **NOT standalone-importable today**: `from argumentation_lib._modal_handler import ModalHandler` raises `ModuleNotFoundError: No module named 'argumentation_lib.modal_kb_identifier_normalizer'` — that is the G.9 fingerprint that proves the verbatim block is honest, not fabricated. (Sibling `modal_kb_identifier_normalizer` is NOT part of the C186 chain and is not vendored; future CoursIA shim will re-route or stub this.) **`_adf_handler.py`** has **NO upstream `argumentation_analysis.*` imports** — only stdlib (`jpype`, `logging`, `typing`). The class symbol is therefore **import-safe today**; ONLY JPype-Tweety singletons are referenced. Instantiation WILL fail at runtime until the JPype bridge singleton from C186a (`argumentation_lib.initialize_jvm`) is initialized and the target classes are exposed by the JVM. The lazy accessors `argumentation_lib.get_modal_handler_symbol()` and `argumentation_lib.get_adf_handler_symbol()` preserve the API symmetry with C184/C185/C186a/C186b accessors but, like them, do **not** bypass the top-level imports. Runtime usability awaits Volet B etape 4 sub-tranches C186f (TweetyInitializer) and C186g (runtime bridge shim). **Note re: modal_handler upstream drift** : 1 upstream commit (f5ce8bd9 "fix(modal): hoist SPASS routing to shared ModalHandler layer #1339") post-a8025f60 affects `_modal_handler.py` — it adds a new private method `_resolve_active_solver_choice()` and updates 2 callers to route through the resolved solver choice. Pinned to **a8025f60** for chain consistency; the verbatim copy is the reference contract and the CoursIA shim will eventually re-route via the resolved solver choice (post-#1339). The adf_handler.py file has **0 upstream commits** between a8025f60 and HEAD (verified via `git log a8025f60..HEAD -- adf_handler.py`). **Note re: shared_state upstream drift (re-vendored, audit #18478)** : between a8025f60 (2026-07-02) and bfff7542 (2026-09-29), 13 RETAINED symbols evolved upstream (`git diff --stat`: 364 insertions, 36 deletions) while the vendored copy stayed pinned -- the notebook 08e was teaching replaced contracts (audit #18478). The copy is re-vendored at **bfff7542** on the same deliberate perimeter (designation machinery excluded, list above). Evolutions picked up: `add_belief_set(propositions=...)` (#2643), `add_trace_entry` anchor guard + closed `move` vocabulary (#2295), `add_counter_argument` validation frame (#1180), `add_quality_score` unit contract `overall` = SUM of per-virtue [0,1] scores (#1942), `get_weak_arguments` fraction contract [0,1] + ValueError guard > 1.0 (#1942/#1951), `add_governance_decision(extraction_method=...)` (#1281), `add_{fol,propositional,modal}_analysis_result` provenance `message` (#1279), `add_{aspic,belief_revision,bipolar}_result` extra params, `belief_sets` value type widened to `Dict[str, Any]`, plus the new `count_designation_turns` helper (#1765, no excluded-symbol dependency). One documented CoursIA-only divergence: upstream `get_weak_arguments` imports `quality_fraction` from `argumentation_analysis.plugins.narrative_synthesis_plugin` -- outside the vendoring perimeter -- so the function is inlined VERBATIM from that module (bfff7542 l.277-299) as a module-level definition in `_shared_state.py`. Same definition, one place; the inline is flagged in the file header. **Sub-tranche plan (after this PR)** : - **C186d** (delivered via #5251) : `af_handler.py` + `ranking_handler.py` = 354L. - **C186e** (this PR) : `belief_revision_handler.py` + `probabilistic_handler.py` + `dialogue_handler.py` = 463L. - **C186f** (awaiting) : `tweety_initializer.py` 365L -- initializer isole, gates C186c/C186d runtime (AFHandler + ModalHandler). - **C186g** (this PR) : runtime bridge shim `_jvm_shutdown_shim.py` ~10L wrapping `argumentation_lib.shutdown_jvm` from C184's `_jvm_compat.py`. **Excluded by ai-01 mandate** (gap NL->structured) : `bipolar_handler.py`, `aba_handler.py`, `aspic_handler.py`. **Out of scope** : `setaf_handler.py`, `weighted_handler.py`, `social_handler.py` (not imported by upstream `tweety_bridge.py:29-41`). Volet B etape 4 sub-tranche C186d (af_handler + ranking_handler) ---------------------------------------------------------------- PR #5251 (C186d) added `_af_handler.py` (234L) and `_ranking_handler.py` (120L) as verbatim copies of the EPITA-IS `af_handler.py` and `ranking_handler.py` modules at commit `a8025f60`. These are the **Abstract Argumentation Framework (Dung)** and **Ranking Semantics** core handlers for the JPype-based Tweety bridge runtime -- together with the 10 SEMANTICS_REASONERS (preferred/grounded/stable/complete/admissible/ conflict_free/semi_stable/stage/ideal/naive) and 12 ranking reasoners (categorizer/burden/discussion/counting/tuples/strategy/propagation/saf/ counter_transitivity/probabilistic_ranking/iterated_graded_defense/ serialisable) they cover the full Dung classical + ranking reasoning stack. Symbols exposed (2 public via lazy accessors): - `get_af_handler_symbol()` -> `AFHandler` class (lazy import) - `get_ranking_handler_symbol()` -> `RankingHandler` class (lazy import) Verbatim integrity: - `_af_handler.py` body SHA1=`c8c468eff25256c625ddc2d4dace4f995ba3a79e` (234L, no prelude, starts with `import jpype`). - `_ranking_handler.py` body SHA1=`da43f9777805bbaac40a7d7335b92cf7019bbd5b` (120L, no prelude, starts with `"""Handler for Ranking Semantics`). - LF line endings (no CRLF), UTF-8 (no BOM), full upstream SHA1 == body SHA1 (no shebang prelude). Dependency disclosure (G.9 honest caveat): **`_af_handler.py`** imports at module-load: - `from .tweety_initializer import TweetyInitializer` (sibling, sub-tranche C186f awaiting) - `jpype.JClass`, `jpype.JException` (JPype runtime singleton, sub-tranche C186g bridge shim) - NO upstream `argumentation_analysis.*` imports -- only stdlib (`jpype`, `logging`, `typing`). Therefore, the `AFHandler` symbol is **NOT standalone-importable today**: `from argumentation_lib._af_handler import AFHandler` raises `ModuleNotFoundError: No module named 'argumentation_lib.tweety_initializer'` -- that is the G.9 fingerprint that proves the verbatim block is honest, not fabricated. (Sibling `tweety_initializer` is sub-tranche C186f awaiting merge; future CoursIA shim will re-route via the JPype bridge singleton.) **`_ranking_handler.py`** has **NO upstream `argumentation_analysis.*` imports AND NO sibling upstream imports** -- only stdlib (`jpype`, `logging`, `typing`). The class symbol is therefore **import-safe today**; ONLY JPype-Tweety singletons are referenced (`jpype.JClass`, `jpype.JException`, plus 5 `org.tweetyproject.arg.*` FQNs at construction time). The lazy accessors `argumentation_lib.get_af_handler_symbol()` and `argumentation_lib.get_ranking_handler_symbol()` preserve the API symmetry with C184/C185/C186a/C186b/C186c accessors. The `_af_handler.py` accessor does **not** bypass the top-level `tweety_initializer` import (same caveat as C186c modal_handler); the `_ranking_handler.py` accessor is fully import-safe today. Runtime usability for both awaits Volet B etape 4 sub-tranches C186f (TweetyInitializer) and C186g (runtime bridge shim). **Sub-tranche plan (after this PR)** : - **C186e** (PR #5253 MERGED) : `belief_revision_handler.py` + `probabilistic_handler.py` + `dialogue_handler.py` = 463L. - **C186f** (awaiting) : `tweety_initializer.py` 365L. - **C186g** (this PR) : runtime bridge shim `_jvm_shutdown_shim.py` ~10L. **Excluded by ai-01 mandate** (gap NL->structured) : `bipolar_handler.py`, `aba_handler.py`, `aspic_handler.py`. **Out of scope** : `setaf_handler.py`, `weighted_handler.py`, `social_handler.py` (not imported by upstream `tweety_bridge.py:29-41`). Volet B etape 4 sub-tranche C186e (belief_revision + probabilistic + dialogue) -------------------------------------------------------------------------------- PR #5253 (C186e) added `_belief_revision_handler.py` (158L), `_probabilistic_handler.py` (152L), and `_dialogue_handler.py` (153L) as verbatim copies of the EPITA-IS belief revision, probabilistic argumentation, and Walton-Krabbe dialogue protocol handlers at commit `a8025f60`. Together they cover the **higher-order argumentation runtime stack**: AGM belief revision operators (Dalal/Levi/kernel contraction), probabilistic acceptance computation (subgraph enumeration over Dung grounded extensions), and two-agent dialogue protocol execution (round-by-round grounded-extension reconciliation). Symbols exposed (3 public via lazy accessors): - `get_belief_revision_handler_symbol()` -> `BeliefRevisionHandler` class - `get_probabilistic_handler_symbol()` -> `ProbabilisticHandler` class - `get_dialogue_handler_symbol()` -> `DialogueHandler` class Verbatim integrity: - `_belief_revision_handler.py` body SHA1 amont=`2b02bd64800e9b8c47489cba94ba03cd42b8948d` -> apres adaptation declaree du 2026-11-11 (#23163, validation de `method` dans `revise()`, voir « Adaptations locales declarees ») `22e5904f57c47195e23e551d73993d8e31c96753` (158L -> 172L, no prelude, starts with `"""Handler for Belief Revision`). - `_probabilistic_handler.py` body SHA1=`069b33d5911dde5f48afbcd594e60a8ccf11abff` (152L, no prelude, starts with `"""Handler for Probabilistic Argumentation`). - `_dialogue_handler.py` body SHA1=`4a54ff9dda76a310d5eecc5499ef9b23cd2fd731` (153L, no prelude, starts with `"""Handler for Dialogue Protocols`). - LF line endings (no CRLF), UTF-8 (no BOM), full upstream SHA1 == body SHA1 (no shebang prelude). Em-dash characters (U+2014) and other non-ASCII bytes preserved byte-equal (verified by automated header+body build script, not hand-transcribed -- cf `build_c186e.py` archive). Dependency disclosure (G.9 honest caveat): **All 3 C186e files** have **NO upstream `argumentation_analysis.*` imports AND NO sibling upstream imports** -- only stdlib (`jpype`, `logging`, `typing`). The class symbols are therefore **import-safe today**; ONLY JPype-Tweety singletons are referenced (`jpype.JClass`, plus several `org.tweetyproject.logics.pl.syntax.*`, `org.tweetyproject.beliefdynamics.*`, `org.tweetyproject.arg.dung.syntax.*`, `org.tweetyproject.math.probability.*`, and `org.tweetyproject.arg.dung.reasoner.SimpleGroundedReasoner` FQNs). G.9 surface test verified for all 3: ```python from argumentation_lib._belief_revision_handler import BeliefRevisionHandler # OK from argumentation_lib._probabilistic_handler import ProbabilisticHandler # OK from argumentation_lib._dialogue_handler import DialogueHandler # OK ``` Failing any of these would mean the verbatim block was modified. Instantiation WILL fail at runtime until the JPype bridge singleton from C184 (`argumentation_lib.initialize_jvm`) is initialized and the target classes are exposed by the JVM. Until the JPype-Tweety bridge is properly initialized (sub-tranche C186g runtime bridge shim), the lazy accessors return the class symbols without triggering instantiation. The lazy accessors preserve the API symmetry with C184/C185/C186a/C186b/ C186c/C186d accessors. Runtime usability for all 3 awaits Volet B etape 4 sub-tranches C186f (TweetyInitializer) and C186g (runtime bridge shim). **Sub-tranche plan (after this PR)** : - **C186f** (this PR) : `tweety_initializer.py` 365L -- initializer isole, gates C186c/C186d runtime (AFHandler + ModalHandler). - **C186g** (this PR) : runtime bridge shim `_jvm_shutdown_shim.py` ~10L wrapping `argumentation_lib.shutdown_jvm` from C184's `_jvm_compat.py`. **Excluded by ai-01 mandate** (gap NL->structured) : `bipolar_handler.py`, `aba_handler.py`, `aspic_handler.py`. **Out of scope** : `setaf_handler.py`, `weighted_handler.py`, `social_handler.py` (not imported by upstream `tweety_bridge.py:29-41`). Volet B etape 4 sub-tranche C186f (tweety_initializer) ------------------------------------------------------- PR #5255 (C186f) added `_tweety_initializer.py` (365L) as a verbatim copy of the EPITA-IS `tweety_initializer.py` module at commit `a8025f60`. This is the **central JPype-Tweety bridge initializer** that gates the runtime initialization of all 12 logic handlers imported by upstream `tweety_bridge.py:29-41` -- including the `TweetyInitializer` class, the FOL/PL/modal Java class pre-loading, and the singleton `_classes_loaded` / `_initialized_components` / `_jvm_started` state flags. Symbols exposed (1 public via lazy accessor): - `get_tweety_initializer_symbol()` -> `TweetyInitializer` class (lazy import) Verbatim integrity: - `_tweety_initializer.py` body SHA1=`ed4e60adc584ca34f96170c28f6d6f21cf449382` (365L, no prelude, starts with `"""Gestionnaire d'initialisation pour les composants Tweety`). - LF line endings (no CRLF), UTF-8 (no BOM), full upstream SHA1 == body SHA1 (no shebang prelude). UTF-8 French accents (`Gestionnaire d'initialisation`) preserved byte-equal (verified by automated header+body build script, not hand-transcribed -- cf `build_c186f.py` archive, cycle 9 lesson on `Read` tool UTF-8 corruption). Dependency disclosure (G.9 honest caveat -- triple-disclosed): This file ships **3 EPITA-IS-internal sibling imports at module-load** that are NOT vendored in `argumentation_lib/`: L11: `from argumentation_analysis.core.utils.logging_utils import setup_logging` L14-17: `from argumentation_analysis.core.jvm_setup import (` ` initialize_jvm as initialize_jvm_robustly,` `)` L17: `from argumentation_analysis.core.jvm_setup import shutdown_jvm, is_jvm_started` Therefore this module is **NOT standalone-importable today**: even the module-level `import argumentation_lib._tweety_initializer` raises `ModuleNotFoundError: No module named 'argumentation_analysis'` because the top-level imports cannot resolve. G.9 surface test verified: ```python from argumentation_lib._tweety_initializer import TweetyInitializer # FAIL # -> ModuleNotFoundError: No module named 'argumentation_analysis' ``` Failing the surface test is the G.9 fingerprint that proves the verbatim block is honest, not fabricated. The lazy accessor `argumentation_lib.get_tweety_initializer_symbol()` preserves the class symbol path API symmetry with C184/C185/C186a-e accessors but does **not** bypass the top-level imports. **Why deliver the verbatim copy anyway** (G.9 honesty over abandonment): the body is the authoritative source for the eventual bridge shim in C186g (which will re-export `setup_logging` + `initialize_jvm_robustly` / `shutdown_jvm` / `is_jvm_started` from a CoursIA-vendored `_jvm_setup_compat.py` plus the existing `_jvm_compat.py` from C184). Preserving it byte-for-byte in `argumentation_lib/` documents the exact contract the shim must satisfy. The cost is a 401-line file (36L MIT header + 365L body) that is currently dead-weight (cannot be imported); the benefit is no drift between this reference and the eventual shim. **Sub-tranche plan (after this PR)** : - **C186g** (this PR) : runtime bridge shim `_jvm_shutdown_shim.py` ~10L wrapping `argumentation_lib.shutdown_jvm` from C184's `_jvm_compat.py` + re-export of `setup_logging` from a future `_logging_utils_compat.py` (gated by user-machine JVM setup). **Excluded by ai-01 mandate** (gap NL->structured) : `bipolar_handler.py`, `aba_handler.py`, `aspic_handler.py`. **Out of scope** : `setaf_handler.py`, `weighted_handler.py`, `social_handler.py` (not imported by upstream `tweety_bridge.py:29-41`). Volet B etape 4 sub-tranche C186g (_jvm_setup_compat runtime shim) ---------------------------------------------------------- PR #5258 (C186g) added `_jvm_setup_compat.py` (186L) as a **CoursIA- owned G6 glue shim**, NOT a verbatim upstream port. Per ai-01 verdict `msg-20260703T155506-3gv1da` Q3: "Shim minimal de cycle-de-vie JVM (garde atexit/context-manager) accepte. Garde-le glue-fin : purete verbatim preservee pour le core, le shim est de la colle, pas du port." ## Purpose The verbatim upstream `_tweety_initializer.py` (C186f) imports at module-load time 3 EPITA-IS-internal siblings that are NOT vendored in `argumentation_lib/`: ```python from argumentation_analysis.core.utils.logging_utils import setup_logging from argumentation_analysis.core.jvm_setup import ( initialize_jvm as initialize_jvm_robustly, ) from argumentation_analysis.core.jvm_setup import shutdown_jvm, is_jvm_started ``` The `argumentation_analysis` package is EPITA-IS-internal and is **never vendored** in `argumentation_lib/` (vendor time would explode, and CoursIA's `init_tweety()` infrastructure is already superior to EPITA's `jvm_setup.py` -- see `_jvm_compat.py` C184 header for the rationale). Instead of vendoring the upstream module, this shim registers `argumentation_analysis.core.{jvm_setup,utils.logging_utils}` as virtual `sys.modules` proxies that re-export: - `initialize_jvm_robustly / initialize_jvm / shutdown_jvm / is_jvm_started` -> `_jvm_compat.py` (C184) - `setup_logging(name)` -> stdlib-only single-handler INFO+Stderr shim The verbatim imports then resolve transparently -- the upstream contract is satisfied without duplicating the upstream sources. ## Implementation shape (186L, ASCII-only) | Component | Lines | Notes | | --- | --- | --- | | Module docstring + module-load-time `install_epita_namespace_shim()` call | ~50 | Idempotent, best-effort (preserves G.9 fingerprint on failure) | | `_build_setup_logging()` factory | ~30 | Stdlib-only single-callable; idempotent (no-op if logger already has handlers) | | `install_epita_namespace_shim()` (proxy registration) | ~70 | Builds `types.ModuleType` proxies under `sys.modules["argumentation_analysis.*"]`; idempotent via `_PROXY_INSTALLED` flag | | `__all__` + comments | ~30 | API surface declaration | Composed by `build_c186g.py` (cycle 10 lesson: ASCII-only source, no UTF-8 corruption surface to worry about for shim code). ## G.9 honest caveat (NOT verbatim -- fabrication-prime) `_jvm_setup_compat.py` is a **CoursIA-owned G6 glue shim**, not a verbatim upstream copy. License is implicit CoursIA-internal (per CLAUDE.md §A "Code avant documentation"). No SHA1 byte-equal attestation vs upstream because there is no upstream 1:1 source -- this is intentional glue, not a port. G.9 surface test (verified post-PR): ```python import argumentation_lib # Side-effect: shim installs the EPITA namespace proxies at __init__ load. from argumentation_lib._tweety_initializer import TweetyInitializer # Was: ModuleNotFoundError: No module named 'argumentation_analysis' # Now: ``` ## Scope / non-scope **In scope** (this PR closes): - Unblock `_tweety_initializer.py` (C186f) standalone import - Unblock `_tweety_bridge.py` (C186a) line 485 lazy import of `from argumentation_analysis.core.jvm_setup import shutdown_jvm` - Provide `setup_logging(name)` for the C186 chain (stdlib-only) - Install proxies automatically as a side-effect of `import argumentation_lib` (top-of-`__init__.py` `from argumentation_lib import _jvm_setup_compat`) **Out of scope** (deferred to a future sub-tranche -- NOT closing EPIC #4960 chain here, but flagging): - `_af_handler.py` upstream does `from .tweety_initializer import TweetyInitializer` (no underscore prefix), which the CoursIA file `_tweety_initializer.py` does NOT satisfy. This is a **CoursIA naming-vs-upstream-naming** mismatch, separate from the EPITA namespace injection. A future tranche would either rename the upstream import (anti-regression D risk) or add a `_tweety_initializer` shim alias file. Tracked but not delivered in C186g. - PL/FOL/modal handlers also import broader upstream `argumentation_analysis` siblings (e.g. `argumentation_analysis.core.config.settings`, `argumentation_analysis.core.prover9_runner.run_prover9`, `argumentation_analysis.core.mace4_runner.MACE4_EXECUTABLE`, `argumentation_analysis.agents.core.logic.pl_formula_sanitizer`, `argumentation_analysis.agents.core.logic.fol_logic_agent`). These are C186h+ work. The C186g shim does not unblock the wider handler chain -- only the C186f initializer + C186a bridge line 485. ## Build approach `build_c186g.py` (cycle 10 lesson applied: ASCII-only source string + `wb`-equivalent write + SHA1 round-trip verification + ASCII-only sanity check) -> `_jvm_setup_compat.py` 186L. Idempotent rebuild (same SHA1). Deterministic output (no timestamps, no random state). ## Sub-tranche plan (chain completion -- See #4960) After this PR, the **C186 chain is structurally complete** at the EPITA-namespace-injection level. Further handler-import unblocking is documented above as out-of-scope sub-tranches (NOT closing EPIC #4960 here -- the wider C186h+ work for PL/FOL/modal/AF handler imports is a separate Epic sub-tranche). ## Anti-regression D 0 `pass`, 0 `return None`, 0 `sorry`, 0 `raise NotImplementedError` introduced in the shim. Every public symbol either re-exports `_jvm_compat` (C184) or stdlib-only `logging`. No derivation logic. ## Entonnoir de sophismes -- FallacyWorkflowPlugin execution (#18391, portee 3) Portee 2 of #18391 -- the verbatim vendoring of the seven funnel modules from the EPITA-IS tronc at commit `ecfd9b9c31d299ad9e08ee0e7a726d436f4ebd8e` (`_fallacy_workflow_plugin`, `_exploration_plugin`, `_identification_models`, `_taxonomy_navigator`, `_taxonomy_tree`, `_taxonomy_local_overrides`, `_plaintext_destination`), wired through the `_epita_vendor_shim` sys.modules bridge -- landed on `main` as #19287 while this tranche was in flight. This tranche (#19204) therefore keeps the vendored files **byte-identical to #19287** (the earlier import-rewritten variants of this branch are superseded) and adds only what portee 3 needs: the notebook wiring that runs the funnel for real (`Argumentation-02` section 5, via the same shim imports as #19287's smoke test), plus the two deviations below -- which the verbatim vendoring needs to function at all, and which its no-LLM smoke test could not observe. The dependency closure of the entry point (`FallacyWorkflowPlugin`) is the seven modules vendored by #19287 (BFS over the upstream import graph, 111,612 bytes; runtime dependency `semantic_kernel`, verified against 1.42.0). ### Deviations carried on top of the #19287 verbatim blob **Etat au 2026-12-01 (#29732).** Ce releve decrit la tete de #19204. Depuis, `_fallacy_workflow_plugin.py` et `_identification_models.py` portent l'adaptation « confiance non mesuree » de la table « Adaptations locales declarees » ; les six autres fichiers du tronc sont inchanges. A ce moment-la, a single file deviates: `_fallacy_workflow_plugin.py`, by exactly 27 insertions / 3 deletions (header honesty plus the two fixes below). Every other vendored file is byte-identical to #19287. The fixes keep their historical numbering (2, 3) from the first version of this section: there is no deviation 1 anymore -- the import rewrites are superseded by the shim. 2. **`_fallacy_workflow_plugin.py` reads the taxonomy CSV as `utf-8-sig`** instead of `utf-8`. The vendored CSV (`data/argumentum_fallacies_taxonomy.csv`) is a byte-faithful mirror of upstream Argumentum carrying a UTF-8 BOM; read as plain `utf-8`, the BOM stays glued to the first header cell, so the column is named `PK` and every `row["PK"]` lookup returns empty. Measured on the 1408-row mirror: `utf-8` -> 0 rows carry a PK, 0 deep-index entries, all 7 roots mapped to `""`; `utf-8-sig` -> 1408 PKs and 91 deep-index entries. Under `utf-8` the wide-net phase resolved **0 of 15** candidates and the funnel **silently degraded to the one-shot regime**. Not repairable on the CSV side: the mirror's integrity guard forbids editing it (see the docstring of `_taxonomy_local_overrides.py`). `utf-8-sig` reads a BOM-less file exactly like `utf-8`, so the change has no other effect. Note the notebook series already read this CSV as `utf-8-sig` (cell `[2]` of `Argumentation-02`): the vendored reader was the outlier. 3. **`_fallacy_workflow_plugin.py` detaches the descent-trace FileHandler before its truncating write** (`_persist_trace`). That handler is opened in mode `"w"` at the start of the run and keeps its file offset, so writing the JSON underneath it left the handler emitting at the old offset and padded the artifact with NUL bytes. Measured on a 7-fallacy run: 8240 chars of JSON followed by 3624 NULs -- `json.load` on the declared trace file raised `Extra data`. The caller's `finally` still re-detaches harmlessly. Not re-applied on top of #19287: the import rewrites of the earlier variant (superseded by the shim bridge), and the `check-subprocess-encoding` `encoding=` fix on `_plaintext_destination.py` (behaviour-neutral, gate-compliance only). The latter is flagged to the #19287 lane as a latent gate finding rather than touched here, so the file stays out of this diff. ### Verification of the vendored funnel (measured 2026-10-05) Through the public API only (`taxonomy_file_path=`, no `taxonomy_data` shortcut), on the synthetic text of `Argumentation-02`: - Phase 1 resolves candidates: `deep_index=91`, root PKs `['1','1280','175','594','696','798','887']`. - Regime reached: `exploration_method = wide_net_parallel`, `analysis_regime = funnel` -- **not** the `one_shot` fallback. - 6 branches explored, 21 iterations, 54 descent LLM calls. - Confirmed PKs all at depth >= 2 (3,4,4,4,4,4,5,6), each with a real `path`. - Rejections produced: 7 `Leaf not confirmed` records, plus `Branch supersession: 9 confirmed, 2 branches superseded` -- the trace evidence #18391 requires. - Trace artifact after deviation 3: 7986 chars, 0 NUL bytes, valid JSON. These are single-run figures: the funnel calls a live LLM, so counts vary between runs while the structure of the evidence does not. Reproduce with `Argumentation-02-Fallacies-Detection-Python.ipynb` section 5. Moteurs de revision de croyance — ATMS et resolution de conflits (28/10/2026, issue #23163) ------------------------------------------------------------------------------------------- Tranche de portage dans le cadre de l'issue #23163 (serie `ArgumentAnalysis` completee sur CoursIA ; le depot EPITA reste le cadre experimental, pas la destination). Deux moteurs du service `jtms` d'EPITA-IS, portes dans `argumentation_lib/` : | File in CoursIA `argumentation_lib/` | Upstream path in EPITA-IS | Upstream commit | |---------------------------------------|----------------------------|-----------------| | `_atms_core.py` (242 lines) | `argumentation_analysis/services/jtms/atms_core.py` | 713927e1 (2026-10-28) — VERBATIM, aucune modification | | `_conflict_resolution.py` (305 lines) | `argumentation_analysis/services/jtms/conflict_resolution.py` | 713927e1 (2026-10-28) — VERBATIM, aucune modification | Les deux fichiers amont n'importent que la bibliotheque standard : aucun prefixe `argumentation_analysis.*` n'a donc pas eu a etre reecrit, et le corps est **byte-for-byte** identique a l'amont (seule l'entete de provenance est ajoutee, qui cite le fichier amont, son SHA1 et la ligne concernee). Le carnet `Argumentation-06b-ATMS-Conflits-Python.ipynb` exerce les deux moteurs : etiquettes par environnements, invalidation, nogood non durable, cinq strategies de resolution de conflits, replis nommes et garde-fous bruyants. Shim runtime de la couche informal (#23633, Volet B etape 4, EPIC #10355 -- 31/10/2026) ------------------------------------------------------------------------------------- Tranche de portage dans le cadre de #23633 : rendre **importables au runtime** les deux fichiers verbatim de la couche informal (`_taxonomy_sophism_detector.py` + `_informal_definitions.py`, tous deux a8025f60), sans toucher a leur contenu (integrite verbatim = contrat). Le bris, mesure firsthand au scoping (issue #23633), tenait en **trois** couches, pas deux : 1. **Couche 1** : `_taxonomy_sophism_detector.py:40` garde son import relatif amont `from .informal_definitions import InformalAnalysisPlugin` alors que le sibling sur disque s'appelle `_informal_definitions.py` (convention de renommage `_`). 2. **Couche 2** : `_informal_definitions.py:66-68` importe trois helpers du package amont `argumentation_analysis.*` (file_loaders, taxonomy_loader, paths), absent de l'arbre. 3. **Couche 1 bis (mesuree au scoping, non listee dans le plan initial)** : `_informal_definitions.py:79` importe `from .prompts import ...` -- aucun sibling `prompts` n'existait dans `argumentation_lib/`. **Quatre fichiers amont vendes** au commit epingle `a8025f60` (cloture complete des couches 1 bis et 2) : | File in CoursIA `argumentation_lib/` | Upstream path | Integrite | |---|---|---| | `_file_loaders.py` | `argumentation_analysis/core/utils/file_loaders.py` | body SHA1=`a07a5e1b03bae17c33572d387890812173370ce5` (213L, LF, VERBATIM integrale) | | `_taxonomy_loader.py` | `argumentation_analysis/utils/taxonomy_loader.py` | body SHA1=`378d9632aa388905ecbe406c65a4062b58006e33` (360L, LF, VERBATIM integrale ; importe `argumentation_analysis.paths` -- resolu par la map) | | `_epita_paths.py` | `argumentation_analysis/paths.py` | body SHA1 apres deviations declarees=`69bd69df748b0b52f054a6f880dc0b5797b89b8e` (103L vs 100L amont ; amont sha1=`becf6a571906aa6a25b4475a3e32b49c04a2fd7e`, LF) ; decoupe du « body » = contenu apres le bloc de commentaires de tete (convention verifiee contre `_taxonomy_loader.py` et `_prompts.py`, et contre la valeur `6149f243...` du fichier a HEAD avant #23669) ; deviations = appel module-level `ensure_directories_exist()` desactive **et** `DATA_DIR` sur la racine application (table « Adaptations locales declarees ») ; nom `_epita_paths` et non `_paths` : collision avec le module natif CoursIA `_paths.py` | | `_prompts.py` | `argumentation_analysis/agents/core/informal/prompts.py` | body SHA1=`b1791616e9ba2095a1e791d40a19307f0f5ef562` (163L, LF, VERBATIM integrale) | **Le shim** : extension de `_epita_vendor_shim.py` (pattern #18391, meme mecanisme `sys.modules`, install idempotente) par `INFORMAL_RUNTIME_MAP` + `install_informal_runtime_shim()` -- registre les 3 helpers sous leurs noms amont `argumentation_analysis.*` (parents crees en namespace packages, `core.utils` ajoute) puis les alias siblings `argumentation_lib.prompts` -> `_prompts` et `argumentation_lib.informal_definitions` -> `_informal_definitions` (resolvent les imports RELATIFS litteraux, couche 1). L'ORDRE compte : paths avant taxonomy_loader (ce dernier l'importe), prompts avant informal_definitions (son corps importe `.prompts` a l'execution). Contrairement a la map #18391, le drapeau n'est pose qu'en cas de succes complet -- re-retryable apres installation de `semantic_kernel` dans le meme process (regle F). **Cablage** : les deux accesseurs paresseux `get_taxonomy_sophism_detector()` et `get_informal_definitions_symbols()` (`__init__.py`) appellent le shim avant leur import differe. `import argumentation_lib` reste **sans effet de bord** (le shim n'installe pas la map informal au chargement du paquet -- seulement les deux accesseurs). `semantic_kernel` reste un prerequis d'environnement au niveau module (absent de CI : l'erreur `ModuleNotFoundError: semantic_kernel` remonte honnetement ; localement, regle F : `pip install "semantic-kernel>=1.0"`, deja declare dans `ArgumentAnalysis/requirements.txt`). **Preuve d'execution (mesuree, machine po-2028, avec le vrai `semantic_kernel` 1.x installe)** : `argumentation_lib.get_taxonomy_sophism_detector()` retourne la classe `TaxonomySophismDetector` (plus de `ModuleNotFoundError`) ; `get_informal_definitions_symbols()` retourne les 5 symboles publics ; 5/5 entrees registrees ; `ArgumentAnalysis/libs/` NON recree (la deviation fait son office). Temoin negatif : sans le shim, l'import direct du detecteur leve toujours `ModuleNotFoundError: No module named 'argumentation_lib.informal_definitions'` (le shim porte bien la charge). Portee = l'IMPORT (precedent #18391 : l'execution LLM-backed de `setup_informal_kernel` exige un endpoint, hors grain). **Deviation (2) de `_epita_paths` -- temoin ne rouge (#23669)** : defaut mesure par `myia-ai-01` sur la PR #23669 elle-meme. Avec la valeur amont de `DATA_DIR`, la chaine `InformalAnalysisPlugin(kernel)` -> `get_taxonomy_path()` ne trouvait pas la taxonomie suivie et partait en telechargement de la branche `master` d'Argumentum, sans epinglage ni `timeout`. Preuve du temoin, mesuree le 2026-10-31 sur po-2028 : `tests/test_informal_runtime_shim.py` porte deux cas qui **rougissent** sous la valeur amont et **passent** sous la valeur vendue -- `DATA_DIR` remis a `ROOT_DIR / DATA_DIR_NAME` dans une copie de travail restauree ensuite par empreinte SHA256, `pytest` rend `2 failed` avec, dans la trace, `get_taxonomy_path() ... requests.get(TAXONOMY_URL)` intercepte par le `monkeypatch` du test ; sous la valeur vendue, `418 passed, 10 skipped, 0 failed` sur la suite `ArgumentAnalysis/tests` entiere. Aucun dossier `argumentation_lib/data/` cree dans les deux cas de la version vendue. What this NOTICE does NOT cover ------------------------------- - `Argumentum/` submodule (Argumentum upstream, LGPL-3.0): see submodule `LICENSE` and its own NOTICE chain (`data/NOTICE`, `data/NOTICE-VIRTUES`). - `TweetyProject/` and `Tweety/dotnet-build/` (Tweety Jars, LGPL-2.1): see their respective NOTICE entries. - `ext_tools/`, `libs/`, `node_modules/`, `htmlcov*` directories: vendored third-party material, each with its own LICENSE. - Notebook execution outputs: cleared on commit per C.2/C.3 notebook conventions. Updating this NOTICE -------------------- When a verbatim file is updated to a newer upstream commit, edit the "Upstream commit" column above, verify byte-for-byte identity (sha1sum), and update the per-file header to cite the new commit. The header update is part of the same atomic PR as the content update -- never commit the content update without the NOTICE update (and vice versa).