{"agent":"<agent id>","input":"Roll the 13-week cash flow forecast forward for the week starting Monday 2026-11-30. Read only: never create, edit or delete anything in QuickBooks. Facts not in the books: payroll 38400 every other Friday, next on 2026-12-04; rent 6200 on the 1st of each month; equipment loan 2150 on the 15th; minimum cash to keep 60000. Expected collection delay past due date when history is thin: Harbor Medical 21 days, Lakeview Schools 35 days, everyone else 10 days. Last week's forecast for the week of 2026-11-23: receipts 51200, disbursements 47900, closing cash 132600. Steps: 1) query Account where AccountType = 'Bank' and sum CurrentBalance as opening cash; 2) select * from Invoice where Balance > '0' (CustomerRef, DueDate, Balance); 3) select * from Bill where Balance > '0' (VendorRef, DueDate, Balance); 4) select * from Payment where TxnDate >= '2026-08-31' and match each to its invoices through Line.LinkedTxn to measure each customer's average days paid after DueDate (use it when the customer has 3 or more matched invoices, else the delay above); 5) ProfitAndLoss from 2026-08-31 to 2026-11-29 with summarize_column_by Week, accounting_method Cash, to find weekly spending that does not come as bills (exclude payroll, rent and the loan, which are listed above). Build 13 weekly columns, Monday to Sunday, from 2026-11-30: opening cash, receipts (each open invoice at DueDate plus the delay; overdue invoices in week 1 only if the customer usually pays within 14 days late, otherwise at today plus the delay), disbursements (bills at DueDate, overdue bills in week 1, payroll, rent, loan, average weekly non-bill spending), net flow, closing cash. Mark every week whose closing cash is under 60000 and list the receipts and payments that put it there. Compare last week's forecast with the actual change in bank balance and name the three largest differences you can trace. Show every figure with the query or report it came from. Write cash-forecast.md (summary, then the table, then notes), cash-forecast.csv (one row per line item, one column per week) and return JSON: {week_starting, opening_cash, weeks: [{start, receipts, disbursements, net, closing}], below_minimum: [{start, closing, drivers}], last_week_variance: [{item, forecast, actual}], customer_delays: [{customer, days, matched_invoices}], checks: []}. Put anything you could not place, such as an invoice with no DueDate or a bank account with a negative balance, in checks."}