Avanish Garg

Avanish Garg · Applied AI & backend engineer · India · IST (UTC+5:30)

Loud bugs get fixed. Silent ones ship.

I read the source of the infrastructure other teams build on, find the bugs that never raise an error, and get the fixes merged. 38 merged pull requests across 13 open-source projects since Sep 2026.

merged pull requests
38
open-source projects
13
lines added upstream
+13.5k
more in review
16

01 The merge line

Every branch here is a real pull request, drawn from its own data.

  • Length days in review
  • Distance from main size of the diff
  • Dots commits
  • Colour project

Scroll to fly←→to step

All 38 merged pull requests

  1. mlflow/mlflowFluent restore_experiment() and restore_run() next to delete #25852
  2. mlflow/mlfloworder_by for search_prompts() in the client, fluent and genai APIs #25967
  3. docling-project/doclingODT footnote text was spliced into the middle of the citing paragraph #4375
  4. docling-project/doclingDOCX footnote and endnote text was dropped during conversion #4374
  5. truera/trulensBedrock provider ignored response_format without saying so #2795
  6. truera/trulensSystem messages were sent to the judge model as AI turns #2859
  7. temporalio/ai-integrationsFunction tool metadata was lost and unsupported tools hung workflows #54
  8. roboflow/supervisionMasks with holes were exported as two instances of the same class #2703
  9. roboflow/supervisionCompactMask.resize did not match dense nearest-neighbour resize #2705
  10. roboflow/supervisionCSVSink wrote NumPy arrays as truncated, unparseable strings #2707
  11. ComposioHQ/composiocacheTools exceeded Anthropic's limit of 4 cache breakpoints #4724
  12. ComposioHQ/composioStrict-mode support for the Python OpenAI Agents provider #4721
  13. ComposioHQ/composioPrompt-caching option for the Python Anthropic provider #4722
  14. temporalio/ai-integrationsResuming a serialized RunState hung the workflow #55
  15. collabora/WhisperLiveinitial_prompt and hotwords did nothing on the OpenVINO backend #545
  16. getlago/lago-apiAdd-on create, update and delete webhooks #6308
  17. getlago/lago-apiCoupon create, update, delete and terminate webhooks #6306
  18. temporalio/ai-integrationsMalformed tool arguments failed the workflow instead of the tool call #92
  19. temporalio/ai-integrationsPermanent Gemini HTTP errors were retried until the activity timed out #135
  20. lancedb/lancedbPermanent embedding errors were retried with an uncapped backoff #4542
  21. lancedb/lancedboptimize() failed once a tagged version aged past the cleanup cutoff #4544
  22. temporalio/ai-integrationsMCP tool prefix was ignored and tool annotations were dropped #148
  23. temporalio/sdk-pythonasync def update validators never ran, so every update was accepted #2005
  24. roboflow/supervisionOne out-of-range Gemini box discarded the whole parsed response #2793
  25. temporalio/ai-integrationsBinary file uploads failed on UTF-8 encoding before any activity ran #180
  26. temporalio/ai-integrationsContext window overflow failed the workflow instead of being recovered #146
  27. lancedb/lancedband/or on an Expr silently dropped filter predicates #4682
  28. temporalio/ai-integrationsImage, document and reasoning bytes broke Strands activities #150
  29. temporalio/sdk-pythonToJsonOptions dropped field aliases and wrote inf/nan as null #2039
  30. temporalio/sdk-pythonA new OTel tracer provider leaked on every warm Lambda invocation #2041
  31. collabora/WhisperLiveSpeaker diarization and translation on the OpenVINO backend #547
  32. apache/airflowDocumented that on_task_instance_failed also fires for retries #72424
  33. roboflow/supervisionFloat rounding dropped one train item in train_test_split #2969
  34. roboflow/supervisionNMM at threshold 0 merged detections that did not overlap #2972
  35. roboflow/supervisionKeyPoints.__setitem__ accepted data of the wrong length #2974
  36. roboflow/supervisionEmpty masks anchored at (0, 0) and caused phantom line crossings #2976
  37. celery/celeryTasks were indexed under the client hostname, not the worker #10988
  38. qdrant/qdrantgRPC metrics were missing for five Points operations #10968

02 Case files

Eight worth reading. Most never raised an error, which was the problem.

Case 01qdrant/qdrant

gRPC metrics were missing for five Points operations

Five gRPC operations never appeared in grpc_responses_total or the latency metrics, although their REST siblings did. GRPC_ENDPOINT_WHITELIST had drifted from REST_ENDPOINT_WHITELIST, and operations missing from it were left out. The fix adds the five /qdrant.Points/... entries in sorted order, since the array is binary-searched. Checked on a debug build: after calling the RPCs with grpcurl, /metrics listed only Search on dev and all five on the branch.

Case 02celery/celery

Tasks were indexed under the client hostname, not the worker

With task_send_sent_event=True, State.tasks_by_worker listed tasks under the sending client and never under the worker that ran them. Both indexes were written only when a task was created (if task_created), and the creating event was the client's task-sent. State.event now updates the worker index on worker events when the worker changed, and the type index when the name changed. Seven new tests in t/unit/events/test_state.py fail on main and pass with it.

Case 03temporalio/ai-integrations

Image, document and reasoning bytes broke Strands activities

Sending an image through a Strands agent on Temporal failed the workflow task on every attempt, and an ASCII document arrived at the model as str. The JSON payload converter cannot carry raw bytes: non-UTF-8 bytes fail to serialize and ASCII bytes decode as text. The fix tags only the known bytes fields as base64 in _bytes_values.py and restores them on the other side, leaving other JSON alone. Round-trip, workflow, marker-collision and legacy replay tests cover it.

Case 04lancedb/lancedb

and/or on an Expr silently dropped filter predicates

Filters written with Python's and, or, not or chained comparisons returned wrong rows: (col("id") > 7) and (col("g") == 0) returned all even ids. Those operators call bool() on an Expr, which had no __bool__ and was always True, so one predicate vanished. Expr.__bool__ now raises TypeError, and the hybrid builder's if self._where: check was replaced so .where(Expr) keeps working. 21 new tests cover truthiness and the where builders.

Case 05temporalio/ai-integrations

Context window overflow failed the workflow instead of being recovered

A model call that overflowed the context window failed the whole workflow, although a plain Strands Agent shrinks the conversation and retries. The exception crossed the activity boundary as a typed ApplicationError inside an ActivityError, where Strands' event loop could not catch it. TemporalModel.stream now re-raises ContextWindowOverflowException, guarded by a workflow.patched marker. Tests compare against a plain Agent and replay recorded legacy histories.

Case 06temporalio/sdk-python

async def update validators never ran, so every update was accepted

A workflow with an async def update validator accepted every update. WorkflowInboundImpl.handle_update_validator calls validators synchronously and never awaits them, so the coroutine was dropped with only a RuntimeWarning. _UpdateDefinition.set_validator now raises ValueError when the validator is registered, before a dynamic handler replaces the existing one. Three new tests cover the decorator, a sync validator and both dynamic registration paths.

Case 07roboflow/supervision

CompactMask.resize did not match dense nearest-neighbour resize

CompactMask.resize returned masks that differed from dense cv2.resize(..., INTER_NEAREST), and the existing parity test compared boolean arrays with a tolerance of 1, so it could not fail. It rounded each crop's offset and resized crops independently. _nearest_source_index now computes, once per axis, the source index each output pixel samples, and crops are indexed with it. New exact-equality tests failed on develop (41 of 54) and a 6000-case fuzz shows 0 mismatches.

Case 08docling-project/docling

ODT footnote text was spliced into the middle of the citing paragraph

Converting an ODT file with a footnote produced a paragraph with the footnote body in the middle of the sentence. _odf_text_runs had no case for text:note, so it recursed into the note's citation and body like any inline span. It now returns nothing for text:note, and _add_footnotes recovers each body as a separate FOOTNOTE item in the furniture layer. A regression test builds a minimal ODT with odfdo and checks both the clean paragraph and the recovered note.

03 Projects

13 codebases, merged by the people who maintain them.

  1. 08 roboflow/supervision Computer vision toolkit for detections, masks and datasets Wrong results in mask resize, dataset export and split, NMM, mask anchors, CSV output and VLM parsing Python51.7k ★
  2. 08 temporalio/ai-integrations Temporal integrations for AI agent frameworks Errors, tool metadata and binary payloads crossing activity boundaries for OpenAI Agents, Strands and Gemini Python41 ★
  3. 03 ComposioHQ/composio Tool integration platform for AI agents Strict mode and prompt caching for the Python providers, and a cache breakpoint limit fix in TypeScript Python, TypeScript31.3k ★
  4. 03 lancedb/lancedb Embedded vector database and retrieval library Embedding retry policy, tagged versions in optimize() and Expr truthiness dropping filter predicates Python, Rust12.0k ★
  5. 03 temporalio/sdk-python Durable workflow engine, Python SDK Update validator checks, Pydantic converter wire format and OTel provider reuse in the Lambda worker Python1.3k ★
  6. 02 docling-project/docling Document conversion library for gen AI pipelines Footnote and endnote handling in the DOCX and OpenDocument backends Python71.1k ★
  7. 02 mlflow/mlflow Open source platform for ML and LLM tracking and evaluation Fluent restore functions for experiments and runs, and order_by for prompt search Python29.0k ★
  8. 02 collabora/WhisperLive Near-real-time Whisper transcription server OpenVINO backend parity: initial prompt, hotwords, speaker diarization and translation Python4.4k ★
  9. 02 truera/trulens Evaluation and tracking for LLM apps and agents Provider fixes: LangChain system message mapping and Bedrock response_format disclosure Python3.7k ★
  10. 02 getlago/lago-api Open source metering and usage-based billing API Lifecycle webhooks for coupons and add-ons Ruby445 ★
  11. 01 apache/airflow Platform to author, schedule and monitor workflows Listener documentation for on_task_instance_failed firing on retried attempts Python47.7k ★
  12. 01 qdrant/qdrant Vector database and vector search engine gRPC request metrics whitelist brought in line with its REST sibling Rust35.7k ★
  13. 01 celery/celery Distributed task queue Event state indexes: tasks filed under the worker and type known at event time Python29.3k ★

04 How I work

Read the code. Believe the repro.

I build and run production AI systems for a living: document pipelines, RAG services, model routing, GPU workloads on Kubernetes. That work sits on top of open-source infrastructure, so I read it.

Reading it is how I find things. A filter that quietly drops a predicate. A retry loop that keeps retrying an error that can never succeed. A tracer provider rebuilt on every call. Nothing crashes, so nobody looks.

Every pull request on this page was reviewed and merged by the project's own maintainers. The fixes started from a reproduction against the main branch, and nearly all of them landed with regression tests.

  1. 01

    Read

    Start from the code, not the issue tracker. Compare sibling implementations and look for the one that forgot something.

  2. 02

    Reproduce

    Run a minimal script against the current main branch. No repro, no claim.

  3. 03

    Check

    Search issues and open pull requests the same day. If someone is already on it, step away.

  4. 04

    Fix

    Smallest correct change in the project's own style, with a test that fails before and passes after.

  5. 05

    Merge

    Answer review, rebase when main moves, and stay with it until it lands.

Experience

Applied AI Engineer · Syvora

  • Document-processing workflows combining OCR, VLM inference, validation and structured extraction, cutting manual processing time by 80%.
  • AI services integrating LLMs, RAG, PostgreSQL, Redis and REST APIs, handling 100K+ requests a day.
  • Model routing, caching, batching and provider fallbacks that reduced AI infrastructure cost by 61% at 95%+ task success.
  • AI workloads on Kubernetes: GPU scheduling, autoscaling, health checks, rolling deployments, model versioning.

Protocol Engineer · Under NDA

  • Prediction-exchange contracts with deterministic order matching and settlement state machines, sustaining 10k+ daily on-chain trades.
  • 300+ Foundry fuzz and invariant tests over adversarial execution paths, reaching 97% branch coverage on core contracts.
  • Cross-chain USDC settlement processing 500k+ messages with replay protection and zero failed settlements.
  • Defense in depth for LLM applications: prompt-injection detection, retrieval isolation, tool authorization, output validation.

Toolbox

Languages

  • Python
  • TypeScript
  • Go
  • Rust (reading & fixes)
  • Solidity

Backend

  • PostgreSQL
  • Redis
  • SQLAlchemy
  • REST & gRPC
  • Temporal
  • Celery

AI systems

  • LLMs & RAG
  • Agents & tool use
  • Fine-tuning, LoRA
  • Evaluation
  • Vector search

Platform

  • AWS
  • Kubernetes
  • Docker
  • Terraform
  • GitHub Actions

05 Writing

The Curiosity Crunch, a series on how things actually work.

All articles

06 Contact

Have a system that fails quietly?

Open to remote roles · India · IST (UTC+5:30)

[email protected]