/resources page to be the go-to dashboard for understanding where resources are going in SciDEX. Add visualization and analysis for budget allocation, efficiency rankings, utilization timeline, provider breakdown, and wasted resources./resources page layoutresources_dashboard() in api.py:efficiency_rankings_section: Queries impact_ledger table for tasks with highest impact/$ ratiowasted_section: Finds tasks with >1000 tokens and ≤0.5 impact scoreutilization_timeline_section: Line chart of budget vs spend from quest_budget_allocationsprovider_cost_section: Groups cost_ledger by provider family for cost analysisquest_pie_chart_section: Doughnut chart of quest budget distributionimpact_ledger: For efficiency rankings and wasted resourcesquest_budget_allocations: For utilization timelinecost_ledger: For provider cost breakdownimpact_tracker.py: Impact measurement system must be functionalev_scorer.py: Quest budget allocation must be workingcost_ledger table in Orchestra DB: Must have provider and cost dataresources_dashboard() function in api.pyEfficiency Rankings Section:
impact_ledger for tasks with cost_usd > 0 AND impact_score > 0impact_score / cost_usd (impact per dollar)total_tokens > 1000 AND (impact_score <= 0.5 OR impact_score IS NULL)quest_budget_allocations for last 30 dayscost_ledger entries by provider pattern (MiniMax, Codex, Bedrock, GLM){
"requirements": {
"coding": 7,
"analysis": 6,
"reasoning": 6
},
"completion_shas": [
"78c1befe2"
],
"completion_shas_checked_at": "2026-04-17T10:04:44.711277+00:00",
"_reset_note": "This task was reset after a database incident on 2026-04-17.\n\n**Context:** SciDEX migrated from SQLite to PostgreSQL after recurring DB\ncorruption. Some work done during Apr 16-17 may have been lost.\n\n**Before starting work:**\n1. Check if the task's goal is ALREADY satisfied (run the relevant checks)\n2. Check `git log --all --grep=task:YOUR_TASK_ID` for prior commits\n3. If complete, verify and mark done. If partial, continue. If not done, proceed.\n\n**DB change:** SciDEX now uses PostgreSQL. `get_db()` auto-detects via\nSCIDEX_DB_BACKEND=postgres env var.",
"_reset_at": "2026-04-18T06:29:22.046013+00:00",
"_reset_from_status": "done"
}