# SYSTEM MONITOR CPU CONTRACT (K2351–K2355) - **Move Range:** `K2351–K2355` - **Phase:** `Phase 18 — Daily Use Applications` - **Module:** `system_monitor.cpu` - **Title:** `CPU süre ve scheduler yükü` - **Invariant:** `Örnek aralığı ve idle payı açıklanır` - **Positive Case:** `İki CPU üç yük` (`k2355-twocpu`) - **Counterexample:** `Negatif veya wrap zaman farkı` (`k2355-wrapdelta`) - **Acceptance Criterion:** `Geçersiz örnek başarı diye gösterilmez` - **Crate:** `os-system-monitor` (`src/cpu.rs`) - **Inspection Symbol:** `os_system_monitor_cpu` ## 1. Scope and Invariants 1. **Sample Interval and Idle Share Explanation (`K2351–K2352`):** - The CPU and scheduler load monitor must explicitly explain both the sampling interval and per-CPU idle shares (`unexplained_sample_interval_or_idle_share == false`, `explained_idle_shares == 2`). - Any attempt to commit a CPU sample with an unexplained sample interval or idle share is deterministically rejected with `SystemMonitorCpuError::UnexplainedSampleIntervalOrIdleShare`. 2. **Refusal of Negative or Wrapped Time Delta (`K2353`):** - Negative or wrapped timestamp deltas (`negative_or_wrapped_time_delta == true`) are refused before any CPU utilization or scheduler load sample is committed (`SystemMonitorCpuError::NegativeOrWrappedTimeDelta`), and invalid samples are never shown as success (`invalid_sample_never_shown_as_success == true`, `false_valid_samples == 0`). 3. **Two CPUs and Three Scheduler Workloads (`K2354–K2355`):** - The positive path (`k2355-twocpu`) samples 2 monitored CPUs (`monitored_cpus == 2`) across 3 scheduler workloads (`scheduler_workloads == 3`) with 2 explained idle shares (`explained_idle_shares == 2`), zero false valid samples (`false_valid_samples == 0`), a strictly monotonic `cpu_epoch`, and an FNV-1a cryptographic binding (`compute_system_monitor_cpu_binding_digest`).