docs: implementation plan for battery- and GPU-aware thread tuning
Bite-sized TDD plan implementing the design at docs/superpowers/specs/2026-05-09-battery-gpu-aware-thread-tuning-design.md. 8 phases, ~13 commits: - Phase 1: power.rs (PowerState enum, sysfs parser, probe + overrides, 10s TTL cache) - Phase 2: tuning.rs (Workload enum, helper, battery clamp, GPU clamp, per-process logging) - Phase 3: vulkan_loader_available moves from src-tauri to magnotia-core - Phase 4: whisper backend wires through new helper - Phase 5: LLM call site wires through new helper after model load - Phase 6: remove old constants::inference_thread_count facade - Phase 7: thread_sweep.rs prints 4-panel power-aware RTF table - Phase 8: manual battery validation smoke Each task is TDD: write failing test, run, implement, run, commit. Tests live in unit-test modules inside power.rs and tuning.rs. Override design uses an in-process with_override(state, |closure|) helper for unit tests (cargo runs them in parallel; env-var path would race) and MAGNOTIA_POWER_STATE_OVERRIDE env var for integration tests like thread_sweep.rs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1403
docs/superpowers/plans/2026-05-09-battery-gpu-aware-thread-tuning.md
Normal file
1403
docs/superpowers/plans/2026-05-09-battery-gpu-aware-thread-tuning.md
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user