Open Source

Patches merged upstream. Everything here landed in the project it was sent to, with nothing pending and nothing superseded. Each entry links to its pull request, so you can read the review and the diff in full.

buffa: charging buffered Any payloads against the memory limit

Merged into buffa, a Rust protobuf implementation with JSON serialization and zero-copy views. Reflective JSON deserialization charged a google.protobuf.Any payload against the element memory limit only at replay, so an arbitrarily large Any could be buffered first and slip past the budget. I added charging variants that meter the budget as the JSON tree is built, so the limit holds while the payload is still buffered. I reported the issue and sent the fix.

Oct 2026 merged open sourceRust

claude-hud: counting unmerged paths in the file stats

Merged into claude-hud, a Claude Code status plugin. The file-change stats counted each path by its git status letters, but the unmerged conflict states were not among the states it classified. UU (both modified) and UA (added by them) were dropped from the count entirely, so a repo mid-merge or mid-rebase reported incomplete numbers. I classified the unmerged entries so every conflicted path is tallied.

Oct 2026 merged open sourceJavaScript

claude-hud: decoding every escape git puts in a quoted path

Merged into claude-hud, a Claude Code status plugin. Git C-escapes a path when it holds unusual characters, but the plugin decoded those paths with JSON.parse, which understands only JSON escapes. Control-character and octal escapes came back garbled, so affected filenames rendered wrong in the HUD. I replaced the JSON parse with a C-style decoder that handles every escape git emits, including multi-byte UTF-8 written as consecutive octal sequences.

Oct 2026 merged open sourceJavaScript

more-itertools: bucket and phantom keys

Merged into more-itertools. Testing a key against a bucket permanently added that key to the ones iteration returns, so a membership test and a list of the keys disagreed for the same object at the same moment. I reported the issue and sent the fix.

Sep 2026 merged open sourcePython

cattrs: naive datetimes on the wire

Merged into cattrs. The msgpack and cbor2 converters unstructured a datetime with datetime.timestamp, which reads a naive value as local time. The number written to the wire then depended on the timezone of the machine doing the unstructuring, so the same datetime round-tripped to a different instant on a different host. I reported the issue and sent the fix.

Sep 2026 merged open sourcePython

more-itertools: value_chain and swallowed errors

Merged into more-itertools. value_chain wrapped a try and except TypeError around a lazy yield from, so the guard stayed active for the whole consumption instead of only classifying the argument. A TypeError raised from inside an argument was swallowed, and a half-consumed object was emitted in its place. I reported the issue and sent the fix.

Sep 2026 merged open sourcePython

more-itertools: numeric_range and float steps

Merged into more-itertools. numeric_range builds each item by multiplying the step, but it derived len(), the in operator, and index() by dividing by the step. With float steps the two methods disagree, so a range reported a length that did not match what it yielded, and it denied membership to its own items. I reported the issue and sent the fix.

Sep 2026 merged open sourcePython

pytest: approx() and nested containers

Merged into pytest. approx() refused to descend into a nested container and said so clearly, but only when that container matched the type of the one holding it. A dict inside a list slipped past and was compared exactly, so the tolerance was ignored without warning. Reported in 2022 and still reproducing on main.

Aug 2026 merged open sourcePython

FortyMM: transactional email templates

Merged into FortyMM, an open-source table tennis league platform. I rewrote the Devise mailer templates, adding a plain-text alternative to every HTML mail, email-safe responsive CSS, and wording that sounds like the sport the product is about.

Sep 2025 merged open sourceRuby on Rails