The agent writes SPEC.md from your answers to the three questions it asks in the first conversation. It holds the goal in one paragraph, the fields of a record, the computed feature in one sentence and the acceptance criteria. What's out of scope sits under its own heading.
The agent doesn't move on to code until you approve. At this stage you fix a misunderstood feature with one sentence. Once the code is written, the same fix means changing the test and the code together.
If the computed feature needs information the list doesn't have, the agent says so while writing the plan and asks a single question. The file's name and format come from the template of the free 2-hour program.