pub fn append_agent_log(rules_path: &Path, line: &str) -> Result<()>
Append a line to the per-rules agent log (used by background daemon stdout and watch-mode ticks).