> ## Content Index
> Fetch the complete content index at: https://notes.jasonjhonson.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Relationship Agent: From correspondence to relationship understanding
- URL: https://notes.jasonjhonson.com/relationship-agent-from-correspondence-to-relationship-understanding/
- Published: 2026-11-09T15:00:00.000Z
- Updated: 2026-11-09T15:00:07.000Z
- Description: The first real relationship brief worked, sort of. It understood the emails I gave it, but those emails were only fragments of a much longer relationship.
- Author: Jason Jhonson
- Tags: Build notes, Relationship Agent

*Build Note 2 | November 2–8, 2026*

*This is part of my* [*Relationship Agent Build Notes*](https://notes.jasonjhonson.com/tag/relationship-agent/) *series.* [*Start with Entry 0*](https://notes.jasonjhonson.com/relationship-agent-what-im-building-and-why/)*.*

The first week left us with a way to find people in Gmail, even if the results still weren't great. But even perfect discovery would have produced little more than names and message counts. I wanted to know why a relationship mattered, what history we had together and whether there was a reason to reconnect. You can't learn much of that from an email address or how often it appears in your inbox.

The next question was whether we could turn actual correspondence into a useful picture of a relationship. That sounds like something a language model should be pretty good at. The harder questions were what it should be allowed to see, how we'd check its claims and what to do when the evidence was incomplete.

| Week 2 activity         | Count    |
| ----------------------- | -------- |
| Pull requests merged    | 6        |
| Issues opened           | 4        |
| Issues closed           | 4        |
| Hands-on build sessions | About 10 |

**Milestone:** First real relationship brief with explicit consent, followed by a tested way to recommend recent and historical Gmail evidence.

## Making relationship analysis testable

We started with fictional data, deliberately. Five invented relationships let us test things that a contact profile can't easily capture: significance, changing roles, commitments and gaps in communication. I wanted to establish what a useful answer should contain before asking the system to examine my actual Gmail messages.

The goal wasn't a polished paragraph that sounded as though it knew someone. We defined a structure for claims, supporting evidence, uncertainty and corrections. A claim had to point to correspondence we'd actually supplied to the model, not an invented citation.

We then built a benchmark with six fictional cases and expected outcomes. The model ran through the OpenAI API, using Structured Outputs and checks on evidence IDs. All six cases passed their defined hard checks, without invalid citations. That was encouraging, but it showed only that the system could follow the rules we'd written. It didn't prove those rules were right, much less that the product understood a relationship. I'm learning to separate code that runs, software that follows its specification and a product that's genuinely useful. The first two are easier to measure.

Before trying real correspondence, we added some guardrails. I had to confirm which email addresses belonged to the same person rather than letting the application silently merge similar names. It showed candidate conversations using metadata, then asked for separate permission to read the exact threads I selected (up to three). That approval used a short-lived encrypted token, with limits on the text retrieved, no attachments and no permanent store of email bodies. We also disabled provider storage for the model request.

One architectural choice mattered beyond this Gmail experiment: we created a source-independent representation of correspondence. If the product eventually looks at LinkedIn, messages and meeting notes, I don't want the way it understands a conversation tied to Gmail's particular data structures.

## The first real relationship

By Saturday, we could try the process on someone I knew well. I selected two recent conversations, and the system produced a brief from five messages. It was appropriately cautious but thin. Most of those emails were just arranging a time to speak, and there wasn't much for the model to work with.

We tried again with three older conversations that had more substance. This time the brief picked up shared history and the nature of the connection, but it also called the relationship dormant because those emails were years old. That wasn't an unreasonable conclusion from the sample. It simply didn't know about the recent activity in the earlier run.

I knew this person as a former colleague at two companies, a friend and a mentor. The application found pieces of that story in different samples but couldn't assemble them into one picture. Asking the model to be more confident wouldn't have helped. We needed better evidence.

That shifted the engineering problem. The product needs to find a small, representative set of conversations across time, get permission to read them and combine historical depth with current activity. A relationship can have several roles, and the most recent email is not necessarily the most useful one.

On Sunday, we built the first piece. Instead of asking me to hunt through years of correspondence, the application now samples Gmail metadata from different periods and recommends a small set to review. It looks for both recent activity and older context while pushing calendar responses and automated messages out of the recommended list. I can inspect or change those suggestions before any message bodies are read. Metadata can't prove which conversations matter, but it can help narrow the search.

The automated checks looked good: 169 tests passed, along with lint, type checking and a production build. Then I tried it against my actual Gmail account, and it missed conversations I knew had happened this month. We traced the problem to fractional seconds in a Gmail time-window boundary. After fixing that and adding tests, the live run recommended a recent exchange and an older historical candidate while leaving calendar noise out. That was a metadata-only test. We still hadn't asked the model to combine those conversations into a relationship brief.

There's also an unresolved question about our development workflow. Copilot handled the larger implementation, ChatGPT reviewed the code and helped fix specific problems, and I tested the results. It worked, but waiting on Copilot slowed things down a lot. I'm not convinced yet that it produces better code often enough to justify the wait.

We ended the week with a real, evidence-backed relationship brief and a better way to choose the correspondence that goes into one. We still haven't combined recent and historical evidence into a lasting picture of a relationship. That's the next experiment, and it gets closer to the problem I started with: understanding the people who matter without giving myself another database to maintain.