agentd: normalize persistent session JSONL event schema

t-803·WorkTask·
·
·
Created3 days ago·Updated3 days ago·pipeline runs →

Dependencies

Description

Edit

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.

Git Commits

03a74a8efeat(agentd): normalize persistent session JSONL result events
Coder Agent3 days ago3 files

Timeline (4)

🔄[human]Open → InProgress3 days ago
💬[human]3 days ago

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

🔄[human]InProgress → Review3 days ago