# Trace the impact of a change

AI agent getting started? Read [Agents: start here](https://docs.openeng.io/agents/start-here.md) first.

Review tracked links, check their bounds and preview link impact before merging a branch.

Source: https://docs.openeng.io/guides/link-status/

A tracked relationship records whether its upstream information has been reviewed. Use it to find evidence that needs another look after a requirement or specification changes. A bound separately compares a measured value with a numeric limit.

## Prepare a tracked relationship

The relationship type needs a `review` declaration identifying its upstream endpoint. A type author adds it through [a type change set](https://docs.openeng.io/configure/types.md), choosing whether new links start cleared or unreviewed. Create related objects and a relationship using that published definition before following this guide. The turbine demo does not enable tracking.

## Review tracked links

For a trial, clear the link, change a significant upstream property on a working branch, and reload its status. It should need review again. Read the change before clearing it.

1. Open the object details panel and scroll below **Connections** to the **Links** section. It lists tracked links for that object, with upstream and downstream identifiers, **Review**, and **Bounds**.
2. Read the review state:
   - **Unreviewed** means the link has no recorded review of its upstream content.
   - **Cleared** means the link's recorded review still matches the current upstream version. A person, an agent or an app can clear a link, and a new link can start cleared.
   - **Suspect** means the upstream content no longer matches the version last reviewed. Review the upstream change before clearing it.
   - **Not visible** means the upstream cannot be read for review. **Too many links** means the upstream chain could not be checked within its limit.
3. A new link may start unreviewed. Where the link type records new links as reviewed, the creator's review is recorded when the upstream content can be read.
4. For a **Suspect** or **Unreviewed** link, choose **Clear** (mark the relationship as reviewed) after reviewing the upstream content. In the **Reason for this change** field, write a commit-message reason (see [Propose, compare and merge](https://docs.openeng.io/guides/change-control.md#develop-the-change)), then choose **Clear**. The review is recorded against the version the details panel read. A successful result shows who cleared it and when.
5. If clearing is refused because the upstream changed, reload **Links**, read the new status, and review that version before clearing again. If the result is uncertain, choose **Reload links** to check the outcome before trying again.

## Check numeric bounds

1. Check **Bounds** as well. **In bounds** means the comparison passes; **Out of bounds** means it fails. **No value**, **Unit mismatch**, **Not visible**, and **Too many links** explain why a comparison could not be completed. **No bounds** means no applicable per-link bound was found.
2. Read the bound list under each link. It shows the property and, for an array, its index; the measured value, comparison, limit and any tolerance use the limit's unit. Numeric values without a declared unit use the unit `1`. Aggregate bounds show whether they cover **All links** or **Visible links**.

The **Links** section displays numeric limit-check results but has no control to edit them.

## Check a branch before merging

Use `openeng branches impact <ref> --base <base> --project <id>` to preview link impact against the branch's base; `<ref>` is the branch name. For example:

```text
openeng branches impact proj_abc/work --base main --project proj_abc
```

The result includes both heads, review changes, bounds changes with units, downstream reach and hidden counts. In the workspace, open the branch comparison to see the **Change impact** panel. It shows the same review and bounds changes against the branch's base, plus downstream reach in up to three levels. It lists visible objects and reports hidden objects by depth.

Impact reads refuse above 500 changed rows or 200 changed objects; the downstream walk shows up to three levels. A link review chain is limited to 100 objects, and aggregate bounds over more than 100 contributors show **Too many links**. If the branch or base moved while impact was read, reload the review. If the read exceeds its limit, no partial impact is shown. `--json` returns the complete answer.

## Read status or clear from the CLI

`openeng links status <object> --project <id> --ref <ref>` (`--ref` takes a branch name) prints the branch head, tracked links, review and bounds states, clearing attribution and upstream versions. Bounds include units. For example:

```text
openeng links status obj_abc --project proj_abc --ref main
```

Use the link identifiers and upstream versions from that output with `openeng links clear`. Supply one `--version` per link, in the same order as the link arguments, and `--reason` for the reason, written like a commit message as [Propose, compare and merge](https://docs.openeng.io/guides/change-control.md#develop-the-change) teaches; the platform writes it first in the commit message. A clearing accepts 1 to 100 links atomically:

```text
openeng links clear edg_abc --version <upstream-version> --project proj_abc --ref main --reason "Reviewed the upstream change"
```

1. Check the successful result for the clearing commit, or confirmation that no change was needed, and a correlation identifier.
2. If the upstream changed, read its status again and review it before clearing.

See [CLI commands](https://docs.openeng.io/reference/cli.md) and [Refusals](https://docs.openeng.io/reference/refusals.md) for command options and refusal details.
