Skip to content

feat: wire impact analysis into audit command #26

@jonathanpopham

Description

@jonathanpopham

Context

PR #25 added api.Client.Impact() which calls POST /v1/analysis/impact — the dedicated impact analysis endpoint with risk scoring, affected functions/files, entry points, and diff support.

The audit command currently runs its own domain coupling analysis but doesn't use the dedicated impact endpoint. It should incorporate impact analysis results to produce a more complete health report.

Proposal

Add an impact analysis section to the audit health report:

  • Run impact analysis (global mode, no targets) alongside the existing checks
  • Surface the most critical files with their risk scores and dependent counts
  • Flag any critical risk files in the recommendations section
  • Include cross-domain dependency warnings when available

Example output addition

## Impact Analysis

| File | Risk | Direct | Transitive | Domains Crossed |
|------|------|--------|------------|-----------------|
| AuthConstants.java | critical | 110 | 280 | 3 |
| UserRepository.java | high | 45 | 120 | 2 |

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions