Skip to content

chore(translation,#4957): resync genai-texte CSV drift (8 SRC_DRIFT -> 0) - #7204

Merged
jsboige merged 1 commit into
mainfrom
chore/c595-genai-texte-csv-resync-4957
Jul 18, 2026
Merged

jsboige merged 1 commit into
mainfrom
chore/c595-genai-texte-csv-resync-4957

Conversation

@jsboige

@jsboige jsboige commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Contexte

translations/genai/texte.csv : 8 SRC_DRIFT sur GenAI/Texte/5_RAG_Modern.ipynb. Infra traduction Epic #4957, resync pivot cols via extract_cells_to_csv.py --update. Famille FRAÎCHE po-2025 (GenAI/Texte — première traduction GenAI sur cette lane).

Cause du drift (timing vérifié STABLE)

Drift vient de la PR accents MERGED 124090f3e (#7153 "fix(genai,#2876): restore FR accents in 5_RAG_Modern markdown"). PAS de PR OPEN touchant 5_RAG_Modern (G.1 verify : gh pr list --search "5_RAG_Modern" = 0). Resync stable, pas de re-drift au merge (leçon c.591 : drift MERGED = stable, drift OPEN = re-drift).

Livrable

8 lignes rafraîchies (pivot cols : src_hash/text_fr/hash_fr), 56 déjà in-sync, 654 lignes d'autres notebooks préservées byte-identique. Diff +32/-32 (multiline CSV fields — accents restaurés : generation → génération, plutot → plutôt, requete → requête, caracteres → caractères, précèdent/consécutifs/résultat).

Preuves

Preuve Résultat
Drift pré-resync 8 anomalies (5_RAG_Modern ×8)
Drift post-resync 0 (check_translation_sync --check = OK)
Parité rows 718 = 718 (DictReader)
OTHER rows byte-identity (654 rows) sha1 d40e7d3b6f3b302656d8dd67fd9bf31e2bbc0b2f = unchanged
Translation cols identity (TARGET 64 rows, 14 cols) pre_dol == post_dol (single-process, cell_id-keyed 0 diff)
Pivot cols changed (src_hash+hash_fr) 8 = exactement les 8 SRC_DRIFT cells
CRLF dans le diff 0 (LF préservé, 17548 LF)
R3 collision gh pr list --search "5_RAG_Modern" = 0 OPEN (évite #7097 image, #7103+#7154 smt, #7104 search-part4)

Méthode

python scripts/translation/extract_cells_to_csv.py \
  MyIA.AI.Notebooks/GenAI/Texte/5_RAG_Modern.ipynb \
  --update translations/genai/texte.csv \
  -o translations/genai/texte.csv
# -> 8 ligne(s) rafraîchie(s), 56 déjà in-sync, 0 ajoutée(s), 654 préservées

G.1 — false-alarm resolved (single-process verification)

Premier snapshot translation-cols (dict-of-list format, inline blocks dans 2 processus Python distincts) semblait montrer mismatch (MATCH TRANSL: False). Root cause : snapshot cross-process transitoire. Re-vérification authoritative (C610-L1 ★ raffiné) : single-process lisant git show HEAD vs worktree, cell_id-keyed per-cell tuple comparison = 0 translation-col diff, 8 pivot changes. Leçon L793-L1 : byte-identity verification MUST être single-process + cell_id-keyed, PAS cross-inline-blocks (transient false-alarm → HOLD inutile).

Anti-régression §D

0 notebook source modifié. 0 cellule output touchée. Resync CSV pivot cols uniquement (mécanique de tracking traduction). Translation cols preserved verbatim — preuve single-process DictReader diff = 0 sur les 14 colonnes traduction.

See #4957 (infra traduction CSV, Epic #1650). See #7153 (PR accents merged ayant créé le drift stable).

…> 0)

translations/genai/texte.csv : 8 SRC_DRIFT sur GenAI/Texte/5_RAG_Modern.ipynb.
Infra traduction Epic #4957, resync pivot cols via extract_cells_to_csv.py --update.

## Cause du drift (timing verifie STABLE)

Drift vient de la PR accents **MERGED** #7153 (commit 124090f
"fix(genai,#2876): restore FR accents in 5_RAG_Modern markdown"). PAS de PR
OPEN touchant 5_RAG_Modern (G.1 verify : gh pr list --search "5_RAG_Modern"
count = 0). Resync stable, pas de re-drift au merge (lecon c.591 : drift
MERGED = stable, drift OPEN = re-drift).

## Livrable

8 lignes rafraichies (pivot cols : src_hash/text_fr/hash_fr), 56 deja
in-sync, 654 lignes d'autres notebooks preservees. Diff +32/-32 (multiline
CSV fields, accents restaurés : generation -> génération, plutot -> plutôt,
requete -> requête, etc.).

## Preuves

| Preuve | Resultat |
|--------|----------|
| Drift pre-resync | 8 anomalies (5_RAG_Modern x8) |
| Drift post-resync | 0 (check_translation_sync --check = OK) |
| Parity rows | 718 = 718 (DictReader) |
| OTHER rows byte-identity (654 rows) | sha1 d40e7d3b6f3b302656d8dd67fd9bf31e2bbc0b2f = unchanged |
| Translation cols identity (TARGET 64 rows, 14 cols) | pre_dol == post_dol (single-process, cell_id-keyed 0 diff) |
| Pivot cols changed (src_hash+hash_fr) | 8 = exactement les 8 SRC_DRIFT cells |
| CRLF dans le diff | 0 (LF preserve, 17548 LF) |
| R3 collision | gh pr list --search "5_RAG_Modern" = 0 OPEN (evite #7097 image, #7103+#7154 smt, #7104 search-part4) |

## Methode

python scripts/translation/extract_cells_to_csv.py \
  MyIA.AI.Notebooks/GenAI/Texte/5_RAG_Modern.ipynb \
  --update translations/genai/texte.csv \
  -o translations/genai/texte.csv
# -> 8 ligne(s) rafraichie(s), 56 deja in-sync, 0 ajoutee(s), 654 preservees

## G.1 -- false-alarm resolved (single-process verification)

Premier snapshot translation-cols (dict-of-list format, inline blocks dans 2
processus Python distincts) semblait montrer mismatch (MATCH TRANSL: False).
Re-verification authoritative (C610-L1 ★ raffine) : single-process lisant
git-show-HEAD vs worktree, cell_id-keyed per-cell tuple comparison =
0 translation-col diff, 8 pivot changes. Lecon L793-L1 : byte-identity
verification MUST etre single-process + cell_id-keyed, PAS cross-inline-blocks
(transient false-alarm).

## Anti-regression section D

0 notebook source modifie. 0 cellule output touchee. Resync CSV pivot cols
uniquement (mecanique de tracking traduction). Translation cols preserved
verbatim (preuve single-process DictReader diff = 0 sur les 14 colonnes).

See #4957 (infra traduction CSV, Epic #1650). See #7153 (PR accents merged
ayant cree le drift stable).
@jsboige
jsboige merged commit 2f12b0d into main Jul 18, 2026
10 checks passed
@jsboige
jsboige deleted the chore/c595-genai-texte-csv-resync-4957 branch September 2, 2026 13:09
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