Skip to content

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

Merged
jsboige merged 2 commits into
jsboige:mainfrom
jsboigeEpita:fix/mgs-12-portability
Jul 20, 2026
Merged

jsboige merged 2 commits into
jsboige:mainfrom
jsboigeEpita:fix/mgs-12-portability

Conversation

@jsboigeEpita

Copy link
Copy Markdown
Contributor

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)

  • 1 fichier : MyIA.AI.Notebooks/Search/Part4-Metaheuristics/MGS-12-AxisAlignment.ipynb
  • cell[1] wiring : prereq comment + 5 #r DLL refs → ..\MetaGeneticSharp\ (backslash, #r-literal)
  • Same simple pattern as MGS-10 (no NativeLibrary.Load native preload — that MGS-11-specific subtlety does not apply here)
  • Submodule pointer NOT bumped

Verifications pre-merge (EXEC_PROVED, C.2/H.1)

Item Status
MetaGeneticSharp submodule built (DLLs at relative path) OK
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 (c.178) OK
git diff --stat 1 fichier +123/-7
Catalogue byte-identical to main OK
Submodule pointer unchanged (NOT bumped)

Architecture portabilité

  • Notebook location : Search/Part4-Metaheuristics/MGS-12-AxisAlignment.ipynb
  • Submodule location : Search/MetaGeneticSharp/ (git submodule jsboige/MetaGeneticSharp)
  • Chemin relatif : ..\MetaGeneticSharp\ (notebook à Part4-Metaheuristics/, remonte 1 niveau vers Search/)

Contexte

Continues the MGS portability sweep (MGS-7 via #7595, MGS-10 via #7598, MGS-11 via #7601; this is MGS-12). 11 more notebooks remain (MGS-3,4,6,8,9,13-19). Genre = infra portability. Dispatched by ai-01.

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

…ths)

Applies the same portability pattern as jsboige#7595 (MGS-7-TSP), jsboige#7598
(MGS-10-CenterBias) and jsboige#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>
.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>
@jsboige
jsboige merged commit 1cd02dd into jsboige:main Jul 20, 2026
20 of 21 checks passed
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
…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
… 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>
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