overview

Python in Sophia: identified through Moonkale’s WP-66 normal form, resolved only within a file. No corpus planned; Python is supported because Moonkale supports it. 2026-10-20.

Sources: Moonkale moonkale-content-id (Python normal form); crates/sophia-ingest/src/code.rs; tests/code.rs; the Python Language Reference, Execution model (scoping, global, nonlocal).

LevelStatusEvidence
L1 Parsedyes: tree-sitter-python via arboriumgolden fixtures
L2 Normalisedyes: WP-66, identical ids to Moonkale; methods inside classes are definitionstests/code.rs
L3 Resolvedsame-file names only, by spelling—
L4–L6no—

What makes Python hard for Sophia: everything is mutable at run time (module globals, class attributes, monkey-patching), imports execute code, and dispatch is through attribute lookup and the MRO. Static resolution can only ever approximate; a conformance oracle would be a running interpreter (as for Julia), or a type checker (pyright) for the statically typed subset.