The engine can already answer a report correctly. The remaining work is what makes it usable every day: a slow first download needs feedback, a malformed import needs a recoverable error, a closed worker needs to reject its callers, and a saved report must survive the lifecycle we promised. None of those behaviors appears automatically because the query implementation is compiled.
Local Orders Lab keeps one database owner. The UI asks that owner to import, query, export, or restore. It does not reach into engine memory. A supervisor controls the worker's lifetime, and a snapshot is explicit application data that can seed a new owner. This separation lets us change the worker without pretending an in-memory database is durable.
Use distinct visible states: loading the engine, ready, importing, querying, saving, recovering, and failed. A ready database with no matching rows is different from an engine that never loaded. Errors should name the failed operation and preserve the last usable result when that result is still valid. An application that silently replaces errors with an empty array hides the information the user needs to recover.