Function write_status
Source pub fn write_status(path: &Path, status: &AgentStatus) -> Result<()>
Expand description
Write agent status to a file atomically
Uses a temporary file + rename strategy to ensure atomic writes
and prevent corruption from concurrent access.
§Arguments
path - Path where the status file should be written
status - The status data to write
§Returns
Ok(()) if write succeeds, Err otherwise