Predicting, forecasting and optimizing sprint commitments on real Jira data. Machine learning (gradient boosting, survival analysis, conformal prediction) + Monte Carlo and discrete-event simulation + integer optimization (Google OR-Tools CP-SAT) + an AI-agent interface (Model Context Protocol).
Agile teams plan their work in sprints: short, fixed periods (usually two weeks). At the start of each sprint, the team commits to a set of tasks. In practice, much of that work is not finished in time and spills into the next sprint.
In this dataset of 38 real software teams, 57% of committed tasks were not finished by the end of their sprint. Teams usually discover this at the sprint review, when it is too late to re-plan, reduce scope or warn the teams who depend on that work.
The planning question: On day 1 of a sprint, which tasks will probably not finish, why, how much will the sprint really deliver, and what should the team commit to instead?
| Who | What they need to know |
|---|---|
| Team lead, Scrum Master | which tasks to commit to |
| Release Train Engineer | which dependencies between teams are at risk |
| Portfolio leader | whether the plan, and the objectives above it, will land |
TAWOS (Tawosi, Al-Subaihin, Moussa & Sarro, MSR 2022): real Jira data from open-source projects at Apache, Atlassian, MongoDB, Moodle, Spring, Hyperledger and others.
| Raw size | 4.3 GB MySQL dump; 458,232 issues; 9.25M change events |
| Unit of analysis | one commitment = one task in one sprint, as it looked at sprint start |
| After cleaning | 34,533 commitments in 3,052 sprints across 38 projects |
| Dependencies | 16,038 "is blocked by / depends on" links |
What made the data usable:
- No database server needed. A streaming parser reads the MySQL dump line by line and writes Parquet files.
- Point-in-time features (no data leakage). Jira stores today's values. A task's final story points or assignee are often set after the sprint started, so using them would let the model "see the future". Every feature is rebuilt from the change log as it was at sprint start.
- A validated label. Two independent definitions of "done" agree on 97.5% of tasks. The exception, project INDY (91% vs 52%), never sets Jira's resolution field, so "done" = resolution set or a done-like status.
- Rebuilt sprint history. TAWOS has no task-to-sprint history table, so sprint membership was rebuilt from 175K sprint-change events.
| Step | Question it answers | Technique |
|---|---|---|
| 1. Baselines | What does the team's own history already tell us? | team's past spill rate; logistic regression |
| 2. Risk model | Will this task spill? | LightGBM, tuned with grid vs random vs Bayesian search (Optuna), then isotonic calibration |
| 3. Timing model | When will it finish? | Survival analysis: Cox (elastic-net and XGBoost), XGBoost AFT, DeepSurv (PyTorch) |
| 4. Trust | How sure is the model? | Split conformal prediction: "at risk", "on track" or "uncertain", with a 90% coverage guarantee |
| 5. Reasons | Why is this task at risk? | SHAP explanations |
| 6. Types of work | What kinds of work exist, and which are riskier? | HDBSCAN vs K-Means on task text |
| 7. Dependencies | What else slips if this slips? | Knowledge graph (networkx) and a small work ontology mapped to SAFe |
| 8. Sprint forecast | How much will the whole sprint deliver? | Monte Carlo simulation with a shared sprint-level shock and dependency propagation |
| 9. What-ifs | What if we add people or change the order of work? | Discrete-event simulation (SimPy) |
| 10. Planning | What should the team commit to? | Integer optimization with Google OR-Tools CP-SAT, compared with greedy and random-search heuristics |
| 11. AI interface | Can a planner ask in plain English? | MCP server: 4 tools any MCP-compatible AI assistant can call |
Honest evaluation: every project's sprints are split by time: the first 60% train, the next 15% validate, the latest 25% test (8,544 commitments). The model never sees the future it is tested on.
| Model (test set: each project's latest 25% of sprints) | AUC | Brier score |
|---|---|---|
| Team's own past spill rate (baseline) | 0.648 | 0.213 |
| Logistic regression | 0.731 | 0.191 |
| LightGBM, tuned + calibrated (risk calls) | 0.744 | 0.188 |
| XGBoost AFT survival model (timing) | 0.745 | 0.186 |
- The model beats the team's own history by about 0.10 AUC, and its probabilities are well calibrated (expected calibration error 0.042).
- Its risk calls keep their promise. Conformal "at risk / on track / uncertain" calls covered the true outcome 91.0% of the time (target 90%). When it says "at risk", it is right 84% of the time.
- Data work mattered more than tuning. Grid, random and Bayesian search all finished within 0.0015 AUC of each other; the label fix and point-in-time features decided whether the results were valid at all.
- A real sprint, forecast on day 1. Sprint 2944 (Rubin Observatory Data Management, test period) committed 232 points against a velocity of 30. The forecast was 9.5 of 42 tasks done (80% interval: 4 to 16); the team finished 10.
- Work order matters as much as headcount. In simulation, working smallest tasks first finished about 3× more tasks than backlog order.
- An honest plan finishes more of what it promises. The CP-SAT plan for sprint 2944 (8 tasks, 30 points) had 62.5% of its tasks actually finished, vs 23.8% for the real 42-task commitment.
| Tried | What happened | Decision |
|---|---|---|
| Final field values as features | leaks the future | point-in-time reconstruction |
| "Done" = resolution field set | INDY mislabelled | resolution or done-like status |
| TF-IDF text features | AUC 0.745 → 0.735 (vocabulary drift) | dropped; text used only to describe work types |
| scikit-survival gradient boosting | over 10 minutes on 26K rows | XGBoost survival objectives |
| DeepSurv | C-index 0.669, below boosted trees | kept as a comparison |
| Monte Carlo correlation chosen "closest to 80%" | too narrow intervals on test | pre-registered rule, monitored in production |
| Random-search sprint planner | value 10.9 vs 17.2 optimal | CP-SAT, with greedy as a fast fallback |
├── notebooks/
│ ├── 01_data_label_eda.ipynb ← start here: data, label, leakage rules, EDA, time-based split
│ ├── 02_predictive_models.ipynb baselines, LightGBM, tuning, survival models, calibration, conformal, SHAP, HDBSCAN
│ └── 03_decisions.ipynb knowledge graph, Monte Carlo, SimPy, CP-SAT, MCP server, AWS design
├── src/
│ ├── extract_tawos.py streams the MySQL dump into Parquet tables
│ └── build_dataset.py builds the point-in-time commitments dataset
├── mcp/ written by notebook 03
│ ├── delivery_engine.py shared engine: risk, forecast, plan, dependencies
│ └── mcp_server.py exposes the engine as MCP tools
├── models/ saved models and settings
├── reports/ results tables and figures
└── data/ not included (see below)
- Download the TAWOS dump from figshare (DOI 10.5522/04/21308124) and save it as
data/raw/TAWOS.sql.zip. - Install the packages:
pip install pandas numpy pyarrow matplotlib scikit-learn lightgbm xgboost scikit-survival optuna shap torch simpy ortools networkx "mcp<2" jupyter- Build the dataset:
python src/extract_tawos.py data/raw/TAWOS.sql.zip data/interim
python src/extract_tawos.py data/raw/TAWOS.sql.zip data/interim Fix_Version Affected_Version
python src/build_dataset.py- Run the notebooks in order:
01,02,03.
| Tool | What it does |
|---|---|
sprint_risk |
riskiest tasks in a sprint, with calls ("at risk", "on track", "uncertain") and reasons |
forecast_sprint |
Monte Carlo forecast of how many tasks will finish by sprint end |
plan_sprint |
the best set of tasks to commit for a given capacity (CP-SAT) |
blast_radius |
how many other tasks depend on a given task |
To use the tools from a desktop AI app that supports MCP, add the server to the app's MCP configuration:
{"mcpServers": {"delivery-risk": {"command": "python", "args": ["/full/path/to/mcp/mcp_server.py"]}}}Then ask, for example: "Which tasks in sprint 2944 are at risk, and what should we commit instead?" The AI assistant understands the question and explains the answer; every number comes from the models, the simulation or the solver.
- Open-source teams are not enterprise teams. Process and estimation habits differ; the models would be recalibrated on an organization's own history.
- Offline evaluation only. Next: a shadow-mode pilot that scores live sprints and compares at each review.
- Drift. Spill rates rise over time; Monte Carlo coverage fell on the test period, so calibration is refreshed on recent sprints and monitored.
- Next: per-team calibration and hierarchical models, transformer text embeddings, and release-level forecasts rolled up through the dependency graph.
The production design (Amazon S3, Athena, SageMaker, Lambda and Bedrock) is described in notebook 03; it is a design, not a deployment.
TAWOS is released under Apache 2.0, and its authors ask that it be used for research. The raw and processed data are not included in this repository; download them from the source above.
- Tawosi, V., Al-Subaihin, A., Moussa, R. & Sarro, F. (2022). A Versatile Dataset of Agile Open Source Software Projects. MSR 2022.
- Ke, G. et al. (2017). LightGBM: A Highly Efficient Gradient Boosting Decision Tree. NeurIPS.
- Barnwal, A., Cho, H. & Hocking, T. (2022). Survival Regression with Accelerated Failure Time Model in XGBoost. JCGS.
- Katzman, J. et al. (2018). DeepSurv. BMC Medical Research Methodology.
- Angelopoulos, A. & Bates, S. (2023). Conformal Prediction: A Gentle Introduction.
- Lundberg, S. & Lee, S.-I. (2017). A Unified Approach to Interpreting Model Predictions (SHAP). NeurIPS.
- Bergstra, J. & Bengio, Y. (2012). Random Search for Hyper-Parameter Optimization. JMLR.
- Google OR-Tools CP-SAT: https://developers.google.com/optimization
- Model Context Protocol: https://modelcontextprotocol.io



