Tower Log: Narrative Event Feed #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & Why
Replace the raw technical event stream with a prose narrative panel — the 'Tower Log' — that tells the story of the Workshop in plain English. Instead of 'JOB_COMPLETE event for uuid-1234', visitors read 'Timmy helped a visitor craft a Lightning payment integration guide (4 sats).'
Done looks like
tower_logDB table — survives page refreshesOut of scope
Tasks
tower_logtable; service that generates a narrative entry on key events and stores it; GET endpoint returning last 20 entries.tower_log_entryevents for connected clients.Relevant files
artifacts/api-server/src/lib/agent.tsartifacts/api-server/src/routes/events.tsartifacts/api-server/src/lib/event-bus.tsthe-matrix/js/ui.jsthe-matrix/js/websocket.jsPR created: http://143.198.27.163:3000/replit/timmy-tower/pulls/112
Summary of changes:
tower_logDB table + migration (0010_tower_log.sql)narrateEvent()method on AgentService (Haiku, <100 chars, stub-mode safe)addTowerLogEntry()service — generates narrative, persists to DB, broadcasts via EventBusGET /api/tower-logendpoint returning last 20 entriestower_log_entryreal-time events +tower_log_historybootstrap on connect📜 TOWER LOGheader button + slide-out bottom-sheet panel with auto-scroll, new-entry highlight, and empty-state message