{"agent":"<agent id>","input":"Build this week's accounts receivable aging report as of 2026-11-30. Read only: never create, edit, send or delete anything in QuickBooks, and send no email. Notes from the bookkeeper: Harlan Builders is on a payment plan of 2,000 per month, last paid 2026-11-14, do not draft a reminder; invoice 1187 for Wexford Homes is disputed (wrong panel count), list it but draft nothing for it. Steps: 1) AgedReceivables report with report_date 2026-11-30, aging_period 30, num_periods 4, aging_method Report_Date; read each customer's Current, 1-30, 31-60, 61-90 and 91+ amounts and total. 2) select * from Invoice where Balance > '0'; for each invoice read DocNumber, TxnDate, DueDate, Balance, CustomerRef, SalesTermRef, BillEmail and EmailStatus, and compute days past DueDate as of 2026-11-30. 3) Read CreditMemo rows and keep those with RemainingCredit above 0; read Payment rows with TxnDate on or after 2026-08-01 and keep those with UnappliedAmt above 0. 4) Check that each customer's open invoice balances add up to the report total for that customer; list every customer where they differ, with both numbers. Write ar-aging.md: a three-line summary (total open, total past 60 days, the three largest late balances), then one table per bucket order with customers past 60 days first, each with their late invoices (number, date, due date, balance, days late). Then a Fix first section: invoices with EmailStatus NeedToSend or NotSet, invoices with no DueDate, open credits and unapplied payments by customer. Write ar-aging.csv with one row per open invoice (customer, doc_number, txn_date, due_date, balance, days_past_due, bucket, email_status, bill_email). Write reminders.md with one draft email per customer more than 30 days past due, except those named in the notes: a subject line and a short, polite body listing each overdue invoice number, date and balance, signed with a placeholder for the owner's name. End with JSON {as_of, totals: {current, d1_30, d31_60, d61_90, d91_plus, total}, customers: [{name, current, d1_30, d31_60, d61_90, d91_plus, total}], mismatches: [], fix_first: [], reminders_drafted: [customer names]}."}