jr: Worker observability - store status updates in DB and show in web UI

t-148·Epic·
·
·
·Omni/Jr.hs
Created3 months ago·Updated3 months ago

Execution Summary

4/4
Tasks Completed
$0.00
Total Cost
0s
Total Time

Design

Edit

Currently worker progress is only visible in CLI logs. Need to persist status updates to DB and display in web UI.

Goals:

  • See what stage a worker is at (claiming, running amp, reviewing, retrying)
  • Track retry count and reasons
  • Show timestamps for each stage transition
  • Display in task detail page for InProgress tasks

Design considerations:

  • New table: task_activity or worker_logs
  • Schema: task_id, timestamp, stage, message, metadata (JSON)
  • Web UI: Activity timeline on task detail page
  • Keep CLI logging as-is, just also write to DB

Child Tasks

  • t-148.1 - Add task_activity table schema [Done]
  • t-148.2 - Add logActivity helper and integrate into Worker.hs [Done]
  • t-148.3 - Show activity timeline on task detail page in web UI [Done]
  • t-148.4 - Display worker metrics on task detail page [Done]

Timeline (1)

🔄[human]Open → Done3 months ago