Instructions to use ma-pmo/release-slip-triage with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use ma-pmo/release-slip-triage with Scikit-learn:
# ⚠️ Model filename not specified in config.json
- Notebooks
- Google Colab
- Kaggle
Release Slip Triage
At a glance
| What | which issue-slip calls can be made automatically with a guaranteed error rate, and which should go to a person |
| Good for | replacing a fixed review threshold in human-in-the-loop project tools (MA-PMO Roadmap 8) |
| Part of | Will this issue make the release? · all MA-PMO datasets and models |
| 한국어 | 오류율 상한을 보장하며 자동 결정할 이슈와 사람에게 넘길 이슈를 가르는 기준 |
import json
from huggingface_hub import hf_hub_download
policy = json.load(open(hf_hub_download("ma-pmo/release-slip-triage", "triage.json")))
lam = policy["results"]["k14"]["alphas"]["0.2"]["lambda"] # auto-decide when max(p, 1-p) >= lam
한국어 요약: MA-PMO의 기본 검토 기준은 확신도 0.6 고정이고, 0.9.0부터
HITL_RISK_ALPHA로 A4 경보에 이슈 단위 보장을 쓸 수 있습니다. 이 저장소는 같은 생각을 이슈 지연 모델에 적용하되, 틀린 판단이 릴리스 단위로 몰린다는 점을 반영해 "자동으로 결정한 것 중 틀린 비율이 α 이하"를 릴리스 단위로 보장하는 기준을 정하고, 더 나중 릴리스에서 그 보장이 지켜지는지 확인한 결과입니다.
A slip model gives each open issue a probability p of missing its release. The call is "slips" if p ≥ 0.5, else "makes it", with confidence max(p, 1 − p). A threshold λ decides automatically when the confidence is at least λ and sends the rest to a person. This repository chooses λ so that the error rate among automatic calls stays at or below a target α, with probability at least 90%, and checks it on later releases.
How λ is chosen
MA-PMO 0.9.0 already offers a guaranteed threshold for A4's alerts (HITL_RISK_ALPHA,
core/risk_control.py), treating each alert as an independent trial. This repository applies the
same idea to the issue slip model and finds that independence does not hold (point 3 below), so
it makes the guarantee per release.
Method: Learn then Test (Angelopoulos, Bates, Candès, Jordan, Lei, 2021, arXiv:2110.01052), with releases as the unit.
- Training releases are split by date: the earliest 80% (up to 2015) fit a model with the features and settings of release-slip-baseline v2; the latest 20% (about 330 releases, 2015–2017) calibrate. Test releases (2017–2021) are used for nothing but the final check.
- Candidate thresholds are fixed before any calibration label is seen: the confidence levels at which 5%, 10%, …, 100% of the fit split's calls would be automatic.
- Mistakes cluster by release: in calibration, all 37 wrong calls among the 1% most confident come from one release (Apache OODT 1.1, where 86% of issues made it although the model was 99% sure they would slip). Treating issues as independent would overstate how much the data proves. So the controlled risk is the error rate among automatic calls averaged over releases, tested with Hoeffding's bound over releases, at level δ / 20 for each of the 20 thresholds (Bonferroni, δ = 0.1). The lowest passing λ is kept.
Results (test split, later releases)
| k | policy | λ | automatic | error among automatic calls, averaged over releases | error among automatic calls, all issues pooled |
|---|---|---|---|---|---|
| 14 | fixed 0.6 (MA-PMO's default) | 0.60 | 90.6% [89.6, 91.6] | 15.6% | 10.9% [9.8, 12.0] |
| 14 | guaranteed α = 0.20 | 0.726 | 76.2% [74.1, 78.3] | 12.0% (≤ 20%: held) | 6.9% [6.1, 7.8] |
| 28 | fixed 0.6 | 0.60 | 87.9% [86.8, 88.8] | 18.0% | 13.8% [12.6, 15.1] |
| 28 | guaranteed α = 0.20 | 0.808 | 53.4% [50.1, 56.4] | 11.7% (≤ 20%: held) | 5.9% [4.8, 7.6] |
95% bootstrap intervals over releases in brackets. Every number is in triage.json.
- The fixed 0.6 decides more automatically, but nothing bounds its error rate; on these later releases it ran at 15.6% (k = 14) and 18.0% (k = 28) averaged over releases.
- Only α = 0.20 can be guaranteed with about 330 calibration releases; 0.05–0.15 need more calibration releases (Hoeffding's margin is about 0.09 here). The release-level guarantee is deliberately conservative.
- Automatic calls are almost all "slips" (k = 14: 31,330 against 423 "makes it"). Calls that an issue will make it mostly go to a person, which suits a tool that flags risk.
- Calibrate on your own releases before using λ elsewhere: the guarantee assumes the future releases resemble the calibration ones.
Files
| file | what |
|---|---|
triage.json |
λ per offset and α, every tested threshold with its p-value, calibration and test results, the fixed 0.6 for comparison |
triage_model_k14.skops, triage_model_k28.skops |
the slip models fitted on the earliest 80% of training releases (λ applies to these) |
train_triage.py |
the procedure above (with the modules it imports) |
pip install "ma-pmo[benchmark]==0.9.0" pandas pyarrow skops
python train_triage.py <jira-release-slip folder> --out . --params <release-slip-baseline>/metrics_v2.json
Provenance, license and privacy
Source: the Public Jira Dataset (Montgomery, Lüders, Maalej; Zenodo v7, 10.5281/zenodo.15719919), licensed CC BY 4.0, adapted through jira-release-slip: what was kept, dropped and computed is in DATA_PROVENANCE.md. The Python scripts in this repository are part of MA-PMO and licensed AGPL-3.0-or-later, not CC BY 4.0.
People. The models are numeric tree ensembles and the policy is a table of thresholds; they hold no rows and no ids. Their training data holds no user ids. Details in PRIVACY.md.
Jira is a trademark of Atlassian; the instance names belong to their owners and are used only to say where the data comes from.
License
CC BY 4.0, following the training data. MA-PMO is AGPL-3.0 with a commercial license available (mjinttt@gmail.com).
- Downloads last month
- -