Accounting firms are scaling back the role of human auditors in routine testing of things like payroll and revenue contracts, long a critical part of their work, amid a greater reliance on AI agents.