Repository navigation
fix(#2876): restore French accents in CaseStudies+IIT residual markdown (51 cures, 3 notebooks) - #7267
Conversation
…wn (51 cures, 3 notebooks) Canonical cure #7186 (restore_accents_canonical.py — markdown-cell-source ONLY, skip link-targets/code/outputs/ec). 5-axis verify CLEAN firsthand on fresh origin/main worktree (HEAD 0407edd). Targets (non-Lean, no partition collision): - CaseStudies/Oncology-Planning/solution: 17 cures (python3) - CaseStudies/SmartGrid-Energy/student: 27 cures (python3, student version) - IIT/IIT-3-CoarseGrainingMacroPhi: 7 cures (pyphi) Verify 5-axis (base HEAD vs working tree): - C.2 byte-identity: 0 code/output/ec touched (44 ins / 44 del = accent swap) - accent-fidelity: deaccent(base)==deaccent(head), 0 word substitution - structure: 0 blank-line collapse - link-target (defect class 5): 0 link target changed - CI gates #7157/#7198/#7210: 0 failure, cell-count/cell_type preserved See #2876 (partial — GameTheory Lean-notebook.ipynb + QuantConnect deferred under coord scope decision). Co-Authored-By: Claude-Code <noreply@anthropic.com>
Golden-Set Execution (H.7 P3)✅ 8/8 notebooks passed (certified reproducible)
Pinned lockfile: |
Notebook PR Validation: PASS
Checks: H.1 (no errors), H.3 (execution_count), C.1 (no banned patterns) |
jsboige
left a comment
There was a problem hiding this comment.
[Hermes] COMMENT — restauration accents CaseStudies/IIT (#2876), SHA 66a35f1.
Vérifié : 44 lignes modifiées, 100 % contiennent au moins un accent (é/è/ê/à/â/î/ô/û/ù/ç ou majuscules). Aucune ligne de code changée (pas de cell_type: code touché), aucune modif hors-accents (seul +} terminal = fermeture JSON). Golden-Set CI ✅. RAS — i18n fix mécanique, cohérent avec #7263/#7264.
… rows) (#7317) The accent-cure campaign (#7272/#7273/#7277/#7267, etc.) corrected ASCII French -> proper accents in CaseStudies notebook sources (energetique -> energetique with accents, modele -> modele, etc.). The translation sync CSV (translations/casestudies/casestudies.csv) was seeded BEFORE this campaign, so its src_hash/text_fr pivot fields no longer matched the current (accent-corrected) source -> check_translation_sync.py reported SRC_DRIFT on 29 cells across 4 notebooks. Resync via extract_cells_to_csv.py --update (preserves target translation columns text_en/hash_en/... and other-notebook rows): - SmartGrid-Energy/solution (c13/c15/c17/c19) - SmartGrid-Energy/student (c0/c1 + others) - Diagnostic-Medical/solution - Oncology-Planning/solution Verify: check_translation_sync.py = 0 anomalies after. 29 rows refreshed, 72 already in-sync, 48 other-notebook rows preserved, 0 orphan, 0 prior translations lost (text_en empty on drifted rows). See #4957 (T2 durable resync vein). Fork-route delivery (credential drift workaround). Co-authored-by: Claude-Code <noreply@anthropic.com>
… (300 rows, 0 drift) (#7322) SMT family translation drift resync (T2 vein, EPIC #4957). Post-accent-campaign #7272/#7273/#7277/#7267 (~15000 cures) made the notebook sources accented while the CSV text_fr stayed ASCII pre-campaign. Resynced both SMT CSVs via extract_cells_to_csv.py --update (deterministic, source-only, preserves target columns + other-notebook rows): - translations/smt/z3-api.csv: 221 rows refreshed (24 Z3-Python notebooks) - translations/smt/z3-linq2z3.csv: 79 rows refreshed (18 Linq2Z3 notebooks) Verification: - check_translation_sync.py: 0 anomalies on both CSVs (was 300) - Row counts match origin/main (541 + 525, 0 added/0 orphan) - Diff = pivot fields only (src_hash, text_fr); 7 target translation columns untouched (T3 not yet run on SMT, all empty) - COURSE_CATALOG.generated.* byte-identical to main See #4957 Co-authored-by: Claude-Code <noreply@anthropic.com>
…ign) (#4957) (#7365) La campagne accent #2876 (#7272/#7273/#7277/#7267 + filles, ~15000 cures) a accentué le français ASCII->accents dans les notebooks Sudoku. Le CSV `translations/sudoku/sudoku.csv` (1337 rows, 36 notebooks) était stale : 302 cellules en SRC_DRIFT (text_fr pre-campagne ASCII vs notebooks accentués post-campagne). Resync via extract_cells_to_csv.py --update : python scripts/translation/extract_cells_to_csv.py \ MyIA.AI.Notebooks/Sudoku/ --update translations/sudoku/sudoku.csv Result : 302 lignes rafraîchies, 1035 deja in-sync, 0 ajoutee, 0 orpheline. Drift check post-resync : 0 anomalie sur sudoku.csv. G.1 firsthand verify (anti-FP) : 2 drifted cells spot-checkes, diff exact = `metaheuristique` (CSV ASCII) -> `métaheuristique` (NB accentué), len 1005=1005, single accent cure. Drift reel (accent campaign), pas artefact. Scope du diff (verifie) : colonnes source+pivot ONLY - src_hash : 302 rows - text_fr : 302 rows - hash_fr : 302 rows Aucune colonne cible (text_en, hash_en, ...) touchee (T3 preserved). LF-only (0 CR). 1 fichier, catalogue byte-identique. Global regression : 6122 -> 5820 anomalies fleet-wide (-302). See #4957 (Epic translation sync). Non-test genre (data-fix resync), adresse le flag fleet test-coverage-tunnel (po-2026 msg lk44ya). Co-authored-by: Claude-Code <noreply@anthropic.com>
Summary
Canonical accent cure (#7186 pipeline
restore_accents_canonical.py) on the non-Lean small-family residual of registre #2876. Markdown-cell-source ONLY by construction — code cells, outputs, execution_count, link targets, identifiers all untouched.51 cures / 3 notebooks, all non-Lean (python3 / pyphi kernels), no partition collision:
CaseStudies/Oncology-Planning/solution/Oncology-Planning.ipynbCaseStudies/SmartGrid-Energy/student/SmartGrid-Energy.ipynbIIT/IIT-3-CoarseGrainingMacroPhi.ipynbWhy this scope (residual clearance, not full close)
Firsthand dry-run on fresh
origin/mainworktree (G.1 — never scan stale shared tree):SymbolicAI/SMT: 0 cures (fully cured by fix(z3-smt,#2876): restore FR accents in Z3/SMT family (839 cures, 28 nbs) #7241 — confirmed not a vein).CaseStudies+IIT: small non-Lean residuals, no prior PR touched these exact files/cells (idempotent cure surfaces dictionary-expansion pairs).GameTheoryLean-notebook.ipynb(134/2:GameTheory-4b-Lean-NashExistence,02-Lean-SocialChoice-Formal) — fix(gametheory,#2876): restore FR accents in GameTheory family (1590 cures, 41 nbs) #7244 deliberately excluded Lean-ipynb; needs ai-01/po-2026 adjudication: markdown.ipynbaccent cure = fix(docs): accents manquants dans les READMEs francophones #2876 scope vs Lean partition i18n(lean): harmoniser les fichiers .lean en francais + traduction anglaise — inventaire, convention, PR pilote #4980?QuantConnect(4215/163) — awaiting scope decision (includeprojects/*stubs? research/?) per po-2025 c.632.5-axis verify CLEAN (firsthand, base HEAD vs working tree)
execution_count/cell_typeline touched.git diff --stat= 44 ins / 44 del (accent-swap balance, no net add/delete).deaccent(base) == deaccent(head)on every changed markdown line → 0 word substitution (cure adds accents only, never replaces a word).set(](...)targets identical base↔head → 0 link target gained an accent.check_identifier_regression.py(feat(tools,#2876): identifier-regression guard for accents PRs (code-identifier over-reach) #7157) OK /detect_caps_regression.py(feat(tools,#2876): detect_caps_regression markdown gate (caps-loss defect class) #7198) 0 caps-regression /detect_link_target_regression.py(feat(tools,#2876): link-target accent-regression detector + 17 tests #7210) 0 regression. Cell-count + cell_type preserved (asserted).Bright-lines (canonical cure by construction)
if cell_type != 'markdown': continue)]( ... )masked before cure, restored byte-identical aftersourcekey rewritten;outputs/execution_count/metadataintactSee #2876 (partial — residual clearance; convergence endgame continues).
po-2023, firsthand: fresh origin/main worktree (HEAD 0407edd) + canonical cure #7186 + 5-axis forensic (C.2/accent-fidelity/structure/link-target/3 gates).