Commit 8595173
authored
feat(churn): git churn ingest and churn-complexity-hotspots recipe (#179)
* feat(churn): git churn ingest and churn-complexity-hotspots recipe
Add file_churn substrate with full/incremental/idle refresh on every index pass, codemap ingest-churn for golden seeds, and a refactor-priority recipe ranked by churn × complexity with perf-baseline churn_ms gating.
* harden: churn idle-skip correctness, docs lift, consumer surfaces
Require populated file_churn and config fingerprint before idle skip; deletions-only index skips git log; ingest-churn needs index + inline schema help; delete shipped plan and fix inbound refs.
* docs(agents): churn-hotspot AX parity across MCP, skill, and recipe actions
Wire churn-complexity-hotspots into MCP playbook and recipe chains, add churn column guidance to rule/skill shards, per-row review actions on the recipe, and cross-links from refactor-risk recipes.
* harden: ingest_churn MCP parity, doc fixes, churn_idle_ms gate
Ship post-merge items in PR #179: MCP/HTTP ingest_churn, churn.file git
skip, context churn_hint, path_prefix param, churn_idle_ms perf baseline.
Fix architecture/recipe doc drift (CodeRabbit), reject empty churn JSON
without wiping file_churn, and sweep 21-tool consumer surfaces.
* test(docs): close churn ROI nits — path_prefix golden, idle gate, leaks
Add path_prefix golden + scope test, incremental churn merge test,
churn_idle_ms per-phase noise floor and idle sanity cap, and genericize
served skill shard comments.
* harden: churn ingest correctness and index-table-stats golden order
Do not wipe file_churn on git log failure; fall back to full churn
refresh when config fingerprint drifts during incremental index. Run
index-table-stats golden before churn seed scenarios (file_churn: 46).
* test: close CodeRabbit churn nits — config path, help, golden guards
Cover churn.file absolute resolution, mark computed_at optional in ingest-churn help, guard file_churn in index-table-stats matrix, and reuse parseChurnJsonPayload for golden seed validation.
* harden: churn ingest transactions, trend validation, consumer parity
Wrap replaceFileChurn/mergeFileChurnForPaths in transactions; validate churn_trend on JSON ingest; align README, recipe, agent-content, and CLI help for churn.file override and hotspots alias distinction.1 parent 36106ff commit 8595173
70 files changed
Lines changed: 3002 additions & 407 deletions
File tree
- .changeset
- docs
- plans
- fixtures
- benchmark
- golden
- minimal
- minimal
- scripts
- agent-eval
- query-golden
- src
- application
- cli
- templates
- agent-content
- rule
- skill
- recipes
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
89 | | - | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
238 | 240 | | |
239 | 241 | | |
240 | 242 | | |
241 | | - | |
242 | | - | |
| 243 | + | |
| 244 | + | |
243 | 245 | | |
244 | 246 | | |
245 | | - | |
246 | | - | |
| 247 | + | |
| 248 | + | |
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
499 | 516 | | |
500 | 517 | | |
501 | 518 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
0 commit comments