Skip to content

Feature: Historical risk intelligence #9

@PredictabilityAtScale

Description

@PredictabilityAtScale

Context

Implements the analytics described in plans/feature-risk-intelligence.md to derive historical risk signals for IssueTriage.

Goals

  • Correlate past issues with PRs/commits and compute change footprint metrics.
  • Parse review timelines for blockers, security flags, and revision friction.
  • Synthesize risk levels with evidence snippets consumable by assessment and dashboard flows.
  • Run hydration jobs in the background with rate-limit awareness and progress reporting.

Acceptance Criteria

  • Background processor hydrates historical datasets for the selected repository within the configured lookback window, handling pagination and rate limits.
  • Risk profile API returns metrics (files touched, churn, review friction) plus supporting evidence for a given issue/PR.
  • Assessment outputs include risk level modifiers and surface evidence in the panel.
  • Dashboard displays risk indicators (badges/tooltips) without perceptible performance degradation.
  • Failures recover gracefully with retry/back-off and user-visible status updates.

Dependencies

  • Issue discovery model for mapping issues ↔ PRs.
  • Assessment engine integration points to ingest risk modifiers.
  • Local storage (SQLite or existing store) for aggregated metrics.

Notes

  • Extend GitHubClient for timeline/review data; cache summaries to avoid recompute.
  • Start with lightweight NLP heuristics (e.g., VADER) for comment severity; reserve LLM analysis for later tiers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions