Repository navigation
Description
Summary
The current identity ingestion pipeline conflates the fundamental nature of the sender (Human vs Automated Bot/Feed) with its organizational context and relationship status. This leads to severe breakdowns across both the data model and the user interface:
-
Broken
Strangersclassification: Automated notification daemons and commercial banks end up classified as "strangers from public groups", while the owner's self-identities and primary 1-to-1 contacts lose their ties. -
Combinatorial merge explosion in
people review: Transactional feeds (like Substack newsletters) are ingested as individualpersonrecords, generating$O(N^2)$ bogus pairwise merge candidates. -
Cluttered Information Architecture: The top-level tab hierarchy (
People | Companies | Newsletters & notifications | Strangers | Unsorted) confuses entity types with relational statuses and internal quarantine buckets.
This RFC proposes:
- Strict separation between Actor Nature (
HumanvsAutomated / Bot) and Affiliation (Organization). - A clean 3-pillar Information Architecture for Contacts:
People,Automated, andOrganizations. - Demoting
StrangersandUnsortedfrom top-level tabs into internal attributes/filters. - A core invariant: Automated identities must never enter the pairwise
people reviewcandidate queue withpersonentities.
Observed Failures (Live Store & Desktop UI Symptoms)
1. Ingestion Classification Failure (The Strangers Breakdown)
The definition of Strangers states:
"A real name, but no tie with you: authors from big groups and channels."
Yet looking at what actually lands in Strangers:
- Financial Institutions & Legal Entities:
ALTA Banka a.d. Beograd(altabanka@24x7.rs) — a commercial bank sending official monthly statements, yet classified as a stranger from a chat group rather than a Company/Automated entity. - Transactional Daemons & Broadcast Feeds:
Google Location Sharing(noreply-...),Google Gemini(google-gemini-noreply@...),Bitget(notification@...),Blockchain.com(notify@...). All leak intoStrangersinstead ofNewsletters & notificationsorCompanies. - The Owner & Primary Human Contacts: The only real humans in
Strangersare the owner's own second email address and a primary business contact with multiple 1-to-1 threads, who lost their "tie" simply because outgoing replies weren't indexed or weighted properly.
2. Pairwise Deduplication Failure (The Substack $O(N^2)$ Explosion)
Substack sends newsletters from dynamic plus-addresses: author+topic1@substack.com, author+topic2@substack.com, etc.
cli-core extracts the display name ("Token Dispatch") and assigns each to an individual person record (person:127, person:130, person:131, person:152).
Consequently, people review generates
17: thetokendispatch+wormhole@substack.com may be the same person as thetokendispatch+mempool@substack.com (name, score 0.5)
16: thetokendispatch+rabbit-hole@substack.com may be the same person as thetokendispatch+mempool@substack.com (name, score 0.5)
15: thetokendispatch+rabbit-hole@substack.com may be the same person as thetokendispatch+wormhole@substack.com (name, score 0.5)
...
The user is forced to manually review dozens of mechanical merge suggestions for broadcast feeds.
3. The Unsorted Flaw
Checking what currently populates Unsorted reveals entities like Deleted Account from Telegram or records without extractable names (no-name). Exposing an internal quarantine bucket as a permanent top-level navigation tab confuses users, who expect actionable triage rather than dead metadata.
Root Cause: The Flattened kind Enum
Currently:
kind: "person" | "organization" | "automated" | "stranger" | "unsorted"This conflates three orthogonal dimensions into a single flat enum:
- Actor Type (Human vs Automated Bot/Feed/Service).
- Affiliation / Container (Organization).
- Relationship Status / Data Hygiene (Connected vs Unconnected / Orphaned / No Name).
Organizations do not send messages directly; actors (humans or bots) belonging to an organization do.
Proposed Domain Model & Information Architecture
1. Clean 3-Pillar Top-Level Navigation
Instead of 5 fragmented tabs, Contacts should adhere to a strict dichotomy of actors plus organizational containers:
[ 👤 People ] [ 🤖 Automated ] [ 🏢 Organizations ]
👤 People: Strictly real human counterparts.- Filterable by relationship status: All, Connected / Direct (with mutual threads/meetings), or Unconnected (authors from public groups, replacing the top-level
Strangerstab).
- Filterable by relationship status: All, Connected / Direct (with mutual threads/meetings), or Unconnected (authors from public groups, replacing the top-level
🤖 Automated: All software actors, feeds, transactional notifications, and bots.- Categorized by tag/purpose: Newsletters, Alerts / 2FA, Receipts / Billing, Bots.
- Grouped deterministically by service domain without requiring user merge reviews.
🏢 Organizations: Legal entities, platforms, and vendors (e.g. ALTA Banka, Google, AWS).- Act as aggregate containers linking both their employees (
Humanmembers) and system addresses (Automateddaemons).
- Act as aggregate containers linking both their employees (
2. Demote Unsorted to Secondary Triage / Maintenance
Entities like Deleted Account or records lacking display names should not occupy primary tab space. They should be:
- Filterable via a secondary filter ("Archived / Incomplete"), or
- Surfaced via the existing triage/review badges when user attention is actually required.
3. Core Architecture Invariants
- Strict Exclusion from
people review: Identities classified asautomated(or matching bulk mail RFC headers / bot flags) MUST NEVER enter the pairwisepeople reviewcandidate queue withpersonentities. - Deterministic Service Grouping: Automated identities sharing the same base domain or organization should automatically be rolled up under that Organization without prompting for manual merges.
- Owner Identification: Ingested accounts must strictly inherit the owner flag across all configured addresses to prevent self-identities from degrading into strangers.
Expected Benefits
- Zero Junk in Merge Review: Eliminates 90%+ of useless merge suggestions in
people review. - Intuitive Mental Model: Users clearly navigate by Who (People), What Machine (Automated), and What Company (Organizations).
- Elimination of "Strangers" and "Unsorted" as Confusing Primitives: Replaces awkward top-level tabs with standard relational filters and clean data hygiene.
Activity
[-]RFC: Disentangle Actor Kind (Human vs Automated/Bot) from Organization and exclude Automated identities from `people review`[/-][+]RFC: Identity Ingestion & Information Architecture: Disentangle Actor Nature (Human vs Automated/Bot) from Organization[/+]leemour commentedon Nov 24, 2026
Thanks for the detailed report. We checked it against the code, and the symptoms are real.
The four concrete bugs behind them have their own issues and are being fixed now:
noreply-123@andalerts@pass as people.For the model and the screen we wrote a plan in #3323. It follows your main idea and changes it in two places:
human,bot,organization), how it reached you (direct,group,broadcast) and whether you know them. A newsletter author is usually a person, so "newsletter" is a way of reaching you, not a sender type.Comments on the plan are welcome in #3323.
fix(mail): mail from the owner's aliases and the Sent folder is outgo…
fix(people): find no-reply senders by any part, never propose program…
docs(people): bots become their own entity in the contact kinds plan
feat(people): sender signals and reach on people rows, signed program…
feat(people): sender bots apart from people (store version 74)
feat(people): sender bots apart from people (store version 74)
feat(people): sender bots apart from people (store version 74) (#3339)
feat(people): organizations from mail domains (#3347)
feat(people): an organization's sector from a Wikidata domain list (#…