From 111331463163310ac256a308c3dc53fb1fcc74b6 Mon Sep 17 00:00:00 2001 From: SURYANSH-RAI Date: Mon, 19 Oct 2026 03:23:25 +0530 Subject: [PATCH 01/30] Score mutual interest in both directions with a versioned config (R17) mutualInterest was set from intent compatibility alone, so any two people with compatible goals were shown "Your event goals align" however poorly they fit. Every scorer was also symmetric, so a two-direction rule would have meant nothing. - domain/matching/scoring-config.ts: scorer weights, the mutual interest threshold and a version in one place; the version is part of the persisted computation version (v2.s2), so older results can be found and recomputed - Interests are now directional (how much of what the viewer cares about the candidate shares), so score(A->B) and score(B->A) can differ - ScoreStage computes both directions; the flag needs both to reach the threshold (0.65, calibrated on documented examples). The reverse score is stored in the breakdown - Wording: "Likely a strong fit for each other"; the fallback reason no longer presents intent compatibility as a prediction - Calibration tests: both high flags; compatible goals alone, or a one-way fit, do not; works with and without embeddings --- .../e/[eventSlug]/matches/page.tsx | 2 +- .../e/[eventSlug]/search/SearchForm.tsx | 2 +- apps/web/src/domain/matching/pipeline.ts | 24 ++++--- .../scorers/complementarity.scorer.ts | 3 +- .../domain/matching/scorers/domain.scorer.ts | 3 +- .../domain/matching/scorers/intent.scorer.ts | 3 +- .../domain/matching/scorers/jaccard.scorer.ts | 20 ++++-- .../matching/scorers/semantic.scorer.ts | 3 +- .../matching/scorers/seniority.scorer.ts | 3 +- .../web/src/domain/matching/scoring-config.ts | 33 +++++++++ .../matching/stages/llm-rerank.stage.ts | 4 +- .../src/domain/matching/stages/score.stage.ts | 31 +++++---- tests/unit/mutual-interest.test.ts | 68 +++++++++++++++++++ 13 files changed, 162 insertions(+), 37 deletions(-) create mode 100644 apps/web/src/domain/matching/scoring-config.ts create mode 100644 tests/unit/mutual-interest.test.ts diff --git a/apps/web/app/(participant)/e/[eventSlug]/matches/page.tsx b/apps/web/app/(participant)/e/[eventSlug]/matches/page.tsx index 1526903..8e5bd80 100644 --- a/apps/web/app/(participant)/e/[eventSlug]/matches/page.tsx +++ b/apps/web/app/(participant)/e/[eventSlug]/matches/page.tsx @@ -43,7 +43,7 @@ export default async function MatchesPage({ params, searchParams }: { {match.participant.aboutMe &&

{match.participant.aboutMe}

} {match.participant.mostImpressiveBuild &&

Built: {match.participant.mostImpressiveBuild}

}

{match.reason || "A promising person to meet at this event."}

-

{match.mutualInterest ? "Your event goals align" : "Suggested for your profile"}

+

{match.mutualInterest ? "Likely a strong fit for each other" : "Suggested for your profile"}

{Math.round(match.score)}%
{canRequestIntro &&