Skip to content

fix(#2876): restore French accents in CaseStudies+IIT residual markdown (51 cures, 3 notebooks) - #7267

Merged
jsboige merged 1 commit into
mainfrom
feature/residual-accents-2876-casestudies-iit
Jul 18, 2026
Merged

jsboige merged 1 commit into
mainfrom
feature/residual-accents-2876-casestudies-iit

Conversation

@jsboige

@jsboige jsboige commented Jul 18, 2026

Copy link
Copy Markdown
Owner

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:

Notebook Cures md cells touched kernel
CaseStudies/Oncology-Planning/solution/Oncology-Planning.ipynb 17 3/17 python3
CaseStudies/SmartGrid-Energy/student/SmartGrid-Energy.ipynb 27 11/12 python3 (student version — #7173 cured the solution version)
IIT/IIT-3-CoarseGrainingMacroPhi.ipynb 7 3/14 pyphi

Why this scope (residual clearance, not full close)

Firsthand dry-run on fresh origin/main worktree (G.1 — never scan stale shared tree):

5-axis verify CLEAN (firsthand, base HEAD vs working tree)

Bright-lines (canonical cure by construction)

  1. markdown-cell-source ONLY (if cell_type != 'markdown': continue)
  2. link targets ]( ... ) masked before cure, restored byte-identical after
  3. no code cell touched
  4. only the source key rewritten; outputs / execution_count / metadata intact

See #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).

…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>
@github-actions

Copy link
Copy Markdown
Contributor

Golden-Set Execution (H.7 P3)

✅ 8/8 notebooks passed (certified reproducible)

Notebook Status Time
2.1-Workflow-ML.ipynb ✅ SUCCESS 6.3s
2.2-Descente-de-gradient.ipynb ✅ SUCCESS 3.8s
2.3-Regression-lineaire-logistique.ipynb ✅ SUCCESS 3.4s
2.4-Arbres-Forets-Ensembles.ipynb ✅ SUCCESS 4.5s
Search-1-StateSpace.ipynb ✅ SUCCESS 3.6s
SL-1-LogicalLearning.ipynb ✅ SUCCESS 3.4s
rl_4_multi_armed_bandits.ipynb ✅ SUCCESS 19.5s
GameTheory-4c-NashExistence-Python.ipynb ✅ SUCCESS 3.3s

Pinned lockfile: scripts/notebook_tools/golden_set.lock.txt (H.7 P3, axe A #4208)

@github-actions

Copy link
Copy Markdown
Contributor

Notebook PR Validation: PASS

  • Notebooks checked: 3
  • Code cells validated: 26
  • Result: All passed

Checks: H.1 (no errors), H.3 (execution_count), C.1 (no banned patterns)
Non-Python kernels (.NET/Lean): C.1 + errors only (execution_count advisory)
QuantConnect notebooks: C.1 + errors only (require QC Cloud for execution)

@jsboige jsboige left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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.

@jsboige
jsboige merged commit 7e678e6 into main Jul 18, 2026
26 checks passed
jsboige added a commit that referenced this pull request Jul 19, 2026
… 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>
jsboige added a commit that referenced this pull request Jul 19, 2026
… (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>
jsboige added a commit that referenced this pull request Jul 19, 2026
…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>
@jsboige
jsboige deleted the feature/residual-accents-2876-casestudies-iit branch September 2, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant