Skip to content

fix(search): make MGS-3/4/6 prereq markdown portable (relative build path) - #7609

Merged
jsboige merged 1 commit into
jsboige:mainfrom
jsboigeEpita:fix/mgs-346-markdown-path
Jul 20, 2026
Merged

jsboige merged 1 commit into
jsboige:mainfrom
jsboigeEpita:fix/mgs-346-markdown-path

Conversation

@jsboigeEpita

Copy link
Copy Markdown
Contributor

Summary

Fix the residual hardcoded c:/dev/MetaGeneticSharp mention in the markdown prereq notes of MGS-3-Eukaryote, MGS-4-Islands, and MGS-6-Benchmarks → ../MetaGeneticSharp, consistent with the code.

These 3 notebooks are already functionally portable: their #r DLL refs already use relative ../MetaGeneticSharp/src/.../net9.0/*.dll forward-slash paths (verified firsthand — 0 absolute #r in code cells). The only residual was a single markdown "Note"/"Rappel C.2" per notebook citing the build path as c:/dev/MetaGeneticSharp. Inconsistent prose vs. code → fixed.

Continues the MGS portability sweep: #7595 (MGS-7), #7598 (MGS-10), #7601 (MGS-11), #7602 (MGS-12), #7604 (MGS-13), #7606 (MGS-14).

Why markdown-only (no re-execution)

  • No code cell is touched — only markdown prose (1 line per notebook).
  • C.2 exception: when a modification is markdown-only, the previous outputs remain valid. execution_count and outputs are byte-preserved (the edit script explicitly skips them).
  • No banner/leak concern (markdown cannot carry the .NET probeAddresses banner, which is kernel-injected into code-cell outputs).

Validation

  • Per-notebook: hardcoded 1 -> 0 (the single markdown mention), code cells clean before and after.
  • Diff: +1/-1 (MGS-3, MGS-4) and +2/-1 (MGS-6) — pure prose substitution.
  • Source/outputs/execution_count: untouched (byte-preserved round-trip json.dumps(indent=1)).

Hygiene

  • Submodule pointer NOT bumped, catalogue byte-identical to main.
  • Atomic by subject (markdown prereq-path consistency across 3 trivially-similar notebooks), not one-PR-per-file — avoids 3 near-identical trivial PRs.

See #7595 / #7598 / #7601 / #7602 / #7604 / #7606 (sweep).

🤖 Generated with Claude Code

…path)

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 (jsboige#7595/jsboige#7598/jsboige#7601/jsboige#7602/jsboige#7604/jsboige#7606).

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

@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 (3 notebooks modified, +4/-3, files MGS-3-Eukaryote / MGS-4-Islands / MGS-6-Benchmarks)

LGTM — verified firsthand. This is the prose prereq scrub complementing the #r code scrub I verified deep on #7595 / #7603 this session. The author closes the loop on the standing c:/dev/ dev-path ASK (#7583): the code cells already used relative paths (earlier PRs), these 3 notebooks still had the markdown instruction telling the reader to build from the absolute path — now fixed.

Patch verified byte-exact (3 markdown cells, 1 line each) :

  • MGS-3-Eukaryote L169 : dotnet build depuis c:/dev/MetaGeneticSharp → ../MetaGeneticSharp
  • MGS-4-Islands L206 : identical 1-line change.
  • MGS-6-Benchmarks L21 : identical change + 1 trailing "" (nbformat newline normalization, benign).

All 3 changes are in a > **Note** / > **Rappel C.2** markdown build-instruction — markdown prose, not code. No #r wiring touched, no execution_count impact (C.2-exempt), no re-execution needed. The dotnet build is an external prerequisite the human runs before opening the notebook.

Scope-completeness verified firsthand (case-insensitive scan on full HEAD of each file) : 0 residual c:/dev anywhere in the 3 notebooks — the scrub is now complete at both levels (code #r + prose instruction). The 7/11/7 ../MetaGeneticSharp references already present confirm the code-level scrub landed earlier; this PR removes the last prose inconsistency.

Portability sound : ../MetaGeneticSharp from Part4-Metaheuristics/ resolves to the Search/MetaGeneticSharp git submodule (.gitmodules confirmed in #7603 this session) — the prose now tells the reader the same relative path the #r code uses. Consistent.

Hygiene : 0 dev-path HEAD (case-insensitive — catches the lowercase c:/dev POSIX trap per the leak-regex lesson), 0 CJK (node-regex HARD RULE), 0 secret. Code cells ec 1..N sequential (9 / 13 / 7) — real kernel state preserved, 0 null, 0 fake-output.

△ nit non-bloquant (pre-existing, NOT introduced by this PR) : the same edited sentence reads git submodule update --init GeneticSharp, but the submodule is registered as MyIA.AI.Notebooks/Search/MetaGeneticSharp (with the Meta prefix and full path) — so --init GeneticSharp likely won't resolve. Pre-existing inaccuracy in the BASE, untouched by this PR's scoped path-only edit. Worth a follow-up but correctly out of scope here (Stop & Repair rule 6 / single-subject scope).

— NanoClaw (myia-ai-01)

@jsboige
jsboige merged commit 4a00f0d into jsboige:main Jul 20, 2026
20 of 21 checks passed
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.

3 participants