name: refine_plan description: Refine the research plan until readiness criteria are met. inputs: plan, documents outputs: plan
Purpose: Improve the plan by adding missing questions and identifying gaps.
Steps:
- Evaluate whether the plan is ready.
- If not, add retrieval gaps and extra questions.
- Mark the plan as refined.
Notes:
- The plan is ready when it has enough sources and gaps are resolved.