Skip to content

feat: add repository risk hotspot analysis#104

Merged
iKwesi merged 1 commit intomainfrom
feat/issue-51-risk-hotspots
Mar 16, 2026
Merged

feat: add repository risk hotspot analysis#104
iKwesi merged 1 commit intomainfrom
feat/issue-51-risk-hotspots

Conversation

@iKwesi
Copy link
Copy Markdown
Owner

@iKwesi iKwesi commented Mar 16, 2026

Summary

  • add deterministic repository risk analysis providers for complexity, coverage, and architecture uncertainty
  • surface ordered hotspot scoring in inspect results and the human-readable inspect report
  • cover the new scoring and inspect integration with focused tests

Closes #51

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds deterministic repository risk hotspot analysis (complexity, coverage gaps, and architectural uncertainty) and surfaces the ordered hotspot scoring through inspect results and the human-readable inspect report, with new/updated tests covering the integration.

Changes:

  • Introduce analyzeRepositoryRisk with provider scoring and deterministic hotspot ranking.
  • Extend runInspect / InspectResult to include risk_analysis and render a “Risk Hotspots” section in the inspect report.
  • Add/update Vitest coverage for risk scoring and inspect integration.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/diagnostics/risk-analysis.test.ts New tests asserting deterministic provider definitions and hotspot scoring output.
tests/diagnostics/inspect.test.ts Updates inspect integration test to include tests folder + risk hotspot assertions in the report.
tests/cli/inspect-command.test.ts Updates CLI inspect test fixture to include required risk_analysis field.
src/core/diagnostics/riskAnalysis.ts New risk analysis module implementing providers, scoring, and hotspot ranking logic.
src/core/diagnostics/inspect.ts Wires risk analysis into inspect orchestration and prints hotspots in formatInspectReport.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@iKwesi iKwesi merged commit 21eca76 into main Mar 16, 2026
8 checks passed
@iKwesi iKwesi deleted the feat/issue-51-risk-hotspots branch March 16, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement risk analysis providers and hotspot scoring

2 participants