Exercise - Direct and verify a follow-up change
In this challenge, you direct a small follow-up change, review it, and verify it using the same approval boundaries, without step-by-step instructions.
Challenge
Write a new prompt for GitHub Copilot in agent mode that adds a status filter to the vendors screen, so that managers can show active or paused vendors. Include the outcome, the commands the agent should run, the review points, and the approval gates.
Let the agent work. Complete any sign-in yourself.
Review the agent's diff with the checklist from this module. Look for permission changes, schema changes, new dependencies, secrets, and raw data access.
Verify the change with the build (
npm run build:fabric) andnpx rayfin up --dry-run. Approve a deployment only if the review is clean, and then confirm health withnpx rayfin up status.On the deployed app, run the owner check and the unauthenticated check from the previous exercise again.
Write three sentences: what evidence supports release, what the checks don't prove, and which decision you made.
If you need a hint: a filter is a UI change that uses where. It shouldn't touch entity permissions or the schema. If the diff changes either, send the agent back with a precise instruction.
Remove lab-only entities
The VendorProbe entity has a create rule that accepts any owner. Remove it before the app is reused.
Delete the
VendorProbeclass, its registration, and theVendorProbeCheckcomponent.Run
npx rayfin up db applyand read the operation that the CLI lists. Removing the entity drops the lab table, so the CLI blocks the change and describes it.Because the table holds only lab data, make a reviewed decision to approve it with
--force.npx rayfin up db apply --forceRun
npx rayfin up status, and confirm that the deployment is healthy.
Clean up
- Merge or discard the
vendor-featurebranch. - Delete the vendor records you created for testing, and confirm that
VendorDraft.tsno longer exists. - If you won't reuse the app, delete the app item from your Fabric workspace and confirm that no child items remain.
Check your understanding
An agent says that the follow-up change is complete and the build passes. What evidence do you still need before you release? You need a clean diff review, a dry run, a healthy deployment, and a deployed-app test of ownership and sign-in requirements.