class LittleGhost::Execution

Runs one dormant Run in the background while the caller remains free to serve health checks, deliver interjections, or coordinate shutdown.

execution = agent.start_execution(message: "Investigate transfer 481") do |event|
  event_buffer << event
end

execution.interject(message: "Include the latest ledger entry")
execution.wait(deadline: Time.now + 30)
execution.run.completed? # => true

The Runtime selects a scheduled fiber or worker thread for the execution. LittleGhost copies the caller’s ExecutionState, but not other application fiber-local or thread-local values. The Run continues to own its workspace, sandbox, session, entrypoint, and registered resources. close requests cooperative cancellation and waits for the execution and any in-flight interjection calls.