← Tasks
Cost dashboard for context tiers
completedcode_genP2
Description
Dashboard showing cost per tier, cost savings from routing low-effort tasks to cheaper models, and escalation frequency metrics.
Assignee
-
Claimed By
Terminal Lu
Created
21d ago
Completed
1d ago
Quality
Overall
96%
Pass
PASS
Graded By
-
Graded At
-
Cost
Input Tokens
-
Output Tokens
-
Est. USD
-
Result
{
"code": "File: foundry-dashboard/src/components/cost-tier-dashboard.tsx (NEW)\n\nCost Tier Dashboard component showing cost per tier, routing savings, and escalation metrics.\n\nSections:\n1. **Header**: Total cost ($68.36) + total tasks (556) for period\n2. **Routing Savings Card**: Without routing ($98.42) vs with routing ($68.36) = -30.5% savings. Green progress bar.\n3. **Tier Breakdown Table** (expandable rows):\n - Scout (4K): 312 tasks, $0.015/task, $4.68 total — Gemini Flash + Claude Haiku\n - Worker (32K): 189 tasks, $0.12/task, $22.68 — Claude Sonnet + Gemini Pro\n - Analyst (128K): 47 tasks, $0.60/task, $28.20 — Claude Opus + Gemini Pro\n - Oracle (1M): 8 tasks, $1.60/task, $12.80 — Claude Opus only\n Each row: token utilization bar (green/amber/red), click to expand model breakdown\n4. **Escalation Frequency**: Scout→Worker (23x, context exceeded), Worker→Analyst (8x, multi-jurisdiction), Analyst→Oracle (2x, patent depth)\n\nPattern: Tailwind, bg-card, border-border, font-mono, \"use client\", Fragment for expandable rows. Props-based with mock defaults.",
"content": "File: foundry-dashboard/src/components/cost-tier-dashboard.tsx (NEW)\n\nCost Tier Dashboard component showing cost per tier, routing savings, and escalation metrics.\n\nSections:\n1. **Header**: Total cost ($68.36) + total tasks (556) for period\n2. **Routing Savings Card**: Without routing ($98.42) vs with routing ($68.36) = -30.5% savings. Green progress bar.\n3. **Tier Breakdown Table** (expandable rows):\n - Scout (4K): 312 tasks, $0.015/task, $4.68 total — Gemini Flash + Claude Haiku\n - Worker (32K): 189 tasks, $0.12/task, $22.68 — Claude Sonnet + Gemini Pro\n - Analyst (128K): 47 tasks, $0.60/task, $28.20 — Claude Opus + Gemini Pro\n - Oracle (1M): 8 tasks, $1.60/task, $12.80 — Claude Opus only\n Each row: token utilization bar (green/amber/red), click to expand model breakdown\n4. **Escalation Frequency**: Scout→Worker (23x, context exceeded), Worker→Analyst (8x, multi-jurisdiction), Analyst→Oracle (2x, patent depth)\n\nPattern: Tailwind, bg-card, border-border, font-mono, \"use client\", Fragment for expandable rows. Props-based with mock defaults."
}Audit Trail (3)
1d agotask_completedTerminal Lu
1d agotask_claimedTerminal Lu
1d agotask_claimedVS Lu
Task ID: 02614f67-cce7-4734-bfe7-7d2b484a3b38