Agents Builders

Avi sizes designed tasks

Archived
avi-sizes-designed-tasks

Created

Jul 01, 18:34

Started

Jul 01, 18:36

Completed

Jul 01, 19:16

DevOps handoff

Type

Feature

Shape

backend

Worktree Slug

avi-sizes-designed-tasks

Repositories

mcritchie-studio

Release Slug

Branch

feat/avi-sizes-designed-tasks

Local URL

QA URL

Production URL

tooling

Acceptance Criteria

  • Designed task without size triggers Avi sizing
  • Sizing runs async in parallel with build
  • Avi sets po_size stamped as agent avi
  • Missing LLM leaves size blank gracefully

Expected Test Plan

  • unit
  • integration

Checks Run

  • [unit] test/services/avi_sizer_test.rb — LLM response→size mapping, xl, messy reply, no-fabricate nil, keyless nil, prompt content
  • [unit] test/jobs/avi_sizing_job_test.rb — sets po_size, no-clobber idempotency, graceful nil, ErrorLog on LLM error, missing-task no-op, avi attribution (AtomicEvent + Activity)
  • [unit] test/models/task_avi_sizing_trigger_test.rb — enqueues only when designed+blank; not when sized/non-designed; on move-into-designed; not on non-stage edit
  • [integration] test/controllers/api/v1/tasks_controller_test.rb — create w/o po_size enqueues; with po_size does not; perform-through sets po_size + stamps agent=avi event
  • [full-suite@f8bfba3287f452929b57eee1adee99c42b0c6aaa] bin/rails test green
  • [rubocop@f8bfba3287f452929b57eee1adee99c42b0c6aaa] bin/rubocop clean

Agent Context

When a task enters designed WITHOUT a po_size, async-spawn Avi (LLM) to shirt-size it in parallel with the build (non-blocking); Avi sets po_size and records an agent=avi event. Graceful when LLM unavailable (leave blank, never crash/fabricate). Full spec in delegation prompt. Uses the app LLM adapter (see app/services/chat/alex_responder.rb). See project_opsd_learning_layer, project_mcritchie_org_chart_2_0_2026_05_28.

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 MEDIUM Dev MEDIUM Actual XL ≠ forecast
  1. Created Designed
    C Caterpie
    Caterpie
    Model
    Duration
    Tokens
    Cost
    Completed Jul 01, 18:34 · 7 days ago
    api
  2. Designed Building
    C Caterpie
    Caterpie
    Model
    claude-opus-4-8
    Duration
    2 minutes
    Tokens
    4,101,932
    Cost
    ~$3.00
    Started Jul 01, 18:34
    Completed Jul 01, 18:36 · 7 days ago
    cli
  3. Building Submitted
    C Caterpie
    Caterpie
    Model
    claude-opus-4-8
    Duration
    17 minutes
    Tokens
    Cost
    Started Jul 01, 18:36
    Completed Jul 01, 18:53 · 7 days ago
    cli
  4. Submitted Reviewed Review Activity
    C Carl
    Carl primary
    S Shannon
    Shannon light
    Model
    claude-opus-4-8
    Duration
    2 minutes
    Tokens
    2,792,412
    Cost
    ~$1.81
    Started Jul 01, 18:53
    Completed Jul 01, 18:55 · 7 days ago
    cli
  5. Reviewed Assembled
    S Steffon
    Steffon
    Model
    claude-opus-4-8
    Duration
    under a minute
    Tokens
    1,403,892
    Cost
    ~$0.80
    Started Jul 01, 18:55
    Completed Jul 01, 18:56 · 7 days ago
  6. Assembled Shipped
    A Avi
    Avi
    Model
    claude-opus-4-8
    Duration
    20 minutes
    Tokens
    10,404,834
    Cost
    ~$5.77
    Started Jul 01, 18:56
    Completed Jul 01, 19:16 · 7 days ago
  7. Shipped Archived
    Model
    Duration
    2 days
    Tokens
    Cost
    Started Jul 01, 19:16
    Completed Jul 04, 03:23 · 4 days 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)

MEDIUM

Dev

MEDIUM

Actual

XL