# Todo 39: Audit Turn-Relative Time ## Goal Show every in-turn audit event with elapsed time relative to the user message that started the current turn. ## Plan 1. Add `turn_elapsed_ms` to audit details when an audit event belongs to a turn. 2. Carry the turn start timestamp into EventAgent audit work so request/response events use the same baseline. 3. Render the relative time in the audit event stream and detail header. ## Verification - `uv run pytest tests/test_debug_runtime.py::test_runtime_audit_events_include_turn_relative_elapsed_time -q` - `uv run pytest tests/test_websocket_api.py::test_static_audit_replay_uses_event_stream_and_detail_panel -q` - `node --check src/agent_lab/presentation/static/app.js` - `uv run pytest` - `git diff --check`