world-contract

The boundary between the simulation (tosijs-3d) and an external driver (an AI narrative engine, a scripted demo, anything). The simulation is the authority on physical and systemic reality; the driver decides what any of it means. These two halves never call each other's functions — they share a serializable WorldState, a stream of best-effort SimulationEvents, and the WorldApi surface below.

Hard rules baked into these types