---
title: Affinity
order: 5
description: "An insight lens: projects that change together (temporal coupling). A pair that co-changes without either declaring a dependency on the other is a candidate architectural smell."
tags: [glossary, insight-and-knowledge]
---

# Affinity

An insight lens: projects that change together (temporal coupling). A pair that
co-changes without either declaring a dependency on the other is a candidate
architectural smell.

## Elsewhere

Code-forensics tools call this change coupling or temporal coupling. magus reads it from the
same history and checks it against the dependencies projects declare.

## Example

```buzz
magus\log.info(magus\insightMarkdown());
```

## Used in

<!-- BEGIN GLOSSARY USAGE (generated by glossary-usage-generate from the knowledge graph; edit the generator, not this list) -->

In the docs:

- [AffinityOutput](../reference/api/insight/v1alpha1/insight.md#affinityoutput)

<!-- END GLOSSARY USAGE -->

## See also

- [Insight](../concepts/knowledge/insight.md)
- [Insight](insight.md)
