Licensing Review JSON
Core Workflow
- Read the task prompt and every file in
input/payloads/, especiallyanswer_template.json. - Resolve
<TASK_ENV_BASE_URL>from the prompt or environment access notes. Use only the endpoints named in the prompt unless the same family requires/api/policiesor/api/renewal/rules. - Fetch enough rows to include the target records. Public GET endpoints may cap default responses; append a larger
limitquery parameter when needed. - Parse embedded JSON fields such as
details_jsonandcontrols_jsonbefore applying rules. - Choose the matching workflow in references/review-workflows.md:
- contractor application eligibility batches
- restricted liquor-license staff packages
- alcohol renewal manual-review queues
- Build the JSON from facts in the API records and the local template. Use only keys, enum spellings, and ordering rules allowed by the template.
- Return only the final JSON object. Do not add markdown, citations, comments, or explanatory prose.
Fetch Helper
Use scripts/fetch_endpoint.py when repeated endpoint fetching or pagination-safe capture would reduce error:
python skill/scripts/fetch_endpoint.py "$TASK_ENV_BASE_URL" \
/api/policies \
/api/contractor/applications \
/api/contractor/bonds \
--limit 1000 \
--output-dir /tmp/licensing-data
The helper uses only Python standard-library modules. It performs GET requests, appends limit when absent, and writes one JSON file per endpoint when --output-dir is supplied.
Output Discipline
- Treat the local answer template as the contract. If template wording conflicts with general guidance, follow the template.
- Use empty arrays for absent codes or IDs.
- Sort arrays exactly as the template requests. When no ordering is specified, prefer stable lexical order except where an operational sequence is requested.
- Recompute summary counts and summary ID lists from the item-level result after all item decisions are finalized.
- Do not memorize or reproduce training application IDs, license numbers, violation IDs, answer records, or other task-specific final values.