Planning mode protects discovery before edits

A planning session should map the relevant flow, identify constraints, and turn findings into a small implementation plan. It is valuable when the repository or failure path is unfamiliar.

The planning output should name evidence and open questions rather than pretending that a hypothesis is settled.

Planning outputReview question
Entry pointWhere does the behavior begin?
FlowWhich modules and boundaries are involved?
RiskWhat could the change affect?
ChecksWhat can verify the result?
Open questionsWhat still needs confirmation?

Discovery sequence

  1. Inspect repository instructions and status.
  2. Find the entry point and trace the relevant flow.
  3. Read neighboring tests and configuration.
  4. Record affected files with file:line evidence.
  5. Separate facts, hypotheses, and missing data.
  6. Propose one bounded implementation slice.

Planning note

# Plan discovery

Question: <behavior>
Entry point: <path:line>
Flow: <modules>
Constraints: <list>
Evidence: <files and checks>
Unknowns: <list>
Next: <smallest change>

Canonical lesson source · JavaRush

Open JavaRush material