Skip to content

fix(security): strip probeAddresses banner from .NET notebooks - #2733

Merged
jsboige merged 3 commits into
mainfrom
fix/strip-probe-addresses
Jun 9, 2026
Merged

jsboige merged 3 commits into
mainfrom
fix/strip-probe-addresses

Conversation

@jsboige

@jsboige jsboige commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

See #2727 — Remove the probeAddresses JavaScript banner from .NET Interactive notebook outputs.

The banner is a display_data output emitted by .NET Interactive on kernel startup. It contains a JavaScript function (async function probeAddresses(probingAddresses)) that probes host network addresses. When persisted in notebook outputs, it leaks:

  • Local IPv4: 192.168.0.51, 172.25.160.1, 172.25.0.1, 127.0.0.1
  • IPv6 ULA: 2a01:e0a:9d4:f320:...
  • WSL vEthernet adapters: fe80::...
  • Listening ports: :2048, :2050

Changes

  • 51 source notebooks scrubbed across 7 series: Probas/Infer (20), Sudoku (12), Search (4), ML/ML.Net (3), SemanticWeb (5), Planners (1), GenAI/SemanticKernel (1), Linq2Z3 (1), Infer-101 (1), legacy (2)
  • Only the offending display_data output is removed from each notebook
  • No source code changes — only output cleanup
  • No markdown changes
  • execution_count and other legitimate outputs are preserved
  • Verification: grep -rl probeAddresses --include="*.ipynb" | grep -v _output | wc -l → 0

Families affected

Family Notebooks
Probas/Infer 20
Sudoku 12
Search 4
ML/ML.Net 3
SemanticWeb 5
GenAI/SemanticKernel 1
Other 6

Testing

  • grep -rl probeAddresses returns 0 matches in source notebooks
  • All 51 files parse as valid JSON after scrub
  • No H.3 violations introduced (spot-checked 10 files)
  • Diff is deletion-only on display_data output blocks

See #2727

jsboige and others added 2 commits June 9, 2026 15:33
)

Remove display_data outputs containing the probeAddresses JavaScript
function that leaks host IPv4/IPv6 addresses (192.168.x.x, IPv6 ULA,
WSL vEthernet adapters). The banner is emitted by .NET Interactive on
kernel startup and persisted in notebook outputs.

51 source notebooks affected across Probas/Infer, Sudoku, Search,
ML/ML.Net, SemanticWeb, Planners, and GenAI/SemanticKernel series.

No source code or markdown changes. Only the offending display_data
output is removed; execution_count and other outputs are preserved.

See #2727
Keeps COURSE_CATALOG.generated.json and CATALOG-STATUS markers in sync. See #2433.

Co-Authored-By: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Notebook PR Validation: PASS

  • Notebooks checked: 51
  • Code cells validated: 829
  • Result: All passed

Checks: H.1 (no errors), H.3 (execution_count), C.1 (no banned patterns)
Non-Python kernels (.NET/Lean): C.1 + errors only (execution_count advisory)
QuantConnect notebooks: C.1 + errors only (require QC Cloud for execution)

@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.

[NanoClaw]

Verified this is a clean, targeted security fix.

Security fix verification:

  • All 95 probeAddresses occurrences in the diff are on deletion lines only (prefixed -). Zero added.
  • Exactly 51 display_data blocks removed — one per affected notebook, each containing the full JS banner with leaked IPs/ports. Pattern is consistent: the probeAddresses() function + loadDotnetInteractiveApi() wrapper + all embedded host addresses (192.168.x.x, 172.x.x.x, 127.0.0.1, 2a01:e0a:..., fe80::..., ports :2048/:2050).
  • No new sensitive data introduced in any addition line (checked for IPs, credentials, API keys, private keys).

Notebook integrity:

  • execution_count fields untouched across all 51 notebooks — no outputs removed besides the banner.
  • No source code cells modified. Changes are strictly output-only deletion of display_data blocks.
  • All additions in notebooks are solely newline-at-EOF fixes (}\ → }\n), which is correct after removing trailing content.
  • No output_type other than display_data was removed (no stream or execute_result outputs touched).

Side changes (noted, not concerns):

  • COURSE_CATALOG.generated.json: metadata refresh — last_validation bumped to 2026-06-09, issue_pr_associee updated to #1455, #2730, RL notebook paths renumbered (renaming rl_5_* → rl_6_*, etc.). All cosmetic.
  • 6 README maturity counters bumped to reflect notebooks graduating from ALPHA/BETA to PRODUCTION — consistent with the cleanup.

Verdict: Clean LGTM. The fix is complete and surgical — only the offending .NET Interactive kernel banner is stripped, nothing else.

@jsboige
jsboige merged commit d2cf2ca into main Jun 9, 2026
jsboige added a commit that referenced this pull request Jun 9, 2026
* fix(security): strip probeAddresses banner from 51 .NET notebooks (#2727)

Remove display_data outputs containing the probeAddresses JavaScript
function that leaks host IPv4/IPv6 addresses (192.168.x.x, IPv6 ULA,
WSL vEthernet adapters). The banner is emitted by .NET Interactive on
kernel startup and persisted in notebook outputs.

51 source notebooks affected across Probas/Infer, Sudoku, Search,
ML/ML.Net, SemanticWeb, Planners, and GenAI/SemanticKernel series.

No source code or markdown changes. Only the offending display_data
output is removed; execution_count and other outputs are preserved.

See #2727

* chore(catalog): auto-regenerate catalog + README markers [skip ci]

Keeps COURSE_CATALOG.generated.json and CATALOG-STATUS markers in sync. See #2433.

Co-Authored-By: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* chore(catalog): restore generated catalogue + README CATALOG-STATUS markers to main (cron-only, #2632) [skip ci]

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: myia-ai-01 <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 13, 2026
…-up on #6364, See #6309)

Follow-up to the relative #r path fix: the nbconvert re-exec I did to PROVE
the relative #r paths resolve (the core deliverable of this PR) re-injected
the dotnet-interactive probeAddresses display_data banner with FRESH worker
network interface addresses (192.168.0.49, 2a01:e0a:9d4:f320:..., fe80::...).
Caught by po-2023's forensic §H.5 review of this PR (c.190). Firsthand-verified
(G.1): branch HEAD probe block != origin/main probe block — the re-exec
consecrated a refreshed leak, not the stale main one.

This strips the kernel-injected probe display_data from all 6 MGS notebooks,
preserving the re-exec outputs (which prove the #r fix) and removing ONLY the
banner. Same surgical pattern as #6312 (durable hook) / #6318 / #6327 / the
#6309 partition PRs — accepted #2733 precedent (output-only scrub of this
exact banner). Rule-6 / Stop & Repair compliant: the banner is kernel
infrastructure (JS bootstrap), NOT execution proof; re-exec RE-INJECTS it
(no dotnet-interactive flag suppresses it, verified firsthand #6309), so
output-side strip is the only durable path.

Verification (6/6 SAFE, byte-comparison vs branch HEAD before this commit):
- cells count preserved (25/28/25/36/26/18)
- banner display_data: 1 -> 0 in each
- real re-exec outputs preserved exactly (46->46, 121->121, 99->99, 120->120,
  52->52, 23->23) — the #r path proof is intact
- execution_count intact, source unchanged (#r relative paths still present)
- diff = pure deletions (0 insertions, 115 deletions each), CRLF=0, no BOM
- 0 remaining probe, 0 IP-leak lines across all 6

The #r relative-path fix (the PR's purpose) is untouched — only the incidental
re-exec probe noise is removed.

See #6309 (this PR's re-exec notebooks now join the cleaned set; the MGS
family was not in any prior partition PR).

Co-Authored-By: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 14, 2026
…notebooks (tranche 1/2) (#6369)

Tweety partition (tranche 1 of 2) of the #6309 probeAddresses epic. The dotnet-interactive
kernel injects a `probeAddresses` HTTP-bootstrap `display_data` (carrying the worker's
network interface list — LAN IPv4 192.168.x, WSL 172.x, link-local IPv6 fe80::, and the
host's public globally-routable IPv6 2a01:e0a:...) on the first executed code cell of every
.NET notebook. On a public repo this leaks the maintainer's internet-facing host addresses.

This strips the banner from 8 Tweety C# notebooks: Tweety-2/2b/2c + Tweety-3 series
(Basic-Logics/Advanced-Logics/Conditional-Logics/Dung/ModalLogic/QBF). Same surgical
output-only pattern as the other #6309 partition PRs (#6312 durable hook, #6318 ML, #6327
Sudoku, #6329 Search, #6333 CSP, #6335/#6336 GameTheory, #6338/#6339 Probas, #6356 Planners,
#6358 SMT, #6368 SymbolicLearning). Accepted #2733 precedent.

Tweety-10-MLN-Csharp is EXCLUDED from this tranche — it overlaps po-2023 #6362 (absolute #r
DLL path fix, disjoint cells). Kept separate to avoid any cross-PR interference. Tranche 2
(remaining 9 Tweety C#: 4-Aspic/4-Belief/5/6/7a/7b/8/9/11) is follow-up.

Rule-6 / Stop & Repair compliant (NOT a banned output scrub): the banner is kernel-injected
infrastructure (JS bootstrap that only acts inside a live kernel session), NOT a cell's
execution result. The kernel re-injects it on every re-exec and no dotnet-interactive flag
suppresses it (verified firsthand, #6309), so output-side strip at the commit gate is the
only durable path. Real outputs (stdout/figures/errors/execute_result) are untouched.

Validation (8/8 SAFE, byte-comparison vs origin/main):
- cells count preserved (no cells lost)
- banner display_data: 1 -> 0 in each notebook
- real outputs preserved exactly (15/42/24/18/8/31/22/8)
- execution_count intact on every cell, source unchanged (0 code cells source-changed)
- diff = pure deletions (0 insertions across all 8), CRLF=0, no BOM, trailing-newline preserved
- 0 remaining probeAddresses, 0 IP-leak lines across all 8

See #6309. Not `Closes` — the epic spans many partitions; this is one tranche.

Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 14, 2026
… notebooks (#6370)

Output-only surgical strip of kernel-injected probeAddresses display_data
from 5 SemanticWeb C# notebooks (SW-8-SHACL, SW-9-JSONLD, SW-10-RDFStar,
SW-11-KnowledgeGraphs, SW-13-Reasoners). The .NET Interactive kernel
auto-injects this HTML bootstrap containing the worker machine's live network
addresses (LAN IPv4, link-local IPv6, public IPv6) on the first kernel-setup
cell = SECURITY leak on a public repo.

Re-exec RE-INJECTS the probe deterministically (kernel HTTP-bootstrap), so
'fix cause + re-exec' cannot cure it. Cause-fix = pre-commit hook #6312
(open). Per-notebook output-block removal IS the accepted interim remediation
(#2733 merged precedent). This is a rule-6 exception (kernel-bootstrap noise,
not a code result): source + execution_count + all real outputs (stream,
execute_result, figures) preserved.

Validation (byte-forensic, 5/5 SAFE):
- banner 1->0 each, real outputs preserved (97->96, 50->49, 29->28, ...)
- exec_count intact ([1,2,3,...]), code cells unchanged (13/11/12/15/10)
- diff = PURE DELETIONS (575 deletions, 0 insertions), CRLF=0
- H.3 validator validate_pr_notebooks.py 5/5 PASS (61 code cells, .net-csharp)

Collision-checked firsthand: 0 open PRs touch these 5 files. My turf
(SymbolicAI/.NET partition). po-2024 active on Tweety tranche 2/2 (c.427),
not SemanticWeb.

See #6309 (partial partition of the 183-notebook probe leak; not full resolution).
Canonical durable stripper = #6312 (tests+hook+docs, pending merge).

Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 14, 2026
…earch/Applications C# notebooks (#6309) (#6371)

* fix(security): strip probeAddresses network-address leak from 4 Search/Applications notebooks

Output-only surgical removal of .NET Interactive kernel-bootstrap banner
(probeAddresses / $CACHE_BUSTER$ / loadDotnetInteractiveApi display_data blocks)
that leaked network-probing addresses (IPv6 link-local fe80::, router 172.x) into
committed notebook outputs.

4 notebooks (Search/Applications tranche 1 of ~18):
- Search/App-12-ConnectFour-CSharp.ipynb
- Search/App-14-ConnectFour-Adversarial-CSharp.ipynb
- Hybrid/App-13b-TSP-Metaheuristics-CSharp.ipynb
- Hybrid/App-18b-HyperparameterTuning-CSharp.ipynb

Per #2733 (rule-6 exception): kernel-injected banner re-injects on every re-exec,
so output-side strip is the accepted interim; durable fix = pre-commit hook #6312.

Surgical guarantees (C475-L1 per-file round-trip byte-identity):
- src_changed=0/4 (NO source touched — output-only)
- execution_count preserved on all 48 code cells
- real outputs (stream/execute_result/error) preserved equal — 0 real content lost
- display_data delta=1/nb (exactly 1 probe block removed; App-13b keeps 31 real figures)
- 0 probe signatures remaining, 0 network tokens in outputs (C487-L1)
- ensure_ascii + trailing-newline auto-matched per file (App-13b = escaped unicode, no trailing nl)

H.3 validator: 4/4 PASS

See #6309 (partial — Search/Applications tranche 1, 4/~18 notebooks)

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

* fix(security): strip probeAddresses leak from App-17b-VRP-Logistics-Csharp (5th Search/Applications twin)

Completes the Search/Applications C# twin set (5/5). App-17b was missed in the
initial tranche (case typo CSharp vs Csharp). Same output-only surgical strip
of the .NET Interactive kernel-bootstrap banner (probeAddresses / $CACHE_BUSTER$)
that leaked live network addresses: IPv6 globals 2a01:e0a:9d4:f320:..., LAN
192.168.0.46 / 172.23.208.1 / 172.26.208.1, link-local fe80::.

Surgical (C475-L1 round-trip byte-identity, ensure_ascii=False trailing-nl=True):
- src_changed=0, ec preserved (13 code cells), cells 30=30
- real outputs preserved (0 stream/execute_result), display_data 55→54 (probe only, 54 real VRP figures kept)
- 0 probe signatures remaining, 0 network tokens in outputs (C487-L1)
- H.3 validator 1/1 PASS

See #6309 (Search/Applications — 5/5 C# twins complete)

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

---------

Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 14, 2026
…notebooks (#6373)

Output-only surgical strip of kernel-injected probeAddresses display_data
from 7 Search C# notebooks (Search-9/10/11/12/13/14/15-Csharp, Part1-Foundations
+ Part3-Advanced main series). The .NET Interactive kernel auto-injects this
HTML bootstrap containing the worker machine's live network addresses (LAN IPv4,
link-local IPv6, public IPv6) on the first kernel-setup cell = SECURITY leak.

Re-exec RE-INJECTS the probe deterministically (kernel HTTP-bootstrap), so
'fix cause + re-exec' cannot cure it. Cause-fix = pre-commit hook #6312 (open).
Per-notebook output-block removal IS the accepted interim remediation (#2733
merged precedent). Rule-6 exception (kernel-bootstrap noise, not a code result):
source + execution_count + all real outputs preserved.

Validation (byte-forensic, 7/7 SAFE):
- banner 1->0 each, real outputs preserved (delta -1 = only probe each)
- exec_count intact, code cells unchanged (8/14/15/13/8/7/9)
- diff = PURE DELETIONS (805 deletions, 0 insertions), CRLF=0
- H.3 validator validate_pr_notebooks.py 7/7 PASS (74 code cells, .net-csharp)

Collision-checked firsthand: 0 open PRs touch these 7 files. #6341 = Python
twin Search-11 (pip-leak, different file). Search-.NET = po-2023 partition.

See #6309 (partial partition of the 183-notebook probe leak; not full resolution).
Canonical durable stripper = #6312 (tests+hook+docs, pending merge).

Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 14, 2026
…notebooks (tranche 2/2) (#6375)

Tweety partition tranche 2/2 of the #6309 probeAddresses epic. The dotnet-interactive
kernel injects a `probeAddresses` HTTP-bootstrap `display_data` (carrying the worker's
network interface list — LAN IPv4 192.168.x, WSL 172.x, link-local IPv6 fe80::, and the
host's public globally-routable IPv6 2a01:e0a:...) on the first executed code cell of every
.NET notebook. On a public repo this leaks the maintainer's internet-facing host addresses.

This strips the banner from the remaining 9 Tweety C# notebooks: Tweety-4-Aspic/
4-Belief-Revision/5-Abstract-Argumentation/6-Structured-Argumentation/7a-Extended-Frameworks/
7b-Ranking-Probabilistic/8-Agent-Dialogues/9-Preferences/11-Causal. Completes the Tweety
subfolder (c.427 tranche 1/2 did the other 8: 2/2b/2c + 3-series). Same surgical output-only
pattern as the other #6309 partition PRs (#6312 durable hook, #6318 ML, #6327 Sudoku,
#6329 Search, #6333 CSP, #6335/#6336 GameTheory, #6338/#6339 Probas, #6356 Planners,
#6358 SMT, #6368 SymbolicLearning, #6369 Tweety T1, #6370 SemanticWeb). Accepted #2733
precedent.

Tweety-10-MLN-Csharp remains EXCLUDED — it overlaps po-2023 #6362 (absolute #r DLL path
fix, disjoint cells). Kept separate to avoid any cross-PR interference.

Rule-6 / Stop & Repair compliant (NOT a banned output scrub): the banner is kernel-injected
infrastructure (JS bootstrap that only acts inside a live kernel session), NOT a cell's
execution result. The kernel re-injects it on every re-exec and no dotnet-interactive flag
suppresses it (verified firsthand, #6309), so output-side strip at the commit gate is the
only durable path. Real outputs (stdout/figures/errors/execute_result) are untouched.

Validation (9/9 SAFE, byte-comparison vs origin/main):
- cells count preserved (no cells lost)
- banner display_data: 1 -> 0 in each notebook
- real outputs preserved exactly (28/23/12/10/10/9/21/196/34)
- execution_count intact on every cell, source unchanged (0 code cells source-changed)
- diff = pure deletions (0 insertions across all 9 — trailing-newline state preserved),
  CRLF=0, no BOM
- 0 remaining probeAddresses, 0 IP-leak lines across all 9

See #6309. Not `Closes` — the epic spans many partitions; this is the Tweety-completing tranche.

Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 14, 2026
… (Search/Part4-Metaheuristics) (#6376)

Search/Part4-Metaheuristics partition of the #6309 probeAddresses epic. The dotnet-interactive
kernel injects a `probeAddresses` HTTP-bootstrap `display_data` (carrying the worker's network
interface list — LAN IPv4 192.168.x, WSL 172.x, link-local IPv6 fe80::, and the host's public
globally-routable IPv6 2a01:e0a:...) on the first executed code cell of every .NET notebook.
On a public repo this leaks the maintainer's internet-facing host addresses.

This strips the banner from the 9 MGS notebooks in Search/Part4-Metaheuristics that carry it:
MGS-7-TSP / 8-LandscapeExplorer / 10-CenterBias / 11-IslandSynergy / 12-AxisAlignment /
13-LandscapeDebias / 14-IslandSynergyFound / 15-LandscapeAnalysis / 19-MetropolisReinsertion.
(MGS-9-EverestRelief / 16-AlgorithmSelection / 17-ParameterControl / 18-CecBanc have no probe
banner — not modified.) MGS-1..6 are handled by #6364 (relative #r paths + probe strip, OPEN).
Same surgical output-only pattern as the other #6309 partition PRs (#6312 durable hook, #6318 ML,
#6327 Sudoku, #6329 Search-Part1, #6333 CSP, #6335/#6336 GameTheory, #6338/#6339 Probas,
#6356 Planners, #6358 SMT, #6368 SymbolicLearning, #6369 Tweety T1, #6370 SemanticWeb,
#6375 Tweety T2). Accepted #2733 precedent.

Rule-6 / Stop & Repair compliant (NOT a banned output scrub): the banner is kernel-injected
infrastructure (JS bootstrap that only acts inside a live kernel session), NOT a cell's execution
result. The kernel re-injects it on every re-exec and no dotnet-interactive flag suppresses it
(verified firsthand, #6309), so output-side strip at the commit gate is the only durable path.
Real outputs (stdout/figures/errors/execute_result) are untouched.

Validation (9/9 SAFE, byte-comparison vs origin/main):
- cells count preserved (no cells lost)
- banner display_data: 1 -> 0 in each notebook
- real outputs preserved exactly (42/50/64/21/52/18/50/37/53)
- execution_count intact on every cell, source unchanged (0 code cells source-changed)
- diff = pure deletions (0 insertions across all 9 — trailing-newline state preserved),
  CRLF=0, no BOM
- 0 remaining probeAddresses, 0 IP-leak lines across all 9

See #6309. Not `Closes` — the epic spans many partitions; this is the Part4-Metaheuristics tranche.

Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 14, 2026
…otebooks (#6378)

Output-only surgical strip of the .NET Interactive probeAddresses
kernel-bootstrap banner from 18 SymbolicAI/SMT/Z3 Linq2Z3 notebooks
(01_Linq2Z3_Intro .. 18_Einsteins_Riddle). Removes the worker machine
live network-address leak (LAN IPv4 / link-local IPv6 / public IPv6)
auto-injected by the kernel on first setup cell.

Rule-6 exception (kernel-bootstrap noise, not a code result): source +
execution_count + all real outputs preserved (outputs delta -1 each =
only probe display_data removed). Precedent #2733. Durable cause-fix =
pre-commit hook #6312.

Validation (byte-forensic, 18/18 SAFE): probe display_data 1->0 each,
exec_count intact, real outputs preserved, diff +1/-2072 (the +1 =
trailing-newline normalization on one file, cosmetic), CRLF=0, H.3
validator 18/18 PASS (.net-csharp).

G.1 anti-collision: Z3-Python twins (6) COVERED by #6358; this tranche
= the 18 Linq2Z3 main-series UNCLAIMED. SMT-.NET = po-2023 partition.

See #6309. Related: #6312 (canonical stripper), #2733 (merged precedent).

Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 14, 2026
…ecInfer notebooks (#6379)

Probas/DecisionTheory/DecInfer partition of the #6309 probeAddresses epic. The dotnet-interactive
kernel injects a `probeAddresses` HTTP-bootstrap `display_data` (carrying the worker's network
interface list — LAN IPv4 192.168.x, WSL 172.x, link-local IPv6 fe80::, and the host's public
globally-routable IPv6 2a01:e0a:...) on the first executed code cell of every .NET notebook.
On a public repo this leaks the maintainer's internet-facing host addresses.

This strips the banner from 5 Probas/DecisionTheory/DecInfer notebooks: DecInfer-1-Utility-Foundations /
3-Utility-Money / 5-Decision-Networks / 7-Expert-Systems / 8-Sequential. Same surgical output-only
pattern as the other #6309 partition PRs (#6312 durable hook, #6318 ML, #6327 Sudoku, #6329 Search-Part1,
#6333 CSP, #6335/#6336 GameTheory, #6338/#6339 Probas, #6356 Planners, #6358 SMT, #6368 SymbolicLearning,
#6369 Tweety T1, #6370 SemanticWeb, #6375 Tweety T2, #6376 MGS). Accepted #2733 precedent.

Rule-6 / Stop & Repair compliant (NOT a banned output scrub): the banner is kernel-injected
infrastructure (JS bootstrap that only acts inside a live kernel session), NOT a cell's execution
result. The kernel re-injects it on every re-exec and no dotnet-interactive flag suppresses it
(verified firsthand, #6309), so output-side strip at the commit gate is the only durable path.
Real outputs (stdout/figures/errors/execute_result) are untouched.

Validation (5/5 SAFE, byte-comparison vs origin/main):
- cells count preserved (no cells lost)
- banner display_data: 1 -> 0 in each notebook
- real outputs preserved exactly (76/225/150/151/195)
- execution_count intact on every cell, source unchanged (0 code cells source-changed)
- diff = pure deletions (0 insertions across all 5 — trailing-newline state preserved),
  CRLF=0, no BOM
- 0 remaining probeAddresses, 0 IP-leak lines across all 5

See #6309. Not `Closes` — the epic spans many partitions; this is the DecInfer tranche.

Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 14, 2026
…t1-Foundations notebooks (#6384)

Search partition of the #6309 probeAddresses epic. The dotnet-interactive kernel
injects a `probeAddresses` HTTP-bootstrap `display_data` (carrying the worker's
network interface list — LAN IPv4 192.168.x, WSL 172.x, link-local IPv6 fe80::,
and the host's public globally-routable IPv6 2a01:e0a:...) on the first executed
code cell of every .NET notebook. On a public repo this leaks the maintainer's
internet-facing host addresses.

This strips the banner from 5 Search/Part1-Foundations notebooks:
Search-11b-Metaheuristiques-Deep (Part1/2/3/4) + Search-16-QuikGraph. Same surgical
output-only pattern as the other #6309 partition PRs (#6312 durable hook, #6318 ML,
#6327 Sudoku, #6329 Search-Part1, #6333 CSP, #6335/#6336 GameTheory, #6338/#6339
Probas, #6356 Planners, #6358 SMT, #6368 SymbolicLearning, #6369 Tweety T1,
#6370 SemanticWeb, #6375 Tweety T2, #6376 MGS, #6379 DecInfer). Accepted #2733 precedent.

Rule-6 / Stop & Repair compliant (NOT a banned output scrub): the banner is
kernel-injected infrastructure (JS bootstrap that only acts inside a live kernel
session), NOT a cell's execution result. The kernel re-injects it on every re-exec
and no dotnet-interactive flag suppresses it (verified firsthand, #6309), so
output-side strip at the commit gate is the only durable path. Real outputs
(stdout/figures/errors/execute_result) are untouched.

Validation (5/5 SAFE, byte-comparison vs origin/main):
- cells count preserved (no cells lost): 19/22/24/23/25
- banner display_data: 1 -> 0 in each notebook
- real outputs preserved exactly (8/9/39/27/48)
- execution_count intact on every cell, source unchanged (0 code cells source-changed)
- diff = pure deletions (575 deletions, 0 insertions across all 5 — trailing-newline
  state preserved), CRLF=0, no BOM
- 0 remaining probeAddresses / IP-leak lines across all 5

See #6309. Not `Closes` — the epic spans many partitions; this is the Search/Part1
tranche.

Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 14, 2026
…Theory/SocialChoice notebooks (#6385)

GameTheory/SocialChoice partition of the #6309 probeAddresses epic. The dotnet-interactive
kernel injects a `probeAddresses` HTTP-bootstrap `display_data` (carrying the worker's
network interface list — LAN IPv4 192.168.x, WSL 172.x, link-local IPv6 fe80::, and the
host's public globally-routable IPv6 2a01:e0a:...) on the first executed code cell of every
.NET notebook. On a public repo this leaks the maintainer's internet-facing host addresses.

This strips the banner from the 3 SocialChoice notebooks (the residual unclaimed GT tranche —
the other 21 GameTheory notebooks are covered by #6335/#6336): 01-Arrow-Impossibility-Theorem,
03-Voting-Methods, 04-Computational-Aggregation-SAT-Z3. Same surgical output-only pattern as
the other #6309 partition PRs (#6312 durable hook, #6318 ML, #6327 Sudoku, #6329 Search-Part1,
#6333 CSP, #6335/#6336 GameTheory, #6338/#6339 Probas, #6356 Planners, #6358 SMT, #6368
SymbolicLearning, #6369 Tweety T1, #6370 SemanticWeb, #6375 Tweety T2, #6376 MGS, #6379
DecInfer, #6384 Search-Part1-metaheuristics). Accepted #2733 precedent.

Rule-6 / Stop & Repair compliant (NOT a banned output scrub): the banner is kernel-injected
infrastructure (JS bootstrap that only acts inside a live kernel session), NOT a cell's
execution result. The kernel re-injects it on every re-exec and no dotnet-interactive flag
suppresses it (verified firsthand, #6309), so output-side strip at the commit gate is the only
durable path. Real outputs (stdout/figures/errors/execute_result) are untouched.

Validation (3/3 SAFE, byte-comparison vs origin/main):
- cells count preserved (no cells lost): 30/26/33
- banner display_data: 1 -> 0 in each notebook
- real outputs preserved exactly (62/116/86)
- execution_count intact on every cell, source unchanged (0 code cells source-changed)
- diff = pure deletions (345 deletions, 0 insertions across all 3 — trailing-newline state
  preserved), CRLF=0, no BOM
- 0 remaining probeAddresses / IP-leak lines across all 3

See #6309. Not `Closes` — the epic spans many partitions; this is the SocialChoice tranche
(completes GameTheory family probe remediation: 21 prior + 3 here = 24/24).

Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 14, 2026
…cations/CSP C# notebooks — completes CSP family (#6386)

Search/Applications/CSP partition of the #6309 probeAddresses epic — the last large
unclaimed tranche. The dotnet-interactive kernel injects a `probeAddresses` HTTP-bootstrap
`display_data` (carrying the worker's network interface list — LAN IPv4 192.168.x, WSL 172.x,
link-local IPv6 fe80::, and the host's public globally-routable IPv6 2a01:e0a:...) on the
first executed code cell of every .NET notebook. On a public repo this leaks the maintainer's
internet-facing host addresses.

This strips the banner from all 13 CSP C# notebooks (the `-CSharp`/`-Csharp` twins): App-1b
NQueens, App-2b GraphColoring, App-3b NurseScheduling, App-4b JobShopScheduling, App-5
Timetabling, App-6 Minesweeper, App-7b Wordle, App-8 MiniZinc, App-11b Picross, App-15b
SportsScheduling, App-16 Crossword-CSP, App-19 ProceduralGeneration-WFC, App-20b
SudokuBenchmark. The 13 Python twins (no `-CSharp` suffix) do NOT carry the banner (defect
is .NET Interactive-specific) and are untouched.

Same surgical output-only pattern as the other #6309 partition PRs (#6312 durable hook, #6318
ML, #6327 Sudoku, #6329 Search-Part1, #6333 Part2-CSP, #6335/#6336 GameTheory, #6338/#6339
Probas, #6356 Planners, #6358 SMT, #6368 SymbolicLearning, #6369 Tweety T1, #6370
SemanticWeb, #6375 Tweety T2, #6376 MGS, #6379 DecInfer, #6384 Search-Part1-metaheuristics,
#6385 SocialChoice). Accepted #2733 precedent.

Rule-6 / Stop & Repair compliant (NOT a banned output scrub): the banner is kernel-injected
infrastructure (JS bootstrap that only acts inside a live kernel session), NOT a cell's
execution result. The kernel re-injects it on every re-exec and no dotnet-interactive flag
suppresses it (verified firsthand, #6309), so output-side strip at the commit gate is the only
durable path. Real outputs (stdout/figures/errors/execute_result) are untouched.

Validation (13/13 SAFE, byte-comparison vs origin/main):
- cells count preserved per notebook (no cells lost)
- banner display_data: 1 -> 0 in each notebook
- real outputs preserved exactly (26/243/27/39/35/25/47/19/20/122/312/229/119)
- execution_count intact on every cell, source unchanged (0 code cells source-changed)
- diff = pure deletions (1495 deletions, 0 insertions; uniform 115 lines/banner × 13),
  LF line endings preserved (origin LF, output LF — the embedded \r\n are literal strings
  inside the deleted banner HTML, not a line-ending flip), no BOM
- 0 remaining probeAddresses / IP-leak lines across all 13

See #6309. Not `Closes` — the epic spans many partitions; this is the CSP tranche (completes
Search/Applications probe remediation with #6333 Part2-CSP + this Applications/CSP).

Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 14, 2026
…ty + source-leak) (#6362)

Tweety-10-MLN-Csharp cell[1] hardcoded #r "C:\dev\CoursIA-2\...\tweety-mln.dll"
= source-leak (machine path) + portability defect (CS0006 on any machine where
repo isn't at C:\dev\CoursIA-2). Sole outlier: 1/923 notebooks with absolute #r;
all 11 sibling Tweety-Csharp use relative #r "org.tweetyproject.tweety-*.dll".

Fix: #r "org.tweetyproject.tweety-mln.dll" (relative, DLL in-repo at same dir).

Re-exec PROOF (nbconvert .net-csharp, in-place CWD): IKVM home=OK + DLL MLN
reference chargee -> relative path resolves. exec_count=1, H.3 PASS, cells
changed=[1] only, 0 CRLF, +8/-13.

Incidental: re-exec re-injected probeAddresses kernel-bootstrap (kernel-injected,
not source); stripped per #2733 precedent (rule-6 exception). Cause-fix = hook
#6312. Primary fix = portability/source-leak class C.

See #6309 (incidental probe); primary = portability fix.

Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 14, 2026
… (MGS-1..6) (#6364)

* fix(mgs): replace absolute #r DLL paths with relative submodule paths (MGS-1..6)

MGS-1..6 notebooks (Search/Part4-Metaheuristics) used absolute machine paths in
their #r directives:
  #r "c:/dev/MetaGeneticSharp/src/MetaGeneticSharp.Domain/bin/Debug/net9.0/*.dll"

Two defects:
1. Source-leak: "c:/dev/MetaGeneticSharp" is the worker's local clone path
   (machine topology exposed in a public repo).
2. Portability: the absolute path fails on any other machine or CI. The
   MetaGeneticSharp submodule is in-repo at Search/MetaGeneticSharp/, so the
   correct path from Part4-Metaheuristics/ is relative: ../MetaGeneticSharp/...

Fix: replace c:/dev/MetaGeneticSharp/ -> ../MetaGeneticSharp/ in all #r lines
(+ the "Build prerequisite" comment). Scope: MGS-1 through MGS-6 (6 notebooks,
coherent intro set; MGS-7..19 follow-up).

Honest re-exec (rule F + H.2): the submodule was uninitialized, so the relative
#r would not resolve. Ran:
  git submodule update --init --recursive Search/MetaGeneticSharp
  dotnet build src/MetaGeneticSharp.Domain + Extensions (-c Debug, 0 errors)
then re-executed all 6 notebooks via jupyter nbconvert --execute --inplace
(.NET Interactive kernel, cwd=Part4-Metaheuristics for relative-path resolution).
All 6 executed successfully (0 errors, 0 leaked paths in outputs, exec_count set,
H.3 compliant). Outputs are the genuine re-execution results, not hand-edited
(rule 6).

Verification (scratchpad/verify_mgs_relr.py): src_leak=0, out_leak=0,
null_exec_with_outputs=0, errors=0 across all 6. CRLF=0 (byte-verified, LF only).

Diff: 6 files, +613/-539 (output regeneration from re-exec is expected churn;
the #r source change is the substantive delta).

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

* fix(security): strip re-injected probeAddresses from MGS-1..6 (follow-up on #6364, See #6309)

Follow-up to the relative #r path fix: the nbconvert re-exec I did to PROVE
the relative #r paths resolve (the core deliverable of this PR) re-injected
the dotnet-interactive probeAddresses display_data banner with FRESH worker
network interface addresses (192.168.0.49, 2a01:e0a:9d4:f320:..., fe80::...).
Caught by po-2023's forensic §H.5 review of this PR (c.190). Firsthand-verified
(G.1): branch HEAD probe block != origin/main probe block — the re-exec
consecrated a refreshed leak, not the stale main one.

This strips the kernel-injected probe display_data from all 6 MGS notebooks,
preserving the re-exec outputs (which prove the #r fix) and removing ONLY the
banner. Same surgical pattern as #6312 (durable hook) / #6318 / #6327 / the
#6309 partition PRs — accepted #2733 precedent (output-only scrub of this
exact banner). Rule-6 / Stop & Repair compliant: the banner is kernel
infrastructure (JS bootstrap), NOT execution proof; re-exec RE-INJECTS it
(no dotnet-interactive flag suppresses it, verified firsthand #6309), so
output-side strip is the only durable path.

Verification (6/6 SAFE, byte-comparison vs branch HEAD before this commit):
- cells count preserved (25/28/25/36/26/18)
- banner display_data: 1 -> 0 in each
- real re-exec outputs preserved exactly (46->46, 121->121, 99->99, 120->120,
  52->52, 23->23) — the #r path proof is intact
- execution_count intact, source unchanged (#r relative paths still present)
- diff = pure deletions (0 insertions, 115 deletions each), CRLF=0, no BOM
- 0 remaining probe, 0 IP-leak lines across all 6

The #r relative-path fix (the PR's purpose) is untouched — only the incidental
re-exec probe noise is removed.

See #6309 (this PR's re-exec notebooks now join the cleaned set; the MGS
family was not in any prior partition PR).

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

---------

Co-authored-by: Claude-Code <noreply@anthropic.com>
myia-po-2023 pushed a commit that referenced this pull request Aug 11, 2026
…y (native-both)

Two CI gate fixes for PR #10385 (tranche 2 IKVM/ASPIC+):

1. probeAddresses banner guard: the .NET Interactive kernel auto-injects a
   display_data (text/html) HTTP-bootstrap script (probeAddresses([...]))
   on the first #r "nuget: IKVM" cell. Applied strip_probe_banner.py --apply
   (rule-6 exception: kernel-injected, re-exec re-injects; the tool is the
   canonical remediation per #2733/#6312). Banner stripped, source + exec_count
   + stream outputs + Installed Packages display_data preserved. Scan = 0 banner.

2. Twin parity audit (#8057): the tranche-2 addition changed the Tweety-6-Csharp
   blob SHA, invalidating the 2026-08-04 attestation. Re-attested via
   check_twin_parity.py --update (in LAST position, after all stripping, per #8957).
   parity_level: surface -> native-both (both sides now load the real Tweety lib:
   Python via JPype, C# via IKVM tranche 2). known_differences rewritten to state
   the 3-way parity proven firsthand (C# from-scratch <=> C# IKVM <=> Python JPype).

Local gate recheck: banner scan 0, twin parity per-pair 157 OK 0 drift,
nbformat OK, H.3 0, C.1 0, path-leak 0.

Co-Authored-By: Claude <noreply@anthropic.com>
myia-ai-01 pushed a commit that referenced this pull request Aug 11, 2026
…KVM/Tweety lib (#10385)

* feat(tweety,#10381): Tweety-6 C# tranche 2 — ASPIC+ parity via real IKVM/Tweety lib

Add "Tranche 2" to Tweety-6-Structured-Argumentation-Csharp.ipynb: the ASPIC+
example from section 3 (contradiction on d: axioms b,c + rules b,c => a,
b => d, a => !d) re-executed against the REAL Tweety library (Java) via the
IKVM bridge, instead of being carried by a prose parity note.

Tranche 1 (the hand-written from-scratch ASPIC+ engine, sections 1-3) is
preserved byte-identical. The IKVM tranche is appended after the synthese
cell (index 13) and before the Exercises, mirroring the Tweety-5-Csharp
gabarit (tranche 1 from-scratch THEN tranche 2 lib).

Content (3 markdown + 5 code cells, all executed, French-first):
- #r nuget IKVM 8.15.0 + IKVM.Home setup (ikvm-home-8.15.0-win-x64, tzdb.dat OK)
- #r "org.tweetyproject.tweety-aspic.dll" (already-committed DLL, 8.0 Mo,
  loaded successfully by Tweety-4-Aspic too) + metadata verification
- AspicArgumentationTheory + PlFormulaGenerator: rebuild the section-3 theory
  via DefeasibleInferenceRule + Proposition/Negation
- asDungTheory() + 3 Dung semantics (SimpleGrounded/Preferred/StableReasoner)

Parity PROVEN firsthand (3-way convergence):
- C# from-scratch (tranche 1, section 3): 5 args, 2 symmetric attacks
  (b=>d vs a=>!d), grounded excludes both attacked args
- C# IKVM (this tranche 2): IDENTICAL output
    ArgumentationSystem [rules=[ -> c, -> b, b,c => a, b => d, a => !d]]
    nb arguments = 5
    attaques = [(b => d, a => !d), (a => !d, b => d)]  (symmetric rebuttal)
    grounded = { -> b, -> c, b,c => a}
    preferred/stable = 2 extensions (two worlds: b=>d survives OR a=>!d)
- Python jpype (jumeau Tweety-6 section 4.2): same theory, same grounded set
Three engines converge on the same AAF.

Verdict SOTA: SOTA-OK — the real Tweety library is properly invoked via IKVM;
the committed output IS its real output. Zero DLL to produce for this notebook
(tweety-aspic.dll already committed + already loaded by Tweety-4-Aspic).

G.1 firsthand: 0 PR touches Tweety-6 (collision-guard file-path on Tweety-6
before claim). The DLL works locally (kernel .net-csharp + dotnet-interactive
present; IKVM init OK; the same DLL powers Tweety-4-Aspic with real outputs).

C.2: all 5 added code cells executed (ec=8..12), real stream outputs
committed. Existing exercice ec bumped 8/9/10 -> 13/14/15. Anti-regression:
tranche 1 byte-identical (diff +406/-3, the -3 are only the 3 bumped ec).
H.3: 0 fail. C.1: 0 (no voluntary error). path-leak: 0. nbformat.validate OK.

Grain: DEEP/notebook-dotnet CONTENT — lane myia-po-2023:CoursIA-2 —
prev: DEEP/research-code #10379 (Argumentum cards). R6: register pivot from
C.4-markdown to substantive .NET IKVM bridge code (Prong-A SOTA: wire the real
engine instead of prose parity), family Tweety (inédit this cycle). See #10381
(partial — Tweety-6 done, 7a/8/11 remain). See #4956 (epic parity .NET<=>Python).

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

* fix(tweety,#10381): strip probeAddresses banner + reattest twin parity (native-both)

Two CI gate fixes for PR #10385 (tranche 2 IKVM/ASPIC+):

1. probeAddresses banner guard: the .NET Interactive kernel auto-injects a
   display_data (text/html) HTTP-bootstrap script (probeAddresses([...]))
   on the first #r "nuget: IKVM" cell. Applied strip_probe_banner.py --apply
   (rule-6 exception: kernel-injected, re-exec re-injects; the tool is the
   canonical remediation per #2733/#6312). Banner stripped, source + exec_count
   + stream outputs + Installed Packages display_data preserved. Scan = 0 banner.

2. Twin parity audit (#8057): the tranche-2 addition changed the Tweety-6-Csharp
   blob SHA, invalidating the 2026-08-04 attestation. Re-attested via
   check_twin_parity.py --update (in LAST position, after all stripping, per #8957).
   parity_level: surface -> native-both (both sides now load the real Tweety lib:
   Python via JPype, C# via IKVM tranche 2). known_differences rewritten to state
   the 3-way parity proven firsthand (C# from-scratch <=> C# IKVM <=> Python JPype).

Local gate recheck: banner scan 0, twin parity per-pair 157 OK 0 drift,
nbformat OK, H.3 0, C.1 0, path-leak 0.

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

* fix(tweety,#10385): re-attest twin parity SHA (post-strip blob drift)

The previous strip+attest cycle (#ae770ec6) recorded the pre-strip blob SHA
(171e603...) but the actual current blob is 2d31663... (the banner strip
replaced the text/html output in the cell, moving the blob). Re-ran
check_twin_parity.py --update to record the post-strip state. Drift now 0/157.

This is a twin-parity attestation, not a substance change: the notebook
content is byte-identical to the committed state. The twin parity audit gate
(#8057) will go green on the next run.

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

---------

Co-authored-by: jsboige <jsboige@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Aug 11, 2026
…ected)

Re-exec of the IKVM Tranche 2 cells re-injected the dotnet-interactive
kernel bootstrap HTML carrying live machine network addresses (IPv6
link-local fe80::, LAN 192.168.0.46, 172.x Docker subnets). This is the
sanctioned rule-6 exception (#6312 strip_probe_banner, precedent #2733):
kernel-injected, re-exec re-injects, output-only strip preserves source
+ exec_count + real outputs.

Co-Authored-By: Claude <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Aug 11, 2026
…cted)

Re-exec of the QuikGraph Tranche 2 cells re-injected the dotnet-interactive
kernel bootstrap HTML carrying live machine network addresses (IPv6
link-local fe80::, LAN 192.168.0.46, 172.x Docker subnets). Sanctioned
rule-6 exception (#6312 strip_probe_banner, precedent #2733): kernel-
injected, re-exec re-injects, output-only strip preserves source +
exec_count + real outputs.

Co-Authored-By: Claude <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Aug 11, 2026
…E (pont IKVM attend .m2) (#10410)

* fix(tweety,#10381): Tranche 2 lib-vs-lib rework — Dung SOTA-OK + ADF scoped verdict

ai-01 CHANGES_REQUESTED on prior #10410: the RECOVERABLE-MACHINE verdict was
correctly rejected for arg.dung/arg.adf — both ARE in the committed
conditional-logics.dll fat shade (125 arg.adf types, verified firsthand via
UTF-16LE extraction, not binary grep which false-zeros on .NET DLL metadata).

Tranche 2 (gabarit Tweety-6, 3 cells before Conclusion, EXEC_PROVED):
- IKVM bootstrap pinned to 8.14.0 (matches DLL build ref -> 0 CS1701 warnings).
- Dung = SOTA-OK: SimpleGroundedReasoner computes grounded extension {a,c}
  on a->b, b->c (real Tweety algorithm, committed output).
- ADF = library loaded (125 types: 15 acceptance conditions + 59 SAT-reasoner
  types). Reasoner SAT backend probed firsthand: NativeMinisatSolver ->
  UnsatisfiedLinkError under IKVM (native IncrementalSatSolver not bound).

Verdict split (conclusion cell):
- Dung + ADF syntax: SOTA-OK.
- ADF reasoner SAT semantics + 5 absent modules (bipolar/setaf/weighted/
  social/extended): RECOVERABLE-MACHINE -> #10411.
No permanent known_differences impossibility ceiling inscribed.

Closes the G.9 correction: prior RECOVERABLE-MACHINE was FALSE for dung+adf.

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

* fix(tweety-7a): strip .NET probeAddresses banner (9 lines, kernel-injected)

Re-exec of the IKVM Tranche 2 cells re-injected the dotnet-interactive
kernel bootstrap HTML carrying live machine network addresses (IPv6
link-local fe80::, LAN 192.168.0.46, 172.x Docker subnets). This is the
sanctioned rule-6 exception (#6312 strip_probe_banner, precedent #2733):
kernel-injected, re-exec re-injects, output-only strip preserves source
+ exec_count + real outputs.

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

* chore(twin-parity): re-attest Tweety-7a after the probe-banner strip

strip_probe_banner.py --apply moved the C# blob SHA (9 kernel-injected
probeAddresses lines removed from the #r nuget restore cell), which
invalidated the attestation recorded earlier in this PR. Per #8957 the
rebaseline goes LAST, after every tooled normalization.

Strip re-audited firsthand before attesting: 9 lines out, 9 blank lines
in, zero insertions -- the semantic parity is unchanged, only the blob
moved. check_twin_parity.py now reports 157 pairs OK, DRIFT=0.

See #10410 and #8957.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Aug 11, 2026
…semantic->native-both) (#10412)

* feat(sudoku,#10382): Sudoku-9 GraphColoring Tranche 2 via QuikGraph (semantic->native-both)

Tranche 2 : le graphe de contraintes Sudoku est desormais delegue a QuikGraph
2.5.0 (UndirectedGraph<int,Edge<int>>), equivalent .NET de networkx. Le jumeau
Python construit ce meme graphe via nx.sudoku_graph() (81 sommets / 810 aretes).

Algorithme QuikGraph reel invoque : composantes connexes
(ConnectedComponentsAlgorithm -> 1 composante, graphe connexe). Verification
d'une coloration propre (0 conflit / 810 aretes) via le parcours g.Edges de
QuikGraph. La coloration (backtracking/MRV/DSATUR) reste hand-written des deux
cotes (networkx non plus ne resout pas la coloration).

G.1 firsthand : le jumeau Python n'importe QUE networkx (pas de ortools/cp_model,
contrairement a une mention stale du yaml). La prose OR-Tools CP-SAT est corrigee.

Verdict SOTA : SOTA-OK (QuikGraph proprement reference, graphe construit, algorithme
invoque, outputs reels committes). parity_level semantic -> native-both (#10382
bucket-1 .NET natif).

Re-execution kernel .net-csharp (nbconvert, 15/15 code cells ec=1..15, 0 erreur).
Source-level: +2 cells (md intro + code Tranche 2), 0 cellule originale modifiee.

See #10382

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

* fix(sudoku-9): strip .NET probeAddresses banner (9 lines, kernel-injected)

Re-exec of the QuikGraph Tranche 2 cells re-injected the dotnet-interactive
kernel bootstrap HTML carrying live machine network addresses (IPv6
link-local fe80::, LAN 192.168.0.46, 172.x Docker subnets). Sanctioned
rule-6 exception (#6312 strip_probe_banner, precedent #2733): kernel-
injected, re-exec re-injects, output-only strip preserves source +
exec_count + real outputs.

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

* chore(twin-parity): re-attest Sudoku-9 GraphColoring after the probe-banner strip

strip_probe_banner.py --apply moved the C# blob SHA (9 kernel-injected
probeAddresses lines removed from the #r nuget restore cell), which
invalidated the attestation recorded earlier in this PR. Per #8957 the
rebaseline goes LAST, after every tooled normalization.

Strip re-audited firsthand before attesting: 9 lines out, 9 blank lines
in, zero insertions -- the semantic parity is unchanged, only the blob
moved. check_twin_parity.py now reports 157 pairs OK, DRIFT=0.

See #10412 and #8957.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Aug 11, 2026
…KVM/Tweety lib (#10385)

* feat(tweety,#10381): Tweety-6 C# tranche 2 — ASPIC+ parity via real IKVM/Tweety lib

Add "Tranche 2" to Tweety-6-Structured-Argumentation-Csharp.ipynb: the ASPIC+
example from section 3 (contradiction on d: axioms b,c + rules b,c => a,
b => d, a => !d) re-executed against the REAL Tweety library (Java) via the
IKVM bridge, instead of being carried by a prose parity note.

Tranche 1 (the hand-written from-scratch ASPIC+ engine, sections 1-3) is
preserved byte-identical. The IKVM tranche is appended after the synthese
cell (index 13) and before the Exercises, mirroring the Tweety-5-Csharp
gabarit (tranche 1 from-scratch THEN tranche 2 lib).

Content (3 markdown + 5 code cells, all executed, French-first):
- #r nuget IKVM 8.15.0 + IKVM.Home setup (ikvm-home-8.15.0-win-x64, tzdb.dat OK)
- #r "org.tweetyproject.tweety-aspic.dll" (already-committed DLL, 8.0 Mo,
  loaded successfully by Tweety-4-Aspic too) + metadata verification
- AspicArgumentationTheory + PlFormulaGenerator: rebuild the section-3 theory
  via DefeasibleInferenceRule + Proposition/Negation
- asDungTheory() + 3 Dung semantics (SimpleGrounded/Preferred/StableReasoner)

Parity PROVEN firsthand (3-way convergence):
- C# from-scratch (tranche 1, section 3): 5 args, 2 symmetric attacks
  (b=>d vs a=>!d), grounded excludes both attacked args
- C# IKVM (this tranche 2): IDENTICAL output
    ArgumentationSystem [rules=[ -> c, -> b, b,c => a, b => d, a => !d]]
    nb arguments = 5
    attaques = [(b => d, a => !d), (a => !d, b => d)]  (symmetric rebuttal)
    grounded = { -> b, -> c, b,c => a}
    preferred/stable = 2 extensions (two worlds: b=>d survives OR a=>!d)
- Python jpype (jumeau Tweety-6 section 4.2): same theory, same grounded set
Three engines converge on the same AAF.

Verdict SOTA: SOTA-OK — the real Tweety library is properly invoked via IKVM;
the committed output IS its real output. Zero DLL to produce for this notebook
(tweety-aspic.dll already committed + already loaded by Tweety-4-Aspic).

G.1 firsthand: 0 PR touches Tweety-6 (collision-guard file-path on Tweety-6
before claim). The DLL works locally (kernel .net-csharp + dotnet-interactive
present; IKVM init OK; the same DLL powers Tweety-4-Aspic with real outputs).

C.2: all 5 added code cells executed (ec=8..12), real stream outputs
committed. Existing exercice ec bumped 8/9/10 -> 13/14/15. Anti-regression:
tranche 1 byte-identical (diff +406/-3, the -3 are only the 3 bumped ec).
H.3: 0 fail. C.1: 0 (no voluntary error). path-leak: 0. nbformat.validate OK.

Grain: DEEP/notebook-dotnet CONTENT — lane myia-po-2023:CoursIA-2 —
prev: DEEP/research-code #10379 (Argumentum cards). R6: register pivot from
C.4-markdown to substantive .NET IKVM bridge code (Prong-A SOTA: wire the real
engine instead of prose parity), family Tweety (inédit this cycle). See #10381
(partial — Tweety-6 done, 7a/8/11 remain). See #4956 (epic parity .NET<=>Python).

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

* fix(tweety,#10381): strip probeAddresses banner + reattest twin parity (native-both)

Two CI gate fixes for PR #10385 (tranche 2 IKVM/ASPIC+):

1. probeAddresses banner guard: the .NET Interactive kernel auto-injects a
   display_data (text/html) HTTP-bootstrap script (probeAddresses([...]))
   on the first #r "nuget: IKVM" cell. Applied strip_probe_banner.py --apply
   (rule-6 exception: kernel-injected, re-exec re-injects; the tool is the
   canonical remediation per #2733/#6312). Banner stripped, source + exec_count
   + stream outputs + Installed Packages display_data preserved. Scan = 0 banner.

2. Twin parity audit (#8057): the tranche-2 addition changed the Tweety-6-Csharp
   blob SHA, invalidating the 2026-08-04 attestation. Re-attested via
   check_twin_parity.py --update (in LAST position, after all stripping, per #8957).
   parity_level: surface -> native-both (both sides now load the real Tweety lib:
   Python via JPype, C# via IKVM tranche 2). known_differences rewritten to state
   the 3-way parity proven firsthand (C# from-scratch <=> C# IKVM <=> Python JPype).

Local gate recheck: banner scan 0, twin parity per-pair 157 OK 0 drift,
nbformat OK, H.3 0, C.1 0, path-leak 0.

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

* fix(tweety,#10385): re-attest twin parity SHA (post-strip blob drift)

The previous strip+attest cycle (#ae770ec6) recorded the pre-strip blob SHA
(171e603...) but the actual current blob is 2d31663... (the banner strip
replaced the text/html output in the cell, moving the blob). Re-ran
check_twin_parity.py --update to record the post-strip state. Drift now 0/157.

This is a twin-parity attestation, not a substance change: the notebook
content is byte-identical to the committed state. The twin parity audit gate
(#8057) will go green on the next run.

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

---------

Co-authored-by: jsboige <jsboige@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Aug 11, 2026
…E (pont IKVM attend .m2) (#10410)

* fix(tweety,#10381): Tranche 2 lib-vs-lib rework — Dung SOTA-OK + ADF scoped verdict

ai-01 CHANGES_REQUESTED on prior #10410: the RECOVERABLE-MACHINE verdict was
correctly rejected for arg.dung/arg.adf — both ARE in the committed
conditional-logics.dll fat shade (125 arg.adf types, verified firsthand via
UTF-16LE extraction, not binary grep which false-zeros on .NET DLL metadata).

Tranche 2 (gabarit Tweety-6, 3 cells before Conclusion, EXEC_PROVED):
- IKVM bootstrap pinned to 8.14.0 (matches DLL build ref -> 0 CS1701 warnings).
- Dung = SOTA-OK: SimpleGroundedReasoner computes grounded extension {a,c}
  on a->b, b->c (real Tweety algorithm, committed output).
- ADF = library loaded (125 types: 15 acceptance conditions + 59 SAT-reasoner
  types). Reasoner SAT backend probed firsthand: NativeMinisatSolver ->
  UnsatisfiedLinkError under IKVM (native IncrementalSatSolver not bound).

Verdict split (conclusion cell):
- Dung + ADF syntax: SOTA-OK.
- ADF reasoner SAT semantics + 5 absent modules (bipolar/setaf/weighted/
  social/extended): RECOVERABLE-MACHINE -> #10411.
No permanent known_differences impossibility ceiling inscribed.

Closes the G.9 correction: prior RECOVERABLE-MACHINE was FALSE for dung+adf.

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

* fix(tweety-7a): strip .NET probeAddresses banner (9 lines, kernel-injected)

Re-exec of the IKVM Tranche 2 cells re-injected the dotnet-interactive
kernel bootstrap HTML carrying live machine network addresses (IPv6
link-local fe80::, LAN 192.168.0.46, 172.x Docker subnets). This is the
sanctioned rule-6 exception (#6312 strip_probe_banner, precedent #2733):
kernel-injected, re-exec re-injects, output-only strip preserves source
+ exec_count + real outputs.

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

* chore(twin-parity): re-attest Tweety-7a after the probe-banner strip

strip_probe_banner.py --apply moved the C# blob SHA (9 kernel-injected
probeAddresses lines removed from the #r nuget restore cell), which
invalidated the attestation recorded earlier in this PR. Per #8957 the
rebaseline goes LAST, after every tooled normalization.

Strip re-audited firsthand before attesting: 9 lines out, 9 blank lines
in, zero insertions -- the semantic parity is unchanged, only the blob
moved. check_twin_parity.py now reports 157 pairs OK, DRIFT=0.

See #10410 and #8957.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Aug 11, 2026
…semantic->native-both) (#10412)

* feat(sudoku,#10382): Sudoku-9 GraphColoring Tranche 2 via QuikGraph (semantic->native-both)

Tranche 2 : le graphe de contraintes Sudoku est desormais delegue a QuikGraph
2.5.0 (UndirectedGraph<int,Edge<int>>), equivalent .NET de networkx. Le jumeau
Python construit ce meme graphe via nx.sudoku_graph() (81 sommets / 810 aretes).

Algorithme QuikGraph reel invoque : composantes connexes
(ConnectedComponentsAlgorithm -> 1 composante, graphe connexe). Verification
d'une coloration propre (0 conflit / 810 aretes) via le parcours g.Edges de
QuikGraph. La coloration (backtracking/MRV/DSATUR) reste hand-written des deux
cotes (networkx non plus ne resout pas la coloration).

G.1 firsthand : le jumeau Python n'importe QUE networkx (pas de ortools/cp_model,
contrairement a une mention stale du yaml). La prose OR-Tools CP-SAT est corrigee.

Verdict SOTA : SOTA-OK (QuikGraph proprement reference, graphe construit, algorithme
invoque, outputs reels committes). parity_level semantic -> native-both (#10382
bucket-1 .NET natif).

Re-execution kernel .net-csharp (nbconvert, 15/15 code cells ec=1..15, 0 erreur).
Source-level: +2 cells (md intro + code Tranche 2), 0 cellule originale modifiee.

See #10382

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

* fix(sudoku-9): strip .NET probeAddresses banner (9 lines, kernel-injected)

Re-exec of the QuikGraph Tranche 2 cells re-injected the dotnet-interactive
kernel bootstrap HTML carrying live machine network addresses (IPv6
link-local fe80::, LAN 192.168.0.46, 172.x Docker subnets). Sanctioned
rule-6 exception (#6312 strip_probe_banner, precedent #2733): kernel-
injected, re-exec re-injects, output-only strip preserves source +
exec_count + real outputs.

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

* chore(twin-parity): re-attest Sudoku-9 GraphColoring after the probe-banner strip

strip_probe_banner.py --apply moved the C# blob SHA (9 kernel-injected
probeAddresses lines removed from the #r nuget restore cell), which
invalidated the attestation recorded earlier in this PR. Per #8957 the
rebaseline goes LAST, after every tooled normalization.

Strip re-audited firsthand before attesting: 9 lines out, 9 blank lines
in, zero insertions -- the semantic parity is unchanged, only the blob
moved. check_twin_parity.py now reports 157 pairs OK, DRIFT=0.

See #10412 and #8957.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
@jsboige
jsboige deleted the fix/strip-probe-addresses branch September 2, 2026 13:17
jsboige added a commit that referenced this pull request Sep 19, 2026
…es, output-only)

Rule-6 exception (kernel-bootstrap noise, #2733/#6312 precedent): source
byte-identical, stream outputs + execution_count preserved. Re-exec cannot
cure (re-injects). Strip precedes twin re-attestation per #8957.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
myia-ai-01 pushed a commit that referenced this pull request Sep 20, 2026
…ourcis CDE corrigés (P5a) (#16639)

* feat(probas,#16620): Infer-5 effets naturels NDE/NIE calcules + correction raccourcis CDE (P5a)

Nouvelle cellule : NDE = 0,280 et NIE = 0,180 par enumeration sur le SCM
de mediation (X formation -> M competences -> Y promotion), NDE + NIE =
0,460 = TE exactement -- identite algebrique de telescopage.

Correction (G.1) : le markdown affirmait NDE = CDE(M=0) = 0,300 et
NIE = TE - NDE = 0,160 avec une verification tautologique (NIE defini
comme TE - NDE). Mesure : NDE = 0,280 != CDE(0) = 0,300 et part mediee
vraie 0,180 != 0,160 -- l'interaction X*M (CDE(1) = 0,200 vs CDE(0) =
0,300) casse les raccourcis via CDE, pas l'identite NDE + NIE = TE.

exec_dotnet_persist 16/16 cells, 0 erreur, exec counts consecutifs,
validator PASS, catalogue intact.

See #16620

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

* chore(twin-parity,#16639): attest Probas-5 Causal-Inference pair at current head (Infer-5 P5a)

Guard-demanded rebaseline (selector --pair, lessons L963/L974): 1 pair updated.
Entry index 0014; the posterior twin PR (#16640 P5b) takes 0015 to avoid
concurrent index collision (memory twin-registry-concurrent-index-collision).

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

* fix(infer,#16639): strip kernel-injected probeAddresses banner (9 lines, output-only)

Rule-6 exception (kernel-bootstrap noise, #2733/#6312 precedent): source
byte-identical, stream outputs + execution_count preserved. Re-exec cannot
cure (re-injects). Strip precedes twin re-attestation per #8957.

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

* chore(twin-parity,#16639): re-attest Probas-5 Causal-Inference AFTER banner strip (#8957)

The strip moved the committed blob SHA; the 0014 entry attested the
pre-strip state. 0015 records the post-strip blob. Posterior twin (#16640)
moves to 0016.

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

---------

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

Development

Successfully merging this pull request may close these issues.

2 participants