Skip to content

Commit 12834db

Browse files
msoginclaude
andcommitted
fix: use 'inactive' instead of 'departed' in report highlights
Developers missing from the latest report are on vacation or working on other things, not departing. Updated prompt to never use 'departed' or 'left' language. Cleared cached highlights to regenerate. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a55c491 commit 12834db

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/app/api/report-highlights/route.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export async function GET(_req: NextRequest) {
7777

7878
const allLogins = new Set([...mapA.keys(), ...mapB.keys()]);
7979
const newDevs = [...allLogins].filter(l => !mapA.has(l) && mapB.has(l));
80-
const departedDevs = [...allLogins].filter(l => mapA.has(l) && !mapB.has(l));
80+
const inactiveDevs = [...allLogins].filter(l => mapA.has(l) && !mapB.has(l));
8181

8282
const formatDev = (d: any) =>
8383
`@${d.github_login} (rank #${d.rank}): commits=${d.total_commits}, PRs=${d.total_prs}, complexity=${Number(d.avg_complexity).toFixed(1)}, impact=${Number(d.impact_score).toFixed(1)}, AI%=${d.ai_percentage}`;
@@ -114,7 +114,8 @@ Compare two reports for the same org and period. Return JSON:
114114
115115
Rules:
116116
- 3-5 bullet highlights max. Be specific — name developers, cite numbers.
117-
- Focus on: biggest movers (rank changes, impact delta), org-wide trends (commits, AI%, complexity), notable new/departed developers.
117+
- Focus on: biggest movers (rank changes, impact delta), org-wide trends (commits, AI%, complexity), newly active or recently inactive developers.
118+
- IMPORTANT: developers missing from the latest report are NOT "departed" — they are simply inactive in this period (vacation, different projects, etc). Never use words like "departed" or "left".
118119
- If nothing significant changed, return 1 bullet: "Steady state — no major shifts in the leaderboard or metrics."
119120
- Keep each bullet under 20 words. No fluff.
120121
- sentiment: "positive" for improvements, "warning" for regressions, "neutral" for informational.
@@ -132,7 +133,7 @@ LATEST REPORT (${latest.created_at}):
132133
133134
Top movers: ${movers.map(m => `@${m.login}: rank ${m.rankA}${m.rankB}, impact ${m.impactDelta > 0 ? '+' : ''}${m.impactDelta.toFixed(1)}`).join(', ')}
134135
${newDevs.length > 0 ? `New developers: ${newDevs.map(l => '@' + l).join(', ')}` : ''}
135-
${departedDevs.length > 0 ? `Departed developers: ${departedDevs.map(l => '@' + l).join(', ')}` : ''}`;
136+
${inactiveDevs.length > 0 ? `Recently inactive (no commits in latest report): ${inactiveDevs.map(l => '@' + l).join(', ')}` : ''}`;
136137

137138
try {
138139
const client = await getLLMClient();

0 commit comments

Comments
 (0)