Skip to content

docs(probas,#8081): restore MBML Ch.7 founding context (Haiti 2010 / Ushahidi) to Crowdsourcing twins - #8288

Merged
jsboige merged 1 commit into
mainfrom
feature/probas-crowdsourcing-founding-context-8081
Jul 24, 2026
Merged

jsboige merged 1 commit into
mainfrom
feature/probas-crowdsourcing-founding-context-8081

Conversation

@jsboige

@jsboige jsboige commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Contexte — #8081 finding A4a (audit fidélité distillation, axe contenu)

Infer-13-Crowdsourcing (C# .NET) et PyMC-13-Crowdsourcing (Python) introduisaient le crowdsourcing par un cadrage générique (« annoter des images / items ») et enchaînaient directement sur la formalisation mathématique — en omettant silencieusement la motivation fondatrice (cartographie de crise) dont s'ouvre la source canonique dont ils sont distillés.

Vérifié firsthand (G.1, 2026-07-24) contre la source canonique :

  • MBML Ch.7 « Harnessing the Crowd » (mbmlbook.com/CrowdSourcing.html, Winn & Bishop) s'ouvre sur : « In 2010 a magnitude 7.0 earthquake struck Haiti… »
  • Ushahidi (« témoignage » en swahili) : créée en 2008 lors des violences post-électorales au Kenya pour cartographier les témoignages ; déployée lors du séisme en Haïti ; utilisée par l'armée, l'ONU et les ONG.
  • Le problème modélisé par les notebooks (inférer le vrai label latent à partir d'annotations contradictoires et bruitées de travailleurs de fiabilité inégale) est exactement le problème d'inférence de la situation réelle sur le terrain posé par Haïti/Ushahidi.

Omission = PERTE PAR COMPLAISANCE (la distillation a droppé l'histoire motivante réelle). Finding A4a de l'audit #8081.

Fix — restaurer le contexte fondateur dans les DEUX jumeaux

On préfixe l'histoire vérifiée (Haïti 2010 + Ushahidi, ancrée MBML Ch.7) au premier paragraphe ### Contexte existant, dans les deux jumeaux (histoire identique → parité sémantique préservée). Le paragraphe générique original est conservé verbatim juste après, pontué par « Le même principe s'applique à des tâches plus routinières. »

Markdown-only (exception C.2) : aucune cellule code touchée, aucun execution_count/output modifié, pas de re-exec. Byte-surgical : raw str.replace sur le single élément de chaîne source JSON par notebook (json.dumps ensure_ascii=False pour préserver les accents comme le fichier), pas de round-trip json. 1 ins / 1 del par notebook, toutes les autres cellules byte-identiques (Infer-13 50 cells, PyMC-13 43 cells inchangés).

Twin-parity rebaseline (même PR, registre #8057)

L'édition des deux blobs change les deux shas → last_audit.python_sha (2f27544c→dd2ad73e) et csharp_sha (dab2a015→21a8d2a1) rebaselined dans twin_pairs.yaml, date/by → po-2026, +1 ligne known_differences documentant le backfill. check_twin_parity Probas-13 [OK] post-commit.

Preuves vérifiables

  • G.1 firsthand : source MBML Ch.7 lue directement (WebFetch + SearXNG convergence) ; faits vérifiés (Haiti 2010 mag 7.0, Ushahidi Swahili « testimony », 2008 Kenya, déployée Haïti, armée/ONU/ONG, inférer vérité terrain depuis rapports contradictoires). Pas de détail fabriqué.
  • Diff chirurgical : git diff = exactement 1 élément source-string changé par notebook (visible dans le diff : l'ancienne ligne → nouvelle ligne plus longue), le reste byte-identique.
  • H.3 PASS : validate_pr_notebooks.py 2/2 (Infer-13 + PyMC-13).
  • detect_solution_leaks : 0 HIGH / 0 MEDIUM / 0 errors (les deux).
  • Catalogue byte-identique à origin/main (0 fichier catalogue touché).
  • check_twin_parity : Probas-13 Crowdsourcing: [OK] post-commit.
  • Branche fraîche : 1 ahead / 0 behind origin/main (base 9068f074f).

Scope — partial (A4a uniquement)

Finding A4 partie (a) = contexte fondateur de cartographie de crise (borné, vérifiable, valeur pédagogique haute). Partie (b) = application réelle sur dataset de tweets (MBML Ch.7 sec « Making use of the tweets »), grain plus lourd (données + re-exec) → résiduel, cycle ultérieur. See #8081 (contribution partielle à l'epic, ne clôt pas).

Nature du grain

Distillation-fidelity content-backfill (axe substance #3801, ≠ claims↔outputs #8052 drainé, ≠ citations axis-1 mécanique). Famille Probas/Infer.NET-PyMC — c'est l'epic de fidélité de ma lane (po-2026 = Probas/Infer). Genre frais après 2 cycles claims↔outputs (GenAI/Audio, Probas/PyMC DecPyMC, SMT/Z3-API). R6 rotation genre ✓.

See #8081 (distillation-fidelity audit, finding A4a — partial). See #3801 (Prong-B substance axis).


Livré par po-2026 (worker cron). Genre distillation-fidelity après drainage claims↔outputs #8052 (convergence fleet-wide).

…Ushahidi) to Crowdsourcing twins

Infer-13-Crowdsourcing (C# .NET) and PyMC-13-Crowdsourcing (Python) both introduced
the crowdsourcing problem with a GENERIC framing ("annoter des images / items") and
jumped straight to the math formalization -- silently omitting the founding
crisis-mapping motivation that the source they are distilled from opens with.

Verified firsthand (G.1, 2026-07-24) against the canonical source:
  - MBML Ch.7 "Harnessing the Crowd" (mbmlbook.com/CrowdSourcing.html, Winn & Bishop)
    opens with: "In 2010 a magnitude 7.0 earthquake struck Haiti..."
  - Ushahidi (Swahili for "testimony"): created 2008 during the Kenyan post-election
    violence to map eyewitness reports; deployed during the Haiti quake; used by
    military, UN and NGOs.
  - The problem the notebooks model (infer the true latent label from conflicting/noisy
    annotations by workers of unequal reliability) is EXACTLY the Haiti/Ushahidi
    truth-on-the-ground inference problem.
So omitting it was a PERTE PAR COMPLAISANCE (distillation dropped the motivating
real-world story) -- finding A4a of the #8081 distillation-fidelity audit.

Fix: prepend the verified founding story to the existing "### Contexte" first
paragraph in BOTH twins (identical story -> twin parity preserved). The original
generic paragraph is kept verbatim right after, bridged by "Le meme principe
s'applique a des taches plus routinieres."

Markdown-only (exception C.2): no code cell touched, no execution_count/output
changed, no re-exec needed. Byte-surgical: raw str.replace on the single JSON
source-string element per notebook (json.dumps ensure_ascii=False to preserve
accents matching the file style), no json round-trip. 1 ins / 1 del per notebook,
all other cells byte-identical (Infer-13 50 cells, PyMC-13 43 cells unchanged).

Twin-parity rebaseline (same PR, registry #8057): editing both blobs changes both
shas, so last_audit.python_sha (2f27544 -> dd2ad73) and csharp_sha
(dab2a01 -> 21a8d2a) are rebaselined in twin_pairs.yaml, date/by -> po-2026,
+1 known_differences bullet documenting the backfill. check_twin_parity
Probas-13 [OK] post-commit.

Scope: finding A4 PART (a) only -- the founding crisis-mapping context. Part (b)
(a real-tweets dataset application, MBML Ch.7 sec "Making use of the tweets") is a
separate heavier grain (needs data + re-exec), flagged residual for a later cycle.

Validations: H.3 validate_pr_notebooks 2/2 PASS; detect_solution_leaks 0/0/0 both;
catalog byte-identical to main; check_twin_parity Probas-13 [OK] post-commit;
1 ahead / 0 behind origin/main.

See #8081 (distillation-fidelity audit, finding A4a -- partial: context backfill).
See #3801 (Prong-B substance axis -- content loss by complacency).

Co-Authored-By: Claude-Code <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Notebook PR Validation: PASS

  • Notebooks checked: 2
  • Code cells validated: 30
  • 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)

@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.0s
2.2-Descente-de-gradient.ipynb ✅ SUCCESS 4.9s
2.3-Regression-lineaire-logistique.ipynb ✅ SUCCESS 4.4s
2.4-Arbres-Forets-Ensembles.ipynb ✅ SUCCESS 5.5s
Search-1-StateSpace.ipynb ✅ SUCCESS 4.5s
SL-1-LogicalLearning.ipynb ✅ SUCCESS 3.3s
rl_4_multi_armed_bandits.ipynb ✅ SUCCESS 27.7s
GameTheory-4c-NashExistence-Python.ipynb ✅ SUCCESS 4.2s

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

@jsboige
jsboige merged commit 917156f into main Jul 24, 2026
28 of 29 checks passed
@jsboige
jsboige deleted the feature/probas-crowdsourcing-founding-context-8081 branch September 2, 2026 13:15
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