3.2 KiB
3.2 KiB
fagan-inspection
Comprehensive Fagan inspection for systematic bug analysis and resolution.
Context
This task performs systematic defect analysis using the proven 6-phase Fagan inspection methodology, achieving 60-90% defect detection rates through formal peer review.
Task Execution
Phase 1: Planning
- Identify inspection scope based on bug description
- Define inspection criteria and success metrics
- Generate inspection checklist based on bug type
- Determine affected components and stakeholders
Phase 2: Overview
- Analyze recent commits for context and potential causes
- Review feature specifications and implementation plans
- Gather background context and related documentation
- Identify impact scope and affected systems
Phase 3: Preparation
- Systematic artifact examination:
- Code analysis using pattern detection
- Test coverage analysis and execution results
- Configuration and environment analysis
- Documentation consistency check
- Dependency analysis and version conflicts
- Performance metrics and resource usage (if applicable)
- Generate preliminary defect hypotheses
Phase 4: Inspection Meeting
- Execute systematic defect identification:
- 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
- Root cause analysis using fishbone methodology
- Impact assessment: Severity, scope, risk level
- Categorize defects by type and priority
Phase 5: Rework Planning
- Generate fix proposals with tradeoff analysis
- Design test strategy for validation
- Risk assessment for proposed changes
- Create implementation timeline
- Plan regression testing approach
Phase 6: Follow-up
- Validate fix effectiveness against original bug
- Update documentation and specifications
- Capture lessons learned for prevention
- Generate comprehensive debug report
Output Format
Generate a structured debug report containing:
# Debug Report: [Bug Description]
Session ID: [timestamp]
Date: [date]
## Executive Summary
[Brief overview of findings and recommendations]
## Defect Analysis
### Primary Defect
- Type: [Logic/Interface/Data/Documentation]
- Severity: [Critical/High/Medium/Low]
- Location: [file:line]
- Description: [detailed description]
### Contributing Factors
[List of contributing issues]
## Root Cause Identification
### Root Cause
[Detailed root cause explanation]
### Evidence Trail
[Step-by-step evidence leading to root cause]
## Fix Recommendations
### Immediate Fix
[Code or configuration changes needed]
### Long-term Prevention
[Systemic improvements to prevent recurrence]
## Test Strategy
[Required tests to validate fix]
## Risk Assessment
- Regression Risk: [High/Medium/Low]
- Side Effects: [Potential side effects]
- Mitigation: [Risk mitigation steps]
## Lessons Learned
[Key takeaways for future prevention]
Completion Criteria
- All 6 phases completed
- Root cause identified with evidence
- Fix recommendations provided
- Test strategy defined
- Debug report generated