arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.14064cs.SE
收藏

DEIA:面向鸿蒙ArkTS的、基于证据的崩溃修复与变更感知测试设计

DEIA: Evidence-Grounded Crash Repair with Change-Aware Test Design for HarmonyOS ArkTS

Beihang University(北京航空航天大学);Suzhou Aerospace Information Research Institute(苏州航天信息研究院);Huawei Technologies Co., Ltd.(华为技术有限公司)

Xuhui Lu, Zhihao Liu, Xiaoke Fang, Yuhuan Fan, Yanzhe Tang, Xiaohui Wan, Xiaoyu Wu, Zheng Zheng

AI总结:

DEIA是面向鸿蒙ArkTS的崩溃修复工作流,通过构建证据包、生成锚定编辑等实现修复,在29个匹配任务中其修复位置准确率优于OpenHands,且资源消耗更少,但行为保留能力仍待完善。

摘要:

移动端崩溃修复不仅需要识别源编辑,开发者还必须确定该编辑与报告故障的关联,以及修改后的应用能否在不破坏有效行为的情况下构建、启动和运行。对于鸿蒙(HarmonyOS)应用,此评估还取决于平台特定的打包和运行时执行。为满足这一需求,我们提出DEIA,一种面向鸿蒙崩溃修复的基于证据的工作流。DEIA构建有界的源证据包,使用大语言模型提出内容锚定的编辑,并依赖确定性写入器实现和检查补丁。它从报告故障中导出失败通过(F2P)义务,从补丁的潜在影响中导出通过通过(P2P)义务。阶段级分类账将补丁、测试义务、运行时观察和候选生成成本关联起来。我们在来自24个鸿蒙应用的30个修复任务上评估DEIA,并在29个匹配任务上将其与基于OpenHands的工作流进行比较。DEIA的第一添加行位置在25/29个任务(86.2%)中与精心整理的参考完全匹配,而OpenHands为19/29(65.5%),差异为20.7个百分点。DEIA还平均减少了81.5%的token使用量、60.8%的模型调用次数,以及34.9%的候选生成时间。58个特定行为的P2P义务中仅执行了2个,且均针对一种修复模式;因此,全面的行为保留仍未实现。

英文摘要:

Mobile crash repair requires more than identifying a source edit. Developers must establish how the edit relates to the reported failure and whether the modified application can be built, launched, and exercised without disrupting valid behavior. In HarmonyOS applications, this assessment also depends on platform-specific packaging and runtime execution. To address this need, we present DEIA, an evidence-grounded workflow for HarmonyOS crash repair. DEIA constructs a bounded source-evidence package, uses a large language model to propose content-anchored edits, and relies on a deterministic writer to materialize and check the patch. It derives fail-to-pass (F2P) obligations from the reported fault and pass-to-pass (P2P) obligations from the potential impact of the patch. A stage-level ledger links the patch, test obligations, runtime observations, and candidate-generation cost. We evaluate DEIA on 30 repair tasks from 24 HarmonyOS applications and compare it with an OpenHands-based workflow on 29 matched tasks. DEIA's first-added-line location exactly matches the curated reference in 25/29 tasks (86.2%), compared with 19/29 (65.5%) for OpenHands, a difference of 20.7 percentage points. DEIA also uses 81.5% fewer tokens, makes 60.8% fewer model calls, and takes 34.9% less candidate-generation time on average. Only two of the 58 behavior-specific P2P obligations were executed, both for one repair pattern; comprehensive behavior preservation therefore remains unestablished.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑