Turn a CONOPS into an executable mission study.
A mission concept is more useful when its sequences, handoffs, failure responses, and vehicle behavior can run against the same world. LunCoSim connects scenario policy to live simulation state through events, tasks, and an API.
Make the operational logic testable.
The gap between a CONOPS document and a working simulation is an explicit, repeatable connection between intent, state, and response.
Write mission policy without recompiling the engine.
Rhai scenarios attach to entities and provide task trees, objectives, lifecycle hooks, and event reactions. Edit a scenario, run it again, and inspect its compile/runtime state through the same control surface.
Use events for handoffs and failure modes.
Touchdown, low fuel, arrival, and other authored signals can become explicit telemetry events. Mission logic reacts to a fact instead of hiding a second threshold or state owner in a polling loop.
Drive the run from code, UI, or an agent.
The HTTP API, MCP path, UI, and scripts share the command/query boundary. Start a scenario, read ports, inspect entities, and collect the state needed to explain why the run reached its outcome.
Change the plan while the mechanism stays stable.
Mission policy belongs in authored scenario assets. Continuous control math remains in Modelica or the engine kernels, so a new sequence changes the plan while the underlying simulation mechanism stays reusable.
Use cases with an observable outcome
Choose a mission question that can be answered by the run, not merely shown in a demo.
Release the rover only after touchdown is real.
Connect the powered-descent model, landing events, and post-landing mission handoff in one authored scenario.
Lander simulation → Surface operationsTest whether the route survives the vehicle state.
Run waypoint behavior against terrain and vehicle dynamics, then identify where the traverse stops being viable.
Rover simulation →Repeat the same mission question.
Use the API and authored observers to compare runs in CI or in an external engineering workflow.
Repeatable studiesMake the result useful to the team.
A mission run becomes an engineering result when its objective, assumptions, observations, and outcome stay together.
Make the next mission decision executable.
The companion article explains the workflow in plain language: From CONOPS to an executable mission.