{"success":true,"filters":{"role":"engineering","difficulty":null,"search":null},"scenarios":[{"id":"demo-engineering-code-review","title":"AI-Assisted Code Review","role":"Engineering","vertical":"Engineering","productLine":"AIducation for Engineering","duration":"11 min","skillAtoms":["Use an AI coding agent to find behavioral risks","Verify model suggestions against the code path","Write review feedback that is specific and actionable"],"toolMissions":["Cursor","Copilot","ChatGPT","Claude"],"icon":"🧑‍💻","context":"You are a senior engineer reviewing a pull request for a billing service. An AI code-review assistant flagged this diff:\n\n- A new refund endpoint accepts \"amount\" from the client request body\n- The handler checks that the user is authenticated\n- The handler does not reload the invoice from the database before issuing the refund\n- Unit tests cover successful refunds, but not over-refunds or cross-account invoice IDs\n- The product manager wants this shipped today because several enterprise customers are waiting\n\nWrite your code-review comment. You should use the AI finding, verify the risk, explain the issue clearly, and propose the minimum safe fix before merge.","rubric":{"risk_identification":{"max":3,"description":"Identifies the concrete security, data integrity, and billing risks in the proposed change"},"verification_discipline":{"max":3,"description":"Shows that AI findings were checked against the described code path instead of accepted blindly"},"fix_quality":{"max":2,"description":"Proposes a minimal, practical fix with relevant tests"},"communication":{"max":2,"description":"Gives clear, respectful review feedback that helps the author act"}},"difficulty":"hard","idealBehaviors":["Flag that client-provided refund amount cannot be trusted","Require loading the invoice by ID and tenant/account before refunding","Check paid amount, refundable balance, currency, and refund status server-side","Ask for tests covering over-refund, cross-account invoice ID, and already-refunded invoice","Explain why the AI finding is valid in this code path","Keep the review comment focused on the minimum merge blocker"],"sampleResponses":[{"type":"good","response":"Blocking until we move the refund authority back to the server.\n\nThe AI review is right here: this endpoint authenticates the user, but it still trusts `amount` and `invoiceId` from the request body. That leaves two billing risks:\n\n1. A user could request a refund larger than the refundable balance.\n2. A user could submit an invoice ID that does not belong to their account or tenant.\n\nMinimum safe fix:\n\n- Load the invoice server-side by `invoiceId` plus the authenticated account/tenant ID.\n- Compute the refundable amount from stored invoice/payment state, not from the client.\n- Validate paid status, currency, prior refunds, and remaining refundable balance before calling the payment provider.\n- Add tests for over-refund, cross-account invoice ID, already-refunded invoice, and happy path.\n\nI am fine keeping the product scope small for today's customer need, but this endpoint should not merge until those checks are in place."}]}],"counts":{"total":1,"easy":0,"medium":0,"hard":1},"roleCoverage":[{"role":"support","roleLabel":"Support","productLine":"AIducation for Support","firstWedge":true,"demoScenarioId":"demo-angry-customer","scenarioCount":1},{"role":"sales","roleLabel":"Sales","productLine":"AIducation for Sales","firstWedge":false,"demoScenarioId":"demo-sales-outreach","scenarioCount":1},{"role":"marketing","roleLabel":"Marketing","productLine":"AIducation for Marketing","firstWedge":false,"demoScenarioId":"demo-marketing-copy","scenarioCount":1},{"role":"hr","roleLabel":"HR","productLine":"AIducation for HR","firstWedge":false,"demoScenarioId":"demo-hr-policy","scenarioCount":1},{"role":"finance","roleLabel":"Finance","productLine":"AIducation for Finance","firstWedge":false,"demoScenarioId":"demo-finance-analysis","scenarioCount":1},{"role":"engineering","roleLabel":"Engineering","productLine":"AIducation for Engineering","firstWedge":false,"demoScenarioId":"demo-engineering-code-review","scenarioCount":1},{"role":"product","roleLabel":"Product","productLine":"AIducation for Product Managers","firstWedge":false,"demoScenarioId":"demo-product-prd","scenarioCount":1},{"role":"executives","roleLabel":"Executives","productLine":"AIducation for Executives","firstWedge":false,"demoScenarioId":"demo-executive-rollout","scenarioCount":1},{"role":"operations","roleLabel":"Operations","productLine":"AIducation for Operations","firstWedge":false,"demoScenarioId":"demo-operations-sop","scenarioCount":1},{"role":"students","roleLabel":"Students","productLine":"AIducation for Students","firstWedge":false,"demoScenarioId":"demo-student-research","scenarioCount":1},{"role":"teachers","roleLabel":"Teachers","productLine":"AIducation for Teachers","firstWedge":false,"demoScenarioId":"demo-teacher-lesson","scenarioCount":1},{"role":"government","roleLabel":"Government","productLine":"AIducation for Government","firstWedge":false,"demoScenarioId":"demo-government-service","scenarioCount":1},{"role":"healthcare-admin","roleLabel":"Healthcare Admin","productLine":"AIducation for Healthcare Admin","firstWedge":false,"demoScenarioId":"demo-healthcare-admin-message","scenarioCount":1},{"role":"legal","roleLabel":"Legal","productLine":"AIducation for Legal Teams","firstWedge":false,"demoScenarioId":"demo-legal-contract","scenarioCount":1},{"role":"small-business","roleLabel":"Small Business","productLine":"AIducation for Small Businesses","firstWedge":false,"demoScenarioId":"demo-small-business-campaign","scenarioCount":1}]}