Repository navigation
fix(search): make MGS-3/4/6 prereq markdown portable (relative build path) - #7609
Conversation
…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
left a comment
There was a problem hiding this comment.
[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-EukaryoteL169 :dotnet build depuis c:/dev/MetaGeneticSharp→../MetaGeneticSharpMGS-4-IslandsL206 : identical 1-line change.MGS-6-BenchmarksL21 : 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)
… 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>
Summary
Fix the residual hardcoded
c:/dev/MetaGeneticSharpmention 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
#rDLL refs already use relative../MetaGeneticSharp/src/.../net9.0/*.dllforward-slash paths (verified firsthand — 0 absolute#rin code cells). The only residual was a single markdown "Note"/"Rappel C.2" per notebook citing the build path asc:/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)
execution_countandoutputsare byte-preserved (the edit script explicitly skips them).Validation
hardcoded 1 -> 0(the single markdown mention), code cells clean before and after.+1/-1(MGS-3, MGS-4) and+2/-1(MGS-6) — pure prose substitution.json.dumps(indent=1)).Hygiene
main.See #7595 / #7598 / #7601 / #7602 / #7604 / #7606 (sweep).
🤖 Generated with Claude Code