Agent training shifts from prompt craft to learning loops