Iteration 2 ‐ Safety - tj0vtj0v/KI-B-4-Software_Engineering GitHub Wiki
Sprint Retrospective 04.06.2025
1. Iteration Name
Security Features and Safety Circuits
2. Iteration Deliverable
3. Duration
- Start Date: 02.05.2025
- End Date: 04.05.2025
4. Addressed Issues
5. Selected Requirements
Functional Requirements:
- REQ-1.1.1
- REQ-1.1.2
- REQ-1.1.4
- REQ-1.1.5
- REQ-1.2.3
- REQ-1.2.4
- REQ-1.2.6
- REQ-1.2.12
Non-functional Requirements:
- REQ-2.1.1
- REQ-2.1.2
- REQ-2.2.1
- REQ-2.2.2
- REQ-2.2.3
- REQ-2.2.4
- REQ-2.2.5
6. Detailed Design Notes
Magnetron Modulator
- Design pattern: Singleton
- Diagram:
Sensor Manager
- Design pattern: Singleton
- Diagram:
Door Controller
- Design pattern: Singleton
- Diagram:
Alarm Controller
- Design pattern: Singleton
- Diagram:
7. Definition of Done Checklist
- Magnetron Modulator correctly calculates and sets target power
- Sensor Reader aggregates and provides sensor values from all sources
- Sensor Reader follows the Singleton design correctly
- Unexpected door opening causes entry into emergency state
- Alarm Controller correctly activates and deactivates alarms
- Magnetron Modulator follows the Singleton design pattern
- Door Controller follows the Singleton design pattern
- Alarm Controller follows the Singleton design pattern
- Diagrams for each module are present and accurately reflect implementation
- All relevant unit tests achieve minimum 90% coverage
- Integration tests confirm interaction between SensorReader and consumers
- Static code analysis reveals no critical issues
- Documentation is updated with patterns, diagrams, and module responsibilities
- No high-severity bugs are open for implemented modules
8. Test Objective
Magnetron Modulator
- Validate correct computation and setting of target power
- System adjusts magnetron power within defined tolerance range
- Correct modulation is ensured
Sensor Reader
- Confirm singleton instance is used across components
- All sensor values are updated and retrievable
Door Controller
- Test locking/unlocking based on control logic
- Door locks when system starts
- Unexpected door opening triggers emergency state
Alarm Controller
- Check alarm state control
- Alarm activates when emergency is triggered
- Alarm deactivates on system recovery
Integration Tests
- Ensure module interaction correctness
- SensorReader provides consistent data to all requesting modules
- Unexpected door open engages Emergency Handler correctly
- Emergency Handler activates AlarmController
9. Implementation Summary
-
Commit
3f5a0f4
: Refactor: Update directory structure for clarity and modularity -
Commit
75e139a
: Add initial test stubs for planned component implementations -
Commit
b79bac8
: Implement SensorManager and associated simulation sensors -
Commit
67e6cc6
: Add core logic for newly introduced components -
Commit
e239516
: Refactor: Align legacy components with updated architecture -
Commit
69494a7
: Update legacy tests to match refactored components -
Commit
e3a46da
,ce7f5cd
,44bdd97
,5c6b5ad
: Minor improvements and documentation updates -
Pull Request #19: Merge Safety features into main
10. Lessons Learned
Successes
- Significant portion of functionality implemented successfully
- Remaining components designed for seamless integration
- Comprehensive test coverage achieved
Challenges
- Initial misalignment in prioritizing safety features versus program control affected planning
- Underestimation of effort and time required to complete the iteration
11. Improvement Plan
Prioritization Alignment
Cause:
- Conflicting interpretations of requirement priorities between safety and program control
Prevention:
- Clarify and document priority hierarchy at project outset
- Base planning primarily on the Traceability Matrix priorities
Likelihood of Recurrence:
- Moderate
Contingency:
- Schedule priority review checkpoints with peers during iteration planning
Iteration Estimation
Cause:
- Inaccurate estimation of workload and time needed for tasks
Prevention:
- Implement more detailed task breakdowns and continuous time tracking
- Plan shorter, more manageable iterations
Likelihood of Recurrence:
- Moderate
Contingency:
- Proactively reassess iteration scope and reduce it if necessary