{"id":"vibe-tch-gradebook-blank-average-fix","audience":"teachers","category":"coding","track":"coding","technique":"grounding","title":"Get an AI builder to fix a gradebook average bug safely","free":false,"task":"Your AI-built class gradebook averages scores wrong. Write a follow-up prompt as exactly 4 numbered lines labeled Bug, Example, Change only, Check. The Example shows one student's scores with the wrong and right average. Be clear that blank cells and entered zeros are different. No code blocks, under 110 words.","materialLabel":"Your notes about the gradebook (attached to your prompt automatically)","material":"Gradebook app (I built it with an AI app builder for my 8th grade science classes)\n\nHow we enter scores:\n- A number (0-100) = graded.\n- 0 = missing work. It SHOULD count as 0 in the average. (School policy.)\n- EX = excused. Already works: excused assignments are skipped. Don't break this!\n- Blank = not graded yet. Should be skipped, like EX.\n\nThe bug: blanks are being counted as 0.\nExample, student Marisol: Lab 1 = 90, Lab 2 = 60, Lab 3 = blank (I haven't graded it yet).\nThe app shows her average as 50. It should be 75.\n\nWhere: the \"Average\" column on the Class Overview page. The progress report PDF uses the same number.\n\nOther things I want someday: color-coding low grades, a parent view. Not now.\nLast time I asked \"fix the averages\" the AI also changed how EX works and broke it.\n","rules":[{"type":"numberedItems","count":4},{"type":"codeBlocks","count":0},{"type":"maxProseWords","max":110}],"mistakes":[{"title":"Lumping blanks and zeros","why":"'Don't count zeros' would break your missing-work policy.","fix":"Add: \"Skip blanks. Entered 0s still count.\"","checks":["r2"]},{"title":"No worked example","why":"Without numbers, the builder can't tell if its fix is right.","fix":"Add: \"Example: 90, 60, blank shows 50, should be 75.\"","checks":["r1"]},{"title":"Breaking what works","why":"Last time the fix changed EX handling.","fix":"Add: \"Don't change how EX works.\"","checks":["r2"]},{"title":"A long prompt with code","why":"The AI writes a formula or code for the fix.","fix":"Say: \"Exactly 4 numbered lines: Bug, Example, Change only, Check. No code blocks.\"","checks":["r0","numberedItems","codeBlocks","maxProseWords"]}],"promptHints":[{"label":"Separates blanks from zeros","patterns":["blank","not graded"]},{"label":"Gives a worked example","patterns":["75","90.{0,10}60"]},{"label":"Protects EX","patterns":["\\bex\\b","excused"]},{"label":"Gives a check","patterns":["check"]},{"label":"Caps the length","patterns":["\\d+\\s*words"]}],"hint":"A worked example is the clearest bug report. Show the numbers, say what's different about blanks and zeros, and protect what already works.","rubricLabels":["The 4 lines are labeled, in this order: Bug, Example, Change only, Check","The Example uses 90, 60 and blank and says the app shows 50 but should show 75","The prompt says blanks should be skipped while entered 0s still count as 0, says not to change how EX works, and does not ask for color-coding or a parent view"]}