# SYSTEM MONITOR LOGS CONTRACT (K2356–K2360) - **Move Range:** `K2356–K2360` - **Phase:** `Phase 18 — Daily Use Applications` - **Module:** `system_monitor.logs` - **Title:** `Yetkili tanı log görünümü` - **Invariant:** `Monitor sırlı alanları okuyamaz` - **Positive Case:** `İzinli hizmet olayları` (`k2360-authevents`) - **Counterexample:** `Secret buffer log isteği` (`k2360-secretlog`) - **Acceptance Criterion:** `Redaction ve principal süzmesi çalışır` - **Crate:** `os-system-monitor` (`src/logs.rs`) - **Inspection Symbol:** `os_system_monitor_logs` ## 1. Scope and Invariants 1. **No Secret Field Exposure to System Monitor (`K2356–K2357`):** - The diagnostic log monitor must never read or expose secret fields (`monitor_read_secret_fields == false`, `unredacted_secret_leaks == 0`), and redaction plus principal filtering must be strictly enforced (`redaction_and_principal_filter_enforced == true`). - Any attempt to bypass redaction or read secret fields is deterministically refused (`SystemMonitorLogsError::MonitorReadSecretFields`, `SystemMonitorLogsError::RedactionOrPrincipalFilterBypassed`). 2. **Refusal of Secret Buffer Log Requests (`K2358`):** - Requests targeting a secret buffer log (`secret_buffer_log_requested == true`, `k2360-secretlog`) are rejected before any diagnostic log view is committed (`SystemMonitorLogsError::SecretBufferLogRequested`), leaving `committed_receipt()` as `None`. 3. **Authorized Service Events with Redaction and Principal Filtering (`K2359–K2360`):** - The positive path (`k2360-authevents`) commits 4 authorized service events (`authorized_service_events == 4`) with 2 redacted secret fields (`redacted_secret_fields == 2`), 4 principal filter matches (`principal_filter_matches == 4`), and 0 unredacted secret leaks (`unredacted_secret_leaks == 0`), bound by a monotonic `logs_epoch` and FNV-1a digest (`compute_system_monitor_logs_binding_digest`).