@buaa_smat/hometrans 26.0.0-devecocli.4 → 26.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (715) hide show
  1. package/README.md +433 -0
  2. package/agents/build-fixer.md +1 -2
  3. package/agents/code-reviewer.md +31 -15
  4. package/agents/model-render-worker.md +9 -5
  5. package/dist/cli/config-store.js +128 -0
  6. package/dist/cli/config.js +48 -0
  7. package/dist/cli/editors.json +114 -0
  8. package/dist/cli/env-vars.js +127 -0
  9. package/dist/cli/index.js +73 -0
  10. package/dist/cli/init.js +2513 -0
  11. package/dist/cli/uninstall.js +406 -0
  12. package/dist/platform/compose.js +228 -0
  13. package/dist/platform/frontmatter.js +151 -0
  14. package/dist/platform/installer.js +417 -0
  15. package/dist/platform/registry.js +337 -0
  16. package/dist/platform/transform.js +363 -0
  17. package/dist/platform/types.js +9 -0
  18. package/dist/platform/validate.js +152 -0
  19. package/dist/utils/regex.js +7 -0
  20. package/env-requirements.json +511 -0
  21. package/package.json +240 -11
  22. package/platforms/deveco/agents/code-reviewer.frontmatter.md +1 -1
  23. package/platforms/opencode/agents/code-reviewer.frontmatter.md +1 -1
  24. package/resource/choose_editor.png +0 -0
  25. package/resource/convert_pipeline_process.svg +114 -0
  26. package/resource/project_architecture.svg +120 -0
  27. package/resource/set_environment.png +0 -0
  28. package/resource/set_multimodel.png +0 -0
  29. package/resource/set_sdk.png +0 -0
  30. package/resource/title_dark.png +0 -0
  31. package/skills/a2h-app-migrate/SKILL.md +17 -11
  32. package/skills/a2h-app-migrate/references/stage-map.md +22 -7
  33. package/skills/a2h-app-migrate/references/workflow.yaml +276 -209
  34. package/skills/a2h-app-migrate/scripts/android_index.mjs +34 -16
  35. package/skills/a2h-app-migrate/scripts/check_arch_done.mjs +12 -12
  36. package/skills/a2h-app-migrate/scripts/check_module_docs_done.mjs +12 -12
  37. package/skills/a2h-app-migrate/scripts/check_signing.mjs +16 -16
  38. package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +17 -16
  39. package/skills/a2h-app-migrate/scripts/check_spec_pipeline_done.mjs +141 -62
  40. package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +12 -12
  41. package/skills/a2h-app-migrate/scripts/check_utg_static_done.mjs +26 -26
  42. package/skills/a2h-app-migrate/scripts/cli_values.mjs +7 -7
  43. package/skills/a2h-app-migrate/scripts/ensure_utg_snapshot.mjs +144 -0
  44. package/skills/a2h-app-migrate/scripts/env_preflight.mjs +474 -365
  45. package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +115 -108
  46. package/skills/a2h-app-migrate/scripts/i18n-term.d.mts +5 -0
  47. package/skills/a2h-app-migrate/scripts/i18n-term.mjs +54 -0
  48. package/skills/a2h-app-migrate/scripts/infer_android_root.mjs +6 -6
  49. package/skills/a2h-app-migrate/scripts/json_io.mjs +1 -1
  50. package/skills/a2h-app-migrate/scripts/ledger.mjs +15 -15
  51. package/skills/a2h-app-migrate/scripts/paths_preflight.mjs +99 -99
  52. package/skills/a2h-app-migrate/scripts/resume_plan.mjs +25 -25
  53. package/skills/a2h-app-migrate/scripts/reuse_static_utg.mjs +9 -9
  54. package/skills/a2h-app-migrate/scripts/run_dir.mjs +33 -33
  55. package/skills/a2h-app-migrate/scripts/spec_layout.mjs +13 -11
  56. package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +128 -80
  57. package/skills/a2h-app-migrate/scripts/write_resume_summary.mjs +349 -0
  58. package/skills/a2h-arch-generate/scripts/cleanup_intermediates.mjs +21 -21
  59. package/skills/a2h-arch-generate/scripts/create_project.mjs +23 -23
  60. package/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +48 -40
  61. package/skills/a2h-arch-generate/scripts/generate_state.mjs +7 -7
  62. package/skills/a2h-arch-generate/scripts/i18n-term.d.mts +5 -0
  63. package/skills/a2h-arch-generate/scripts/i18n-term.mjs +54 -0
  64. package/skills/a2h-arch-generate/scripts/inspect_android_project.mjs +10 -1
  65. package/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +41 -36
  66. package/skills/a2h-arch-generate/scripts/lib/contract_terms.mjs +40 -0
  67. package/skills/a2h-arch-generate/scripts/lib/py_compat.mjs +1 -1
  68. package/skills/a2h-arch-generate/scripts/module_create/create.mjs +17 -17
  69. package/skills/a2h-arch-generate/scripts/module_create/generate.mjs +54 -50
  70. package/skills/a2h-arch-generate/scripts/scaffold_project.mjs +42 -42
  71. package/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +69 -44
  72. package/skills/a2h-arch-generate/scripts/validate_data_docs.mjs +62 -17
  73. package/skills/a2h-arch-generate/scripts/validate_incremental_docs.mjs +5 -4
  74. package/skills/a2h-arkts-logic-coder/SKILL.md +39 -8
  75. package/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -0
  76. package/skills/a2h-arkts-logic-coder/references/code-generation.md +28 -17
  77. package/skills/{a2h-spec-design/SKILL.md → a2h-arkts-logic-coder/references/spec-design.md} +45 -78
  78. package/skills/a2h-arkts-logic-coder/scripts/check_mvvm.ts +1 -1
  79. package/skills/a2h-arkts-logic-coder/scripts/check_units.ts +448 -0
  80. package/skills/a2h-arkts-logic-coder/scripts/design/i18n-term.d.mts +5 -0
  81. package/skills/a2h-arkts-logic-coder/scripts/design/i18n-term.mjs +54 -0
  82. package/skills/{a2h-spec-design/scripts → a2h-arkts-logic-coder/scripts/design}/inspect_spec_design_inputs.mjs +18 -12
  83. package/skills/{a2h-spec-design/scripts → a2h-arkts-logic-coder/scripts/design}/lib/py_compat.mjs +1 -1
  84. package/skills/{a2h-spec-design/scripts → a2h-arkts-logic-coder/scripts/design}/move_spec_technical_reference.mjs +10 -7
  85. package/skills/{a2h-spec-design/scripts → a2h-arkts-logic-coder/scripts/design}/resolve_module_design.mjs +13 -7
  86. package/skills/{a2h-spec-design/scripts → a2h-arkts-logic-coder/scripts/design}/validate_spec_design_output.mjs +57 -41
  87. package/skills/a2h-arkts-logic-coder/scripts/stop_check_hook.ts +66 -323
  88. package/skills/a2h-arkts-logic-coder/scripts/test_check_scripts.ts +66 -108
  89. package/skills/a2h-arkts-logic-coder/scripts/test_check_units.ts +149 -0
  90. package/skills/a2h-arkts-logic-coder/scripts/test_worktree_compat.ts +5 -18
  91. package/skills/a2h-batch-ui-align/SKILL.md +39 -39
  92. package/skills/a2h-batch-ui-align/references/cards/alignment.md +31 -0
  93. package/skills/a2h-batch-ui-align/references/cards/build.md +13 -0
  94. package/skills/a2h-batch-ui-align/references/cards/canvas.md +17 -0
  95. package/skills/a2h-batch-ui-align/references/cards/dynamics.md +27 -0
  96. package/skills/a2h-batch-ui-align/references/cards/geometry.md +80 -0
  97. package/skills/a2h-batch-ui-align/references/cards/interaction.md +22 -0
  98. package/skills/a2h-batch-ui-align/references/cards/resources.md +83 -0
  99. package/skills/a2h-batch-ui-align/references/cards/state-v1.md +29 -0
  100. package/skills/a2h-batch-ui-align/references/cards/state.md +14 -0
  101. package/skills/a2h-batch-ui-align/references/cards/widgets.md +38 -0
  102. package/skills/a2h-batch-ui-align/references/cards/window.md +29 -0
  103. package/skills/a2h-batch-ui-align/references/checker-rules.md +642 -0
  104. package/skills/a2h-batch-ui-align/references/conversion-procedure.md +69 -260
  105. package/skills/a2h-batch-ui-align/references/host-dispatch.md +34 -0
  106. package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +16 -4
  107. package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +3 -1
  108. package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +32 -1
  109. package/skills/a2h-batch-ui-align/references/source-only-tier.md +7 -1
  110. package/skills/a2h-batch-ui-align/references/state-mgmt/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +28 -0
  111. package/skills/a2h-batch-ui-align/references/state-mgmt/_/350/243/205/351/245/260/345/231/250/351/200/237/346/237/245.md +220 -0
  112. package/skills/a2h-batch-ui-align/references/step3-capture.md +11 -9
  113. package/skills/a2h-batch-ui-align/references/step4-prepare.md +13 -8
  114. package/skills/a2h-batch-ui-align/references/step5-convert.md +21 -18
  115. package/skills/a2h-batch-ui-align/scripts/agent_cli.mjs +44 -44
  116. package/skills/a2h-batch-ui-align/scripts/android_parse_fast.ts +237 -236
  117. package/skills/a2h-batch-ui-align/scripts/arkts_static_check.ts +42 -3854
  118. package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +34 -32
  119. package/skills/a2h-batch-ui-align/scripts/detach.mjs +1 -1
  120. package/skills/a2h-batch-ui-align/scripts/detect_paradigm.mjs +240 -0
  121. package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +139 -33
  122. package/skills/a2h-batch-ui-align/scripts/gen_rule_docs.mjs +100 -0
  123. package/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +26 -25
  124. package/skills/a2h-batch-ui-align/scripts/group_commit.mjs +1 -1
  125. package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +159 -12
  126. package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +145 -21
  127. package/skills/a2h-batch-ui-align/scripts/group_watch.mjs +8 -8
  128. package/skills/a2h-batch-ui-align/scripts/host_env.mjs +1 -1
  129. package/skills/a2h-batch-ui-align/scripts/i18n-term.d.mts +5 -0
  130. package/skills/a2h-batch-ui-align/scripts/i18n-term.mjs +54 -0
  131. package/skills/a2h-batch-ui-align/scripts/image_probe.mjs +228 -0
  132. package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +444 -266
  133. package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +66 -32
  134. package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +141 -57
  135. package/skills/a2h-batch-ui-align/scripts/state_doc.mjs +410 -0
  136. package/skills/a2h-batch-ui-align/scripts/static_check/core/android.ts +80 -0
  137. package/skills/a2h-batch-ui-align/scripts/static_check/core/cli.ts +134 -0
  138. package/skills/a2h-batch-ui-align/scripts/static_check/core/findings.ts +21 -0
  139. package/skills/a2h-batch-ui-align/scripts/static_check/core/i18n.ts +22 -0
  140. package/skills/a2h-batch-ui-align/scripts/static_check/core/meta.ts +34 -0
  141. package/skills/a2h-batch-ui-align/scripts/static_check/core/parse.ts +668 -0
  142. package/skills/a2h-batch-ui-align/scripts/static_check/core/scan.ts +392 -0
  143. package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +167 -0
  144. package/skills/a2h-batch-ui-align/scripts/static_check/package.json +3 -0
  145. package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +101 -0
  146. package/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +629 -0
  147. package/skills/a2h-batch-ui-align/scripts/static_check/rules/android_immersive.ts +125 -0
  148. package/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +67 -0
  149. package/skills/a2h-batch-ui-align/scripts/static_check/rules/block_comment_break.ts +64 -0
  150. package/skills/a2h-batch-ui-align/scripts/static_check/rules/blur_mirrored.ts +134 -0
  151. package/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_call_sites.ts +242 -0
  152. package/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_invokes_callback.ts +71 -0
  153. package/skills/a2h-batch-ui-align/scripts/static_check/rules/canvas.ts +255 -0
  154. package/skills/a2h-batch-ui-align/scripts/static_check/rules/color_string.ts +102 -0
  155. package/skills/a2h-batch-ui-align/scripts/static_check/rules/column_shrink.ts +154 -0
  156. package/skills/a2h-batch-ui-align/scripts/static_check/rules/constant_coordinate.ts +39 -0
  157. package/skills/a2h-batch-ui-align/scripts/static_check/rules/container_align.ts +140 -0
  158. package/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_root_builtin.ts +69 -0
  159. package/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_route.ts +114 -0
  160. package/skills/a2h-batch-ui-align/scripts/static_check/rules/fixed_size_safe_area.ts +103 -0
  161. package/skills/a2h-batch-ui-align/scripts/static_check/rules/format_string.ts +157 -0
  162. package/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_picker.ts +115 -0
  163. package/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +551 -0
  164. package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_content.ts +138 -0
  165. package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +310 -0
  166. package/skills/a2h-batch-ui-align/scripts/static_check/rules/offset_in_scroll.ts +163 -0
  167. package/skills/a2h-batch-ui-align/scripts/static_check/rules/orphan_component.ts +119 -0
  168. package/skills/a2h-batch-ui-align/scripts/static_check/rules/page_reachability.ts +94 -0
  169. package/skills/a2h-batch-ui-align/scripts/static_check/rules/path_commands_vp.ts +50 -0
  170. package/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +80 -0
  171. package/skills/a2h-batch-ui-align/scripts/static_check/rules/popup_menu.ts +64 -0
  172. package/skills/a2h-batch-ui-align/scripts/static_check/rules/r_template_string.ts +37 -0
  173. package/skills/a2h-batch-ui-align/scripts/static_check/rules/request_permission.ts +98 -0
  174. package/skills/a2h-batch-ui-align/scripts/static_check/rules/resource_as_string.ts +68 -0
  175. package/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +97 -0
  176. package/skills/a2h-batch-ui-align/scripts/static_check/rules/safe_area_clipping.ts +168 -0
  177. package/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +75 -0
  178. package/skills/a2h-batch-ui-align/scripts/static_check/rules/sdk_api.ts +195 -0
  179. package/skills/a2h-batch-ui-align/scripts/static_check/rules/shared_chrome.ts +73 -0
  180. package/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_blur.ts +95 -0
  181. package/skills/a2h-batch-ui-align/scripts/static_check/rules/shell_content.ts +198 -0
  182. package/skills/a2h-batch-ui-align/scripts/static_check/rules/stack_occluding.ts +118 -0
  183. package/skills/a2h-batch-ui-align/scripts/static_check/rules/state_decorators.ts +73 -0
  184. package/skills/a2h-batch-ui-align/scripts/static_check/rules/state_name_shadows.ts +93 -0
  185. package/skills/a2h-batch-ui-align/scripts/static_check/rules/string_quote_leak.ts +73 -0
  186. package/skills/a2h-batch-ui-align/scripts/static_check/rules/surface_stroke.ts +50 -0
  187. package/skills/a2h-batch-ui-align/scripts/static_check/rules/track_getter.ts +132 -0
  188. package/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +53 -0
  189. package/skills/a2h-batch-ui-align/scripts/static_check/rules/window_mode.ts +68 -0
  190. package/skills/a2h-batch-ui-align/scripts/static_check/scan_file.ts +153 -0
  191. package/skills/a2h-batch-ui-align/scripts/text_color_diff.mjs +65 -65
  192. package/skills/a2h-coldstart-smoke-gate/SKILL.md +8 -6
  193. package/skills/a2h-dashboard-render/SKILL.md +15 -7
  194. package/skills/a2h-dashboard-render/references/artifact-contract.jsonc +5 -35
  195. package/skills/a2h-dashboard-render/references/artifact-registry-spec.md +4 -4
  196. package/skills/a2h-dashboard-render/references/dashboard-guide.md +91 -0
  197. package/skills/a2h-dashboard-render/scripts/check-registry.mjs +17 -17
  198. package/skills/a2h-dashboard-render/scripts/dashboard.css +3546 -0
  199. package/skills/a2h-dashboard-render/scripts/dashboard.mjs +1021 -941
  200. package/skills/a2h-dashboard-render/scripts/device_capture.mjs +104 -65
  201. package/skills/a2h-dashboard-render/scripts/i18n-term.d.mts +5 -0
  202. package/skills/a2h-dashboard-render/scripts/i18n-term.mjs +54 -0
  203. package/skills/a2h-dashboard-render/scripts/page_capture.mjs +8 -8
  204. package/skills/a2h-dashboard-render/scripts/usage_readers.mjs +67 -37
  205. package/skills/a2h-dashboard-render/scripts/usage_worker.mjs +4 -4
  206. package/skills/a2h-fix-build-errors/SKILL.md +1 -2
  207. package/skills/a2h-resource-convert/SKILL.md +1 -3
  208. package/skills/a2h-resource-convert/references/step7-report-template.md +2 -2
  209. package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +366 -361
  210. package/skills/a2h-resource-convert/scripts/a2h_resource_incremental.ts +170 -170
  211. package/skills/a2h-resource-convert/scripts/app_identity.ts +162 -162
  212. package/skills/a2h-resource-convert/scripts/code_vector_icons.ts +95 -95
  213. package/skills/a2h-resource-convert/scripts/extract_page_resources.ts +132 -132
  214. package/skills/a2h-resource-convert/scripts/extract_project_resources.ts +220 -220
  215. package/skills/a2h-resource-convert/scripts/i18n-term.d.mts +5 -0
  216. package/skills/a2h-resource-convert/scripts/i18n-term.mjs +54 -0
  217. package/skills/a2h-resource-convert/scripts/svg_fidelity_check.ts +74 -74
  218. package/skills/a2h-spec-design-pipeline/SKILL.md +113 -63
  219. package/skills/a2h-spec-design-pipeline/references/coding-loop.md +226 -56
  220. package/skills/a2h-spec-design-pipeline/references/execution-model.md +315 -62
  221. package/skills/a2h-spec-design-pipeline/references/final-report-template.md +4 -2
  222. package/skills/a2h-spec-design-pipeline/references/initialization.md +12 -9
  223. package/skills/a2h-spec-design-pipeline/references/legacy-cleanup.md +18 -0
  224. package/skills/a2h-spec-design-pipeline/references/merge-queue.md +109 -8
  225. package/skills/a2h-spec-design-pipeline/references/scripts.md +29 -16
  226. package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +116 -8
  227. package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +179 -0
  228. package/skills/a2h-spec-design-pipeline/scripts/audit_claims.ts +33 -5
  229. package/skills/a2h-spec-design-pipeline/scripts/branch_landed.ts +36 -16
  230. package/skills/a2h-spec-design-pipeline/scripts/dispatch/evidence.mjs +93 -0
  231. package/skills/a2h-spec-design-pipeline/scripts/dispatch/fold.mjs +915 -0
  232. package/skills/a2h-spec-design-pipeline/scripts/dispatch/ledger.mjs +234 -0
  233. package/skills/a2h-spec-design-pipeline/scripts/dispatch/plan.mjs +33 -0
  234. package/skills/a2h-spec-design-pipeline/scripts/dispatch/progress.mjs +31 -0
  235. package/skills/a2h-spec-design-pipeline/scripts/dispatch/reconcile.mjs +94 -0
  236. package/skills/a2h-spec-design-pipeline/scripts/dispatch/state-mirror.mjs +55 -0
  237. package/skills/a2h-spec-design-pipeline/scripts/dispatch/timeouts.mjs +34 -0
  238. package/skills/a2h-spec-design-pipeline/scripts/dispatch/wait.mjs +92 -0
  239. package/skills/a2h-spec-design-pipeline/scripts/dispatch/waker.mjs +60 -0
  240. package/skills/a2h-spec-design-pipeline/scripts/dispatch/worktree.mjs +89 -0
  241. package/skills/a2h-spec-design-pipeline/scripts/dispatch.mjs +551 -0
  242. package/skills/a2h-spec-design-pipeline/scripts/ensure_wt_index.ts +267 -33
  243. package/skills/a2h-spec-design-pipeline/scripts/git_baseline.ts +30 -10
  244. package/skills/a2h-spec-design-pipeline/scripts/homecheck_scan.ts +634 -0
  245. package/skills/a2h-spec-design-pipeline/scripts/i18n-term.d.mts +5 -0
  246. package/skills/a2h-spec-design-pipeline/scripts/i18n-term.mjs +54 -0
  247. package/skills/a2h-spec-design-pipeline/scripts/lib/io.mjs +33 -0
  248. package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +107 -19
  249. package/skills/a2h-spec-design-pipeline/scripts/stage_design_inputs.ts +79 -0
  250. package/skills/a2h-spec-design-pipeline/scripts/test_atomic_write.ts +4 -4
  251. package/skills/a2h-spec-design-pipeline/scripts/test_audit_claims.ts +121 -38
  252. package/skills/a2h-spec-design-pipeline/scripts/test_branch_landed.ts +58 -11
  253. package/skills/a2h-spec-design-pipeline/scripts/test_deps_ready.ts +31 -31
  254. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_commands.mjs +564 -0
  255. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_e2e.mjs +339 -0
  256. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_evidence.mjs +161 -0
  257. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_fold.mjs +1024 -0
  258. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_ledger.mjs +178 -0
  259. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_plan.mjs +60 -0
  260. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_progress.mjs +58 -0
  261. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_reconcile.mjs +91 -0
  262. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_wait.mjs +60 -0
  263. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_waker.mjs +95 -0
  264. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_worktree.mjs +81 -0
  265. package/skills/a2h-spec-design-pipeline/scripts/test_ensure_wt_index.ts +183 -2
  266. package/skills/a2h-spec-design-pipeline/scripts/test_git_baseline.ts +29 -2
  267. package/skills/a2h-spec-design-pipeline/scripts/test_homecheck_scan.ts +294 -0
  268. package/skills/a2h-spec-design-pipeline/scripts/test_i18n_term.ts +70 -0
  269. package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +157 -30
  270. package/skills/a2h-spec-design-pipeline/scripts/test_plan_waves.ts +2 -2
  271. package/skills/a2h-spec-design-pipeline/scripts/test_stage_design_inputs.ts +72 -0
  272. package/skills/a2h-spec-generate/SKILL.md +34 -10
  273. package/skills/a2h-spec-generate/references/batch-mode.md +4 -1
  274. package/skills/a2h-spec-generate/references/fusion-task-contract.md +90 -21
  275. package/skills/a2h-spec-generate/references/recall-guide.md +1 -0
  276. package/skills/a2h-spec-generate/references/requirement-scope.md +1 -1
  277. package/skills/a2h-spec-generate/references/specs.schema.json +6 -0
  278. package/skills/a2h-spec-generate/references/worker-rules.md +2 -1
  279. package/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +305 -116
  280. package/skills/a2h-spec-generate/scripts/check_spec.ts +136 -114
  281. package/skills/a2h-spec-generate/scripts/collect-specs.mjs +19 -4
  282. package/skills/a2h-spec-generate/scripts/ensure-index.mjs +74 -14
  283. package/skills/a2h-spec-generate/scripts/feature-stem.mjs +4 -2
  284. package/skills/a2h-spec-generate/scripts/i18n-term.d.mts +5 -0
  285. package/skills/a2h-spec-generate/scripts/i18n-term.mjs +54 -0
  286. package/skills/a2h-spec-generate/scripts/parse_requirements.ts +65 -65
  287. package/skills/a2h-spec-generate/scripts/prepare-facts.mjs +8 -2
  288. package/skills/a2h-spec-generate/scripts/publication-verdict.mjs +8 -2
  289. package/skills/a2h-spec-generate/scripts/publish-specs.mjs +80 -5
  290. package/skills/a2h-spec-generate/scripts/regroup-by-page.mjs +670 -0
  291. package/skills/a2h-spec-generate/scripts/render-tasks.mjs +37 -30
  292. package/skills/a2h-spec-generate/scripts/report.mjs +7 -3
  293. package/skills/a2h-spec-generate/scripts/reqgen/assets/dashboard.html +26 -26
  294. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-api.js +2 -2
  295. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-code-view.js +2 -2
  296. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-format.js +4 -4
  297. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-handoff.js +6 -6
  298. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-tree.js +3 -3
  299. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.html +23 -23
  300. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.js +16 -16
  301. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +27 -26
  302. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +7 -4
  303. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +32 -31
  304. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +3 -2
  305. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +26 -20
  306. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +92 -69
  307. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-output.ts +7 -3
  308. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/behavior-seed.ts +545 -0
  309. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/library-evidence.ts +545 -0
  310. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/schema.ts +177 -2
  311. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/selfcheck.ts +424 -29
  312. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/spec-bindings.ts +133 -7
  313. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +302 -103
  314. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/zip.ts +99 -0
  315. package/skills/a2h-spec-generate/scripts/reqgen/src/i18n-term.d.mts +5 -0
  316. package/skills/a2h-spec-generate/scripts/reqgen/src/i18n-term.mjs +54 -0
  317. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +8 -0
  318. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/schema.ts +5 -1
  319. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +39 -33
  320. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +4 -3
  321. package/skills/a2h-spec-generate/scripts/reqgen/src/model/contracts.ts +4 -0
  322. package/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +48 -6
  323. package/skills/a2h-spec-generate/scripts/reqgen/src/model/prepare.ts +366 -5
  324. package/skills/a2h-spec-generate/scripts/reqgen/src/model/query.ts +102 -3
  325. package/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +81 -52
  326. package/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +21 -11
  327. package/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +2 -1
  328. package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +13 -4
  329. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-api.ts +2 -2
  330. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-code-view.ts +2 -2
  331. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-format.ts +4 -4
  332. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-handoff.ts +6 -6
  333. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-tree.ts +3 -3
  334. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz.ts +16 -16
  335. package/skills/a2h-utg-explorer/assets/final_viewer.html +21 -21
  336. package/skills/a2h-utg-explorer/references/architecture.md +7 -2
  337. package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +108 -9
  338. package/skills/a2h-utg-explorer/scripts/d_prereqs.mjs +21 -3
  339. package/skills/a2h-utg-explorer/scripts/hint_check.mjs +4 -1
  340. package/skills/a2h-utg-explorer/scripts/i18n-term.d.mts +5 -0
  341. package/skills/a2h-utg-explorer/scripts/i18n-term.mjs +54 -0
  342. package/skills/a2h-utg-explorer/scripts/panel_routes.mjs +229 -0
  343. package/skills/a2h-utg-explorer/scripts/plan.mjs +45 -2
  344. package/skills/a2h-utg-explorer/scripts/recover_b.mjs +2 -1
  345. package/skills/a2h-utg-explorer/scripts/report.mjs +38 -18
  346. package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +9 -2
  347. package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +179 -18
  348. package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +21 -4
  349. package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +449 -42
  350. package/skills/a2h-utg-static/SKILL.md +7 -0
  351. package/skills/a2h-utg-static/scripts/assemble.mjs +29 -2
  352. package/skills/a2h-utg-static/scripts/click_paths.mjs +42 -26
  353. package/skills/a2h-utg-static/scripts/fragment_nav.mjs +4 -2
  354. package/skills/a2h-utg-static/scripts/i18n-term.d.mts +5 -0
  355. package/skills/a2h-utg-static/scripts/i18n-term.mjs +54 -0
  356. package/skills/a2h-utg-static/scripts/manifest.mjs +91 -10
  357. package/skills/a2h-utg-static/scripts/nl_hints.mjs +68 -3
  358. package/skills/a2h-utg-static/scripts/presenter_nav.mjs +2 -1
  359. package/skills/a2h-utg-static/scripts/route_interceptor.mjs +374 -0
  360. package/skills/a2h-utg-static/scripts/static_prior.mjs +87 -33
  361. package/skills/a2h-utg-static/scripts/uniapp_nav.mjs +240 -8
  362. package/skills/a2h-utg-static/scripts/utg_html.mjs +51 -51
  363. package/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +100 -100
  364. package/devecocli-plugin/common.ts +0 -2203
  365. package/devecocli-plugin/install.ts +0 -61
  366. package/devecocli-plugin/uninstall.ts +0 -26
  367. package/devecocli-plugin/update.ts +0 -66
  368. package/index.js +0 -1418
  369. package/plugin.jsonc +0 -12
  370. package/skills/a2h-app-migrate/test/test_android_index.mjs +0 -80
  371. package/skills/a2h-app-migrate/test/test_apk_preflight.mjs +0 -63
  372. package/skills/a2h-app-migrate/test/test_arch_done.mjs +0 -54
  373. package/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +0 -92
  374. package/skills/a2h-app-migrate/test/test_config_example.mjs +0 -42
  375. package/skills/a2h-app-migrate/test/test_entry_guards.mjs +0 -93
  376. package/skills/a2h-app-migrate/test/test_env_requirements.mjs +0 -544
  377. package/skills/a2h-app-migrate/test/test_finalize.mjs +0 -89
  378. package/skills/a2h-app-migrate/test/test_gate_checkpoint.mjs +0 -146
  379. package/skills/a2h-app-migrate/test/test_hmos_fingerprint.mjs +0 -68
  380. package/skills/a2h-app-migrate/test/test_infer_android_root.mjs +0 -91
  381. package/skills/a2h-app-migrate/test/test_interaction.mjs +0 -122
  382. package/skills/a2h-app-migrate/test/test_json_io.mjs +0 -32
  383. package/skills/a2h-app-migrate/test/test_leaf_questions.mjs +0 -109
  384. package/skills/a2h-app-migrate/test/test_module_docs_done.mjs +0 -53
  385. package/skills/a2h-app-migrate/test/test_parse_args.mjs +0 -69
  386. package/skills/a2h-app-migrate/test/test_preflight_report.mjs +0 -93
  387. package/skills/a2h-app-migrate/test/test_resume_plan.mjs +0 -144
  388. package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +0 -100
  389. package/skills/a2h-app-migrate/test/test_run_dir.mjs +0 -315
  390. package/skills/a2h-app-migrate/test/test_skill_doc.mjs +0 -133
  391. package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +0 -133
  392. package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +0 -158
  393. package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +0 -181
  394. package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +0 -76
  395. package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +0 -53
  396. package/skills/a2h-app-migrate/test/test_ui_batch_gate.mjs +0 -226
  397. package/skills/a2h-app-migrate/test/test_uniapp_preflight.mjs +0 -83
  398. package/skills/a2h-app-migrate/test/test_utg_dirs.mjs +0 -39
  399. package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +0 -168
  400. package/skills/a2h-app-migrate/test/test_validate_races.mjs +0 -50
  401. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/build.gradle +0 -11
  402. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/AndroidManifest.xml +0 -12
  403. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/MainActivity.kt +0 -8
  404. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/NotesStore.kt +0 -17
  405. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/build.gradle +0 -3
  406. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/settings.gradle +0 -1
  407. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/AppScope/app.json5 +0 -8
  408. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/build-profile.json5 +0 -14
  409. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/build-profile.json5 +0 -7
  410. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/oh-package.json5 +0 -1
  411. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/src/main/ets/utils/Format.ets +0 -3
  412. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/build-profile.json5 +0 -7
  413. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/oh-package.json5 +0 -1
  414. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/src/main/ets/pages/Home.ets +0 -3
  415. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/build-profile.json5 +0 -7
  416. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/oh-package.json5 +0 -1
  417. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/src/main/ets/engine/SyncEngine.ets +0 -3
  418. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/hvigorfile.ts +0 -1
  419. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/oh-package.json5 +0 -1
  420. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/build-profile.json5 +0 -7
  421. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/oh-package.json5 +0 -9
  422. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/src/main/ets/pages/Index.ets +0 -7
  423. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/App.vue +0 -10
  424. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/manifest.json +0 -6
  425. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages/index/index.vue +0 -16
  426. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages.json +0 -5
  427. package/skills/a2h-arch-generate/scripts/tests/e2e/run_e2e.mjs +0 -548
  428. package/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +0 -1122
  429. package/skills/a2h-arch-generate/scripts/tests/test_cleanup.mjs +0 -191
  430. package/skills/a2h-arch-generate/scripts/tests/test_console_encoding.mjs +0 -52
  431. package/skills/a2h-arch-generate/scripts/tests/test_git_root.mjs +0 -34
  432. package/skills/a2h-arch-generate/scripts/tests/test_router.mjs +0 -138
  433. package/skills/a2h-arkts-logic-coder/scripts/check_module_scope.ts +0 -224
  434. package/skills/a2h-batch-ui-align/flowchart.html +0 -271
  435. package/skills/a2h-batch-ui-align/references/mvvm/@Link/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -648
  436. package/skills/a2h-batch-ui-align/references/mvvm/@Observed/350/243/205/351/245/260/345/231/250/345/222/214@ObjectLink/350/243/205/351/245/260/345/231/250/357/274/232/345/265/214/345/245/227/347/261/273/345/257/271/350/261/241/345/261/236/346/200/247/345/217/230/345/214/226.md +0 -2089
  437. package/skills/a2h-batch-ui-align/references/mvvm/@Prop/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/215/225/345/220/221/345/220/214/346/255/245.md +0 -1033
  438. package/skills/a2h-batch-ui-align/references/mvvm/@Provide/350/243/205/351/245/260/345/231/250/345/222/214@Consume/350/243/205/351/245/260/345/231/250/357/274/232/344/270/216/345/220/216/344/273/243/347/273/204/344/273/266/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -1183
  439. package/skills/a2h-batch-ui-align/references/mvvm/@State/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/347/212/266/346/200/201.md +0 -576
  440. package/skills/a2h-batch-ui-align/references/mvvm/@Track/350/243/205/351/245/260/345/231/250/357/274/232class/345/257/271/350/261/241/345/261/236/346/200/247/347/272/247/346/233/264/346/226/260.md +0 -297
  441. package/skills/a2h-batch-ui-align/references/mvvm/@Watch/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/346/233/264/346/224/271/351/200/232/347/237/245.md +0 -395
  442. package/skills/a2h-batch-ui-align/references/mvvm/AppStorage/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200/347/232/204UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -903
  443. package/skills/a2h-batch-ui-align/references/mvvm/Environment/357/274/232/350/256/276/345/244/207/347/216/257/345/242/203/346/237/245/350/257/242.md +0 -106
  444. package/skills/a2h-batch-ui-align/references/mvvm/LocalStorage/357/274/232/351/241/265/351/235/242/347/272/247UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -1178
  445. package/skills/a2h-batch-ui-align/references/mvvm/MVVM/346/250/241/345/274/217/357/274/210V1/357/274/211.md +0 -911
  446. package/skills/a2h-batch-ui-align/references/mvvm/PersistentStorage/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +0 -355
  447. package/skills/a2h-batch-ui-align/references/mvvm//347/256/241/347/220/206/345/272/224/347/224/250/346/213/245/346/234/211/347/232/204/347/212/266/346/200/201/346/246/202/350/277/260.md +0 -11
  448. package/skills/a2h-batch-ui-align/references/mvvm-v2/!!/350/257/255/346/263/225/357/274/232/345/217/214/345/220/221/347/273/221/345/256/232.md +0 -206
  449. package/skills/a2h-batch-ui-align/references/mvvm-v2/@Computed/350/243/205/351/245/260/345/231/250/357/274/232/350/256/241/347/256/227/345/261/236/346/200/247.md +0 -373
  450. package/skills/a2h-batch-ui-align/references/mvvm-v2/@Event/350/243/205/351/245/260/345/231/250/357/274/232/350/247/204/350/214/203/347/273/204/344/273/266/350/276/223/345/207/272.md +0 -158
  451. package/skills/a2h-batch-ui-align/references/mvvm-v2/@Local/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/351/203/250/347/212/266/346/200/201.md +0 -750
  452. package/skills/a2h-batch-ui-align/references/mvvm-v2/@Monitor/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/344/277/256/346/224/271/345/274/202/346/255/245/347/233/221/345/220/254.md +0 -1704
  453. package/skills/a2h-batch-ui-align/references/mvvm-v2/@ObservedV2/350/243/205/351/245/260/345/231/250/345/222/214@Trace/350/243/205/351/245/260/345/231/250/357/274/232/347/261/273/345/261/236/346/200/247/345/217/230/345/214/226/350/247/202/346/265/213.md +0 -1012
  454. package/skills/a2h-batch-ui-align/references/mvvm-v2/@Once/350/243/205/351/245/260/345/231/250/357/274/232/345/210/235/345/247/213/345/214/226/345/220/214/346/255/245/344/270/200/346/254/241.md +0 -164
  455. package/skills/a2h-batch-ui-align/references/mvvm-v2/@Param/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/244/226/351/203/250/350/276/223/345/205/245.md +0 -840
  456. package/skills/a2h-batch-ui-align/references/mvvm-v2/@Provider/350/243/205/351/245/260/345/231/250/345/222/214@Consumer/350/243/205/351/245/260/345/231/250/357/274/232/350/267/250/347/273/204/344/273/266/345/261/202/347/272/247/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -856
  457. package/skills/a2h-batch-ui-align/references/mvvm-v2/@Type/350/243/205/351/245/260/345/231/250/357/274/232/346/240/207/350/256/260/347/261/273/345/261/236/346/200/247/347/232/204/347/261/273/345/236/213.md +0 -83
  458. package/skills/a2h-batch-ui-align/references/mvvm-v2/AppStorageV2/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -294
  459. package/skills/a2h-batch-ui-align/references/mvvm-v2/MVVM/346/250/241/345/274/217/357/274/210V2/357/274/211.md +0 -1407
  460. package/skills/a2h-batch-ui-align/references/mvvm-v2/PersistenceV2/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +0 -1220
  461. package/skills/a2h-batch-ui-align/references/mvvm-v2/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +0 -47
  462. package/skills/a2h-batch-ui-align/references/mvvm-v2/_/350/243/205/351/245/260/345/231/250/351/200/237/346/237/245.md +0 -133
  463. package/skills/a2h-batch-ui-align/references/mvvm-v2//347/212/266/346/200/201/347/256/241/347/220/206V1/345/220/221V2/350/277/201/347/247/273/344/270/216/346/267/267/347/224/250/346/214/207/345/257/274.md +0 -840
  464. package/skills/a2h-batch-ui-align/scripts/tests/agent_cli.test.mjs +0 -217
  465. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_align_tint.test.mjs +0 -253
  466. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_canvas_pct.test.mjs +0 -312
  467. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_fidelity.test.mjs +0 -241
  468. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +0 -365
  469. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_review_fixes.test.mjs +0 -298
  470. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rules.test.mjs +0 -365
  471. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_shell.test.mjs +0 -91
  472. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +0 -473
  473. package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +0 -356
  474. package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_scope.test.mjs +0 -290
  475. package/skills/a2h-batch-ui-align/scripts/tests/color_utils_asset.test.mjs +0 -74
  476. package/skills/a2h-batch-ui-align/scripts/tests/export_scroll_states.test.mjs +0 -31
  477. package/skills/a2h-batch-ui-align/scripts/tests/export_ui_info.test.mjs +0 -564
  478. package/skills/a2h-batch-ui-align/scripts/tests/generate_pages_json.test.mjs +0 -123
  479. package/skills/a2h-batch-ui-align/scripts/tests/group_commit.test.mjs +0 -126
  480. package/skills/a2h-batch-ui-align/scripts/tests/group_pack.test.mjs +0 -241
  481. package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +0 -1451
  482. package/skills/a2h-batch-ui-align/scripts/tests/group_watch.test.mjs +0 -215
  483. package/skills/a2h-batch-ui-align/scripts/tests/harmony_index.test.mjs +0 -95
  484. package/skills/a2h-batch-ui-align/scripts/tests/host_env.test.mjs +0 -115
  485. package/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +0 -170
  486. package/skills/a2h-batch-ui-align/scripts/tests/occlusion.test.mjs +0 -102
  487. package/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +0 -244
  488. package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +0 -166
  489. package/skills/a2h-batch-ui-align/scripts/tests/test_bfs_exit.ts +0 -49
  490. package/skills/a2h-batch-ui-align/scripts/tests/text_color_diff.test.mjs +0 -219
  491. package/skills/a2h-dashboard-render/references//347/234/213/346/235/277/350/257/264/346/230/216.md +0 -83
  492. package/skills/a2h-dashboard-render/test/fixtures/page_capture/broken.xml +0 -1
  493. package/skills/a2h-dashboard-render/test/fixtures/page_capture/expected.json +0 -156
  494. package/skills/a2h-dashboard-render/test/fixtures/page_capture/hmos.json +0 -1
  495. package/skills/a2h-dashboard-render/test/fixtures/page_capture/list.xml +0 -1
  496. package/skills/a2h-dashboard-render/test/fixtures/page_capture/nested_scroll.xml +0 -1
  497. package/skills/a2h-dashboard-render/test/test_artifact_contract.mjs +0 -170
  498. package/skills/a2h-dashboard-render/test/test_cli_check_registry.mjs +0 -99
  499. package/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +0 -182
  500. package/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +0 -64
  501. package/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +0 -1172
  502. package/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +0 -251
  503. package/skills/a2h-dashboard-render/test/test_dashboard_ui_pipeline.mjs +0 -81
  504. package/skills/a2h-dashboard-render/test/test_device_capture_env.mjs +0 -115
  505. package/skills/a2h-dashboard-render/test/test_device_capture_policy.mjs +0 -303
  506. package/skills/a2h-dashboard-render/test/test_page_capture.mjs +0 -147
  507. package/skills/a2h-dashboard-render/test/test_usage_readers.mjs +0 -444
  508. package/skills/a2h-module-semantic-docs/test/golden/module_structure.json +0 -187
  509. package/skills/a2h-module-semantic-docs/test/golden/module_understanding.json +0 -351
  510. package/skills/a2h-module-semantic-docs/test/golden/module_update_plan.json +0 -495
  511. package/skills/a2h-module-semantic-docs/test/golden/project_directory_structure.json +0 -157
  512. package/skills/a2h-module-semantic-docs/test/test_scan_and_commit.mjs +0 -388
  513. package/skills/a2h-resource-convert/scripts/tests/adaptive_icon.test.mjs +0 -182
  514. package/skills/a2h-resource-convert/scripts/tests/app_identity.test.mjs +0 -206
  515. package/skills/a2h-spec-design/test/golden/inspect_happy.json +0 -20
  516. package/skills/a2h-spec-design/test/golden/move_design.md +0 -18
  517. package/skills/a2h-spec-design/test/golden/move_design_crlf.md +0 -18
  518. package/skills/a2h-spec-design/test/golden/move_spec.md +0 -7
  519. package/skills/a2h-spec-design/test/golden/resolve_cases.json +0 -36
  520. package/skills/a2h-spec-design/test/golden/validate_issue_file.md +0 -12
  521. package/skills/a2h-spec-design/test/golden/validate_issues.json +0 -57
  522. package/skills/a2h-spec-design/test/test_spec_design_scripts.mjs +0 -381
  523. package/skills/a2h-spec-design-pipeline/scripts/inflight.mjs +0 -944
  524. package/skills/a2h-spec-design-pipeline/scripts/lib/bgcli.mjs +0 -95
  525. package/skills/a2h-spec-design-pipeline/scripts/reconcile.mjs +0 -218
  526. package/skills/a2h-spec-design-pipeline/scripts/test_bgcli.mjs +0 -64
  527. package/skills/a2h-spec-design-pipeline/scripts/test_inflight.mjs +0 -452
  528. package/skills/a2h-spec-design-pipeline/scripts/test_reconcile.mjs +0 -182
  529. package/skills/a2h-spec-design-pipeline/scripts/test_watchdog.mjs +0 -289
  530. package/skills/a2h-spec-design-pipeline/scripts/watchdog.mjs +0 -441
  531. package/skills/a2h-spec-generate/scripts/reqgen/test/control-fact-join.test.ts +0 -50
  532. package/skills/a2h-spec-generate/scripts/reqgen/test/control-name-uniapp.test.ts +0 -75
  533. package/skills/a2h-spec-generate/scripts/reqgen/test/cross-area-anchor.test.ts +0 -256
  534. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-area-facts.test.ts +0 -576
  535. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +0 -290
  536. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +0 -1323
  537. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +0 -574
  538. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-scope.test.ts +0 -339
  539. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-selfcheck.test.ts +0 -831
  540. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +0 -548
  541. package/skills/a2h-spec-generate/scripts/reqgen/test/model-cli-blockers.test.ts +0 -117
  542. package/skills/a2h-spec-generate/scripts/reqgen/test/model-scope.test.ts +0 -396
  543. package/skills/a2h-spec-generate/scripts/reqgen/test/model-seeds.test.ts +0 -175
  544. package/skills/a2h-spec-generate/scripts/reqgen/test/model-task-contract.test.ts +0 -298
  545. package/skills/a2h-spec-generate/scripts/reqgen/test/model-v4.test.ts +0 -1061
  546. package/skills/a2h-spec-generate/scripts/reqgen/test/specgen-completeness.test.ts +0 -286
  547. package/skills/a2h-spec-generate/scripts/reqgen/test/stagem-stored-path.test.ts +0 -25
  548. package/skills/a2h-spec-generate/scripts/reqgen/test/uniapp-scanner.test.ts +0 -159
  549. package/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +0 -632
  550. package/skills/a2h-spec-generate/test/check-spec.test.ts +0 -200
  551. package/skills/a2h-spec-generate/test/collect-specs.test.mjs +0 -538
  552. package/skills/a2h-spec-generate/test/detect-project.test.mjs +0 -37
  553. package/skills/a2h-spec-generate/test/ensure-index.test.mjs +0 -45
  554. package/skills/a2h-spec-generate/test/feature-stem.test.mjs +0 -147
  555. package/skills/a2h-spec-generate/test/fixtures/android/app/src/main/AndroidManifest.xml +0 -3
  556. package/skills/a2h-spec-generate/test/fixtures/android/build.gradle +0 -3
  557. package/skills/a2h-spec-generate/test/fixtures/android/settings.gradle +0 -3
  558. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/package.json +0 -9
  559. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/App.vue +0 -8
  560. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/components/MyCard.vue +0 -9
  561. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/feature/editor/index.vue +0 -1
  562. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/main.ts +0 -6
  563. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/manifest.json +0 -4
  564. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/detail/index.vue +0 -1
  565. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/home/index.vue +0 -33
  566. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/settings/index.vue +0 -1
  567. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages.json +0 -23
  568. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/services/items.ts +0 -3
  569. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/tsconfig.json +0 -8
  570. package/skills/a2h-spec-generate/test/fixtures/unknown/README.txt +0 -1
  571. package/skills/a2h-spec-generate/test/inspect-uniapp.test.mjs +0 -54
  572. package/skills/a2h-spec-generate/test/publication-verdict.test.mjs +0 -157
  573. package/skills/a2h-spec-generate/test/publish-specs.test.mjs +0 -282
  574. package/skills/a2h-spec-generate/test/render-tasks.test.mjs +0 -593
  575. package/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +0 -66
  576. package/skills/a2h-utg-explorer/scripts/tests/chain.test.mjs +0 -45
  577. package/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +0 -243
  578. package/skills/a2h-utg-explorer/scripts/tests/coverage_rules.test.mjs +0 -104
  579. package/skills/a2h-utg-explorer/scripts/tests/d_prereqs.test.mjs +0 -223
  580. package/skills/a2h-utg-explorer/scripts/tests/device_health.test.mjs +0 -88
  581. package/skills/a2h-utg-explorer/scripts/tests/device_lock_retry.test.mjs +0 -187
  582. package/skills/a2h-utg-explorer/scripts/tests/direct_launch.test.mjs +0 -130
  583. package/skills/a2h-utg-explorer/scripts/tests/explorer_review_fixes.test.mjs +0 -136
  584. package/skills/a2h-utg-explorer/scripts/tests/final_utg.test.mjs +0 -135
  585. package/skills/a2h-utg-explorer/scripts/tests/first_round_phases.test.mjs +0 -16
  586. package/skills/a2h-utg-explorer/scripts/tests/generalization_fixes.test.mjs +0 -251
  587. package/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +0 -42
  588. package/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +0 -162
  589. package/skills/a2h-utg-explorer/scripts/tests/node_coverage.test.mjs +0 -193
  590. package/skills/a2h-utg-explorer/scripts/tests/overflow_prefix.test.mjs +0 -204
  591. package/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +0 -355
  592. package/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +0 -240
  593. package/skills/a2h-utg-explorer/scripts/tests/recover.test.mjs +0 -212
  594. package/skills/a2h-utg-explorer/scripts/tests/recover_b.test.mjs +0 -173
  595. package/skills/a2h-utg-explorer/scripts/tests/recover_d.test.mjs +0 -280
  596. package/skills/a2h-utg-explorer/scripts/tests/review_fixes.test.mjs +0 -213
  597. package/skills/a2h-utg-explorer/scripts/tests/robustness_fixes.test.mjs +0 -345
  598. package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +0 -453
  599. package/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +0 -131
  600. package/skills/a2h-utg-explorer/scripts/tests/scope.test.mjs +0 -229
  601. package/skills/a2h-utg-explorer/scripts/tests/scroll_sweep.test.mjs +0 -336
  602. package/skills/a2h-utg-explorer/scripts/tests/semantics.test.mjs +0 -102
  603. package/skills/a2h-utg-explorer/scripts/tests/state_ambiguity.test.mjs +0 -92
  604. package/skills/a2h-utg-explorer/scripts/tests/twin_opener.test.mjs +0 -119
  605. package/skills/a2h-utg-explorer/scripts/tests/u2_backend.test.mjs +0 -346
  606. package/skills/a2h-utg-explorer/scripts/tests/ui_state_anchors.test.mjs +0 -112
  607. package/skills/a2h-utg-explorer/scripts/tests/variant_strings.test.mjs +0 -63
  608. package/skills/a2h-utg-explorer/scripts/tests/worklist_parts.test.mjs +0 -24
  609. package/skills/a2h-utg-static/scripts/tests/_zipw.mjs +0 -28
  610. package/skills/a2h-utg-static/scripts/tests/probe_autoload.mjs +0 -108
  611. package/skills/a2h-utg-static/scripts/tests/probe_layout_fragments.mjs +0 -90
  612. package/skills/a2h-utg-static/scripts/tests/probe_unknown_scope.mjs +0 -61
  613. package/skills/a2h-utg-static/scripts/tests/regression_matrix.mjs +0 -1261
  614. package/skills/a2h-utg-static/scripts/tests/test_activity_alias_launcher.mjs +0 -90
  615. package/skills/a2h-utg-static/scripts/tests/test_activity_supertype_chain.mjs +0 -106
  616. package/skills/a2h-utg-static/scripts/tests/test_bottom_sheet_container.mjs +0 -58
  617. package/skills/a2h-utg-static/scripts/tests/test_branch_guard.mjs +0 -19
  618. package/skills/a2h-utg-static/scripts/tests/test_callee_string_default.mjs +0 -30
  619. package/skills/a2h-utg-static/scripts/tests/test_carry_answers.mjs +0 -103
  620. package/skills/a2h-utg-static/scripts/tests/test_chrome_tokens.mjs +0 -60
  621. package/skills/a2h-utg-static/scripts/tests/test_commented_out_trigger.mjs +0 -111
  622. package/skills/a2h-utg-static/scripts/tests/test_commit_scope.mjs +0 -113
  623. package/skills/a2h-utg-static/scripts/tests/test_compose_file_private_route.mjs +0 -117
  624. package/skills/a2h-utg-static/scripts/tests/test_compose_nested_graph.mjs +0 -166
  625. package/skills/a2h-utg-static/scripts/tests/test_compose_route_holder_collision.mjs +0 -112
  626. package/skills/a2h-utg-static/scripts/tests/test_compose_vm_nav.mjs +0 -289
  627. package/skills/a2h-utg-static/scripts/tests/test_custom_source_root.mjs +0 -71
  628. package/skills/a2h-utg-static/scripts/tests/test_defensive_null_guard.mjs +0 -77
  629. package/skills/a2h-utg-static/scripts/tests/test_dialog_orphan_entries.mjs +0 -99
  630. package/skills/a2h-utg-static/scripts/tests/test_dialog_page_owner.mjs +0 -69
  631. package/skills/a2h-utg-static/scripts/tests/test_dialogshow_builder_forms.mjs +0 -96
  632. package/skills/a2h-utg-static/scripts/tests/test_dialogshow_java_factory.mjs +0 -37
  633. package/skills/a2h-utg-static/scripts/tests/test_disabled_guard.mjs +0 -42
  634. package/skills/a2h-utg-static/scripts/tests/test_drawer_panel_gesture.mjs +0 -140
  635. package/skills/a2h-utg-static/scripts/tests/test_edge_dedupe_by_gesture.mjs +0 -111
  636. package/skills/a2h-utg-static/scripts/tests/test_edge_provenance_lint.mjs +0 -70
  637. package/skills/a2h-utg-static/scripts/tests/test_enclosing_gesture.mjs +0 -69
  638. package/skills/a2h-utg-static/scripts/tests/test_external_surface_roots.mjs +0 -43
  639. package/skills/a2h-utg-static/scripts/tests/test_find_package_indirect.mjs +0 -67
  640. package/skills/a2h-utg-static/scripts/tests/test_forwarding_wrapper.mjs +0 -38
  641. package/skills/a2h-utg-static/scripts/tests/test_fragment_containment.mjs +0 -85
  642. package/skills/a2h-utg-static/scripts/tests/test_fragment_helper_trigger.mjs +0 -92
  643. package/skills/a2h-utg-static/scripts/tests/test_graph.mjs +0 -55
  644. package/skills/a2h-utg-static/scripts/tests/test_guard_clause.mjs +0 -86
  645. package/skills/a2h-utg-static/scripts/tests/test_hint_language.mjs +0 -119
  646. package/skills/a2h-utg-static/scripts/tests/test_host_kind_by_chain.mjs +0 -68
  647. package/skills/a2h-utg-static/scripts/tests/test_hybrid_bundle_attribution.mjs +0 -74
  648. package/skills/a2h-utg-static/scripts/tests/test_hybrid_bundled_pages.mjs +0 -181
  649. package/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +0 -293
  650. package/skills/a2h-utg-static/scripts/tests/test_hybrid_title_renders.mjs +0 -118
  651. package/skills/a2h-utg-static/scripts/tests/test_interaction_sites.mjs +0 -272
  652. package/skills/a2h-utg-static/scripts/tests/test_item_data_instance.mjs +0 -51
  653. package/skills/a2h-utg-static/scripts/tests/test_kotlin_fn_spans.mjs +0 -69
  654. package/skills/a2h-utg-static/scripts/tests/test_label_accessor_forms.mjs +0 -187
  655. package/skills/a2h-utg-static/scripts/tests/test_label_source.mjs +0 -70
  656. package/skills/a2h-utg-static/scripts/tests/test_launch_intent_guard.mjs +0 -67
  657. package/skills/a2h-utg-static/scripts/tests/test_layout_declared_fragment.mjs +0 -103
  658. package/skills/a2h-utg-static/scripts/tests/test_listener_call_forms.mjs +0 -79
  659. package/skills/a2h-utg-static/scripts/tests/test_listener_receiver_binding.mjs +0 -47
  660. package/skills/a2h-utg-static/scripts/tests/test_manifest_exported_default.mjs +0 -40
  661. package/skills/a2h-utg-static/scripts/tests/test_manifest_filters_modules.mjs +0 -84
  662. package/skills/a2h-utg-static/scripts/tests/test_manifest_srcfile.mjs +0 -68
  663. package/skills/a2h-utg-static/scripts/tests/test_mode_and_cb_param.mjs +0 -172
  664. package/skills/a2h-utg-static/scripts/tests/test_module_namespace.mjs +0 -33
  665. package/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +0 -44
  666. package/skills/a2h-utg-static/scripts/tests/test_multiple_entry_contracts.mjs +0 -80
  667. package/skills/a2h-utg-static/scripts/tests/test_nav_graph_xml.mjs +0 -35
  668. package/skills/a2h-utg-static/scripts/tests/test_nl_hint_grammar.mjs +0 -42
  669. package/skills/a2h-utg-static/scripts/tests/test_nl_hints_gate.mjs +0 -85
  670. package/skills/a2h-utg-static/scripts/tests/test_node_id_collision.mjs +0 -57
  671. package/skills/a2h-utg-static/scripts/tests/test_non_gesture_step_flag.mjs +0 -62
  672. package/skills/a2h-utg-static/scripts/tests/test_out_of_scope_and_settings.mjs +0 -72
  673. package/skills/a2h-utg-static/scripts/tests/test_overload_and_climb.mjs +0 -86
  674. package/skills/a2h-utg-static/scripts/tests/test_pager_page_source.mjs +0 -78
  675. package/skills/a2h-utg-static/scripts/tests/test_pager_position_zero.mjs +0 -65
  676. package/skills/a2h-utg-static/scripts/tests/test_pager_variant_guard.mjs +0 -172
  677. package/skills/a2h-utg-static/scripts/tests/test_pipeline_llm_phases.mjs +0 -107
  678. package/skills/a2h-utg-static/scripts/tests/test_plain_dialog_nodes.mjs +0 -167
  679. package/skills/a2h-utg-static/scripts/tests/test_plaindialog_shared_anchor.mjs +0 -117
  680. package/skills/a2h-utg-static/scripts/tests/test_preference_click_nav.mjs +0 -98
  681. package/skills/a2h-utg-static/scripts/tests/test_preference_host_binding.mjs +0 -87
  682. package/skills/a2h-utg-static/scripts/tests/test_preference_nesting.mjs +0 -183
  683. package/skills/a2h-utg-static/scripts/tests/test_preference_widgets.mjs +0 -48
  684. package/skills/a2h-utg-static/scripts/tests/test_read_text_crlf.mjs +0 -41
  685. package/skills/a2h-utg-static/scripts/tests/test_resolver_tier_parity.mjs +0 -126
  686. package/skills/a2h-utg-static/scripts/tests/test_result_launcher.mjs +0 -142
  687. package/skills/a2h-utg-static/scripts/tests/test_review_fixes.mjs +0 -135
  688. package/skills/a2h-utg-static/scripts/tests/test_route_token_words.mjs +0 -66
  689. package/skills/a2h-utg-static/scripts/tests/test_same_name_decl_scope.mjs +0 -236
  690. package/skills/a2h-utg-static/scripts/tests/test_scope_utils.mjs +0 -85
  691. package/skills/a2h-utg-static/scripts/tests/test_sealed_dialog_state.mjs +0 -148
  692. package/skills/a2h-utg-static/scripts/tests/test_shared_overlay_split.mjs +0 -63
  693. package/skills/a2h-utg-static/scripts/tests/test_slug_parity.mjs +0 -58
  694. package/skills/a2h-utg-static/scripts/tests/test_starter_node_id.mjs +0 -41
  695. package/skills/a2h-utg-static/scripts/tests/test_state_guard_arity.mjs +0 -109
  696. package/skills/a2h-utg-static/scripts/tests/test_state_guard_commented_candidates.mjs +0 -68
  697. package/skills/a2h-utg-static/scripts/tests/test_state_guard_model_gates.mjs +0 -127
  698. package/skills/a2h-utg-static/scripts/tests/test_state_specific_hop.mjs +0 -130
  699. package/skills/a2h-utg-static/scripts/tests/test_synthetic_label_identity.mjs +0 -51
  700. package/skills/a2h-utg-static/scripts/tests/test_template_method_layout.mjs +0 -81
  701. package/skills/a2h-utg-static/scripts/tests/test_template_title.mjs +0 -58
  702. package/skills/a2h-utg-static/scripts/tests/test_trigger_id_spelling.mjs +0 -68
  703. package/skills/a2h-utg-static/scripts/tests/test_ui_elements_action_override.mjs +0 -91
  704. package/skills/a2h-utg-static/scripts/tests/test_ui_elements_flow_filter.mjs +0 -110
  705. package/skills/a2h-utg-static/scripts/tests/test_ui_elements_nl_hint_key.mjs +0 -89
  706. package/skills/a2h-utg-static/scripts/tests/test_uiless_host_fold.mjs +0 -98
  707. package/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +0 -231
  708. package/skills/a2h-utg-static/scripts/tests/test_view_click_refs.mjs +0 -104
  709. package/skills/a2h-utg-static/scripts/tests/test_view_id_label.mjs +0 -69
  710. package/skills/a2h-utg-static/scripts/tests/test_view_interactions.mjs +0 -346
  711. package/skills/a2h-utg-static/scripts/tests/test_viewpage_nav.mjs +0 -340
  712. package/skills/a2h-utg-static/scripts/tests/test_vm_nav_helper_navigate.mjs +0 -98
  713. package/skills/a2h-utg-static/scripts/tests/test_widget_class_scope.mjs +0 -92
  714. package/skills/a2h-utg-static/scripts/tests/test_window_nav_kotlin.mjs +0 -158
  715. package/skills/a2h-utg-static/scripts/tests/test_worklist_parts.mjs +0 -65
@@ -1,15 +1,14 @@
1
1
  ---
2
2
  name: a2h-spec-design-pipeline
3
- description: "Grouped Android→HarmonyOS migration orchestrator driven by a specs.json list. Groups specs by page directory (one page/feature unit per group) and runs one wave loop: deterministic deps-aware membership slicing, per-wave design (every group designed exactly once), then execution — parallel coding in isolated git worktrees with a serial completion-ordered merge queue and bounded conflict recovery, one build per wave, per-group parallel review plus bounded review-fix rounds, one semantic-docs refresh, per-group marker commits. Use when the user supplies specs.json, an Android source dir, a target HarmonyOS dir, and a design output dir, and wants design→convert→docs→commit for every spec. For UI-page migration use a2h-ui-spec-pipeline. Triggers: \"specs.json 迁移\", \"spec pipeline\", \"a2h-spec-design-pipeline\", \"a2h-spec-pipeline\", \"批量生成设计并转换\"."
3
+ description: "Grouped Android→HarmonyOS migration orchestrator driven by a specs.json list. Groups specs by page directory (one page/feature unit per group) and runs one wave loop: deterministic deps-aware membership slicing, per-chunk design inside coding, then execution — parallel coding in isolated git worktrees with a serial completion-ordered merge queue and bounded conflict recovery, one build per wave, per-group parallel review plus bounded review-fix rounds, one semantic-docs refresh, per-group marker commits. Use when the user supplies specs.json, an Android source dir, a target HarmonyOS dir, and a design output dir, and wants design→convert→docs→commit for every spec. For UI-page migration use a2h-ui-spec-pipeline. Triggers: \"specs.json 迁移\", \"spec pipeline\", \"a2h-spec-design-pipeline\", \"a2h-spec-pipeline\", \"批量生成设计并转换\"."
4
4
  ---
5
5
 
6
6
  # a2h-spec-design-pipeline — 分组并行「设计 → 转换」流水线
7
7
 
8
- This skill is a thin **orchestrator**. It owns no conversion logic of its own; it groups a `specs.json` list into page-level **groups** (one group per spec-file parent directory) and runs a single **wave loop** until no groups remain. Each wave runs S0 → B0 → W0 → B1⇄B2 → B3 → B4 → B5 → C:
8
+ This skill is a thin **orchestrator**. It owns no conversion logic of its own; it groups a `specs.json` list into page-level **groups** (one group per spec-file parent directory) and runs a single **wave loop** until no groups remain. Each wave runs S0 → W0 → B1⇄B2 → B3 → B4 → B5 → C:
9
9
 
10
10
  1. **S0 — slice this wave.** `scripts/plan_waves.ts` (incremental: each call assigns the next wave) slices the wave with a **deps-aware backfill** scan in group order (full algorithm at S0); when the deps forecast for the remaining pool implies more than 2× the width-bound ideal dispatch rounds (coder concurrency collapse), it slices **flat** instead — pure group order, `mode: "flat"` on the wave entry, and `deps_ready.ts` releases every member (deps stop shaping concurrency; conflicts surface as B2 merge work). Wave numbers are not monotone in group order.
11
- 2. **B0 — design this wave's groups.** One `a2h-spec-design` sub-agent per member, dispatched as one batch; **every group is designed exactly once for the whole campaign**, at the B0 of its own wave (details at B0).
12
- 3. **W0 → B1⇄B2 → … → C — execute the wave.** Background parallel coding (one isolated git worktree per group; chunks chain serially per group; deps-unsatisfied members held and released as their deps merge — dispatch-hold, `deps_ready.ts`) interleaved with a **serial merge queue** (a group merges the moment its coding completes; every landing a main-side `--no-ff` merge commit; bounded conflict-recovery ladder) → actual-write audit → wiring application → **one** build → per-group parallel reviews + bounded fix rounds → **one** semantic-docs refresh → per-group marker commits.
11
+ 2. **W0 → B1⇄B2 → … → C — execute the wave.** Background parallel coding (one isolated git worktree per group; chunks chain serially per group; deps-unsatisfied members held and released as their deps merge — dispatch-hold, `deps_ready.ts`) interleaved with a **serial merge queue** (a group merges the moment its coding completes; every landing a main-side `--no-ff` merge commit; bounded conflict-recovery ladder) → actual-write audit → wiring application → **one** build → per-group parallel reviews + bounded fix rounds → **one** semantic-docs refresh → per-group marker commits. Design is generated per chunk inside B1.
13
12
 
14
13
  Deterministic precomputation lives in the scripts (inventory: `references/scripts.md`); the orchestrator runs them and reads their JSON — it never re-derives paths or counts by hand.
15
14
 
@@ -18,18 +17,20 @@ Deterministic precomputation lives in the scripts (inventory: `references/script
18
17
  | File | Owns | Read |
19
18
  |---|---|---|
20
19
  | `references/initialization.md` | I1–I4: input validation, the `plan_groups.ts` + `resolve_wiring.ts` precompute, environment prerequisites, one-time setup, announcement | at run start |
21
- | `references/coding-loop.md` | B1: chunk pointers, the in-flight ledger protocol, the event loop, the turn-end sequence + guard, watchdog wakeup disposal, the chunk dispatch contract | before entering the wave loop |
22
- | `references/merge-queue.md` | B2: the actual-write audit, serial landing, the conflict recovery ladder, the wave-end wiring application | whenever a merge is enqueued, popped, or conflicts |
23
- | `references/state-and-resume.md` | mid-flight detection, the state schema / atomic-write / `.bak` restore rules, the resume comparison | on any resume or state restore |
24
- | `references/execution-model.md` | ledger operation order, wakeup discipline, liveness/terminal rules, watchdog discipline | on every wakeup |
20
+ | `references/coding-loop.md` | B1: chunk pointers, the dispatch ledger protocol, the spec §11 event loop, the turn-end sequence + guard, waker wakeup disposal, the chunk dispatch contract | before entering the wave loop |
21
+ | `references/merge-queue.md` | B2: the actual-write audit, serial generation-branch landing, the conflict recovery ladder, the wave-end wiring application | whenever a merge is enqueued, popped, or conflicts |
22
+ | `references/state-and-resume.md` | mid-flight detection, `runId` + reconcile, one-way state repair, the state schema / atomic-write / `.bak` restore rules | on any resume or state restore |
23
+ | `references/execution-model.md` | the ledger contract: events, identity/CAS, the state machine, timeouts/`runId`, reconcile, `wait`/waker discipline | on every wakeup |
24
+ | `references/legacy-cleanup.md` | one-time runtime cleanup on resume (retired `.hometrans` dispatch files) | once before the first `init --new-run` |
25
25
  | `references/scripts.md` | script + test inventory | as needed |
26
+ | `references/static-defect-gate.md` | Homecheck static-defect check and repair | before the smoke gate |
26
27
  | `references/final-report-template.md` | the Finalization summary report template | at Finalization |
27
28
 
28
- **Execution model — every stage runs in an isolated sub-agent** (details at I5): the orchestrator parses compact JSON results, runs the scripts and git/worktree bookkeeping itself, and dispatches the next stage. B1's chunk agents, B2's conflict resolvers, and the zero-model-turn **watchdog sentinel** are the only **background mode** dispatches; all user interaction is confined to **Initialization** — once the wave loop starts the run is autonomous (per-group failures logged, never paused). Background completion notifications are the run's only wakeup source, and one that never arrives strands the whole wave — so every background dispatch is registered in the on-disk **in-flight ledger** (`inflight.mjs`) before it leaves, and the watchdog sentinel keeps a wakeup alive even when no notification ever arrives (full discipline: `references/execution-model.md`).
29
+ **Execution model — every stage runs in an isolated sub-agent** (details at I5): the orchestrator parses compact JSON results, runs the scripts and git/worktree bookkeeping itself, and dispatches the next stage. B1's chunk agents and B2's conflict resolvers are the only **background mode** dispatches; all user interaction is confined to **Initialization** — once the wave loop starts the run is autonomous (per-group failures logged, never paused). Background completion notifications are the run's only immediate wakeup source, and one that never arrives strands the whole wave — so every background dispatch is claimed on the on-disk **dispatch ledger** (`dispatch.mjs`) before it leaves, and a durable **waker** (`dispatch.mjs waker`) holds a wakeup independently of any notification (full discipline: `references/execution-model.md`).
29
30
 
30
31
  **Scope — spec logic, not UI rendering.** This pipeline migrates **behavioral specs** (ViewModels, services, repositories, data entities, DB/Preferences access, navigation wiring); it does not synthesize ArkUI page layouts (use `a2h-ui-spec-pipeline` / `a2h-batch-ui-align` for that). Each group's `ui_sequence`s serve as navigation/ownership context only.
31
32
 
32
- > **Note on commits.** Coder sub-agents commit in their own worktree branches; the wave-end merge preserves those commits. The orchestrator adds: one `wiring` commit per wave, per-wave fix commits (build-fixer; the fix-mode code-reviewer commits its own `fix(review)` commits), and one marker commit per group — `group <G> (specs so-a..so-b)` — carrying that group's design file, design-map row, and residual changes.
33
+ > **Note on commits.** Coder sub-agents commit in their own worktree branches; the wave-end merge preserves those commits. The orchestrator adds: one `wiring` commit per wave, per-wave fix commits (build-fixer; the fix-mode code-reviewer commits its own `fix(review)` commits), and one marker commit per group — `group <G> (specs so-a..so-b)` — carrying that group's residual changes (the chunk designs and design_map.md are runtime artifacts and stay ignored).
33
34
 
34
35
  ## Inputs
35
36
 
@@ -40,11 +41,12 @@ Parse the arguments from the user's message (natural language is fine — no fix
40
41
  | `SPECS_JSON` | Path to the specs.json list (required) | — |
41
42
  | `ANDROID` | Android source project root (required) | — |
42
43
  | `HMOS` | Target HarmonyOS project root (required; must be a git repo) | — |
43
- | `DESIGN_DIR` | Output dir for `SPEC_DESIGN_G<G>.md` design files | `<HMOS>/.hometrans/spec_design/` |
44
+ | `DESIGN_DIR` | Output dir for `SPEC_DESIGN_G<G>_c<k>.md` | `<HMOS>/.hometrans/spec_design/` |
44
45
  | `ENGINE_MODE` | Homegraph evidence strictness (`auto`/`off`/`required`) | `auto` |
45
46
  | `WAVE_WIDTH` | Groups per wave (parallel coders; exact except the tail wave) | `10` |
46
47
  | `MAX_SCEN` | Max scenarios per coding chunk (spec atomic) | `32` |
47
48
  | `DEVECO_HOME` | `--deveco-home`: DevEco root for every build | env |
49
+ | `IMAGE_READ` | `--image-read true\|false`: whether this host's sub-agents can read image files (a2h-app-migrate probes it at bootstrap). `false` → every sub-agent prompt carries the no-image rule of I5. Never probe it by opening an image in this session | `true` |
48
50
 
49
51
  ### specs.json format
50
52
 
@@ -55,22 +57,23 @@ The format is owned by the producing skill (`a2h-spec-generate` 的 `publish-spe
55
57
  Apply **`references/initialization.md` verbatim** (its steps I1–I4 = the numbered steps 1–12). This is the run's **only** interactive window; everything after I4 is autonomous. The stages:
56
58
 
57
59
  - **I1 — inputs, grouping precompute, wiring surface.** `plan_groups.ts` (`--emit-state` on a fresh run; without it on a resume, where exit 3 = specs.json changed → stop) writes `spec_group_plan.json`, one `spec_group_<G>/merged_spec.md` per group, and — on a fresh run — the state seed; `resolve_wiring.ts` fills `state.config.wiring_files` (three tiers; skipped on a resume when the field already exists, so user corrections survive). Every later stage reads their JSON — never re-derive paths, counts, or membership by hand.
58
- - **I2 — environment prerequisites.** `DEVECO_HOME` resolving, `<HMOS>` a git repo, Node ≥ 22.18, the Homegraph engine runnable, the semantic docs (`project_design.md` required, `database_design.md` / `preferences_design.md` optional), then `DOCS_MODE`, `MVVM_MODE`, `MAX_ROUNDS_REVIEW`.
60
+ - **I2 — environment prerequisites.** `DEVECO_HOME` resolving, `<HMOS>` a git repo, Node ≥ 22.18, the Homegraph engine runnable, the semantic docs (`project_design.md` required, `database_design.md` / `preferences_design.md` optional), Homecheck availability and rule sets, then `DOCS_MODE`, `MVVM_MODE`, `MAX_ROUNDS_REVIEW`.
59
61
  - **I3 — one-time setup.** Create `DESIGN_DIR`; `git_baseline.ts` (gitignores `.hometrans/` + `.homegraph/` and commits a fresh scaffold as `pre-campaign baseline` so W0 has a `WAVE_BASE` and a clean tree); seed the semantic-docs baseline once.
60
62
  - **I4 — announce, then commit to autonomous execution.** Announce the plan table, flags, warnings, the git baseline and the wiring-surface summary — the one window for user corrections — then no prompts and no mid-run branching (per-group failures are recorded and skipped).
61
63
 
62
64
  ### I5 — Execution model
63
65
 
64
- - Every sub-skill run happens in a **fresh sub-agent** via the `Agent` tool. The prompt must (1) name the sub-skill/agent and its exact inputs, (2) forbid asking back — on ambiguity take the documented safe default or return `{ "ok": false, "note": ... }`, (3) require the final message to be **only** a compact JSON object.
65
- - Sub-skill SKILL.md text never enters this orchestrator's context during the wave loop (the one exception: the post-loop smoke gate, run by the orchestrator itself).
66
- - The orchestrator itself runs: the deterministic scripts (`plan_groups.ts`, `resolve_wiring.ts`, `git_baseline.ts`, `ensure_wt_index.ts`, `plan_waves.ts`, `deps_ready.ts`, `branch_landed.ts`, `audit_claims.ts`, `inflight.mjs` — the ledger's only writer, `watchdog.mjs --probe/--stop` — the sentinel sub-agent owns the watchdog loop itself), git/worktree/merge/wiring/commit bookkeeping, the B4 single-writer homegraph index sync of `<HMOS>` (the only `<HMOS>`-index write moment — each worktree's own index is built at creation by `ensure_wt_index.ts` and refreshed only on resume (W0 or mid-wave) and at hop (b); reviewers are read-only), state-file updates, dispatch discipline, and the post-loop runtime smoke gate. Nothing else.
66
+ - Every sub-skill run happens in a **fresh sub-agent** via the `Agent` tool. The prompt must (1) name the sub-skill/agent and its exact inputs, (2) forbid asking back — on ambiguity take the documented safe default or return `{ "ok": false, "note": ... }`, (3) require the final message to be **only** a compact JSON object, (4) when `IMAGE_READ` is `false`, open with `Do not open any image file (.png/.jpg/.jpeg/.webp/.gif): image content crashes this host session; use view trees, measure files and source instead.` — this covers coders, resolvers, build-fixers, reviewers and the watchdog sentinel alike. A sub-agent that still dies on image content (`messages.content.type` invalid; it cannot be resumed) sets `IMAGE_READ=false` for the rest of the run (persist it in the state file) and is redispatched fresh with the rule; the final report says so.
67
+ - Sub-skill SKILL.md text never enters this orchestrator's context during the wave loop (the exception: the runtime smoke gate, run by the orchestrator itself).
68
+ - The orchestrator itself runs: the deterministic scripts (`plan_groups.ts`, `resolve_wiring.ts`, `git_baseline.ts`, `stage_design_inputs.ts`, `ensure_wt_index.ts`, `plan_waves.ts`, `deps_ready.ts`, `branch_landed.ts`, `audit_claims.ts`, `dispatch.mjs` — the ledger's only writer), git/worktree/merge/wiring/commit bookkeeping, the B4 single-writer homegraph index sync of `<HMOS>` (the only `<HMOS>`-index write moment — each worktree's own index is built at creation by `ensure_wt_index.ts` and refreshed only on resume (W0 or mid-wave) and at hop (b); reviewers are read-only), state-file updates, dispatch discipline (including dispatching the post-loop Homecheck gate sub-agent and validating its JSON reply — the scan/fix/build-check work itself, `homecheck_scan.ts` included, belongs to that sub-agent), and the post-loop runtime smoke gate. Nothing else.
69
+ - **Ledger + waker discipline.** Every background dispatch is `claim` → seed the foreground baseline → `intent` → Agent → `confirm` (the session id proves liveness); progress is `beat`; a completion is `artifact` + `submit` then `release`. Only `dispatch.mjs` writes the ledger. Before ending a turn with active units, run `dispatch.mjs probe`: `inPlace:false` (or a different `runId`) → arm the durable waker as one background sub-agent running `dispatch.mjs waker`; its `dispatch/waker.event.json` is consumed at the start of **every** turn (verify `runId`, delete after reading). Write `dispatch/waker.stop` on every terminal path — wave barrier, resume, abort, Finalization.
67
70
  - A returned sub-agent result — success or failure — is never a stop: parse it, persist it, dispatch the next.
68
71
 
69
72
  ## The wave loop
70
73
 
71
- **Mid-flight detection (resume into an interrupted wave).** Apply **`references/state-and-resume.md` → Mid-flight detection verbatim** before running S0. In short: a state group with `wave != null` and a status outside {done, failed} means the wave loop must be **re-entered**, not restarted — reset the ledger first (stop any surviving sentinel, snapshot `spec_pipeline_inflight.json`, `inflight.mjs clear`, `configure --concurrency <WAVE_WIDTH>`), then branch on `wave_<K>/wave_meta.json`: absent → the crash happened before W0 (mid-B0) — re-enter at **B0** for exactly those members, then continue W0 onward; present → classify every recorded member (no worktree → route by the `deps_ready.ts` verdict; merged → skip; coding incomplete → re-dispatch that group's next chunk; coding complete and unmerged → enqueue its merge) and drain the B1⇄B2 event loop. **"Merged" is always `branch_landed.ts`**, never `merge-base --is-ancestor`.
74
+ **Mid-flight detection (resume into an interrupted wave).** Apply **`references/state-and-resume.md` → Mid-flight detection verbatim** before running S0. In short: a state group with `wave != null` and a status outside {done, failed} means the wave loop must be **re-entered**, not restarted — reset the dispatch run first (write `dispatch/waker.stop`, snapshot `dispatch/ledger.jsonl`, then `dispatch.mjs init --wave <K> --concurrency <WAVE_WIDTH> --new-run` — the genuine reset that gives the new session its own `runId`, archives the old pipeline state as the audit trail, and makes every old-run active unit dead-run on the first `reconcile`; a **normal later wave** is plain `init --wave <K>` under the same `runId` — see `references/legacy-cleanup.md` for the one-time runtime cleanup before that reset), then run `reconcile` and repair state one way before dispatching. Then branch on `wave_<K>/wave_meta.json`: absent → the crash happened before W0 — re-enter at W0 for exactly those members, then continue W0 onward; present → classify every recorded member (a done chunk with an empty `specs[].design_file` → backfill it from the design file first; no worktree → route by the `deps_ready.ts` verdict; merged → skip; coding incomplete → re-stage design inputs (`stage_design_inputs.ts`) and re-upsert its `design_map` row, then dispatch; coding complete and unmerged → enqueue its merge) and drain the B1⇄B2 event loop. **"Merged" is always `branch_landed.ts --wt-gen <wtGen>`**, never `merge-base --is-ancestor`.
72
75
 
73
- Iterate waves until `plan_waves.ts` reports `{"wave": null, "done": true}` (no pending groups). **Skip any group already `done` or `failed`**. Each wave runs S0 → B0 → W0 → B1⇄B2 → B3 → B4 → B5 → C (B1 and B2 interleave: coding-completion events drive per-group chunk chaining and the serial merge queue).
76
+ Iterate waves until `plan_waves.ts` reports `{"wave": null, "done": true}` (no pending groups). **Skip any group already `done` or `failed`**. Each wave runs S0 → W0 → B1⇄B2 → B3 → B4 → B5 → C (B1 and B2 interleave: coding-completion events drive per-group chunk chaining and the serial merge queue).
74
77
 
75
78
  ### S0 — Slice this wave (deterministic script, incremental)
76
79
 
@@ -93,72 +96,111 @@ Decision order: ineligible → skip; no same-wave deps → join; same-wave deps
93
96
 
94
97
  It appends the wave to `<HMOS>/.hometrans/spec_wave_plan.json` (schema `spec_wave_plan/v2` — waves only) and sets `state.groups[G].wave = k` for members. Announce this wave's members (G, group_id, per-group scenario totals) before W0. **Same-wave file overlaps are expected, not prevented** — they surface as merge work at B2 and as audit findings after the merge queue drains.
95
98
 
96
- ### B0 — Design this wave's groups (parallel)
97
-
98
- The wave's members are the groups S0 just sliced (or, on a mid-wave resume, the wave's recorded members). Dispatch one `a2h-spec-design` sub-agent per member **as ONE foreground batch — every design call of the wave in a single assistant message, never one-per-message** (**batch discipline**: if a message carried only part of the wave, the very next message dispatches ALL remaining designs as one batch; never end a turn with the wave half-dispatched. Each design agent writes only its own `SPEC_DESIGN_G<G>.md` — no shared state, so overlap is always safe):
99
-
100
- - Contract: `/a2h-spec-design <HMOS> <merged_spec abs path> "<group_ui_sequence>" --task spec --engine-mode <ENGINE_MODE> --mvvm <MVVM_MODE> --output-file <DESIGN_DIR>/SPEC_DESIGN_G<G>.md --index-ready` — sync the index once first (B4 step 0's single-writer rule) (add `--database-design`/`--preferences-design` only when I2 step 6 found them at non-default locations).
101
- - The merged spec is an absolute path under `<HMOS>/.hometrans/` — pass it verbatim; sub-agents must use only the passed path.
102
- - **Design-once invariant**: every group is designed exactly once for the whole campaign, at the B0 of its own wave, against semantic docs refreshed by the previous wave's B5. A design must be generated against the current state of the code (the create-vs-reuse decision lives in the design).
103
- - **At B0 start, delete the design file and any `SPEC_DESIGN_G<G>_issue.md` of this wave's members** (mid-B0 crash leftovers).
104
- - Return JSON: `{ "ok": true, "design_file": "SPEC_DESIGN_G<G>.md", "issue_file": false, "note": null }`. A design agent that fails with its target file **already on disk** → mid-B0 crash leftover — accept the existing file and move on; any other failure (issue file, or no file on disk) marks the group `failed` (status `failed` in `state.groups[G]`, its specs `status: failed`) — the wave runs with fewer members (no top-up: wave membership is fixed by slicing). Failed groups are excluded from all later waves and listed in the final report. **Harness-error retry (1×):** a design call that errors at the harness level (dispatch failure — not an issue-file, not a semantic `ok:false` return) → re-dispatch once, batched with every other same-wave harness failure; a second failure → the normal `failed` path.
105
- - As the batch's design results land (all together — process them per group), keep `DESIGN_DIR/design_map.md` at **exactly one row per G** (columns: `G | Group (dir) | Specs | Scenarios | Design File | UI Sequence | Start | End` — `End` stays `进行中` until C) and set each of its specs' `state.specs[].design_file` to the design basename and `stage: "A"`.
106
- - After the members complete: commit all design changes (`git -C <HMOS> add -A <DESIGN_DIR> && git -C <HMOS> commit -m "group designs (wave K)"`) — W0 requires a clean main tree. (On a mid-B0 resume where every design already exists, nothing to commit — skip.)
107
-
108
99
  ### W0 — Preconditions & worktrees
109
100
 
110
101
  1. Verify the main tree is clean (`git -C <HMOS> status --porcelain` empty). Dirty → **stop the run and report** (never auto-commit user changes; never ask mid-run).
111
102
  2. `WAVE_BASE = git -C <HMOS> rev-parse HEAD`. ("main" here = the branch checked out in `<HMOS>`, whatever its name — never a literal `main`.)
112
103
  2b. Write `<HMOS>/.hometrans/wave_<K>/wave_meta.json` = `{ "wave": K, "wave_base": "<WAVE_BASE>", "groups": [<wave members>] }` (K = the wave number plan_waves just assigned) — the resume anchor for mid-wave crash recovery.
113
104
  2c. Run `node <skill-dir>/scripts/deps_ready.ts <HMOS> --wave <K>` — the wave's **dispatch-hold** verdicts (read-only): `verdicts` covers every still-`pending` member (`ready` = deps empty or all satisfied; `held` = waiting on unsatisfied deps, `behind` lists them all), `released` = ready members with no chunk dispatched yet. At W0 this is the **initial release set**. A member whose plan row carries no `deps` is always `ready` (plans predating the field behave exactly as before). Cycle edges (a dep pointing at a *later* group) are ignored and reported as `cycleEdgesIgnored` — record them in the wave log.
114
- 3. The wave's worktrees live under `WT = <HMOS>/../wt/<basename(HMOS)>` (per-project namespace; paths deliberately short — Windows MAX_PATH). Traverse **every** wave member (serially) — classification and cleanup are NOT limited to ready members — but **create** a worktree only for a `ready` member: `git -C <HMOS> worktree add WT/g<G> -b specpipe/g<G> <WAVE_BASE>` (delete a stale branch first: `git branch -D specpipe/g<G>` if it exists). A `held` member gets **no worktree at W0** — its worktree is created at release time from the then-current main HEAD (its coder starts from its deps' merged code). An existing worktree classifies with `git -C <worktree> log --oneline <WAVE_BASE>..HEAD`; removal is always `git -C <HMOS> worktree remove --force WT/g<G>` (on failure `worktree prune` + retry once) + `git branch -D specpipe/g<G>`:
105
+ 2d. `node <skill-dir>/scripts/dispatch.mjs <HMOS> init --wave <K> --concurrency <WAVE_WIDTH>` — builds the wave's `plan` event from `spec_wave_plan.json` + `spec_group_plan.json` under the current `runId` (a genuine reset — never a normal wave — uses `--new-run`; a plan identical to the last one is a no-op).
106
+ 3. The wave's worktrees live under `WT = <HMOS>/../wt/<basename(HMOS)>` (per-project namespace; paths deliberately short — Windows MAX_PATH). Traverse **every** wave member (serially) — classification and cleanup are NOT limited to ready members — but **create** a worktree only for a `ready` member at generation `n` (a fresh campaign starts at `n=0`; a kept resumable generation keeps its `n`): `git -C <HMOS> worktree add WT/g<G>r<n> -b specpipe/g<G>r<n> <WAVE_BASE>` (delete a stale branch first: `git branch -D specpipe/g<G>r<n>` if it exists), then `dispatch.mjs group-worktree <G> --wt-gen <n> --base <WAVE_BASE>` — the only claim fence. A `held` member gets **no worktree at W0** — its worktree is created at release time from the then-current main HEAD (its coder starts from its deps' merged code). An existing worktree classifies with `git -C <worktree> log --oneline <WAVE_BASE>..HEAD`; removal is always `git -C <HMOS> worktree remove --force WT/g<G>r<wtGen>` (on failure `worktree prune` + retry once) + `git branch -D specpipe/g<G>r<wtGen>`:
115
107
  - **Held member** → **stale regardless of content** (a held member cannot hold a legal worktree of this campaign): remove, do not recreate.
116
108
  - **Empty output** → crashed-run leftover: remove, then recreate (ready members only).
117
- - **Non-empty, NOT merged into main** (`branch_landed.ts` → `landed: false`) → **resumable** (ready members only): keep worktree and branch, resume this group's B1 chunks (the so-id-log chunk-resume rule). Its index is refreshed below (`--sync`) — the branch moved on since creation.
109
+ - **Non-empty, NOT merged into main** (`branch_landed.ts --wt-gen <n>` → `landed: false`) → **resumable** (ready members only): keep worktree and branch, resume this group's B1 chunks (the so-id-log chunk-resume rule). Its index is refreshed below (`--sync`) — the branch moved on since creation.
118
110
  - **Non-empty, already merged** → post-B2 leftover: remove and recreate (ready members only).
119
111
 
120
- After the classification: every surviving worktree gets its own index — `node <skill-dir>/scripts/ensure_wt_index.ts <HMOS> WT/g<G>` for one created or recreated now, and `… --sync` for a kept (resumable) one, whose branch already moved on (skip both when `ENGINE_MODE=off`). A hung build costs one 600 s attempt (≈12 min including the status read); three `database is locked` retries can reach ~38 min, so pass a smaller `--timeout-ms` for a small project — it bounds the build only (the status read stays at 120 s). Normal cost is **serial W0 setup time** (≈1.5 s when the index already exists, ~10 s per new index on a mid-size project), not a hang. A worktree never inherits `<HMOS>`'s `.homegraph/` — it is gitignored — so without this the coder has no graph at all. **Exit 1 is degraded, not a failure:** record its `action`/`reason`/`detail` in the wave log and continue; the coder falls back to grep/read (the coder clause is only passed when the index is usable, so an unusable leftover is never advertised). Exit 0 with `reason: "sync_incomplete"` means the refresh failed but the previous snapshot is still usable — record it as a degraded refresh. Never hand a coder `<HMOS>`'s index instead: it answers from another branch (other groups' merged code, none of this worktree's commits) and the CLI prints no mismatch warning. A symlinked/junctioned `.homegraph/` — dangling included — is refused (`homegraph_linked`) — it would present another tree's index as this worktree's.
112
+ After the classification: every surviving worktree gets its own index — `node <skill-dir>/scripts/ensure_wt_index.ts <HMOS> WT/g<G>r<wtGen>` for one created or recreated now, and `… --sync` for a kept (resumable) one, whose branch already moved on (skip both when `ENGINE_MODE=off`). A hung build costs one 600 s attempt (≈12 min including the status read); three `database is locked` retries can reach ~38 min, so pass a smaller `--timeout-ms` for a small project — it bounds the build only (the status read stays at 120 s). On Windows the timeout kills only the cmd.exe shim, so the script reaps the writer the attempt started (`reaped` in its JSON) instead of leaving a node engine at 100% CPU; an index it never finalized reports `index.state: "indexing"` and the next run rebuilds it rather than treating it as usable. **Fail fast:** after two consecutive `timeout`/`init_failed`/`index_failed` results, stop building indexes for the rest of the wave (record `engine_degraded` + the K members skipped in the wave log, hand those coders grep/read) — finishing W0 at 3-10 minutes per worktree is worse than no graph at all. Normal cost is **serial W0 setup time** (≈1.5 s when the index already exists, ~10 s per new index on a mid-size project), not a hang. A worktree never inherits `<HMOS>`'s `.homegraph/` — it is gitignored — so without this the coder has no graph at all. **Exit 1 is degraded, not a failure:** record its `action`/`reason`/`detail` in the wave log and continue; the coder falls back to grep/read (the coder clause is only passed when the index is usable, so an unusable leftover is never advertised). Exit 0 with `reason: "sync_incomplete"` means the refresh failed but the previous snapshot is still usable — record it as a degraded refresh. Never hand a coder `<HMOS>`'s index instead: it answers from another branch (other groups' merged code, none of this worktree's commits) and the CLI prints no mismatch warning. A symlinked/junctioned `.homegraph/` — dangling included — is refused (`homegraph_linked`) — it would present another tree's index as this worktree's.
113
+ 4. **Stage the design inputs into every surviving worktree** (created, recreated, or kept): `node <skill-dir>/scripts/stage_design_inputs.ts <HMOS> WT/g<G>r<wtGen>`. Exit 1 → record it in the wave log and continue (the coder's design step will report `design_gap_blocked` if `project_design.md` is missing). Then **upsert** this wave's `design_map.md` rows (one row per member G; Design File / Start blank until a chunk design lands). Columns: `G | Group (dir) | Specs | Scenarios | Design File | UI Sequence | Start | End`; `End` stays `进行中` until C.
121
114
 
122
115
  ### B1 — Parallel coding (chunked, per-group serial, background-dispatched)
123
116
 
124
117
  Apply **`references/coding-loop.md` verbatim** — read it before entering the wave loop, and re-read the section that applies on every wakeup. It owns:
125
118
 
126
119
  - **chunk pointer discipline**: `state.groups[G].chunks[k].status` (`pending` → `in_flight` → `done`/`failed`), at most one chunk in flight per group, up to `WAVE_WIDTH` chunk agents, at most one merge;
127
- - **the in-flight ledger protocol**: `inflight.mjs add` before every background dispatch (the printed `dispatchedAt` is the generation stamp), the `unitId`/`dispatchedAt` echo in the returned JSON, the receipt persisted to `receipts/<sanitized unitId>/<sanitized dispatchedAt>.json`, remove-first on success, and the receipt-bound in-place retry (never remove→add);
128
- - **the event loop** on each completion notification: stale generations ignored, `ok` chains the group's next chunk or marks `coded` + records `audit: { base, tip }` + enqueues the merge, a second chunk failure fails the group, and a resolver completion lands the merge with `--no-ff`;
129
- - **the turn-end sequence** (every turn, in order): reconcile in-flight → drain the merge queue → deps release sweep → the never-strand guard with the sentinel arming rule;
130
- - **the watchdog wakeup disposal**: demux the sentinel's exit code, probe each flagged unit with the liveness evidence recipe, then drain the turn-end sequence;
131
- - **the chunk dispatch contract** (`a2h-arkts-logic-coder` fields: the worktree as `harmonyos-project-path`, the merged spec, the design file, `output-path`, `wiring-mode: true`, the compact wiring list, the so-id prompt extra with the code-first, no-build and worktree-index rules and the required `unitId`/`dispatchedAt` echo), the so-id resume parse, and the coding-complete → audit → B3 handoff.
120
+ - **the dispatch command contract**: `dispatch.mjs claim` before the Agent call (it returns `unitId/attempt/claimGen/token/wtGen/worktree/branch/baseHead/baseDirty`), `intent` before dispatch, `confirm --session` when the call returns, `beat` for observed progress, `evidence` for the deterministic per-attempt gate, then `artifact` + `submit --kind completed|failed` only on its `completed`, then `release --outcome done|failed`; identity-bearing commands pass `--expect-gen`/`--token` and a mismatch is a stale no-op;
121
+ - **the spec §11 event loop**: consume `orch.event.json`/`waker.event.json`, evidence sweep (`progress` → `beat`; attempt artifacts → `artifact`/`submit`/`reject`), `reconcile` + one-way state repair, triage (`submitted` → `queue-merge` + `release`; `failed` → `retry` or close; `orphaned` → wait; resolver → ladder), drain the merge queue, deps release sweep, dispatch up to `freeSlots`, residue disposal, then `wait`;
122
+ - **the turn-end guard**: `reconcile` → merge-queue drain → deps release sweep → never-strand disposal → arm the waker (`dispatch.mjs probe`; `dispatch.mjs waker` in background; `waker.stop` on every terminal path);
123
+ - **the waker wakeup disposal**: demux `waker.event.json` (`artifact`/`git`/`ledger`/`state`/`deadline` → targeted evidence; `relay` → re-arm; `error` → repair), then drain the event loop;
124
+ - **the chunk dispatch contract** (`a2h-arkts-logic-coder` fields: the worktree as `harmonyos-project-path`, the chunk spec slice as `spec-file`, the per-chunk design path as `spec-design-file`, `design-mode` + `design-ui-sequence` + `design-display-root` + `design-engine-mode` + `design-mvvm`, the `unitId`, `output-path` = `.../chunk_<k>/attempt_<n>`, `wiring-mode: true`, the compact wiring list, the so-id prompt extra with the code-first, no-build and worktree-index rules), the design-mode verdict (`references/coding-loop.md`), the so-id resume parse, and the coding-complete → audit → B3 handoff.
132
125
 
133
- Hot-path invariants (the reference file is authoritative): every background dispatch is ledger-registered **before** it leaves, a success removes the completed unit **before** the successor is added, a retry is the in-place `add --after <current> --from-receipt <failure>` (never remove→add), a receipt whose `dispatchedAt` echo does not match the current generation is stale and ignored, and no turn may end while something in flight cannot wake the session.
126
+ Hot-path invariants (the reference file is authoritative): every background dispatch is claimed **before** it leaves and `intent` is written before the Agent call, a completion is released only from fresh per-attempt evidence, a retry is `retry` + a fresh claim (never an in-place resurrection of a live unit), a stale identity writes nothing, and no turn may end while active units remain without a live waker for the current `runId`.
134
127
 
135
128
  ### B2 — Serial merge queue, interleaved with B1 (the only git-writer moment)
136
129
 
137
130
  Apply **`references/merge-queue.md` verbatim.** B2 is a queue the B1 event loop drains while coding continues — not a phase after B1: a group enters at its coding-complete event, the queue is processed strictly serially (main is the single git-writer), popped in coding-completion order, and at most one merge — normal or resolver-backed — is in progress at any moment. It owns:
138
131
 
139
132
  - **step 0, the actual-write audit** (`audit_claims.ts <HMOS> --wave <K> --base <WAVE_BASE>`, once per wave after the queue drains and before wiring, on the recorded `state.groups[G].audit = { base, tip }` pairs; findings are data for B4, never a stop);
140
- - **landing**: `PRE = git rev-parse HEAD` → `git merge --no-ff --no-edit specpipe/g<G>` (every landing a main-side merge commit; never a fast-forward) → the group's B4 net-change range `PRE..<merge-commit>`, specs to `stage: "B"`, status `merged`;
141
- - **the recovery ladder** on conflict (hop (a) background conflict-resolve re-dispatch 1× in the group's own worktree with both groups' designs and the wiring forbidden list → hop (b) group re-code 1× → hop (c) fail-soft `failed`), with hop counters conversation-transient;
133
+ - **landing**: the current generation branch `specpipe/g<G>r<wtGen>` → `PRE = git rev-parse HEAD` → `git merge --no-ff --no-edit specpipe/g<G>r<wtGen>` (preceded by `branch_landed.ts --wt-gen <n>`; every landing a main-side merge commit, never a fast-forward) → the group's B4 net-change range `PRE..<merge-commit>`, specs to `stage: "B"`, status `merged`, then `dispatch.mjs group-merge <G>` (only after the landing exists);
134
+ - **the recovery ladder** on conflict (hop (a) background conflict-resolve re-dispatch 1× in the group's own worktree with both groups' existing chunk design files and the wiring forbidden list → hop (b) group re-code 1× → hop (c) fail-soft `failed`), with hop counters conversation-transient;
142
135
  - **the wiring application** after the queue drains (idempotent, per group in chunk order, mechanically applied from the chunks' `wiring.md` rows onto `state.config.wiring_files`; lock files skipped; same-key cross-group conflicts recorded for manual follow-up) and its single `wiring` commit (skipped when all wiring files are empty/absent).
143
136
 
144
137
  ### B3 — One build per wave
145
138
 
146
139
  Dispatch one `build-fixer` sub-agent (`harmony_project_dir: <HMOS>`, `deveco_home: <DEVECO_HOME>`, `output_path: <HMOS>/.hometrans/wave_<wave>/build` — the agent's field names) in the foreground. It fixes cross-group compile errors and replies with one JSON object `{ ok, build, commit, fixes, report, note }`. (Build failure after fix attempts → record; the wave still proceeds to review — the review report will carry the build status.)
147
140
 
148
- **Validate the reply before moving on — never end the turn to wait for B3.** A foreground sub-agent call returns at the sub-agent's first idle. Nothing it does after that reaches you: no notification follows, and no ledger row or sentinel covers B3. An orchestrator that ends its turn here hangs forever.
141
+ **Validate the reply before moving on — never end the turn to wait for B3.** A foreground sub-agent call returns at the sub-agent's first idle. Nothing it does after that reaches you: no notification follows, and no ledger row or waker covers B3. An orchestrator that ends its turn here hangs forever.
149
142
 
150
143
  1. The reply parses as that JSON and `build` is `SUCCESS` or `FAILED` → record `build` and `commit` (`null` = no fix commit). If `commit` is non-null, check it with `git -C <HMOS> cat-file -e <commit>`. A missing commit counts as an invalid reply (step 2).
151
144
  2. Any other reply (a status line such as "后台任务完成后我会自动恢复" / "will resume when the background task finishes", prose, a truncated object) means the sub-agent went idle **mid-run**, typically behind its own background build, and may still be editing `<HMOS>`. **Never dispatch a second build-fixer beside it.** Resume **the same session** in the foreground instead: the `subagent` call with `sessionID: <the sessionID from the reply>`, same agent, prompt `Continue the build-fix loop in the foreground until it ends; reply only with the final JSON.`. Re-validate the new reply by step 1. Resume at most 2×.
152
145
  3. Still no valid reply → take the result from disk: `<output_path>/build-fix-report.md` (Build Status) and `<output_path>/build-fix-commit-info.md` (`commit_id`). If either is missing, run one build yourself, in the foreground with a 600000 ms timeout (`cmd /c "devecocli build > "<output_path>\b3_orchestrator.log" 2>&1"` from `<HMOS>`), and record its outcome as the B3 build status. Note the invalid reply in the final report either way.
153
146
 
154
- ### B4 — Unified review (parallel per group, serial fix)
155
-
156
- Loop up to `MAX_ROUNDS_REVIEW`:
157
-
158
- 0. **Single-writer index sync (main tree)** — the orchestrator is the only writer of `<HMOS>`'s index during review; each worktree's own index was built once at creation (W0 / the deps release sweep) and is **not** touched here. Before dispatching this round's reviewers, bring the main index current: `homegraph status <HMOS>` → stale → `homegraph sync --quiet <HMOS>`, unindexed → `homegraph init -i <HMOS>` (600000 ms timeout). Failure or timeout → record and continue: the reviewers' concurrency rule degrades them automatically — but a recorded step-0 failure is **not** index state: never leak it into the reviewer dispatch prompts. Re-sync every round — fix-mode commits land between rounds.
159
- 1. **Dispatch the round's reviewers as ONE foreground batch — every reviewer call of the round in a single assistant message, never one-per-message** (same batch discipline as B0; reviewers are read-only — overlap is always safe). For each group in the wave, include in that one message a `code-reviewer` sub-agent call with `harmonyos_project_path: <HMOS>`, `commit_range: <the group's net-change range recorded at B2 — PRE..<merge-commit>>`, `test_case_path: <merged_spec abs path>`, `output_path: <HMOS>/.hometrans/spec_group_<G>/review-round_<r>`. **Failure handling — retry once, never a stop:** a reviewer call that errors → re-dispatch once (same contract, batched with every other same-round failure); a second failure → record and continue — that group's report is missing from the step-2 merge, flagged in the final report, and counts as **not-PASS** for the step-3 exit check (the round bound alone ends it; when missing reports are the only non-PASS cause, skip the fix dispatch and iterate the round directly). Reports are per-spec sectioned. (The reviewer's input contract takes exactly these four fields — do not add others; wiring registrations live in the `wiring` commit, outside every group's range.)
160
- 2. Merge the reports; extract per-spec verdicts into `state.specs[]` (stage stays `B`). The wave audit's findings (registry edits, resolver registry edits / wiring-mode violations and cross-group actual overlaps, from `.hometrans/wave_<K>/claim_audit.json`) join the fix list via the merged findings file.
161
- 3. If all scenarios PASS → exit the loop. Else dispatch one `code-reviewer` sub-agent in fix mode (`mode: fix`, `review_report_path`: the merged findings file the orchestrator writes to `<HMOS>/.hometrans/wave_<wave>/review_round_<r>/merged-findings.md` — the merged review reports **plus the wave audit's findings** so the fixer handles them alongside review defects, `harmonyos_project_path: <HMOS>`, `android_project_path: <ANDROID>`, `output_path`: same dir). **Skip check — do not rebuild what the fix run already built**: the fix run ends with its own single build; read `review-fix-report.md` (same dir) — Overview `Build: SUCCESS` → skip the rebuild; `FAILED`, missing, or unreadable → one `build-fixer` rebuild (B3's fields, `output_path` = this round's dir; validate its reply exactly as in B3). Loop.
147
+ ### B4 — Unified review (parallel per group, per-group serial fix, only open groups re-reviewed)
148
+
149
+ Every group carries its review state in `state.groups[G].review = { round, open, scenarios, carry_over, fix_commits }` (written after every step below; atomic like every state write):
150
+ - `open` — `true` while the group still has a defect the fixer can act on.
151
+ - `scenarios` — the scenario ids (`so-N 场景X`) the last report judged FAIL / PARTIAL.
152
+ - `carry_over` — the path of the group's last `review-fix-report.md`, whose Remaining Issues the next fixer re-attempts.
153
+ - `fix_commits` — every `fix(review)` commit made for this group.
154
+
155
+ A group is **open** after a review when its report has any FAIL / PARTIAL scenario, a broken Launch Path hop, a non-PASS Cross-Cutting section, or a wave-audit finding that names it — or when its report is **missing** (reviewer failed twice). PASS and UNABLE TO VERIFY are **closed** verdicts: UNABLE TO VERIFY is evidence debt that no code change closes, so it never keeps a group open and never costs a round. A closed group is never re-reviewed and never handed to a fixer again, unless step 1(c) reopens it.
156
+
157
+ Loop rounds `r = 1 .. MAX_ROUNDS_REVIEW`, then one verification round (step 6):
158
+
159
+ 0. **Single-writer index sync (main tree)** — the orchestrator is the only writer of `<HMOS>`'s index during review; each worktree's own index was built once at creation (W0 / the deps release sweep) and is **not** touched here. **Skip this step entirely when `ENGINE_MODE=off`** (no engine command may run in the whole run). Before dispatching this round's reviewers, bring the main index current: `homegraph status --json <HMOS>` → stale → `homegraph sync --quiet <HMOS>`, unindexed → `homegraph init -i <HMOS>` (bound it to **120000 ms** — the 1.6.x engine can finish writing the index and then spin forever before finalize, so a default 600 s wait only burns 10 minutes). Failure or timeout → record and continue: the reviewers' concurrency rule degrades them automatically — but a recorded step-0 failure is **not** index state: never leak it into the reviewer dispatch prompts. After one timeout, skip this step for the rest of the run (the engine will hang every round); re-sync every round only while it keeps returning.
160
+ 1. **Select this round's review set — exactly these groups, computed from state, never by judgment:**
161
+ - `r = 1`: every `merged` member of the wave, all scenarios.
162
+ - `r ≥ 2` (and the verification round): only
163
+ - (a) groups still **open** after the previous round's fix;
164
+ - (b) groups whose previous report is missing;
165
+ - (c) **regression check** — a closed group whose files were touched by a `fix(review)` or rebuild commit of the previous round (`git -C <HMOS> diff --name-only <commit>^..<commit>` intersected with `git diff --name-only` of the group's B2 range). This reopens the group.
166
+
167
+ Every other group is skipped — it is not reviewed again.
168
+ - The set is empty → exit the loop (skip the verification round too).
169
+ 2. **Dispatch the selected reviewers as ONE foreground batch — every reviewer call of the round in a single assistant message, never one-per-message** (reviewers are read-only — overlap is always safe). Per selected group: a `code-reviewer` sub-agent call with:
170
+ - `harmonyos_project_path: <HMOS>`;
171
+ - `commit_range: <the group's net-change range recorded at B2 — PRE..<merge-commit>>`;
172
+ - `test_case_path: <merged_spec abs path>`;
173
+ - `output_path: <HMOS>/.hometrans/spec_group_<G>/review-round_<r>`;
174
+ - from `r ≥ 2` also `extra_commits: <state.groups[G].review.fix_commits plus the previous round's rebuild commit, when any>`, so the fixes are in the change context. The B2 range alone predates them.
175
+ - from `r ≥ 2` also `scenarios`:
176
+ - case (a): the group's `review.scenarios` plus the scenarios its cross-cutting / launch-path / audit findings cite;
177
+ - cases (b) and (c): omitted, so all scenarios are reviewed.
178
+
179
+ Do not add other fields; wiring registrations live in the `wiring` commit, outside every group's range.
180
+
181
+ **Failure handling — retry once, never a stop.** A reviewer call that errors → re-dispatch it once, with the same contract, batched with every other same-round failure. A second failure → record it and continue: that group's report is missing, it stays open, and it is flagged in the final report. Reports are per-spec sectioned.
182
+ 3. **Update each reviewed group's state.**
183
+ - Extract per-spec verdicts into `state.specs[]` (stage stays `B`).
184
+ - Set `review.round = r`, recompute `open`, and set `scenarios` to the FAIL / PARTIAL scenario ids of this report. A scenario reviewed this round replaces its old verdict; one not in this round's `scenarios` subset keeps it.
185
+ - The wave audit's findings (`.hometrans/wave_<K>/claim_audit.json`: registry edits, resolver registry edits / wiring-mode violations, cross-group actual overlaps) are attributed in round 1 to every group they name and keep that group open until a fixer has processed them. A finding that names two groups goes to the lower `G`.
186
+ 4. **Exit check.** No group is open → exit the loop (skip the verification round too). Open groups whose only cause is a missing report get no fixer: go straight to the next round.
187
+ 5. **Fix — one fix-mode `code-reviewer` per open group, dispatched serially in group order.** Fixers write to the main tree, so one runs at a time. Each fix call gets:
188
+ - `mode: fix`;
189
+ - `review_report_path: <HMOS>/.hometrans/spec_group_<G>/review-round_<r>/findings.md` — the group's round-`r` report, plus the audit findings attributed to it in round 1. The orchestrator writes this file.
190
+ - `carry_over_report_path: <review.carry_over>`, when set — the previous round's fix report for this group, whose `Failed to fix` / `UNCERTAIN` / `NOT_ATTEMPTED` rows the fixer re-attempts;
191
+ - `harmonyos_project_path: <HMOS>`, `android_project_path: <ANDROID>`;
192
+ - `output_path`: the same `review-round_<r>` dir;
193
+ - `build: false` — the orchestrator builds once for the whole round.
194
+
195
+ After each fixer returns:
196
+ - append its `commit` to `review.fix_commits` when it is not `none`;
197
+ - set `review.carry_over` to its `review-fix-report.md`;
198
+ - copy every `UI_OUT_OF_SCOPE` row of that report into `<HMOS>/.hometrans/wave_<K>/ui_followups.md` (G, scenario, expected path, defect). The final report lists them under Manual Follow-up.
199
+
200
+ A fixer that errors → retry it once; a second failure → record it, the group stays open, and the next fixer is dispatched.
201
+
202
+ When every fixer has returned, dispatch **one** `build-fixer` (B3's fields, `output_path: <HMOS>/.hometrans/wave_<K>/review_round_<r>/build`) and validate its reply exactly as in B3. Its fix commit, when any, counts as a previous-round commit for step 1(c). Then the next round.
203
+ 6. **Verification round (review only).** After the last fix round (`r = MAX_ROUNDS_REVIEW`), run steps 1–3 once more as round `r + 1`, and no fix. Without it the last round's fixes would ship unchecked. Groups still open after it are listed in the final report with their open scenarios and their last fix report.
162
204
 
163
205
  ### B5 — One semantic-docs refresh per wave
164
206
 
@@ -170,28 +212,35 @@ For each group in the wave (group order):
170
212
 
171
213
  1. Update its `design_map.md` row's **End** with the finish timestamp.
172
214
  2. Commit residual changes as `group <G> (specs so-a..so-b)` (`git add -A`; skip on empty diff, recording the merge head instead).
173
- 3. Merge `status: "done"`, `commit: <hash>` into `state.groups[G]` (keep its other fields — `G`, `wave`, `chunks`, `audit`, `coding_base`) and each of its specs `{ status: "done", stage: "C", commit: <hash>, end_ts }`.
174
- 4. Clean up: `git -C <HMOS> worktree remove WT/g<G>` (retry once, then `--force`, then just `git worktree prune`), `git branch -D specpipe/g<G>`.
215
+ 3. Merge `status: "done"`, `commit: <hash>` into `state.groups[G]` (keep its other fields — `G`, `wave`, `chunks`, `audit`, `coding_base`, `review`) and each of its specs `{ status: "done", stage: "C", commit: <hash>, end_ts }`.
216
+ 4. Clean up the current generation's worktree: `git -C <HMOS> worktree remove WT/g<G>r<wtGen>` (retry once, then `--force`, then just `git worktree prune`) and `git branch -D specpipe/g<G>r<wtGen>`. Older generations were already removed by `group-merge` (`cleaned` in its output); if one was missed, remove it the same way using the ledger group's `history`.
175
217
 
176
218
  ## State persistence & resume
177
219
 
178
- Full schema, sibling-file ownership, the atomic-write rule, the `.bak` restore path and the resume comparison are in **`references/state-and-resume.md` → State persistence & resume — apply verbatim.** Hot-path essentials: `<HMOS>/.hometrans/spec_pipeline_state.json` (schema `spec_pipeline_state/v2`, gitignored) is written by `plan_groups.ts --emit-state`, updated by `plan_waves.ts`, and updated by the orchestrator after every stage — chunk/group statuses, each group's `audit: { base, tip }` coder snapshot, and `coding_base`. Every write replaces the file atomically (temp + rename); per-spec v1 field names are frozen and `stage` is exactly `A | B | B2 | C`; the dispatch guard lives in sibling `.hometrans` files, each written only by its own script (the ledger by `inflight.mjs`); an unparseable state is restored from `.bak` (never delete the ledger); designs are **design-once**.
220
+ Full schema, sibling-file ownership, the atomic-write rule, the `.bak` restore path, the `runId` reset and the one-way state repair are in **`references/state-and-resume.md` → State persistence & resume — apply verbatim.** Hot-path essentials: `<HMOS>/.hometrans/spec_pipeline_state.json` (schema `spec_pipeline_state/v2`, gitignored) is written by `plan_groups.ts --emit-state`, updated by `plan_waves.ts`, and updated by the orchestrator after every stage — chunk/group statuses, each group's `audit: { base, tip }` coder snapshot, and `coding_base`. Every write replaces the file atomically (temp + rename); per-spec v1 field names are frozen and `stage` is exactly `A | B | B2 | C`; the dispatch truth lives only in `<HMOS>/.hometrans/dispatch/`, written only by `dispatch.mjs` (`ledger.jsonl` is the truth; `state.json` is a rebuildable fold cache); `reconcile` reports `stateMismatches` and the orchestrator repairs state **one way** (ledger → state), never the reverse; an unparseable state is restored from `.bak`, and the ledger is never deleted to "fix" it; each chunk's design is generated once (a retry re-uses it unless an issue file exists). The one-time cleanup of retired dispatch runtime files is in `references/legacy-cleanup.md`.
179
221
 
180
222
  ## Fail-soft rules (never pause)
181
223
 
182
224
  - **Every** group marked `failed` (any cause, incl. a failed release) also gets each of its specs `status: "failed"` in the same state write — the completion check counts specs.
183
- - B0 design failure → group `failed`, excluded from slicing, reported.
225
+ - A chunk whose design step fails (`design_gap_blocked` / `validation_failure`) follows the normal chunk failure path; a missing design artifact after a completed submission is a wave-log/report warning, not a group failure.
184
226
  - Chunk failure (after one retry) → group `failed`; its branch is discarded, any queued merge dropped; wave continues.
185
- - Watchdog-confirmed agent death with incomplete so-ids (`outcome ended-incomplete`) → group `failed` (branch discarded); **recovery beats re-dispatch** — a confirmed-ended chunk with complete so-ids + `commit-info.md` continues the chain instead (no budget burned). A late receipt for an **accepted**/**outcome** or removed unit is reported and ignored (audit-only/absent generation — a zombie never mutates a newer generation); for a still-`orphaned` row it is processed (the ownership the orphan retains).
186
- - A wave drained with a member still **coding** whose ledger row is `orphaned` → group `failed` (guard item 4's disposal) — the row was never re-dispatchable and no wakeup source remained; an `agentMayStillRun` zombie's eventual receipt arrives after accept and is ignored per the rule above.
187
- - A parked merge whose resolver row went terminal — `orphaned` (phantom/zombie dispatch) or `outcome` — → the ladder advances **without hop (a)**: hop (b) group re-code if unconsumed, else hop (c) fail-soft (group `failed`, merge dropped) — same turn (guard item 4).
227
+ - A reconcile-confirmed dead chunk (`close --expect-gen <claimGen> --token <token> --reason dead`, or a dead-run orphan) with incomplete so-ids → group `failed` (branch discarded); **recovery beats re-dispatch** — a confirmed-dead chunk with complete so-ids + `commit-info.md` continues the chain instead (no budget burned). A late artifact for an **accepted**/**closed** unit is a stale no-op (audit-only); for a still-`orphaned` unit it is processed (the ownership the orphan retains).
228
+ - A wave drained with a member still **coding** whose ledger unit is `orphaned` → `accept --expect-gen <claimGen> --reason wave-end` + group `failed` (never-strand guard) — the unit was never re-dispatchable and no wakeup source remained; the zombie's eventual artifact is ignored per the rule above.
229
+ - A parked merge whose resolver unit is terminal — `orphaned` (a phantom/zombie dispatch) or `closed` — → the ladder advances **without hop (a)**: hop (b) group re-code if a generation remains, else hop (c) fail-soft (group `failed`, merge dropped) — same turn (never-strand guard).
188
230
  - Merge ladder exhausted → group `failed`, continue (report flags dependents).
189
231
  - B3/B4/B5 failures → record and continue (carried in the final report).
190
232
  - The only legitimate stops: the wave loop + Finalization complete, or an environment prerequisite Initialization was supposed to guarantee is unrecoverable (e.g. dirty main tree at W0).
191
233
 
234
+ ## Homecheck static-defect check (after the last wave, before the smoke gate)
235
+
236
+ Dispatch one `general` sub-agent in the foreground to run the Homecheck gate per `references/static-defect-gate.md` (inputs: `<HMOS>`, `<skill-dir>`, `DEVECO_HOME`, `runId = state.config.campaign_id`, the per-campaign nonce from I3 step 10b — never `specs_json_sha256`, which repeats when the same specs.json starts a new campaign) — scan, fix `error` findings in the main tree, one final build check; the sub-agent dispatches nothing and never fixes compile errors itself. It replies with the compact JSON `{ ok, status, rounds, errorsBefore, errorsAfter, fixed, suppressed, remaining, build, note }` — validate per B3 (fallback: `summary.json` on disk, accepted only on a `runId` match), then mirror it into `state.post_homecheck` (the completion authority on resume — `summary.json` alone never marks the gate done). Off the reply's `build`: `FAILED` → dispatch one `build-fixer` (B3's contract, `output_path: <HMOS>/.hometrans/homecheck/build`); `SUCCESS` or no code change → nothing to fix. Then run the smoke gate on the fresh build.
237
+
238
+ - Gate mode is fixed: scan, fix, and rescan up to 2 rounds; remaining errors are reported, never hidden.
239
+ - Scan failures, timeouts, and missing rule sets are fail-soft and recorded.
240
+
192
241
  ## Runtime smoke gate (after the last wave, before Finalization)
193
242
 
194
- When the wave loop ends (`plan_waves.ts` → `{"wave": null, "done": true}`), run the `a2h-coldstart-smoke-gate` skill yourself — no sub-agent dispatch — with `harmony_project_dir = <HMOS>`, then record the outcome:
243
+ When the Homecheck step is complete and its rebuild succeeded (or it made no code change), run the `a2h-coldstart-smoke-gate` skill yourself — no sub-agent dispatch — with `harmony_project_dir = <HMOS>`, then record the outcome:
195
244
 
196
245
  - any verdict → the Finalization summary build line: `Smoke: <verdict>`.
197
246
  - `FAIL_*` → verdict + evidence + fix commits also in the final report's Manual Follow-up list.
@@ -202,16 +251,17 @@ All outcomes proceed to Finalization.
202
251
  ## Finalization (after all waves)
203
252
 
204
253
  1. Final build sanity check: run `a2h-fix-build-errors` once against `HMOS` with `DEVECO_HOME` as `deveco_studio_path` (fast no-op when green); commit any changes as `build fix`.
205
- 2. Design issue sweep: list `DESIGN_DIR/SPEC_DESIGN_G*_issue.md` files for manual follow-up.
206
- 3. Verify `design_map.md`: one row per designed group; every completed row has Start and End; any `进行中` End marks an incomplete group.
207
- 3b. **Ledger finalization**: if `<HMOS>/.hometrans/spec_pipeline_inflight.json` exists, snapshot it to `spec_pipeline_inflight.final-<ts>.json` (the summary report lists its unresolved/accepted rows), then `node <skill-dir>/scripts/inflight.mjs <HMOS> clear` and `node <skill-dir>/scripts/watchdog.mjs <HMOS> --stop` (idempotent belt-and-braces — the sentinel was already stopped at the last wave's barrier; never leave a background watchdog alive after the run ends).
254
+ 2. Design issue sweep: list `DESIGN_DIR/SPEC_DESIGN_G*_c*_issue.md` files for manual follow-up.
255
+ 3. Verify `design_map.md`: one row per wave member G; every completed row has Start and End; any `进行中` End marks an incomplete group.
256
+ 3b. **Ledger finalization**: snapshot `<HMOS>/.hometrans/dispatch/ledger.jsonl` to `dispatch/ledger.final-<ts>.jsonl` (the summary report lists its unresolved/accepted units), then write `<HMOS>/.hometrans/dispatch/waker.stop` (idempotent — the waker was already stopped at the last wave's barrier) and `reconcile` once for the final count. Never delete the ledger; never leave a background waker alive after the run ends.
208
257
  4. Print the summary report per `references/final-report-template.md` (every section mandatory; all outcomes — including failures — carried, never silently dropped).
209
- 5. Write `state.finalization = { done: true, final_build, smoke, at }` (atomic) — the completion marker callers check; absent = Finalization never ran.
258
+ 5. Write `state.finalization = { done: true, final_build, homecheck, smoke, at }` (atomic) — the completion marker callers check; absent = Finalization never ran.
210
259
 
211
260
  ## Ordering & safety rules
212
261
 
213
- - **The wave loop is sequential across waves**: S0 slices the wave before B0 designs its members (never pre-generate later waves); inside a wave, merges serialize on main in coding-completion order (group order breaks same-turn ties and governs resume).
262
+ - **The wave loop is sequential across waves**: S0 slices the wave before W0 creates its worktrees (never pre-generate later waves); inside a wave, merges serialize on main in coding-completion order (group order breaks same-turn ties and governs resume).
214
263
  - **Specs run sequentially inside a group** (chunks serial in one worktree; intra-page `page-order` always respected); **groups run in parallel only within a wave**, in isolated worktrees — same-wave write overlaps are expected and handled by B2's serial merge + the recovery ladder.
264
+ - **Design is per chunk**: each chunk generates its own `SPEC_DESIGN_G<G>_c<k>.md` before coding; the orchestrator records it in `state`/`design_map.md` on the chunk's successful release. Designs are runtime artifacts and are not committed.
215
265
  - **specs.json order is dual — scan order and dependency carrier**: it is the producer's linearization (`a2h-spec-generate` 的 `publish-specs`). As scan order: groups are ordered by first occurrence; chunks, merges, and the wave-slicing scan follow it (backfill may admit a later-order clean group into an earlier wave — wave numbers are not monotone in group order). As dependency carrier: each spec's `deps` (lifted by `plan_groups.ts` into group-level `deps`; same-page sister groups split by the scenario cap re-link through them) point at earlier so-ids, and dispatch-hold (`deps_ready.ts`) staggers within-wave dispatch on them: same-wave groups still code in parallel, only dispatch starts are staggered, and a released member's coder starts from its deps' merged code; deps pointing at later so-ids are cycle edges — ignored and recorded. Groups without deps data (older specs.json) keep the pure parallel behavior. The flat fallback bounds this contract: when the deps forecast for the remaining pool implies more than 2× the width-bound ideal dispatch rounds, `plan_waves.ts` slices flat and dispatch-hold stops holding (a `mode: "flat"` wave releases everything) — throughput wins over dep ordering, and same-wave conflicts surface as B2 merge work.
216
266
  - **Worktrees are the parallel-isolation mechanism** — never run two coders in one working tree, and coders never build or install dependencies inside them (compilation is B3's, on the main tree — coder-side build runs orphan worktree cleanup on Windows). The wiring surface (resolved once at Initialization into `state.config.wiring_files`) never gets direct coder edits (`wiring-mode`); the orchestrator applies wiring serially after merges.
217
267
  - **Every stage is a sub-agent**; results are JSON only; no result is a stop.
@@ -224,5 +274,5 @@ See `references/scripts.md` for the full inventory (scripts with their responsib
224
274
 
225
275
  ## When NOT to use
226
276
 
227
- - Generating only design docs — use `a2h-spec-design` directly.
277
+ - Generating only design docs — follow a2h-arkts-logic-coder's references/spec-design.md directly (the standalone design skill no longer exists).
228
278
  - Migrating from captured UI page snapshots — use `a2h-ui-spec-pipeline` / `a2h-batch-ui-align`.