Who Keeps Coming: People, Contact Cards and Every Session's Registrations
Every Dojo registrant and profile is now one person in our database, whichever email they used, so repeat attendance can finally be counted.
Why Care?
We've run four all-hands and a few workshops, and couldn't answer a simple question: who keeps coming back? Zoom hands us registration lists keyed by email, and people register with whatever address is at hand: a firm address one month, Gmail the next, a new domain after a rebrand. Counted by email, one loyal fellow looks like three casual ones.
Now each person is one record, however many addresses they've used, and every registration, attendance and login points at that person.
What's New?
133 people in the database: every Zoom registrant since the April launch, plus everyone with a profile on the site.
One person, many contact cards. A card is what we know about someone in one context: a role at a firm, their personal details, their social links. The same role reached at two domains is one card with an alias; a Gmail address beside a firm one is a second card.
149 registrations across the Apr 29, May 27, Jul 29 and Nov 19 sessions, each tied to a person and to its session.
Six people who registered under two addresses were found, confirmed by hand and merged. One fellow went from "one-timer plus three-timer" to the Dojo's only four-session registrant.
All 59 profiles are linked to their person, after a human settled seven similar names (two were different people, five the same). The profiles filled in firms, titles, links and login accounts; four profiles got their missing firm back, and one got its real name.
People keep every name they go by. "Gopi" and "Gopinath" are one person, and the next registration under either name matches straight away.
Every touch is logged (212 so far), so mail goes to the address someone used last, not the one they used first.
How it Works
Imports never guess. Each incoming record is a definite match (we already know that address or account), clearly new, or a near match (a similar name, the same username at another firm). Near matches are written to a review list and wait for a human. Matching on names alone is how two different Patrick Lewises become one.
Copies are kept in one place. A person's main email, firm and title live on their cards; the person row copies them for easy queries, and one module rewrites the copies every time a card changes. An audit command confirms nothing has drifted.
Under the Hood
Four tables in Turso, created by the first migration in db/migrations/, run with pnpm db:migrate:
People: one per human;email,org,titlecopied from the primary card;calledlists the other names they go by (migration 002)PersonContactCards:role,personalorsocials; documented JSON fields, withemail,email_aliasesandemail_pinnedSessionRegistrations: one per person per session, referencingSession.slug(all seven sessions now have aSessionrow)PersonInteractions: registrations, attendance and logins, append-only
All writes go through src/lib/contact-cards.ts. The commands:
| Command | Does |
pnpm ingest:registrations | Imports Zoom exports; near matches go to context-v/extra/registration-review.json |
pnpm db:link-participants | Links profiles; near matches go to context-v/extra/participant-review.json |
pnpm db:backfill-logins | Records past logins (50 of 54 now resolve to a person) |
pnpm db:merge-people | Combines two people once confirmed |
pnpm db:audit-people | Checks every copy against the cards |
Emails live only in the database. The review lists sit in the gitignored context-v/extra/.
What's Next
Attendance needs post-event reports. Every Zoom export we have was downloaded before its session started, so almost everyone reads Absent. Importing the attendee reports is one line per file.
Sign-in should record itself as an interaction; until then, re-run the login backfill.
Firm names on registration-only people are still email domains.
