Quest: Resource Governance
Layer: Senate
Priority: P88
Status: active
Tasks: 6 total (0 done, 6 open)
Vision
Enforce hard resource limits on the VM — memory caps per analysis, CPU quotas, concurrent analysis limits, cumulative daily cost budgets, and auto-kill for runaway processes. Track and display resource usage in real-time. Prevent the VM from becoming unresponsive due to analysis load. Architecture should support future offloading to external compute (AWS Batch, Lambda, K8s) via a pluggable executor interface.
Tasks
☐ [Senate] Implement hard memory and CPU limits for analysis processes (P5)
☐ [Senate] Add concurrent analysis limits and queue management (P5)
☐ [Senate] Implement daily cost budgets with auto-pause (P4)
☐ [Senate] Build real-time resource monitoring dashboard (P4)
☐ [Senate] Design executor plugin architecture for external compute scaling (P3)
☐ [Senate] Add process watchdog that kills runaway analyses and orphaned processes (P4)
Success Criteria
☐ All tasks completed and verified
☐ Integration tested end-to-end
☐ Metrics visible on Senate/Quests dashboards
☐ Design supports future scaling to external compute
Architecture Notes
This quest is designed with a local-first, cloud-ready philosophy:
- All implementations must work on the current single VM
- All interfaces must support future migration to containers/cloud
- Resource limits are configurable, not hardcoded
- Executor/sandbox abstractions allow swapping implementations
Work Log
_No entries yet._