collective

Browse / suites / github.com/storytold / study

Case study

What the repeated and abandoned work in github.com/storytold costs, in tokens an agent would spend, and what keeping a fork current costs against it. Figures are estimates: ranges run from low to high assumptions, the mark is the middle one.

27.8kpull requests
7861open
17.3kmerged
2566closed unmerged
10.9kissues
2793authors

Findings

Duplicated and wasted effort

Duplicated work comes to about 3.94B tokens and wasted work about 27.2B, across 1040 duplicate groups and 9840 wasted pull requests.
Duplicated and wasted effort in tokens, with low to high ranges050.0B100BDuplicated effort: 3.94B (1.06B to 12.0B)Wasted effort: 27.2B (7.66B to 84.5B)
Data table
EffortLowMidHighPRs
Duplicated effort1.06B3.94B12.0B2872
Wasted effort7.66B27.2B84.5B9840
wasted: closed unmerged5.20B2127
wasted: superseded duplicate872M543
wasted: unlikely to merge21.2B7170

Chance a pull request merges

A pull request open for 0 days has a 68% chance of ever merging; by 30 days that falls to 2%.
Chance a pull request eventually merges, by how long it has been open0%25%50%75%100%0102030days open68%2%
Data table
Days openChance it merges eventually
067.5%
145.2%
237.3%
331.9%
428.2%
524.6%
621.1%
717.5%
815.1%
912.5%
1010.5%
119.4%
128.6%
138.0%
147.7%
157.4%
166.9%
176.4%
185.9%
195.9%
205.9%
214.9%
224.9%
234.9%
243.3%
253.4%
263.4%
273.5%
283.5%
291.8%
301.8%

Upkeep of a fork against what it avoids

Syncing every 14 days is the cheapest at about 2.38M tokens per fork-month; the 31.2B tokens of duplicated and wasted effort would pay for about 13083 fork-months at that rate.

upkeep per fork-month, mid with low to high

Tokens per fork-month to keep a fork current, by how often it syncs05.00M10.0M15.0M20.0M1d3d7d14ddays between syncs
Data table
Sync every (days)Syncs per monthSyncs that conflictConflict lines per monthTokens per fork-month (low / mid / high)Fork-months to equal duplicated + wasted
130.041%20.1k2.07M / 5.72M / 18.5M5456
310.055%18.7k1.32M / 3.52M / 11.2M8865
74.367%17.9k1.05M / 2.73M / 8.60M11420
142.179%17.5k935k / 2.38M / 7.46M13083

Duplicated + wasted effort, mid: 31.2B tokens.

Effort by repository

photocraft carries the most, 5.38B tokens or 17% of the duplicated and wasted effort across 26 repositories. The chart shows the top 12; the table lists all.

duplicated, midwasted, mid

Duplicated and wasted tokens by repositoryphotocraft · 1123 open PRs738M4.64Bpdfcraft · 1007 open PRs675M4.45Bwordcraft · 904 open PRs715M4.15Blightcraft · 731 open PRs256M3.85Bfilmcraft · 831 open PRs325M1.72Bgridcraft · 660 open PRs201M1.71Bdesigncraft · 338 open PRs253M1.24Bcadcraft · 540 open PRs166M1.05Bvectorcraft · 232 open PRs114M1.06Bdeckcraft · 276 open PRs206M790Meffectcraft · 378 open PRs96.6M846Mfigcraft · 67 open PRs45.9M475M
Data table
RepositoryOpen PRsDuplicated, midWasted, mid
photocraft1123738M4.64B
pdfcraft1007675M4.45B
wordcraft904715M4.15B
lightcraft731256M3.85B
filmcraft831325M1.72B
gridcraft660201M1.71B
designcraft338253M1.24B
cadcraft540166M1.05B
vectorcraft232114M1.06B
deckcraft276206M790M
effectcraft37896.6M846M
figcraft6745.9M475M
soundcraft23659.2M397M
craft-libs12125.4M312M
craft-launcher16543.4M255M
artcraft11811.2M157M
craft-repo-status-app21048.0M
craft-i18n18028.9M
craft-fonts337.10M14.9M
artcraft-services21177k21.4M
craft-ai-integrations509.40M
indd-utils609.29M
craft-common-actions1105.17M
photocraft-corpus4459k3.35M
craft-contrib120286k
artcraftx30105k

Token model

Tokens ~ bytes/4. Work set W = bytes of files a PR modifies at its merge base + its diff. Development = T reads of W + O writes of the added code; each rebase (force push or merge of upstream into the branch) = R reads of W; a conflicted sync also reads and rewrites its conflict lines. Multipliers are assumptions bracketing agentic sessions, not measurements.

Assumptions
{
  "O_dev": [
    1,
    2,
    4
  ],
  "R_sync": [
    1,
    3,
    10
  ],
  "T_dev": [
    5,
    20,
    60
  ],
  "chars_per_token": 4,
  "conflict_line_tokens": 12,
  "max_pass_tokens": 200000
}