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
Context
PR #25 added
api.Client.Impact()which callsPOST /v1/analysis/impact— the dedicated impact analysis endpoint with risk scoring, affected functions/files, entry points, and diff support.The
auditcommand 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:
criticalrisk files in the recommendations sectionExample output addition
References
api.Client.Impact()—internal/api/client.gointernal/api/types.go(ImpactResult,BlastRadius, etc.)cmd/audit.go/internal/factory/health.go