{"id":"ops-cycle-count-variance-csv","audience":"operations","category":"operations-work","track":"operations","technique":"format","level":"intermediate","title":"Flag count variances in a CSV block without adjusting stock","free":false,"task":"After Friday's cycle count you need a CSV block to paste into the review sheet. Write a prompt for exactly one code block with the header sku,system,counted,variance,status and one row per SKU in the order listed. Variance is counted minus system, and use the recount where one exists. Status is REVIEW if the variance is 5 units or more in either direction, otherwise OK. After the block add one line, \"Review count: N\". Flag only; do not adjust stock.","materialLabel":"Your material (attached to your prompt automatically)","material":"CYCLE COUNT - Zone B, Friday\nSKU | System qty | Counted qty\nB-1042 (5mm bolts, bag) | 1200 | 1188\nB-1043 (5mm nuts, bag) | 800 | 800\nC-2210 (gasket 40mm) | 340 | 352\nC-2215 (gasket 60mm) | 95 | 90\nD-3301 (hose 2m) | 60 | 61\nE-4100 (valve 1 in) | 24 | 31\n\nNotes from the counter (Aiko): D-3301 first count was 61, I recounted it and got 58. The recount is the one to trust. Everything else was counted once. Stock adjustments are approved by the inventory manager on Monday.","rules":[{"type":"codeBlocks","count":1},{"type":"maxCodeLines","max":8},{"type":"maxProseWords","max":12}],"promptHints":[{"label":"Quotes the header","patterns":["sku,system,counted,variance,status"]},{"label":"Defines variance","patterns":["counted minus system","counted - system","counted.*system"]},{"label":"Uses the recount","patterns":["recount"]},{"label":"Gives the REVIEW threshold","patterns":["review","5 (units )?or more","threshold"]},{"label":"Asks for one code block","patterns":["one code block","single code block","csv"]}],"mistakes":[{"title":"Using the first count","why":"The AI uses 61 for D-3301 because it was listed first.","fix":"Say: \"Where a recount exists, use the recount.\"","checks":["r1"]},{"title":"Wrong threshold or sign","why":"The AI flags only positive variances or flips counted minus system.","fix":"Say: \"variance = counted minus system; REVIEW if 5 or more up or down.\"","checks":["r2"]},{"title":"Wrong header or row order","why":"The AI renames columns or sorts the rows.","fix":"Quote the header and say \"in the order listed\".","checks":["r0"]},{"title":"Extra text around the code","why":"The AI adds explanations, extra blocks or comments around the output.","fix":"Say \"exactly one code block, nothing else\" and cap the rows.","checks":["codeBlocks","maxCodeLines","maxProseWords"]}],"hint":"Give the header, the variance formula, the recount rule and the REVIEW threshold.","mission":"Flag cycle count variances for review without changing stock.","musts":["Use recount when present","REVIEW at 5 or more","Review count line"],"rubricLabels":["The code block has the header sku,system,counted,variance,status and six data rows in the listed order (B-1042, B-1043, C-2210, C-2215, D-3301, E-4100)","The variance column reads -12, 0, 12, -5, -2, 7 in that order, with D-3301 using the recount of 58","Status is REVIEW for B-1042, C-2210, C-2215 and E-4100 and OK for B-1043 and D-3301, and the line after the block is exactly \"Review count: 4\""]}