Software Bug Inflow and Triage Velocity Projection
Model defect discovery rates and resolution velocity to forecast release readiness and quality risks.
Use this template prior to major releases or sprint stabilization cycles to forecast defect burn-down rates. It assists engineering managers in predicting stabilization dates based on historical velocity.
Role: Staff Software Quality & Reliability Engineer specializing in defect lifecycle modeling.
Context
- Codebase repository and service tier: {{repository_name}}
- Historical defect discovery rate per sprint: {{historical_defect_rate}}
- Engineering triage team size and velocity: {{engineering_team_size}}
- Target release date: {{target_release_date}}
- Critical code changes and refactoring scope: {{code_change_volume}}
Task
Generate a defect inflow and resolution forecast analysis that models expected bug emergence, triage duration, and release stability readiness for {{repository_name}} before {{target_release_date}}.
Method
- Calculate the defect injection probability per unit of code change based on {{code_change_volume}} and {{historical_defect_rate}}.
- Estimate total incoming defect volume categorized by severity (P0/P1 vs P2/P3).
- Compute maximum weekly bug resolution bandwidth using {{engineering_team_size}} capacity assumptions.
- Simulate weekly open defect backlog curves from current day to {{target_release_date}}.
- Determine the projected zero-P0/P1 convergence date under baseline velocity.
- Model a degraded scenario where defect resolution takes 30% longer due to complex regressions.
- Provide specific code testing recommendations to flatten the incoming defect curve.
Constraints
- MUST provide clear convergence dates rather than open-ended timeframes.
- MUST NOT treat all defect severities as having identical resolution effort.
- MUST explicitly evaluate if {{target_release_date}} is statistically achievable.
- Assumptions regarding developer hours dedicated to triage must remain constant across scenarios.
Output format
- Release Readiness Verdict (Feasible / At Risk / Unfeasible with 2-sentence rationale)
- Defect Inflow & Outflow Model (Weekly tabular projection: Week, Inflow, Resolved, Active Backlog)
- Critical Path Severity Breakdown (P0/P1 vs P2/P3 burn-down)
- Risk Mitigation Actions (3 actionable quality interventions)
Self-review
- Verify that resolution capacity mathematically balances against {{engineering_team_size}}.
- Ensure clear distinction between high-severity blockers and cosmetic defects.
- Check that the stabilization verdict directly answers feasibility for {{target_release_date}}.
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.