Initialize task: New task
This commit is contained in:
42
.zenflow/tasks/new-task-6e6e/plan.md
Normal file
42
.zenflow/tasks/new-task-6e6e/plan.md
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
# Fix bug
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
- **Artifacts Path**: {@artifacts_path} → `.zenflow/tasks/{task_id}`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Agent Instructions
|
||||||
|
|
||||||
|
If you are blocked and need user clarification, mark the current step with `[!]` in plan.md before stopping.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Workflow Steps
|
||||||
|
|
||||||
|
### [ ] Step: Investigation and Planning
|
||||||
|
|
||||||
|
Analyze the bug report and design a solution.
|
||||||
|
|
||||||
|
1. Review the bug description, error messages, and logs
|
||||||
|
2. Clarify reproduction steps with the user if unclear
|
||||||
|
3. Check existing tests for clues about expected behavior
|
||||||
|
4. Locate relevant code sections and identify root cause
|
||||||
|
5. Propose a fix based on the investigation
|
||||||
|
6. Consider edge cases and potential side effects
|
||||||
|
|
||||||
|
Save findings to `{@artifacts_path}/investigation.md` with:
|
||||||
|
- Bug summary
|
||||||
|
- Root cause analysis
|
||||||
|
- Affected components
|
||||||
|
- Proposed solution
|
||||||
|
|
||||||
|
### [ ] Step: Implementation
|
||||||
|
Read `{@artifacts_path}/investigation.md`
|
||||||
|
Implement the bug fix.
|
||||||
|
|
||||||
|
1. Add/adjust regression test(s) that fail before the fix and pass after
|
||||||
|
2. Implement the fix
|
||||||
|
3. Run relevant tests
|
||||||
|
4. Update `{@artifacts_path}/investigation.md` with implementation notes and test results
|
||||||
|
|
||||||
|
If blocked or uncertain, ask the user for direction.
|
||||||
Reference in New Issue
Block a user