Normalize persistent session JSONL schema.
Problem:
Session files mix typed trace events and untyped bare result objects, which complicates parsing for status/logs/watch/top.
Scope:
- Ensure every session JSONL line has a consistent top-level schema with
type and timestamp. - Keep backwards compatibility for old logs in readers.
- Update emitters/tests accordingly.
Acceptance:
- New persistent session output is consistently typed.
- Readers no longer need special handling for bare untyped result objects for current data.
Normalized session JSONL result schema for persistent runs by emitting final agent JSON results with top-level type=result and timestamp. Added backward-compatible normalization for legacy untyped {success,response/error} lines in persistent readers (status reconciliation, log filtering, and watch formatting). Added coverage in Omni/Agentd/Daemon.hs and Omni/Agentd.hs tests. Verified with typecheck.sh Omni/Agent.hs Omni/Agentd/Daemon.hs Omni/Agentd.hs, lint Omni/Agent.hs Omni/Agentd/Daemon.hs Omni/Agentd.hs, bild --test Omni/Agentd/Daemon.hs, bild --test Omni/Agentd.hs, bild --test Omni/Agent.hs. Commit: 03a74a8e