Repository navigation
test(ict,#4588): 9 unit tests for ict.lens_agreement + structural conftest fix (42/42 tests passent) - #7360
Merged
Conversation
…alsifiable gates Le module ict.lens_agreement (strate 5, #5681 / capstone axe derivee temporelle #7259) n'avait aucun test alors que tous les autres modules de la triade (beauty, ignition) en ont. Cette PR ajoute une suite de 9 tests couvrant 5 proprietes falsifiables : 1. Format : lens_ignition_centers retourne Dict[key, (centers, T)] avec centers = List[int] et T = int. 2. Determinisme : colocalize_lenses avec rng fixe donne z_mean byte-stable. 3. Co-localisation exacte : lentilles identiques -> z >> 0, verdict 'colocalized'. 4. T incompatible : prompts ou T_a != T_b sont ranges dans 'skipped' et exclus du verdict agrege. 5. Verdict synthese : max(n_colocalized, n_dissociated) ; egalite = 'chance'. La PR inclut egalement un correctif structurel (conftest.py + pytest.ini) qui debloque l'execution LOCALE des tests sous ict/tests/. Le root pytest.ini force --import-mode=importlib qui ignore sys.path.insert, ce qui empechait test_reversibility_budget.py et test_time_arrow.py upstream MERGED de tourner localement. Avec ce correctif, **42/42 tests passent** (9 lens_agreement + 22 time_arrow + 11 reversibility_budget). Pattern aligne sur test_reversibility_budget.py et test_time_arrow.py existants (fixtures synthetiques + monkeypatch des sources SAE/J-Lens). GPU-free (numpy only), coherent avec le mandat user 2026-07-04. Refs #4588 (Epic ICT-Serie).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Résumé
Ajoute une suite de 9 tests unitaires pour
ict.lens_agreement(strate 5, #5681 / capstone axe-dérivée-temporelle #7259) + un correctif structurel qui débloque l'exécution locale de tous les tests sousict/tests/.Problème résolu
Couverture manquante.
ict.lens_agreementest un module de la triade beauty / ignition / lens-agreement ([Epic] - IIT → ICT : trajectoires intégrées, morphogenèse minimale et émergence multi-échelle #4588).ict.beautyetict.ignitionont des tests ;lens_agreementn'en avait aucun alors qu'il implémente la jambe lens-agreement (la dernière du capstone axe dérivée temporelle, cf PR feat(ict,#5681): co-localisation inter-lentilles SAE↔J-Lens (lens_agreement.py + 9 tests) — verdict négatif honnête #7286 c.613).Bug d'exécution latent. Le
pytest.iniracine force--import-mode=importlibqui ignore lessys.path.insertau top-level des modules de test. Conséquence : les 2 fichiers de test upstream MERGEDtest_reversibility_budget.py(PR [ICT] ICT-18b ReversibilityBudget — la jambe « fin » de la réversibilisation : budget, régénération, ce que la réversibilité permet #7287) ettest_time_arrow.py(PR fix(#2876): restore French accents in CaseStudies+IIT residual markdown (51 cures, 3 notebooks) #7267) n'ont jamais pu être exécutés localement avant ce correctif. Découvert en lisant le commentaire en tête detest_reversibility_budget.py(l'auteur upstream lui-même note "jamais testé localement").Livré (3 fichiers, 445 lignes)
test_lens_agreement.pyconftest.pyictpackage viaimportlib.util.spec_from_file_locationpour bypasser--import-mode=importlibpytest.ini--import-mode=importlibdu rootLes 5 propriétés falsifiables testées
lens_ignition_centersretourneDict[key, (List[int], int)]avec T = longueur du panneau.colocalize_lensesavec rng fixe donnez_meanbyte-stable à1e-9près.z >> 0, verdictcolocalized.T_a ≠ T_bvont dansskippedet sont exclus du verdict agrégé.max(n_colocalized, n_dissociated); égalité →chance.Bonus :
n_null=None→ rng par défautdefault_rng(0)(déterminisme reproductible).Validation locale
Conformité règles
D:/dev/CoursIA-c621-lens-agreement-tests, basé sur origin/main@2faaee90a)git fetch --all + git branch -r | grep -iE "5681|lens-agreement|4588"= aucune branche upstream concurrente sur lens_agreement (PR test(ict,#4588): unit coverage for ict.mdl MDL two-part code (0→18 tests) #7352/test(ict,#4588): unit coverage for ict.compression K-signal (0→16 tests) #7353 upstream couvrentict.mdl+ict.compression, owner-affichée mais PRs OPEN CLEAN, périmètre distinct)CATALOG-STATUStouchémsg-20260719T102939-nn0nak)Pourquoi owner po-2025
lens_agreement.pyest mon propre module livré via PR #7286 c.613 (MERGED 2026-07-19). Owner upstream = po-2025. Tests = première responsabilité de l'auteur du module (boucle courte). Aucune dépendance GPU (numpy only) — exécutable sur n'importe quelle lane CPU.Références
ict.lens_agreement(PR #7286 c.613 MERGED)ict.workspace.event_colocalization(PR #7274)test_reversibility_budget.py(PR [ICT] ICT-18b ReversibilityBudget — la jambe « fin » de la réversibilisation : budget, régénération, ce que la réversibilité permet #7287),test_time_arrow.py(PR fix(#2876): restore French accents in CaseStudies+IIT residual markdown (51 cures, 3 notebooks) #7267)🤖 Generated with Claude Code