<!-- Finding types | Merget Docs · https://merget.ai/docs/finding-types -->

# Finding types

Every kind of finding Merget reports, what it means and how to fix it.

Merget reports structural problems, overlapping changes and textual conflicts. These examples show what each kind means and what to do. A finding's current outcome matters as much as its kind: it may already be cleared or resolved.

## Summary

| Kind | What it points to |
| --- | --- |
| [Broken reference](#broken-reference) | A call no longer resolves after changes combine. |
| [Deleted dependency](#deleted-dependency) | A removed function still has callers in the combined code. |
| [Duplicate definition](#duplicate-definition) | The combined code defines one name more than once in the same scope. |
| [Signature drift](#signature-drift) | A call's argument count no longer matches the changed function. |
| [Data flow](#data-flow) | A changed value reaches code modified by another change. |
| [Confluence](#confluence) | Separate changes feed the same result. |
| [Override](#override) | One change's assignment can replace another's value. |
| [Textual conflict](#textual-conflict) | Git cannot combine the changed file. |

Structural findings can block when they are Precise. With the default Layer 2 blocking setting, an overlapping change blocks, as an Interaction, when Merget's evidence for it is precise from end to end: every step from one change to the other is precise, both changes are located exactly, and no step rests on a call Merget could confirm only from the changed files. Every other overlapping change remains non-blocking. An unresolved textual conflict can limit other findings until the conflict is resolved. See [Findings](https://merget.ai/docs/findings).

Illustration: a finding’s kind explains the issue; its classification and outcome explain whether action is needed.

What to look for

- Structural findings include broken references, deleted dependencies, duplicate definitions and signature drift. Confirmed breaks can fail the Merget check in every mode.
- Overlapping changes include data flow, confluence and override. Most do not block; a finding classified as Interaction can block.
- Unresolved textual conflicts block preparation in Queue and Autonomous modes. A finding that depends on a conflict is not independent evidence of a break. Blocking findings also fail the check in Advisory mode; GitHub can require that check.

## Broken reference

What it means: a call works on the separate branches but no longer resolves in the combined result.

Example: one pull request renames `formatAmount` to `formatCurrency`; another adds a checkout call to `formatAmount`. Git merges them cleanly, but the new call uses the old name.

What to do: update the call to the intended function, or restore the old interface if it must remain supported. Push the fix and read the new run.

## Deleted dependency

What it means: the combined code removes a function while leaving calls to it. The finding names the removed function and the file it lived in.

Example: one pull request removes `retryDelay` and inlines its behavior but misses one of its callers, and another adds a test calling `retryDelay`. The merged code now calls a missing helper. When every remaining call is one the other change added, as in the broken-reference example above, Merget lists each call once, as a broken reference.

What to do: agree on the intended interface, then restore the dependency or update its remaining callers.

## Duplicate definition

What it means: the combined code defines one name more than once in the same scope. The definitions can come from separate changes, or a pull request can add a second one itself.

Example: two pull requests each add `sumLineItems` to a module. Depending on the language, the duplicate causes a build failure or silently replaces one implementation.

Definitions in scopes the language keeps apart are not duplicates. In JavaScript and TypeScript, a `const` or `let` helper, or a function declared inside a block, belongs to that block, so the same helper name in two blocks of one function or module is not reported. The same holds for a Python `def` in each of two `if` branches, a getter beside its setter, a Kotlin extension function on two receiver types, and a Scala class beside its companion object. What still counts together is what the language puts in one scope: two declarations at a module's top level or in one block, `var` twice in one function, an exported function declared in two bodies of one TypeScript `namespace`, and a method twice in one class.

A duplicate definition is Precise, and can block, only when the language's own toolchain would reject the combined code: two `fn` in one Rust module, two `const` in one TypeScript or JavaScript scope, a method twice in one Java, Kotlin or C# class, a package-level `func` twice in one Go package, two external C definitions of one name with one signature. Precise also needs one build that compiles both (Merget proves it for a Linux x86-64 build, and with `cargo test` for Rust), one scope, and one signature as the compiler compares it (Java erasure, Kotlin and Scala JVM signatures); otherwise the warning names what is missing, for example `advisory: only a build with doc compiles both`. A shape the language accepts is reported as a warning instead: a Python redefinition, a JavaScript `function` or `var` declared twice, a repeated object-literal key. Its message ends with `advisory:` and the reason, and it never blocks. A duplicate in a file Merget's parser does not read the way the language's compiler does, such as a file with a syntax error or with a character the compiler reads differently (a lone carriage return, or a Unicode escape in Java), is reported as a warning too: its message ends with `advisory: a file holding one of them does not parse as its toolchain reads it`. A duplicate beside a syntax error can still be Precise in Rust, Java and Go: when every syntax error of each file holding one of the definitions, in the merged code, in both branches and in their base, stands inside a function, method, constructor, closure, lambda or initializer body that declares no type or function of its own, holds no brace, quote or declaration keyword, and ends where no string, character or comment begins, Merget's parser has recovered inside that body and moved no definition.

What to do: keep one definition, combine the intended behavior, or rename one and update its callers. If the finding is wrong, [dismiss it](https://merget.ai/docs/findings#dismiss) instead of renaming correct code; a dismissal stays in place when Merget's grading of the finding changes.

## Signature drift

What it means: a function's accepted number of arguments changes while another change introduces or retains an incompatible call.

Example: one pull request changes `retryPolicy(maxAttempts)` to `retryPolicy(maxAttempts, backoff)`. Another adds `retryPolicy(3)`.

What to do: update the call, or make the new parameter optional if the old form should remain valid.

This check concerns argument counts. It does not establish that every parameter type or variable-argument use is compatible.

## Data flow

What it means: a value changed by one pull request reaches code changed by another.

Example: one change lowers `maxAttempts`, while another changes the logic that decides when retries stop. The new logic now receives a value its author did not test.

What to do: read Change context in the finding detail, check whether the combined behavior is intended, and test it where necessary. A non-blocking finding does not require a code change to merge; a blocking Interaction does.

## Confluence

What it means: independent changes contribute to the same calculation or result.

Example: one pull request changes discounts and another changes tax rounding. Both alter the checkout total.

What to do: review the combined result and add a test for the combination if it matters. It blocks, as an Interaction, when Merget's evidence for it is precise from end to end.

## Override

What it means: assignments introduced by separate changes can replace one another's values along a shared path.

Example: one pull request sets a timeout early in a function and another sets it later. The later assignment can cancel the earlier change's effect.

What to do: make the intended precedence explicit and test the overlapping case. It blocks, as an Interaction, when Merget's evidence for it is precise from end to end.

## Textual conflict

What it means: Git could not combine the file, for example because both sides changed the same lines or one side deleted a file the other changed.

Example: two pull requests edit the same retry policy lines. The conflict detail names whether the other side is the current target branch or a pull request ahead in the queue.

Where to inspect it: select the conflict in the run's File report or Findings explorer. Read What was detected, Merget outcome and Conflict evidence. The evidence compares both sides and shows a resolution when recorded.

| Outcome | Meaning |
| --- | --- |
| Detected | A conflict was recorded without a final resolution. |
| Resolving | Merget is currently trying to resolve it. |
| Resolved and published | Its fix reached the pull request branch. |
| Resolved in queue candidate | Its fix is held with the combined queued changes, not on this branch. |
| Unresolved | This run did not resolve it. |

In Queue and Autonomous modes, an unresolved textual conflict prevents the pull request from being prepared for landing. Needs you explains whether to resolve it now or wait for an earlier change to merge. In Advisory mode, Merget reports the conflict without changing code.

See [Conflict resolution](https://merget.ai/docs/conflict-resolution) and [Unblock a pull request](https://merget.ai/docs/blocked-pull-requests#textual-conflicts).
