Skip to content

fix(probas,#6927): DecInfer-7 cell[32] Plotly-CDN 2-grouped-traces -> 2x SvgChartHelper.Bar - #6967

Merged
jsboige merged 1 commit into
mainfrom
feature/c543-decinfer7-svg-inline-6927
Jul 17, 2026
Merged

jsboige merged 1 commit into
mainfrom
feature/c543-decinfer7-svg-inline-6927

Conversation

@jsboige

@jsboige jsboige commented Jul 17, 2026

Copy link
Copy Markdown
Owner

fix(probas,#6927): DecInfer-7 cell[32] Plotly-CDN 2-grouped-traces → 2× SvgChartHelper.Bar

Contexte

EPIC #3801 (SOTA Prong A) — registre axe-2 « vrai outil SOTA, jamais workaround dégradé ».
Tracker #6927 — Plotly-CDN-blank sur les notebooks Probas/DecisionTheory/DecInfer : le <script src="https://cdn.plot.ly/..."></script> rend BLANC en consultation statique (GitHub sandbox les <script>).

Sub-division atomique de la grain c.542 (PR #6963 DecInfer-6) — 1 nb = 1 PR, partition-mienne Probas/.NET. Suite à mon engagement c.542 dans le DM ack à ai-01 (msg-20260717T034351-d7n8r1) : « DecInfer-7 (1 cell Plotly-CDN, 32) + DecInfer-8 (1 cell Plotly-CDN, 49) = subdivision restante. Si tu veux batcher le reste DecInfer-1..5+7+8 dans une seule mega-PR au lieu de 6 PRs atomiques, tranche ; sinon je subdivise en 6 PRs atomiques 1 nb = 1 PR au fil de l'eau (c.543+) ». Pas de directive contraignante reçue, donc self-serve sur PR atomique (proactive-coordination règle 5 : pool = gh issue list --state open global, self-pioche).

Modification (1 cellule ré-écrite dans DecInfer-7-Expert-Systems.ipynb)

Cellule Sujet Avant Après
32 (id=ff83d823) Diagnostic recommande + E[U(action)] PlotlyHtml 2 traces groupees (panne 4 cats + EU 4 actions) avec <script src="https://cdn.plot.ly/plotly-2.35.2.min.js">, per-bar color #4C72B0/#DD8452/#55A868/#C44E52 + best action highlight #2CA02C/#7F7F7F, annotation "Diagnostic recommande" 2× SvgChartHelper.Bar(...) : Bar 1 = posterior P(panne) 4 categories uniforme canon, Bar 2 = E[U(action)] 4 categories uniforme canon avec labels composes [BEST]/[--]

Choix d'architecture — pourquoi 2 Bar() et pas 1 Overlay() ?

SvgChartHelper.Overlay() (MERGED #6958 c.630) a ete considere en premiere intention. Rejete pour cette cellule car :

  • Contrainte API : Overlay exige un axe X numerique partage entre les series (double[] Xs, voir SvgChartHelper.cs lignes 88-93). Or les deux series de la cellule 32 ont des axes X categoriels distincts : panne ∈ {OK, RAM, Disque, CPU} vs action ∈ {Rien, Remplacer RAM, Remplacer Disque, Remplacer CPU}. Ces deux ensembles categoriels ne partagent pas d'axe commun.
  • Pattern canon : Bar() single-series + concatenation via labels composes (cf DecInfer-6 cell 45 c.542 PR fix(probas,#6927): DecInfer-6 cells 29/35/45/49 Plotly-CDN→SvgChartHelper inline #6963) reste la voie propre pour les comparaisons 2-en-1 a axes distincts.
  • Credit cross-lane : Overlay() (MERGED c.630 par po-2024) reste disponible et utilise ailleurs (cf DecInfer-6 cells 29/35 EVPI quand Overlay sera approprie pour des courbes VoI partagees). Pas de sous-utilisation : chaque primitive a son domaine de validite.

Canon respecté

  • Reuse SvgChartHelper.cs (feat(tools,#6927,#3801): SvgChartHelper.cs — zero-dep SVG-inline charts for .NET notebooks #6942 MERGED) via #load "../../Infer/SvgChartHelper.cs" — pas de helper inline duplicate (L623-L1 ★ : helper unique impose, anti-double-claim respecte).
  • MIME text/html C548-L2 (helper MERGED tel quel, MIME canon deja text/html ligne 65-66 : Formatter.Register(typeof(SvgChart), ..., "text/html")).
  • Modele = fix(app-7b,#3801): Plotly.js-CDN -> SVG inline (3 charts render on GitHub/nbviewer) #6954 (App-7b) MERGED po-2025 — pattern de migration PlotlyHtml → SvgChartHelper.cs canon, pas de helper alternatif, pas de fork.
  • Conservation integrale du modele Infer.NET : la cellule 32 contient le modele Bayésien multi-sources (panne, precisionLogs, avisUser, alerteRAM) + engineExpert declaration + inference. Ces variables sont reutilisees par la cellule 34 (engineExpert.ShowFactorGraph = true + FactorGraphHelper.GetLatestFactorGraphHtml(900)) — NE PAS toucher au modele, seulement la portion visualisation. Verification : grep -c engineExpert src = 3 (declaration, Algorithm=, Infer<>), grep -c panne src = 5+.

Limites assumées (helper canonique)

Le helper SvgChartHelper.Bar() expose une seule serie par appel, couleur uniforme (palette C548-L2). Pour préserver l'info pedagogique des 2 traces groupees Plotly originales :

  1. Couleurs per-bar panne (#4C72B0/#DD8452/#55A868/#C44E52 pour OK/RAM/Disque/CPU) → deplacees en legend Console avec mapping explicite par categorie (Console.WriteLine × 4).
  2. Couleurs per-bar EU (best #2CA02C, autres #7F7F7F) → preservees par label compose "<action> [BEST]" / "<action> [--]" + legend Console explicative.
  3. Annotation Plotly ("Diagnostic recommande : (E[U]=...)") → preservee en Console.WriteLine (sortie textuelle, pas deplacement dans le chart).

Les interpretations pedagogiques (systeme expert Bayesien multi-sources, posterior sur la panne, decision robuste, cout par action) sont preservees dans le commentaire Console de chaque bloc + la section "Decision robuste" en aval de la cellule 32 reste intacte.

Validation execution

Anti-patterns evites

  • Pas de helper inline concurrent : InferSvgHelper.cs (c.538 tentative REVIOLATION L623-L1 ★) reste pivote en R6 c.538. Seul SvgChartHelper.cs canon est utilise.
  • Pas de workaround degrade : le vrai outil SOTA (SvgChartHelper.cs canon + Bar() + Overlay()) est re-utilise tel quel, pas de stub.
  • Pas de Stop & Repair : aucune cellule n'a ete hand-editee pour maquiller un output ; le travail est rewrite_source + re-execute + apply execution_count clean.
  • Pas de regeneration catalogue : R1 catalog-pr-hygiene respecte (COURSE_CATALOG.generated.{json,md} byte-identique a main, aucune modif dans la PR).
  • C.3 scope strict : seul DecInfer-7-Expert-Systems.ipynb est modifie ; aucun autre notebook stage.

Pre-flight collision scan

References

🤖 Generated with Claude Code

Co-Authored-By: Claude-Code noreply@anthropic.com

… 2x SvgChartHelper.Bar

EPIC #3801 (SOTA Prong A) — pivot #6927 Plotly-CDN blank sur DecInfer.
Sub-division atomique de la grain c.542 (PR #6963 DecInfer-6) — 1 nb = 1 PR,
partition-mienne Probas/.NET.

Modification : cellule 32 (id=ff83d823) du notebook DecInfer-7-Expert-Systems.
Avant : 2 traces Plotly.js groupees (panne + EU) avec <script src=cdn.plot.ly>,
per-bar color #4C72B0/#DD8452/#55A868/#C44E52 (panne) + best action highlight
#2CA02C/#7F7F7F (EU), annotation "Diagnostic recommande".
Apres : 2x SvgChartHelper.Bar() distincts (axes categoriels distincts =>
Overlay() N/A, Bar() canon). Conservation integrale du modele Infer.NET
(engineExpert + panne + precisionLogs + avisUser + alerteRAM + observations)
=> cellule 34 (ShowFactorGraph) intacte.

Verdict SOTA : RECOVERABLE-LOCAL (le helper canon SvgChartHelper.cs #6942
est local et reutilisable tel quel, zero dep NuGet).

Gates passes :
- Detector plotly clean pour DecInfer-7
- Detector decimal-commas (#6959 MERGED) = 0 defects
- Validator notebook .net-csharp = 14/14 PASS
- Strip probe banner = 9 fixes
- Strip machine paths = 0 leaks
- Execution reelle via nbclient kernel .net-csharp cwd=Probas/Infer/
  (cell 32 exec=11, outputs=26 ; 14/14 code cells executed, 0 errored)

Refs : #6927, #3801, #6942, #6958, #6959, #6954, L623-L1, L539-L1,
L542b-L1, pr-review-discipline §D advisory #5214.

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

Copy link
Copy Markdown
Contributor

Notebook PR Validation: PASS

  • Notebooks checked: 1
  • Code cells validated: 14
  • 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.1s
2.2-Descente-de-gradient.ipynb ✅ SUCCESS 3.9s
2.3-Regression-lineaire-logistique.ipynb ✅ SUCCESS 3.5s
2.4-Arbres-Forets-Ensembles.ipynb ✅ SUCCESS 4.4s
Search-1-StateSpace.ipynb ✅ SUCCESS 3.5s
SL-1-LogicalLearning.ipynb ✅ SUCCESS 2.7s
rl_4_multi_armed_bandits.ipynb ✅ SUCCESS 20.4s
GameTheory-4c-NashExistence-Python.ipynb ✅ SUCCESS 3.1s

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

@jsboige
jsboige merged commit 36964bf into main Jul 17, 2026
20 checks passed
jsboige added a commit that referenced this pull request Jul 17, 2026
…-output white-figure regression

Read-only detector `scripts/notebook_tools/detect_svg_empty_display.py` (+19 tests) — companion to `detect_svg_decimal_commas.py` (#6959). Catches the "chart ABSENT" defect class of the #6927 rollout: a cell that intends to show an SVG chart but committed an EMPTY output (`execution_count` non-null AND `outputs==[]` AND source matches a chart-emit pattern) = blank figure on GitHub.

Zero-FP signature verified firsthand (po-2024): TP #6963 = 4 hits (cells 29/35/45/49), TN #6964/#6946 = 0, baseline 930 notebooks main = 0 defects, 19 unit tests pass. Companion to #6959 (comma-zigzag) — the two mechanize the "out_len>0" gate that no-cdn/no-comma detectors miss (both pass on an empty output).

Cause-attribution note: the detector flags the SYMPTOM (empty output where a chart is expected), cause-agnostic — that is why it is sound. The "display(chart) causes empty output" framing in the original PR rationale is superseded by firsthand evidence (merged #6967 DecInfer-7 cell[32] emits via `display(SvgChartHelper...)` and DOES capture the `<svg>`): the real blank cause is helper/`Formatter.Register` not loaded in the exec (`#load` unresolved from the actual cwd), NOT display-vs-last-expression. The detector's empty-output signal holds under that correction. Optional follow-up: broaden the source pattern to also flag empty-output last-expression `SvgChartHelper.Bar/Overlay` cells (not only `display(`) for full coverage.

See #3801, #6927.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
myia-ai-01 pushed a commit that referenced this pull request Jul 17, 2026
…ajectories) (#6972)

GameTheory-4c-NashExistence cell[10]: replace blank-in-static Plotly CDN
<script src=cdn.plot.ly> with SvgChartHelper.Overlay() (#6942 + #6958 MERGED),
rendering 3 series sharing numeric axes P(Heads) j1 / j2: 2 best-response
trajectories (depart 0.9/0.1 and 0.1/0.9, LineMarkers) converging to the Nash
equilibrium point (0.5, 0.5, red Markers) -- illustration of Brouwer fixed-point.

#load convention: bare '#load "SvgChartHelper.cs"' (canon, matches DecInfer-7
#6967). Resolves from kernel CWD = MyIA.AI.Notebooks/Probas/Infer/ (cluster
convention; .NET Interactive #load resolves relative to kernel CWD = notebook
dir, so cross-family notebooks execute with path=Infer/).

See #6927 (partial of epic, not Closes).

Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 17, 2026
…ance to helper-load root cause (#6978)

ai-01 corrected the svg-6927-canon point 4 (2026-07-17): display() RENDS when
the helper is loaded -- the merged #6967 (DecInfer-7 36964bf) cell[32] uses
display(SvgChartHelper...) and captures the <svg> (26 outputs). The earlier
canon rule "derniere expression PAS display()" was WRONG. The real white-figure
discriminator is helper/Formatter.Register NOT loaded (#load not resolving from
the kernel real cwd).

The detector merged in #6971 still DETECTS correctly (its 3-condition signature
ran + intended-chart + outputs==[] = white figure is sound), but its remediation
guidance told workers the wrong fix ("make chart last expression, drop
display()"). Correct the 4 wrong prose blocks (docstring canon rule 1, portee
cluster, Ce qu il NE corrige PAS, and the _human_report CI FIX string) to lead
with the real fix: make the #load resolve (helper in notebook dir, OR relative
#load "../<family>/SvgChartHelper.cs", OR re-exec via ExecutePreprocessor with
resources.metadata.path = helper dir per the durable lesson from #6972), then
re-execute.

Detection logic (regexes, detect_cell, scan_notebook, main) UNTOUCHED. 19/19
unit tests pass.

See #3801. See #6927.

Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 17, 2026
…zhaf power indices) (#6979)

GameTheory-15c-CooperativeGames cells[9,23]: replace blank-in-static Plotly CDN
<script src=cdn.plot.ly> with SvgChartHelper.Bar() (#6942 MERGED):

- cell[9]: Shapley values (glove game) single Bar() last-expression. The bar
  asymmetry (0.667 >> 0.167/0.167) makes the asymmetric power obvious.
- cell[23]: Shapley vs Banzhaf (Mini-ONU) -> 2 display(Bar()) (pattern #6967
  DecInfer-7: distinct categorical axes -> 2 Bar() not Overlay; display() renders
  per ai-01 svg-6927-canon.md). Console.WriteLine comparison + trailing Note kept.

#load convention: bare '#load "SvgChartHelper.cs"' (canon, idempotent in both
cells). Resolves from kernel CWD = MyIA.AI.Notebooks/Probas/Infer/ (cluster
convention, CWD-rooted per c.563 lesson).

See #6927 (partial of epic).

Co-authored-by: Claude-Code <noreply@anthropic.com>
myia-ai-01 pushed a commit that referenced this pull request Jul 17, 2026
…ies) (#6989)

Substance pivot for #6927 Plotly-CDN -> SVG migration (Infer series). Infer-12
cell[9] (id=c30c821e) visualized a hierarchical shrinkage comparison (vrai /
no-pool / hierarchique) across 8 classes via Plotly grouped-bars CDN. Plotly-CDN
renders BLANC on static GitHub sandbox (<script src=cdn.plot.ly> blocked).
Replaces the grouped-bars with 3 separate SvgChartHelper.Bar() calls (one per
series), each showing the 8-class distribution.

SvgChartHelper.Overlay (#6958 MERGED) requires a SHARED NUMERIC X axis --
categorical class labels (cl.0..cl.7) don't fit, so 3 distinct Bar() charts +
Console.WriteLine legends (mirrors c.545 DecInfer-8 canonical pattern).

Pattern canonique L542b-L1 + L543-L1 + L544-L1 validated 5x (c.542 #6963,
c.543 #6967, c.545 #6977, c.546 #6986, c.547 #this). NB: this cell uses
`display(new PlotlyHtml(markup))` as last expression, so we use
`display(SvgChartHelper.Bar(...))` per DecInfer-7 canon (proven to produce
text/html MIME with <svg>, validate_pr_notebooks EXEC_PROVED).

Cell structure (60 lines):
- L000-L002: using directives (Microsoft.DotNet.Interactive.Formatting, System.IO, System.Collections.Generic)
- L003-L005: record PlotlyHtml + Formatter.Register block
- L006: blank
- L007-L008: Console.WriteLine header (Classe | n | ...)
- L009-L027: loop + MSE calculation (vraiArr, noPoolArr, hierArr populated)
- L028: blank
- L029-L033: Plotly comment header (Bar chart Plotly groupe)
- L034-L058: Plotly block (xs, tVrai, tNoPool, tHier, layout, markup, display)
- L059: closing } of outer Plotly block

Replacement strategy:
1. Strip using directives (L000-L002) -- SvgChartHelper registers Formatter
2. Strip record PlotlyHtml + Formatter.Register block (L003-L005)
3. Replace Plotly block (L029-L058) with 3 SvgChartHelper.Bar() calls
4. Prepend bare #load "SvgChartHelper.cs" canon

Preserves INTACT: Console.WriteLine header (L007-L008), MSE loop + calculations
(L009-L027), the pedagogical message (3 series showing shrinkage toward mu).

After pattern nbformat.write churn (L619-L2, L595-L2 canon), applied minimal-diff
JSON-level surgical swap preserving cell[9] only -- markdown cells 4663e998,
factor-graph structure byte-identical to main.
myia-ai-01 pushed a commit that referenced this pull request Jul 17, 2026
…ne helper-load (mirror #6978 canon) (#6990)

* ci(notebook-tools,#6927): SVG empty-display gate — wire #6971 detector as per-PR gate

Per-PR CI gate that runs scripts/notebook_tools/detect_svg_empty_display.py
in --check mode on every notebook changed by the PR and FAILs if any cell
commits an empty display (chart-display pattern in source + execution_count
set + outputs==[] = white figure on GitHub/nbviewer).

Why this gate (mirror of svg-decimal-comma-gate.yml #6965)
----------------------------------------------------------
The SVG inline rollout #6927 has TWO failure modes that both render as
broken/blank on GitHub but require DIFFERENT detectors because they
inspect different layers:

  1. SVG emitted with French decimal commas (content defect)
     -> detect_svg_decimal_commas.py (#6959) parses SVG payload
     -> svg-decimal-comma-gate.yml (#6965) wires it as per-PR gate
     -> RENDERS BROKEN (zigzag, "Expected length" errors)

  2. Cell commits an empty `outputs` list despite a chart-display pattern
     in source (pipeline defect)
     -> detect_svg_empty_display.py (#6971) inspects cell structure
     -> svg-empty-display-gate.yml (THIS PR) wires it as per-PR gate
     -> RENDERS BLANK (no SVG at all to parse)

Both gates are NEEDED, neither is sufficient. PR #6963 (DecInfer-6,
po-2025 fr-FR) committed 4 cells (29/35/45/49) with the empty-output
defect. Both `svg-decimal-comma-gate` and `check_plotly_static_risk.py`
passed (the SVG was never emitted, so there were no decimal-commas to
find; the source had no Plotly-CDN script). Result: 4 white figures
on GitHub, invisible to code review and structural validation. Detected
by vision-QA only. This gate would have caught it pre-merge.

Verification (mirror of #6965 methodology):
  - YAML parses cleanly (yaml.safe_load).
  - Detector CLI returns TN baseline 930/0 (matches #6971 claim).
  - Synthetic TP (cell with display(SvgChartHelper.Bar(...)) + exec_count
    set + outputs==[]) -> detector exit 1 (caught).
  - TN (clean notebook with real SVG output) -> detector exit 0.
  - Edge: missing file path -> detector exit 2 (handled as ::warning).
  - Workflow branch logic identical to svg-decimal-comma-gate.yml
    (`[ "$rc" -eq 1 ]` fail / `[ "$rc" -eq 2 ]` warn / `::notice` clean).

Scope:
  - 1 file, +171/-0.
  - Workflow YAML static, no re-exec needed.
  - Mirror of svg-decimal-comma-gate.yml #6965 (same step sequence,
    same permissions, same per-PR diff scope, same exit-code handling).
  - Paths trigger: notebook changes + detector changes + gate changes.

Closes gap in CI coverage for #6927 rollout: helper canon SvgChartHelper.cs
+ detector 1 (#6959) + gate 1 (#6965) + detector 2 (#6971) + gate 2 (this
PR) = 5/5 chain complete. EPIC #3801 axe-2 SOTA enforcement.

ai-01 explicit greenlight on CoursIA-2 dashboard 2026-07-17T04:52Z:
"Follow-up po-2024 (ton next-step) : gate CI soeur #6971 (mirror #6965)
= greenlight ta lane defense-in-depth."

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

* fix(notebook-tools,#6927,#6981): gate FIX-prose leads with cause-racine helper-load (mirror #6978 canon)

ai-01 CHANGES_REQUESTED (review PRR_kwDOH2Odns8AAAABGVBAAg) sur #6981 :
le mécanisme du gate (détection 3-condition, wiring mirror #6965) est correct
et validé firsthand, MAIS le FIX-prose imprimé aux workers sur échec embarque
la théorie §4 RÉFUTÉE (« make the chart the LAST EXPRESSION, drop display() »).
Preuve firsthand : MERGED #6967 DecInfer-7 cell[32] utilise display() et capture
le <svg> (26 outputs) ; display() ET last-expression rendent TOUS DEUX quand
le helper est chargé. La vraie cause du vide = helper/Formatter non chargés
(#load non résolu depuis cwd réel du nbclient, Formatter.Register jamais
exécuté, SvgChartHelper.<chart> falls through à no-op).

Cette PR est le miroir exact de la correction portée par #6978 (MERGED sur le
détecteur detect_svg_empty_display.py docstring/FIX) appliquée au gate YAML :
cohérence tool + gate avec le canon corrigé.

Edits prose-only (1 file +15/-14, 0 logique) :

1. L28 « display()-vs-return pitfall » → « helper/Formatter-not-loaded
   pitfall (#load unresolved from exec cwd) » + cross-ref svg-6927-canon.md §4.
2. L62-80 « Fix (mirror ... point 1) » → « Fix (mirror ... §4 cause-racine
   helper-load) ». Suppression de « Make the chart the LAST EXPRESSION »
   comme fix (la cause-racine prime). Suppression de (C) « display() captures
   display_data only for SOME object types » (qui impliquait display-vs-).
   Conservation de (A) cwd-kernel et (B) Formatter.Register comme les deux
   vraies causes. Ajout preuve display() rend quand helper chargé (ref #6967).
3. L168 (le $GITHUB_STEP_SUMMARY réellement lu par un worker sur échec)
   « FIX: make the chart the LAST EXPRESSION ... (point 1) » → « FIX: the
   empty outputs list means the helper's Formatter.Register did NOT run in
   this exec — ... the discriminator is helper-load, NOT display-vs-expression.
   See svg-6927-canon.md §4 (cause-racine helper-load) and the detector
   docstring. »

Wiring inchangé : 3 steps (checkout@v4 fetch-depth 0 / setup-python@v5 3.11
/ gate inline), permissions contents:read, paths scope, branch logic
(rc=1 ::error / rc=2 ::warning / else notice), stdlib-only deps detector.
yaml.safe_load OK ; structure identique à svg-decimal-comma-gate.yml #6965.

Validation :
  - YAML structure préservé (jobs=1 svg-empty-display, steps=3,
    first step actions/checkout@v4, last step Gate changed notebooks).
  - 0 occurrence de « LAST EXPRESSION » (grep -n verify).
  - « §4 / svg-6927-canon / Formatter.Register / helper-load » canon refs
    présentes L28, L64, L66, L71, L77, L80, L169.
  - Diff +15/-14 atomique sur 1 file (workflow YAML), 0 autre fichier touché.

Pre-flight collision scan L539-L1 ★★★ :
  - origin/feature/c635-svg-empty-display-ci-gate (= PR #6981 base) ✓
  - origin/feature/svg-empty-display-detector-3801 (= #6971 MERGED) ✓
  - origin/feature/svg-emptydisplay-fixguidance (= PR tierce docstring FIX) ✓
  - origin/docs/svg-6927-mergegate-readme (= PR tierce README sequence, NOUVELLE
    tierce : cible = docs/notebook_tools/*.md, pas workflow YAML = PAS COLLISION)
  - main a avancé dbe6df1..365486c (Heatmap #6982 + Infer-19 #6983 +
    Sudoku accents #6984 + Infer-18 #6985) — pas de conflit (workflow YAML
    indépendant du contenu notebooks).

References :
  - Closes intent of CHANGES_REQUESTED PRR_kwDOH2Odns8AAAABGVBAAg (ai-01)
  - Mirror #6978 (MERGED detector docstring/FIX correction)
  - See #6967 (DecInfer-7 display() proof that helper-load is discriminator)
  - See #6971 (companion detector MERGED)

---------

Co-authored-by: Claude-Code <noreply@anthropic.com>
myia-ai-01 pushed a commit that referenced this pull request Jul 17, 2026
…r.Bar (Belief State Updates) (#6977)

Substance pivot DecInfer-8 sequential belief tracking. Cell 49 visualized 3 belief states (Bon / Degrade / Defaillant) across 4 time steps (Prior + 3 obs) using Plotly grouped-bar CDN. Plotly-CDN renders BLANC on static GitHub sandbox.

Solution: 3 separate SvgChartHelper.Bar() calls (one per state) showing each state's probability evolution across the 4 time steps. Bar() only supports single-series; for multi-series on shared numeric X the SvgChartHelper.Overlay API exists (#6958 MERGED) but is reserved for numeric X axis. Temporal/categorical X = N Bar() calls paired with Console.WriteLine legends.

Same canonical pattern validated c.542 DecInfer-6 (#6963) and c.543 DecInfer-7 (#6967 MERGED): bare #load SvgChartHelper.cs + multi-line source (L544-L1 canon for .NET Interactive kernel).

Verification:
- cell[49] (id=513a917e) execution_count=13, n_out=71
- 3x text/html SVG outputs (1789/1796/1796 chars each)
- 14/14 code cells executed, 0 errors
- validator validate_pr_notebooks.py: 14/14 PASS
- detect_svg_decimal_commas: 0 defects
- detect_svg_empty_display: 0 defects

Plotly references remaining: 0. SVG inline zero-dependance NuGet canon C548-L2.

See #6927 (EPIC Plotly-CDN->SVG pivot), #6942 (SvgChartHelper.cs MERGED), #6967 (DecInfer-7 precedent MERGED), #6963 (DecInfer-6 parallel OPEN MERGEABLE).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
@jsboige
jsboige deleted the feature/c543-decinfer7-svg-inline-6927 branch September 2, 2026 13:14
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