{"id":104983,"plugin_id":"plugin_asdk_app_6ac844f81b94819194d626c57fc3904e","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-19T01:35:33.796Z","digest":"8dd20cbc3c561bcc7c88d999d7341087607eb161c4df004e833ccedd1d171b86","against":null,"payload":{"description":"Line item for PurpleGrain record skills. Do not use directly. Batch number and expiry on every product line, and a flag when the expiry is before the day of use.","included_files":[{"relative_path":"lineitem.json","size_in_bytes":931}],"name":"li-product-batch-expiry","skill_md_contents":"---\nname: li-product-batch-expiry\ndescription: \"Line item for PurpleGrain record skills. Do not use directly. Batch number and expiry on every product line, and a flag when the expiry is before the day of use.\"\n---\n\n# Batch and expiry\n\nVersion 1.0.0. Do not call a PurpleGrain write. The orchestrator saves. Do not ask for dose, rate or withholding. Those belong to other line items.\n\n## Applies when\n\nAny product line on a treatment, husbandry, spray, sowing or fertiliser record.\n\n## Collect\n\n| Fact | Where it goes |\n|---|---|\n| Batch number, as printed | `products[].batch` |\n| Expiry | `products[].expiry` as `YYYY-MM-DD` |\n\nAsk for both when they are missing. LPA's livestock treatment template wants the batch even when a vet treated, and it wants the expiry. A spray or sowing product line has the same two fields. A fertiliser line has `batch` and no `expiry`. Do not send `expiry` on fertiliser.\n\nNever invent a batch or an expiry. Unreadable is UNCLEAR. They may save with the field unset. It prints `not recorded`.\n\n## Checks\n\nSeverity for ordering questions: `lpa`.\n\n- Expiry before the date of use: flag it. Record what they used. Do not tell them they must not have used it, and do not block the save.\n- No batch: name it as an LPA gap. Do not turn a missing batch into advice to throw the product out.\n- Do not compare the batch with a catalogue. `listProducts` does not prove a batch.\n\n## Confirm fragment\n\n`batch {batch}, exp {expiry}` or `batch not recorded, exp not recorded`.\n\n## Sources\n\n| Source | Last checked | Status |\n|---|---|---|\n| ISC record keeping, and the LPA livestock treatment template (batch, expiry, within 48 hours is the template's timing, not this item's field) | 19 Oct 2026 | E, sheep reference |\n| Integrity Systems record-keeping page | 23 Oct 2026 | V, livestock research |\n\nThe 48-hour recording timing is a state and LPA deadline. `li-record-retention` and `li-state-chem-record-rules` own deadlines. This item only owns batch and expiry.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}