{"id":"data2-csv-flag-daily-orders-baseline","audience":"operations","category":"data","track":"data","technique":"examples","level":"intermediate","title":"Flag unusual days in a daily orders list as a CSV block","free":false,"task":"Your ops team wants unusual days flagged from a daily orders list. Write one CSV block (one code block) with the header day,orders,flag and one row per day, in the same order. Flag is CHECK if orders are below 100 or above 300, otherwise OK. At most 12 words outside the code.","materialLabel":"Daily orders (attached to your prompt automatically)","material":"Daily orders - Pinecrest Marketplace, Oct 1 to Oct 8\n\nOct 1: 195\nOct 2: 210\nOct 3: 188\nOct 4: 450\nOct 5: 205\nOct 6: 90\nOct 7: 199\nOct 8: 0\n\nContext:\n- The normal range for a weekday is 100 to 300 orders.\n- Oct 4 had a flash sale that the team announced in advance.\n- Oct 8 shows zero because the order feed was down; that is a data problem, not a business problem.\n- The team pastes this CSV into a sheet that sorts by day, so row order must stay as listed.\n- Flag every day outside the range, even if there is an explanation; people will add notes later.","rules":[{"type":"codeBlocks","count":1},{"type":"maxProseWords","max":12}],"mistakes":[{"title":"Excusing explained days","why":"The AI marks the flash sale day OK because it has a reason.","fix":"Add: \"Flag every day outside the range even if there is an explanation.\"","checks":["r0"]},{"title":"Fuzzy flags","why":"The AI uses words like 'high', 'low' or 'maybe'.","fix":"Add: \"Use only OK and CHECK; CHECK if below 100 or above 300.\"","checks":["r1"]},{"title":"Wrong CSV shape","why":"The AI adds columns for notes or sorts the rows.","fix":"Add: \"Header day,orders,flag, then 8 rows in the same order.\"","checks":["r2"]},{"title":"Leaving the format to chance","why":"The AI picks its own length and layout unless told the exact shape.","fix":"Add: \"Put the code in exactly 1 code block. Keep the writing outside the code under 12 words.\"","checks":["codeBlocks","maxProseWords"]}],"promptHints":[{"label":"Gives the thresholds","patterns":["below 100","above 300"]},{"label":"Rules on explained days","patterns":["even if","explanation"]},{"label":"Limits the flag words","patterns":["only ok and check","ok and check"]},{"label":"Names the header","patterns":["day,orders,flag","header"]},{"label":"Keeps the order","patterns":["same order","8 rows"]}],"hint":"A rule with exact thresholds, plus a statement about explained days, keeps the AI from being 'helpful'.","mission":"Which days in this list are unusual?","musts":["One CSV block","Exact thresholds","Flag explained days too"],"rubricLabels":["Oct 4 (450), Oct 6 (90) and Oct 8 (0) are flagged CHECK","Oct 1, 2, 3, 5 and 7 are flagged OK","The code block is CSV with the header day,orders,flag and 8 rows in the original order, using only the words OK and CHECK in the flag column"]}