> ## Documentation Index
> Fetch the complete documentation index at: https://docs.introlink.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Relationship strength

> How IntroLink scores 'how well do you actually know this person' — four components, four tiers, and a reason for every number.

> [!NOTE]
>
> Source: `app/src/lib/relationship-strength.ts`. Pure and dependency-free, so it
> runs server-side in `getPeople()` and is safe to import into client components.

The directory is a dump: 13,000 LinkedIn connections, Google contacts and
WhatsApp chats in one list, where someone you've met fifteen times looks exactly
like someone whose request you accepted in 2014. Strength scores every person
0–100 from the evidence held and buckets them into four tiers, so the list can
be sorted and filtered by *who you really know*.

> [!NOTE]
>
> Strength is **stamped at read time, never stored**. It depends on the current
> date (recency decays), so a stored score would be wrong the next morning. This
> is also why `strength` isn't filtered on directly — the query filters on the
> persisted `strength_tier` and orders on `strength_rank`.

## The four components

Weights sum to 1. Meetings and recency carry just over half the score between
them: a calendar event you both attended is the only signal here that proves a
real *interaction* happened, as opposed to proving a *record* exists.

| Component | Weight | Reads |
| - | - | - |
| `meetings` | 0.34 | how often you've been in a meeting together |
| `recency` | 0.22 | how recently |
| `channels` | 0.24 | how private the channels you share are |
| `proximity` | 0.20 | how directly they hang off you rather than off someone else |

### meetings

Log-scaled off `meetingCount`, saturating at 12 — so 1→3 meetings moves the
needle far more than 10→12 does. Past a dozen, more meetings say nothing new.

### recency

Exponential decay off `lastMetAt`, with a **240-day half-life**: a year-old last
meeting is worth roughly 35% of a fresh one.

No meeting history contributes **0 rather than a penalty**. Most of the directory
has no calendar overlap at all, and absence of evidence isn't evidence.

### channels

Additive across the imports a person arrived through, then clamped to 1:

| Source | Weight | Because |
| - | - | - |
| `whatsapp` | 0.55 | you exchanged personal numbers |
| `google` | 0.30 | you (or your calendar) saved them |
| `linkedin` | 0.15 | you both clicked accept once |

Someone you hold on all three reads as a much stronger tie than someone you only
have a LinkedIn edge to. This is the component that makes adding a second data
source worth doing.

### proximity

How directly the person hangs off you, versus reaching them only through someone
else on the roster.

## The four tiers

| Tier | Bars | Meaning |
| - | - | - |
| `confirmed` | 3 + check | **Asserted, not scored** — outranks every computed score |
| `high` | 3 | score ≥ 55 |
| `medium` | 2 | score ≥ 25 |
| `low` | 1 | below 25 |

`confirmed` is the important asymmetry. It isn't a cutoff — it's a claim someone
made, and it beats any number the scorer could produce. That's why sorting by
strength orders on `strength_rank` rather than `strength_score`.

## Reasons

Every component contributes a plain-English string, strongest first, so a number
is never unexplained:

```json theme={null}
{
  "tier": "high",
  "score": 71,
  "parts": { "meetings": 0.64, "recency": 0.81, "channels": 0.85, "proximity": 1 },
  "reasons": ["5 meetings together", "Last met in the last month"]
}
```

Recency phrases are deliberately coarse — "in the last month", not "37 days ago".
That's precision the data hasn't earned.

## Filtering by strength

Go by the tier, not the score. Every path the Public API returns carries
`strength` (`confirmed`, `high`, `medium` or `low`) and `strength_label`, and
IntroLink's Strength filter works on the same tiers. See
[Paths to a person](https://docs.introlink.ai/public-api/people.md#paths-to-a-person).

## Where it's going

The shape follows `scoring_engine/connection_scoring.py`, the Gmail-based
engine: weighted components in 0–1, a 0–100 blend, and a reason per component.
The components differ because the signals differ — the webapp has calendar
meetings and channel breadth, not per-message Gmail metadata. When message-level
signals land they become a fifth component here, and nothing else has to change.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.