osmose.engine_cs¶
The C# engine backend: a .NET library behind one RunSimulation entry point.
Design: docs/superpowers/specs/2026-11-17-csharp-engine-design.md. This package is the
Python side. Importing it never loads the CLR (spec section 9.4): the resolution helpers
below are pure Python, and only osmose.engine_cs.bridge imports pythonnet, on first use.
That keeps the capability check usable in the UI and in processes that later fork, since
CoreCLR’s runtime threads do not survive fork.
Functions
|
Directory holding the built assembly: |
|
Whether THIS process hosts the .NET runtime, that is, has loaded the engine. |
|
Whether the C# engine could be loaded here, and why not. |
|
The .NET installation to host: |
Modules
The only module that imports pythonnet (spec sections 9.1 and 9.4). |
|
Build the parameter bundle the C# engine runs from (spec section 8.2, plan task 1.2). |
|
The parameter bundle on the Python side (spec section 8.2, plan task 0.3). |
|
Can the C# engine run this config? Fail closed (spec decision D11, plan task 1.1). |
|
|
|
The C# engine's random numbers, reproduced in Python (spec section 5.3, plan task 0.5). |
|
Self-test of the C# engine for a deployed environment (plan task 1.13, spec section 9.7). |