Skip to content

docs(quality): multilingual drift audit 2026-07 — real content clean (0 write prod) - #795

Merged
jsboige merged 1 commit into
masterfrom
feat/multilingual-drift-audit
Jul 12, 2026
Merged

jsboige merged 1 commit into
masterfrom
feat/multilingual-drift-audit

Conversation

@jsboige

@jsboige jsboige commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Multilingual drift audit 2026-07 — real content is clean (0 write prod)

Worker po-2024 · Base master 84a529bf · GO ai-01 dispatch 525scp (PRIMAIRE). Read-only audit, gated review ai-01.

🎯 Problème

Le dispatch 525scp demandait un audit de drift multilingue sur les 4 CSV Cards (Fallacies / Virtues / Scenarii / Rules), toutes les colonnes de langue *_en/_ru/_pt/_es/_ar/_fa/_zh vs FR + cohérence interne — en appliquant la leçon zh #761 (un drift non-latin passe inaperçu si on n'audite que FR/EN). Livrable : rapport gated, 0 write prod.

✅ Verdict : REAL TRANSLATABLE CONTENT IS CLEAN

Les champs prose haute-valeur (Fallacies desc/example, Virtues description/remark, Scenarii context/issue/suggestion, Rules Text) sont 100 % remplis, 0 FR-contamination, 0 wrong-script sur les 7 langues. Aucune régression introduite par le travail AIF/OWL récent (#498, #787, #790).

Dataset Rows Real-prose drift Prose coverage Link URL gap (#192)
Rules 15 0 15/15 n/a
Virtues 223 0 223/223 ar/fa/zh 41-48 %
Fallacies 1408 0 1408/1408 ru/ar/fa/zh ~8 %
Scenarii 167 ~67 (proper nouns) 167/167 n/a

Ce qui ressemble à du drift mais n'en est PAS (séparé honnêtement)

  • Cognate overlap (champ name) : Loki, Lord Voldemort, Ipse Dixit, DARVO, Gish Gallop — noms propres latins/franchise légitimes qui se répètent. Informationnel, pas du drift.
  • link_* coverage : résidu feat(translations): multi-pass quality improvement for EN/RU/PT (beyond initial translation) #192 connu (traduction des URLs = recherche humaine, hors scope gpt-5.5).
  • Scenarii ~67 "FR_contam" sur smoothTalker/drawer : 100 % sont des noms de personnages propres (Loki, Obélix, Jeanne d'Arc, Don Juan, Hades, Thor) — correctement identiques.

Limitations honnêtes (documentées, pas patchées)

Méthode

Script réutilisable idempotent tools/multilingual-drift-audit.py :

  • classifie les champs en prose / name / label / url → évite les faux positifs (URL %-encodées, cognates, labels taxonomiques) ;
  • détecte MISSING / ORPHAN (coverage), FR_CONTAM + WRONG_SCRIPT (drift réel), COGNATE (info) ;
  • --json (détail complet), --report <path> (markdown).

Fichiers

  • tools/multilingual-drift-audit.py — script réutilisable (454 lignes).
  • docs/quality/multilingual-drift-audit-2026-07.md — rapport gated (570 lignes).

Gate boundaries

  • ✅ 0 write prod CSV (git diff 84a529bf -- Cards/ vide, vérifié).
  • ✅ Anti-greenwashing : verdict "clean" backed par comptes zéro par champ × langue, pas asserté.
  • ✅ Secret-scan : 0 hit.
  • ✅ Script validé --json (4 datasets, JSON well-formed).
  • ❌ Pas de self-merge — verdict QA = ai-01.
  • ❌ Aucune correction CSV warrantée (contenu propre) ; seul item i18n restant (link_*) = déjà feat(translations): multi-pass quality improvement for EN/RU/PT (beyond initial translation) #192.

🤖 Worker po-2024 — audit drift multilingue 2026-07 livré (0 write, real content clean).

…(0 write prod)

Read-only audit of the 4 Cards CSVs (Fallacies 1408 / Virtues 223 / Scenarii 167 /
Rules 15) across all 7 non-FR language columns (_en/_ru/_pt/_es/_ar/_fa/_zh) vs the
FR reference + internal script consistency. Dispatch ai-01 525scp (PRIMAIRE).

Verdict: REAL TRANSLATABLE CONTENT IS CLEAN. The high-value prose fields — Fallacies
desc/example, Virtues description/remark, Scenarii context/issue/suggestion, Rules
Text — are 100% filled, 0 FR-contamination, 0 wrong-script across every language.
No regression introduced by the recent AIF/OWL work (#498, #787, #790).

The only drift-shaped signals are NOT drift:
  - proper-noun / Latin-name cognate overlap that legitimately repeats across langs
    (Loki, Lord Voldemort, Ipse Dixit, DARVO, Gish Gallop) — informational, on the
    NAME field, separated from prose drift in the report;
  - link_* URL coverage (Fallacies ru/ar/fa/zh ~8% filled, Virtues ar/fa/zh ~45%) —
    the standing #192 residual: link translation is human research, out of gpt-5.5.

Prose MISSING (real content translation gaps) = 0 across every prose field x language.

Honest limitations documented: zh #761 within-language semantic drift (备用卡 vs 备忘卡,
both valid CJK) is NOT machine-detectable; paraphrased/partial FR_contam needs semantic
comparison; URL translation is human research. All flagged as residuals, not patched.

Adds a reusable idempotent script tools/multilingual-drift-audit.py (--json for full
detail, --report <path> to emit the markdown) for re-run after future translation
tranches. Classifies fields as prose/name/label/url so cognate overlap on names and
percent-encoded URLs do not false-positive as drift.

Gate: 0 write prod CSV (Cards/ untouched, git diff verified), secret-scan 0 hit.
Verdict QA = ai-01.

Co-authored-by: Claude-Code <noreply@anthropic.com>
@jsboige
jsboige merged commit 5327508 into master Jul 12, 2026
3 checks passed
@jsboige
jsboige deleted the feat/multilingual-drift-audit branch July 12, 2026 19:00
jsboige added a commit that referenced this pull request Jul 12, 2026
…trip #133 cleared) (#797)

The consolidated v0.9.0 release-notes draft still carried a stale test count
(~566 pass / 5 skip / 1 known-fail #133) from a pre-#793 dashboard baseline,
plus a now-false "drops rdf:type/inScheme" round-trip narrative. Flagged by
po-2023 while aligning the release dossier to 596/0 (#796, lane discipline:
flagged without editing po-2024's file).

Refreshed to the empirically-confirmed state on master ebfd85d (4 lines, EN+FR):
  - Test suite: 566/1-known-fail -> 596 pass / 0 fail / 5 skip (601 total).
    Removed the "will be confirmed empirically at tag" / "confirmé empiriquement
    au tag" caveat — it is confirmed now (master ebfd85d, #793 merged).
  - OWL round-trip (#133) narrative: inScheme was listed as dropped, but #793
    proved it SURVIVES the round-trip (1408 assertions). Corrected to "rdf:type
    (only) dropped on reload; inScheme survives; residual asserted-as-expected
    and worked around by the survivor-fallback read path (test now green)".

Empirical basis: dotnet test on Argumentum.AssetConverter.Tests = 596/0/5
(verified this session; #793 cleared the last known-fail, subsequent PRs
#795/#796 are docs-only, 0 test impact).

Docs-only, po-2024 lane (release-notes). 0 write prod CSV, Cards/ untouched.
Secret-scan 0 hit. Verdict QA = ai-01.

Co-authored-by: Your <your.email@example.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 13, 2026
…s, 0 write) (#799)

Scoping doc isolating the residual i18n URL gap (the only material i18n residual
— prose is 100% clean per #795). Dispatch ai-01 9zs45o (PRIMAIRE, ungated).

Categorizes every link_* cell across Fallacies + Virtues (Scenarii/Rules have no
link_* column) into NATIVE_URL / OTHER_URL / FR_URL / EMPTY, per language:

  TRUE i18n URL GAP = 3822 cells (15 FR_URL + 3807 EMPTY)
    - Fallacies: 3320 gap (en 3.8% ... zh 88.1% of FR-link-filled rows)
    - Virtues:   502 gap  (en 12.0% ... ar 57.4%)
  FR_URL (FR URL copied, not localized) is near-zero on Fallacies (0) — the existing
  discipline is "leave empty if no native URL". A few FR_URL remain on Virtues (15).

Key finding for the treatment recommendation: the gap is NOT a gpt-5.5 text-
translation task — it is cross-language article resolution (find the equivalent
native Wikipedia article). The FR source links split:
  - Fallacies: 562/637 (88%) Wikipedia/Wiktionary (automatable via langlinks API)
                75/637 (11%) non-Wiki FR sources (cortecs/service-public/persee/...
                — no auto-path, manual/drop only)
  - Virtues:   161/216 (74%) Wikipedia, 55/216 (25%) non-Wiki.

Recommendation: Option A (defer to v1.0) for v0.9.0 — gap is pre-existing, documented,
does not block release (prose clean, URLs secondary). Post-tag, Option C (Wikipedia
langlinks API auto-resolve) has best ROI: programmatic, API-confirmed = zero
hallucination, covers the Wikipedia subset; non-Wiki subset → Option D (clear cell).

Matches standing memory i18n-coverage-gap-is-link-urls (link translation = human
research, out of gpt-5.5 scope; #795 confirmed it is the only residual).

Adds reusable idempotent script tools/192-link-i18n-scoping.py (--json / --report).

Gate: 0 write prod CSV (Cards/ untouched, git diff verified), secret-scan 0 hit,
bounded + pre-tag-safe (scoping doc only, no treatment executed). Verdict QA = ai-01.

Co-authored-by: Your <your.email@example.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 15, 2026
…, 0 CSV write (#809)

Structures the post-v0.9.0 EN translation campaign as a plan doc (DoD:
docs-only, no CSV writes). The campaign itself stays deferred post-release
(arbitrage jsboige).

Empirical inventory computed live from the prod CSVs at master cf8cb0d:
- Fallacies Simple_name_en: 61/1408 filled (1347 empty, 96% margin)
- Fallacies political_example_en: 35/1408 filled (1373 empty, 98% margin)
- Both fields ARE used in active templates (Cards/Fallacies/Argumentum_Fallacies_Face_*.json,
  Cards/Memo/Argumentum_Memo_*.json — confirmed via grep) → real rendered-card impact.
- All other EN datasets at/near 100% (#795 proved core prose is clean).

The doc designs:
- gpt-5.5 prompt per field (/v1/responses, reasoning.effort=low, empty-only,
  cell-by-cell verified) reusing the existing DatasetUpdater scaffold
  ("Translate Fallacies to English empty-only 0-shot" task pattern).
- 5 gated tranches (T1/T2 Simple_name_en pilot+bulk, T3/T4 political_example_en
  pilot+bulk, T5 trivial Virtues hierarchy residual), ~2725 calls total.
- Post-tag execution order; explicit out-of-scope (no bulk re-translation,
  no link_* = #192, no #804 Phase 4 regen, #415 history-rewrite INTERDICTED).

Dispatch y20p0t [PRIMAIRE] #202-prep.

Co-authored-by: Your <your.email@example.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 15, 2026
…teria (docs-only) (#810)

Companion to 202-en-campaign-plan.md (#809). Defines the byte-exact
spot-check criteria ai-01 applies per pilot tranche before a bulk GO,
so campaign execution is turnkey once the register decision (A/B) lands.

6 checks per 20-cell pilot:
1. Empty-only invariant (byte-exact, HARD — 0 clobber)
2. Meaning fidelity vs text_fr/desc_fr (semantic, sample >=5)
3. Register/style (field-specific: Simple_name <=5 words; political_example
   neutral/non-defamatory, matches ratified A/B)
4. MT-garbage sweep (3-dim, per-token counts — memo false-zero)
5. Language purity (0 FR/RU leakage in new outputs)
6. Encoding/round-trip (CRLF+BOM, no quoting drift — memo byte-exact-insertion)

GO/REVISE/NO-GO thresholds; hard gates = clobber + encoding drift.
Post-bulk regression gate: re-run #795 drift audit + byte-check ALL lang
columns (zh #761 lesson) + rendered-source freshness (clobber harvests).

#202 execution stays deferred post-v0.9.0 (jsboige arbitration). Docs-only,
0 CSV write, 0 code change.

Dispatch mf4nyb [SECONDAIRE].

Co-authored-by: Your <your.email@example.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 16, 2026
…ates overridden at render (read-only) (#813)

Mapping 27 templates × 15 CardSets (WebBasedGeneratorConfig.cs L105-456) :
- 20 Face templates carry a stale `csv` embeddé (row delta +76 to +1239, col delta +13 to +68).
- 7 Back templates (DataSet=None) render truth = template, no audit needed.
- 0 MT-garbage residue (except Rules/RulesP&P = #803/#805 phantom-fix residue already mapped).

Risk = latent structural (CSV sources grew since template creation, AIF + i18n + crosslinks).
Risk rendu actuel = 0 (HarvestManager.cs:342 injects CSV source, overrides template `csv`).

Recommandation (post-tag) : marqueur `_csv_note` subtractif plutôt que resync
(diff large, risque drift). 1 ligne par template Face, ignorée par CardPen.

0 CSV write, 0 code change. Script `tools/812-template-stale-csv-audit.py` réutilisable.

Refs: #812, #803, #805, #795.

Co-authored-by: Your <your.email@example.com>
Co-authored-by: Claude <noreply@anthropic.com>
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