Court closeout reconciliation
You are acting as a deputy/finance clerk closing out a batch of matters. The
inputs are (1) local documents that are messy, partial, and sometimes carry
draft, legacy, or shorthand errors, and (2) an authoritative court operations
portal (the system of record) exposing record collections such as jurisdictions,
cases, charges, docket entries, fee schedules, payment policies, forms,
citations, and financial petitions. Your job is to reconcile the two into one
JSON object that exactly matches the task's answer_template.
The work is 20% data gathering and 80% reconciliation judgment: deciding, per
field, which source wins, and applying court-clerk rules about what may be posted.
Procedure
Read the answer template first, before touching data. Extract and obey:
- the exact
required_top_level_keys and the nested item shapes;
- every
enum — output only allowed enum values, never prose or synonyms;
ordering_rules — sort each list exactly as specified (usually by
case/citation/petition number ascending, then a secondary key; sort
placeholder/field/charge lists alphabetically);
- formatting: ISO
YYYY-MM-DD dates, YYYY-MM-DDTHH:MM:SS datetimes,
currency as numbers to two decimals;
- the required placeholder string for un-fillable fields (e.g. a literal
"TBD from case file"), and the rule for when it applies.
Pull the portal record for every target entity and every reference it
needs. Look each target up by its exact identifier, and also fetch the
jurisdiction's current fee schedule, payment policy, and form metadata. Treat
the portal as the system of record, but not as infallible — its per-charge
fields can carry the same kind of stale/mislabeled noise the local docs do.
Reconcile field-by-field using the source-priority model below. For each
target, list the conflicts across sources, decide the corrected value and
which source resolved it, and record that decision if the schema asks for
audit findings.
Apply the clerk posting rules (what fee applies, what gets held, what is
excluded) — see references/reconciliation-and-math.md.
Compute derived values — fee/register/batch totals, installment schedules,
and derived dates — using the formulas in the reference file. Compute totals
only from matters that are actually posted (never from held/pending matters).
Emit exactly the required structure. Include every required key, sorted
and formatted, with only supported values. Do not invent identifiers, fees,
balances, conditions, or contact details that no source supports.
Source-priority model (which source wins)
Different field types have different authorities. Resolve conflicts this way:
- Disposition substance — plea, guilt/finding, counts convicted vs
dismissed/amended-away, sentence terms, whether a departure was pronounced,
and whether a final order was signed — is governed by the courtroom
hearing/bench notes and the signed order (what the judge actually did). The
portal's per-charge disposition field may be wrong here (e.g. it reads
"dismissed"/"nolle" for a matter the bench adjudicated guilty, or shows the
pre-amendment charge); the courtroom record overrides it.
- Fee amounts come from the current fee schedule — the row effective on
the disposition date. Reject any row that has ended (has an
end_date) or is
labeled archived/stale, even if a queue/worksheet carried that older number.
- Payment-plan parameters (monthly band, down payment, first-due offset,
return-to-court offset, account-fee treatment, restitution priority) come from
the jurisdiction's payment policy.
- Identity (name / DOB) is normally the portal case record; a
corroborating paper memo or defense document establishes a correction when the
queue/worksheet is wrong. When a memo/defense document is the thing that
actually resolves an identity or counsel conflict, attribute the resolution to
that corroborating memo — not to the portal — if the schema distinguishes them.
- The financial/installment order for the current packet takes its order-line
values (e.g. a license-suspension term entered on the financial order) from the
controlling financial worksheet/petition for that packet when it explicitly
states a value, even if the criminal charge record differs. Absent such an
explicit packet value, fall back to the charge/statutory value.
- Draft, legacy, queued, or "morning worksheet" values lose whenever they
conflict with any authoritative source above.
When the schema records the resolution source, map it to the source that
decided the value: the current schedule for a fee correction; the hearing/bench
record for a disposition or departure correction; the corroborating memo for an
identity/counsel correction it established; a "verify/hold" action when a value
is genuinely missing or the order is unsigned.
The most common, high-value clerk rules
- Hold anything not final. An unsigned / deferred / pending / continued
matter must be held: do not post its financials, exclude it from the disposed
register, leave its disposition date null, and (if asked) record a next-status
check date and that financial posting is not allowed.
- Counsel drives eligibility. A public-defender user fee applies only when
counsel is public defender. Appointed-private / county-pay counsel is not
PD-fee eligible, and an ambiguous calendar abbreviation is not proof of public
defender — verify the classification.
- Match assessments to the conviction. A drug/crime-lab assessment applies
only to a controlled-substance conviction. If the count was amended to a
non-drug offense, drop the assessment even if a worksheet carried it; if the
worksheet omitted it but the conviction is a controlled substance, add it.
- "Top of range" / presumptive / a plea-agreement cap is not a departure.
Enter only a departure the judge actually pronounced on the record.
- Exclude unsupported money. Account-management, collection, late-payment,
DMV/reinstatement, returned-check, traffic-school, copy/certification,
restitution-not-ordered, statutory-maximum substitutions, and stale-schedule
amounts stay out of the balance unless a current schedule/policy or the order
directly supports them.
- Placeholders are exact and case-specific. Use the required placeholder
string only for fields a form needs but no source provides (identifiers,
addresses, phone, driver-license number; and, when a probation referral is
being prepared, the probation officer and office location). Do not
placeholder a field that has a standard or derivable value. Only list a
placeholder for a case that actually needs that field — a case with no
probation referral carries no probation-office placeholders.
See references/reconciliation-and-math.md for the plea taxonomy, the exact
installment/date formulas, and the full determination checklist.
Output hygiene checklist
- Top-level keys match the template exactly; nothing extra, nothing missing.
- Every enum field holds an allowed value; no free text where an enum exists.
- Dates ISO; datetimes ISO local; every money value a number to two decimals.
- Every list sorted per the ordering rules; alphabetical where specified.
- Totals recomputed from the per-item posted values and internally consistent.
- No invented facts; unresolved-but-required fields use the exact placeholder.
1---2name: court-closeout-reconciliation-73description: Produce a clerk-ready court-operations closeout packet as a single structured JSON object matching a provided answer template, by reconciling local case materials (hearing/bench notes, clerk audit or supervisor memos, finance queue or worksheet extracts, financial petitions, and local form excerpts) against the authoritative court operations portal (system of record). Use for criminal sentencing/disposition closeouts, disposition registers, fee reconciliation, traffic-citation closeouts, installment/extended payment plans, probation referrals, and license-suspension orders. Triggers when a task gives target cases/citations/petitions plus mixed local documents and a portal, and asks for audit findings, corrected dispositions, fee/register totals, payment schedules, form/placeholder handling, or excluded-charge lists in a schema-constrained JSON.4---56# Court closeout reconciliation78You are acting as a deputy/finance clerk closing out a batch of matters. The9inputs are (1) local documents that are messy, partial, and sometimes carry10draft, legacy, or shorthand errors, and (2) an authoritative court operations11portal (the system of record) exposing record collections such as jurisdictions,12cases, charges, docket entries, fee schedules, payment policies, forms,13citations, and financial petitions. Your job is to reconcile the two into one14JSON object that exactly matches the task's `answer_template`.1516The work is 20% data gathering and 80% **reconciliation judgment**: deciding, per17field, which source wins, and applying court-clerk rules about what may be posted.1819## Procedure20211. **Read the answer template first, before touching data.** Extract and obey:22 - the exact `required_top_level_keys` and the nested item shapes;23 - every `enum` — output only allowed enum values, never prose or synonyms;24 - `ordering_rules` — sort each list exactly as specified (usually by25 case/citation/petition number ascending, then a secondary key; sort26 placeholder/field/charge lists alphabetically);27 - formatting: ISO `YYYY-MM-DD` dates, `YYYY-MM-DDTHH:MM:SS` datetimes,28 currency as numbers to two decimals;29 - the required placeholder string for un-fillable fields (e.g. a literal30 "TBD from case file"), and the rule for when it applies.31322. **Pull the portal record for every target entity and every reference it33 needs.** Look each target up by its exact identifier, and also fetch the34 jurisdiction's current fee schedule, payment policy, and form metadata. Treat35 the portal as the system of record, but not as infallible — its per-charge36 fields can carry the same kind of stale/mislabeled noise the local docs do.37383. **Reconcile field-by-field using the source-priority model below.** For each39 target, list the conflicts across sources, decide the corrected value and40 *which source resolved it*, and record that decision if the schema asks for41 audit findings.42434. **Apply the clerk posting rules** (what fee applies, what gets held, what is44 excluded) — see `references/reconciliation-and-math.md`.45465. **Compute derived values** — fee/register/batch totals, installment schedules,47 and derived dates — using the formulas in the reference file. Compute totals48 only from matters that are actually posted (never from held/pending matters).49506. **Emit exactly the required structure.** Include every required key, sorted51 and formatted, with only supported values. Do not invent identifiers, fees,52 balances, conditions, or contact details that no source supports.5354## Source-priority model (which source wins)5556Different field *types* have different authorities. Resolve conflicts this way:5758- **Disposition substance** — plea, guilt/finding, counts convicted vs59 dismissed/amended-away, sentence terms, whether a departure was pronounced,60 and whether a final order was signed — is governed by the **courtroom61 hearing/bench notes and the signed order** (what the judge actually did). The62 portal's per-charge disposition field may be wrong here (e.g. it reads63 "dismissed"/"nolle" for a matter the bench adjudicated guilty, or shows the64 pre-amendment charge); the courtroom record overrides it.65- **Fee amounts** come from the **current fee schedule** — the row effective on66 the disposition date. Reject any row that has ended (has an `end_date`) or is67 labeled archived/stale, even if a queue/worksheet carried that older number.68- **Payment-plan parameters** (monthly band, down payment, first-due offset,69 return-to-court offset, account-fee treatment, restitution priority) come from70 the jurisdiction's **payment policy**.71- **Identity** (name / DOB) is normally the **portal case record**; a72 corroborating paper memo or defense document establishes a correction when the73 queue/worksheet is wrong. When a memo/defense document is the thing that74 actually resolves an identity or counsel conflict, attribute the resolution to75 that corroborating memo — not to the portal — if the schema distinguishes them.76- **The financial/installment order for the current packet** takes its order-line77 values (e.g. a license-suspension term entered on the financial order) from the78 controlling **financial worksheet/petition for that packet** when it explicitly79 states a value, even if the criminal charge record differs. Absent such an80 explicit packet value, fall back to the charge/statutory value.81- **Draft, legacy, queued, or "morning worksheet" values lose** whenever they82 conflict with any authoritative source above.8384When the schema records the resolution source, map it to the source that85*decided* the value: the current schedule for a fee correction; the hearing/bench86record for a disposition or departure correction; the corroborating memo for an87identity/counsel correction it established; a "verify/hold" action when a value88is genuinely missing or the order is unsigned.8990## The most common, high-value clerk rules9192- **Hold anything not final.** An unsigned / deferred / pending / continued93 matter must be held: do not post its financials, exclude it from the disposed94 register, leave its disposition date null, and (if asked) record a next-status95 check date and that financial posting is not allowed.96- **Counsel drives eligibility.** A public-defender user fee applies *only* when97 counsel is public defender. Appointed-private / county-pay counsel is not98 PD-fee eligible, and an ambiguous calendar abbreviation is not proof of public99 defender — verify the classification.100- **Match assessments to the conviction.** A drug/crime-lab assessment applies101 only to a controlled-substance conviction. If the count was amended to a102 non-drug offense, drop the assessment even if a worksheet carried it; if the103 worksheet omitted it but the conviction is a controlled substance, add it.104- **"Top of range" / presumptive / a plea-agreement cap is not a departure.**105 Enter only a departure the judge actually pronounced on the record.106- **Exclude unsupported money.** Account-management, collection, late-payment,107 DMV/reinstatement, returned-check, traffic-school, copy/certification,108 restitution-not-ordered, statutory-maximum substitutions, and stale-schedule109 amounts stay out of the balance unless a current schedule/policy or the order110 directly supports them.111- **Placeholders are exact and case-specific.** Use the required placeholder112 string only for fields a form needs but no source provides (identifiers,113 addresses, phone, driver-license number; and, when a probation referral is114 being prepared, the probation officer and office location). Do **not**115 placeholder a field that has a standard or derivable value. Only list a116 placeholder for a case that actually needs that field — a case with no117 probation referral carries no probation-office placeholders.118119See `references/reconciliation-and-math.md` for the plea taxonomy, the exact120installment/date formulas, and the full determination checklist.121122## Output hygiene checklist123124- Top-level keys match the template exactly; nothing extra, nothing missing.125- Every enum field holds an allowed value; no free text where an enum exists.126- Dates ISO; datetimes ISO local; every money value a number to two decimals.127- Every list sorted per the ordering rules; alphabetical where specified.128- Totals recomputed from the per-item posted values and internally consistent.129- No invented facts; unresolved-but-required fields use the exact placeholder.