Quest: Resource Governance Priority: P4 Status: done
Add a /resources page (or enhance existing) showing real-time VM resource usage, per-analysis resource consumption, cost tracking, and historical trends. This is the control panel for resource governance.
_Identify during implementation._
_Identify during implementation._
origin/main: /resources existed, but Live VM Resources, /api/resources/vm-stats, fetchVmStats(), and per_analysis_section were absent.api.py changes and preserved the security headers/authentication work that landed after the earlier attempt.api.py: live psutil VM metrics endpoint, 15-second polling UI with alert thresholds, per-core CPU bars, and a per-analysis resource table from resource_usage.table_exists(), token resource-type variants, CPU-time variants, optional memory peak columns, event counts, and graceful debug logging.python3 -m py_compile api.py passed; direct api_resources_vm_stats() returned ok: true with CPU, memory, disk, and network fields; resources_dashboard() HTML contains Live VM Resources, fetchVmStats, /api/resources/vm-stats, Per-Analysis Resource Breakdown, and Peak Memory.{
"requirements": {
"coding": 7,
"reasoning": 6
}
}