The test was protecting the bug
TensorFlow returned a zero gradient, and an existing test agreed. A straight line through the origin gave me a reason to doubt them both.
MLE & AI Engineering
TensorFlow returned the wrong gradient.
An existing test expected it.
I work on ML frameworks and the systems around them. These are the bugs I followed, the patches that merged, and the reasoning a diff can't quite hold.
Read the TensorFlow storyA small counterexample.
A surprisingly persistent assumption.
01 / From the debugging notebook
Four stories, with the code
and tests behind each one.
TensorFlow returned a zero gradient, and an existing test agreed. A straight line through the origin gave me a reason to doubt them both.
An embedding failure should leave a document available for retry. Swiftide's cache had already decided it was done.
I followed a Redis socket race out of Celery's polling loop and into result cleanup. The fix needed a lock that could survive callbacks and a fork.
The worker's success report was accurate. By the time the scheduler read it, the task had already resumed, and the state guard was one state short.
02 / Beyond the write-ups
47merged public PRs
Across 28 repositories.
ML frameworks, AI infrastructure,
and distributed backends.
Count checked Oct 11, 2026.