Study 01 / Line of succession
Two paths from one entry.
Follow a parser change through two conversation branches in the same session.
Shared prefix
Fix a date parser
- 01 · User
- A blank release date crashes the parser. What should it return?
- 02 · Assistant
- The caller accepts a missing date. We can return nil, or make an invalid date explicit with an error tuple.
Inspect a continuation
Open each continuation below to see what its reader sees. Both paths share the opening question and answer, and each records its own subsequent turns.
Original · Return nil
- 03 · User
- Keep the caller unchanged. Treat blank input as a missing date.
- 04 · Assistant
- I'll add a blank-input clause that returns nil and a test for the existing caller.
Entries 03 and 04 continue on the original conversation path while the shared prefix remains untouched.
Branch · Return an error
- 03' · User
- Try the explicit error instead. What changes for callers?
- 04' · Assistant
- Each caller needs to handle the error tuple before formatting the date.
This branch inherits entries 01 and 02 from the shared session store and records its own follow-up turns. Both branches point to the same working directory on disk.