← Back to all lessons

06 / OpenCode / 60 min READ + PRACTICE

Capstone: test, fix and report.

Bring the full workflow together on an app you created: scope, observe, test, fix, retest and explain.

Practice boundaryUse your own devices, your isolated practice VM or 127.0.0.1. Get explicit authorization for any other system.

Build the lab

Create a localhost-only HTTP app with a public status route and a private notes route. Use invented users and content. Record the exact app version and network boundary; take a clean snapshot before testing.

Perform a measured review

Map inputs and routes, inspect session behavior and request logs, then choose one hypothesis to verify. Write an automated test for an unauthorized access attempt. If the app rejects it correctly, document that result rather than manufacturing a vulnerability.

Fix and teach back

If the test exposes a bug, implement a server-side permission check and rerun the test suite. Produce a report with scope, reproduction, root cause, fix and residual limitations. Ask OpenCode to review the report for unsupported claims.

HANDS-ON EXERCISE

Try it in your lab

Submit a small repository containing README, scoped lab app, tests and a one-page redacted report. Shut down the server and restore the snapshot when finished.

CHECKPOINT

Make sure it clicks

Can a teammate reproduce your observation and verify the fix using only your documentation?

TRY WITH OPENCODE

A prompt you can adapt

Review my local lab capstone for unsupported claims, missing authorization checks, untested error paths and exposed secrets. Suggest the smallest defensible fix.
How to set up OpenCode ↗
Your progress stays in this browser only.