GPT-5 finding
WorkerOutcome returns constant agreedCount/degraded values, losing useful telemetry
lowmaintainabilityhigh
- apps/web/lib/review-worker.ts:148-154
The worker computes actual agreed findings and degraded status earlier, but the returned outcome always sets agreedCount=0 and degraded=false. This can mislead downstream metrics or logging if these fields are ever consumed beyond the current tests.
Recommendation
Return the real agreedCount (bundle.agreed.length) and degraded flag (bundle.degraded) from runReviewWorker’s success path.