Repository navigation
fix(search,#710): make MGS-15-LandscapeAnalysis notebook portable (relative paths) - #7608
Conversation
…lative 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>
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.
{
"event": "COMMENT",
"body": "[Hermes] Review — MGS-15 LandscapeAnalysis portable (#7608)\n\nVerification artefacts:\n- Diff read: single notebook MGS-15-LandscapeAnalysis.ipynb, +163/-48. The substantive code change is making paths relative (per #710) — the bulk of additions are re-executed .NET polyglot outputs (HTML/JS probing scaffolding auto-generated by the dotnet-interactive kernel).\n- Execution: execution_count present on all code cells, timestamps fresh (2026-07-20), no NotImplementedError/sorry-scan hits.\n\n🟡 Concern (non-blocking, privacy): notebook output leaks residential network info.\nThe .NET interactive HTML output at the probeAddresses([...]) call embeds the author's live network interfaces captured at execution time:\n- IPv6 FAI prefix 2a01:e0a:9d4:f320:... (Free/Proxad France subscriber)\n- LAN gateway http://192.168.0.51:2048/, 172.25.160.1:2048, 172.25.0.1:2048\n- Link-local fe80:: addresses with interface indices (%14, %44, %20)\n\nThis is auto-generated by the kernel at runtime (not hardcoded source), so it's not a credential leak and doesn't fail the standard TOKEN|API_KEY|SECRET scan. But it does expose the author's home network topology + ISP subscriber prefix in a public pedagogical repo. For a teaching notebook that students will re-execute, each re-execution will re-leak the runner's own interfaces.\n\nSuggestion (optional, non-blocking): clear the .NET interactive discovery HTML output before commit (keep the code cell, drop the captured probeAddresses list from outputs), or document that students should re-execute to overwrite. Not a merge blocker — flagging for awareness given the series is large and the same pattern likely recurs across MGS-3/4/6/11-19 polyglot notebooks."
}
…s 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>
Summary
Apply the #710 portability pattern to
MGS-15-LandscapeAnalysis.ipynb— the next notebook in the Search Part4-Metaheuristics portability sweep (cf #7595 MGS-7-TSP, #7598 MGS-10-CenterBias, #7603 MGS-19, #7605 MGS-18, #7607 MGS-16). The notebook's wiring cell had 8 hardcoded#r "c:/dev/MetaGeneticSharp/..."references that only worked on a specific developer machine.Change
Part4-Metaheuristics/MGS-15-LandscapeAnalysis.ipynb— wiring cell:#r "c:/dev/MetaGeneticSharp/src/.../GeneticSharp.Infrastructure.Framework.dll"× 8 lines#r "../MetaGeneticSharp/src/.../GeneticSharp.Infrastructure.Framework.dll"× 8 linesForward-slash form (
../MetaGeneticSharp/) chosen for true cross-platform portability (the actual goal of #710 — not just Windows-relative), matching the canonical form already onmainfor MGS-3-Eukaryote's wiring cell. .NET#raccepts forward slashes on Windows. Build config stays Debug (matches canonical, minimum surface change). MetaGeneticSharp submodule pointer NOT bumped (no submodule content change).Execution proof (§D / C.2 / H.1)
Re-executed end-to-end via
.net-csharpkernel (Jupyter nbconvert), after buildingMetaGeneticSharp.slnin Debug (0 errors):dotnet build MetaGeneticSharp.sln -c Debugexecution_count != nullfor all"Benchmarks dispos : SphereFitness, RastriginFitness, AckleyFitness"— proves the relative../MetaGeneticSharp/paths load the DLLs (benchmark types come from the loaded assemblies)--execute --inplaceSUCCESS (178941 bytes written, landscape analysis figures regenerated)# Solution/# Exemple résolucell removed)Outputs regenerated — landscape analysis produces fitness/topology figures that vary with the run, so the diff includes the regenerated landscape figures (expected and required for a re-executed code cell per C.2). The source-code change is exactly 8
#rlines.Scope (R3 atomicity)
1 file, 1 notebook, 1 subject — portable-path fix for MGS-15. Catalog byte-identical to main.
See #710