ListLogs, ListLogsBefore and the two task_relations reads in the task
archive code never checked rows.Err(). When a result set fails partway
(connection drop, statement timeout), Next returns false and closes the
rows, so the later Close returns nil and the caller got a silently
truncated list: missing log lines, or an archive whose source tasks
are incomplete.
Claude-Session: https://claude.ai/code/session_01JNRiKGwr3P1LP1njD8FbR4
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: BaaRai <130491490+BaaRai@users.noreply.github.com>