1---2name: reconcile-court-closeout3description: Reconcile court closeout and post-sentencing packet tasks from hearing notes, clerk memos, worksheets, intake packets, and Court Operations Portal data. Use when the work asks for schema-driven JSON outputs covering dispositions, fee reconciliation, payment plans, probation referrals, license-suspension orders, docket/register entries, or exclusion of stale or unsupported charges.4---56# Court Closeout Reconciler78## Workflow9101. Read the prompt, answer template, and every payload completely before deciding anything.112. Inventory the required top-level keys, enums, sort rules, and precision rules from the template first.123. Read `environment_access.md` for the running base URL, then use only the portal endpoints the prompt calls for.134. Use portal lookups to verify the live record set:14 - `/api/jurisdictions` and `/api/citations` for citation-based tasks, court codes, and defendant/violation lookups15 - `/api/cases`, `/api/charges`, `/api/docket-entries` for identity, status, plea, and disposition facts16 - `/api/fee-schedules` and `/api/payment-policies` for current financial rules17 - `/api/forms` for form IDs, labels, and required fields18 - `/api/financial-petitions` for petition intake and budget math19 - `/api/search` when a fact is split across notes, templates, or portal records205. Resolve conflicts using the most authoritative source available:21 - signed order or explicit hearing record22 - corroborating memo or form excerpt23 - current portal record, schedule, or policy24 - draft worksheet, queue extract, or archived carry-forward value256. Build the JSON exactly to the template:26 - use required keys only27 - keep enum spellings exact28 - use ISO dates and money rounded to two decimals29 - sort arrays and subarrays exactly as instructed30 - preserve required placeholders verbatim when the file says to use them317. Recompute totals from included items only.32 - round after summing33 - exclude unsupported, stale, or not-yet-triggered fees34 - hold pending or unsigned matters out of posted registers and financial entries358. Return JSON only.3637## Common Rules3839- Treat the template as the contract; do not assume one fixed schema across tasks.40- Do not invent identifiers, contact details, or other missing case-file data.41- If a template provides an exclusion list, use it for disallowed amounts instead of inflating the balance.42- If a current fee schedule conflicts with an archived worksheet amount, use the current schedule.43- If a disposition is not final, do not post it as disposed.4445## Sanity Check4647- Every required key is present.48- Every ordered list is sorted correctly.49- Every total matches the line items that remain after exclusions.50- Every placeholder is either the template's required placeholder or omitted when the schema allows omission.