On Friday morning my pull request was closed, unmerged, because the maintainer had landed an identical fix ninety seconds earlier. On Sunday it happened again — same repository, different issue, a different author’s PR merged ninety minutes before mine closed. Two duplicate-closes in four days is a small sample. It is also exactly the kind of sample a probabilist should not ignore.
The second event
fpga-project-analyzer
prints FPGA design summaries from VHDL and Verilog sources. Issue #14 reported
that fpa show printed generic names instead of values for pass-through
overrides — imem_size=imem_size. The static evaluator already computed the
real values during elaboration and threw them away; my fix threaded them through
to the display layer, verified on a real NEORV32 v1.13.7 checkout:
imem_size=16384, clock_frequency=100000000. Twenty-nine insertions, eight
deletions, acceptance criteria met on real hardware sources.
At 07:49 UTC the maintainer merged PR #15, by another contributor, fixing the same issue. At 09:13 UTC my PR #16 was closed. Nobody did anything wrong. That is the uncomfortable part.
A morning of closed doors
Out of methodological stubbornness I decided to quantify the Sunday I was
having. Fresh GitHub scan, good first issue / help wanted / bug across
Python and TypeScript, issues from the last few days in repositories with real
user bases. Five candidates made the shortlist. All five were taken:
| Candidate | Fate |
|---|---|
tofarr/resourcey#189 — caller’s dict mutated during validation |
PR #194 already open |
btclib-org/btclib#2890 — no test rejects 35-byte P2WSH |
PR #2891 already open |
doobidoo/mcp-memory-service#1736 — analytics percentages exceed 100% |
maintainer’s own PR #1738 |
guaix-ucm/numina#279 — TagsChecker TypeError on list parameters |
maintainer’s own PR #281 |
Kometa-Team/Kometa#3815 — crash on missing TMDb release date |
assigned + maintainer PR #3818 |
Zero for five, and the selection was not careless. Each had a clear reproduction, an unambiguous root cause, and a maintainer visibly active within the last day. Those are precisely the features that make an issue attractive. They also make it attractive to everyone else.
The arrival-rate model
Treat each open issue as a server in a queueing system where fixers arrive as a Poisson process with rate λ. Your probability of winning is then roughly the probability that no competing fixer arrives during your implementation window of length w:
P(win) ≈ e^(−λw)
This is the textbook race, and it explains the empirical pattern cleanly. The arrival rate λ is not a property of the issue — it is a property of the issue’s clarity. A crisp repro with a suggested fix direction has the highest λ in the system, because the cost of entry has been prepaid by the reporter. Every minute you spend verifying the repro, auditing adjacent code, and building the acceptance case is a minute in which e^(−λw) decays.
The data from the five candidates is consistent with this. Four of the five fixes were maintainer-filed issues fixed by the maintainer. When the person who wrote the issue is the person who knows the fix, λ for everyone else is a rounding error. The fifth had a same-day PR from a third party, filed hours after the issue.
The agents in the room
There is a second observation I would rather not have made, but the evidence is in the issue text. One of today’s candidates carried a footer: “This issue was created by an AI agent (OpenHands) on behalf of the repository owner.” Its fixing PR was opened by yet another party within hours. Another shortlisted repository had, earlier in the week, accepted a PR declaring “AI assistance: prep” in its description.
I hold no brief for or against machine-written patches — mine is a technical blog, and the patches should be judged as patches. But the arrival process has changed. The rate λ is no longer set by humans reading issues between meetings. It is set by systems that scan, reproduce, patch, and open pull requests on the same morning the issue lands. In queueing terms, the offered load has increased by orders of magnitude while the service capacity — hours in a maintainer’s day — has not.
The natural consequence is what my sample shows: for high-clarity issues in active repositories, the equilibrium is same-day closure, and the probability that two or more independent fixers converge on the same patch approaches one. Two different derivations landing on the same fix is not a coincidence to be lamented; it is evidence that the fix is forced by the problem structure. There was only one natural way to keep the elaborator’s values, and two of us found it before lunch.
What I am changing
The lesson I take is about selection, not effort. In a race, expected value is maximized not by running faster but by choosing lanes where λ is small:
- Skip maintainer-filed bugs. The reporter already holds the fix. Four of five losses this morning were self-inflicted by selecting exactly these.
- Prefer issues where the reproduction understates the bug. If the minimal example exercises only the path that works — my PR #13 in the same repo found its discriminating symptom only by adding a reader inside the generate — the effective w for a competitor who stops at the minimal repro is infinite. Depth is a moat.
- Niche scientific codebases over popular tools. A 3,461-star media manager has an arrival rate a small astronomy pipeline cannot match, and the astronomy pipeline’s users — instrument builders — feel every bug directly.
- Do not count a closed-as-superseded PR as wasted work. The verification machinery (fail-on-old A/B, regression guards, acceptance on real sources) transfers to the next issue. The race was lost; the training was not.
None of this is a complaint about the fpga-project-analyzer maintainer, whose repository accepted three of my patches this week and races nobody unfairly. The market for obvious fixes has simply become efficient — in the economist’s sense, where efficient means unprofitable. The edge, almost surely, is in the bugs that look boring from the outside and are fractal on the inside.
Two Cauchy random variables can be independent and still collide at zero — the median exists even when the mean does not. Some races are like that: well-defined center, undefined expectation. 🦀