# Assess change impact

Inspect callers and graph coverage before changing a function.

Canonical page: https://ontlgy.io/docs/guides/change-impact/

Use the indexed repository and local checkout from [Your first useful query](https://ontlgy.io/docs/start/first-query/). Replace `OWNER/REPO` and `SYMBOL` with your repository and a function you are considering changing.

## Ask for an impact assessment

```text
Using ontlgy in OWNER/REPO, inspect the impact of changing SYMBOL.
Check the indexed revision against my checkout. Read the function and its
relevant callers. Separate supported relationships from inferred ones,
report graph coverage limits, and suggest verification steps. Do not edit.
```

A corresponding tool call is:

```json
{"repo":"OWNER/REPO","ref":"SYMBOL","depth":2}
```

Pass it to `impact`. If the reference is ambiguous, resolve it with `symbol` and use the returned ID or path reference.

## Read the answer critically

- Follow returned file locations into source and confirm each caller really uses `SYMBOL` the way the graph suggests.
- Inspect the reported relationship certainty and the weakest link along each path.
- Read `completeness`: traversal limits, omitted relationships and unsupported behavior matter.
- Check relevant tests. Test counts are hints about coverage, not proof that every behavior is tested.

Increase `depth` up to 4 if you need a wider view. Larger depth does not reveal runtime relationships the index cannot extract.

## Produce a change plan

The useful output is a list of callers to inspect, behavior to preserve and checks to run. Include the inputs and edge cases the function handles today, callers that pass unusual values, and the tests that exercise them.

Do not conclude “safe to change” just because the graph shows no callers. Dynamic dispatch, configuration wiring and runtime service interactions may sit outside its coverage.
