4.0 KiB
4.0 KiB
Fagan Inspection Workflow
Comprehensive Fagan inspection for systematic bug analysis and resolution.
Context
This workflow performs systematic defect analysis using the proven 6-phase Fagan inspection methodology, achieving 60-90% defect detection rates through formal peer review.
Prerequisites
- Clear bug description or symptom
- Access to source code repository
- Recent commit history available
- Test suite and execution results
- Environment and configuration details
Instructions
Execute the following phases in order:
Phase 1: Planning
- Ask user for bug description if not already provided
- Identify inspection scope based on bug description
- Define inspection criteria and success metrics
- Load
debug-inspection-checklist.mdfrom knowledge base - Determine affected components and stakeholders
- Document planning phase results
Phase 2: Overview
- Analyze recent commits for context and potential causes (search git history)
- Review feature specifications and implementation plans
- Gather background context and related documentation
- Identify impact scope and affected systems
- Create preliminary timeline of issue
- Document overview findings
Phase 3: Preparation
- Systematic artifact examination:
- Execute code analysis using pattern detection (load
debug-patterns.md) - Analyze test coverage and execution results
- Review configuration and environment settings
- Check documentation consistency
- Execute code analysis using pattern detection (load
- Perform dependency analysis and check for version conflicts
- Review performance metrics and resource usage (if applicable)
- Generate preliminary defect hypotheses
- Document preparation findings
Phase 4: Inspection Meeting
- Execute systematic defect identification using
common-defects.md:- Logic defects: Algorithm errors, control flow issues
- Interface defects: API misuse, parameter mismatches
- Data defects: Type mismatches, validation failures
- Documentation defects: Outdated or incorrect documentation
- Perform root cause analysis using fishbone methodology
- Conduct impact assessment: Severity, scope, risk level
- Categorize defects by type and priority (P0-P3)
- Document inspection findings with evidence
Phase 5: Rework Planning
- Generate fix proposals with tradeoff analysis
- Design test strategy for validation
- Perform risk assessment for proposed changes
- Create implementation timeline and effort estimate
- Plan regression testing approach
- Document rework plan
Phase 6: Follow-up
- Provide recommendations for validating fix effectiveness
- List documentation updates needed
- Capture lessons learned for prevention
- Generate comprehensive debug report using template
- Save report to output folder
Output Requirements
Generate a structured debug report containing:
- Executive Summary (problem, impact, root cause, solution)
- Detailed Problem Description (symptoms, reproduction, environment, timeline)
- Technical Analysis (root cause, code analysis, patterns, test coverage)
- Impact Assessment (severity matrix, business impact)
- Solution Recommendations (immediate fix, short-term, long-term, process improvements)
- Implementation Plan (steps, timeline, validation)
- Lessons Learned
Completion Criteria
- All 6 phases completed systematically
- Root cause identified with evidence trail
- Fix recommendations provided with tradeoffs
- Test strategy defined for validation
- Risk assessment completed
- Debug report generated and saved
- Lessons learned documented