Phase 1 of agent observability, engine items E7 and E21
(ocw-context docs/observability/phase-1/technical-design.md v1.0).
E7: coworker/observability/recorder.py is the one sink for the five
recording events. It folds them into turns and steps by recording
format 1.0 and keeps the canonical step order. coworker/observability/
store.py saves them in recordings.db next to coworker.db: pending
writes are merged by id and written by one background thread, so a
turn never waits and nothing is dropped. A daily sweep deletes
recordings older than 30 days in small batches, and deleting a session
deletes its recordings and the exchange pieces only it used.
E21: every message appended or inserted into the engine's history gets
a `mid` (a ULID) through one _add_message() helper. `mid` is a sidecar
like `ts`: stripped before any provider sees it. Older transcripts
without mids keep working.
The shared golden test (30 scenarios, copied into tests/corpora/
observability) passes 30 of 30, folded in memory and read back from
recordings.db.