Skip to content

fix(search,#709): make MGS-7-TSP notebook portable (relative paths) - #7595

Merged
jsboige merged 1 commit into
mainfrom
feature/c709-mgs-notebooks-portability
Jul 20, 2026
Merged

jsboige merged 1 commit into
mainfrom
feature/c709-mgs-notebooks-portability

Conversation

@jsboige

@jsboige jsboige commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Summary

Remplace les chemins absolus c:/dev/MetaGeneticSharp/... dans MGS-7-TSP.ipynb par des chemins relatifs ..\MetaGeneticSharp\..., rendant le notebook portable (plus besoin d'un checkout à c:/dev/).

Anti-pattern identique à celui corrigé dans PR #7583 (MGS-7b N-D landscape) — la leçon vaut pour les 14 notebooks MGS qui hardcodent ce préfixe. PR atomique R3 = 1 seul notebook (MGS-7-TSP), les 13 autres viendront dans des PRs c.71x+ séparées.

Diff (cell 1 only, paths only)

-// Prérequis : dotnet build c:/dev/MetaGeneticSharp/MetaGeneticSharp.sln
-#r "c:/dev/MetaGeneticSharp/src/MetaGeneticSharp.Domain/bin/Debug/net9.0/GeneticSharp.Infrastructure.Framework.dll"
-#r "c:/dev/MetaGeneticSharp/src/MetaGeneticSharp.Domain/bin/Debug/net9.0/GeneticSharp.Domain.dll"
-#r "c:/dev/MetaGeneticSharp/src/MetaGeneticSharp.Domain/bin/Debug/net9.0/MetaGeneticSharp.Infrastructure.dll"
-#r "c:/dev/MetaGeneticSharp/src/MetaGeneticSharp.Domain/bin/Debug/net9.0/MetaGeneticSharp.Domain.dll"
-#r "c:/dev/MetaGeneticSharp/src/MetaGeneticSharp.Extensions/bin/Debug/net9.0/MetaGeneticSharp.Extensions.dll"
-#r "c:/dev/MetaGeneticSharp/src/MetaGeneticSharp.Extensions/bin/Debug/net9.0/GeneticSharp.Extensions.dll"
+// Prérequis : dotnet build ..\MetaGeneticSharp\MetaGeneticSharp.sln
+#r "..\MetaGeneticSharp\src\MetaGeneticSharp.Domain\bin\Debug\net9.0\GeneticSharp.Infrastructure.Framework.dll"
+#r "..\MetaGeneticSharp\src\MetaGeneticSharp.Domain\bin\Debug\net9.0\GeneticSharp.Domain.dll"
+#r "..\MetaGeneticSharp\src\MetaGeneticSharp.Domain\bin\Debug\net9.0\MetaGeneticSharp.Infrastructure.dll"
+#r "..\MetaGeneticSharp\src\MetaGeneticSharp.Domain\bin\Debug\net9.0\MetaGeneticSharp.Domain.dll"
+#r "..\MetaGeneticSharp\src\MetaGeneticSharp.Extensions\bin\Debug\net9.0\MetaGeneticSharp.Extensions.dll"
+#r "..\MetaGeneticSharp\src\MetaGeneticSharp.Extensions\bin\Debug\net9.0\GeneticSharp.Extensions.dll"

Verifications

Item Status
nbclient re-exec .net-csharp 12/12 cells, 0 errors
promote ec+outputs (.executed → canonical) 12/12 cells
strip_probe_banner.py --apply <canonical.ipynb> 9 banner lines stripped (canonical, NOT .executed — C708-L5 NEW)
validate_pr_notebooks.py origin/main <nb> PASS 1/1 (12 cells [.net-csharp])
git diff --stat 1 file changed, +139 / -24 (cells source + outputs re-injected)
Submodule pointer NOT bumped (no submodule content change)

Outputs réels (post-re-exec)

4 configurations GA TSP préservées (baseline panmictic / islands 4x10 / geometric-swap Moraglio / geometric-insertion Ulam / geometric-edge TSP) + 3 exercices stubbés conformément à C.1.

Submodule

PR #41 jsboige/MetaGeneticSharp (N-D projection bridge) = submodule pointeur 30c3993c7219332c14d4a2477b44661c6fae8215 (= submodule-main SHA post-merge ai-01). C.709 ne touche pas au submodule = pas de bump nécessaire.

Lien leçon cross-PR

  • PR feat(mgs): MGS-7b N-D landscape projection bridge + notebook (#1203) #7583 MGS-7b — fix initial pattern (submodule-main SHA, banner strip, SkiaSharp arch mismatch)
  • C708-L5 ★★ : probe-banner strip post-re-exec .NET DOIT cibler canonical .ipynb
  • C708-L2 ★★ : nbclient re-exec writes .executed.ipynb → promote via dict copy execution_count + outputs
  • C706-L1 ★★ : PR cross-repo 2-step (submodule code d'abord → parent bump)

🤖 Generated with Claude Code

MGS-7-TSP.ipynb hardcoded `c:/dev/MetaGeneticSharp/...` absolute paths in
cell 1 (6 #r directives + 1 prerequisite comment). Same anti-pattern as
PR #7583 (MGS-7b N-D landscape) before its fix.

Transform c:/dev/MetaGeneticSharp/ -> ..\MetaGeneticSharp\ (relative to
notebook location at Search/Part4-Metaheuristics/, submodule at
Search/MetaGeneticSharp/). Build config kept Debug (matches canonical).

Verifications:
- nbclient .net-csharp: 12/12 cells, 0 errors, all execution_count
- promote ec+outputs: 12/12 cells promoted from .executed.ipynb
- strip probeAddresses banner: 9 banner lines stripped from canonical
  (NOT from .executed.ipynb - C708-L5 NEW)
- H.3 validate_pr_notebooks.py: PASS 1/1 (12 cells [.net-csharp])
- Real outputs preserved: 4 configs (baseline/islands/geometric-swap/
  geometric-insertion/geometric-edge) + 3 exercises

Submodule pointer NOT bumped (no submodule content change, only
notebook paths). MGS-7b stays at PR #41 submodule-main SHA
30c3993c7219332c14d4a2477b44661c6fae8215.

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: 12
  • 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 5.5s
2.2-Descente-de-gradient.ipynb ✅ SUCCESS 4.3s
2.3-Regression-lineaire-logistique.ipynb ✅ SUCCESS 3.9s
2.4-Arbres-Forets-Ensembles.ipynb ✅ SUCCESS 4.9s
Search-1-StateSpace.ipynb ✅ SUCCESS 4.0s
SL-1-LogicalLearning.ipynb ✅ SUCCESS 3.0s
rl_4_multi_armed_bandits.ipynb ✅ SUCCESS 26.9s
GameTheory-4c-NashExistence-Python.ipynb ✅ SUCCESS 3.6s

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

@jsboige
jsboige merged commit eb020ca into main Jul 20, 2026
26 checks passed

@clusterManager-Myia clusterManager-Myia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[NanoClaw] structural review (1 notebook modified, +139/-24, single file MGS-7-TSP.ipynb)

LGTM deep — verified firsthand. This is exactly the portability fix I flagged as the standing [A-Z]:[\\/] scrub ASK on the sibling #7583 (MGS-7b N-D landscape). The author applied it correctly and the fix is genuinely portable.

Scrub verified REAL (not cosmetic rename) via base↔head byte-comparison of CODE[1] (the #r wiring cell) :

  • BASE : 7× hardcoded absolute c:/dev/MetaGeneticSharp/src/.../GeneticSharp.*.dll (POSIX-style lowercase c:/dev/ — note: a naive uppercase-only [A-Z]: leak-regex misses these; case-insensitive scan required to catch lowercase drive letters).
  • HEAD : same 7 paths → relative ..\MetaGeneticSharp\src\.../*.dll (Windows backslash, parent-dir traversal).

Portability verified CORRECT firsthand :

  • Search/MetaGeneticSharp is a git submodule (.gitmodules → url = https://github.com/jsboige/MetaGeneticSharp), not a regular dir.
  • Notebook lives at Search/Part4-Metaheuristics/MGS-7-TSP.ipynb → ..\MetaGeneticSharp\ resolves to Search/MetaGeneticSharp/ (the submodule, sibling of Part4-Metaheuristics). Resolution sound : any clone with git submodule update --init has the DLLs at that relative location, no c:/dev/ dependency.

Re-exec proves the relative paths actually work : 12/12 code cells execution_count = 1..12 sequential (0 null, 0 fake-output), outputs present on all (including CODE[1] = 6 outputs = the loaded assemblies list). The notebook ran end-to-end post-scrub → the portability claim is demonstrated, not just asserted.

Hygiene : 0 dev-path HEAD (case-insensitive scan), 0 CJK (node-regex, HARD RULE), 0 secret (sk-/ghp_/AKIA/github_pat_/inline password). The dotnet build prereq comment also converted c:/dev/MetaGeneticSharp/MetaGeneticSharp.sln → ..\MetaGeneticSharp\MetaGeneticSharp.sln (consistent).

△ nit non-bloquant : the relative paths use Windows backslashes (..\) — portable on Windows (the notebook's target platform per the #r IKVM/.NET kernel) but would need forward-slashes for cross-platform. Defensible since the C# TSP notebook is Windows/.NET-scoped (same as the fleet's other #r-wired notebooks).

— NanoClaw (myia-ai-01)

@jsboige
jsboige deleted the feature/c709-mgs-notebooks-portability branch July 20, 2026 14:52
jsboige added a commit that referenced this pull request Jul 20, 2026
…paths) (#7598)

MGS-10-CenterBias.ipynb hardcoded `c:/dev/MetaGeneticSharp/...` absolute paths in
cell 1 (5 #r directives + 1 prerequisite comment). Same anti-pattern as
PR #7583 (MGS-7b N-D landscape) and PR #7595 (MGS-7-TSP).

Transform c:/dev/MetaGeneticSharp/ -> ..\MetaGeneticSharp\ (relative to
notebook location at Search/Part4-Metaheuristics/, submodule at
Search/MetaGeneticSharp/). Build config kept Debug (matches canonical,
minimum surface change).

Verifications:
- nbclient .net-csharp: 8/8 cells, 0 errors, all execution_count
- promote ec+outputs: 8/8 cells promoted from .executed.ipynb
- strip probeAddresses banner: 9 banner lines stripped from canonical
  (NOT from .executed.ipynb - C708-L5 NEW lesson applied)
- H.3 validate_pr_notebooks.py origin/main: PASS 1/1 (8 cells [.net-csharp])
- dotnet build MetaGeneticSharp.Extensions Debug: 0 errors, 21 warnings
  (CA1416 platform + CS8618 nullable, same as c.709)

Submodule pointer NOT bumped (no submodule content change, only
notebook paths). MetaGeneticSharp stays at submodule-main SHA
6a501d967331205dea193c7a415ec1c852766f7c.

c.71x sweep continues with MGS-11+ if window permits (13 MGS notebooks
total remaining after this fix, ordered low-path-count first).

Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 20, 2026
…ths) (#7601)

* fix(search): make MGS-11-IslandSynergy notebook portable (relative paths)

Applies the same portability pattern as #7595 (MGS-7-TSP) and #7598
(MGS-10-CenterBias) to MGS-11-IslandSynergy.ipynb: hardcoded
c:/dev/MetaGeneticSharp paths -> relative ..\MetaGeneticSharp\ so the
notebook runs from any clone location.

Scope (atomic, 1 notebook):
- cell[1] markdown: build prereq instruction -> relative ..\MetaGeneticSharp- cell[2] wiring: 7 #r DLL refs -> ..\MetaGeneticSharp\ (backslash, #r-literal)
- cell[2] NativeLibrary.Load: $"c:/dev/..." -> verbatim $@"..\MetaGeneticSharp\..."
  (verbatim interpolated string so backslashes stay literal — avoids \r/\n/\b
  escape-sequence corruption in the native lib path)
- Native libSkiaSharp preload path also ported (runtimes/{rid}/native)

Verification (C.2/H.1, EXEC_PROVED):
- MetaGeneticSharp submodule init --recursive + dotnet build MetaGeneticSharp.sln
  -c Debug = 0 errors (DLLs present at relative path)
- jupyter nbconvert --execute (.net-csharp, CWD=notebook dir) = 7/7 code cells,
  0 errors, 0 path-leak, exec_count 1-7
- json round-trip indent=1 byte-safe; source-identical verified before output
  transplant (c.178)
- catalog byte-identical to main; submodule pointer NOT bumped

Continues the MGS portability sweep (MGS-7, MGS-10 done; 12 more notebooks
remain: MGS-3,4,6,8,9,12-19). Genre = infra portability, distinct from the
Prong-B solver-optimization arc (#7588/#7589/#7592).

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

* fix(search): strip probeAddresses banner post-reexec (MGS-11)

The .NET Interactive kernel re-injects its probeAddresses banner
(network-interface leak, loadDotnetInteractiveApi) into cell[2] output 0
at every re-exec. Sanctioned by secrets-hygiene rule 6 (Stop & Repair via
the canonical tool, not a manual scrub). Missed in the initial commit.

python scripts/notebook_tools/strip_probe_banner.py --apply
  -> fixed 9 banner lines, post-scan clean.

Scope: 1 notebook only. Banner output is kernel-injected (not produced by
notebook code), so stripping it does not alter execution evidence
(exec_count + the real fitness-landscape outputs remain intact).

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

---------

Co-authored-by: jsboige <jsboige@gmail.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 20, 2026
…ths) (#7602)

* fix(search): make MGS-12-AxisAlignment notebook portable (relative paths)

Applies the same portability pattern as #7595 (MGS-7-TSP), #7598
(MGS-10-CenterBias) and #7601 (MGS-11) to MGS-12-AxisAlignment.ipynb:
hardcoded c:/dev/MetaGeneticSharp paths -> relative ..\MetaGeneticSharp\.

Scope (atomic, 1 notebook):
- cell[1] wiring: prereq comment + 5 #r DLL refs -> ..\MetaGeneticSharp  (backslash, #r-literal; same simple pattern as MGS-10, no native preload)

Verification (C.2/H.1, EXEC_PROVED):
- MetaGeneticSharp submodule already built (DLLs at relative path)
- jupyter nbconvert --execute (.net-csharp, CWD=notebook dir) = 0 errors,
  0 path-leak, all code cells executed
- json round-trip indent=1 byte-safe; source-identical verified pre-transplant
- catalog byte-identical; submodule pointer NOT bumped

Continues the MGS portability sweep (MGS-7, 10, 11 done; 11 more notebooks
remain: MGS-3,4,6,8,9,13-19).

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

* fix(search): strip probeAddresses banner post-reexec (MGS-12)

.NET Interactive kernel re-injects its probeAddresses banner
(network-interface leak) into the first code-cell output at every re-exec.
Sanctioned by secrets-hygiene rule 6 via the canonical tool (not a manual
scrub). Missed in the initial commit.

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

---------

Co-authored-by: jsboige <jsboige@gmail.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 20, 2026
…paths) (#7604)

* fix(search): make MGS-13-LandscapeDebias notebook portable (relative paths)

8 occurrences of c:/dev/MetaGeneticSharp/ -> relative ..\MetaGeneticSharp\
so the notebook runs from any clone, not only c:/dev/CoursIA.

- 7 #r DLL refs (Extensions bin) -> backslash relative (safe in #r directives)
- 1 NativeLibrary.Load interpolated libSkiaSharp preload -> verbatim interpolated
  (backslash in $"..." would be \r/\n/\b escape sequences; the @ makes it literal)
- no markdown prereq cell (unlike MGS-11)

Re-executed via nbconvert .net-csharp (CWD=notebook dir): 8/8 code cells,
0 errors, exec_count 1-8. Fresh outputs (fitness-landscape heatmaps as
base64 PNG inline in text/html via HeatmapHtml). Submodule init --recursive
+ dotnet build local (regle F, no Docker/network at runtime).

Submodule pointer NOT bumped. Catalogue byte-identical to main.

Model #7595 (MGS-7-TSP by jsboige). Continues MGS portability sweep.

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

* fix(search): strip probeAddresses banner post-reexec (MGS-13)

.NET Interactive kernel re-injects its probeAddresses banner
(network-interface leak) into the first code-cell output at every re-exec.
Sanctioned by secrets-hygiene rule 6 via the canonical tool (not a manual
scrub). Missed in the initial commit.

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

---------

Co-authored-by: jsboige <jsboige@gmail.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 20, 2026
…ve paths) (#7606)

* fix(search): make MGS-14-IslandSynergyFound notebook portable (relative paths)

8 occurrences of c:/dev/MetaGeneticSharp/ -> relative ..\MetaGeneticSharp\
so the notebook runs from any clone, not only c:/dev/CoursIA.

MGS-14 distinct pattern (vs MGS-11/13): the native libSkiaSharp preload
goes through an extDir verbatim string variable, not an inline interpolated
literal. So:
- 7 #r DLL refs (Extensions bin) -> backslash relative
- string extDir = @"..." (no trailing slash) -> backslash relative
- NativeLibrary.Load($@"{extDir}/runtimes/{rid}/native/libSkiaSharp.dll")
  is ALREADY verbatim + uses {extDir} interpolation, so no escape subtlety;
  the mixed separator (net9.0/runtimes) is accepted by NativeLibrary.Load
  on Windows.

Re-executed via nbconvert .net-csharp (CWD=notebook dir): 7/7 code cells,
0 errors, exec_count complete. Fresh outputs (conditional island-synergy
heatmaps: Ackley yes / Rastrigin no). Submodule init --recursive + dotnet
build local (regle F).

Submodule pointer NOT bumped. Catalogue byte-identical to main.

Continues MGS portability sweep (#7595/#7598/#7601/#7602/#7604).

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

* fix(search): strip probeAddresses banner post-reexec (MGS-14)

.NET Interactive kernel re-injects its probeAddresses banner
(network-interface leak) into the first code-cell output at every re-exec.
Sanctioned by secrets-hygiene rule 6 via the canonical tool (not a manual
scrub). Missed in the initial commit.

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

---------

Co-authored-by: jsboige <jsboige@gmail.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 20, 2026
…elative paths) (#7607)

Apply the #710 portability pattern (cf #7595 MGS-7, #7598 MGS-10, #7603
MGS-19, #7605 MGS-18) to MGS-16-AlgorithmSelection.ipynb: 6 hardcoded
'#r' references c:/dev/MetaGeneticSharp/... -> ../MetaGeneticSharp/...
(forward-slash, cross-platform portable, matching MGS-3 canonical form
on main).

Re-executed end-to-end via .net-csharp kernel (MetaGeneticSharp.sln Debug
built, 0 errors): 14/14 code cells, exec_count != null, 0 errors, wiring
cell emits 'DLLs chargees. CenterBiasBenchmark' proving the relative
paths load. Outputs regenerated (C.2).

Build config = Debug maintained. Submodule pointer NOT bumped.

See #710

Co-authored-by: Claude <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 20, 2026
…path) (#7609)

MGS-3-Eukaryote, MGS-4-Islands, MGS-6-Benchmarks are ALREADY functionally
portable: their #r DLL refs use relative ../MetaGeneticSharp/ forward-slash
paths. The only residual hardcoded c:/dev/MetaGeneticSharp was a single
markdown prereq note per notebook (build-path prose), inconsistent with the
relative code paths. Fixed to ../MetaGeneticSharp for consistency.

Markdown-only edit (C.2 exception): no code cell changed, so outputs and
execution_count are preserved as-is — no re-execution needed. 1 line per
notebook.

Same subject (markdown prereq-path consistency) across 3 trivially-similar
notebooks -> atomic PR by subject, not one-PR-per-file.

Continues MGS portability sweep (#7595/#7598/#7601/#7602/#7604/#7606).

Co-authored-by: jsboige <jsboige@gmail.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 20, 2026
… (relative paths) (#7603)

* fix(search,#710): make MGS-19-MetropolisReinsertion notebook portable (relative paths)

Apply the #710 portability pattern (cf #7595 MGS-7, #7598 MGS-10) to
MGS-19-MetropolisReinsertion.ipynb: 5 hardcoded '#r' references
c:/dev/MetaGeneticSharp/... -> ../MetaGeneticSharp/... (forward-slash,
cross-platform portable, matching MGS-3 canonical form on main).

Re-executed end-to-end via .net-csharp kernel (MetaGeneticSharp.sln Debug
built first, 0 errors): 9/9 code cells, exec_count != null, 0 errors,
wiring cell emits 'DLLs chargees. Operateurs de reinsertion du fork :'
proving the relative paths load. Outputs regenerated (C.2).

Build config = Debug maintained. Submodule pointer NOT bumped.

See #710

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

* fix(search): strip probeAddresses banner from MGS-19-MetropolisReinsertion output (banner-guard)

.NET Interactive bootstrap re-injects the probeAddresses banner on every
re-exec; sanctioned strip via scripts/notebook_tools/strip_probe_banner.py
--apply (secrets-hygiene regle 6, not hand-scrubbing). Content unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 20, 2026
…hs) (#7605)

* fix(search,#710): make MGS-18-CecBanc notebook portable (relative paths)

Apply the #710 portability pattern (cf #7595 MGS-7, #7598 MGS-10, #7603
MGS-19) to MGS-18-CecBanc.ipynb: 5 hardcoded '#r' references
c:/dev/MetaGeneticSharp/... -> ../MetaGeneticSharp/... (forward-slash,
cross-platform portable, matching MGS-3 canonical form on main).

Re-executed end-to-end via .net-csharp kernel (MetaGeneticSharp.sln Debug
built first, 0 errors): 11/11 code cells, exec_count != null, 0 errors,
wiring cell emits 'DLLs chargees. Moteur de-biais CEC :' proving the
relative paths load. Outputs regenerated (C.2).

Build config = Debug maintained. Submodule pointer NOT bumped.

See #710

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

* fix(search): strip probeAddresses banner from MGS-18-CecBanc output (banner-guard)

.NET Interactive bootstrap re-injects the probeAddresses banner on every
re-exec; sanctioned strip via scripts/notebook_tools/strip_probe_banner.py
--apply (secrets-hygiene regle 6, not hand-scrubbing). Content unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 20, 2026
…lative paths) (#7608)

* fix(search,#710): make MGS-15-LandscapeAnalysis notebook portable (relative paths)

Apply the #710 portability pattern (cf #7595 MGS-7, #7598 MGS-10, #7603
MGS-19, #7605 MGS-18, #7607 MGS-16) to MGS-15-LandscapeAnalysis.ipynb:
8 hardcoded '#r' references c:/dev/MetaGeneticSharp/... ->
../MetaGeneticSharp/... (forward-slash, cross-platform portable,
matching MGS-3 canonical form on main).

Re-executed end-to-end via .net-csharp kernel (MetaGeneticSharp.sln Debug
built, 0 errors): 10/10 code cells, exec_count != null, 0 errors, wiring
cell emits 'Benchmarks dispos : SphereFitness, RastriginFitness, AckleyFitness'
proving the relative paths load. Landscape analysis figures regenerated (C.2).

Build config = Debug maintained. Submodule pointer NOT bumped.

See #710

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

* fix(search): strip probeAddresses banner from MGS-15-LandscapeAnalysis output (banner-guard)

.NET Interactive bootstrap re-injects the probeAddresses banner on every
re-exec; sanctioned strip via scripts/notebook_tools/strip_probe_banner.py
--apply (secrets-hygiene regle 6, not hand-scrubbing). Content unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 20, 2026
… paths) (#7613)

6 occurrences of c:/dev/MetaGeneticSharp/ -> relative ..\MetaGeneticSharp\.
Simple MGS-10/12 pattern (no native preload): 1 comment prereq +
4 #r Domain + 1 #r Extensions -> backslash relative.

Re-executed via nbconvert .net-csharp (CWD=notebook dir): 11/11 code cells,
0 errors, exec_count complete. probeAddresses banner stripped post-reexec
(9 kernel-injected lines, canonical strip_probe_banner.py, post-scan 0).
Submodule init --recursive + dotnet build local (regle F).

Submodule pointer NOT bumped. Catalogue byte-identical to main.

Continues MGS portability sweep (#7595/#7598/#7601/#7602/#7604/#7606/#7609).

Co-authored-by: jsboige <jsboige@gmail.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 20, 2026
…rcises #7583 adapter) (#7617)

Add an Exemple guide demonstrating the N-D projection bridge: the
KnownFunctionLandscape.RenderHeatmap(fitness, dimension, nbSamples, rng)
overload delivered by #7583 (NDMaxProjectionAdapter, verbatim from upstream
LandscapeExplorerSampleController.GetFunctionValue lines 640-674 @ d05826fd).

Renders SphereFitness at dim=2/10/30 to show the MAX-of-uniform-samples
projection densifying the optimum basin as hidden dims grow. Placed before
Exercice 2 (which asks students to write the projection mechanics by hand) --
exercise-example cohabitation: Exemple guide (SOTA tool) + Exercice 2 stub
(manual mechanics) coexist, neither solved nor stubbed into the other.

MGS-8 is the canonical target: the only Part4 notebook using the
KnownFunctionLandscape renderer (the one with the N-D overload); its Exercice 2
already described the MAX-projection concept. ai-01 steer c.719 (#7483 arc).

EXEC_PROVED (H.1 / C.2): 17/17 code cells executed, 0 errors, execution_count
complete (no null). New cell produces 3 heatmaps (text/html, dim=2/10/30).
probeAddresses banner stripped (9 lines, rule-6 kernel-injected exception,
post-scan 0 -- lesson c.717). Catalogue byte-identical to main, MetaGeneticSharp
submodule pointer unchanged.

See #7483 (partial: exercises the adapter in MGS-8; the "What" adapter port
itself was delivered by #7583). See #7595 (MGS portability sweep model).

Co-authored-by: jsboige <jsboige@gmail.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 22, 2026
… completion c.772) (#7898)

Couvre MGS-7b (Part4-Metaheuristics MGS series, le seul notebook MGS non couvert par le sweep
portabilite PR #7595/#7598/#7601-#7614 qui avait explicitement gelé la cellule \#r pour éviter
collision cross-groupe).

Le sweep avait corrigé 19 notebooks MGS (MGS-3/4/6/7/8/9/10/11/12/13/14/15/16/17/18/19) pour
pointer vers bin/Debug/net9.0/. MGS-7b-LandscapeMultidim (extension N-D de MGS-7) gardait
encore bin/Release/net9.0/ → CS0006 en clone frais (DLL Release absente du submodule).

Substance du pont N-D inchangée (PR #7483 MERGED 2026-07-20T14:36:03Z) — outputs existants
préservés byte-pour-byte (exécution_count=1, outputs=4 items, metadata vide inchangés).

Edit byte-surgical (cf L768-L1 ★★) : +5/-1 strictement sur cellule dc33013b — 4 lignes de
// Build prereq comment documentant le submodule init + 'dotnet build .. \..\MetaGeneticSharp.sln -c Debug'
+ 1 ligne #r Release→Debug. 11 autres cellules strictement intactes.

Validated:
- python scripts/notebook_tools/validate_pr_notebooks.py ... 6 cells PASS [.net-csharp]
- python scripts/notebook_tools/strip_probe_banner.py --scan ... 0 banners
- git diff --stat: 1 file, +5/-1
- git -C MetaGeneticSharp submodule status: clean (sha 0433fad + nested GeneticSharp e15ee82)
- dotnet build MetaGeneticSharp.sln -c Debug: 0 errors, 35 CA1416 benign warnings
- bin/Debug/net9.0/ contient 8 DLLs attendues ; bin/Release/net9.0/ absent (CONFIRMED)
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.

2 participants