Boundaries

Finding the Unknown Unknowns: Why your PR review bots are failing

A field rename passes every check, and days later a dashboard nobody knew about stops working.

Matt Kindy · · 8 min read

The limits of known defenses

In our previous post, “Avoiding Integration Bugs: Beyond SDKs & Contract Testing,” we looked at the common defenses teams use to keep services in a distributed architecture from breaking each other. We covered the strengths and weaknesses of typed SDKs, contract testing and full integration testing. All of them are valuable, because they are safety nets for the failure modes a team already knows about.

None of them protects you from the failures you can’t predict.

The most frustrating, expensive and time-consuming bugs often come from the “unknown unknowns”: the undocumented dependencies and forgotten consumers that nobody on the current team knows exist. This is a problem of architectural blindness, and even the most sophisticated AI-powered tools share it.

Say you work on a logistics platform, and one of its core services, the ETA-Service, estimates when deliveries will arrive. A developer on your team opens a pull request that refactors one of its endpoints and renames a field from estimated_arrival_in_minutes to the more precise estimated_arrival_utc. It’s a small, well-reasoned change, the unit tests are updated, and the PR description is clear. The automated checks pass within seconds, and the code is merged.

Days later, a different team flags a problem in QA. The operations team has a low-priority internal dashboard that predicts warehouse load, and it is now completely broken, because it was reading from the ETA-Service and nobody had documented that. The release is blocked while your developer, who had already moved on, switches back to diagnose a problem in a service they’ve never touched. The delay is frustrating and expensive, and it could have been avoided.

Review tools only see local context

Breaks like this are common because the tools we rely on for safety, from simple linters to sophisticated AI-powered PR bots, share a fundamental limitation. They only see local context, so they are blind to the architecture around a change.

AI agents look like they should get past that limit by reading the whole monorepo. The promise of agentic systems and Model Context Protocol (MCP) servers is that you can give an AI a toolbox and let it reason about how to solve a problem. This is a “pull” model, because the agent has to orchestrate a series of tool calls, pulling information from various sources to piece together an answer.

For complex architectural analysis, the pull model fails because of cognitive load and decision fatigue, in this case the AI’s. When the agent has to decide when and how to find and parse every potential dependency, its context fills up with noise and the likelihood of hallucination and error goes up sharply. It also has to judge when to stop looking, and it can never be sure it has found everything. In mid 2025, the best mitigation anyone had come up with was a structured task list, which Claude Code had and Cursor added in July. Task lists help, but they don’t solve the problem.

Part of what they can’t fix is completeness. An AI agent might find the best-known consumers of an API by searching for its name, but nothing tells you whether it found all of them, or whether it checked the repository for that legacy PHP service nobody has touched in three years. LLMs are probabilistic, so you can never be certain the picture is complete, and for architectural safety, “mostly correct” isn’t good enough.

Even when the agent does find every piece, it still has to put them together, and a large context window doesn’t equal understanding. An AI can find a “needle in a haystack” if you ask it a specific question, but it can’t connect the dots of a distributed system on its own to see the full impact of a change. That gets worse as the number of relevant pieces of information increases, despite technology improvements. It’s the difference between reading a dictionary and understanding a conversation, and it’s part of why people started talking about “context engineering” in mid 2025.

The alternative is a “push” model. A composite tool like Nimbus performs the complex, multi-step analysis automatically, traversing the entire system to build a complete picture. It then pushes a simple, deterministic, context-rich result to the AI. Because the AI’s task shrinks from complex analysis to simple reasoning, it performs better and more reliably.

A deterministic system graph

The push model depends on a structured, queryable system graph, and so does architectural safety in general. The graph is a reliable map of your entire architecture that you can query for definitive answers.

Instead of asking an AI agent to read a million lines of code and hope for the best, you give it access to a live, comprehensive graph of your architecture. It is built by continuously parsing the source code, dependency manifests and infrastructure definitions across all your repositories, so it is always an up-to-date model of how your system actually works.

When a PR changes an API, an agent with this tool doesn’t have to guess at the impact. It can ask a precise question: “Traversing the system graph, what is the complete set of downstream consumers for this specific ETA-Service endpoint, and do any of them reference the estimated_arrival_in_minutes field?” The answer comes back in milliseconds, and because it comes from the graph, it is deterministic.

A cascading failure at Slack

The ETA example is made up, but the problem of unknown unknowns is a well-documented growing pain for any company scaling with microservices. In their post-mortem of the February 22, 2022 outage, Slack’s engineering team described a “textbook example of complex systems failure.” It shows how a small, routine change can cause a massive, unexpected ripple effect.

Here’s a simplified version of what happened:

  1. A routine upgrade restarted the agent for Slack’s service discovery system (Consul) on part of its fleet, one server after another.

  2. Each restart on a cache server (Memcached) briefly took that server out of service discovery. The cache’s control plane (Mcrib) noticed right away and swapped in an empty spare, and it flushed each server that came back. Mcrib was doing what it was built to do, but every swap emptied part of the cache, and the cache hit rate dropped.

  3. When a Slack client started up, it asked for the members of every group DM its user was in. That answer was normally cached. On a miss, the app had to read it from a table in the database (Vitess) that was sharded by user, which meant a “scatter query” sent to every shard. With so much of the cache empty, nearly every user needed those queries.

  4. The database was flooded with these queries. As the Slack team wrote, “The database was overwhelmed as the read load increased superlinearly in relation to the percentage of cache misses.” Most of the queries timed out, so the cache couldn’t be refilled, and that feedback loop kept many users from connecting to Slack.

No developer reviewing the routine maintenance change could reasonably have been expected to trace that chain of events, because the outage came from several interconnected behaviors acting together. Once these services and their interactions are mapped, though, you can start to draw conclusions about hidden risks like these.

Diagram of the Slack outage in two layers. In the control and routing layer, a Consul agent restart event reaches the Mcrib configuration manager, which writes new configuration to the Mcrouter config. Mcrouter reads that configuration, and it both invalidates the Memcached cache and routes requests to it. In the application and data layer, the Slack web app takes a fast path through Mcrouter on a cache hit. On a cache miss it takes a slow path to the Vitess database: a high-cost scatter query that is rare in normal operation. Control & Routing Layer Application & Data Consul Agent Service Discovery Mcrib Service Configuration Manager Mcrouter Config Routing Rules Mcrouter Memcached Proxy Slack Web App Client Application Vitess Database Distributed MySQL Memcached Cache In-Memory Store Agent Restart Event Writes New Configuration Configuration Read Fast Path: Cache Hit Slow Path: Cache Miss Scatter Query, High Cost Low Frequency (Normal Ops) Cache Invalidation Route to Cache Diagram of the Slack outage in two layers. In the control and routing layer, a Consul agent restart event reaches the Mcrib configuration manager, which writes new configuration to the Mcrouter config. Mcrouter reads that configuration, and it both invalidates the Memcached cache and routes requests to it. In the application and data layer, the Slack web app takes a fast path through Mcrouter on a cache hit. On a cache miss it takes a slow path to the Vitess database: a high-cost scatter query that is rare in normal operation. Control & Routing Layer Application & Data Consul Agent Service Discovery Mcrib Service Configuration Manager Mcrouter Config Routing Rules Mcrouter Memcached Proxy Slack Web App Client Application Memcached Cache In-Memory Store Vitess Database Distributed MySQL Agent Restart Event Writes New Configuration Configuration Read Fast Path: Cache Hit Slow Path: Cache Miss Scatter Query, High Cost Low Frequency (Normal Ops) Cache Invalidation Route to Cache
How a restart in the routing layer reached the database, simplified from Slack's post-mortem.

An automated analysis engine like Nimbus would use a graph like this to find the blast radius of a change. If a PR proposes modifying the Consul Agent restart process, the analysis models the whole chain of effects from that one change:

  1. It identifies that the change to Consul will trigger a high-frequency Writes New action in Mcrib.

  2. That action updates the Mcrouter Config, which causes Mcrouter to Flush the Cache more often. The system models a significant drop in the cache hit rate.

  3. The analysis engine follows the dependencies from the Slack Web App and sees two paths: a normal Cache Hit path and a Cache Miss path.

  4. It analyzes the Cache Miss path to the Database and finds its properties: Query Type: Scatter, Cost: High. Because the model predicts a sharp drop in cache hits, it concludes that this high-cost path, normally rare, will now run at a frequency far outside its normal operating parameters.

The system then flags that the innocent-looking change to the health checker has a high probability of causing a database overload. That turns the “unknown unknown” into a known, quantifiable risk, so the team can mitigate it before it takes down production.

Pushing architectural context into PR review

Relying on developers, or even AI agents, to discover architectural context by hand during a PR review is fundamentally flawed. It’s slow and unreliable, and it lets through the “unknown unknowns” that cause the most painful outages.

Moving from a pull model, where you hope the reviewer finds the problem, to a push model, where the system tells the reviewer the impact, changes how code review works. The first step is a comment from the Nimbus bot on the PR:

⚠️ API Impact Warning: This change to ETA-Service will break a downstream consumer, the internal Warehouse-Load-Dashboard. This change is not safe to merge.

With a comment like that on the pull request, review stops being a manual, often stressful hunt for potential risks. The reviewer checks the change against architectural impacts that are already known, which is a much more straightforward job. The long-term goal is for an AI agent to use the same analysis to find these breakages and also generate the PRs that fix them, which would turn a week of cross-team coordination into a five-minute task.

Get the next essay

Follow the RSS feed to see each new essay when it goes up.