Repository navigation
fix(csp-1): remove duplicate Section 7 block + reposition Section 4.3 (URGENT cours en cours) - #403
Merged
Merged
Conversation
Bug reporte par un etudiant pendant le cours EPITA du 21/04/2026 : le notebook CSP-1-Fundamentals est structurellement casse. Problemes identifies : 1. BLOC DUPLIQUE (9 cellules) : la Section 7 (Recapitulatif + Exercices 1-3 + "Et ensuite" + Exercice 4) apparaissait DEUX fois : une fois entre la Section 4 et la Section 5, puis de nouveau (correctement) avant la Conclusion. Les deux blocs partageaient les MEMES cell IDs (2cd7141e, 3586d6ec, bfd0af8f, 43775d9c, 08fcbcc6, 63846a3f, bcbf03dd, 46d47e13, fr0whufd), trahissant un copy-paste accidentel. 2. SECTION 4.3 MAL PLACEE : "### 4.3 Visualisation du processus de backtracking" apparaissait APRES le header "## 5. Heuristiques", donc logiquement dans la Section 5 alors que son contenu appartient a la Section 4. 3. CODE ORPHELIN (exercice 4 Sudoku code dup id=suhmqzd7qko) : une 10eme cellule du bloc duplique, laissee apres suppression partielle. Fix applique : - Suppression du bloc duplique (9 cellules) apres Section 4 - Suppression du code orphelin Exercice 4 dup (1 cellule) - Deplacement de Section 4.3 (5 cellules) AVANT le header Section 5 Structure finale (71 cellules) conforme au plan pedagogique : 1. Introduction 2. Formalisation CSP 3. Exemple coloration Australie 4. Backtracking (4.1 principe, 4.2 trace, 4.3 visualisation) 5. Heuristiques (5.1 MRV, 5.2 LCV) 6. Bibliotheque python-constraint 7. Recapitulatif et exercices (4 exercices) Conclusion Verification : 0 cellule avec IDs dupliques (avant : 10 duplicats). Tous les autres notebooks CSP-2 a CSP-9 scannes : aucun bug similaire. Origine probable : merge accidentel lors de PR #330 (fix pedagogy move exercises before ending sections, 44 notebooks) ou suivante. Etudiants impactes : ~80 eleves EPITA SCIA 2026 en cours pendant ce matin (21/04/2026). Bug remonte oralement avant la 2eme fournee de TP. Refs CLAUDE.md 2026-04-20 : non-detection = review superficielle lors de PR #330. Tous les notebooks enrichis a cette epoque meritent un scan de coherence structurelle (duplicate section headers). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3 tasks
jsboige
added a commit
that referenced
this pull request
Apr 21, 2026
…n 2 and 3 (#405) Bug similaire a CSP-1 (cf PR #403) detecte lors du scan systematique : la Section 7 (Resume + exercices) et son bloc de 3 exercices apparaissaient DEUX fois dans le notebook. Structure cassee avant fix : Section 2 (Contraintes globales) -> [MISPLACED] Section 7 v1 + Exercices 1-3 v1 (cells 18-24) -> Cell 25 "Interpretation Table" (orpheline, devrait etre en Section 2.4) Section 3 (OR-Tools CP-SAT) ... Exercices 1-3 v2 (cells 57-62, version complete) Section 7 v2 (cell 63, version complete) Fix : - Suppression de la Section 7 v1 misplaced (cells 18-24, 7 cellules) - Repositionnement de "Interpretation : contrainte Table" en Section 2.4 (juste apres le code de demo Table) Structure finale (57 cellules) : 1. Introduction 2. Contraintes globales (2.1 AllDifferent, 2.2 Cumulative, 2.3 Circuit, 2.4 Table) 3. OR-Tools CP-SAT Solver 4. Cassage de symetries 5. LNS 6. Synthese : planification de cours 7. Resume et exercices (Exercices 1-3) Conclusion Contrairement a CSP-1, les IDs de cellules ont ete regeneres lors du bug (probablement par un script de uniquification), donc le scan par ID duplique n'a pas trouve CSP-3. La detection s'est faite par scan des H2 headers dupliques. Autres notebooks avec H2 dup potentiels (a verifier) : - Lean-11-TorchLean.ipynb ("3. API PyTorch-style en Lean" x2) - GenAI/Texte 2_PromptEngineering / 4_Function_Calling ("Objectif" x2) - SW-10-Python-RDFStar ("Interpretation" x2) Ces derniers sont moins prioritaires (pas utilises en cours EPITA actuellement), a traiter en follow-up. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced Apr 22, 2026
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.
URGENT - Bug signale par etudiant pendant cours EPITA 21/04/2026
Le notebook CSP-1-Fundamentals est structurellement casse. Un etudiant a remonte le bug oralement pendant la pause (80 etudiants en cours).
3 problemes identifies
1. Bloc Section 7 duplique (9 cellules)
La Section 7 entiere (Recapitulatif + Exercices 1-3 + "Et ensuite" + Exercice 4 enonce) apparaissait DEUX fois :
Les 9 cellules du bloc duplique partagent les MEMES cell IDs (
2cd7141e,3586d6ec,bfd0af8f,43775d9c,08fcbcc6,63846a3f,bcbf03dd,46d47e13,fr0whufd) ce qui prouve un copy-paste accidentel.2. Section 4.3 mal placee
### 4.3 Visualisation du processus de backtrackingapparaissait APRES le header## 5. Heuristiques, donc logiquement INSIDE la Section 5 alors que son contenu appartient a la Section 4.3. Code orphelin
Une 10eme cellule (
id=suhmqzd7qko, "Exercice 4 Sudoku 4x4 code") etait orpheline, laissee apres un fix partiel precedent.Fix applique
Structure finale (71 cellules, conforme au plan pedagogique)
Verification
+35 -398(on supprime plus qu'on ajoute : c'est normal pour une dedup)Origine probable
Merge accidentel lors de PR #330 (fix(pedagogy): move exercises before ending sections, 44 notebooks) ou suivante. Tous les notebooks enrichis a cette epoque meritent un scan de coherence structurelle.
Test plan
ensure_unique_cell_idsdansvalidate_notebook_structureRefs
session_20260420_review_rigor.mdCo-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com