pub struct CacheStatusPayload {Show 17 fields
pub path: String,
pub exists: bool,
pub journal_present: bool,
pub total: u64,
pub pending: u64,
pub applied: u64,
pub size_bytes: Option<u64>,
pub created_at: Option<u64>,
pub age_seconds: Option<u64>,
pub cache_version: Option<String>,
pub ai_model: Option<String>,
pub operation_count: Option<usize>,
pub config_hash: Option<String>,
pub current_config_hash: Option<String>,
pub config_hash_match: Option<bool>,
pub snapshot_status: Option<&'static str>,
pub stale_files: Option<Vec<StaleFileInfo>>,
}Expand description
data payload for cache status JSON envelope.
The required spec fields are total, pending, and applied
(non-negative integer counters). All other fields are additive
enrichments preserving information already exposed by the text path.
Fields§
§path: StringResolved path to the match cache file.
exists: boolWhether the cache file exists on disk.
journal_present: boolWhether the operation journal file exists on disk.
total: u64Total number of cached match operations (0 when no cache).
pending: u64Number of journal entries still pending (0 when no journal).
applied: u64Number of journal entries already applied (0 when no journal).
size_bytes: Option<u64>Cache file size in bytes (omitted when no cache).
created_at: Option<u64>Cache creation timestamp (Unix epoch seconds).
age_seconds: Option<u64>Cache age in seconds.
cache_version: Option<String>Cache schema version recorded in the file.
ai_model: Option<String>AI model name recorded in the cache.
operation_count: Option<usize>Number of cached match operations (mirrors total).
config_hash: Option<String>Configuration hash recorded inside the cache.
current_config_hash: Option<String>Configuration hash recomputed from the active config service.
config_hash_match: Option<bool>Whether config_hash matches current_config_hash.
snapshot_status: Option<&'static str>"valid", "stale", or "empty".
stale_files: Option<Vec<StaleFileInfo>>Per-file staleness diagnostics (only when snapshot_status == "stale").