pub async fn read_output_file(
task_id: &str,
primary_path: &Path,
repo: &str,
) -> StringExpand description
Read the agent’s output file, trying multiple locations.
Checks per-task attempt directory first, then legacy flat paths.
Output is truncated to MAX_OUTPUT_SIZE_BYTES to prevent runaway memory usage.