Skip to content

fix(SymbolicAI): normalize exercises, fix Tweety v1.29 download, execute notebooks - #303

Merged
jsboige merged 12 commits into
mainfrom
feature/symbolicai-phase2-normalization
Apr 19, 2026
Merged

jsboige merged 12 commits into
mainfrom
feature/symbolicai-phase2-normalization

Conversation

@jsboige

@jsboige jsboige commented Apr 19, 2026

Copy link
Copy Markdown
Owner

Summary

Changed notebooks

Exercise normalization (19 notebooks):

  • SmartContracts: SC-0 to SC-9, SC-10, SC-12, SC-15 to SC-20
  • Lean: Lean-7b (syntax fix)
  • Tweety: download script v1.29 fix

Executed with outputs merged (31 notebooks):

  • Lean: Lean-7, Lean-7b, Lean-8, Lean-9, Lean-10
  • SmartContracts: SC-0 to SC-9, SC-10, SC-12, SC-15 to SC-20
  • Planners: all 12 notebooks
  • SemanticWeb: SW-1 to SW-7, SW-13
  • Tweety: Tweety-2 to Tweety-9

Test plan

  • All exercise cells parse without IndentationError or SyntaxError
  • Tweety download script retrieves 34/34 JARs from Maven Central v1.29
  • Lean-7b executes end-to-end with valid OpenAI API key
  • SmartContracts SC-18 and SC-19 execute successfully

Closes #288
Closes #289

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

jsboige and others added 9 commits April 19, 2026 13:06
Search Applications, Sudoku, and SymbolicAI notebooks had persistent
CRLF in working tree causing dirty status on Windows.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ase2-normalization

# Conflicts:
#	MyIA.AI.Notebooks/Search/Applications/Hybrid/App-10b-Portfolio-CSharp.ipynb
#	MyIA.AI.Notebooks/Search/Applications/Hybrid/App-17-VRP-Logistics.ipynb
#	MyIA.AI.Notebooks/Search/Applications/Hybrid/App-9b-EdgeDetection-CSharp.ipynb
#	MyIA.AI.Notebooks/Search/Applications/Search/App-14-ConnectFour-Adversarial.ipynb
#	MyIA.AI.Notebooks/Sudoku/Sudoku-0-Environment-Csharp.ipynb
#	MyIA.AI.Notebooks/Sudoku/Sudoku-1-Backtracking-Csharp.ipynb
#	MyIA.AI.Notebooks/Sudoku/Sudoku-10-ORTools-Csharp.ipynb
- Update SW-13 notebook to output pizza_test.owl and inferred turtle to data/
- Move existing pizza_test.owl to data/pizza_test.owl
- Prevents root directory pollution

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Replace `raise NotImplementedError("...")` with `pass  # TODO: ...` in
11 exercise cells across 6 notebooks (SW-13, Lean-7/7b/8/9/10). This
allows notebooks to execute without crashing while keeping exercises
clearly marked for students.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…oks (issue #288)

Replace `raise NotImplementedError(...)` with `pass  # TODO: ...` in
exercise cells across Planners (3), SmartContracts (11), and Tweety (5)
notebooks. This allows notebooks to execute without crashing while keeping
exercises clearly marked for students.

Also normalizes CRLF to LF per .gitattributes for SC-24/SC-25/SC-26.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…289)

Execute notebooks in Planners (10), SemanticWeb C# (7 + RDF.Net), and
SC-0 Cypherpunk Origins. All cells produce clean outputs, confirming
the environments work (Docker, dotnet 10, unified-planning).

Remaining blocked (need JPype JVM, Foundry/anvil, WSL+Lean):
- Tweety (10) - JPype jar missing
- SmartContracts SC-2 to SC-26 (11) - Foundry not installed
- Lean 7b/8/9 - WSL not configured

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

- Execute 27 SmartContracts notebooks (SC-0 to SC-26) with anvil
- Execute 2 Lean notebooks (Lean-8, Lean-9)
- Install Foundry dependencies (OpenZeppelin, forge-std, account-abstraction)
- Install xrpl-py for Ripple notebooks
- Merge execution outputs into source notebooks

Notebooks with exercise cells still failing as expected:
- SC-18 Vyper (exercise indentation)
- SC-19 Ripple-XRP (exercise indentation)
- Lean-7b (exercise cell)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Fix 24 exercise cells across 17 notebooks: remove orphaned string
  literals from incomplete normalization that caused IndentationError
- Preserve test comment lines after exercise cells
- Re-execute SC-18 (Vyper) and SC-19 (Ripple XRP) to verify fixes
- Merge new outputs into source notebooks
- Fix download_tweety_tools.py: use version 1.28 (1.29 not on Maven)

Closes #288

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
… v1.29

- Fix Lean-7b cell 36: unterminated string literal in comment
  ("\n".join reference was splitting across lines)
- Re-execute Lean-7b successfully with new OpenAI API key
- Merge execution outputs into source notebook
- Fix download_tweety_tools.py for Maven v1.29+ artifact naming:
  - Maven URL path: dots become slashes (arg.dung -> arg/dung)
  - JAR name: last segment only (dung-1.29.jar, not full qualified)
  - Fallback: try -with-dependencies first, then plain .jar
- Download 34/34 Tweety v1.29 JARs successfully

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

jsboige commented Apr 19, 2026

Copy link
Copy Markdown
Owner Author

Review ai-01 - CONFLICTING, rebase requis

Conflit sur MyIA.AI.Notebooks/SymbolicAI/Lean/Lean-7b-Examples.ipynb:

Tentative de resolution locale echouee (autocrlf + gitattributes sur machine Windows ai-01)

Action requise (po-2025):

  1. git fetch origin main
  2. git checkout feature/symbolicai-phase2-normalization
  3. git merge origin/main (ou rebase)
  4. Resoudre conflit Lean-7b-Examples.ipynb - garder la version de main (outputs frais de PR fix(SymbolicAI): Phase 2 execution + exercise normalization (#288, #290) #292)
  5. git push

Taille PR: 38k additions / 20k deletions sur ~60 notebooks (Tweety, Lean, Planners, SW C#, SmartContracts). Merge d'autant plus necessaire pour eviter divergence.

Priorite: basse (non-bloquant pour cours lundi 20/04), mais souhaitable avant fin de semaine.

@jsboige jsboige left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

LGTM — Normalize exercises + Tweety fix + 31 notebooks executés.

Scope massif (66 fichiers):

  • 19 SymbolicAI notebooks normalisés (pattern #288: pass # TODO: message)
  • Fix Tweety JAR download (Maven Central v1.29, plus de suffixe -with-dependencies)
  • Fix Lean-7b cell 36 (unterminated string literal)
  • 31 notebooks avec outputs mergés (Lean, SmartContracts, Planners, SemanticWeb, Tweety)

Progression #289:

  • Lean: exécutions OK (7b full, 8/9 partiels)
  • SmartContracts: Foundry/SC-2 a SC-26 (besoin setup Foundry)
  • Planners: 11/14 OK
  • SemanticWeb: OK
  • Tweety: fix JAR + exécutions

⚠️ CONFLICTING — nécessite rebase (5 PRs mergées sur main depuis l'ouverture).

Bon travail po-2025. Closes #288, avance significativement #289.

Re-executed Lean-9-SK-Multi-Agents with updated outputs (13/53 cells, 0 errors).
Lean-8 already had complete outputs from previous execution.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@myia-ai-01

Copy link
Copy Markdown
Collaborator

Review tour 7 (2026-04-19):

Status: CONFLICTING malgre merge c70c706. Main a avance (b1a66f2) depuis le merge 54a201d.

Contenu PR: 55+ fichiers SymbolicAI (Lean-7/7b/8/9/10, Planners 0-12, SemanticWeb SW-1 a 13, SmartContracts SC-0 a 26, Tweety-2 a 9). Scope bien delimite a phase2-normalization (issues #288/#289/#290).

Action requise:

  1. Rebase (ou nouveau merge) sur origin/main (HEAD b1a66f2)
  2. Verifier conflits sur Lean-9-SK-Multi-Agents.ipynb specifiquement (dernier commit c70c706 touche ce fichier)
  3. Re-executer notebooks modifies post-rebase pour valider outputs
  4. Si conflit sur .gitmodules: preserver la version de main (submodules deja geres par ai-01)

Ne merge pas: rebase + push, puis j'ajoute review finale.

Co-dispatch ai-01 tour 7.

@jsboige
jsboige merged commit ce90797 into main Apr 19, 2026
1 check passed
@jsboige
jsboige deleted the feature/symbolicai-phase2-normalization branch April 19, 2026 17:32
jsboige pushed a commit that referenced this pull request Apr 19, 2026
Remove 55 <details> solution cells that exposed complete exercise
answers across Search (49), SymbolicAI (3), and Sudoku (2) notebooks.

These solution cells were introduced by PR #303 (merge -X theirs)
which overwrote the clean pedagogical workflow. Exercise code cells
remain as "# A COMPLETER" with commented-out templates — students
must write their own solutions.

Notebooks affected:
- Search Part1: Search-2, 3, 4, 8, 9, 11
- Search Part2-CSP: CSP-1, 2, 3
- Search Applications: App-1, 3, 4, 5, 6, 7, 8, 11
- Sudoku: Sudoku-6 CSharp + Python
- SymbolicAI: Planners-2

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Apr 19, 2026
Remove 55 <details> solution cells that exposed complete exercise
answers across Search (49), SymbolicAI (3), and Sudoku (2) notebooks.

These solution cells were introduced by PR #303 (merge -X theirs)
which overwrote the clean pedagogical workflow. Exercise code cells
remain as "# A COMPLETER" with commented-out templates — students
must write their own solutions.

Notebooks affected:
- Search Part1: Search-2, 3, 4, 8, 9, 11
- Search Part2-CSP: CSP-1, 2, 3
- Search Applications: App-1, 3, 4, 5, 6, 7, 8, 11
- Sudoku: Sudoku-6 CSharp + Python
- SymbolicAI: Planners-2

Co-authored-by: NanoClaw Cluster Manager <nanoclaw-cluster@myia.io>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
jsboige pushed a commit that referenced this pull request Apr 20, 2026
Structural corruption from PR #303 (git merge -X theirs) placed exercise
cells AFTER conclusion/navigation sections in 44 notebooks. Students would
reach the end of the notebook without seeing the exercises.

Changes:
- Move exercise cells before the first ending marker (conclusion/nav/synthesis)
- Remove duplicate navigation/conclusion cells at the end
- Reset execution_count and clear outputs for moved code cells

Scope: 44 notebooks fixed across Search (Part1, Part2-CSP, Applications) and Sudoku.
All exercise cells now appear before the notebook's ending section.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Apr 20, 2026
…330)

Structural corruption from PR #303 (git merge -X theirs) placed exercise
cells AFTER conclusion/navigation sections in 44 notebooks. Students would
reach the end of the notebook without seeing the exercises.

Changes:
- Move exercise cells before the first ending marker (conclusion/nav/synthesis)
- Remove duplicate navigation/conclusion cells at the end
- Reset execution_count and clear outputs for moved code cells

Scope: 44 notebooks fixed across Search (Part1, Part2-CSP, Applications) and Sudoku.
All exercise cells now appear before the notebook's ending section.

Co-authored-by: NanoClaw Cluster Manager <nanoclaw-cluster@myia.io>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
myia-ai-01 pushed a commit that referenced this pull request Nov 9, 2026
…swap_limit + pids_limit) (#25118)

Un conteneur sans plafond peut reprendre toute la RAM de l'hote (32 Gio, partages avec le banc audio, ComfyUI et les builds WSL). Les bornes vont dans le compose et non dans un docker update : un update est perdu au premier recreate (consigne Maintenance#303).

- mem_limit = memswap_limit : le swap est plafonne a la RAM allouee, le service echoue franchement au lieu de gonfler l'hote
- pids_limit partout (128 a 512 selon la mesure docker stats du 2026-11-07)
- limites deplacees de deploy.resources.limits vers les cles service-level quand les deux formes coexistaient : compose v5 refuse le melange (can't set distinct values) et deploy.limits ne sait pas exprimer memory-swap
- plafonds existants conserves : whisper-api 4g, comfyui-qwen 28g, vllm-zimage 8g

Recreate annonce sur le dashboard workspace avant le geste, puis verifie par docker inspect.

Maintenance (jsboige/Maintenance#303)

Co-authored-by: Claude Sonnet 5.5 <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

2 participants