3.5d Person Relationships & Related Contacts — Assistants, Relatives, Friends, Agents
A landlord rarely acts alone. The person who emails you about 12 Oak Street is often their assistant, their spouse, their son, or their agent — not the owner. RAIA (Real estate Artificial Intelligence Agent) stores these links explicitly in persons_relationships so the system knows who is allowed to talk to us and access a property on behalf of whom. If a caller is not a known related contact, staff cannot authorise anything for them.
A landlord rarely acts alone. The person who emails you about 12 Oak Street is often their assistant, their spouse, their son, or their agent — not the owner. RAIA (Real estate Artificial Intelligence Agent) stores these links explicitly in persons_relationships so the system knows who is allowed to talk to us and access a property on behalf of whom. If a caller is not a known related contact, staff cannot authorise anything for them.
How RAIA (Real estate Artificial Intelligence Agent) models the people around a person — assistants, relatives, friends, and agents — via the persons_relationships table (V314), the current-vs-past temporal model, the landlord relationships API, and the RHS Related contacts UI. Owner status is never a relationship row: it comes from asset_ownership only.
Model Why Related Contacts Exist
Two operational facts drive this table:
Day-to-day communication about a tenancy or property usually arrives from someone other than the owner — a PA, a spouse, an adult child, a managing agent. Staff need to know instantly whether that caller is a recognised contact of the landlord, and in what capacity.
Authorising access (keys, viewings, contractor entry) on a landlord's instruction only holds if the person giving the instruction is linked to that landlord. Unknown = cannot authorise. If no current relationship row exists, the answer is no until the landlord confirms directly.
Related contacts are therefore not a CRM nicety — they are the authorisation graph for every "my assistant will call you" conversation the business has.
Model Three Stores, One Boundary
Person-adjacent data is split across exactly three stores. The boundary is strict — nothing overlaps.
| Store | Holds | Does NOT hold |
|---|---|---|
persons |
The person-of-record: identity, contact channels, about (CV SSOT). One row per human. |
Any link to another person or asset; any role label. |
asset_ownership |
Who owns which asset, with end_date for past-vs-current ownership. This is the only source of the Owner pill. |
Assistants, relatives, friends, agents — ownership is not a relationship. |
persons_relationships V314 |
Person-to-person links: assistant_of, family_of, friend_of, agent_of, with is_current + ended_at for temporal state. |
Ownership. A landlord's spouse who co-owns gets an asset_ownership row and optionally a family_of row — never one row doing both jobs. |
Model Relationship Types & Role Pills
V314 expands the type CHECK to four values. Each maps to a display pill in the UI:
| relationship_type | UI pill | Meaning |
|---|---|---|
assistant_of |
Assistant | PA / EA / secretary acting on the person's behalf. |
family_of |
Relative | Spouse, partner, adult child, sibling — family link. |
friend_of |
Friend | Personal friend the person has asked us to recognise. |
agent_of |
Agent | Professional agent / representative (e.g. solicitor, accountant, managing agent). |
| — none — | Owner | Derived from asset_ownership only. There is no owner_of relationship type and never will be. |
The Owner pill renders only when a current asset_ownership row ties the person to the asset in view. Do not synthesise ownership from a family_of row ("the owner's wife") — co-ownership must be recorded in asset_ownership.
Model No persons.tense — Three Layers
There is deliberately no tense column on persons. "Current vs past" is not one concept — it is three, each answered by a different layer:
| Layer | Question answered | Source of truth |
|---|---|---|
| Derived IA segments | Is this person a current tenant / landlord / contractor in the information architecture? | Derived from live assets + services — never stored on the person row. |
| Ownership tense | Do they own this asset now, or did they previously? | asset_ownership.end_date (NULL = current). |
| Relationship tense | Is this assistant / relative / friend / agent link live today? | persons_relationships.is_current + ended_at (V314). |
Design rationale and the rejected alternatives are in the architecture briefs:
03_technology/architecture/briefs/architect-person-tense-vs-relationship-asset-scope-2026-08-02.md and
03_technology/architecture/briefs/redteam-person-tense-scope-vs-derived-ia-2026-08-02.md.
Build API — GET /api/landlords/[person_id]/relationships
Route: 03_technology/11_frontend/portal/src/app/api/landlords/[person_id]/relationships/route.ts
- Default: returns current rows only (
is_current = true), grouped asassistants/familyarrays. ?include_past=1: additionally returnspast_assistants/past_familyarrays built fromis_current = falserows.- Past rows are never mixed into the current arrays — the split happens server-side.
// Current only (default)
GET /api/landlords/ba76d1c9-.../relationships
→ { assistants: [...], family: [...] } // is_current = true
// Current + past
GET /api/landlords/ba76d1c9-.../relationships?include_past=1
→ { assistants: [...], family: [...],
past_assistants: [...], past_family: [...] } // is_current = false
Build UI — RHS Related Contacts
The landlord profile right-hand side renders a Related contacts card fed by the default (current-only) API response:
- Shows current contacts only — past PAs and estranged relatives do not appear.
- Each entry carries its role pill (Assistant / Relative / Friend / Agent) from the type mapping above.
- Past contacts are reachable only via an explicit "include past" affordance that calls the API with
include_past=1.
Before V314, past PAs rendered as live Assistants in production (the Cecilia Wang case below). The RHS is an authorisation surface — showing a past assistant as current invites staff to accept instructions from someone no longer authorised.
Build Non-Owner Profile — Product Lock
A related contact who is not an owner gets a deliberately reduced profile. The product lock for non-owner profiles is:
about CV/SSOT summary.Not KYC. Non-owner related contacts do not go through the owner KYC surface — they are not parties to the tenancy or the ownership record. Do not render KYC widgets, document checklists, or compliance gates on a non-owner profile.
Build AppSheet Backfill
Initial population came from the legacy AppSheet Contact.Type field:
| AppSheet source | Rows | Landed as |
|---|---|---|
| Contact.Type = Assistant | 31 | assistant_of rows in persons_relationships |
| Contact.Type = Family | 55 | family_of rows in persons_relationships |
Kendy Abbasi is Cecilia Wang's current PA → assistant_of, is_current = true. Sally Yim and Hiromi Siu are previous PAs → is_current = false, ended_at = NULL (real end dates unknown — do not fabricate). Sally and Hiromi must not render in Cecilia's live Assistant area; they appear only under ?include_past=1.
Current-vs-past for backfilled rows is a day-1 HITL list signed off by Eugin — never auto-infer tense from sticky-note text. See redteam-person-relationship-roles-current-past-2026-08-02.md.
Build V314 Migration
Migration lives at 03_technology/04_datastores/database/ddl/live-supabase/V314/:
01_expand_type_and_temporal.sql— expands the type CHECK to includefriend_ofandagent_of; addsis_current+ended_at; replaces the table UNIQUE with a partial unique index on current rows; recreates the V111 view.
Build Paperclip Note — Separate Runtime
Paperclip (the operational product agents use) runs in a separate Docker deployment from the Hermes development environment. Wiring Paperclip agents to this data requires a SOUL.md / AGENTS.md update on the Paperclip side plus deploy-paperclip-agents.sh — a Hermes-side commit does nothing on its own.
The Supabase data is already shared — Paperclip reads the same persons_relationships rows this page documents. What is not shared is the agent runtime: Hermes agents (PA / Programmer / Scribe) build the platform; Paperclip agents operate it.
References Internal Sources
This page is generated from the following internal specifications and decision records:
| Source | Type | Relevance |
|---|---|---|
| ADR-080 — Relationship semantics | Architecture Decision Record | Canonical semantics for person-to-person relationships; the authority V314 implements. |
V314 — ddl/live-supabase/V314/01_expand_type_and_temporal.sql |
Database migration | Expands the relationship type CHECK and adds is_current / ended_at temporal columns. |
03_technology/architecture/briefs/architect-person-tense-vs-relationship-asset-scope-2026-08-02.md |
Architect brief | Three-layer tense model (derived IA / ownership.end_date / V314 is_current); why persons.tense was rejected. |
03_technology/architecture/briefs/redteam-person-relationship-roles-current-past-2026-08-02.md |
RedTeam brief | Cecilia Wang case, HITL backfill rules, current-only RHS gate. |
03_technology/architecture/briefs/redteam-person-tense-scope-vs-derived-ia-2026-08-02.md |
RedTeam brief | Derived IA vs stored tense — the recommended zero-new-DDL-on-persons path. |
03_technology/architecture/briefs/ux-landlord-rhs-contacts-list-role-pills-2026-08-02.md |
UX brief | RHS Related contacts card and role pill rendering rules. |