Capstone: One Audited Change
Standing orders for the agent, the sequence, and how you undo it later.
Capstone objectives
- Write the rules an agent must follow in the Workshop Co. repository
- Walk one change from prompt to reviewed commit to deploy
- Show how you would audit and revert it a week later
The brief
Workshop Co. — one audited change
- Repository
github.com/workshopco/studioon branchmain. Production deploys only from that branch.- Change
- When a class is full, the reserve button becomes “Join the waitlist” and stores an email on a waitlist table. No payments. No redesign.
- Agent
- May edit and commit on a branch. May not push to
main, force-push, or commit secrets. - Human
- The owner reviews the pull request before merge.
Part 1 — the standing order
Write the instructions you will paste at the top of every agent chat for this repository. Include branch, commit identity, scope, and forbidden Git commands.
Model answer
Work only in workshopco/studio. Start from an up-to-date main and create a branch named after the task. Commit as Workshop Co. Agent. Stage only files that belong to the task. Write commit messages that name the behavior. Do not commit .env, database files, or node_modules. Do not push to main. Do not run git push --force, git reset --hard, or any history rewrite. Open a pull request and stop. A human merges.
Part 2 — the sequence
Put these in order: deploy, git diff, merge the pull request, agent edits files, git commit on branch waitlist, git push the branch, create the branch, pull main.
Answer
- Pull
main - Create the branch
- Agent edits files
git diff(andgit diff --cachedbefore the commit)git commitonwaitlistgit pushthe branch- Merge the pull request after review
- Deploy from
main
Part 3 — the audit
A week later the owner asks, “Did the agent change how full classes are detected, and can we prove it?” Name the two Git or GitHub screens that answer that, and the command that undoes the merge if the answer is bad.
Answer
git log or the pull request list shows the waitlist merge and its author. git show or the pull request diff shows the exact lines, including the full-class check. git blame on the detector points at that commit if the line is still present. Undo with git revert of the merge or of the feature commit, then review and deploy the revert. Do not force-push main back to last week.
You can point at a GitHub commit and say what the agent was allowed to do, what it did, who approved it, and how you would undo it. That is version control for vibe coding. The model can change. The chain of commits is the operation.
If you cannot yet name the frontend, the server, and the database in that repository, read Book 10 first. Git records the files. It does not tell you what the stack is.