What it does
- Authenticates requests via Authorization-header API tokens against team policy.
- Persists projects and workflows.
- Enqueues every chat submission as a Redis job before any execution — the queue-first invariant.
- Streams job events to clients over Server-Sent Events.
- Probes models and wakes Ollama on demand.
- Routes non-LLM intents (rules, facts, commands).