Teams (src/core/teams.ts) group agents, but the scorecard is per agent only. An owner tunes a team by its pooled numbers.
Done looks like:
[ ] A pure teamScorecards(db, window) in src/core/scorecard.ts pools members' landed pulls, review rounds, red check runs and reverts. It computes the ratios from the pooled counts, not as an average of ratios.
[ ] /crew shows one row per team, all time and last 30 days, above the per-agent rows.
[ ] A test has two teams with known pulls and checks the pooled ratios. A team with no pulls shows dashes.
Files: src/core/scorecard.ts, src/web/pages/crew.ts, a test.
Teams (
src/core/teams.ts) group agents, but the scorecard is per agent only. An owner tunes a team by its pooled numbers.Done looks like:
teamScorecards(db, window)insrc/core/scorecard.tspools members' landed pulls, review rounds, red check runs and reverts. It computes the ratios from the pooled counts, not as an average of ratios.Files:
src/core/scorecard.ts,src/web/pages/crew.ts, a test.