A branch is a safe try
Two endings of one try on a branch: thrown away, the main line stays as it was; merged, the main line takes the change. Lesson 8 of the course Vibecoding from zero with t27.
A try on its own branch
- Main is safe
- Branch off: a copy to try on
- Try the agent's change
- Merge it or delete the branch
| Ending | Main before | Main after | Lines of work after |
|---|---|---|---|
| Discard the try | 10 | 10 | 1 |
| Merge the try | 10 | 99 | 1 |
While you try there are 2 lines of work, main and the try; after either ending there is 1.