{"id":"risk-fieldwork-issue-csv","audience":"compliance","category":"legal-compliance","track":"legal","technique":"format","level":"intermediate","title":"Convert audit fieldwork notes into a CSV issue log","free":false,"task":"Turn fieldwork notes into a CSV issue log for the audit team's tracker. Write a prompt for one code block holding the header issue_id,area,observation,owner_to_confirm and one row per exception (not for controls that worked). The area is one of users, reviews or accounts: leavers and contractors are users, the missing Q3 review is reviews, and the shared admin account is accounts. Number ids IA-01, IA-02 and so on in note order. No commas inside values, observations under 15 words, and owner_to_confirm is the person named in the notes or the word unconfirmed. No text outside the code block.","materialLabel":"Your material (attached to your prompt automatically)","material":"FIELDWORK NOTES - IT access review, Kestrel Logistics warehouse system\n1. HR leaver list vs system user list: 9 leavers from Q2 were still active on the test date.\n2. Quarterly access review: done for Q2; no evidence of a Q3 review.\n3. Shared admin account \"wh-admin\" used by 4 staff. No named owner for the account.\n4. Backup restore test: passed, restored in 40 minutes.\n5. Password settings match the internal standard.\n6. Two contractors have access with no end date recorded.\n\nSam Pruitt (IT manager) owns user access and the access reviews.","rules":[{"type":"codeBlocks","count":1},{"type":"maxCodeLines","max":6},{"type":"maxProseWords","max":15}],"promptHints":[{"label":"Gives the header","patterns":["issue_id","header"]},{"label":"One code block","patterns":["code block","csv"]},{"label":"Exceptions only","patterns":["exception","skip","only"]},{"label":"No commas","patterns":["no commas","comma"]},{"label":"Owner rule","patterns":["unconfirmed","owner"]}],"mistakes":[{"title":"Including passed controls","why":"AI adds a row for the backup test and password settings.","fix":"Say: \"One row per exception only; skip controls that worked.\"","checks":["r0"]},{"title":"Owner guessed","why":"AI names Sam Pruitt for every row.","fix":"Say: \"Owner is the person the notes name for that area, else unconfirmed.\"","checks":["r1"]},{"title":"Commas break the CSV","why":"AI writes commas inside observations.","fix":"Say: \"No commas inside any value.\"","checks":["r2"]},{"title":"Wrong number of code blocks","why":"AI splits output into several blocks or adds extra examples.","fix":"Say \"one single code block\".","checks":["codeBlocks"]},{"title":"Code block too long","why":"AI pads the block with extra rows or comments.","fix":"Say \"no more than N lines in the block, no comments\".","checks":["maxCodeLines"]},{"title":"Chatter around the block","why":"AI adds an intro and a closing explanation.","fix":"Say \"no text outside the code block\".","checks":["maxProseWords"]}],"hint":"Give the header, the id pattern and the rule for owners and commas.","mission":"Make a clean CSV log of the exceptions only.","musts":["Exact header","Exceptions only","Owner or unconfirmed"],"rubricLabels":["The code block starts with the header issue_id,area,observation,owner_to_confirm and has four data rows with ids IA-01 to IA-04 in note order","The rows cover leavers still active, the missing Q3 review, the shared admin account and the contractors without end dates, with area values users, reviews, accounts and users in that order, and exclude the backup test and password settings","owner_to_confirm is Sam Pruitt for the leavers, review and contractor rows and unconfirmed for the shared account, and no value contains a comma"]}