AI uses for records
Technical debt outcome dataset: due dates got paid, TODO notes stayed
By SourceX Editorial · Updated
10 sections
Short answer
A technical debt outcome dataset joins each recorded decision to defer or repay debt with what happened later. In matplotlib 3.4 to 3.11, 660 of 665 deprecations were gone by the release their policy set; of 74 TODO, FIXME and XXX notes present at 3.5.0, 55 remained about four and a half years later, and none cited an issue. Due dates create outcomes you can join; free-text notes rarely do.
Grader rubric
Technical debt outcome
Key takeaways
- Pair every debt decision with a later outcome from the same system, and store the outcome apart from the decision record.
- Matplotlib's dated deprecations were paid on schedule: 660 of 665 markers in the 3.4 to 3.9 cohorts were gone by the release the policy set.
- Its free-text notes were not: 55 of 74 TODO, FIXME and XXX notes present at 3.5.0 were still there at 3.11.0, all 54 same-file survivors in files that had changed.
- None of the 74 notes cited an issue or pull request, so no tracker outcome can be joined to them.
- Removal is not repayment: research reports 20 to 50 percent of removed debt comments went with deleted code, so audit removals before labeling them paid.
- Label outcomes by sequence (paid, late, reversed, carried, removed with code) and argue causes separately.
What is a technical debt outcome dataset?
It is a set of records that pair a decision to defer, schedule or repay technical debt with what the same system shows happened afterwards. The decision side is a deprecation with a removal version, a TODO or FIXME note, a debt label on a ticket or an architecture decision; the outcome side is a release that removed the old path, an extension, a reversal, a rewrite that deleted the code, or nothing at all.
AI teams want these pairs for a specific job: teaching a model which deferrals tend to get paid, how repayment is usually done and what a credible repayment plan looks like, then grading its predictions against outcomes it could not see. Without the outcome side, a debt corpus is a pile of intentions.
This article measures both kinds of decision record in one public codebase, matplotlib, across eight feature releases from 3.4.0 to 3.11.0, and turns the result into a field trace and an outcome rubric. The claim it supports is about records, not engineering virtue: a decision that carries a due date produces an outcome you can check, and a free-text note mostly does not.
Why is a debt note a decision without a clock?
Because most debt notes say what is wrong, not when or under what condition it should be fixed, so nobody can say later whether the deferral was honored. Research on self-admitted technical debt, the debt developers flag in their own comments, keeps running into this gap.
Maipradit, Treude, Hata and Matsumoto studied 335 such comments and singled out on-hold debt, where the developer is waiting for an external event or for functionality built elsewhere; they built a classifier that flags these comments and the condition they wait for, with an AUC of 0.83 (Empirical Software Engineering, 2020; arXiv 1901.09511, checked October 27, 2026). The condition is often recoverable from the text, but only when someone wrote it down.
Removal is just as slippery. Zampetti, Serebrenik and Di Penta (MSR 2018) report that 20 to 50 percent of removed debt comments disappeared because whole classes or methods were deleted, and that only about 8 percent of removals were mentioned in commit messages (TU Eindhoven research portal; paraphrased from a search excerpt). A note that vanishes is not necessarily a debt that was paid, and the commit rarely says which it was.
Debt with a due date: what happened to 665 matplotlib deprecations
Almost all of it was paid on schedule. Matplotlib's API change policy says deprecated API is generally removed two point-releases after the deprecation is introduced, with longer periods imposed case by case, and its decorators carry the version in which each deprecation started (doc/devel/api_changes.rst, main at commit 39b27dd, checked October 27, 2026).
Counting deprecation markers in the library code at each release tag, the six cohorts that started in 3.4 through 3.9 held 665 markers in the last release before their removals were due. At the due release, 5 remained, all from the 3.4 cohort, and 2 of those 5 carried an explicit later removal version; 660 of 665 (99.2 percent) were gone on time. By 3.11.0, one marker from 3.4 was left.
Reversals are rare but recorded. The 3.4.0 change notes say setting a Line2D's pickradius through set_picker is undeprecated, which "cancels the deprecation introduced in Matplotlib 3.3.0", and the 3.5.3 notes relax a 3.5 deprecation so that stem can still take linefmt positionally. A reversal is an outcome too, and it is the kind a model should learn to predict: the decision met users and gave way.
The cohort table shows each deprecation start version, its size at the last release before removal was due, and what remained:
| Deprecated since | Markers at last release before due | Still present at due release | Still present at 3.11.0 |
|---|---|---|---|
| 3.4 (due 3.6) | 127 | 5 (2 with a later removal version) | 1 |
| 3.5 (due 3.7) | 138 | 0 | 0 |
| 3.6 (due 3.8) | 191 | 0 | 0 |
| 3.7 (due 3.9) | 64 | 0 | 0 |
| 3.8 (due 3.10) | 104 | 0 | 0 |
| 3.9 (due 3.11) | 41 | 0 | 0 |
Debt without one: what happened to 74 TODO notes
Most of them stayed. The library code at 3.5.0 (tagged commit dated November 15, 2021) held 74 comment notes marked TODO, FIXME or XXX: 61 TODO, 11 FIXME and 2 XXX, with no HACK; the one line that holds both XXX and TODO counts once, under TODO, the last keyword on the line. At 3.11.0 (June 11, 2026), about four and a half years later, 54 were still in the same file word for word and 1 had been reworded in place, from TODO : to TODO:, which the text match still counts as present because a twin note with the old wording survives in another file; 19 were gone, one of them because its whole file no longer exists. Meanwhile 23 new notes arrived, so the count rose to 77.
The survivors were not ignored files. All 54 same-file survivors sit in files that changed between the two releases, so the files were edited while the notes stayed. None of the 74 notes cites an issue number or a GitHub issue or pull request link, which means there is no tracker record to join a later outcome to. Eight notes contain a trigger word such as once, when, until or remove, and 5 of those 8 survived.
Set against the deprecations, the gap is wide. Of the 278 deprecation markers present at 3.5.0, only 2 with the same start version were still present at 3.11.0 (0.7 percent), while 55 of the 74 notes (74.3 percent) were. Counted release by release, the 19 disappearances were first seen at 3.6.0 (7), 3.7.0 (2), 3.9.0 (1), 3.10.0 (2) and 3.11.0 (7).
The debt decision trace: fields that join a deferral to its outcome
Eight fields let a later outcome be joined to an earlier decision without guessing. The first five are written when the decision is made; the last three are filled in from later history and must be stored apart, so a model asked to predict the outcome cannot read it from the decision record.
Each row names the field, what it holds, what matplotlib shows and what is lost without it:
| Field | What it holds | Matplotlib evidence | Without it |
|---|---|---|---|
| Decision type | Defer, schedule removal, accept, or reverse | Deprecation decorators versus free-text TODO notes | Scheduled and open-ended debt get mixed |
| Due date or trigger | A version, a date or a stated condition | Every marker names a start version; 8 of 74 notes contain a trigger word | No way to say whether the deferral was honored |
| Owner and tracker link | The issue, ticket or decision record | 0 of 74 notes cite an issue or pull request | Later events cannot be joined to the note |
| Scope | The API, module or files the debt covers | Markers sit on the deprecated function or parameter | Outcomes elsewhere get misattributed |
| Rationale and alternative | Why the debt was taken and what was rejected | Change notes describe deprecations and their replacements | A model learns the label but not the reasoning |
| Outcome event | Removed, extended, reversed, still present or deleted with its code | 660 of 665 markers gone by the due release; 55 of 74 notes still present | There is nothing to grade |
| Outcome evidence | The release, commit or change note that shows it | Release tags and change notes record removals and two reversals | Outcome labels cannot be audited |
| Nearby events | Defects, incidents or rewrites touching the same code, with dates | Not counted here; 1 of 19 vanished notes went with its file | Rewrites look like repayment |
An outcome rubric that describes sequence, not cause
Label what happened after each decision, and keep the label about sequence, not cause. A defect that lands in a file holding a TODO note does not show that the note's debt caused it, and a removed deprecation does not show that users migrated; the rubric records order and timing so that any causal claim has to be argued separately.
The labels below apply to both record types, with the matplotlib counts for each:
| Outcome label | Definition, as counted | Deprecation markers | TODO-style notes | Use in a dataset |
|---|---|---|---|---|
| Paid on schedule | Gone by the release the policy or note set | 660 of 665 | Not measurable: no due date | Positive examples for repayment prediction |
| Paid late or extended | Still present at the due release | 5 of 665, 2 with a later removal version | Not measurable | Hard cases: ask for the extension reason |
| Reversed | Decision withdrawn in the change notes | 2 reversals in 3.4.0 and 3.5.3 notes | Not recorded | Decisions that met users and gave way |
| Carried | Still present at 3.11.0 in a file that changed | Not applicable | 54 of 74, plus 1 reworded in place | Debt worked around but not paid |
| Removed with its code | Note gone because its file no longer exists | Not applicable | 1 of 74 | Rewrite, not repayment; label it so |
| Removed, reason unknown | Note gone while its file remains | Not applicable | 18 of 74 | Needs the removing commit before use |
The strongest objection: a deprecation is not the same kind of debt
That is fair, and it narrows the lesson. A deprecation is a scheduled repayment of design debt that the project has already decided to make, backed by a written policy with expiry steps; a TODO note is often a reminder with no decision behind it. Some of the gap reflects that difference, not better follow-through.
The point for a dataset survives the objection. What a buyer can verify depends on the record type: a deprecation names its start version and sits under a policy, so its outcome can be checked from release tags alone, while a note with no date, owner or link can only be checked by reading code. Removal also does not settle the need behind the change. The stem reversal shows that retiring an API on time can collide with how users actually work, which is a second outcome worth recording.
Google's 2012 paper on build debt describes coordinated efforts to measure and pay down debt found in its BUILD files and the dead code around them (research.google; paraphrased from a search excerpt). Measurement came first there too: debt a tool can find and count is debt a team can plan around.
How would a buyer use debt decisions with later outcomes?
As prediction and planning tasks with the outcome sealed away. Given a decision record as it stood at a release, a model predicts whether the debt is paid by a later release, writes a repayment plan, or flags which notes have no clock; the later tags then grade it.
At a glance
How would a buyer use debt decisions with later outcomes
Before licensing such a history, a buyer can check:
- Join rate: the share of debt records that carry a due date, trigger or tracker link; every matplotlib marker names a start version, while 0 of 74 notes link to a tracker.
- Observation window: at least two scheduled repayment cycles after the last decision in scope, so that late payment can be seen.
- Leakage: prompts built from decision-time fields must not include later commits, change notes or release tags.
- Rewrite audit: a sample of removed notes checked against their removing commits, since a deleted function is not a paid debt.
- Confounding note: files that change often collect both notes and defects; any outcome comparison should report file activity alongside it.
What private engineering histories add, and how to ask for them
Company histories hold the parts public code lacks: debt labels and priorities on tickets, architecture decisions with the options rejected, sprint notes on what was deferred and why, incident reports that name the code involved, and sometimes the hours a repayment cost. Joined to commits and releases, those records give each deferral an owner, a clock and an outcome.
A request should state the decision types wanted, the outcome window, the trace fields, the rubric labels and whether the use is training, evaluation or both. SourceX sources datasets for AI teams when they ask, from companies that license their own business records, and the supplying company signs off on scope and terms before anything changes hands. No company's engineering history is implied to be available.
Methods note: matplotlib tags, counting rules and limits
Data: github.com/matplotlib/matplotlib, partial clone made on October 27, 2026 (main at commit 39b27ddaafe6), with library files read at tags v3.4.0, v3.5.0, v3.6.0, v3.7.0, v3.8.0, v3.9.0, v3.10.0 and v3.11.0 through git cat-file; no repository code was run. Scope at each tag: Python files under lib/, excluding paths containing /tests/ and lib/matplotlib/_api/deprecation.py, which defines the decorators.
A deprecation marker is a call to _api.deprecated, warn_deprecated, deprecate_privatize_attribute, rename_parameter, delete_parameter, make_keyword_only or deprecate_method_override whose first argument, or since argument wherever it sits in the call, is a quoted version 3.N. A removal version is a removal argument inside the same call; markers with pending=True are excluded from cohorts (4 to 16 per tag). A cohort is all markers with one start version; its size is the count at the release before the due release, start version plus two, because some cohorts grew after their first release; still present means the count of that start version at a later tag.
A note is any line where a comment contains the whole word TODO, FIXME, XXX or HACK in capitals; a line with two of them counts under the last one (one line reads XXX TODO and counts as TODO). Identity is the file path plus the line with surrounding spaces trimmed; a note survives in place when the same pair exists at 3.11.0, still counts as present when the same text exists in another file, and is gone otherwise, so a reworded note counts as gone. One note passed the second test without moving: it was reworded in place in offsetbox.py, and its old wording survives in a twin note in text.py, so the article calls it reworded in place. An issue link is a hash followed by three or more digits, or a matplotlib GitHub issue or pull request URL. Trigger words are once, when, after, until, remove, removed and words starting deprecate, matched as whole words in any case. Shares are integer ratios rounded half up to one decimal, once.
Not measured: the commits that removed each note, defects or incidents near any note, user migration, and anything inside any company. The saved output holds paths, line hashes and counts. Research findings are the authors' own, checked through excerpts on arxiv.org, research.tue.nl and research.google; the Zampetti and Google statements are paraphrased.
Frequently asked questions
What counts as a technical debt decision in an engineering record?
Any recorded choice to defer, schedule, accept or reverse a known shortcut: a deprecation with a removal version, a TODO or FIXME note, a debt label on a ticket, or an architecture decision that names the trade-off. The record is most useful when it carries a due date or trigger and an owner.
Do TODO comments get resolved?
Many do not. In matplotlib's library code, 55 of 74 TODO, FIXME and XXX notes present at release 3.5.0 in November 2021 were still there at 3.11.0 in June 2026, and none of the 74 cited an issue number or link.
Is a removed TODO note evidence that the debt was paid?
Not on its own. Research on self-admitted debt reports that 20 to 50 percent of removed debt comments went away because whole classes or methods were deleted, so each removal should be checked against the commit that made it.
Can debt records show that deferring debt caused later incidents?
Not by themselves. Debt notes and defects both collect in files that change often, so a later incident near a note is a sequence, not proof of cause. Record the order and timing, and argue causation separately with more evidence.
How should a buyer evaluate a model on technical debt outcomes?
Freeze the decision records as they stood at a release, hide everything later, and ask the model to predict whether each debt is paid, extended, reversed or carried by a later release. Grade it against the later tags and keep a rewrite audit for removed notes.
Sources
- Matplotlib's API change policy: deprecated API is generally removed two point-releases after the deprecation is introduced, with longer periods case by case. Source
- Matplotlib's library code at release tags v3.4.0 to v3.11.0, from which the deprecation cohorts and TODO-note survival were counted. Source
- Matplotlib 3.4.0 change notes record that setting pickradius through set_picker was undeprecated, cancelling a 3.3.0 deprecation. Source
- Matplotlib 3.5.3 change notes relax a 3.5 deprecation so stem can still take linefmt positionally. Source
- Maipradit et al. (2020) define on-hold self-admitted technical debt from 335 comments and classify it with an AUC of 0.83. Source
- Zampetti, Serebrenik and Di Penta (MSR 2018) report that 20-50 percent of removed debt comments went with deleted classes or methods and about 8 percent of removals were mentioned in commit messages. Source
- Google's 2012 paper describes efforts to measure and pay down technical debt in BUILD files and associated dead code. Source
Tell us what data you need
Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.