1---2name: reflect-3-attempt-03-343description: Task Group 005 Solver Guidance4---5# Task Group 005 Solver Guidance67## 1. Initial Setup8- Read `input/prompt.txt` first to understand the business domain and required API endpoints.9- Read `input/payloads/answer_template.json` to understand the exact output schema.10- Read any additional local payload files (e.g., `.json`, `.csv`) that provide batch context or reference data.11- The environment base URL is `http://34.46.77.124:8005`. Use this as the source of record for all ERP/compliance data.1213## 2. Schema Compliance14- Preserve every top-level key from `answer_template.json` exactly; do not add or remove keys.15- Use the exact `required_value` fields when specified (e.g., `task_id`, `batch_id`, `as_of_date`).16- Return only the JSON object; do not wrap it in markdown code blocks or add narrative text.1718## 3. Data Ordering19- Sort all ID lists in ascending order (e.g., `business_id`, `claim_id`, `vendor_id`).20- For object keys that map to IDs (e.g., `ap_balance_by_claim`, `decisions`), sort the keys ascending as well.2122## 4. Numeric Precision23- Round all USD amounts to exactly two decimal places.24- Use `0.00` for zero balances, not `0` or `null`.2526## 5. API as Source of Record27- When the prompt says to use "current" ERP/compliance data, always query the remote API.28- Do not rely solely on local snapshots, CSVs, or cached JSON if the prompt explicitly references current API state.29- Typical endpoints to query include vendor, compliance, claim, bill, payment, and risk endpoints under the shared base URL.3031## 6. Decision Mapping32- For enum fields (e.g., `release`/`hold`/`escalate`, `ready_to_send`/`needs_ap_refresh`/`blocked`), use only the allowed values listed in the template.33- For per-ID decision objects, ensure every required ID has an explicit value; never omit a required key.3435## 7. List Fields36- Return empty lists `[]` when no items qualify.37- Do not use `null` or omit the key when the template specifies a list type.3839## 8. Boolean and Nested Objects40- Use `false` for booleans when conditions are not met.41- For nested objects with required sub-keys (e.g., `close_log_required` with `required` and `ids`), always include both sub-keys.4243## 9. Review Context44- Pay attention to review dates, as_of dates, and comparison dates in prompts and templates.45- Use the exact date strings specified; do not substitute today's date.4647## 10. Verification Before Output48- Double-check that all `required_top_level_keys` from the template are present.49- Verify ascending sort order on every list and object-key set.50- Confirm all monetary values are rounded to two decimals.51- Confirm no extra properties are added beyond what the template allows.