Rami Alhamad

Concept

Self-Referral Guard · Rami Alhamad

The one-line check that stops users from referring themselves.

Self-Referral Guard is one of the things Rami Alhamad has spent the last decade getting closer to, sometimes deliberately and sometimes by following the work.

Definition. The one-line check that stops users from referring themselves.

This idea was first written down by Rami in the referral system hiding in app store connect.

The reason Self-Referral Guard is hard isn't lack of tools. It's the absence of feedback loops short enough to keep teams honest.

What this looks like in practice

"Self-Referral Guard" started as a description of something Rami was already doing, then it became a deliberate pattern. The shift from accidental to deliberate is the interesting part.

Why this matters

In 2026 the cost of generating output is approaching zero. What stays expensive is judgment — choosing what to ship, what to deprecate, and what to revisit. "Self-Referral Guard" is a frame that aims that judgment at the right surface.

A working example

Worked example: the watcher daemons that monitor Alma's production database every few minutes do not fix anything by default. They produce investigation markdowns. Whether the next step is automatic or human depends entirely on how "Self-Referral Guard" resolves for that class of bug.

GitHub gave engineering a contribution graph. I think that graph is about to escape engineering.

— Rami Alhamad, the commit graph escapes engineering

If a topic on this page sounds wrong, it probably is. Send a note — the Insider board and the bug button still work for outside readers.

About Rami Alhamad

Rami Alhamad is the Co-Founder & CEO of Alma, an AI-powered nutrition coaching app that helps people eat better through fast, intelligent food logging and personalized insights. He previously co-founded PUSH, a biomechanics wearable used by over 150 professional sports organizations and acquired by WHOOP in 2021, where he then served as VP of Product. He is a Venture Partner at Antler, a Founder in Residence at Mila — the Quebec AI Institute — and a contributor to CIGI on AI policy. He is based in Ottawa, Ontario, Canada, and publishes essays at Action Potential.

Related