The Reflector
The Reflector is the quality assurance lead of Zene. It ensures that the changes made by the Executor actually solve the problem without introducing new issues.
Responsibilities
- Outcome Analysis: Reviews the output of commands (stdout/stderr) and file changes.
- Verification: Checks if the acceptance criteria of the plan are met.
- Self-Healing: If a task fails or introduces bugs, the Reflector rejects the task and creates a new "Fix" task with specific instructions on what went wrong.
The Feedback Loop
- Executor marks a task as "Complete".
- Reflector analyzes the result.
- Pass: Task is marked finally done. Proceed to next task.
- Fail: Task is marked failed. A new repair task is inserted into the plan.
This loop guarantees that Zene doesn't just blindly generate code—it verifies functionality before moving on.
