fix: score tech lead as its own signal so it clears minScore

A bare "Technical Lead" or "Tech Lead" only ever matched the generic
seniority bucket (2 pts, same as senior/staff), landing below the
minScore of 4 — so an explicit target role silently never reached the
digest. Give it 3 pts of its own, matching the other role-specific
signals.
This commit is contained in:
2026-09-05 18:04:29 +02:00
parent af5df25fa1
commit a596281dae
+6
View File
@@ -37,6 +37,12 @@ const SIGNALS: [RegExp, number, string][] = [
[/\bbackend\b|\bfull.?stack\b|\bapi\b|\bintegration\b/i, 2, "backend/API"],
[/forward\s+deployed|\bfield\s+engineer|solutions?\s+engineer|customer\s+engineer/i, 4, "forward-deployed"],
[/\bsoftware\s+engineer\b|\bdeveloper\b/i, 2, "software"],
// Tech Lead is an explicit target role (see CLAUDE.md), but a bare title like
// "Technical Lead" or "Tech Lead" alone only ever hit the generic seniority
// bucket below (2pts, same as "senior"/"staff") — below minScore(4), so it
// silently never reached the digest. Give it its own weight so it clears
// the bar on its own, same as the other role-specific signals above.
[/\btech(?:nical)?\s*lead\b/i, 3, "tech lead"],
// seniority — he's Staff-level; junior titles are already dropped upstream
[/\b(?:senior|staff|principal|lead|head\s+of|architect)\b/i, 2, "senior"],
];