Agents Builders

Fix live timeline stage badge

Archived
fix-live-timeline-stage-badge

Created

Jun 26, 19:19

Started

Jun 26, 20:09

Completed

Jun 26, 20:46

DevOps handoff

Type

Bug

Shape

ui-only

Worktree Slug

fix-live-timeline-stage-badge

Repositories

mcritchie-studio

Release Train

Branch

feat/fix-live-timeline-stage-badge

QA URL

Production URL

ui,deployments-board,timeline

Acceptance Criteria

  • Live assembled card reads Assembled to Shipped
  • Ship-owner Avi attributed on live assembled card
  • Live building card reads Building to Submitted
  • Deployments board still shows Steffon QA-ing assembled

Expected Test Plan

  • component

Checks Run

  • [unit] bin/rails test test/helpers/stage_agents_helper_test.rb (live assembled card → Assembled→Shipped/Avi; live building card → Building→Submitted)
  • [component] bin/rails test test/controllers/tasks_controller_test.rb (task show live assembled card renders data-stage=shipped + Avi, no Assembled→Assembled no-op)
  • [full-suite@2bfe27166b9b54d36a35307328fc9605f0672ab8] bin/rails test green
  • [rubocop@2bfe27166b9b54d36a35307328fc9605f0672ab8] bin/rubocop clean

Agent Context

Bug: the consolidated /tasks/:id Stage Timeline renders the in-progress card with from_stage==to_stage, producing a nonsensical 'Assembled -> Assembled' (and 'Building -> Building') badge. Root cause: StageAgentsHelper#in_progress_work returns the board RE-HOMED render_stage as work[:to_stage], and stage_timeline uses task.stage -> work[:to_stage] for the badge. The Steffon QA intent is recorded toward 'shipped' (qa:true) but re-homed to the assembled LANE for the board; the timeline must show the intent's REAL transition (assembled -> shipped) owned by the ship owner Avi, NOT Steffon (operator decision 2026-06-26: timeline diverges from board on purpose). Fix is display-only: keep in_progress_work board-facing (lane/agents=Steffon) intact so the /deployments board is unchanged; have the timeline badge use NEXT_PIPELINE_STAGE[task.stage] and attribute the assembled->shipped card to STAGE_OWNER['shipped']=avi. Also fixes the analogous live building card to 'Building -> Submitted'. Helper: app/helpers/stage_agents_helper.rb; view: app/views/tasks/_consolidated_timeline.html.erb; tests: test/helpers/stage_agents_helper_test.rb.

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 XL ≠ forecast
  1. Created Designed
    B Butterfree
    Butterfree
    Model
    Duration
    Tokens
    Cost
    Completed Jun 26, 19:19 · about 15 hours ago
    api
  2. Designed Building
    B Butterfree
    Butterfree
    Model
    claude-opus-4-8
    Duration
    1 minute
    Tokens
    2,047,221
    Cost
    ~$1.75
    Started Jun 26, 19:19
    Completed Jun 26, 19:20 · about 15 hours ago
    cli
  3. Building Submitted
    B Butterfree
    Butterfree
    Model
    claude-opus-4-8
    Duration
    10 minutes
    Tokens
    16,570,255
    Cost
    ~$11.19
    Started Jun 26, 19:20
    Completed Jun 26, 19:30 · about 14 hours ago
    cli
  4. Submitted Building
    B Butterfree
    Butterfree
    Model
    claude-opus-4-8
    Duration
    39 minutes
    Tokens
    2,974,100
    Cost
    ~$2.34
    Started Jun 26, 19:30
    Completed Jun 26, 20:09 · about 14 hours ago
    cli
  5. Building Reviewed
    Model
    claude-opus-4-8
    Duration
    5 minutes
    Tokens
    2,429,684
    Cost
    ~$3.09
    Started Jun 26, 20:09
    Completed Jun 26, 20:14 · about 14 hours ago
    cli
  6. Reviewed Assembled
    S Steffon
    Steffon
    Model
    claude-opus-4-8
    Duration
    2 minutes
    Tokens
    1,059,183
    Cost
    ~$0.93
    Started Jun 26, 20:14
    Completed Jun 26, 20:16 · about 14 hours ago
  7. Assembled Shipped
    A Avi
    Avi
    Model
    claude-opus-4-8
    Duration
    29 minutes
    Tokens
    4,401,455
    Cost
    ~$4.20
    Started Jun 26, 20:16
    Completed Jun 26, 20:46 · about 13 hours ago
  8. Shipped Archived
    Model
    Duration
    about 3 hours
    Tokens
    Cost
    Started Jun 26, 20:46
    Completed Jun 26, 23:28 · about 10 hours ago

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

XL