# Caprese: Change Impact Recommendation Using History and Runtime Analysis

DevFeed: [Caprese: Change Impact Recommendation Using History and Runtime Analysis](<https://devfeed.tech/articles/caprese-change-impact-recommendation-using-history-and-runtime-analysis-131698.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.14937>)

Author: Sadjad Tavakoli, Saba Alimadadi

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [test impact analysis](<https://devfeed.tech/topics/test-impact-analysis.md>), [Node.js](<https://devfeed.tech/topics/node-js.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [applications](<https://devfeed.tech/tags/applications.md>), [artifacts](<https://devfeed.tech/tags/artifacts.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [change](<https://devfeed.tech/tags/change.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [events](<https://devfeed.tech/tags/events.md>), [execution](<https://devfeed.tech/tags/execution.md>), [framework](<https://devfeed.tech/tags/framework.md>), [function](<https://devfeed.tech/tags/function.md>), [functions](<https://devfeed.tech/tags/functions.md>), [history](<https://devfeed.tech/tags/history.md>), [hybrid](<https://devfeed.tech/tags/hybrid.md>), [impact](<https://devfeed.tech/tags/impact.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [recommendation](<https://devfeed.tech/tags/recommendation.md>), [runtime](<https://devfeed.tech/tags/runtime.md>)

## AI overview

Caprese ranks functions that may be affected by a change in Node.js code, combining historical co-change patterns with dependencies observed during execution. Its repository mode mines recurring, change-set-relevant patterns; its dynamic mode captures calls, callbacks, events, timers, and shared state; a hybrid mode integrates both. Across ten open-source applications and 100 selected change sets, 77.4% of relevant functions in the hybrid mode's top 60 were identified exclusively by one of the two analyses. Dynamic mode had the highest mean precision in the top five (0.65), while repository mode performed best at 60 recommendations (0.42). Hybrid mode beat TARMAQ on average but did not consistently surpass either individual mode.

## Source excerpt

arXiv:2611.14937v1 Announce Type: new Abstract: Change impact recommendation identifies program entities potentially affected by source code changes. Historical co-changes and runtime dependencies provide complementary evidence, particularly in JavaScript, where dynamic and asynchronous behaviour complicates dependency analysis. We present Caprese, an open-source framework for function-level change impact recommendation in Node.js. Given a change set, it produces a ranked impact set of potentially affected functions. It supports repository-based recommendation through confidence-guided mining of recurring, change-set-relevant co-change patterns of varying lengths; dynamic recommendation through execution-derived dependencies involving calls, callbacks, events, timers, and shared state; and hybrid recommendation integrating both analyses. Its modular implementation supports reusable analyses. Evaluation on ten open-source applications and 100 selected change sets shows that, on average across projects, 77.4% of the relevant functions among the top 60 hybrid recommendations are identified exclusively by one analysis, demonstrating substantial complementarity. Dynamic recommendation achieves the highest mean precision among the top five recommendations (0.65), while repository-based recommendation performs best when the ranking is extended to 60 recommendations (0.42). Hybrid recommendation outperforms TARMAQ on average but does not consistently outperform the individual modes. Caprese is publicly available with source code, documentation, and evaluation artifacts.