Court Clerk Post-Hearing Reconciliation and Financial Packet Skill
Overview
This skill prepares structured post-hearing or post-disposition reconciliation packets for
court clerk entry. It cross-references local case materials (hearing notes, clerk memos,
finance queue extracts, petition summaries, sentencing intake sheets, worksheet CSVs, and
local form excerpts) against the Court Operations Portal (<TASK_ENV_BASE_URL>) to
produce a single JSON answer conforming to an attached answer_template.json.
The skill handles criminal sentencing closeouts, traffic-violation payment-plan packets,
post-sentencing field packets (including CC-1375 probation referrals and CC-1379 license
suspension / installment orders), and multi-case criminal disposition registers.
When to Use
Invoke this skill when the task involves:
- Closing out a criminal docket or traffic-violation hearing.
- Reconciling financial entries (fines, court costs, assessments, user fees) across
multiple sources.
- Preparing post-sentencing form packets (probation referral, license suspension,
installment payment orders).
- Identifying audit conflicts in defendant identity, counsel, status, fee schedules,
or departure findings.
- Producing batch register totals with disposed and held/pending case counts.
Workflow
Follow these steps for every task. Do not skip cross-reference steps.
Step 1 — Orient
- Read the prompt (
prompt.txt). Note:
- The court/jurisdiction, hearing date, and docket type.
- The target case numbers, citation numbers, or petition IDs.
- Which portal endpoints the prompt explicitly lists.
- Read every file in
input/payloads/. These are local materials such as:
- Hearing or courtroom notes (may contain bench shorthand, nicknames, or
carry-forward values from prior docket sheets).
- Clerk audit memos listing known exceptions and supervisor notes.
- Finance queue extracts or worksheets (CSV or JSON) with queued fee lines.
- Local form excerpts describing form families and required fields.
- Payment petition summaries with budget data and requested payment terms.
- Sentencing intake sheets with the official conviction and sentence posture.
- Read the
answer_template.json in the payloads directory. This schema is the
contract for the output. Note every required key, enum, field type, sort order,
currency precision, and date format. If the template defines ordering rules, those
rules are mandatory.
Step 2 — Query the Portal
The portal base URL is <TASK_ENV_BASE_URL> (at generation time this resolves to the
running environment network address; ignore any localhost, 127.0.0.1, or
env/setup.sh references in local task materials).
Available read-only endpoints (all GET):
| Endpoint |
Key query parameters |
Returns |
/api/jurisdictions |
none (list all) |
Jurisdiction records with jurisdiction_code, policy_ref, court name, county, state, timezone. |
/api/cases |
case_number, jurisdiction_code |
Case records: defendant name, DOB, counsel type and attorney name, status, disposition date, judge. |
/api/charges |
case_number, jurisdiction_code |
Charge records per case: count number, offense code, statute, plea, disposition, fine, jail days imposed/suspended, probation months, departure type. |
/api/docket-entries |
case_number, jurisdiction_code |
Docket entry log: entry date, type (filing, hearing, disposition, financial, clerk_note), text, source system. |
/api/citations |
citation_number, jurisdiction_code |
Traffic citation records: defendant name, DOB, speed, zone, statute, violation code, plea, disposition, payment plan fields. |
/api/fee-schedules |
jurisdiction_code (optional) |
Fee schedule entries: fee type, amount, effective/end dates, jurisdiction, mandatory flag, violation code, label. Always filter out stale (expired) schedule entries whose end_date is before the disposition date. |
/api/payment-policies |
jurisdiction_code (optional) |
Payment plan policy: min/max monthly, first-due offset days, return-to-court offset, restitution priority, account fee policy. |
/api/forms |
jurisdiction_code (optional) |
Form metadata: form_id, label, jurisdiction, required fields, placeholder instructions. |
/api/financial-petitions |
petition_id, case_number |
Financial petition records: petitioner name, income, obligations, balances, requested monthly amount, default status. |
/api/search |
q (search text) |
General text search across all record types. |
Query strategy:
- For each target case/citation, fetch its case or citation record, its charges (if
criminal), and its docket entries.
- Fetch the jurisdiction's fee schedules and payment policies.
- If forms are referenced in the answer template (e.g., CC-1375, CC-1379), look up
their metadata via
/api/forms filtered by jurisdiction.
- If petitions are involved, fetch them via
/api/financial-petitions.
- When the prompt calls for form labels or account references, cross-check portal
form metadata.
Step 3 — Cross-Reference and Identify Conflicts
Compare every data point from local payloads against the portal records. Flag
every mismatch. The portal is the system of record for identity and form metadata;
local hearing notes and corroborating memos can override legacy/draft financial
worksheets.
Common conflict categories (canonical set):
| Conflict |
What to compare |
Typical source of truth |
| Identity |
Defendant name spelling, DOB |
Portal case/citation record (use_cms) for identity; corroborating memo can confirm DOB corrections. |
| Counsel |
Counsel type and attorney name |
Portal record or corroborating memo. A local PD label on a worksheet may be incorrect if a defense memo or judge clarified the attorney is appointed private counsel (not the public defender office). |
| Status |
Disposition status (disposed / deferred / pending / continued) |
Hearing notes and portal docket entries. A draft worksheet showing "disposed" is overridden if the judge did not sign a final order. |
| Fee schedule |
Fee amounts and applicability |
Portal fee schedules filtered to the disposition date. An older local worksheet or intake sheet may carry stale amounts (e.g., a 2023 drug assessment for a 2025 disposition). Always use current portal schedules. |
| Departure |
Departure finding (none / durational / dispositional) |
Hearing notes or courtroom audio. A legacy charge screen or draft sentence worksheet may carry a departure label that the judge expressly rejected in open court. |
For every conflict identified, document:
- Which case it applies to.
- What the conflicted (local/draft) value is.
- What the corrected value should be.
- How it was resolved (which source was used).
Step 4 — Resolve Conflicts
Apply these precedence rules:
- Signed court order or on-the-record judge statement (as captured in hearing
notes) overrides any worksheet, queue extract, or legacy system value.
- Portal case/citation record (CMS) is authoritative for defendant identity
(name spelling, DOB) unless a corroborating memo with specific correction
overrides it.
- Portal fee schedules override any locally carried fee amounts. Use the
schedule entry whose effective date covers the disposition date and whose
end_date is null or after the disposition date.
- Portal payment policy controls installment plan parameters (min/max monthly,
first-due offset, account fee treatment, restitution priority).
- Portal form metadata controls form IDs, labels, and required fields.
- Corroborating memo (clerk audit memo, supervisor note) overrides worksheet
labels that are contradicted by specific evidence (e.g., a calendar abbreviation
"APD" that the judge clarified means appointed private, not public defender).
- Draft/worksheet only materials that lack a signed order or portal confirmation
must be held — do not post them.
Step 5 — Reconcile Finances
For every disposed case/citation, build a reconciled fee entry:
- Start with mandatory fees from the portal fee schedule for the jurisdiction:
- Court costs (
court_cost, fee_type: "court_cost") — mandatory, amount per
the schedule.
- Crime lab fee (
fee_type: "assessment") — mandatory only for controlled-substance
convictions where the schedule mandates it.
- Fines — use the amount the judge pronounced, not a stale worksheet figure.
- Drug assessment — use the current portal schedule amount for the disposition
year, not an archived amount.
- Public defender user fee — apply only when counsel is classified as
public_defender; do NOT apply for appointed_private or retained counsel.
- County surcharge — apply per the schedule (typically once per citation).
- Exclude unsupported charges. The following are NEVER added unless a portal
record or current policy explicitly supports them:
- Account-management / payment-plan service charges
- Collection referral fees
- Late-payment fees / interest
- DMV notice/reinstatement fees
- Returned-check fees
- Restitution (without a court order)
- Court-appointed attorney fees (without an order)
- Court reporter fees (without an order)
- Traffic-school program fees (not ordered)
- Copy/certification fees
- Stale/archived fee amounts (end_date before disposition date)
- For held/pending cases: fee status is
hold (or equivalent), fee items are
empty or zeroed, and the case total is 0.00. Do not post financial entries for
cases awaiting a signed order.
- For payment plan cases: calculate the installment schedule using the total
due and the approved monthly payment amount per the jurisdiction's payment policy.
full_payment_count = floor(total_due / monthly_payment) — number of full
installments.
final_payment_amount = total_due - (full_payment_count * monthly_payment) —
the smaller final payment (0 if the total divides evenly).
total_installments = full_payment_count + (final_payment_amount > 0 ? 1 : 0).
final_due_date = first due date advanced by (total_installments - 1) months.
return_to_court_date = final due date + policy's return_to_court_offset_days.
Step 6 — Build the Output
- Follow the answer template exactly. Every required key at every nesting level
must be present. Use the exact enum values defined in the template.
- Sort all arrays per the template's ordering rules (typically by
case_number,
citation_number, or petition_id ascending; for excluded items, by item name
ascending).
- Currency: All money values as JSON numbers with exactly two decimal places
(e.g.,
150.00, not 150 or "$150.00").
- Dates: ISO 8601
YYYY-MM-DD. Date-times: ISO 8601 local YYYY-MM-DDTHH:MM:SS.
Use null for dates that should not be entered (e.g., no disposition date for
pending cases).
- Placeholders: For fields required by a form but genuinely missing from all
case materials, use
"TBD from case file" — do NOT invent identifiers, addresses,
phone numbers, SSNs, driver license numbers, or contact details.
- Register/batch totals: Sum financial values only from disposed/assessed cases,
excluding held/pending matters. Counts must match:
assessed_case_count is the
number of disposed cases with financial entries; held_case_count is the number
excluded from the register.
Portal Query Patterns
When querying the portal, construct URLs as:
<TASK_ENV_BASE_URL>/api/cases?case_number=<case>
<TASK_ENV_BASE_URL>/api/charges?case_number=<case>
<TASK_ENV_BASE_URL>/api/docket-entries?case_number=<case>
<TASK_ENV_BASE_URL>/api/citations?citation_number=<citation>
<TASK_ENV_BASE_URL>/api/fee-schedules?jurisdiction_code=<code>
<TASK_ENV_BASE_URL>/api/payment-policies?jurisdiction_code=<code>
<TASK_ENV_BASE_URL>/api/forms?jurisdiction_code=<code>
<TASK_ENV_BASE_URL>/api/financial-petitions?petition_id=<id>
<TASK_ENV_BASE_URL>/api/financial-petitions?case_number=<case>
The portal returns JSON with a count integer and a results array. An empty
results array means no matching record was found — do not invent data in that case.
Reconciliation Rules Reference
Counsel Classification
| Portal/Local Label |
Classification |
Public Defender Fee? |
public_defender, "PD" confirmed by hearing notes or portal |
public_defender |
Yes |
appointed_private, "APD" clarified as appointed private by judge/memo |
appointed_private |
No |
retained, "RET" |
retained |
No |
unknown or genuinely ambiguous |
unknown |
No |
Fee Schedule Precedence
For a given fee type and jurisdiction, prefer the schedule entry where:
effective_date <= disposition_date
end_date is null or end_date >= disposition_date
- Higher
priority value among equally valid entries indicates the more current
schedule.
Stale entries (with a past end_date) are for audit trail only and must not be
applied to current dispositions.
Departure Status Resolution
| Situation |
Departure Status |
| Judge expressly stated no departure / top-of-range |
no_departure or none (per template enum) |
| Legacy/draft worksheet says departure but judge contradicted it on record |
Follow the judge's on-record statement |
| Misdemeanor conviction in a jurisdiction that does not evaluate departure for misdemeanors |
not_evaluated_misdemeanor |
| Case is continued/pending with no final sentence |
not_entered_pending |
| No departure mentioned in any source |
not_applicable or none (per template enum) |
Docket Entry Summary Codes
Derive the summary code from the case facts:
| Condition |
Summary Code |
| Guilty finding + no public defender fee (appointed private or retained) |
conviction_no_pd_fee |
| Guilty finding + drug assessment applied |
conviction_drug_assessment |
| Guilty finding + no departure |
conviction_no_departure |
| Case deferred / order not signed |
hold_unsigned_order |
Excluded Financial Item Categories
When the template or local materials list items to exclude, tag each with the
appropriate reason:
| Reason |
When to Use |
no_order_or_policy_support |
No court order or portal policy authorizes the charge. |
not_part_of_balance |
The item is outside the scope of the current balance (e.g., DMV reinstatement is a separate agency fee). |
stale_schedule |
The amount comes from an expired fee schedule. |
unsupported_post_disposition |
The fee type is not supported in the post-disposition context. |
not_current_policy |
Current payment policy does not include this fee. |
no_triggering_event |
The fee would require a triggering event (default, late payment, returned check, DMV referral) that has not occurred. |
not_in_hearing_order |
The hearing order did not include this charge. |
Common Task Patterns
Criminal Sentencing Closeout (AR)
Target cases with hearing notes + audit memo + finance queue extract. Output includes:
audit_findings, case_dispositions (with charge summaries), fee_reconciliation,
docket_entries, register_totals.
Key checks: identity (name/DOB), counsel classification, status/closeout action, fee
schedule currency, departure status, and whether any case is held unsigned.
Traffic Violation Closeout with Payment Plans (OR)
Target citations with hearing closeout notes + local form excerpt. Output includes:
matters (disposition, financial entry, payment plan, form entry), excluded_charges,
batch_totals.
Key checks: speed tier → violation code → fee schedule mapping, payment plan installment
math, form ID/label from portal, account reference (citation number when no separate
case/court account exists), stale schedule exclusion.
Post-Sentencing Field Packet (VA)
Single or multiple cases with sentencing intake facts + payment petition budget +
form field excerpt. Output includes: case memo, CC-1375 probation referral, CC-1379
license/installment order, budget review, placeholder fields, excluded financial items.
Key checks: license suspension start date basis (conviction date or release date per
the template), probation referral required only when ordered, installment amount
supported by budget analysis (compare requested amount to disposable income and policy
bands), placeholder for every missing identifier/contact, account fee excluded per
policy unless jurisdiction mandates it.
Criminal Disposition Register (AR)
Multiple target cases with hearing notes + finance worksheet CSV. Output includes:
case_audit, dispositions, fee_entries, docket_register (entries + totals),
exclusions.
Key checks: audit flags for each case (amended charge, lab fee omission, missing DOB,
confused counsel label, no final order), DOB placeholder when genuinely missing,
continued/pending cases excluded from financial posting with a next-status-check date,
batch totals summing only disposed cases.
Output Validation Checklist
Before returning the answer, verify:
1---2name: fewshot-attempt-01-453description: Court Clerk Post-Hearing Reconciliation and Financial Packet Skill4---5# Court Clerk Post-Hearing Reconciliation and Financial Packet Skill67## Overview89This skill prepares structured post-hearing or post-disposition reconciliation packets for10court clerk entry. It cross-references local case materials (hearing notes, clerk memos,11finance queue extracts, petition summaries, sentencing intake sheets, worksheet CSVs, and12local form excerpts) against the **Court Operations Portal** (`<TASK_ENV_BASE_URL>`) to13produce a single JSON answer conforming to an attached `answer_template.json`.1415The skill handles criminal sentencing closeouts, traffic-violation payment-plan packets,16post-sentencing field packets (including CC-1375 probation referrals and CC-1379 license17suspension / installment orders), and multi-case criminal disposition registers.1819## When to Use2021Invoke this skill when the task involves:2223- Closing out a criminal docket or traffic-violation hearing.24- Reconciling financial entries (fines, court costs, assessments, user fees) across25 multiple sources.26- Preparing post-sentencing form packets (probation referral, license suspension,27 installment payment orders).28- Identifying audit conflicts in defendant identity, counsel, status, fee schedules,29 or departure findings.30- Producing batch register totals with disposed and held/pending case counts.3132## Workflow3334Follow these steps for every task. Do not skip cross-reference steps.3536### Step 1 — Orient37381. **Read the prompt** (`prompt.txt`). Note:39 - The court/jurisdiction, hearing date, and docket type.40 - The target case numbers, citation numbers, or petition IDs.41 - Which portal endpoints the prompt explicitly lists.422. **Read every file in `input/payloads/`.** These are local materials such as:43 - Hearing or courtroom notes (may contain bench shorthand, nicknames, or44 carry-forward values from prior docket sheets).45 - Clerk audit memos listing known exceptions and supervisor notes.46 - Finance queue extracts or worksheets (CSV or JSON) with queued fee lines.47 - Local form excerpts describing form families and required fields.48 - Payment petition summaries with budget data and requested payment terms.49 - Sentencing intake sheets with the official conviction and sentence posture.503. **Read the `answer_template.json`** in the payloads directory. This schema is the51 contract for the output. Note every required key, enum, field type, sort order,52 currency precision, and date format. If the template defines ordering rules, those53 rules are mandatory.5455### Step 2 — Query the Portal5657The portal base URL is `<TASK_ENV_BASE_URL>` (at generation time this resolves to the58running environment network address; ignore any `localhost`, `127.0.0.1`, or59`env/setup.sh` references in local task materials).6061Available read-only endpoints (all `GET`):6263| Endpoint | Key query parameters | Returns |64|---|---|---|65| `/api/jurisdictions` | none (list all) | Jurisdiction records with `jurisdiction_code`, `policy_ref`, court name, county, state, timezone. |66| `/api/cases` | `case_number`, `jurisdiction_code` | Case records: defendant name, DOB, counsel type and attorney name, status, disposition date, judge. |67| `/api/charges` | `case_number`, `jurisdiction_code` | Charge records per case: count number, offense code, statute, plea, disposition, fine, jail days imposed/suspended, probation months, departure type. |68| `/api/docket-entries` | `case_number`, `jurisdiction_code` | Docket entry log: entry date, type (filing, hearing, disposition, financial, clerk_note), text, source system. |69| `/api/citations` | `citation_number`, `jurisdiction_code` | Traffic citation records: defendant name, DOB, speed, zone, statute, violation code, plea, disposition, payment plan fields. |70| `/api/fee-schedules` | `jurisdiction_code` (optional) | Fee schedule entries: fee type, amount, effective/end dates, jurisdiction, mandatory flag, violation code, label. **Always filter out stale (expired) schedule entries whose `end_date` is before the disposition date.** |71| `/api/payment-policies` | `jurisdiction_code` (optional) | Payment plan policy: min/max monthly, first-due offset days, return-to-court offset, restitution priority, account fee policy. |72| `/api/forms` | `jurisdiction_code` (optional) | Form metadata: form_id, label, jurisdiction, required fields, placeholder instructions. |73| `/api/financial-petitions` | `petition_id`, `case_number` | Financial petition records: petitioner name, income, obligations, balances, requested monthly amount, default status. |74| `/api/search` | `q` (search text) | General text search across all record types. |7576**Query strategy:**7778- For each target case/citation, fetch its case or citation record, its charges (if79 criminal), and its docket entries.80- Fetch the jurisdiction's fee schedules and payment policies.81- If forms are referenced in the answer template (e.g., CC-1375, CC-1379), look up82 their metadata via `/api/forms` filtered by jurisdiction.83- If petitions are involved, fetch them via `/api/financial-petitions`.84- When the prompt calls for form labels or account references, cross-check portal85 form metadata.8687### Step 3 — Cross-Reference and Identify Conflicts8889Compare **every** data point from local payloads against the portal records. Flag90every mismatch. The portal is the system of record for identity and form metadata;91local hearing notes and corroborating memos can override legacy/draft financial92worksheets.9394Common conflict categories (canonical set):9596| Conflict | What to compare | Typical source of truth |97|---|---|---|98| **Identity** | Defendant name spelling, DOB | Portal case/citation record (`use_cms`) for identity; corroborating memo can confirm DOB corrections. |99| **Counsel** | Counsel type and attorney name | Portal record or corroborating memo. A local `PD` label on a worksheet may be incorrect if a defense memo or judge clarified the attorney is appointed private counsel (not the public defender office). |100| **Status** | Disposition status (disposed / deferred / pending / continued) | Hearing notes and portal docket entries. A draft worksheet showing "disposed" is overridden if the judge did not sign a final order. |101| **Fee schedule** | Fee amounts and applicability | Portal fee schedules filtered to the disposition date. An older local worksheet or intake sheet may carry stale amounts (e.g., a 2023 drug assessment for a 2025 disposition). Always use **current** portal schedules. |102| **Departure** | Departure finding (none / durational / dispositional) | Hearing notes or courtroom audio. A legacy charge screen or draft sentence worksheet may carry a departure label that the judge expressly rejected in open court. |103104For every conflict identified, document:105- Which case it applies to.106- What the conflicted (local/draft) value is.107- What the corrected value should be.108- How it was resolved (which source was used).109110### Step 4 — Resolve Conflicts111112Apply these precedence rules:1131141. **Signed court order or on-the-record judge statement** (as captured in hearing115 notes) overrides any worksheet, queue extract, or legacy system value.1162. **Portal case/citation record** (CMS) is authoritative for defendant identity117 (name spelling, DOB) unless a corroborating memo with specific correction118 overrides it.1193. **Portal fee schedules** override any locally carried fee amounts. Use the120 schedule entry whose effective date covers the disposition date and whose121 `end_date` is null or after the disposition date.1224. **Portal payment policy** controls installment plan parameters (min/max monthly,123 first-due offset, account fee treatment, restitution priority).1245. **Portal form metadata** controls form IDs, labels, and required fields.1256. **Corroborating memo** (clerk audit memo, supervisor note) overrides worksheet126 labels that are contradicted by specific evidence (e.g., a calendar abbreviation127 "APD" that the judge clarified means appointed private, not public defender).1287. **Draft/worksheet only** materials that lack a signed order or portal confirmation129 must be held — do not post them.130131### Step 5 — Reconcile Finances132133For every disposed case/citation, build a reconciled fee entry:1341351. **Start with mandatory fees** from the portal fee schedule for the jurisdiction:136 - Court costs (`court_cost`, `fee_type: "court_cost"`) — mandatory, amount per137 the schedule.138 - Crime lab fee (`fee_type: "assessment"`) — mandatory only for controlled-substance139 convictions where the schedule mandates it.140 - Fines — use the amount the judge pronounced, not a stale worksheet figure.141 - Drug assessment — use the current portal schedule amount for the disposition142 year, not an archived amount.143 - Public defender user fee — apply only when counsel is classified as144 `public_defender`; do NOT apply for `appointed_private` or `retained` counsel.145 - County surcharge — apply per the schedule (typically once per citation).1462. **Exclude unsupported charges.** The following are NEVER added unless a portal147 record or current policy explicitly supports them:148 - Account-management / payment-plan service charges149 - Collection referral fees150 - Late-payment fees / interest151 - DMV notice/reinstatement fees152 - Returned-check fees153 - Restitution (without a court order)154 - Court-appointed attorney fees (without an order)155 - Court reporter fees (without an order)156 - Traffic-school program fees (not ordered)157 - Copy/certification fees158 - Stale/archived fee amounts (end_date before disposition date)1593. **For held/pending cases**: fee status is `hold` (or equivalent), fee items are160 empty or zeroed, and the case total is `0.00`. Do not post financial entries for161 cases awaiting a signed order.1624. **For payment plan cases**: calculate the installment schedule using the total163 due and the approved monthly payment amount per the jurisdiction's payment policy.164 - `full_payment_count = floor(total_due / monthly_payment)` — number of full165 installments.166 - `final_payment_amount = total_due - (full_payment_count * monthly_payment)` —167 the smaller final payment (0 if the total divides evenly).168 - `total_installments = full_payment_count + (final_payment_amount > 0 ? 1 : 0)`.169 - `final_due_date` = first due date advanced by (total_installments - 1) months.170 - `return_to_court_date` = final due date + policy's `return_to_court_offset_days`.171172### Step 6 — Build the Output1731741. **Follow the answer template exactly.** Every required key at every nesting level175 must be present. Use the exact enum values defined in the template.1762. **Sort** all arrays per the template's ordering rules (typically by `case_number`,177 `citation_number`, or `petition_id` ascending; for excluded items, by item name178 ascending).1793. **Currency:** All money values as JSON numbers with exactly two decimal places180 (e.g., `150.00`, not `150` or `"$150.00"`).1814. **Dates:** ISO 8601 `YYYY-MM-DD`. Date-times: ISO 8601 local `YYYY-MM-DDTHH:MM:SS`.182 Use `null` for dates that should not be entered (e.g., no disposition date for183 pending cases).1845. **Placeholders:** For fields required by a form but genuinely missing from all185 case materials, use `"TBD from case file"` — do NOT invent identifiers, addresses,186 phone numbers, SSNs, driver license numbers, or contact details.1876. **Register/batch totals:** Sum financial values only from disposed/assessed cases,188 excluding held/pending matters. Counts must match: `assessed_case_count` is the189 number of disposed cases with financial entries; `held_case_count` is the number190 excluded from the register.191192## Portal Query Patterns193194When querying the portal, construct URLs as:195196```197<TASK_ENV_BASE_URL>/api/cases?case_number=<case>198<TASK_ENV_BASE_URL>/api/charges?case_number=<case>199<TASK_ENV_BASE_URL>/api/docket-entries?case_number=<case>200<TASK_ENV_BASE_URL>/api/citations?citation_number=<citation>201<TASK_ENV_BASE_URL>/api/fee-schedules?jurisdiction_code=<code>202<TASK_ENV_BASE_URL>/api/payment-policies?jurisdiction_code=<code>203<TASK_ENV_BASE_URL>/api/forms?jurisdiction_code=<code>204<TASK_ENV_BASE_URL>/api/financial-petitions?petition_id=<id>205<TASK_ENV_BASE_URL>/api/financial-petitions?case_number=<case>206```207208The portal returns JSON with a `count` integer and a `results` array. An empty209results array means no matching record was found — do not invent data in that case.210211## Reconciliation Rules Reference212213### Counsel Classification214215| Portal/Local Label | Classification | Public Defender Fee? |216|---|---|---|217| `public_defender`, "PD" confirmed by hearing notes or portal | `public_defender` | Yes |218| `appointed_private`, "APD" clarified as appointed private by judge/memo | `appointed_private` | No |219| `retained`, "RET" | `retained` | No |220| `unknown` or genuinely ambiguous | `unknown` | No |221222### Fee Schedule Precedence223224For a given fee type and jurisdiction, prefer the schedule entry where:225- `effective_date <= disposition_date`226- `end_date` is `null` or `end_date >= disposition_date`227- Higher `priority` value among equally valid entries indicates the more current228 schedule.229230Stale entries (with a past `end_date`) are for audit trail only and must not be231applied to current dispositions.232233### Departure Status Resolution234235| Situation | Departure Status |236|---|---|237| Judge expressly stated no departure / top-of-range | `no_departure` or `none` (per template enum) |238| Legacy/draft worksheet says departure but judge contradicted it on record | Follow the judge's on-record statement |239| Misdemeanor conviction in a jurisdiction that does not evaluate departure for misdemeanors | `not_evaluated_misdemeanor` |240| Case is continued/pending with no final sentence | `not_entered_pending` |241| No departure mentioned in any source | `not_applicable` or `none` (per template enum) |242243### Docket Entry Summary Codes244245Derive the summary code from the case facts:246247| Condition | Summary Code |248|---|---|249| Guilty finding + no public defender fee (appointed private or retained) | `conviction_no_pd_fee` |250| Guilty finding + drug assessment applied | `conviction_drug_assessment` |251| Guilty finding + no departure | `conviction_no_departure` |252| Case deferred / order not signed | `hold_unsigned_order` |253254### Excluded Financial Item Categories255256When the template or local materials list items to exclude, tag each with the257appropriate reason:258259| Reason | When to Use |260|---|---|261| `no_order_or_policy_support` | No court order or portal policy authorizes the charge. |262| `not_part_of_balance` | The item is outside the scope of the current balance (e.g., DMV reinstatement is a separate agency fee). |263| `stale_schedule` | The amount comes from an expired fee schedule. |264| `unsupported_post_disposition` | The fee type is not supported in the post-disposition context. |265| `not_current_policy` | Current payment policy does not include this fee. |266| `no_triggering_event` | The fee would require a triggering event (default, late payment, returned check, DMV referral) that has not occurred. |267| `not_in_hearing_order` | The hearing order did not include this charge. |268269## Common Task Patterns270271### Criminal Sentencing Closeout (AR)272273Target cases with hearing notes + audit memo + finance queue extract. Output includes:274`audit_findings`, `case_dispositions` (with charge summaries), `fee_reconciliation`,275`docket_entries`, `register_totals`.276277Key checks: identity (name/DOB), counsel classification, status/closeout action, fee278schedule currency, departure status, and whether any case is held unsigned.279280### Traffic Violation Closeout with Payment Plans (OR)281282Target citations with hearing closeout notes + local form excerpt. Output includes:283`matters` (disposition, financial entry, payment plan, form entry), `excluded_charges`,284`batch_totals`.285286Key checks: speed tier → violation code → fee schedule mapping, payment plan installment287math, form ID/label from portal, account reference (citation number when no separate288case/court account exists), stale schedule exclusion.289290### Post-Sentencing Field Packet (VA)291292Single or multiple cases with sentencing intake facts + payment petition budget +293form field excerpt. Output includes: case memo, CC-1375 probation referral, CC-1379294license/installment order, budget review, placeholder fields, excluded financial items.295296Key checks: license suspension start date basis (conviction date or release date per297the template), probation referral required only when ordered, installment amount298supported by budget analysis (compare requested amount to disposable income and policy299bands), placeholder for every missing identifier/contact, account fee excluded per300policy unless jurisdiction mandates it.301302### Criminal Disposition Register (AR)303304Multiple target cases with hearing notes + finance worksheet CSV. Output includes:305`case_audit`, `dispositions`, `fee_entries`, `docket_register` (entries + totals),306`exclusions`.307308Key checks: audit flags for each case (amended charge, lab fee omission, missing DOB,309confused counsel label, no final order), DOB placeholder when genuinely missing,310continued/pending cases excluded from financial posting with a next-status-check date,311batch totals summing only disposed cases.312313## Output Validation Checklist314315Before returning the answer, verify:316317- [ ] Every required top-level key from the answer template is present.318- [ ] Every required nested key within each item is present.319- [ ] All enum values match the template's allowed values exactly.320- [ ] All arrays are sorted per the template's ordering rules.321- [ ] All money values are numeric with exactly two decimal places.322- [ ] All dates are ISO format or `null` where appropriate.323- [ ] No fee appears that lacks portal schedule or policy support.324- [ ] No identifier or contact detail was invented — missing ones use `"TBD from case file"`.325- [ ] Portal query results were cross-referenced against every local payload.326- [ ] All identified conflicts are documented with their resolution source.327- [ ] Register totals add up correctly and exclude held/pending cases.