done
Persist debugging-console data in SQLite and expose read APIs for session list, chat messages, audit replay, and usage summaries.
infrastructure/.AGENT_LAB_DATABASE_PATH via Settings.database_path.sessions: id, title, timestamps, full workspace/agent config JSON.turns: session id, turn index, user message, timestamps.messages: ordered chat transcript rows.audit_logs: ordered audit rows with event name and JSON details.usage_stats: one row per model call; REST response also returns turn and session aggregates./api/sessions and session detail/replay endpoints with empty and non-empty data.uv run pytest tests/test_sqlite_store.py tests/test_websocket_api.py -q passes: 36 tests.uv run pytest passes: 66 tests.