Conversation
PR SummaryLow Risk Overview The script stratified-samples pre-cutoff
Reviewed by Cursor Bugbot for commit 37deec8. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 734af43. Configure here.
There was a problem hiding this comment.
🔵 Needs a closer look
Mutable pipeline actions currently corrupt the historical baseline and can produce misleading accuracy results.
Pull request overview
Adds a one-off evaluator comparison tool for measuring the new Bedrock prompt against historical decisions.
Changes:
- Adds stratified baseline sampling and concurrent endpoint evaluation.
- Generates JSON accuracy reports.
- Adds production and local pnpm commands.
File summaries
| File | Description |
|---|---|
backend/src/bin/scripts/compare-evaluator-accuracy.ts |
Implements sampling, comparison, and reporting. |
backend/package.json |
Registers script commands. |
Review details
- Files reviewed: 1/2 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
🟡 Changes recommended
The baseline derives verdicts from mutable workflow actions, excluding successfully onboarded projects and potentially including non-agent skips.
Get a fresh assessment by requesting another Copilot review.
Review details
- Files reviewed: 1/2 changed files
- Comments generated: 0 new
- Review effort level: Balanced
00d5b06 to
134a4cc
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Mutable pipeline actions currently corrupt the historical baseline, while argument and response validation gaps can produce misleading reports.
Get a fresh assessment by requesting another Copilot review.
Review details
- Files reviewed: 1/2 changed files
- Comments generated: 0 new
- Review effort level: Balanced
…ecisions (CM-1470) Re-runs POST /v1/project-evaluation against projectCatalog rows already decided by the old external evaluator agent (pre CM-1470), sampled per decision category, and reports agreement/accuracy without needing to re-invoke the old agent. Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
…(CM-1470) Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
… comparison (CM-1470) Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
…on (CM-1470) Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
7caaf7c to
37deec8
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Mutable catalog actions skew the baseline, and malformed responses can corrupt accuracy results.
Get a fresh assessment by requesting another Copilot review.
Review details
- Files reviewed: 1/2 changed files
- Comments generated: 0 new
- Review effort level: Balanced

Summary
Adds a one-off script to measure how the new TS/Bedrock evaluator prompt (CM-1470) agrees with the decisions the old external Python evaluator agent already made in production, without needing to re-invoke that old agent.
Changes
backend/src/bin/scripts/compare-evaluator-accuracy.ts: readsprojectCatalogrows evaluated before the CM-1470 deploy cutoff (2026-09-18), samples them per decision category (action+evaluationReason) so a small run still covers every category, re-runs each throughPOST /v1/project-evaluation, and reports agreement/accuracy — flagging "already onboarded" / "already part of LF" rows separately, since the new prompt has no CDP lookup tool and can't structurally reach those two reasons.backend/package.json: addsscript:compare-evaluator-accuracyandscript:compare-evaluator-accuracy:localpnpm entries, following the existingscript:*convention.