Finding
File: src/raki/report/html_report.py:268
The sort_phases superseded bumping logic checks phase.generation == 1 when deciding which phases to bump. This correctly handles the current ticket's gen-1 scenario, but would produce incorrect results in future multi-generation timeout scenarios (e.g. an implement gen-2 times out, gen-3 supersedes it — gen-1 downstream phases that already completed would be incorrectly bumped).
Suggestion
Add a TODO/NOTE comment near line 268 acknowledging that this logic is gen-1-specific and will need generalisation if multi-generation timeout/supersede scenarios are introduced.
References
Finding
File:
src/raki/report/html_report.py:268The
sort_phasessuperseded bumping logic checksphase.generation == 1when deciding which phases to bump. This correctly handles the current ticket's gen-1 scenario, but would produce incorrect results in future multi-generation timeout scenarios (e.g. an implement gen-2 times out, gen-3 supersedes it — gen-1 downstream phases that already completed would be incorrectly bumped).Suggestion
Add a
TODO/NOTEcomment near line 268 acknowledging that this logic is gen-1-specific and will need generalisation if multi-generation timeout/supersede scenarios are introduced.References