Recover intent before editing code.
- local Git history
- any linked GitHub issue or PR
- the Implementation Plan from Lab 02
- explore-findings-template.md
A teammate says, “This refresh-token behavior looks wrong, but I think it changed for a reason.” Before touching the code, investigate what changed, why it changed, and what downstream behavior depends on it.
- Use Git history to identify the last three commits touching the relevant file.
- Use
git blameto find the line-level origin of the suspect logic. - Inspect at least one historical diff and summarize its intent.
- Investigate the linked GitHub issue or PR discussion that motivated the change.
- Write down what is confirmed, what is inferred, and what is still unknown.
git log -- examples/demo-app/src/auth/session-store.ts
git blame examples/demo-app/src/auth/session-store.ts
git show <commit>If GitHub context exists for the work item, capture the relevant issue or PR links as part of the memo.
Investigate why this refresh-token logic currently behaves the way it does.
Use:
- git log
- git blame
- at least one historical diff
- any linked issue or PR context
Return:
1. confirmed evidence,
2. likely intent,
3. risks of changing the behavior,
4. one unresolved question.
Do not edit code.
- do not edit until the investigation is coherent
- separate evidence from guesses
- prefer direct quotes from issue or PR context when available
- capture links or commit hashes in the memo
Produce an Explore findings with:
- the relevant commit hashes
- the likely intent of the change
- one unresolved question
- your recommendation on whether to preserve, revert, or revise the behavior
Use explore-findings-template.md if you want a starting structure.
The Explore findings becomes a required handoff artifact in Lab 06 for any workflow that claims to recover intent before editing.
This lab passes when the memo:
- distinguishes evidence from inference
- identifies at least one concrete historical artifact
- explains how the historical intent affects the current plan
What did the history tell you that a read of the current file alone would have missed?