2026-12-06 ~5 min read Open Source · Rust · Go · AI RSS

What 91 Merged OSS PRs Taught Me About Rust, Go, and AI Agent Tooling

Grounded notes from 91 merged external OSS PRs across Rust, Go, and AI agent tooling — verified links, 3 IETF RFC errata, and the parts I'm still unsure about.

I have been sending patches to repositories I do not own for a while now. Not as a maintainer and not as a consultant — just someone who reads code, spots a rough edge or a spec mismatch, and tries to leave it a little cleaner than I found it.

At 91 merged external PRs across Rust, Go, Python, and spec repos, I wanted to write down what actually held up in review and what I am still unsure about. I am linking specific merges because vague "I contributed to open source" claims are cheap; if I mention a patch here, you can click through and read the diff yourself.

The receipts

A few recent and representative ones you can verify directly:

  • apache/opendal#9637 (Rust) — fix(services/fs): preserve configured root directory on root delete. Filesystem boundary safety in a large storage abstraction with strong conventions.
  • valkey-io/valkey-go#235 (Go) — fix(valkeylock): guard prefix and slot bounds in onInvalidations. Guarding prefix and slot boundaries on lock invalidation paths.
  • srwiley/oksvg#59 (Go) — Support uppercase E and explicit + exponents in SVG path numbers. A small parser edge case where real-world SVG inputs disagree with hand-rolled number parsing.
  • grpc-ecosystem/grpc-gateway#7735 (Go) — fix(openapiv3): do not emit tags for services with no emitted HTTP operations. Keeping generated OpenAPI v3 output honest when a gRPC service has no HTTP bindings.
  • cognizant-ai-labs/agentic-web#152 (JavaScript/docs) — Add Open Agentic Guard to agentic_websites.md. A small ecosystem listing PR, worth mentioning alongside code patches like modelcontextprotocol/rust-sdk#1487 because the agentic-web surface is still being mapped in real time.
  • xgbtxy/ap (v2.96.2 tag had 361/361 tests passing; v2.98.0 is now live) — my own pure-Rust agent toolkit, included here only because it is the one place I can inspect the full test and release story end to end.
  • 3 Verified IETF RFC errata — EID 9311 (RFC 9983 §4.2), EID 9330 (RFC 10041 §4.2.5), and EID 9352 (RFC 8995 §5.7). Quietly the work I am proudest of, because there is no test runner to hide behind.

Lesson 1: Read the tests before you read the source

Every repository has its own idea of what a "good" patch looks like. opendal cares deeply about preserving service invariants across backends. grpc-gateway cares about keeping generated artifacts deterministic and noise-free. oksvg cares about matching SVG path grammar without surprising existing callers.

The fastest way I have found to learn a maintainer's taste is to read the test suite before reading the implementation. Tests are maintainers telling you, in executable form, what they are afraid of breaking. Write your regression test in the exact style of the surrounding tests, and your PR usually gets reviewed instead of rewritten.

Lesson 2: In Rust, "it compiles" is the start of the review

The borrow checker eliminates a whole class of memory bugs, which makes it tempting to treat a green cargo check as a finished patch. It does not catch a delete("/") path that accidentally removes the configured root directory (opendal#9637), or an error path that drops context.

The most useful Rust review feedback I have received was almost never "this won't compile" — it was "this compiles, but it violates an invariant one layer up." Small, boring, explicit code with a targeted regression test beats clever trait gymnastics every time.

Lesson 3: In Go, boundary guards and -race expose design assumptions

Working across valkey-go, oksvg, and grpc-gateway reinforced two habits in Go: check slice/prefix bounds explicitly before indexing (valkey-go#235), and treat go test -race as a design review rather than a CI checkbox.

In parser and generator code (oksvg#59, grpc-gateway#7735), bugs usually hide at the edges of a specification — an uppercase E or explicit + in scientific notation, or a service that exists in .proto but emits zero HTTP operations. Adding a tiny table-driven test case for the exact spec corner is often more valuable than refactoring the surrounding loop.

Lesson 4: Agent tooling needs the same discipline as security and parser code

Between xgbtxy/ap, modelcontextprotocol/rust-sdk#1487, and tracking the agentic-web ecosystem (#152), the pattern I keep seeing is that coding and web agents fail plausibly. A compiler errors loudly; an agent will happily continue with a half-truncated log or an overly broad shell rewrite unless the tool boundary refuses it.

The patches that actually hold up in agent tooling are unglamorous: fail-closed input validation, explicit errors instead of silent fallbacks, and compact structured output so the model does not burn its context window guessing what happened. Treat every tool invocation like untrusted input, because in an autonomous loop, eventually it is.

Lesson 5: RFC errata are the purest form of reading closely

EID 9311, EID 9330, and EID 9352 are tiny. They are also the first things I point to when someone asks whether reading primary specifications still pays off.

Finding a verifiable erratum means reading a formal document closely enough — often with a small parser or schema check — to catch a real contradiction or syntax error that humans skim past. There is no CI green checkmark and no merge button; you just have to be right and show your work clearly enough for an Area Director to verify it.

What I am unsure about

I want to be candid about the limits of these notes:

  • "91 merged PRs" is a count, not a quality metric. Some of those merges were small, focused fixes or ecosystem docs (agentic-web#152); others were trickier parser, protocol, or concurrency bugs. Summing them into a single number flatters the headline, and I know it.
  • Passing tests on my own repo (361/361 at v2.96.2) only proves the tests I wrote pass. It does not prove I tested the right edge cases, and I have caught myself writing tests that mostly confirmed my own assumptions.
  • Agent tooling conventions are moving faster than my lessons. Practices that feel solid in MCP and agentic-web repos today may look dated six months from now.
  • I do not know how much of this generalizes. These are one engineer's notes from a specific set of public repositories. Different maintainers have different priorities, and when you are a guest in their repo, their conventions win.

If you also spend time sending external patches to Rust, Go, or agent-tooling repos, I would genuinely like to hear where your experience differs — especially the parts where my takeaways are off.

Links

我觉得技术没有壁垒,在合适的时间做合适的事情就好,hhh