class LittleGhost::CodeMode::Engine

Adapter contract for a code-mode language.

An Engine describes the language shown to the model and opens one Session. Model-authored code must run behind the supplied sandbox_factory. The Broker must remain in the trusted parent process; do not expose it or its application objects inside the child interpreter.

LittleGhost may call one registered Engine instance concurrently for different Agents and RunContexts. Keep mutable program state in the Session returned by open_session, not on the Engine.