Example solution: AI-Assisted Remediation
Instructor reference; attempt the student worksheet before opening the answer key.
Start with the sample AI response, then compare it with the worked critique. The critique explains unsupported conclusions, lockfile handling, package-manager-specific commands, and verification. Use the corrected application below as one example of an approved repair, not as evidence that the sample AI advice was safe.
Choose one package-manager track
The links point to the existing runnable solutions, rather than duplicate copies. Each solution includes the corrected manifest, lockfile, application, tests, and a worked remediation explanation. Use the track instructions for installation and scanning commands.
| Track | Corrected application | Explanation | Run instructions | Captured reports |
|---|---|---|---|---|
| npm | Solution | Remediation | Instructions | Before/after |
| pnpm | Solution | Remediation | Instructions | Before/after |
| Yarn Classic | Solution | Remediation | Instructions | Before/after |
| Yarn Berry | Solution | Remediation | Instructions | Before/after |
| Bun | Solution | Remediation | Instructions | Before/after |
Verify and teach the example
- Read the selected track's instructions and remediation explanation.
- Run the supplied tests and application, then scan using that track's documented commands.
- Compare actual results with the captured reports and explain any differences. Advisory data changes; do not grade against a permanently fixed finding count.
- Use the walkthrough and rubric when evaluating students' reasoning. Other justified and verified repairs can be valid.
Sharing with students
These solutions are public. For assignments where you want to withhold answers, distribute a student-only export, not the full repository. The export excludes instructor solutions and captured reports. Students may still find the public repository, so adapt graded tasks accordingly.