Skip to content

Feat/fase2 git history#7

Merged
aitormf merged 4 commits into
mainfrom
feat/fase2-git-history
Apr 29, 2026
Merged

Feat/fase2 git history#7
aitormf merged 4 commits into
mainfrom
feat/fase2-git-history

Conversation

@aitormf
Copy link
Copy Markdown
Owner

@aitormf aitormf commented Apr 29, 2026

No description provided.

aitormf added 4 commits April 29, 2026 17:39
compute_hotspots was iterating churn_map (all git-historical files) and
looking up coupling, always returning 0 for renamed/deleted files.
Now iterates coupling_map (currently indexed files) and looks up churn;
renamed historical paths are naturally skipped.

Also improves cmd_report human output: structural section shows only
flagged modules (⚠ inestable, ● god, cycles); hotspots filtered to
score>0; temporal coupling includes ratio; bus factor shows only bf=1.
The JSON output of `debtector report` now mirrors the human output:
- modules: only god modules and instability-flagged ones (adds instability_flag bool)
- hotspots: only score > 0
- temporal_coupling: unchanged (already filtered by min_shared/min_ratio)
- bus_factor: only bus_factor == 1

Reduces token consumption for AI consumers when the codebase is healthy.
Adds three regression tests to lock the filtering behaviour.
@aitormf aitormf merged commit 2f4d59b into main Apr 29, 2026
4 checks passed
@aitormf aitormf deleted the feat/fase2-git-history branch April 29, 2026 15:44
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.

1 participant