Agents Builders

Persist mascot in worktree context

Archived
persist-mascot-in-worktree-context

Created

Jun 24, 03:43

Started

Jun 24, 03:43

Completed

Jun 24, 04:18

DevOps handoff

Type

Bug

Shape

backend

Worktree Slug

persist-mascot-in-worktree-context

Repositories

mcritchie-studio

Release Train

Branch

feat/persist-mascot-in-worktree-context

QA URL

Production URL

tooling statusline

Acceptance Criteria

  • Context regen never blanks a known mascot
  • Mascot resolves from env, file, or record
  • Regression test covers the mascot blanking

Expected Test Plan

  • unit

Checks Run

  • [unit] context regen falls back to on-disk mascot (focused behavioral test)
  • [integration] agent_worktree CLI suite via subprocess (26 runs/573 assertions, git+file boundary)

Agent Context

bin/agent-worktree context_payload resolves the mascot only from values['TASK_MASCOT'] (line ~1097). stack_values (the from-scratch builder used by 'new' + test-DB provisioning) never sets TASK_MASCOT; only bind_task fetches it (lines ~1206-7) and persists to .env.agent-stack. So any write_context_marker call that rebuilds values from scratch (new, up, test-db setup) before/around bind writes a mascot-less .agent-context.json, and bin/statusline then falls back to the task URL instead of the Pokemon. Observed live: header showed Jigglypuff, then blanked to the task link on the next refresh, then came back. Fix: make context_payload resolve the mascot via fallback chain values['TASK_MASCOT'] -> existing on-disk .agent-context.json mascot -> task record devops.mascot, so a regen can never downgrade a known mascot to blank, and the first paint after 'new' can source it from the record.

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.

  1. Created Designed
    D Dragonair
    Dragonair
    Model
    Duration
    Tokens
    Cost
    Completed Jun 24, 03:43 · 3 days ago
    api
  2. Designed Building
    D Dragonair
    Dragonair
    Model
    claude-opus-4-8
    Duration
    under a minute
    Tokens
    Cost
    Started Jun 24, 03:43
    Completed Jun 24, 03:43 · 3 days ago
    cli
  3. Building Submitted
    D Dragonair
    Dragonair
    Model
    claude-opus-4-8
    Duration
    14 minutes
    Tokens
    Cost
    Started Jun 24, 03:43
    Completed Jun 24, 03:57 · 3 days ago
    cli
  4. Submitted Reviewed
    C Carl
    Carl primary
    J Jasper
    Jasper light
    Model
    claude-opus-4-8
    Duration
    10 minutes
    Tokens
    17,649,997
    Cost
    ~$16.72
    Started Jun 24, 03:57
    Completed Jun 24, 04:07 · 3 days ago
    cli
  5. Reviewed Assembled
    S Steffon
    Steffon
    Model
    Duration
    under a minute
    Tokens
    Cost
    Started Jun 24, 04:07
    Completed Jun 24, 04:08 · 3 days ago
  6. Assembled Shipped
    A Avi
    Avi
    Model
    Duration
    10 minutes
    Tokens
    Cost
    Started Jun 24, 04:08
    Completed Jun 24, 04:18 · 3 days ago
  7. Shipped Archived
    1
    159aaa24-5db3-4c44-aa05-25c79d2902cd
    Model
    claude-opus-4-8
    Duration
    about 13 hours
    Tokens
    Cost
    Started Jun 24, 04:18
    Completed Jun 24, 17:38 · 3 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)

Dev

Actual