The user is asking about requirements recovery - a practical software engineering challenge that occurs when you inherit or need to work with a system that has poor or missing documentation. This is a common real-world problem.
Let me think through the various approaches and techniques for recovering requirements:
- Source Code Analysis (Reverse Engineering)
- Reading the code to understand what it does
- Looking at variable names, function names, class names
- Examining comments (if any exist)
- Analyzing data structures and database schemas
- Looking at validation rules, business logic
- Static analysis tools
- Runtime/Dynamic Analysis
- Running the system and observing behavior
- Tracing execution paths
- Logging and monitoring
- Debugging sessions
- Stakeholder Interviews
- Talking to users who use(d) the system
- Talking to original developers if available
- Business analysts, product owners
- Support staff who handle issues
- Training staff
- Artifact Analysis
- Looking at test cases (can reveal expected behavior)
- Bug reports and issue trackers
- User manuals, help files
- Training materials
- Marketing materials
- Deployment scripts/configuration
- Email archives, meeting notes
- Old presentations, proposals
- Database/Data Analysis
- Schema reveals data requirements
- Data patterns reveal business rules
- Constraints reveal validation requirements
- UI Analysis
- Screens reveal features
- Forms reveal data requirements
- Error messages reveal validation rules
- User workflows
- External Integration Analysis
- APIs, interfaces with other systems
- Configuration files
- Log files
- Comparative Analysis
- Looking at similar systems in the market
- Domain knowledge application
- Documentation Approaches for Recovery
- Creating as-is documentation
- Distinguishing between intended vs actual behavior
- Prioritizing critical paths first
- Challenges and Considerations
- Distinguishing bugs from features
- Understanding why decisions were made (rationale)
- Dealing with obsolete or dead code
I recognize the complexity involves significant investment and careful verification. Recovering requirements demands meticulous cross-referencing and iterative validation to ensure accuracy. The process requires balancing comprehensive investigation with practical time constraints, carefully validating each discovered requirement against multiple sources to confirm its legitimacy and current relevance. # Recovering Requirements from Legacy/Failed Projects
This is a common real-world challenge. There are several complementary approaches:
Primary Sources
1. Code Analysis (Reverse Engineering)
- Read the source code to understand actual behavior
- Examine database schemas for data requirements
- Look at validation logic for business rules
- Review API contracts and interfaces
2. Stakeholder Archaeology
- Interview current/former users about what the system does
- Talk to support staff about common issues and workarounds
- Find original developers if possible (even informal conversations)
3. Artifact Mining
- Test cases often encode expected behavior
- Bug reports reveal intended vs. actual functionality
- User manuals, training materials, help text
- Old emails, meeting notes, presentations
Secondary Sources
4. Dynamic Analysis
- Run the system and observe behavior systematically
- Trace execution paths for key scenarios
- Monitor logs and data flows
5. UI/UX Inspection
- Screens and forms reveal features and data needs
- Error messages expose validation rules
- Navigation reveals workflows
Key Challenges to Consider
- Bugs vs. features: Is current behavior intentional or a defect?
- Rationale loss: You may recover what, but not why
- Dead code: Some code may be obsolete
- Validation: Recovered requirements need stakeholder confirmation
What's the context of your situation? I can offer more targeted suggestions.