Arkweb security patch impact

From openharmonyinsight/openharmony-skills · View interactive version

Arkweb security patch impact is an AI agent skill from the GitHub repository openharmonyinsight/openharmony-skills. Determine whether ArkWeb M144 or configured baseline is affected by an upstream Chromium vulnerability.

How to use this skill

Skill file

ArkWeb Impact Analysis

用于 arkweb-security-patch-impact-decider。

When to use this skill

Use this skill after issue analysis and patch fetch are complete. It maps upstream fix facts to the configured ArkWeb baseline and produces the final affected/unaffected/unknown decision, ownership routing, feature impact, risk and test recommendations.

输入

分析入口

影响分析必须从三块证据入手,并按顺序收敛结论:

  1. Issue 证据:读取 01_issue_analysis.* 中从本地 HTML/MHTML 提取的 issue 字段、标签、评论时间线、Milestone、FoundIn、Merge-Request、Merge-Approved、Merged、FixedIn、修复线索和安全属性,用于判断上游问题背景、版本信号和信息缺口。
  2. PR/CL 证据:读取 02_patch_fetch.* 中确认的 selected fix、Gerrit/Gitiles/PR/commit、patch、modified_files,并核验修复实际落在哪些分支;这里决定主线修复、cherry-pick、release branch、branch-head、requested/approved/merged 等状态。
  3. 项目根目录代码证据:基于当前 workflow context 中的 context.codebase 检查当前工程代码,确认对应文件、符号、调用链、编译开关、平台裁剪或等价实现是否存在;这里决定当前 ArkWeb 工程是否受影响。

最终报告必须把结论依据写成这三块证据链:Issue -> PR/CL -> context.codebase 源码核验 -> ArkWeb 影响结论。

输出

写入同一个 issue 目录:

根目录不得写任何文件;不得生成 03_impact_decision.index.md/json 或根级 03_impact_decision.md/json。

Detailed output structure is in references/impact-output.md.

必须覆盖:

  1. Chromium 上游影响版本结论:明确列出该漏洞/修复影响哪些 Chromium milestone、分支或版本范围,无法精确到版本时必须说明 unknown。
  2. Chromium 版本结论依据:引用 issue 元数据、merge/milestone 标签、修复 CL/commit、branch-head、release note、提交时间或 patch 所在分支等证据,区分事实、推断和缺口。
  1. PR/CL 分支合入核验:基于 02_patch_fetch.json 中的 selected fix、Gerrit/Gitiles/PR/commit 链接和 patch 元数据,确认主线提交、cherry-pick 提交、目标 branch-head 或 release branch;不得只凭 issue 标签下最终版本结论。
  2. 当前 ArkWeb 基线与上游修复版本的相对关系。
  3. 基于当前 workflow context 中的 context.codebase 做本地工程源码核验,检查 02_patch_fetch.json.modified_files[] 对应的文件、符号、调用链、编译开关、平台裁剪或等价实现是否存在。
  4. 明确 ArkWeb 当前工程结论:affected、unaffected、unknown 三选一,并说明它与 Chromium 版本影响范围之间的关系。
  5. 每个关键结论都必须写出依据链:Issue 证据 -> PR/CL 实际合入分支或缺口 -> 当前 ArkWeb 源码核验证据 -> 结论。
  6. 受影响模块、产品面、安全、兼容性、稳定性、性能、RAM、ROM、业务逻辑正确性风险。
  7. 责任田归属:团队名必须从可用责任田配置的合法团队名中原样复制。
  8. 影响的特性:必须从可用特性树配置中原样复制完整行,格式为 团队名 > 一级业务特性 > 二级业务特性 > 三级业务特性,禁止自造路径。
  9. 修复优先级、修复复杂度、是否建议保留、是否需要测试和测试建议。
  10. 若 issue 安全相关,必须输出安全专项影响分析:漏洞类别、攻击面、触发条件、可利用性、权限/沙箱/隐私/证书等安全边界、未修复后果、风险等级依据和安全测试建议。
  11. 若判定不受影响,必须给出可审计证据;安全相关 issue 还必须说明安全链路为何不可达、对应代码为何不存在或平台为何不暴露。

Team and feature routing rules are in references/team-feature-routing.md.

Use references/team_definition.yaml and references/feature_tree_list.txt as the default routing data.

Scripts

可优先使用本次归档 workflow 已验证逻辑沉淀出的脚本生成 03_impact_decision.md/json,不要在运行时重新生成临时 Python 脚本:

python3 skills/arkweb-security-patch-impact/scripts/generate_impact_decision.py \
  --project-root <context.codebase> \
  --output-root <context.projectRoot>/.ace-outputs/<runId> \
  --feature-tree skills/arkweb-security-patch-impact/references/feature_tree_list.txt

脚本会读取 <context.projectRoot>/.ace-outputs/<runId>/{issue_id} 中的 01_issue_analysis.json 和 02_patch_fetch.json,写回同目录 03_impact_decision.md/json。脚本输出目录使用 context.projectRoot,源码核验使用 context.codebase;脚本只做路径命中、版本证据整理、责任田/特性树初判和安全专项骨架,agent 必须继续复核版本分支、源码语义和安全影响,不能把脚本输出当作免审最终结论。

字段归属边界:

注意

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.