Repository navigation
enrich(probas,#8081): Infer-8 add Elo preamble (C# twin of PyMC-8 trigger) - #8355
Conversation
…MC-8 trigger) Infer-8-TrueSkill is the DIRECT C# twin of PyMC-8-TrueSkill, the notebook that triggered the #8081 fidelity audit. The same PERTE PAR COMPLAISANCE the user flagged on PyMC-8 applies here: TrueSkill "est une généralisation bayésienne du système Elo" (cell 6) and Elo appears as a 6-row comparison foil (cell 7) — but Elo is NEVER derived, implemented, or executed. The student sees "Elo = score unique 1800" in a table without ever learning HOW Elo works, which is precisely the deterministic baseline that makes TrueSkill's Bayesian generalization meaningful. Backfill (mirrors the PyMC-8 trigger commit 29b7b22, adapted to C#/Infer-8): - markdown intro: expected-score formula E = 1/(1+10^((Rb-Ra)/400)) + K-update, positioned as the deterministic predecessor TrueSkill generalizes - code cell (from-scratch pure-C# Elo, K=32, scale 400): single match (R1 1500->1516) then 5 consecutive wins showing shrinking increments (16,0 -> 14,5 -> 13,2 -> 12,1 -> 11,0) — numbers byte-identical to the Python twin (IEEE-754 double, deterministic pure math) - markdown interp: honest nuance — shrinking increments are a MECHANICAL proxy of confidence (expected score rises, so (S-E) shrinks), NOT modeled uncertainty like sigma. Points back to the existing cell-7 comparison table (no redundant re-tabulation). C.2 PROVED: code cell executed via the .net-csharp kernel (dotnet-interactive 1.0.712001), committed WITH real outputs (ec=1, 17 stream outputs). Re-exec- stable (deterministic pure-math, no MCMC drift). FR-locale comma decimals ("1500,0", "0,500", "+16,0") are CONSISTENT with Infer-8's existing convention (cell 12/19/30 posteriors all use comma decimals) — not forced to dots. No banner leak (output scanned for Microsoft.Hosting/IPv6 tokens: clean). Byte-stable: +202/0 (pure addition, 0 existing cells modified, anti-regression). nbformat.validate OK. H.3 PASS (20 cells). C.1: 0 violations. No catalogue / README / marker churn (catalog-pr-hygiene HARD 1 respected). See #8081 (audit issue). Mirrors PyMC-8 trigger commit 29b7b22. 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] Verified — Elo preamble is mathematically correct and pedagogically sound
I reproduced the Elo increments from the C# code (K=32, R1=R2=1500, 5 consecutive wins): 16.0 → 14.5 → 13.2 → 12.1 → 11.0 — exact match to the cell outputs. The decreasing increments correctly illustrate that
The transition to TrueSkill (modelling
…clear fleet-red gate) (#8372) The Twin parity audit gate (#8185 = BLOCKING) was fleet-RED on every open PR because 15 registered twin pairs drifted on origin/main: merged PRs that modify a registered twin notebook (citations, Prong-B enrichment, determinism seed, metadata.cost rollout, nbformat cell-id fix) did not rebaseline their last_audit.{python,csharp}_sha, so the recorded SHA lagged the merged blob. G.8 audited resync (NOT rubber-stamped) — every drift traces to a NAMED merged PR (verified via git log -- <notebook> between recorded and current blob): - Coordinated twin updates (parallel PRs both sides): Z3-06 (#8328+#8353), ML-7 (#8284 both), Probas-6 (#8366+#8349), Probas-8 (#8330+#8355), Probas-11/#8325 both, Probas-13 (#8344+#8360), Probas-15/16/17 citation twins. - Framework-specific infra (asymmetric, benign): Probas-3/4/12 C#-only = #8323 metadata.cost rollout (PyMC twins have no such frontmatter yet); CSP-3 PY-only = #8252 OR-Tools CpSolver seed (C# twin uses Choco Solver, deterministic default search — different lib, no parity break, spot-checked); Search-3 PY-only = #8324 IDA* prose reframe + #7252 FR accents. Independently re-confirms the G.1 firsthand claim (jsboige c.03:58, po-2023 c.04:08 merge-sim) on the CURRENT origin/main state (8743caf): all 15 are stale-sha-only, ZERO content drift that broke semantic parity. Surgical method (NOT check_twin_parity.py --update): --update yaml.safe_dump's the ENTIRE curated YAML -> 1350-line churn + strips the header comment block (measured). Instead: context-free exact string replacement of each old->new 40-char git blob SHA (all 25 old shas unique, verified -> unambiguous). Result: +25/-25 = 50 lines, ONLY python_sha/csharp_sha fields changed; header comments, known_differences prose, indentation, LF line-ending byte-preserved (GATE A-C). Proof: check_twin_parity.py --check -> OK=39 DRIFT=0 exit 0 (CI-green). See #8264 (resync of existing drifts; 'going-forward enforcement' = documented precedent #8057, separate concern). See #8057, #8185. Co-authored-by: Claude <noreply@anthropic.com>
… Twin gate Manual rebaseline per ai-01 steer (DM msg-20260725T202555): the Twin parity gate on #8548 flagged because #8548 (Infer-8 markdown fidelity: Minka/2007 + MBML Ch.3 lineage cell) + #8534 (dynamic-skill nuance §3.5) both moved the Infer-8 blob. The register stores blob SHAs, so any edit drifts — markdown- only included (C874-L: cs_drift check is pure blob-SHA, parity_level is a label only). Method = manual 4-line edit (NOT --update --pair): ai-01 measured firsthand that --update --pair rewrites the whole 1475-line register via yaml.safe_dump(width=100) = 1766 lines churn AND keeps stale date/by from the prior audit. Manual edit = honest minimal diff. Model: #8566 (3-line register diff, merged today). Probas-8 TrueSkill entry only: - csharp_sha: 6036be3 -> edf5441 (final Infer-8 blob, post-merge) - by: po-2023 -> po-2024 (this rebaseline); date '2026-07-25' - +1 known_differences line (documents #8548 scope + semantic-parity rationale) - python_sha UNCHANGED: 4936068 still valid (PyMC twin untouched by #8548; already rebaselined post-#8534 on main) Sequence (ai-01 prescribed): merge origin/main FIRST (recovers #8534's Infer-8 changes + #8379 metadata.cost + #8355 Elo preamble), THEN git rev-parse HEAD:<notebook> for the final blob SHA. Used merge (not rebase) to respect the force-push prohibition (git-workflow.md); the final blob SHA is identical either way. Verification (firsthand): - check_twin_parity.py -> 116 pairs, OK=116 DRIFT=0 MISSING=0 - yaml.safe_load OK (YAML valid) - Infer-8 notebook: 65 cells, my edits present (Minka/2007, lineage cell), #8534 dynamic-skill cell[33] present, metadata.cost present, valid JSON. See #8057 (twin register). Resolves the Twin parity gate on #8548. Co-Authored-By: Claude-Code <noreply@anthropic.com>
Summary
PERTE PAR COMPLAISANCE backfill on
Infer-8-TrueSkill— the DIRECT C# twin ofPyMC-8-TrueSkill, the notebook that triggered the #8081 fidelity audit. The same gap the user flagged on PyMC-8 applies here unchanged.The gap (firsthand, same class as the PyMC-8 trigger)
Infer-8 says TrueSkill "est une généralisation bayésienne du système Elo" (cell 6) and shows a 6-row comparison foil "TrueSkill vs Elo" (cell 7: Représentation, Incertitude, Convergence, Matchs nuls, Équipes, Multi-joueurs) — but Elo is never derived, implemented, or executed. Of 19 code cells, zero compute Elo. The student sees "Elo = score unique (ex: 1800)" in a table without ever learning HOW Elo works — precisely the deterministic baseline that makes TrueSkill's Bayesian generalization meaningful. This is the exact "perte par complaisance" the user raised in #8081.
Fix (mirrors PyMC-8 trigger commit
29b7b226d, adapted to C# / Infer-8)3 cells inserted after the cell-7 comparison table (pure addition):
E = 1/(1+10^((Rb-Ra)/400))+ K-update, positioned as the deterministic predecessor TrueSkill generalizes.Validation (C.2 PROVED)
.net-csharpkernel (dotnet-interactive 1.0.712001). Code cell committed WITH real outputs (ec=1, 17 stream outputs). Re-exec-stable (deterministic pure-math, no MCMC drift — unlike Infer.NET EP cells).Microsoft.Hosting/Lifetime/IPv6/http://tokens: clean (my code uses onlyConsole.WriteLine, no.Display(), no Infer.NET).nbformat.validateOK. H.3 PASS (20 cells). C.1: 0 violations. No catalogue / README / marker churn (catalog-pr-hygiene HARD 1 respected).Cross-paradigm note (#8081 registry)
This is the 2nd PERTE PAR COMPLAISANCE found in the TrueSkill pair (PyMC-8 trigger + now Infer-8 twin) — but the cross-paradigm finding holds: across 13 audited Probas notebooks, PERTE remains isolated (2/13), the rest FIDÈLE. The TrueSkill pair is the clearest case of the pattern (Elo-as-foil) because both twins distilled from the same MBML Ch.2 / Infer.NET TrueSkill source.
See #8081 (audit issue). Mirrors PyMC-8 trigger commit
29b7b226d.Co-Authored-By: Claude-Code noreply@anthropic.com