Agents Builders

Build task intelligence dashboard

Archived
task-intelligence-dashboard

Created

Jun 25, 20:47

Started

Jun 25, 21:17

Completed

Jun 26, 03:16

DevOps handoff

Type

Feature

Shape

ui+db

Worktree Slug

task-intelligence-dashboard

Repositories

mcritchie-studio

Release Train

Branch

feat/task-intelligence-dashboard

QA URL

Production URL

ui data

Acceptance Criteria

  • New intelligence route renders trend charts
  • Charts show stage speed and task cycle
  • Charts show token and cost per task
  • Charts show token and cost per event
  • Dashboard shows estimate versus actual size accuracy

Expected Test Plan

  • [unit] analytics aggregation query specs
  • [component] dashboard view renders chart containers
  • [integration] intelligence controller data assembly
  • [e2e] playwright loads dashboard charts

Checks Run

  • [unit] TaskIntelligenceTest — 11 cases incl. regression: shipped task with actual_size + nil dev_size is SKIPPED by biggest_estimate_misses (no TypeError); summary/estimate_series survive it (all pass)
  • [component] IntelligenceDashboardTest — template renders shell, 10 chart containers, summary tiles, leaderboard tables (pass)
  • [integration] IntelligenceControllerTest — #index 200 with chart containers + Chartkick scripts; populated, empty, AND actual-without-dev cases (pass)
  • [e2e] e2e/intelligence.spec.js — /intelligence renders headings, 10 Chart.js canvases, leaderboards (pass)
  • [full-suite@52a732d0d608afcb07579e6db6f511d9e1fdcbdb] bin/rails test green
  • [rubocop@52a732d0d608afcb07579e6db6f511d9e1fdcbdb] bin/rubocop clean

Agent Context

Epic: Task Intelligence (#4 of 4, ui+db). SEQUENCE: build LAST — consumes usage-capture-hardening clean per-event data + avi-task-sizing actual_size. New route /intelligence (own controller + views). Charting: Chartkick + Chart.js (operator choice) — add chartkick + groupdate gems, pin Chart.js via importmap (no build step). Charts: stage speed (avg seconds_in_from per stage), task cycle time (created→shipped), token usage per task + per event, cost per task + per event, and estimate-vs-actual accuracy (po_size/dev_size vs auto-derived actual_size). Data sources: TaskEvent (seconds_in_from, tokens_in/out, cost, from/to_stage) + Task (size columns, stage timestamps). Operator: 'get creative' — add a leaderboard/outlier panel (priciest tasks, slowest stages, biggest estimate misses). Existing analytics to learn from: /usages (UsagesController), /dashboard. Build query logic in a service/PORO for unit testing.

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 Dev Actual XL
  1. Created Designed
    R Rhydon
    Rhydon
    Model
    Duration
    Tokens
    Cost
    Completed Jun 25, 20:47 · 1 day ago
    api
  2. Designed Building
    R Rhydon
    Rhydon
    Model
    claude-opus-4-8
    Duration
    30 minutes
    Tokens
    Cost
    Started Jun 25, 20:47
    Completed Jun 25, 21:17 · 1 day ago
    cli
  3. Building Submitted
    R Rhydon
    Rhydon
    Model
    claude-opus-4-8
    Duration
    about 2 hours
    Tokens
    51,785,531
    Cost
    ~$33.16
    Started Jun 25, 21:17
    Completed Jun 25, 22:51 · 1 day ago
    cli
  4. Submitted Blocked
    Model
    Duration
    about 3 hours
    Tokens
    Cost
    Started Jun 25, 22:51
    Completed Jun 26, 01:39 · 1 day ago
    api
  5. Blocked Submitted
    R Rhydon
    Rhydon
    Model
    claude-opus-4-8
    Duration
    19 minutes
    Tokens
    14,283,098
    Cost
    ~$14.11
    Started Jun 26, 01:39
    Completed Jun 26, 01:58 · 1 day ago
    cli
  6. Submitted Reviewed
    C Carl
    Carl primary
    J Jasper
    Jasper light
    Model
    claude-opus-4-8
    Duration
    about 1 hour
    Tokens
    5,937,501
    Cost
    ~$3.74
    Started Jun 26, 01:58
    Completed Jun 26, 03:01 · 1 day ago
    cli
  7. Reviewed Assembled
    S Steffon
    Steffon
    Model
    claude-opus-4-8
    Duration
    1 minute
    Tokens
    1,291,356
    Cost
    ~$0.70
    Started Jun 26, 03:01
    Completed Jun 26, 03:02 · 1 day ago
  8. Assembled Shipped
    A Avi
    Avi
    Model
    claude-opus-4-8
    Duration
    13 minutes
    Tokens
    13,555,036
    Cost
    ~$7.62
    Started Jun 26, 03:02
    Completed Jun 26, 03:16 · 1 day ago
  9. Shipped Archived
    Model
    Duration
    about 15 hours
    Tokens
    Cost
    Started Jun 26, 03:16
    Completed Jun 26, 18:43 · about 15 hours ago

Conversation

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

QA Feedback 1 day ago

Jasper BLOCK: biggest_estimate_misses computes actual-dev before the both-present guard → TypeError, /intelligence 500s when a shipped task has actual_size but nil dev_size. Move the guard before the arithmetic (filter_map, skip when dev or actual nil); add a unit test for actual-present/dev-nil (must skip, not raise); then un-draft #214 for re-review.

Handoff 1 day ago

Fixed Jasper's block: biggest_estimate_misses guarded before arithmetic (filter_map skips nil dev/actual) + unit & integration regression tests; /intelligence now 200 on an actual_size-without-dev_size task. Clean rebase onto origin/release; full-suite + rubocop green at 52a732d0d608. PR #214 marked ready for re-review.

Sealed-bid sizing

Edit →

Alex (PM)

Avi (PO)

Dev

Actual

XL