Agents Builders

Heartbeat global event feed

Archived
heartbeat-global-event-feed

Created

Jul 01, 16:48

Started

Jul 01, 16:49

DevOps handoff

Type

Feature

Shape

ui-only

Worktree Slug

heartbeat-global-event-feed

Repositories

mcritchie-studio

Release Slug

Branch

feat/heartbeat-global-event-feed

QA URL

Production URL

ui heartbeat read-only

Acceptance Criteria

  • Landing lists all spans newest first across sessions
  • Each feed row opens that session detail view
  • Session detail unchanged when session_id present

Expected Test Plan

  • [unit] AtomicEvent.recent orders spans newest first
  • [component] feed partial renders per-session open buttons

Checks Run

  • [unit] bin/rails test test/models/atomic_event_test.rb — AtomicEvent.recent orders newest-first
  • [component] bin/rails test test/views/heartbeat_feed_test.rb — feed partial: rows, open buttons, in-progress, truncation
  • [integration] bin/rails test test/integration/alex_heartbeat_test.rb + heartbeat_feedback_test.rb — feed newest-first across sessions + drill-in to detail
  • [full-suite@ed65fbb57634b880a15d95ea6e85aa96902b65ff] bin/rails test green
  • [rubocop@ed65fbb57634b880a15d95ea6e85aa96902b65ff] bin/rubocop clean

Agent Context

Rework /alex/heartbeat (HeartbeatController#show). Today it defaults to the latest session's detail table, events ordered chronological (oldest->newest). New: with NO session_id param, render a GLOBAL FEED of every AtomicEvent across all sessions, newest-first (new AtomicEvent.recent scope: opened_at desc, seq desc, id desc), each row carrying its session_id + a button linking to alex_heartbeat_path(session_id:) that drills into the existing per-session detail view (unchanged). Lightweight: one AtomicEvent query, no per-event action roll-up (tokens/cost stay in detail). Cap the feed at a constant FEED_LIMIT and surface truncation. Session-scoped detail view keeps chronological order.

Stage Timeline

Who handled each stage, the time it took (measured), and the model / tokens / cost reported (best-effort) — plus who's on it right now. means the agent didn't report that metric.

Sizing Avi · PO SMALL Dev SMALL Actual
  1. Created Designed
    S Sandshrew
    Sandshrew
    Model
    Duration
    Tokens
    Cost
    Completed Jul 01, 16:48 · 7 days ago
    api
  2. Designed Building
    S Sandshrew
    Sandshrew
    Model
    claude-opus-4-8
    Duration
    under a minute
    Tokens
    478,572
    Cost
    ~$0.36
    Started Jul 01, 16:48
    Completed Jul 01, 16:49 · 7 days ago
    cli
  3. Building Submitted
    S Sandshrew
    Sandshrew
    Model
    claude-opus-4-8
    Duration
    16 minutes
    Tokens
    17,007,600
    Cost
    ~$13.55
    Started Jul 01, 16:49
    Completed Jul 01, 17:04 · 7 days ago
    cli
  4. Submitted Reviewed Review Activity
    S Shannon
    Shannon primary
    A Alex
    Alex light
    Model
    claude-opus-4-8
    Duration
    43 minutes
    Tokens
    Cost
    Started Jul 01, 17:04
    Completed Jul 01, 17:48 · 7 days ago
    cli
  5. Reviewed Archived
    3
    3618cc6d-6176-43d6-8cc0-45b6ffcfffaa
    Model
    claude-opus-4-8
    Duration
    about 4 hours
    Tokens
    Cost
    Started Jul 01, 17:48
    Completed Jul 01, 21:45 · 7 days ago
    cli

Conversation

QA review feedback, agent handoffs, and follow-up notes for this task.

No task feedback has been recorded yet.

Sealed-bid sizing

Edit →

Alex (PM)

Avi (PO)

SMALL

Dev

SMALL

Actual