A shared library can pass every test it owns and still be unsafe to replace. Its tests establish what the library does under the producer team’s assumptions; they do not establish which products call it, which versions they run, or which undocumented behaviors they depend on. Before approving a replacement, audit the consumers. The result should be a migration decision with known risks—not a repository count presented as a plan.
Start with the decision, not the replacement
Suppose a team wants to remove a method while replacing an internal library. The new package passes its tests and offers the intended functionality. That is useful evidence, but a product team may release independently, run an older version, call the method through a wrapper, or depend on its error handling rather than its return type. A green producer build answers none of those questions.
Ask why replacement is necessary before measuring its blast radius. Is the existing library blocking a product requirement? Is its API too costly to maintain? Could a targeted change solve the problem without moving every consumer? Identify the products and release windows that matter, and decide what evidence would make retaining or improving the current library the better option. Otherwise the audit becomes an exercise in justifying a decision already made.
The useful distinction is between a changed contract and observed reach. In its October 2026 account of Quasar, Netflix describes comparing library API definitions and querying indexed references across consumer repositories, then reporting affected repositories, dependency versions and sample source locations. Netflix also distinguishes an API compatibility check from a dependency graph: the first finds a contract change, while the second shows declared relationships. Neither, on its own, tells you which consumers call the changed symbol. Quasar is an internal tool, not a product to install. The transferable practice is connecting a proposed change to inspectable consumer evidence.
Map candidates, callers and behavioral contracts separately
Build a consumer register before estimating the migration. For each candidate repository, record its owner, manifest or build-file evidence, the deployed or resolved library version where known, direct call sites, wrappers or implementation relationships, the critical workflow involved, and confidence gaps. Keep a declared dependency separate from a verified call: a manifest tells you where to look, not whether the code reaches the API you intend to change.
Start with package and build metadata to find candidates and versions. GitHub’s dependency graph can expose dependencies, versions and, in supported ecosystems, transitive paths. But its Dependents view currently determines dependents only for public repositories. Do not treat it as a complete inventory of private consumers of an internal package. Reconcile its leads with the repositories your organization actually owns and can inspect.
Next, search across those repositories for imports, package names, configuration keys and generated entry points. Search is broad and cheap, but a matching name is not necessarily the symbol you are changing. Sourcegraph distinguishes search-based navigation from precise navigation: word-boundary matches can include unrelated symbols and miss indirect or dynamic uses. Use search to discover likely paths, then inspect the code rather than counting every hit as a caller.
Where indexes are available and trustworthy, use semantic references to identify direct uses of a particular symbol. Sourcegraph’s precise code navigation connects definitions and references by symbol identity rather than name alone. Cross-repository results still depend on appropriate indexes, compatible package identities and dependency versions, and access to the repositories. An exact reference is strong evidence that code directly uses an API. It is not evidence that a replacement preserves the result customers see. Index formats such as SCIP can represent occurrences and relationships, including references and implementations, but an audit finds only what its indexers actually emit and cover.
Follow each consequential reference into its workflow. Does a wrapper normalize errors before product code sees them? Does a generated client expose a changed schema to another team? Does configuration select an implementation at runtime? Ask the owning team which outputs, failures and operational assumptions matter. Timing and fallback behavior can be part of the effective contract even when they never appear in a method signature. The same problem arises in data migrations: consumer guarantees extend beyond the visible interface.
Do not promise to preserve every quirk you discover. Product owners should decide which behaviors are required contracts, which can change deliberately, and who must accept the consequences. That decision belongs beside the call-site evidence in the register; otherwise an apparently mechanical replacement hides product decisions inside implementation work.
Make the blind spots visible
A consumer map is only as credible as its coverage statement. Record which repositories were accessible, which revisions were inspected, which dependency versions were represented, when indexes were built, and whether results were truncated. Name unsupported languages and paths that depend on reflection, configuration or dynamic loading. Track repositories you could not inspect as open work, not as unaffected consumers.

Netflix explicitly warns that no observed references is not proof of non-use. Reflection, configuration, dynamic loading, stale branches and incomplete indexing can hide uses. Its proposed supporting evidence includes index freshness, whether requested commits were indexed and whether results were truncated. A useful finding therefore reads: “No references found in these indexed revisions under these conditions; these paths remain unverified.” It does not read: “Safe to delete.”
Tool support also varies by task. As described in October 2026, Quasar supports cross-repository usage queries for JVM, Go, Python, JavaScript/TypeScript and Rust. Its API-change comparison covers JVM and Protobuf, including tracing Protobuf changes through generated Java. That does not mean it assesses breaking API changes for every language it indexes. If your estate spans languages or generated artifacts, specify which question each tool answered and what still requires manual inspection or a consumer-level test.
This is where an assessment earns its keep. A list of matches is easy to produce; a finding that distinguishes verified callers, probable consumers and unknown runtime paths is harder. If you need an independent diagnosis and a prioritized migration roadmap, a scoped code audit should deliver that evidence and its limits, not a claim that every consumer has been certified.
Migrate by consumer cohort, not by call-site count
Estimate work by grouping consumers according to library version, workflow criticality, owning team and ability to release independently. One repository with a wrapper on a critical path can demand more coordination and testing than several repositories with straightforward calls. Include compatibility work, consumer acceptance checks, team handoffs, release sequencing and retirement of the old API. Multiplying one edit estimate by the number of repositories misses most of the work.
Choose a representative pilot that exercises a consequential behavior, not merely the easiest consumer. Capture its current outputs and failure handling. Agree with its owner which behavior must remain stable and which may change. Then run its existing tests and consumer-level acceptance checks against the replacement. Library unit tests cannot substitute for this check: they do not exercise the product’s assumptions at the integration boundary.

Choose the rollout mechanism to fit what the audit found. A compatible adapter can keep consumers moving while changing the supplier behind a stable interface, but the adapter itself becomes code to maintain and test. Parallel Change uses expand, migrate and contract phases: support both forms, move clients, then remove the old form. That overlap reduces the need for a fleet-wide switch, but leaving the contract phase unfinished creates a more confusing interface. Branch by Abstraction moves clients behind an abstraction so old and new suppliers can coexist during migration. It is not a universal escape hatch; some suppliers cannot be swapped for only a subset of clients.
Where coexistence is impossible, plan a bounded coordinated switch with explicit release owners and a tested rollback. Where the library is small, its few callers are well understood, and teams can coordinate releases, an adapter or prolonged dual implementation may cost more than a direct change. The audit should make that simpler option defensible rather than insisting on ceremony. For a broader rollout, keep the pilot’s independently reviewed acceptance behavior and rollback attached to each expansion decision; the same discipline matters in legacy modernization.
Put an approval checklist in front of the migration
Before funding or scheduling replacement, require an assessment that lets you answer these questions:
Why change? State the product or engineering problem, the affected release windows, and the evidence that would favor retaining or improving the existing library.
Who might be affected? Show repository owners, library versions, manifest evidence, direct symbol references, wrappers and critical workflows. Distinguish candidates from confirmed callers.
What remains unseen? List inaccessible repositories, unindexed revisions, stale or truncated results, unsupported language paths and runtime-only behavior. Assign owners to investigate consequential gaps.
What must the pilot prove? Select a consequential consumer, record current outputs and failure handling, agree on required behavior, and define its acceptance checks.
How will the rollout stop or reverse? Name release owners, monitoring, stop conditions and a tested rollback before expanding beyond the pilot.
When is the old library removable? Specify how remaining consumers will be checked, who approves behavior changes and what evidence permits contraction.
Approve the next migration slice when those answers support it. If the map has material blind spots or the pilot cannot establish acceptable behavior, approve investigation instead. A bounded decision is more valuable than a confident fleet-wide switch built on the library’s own tests.