@buaa_smat/hometrans 26.0.2 → 26.0.4

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 (1471) hide show
  1. package/README.md +8 -7
  2. package/agents/code-reviewer.md +111 -154
  3. package/dist/cli/index.js +4 -1
  4. package/dist/cli/init.js +131 -26
  5. package/dist/cli/uninstall.js +5 -5
  6. package/dist/platform/language.js +77 -0
  7. package/env-requirements.json +30 -5
  8. package/i18n/FILE-NAMES.md +9 -0
  9. package/i18n/agents/code-reviewer.md +436 -0
  10. package/i18n/agents/model-render-worker.md +38 -0
  11. package/i18n/agents/specgen-worker.md +18 -0
  12. package/i18n/commands/hometrans.md +17 -0
  13. package/i18n/skills/a2h-app-migrate/SKILL.md +206 -0
  14. package/i18n/skills/a2h-app-migrate/references/config.example.json +28 -0
  15. package/i18n/skills/a2h-app-migrate/references/feature-scope.md +121 -0
  16. package/i18n/skills/a2h-app-migrate/references/specs.example.json +19 -0
  17. package/i18n/skills/a2h-app-migrate/references/stage-map.md +50 -0
  18. package/i18n/skills/a2h-app-migrate/references/workflow.yaml +2007 -0
  19. package/i18n/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +187 -0
  20. package/i18n/skills/a2h-app-migrate/scripts/env_preflight.mjs +1656 -0
  21. package/i18n/skills/a2h-app-migrate/scripts/human_review_gate.mjs +728 -0
  22. package/i18n/skills/a2h-app-migrate/scripts/validate_workflow.mjs +541 -0
  23. package/i18n/skills/a2h-app-migrate/test/test_android_index.mjs +143 -0
  24. package/i18n/skills/a2h-app-migrate/test/test_arch_done.mjs +54 -0
  25. package/i18n/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +98 -0
  26. package/i18n/skills/a2h-app-migrate/test/test_config_example.mjs +42 -0
  27. package/i18n/skills/a2h-app-migrate/test/test_ensure_utg_snapshot.mjs +147 -0
  28. package/i18n/skills/a2h-app-migrate/test/test_env_requirements.mjs +713 -0
  29. package/i18n/skills/a2h-app-migrate/test/test_finalize.mjs +117 -0
  30. package/i18n/skills/a2h-app-migrate/test/test_image_probe.mjs +120 -0
  31. package/i18n/skills/a2h-app-migrate/test/test_interaction.mjs +122 -0
  32. package/i18n/skills/a2h-app-migrate/test/test_preflight_report.mjs +93 -0
  33. package/i18n/skills/a2h-app-migrate/test/test_resume_plan.mjs +271 -0
  34. package/i18n/skills/a2h-app-migrate/test/test_resume_summary.mjs +222 -0
  35. package/i18n/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +136 -0
  36. package/i18n/skills/a2h-app-migrate/test/test_run_dir.mjs +552 -0
  37. package/i18n/skills/a2h-app-migrate/test/test_skill_doc.mjs +144 -0
  38. package/i18n/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +263 -0
  39. package/i18n/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +165 -0
  40. package/i18n/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +76 -0
  41. package/i18n/skills/a2h-app-migrate/test/test_ui_batch_gate.mjs +226 -0
  42. package/i18n/skills/a2h-app-migrate/test/test_user_facing_progress.mjs +43 -0
  43. package/i18n/skills/a2h-app-migrate/test/test_utg_static_done.mjs +207 -0
  44. package/i18n/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +87 -0
  45. package/i18n/skills/a2h-arch-generate/SKILL.md +378 -0
  46. package/i18n/skills/a2h-arch-generate/examples/reconcile-existing-project.md +107 -0
  47. package/i18n/skills/a2h-arch-generate/examples/simple-conversion-backend.md +70 -0
  48. package/i18n/skills/a2h-arch-generate/references/arkts-mvvm-v2.md +1407 -0
  49. package/i18n/skills/a2h-arch-generate/references/artifact-contracts.generate.md +120 -0
  50. package/i18n/skills/a2h-arch-generate/references/artifact-contracts.reconcile.md +123 -0
  51. package/i18n/skills/a2h-arch-generate/references/bpta-layered-architecture-design.md +88 -0
  52. package/i18n/skills/a2h-arch-generate/references/database-schema-recovery.md +107 -0
  53. package/i18n/skills/a2h-arch-generate/references/existing-target-annotation.md +68 -0
  54. package/i18n/skills/a2h-arch-generate/references/harmony-project-inspection.md +150 -0
  55. package/i18n/skills/a2h-arch-generate/references/harmony-target-architecture.md +94 -0
  56. package/i18n/skills/a2h-arch-generate/references/homegraph-workflow.md +131 -0
  57. package/i18n/skills/a2h-arch-generate/references/source-baseline.md +93 -0
  58. package/i18n/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +360 -0
  59. package/i18n/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +798 -0
  60. package/i18n/skills/a2h-arch-generate/scripts/lib/contract_terms.mjs +40 -0
  61. package/i18n/skills/a2h-arch-generate/scripts/module_create/generate.mjs +639 -0
  62. package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/reconcile-layer-PROJECT_DESIGN.md +47 -0
  63. package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/single-entry-PROJECT_DESIGN.md +15 -0
  64. package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/three-layer-PROJECT_DESIGN.md +36 -0
  65. package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/verification-report.md +150 -0
  66. package/i18n/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages.json +5 -0
  67. package/i18n/skills/a2h-arch-generate/scripts/tests/e2e/run_e2e.mjs +548 -0
  68. package/i18n/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +1261 -0
  69. package/i18n/skills/a2h-arch-generate/scripts/tests/test_module_templates.mjs +70 -0
  70. package/i18n/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +851 -0
  71. package/i18n/skills/a2h-arch-generate/scripts/validate_data_docs.mjs +982 -0
  72. package/i18n/skills/a2h-arkts-logic-coder/SKILL.md +304 -0
  73. package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +10 -0
  74. package/i18n/skills/a2h-arkts-logic-coder/references/code-generation.md +249 -0
  75. package/i18n/skills/a2h-arkts-logic-coder/references/spec-design.md +344 -0
  76. package/i18n/skills/a2h-arkts-logic-coder/scripts/design/move_spec_technical_reference.mjs +162 -0
  77. package/i18n/skills/a2h-arkts-logic-coder/scripts/design/validate_spec_design_output.mjs +298 -0
  78. package/i18n/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +877 -0
  79. package/i18n/skills/a2h-arkts-logic-coder/scripts/test_check_units.ts +149 -0
  80. package/i18n/skills/a2h-arkts-logic-coder/test/golden/move_design.md +18 -0
  81. package/i18n/skills/a2h-arkts-logic-coder/test/golden/move_design_crlf.md +18 -0
  82. package/i18n/skills/a2h-arkts-logic-coder/test/golden/move_spec.md +7 -0
  83. package/i18n/skills/a2h-arkts-logic-coder/test/golden/validate_issue_file.md +12 -0
  84. package/i18n/skills/a2h-arkts-logic-coder/test/golden/validate_issues.json +57 -0
  85. package/i18n/skills/a2h-arkts-logic-coder/test/test_spec_design_scripts.mjs +547 -0
  86. package/i18n/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +597 -0
  87. package/i18n/skills/a2h-batch-ui-align/SKILL.md +372 -0
  88. package/i18n/skills/a2h-batch-ui-align/references/cards/alignment.md +35 -0
  89. package/i18n/skills/a2h-batch-ui-align/references/cards/build.md +13 -0
  90. package/i18n/skills/a2h-batch-ui-align/references/cards/canvas.md +17 -0
  91. package/i18n/skills/a2h-batch-ui-align/references/cards/dynamics.md +27 -0
  92. package/i18n/skills/a2h-batch-ui-align/references/cards/geometry.md +85 -0
  93. package/i18n/skills/a2h-batch-ui-align/references/cards/interaction.md +23 -0
  94. package/i18n/skills/a2h-batch-ui-align/references/cards/resources.md +89 -0
  95. package/i18n/skills/a2h-batch-ui-align/references/cards/state-v1.md +29 -0
  96. package/i18n/skills/a2h-batch-ui-align/references/cards/state.md +14 -0
  97. package/i18n/skills/a2h-batch-ui-align/references/cards/widgets.md +62 -0
  98. package/i18n/skills/a2h-batch-ui-align/references/cards/window.md +30 -0
  99. package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +930 -0
  100. package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +420 -0
  101. package/i18n/skills/a2h-batch-ui-align/references/incremental-scope.md +158 -0
  102. package/i18n/skills/a2h-batch-ui-align/references/lottie-integration.md +43 -0
  103. package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +2552 -0
  104. package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +560 -0
  105. package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +175 -0
  106. package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_decorator-quickref.md +251 -0
  107. package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_paradigm-selection.md +28 -0
  108. package/i18n/skills/a2h-batch-ui-align/references/step3-capture.md +232 -0
  109. package/i18n/skills/a2h-batch-ui-align/references/step4-prepare.md +206 -0
  110. package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +232 -0
  111. package/i18n/skills/a2h-batch-ui-align/scripts/android_parse_fast.ts +2005 -0
  112. package/i18n/skills/a2h-batch-ui-align/scripts/branch_coverage.mjs +155 -0
  113. package/i18n/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +2118 -0
  114. package/i18n/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +79 -0
  115. package/i18n/skills/a2h-batch-ui-align/scripts/detect_paradigm.mjs +245 -0
  116. package/i18n/skills/a2h-batch-ui-align/scripts/draw_coverage.mjs +264 -0
  117. package/i18n/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +1805 -0
  118. package/i18n/skills/a2h-batch-ui-align/scripts/gen_rule_docs.mjs +100 -0
  119. package/i18n/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +612 -0
  120. package/i18n/skills/a2h-batch-ui-align/scripts/group_pack.mjs +1959 -0
  121. package/i18n/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +147 -0
  122. package/i18n/skills/a2h-batch-ui-align/scripts/image_probe.mjs +405 -0
  123. package/i18n/skills/a2h-batch-ui-align/scripts/measure_pack.ts +1632 -0
  124. package/i18n/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +1300 -0
  125. package/i18n/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +1234 -0
  126. package/i18n/skills/a2h-batch-ui-align/scripts/state_doc.mjs +417 -0
  127. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/core/cli.ts +134 -0
  128. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/core/i18n.ts +18 -0
  129. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/main.ts +216 -0
  130. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +615 -0
  131. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/android_immersive.ts +125 -0
  132. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +49 -0
  133. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/block_comment_break.ts +64 -0
  134. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/blur_mirrored.ts +134 -0
  135. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_call_sites.ts +242 -0
  136. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_invokes_callback.ts +136 -0
  137. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/canvas.ts +255 -0
  138. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/color_string.ts +109 -0
  139. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/column_shrink.ts +154 -0
  140. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/constant_coordinate.ts +39 -0
  141. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/container_align.ts +140 -0
  142. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/dialog_backboard.ts +91 -0
  143. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_root_builtin.ts +69 -0
  144. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_route.ts +114 -0
  145. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/event_default_click.ts +179 -0
  146. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/fixed_size_safe_area.ts +103 -0
  147. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/format_string.ts +157 -0
  148. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_dialog.ts +110 -0
  149. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_picker.ts +115 -0
  150. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +339 -0
  151. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/image_source.ts +84 -0
  152. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/input_traps.ts +249 -0
  153. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +780 -0
  154. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_host.ts +145 -0
  155. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_content.ts +138 -0
  156. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +408 -0
  157. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/offset_in_scroll.ts +163 -0
  158. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/orphan_component.ts +119 -0
  159. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_binds.ts +56 -0
  160. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_string.ts +96 -0
  161. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +179 -0
  162. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/page_reachability.ts +94 -0
  163. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/path_commands_vp.ts +50 -0
  164. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +81 -0
  165. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/popup_menu.ts +137 -0
  166. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/r_template_string.ts +37 -0
  167. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +102 -0
  168. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/request_permission.ts +98 -0
  169. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/resource_as_string.ts +68 -0
  170. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +147 -0
  171. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/runtime_traps.ts +440 -0
  172. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/safe_area_clipping.ts +168 -0
  173. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +127 -0
  174. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_delta.ts +178 -0
  175. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sdk_api.ts +195 -0
  176. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/shared_chrome.ts +73 -0
  177. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_blur.ts +95 -0
  178. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/shell_content.ts +198 -0
  179. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/stack_occluding.ts +118 -0
  180. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/state_decorators.ts +73 -0
  181. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/state_name_shadows.ts +93 -0
  182. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/string_quote_leak.ts +73 -0
  183. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/surface_stroke.ts +50 -0
  184. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/swiper_index.ts +65 -0
  185. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +184 -0
  186. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/track_getter.ts +132 -0
  187. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/waterflow_sections.ts +231 -0
  188. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +53 -0
  189. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/window_mode.ts +67 -0
  190. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_a11y.test.mjs +598 -0
  191. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_blur.test.mjs +217 -0
  192. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_builder_calls.test.mjs +323 -0
  193. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_fidelity.test.mjs +507 -0
  194. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_input_runtime.test.mjs +514 -0
  195. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +651 -0
  196. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_occlusion_offset_format.test.mjs +372 -0
  197. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_overlay_lottie.test.mjs +199 -0
  198. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_review_fixes.test.mjs +298 -0
  199. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rules.test.mjs +365 -0
  200. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_padding_raster.test.mjs +262 -0
  201. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +473 -0
  202. package/i18n/skills/a2h-batch-ui-align/scripts/tests/branch_coverage.test.mjs +116 -0
  203. package/i18n/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +693 -0
  204. package/i18n/skills/a2h-batch-ui-align/scripts/tests/draw_coverage.test.mjs +245 -0
  205. package/i18n/skills/a2h-batch-ui-align/scripts/tests/export_ui_info.test.mjs +742 -0
  206. package/i18n/skills/a2h-batch-ui-align/scripts/tests/generate_pages_json.test.mjs +123 -0
  207. package/i18n/skills/a2h-batch-ui-align/scripts/tests/group_pack.test.mjs +363 -0
  208. package/i18n/skills/a2h-batch-ui-align/scripts/tests/image_probe.test.mjs +243 -0
  209. package/i18n/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +326 -0
  210. package/i18n/skills/a2h-batch-ui-align/scripts/tests/occlusion.test.mjs +102 -0
  211. package/i18n/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +356 -0
  212. package/i18n/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +60 -0
  213. package/i18n/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +395 -0
  214. package/i18n/skills/a2h-batch-ui-align/scripts/tests/static_check_registry.test.mjs +122 -0
  215. package/i18n/skills/a2h-batch-ui-align/scripts/tests/text_color_diff.test.mjs +250 -0
  216. package/i18n/skills/a2h-batch-ui-align/scripts/text_color_diff.mjs +470 -0
  217. package/i18n/skills/a2h-coldstart-smoke-gate/SKILL.md +62 -0
  218. package/i18n/skills/a2h-dashboard-render/SKILL.md +73 -0
  219. package/i18n/skills/a2h-dashboard-render/references/artifact-contract.jsonc +117 -0
  220. package/i18n/skills/a2h-dashboard-render/references/artifact-registry-spec.md +67 -0
  221. package/i18n/skills/a2h-dashboard-render/references/dashboard-guide.md +91 -0
  222. package/i18n/skills/a2h-dashboard-render/references/dashboard.config.example.json +19 -0
  223. package/i18n/skills/a2h-dashboard-render/scripts/dashboard.mjs +3245 -0
  224. package/i18n/skills/a2h-dashboard-render/scripts/device_capture.mjs +2050 -0
  225. package/i18n/skills/a2h-dashboard-render/test/fixtures/page_capture/expected.json +156 -0
  226. package/i18n/skills/a2h-dashboard-render/test/fixtures/page_capture/hmos.json +1 -0
  227. package/i18n/skills/a2h-dashboard-render/test/fixtures/page_capture/list.xml +1 -0
  228. package/i18n/skills/a2h-dashboard-render/test/test_artifact_contract.mjs +168 -0
  229. package/i18n/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +118 -0
  230. package/i18n/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +93 -0
  231. package/i18n/skills/a2h-dashboard-render/test/test_dashboard_i18n.mjs +154 -0
  232. package/i18n/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +1369 -0
  233. package/i18n/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +318 -0
  234. package/i18n/skills/a2h-dashboard-render/test/test_dashboard_ui_pipeline.mjs +81 -0
  235. package/i18n/skills/a2h-dashboard-render/test/test_device_capture_env.mjs +115 -0
  236. package/i18n/skills/a2h-dashboard-render/test/test_device_capture_policy.mjs +411 -0
  237. package/i18n/skills/a2h-dashboard-render/test/test_page_capture.mjs +147 -0
  238. package/i18n/skills/a2h-dashboard-render/test/test_usage_readers.mjs +512 -0
  239. package/i18n/skills/a2h-fix-build-errors/SKILL.md +304 -0
  240. package/i18n/skills/a2h-fix-build-errors/references/arkts-strict-patterns.md +219 -0
  241. package/i18n/skills/a2h-fix-build-errors/references/rdb-entity-pattern.md +131 -0
  242. package/i18n/skills/a2h-module-semantic-docs/SKILL.md +265 -0
  243. package/i18n/skills/a2h-module-semantic-docs/test/golden/module_structure.json +187 -0
  244. package/i18n/skills/a2h-module-semantic-docs/test/golden/module_understanding.json +351 -0
  245. package/i18n/skills/a2h-module-semantic-docs/test/golden/module_update_plan.json +495 -0
  246. package/i18n/skills/a2h-module-semantic-docs/test/golden/project_directory_structure.json +157 -0
  247. package/i18n/skills/a2h-module-semantic-docs/test/test_scan_and_commit.mjs +388 -0
  248. package/i18n/skills/a2h-page-specgen/SKILL.md +239 -0
  249. package/i18n/skills/a2h-page-specgen/references/behavior-ledger.md +1174 -0
  250. package/i18n/skills/a2h-page-specgen/references/body-language.md +179 -0
  251. package/i18n/skills/a2h-page-specgen/references/gates.md +329 -0
  252. package/i18n/skills/a2h-page-specgen/references/page-inventory.md +220 -0
  253. package/i18n/skills/a2h-page-specgen/references/scenario-authoring.md +274 -0
  254. package/i18n/skills/a2h-page-specgen/references/spec-example.md +312 -0
  255. package/i18n/skills/a2h-page-specgen/references/spec-template.md +210 -0
  256. package/i18n/skills/a2h-page-specgen/scripts/behavior-audit.mjs +2436 -0
  257. package/i18n/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +1833 -0
  258. package/i18n/skills/a2h-page-specgen/scripts/behavior-model.mjs +181 -0
  259. package/i18n/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +1205 -0
  260. package/i18n/skills/a2h-page-specgen/scripts/entry-evidence.mjs +1123 -0
  261. package/i18n/skills/a2h-page-specgen/scripts/facts-build.mjs +1613 -0
  262. package/i18n/skills/a2h-page-specgen/scripts/footprint.mjs +1650 -0
  263. package/i18n/skills/a2h-page-specgen/scripts/gate.mjs +864 -0
  264. package/i18n/skills/a2h-page-specgen/scripts/interactions.mjs +346 -0
  265. package/i18n/skills/a2h-page-specgen/scripts/inventory.mjs +371 -0
  266. package/i18n/skills/a2h-page-specgen/scripts/lib/contracts.mjs +155 -0
  267. package/i18n/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +235 -0
  268. package/i18n/skills/a2h-page-specgen/scripts/lib/hg.mjs +684 -0
  269. package/i18n/skills/a2h-page-specgen/scripts/lib/homegraph-process.mjs +102 -0
  270. package/i18n/skills/a2h-page-specgen/scripts/lib/homegraph-query.mjs +161 -0
  271. package/i18n/skills/a2h-page-specgen/scripts/lib/operation-reviews.mjs +913 -0
  272. package/i18n/skills/a2h-page-specgen/scripts/lib/prose.mjs +252 -0
  273. package/i18n/skills/a2h-page-specgen/scripts/lib/reach.mjs +53 -0
  274. package/i18n/skills/a2h-page-specgen/scripts/lib/semantic-detail.mjs +353 -0
  275. package/i18n/skills/a2h-page-specgen/scripts/lib/source-text.mjs +497 -0
  276. package/i18n/skills/a2h-page-specgen/scripts/operation-evidence.mjs +1542 -0
  277. package/i18n/skills/a2h-page-specgen/scripts/prepare.mjs +864 -0
  278. package/i18n/skills/a2h-page-specgen/scripts/render.mjs +276 -0
  279. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +897 -0
  280. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.json +25 -0
  281. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +373 -0
  282. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +300 -0
  283. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.json +47 -0
  284. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +373 -0
  285. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +300 -0
  286. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +2694 -0
  287. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +726 -0
  288. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +108 -0
  289. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +373 -0
  290. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.review.md +65 -0
  291. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +267 -0
  292. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.json +57 -0
  293. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +373 -0
  294. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +300 -0
  295. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/branch-checklist.md +32 -0
  296. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/gate-results.json +22 -0
  297. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/manifest.json +111 -0
  298. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/portability.test.mjs +141 -0
  299. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/review.md +22 -0
  300. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +553 -0
  301. package/i18n/skills/a2h-page-specgen/scripts/test/android-entry-evidence.test.mjs +585 -0
  302. package/i18n/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +755 -0
  303. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-group.test.mjs +546 -0
  304. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-post.test.mjs +655 -0
  305. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +1234 -0
  306. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-component-gate.test.mjs +520 -0
  307. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +1516 -0
  308. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-finalize.test.mjs +759 -0
  309. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +630 -0
  310. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-model.test.mjs +118 -0
  311. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +798 -0
  312. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-regression.test.mjs +886 -0
  313. package/i18n/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +205 -0
  314. package/i18n/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +475 -0
  315. package/i18n/skills/a2h-page-specgen/scripts/test/facts.test.mjs +1205 -0
  316. package/i18n/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +271 -0
  317. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/facts/i18n/zh.js.txt +8 -0
  318. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-b+zh+Hans/strings.xml +7 -0
  319. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-zh/strings.xml +8 -0
  320. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/App.vue +1 -0
  321. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-conflict-record.json +17 -0
  322. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-record.json +17 -0
  323. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/manifest.json +3 -0
  324. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages/list/index.vue +80 -0
  325. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages.json +14 -0
  326. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/source-record.json +15 -0
  327. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/components/RefreshPanel.vue +15 -0
  328. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/composables/useRefresh.ts +50 -0
  329. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/pages/help/index.vue +9 -0
  330. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/state/store.ts +4 -0
  331. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/utg/click_paths.json +28 -0
  332. package/i18n/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +1029 -0
  333. package/i18n/skills/a2h-page-specgen/scripts/test/fsx.test.mjs +32 -0
  334. package/i18n/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +143 -0
  335. package/i18n/skills/a2h-page-specgen/scripts/test/gate.test.mjs +1121 -0
  336. package/i18n/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +332 -0
  337. package/i18n/skills/a2h-page-specgen/scripts/test/helpers.mjs +188 -0
  338. package/i18n/skills/a2h-page-specgen/scripts/test/hg.test.mjs +549 -0
  339. package/i18n/skills/a2h-page-specgen/scripts/test/homegraph-process-fixture.mjs +130 -0
  340. package/i18n/skills/a2h-page-specgen/scripts/test/homegraph-query.test.mjs +288 -0
  341. package/i18n/skills/a2h-page-specgen/scripts/test/integration.test.mjs +368 -0
  342. package/i18n/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +348 -0
  343. package/i18n/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +250 -0
  344. package/i18n/skills/a2h-page-specgen/scripts/test/keys.test.mjs +776 -0
  345. package/i18n/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +1002 -0
  346. package/i18n/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +1103 -0
  347. package/i18n/skills/a2h-page-specgen/scripts/test/prepare-homegraph-reproduction.mjs +365 -0
  348. package/i18n/skills/a2h-page-specgen/scripts/test/prepare-homegraph.test.mjs +569 -0
  349. package/i18n/skills/a2h-page-specgen/scripts/test/prepare-pipeline.test.mjs +326 -0
  350. package/i18n/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +240 -0
  351. package/i18n/skills/a2h-page-specgen/scripts/test/prose.test.mjs +427 -0
  352. package/i18n/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +531 -0
  353. package/i18n/skills/a2h-page-specgen/scripts/test/reach.test.mjs +93 -0
  354. package/i18n/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +418 -0
  355. package/i18n/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +1782 -0
  356. package/i18n/skills/a2h-page-specgen/scripts/test/render.test.mjs +536 -0
  357. package/i18n/skills/a2h-page-specgen/scripts/test/review-followup.test.mjs +467 -0
  358. package/i18n/skills/a2h-page-specgen/scripts/test/semantic-detail.test.mjs +949 -0
  359. package/i18n/skills/a2h-page-specgen/scripts/test/submit.test.mjs +1239 -0
  360. package/i18n/skills/a2h-page-specgen/scripts/test/uniapp-operation-evidence.test.mjs +639 -0
  361. package/i18n/skills/a2h-page-specgen/scripts/test/utg-footprint-contract.test.mjs +274 -0
  362. package/i18n/skills/a2h-page-specgen/scripts/test/utg-io.test.mjs +90 -0
  363. package/i18n/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +1801 -0
  364. package/i18n/skills/a2h-resource-convert/SKILL.md +375 -0
  365. package/i18n/skills/a2h-resource-convert/references/code-vector-icon-rules.md +336 -0
  366. package/i18n/skills/a2h-resource-convert/references/incremental-page-migration.md +272 -0
  367. package/i18n/skills/a2h-resource-convert/references/lottie-conversion-rules.md +226 -0
  368. package/i18n/skills/a2h-resource-convert/references/resource-mapping-rules.md +493 -0
  369. package/i18n/skills/a2h-resource-convert/references/step4-resource-types.md +251 -0
  370. package/i18n/skills/a2h-resource-convert/references/step7-report-template.md +217 -0
  371. package/i18n/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +2596 -0
  372. package/i18n/skills/a2h-resource-convert/scripts/lottie_hosts.ts +415 -0
  373. package/i18n/skills/a2h-resource-convert/scripts/tests/docs_only_i18n.test.mjs +44 -0
  374. package/i18n/skills/a2h-resource-convert/scripts/tests/lottie_hosts.test.mjs +222 -0
  375. package/i18n/skills/a2h-spec-design-pipeline/SKILL.md +238 -0
  376. package/i18n/skills/a2h-spec-design-pipeline/references/coding-loop.md +358 -0
  377. package/i18n/skills/a2h-spec-design-pipeline/references/homegraph-cli.md +307 -0
  378. package/i18n/skills/a2h-spec-design-pipeline/references/initialization.md +103 -0
  379. package/i18n/skills/a2h-spec-design-pipeline/references/merge-queue.md +266 -0
  380. package/i18n/skills/a2h-spec-design-pipeline/references/post-loop.md +23 -0
  381. package/i18n/skills/a2h-spec-design-pipeline/references/review-loop.md +71 -0
  382. package/i18n/skills/a2h-spec-design-pipeline/references/scripts.md +55 -0
  383. package/i18n/skills/a2h-spec-design-pipeline/references/specs.example.json +19 -0
  384. package/i18n/skills/a2h-spec-design-pipeline/references/state-and-resume.md +246 -0
  385. package/i18n/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +752 -0
  386. package/i18n/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +661 -0
  387. package/i18n/skills/a2h-spec-generate/SKILL.md +375 -0
  388. package/i18n/skills/a2h-spec-generate/references/batch-mode.md +215 -0
  389. package/i18n/skills/a2h-spec-generate/references/delete-blast-radius.md +3 -0
  390. package/i18n/skills/a2h-spec-generate/references/dispatch-watchdog.md +150 -0
  391. package/i18n/skills/a2h-spec-generate/references/fusion-task-contract.md +184 -0
  392. package/i18n/skills/a2h-spec-generate/references/input-formats.md +27 -0
  393. package/i18n/skills/a2h-spec-generate/references/library-evidence.md +3 -0
  394. package/i18n/skills/a2h-spec-generate/references/method-discipline.md +64 -0
  395. package/i18n/skills/a2h-spec-generate/references/optional-gates.json +45 -0
  396. package/i18n/skills/a2h-spec-generate/references/recall-guide.md +84 -0
  397. package/i18n/skills/a2h-spec-generate/references/recall-terse.md +3 -0
  398. package/i18n/skills/a2h-spec-generate/references/recall-uniapp.md +10 -0
  399. package/i18n/skills/a2h-spec-generate/references/requirement-scope.md +122 -0
  400. package/i18n/skills/a2h-spec-generate/references/review-checklist.md +22 -0
  401. package/i18n/skills/a2h-spec-generate/references/spec-sample-complex.md +80 -0
  402. package/i18n/skills/a2h-spec-generate/references/spec-sample-transfer.md +43 -0
  403. package/i18n/skills/a2h-spec-generate/references/spec-samples.md +65 -0
  404. package/i18n/skills/a2h-spec-generate/references/specs.schema.json +85 -0
  405. package/i18n/skills/a2h-spec-generate/references/synthesis-rules.md +145 -0
  406. package/i18n/skills/a2h-spec-generate/references/transfer-file.md +5 -0
  407. package/i18n/skills/a2h-spec-generate/references/transfer-socket.md +5 -0
  408. package/i18n/skills/a2h-spec-generate/references/worker-rules.md +129 -0
  409. package/i18n/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +702 -0
  410. package/i18n/skills/a2h-spec-generate/scripts/check_spec.ts +515 -0
  411. package/i18n/skills/a2h-spec-generate/scripts/collect-specs.mjs +727 -0
  412. package/i18n/skills/a2h-spec-generate/scripts/feature-stem.mjs +151 -0
  413. package/i18n/skills/a2h-spec-generate/scripts/parse_requirements.ts +515 -0
  414. package/i18n/skills/a2h-spec-generate/scripts/prepare-facts.mjs +313 -0
  415. package/i18n/skills/a2h-spec-generate/scripts/publish-specs.mjs +354 -0
  416. package/i18n/skills/a2h-spec-generate/scripts/regroup-by-page.mjs +669 -0
  417. package/i18n/skills/a2h-spec-generate/scripts/render-tasks.mjs +385 -0
  418. package/i18n/skills/a2h-spec-generate/scripts/report.mjs +136 -0
  419. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +2217 -0
  420. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +845 -0
  421. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +572 -0
  422. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +580 -0
  423. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +1265 -0
  424. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +1057 -0
  425. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/behavior-seed.ts +565 -0
  426. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/library-evidence.ts +544 -0
  427. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/navigation-guard.ts +363 -0
  428. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/schema.ts +317 -0
  429. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/selfcheck.ts +707 -0
  430. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/spec-bindings.ts +436 -0
  431. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +608 -0
  432. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +650 -0
  433. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +178 -0
  434. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +923 -0
  435. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +912 -0
  436. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +279 -0
  437. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +163 -0
  438. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +1039 -0
  439. package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +256 -0
  440. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fixtures/fusion-run.ts +243 -0
  441. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-area-facts.test.ts +576 -0
  442. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-detectors.test.ts +176 -0
  443. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-e2e.test.ts +103 -0
  444. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-schema.test.ts +111 -0
  445. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-selfcheck.test.ts +307 -0
  446. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +340 -0
  447. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +1857 -0
  448. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-navigation-guard.test.ts +262 -0
  449. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +722 -0
  450. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-scope.test.ts +339 -0
  451. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-selfcheck.test.ts +1253 -0
  452. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +608 -0
  453. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/model-scope.test.ts +411 -0
  454. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/model-task-contract.test.ts +300 -0
  455. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/model-v4.test.ts +1061 -0
  456. package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/uniapp-scanner.test.ts +159 -0
  457. package/i18n/skills/a2h-spec-generate/template/REQ.txt +22 -0
  458. package/i18n/skills/a2h-spec-generate/template/REQ.xlsx +0 -0
  459. package/i18n/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +847 -0
  460. package/i18n/skills/a2h-spec-generate/test/check-spec.test.ts +415 -0
  461. package/i18n/skills/a2h-spec-generate/test/collect-specs.test.mjs +808 -0
  462. package/i18n/skills/a2h-spec-generate/test/feature-stem.test.mjs +157 -0
  463. package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/components/MyCard.vue +9 -0
  464. package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/feature/editor/index.vue +1 -0
  465. package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/detail/index.vue +1 -0
  466. package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/home/index.vue +33 -0
  467. package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/settings/index.vue +1 -0
  468. package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages.json +23 -0
  469. package/i18n/skills/a2h-spec-generate/test/inspect-uniapp.test.mjs +54 -0
  470. package/i18n/skills/a2h-spec-generate/test/prepare-facts.test.mjs +41 -0
  471. package/i18n/skills/a2h-spec-generate/test/publish-specs.test.mjs +295 -0
  472. package/i18n/skills/a2h-spec-generate/test/regroup-by-page.test.mjs +354 -0
  473. package/i18n/skills/a2h-spec-generate/test/render-tasks.test.mjs +596 -0
  474. package/i18n/skills/a2h-spec-generate/test/report.test.mjs +47 -0
  475. package/i18n/skills/a2h-utg-explorer/SKILL.md +126 -0
  476. package/i18n/skills/a2h-utg-explorer/references/architecture.md +282 -0
  477. package/i18n/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +908 -0
  478. package/i18n/skills/a2h-utg-explorer/scripts/final_utg.mjs +446 -0
  479. package/i18n/skills/a2h-utg-explorer/scripts/hint_check.mjs +147 -0
  480. package/i18n/skills/a2h-utg-explorer/scripts/hint_source.mjs +119 -0
  481. package/i18n/skills/a2h-utg-explorer/scripts/hybrid_route_cdp.mjs +376 -0
  482. package/i18n/skills/a2h-utg-explorer/scripts/recover_b.mjs +550 -0
  483. package/i18n/skills/a2h-utg-explorer/scripts/recover_d.mjs +647 -0
  484. package/i18n/skills/a2h-utg-explorer/scripts/seed_recipes.mjs +426 -0
  485. package/i18n/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +66 -0
  486. package/i18n/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +302 -0
  487. package/i18n/skills/a2h-utg-explorer/scripts/tests/content_wait.test.mjs +207 -0
  488. package/i18n/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +252 -0
  489. package/i18n/skills/a2h-utg-explorer/scripts/tests/direct_launch.test.mjs +130 -0
  490. package/i18n/skills/a2h-utg-explorer/scripts/tests/final_utg.test.mjs +135 -0
  491. package/i18n/skills/a2h-utg-explorer/scripts/tests/generalization_fixes.test.mjs +252 -0
  492. package/i18n/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +129 -0
  493. package/i18n/skills/a2h-utg-explorer/scripts/tests/hybrid_route_identity.test.mjs +146 -0
  494. package/i18n/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +614 -0
  495. package/i18n/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +214 -0
  496. package/i18n/skills/a2h-utg-explorer/scripts/tests/overflow_prefix.test.mjs +327 -0
  497. package/i18n/skills/a2h-utg-explorer/scripts/tests/overlay_identity.test.mjs +204 -0
  498. package/i18n/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +393 -0
  499. package/i18n/skills/a2h-utg-explorer/scripts/tests/pager_navigation.test.mjs +119 -0
  500. package/i18n/skills/a2h-utg-explorer/scripts/tests/panel_routes.test.mjs +208 -0
  501. package/i18n/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +240 -0
  502. package/i18n/skills/a2h-utg-explorer/scripts/tests/recover_b.test.mjs +173 -0
  503. package/i18n/skills/a2h-utg-explorer/scripts/tests/recover_d.test.mjs +280 -0
  504. package/i18n/skills/a2h-utg-explorer/scripts/tests/robustness_fixes.test.mjs +345 -0
  505. package/i18n/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +194 -0
  506. package/i18n/skills/a2h-utg-explorer/scripts/tests/seed_recipes.test.mjs +261 -0
  507. package/i18n/skills/a2h-utg-explorer/scripts/tests/semantics.test.mjs +102 -0
  508. package/i18n/skills/a2h-utg-explorer/scripts/tests/state_ambiguity.test.mjs +92 -0
  509. package/i18n/skills/a2h-utg-explorer/scripts/tests/twin_opener.test.mjs +119 -0
  510. package/i18n/skills/a2h-utg-explorer/scripts/tests/variant_strings.test.mjs +63 -0
  511. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/diagnostics.mjs +196 -0
  512. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/hybrid_route.mjs +140 -0
  513. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +1562 -0
  514. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +47 -0
  515. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +2714 -0
  516. package/i18n/skills/a2h-utg-static/SKILL.md +372 -0
  517. package/i18n/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +248 -0
  518. package/i18n/skills/a2h-utg-static/references/view-interactions.md +215 -0
  519. package/i18n/skills/a2h-utg-static/scripts/assemble.mjs +2190 -0
  520. package/i18n/skills/a2h-utg-static/scripts/audit.mjs +268 -0
  521. package/i18n/skills/a2h-utg-static/scripts/click_paths.mjs +720 -0
  522. package/i18n/skills/a2h-utg-static/scripts/compose_body_text.mjs +250 -0
  523. package/i18n/skills/a2h-utg-static/scripts/compose_titles.mjs +374 -0
  524. package/i18n/skills/a2h-utg-static/scripts/compose_widgets.mjs +498 -0
  525. package/i18n/skills/a2h-utg-static/scripts/data_model.mjs +590 -0
  526. package/i18n/skills/a2h-utg-static/scripts/data_producers.mjs +431 -0
  527. package/i18n/skills/a2h-utg-static/scripts/fragment_nav.mjs +1137 -0
  528. package/i18n/skills/a2h-utg-static/scripts/hybrid_scope.mjs +705 -0
  529. package/i18n/skills/a2h-utg-static/scripts/interaction_sites.mjs +267 -0
  530. package/i18n/skills/a2h-utg-static/scripts/label_resolve.mjs +958 -0
  531. package/i18n/skills/a2h-utg-static/scripts/lib/hybrid-provenance.mjs +201 -0
  532. package/i18n/skills/a2h-utg-static/scripts/lib/uniapp-routes.mjs +195 -0
  533. package/i18n/skills/a2h-utg-static/scripts/nl_hints.mjs +545 -0
  534. package/i18n/skills/a2h-utg-static/scripts/presenter_nav.mjs +490 -0
  535. package/i18n/skills/a2h-utg-static/scripts/static_prior.mjs +956 -0
  536. package/i18n/skills/a2h-utg-static/scripts/tests/regression_matrix.mjs +1261 -0
  537. package/i18n/skills/a2h-utg-static/scripts/tests/test_callee_string_default.mjs +30 -0
  538. package/i18n/skills/a2h-utg-static/scripts/tests/test_chrome_tokens.mjs +60 -0
  539. package/i18n/skills/a2h-utg-static/scripts/tests/test_commented_out_trigger.mjs +111 -0
  540. package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +125 -0
  541. package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_vm_nav.mjs +289 -0
  542. package/i18n/skills/a2h-utg-static/scripts/tests/test_data_model.mjs +120 -0
  543. package/i18n/skills/a2h-utg-static/scripts/tests/test_data_producers.mjs +113 -0
  544. package/i18n/skills/a2h-utg-static/scripts/tests/test_disabled_guard.mjs +42 -0
  545. package/i18n/skills/a2h-utg-static/scripts/tests/test_drawer_panel_gesture.mjs +140 -0
  546. package/i18n/skills/a2h-utg-static/scripts/tests/test_fresh_branch_guard.mjs +49 -0
  547. package/i18n/skills/a2h-utg-static/scripts/tests/test_hint_language.mjs +136 -0
  548. package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_bundle_attribution.mjs +74 -0
  549. package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_bundled_pages.mjs +181 -0
  550. package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_provenance.mjs +150 -0
  551. package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +457 -0
  552. package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_title_renders.mjs +118 -0
  553. package/i18n/skills/a2h-utg-static/scripts/tests/test_label_accessor_forms.mjs +187 -0
  554. package/i18n/skills/a2h-utg-static/scripts/tests/test_label_source.mjs +70 -0
  555. package/i18n/skills/a2h-utg-static/scripts/tests/test_launch_intent_guard.mjs +67 -0
  556. package/i18n/skills/a2h-utg-static/scripts/tests/test_login_interceptor.mjs +368 -0
  557. package/i18n/skills/a2h-utg-static/scripts/tests/test_mode_and_cb_param.mjs +172 -0
  558. package/i18n/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +78 -0
  559. package/i18n/skills/a2h-utg-static/scripts/tests/test_nl_hint_grammar.mjs +42 -0
  560. package/i18n/skills/a2h-utg-static/scripts/tests/test_nl_hints_gate.mjs +85 -0
  561. package/i18n/skills/a2h-utg-static/scripts/tests/test_nl_hints_off_path.mjs +67 -0
  562. package/i18n/skills/a2h-utg-static/scripts/tests/test_non_gesture_step_flag.mjs +62 -0
  563. package/i18n/skills/a2h-utg-static/scripts/tests/test_preference_widgets.mjs +48 -0
  564. package/i18n/skills/a2h-utg-static/scripts/tests/test_read_text_crlf.mjs +41 -0
  565. package/i18n/skills/a2h-utg-static/scripts/tests/test_sealed_dialog_state.mjs +148 -0
  566. package/i18n/skills/a2h-utg-static/scripts/tests/test_state_specific_hop.mjs +130 -0
  567. package/i18n/skills/a2h-utg-static/scripts/tests/test_synthetic_label_identity.mjs +51 -0
  568. package/i18n/skills/a2h-utg-static/scripts/tests/test_template_title.mjs +61 -0
  569. package/i18n/skills/a2h-utg-static/scripts/tests/test_ui_elements_flow_filter.mjs +110 -0
  570. package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_data_table.mjs +340 -0
  571. package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_relative_url.mjs +125 -0
  572. package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_routes.mjs +161 -0
  573. package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +330 -0
  574. package/i18n/skills/a2h-utg-static/scripts/tests/test_utg_specgen_boundary.mjs +45 -0
  575. package/i18n/skills/a2h-utg-static/scripts/tests/test_viewpage_nav.mjs +340 -0
  576. package/i18n/skills/a2h-utg-static/scripts/uniapp_nav.mjs +1394 -0
  577. package/i18n/skills/a2h-utg-static/scripts/uniapp_widgets.mjs +244 -0
  578. package/i18n/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +769 -0
  579. package/package.json +11 -161
  580. package/platforms/deveco/agents/code-reviewer.frontmatter.md +1 -1
  581. package/platforms/opencode/agents/code-reviewer.frontmatter.md +1 -1
  582. package/skills/a2h-app-migrate/SKILL.md +31 -12
  583. package/skills/a2h-app-migrate/references/config.example.json +1 -0
  584. package/skills/a2h-app-migrate/references/feature-scope.md +121 -0
  585. package/skills/a2h-app-migrate/references/stage-map.md +4 -2
  586. package/skills/a2h-app-migrate/references/workflow.yaml +427 -103
  587. package/skills/a2h-app-migrate/scripts/android_index.mjs +35 -8
  588. package/skills/a2h-app-migrate/scripts/check_module_docs_done.mjs +39 -1
  589. package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +78 -6
  590. package/skills/a2h-app-migrate/scripts/check_spec_pipeline_done.mjs +144 -9
  591. package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +14 -1
  592. package/skills/a2h-app-migrate/scripts/check_utg_static_done.mjs +46 -5
  593. package/skills/a2h-app-migrate/scripts/diagnose.mjs +162 -0
  594. package/skills/a2h-app-migrate/scripts/env_preflight.mjs +178 -44
  595. package/skills/a2h-app-migrate/scripts/feature_scope.mjs +347 -0
  596. package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +81 -11
  597. package/skills/a2h-app-migrate/scripts/infer_android_root.mjs +17 -1
  598. package/skills/a2h-app-migrate/scripts/ledger.mjs +80 -10
  599. package/skills/a2h-app-migrate/scripts/migration_manifest.mjs +351 -0
  600. package/skills/a2h-app-migrate/scripts/paths_preflight.mjs +9 -23
  601. package/skills/a2h-app-migrate/scripts/resume_plan.mjs +72 -12
  602. package/skills/a2h-app-migrate/scripts/reuse_static_utg.mjs +33 -1
  603. package/skills/a2h-app-migrate/scripts/run_dir.mjs +137 -41
  604. package/skills/a2h-app-migrate/scripts/scope_model.mjs +255 -0
  605. package/skills/a2h-app-migrate/scripts/scope_report.mjs +128 -0
  606. package/skills/a2h-app-migrate/scripts/source_fp.mjs +120 -0
  607. package/skills/a2h-app-migrate/scripts/spec_layout.mjs +2 -0
  608. package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +38 -0
  609. package/skills/a2h-app-migrate/test/test_android_index.mjs +143 -0
  610. package/skills/a2h-app-migrate/test/test_apk_preflight.mjs +63 -0
  611. package/skills/a2h-app-migrate/test/test_arch_done.mjs +54 -0
  612. package/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +98 -0
  613. package/skills/a2h-app-migrate/test/test_config_example.mjs +42 -0
  614. package/skills/a2h-app-migrate/test/test_devecocli_docs_preflight.mjs +32 -0
  615. package/skills/a2h-app-migrate/test/test_ensure_utg_snapshot.mjs +147 -0
  616. package/skills/a2h-app-migrate/test/test_entry_guards.mjs +102 -0
  617. package/skills/a2h-app-migrate/test/test_env_requirements.mjs +713 -0
  618. package/skills/a2h-app-migrate/test/test_feature_scope.mjs +217 -0
  619. package/skills/a2h-app-migrate/test/test_finalize.mjs +117 -0
  620. package/skills/a2h-app-migrate/test/test_gate_checkpoint.mjs +146 -0
  621. package/skills/a2h-app-migrate/test/test_hmos_fingerprint.mjs +68 -0
  622. package/skills/a2h-app-migrate/test/test_i18n_engine_mirror.mjs +51 -0
  623. package/skills/a2h-app-migrate/test/test_image_probe.mjs +120 -0
  624. package/skills/a2h-app-migrate/test/test_incremental_acceptance.mjs +145 -0
  625. package/skills/a2h-app-migrate/test/test_incremental_phase2.mjs +223 -0
  626. package/skills/a2h-app-migrate/test/test_incremental_phase2_acceptance.mjs +157 -0
  627. package/skills/a2h-app-migrate/test/test_incremental_profile.mjs +84 -0
  628. package/skills/a2h-app-migrate/test/test_infer_android_root.mjs +101 -0
  629. package/skills/a2h-app-migrate/test/test_interaction.mjs +122 -0
  630. package/skills/a2h-app-migrate/test/test_json_io.mjs +32 -0
  631. package/skills/a2h-app-migrate/test/test_leaf_questions.mjs +150 -0
  632. package/skills/a2h-app-migrate/test/test_migration_manifest.mjs +225 -0
  633. package/skills/a2h-app-migrate/test/test_module_docs_done.mjs +86 -0
  634. package/skills/a2h-app-migrate/test/test_parse_args.mjs +69 -0
  635. package/skills/a2h-app-migrate/test/test_preflight_report.mjs +93 -0
  636. package/skills/a2h-app-migrate/test/test_resume_plan.mjs +271 -0
  637. package/skills/a2h-app-migrate/test/test_resume_summary.mjs +222 -0
  638. package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +136 -0
  639. package/skills/a2h-app-migrate/test/test_run_dir.mjs +552 -0
  640. package/skills/a2h-app-migrate/test/test_scope_model.mjs +172 -0
  641. package/skills/a2h-app-migrate/test/test_skill_doc.mjs +144 -0
  642. package/skills/a2h-app-migrate/test/test_spec_engine_acceptance.mjs +94 -0
  643. package/skills/a2h-app-migrate/test/test_spec_engine_contract.mjs +155 -0
  644. package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +263 -0
  645. package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +165 -0
  646. package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +511 -0
  647. package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +76 -0
  648. package/skills/a2h-app-migrate/test/test_ui_batch_capture_audit.mjs +106 -0
  649. package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +65 -0
  650. package/skills/a2h-app-migrate/test/test_ui_batch_gate.mjs +226 -0
  651. package/skills/a2h-app-migrate/test/test_uniapp_preflight.mjs +83 -0
  652. package/skills/a2h-app-migrate/test/test_user_facing_progress.mjs +43 -0
  653. package/skills/a2h-app-migrate/test/test_utg_dirs.mjs +41 -0
  654. package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +214 -0
  655. package/skills/a2h-app-migrate/test/test_validate_races.mjs +50 -0
  656. package/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +87 -0
  657. package/skills/a2h-arch-generate/SKILL.md +20 -17
  658. package/skills/a2h-arch-generate/references/database-schema-recovery.md +2 -2
  659. package/skills/a2h-arch-generate/references/harmony-project-inspection.md +8 -8
  660. package/skills/a2h-arch-generate/references/homegraph-workflow.md +25 -14
  661. package/skills/a2h-arch-generate/references/module-evidence-subagent.md +2 -2
  662. package/skills/a2h-arch-generate/references/source-baseline.md +4 -4
  663. package/skills/a2h-arch-generate/scripts/cleanup_intermediates.mjs +34 -3
  664. package/skills/a2h-arch-generate/scripts/create_project.mjs +24 -1
  665. package/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +35 -46
  666. package/skills/a2h-arch-generate/scripts/inspect_and_route.mjs +29 -5
  667. package/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +33 -40
  668. package/skills/a2h-arch-generate/scripts/module_create/generate.mjs +2 -3
  669. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/build.gradle +11 -0
  670. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/AndroidManifest.xml +12 -0
  671. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/MainActivity.kt +8 -0
  672. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/NotesStore.kt +17 -0
  673. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/build.gradle +3 -0
  674. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/settings.gradle +1 -0
  675. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/AppScope/app.json5 +8 -0
  676. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/build-profile.json5 +14 -0
  677. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/build-profile.json5 +7 -0
  678. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/oh-package.json5 +1 -0
  679. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/src/main/ets/utils/Format.ets +3 -0
  680. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/build-profile.json5 +7 -0
  681. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/oh-package.json5 +1 -0
  682. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/src/main/ets/pages/Home.ets +3 -0
  683. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/build-profile.json5 +7 -0
  684. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/oh-package.json5 +1 -0
  685. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/src/main/ets/engine/SyncEngine.ets +3 -0
  686. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/hvigorfile.ts +1 -0
  687. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/oh-package.json5 +1 -0
  688. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/build-profile.json5 +7 -0
  689. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/oh-package.json5 +9 -0
  690. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/src/main/ets/pages/Index.ets +7 -0
  691. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/App.vue +10 -0
  692. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/manifest.json +6 -0
  693. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages/index/index.vue +16 -0
  694. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages.json +5 -0
  695. package/skills/a2h-arch-generate/scripts/tests/e2e/run_e2e.mjs +548 -0
  696. package/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +1260 -0
  697. package/skills/a2h-arch-generate/scripts/tests/test_cleanup.mjs +208 -0
  698. package/skills/a2h-arch-generate/scripts/tests/test_console_encoding.mjs +52 -0
  699. package/skills/a2h-arch-generate/scripts/tests/test_git_root.mjs +34 -0
  700. package/skills/a2h-arch-generate/scripts/tests/test_module_templates.mjs +70 -0
  701. package/skills/a2h-arch-generate/scripts/tests/test_router.mjs +164 -0
  702. package/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +2 -5
  703. package/skills/a2h-arch-generate/scripts/validate_incremental_docs.mjs +4 -2
  704. package/skills/a2h-arkts-logic-coder/SKILL.md +163 -15
  705. package/skills/a2h-arkts-logic-coder/references/ISSUES.md +3 -1
  706. package/skills/a2h-arkts-logic-coder/references/code-generation.md +120 -1
  707. package/skills/a2h-arkts-logic-coder/references/spec-design.md +46 -11
  708. package/skills/a2h-arkts-logic-coder/scripts/design/validate_spec_design_output.mjs +22 -25
  709. package/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +873 -0
  710. package/skills/a2h-arkts-logic-coder/test/golden/inspect_happy.json +20 -0
  711. package/skills/a2h-arkts-logic-coder/test/golden/move_design.md +18 -0
  712. package/skills/a2h-arkts-logic-coder/test/golden/move_design_crlf.md +18 -0
  713. package/skills/a2h-arkts-logic-coder/test/golden/move_spec.md +7 -0
  714. package/skills/a2h-arkts-logic-coder/test/golden/resolve_cases.json +36 -0
  715. package/skills/a2h-arkts-logic-coder/test/golden/validate_issue_file.md +12 -0
  716. package/skills/a2h-arkts-logic-coder/test/golden/validate_issues.json +57 -0
  717. package/skills/a2h-arkts-logic-coder/test/test_spec_design_scripts.mjs +547 -0
  718. package/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +596 -0
  719. package/skills/a2h-batch-ui-align/SKILL.md +78 -26
  720. package/skills/a2h-batch-ui-align/assets/ColorUtils.ets +16 -2
  721. package/skills/a2h-batch-ui-align/references/cards/alignment.md +5 -1
  722. package/skills/a2h-batch-ui-align/references/cards/geometry.md +6 -1
  723. package/skills/a2h-batch-ui-align/references/cards/interaction.md +2 -1
  724. package/skills/a2h-batch-ui-align/references/cards/resources.md +9 -3
  725. package/skills/a2h-batch-ui-align/references/cards/widgets.md +27 -3
  726. package/skills/a2h-batch-ui-align/references/cards/window.md +2 -1
  727. package/skills/a2h-batch-ui-align/references/checker-rules.md +301 -13
  728. package/skills/a2h-batch-ui-align/references/conversion-procedure.md +53 -13
  729. package/skills/a2h-batch-ui-align/references/host-dispatch.md +2 -0
  730. package/skills/a2h-batch-ui-align/references/incremental-scope.md +28 -9
  731. package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +14 -9
  732. package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +2 -2
  733. package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +28 -1
  734. 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 +30 -0
  735. package/skills/a2h-batch-ui-align/references/step3-capture.md +25 -6
  736. package/skills/a2h-batch-ui-align/references/step4-prepare.md +7 -2
  737. package/skills/a2h-batch-ui-align/references/step5-convert.md +33 -9
  738. package/skills/a2h-batch-ui-align/scripts/android_parse_fast.ts +6 -7
  739. package/skills/a2h-batch-ui-align/scripts/branch_coverage.mjs +155 -0
  740. package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +463 -22
  741. package/skills/a2h-batch-ui-align/scripts/capture_audit.mjs +474 -0
  742. package/skills/a2h-batch-ui-align/scripts/capture_fast.mjs +665 -0
  743. package/skills/a2h-batch-ui-align/scripts/capture_verify.mjs +552 -0
  744. package/skills/a2h-batch-ui-align/scripts/detach.mjs +5 -2
  745. package/skills/a2h-batch-ui-align/scripts/draw_coverage.mjs +264 -0
  746. package/skills/a2h-batch-ui-align/scripts/evidence_gate.mjs +263 -0
  747. package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +20 -3
  748. package/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +4 -5
  749. package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +220 -35
  750. package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +517 -41
  751. package/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +147 -0
  752. package/skills/a2h-batch-ui-align/scripts/image_probe.mjs +231 -54
  753. package/skills/a2h-batch-ui-align/scripts/list_existing.mjs +141 -0
  754. package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +239 -14
  755. package/skills/a2h-batch-ui-align/scripts/page_gap.mjs +210 -0
  756. package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +98 -11
  757. package/skills/a2h-batch-ui-align/scripts/progress_identity.mjs +208 -0
  758. package/skills/a2h-batch-ui-align/scripts/scroll_verdict.mjs +62 -0
  759. package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +118 -4
  760. package/skills/a2h-batch-ui-align/scripts/shell_requests.mjs +273 -0
  761. package/skills/a2h-batch-ui-align/scripts/state_doc.mjs +9 -4
  762. package/skills/a2h-batch-ui-align/scripts/static_check/core/android.ts +231 -0
  763. package/skills/a2h-batch-ui-align/scripts/static_check/core/baseline.ts +79 -0
  764. package/skills/a2h-batch-ui-align/scripts/static_check/core/i18n.ts +1 -5
  765. package/skills/a2h-batch-ui-align/scripts/static_check/core/parse.ts +90 -2
  766. package/skills/a2h-batch-ui-align/scripts/static_check/core/scan.ts +44 -0
  767. package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +61 -12
  768. package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +32 -0
  769. package/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +3 -17
  770. package/skills/a2h-batch-ui-align/scripts/static_check/rules/android_immersive.ts +3 -3
  771. package/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +1 -19
  772. package/skills/a2h-batch-ui-align/scripts/static_check/rules/blur_mirrored.ts +2 -2
  773. package/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_invokes_callback.ts +84 -19
  774. package/skills/a2h-batch-ui-align/scripts/static_check/rules/color_string.ts +11 -4
  775. package/skills/a2h-batch-ui-align/scripts/static_check/rules/constant_coordinate.ts +2 -2
  776. package/skills/a2h-batch-ui-align/scripts/static_check/rules/dialog_backboard.ts +91 -0
  777. package/skills/a2h-batch-ui-align/scripts/static_check/rules/event_default_click.ts +179 -0
  778. package/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_dialog.ts +110 -0
  779. package/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_picker.ts +5 -5
  780. package/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +339 -0
  781. package/skills/a2h-batch-ui-align/scripts/static_check/rules/image_source.ts +84 -0
  782. package/skills/a2h-batch-ui-align/scripts/static_check/rules/input_traps.ts +249 -0
  783. package/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +234 -5
  784. package/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_host.ts +145 -0
  785. package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_content.ts +2 -2
  786. package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +110 -12
  787. package/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_binds.ts +56 -0
  788. package/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_string.ts +96 -0
  789. package/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +179 -0
  790. package/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +3 -2
  791. package/skills/a2h-batch-ui-align/scripts/static_check/rules/popup_menu.ts +81 -8
  792. package/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +102 -0
  793. package/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +54 -4
  794. package/skills/a2h-batch-ui-align/scripts/static_check/rules/runtime_traps.ts +440 -0
  795. package/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +75 -23
  796. package/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_delta.ts +178 -0
  797. package/skills/a2h-batch-ui-align/scripts/static_check/rules/swiper_index.ts +65 -0
  798. package/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +184 -0
  799. package/skills/a2h-batch-ui-align/scripts/static_check/rules/waterflow_sections.ts +231 -0
  800. package/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +4 -4
  801. package/skills/a2h-batch-ui-align/scripts/static_check/rules/window_mode.ts +2 -3
  802. package/skills/a2h-batch-ui-align/scripts/static_check/scan_file.ts +30 -2
  803. package/skills/a2h-batch-ui-align/scripts/tests/agent_cli.test.mjs +231 -0
  804. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_a11y.test.mjs +598 -0
  805. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_align_tint.test.mjs +312 -0
  806. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_baseline.test.mjs +129 -0
  807. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_blur.test.mjs +217 -0
  808. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_builder_calls.test.mjs +323 -0
  809. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_canvas_pct.test.mjs +312 -0
  810. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_coolmall_runtime2.test.mjs +697 -0
  811. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_fidelity.test.mjs +507 -0
  812. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_hit_test.test.mjs +298 -0
  813. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_input_runtime.test.mjs +514 -0
  814. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +651 -0
  815. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_occlusion_offset_format.test.mjs +372 -0
  816. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_overlay_lottie.test.mjs +199 -0
  817. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_review_fixes.test.mjs +298 -0
  818. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rule_smoke.test.mjs +269 -0
  819. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rules.test.mjs +365 -0
  820. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_runtime_api.test.mjs +346 -0
  821. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_padding_raster.test.mjs +262 -0
  822. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_safearea.test.mjs +742 -0
  823. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_shell.test.mjs +91 -0
  824. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_theme.test.mjs +86 -0
  825. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_theme_runtime.test.mjs +95 -0
  826. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +473 -0
  827. package/skills/a2h-batch-ui-align/scripts/tests/branch_coverage.test.mjs +116 -0
  828. package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +693 -0
  829. package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_scope.test.mjs +291 -0
  830. package/skills/a2h-batch-ui-align/scripts/tests/capture_audit.test.mjs +179 -0
  831. package/skills/a2h-batch-ui-align/scripts/tests/capture_fast.test.mjs +56 -0
  832. package/skills/a2h-batch-ui-align/scripts/tests/capture_gate.test.mjs +197 -0
  833. package/skills/a2h-batch-ui-align/scripts/tests/capture_review_fixes.test.mjs +322 -0
  834. package/skills/a2h-batch-ui-align/scripts/tests/color_utils_asset.test.mjs +93 -0
  835. package/skills/a2h-batch-ui-align/scripts/tests/detect_paradigm.test.mjs +260 -0
  836. package/skills/a2h-batch-ui-align/scripts/tests/draw_coverage.test.mjs +244 -0
  837. package/skills/a2h-batch-ui-align/scripts/tests/evidence_gate.test.mjs +435 -0
  838. package/skills/a2h-batch-ui-align/scripts/tests/export_scroll_states.test.mjs +31 -0
  839. package/skills/a2h-batch-ui-align/scripts/tests/export_ui_info.test.mjs +742 -0
  840. package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/SearchMenuDialog.buggy.ets +95 -0
  841. package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/meta.json +21 -0
  842. package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/screenshot.png +0 -0
  843. package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/view.xml +35 -0
  844. package/skills/a2h-batch-ui-align/scripts/tests/generate_pages_json.test.mjs +123 -0
  845. package/skills/a2h-batch-ui-align/scripts/tests/group_commit.test.mjs +126 -0
  846. package/skills/a2h-batch-ui-align/scripts/tests/group_pack.test.mjs +363 -0
  847. package/skills/a2h-batch-ui-align/scripts/tests/group_pack_evidence.test.mjs +95 -0
  848. package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +1782 -0
  849. package/skills/a2h-batch-ui-align/scripts/tests/group_watch.test.mjs +215 -0
  850. package/skills/a2h-batch-ui-align/scripts/tests/harmony_index.test.mjs +95 -0
  851. package/skills/a2h-batch-ui-align/scripts/tests/host_env.test.mjs +115 -0
  852. package/skills/a2h-batch-ui-align/scripts/tests/icon_coverage.test.mjs +314 -0
  853. package/skills/a2h-batch-ui-align/scripts/tests/image_probe.test.mjs +243 -0
  854. package/skills/a2h-batch-ui-align/scripts/tests/list_existing.test.mjs +157 -0
  855. package/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +326 -0
  856. package/skills/a2h-batch-ui-align/scripts/tests/occlusion.test.mjs +102 -0
  857. package/skills/a2h-batch-ui-align/scripts/tests/page_gap.test.mjs +115 -0
  858. package/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +356 -0
  859. package/skills/a2h-batch-ui-align/scripts/tests/progress_identity.test.mjs +174 -0
  860. package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +302 -0
  861. package/skills/a2h-batch-ui-align/scripts/tests/shell_requests.test.mjs +158 -0
  862. package/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +60 -0
  863. package/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +395 -0
  864. package/skills/a2h-batch-ui-align/scripts/tests/static_check_registry.test.mjs +122 -0
  865. package/skills/a2h-batch-ui-align/scripts/tests/test_bfs_exit.ts +49 -0
  866. package/skills/a2h-batch-ui-align/scripts/tests/text_color_diff.test.mjs +250 -0
  867. package/skills/a2h-coldstart-smoke-gate/SKILL.md +7 -4
  868. package/skills/a2h-dashboard-render/scripts/dashboard.mjs +12 -14
  869. package/skills/a2h-dashboard-render/scripts/device_capture.mjs +29 -30
  870. package/skills/a2h-dashboard-render/test/fixtures/page_capture/broken.xml +1 -0
  871. package/skills/a2h-dashboard-render/test/fixtures/page_capture/expected.json +156 -0
  872. package/skills/a2h-dashboard-render/test/fixtures/page_capture/hmos.json +1 -0
  873. package/skills/a2h-dashboard-render/test/fixtures/page_capture/list.xml +1 -0
  874. package/skills/a2h-dashboard-render/test/fixtures/page_capture/nested_scroll.xml +1 -0
  875. package/skills/a2h-dashboard-render/test/test_artifact_contract.mjs +168 -0
  876. package/skills/a2h-dashboard-render/test/test_cli_check_registry.mjs +99 -0
  877. package/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +118 -0
  878. package/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +93 -0
  879. package/skills/a2h-dashboard-render/test/test_dashboard_i18n.mjs +203 -0
  880. package/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +1369 -0
  881. package/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +318 -0
  882. package/skills/a2h-dashboard-render/test/test_dashboard_ui_pipeline.mjs +81 -0
  883. package/skills/a2h-dashboard-render/test/test_device_capture_env.mjs +115 -0
  884. package/skills/a2h-dashboard-render/test/test_device_capture_policy.mjs +411 -0
  885. package/skills/a2h-dashboard-render/test/test_device_locale_dialogs.mjs +17 -0
  886. package/skills/a2h-dashboard-render/test/test_page_capture.mjs +147 -0
  887. package/skills/a2h-dashboard-render/test/test_usage_readers.mjs +512 -0
  888. package/skills/a2h-module-semantic-docs/SKILL.md +51 -13
  889. package/skills/a2h-module-semantic-docs/scripts/scan_modules.mjs +66 -11
  890. package/skills/a2h-module-semantic-docs/test/golden/module_structure.json +187 -0
  891. package/skills/a2h-module-semantic-docs/test/golden/module_understanding.json +351 -0
  892. package/skills/a2h-module-semantic-docs/test/golden/module_update_plan.json +495 -0
  893. package/skills/a2h-module-semantic-docs/test/golden/project_directory_structure.json +157 -0
  894. package/skills/a2h-module-semantic-docs/test/test_incremental_fingerprint.mjs +94 -0
  895. package/skills/a2h-module-semantic-docs/test/test_scan_and_commit.mjs +388 -0
  896. package/skills/a2h-page-specgen/SKILL.md +240 -0
  897. package/skills/a2h-page-specgen/references/behavior-ledger.md +1170 -0
  898. package/skills/a2h-page-specgen/references/body-language.md +179 -0
  899. package/skills/a2h-page-specgen/references/evidence.md +105 -0
  900. package/skills/a2h-page-specgen/references/execution-model.md +364 -0
  901. package/skills/a2h-page-specgen/references/footprint-and-grouping.md +255 -0
  902. package/skills/a2h-page-specgen/references/gates.md +323 -0
  903. package/skills/a2h-page-specgen/references/page-inventory.md +220 -0
  904. package/skills/a2h-page-specgen/references/scenario-authoring.md +272 -0
  905. package/skills/a2h-page-specgen/references/spec-example.md +312 -0
  906. package/skills/a2h-page-specgen/references/spec-template.md +210 -0
  907. package/skills/a2h-page-specgen/scripts/behavior-audit.mjs +2436 -0
  908. package/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +1833 -0
  909. package/skills/a2h-page-specgen/scripts/behavior-model.mjs +181 -0
  910. package/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +1205 -0
  911. package/skills/a2h-page-specgen/scripts/dispatch.mjs +212 -0
  912. package/skills/a2h-page-specgen/scripts/entry-evidence.mjs +1123 -0
  913. package/skills/a2h-page-specgen/scripts/facts-build.mjs +1613 -0
  914. package/skills/a2h-page-specgen/scripts/finalize.mjs +825 -0
  915. package/skills/a2h-page-specgen/scripts/footprint.mjs +1650 -0
  916. package/skills/a2h-page-specgen/scripts/gate.mjs +848 -0
  917. package/skills/a2h-page-specgen/scripts/interactions.mjs +344 -0
  918. package/skills/a2h-page-specgen/scripts/inventory.mjs +371 -0
  919. package/skills/a2h-page-specgen/scripts/lib/contracts.mjs +155 -0
  920. package/skills/a2h-page-specgen/scripts/lib/deps-source.mjs +399 -0
  921. package/skills/a2h-page-specgen/scripts/lib/draft-store.mjs +229 -0
  922. package/skills/a2h-page-specgen/scripts/lib/footprint-roles.mjs +278 -0
  923. package/skills/a2h-page-specgen/scripts/lib/fsx.mjs +79 -0
  924. package/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +235 -0
  925. package/skills/a2h-page-specgen/scripts/lib/hg.mjs +683 -0
  926. package/skills/a2h-page-specgen/scripts/lib/homegraph-process.mjs +102 -0
  927. package/skills/a2h-page-specgen/scripts/lib/homegraph-query.mjs +161 -0
  928. package/skills/a2h-page-specgen/scripts/lib/ledger.mjs +478 -0
  929. package/skills/a2h-page-specgen/scripts/lib/main-module.mjs +24 -0
  930. package/skills/a2h-page-specgen/scripts/lib/operation-reviews.mjs +913 -0
  931. package/skills/a2h-page-specgen/scripts/lib/prose.mjs +238 -0
  932. package/skills/a2h-page-specgen/scripts/lib/reach.mjs +53 -0
  933. package/skills/a2h-page-specgen/scripts/lib/recovery-policy.mjs +28 -0
  934. package/skills/a2h-page-specgen/scripts/lib/scope.mjs +355 -0
  935. package/skills/a2h-page-specgen/scripts/lib/semantic-detail.mjs +353 -0
  936. package/skills/a2h-page-specgen/scripts/lib/source-text.mjs +497 -0
  937. package/skills/a2h-page-specgen/scripts/lib/symbols.mjs +125 -0
  938. package/skills/a2h-page-specgen/scripts/lib/utg-io.mjs +110 -0
  939. package/skills/a2h-page-specgen/scripts/lib/waker-event-store.mjs +658 -0
  940. package/skills/a2h-page-specgen/scripts/operation-evidence.mjs +1542 -0
  941. package/skills/a2h-page-specgen/scripts/prepare.mjs +840 -0
  942. package/skills/a2h-page-specgen/scripts/render.mjs +294 -0
  943. package/skills/a2h-page-specgen/scripts/report.mjs +340 -0
  944. package/skills/a2h-page-specgen/scripts/submission.mjs +697 -0
  945. package/skills/a2h-page-specgen/scripts/submit.mjs +85 -0
  946. package/skills/a2h-page-specgen/scripts/test/acceptance/README.md +77 -0
  947. package/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +871 -0
  948. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.java +15 -0
  949. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.json +26 -0
  950. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +347 -0
  951. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +298 -0
  952. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.java +36 -0
  953. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.json +43 -0
  954. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +347 -0
  955. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +298 -0
  956. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +2694 -0
  957. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +726 -0
  958. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +108 -0
  959. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +347 -0
  960. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.review.md +65 -0
  961. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +265 -0
  962. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.java +47 -0
  963. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.json +54 -0
  964. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +347 -0
  965. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +298 -0
  966. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/branch-checklist.md +32 -0
  967. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/gate-results.json +22 -0
  968. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/manifest.json +111 -0
  969. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/portability.test.mjs +141 -0
  970. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/review.md +22 -0
  971. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +515 -0
  972. package/skills/a2h-page-specgen/scripts/test/acceptance/cases.example.json +57 -0
  973. package/skills/a2h-page-specgen/scripts/test/android-entry-evidence.test.mjs +585 -0
  974. package/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +755 -0
  975. package/skills/a2h-page-specgen/scripts/test/behavior-audit-group.test.mjs +543 -0
  976. package/skills/a2h-page-specgen/scripts/test/behavior-audit-post.test.mjs +652 -0
  977. package/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +1231 -0
  978. package/skills/a2h-page-specgen/scripts/test/behavior-component-gate.test.mjs +494 -0
  979. package/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +1513 -0
  980. package/skills/a2h-page-specgen/scripts/test/behavior-finalize.test.mjs +758 -0
  981. package/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +623 -0
  982. package/skills/a2h-page-specgen/scripts/test/behavior-model.test.mjs +116 -0
  983. package/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +795 -0
  984. package/skills/a2h-page-specgen/scripts/test/behavior-regression.test.mjs +883 -0
  985. package/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +205 -0
  986. package/skills/a2h-page-specgen/scripts/test/dispatch.test.mjs +258 -0
  987. package/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +475 -0
  988. package/skills/a2h-page-specgen/scripts/test/facts.test.mjs +1203 -0
  989. package/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +243 -0
  990. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Api.kt +20 -0
  991. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/BothAnnotations.kt +28 -0
  992. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Cache.kt +7 -0
  993. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Comments.kt +26 -0
  994. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Mmkv.kt +7 -0
  995. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Models.kt +19 -0
  996. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Pair.kt +7 -0
  997. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Prefs.kt +9 -0
  998. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Room.kt +11 -0
  999. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Sample.kt +43 -0
  1000. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Templates.kt +34 -0
  1001. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Timeouts.kt +8 -0
  1002. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/androidTest/Helper.kt +5 -0
  1003. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/build.gradle.kts +16 -0
  1004. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/i18n/en.js.txt +5 -0
  1005. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/i18n/zh.js.txt +4 -0
  1006. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/libs.versions.toml +14 -0
  1007. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/package.json +10 -0
  1008. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values/strings.xml +10 -0
  1009. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-b+zh+Hans/strings.xml +4 -0
  1010. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-land/strings.xml +5 -0
  1011. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-night/strings.xml +5 -0
  1012. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-v21/strings.xml +4 -0
  1013. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-zh/strings.xml +4 -0
  1014. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/test/Legacy.kt +4 -0
  1015. package/skills/a2h-page-specgen/scripts/test/fixtures/facts/weather.proto +11 -0
  1016. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-container/src/AppPreferences.kt +13 -0
  1017. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-container/src/SettingsViewModel.kt +16 -0
  1018. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-dao/src/UserDao.kt +28 -0
  1019. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-moko/i18n/src/commonMain/moko-resources/base/strings.xml +6 -0
  1020. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-moko/i18n/src/commonMain/moko-resources/fil/strings.xml +6 -0
  1021. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/res/values/arrays.xml +25 -0
  1022. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/res/values/strings.xml +10 -0
  1023. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/res/xml/prefs.xml +27 -0
  1024. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/Api.java +19 -0
  1025. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/Datastore.kt +12 -0
  1026. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/Settings.java +13 -0
  1027. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/forecast.js +14 -0
  1028. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/store.js +14 -0
  1029. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-receiver/src/BasePreferences.kt +13 -0
  1030. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-receiver/src/Screen.kt +14 -0
  1031. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-receiver/src/UiPreferences.kt +8 -0
  1032. package/skills/a2h-page-specgen/scripts/test/fixtures/facts-retrofit/src/AuthAPI.kt +26 -0
  1033. package/skills/a2h-page-specgen/scripts/test/fixtures/fp/AndroidManifest.xml +20 -0
  1034. package/skills/a2h-page-specgen/scripts/test/fixtures/fp/feature/auth/navigation/ScreenRoute.kt +8 -0
  1035. package/skills/a2h-page-specgen/scripts/test/fixtures/fp/pages.json +19 -0
  1036. package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/components/Widget.vue +11 -0
  1037. package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/pages/detail/detail.vue +14 -0
  1038. package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/pages/index/index.vue +24 -0
  1039. package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/store/userStore.js +11 -0
  1040. package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/uni_modules/uview-ui/components/u-thing.js +5 -0
  1041. package/skills/a2h-page-specgen/scripts/test/fixtures/fp.mkdb.mjs +144 -0
  1042. package/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +112 -0
  1043. package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanels.java +14 -0
  1044. package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanels.kt +14 -0
  1045. package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanelsKotlinForms.kt +12 -0
  1046. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ChildContent.java +6 -0
  1047. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ComposeLifecycle.kt +26 -0
  1048. package/skills/a2h-page-specgen/scripts/test/fixtures/src/LifecycleCallAndOverride.java +10 -0
  1049. package/skills/a2h-page-specgen/scripts/test/fixtures/src/LifecycleHooks.kt +31 -0
  1050. package/skills/a2h-page-specgen/scripts/test/fixtures/src/MainFragment.java +6 -0
  1051. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ManyLifecycleHooks.kt +12 -0
  1052. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ManyListeners.java +12 -0
  1053. package/skills/a2h-page-specgen/scripts/test/fixtures/src/PlainActivity.java +3 -0
  1054. package/skills/a2h-page-specgen/scripts/test/fixtures/src/RefreshOnResume.java +7 -0
  1055. package/skills/a2h-page-specgen/scripts/test/fixtures/src/RefreshResultNoise.kt +36 -0
  1056. package/skills/a2h-page-specgen/scripts/test/fixtures/src/SelectionView.java +5 -0
  1057. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ShowPage.vue +12 -0
  1058. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ThirdPartyLifecycle.kt +25 -0
  1059. package/skills/a2h-page-specgen/scripts/test/fixtures/src/fragment_detail.xml +1 -0
  1060. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/App.vue +1 -0
  1061. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-conflict-record.json +17 -0
  1062. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-record.json +17 -0
  1063. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/manifest.json +3 -0
  1064. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages/list/index.vue +80 -0
  1065. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages.json +14 -0
  1066. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/source-record.json +15 -0
  1067. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/components/RefreshPanel.vue +15 -0
  1068. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/composables/useRefresh.ts +50 -0
  1069. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/pages/help/index.vue +9 -0
  1070. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/state/store.ts +4 -0
  1071. package/skills/a2h-page-specgen/scripts/test/fixtures/utg/click_paths.json +28 -0
  1072. package/skills/a2h-page-specgen/scripts/test/fixtures/utg/fold-chain/utg.json +12 -0
  1073. package/skills/a2h-page-specgen/scripts/test/fixtures/utg/utg.json +34 -0
  1074. package/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +1029 -0
  1075. package/skills/a2h-page-specgen/scripts/test/footprint-roles.test.mjs +172 -0
  1076. package/skills/a2h-page-specgen/scripts/test/fsx.test.mjs +32 -0
  1077. package/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +143 -0
  1078. package/skills/a2h-page-specgen/scripts/test/gate.test.mjs +1078 -0
  1079. package/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +332 -0
  1080. package/skills/a2h-page-specgen/scripts/test/helpers.mjs +188 -0
  1081. package/skills/a2h-page-specgen/scripts/test/hg.test.mjs +549 -0
  1082. package/skills/a2h-page-specgen/scripts/test/homegraph-process-fixture.mjs +130 -0
  1083. package/skills/a2h-page-specgen/scripts/test/homegraph-query.test.mjs +288 -0
  1084. package/skills/a2h-page-specgen/scripts/test/integration.test.mjs +368 -0
  1085. package/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +310 -0
  1086. package/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +250 -0
  1087. package/skills/a2h-page-specgen/scripts/test/keys.test.mjs +776 -0
  1088. package/skills/a2h-page-specgen/scripts/test/ledger-lock.test.mjs +77 -0
  1089. package/skills/a2h-page-specgen/scripts/test/ledger.test.mjs +464 -0
  1090. package/skills/a2h-page-specgen/scripts/test/main-module.test.mjs +43 -0
  1091. package/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +1002 -0
  1092. package/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +1103 -0
  1093. package/skills/a2h-page-specgen/scripts/test/prepare-homegraph-reproduction.mjs +365 -0
  1094. package/skills/a2h-page-specgen/scripts/test/prepare-homegraph.test.mjs +569 -0
  1095. package/skills/a2h-page-specgen/scripts/test/prepare-index.test.mjs +160 -0
  1096. package/skills/a2h-page-specgen/scripts/test/prepare-pipeline.test.mjs +326 -0
  1097. package/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +236 -0
  1098. package/skills/a2h-page-specgen/scripts/test/prose.test.mjs +398 -0
  1099. package/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +531 -0
  1100. package/skills/a2h-page-specgen/scripts/test/reach.test.mjs +93 -0
  1101. package/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +418 -0
  1102. package/skills/a2h-page-specgen/scripts/test/recovery-policy.test.mjs +14 -0
  1103. package/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +1782 -0
  1104. package/skills/a2h-page-specgen/scripts/test/render.test.mjs +546 -0
  1105. package/skills/a2h-page-specgen/scripts/test/report.test.mjs +296 -0
  1106. package/skills/a2h-page-specgen/scripts/test/review-followup.test.mjs +467 -0
  1107. package/skills/a2h-page-specgen/scripts/test/scope.test.mjs +292 -0
  1108. package/skills/a2h-page-specgen/scripts/test/semantic-detail.test.mjs +949 -0
  1109. package/skills/a2h-page-specgen/scripts/test/source-text.test.mjs +181 -0
  1110. package/skills/a2h-page-specgen/scripts/test/submit.test.mjs +1231 -0
  1111. package/skills/a2h-page-specgen/scripts/test/uniapp-operation-evidence.test.mjs +639 -0
  1112. package/skills/a2h-page-specgen/scripts/test/utg-footprint-contract.test.mjs +274 -0
  1113. package/skills/a2h-page-specgen/scripts/test/utg-io.test.mjs +90 -0
  1114. package/skills/a2h-page-specgen/scripts/test/waker-event-store.test.mjs +1365 -0
  1115. package/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +1801 -0
  1116. package/skills/a2h-page-specgen/scripts/test/waker.test.mjs +1993 -0
  1117. package/skills/a2h-page-specgen/scripts/test/watchdog.test.mjs +342 -0
  1118. package/skills/a2h-page-specgen/scripts/waker.mjs +1301 -0
  1119. package/skills/a2h-page-specgen/scripts/watchdog.mjs +299 -0
  1120. package/skills/a2h-resource-convert/SKILL.md +9 -1
  1121. package/skills/a2h-resource-convert/references/code-vector-icon-rules.md +2 -1
  1122. package/skills/a2h-resource-convert/references/incremental-page-migration.md +23 -2
  1123. package/skills/a2h-resource-convert/references/lottie-conversion-rules.md +7 -0
  1124. package/skills/a2h-resource-convert/references/step4-resource-types.md +2 -0
  1125. package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +115 -53
  1126. package/skills/a2h-resource-convert/scripts/a2h_resource_incremental.ts +68 -0
  1127. package/skills/a2h-resource-convert/scripts/code_vector_icons.ts +45 -3
  1128. package/skills/a2h-resource-convert/scripts/extract_page_resources.ts +42 -5
  1129. package/skills/a2h-resource-convert/scripts/lottie_hosts.ts +415 -0
  1130. package/skills/a2h-resource-convert/scripts/lottie_refs.ts +398 -0
  1131. package/skills/a2h-resource-convert/scripts/merge_mapping.ts +316 -0
  1132. package/skills/a2h-resource-convert/scripts/svg_fidelity_check.ts +2 -1
  1133. package/skills/a2h-resource-convert/scripts/tests/adaptive_icon.test.mjs +182 -0
  1134. package/skills/a2h-resource-convert/scripts/tests/app_identity.test.mjs +206 -0
  1135. package/skills/a2h-resource-convert/scripts/tests/code_vector_guard.test.mjs +75 -0
  1136. package/skills/a2h-resource-convert/scripts/tests/docs_only_i18n.test.mjs +44 -0
  1137. package/skills/a2h-resource-convert/scripts/tests/lottie_hosts.test.mjs +222 -0
  1138. package/skills/a2h-resource-convert/scripts/tests/lottie_incremental.test.mjs +178 -0
  1139. package/skills/a2h-resource-convert/scripts/tests/merge_mapping.test.mjs +201 -0
  1140. package/skills/a2h-spec-design-pipeline/SKILL.md +98 -121
  1141. package/skills/a2h-spec-design-pipeline/references/coding-loop.md +170 -45
  1142. package/skills/a2h-spec-design-pipeline/references/execution-model.md +62 -12
  1143. package/skills/a2h-spec-design-pipeline/references/final-report-template.md +6 -4
  1144. package/skills/a2h-spec-design-pipeline/references/homegraph-cli.md +229 -0
  1145. package/skills/a2h-spec-design-pipeline/references/initialization.md +49 -6
  1146. package/skills/a2h-spec-design-pipeline/references/merge-queue.md +198 -54
  1147. package/skills/a2h-spec-design-pipeline/references/permission-index.json +206 -0
  1148. package/skills/a2h-spec-design-pipeline/references/post-loop.md +23 -0
  1149. package/skills/a2h-spec-design-pipeline/references/resolver-prompt.md +67 -0
  1150. package/skills/a2h-spec-design-pipeline/references/review-loop.md +46 -0
  1151. package/skills/a2h-spec-design-pipeline/references/scripts.md +47 -14
  1152. package/skills/a2h-spec-design-pipeline/references/shared-layer.md +390 -0
  1153. package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +148 -29
  1154. package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +104 -24
  1155. package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleMeta.json +18 -0
  1156. package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleSet.json +16 -0
  1157. package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/README.md +47 -0
  1158. package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-param-contract.json +31 -0
  1159. package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-permission-map.json +698 -0
  1160. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-cn.md +96 -0
  1161. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-en.md +103 -0
  1162. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-cn.md +124 -0
  1163. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-en.md +138 -0
  1164. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-cn.md +106 -0
  1165. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-en.md +113 -0
  1166. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ApiPermissionDeclaredCheck.js +705 -0
  1167. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ArkUIRuntimePitfallCheck.js +1063 -0
  1168. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/PlatformApiContractCheck.js +473 -0
  1169. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/platform/ExtraDataSubCheck.js +485 -0
  1170. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/index.js +13 -0
  1171. package/skills/a2h-spec-design-pipeline/rules/migration-rules/package.json +18 -0
  1172. package/skills/a2h-spec-design-pipeline/scripts/branch_landed.ts +12 -38
  1173. package/skills/a2h-spec-design-pipeline/scripts/check_design_map.ts +108 -0
  1174. package/skills/a2h-spec-design-pipeline/scripts/check_permissions.ts +420 -0
  1175. package/skills/a2h-spec-design-pipeline/scripts/check_review_evidence.ts +45 -0
  1176. package/skills/a2h-spec-design-pipeline/scripts/dispatch/evidence.mjs +95 -7
  1177. package/skills/a2h-spec-design-pipeline/scripts/dispatch/fold.mjs +156 -7
  1178. package/skills/a2h-spec-design-pipeline/scripts/dispatch/landing.mjs +71 -0
  1179. package/skills/a2h-spec-design-pipeline/scripts/dispatch/progress.mjs +22 -3
  1180. package/skills/a2h-spec-design-pipeline/scripts/dispatch/reconcile.mjs +63 -4
  1181. package/skills/a2h-spec-design-pipeline/scripts/dispatch/wait.mjs +33 -3
  1182. package/skills/a2h-spec-design-pipeline/scripts/dispatch/worktree.mjs +2 -2
  1183. package/skills/a2h-spec-design-pipeline/scripts/dispatch.mjs +232 -13
  1184. package/skills/a2h-spec-design-pipeline/scripts/ensure_index.ts +866 -0
  1185. package/skills/a2h-spec-design-pipeline/scripts/fixtures/homecheck-stub.cjs +47 -0
  1186. package/skills/a2h-spec-design-pipeline/scripts/homecheck_scan.ts +220 -44
  1187. package/skills/a2h-spec-design-pipeline/scripts/lib/shared_classes.ts +113 -0
  1188. package/skills/a2h-spec-design-pipeline/scripts/lib/shared_docs.ts +202 -0
  1189. package/skills/a2h-spec-design-pipeline/scripts/lib/wiring.ts +58 -0
  1190. package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +178 -14
  1191. package/skills/a2h-spec-design-pipeline/scripts/resolve_wiring.ts +3 -0
  1192. package/skills/a2h-spec-design-pipeline/scripts/resolver_prompt.ts +368 -0
  1193. package/skills/a2h-spec-design-pipeline/scripts/scan_shared.ts +642 -0
  1194. package/skills/a2h-spec-design-pipeline/scripts/sync_permission_index.ts +340 -0
  1195. package/skills/a2h-spec-design-pipeline/scripts/test_api_permission_declared.ts +281 -0
  1196. package/skills/a2h-spec-design-pipeline/scripts/test_arkui_runtime_pitfall.ts +690 -0
  1197. package/skills/a2h-spec-design-pipeline/scripts/test_check_design_map.ts +46 -0
  1198. package/skills/a2h-spec-design-pipeline/scripts/test_check_permissions.ts +201 -0
  1199. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_commands.mjs +42 -8
  1200. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_e2e.mjs +27 -9
  1201. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_evidence.mjs +242 -9
  1202. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_fold.mjs +192 -7
  1203. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_landing.mjs +531 -0
  1204. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_progress.mjs +49 -1
  1205. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_reconcile.mjs +92 -4
  1206. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_wait.mjs +51 -0
  1207. package/skills/a2h-spec-design-pipeline/scripts/test_ensure_index.ts +572 -0
  1208. package/skills/a2h-spec-design-pipeline/scripts/test_ensure_index_real.ts +56 -0
  1209. package/skills/a2h-spec-design-pipeline/scripts/test_homecheck_scan.ts +17 -10
  1210. package/skills/a2h-spec-design-pipeline/scripts/test_homegraph_docs.ts +217 -0
  1211. package/skills/a2h-spec-design-pipeline/scripts/test_permission_index.ts +214 -0
  1212. package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +155 -0
  1213. package/skills/a2h-spec-design-pipeline/scripts/test_platform_api_contract.ts +308 -0
  1214. package/skills/a2h-spec-design-pipeline/scripts/test_resolve_wiring.ts +14 -0
  1215. package/skills/a2h-spec-design-pipeline/scripts/test_resolver_prompt.ts +401 -0
  1216. package/skills/a2h-spec-design-pipeline/scripts/test_scan_shared.ts +996 -0
  1217. package/skills/a2h-spec-design-pipeline/scripts/test_shared_classes.ts +80 -0
  1218. package/skills/a2h-spec-design-pipeline/scripts/test_shared_docs.ts +205 -0
  1219. package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_docs.ts +165 -0
  1220. package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_e2e.ts +85 -0
  1221. package/skills/a2h-spec-design-pipeline/scripts/test_validate_shared_manifest.ts +720 -0
  1222. package/skills/a2h-spec-design-pipeline/scripts/test_wiring.ts +40 -0
  1223. package/skills/a2h-spec-design-pipeline/scripts/validate_shared_manifest.ts +566 -0
  1224. package/skills/a2h-spec-generate/SKILL.md +89 -23
  1225. package/skills/a2h-spec-generate/references/batch-mode.md +78 -17
  1226. package/skills/a2h-spec-generate/references/dispatch-watchdog.md +150 -0
  1227. package/skills/a2h-spec-generate/references/fusion-task-contract.md +7 -0
  1228. package/skills/a2h-spec-generate/references/review-checklist.md +1 -0
  1229. package/skills/a2h-spec-generate/references/specs.schema.json +24 -11
  1230. package/skills/a2h-spec-generate/references/synthesis-rules.md +4 -2
  1231. package/skills/a2h-spec-generate/references/worker-rules.md +6 -3
  1232. package/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +4 -5
  1233. package/skills/a2h-spec-generate/scripts/check_spec.ts +145 -14
  1234. package/skills/a2h-spec-generate/scripts/collect-specs.mjs +261 -19
  1235. package/skills/a2h-spec-generate/scripts/dispatch-watch.mjs +1168 -0
  1236. package/skills/a2h-spec-generate/scripts/ensure-index.mjs +1 -2
  1237. package/skills/a2h-spec-generate/scripts/feature-stem.mjs +1 -2
  1238. package/skills/a2h-spec-generate/scripts/publish-specs.mjs +1 -2
  1239. package/skills/a2h-spec-generate/scripts/regroup-by-page.mjs +1 -2
  1240. package/skills/a2h-spec-generate/scripts/render-tasks.mjs +25 -46
  1241. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +26 -27
  1242. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +3 -6
  1243. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +31 -32
  1244. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +2 -3
  1245. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +15 -26
  1246. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +102 -81
  1247. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/behavior-seed.ts +39 -19
  1248. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/library-evidence.ts +12 -13
  1249. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/navigation-guard.ts +363 -0
  1250. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +35 -196
  1251. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +3 -1
  1252. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +22 -96
  1253. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +3 -4
  1254. package/skills/a2h-spec-generate/scripts/reqgen/src/model/contracts.ts +1 -1
  1255. package/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +74 -7
  1256. package/skills/a2h-spec-generate/scripts/reqgen/src/model/prepare.ts +51 -7
  1257. package/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +42 -111
  1258. package/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +1 -20
  1259. package/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +1 -2
  1260. package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +3 -4
  1261. package/skills/a2h-spec-generate/scripts/reqgen/test/control-fact-join.test.ts +50 -0
  1262. package/skills/a2h-spec-generate/scripts/reqgen/test/control-name-uniapp.test.ts +75 -0
  1263. package/skills/a2h-spec-generate/scripts/reqgen/test/cross-area-anchor.test.ts +256 -0
  1264. package/skills/a2h-spec-generate/scripts/reqgen/test/fixtures/fusion-run.ts +243 -0
  1265. package/skills/a2h-spec-generate/scripts/reqgen/test/fixtures/zip.ts +63 -0
  1266. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-area-facts.test.ts +650 -0
  1267. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-detectors.test.ts +176 -0
  1268. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-e2e.test.ts +103 -0
  1269. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-schema.test.ts +111 -0
  1270. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-seed.test.ts +195 -0
  1271. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-selfcheck.test.ts +307 -0
  1272. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +347 -0
  1273. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +1948 -0
  1274. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-library-evidence.test.ts +239 -0
  1275. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-navigation-guard.test.ts +277 -0
  1276. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +844 -0
  1277. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-scope.test.ts +339 -0
  1278. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-selfcheck.test.ts +1253 -0
  1279. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +608 -0
  1280. package/skills/a2h-spec-generate/scripts/reqgen/test/model-cli-blockers.test.ts +117 -0
  1281. package/skills/a2h-spec-generate/scripts/reqgen/test/model-scope.test.ts +411 -0
  1282. package/skills/a2h-spec-generate/scripts/reqgen/test/model-seeds.test.ts +175 -0
  1283. package/skills/a2h-spec-generate/scripts/reqgen/test/model-task-contract.test.ts +300 -0
  1284. package/skills/a2h-spec-generate/scripts/reqgen/test/model-v4.test.ts +1061 -0
  1285. package/skills/a2h-spec-generate/scripts/reqgen/test/specgen-completeness.test.ts +286 -0
  1286. package/skills/a2h-spec-generate/scripts/reqgen/test/stagem-stored-path.test.ts +25 -0
  1287. package/skills/a2h-spec-generate/scripts/reqgen/test/uniapp-scanner.test.ts +159 -0
  1288. package/skills/a2h-spec-generate/scripts/reqgen/test/zip.test.ts +61 -0
  1289. package/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +879 -0
  1290. package/skills/a2h-spec-generate/test/check-spec.test.ts +430 -0
  1291. package/skills/a2h-spec-generate/test/collect-specs.test.mjs +811 -0
  1292. package/skills/a2h-spec-generate/test/detect-project.test.mjs +37 -0
  1293. package/skills/a2h-spec-generate/test/dispatch-watch.test.mjs +606 -0
  1294. package/skills/a2h-spec-generate/test/ensure-index.test.mjs +229 -0
  1295. package/skills/a2h-spec-generate/test/feature-stem.test.mjs +157 -0
  1296. package/skills/a2h-spec-generate/test/fixtures/android/app/src/main/AndroidManifest.xml +3 -0
  1297. package/skills/a2h-spec-generate/test/fixtures/android/build.gradle +3 -0
  1298. package/skills/a2h-spec-generate/test/fixtures/android/settings.gradle +3 -0
  1299. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/package.json +9 -0
  1300. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/App.vue +8 -0
  1301. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/components/MyCard.vue +9 -0
  1302. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/feature/editor/index.vue +1 -0
  1303. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/main.ts +6 -0
  1304. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/manifest.json +4 -0
  1305. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/detail/index.vue +1 -0
  1306. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/home/index.vue +33 -0
  1307. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/settings/index.vue +1 -0
  1308. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages.json +23 -0
  1309. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/services/items.ts +3 -0
  1310. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/tsconfig.json +8 -0
  1311. package/skills/a2h-spec-generate/test/fixtures/unknown/README.txt +1 -0
  1312. package/skills/a2h-spec-generate/test/inspect-uniapp.test.mjs +54 -0
  1313. package/skills/a2h-spec-generate/test/prepare-facts.test.mjs +41 -0
  1314. package/skills/a2h-spec-generate/test/publication-verdict.test.mjs +182 -0
  1315. package/skills/a2h-spec-generate/test/publish-specs.test.mjs +295 -0
  1316. package/skills/a2h-spec-generate/test/regroup-by-page.test.mjs +354 -0
  1317. package/skills/a2h-spec-generate/test/render-tasks.test.mjs +596 -0
  1318. package/skills/a2h-spec-generate/test/report.test.mjs +47 -0
  1319. package/skills/a2h-utg-explorer/SKILL.md +9 -3
  1320. package/skills/a2h-utg-explorer/references/architecture.md +7 -0
  1321. package/skills/a2h-utg-explorer/scripts/audit.mjs +8 -2
  1322. package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +120 -85
  1323. package/skills/a2h-utg-explorer/scripts/direct_launch.mjs +47 -2
  1324. package/skills/a2h-utg-explorer/scripts/hint_check.mjs +1 -2
  1325. package/skills/a2h-utg-explorer/scripts/hybrid_route_cdp.mjs +376 -0
  1326. package/skills/a2h-utg-explorer/scripts/plan.mjs +8 -0
  1327. package/skills/a2h-utg-explorer/scripts/recover.mjs +1 -1
  1328. package/skills/a2h-utg-explorer/scripts/recover_d.mjs +288 -21
  1329. package/skills/a2h-utg-explorer/scripts/rejudge.mjs +5 -3
  1330. package/skills/a2h-utg-explorer/scripts/report.mjs +89 -0
  1331. package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +67 -10
  1332. package/skills/a2h-utg-explorer/scripts/run_device.mjs +10 -2
  1333. package/skills/a2h-utg-explorer/scripts/seed_recipes.mjs +426 -0
  1334. package/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +66 -0
  1335. package/skills/a2h-utg-explorer/scripts/tests/blank_wait.test.mjs +126 -0
  1336. package/skills/a2h-utg-explorer/scripts/tests/calendar_round_fixes.test.mjs +244 -0
  1337. package/skills/a2h-utg-explorer/scripts/tests/chain.test.mjs +45 -0
  1338. package/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +302 -0
  1339. package/skills/a2h-utg-explorer/scripts/tests/content_wait.test.mjs +207 -0
  1340. package/skills/a2h-utg-explorer/scripts/tests/coverage_rules.test.mjs +104 -0
  1341. package/skills/a2h-utg-explorer/scripts/tests/d_prereqs.test.mjs +231 -0
  1342. package/skills/a2h-utg-explorer/scripts/tests/default_override.test.mjs +109 -0
  1343. package/skills/a2h-utg-explorer/scripts/tests/device_health.test.mjs +160 -0
  1344. package/skills/a2h-utg-explorer/scripts/tests/device_locale_dialogs.test.mjs +29 -0
  1345. package/skills/a2h-utg-explorer/scripts/tests/device_locale_identity.test.mjs +77 -0
  1346. package/skills/a2h-utg-explorer/scripts/tests/device_lock_retry.test.mjs +187 -0
  1347. package/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +254 -0
  1348. package/skills/a2h-utg-explorer/scripts/tests/direct_launch.test.mjs +130 -0
  1349. package/skills/a2h-utg-explorer/scripts/tests/explorer_review_fixes.test.mjs +137 -0
  1350. package/skills/a2h-utg-explorer/scripts/tests/final_utg.test.mjs +135 -0
  1351. package/skills/a2h-utg-explorer/scripts/tests/first_round_phases.test.mjs +16 -0
  1352. package/skills/a2h-utg-explorer/scripts/tests/foreground_spelling.test.mjs +155 -0
  1353. package/skills/a2h-utg-explorer/scripts/tests/fresh_state_plan.test.mjs +78 -0
  1354. package/skills/a2h-utg-explorer/scripts/tests/generalization_fixes.test.mjs +252 -0
  1355. package/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +129 -0
  1356. package/skills/a2h-utg-explorer/scripts/tests/holds_without_data_parity.test.mjs +26 -0
  1357. package/skills/a2h-utg-explorer/scripts/tests/hybrid_route.test.mjs +120 -0
  1358. package/skills/a2h-utg-explorer/scripts/tests/hybrid_route_identity.test.mjs +146 -0
  1359. package/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +614 -0
  1360. package/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +214 -0
  1361. package/skills/a2h-utg-explorer/scripts/tests/launch_failure.test.mjs +40 -0
  1362. package/skills/a2h-utg-explorer/scripts/tests/node_coverage.test.mjs +193 -0
  1363. package/skills/a2h-utg-explorer/scripts/tests/overflow_prefix.test.mjs +327 -0
  1364. package/skills/a2h-utg-explorer/scripts/tests/overlay_identity.test.mjs +204 -0
  1365. package/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +393 -0
  1366. package/skills/a2h-utg-explorer/scripts/tests/pager_navigation.test.mjs +119 -0
  1367. package/skills/a2h-utg-explorer/scripts/tests/panel_routes.test.mjs +208 -0
  1368. package/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +240 -0
  1369. package/skills/a2h-utg-explorer/scripts/tests/pr169_review_fixes.test.mjs +218 -0
  1370. package/skills/a2h-utg-explorer/scripts/tests/pr191_review_fixes.test.mjs +292 -0
  1371. package/skills/a2h-utg-explorer/scripts/tests/recover.test.mjs +212 -0
  1372. package/skills/a2h-utg-explorer/scripts/tests/recover_b.test.mjs +173 -0
  1373. package/skills/a2h-utg-explorer/scripts/tests/recover_d.test.mjs +280 -0
  1374. package/skills/a2h-utg-explorer/scripts/tests/recover_d_grounding.test.mjs +164 -0
  1375. package/skills/a2h-utg-explorer/scripts/tests/replay_reroute.test.mjs +143 -0
  1376. package/skills/a2h-utg-explorer/scripts/tests/review_fixes.test.mjs +213 -0
  1377. package/skills/a2h-utg-explorer/scripts/tests/robustness_fixes.test.mjs +345 -0
  1378. package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +458 -0
  1379. package/skills/a2h-utg-explorer/scripts/tests/run_cycle_follow.test.mjs +35 -0
  1380. package/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +194 -0
  1381. package/skills/a2h-utg-explorer/scripts/tests/scope.test.mjs +229 -0
  1382. package/skills/a2h-utg-explorer/scripts/tests/scroll_sweep.test.mjs +336 -0
  1383. package/skills/a2h-utg-explorer/scripts/tests/seed_recipes.test.mjs +261 -0
  1384. package/skills/a2h-utg-explorer/scripts/tests/semantics.test.mjs +102 -0
  1385. package/skills/a2h-utg-explorer/scripts/tests/snapshot_integrity.test.mjs +142 -0
  1386. package/skills/a2h-utg-explorer/scripts/tests/state_ambiguity.test.mjs +92 -0
  1387. package/skills/a2h-utg-explorer/scripts/tests/string_tables_twin_ties.test.mjs +83 -0
  1388. package/skills/a2h-utg-explorer/scripts/tests/tar_fixture.mjs +12 -0
  1389. package/skills/a2h-utg-explorer/scripts/tests/twin_opener.test.mjs +119 -0
  1390. package/skills/a2h-utg-explorer/scripts/tests/u2_backend.test.mjs +346 -0
  1391. package/skills/a2h-utg-explorer/scripts/tests/ui_state_anchors.test.mjs +112 -0
  1392. package/skills/a2h-utg-explorer/scripts/tests/variant_strings.test.mjs +63 -0
  1393. package/skills/a2h-utg-explorer/scripts/tests/worklist_parts.test.mjs +24 -0
  1394. package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +135 -7
  1395. package/skills/a2h-utg-explorer/scripts/utg_explorer/diagnostics.mjs +196 -0
  1396. package/skills/a2h-utg-explorer/scripts/utg_explorer/hybrid_route.mjs +140 -0
  1397. package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +245 -69
  1398. package/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +47 -0
  1399. package/skills/a2h-utg-explorer/scripts/utg_explorer/strings.mjs +164 -0
  1400. package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +718 -42
  1401. package/skills/a2h-utg-explorer/scripts/variant.mjs +57 -11
  1402. package/skills/a2h-utg-static/SKILL.md +6 -2
  1403. package/skills/a2h-utg-static/scripts/assemble.mjs +93 -3
  1404. package/skills/a2h-utg-static/scripts/click_paths.mjs +135 -25
  1405. package/skills/a2h-utg-static/scripts/compose_body_text.mjs +3 -3
  1406. package/skills/a2h-utg-static/scripts/compose_overlay.mjs +110 -3
  1407. package/skills/a2h-utg-static/scripts/compose_titles.mjs +5 -5
  1408. package/skills/a2h-utg-static/scripts/compose_widgets.mjs +4 -4
  1409. package/skills/a2h-utg-static/scripts/data_model.mjs +590 -0
  1410. package/skills/a2h-utg-static/scripts/data_producers.mjs +431 -0
  1411. package/skills/a2h-utg-static/scripts/fragment_nav.mjs +2 -3
  1412. package/skills/a2h-utg-static/scripts/hybrid_scope.mjs +46 -1
  1413. package/skills/a2h-utg-static/scripts/label_resolve.mjs +49 -4
  1414. package/skills/a2h-utg-static/scripts/lib/hybrid-provenance.mjs +201 -0
  1415. package/skills/a2h-utg-static/scripts/lib/uniapp-routes.mjs +195 -0
  1416. package/skills/a2h-utg-static/scripts/menu_nav.mjs +1 -1
  1417. package/skills/a2h-utg-static/scripts/nl_hints.mjs +34 -7
  1418. package/skills/a2h-utg-static/scripts/presenter_nav.mjs +1 -2
  1419. package/skills/a2h-utg-static/scripts/route_interceptor.mjs +21 -7
  1420. package/skills/a2h-utg-static/scripts/run_pipeline.mjs +86 -4
  1421. package/skills/a2h-utg-static/scripts/static_prior.mjs +26 -29
  1422. package/skills/a2h-utg-static/scripts/tests/test_activity_gates.mjs +84 -0
  1423. package/skills/a2h-utg-static/scripts/tests/test_carry_answers.mjs +30 -0
  1424. package/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +18 -0
  1425. package/skills/a2h-utg-static/scripts/tests/test_data_model.mjs +120 -0
  1426. package/skills/a2h-utg-static/scripts/tests/test_data_producers.mjs +114 -0
  1427. package/skills/a2h-utg-static/scripts/tests/test_guard_kinds_locale.mjs +12 -0
  1428. package/skills/a2h-utg-static/scripts/tests/test_hybrid_provenance.mjs +150 -0
  1429. package/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +165 -1
  1430. package/skills/a2h-utg-static/scripts/tests/test_library_activity.mjs +45 -0
  1431. package/skills/a2h-utg-static/scripts/tests/test_login_interceptor.mjs +38 -0
  1432. package/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +35 -1
  1433. package/skills/a2h-utg-static/scripts/tests/test_nl_hints_default_override.mjs +50 -0
  1434. package/skills/a2h-utg-static/scripts/tests/test_pipeline_llm_phases.mjs +21 -0
  1435. package/skills/a2h-utg-static/scripts/tests/test_pr169_review_fixes.mjs +172 -0
  1436. package/skills/a2h-utg-static/scripts/tests/test_redirect_path_cost.mjs +136 -0
  1437. package/skills/a2h-utg-static/scripts/tests/test_route_token_words.mjs +29 -1
  1438. package/skills/a2h-utg-static/scripts/tests/test_uniapp_route_jump.mjs +175 -0
  1439. package/skills/a2h-utg-static/scripts/tests/test_uniapp_routes.mjs +161 -0
  1440. package/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +99 -0
  1441. package/skills/a2h-utg-static/scripts/tests/test_utg_specgen_boundary.mjs +45 -0
  1442. package/skills/a2h-utg-static/scripts/tests/test_vm_nav_helper_navigate.mjs +21 -0
  1443. package/skills/a2h-utg-static/scripts/uniapp_nav.mjs +112 -69
  1444. package/skills/a2h-utg-static/scripts/vm_nav.mjs +9 -1
  1445. package/skills/a2h-app-migrate/scripts/i18n-term.d.mts +0 -5
  1446. package/skills/a2h-app-migrate/scripts/i18n-term.mjs +0 -54
  1447. package/skills/a2h-arch-generate/scripts/i18n-term.d.mts +0 -5
  1448. package/skills/a2h-arch-generate/scripts/i18n-term.mjs +0 -54
  1449. package/skills/a2h-arkts-logic-coder/scripts/design/i18n-term.d.mts +0 -5
  1450. package/skills/a2h-arkts-logic-coder/scripts/design/i18n-term.mjs +0 -54
  1451. package/skills/a2h-batch-ui-align/references/source-only-tier.md +0 -38
  1452. package/skills/a2h-batch-ui-align/scripts/i18n-term.d.mts +0 -5
  1453. package/skills/a2h-batch-ui-align/scripts/i18n-term.mjs +0 -54
  1454. package/skills/a2h-dashboard-render/scripts/i18n-term.d.mts +0 -5
  1455. package/skills/a2h-dashboard-render/scripts/i18n-term.mjs +0 -54
  1456. package/skills/a2h-resource-convert/scripts/i18n-term.d.mts +0 -5
  1457. package/skills/a2h-resource-convert/scripts/i18n-term.mjs +0 -54
  1458. package/skills/a2h-spec-design-pipeline/scripts/ensure_wt_index.ts +0 -885
  1459. package/skills/a2h-spec-design-pipeline/scripts/i18n-term.d.mts +0 -5
  1460. package/skills/a2h-spec-design-pipeline/scripts/i18n-term.mjs +0 -54
  1461. package/skills/a2h-spec-design-pipeline/scripts/test_ensure_wt_index.ts +0 -856
  1462. package/skills/a2h-spec-design-pipeline/scripts/test_i18n_term.ts +0 -70
  1463. package/skills/a2h-spec-generate/scripts/i18n-term.d.mts +0 -5
  1464. package/skills/a2h-spec-generate/scripts/i18n-term.mjs +0 -54
  1465. package/skills/a2h-spec-generate/scripts/reqgen/src/i18n-term.d.mts +0 -5
  1466. package/skills/a2h-spec-generate/scripts/reqgen/src/i18n-term.mjs +0 -54
  1467. package/skills/a2h-utg-explorer/scripts/i18n-term.d.mts +0 -5
  1468. package/skills/a2h-utg-explorer/scripts/i18n-term.mjs +0 -54
  1469. package/skills/a2h-utg-static/scripts/i18n-term.d.mts +0 -5
  1470. package/skills/a2h-utg-static/scripts/i18n-term.mjs +0 -54
  1471. package/skills/a2h-utg-static/scripts/tests/test_i18n_term.mjs +0 -155
@@ -0,0 +1,1170 @@
1
+ # Behavior Evidence Ledger Protocol
2
+
3
+ This document is the worker-facing protocol for `behavior-ledger-v3` with the
4
+ `static-source-v2` coverage profile. It describes the immutable evidence that
5
+ `prepare.mjs` writes, the discovery document a worker owns, both audits, the
6
+ exact draft fields that bind authoring to discovery, and the digest fences that
7
+ protect submission and finalization.
8
+
9
+ The model is platform-neutral. A behavior assertion is the minimum coverage
10
+ unit; a scenario is an authoring shape, not a coverage denominator. Nothing in
11
+ this protocol depends on a specific application, component, or product domain.
12
+
13
+ `complete` is bounded by the active discovery adapter's capabilities. The
14
+ `static-source-v2` adapter proves static structure — sources, composition,
15
+ scannable interaction registrations, and the behavior it can state faithfully.
16
+ Constructs the adapter cannot represent remain semantic-review or partial
17
+ territory; no worker may claim completeness beyond what the adapter observed.
18
+
19
+ ## 1. Artifacts and Ownership
20
+
21
+ Every attempt has one directory:
22
+
23
+ ```text
24
+ behavior/attempt-<n>/<group_id>/
25
+ discovery.json worker writes before drafting
26
+ pre-audit.json behavior-audit.mjs pre writes
27
+ post-review.json worker writes after drafting
28
+ post-audit.json behavior-audit.mjs post writes
29
+ ```
30
+
31
+ | Artifact | Producer | Mutability |
32
+ |---|---|---|
33
+ | `evidence/<stemOf(page_id)>/composition.json` | `prepare.mjs` | Immutable input |
34
+ | `evidence/<stemOf(page_id)>/candidates.json` | `prepare.mjs` | Immutable input |
35
+ | `evidence/<stemOf(page_id)>/assertions.json` | `prepare.mjs` | Immutable input |
36
+ | `evidence/<stemOf(page_id)>/unknowns.json` | `prepare.mjs` | Immutable input |
37
+ | `behavior/attempt-<n>/<group_id>/discovery.json` | Worker | Written once per attempt before drafting |
38
+ | `behavior/attempt-<n>/<group_id>/pre-audit.json` | Pre-audit CLI | Written by the CLI only |
39
+ | `drafts/attempt-<n>/<stemOf(spec_id)>.json` | Worker | Canonical draft for the attempt |
40
+ | `behavior/attempt-<n>/<group_id>/post-review.json` | Worker | Written after drafting |
41
+ | `behavior/attempt-<n>/<group_id>/post-audit.json` | Post-audit CLI | Written by the CLI only |
42
+ | `coverage-report.json` and `report.md` | `finalize.mjs` | Operator-facing report only |
43
+
44
+ `<n>` is the current attempt number from the strict-v2 ledger, and
45
+ `<group_id>` is the literal group identifier from `plan.json`. One attempt
46
+ identity is shared by the gate inputs: the group `discovery.json` top-level
47
+ `attempt`, every discovery page entry's `attempt`, the `pre-audit.json`
48
+ `attempt`, and the `post-review.json` `attempt` must all equal the current
49
+ attempt. A mismatch at any of those points is a G4 hard failure, not partial
50
+ delivery.
51
+
52
+ Drafts are scoped by directory only: the canonical path is
53
+ `drafts/attempt-<n>/<stemOf(spec_id)>.json` and a draft carries no attempt field
54
+ of its own. Its `discovery_digest` is what binds it to the group discovery.
55
+ `post-audit.json` is operator output, not a gate input: its `attempt` field is
56
+ diagnostic only. It is included in the submission/finalize digest fence, but no
57
+ gate reads it as a verdict.
58
+
59
+ `stemOf(page_id)` and `stemOf(spec_id)` are the lossless percent encoding
60
+ defined in `spec-template.md`. A worker never writes or edits anything under
61
+ `evidence/`.
62
+
63
+ ## 2. Immutable Evidence
64
+
65
+ `composition.json` carries the canonical SourceUnit snapshot:
66
+
67
+ ```json
68
+ {
69
+ "schema_version": "behavior-ledger-v3",
70
+ "profile": {
71
+ "id": "static-source-v2",
72
+ "interaction_rules": "interaction-rules-v2",
73
+ "composition_depth": 3
74
+ },
75
+ "snapshot_digest": "sha256-of-the-evidence-document",
76
+ "composition_roots": ["src/primary.ext"],
77
+ "source_units": [
78
+ {
79
+ "id": "su_…",
80
+ "role": "page-body",
81
+ "locator": "src/primary.ext",
82
+ "read_status": "read",
83
+ "profile_status": "review-required",
84
+ "content_digest": "sha256-of-the-file-bytes",
85
+ "line_count": 120,
86
+ "unknown_reasons": []
87
+ }
88
+ ],
89
+ "interaction_scans": [
90
+ {
91
+ "source_unit_id": "su_…",
92
+ "locator": "src/primary.ext",
93
+ "status": "ok",
94
+ "signal_count": 2,
95
+ "truncated": false
96
+ }
97
+ ],
98
+ "current_snapshot": {
99
+ "profile_id": "static-source-v2",
100
+ "snapshot_digest": "sha256-of-profile-and-source-units",
101
+ "source_units": ["…same SourceUnit objects…"]
102
+ },
103
+ "snapshot_history": [],
104
+ "inventory_status": "closed",
105
+ "unresolved_references": []
106
+ }
107
+ ```
108
+
109
+ `interaction_scans` carries one record per readable, UI-scannable SourceUnit. Required entry/request/response/state-producer files kept solely as evidence use role `required-evidence`; they remain reviewed SourceUnits but are excluded from target-page UI scans, interactions, and estimates. The
110
+ page-level `interactions[]` aggregate is the union of the per-unit UI scans, and
111
+ every aggregated signal keeps the `evidence_ats[]` of the positions that
112
+ produced it. `interactions_truncated` is true when any unit's scan truncated;
113
+ the page aggregate is never a single page-wide budget.
114
+
115
+ `lifecycle_scans` mirrors that shape, with one deliberate addition: a
116
+ `required-evidence` unit **owned by the page** is also lifecycle-scanned, because
117
+ a page's own view model is exactly where lifecycle registrations live. It is
118
+ still excluded from the interaction scan (it is not page UI), and a shared
119
+ required-evidence unit owned by no page is not scanned at all. A scan record
120
+ without candidates means the unit's signals were attributed elsewhere — or, when
121
+ no page owns the file, to nobody: that case is never silent, it is recorded as a
122
+ `lifecycle-attribution-unresolved` unknown, so an unowned shared registration
123
+ always surfaces as an open question instead of vanishing.
124
+
125
+ `candidates.json`, `assertions.json`, and `unknowns.json` carry the three raw
126
+ lists. An assertion is:
127
+
128
+ ```json
129
+ {
130
+ "id": "ba_…",
131
+ "behavior_key": "bk_…",
132
+ "subject": {"page_id": "page:Alpha", "region_id": "region:Primary"},
133
+ "trigger": {"verb": "activate", "target": "Primary action"},
134
+ "preconditions": [],
135
+ "source_branch": "unconditional",
136
+ "outcomes": [
137
+ {"kind": "visible-change", "description": "The primary result becomes visible"}
138
+ ],
139
+ "side_effects": [],
140
+ "evidence_refs": [
141
+ {
142
+ "uri": "src/primary.ext",
143
+ "span": {"start": 12, "end": 14},
144
+ "snapshot_digest": "sha256-of-the-current-snapshot",
145
+ "profile_id": "static-source-v2"
146
+ }
147
+ ],
148
+ "candidate_ids": ["cand_…"],
149
+ "provenance": {"method": "structural", "profile": "static-source-v2"}
150
+ }
151
+ ```
152
+
153
+ `id` is the stable fingerprint of subject, trigger, preconditions, source
154
+ branch, outcomes, and side effects. `behavior_key` covers the same fields
155
+ without outcomes and side effects, so incompatible outcomes under one behavior
156
+ context become a conflict group rather than unrelated assertions.
157
+ `candidate_ids[]` is provenance, not identity: a promoted assertion names every
158
+ candidate that produced it, and deduplication unions those sets. A worker that
159
+ merges candidates into one semantic assertion must keep every source ID in the
160
+ list; a single `candidate_id` can never stand for a merged set.
161
+
162
+ A candidate is a structural signal without a proven user-observable outcome:
163
+
164
+ ```json
165
+ {
166
+ "candidate_id": "cand_…",
167
+ "subject": {"page_id": "page:Alpha", "region_id": "region:Primary"},
168
+ "trigger": {"kind": "widget", "widget": "primaryAction", "is_trigger": true},
169
+ "evidence_refs": ["…same reference shape as an assertion…"],
170
+ "review_status": "pending",
171
+ "provenance": {"method": "structural", "profile": "static-source-v2"}
172
+ }
173
+ ```
174
+
175
+ An entry candidate may also carry `trigger.behavior_variant.argument_values` with
176
+ source-backed `literal` call-site values, wrapper-declaration `defaults`, their
177
+ merged `effective` values, and explicitly `unresolved` expressions. Workers may
178
+ consume only the recorded effective values; they must not evaluate or guess an
179
+ expression in `unresolved`. A computed call-site argument remains unknown even
180
+ when the declaration has a default, because the explicit argument overrides that
181
+ default. The wrapper declaration is required source evidence whenever its
182
+ literal defaults are used.
183
+
184
+ ### 2.1 Evidence validation
185
+
186
+ Every assertion needs at least one evidence reference that resolves against a
187
+ recorded snapshot for the current page:
188
+
189
+ - the referred `uri` must resolve inside the source root;
190
+ - `span` must be an object with integer `start` and `end`, and the recorded
191
+ SourceUnit `line_count` must be an integer; `start >= 1`, `end >= start`, and
192
+ `end <= line_count` must all hold. Structure and range are checked before any
193
+ read status or digest drift, so a malformed span is `invalid`, never a
194
+ retryable `unknown`;
195
+ - the snapshot digest and profile must match `current_snapshot` or an explicit
196
+ `snapshot_history` entry;
197
+ - a current reference is valid only when the SourceUnit was read and the
198
+ current file bytes still hash to `content_digest`.
199
+
200
+ The reference states are deliberately distinct:
201
+
202
+ - `valid` — the reference belongs to the current snapshot and profile, the
203
+ SourceUnit was read, the span is in range, and the current file bytes still
204
+ hash to `content_digest`.
205
+ - `stale` (`stale-evidence`) — the reference belongs to an older snapshot or
206
+ profile. It requires rediscovery; it cannot count as specified.
207
+ - `unknown` (`source-unread` or `source-changed`) — the current reference
208
+ cannot be proven: the unit was not read, or the current on-disk bytes no
209
+ longer match the recorded snapshot. It requires a re-read, not a waiver.
210
+ - `invalid` (`unrecorded-evidence-snapshot`, `evidence-outside-source`,
211
+ `invalid-evidence-span`, or `evidence-validation-error`) — the reference is
212
+ unusable and is a hard failure.
213
+
214
+ None of these states may be reported as complete coverage, and none may be
215
+ silently dropped.
216
+
217
+ ### 2.2 Unknown Producers, Scopes, and Causes
218
+
219
+ The static producer writes the initial unknown records, and the post-audit can
220
+ add one synthetic review unknown. These are the actual producer contracts:
221
+
222
+ | Scope | Reason | Cause | Producer condition |
223
+ |---|---|---|---|
224
+ | `source-unit` | `review-required` | — | every readable SourceUnit starts unreviewed |
225
+ | `source-unit` | `source-unread` | — | the SourceUnit could not be read |
226
+ | `composition` | `unresolved-source-unit` | — | a recorded origin or traversal reference has no resolved unit |
227
+ | run (plan `behavior_unknowns`) | `navigation-guards-absent` | — | `.hometrans/project_design.md` documents navigation interception (e.g. login) but no page `<axis>_interceptor` and no edge guard with `redirect_when_unmet` was recorded; a guard that does record a redirect yields an extra `<branch>:unmet` assertion, and a page interceptor an `enter` assertion |
228
+ | `interaction` | `review-incomplete` | `no_source` | the page has no scannable source at all; a readable non-code SourceUnit does not produce this |
229
+ | `interaction` | `source-unread` | `skipped` | the scan was skipped because the page source was unreadable |
230
+ | `interaction` | `review-incomplete` | `truncated` | a bounded scan left interaction signals unexamined |
231
+ | `behavior` | `review-incomplete` | `missing-trigger-locator`, `unattachable-trigger-evidence`, or `unrepresentable-guard` | a navigation candidate could not become an assertion but has attachable source evidence |
232
+ | `behavior` | `review-incomplete` | a computed wrapper argument/default or a scoped wrapper call/declaration resolution failure | literal and independently known default values remain available, but the unresolved entry arguments block the trigger field |
233
+ | `composition` | `review-incomplete` | `missing-trigger-locator`, `unattachable-trigger-evidence`, or `unrepresentable-guard` | the same navigation candidate has no attachable evidence location |
234
+ | `behavior` | `review-insufficient` | — | a candidate review is insufficient but supplies evidence and affected fields |
235
+ | `assertion` | `review-incomplete` | — | the post-audit synthesizes `review-incomplete:<assertion_id>` for a missing or incomplete semantic review |
236
+
237
+ Reconciliation also accepts worker-authored unknowns that use
238
+ `source-changed`, `stale-evidence`, `unsupported-construct`, or
239
+ `review-insufficient` when the evidence supports them. A resolution for those
240
+ reasons must cite current evidence and the resulting assertion IDs.
241
+
242
+ Truncation is not a reason. A bounded scan emits scope `interaction`, reason
243
+ `review-incomplete`, and cause `truncated`; no separate truncation reason
244
+ exists.
245
+
246
+ Source-unit unknowns use `scope:"source-unit"` and their `locator`. They are
247
+ cleared only by a digest-matched terminal SourceUnit review or a lawful
248
+ resolution, and they never use `affected_fields`. Only this scope may be
249
+ resolved implicitly by a SourceUnit review; composition, interaction, behavior,
250
+ and assertion unknowns require an explicit, relevant, evidence-backed
251
+ resolution. Interaction unknowns use `scope:"interaction"` with `page_id` and
252
+ the cause above; they are not field-scoped assertion unknowns. Field-scoped and
253
+ composition contracts are defined in §3.3.
254
+
255
+ A readable non-code SourceUnit has no scan record and produces no interaction
256
+ unknown: its closure comes from the SourceUnit review, not from a synthetic scan
257
+ gap. A page with no UI-scannable SourceUnit reports `interaction_scan:"no_source"`
258
+ and still closes through composition and the SourceUnit reviews. A scan record
259
+ whose status is not `ok` (for example `skipped` or `no_source`) is a failed scan
260
+ unit: it stays partial until reviewed, and it is never a hard failure by
261
+ itself.
262
+
263
+ ### 2.3 Composition closure
264
+
265
+ `inventory_status` is `closed` only when a primary source exists and neither an
266
+ origin nor a traversal reference is unresolved. Folded overlays, embedded
267
+ content, and instance peers remain SourceUnits; folding changes SPEC ownership,
268
+ never the set of sources that discovery must inspect. Every SourceUnit needs a
269
+ review, and `reviewed_digest` must equal its current `content_digest`.
270
+
271
+ `inventory_status` and `unresolved_references` are immutable producer facts and
272
+ are reported as diagnostics only. Delivery is decided by whether a composition
273
+ **unknown** is still open: a lawful resolution (§3.4) closes it, and a reference
274
+ that no longer has an open unknown no longer blocks delivery. This is what makes
275
+ "resolve the reference" a meaningful instruction instead of a permanent partial.
276
+
277
+ A reference may only become a composition gap when it can denote a source unit:
278
+ its kind is one of `imports`, `references`, `instantiates`, `extends`,
279
+ `implements`, and its target is a real project source. For JVM/ArkTS that means
280
+ a symbol or file the index already locates — a qualified name must match the
281
+ file's own package path, so `android.view.View` is refuted even when the project
282
+ also declares `View.kt`, while `pkg.Outer.Inner` keeps `Outer.kt`. For
283
+ uniapp/Vue it means a module specifier that resolves to a project file
284
+ (`@/x`, `./x`, `../x`, or a directory barrel such as `@/sheep` →
285
+ `sheep/index.js`). Symbol-level references (`calls`, `type_of`, `returns`,
286
+ `decorates`), bare packages (`dayjs`, `@dcloudio/uni-app`, `node:fs`), Vue
287
+ props, type parameters (`T`), and raw parser expressions are external
288
+ diagnostics — they never enter `unknowns` and never keep a page partial.
289
+
290
+ To bound pathological traversal breadth, at most 200 traversal-expanded shared
291
+ SourceUnits are snapshotted per page. Every page body, folded overlay, embedded
292
+ origin, and instance-peer origin is always retained regardless of this bound.
293
+ Each omitted traversal locator is recorded in a composition
294
+ `review-incomplete` unknown with `cause:"source-unit-limit"` and
295
+ `omitted_source_units`; inventory remains partial. The bound never silently
296
+ shrinks the reviewed composition scope.
297
+
298
+ ## 3. Worker Discovery Document
299
+
300
+ `discovery.json` is a group document whose digest covers the complete
301
+ `{ schema_version, attempt, pages }` value. It contains one entry per page of
302
+ the group:
303
+
304
+ ```json
305
+ {
306
+ "schema_version": "behavior-ledger-v3",
307
+ "attempt": 2,
308
+ "pages": [
309
+ {
310
+ "page_id": "page:Alpha",
311
+ "attempt": 2,
312
+ "inventory_status": "closed",
313
+ "source_units": ["…the immutable SourceUnit list…"],
314
+ "interaction_scans": ["…the immutable per-unit scan records…"],
315
+ "source_unit_reviews": [
316
+ {
317
+ "source_unit_id": "su_…",
318
+ "status": "reviewed",
319
+ "reviewed_digest": "sha256-of-the-file-bytes",
320
+ "conclusion": "assertions-found",
321
+ "assertion_ids": ["ba_…"]
322
+ }
323
+ ],
324
+ "assertions": ["…immutable assertions plus validated semantic additions…"],
325
+ "candidates": ["…immutable candidates…"],
326
+ "unknowns": ["…immutable unknowns plus new semantic unknowns…"],
327
+ "planned": [
328
+ {
329
+ "assertion_id": "ba_…",
330
+ "status": "specified",
331
+ "scenario": 1,
332
+ "steps": [1, 2],
333
+ "review_status": "reviewed"
334
+ }
335
+ ],
336
+ "evidence_reviews": [
337
+ {"assertion_id": "ba_…", "status": "supported"}
338
+ ],
339
+ "candidate_reviews": [
340
+ {"candidate_id": "cand_…", "status": "refuted"}
341
+ ],
342
+ "candidate_dispositions": [
343
+ {
344
+ "candidate_id": "cand_…",
345
+ "status": "waived",
346
+ "reason": "no-user-observable",
347
+ "evidence_refs": ["…"],
348
+ "review_status": "reviewed"
349
+ }
350
+ ],
351
+ "promotions": [],
352
+ "resolutions": []
353
+ }
354
+ ]
355
+ }
356
+ ```
357
+
358
+ Immutable clean-room rules:
359
+
360
+ - `discovery.assertions` must contain every immutable assertion with unchanged behavior content and `evidence_refs`, plus only validated semantic additions. Omitting an immutable assertion, deleting it, or rewriting its content is a hard failure. `assertions` is not an optional echo field. The only evidence-reference exception is an explicit stale/unread rediscovery: a related current-evidence unknown must have a lawful `resolved` resolution naming the assertion, every replacement reference must be current, and at least one replaced reference must be non-current.
361
+ - Optional exact echo fields are `page_id`, `schema_version`, `profile`,
362
+ `composition_roots`, `source_units`, `interaction_scans`, `current_snapshot`,
363
+ `snapshot_history`, `snapshot_digest`, `inventory_status`,
364
+ `unresolved_references`, and `candidates`. When one is present it must equal Evidence exactly; omitting an optional echo field leaves the Evidence value in force and never replaces it.
365
+ - Discovery may add validated semantic assertions and new semantic unknowns,
366
+ but may not delete or rewrite an immutable candidate, SourceUnit, or initial
367
+ unknown ID. An initial unknown that is omitted remains in force; if it is
368
+ carried it must equal Evidence exactly.
369
+ - Exactly one `source_unit_reviews` entry exists per current SourceUnit, with
370
+ no missing, extra, or duplicate IDs and a digest-matched `reviewed_digest`.
371
+ Each terminal review also carries a legal `conclusion` and the exact
372
+ `assertion_ids` attributed to that unit (see §3.1.1); a review without them
373
+ is unfinished, not complete.
374
+ - A candidate may not disappear. A terminal review (`supported`, `refuted`, or
375
+ `insufficient`) requires a terminal disposition: `promoted`, a legal `waived`
376
+ reason, or `unknown`. A `pending` or `failed` review stays undisposed and
377
+ keeps the page partial.
378
+ - `review_status` on a planned or candidate disposition is `reviewed` or
379
+ `incomplete`. An incomplete disposition keeps the audit unfinished.
380
+
381
+ ### 3.1.1 SourceUnit reviews, attribution, and candidate provenance
382
+
383
+ Review every SourceUnit before deciding assertion dispositions. A completed
384
+ review is:
385
+
386
+ ```json
387
+ {
388
+ "source_unit_id": "su_…",
389
+ "status": "reviewed",
390
+ "reviewed_digest": "sha256-of-the-file-bytes",
391
+ "conclusion": "assertions-found",
392
+ "assertion_ids": ["ba_…"]
393
+ }
394
+ ```
395
+
396
+ - `conclusion` is exactly `assertions-found` or `no-assertions-found`.
397
+ `assertions-found` requires a non-empty `assertion_ids`; the other conclusion
398
+ requires an empty one.
399
+ - `assertion_ids` is the exact attribution set, not a summary. It must cover
400
+ every assertion the unit contributed to — including assertions later planned
401
+ `no-user-observable`, `duplicate-assertion`, or `out-of-scope` — and must not
402
+ borrow an assertion attributed to a different unit.
403
+ - Revisioning a unit's bytes changes its `content_digest`; the review must be
404
+ re-recorded at the new digest or it stays incomplete.
405
+ - A merged semantic assertion keeps every source candidate in `candidate_ids[]`.
406
+ Ownership is provenance: dropping a merged candidate ID hides where the
407
+ behavior came from and fails reconciliation.
408
+
409
+ Per-unit discovery is additive, never a page-wide budget: a host file cannot
410
+ starve an embedded unit's scan, and a readable non-code unit closes through its
411
+ review rather than a synthetic interaction unknown.
412
+
413
+ The same source file can legitimately be scanned as an embedded SourceUnit of a
414
+ host page and as the page body of an overlay or window page. Assertions and
415
+ reviews remain page-scoped: the overlay-owned behavior belongs to the overlay
416
+ page SPEC. A cross-page `duplicate-assertion` is not a valid shortcut; use
417
+ evidence-backed `out-of-scope` or `no-user-observable` handling on the host only
418
+ when the host SPEC genuinely does not own that behavior.
419
+
420
+ Lifecycle candidates follow the same page scope, resolved by attribution rather
421
+ than by raw reference. A `lifecycle-signal` is mounted on the page that owns the
422
+ file it was scanned from, and ownership is decided in two tiers:
423
+
424
+ - **Structural tier.** A page's own composition — the page body and the units
425
+ folded into it (an embedded dialog, a companion file, an overlay window) — is
426
+ that page's, graph or no graph: its signals always mint on the page, even
427
+ when the body reaches them only through a helper. A shared file that exactly
428
+ one UI group's footprint references is that group's composition too, so a
429
+ traversal-only grandchild component still mints on its sole page. A body-less
430
+ page keeps its whole composition the same way.
431
+ - **Graph tier.** Everything else — shared content and required evidence — is
432
+ attributed by the naming relation: a file whose declaration (class, object,
433
+ interface, or top-level function) a page body imports, references, or
434
+ instantiates is owned by that page. Calling a member is usage, not ownership,
435
+ and inheritance never transfers a file: `extends`/`implements` marks a base
436
+ class as shared infrastructure, and the import that merely serves the
437
+ inheritance is suppressed with it. The owning page mints; every other
438
+ referencing page stays silent — that is the dedup.
439
+
440
+ When both tiers speak — a dialog embedded in a host page that is also the body
441
+ of an overlay page — the candidate mints on both pages with the graph owners
442
+ recorded in `trigger.owner_page_ids`; the host's copy names the overlay page and
443
+ can therefore be waived as an external surface, while the overlay page treats it
444
+ as its own page-body behavior.
445
+
446
+ A signal whose file no page owns — a base activity every page extends, a result
447
+ bus, a navigation helper — mints **no** page-scoped candidate, but it never
448
+ vanishes: each scanning page records a `lifecycle-attribution-unresolved`
449
+ unknown for it, so the open question is visible and auditable instead of silent.
450
+ A body file that backs two page records (a Compose route plus the pager tab
451
+ showing the same screen) is owned by both, because it is the same UI.
452
+
453
+ A cross-page result bus is consequently split at its two ends: the page that
454
+ writes the result owns the `producer` candidate, the page that re-reads owns the
455
+ `consumer` candidate, and neither copies the other's line. `trigger.signal_role`
456
+ records which end a candidate is, and `trigger.owner_page_ids` records the
457
+ ownership the adapter observed (empty for shared infrastructure). Ownership is
458
+ never inferred from file or type names: renaming a screen cannot change it.
459
+
460
+ Component hints are adapter capabilities, not protocol guarantees. Java/Kotlin
461
+ view hints (for example a dismissible bottom panel) do not imply equivalent
462
+ automatic hints for Vue or another ecosystem. Unsupported constructs remain
463
+ semantic-review or partial territory, and no worker may claim completeness
464
+ beyond the active adapter's capabilities.
465
+
466
+ ### 3.1 Planned assertion dispositions
467
+
468
+ `planned[]` is the pre-authoring disposition for every discovered assertion.
469
+ The closed status set is:
470
+
471
+ | Status | Required evidence review | Authoring contract |
472
+ |---|---|---|
473
+ | `specified` | `supported` | A scenario and concrete steps will describe the behavior |
474
+ | `unknown` | `insufficient` | Non-empty `unknown_ids`, each related to this assertion |
475
+ | `no-user-observable` | `refuted` | Review disproved the suspected observable outcome |
476
+ | `duplicate-assertion` | `supported` | A reviewed specified canonical plus `semantic_equivalence_review` |
477
+ | `out-of-scope` | `supported` | Current evidence plus `scope_rule:"external-surface"` or `"explicitly-excluded-source"` |
478
+
479
+ `unsupported` is always a hard failure. `supported + unknown` is a hard failure
480
+ even when `review_status` is `incomplete`: an incomplete review cannot launder
481
+ a contradiction into partial delivery.
482
+
483
+ Every assertion needs exactly one planned disposition. A terminal `supported`,
484
+ `refuted`, or `insufficient` evidence review with no planned disposition is a
485
+ known omission and a hard failure in both the pre-audit and the post-audit.
486
+ Deleting both the planned disposition and its draft link is not genuine partial
487
+ work; a missing or non-terminal review remains incomplete/partial instead.
488
+
489
+ `refuted` and `insufficient` are not interchangeable. `refuted` is a terminal
490
+ conclusion that the suspected behavior has no user-observable outcome and only
491
+ supports `no-user-observable`. `insufficient` is a terminal conclusion that the
492
+ evidence cannot determine the behavior's `trigger`, `preconditions`,
493
+ `outcomes`, or `side_effects`, and only supports `unknown` with a related
494
+ unknown record. Both are terminal; neither is a pass.
495
+
496
+ A `duplicate-assertion` is legal only when:
497
+
498
+ - the target is an existing assertion with the same `behavior_key`;
499
+ - the assertions form a real multi-member behavior group;
500
+ - the canonical target is planned `specified` with `review_status:"reviewed"`;
501
+ - the disposition carries `semantic_equivalence_review:{status:"supported"}`;
502
+ - a draft link later names that exact `canonical_assertion_id` and the
503
+ canonical assertion itself has a `specified` draft link.
504
+
505
+ ### 3.2 Candidate promotion, waivers, and unknown dispositions
506
+
507
+ `candidate_reviews[]` is keyed by `candidate_id` and accepts
508
+ `supported`, `refuted`, `insufficient`, `pending`, or `failed`.
509
+ `candidate_dispositions[]` accepts exactly:
510
+
511
+ ```json
512
+ {"candidate_id": "cand_…", "status": "promoted", "assertion_id": "ba_…", "review_status": "reviewed"}
513
+ {"candidate_id": "cand_…", "status": "waived", "reason": "no-user-observable", "evidence_refs": ["…"], "review_status": "reviewed"}
514
+ {"candidate_id": "cand_…", "status": "waived", "reason": "out-of-scope", "evidence_refs": ["…"], "scope_rule": "external-surface", "review_status": "reviewed"}
515
+ {"candidate_id": "cand_…", "status": "unknown", "unknown_ids": ["unk_…"], "review_status": "reviewed"}
516
+ ```
517
+
518
+ A `promoted` disposition needs a `promotions[]` record and a supported review
519
+ that supplies a normalized assertion planned `specified`. A
520
+ `no-user-observable` waiver needs a `refuted` review. An `out-of-scope` waiver
521
+ needs a supported review, non-empty evidence, and a scope rule. Free-form scope
522
+ text is not a waiver: both planned and candidate `out-of-scope` dispositions
523
+ accept only `external-surface` or `explicitly-excluded-source`, and the draft
524
+ link must repeat the exact planned value. Every candidate
525
+ or planned waiver reference must resolve to `state.status === "valid"` on the
526
+ current snapshot; stale, source-unread, source-changed, and invalid references
527
+ are hard failures. An `unknown` disposition needs an `insufficient` review and
528
+ related unresolved unknown IDs whose `candidate_id` is exactly this candidate:
529
+ an assertion-only `affected_assertion_id` or a shared SourceUnit cannot be
530
+ borrowed. A terminal (`supported`, `refuted`, `insufficient`) review without a
531
+ disposition is a hard failure. A `pending` or `failed` review stays incomplete
532
+ and must remain undisposed: writing a disposition before the review finishes is
533
+ itself a hard failure (`candidate-disposition-pending`), and the page stays
534
+ partial until the review is terminal.
535
+
536
+ A `lifecycle-signal` candidate may never be waived
537
+ `out-of-scope` with `external-surface` on a page that owns its file: the
538
+ signal was mounted on that page precisely because the page owns the behavior,
539
+ so the waiver contradicts the mounting rule itself
540
+ (`lifecycle-waiver-external-owner`). When the behavior genuinely belongs to
541
+ another page, the candidate is minted on that page; when the file is shared
542
+ infrastructure, no candidate is minted at all. The honest dispositions on an
543
+ owned lifecycle candidate are `promoted`, `no-user-observable` with a refuted
544
+ review, or `unknown`. Interaction-signal candidates keep their
545
+ host/embedded-unit `out-of-scope` path.
546
+
547
+ An `explicitly-excluded-source` waiver is only as good as the recorded
548
+ exclusion behind it: the evidence freezes `scope_exclusions` — the locators the
549
+ adapter attributed to another page — at prepare time, and both planned and
550
+ candidate waivers with that scope rule must cite locators inside the frozen
551
+ set (`waiver-excluded-source-unmatched` otherwise). A source this page owns,
552
+ or a shared source nobody owns, is never "explicitly excluded"; the latter is
553
+ what the `lifecycle-attribution-unresolved` unknown is for. Citations are
554
+ canonicalized before matching, so aliasing a locator
555
+ (`./src/alpha.js`, backslashes, `..` segments) cannot escape the recorded set.
556
+
557
+ A candidate-backed interaction signal follows its disposition, not a separate
558
+ legacy obligation:
559
+
560
+ - `promoted` requires a `coverage.interactions` claim at the same scenario as
561
+ its `specified` behavior link. The claim's value is the signal's
562
+ `claim_token`, and that token must appear in the claimed scenario's `steps`.
563
+ A missing claim is a hard failure in full evaluation and is only deferred
564
+ under partial evaluation.
565
+ - `waived` requires an entry in `coverage.excluded[]` with the same reason the
566
+ disposition used. A missing exclusion is a hard failure in full evaluation
567
+ and is only deferred under partial evaluation.
568
+ - `unknown` or an unfinished review stays partial and needs neither: a
569
+ candidate-backed signal that is unknown/incomplete is not required to be claimed
570
+ in `coverage.interactions` or excluded in `coverage.excluded[]`, and its
571
+ absence from both is not a G4 failure.
572
+
573
+ ### 3.3 Unknown relevance contracts
574
+
575
+ A field-scoped unknown must identify what it blocks:
576
+
577
+ ```json
578
+ {
579
+ "id": "unk_…",
580
+ "scope": "assertion",
581
+ "reason": "unsupported-construct",
582
+ "source_unit_ids": ["su_…"],
583
+ "affected_assertion_id": "ba_…",
584
+ "affected_fields": ["outcomes"],
585
+ "evidence_refs": ["…"],
586
+ "relevance_review": {"status": "reviewed", "conclusion": "blocks-fields"},
587
+ "next_action": "Inspect the unsupported source region"
588
+ }
589
+ ```
590
+
591
+ `affected_fields` is a non-empty subset of `trigger`, `preconditions`,
592
+ `outcomes`, and `side_effects`. The unknown must name at least one related
593
+ assertion, candidate, or SourceUnit, carry specific current evidence, and have
594
+ a reviewed `blocks-fields` relevance. A candidate-scoped unknown also names the
595
+ candidate. An unrelated unknown elsewhere in the page cannot justify an
596
+ assertion's unknown disposition.
597
+
598
+ A composition unknown uses its own contract:
599
+
600
+ ```json
601
+ {
602
+ "id": "unk_…",
603
+ "scope": "composition",
604
+ "reason": "unresolved-source-unit",
605
+ "referring_file": "src/primary.ext",
606
+ "locator": "src/missing.ext",
607
+ "relevance_review": {"status": "reviewed", "conclusion": "blocks-composition"},
608
+ "next_action": "Resolve the recorded reference and inspect its target"
609
+ }
610
+ ```
611
+
612
+ It needs an unresolved locator or referring file and a reviewed
613
+ `blocks-composition` relevance; it does not use assertion fields. Open
614
+ composition keeps the page partial even when every listed SourceUnit was read.
615
+
616
+ ### 3.4 Resolutions
617
+
618
+ An immutable or newly discovered unknown stays unresolved unless a clean
619
+ `resolutions[]` entry clears it or a digest-matched terminal SourceUnit review
620
+ resolves a `review-required`, `review-incomplete`, or `review-insufficient`
621
+ source unknown. A resolution is one of:
622
+
623
+ ```json
624
+ {"unknown_id": "unk_…", "status": "resolved", "evidence_refs": ["…current snapshot…"], "assertion_ids": ["ba_…"], "review_status": "reviewed"}
625
+ {"unknown_id": "unk_…", "status": "no-user-observable", "evidence_refs": ["…current snapshot…"], "review_status": "reviewed"}
626
+ {"unknown_id": "unk_…", "status": "no-assertions-found", "source_unit_id": "su_…", "reviewed_digest": "sha256-of-the-file-bytes", "assertion_ids": [], "review_status": "reviewed"}
627
+ ```
628
+
629
+ - `resolved` and `no-user-observable` require non-empty evidence from the
630
+ current snapshot. For `source-unread`, `source-changed`, `stale-evidence`,
631
+ `unsupported-construct`, and `review-insufficient`, `resolved` must also name
632
+ the resulting assertion IDs. `no-user-observable` records a reviewed
633
+ conclusion with current evidence.
634
+ - `no-assertions-found` is allowed only for review-required,
635
+ review-incomplete, or review-insufficient source reasons. Its
636
+ `reviewed_digest` must match the unit's current content digest, and its
637
+ `assertion_ids` must stay empty: it may not invent assertions.
638
+ - A missing, malformed, or failed resolution leaves the unknown unresolved.
639
+ `review_status:"incomplete"` defers the decision; it does not clear anything.
640
+
641
+ A truncated interaction scan closes only through its own resolution:
642
+
643
+ ```json
644
+ {"unknown_id": "unk_…", "status": "resolved", "source_unit_id": "su_…", "reviewed_digest": "sha256-of-the-file-bytes", "evidence_refs": ["…current snapshot…"], "assertion_ids": ["ba_…"], "review_status": "reviewed"}
645
+ ```
646
+
647
+ - The status must be `resolved`; `no-user-observable` and `no-assertions-found`
648
+ cannot close truncation.
649
+ - `source_unit_id` must be the truncated unit and its `reviewed_digest` must
650
+ match that unit's current `content_digest`.
651
+ - `evidence_refs` must be non-empty and current, and `assertion_ids` must equal
652
+ the closed review's attribution for that unit.
653
+ - Every candidate that cites the unit's locator must have a terminal review and
654
+ a `promoted` or `waived` disposition. An unfinished candidate leaves the
655
+ truncation partial.
656
+ - A truncated unit that was never fully reviewed, or whose resolution is
657
+ missing or `review_status:"incomplete"`, keeps the page partial. There is no
658
+ implicit closure.
659
+
660
+ ## 4. Worker Workflow
661
+
662
+ Every attempt follows this exact order:
663
+
664
+ ```text
665
+ read interaction_scans; name the failed and truncated units
666
+ read every SourceUnit and the related resources it needs
667
+ add semantic assertions, keeping every merged candidate in candidate_ids[]
668
+ write each SourceUnit conclusion and the exact assertion_ids attribution
669
+ write an explicit resolved resolution for every truncation you fully reviewed
670
+ settle candidate dispositions and planned dispositions
671
+ write behavior/attempt-<n>/<group_id>/discovery.json
672
+ run behavior-audit.mjs <output> pre <group_id> --attempt <n>
673
+ write drafts/attempt-<n>/<stem>.json
674
+ write behavior/attempt-<n>/<group_id>/post-review.json
675
+ run behavior-audit.mjs <output> post <group_id> --attempt <n>
676
+ submit immediately through submit.mjs
677
+ ```
678
+
679
+ The CLI signatures are:
680
+
681
+ ```bash
682
+ node scripts/behavior-audit.mjs <output> pre <group_id> --attempt <n>
683
+ node scripts/behavior-audit.mjs <output> post <group_id> --attempt <n>
684
+ ```
685
+
686
+ Rules:
687
+
688
+ - Read the evidence slices and the real source before writing discovery. The
689
+ slices are an index; the source is the evidence of record.
690
+ - Check `interaction_scans` per SourceUnit first. A record whose status is not
691
+ `ok`, or whose `truncated` is true, is the first unit to re-read. The page
692
+ aggregate never substitutes for the unit record.
693
+ - Write discovery only under the current attempt directory. Never edit
694
+ `evidence/` and never create a second attempt directory.
695
+ - Run the pre-audit after discovery and before drafting. `completed` and
696
+ `incomplete` both exit 0. An `incomplete` pre-audit permits drafting but
697
+ forces partial delivery later. `failed` exits 1 and must be repaired before
698
+ drafting; operational errors exit 2.
699
+ - Write the drafts, then the post-review, then run the post-audit. Compute
700
+ `drafts_digest` directly with `node scripts/behavior-audit.mjs <output> digest
701
+ <group_id> --attempt <n>`; do not infer it from a failed audit. A post-review
702
+ mismatch (digest, attempt, page, review, or link) is a hard G4 failure. A
703
+ `specified` link must use the pre-reviewed scenario and include every planned
704
+ step (additional supporting steps are allowed).
705
+ - Finalization requires discovery, pre-audit, and post-review. A missing
706
+ artifact is a retryable exit-2 readiness abort with no publication; deletion
707
+ cannot turn a known omission into partial delivery.
708
+ - Submission (explicit and recovery) requires discovery, pre-audit, and
709
+ post-review, exactly like finalization: a group committed without them could
710
+ never be finalized. An explicit submit with a missing artifact is rejected as
711
+ `Audit incomplete` without abandoning the group; recovery defers it. A present
712
+ but incomplete/failed semantic review remains genuine partial.
713
+ - G4 recomputes each page's pre-audit from Evidence and discovery and rejects
714
+ `pre-audit-mismatch`; the editable pre-audit file is a receipt, not a verdict.
715
+ - Submit immediately after the post-audit through `submit.mjs`; do not keep
716
+ editing after submission.
717
+ - Workers cannot reclassify an unknown as specified without new evidence. An
718
+ unresolved blind spot remains unknown, a refuted review only supports a
719
+ no-user-observable waiver, and an insufficient review only supports an
720
+ unknown disposition with directly related unresolved IDs.
721
+ - Stale or source-changed evidence requires rediscovery. A digest-matched
722
+ SourceUnit review, a resolution with current evidence and resulting
723
+ assertion IDs, or a reviewed no-user-observable conclusion is the only way
724
+ forward; manual acceptance does not upgrade partial to complete.
725
+ - Live drift is re-observed: submission and finalize re-read the current source
726
+ bytes. If a reviewed file changes after the review, the live bytes no longer
727
+ hash to `content_digest`, the unit becomes `source-changed`, and the page
728
+ returns to partial. A recorded review or scan never launders live drift into
729
+ complete coverage.
730
+
731
+ ## 5. Draft Schema Additions
732
+
733
+ A behavior-enabled draft carries the page discovery digest and explicit links:
734
+
735
+ ```json
736
+ {
737
+ "spec_id": "page:Alpha",
738
+ "page_id": "page:Alpha",
739
+ "discovery_digest": "sha256-of-the-page-discovery-entry",
740
+ "coverage": {
741
+ "edges": [],
742
+ "widgets": [],
743
+ "interactions": [],
744
+ "excluded": [],
745
+ "behaviors": [
746
+ {"assertion_id": "ba_…", "status": "specified", "scenario": 1, "steps": [1, 2]}
747
+ ]
748
+ }
749
+ }
750
+ ```
751
+
752
+ `discovery_digest` must equal `stableDigest` of this page's entry in
753
+ `discovery.json`; the pre-audit page digest, the post-review `page_digests`
754
+ value, and every draft for the page must use the same value.
755
+
756
+ `coverage.behaviors[]` accepts exactly these link shapes:
757
+
758
+ ```json
759
+ {"assertion_id": "ba_…", "status": "specified", "scenario": 1, "steps": [1, 2]}
760
+ {"assertion_id": "ba_…", "status": "waived", "reason": "duplicate-assertion", "canonical_assertion_id": "ba_…", "evidence_refs": []}
761
+ {"assertion_id": "ba_…", "status": "waived", "reason": "no-user-observable", "evidence_refs": ["…"]}
762
+ {"assertion_id": "ba_…", "status": "waived", "reason": "out-of-scope", "evidence_refs": ["…"], "scope_rule": "external-surface"}
763
+ {"assertion_id": "ba_…", "status": "unknown", "unknown_ids": ["unk_…"]}
764
+ ```
765
+
766
+ - `specified` links use the pre-reviewed scenario and include every planned
767
+ step. Scenario and step indices are 1-based and must exist in this draft;
768
+ `steps` is a non-empty array and may add supporting steps.
769
+ - A `specified` scenario must restate the assertion's navigation gate
770
+ preconditions in the scenario's steps. Write the branch as the user sees it:
771
+ where the gate leads when met, and the prompt or redirect when unmet. Gate
772
+ detail rows (`polarity:`, `redirect_when_unmet:`, `…: interceptor:…`) travel
773
+ with their axis; the audit requires one axis token in the scenario. An ASCII
774
+ token matches only as a whole word, so a step that mentions "payload" does
775
+ not satisfy a `pay` gate. A page that already requires the same axis at entry
776
+ (`required_state` or an interceptor) covers the gate in its entry scenario,
777
+ so action scenarios are not forced to repeat it. Discovery gives a user
778
+ transition the target page's gate even when the edge itself has no guard; an
779
+ edge guard only covers the axis it names. Non-navigation data axes
780
+ (`data-state`, `content`, …) and prose guards stay with the semantic review;
781
+ only recognized gate axes are language-checked. A scenario that drops the
782
+ gate is a hard `link-precondition` failure.
783
+ - A draft links one assertion at most once. The only exception is a set of
784
+ `specified` links for genuinely distinct response branches: every link must
785
+ carry a different exact `response_span` / `response_role`, match that branch's
786
+ evidence and operation-review scenario/step ownership, and retain the normal
787
+ planned-disposition checks. True duplicate identities, unbacked identities,
788
+ and identity-less sharing fail as `link-duplicate`. Every planned assertion
789
+ for the page needs at least one link across the page's drafts; a missing
790
+ required link is a hard failure.
791
+ - A duplicate link must name the exact planned `canonical_assertion_id`, and
792
+ that canonical assertion must have its own `specified` link.
793
+ - `no-user-observable` and `out-of-scope` waivers require evidence that
794
+ resolves to `state.status === "valid"` on the current snapshot. A `stale`,
795
+ `source-unread`, `source-changed`, or `invalid` reference fails the waiver;
796
+ `out-of-scope` also requires the exact planned `external-surface` or
797
+ `explicitly-excluded-source` rule. Arbitrary text and mismatched rules fail.
798
+ - An `unknown` link must cite unresolved unknown IDs whose
799
+ `affected_assertion_id` is the linked assertion. Resolved or unrelated IDs
800
+ fail.
801
+ - Links must agree with the planned disposition. A `specified` link for an
802
+ unknown assertion, or vice versa, is a conflict.
803
+
804
+ ### 5.1 Evidence-owned semantic detail
805
+
806
+ Immutable and worker-added discovery assertions, together with operation response
807
+ roles, may classify observable behavior
808
+ with the closed vocabulary `trigger`, `state-transition`, `ui-result`,
809
+ `http-error`, `business-error`, `empty`, `reset`, and `boundary`. This is not a
810
+ fixed checklist: the post-audit derives only the categories present on
811
+ evidence-backed assertions and each operation's own `response_spans` roles.
812
+ One operation's response branches never satisfy another operation's category.
813
+
814
+ An entry assertion carries `operation_id`, `category`, and an optional exact
815
+ `claim_token` (an outcome description is the fallback). Its evidence-backed
816
+ `operation_reviews` entry may own a scenario and optional `steps` subset without
817
+ an operation candidate; a review for any other unknown operation remains an
818
+ `operation-review-extra` failure. Never invent a candidate for entry-only
819
+ semantics.
820
+
821
+ Every operation candidate needs an `operation_reviews` entry and a draft endpoint
822
+ projection (`operation-review-missing` otherwise), except by its `owner`:
823
+ `external` (initiated by another page/module) and `out-of-feature-scope` are
824
+ neither reviewed nor projected; their evidence stays in the ledger. prepare sets
825
+ `out-of-feature-scope` only on an incremental `SUP` / `CHG` page
826
+ (`lib/scope.mjs` `scopeFeatureOperations`): an operation none of whose spans
827
+ overlaps the page's feature evidence (feature `source_refs`, map refs, `CHG`
828
+ change lines; a ref without a line covers its file) and whose spans' enclosing
829
+ functions are outside the HomeGraph call closure (calls / instantiates /
830
+ references / contains, plus same-name methods for dispatch) of the functions
831
+ holding that evidence. Each one is recorded in
832
+ `plan.json pages[].feature_scope.operation_scope.excluded` and listed in the
833
+ prompt; the worker puts its `operation_id` in `coverage.excluded` with
834
+ `out-of-feature-scope` and waives assertions on it through the usual
835
+ `out-of-scope` + `explicitly-excluded-source` path. Whenever this cannot be
836
+ decided (no feature evidence or no code anchor, an anchor the graph does not
837
+ know, no graph, the closure over its limit, a span without an enclosing
838
+ function) the page's operations stay in scope (`operation_scope.status:
839
+ "undetermined"`). NEW pages and full runs are never affected.
840
+
841
+ A response role may carry explicit `category`, `assertion_id`, and
842
+ `claim_token` metadata. Real v3 spans also have these closed role mappings:
843
+ `callback` → `ui-result`, `promise` → `ui-result`, `complete` → `reset`, and
844
+ `response-interceptor` → `state-transition`. When `category` or `assertion_id`
845
+ is absent, the post-audit derives the category and binds the span to a worker
846
+ assertion whose `evidence_refs` contains the exact same source location. An
847
+ unrecognized role produces a `semantic-response-role-unknown` scoped unknown.
848
+ Any supplied assertion or response `category` outside the closed vocabulary
849
+ instead produces `semantic-category-unknown` with `category:null`; an invalid
850
+ explicit response category never falls back to the real-role mapping. A
851
+ recognized role without its bound assertion produces a semantic evidence
852
+ unknown. None of these blind spots is silently exempt, and each keeps production
853
+ delivery partial rather than becoming a hard missing-category failure.
854
+
855
+ Every evidence-backed scenario/step/response branch is an independent semantic
856
+ owner, even when several branches share one `operation_id` and `category`.
857
+ Covering one branch cannot satisfy another. A behavior link may carry audit-only
858
+ `response_span` and `response_role` identity. When one assertion is bound to
859
+ multiple response roles, each branch has its own `specified` link with a
860
+ distinct exact identity; deleting either branch leaves that operation/category
861
+ uncovered. True duplicates and identity-less sharing remain invalid. Neither
862
+ identity field is rendered into the SPEC body.
863
+
864
+ A specified link for a classified assertion adds the same ownership metadata:
865
+
866
+ ```json
867
+ {"assertion_id":"ba_…","status":"specified","scenario":1,"steps":[2],"operation_id":"op-list","category":"http-error","claim_token":"The request failure preserves the previous list"}
868
+ ```
869
+
870
+ The claim must occur in at least one owned step, and the link's claim must equal
871
+ the evidence claim. Contracts and request templates cannot substitute for this
872
+ observable behavior. A missing category is a G4 `semantic-category-missing`
873
+ failure with the exact `operation_id` and `category`. Missing evidence, an
874
+ unresolved response role, an absent operation/scenario owner, or an unavailable
875
+ claim instead produces a scoped semantic unknown and partial delivery. A valid
876
+ scoped `unknown` disposition stays partial, and a lawful waiver keeps its normal
877
+ waived delivery outcome; neither may also fail as `semantic-category-missing`.
878
+ Invalid unknowns and waivers still fail through the existing behavior contracts.
879
+
880
+ `coverage.behaviors` must be a real array whenever it is present. A non-array
881
+ value is a hard G4 `behaviors-shape` failure even when discovery is missing, and
882
+ finalize/report link collection never spreads a non-array value.
883
+
884
+ `discovery_digest` and `coverage.behaviors` are audit metadata only. Neither
885
+ `discovery_digest` nor `coverage.behaviors` is rendered into the SPEC body or
886
+ `specs.json`.
887
+
888
+ ## 6. Pre-Audit
889
+
890
+ The pre-audit checks the evidence anchor, reconciliation, immutable discovery,
891
+ evidence references, unknown relevance, waiver evidence, and review
892
+ dispositions. It writes `pre-audit.json` atomically:
893
+
894
+ ```json
895
+ {
896
+ "status": "completed",
897
+ "coverage_status": "complete",
898
+ "discovery_digest": "sha256-of-the-full-group-discovery-document",
899
+ "attempt": 2,
900
+ "pages": {
901
+ "page:Alpha": {
902
+ "status": "completed",
903
+ "coverage_status": "complete",
904
+ "failures": [],
905
+ "unknowns": [],
906
+ "dispositions": ["…the planned dispositions…"],
907
+ "discovery_digest": "sha256-of-this-page-discovery-entry",
908
+ "attempt": 2
909
+ }
910
+ }
911
+ }
912
+ ```
913
+
914
+ Digest scope:
915
+
916
+ - The group `discovery_digest` is `stableDigest` over the full
917
+ `{ schema_version, attempt, pages }` document. It is not a reduced page-digest
918
+ projection, so adding a page changes the group digest.
919
+ - Each `pages[page_id].discovery_digest` is `stableDigest` of that page entry;
920
+ page digests are distinct and bind drafts.
921
+ - A group status is `failed` when any page fails or a group-level ledger,
922
+ attempt, extra-page, or missing-page check fails; `incomplete` when any page
923
+ is incomplete; otherwise `completed`.
924
+ - Pre-audit `completed` means the structural checks and required reviews
925
+ finished. `incomplete` permits drafting but forces partial delivery.
926
+ `failed` blocks drafting.
927
+ - Page coverage is `partial` whenever the page status is not `completed`, an
928
+ unknown is unresolved, composition is open, a SourceUnit is unread, or stale
929
+ evidence is not legally accounted for. Audit status and coverage status are
930
+ related but not identical.
931
+
932
+ ## 7. Post-Review and Post-Audit
933
+
934
+ The worker writes `post-review.json` after drafting:
935
+
936
+ ```json
937
+ {
938
+ "attempt": 2,
939
+ "discovery_digest": "sha256-of-the-full-group-discovery-document",
940
+ "page_digests": {
941
+ "page:Alpha": "sha256-of-the-page-discovery-entry"
942
+ },
943
+ "drafts_digest": "sha256-of-all-group-drafts-sorted-by-spec_id",
944
+ "status": "completed",
945
+ "reviews": [
946
+ {
947
+ "assertion_id": "ba_…",
948
+ "evidence_status": "supported",
949
+ "coverage_status": "covered"
950
+ }
951
+ ]
952
+ }
953
+ ```
954
+
955
+ - `discovery_digest` is the same full-document group digest used by the
956
+ pre-audit.
957
+ - `page_digests[page_id]` carries the per-page discovery digest.
958
+ - `drafts_digest` is `stableDigest` over every canonical group draft sorted by `spec_id`. It is validated exactly once at group scope; a single-page
959
+ evaluator never recomputes it from filtered drafts.
960
+ - `reviews[]` is keyed by `assertion_id`. `evidence_status` is `supported`,
961
+ `refuted`, `insufficient`, `unsupported`, or `incomplete`. `coverage_status`
962
+ is `covered`, `mismatch`, `not-required`, or `incomplete`.
963
+ - `unsupported` evidence and a `mismatch` coverage conclusion are hard
964
+ failures. A missing or `incomplete` review adds a `review-incomplete`
965
+ unknown and leaves authoring partial; it is not a hard failure.
966
+ - The review matrix is closed: `specified` requires
967
+ `supported`/`covered`; `unknown` requires `insufficient`/`not-required`;
968
+ `no-user-observable` requires `refuted`/`not-required`; `duplicate-assertion`
969
+ and `out-of-scope` require `supported`/`not-required`.
970
+ - At group scope, every review `assertion_id` must belong to at least one page
971
+ assertion set in the group. An ID outside the union is a G4 `review-extra`
972
+ failure; it cannot be filtered away by a per-page projection.
973
+
974
+ The post-audit also runs the §5.1 semantic-detail evaluation for every draft.
975
+ Its failures enter the G4 failure set, its unknowns enter the page unknown set,
976
+ and both participate in `derivePageState`: a missing category fails delivery,
977
+ while unresolved semantic evidence or ownership keeps authoring and delivery
978
+ partial. Helper output alone is never the production verdict.
979
+
980
+ The post-audit writes `post-audit.json` as operator output. It is not a gate
981
+ input and no gate reads it as a verdict; the gate recomputes the same evaluation
982
+ from discovery, pre-audit, post-review, and drafts. The file is still part of the
983
+ submission/finalize digest fence.
984
+
985
+ ```json
986
+ {
987
+ "status": "completed",
988
+ "coverage_status": "complete",
989
+ "discovery_digest": "sha256-of-the-full-group-discovery-document",
990
+ "attempt": 2,
991
+ "counts": {"specified": 1, "waived": 0, "unknown": 0, "conflicted": 0},
992
+ "pages": {
993
+ "page:Alpha": {
994
+ "authoring_status": "passed",
995
+ "coverage_status": "complete",
996
+ "delivery_status": "delivered-complete",
997
+ "counts": {"specified": 1, "waived": 0, "unknown": 0, "conflicted": 0},
998
+ "dispositions": ["…"],
999
+ "unknowns": [],
1000
+ "source_units": ["…"],
1001
+ "composition_roots": ["src/primary.ext"],
1002
+ "inventory_status": "closed",
1003
+ "unresolved_references": [],
1004
+ "pre_audit_status": "completed",
1005
+ "post_audit_status": "completed"
1006
+ }
1007
+ },
1008
+ "failures": []
1009
+ }
1010
+ ```
1011
+
1012
+ `counts.waived` includes every waiver-class disposition:
1013
+ `no-user-observable`, `duplicate-assertion`, and `out-of-scope`. `promoted`
1014
+ candidates are not double-counted because their promoted assertion is already
1015
+ planned `specified`.
1016
+
1017
+ ## 8. Hard Failure, Partial, and Not-Audited
1018
+
1019
+ Hard failures include malformed or missing required artifacts, digest or
1020
+ attempt mismatches, evidence-anchor failures, immutable tampering, missing or
1021
+ extra page entries, an invalid scenario or step link, a specified scenario that
1022
+ drops a navigation gate precondition, a demonstrated semantic mismatch, a
1023
+ missing required link, an invalid waiver or unknown, and `unsupported` evidence.
1024
+ Hard failures always decide `failed` before any complete/partial
1025
+ classification.
1026
+
1027
+ Missing artifacts are distinguished by the submission phase:
1028
+
1029
+ - Finalization requires discovery, pre-audit, and post-review. Missing any of
1030
+ them (`missing-discovery`, `missing-pre-audit`, or `missing-post-review`) is a
1031
+ retryable exit-2 readiness abort with no publication; deletion
1032
+ cannot turn a known omission into partial delivery.
1033
+ - Submission requires the same three artifacts, so no submitted group can
1034
+ reach finalization without them. A group the ledger closed as `failed` is the
1035
+ one exception at finalization: it is never dispatched again, so its missing
1036
+ artifacts are not awaited; it is published as a failed shard (`group-failed`)
1037
+ and lands in `incomplete.failedShards`.
1038
+ - Independently, a present but non-array `coverage.behaviors` is a G4
1039
+ `behaviors-shape` failure before any partial fallback.
1040
+ - A behavior-anchored plan page that produced no audited state becomes an
1041
+ explicit placeholder: `authoring_status:"partial"`,
1042
+ `coverage_status:"partial"`, `delivery_status:"delivered-partial"`,
1043
+ pre/post status `not-audited`, zero counts, empty SourceUnits and
1044
+ composition, and one `not-audited` unknown. It never disappears and never
1045
+ throws.
1046
+
1047
+ A page is complete only when composition is closed with no open composition
1048
+ unknown, every SourceUnit was read and reviewed at its current digest, no
1049
+ unknown remains, every evidence reference is valid, both audits completed, and
1050
+ every assertion is specified or legally waived. Raw
1051
+ `unresolved_references`/`inventory_status` are immutable producer diagnostics and
1052
+ do not participate in this verdict; a lawful resolution closes the composition
1053
+ unknown they describe. A run with any unresolved page
1054
+ or run-level behavior unknown is `delivered-partial`; the finalize summary
1055
+ reports `delivered-partial` and `unresolved_evidence_areas`.
1056
+
1057
+ ## 9. Submission, Commit, and Finalize Fences
1058
+
1059
+ Intermediate discovery, draft, review, and audit artifacts are not submission authorization. A healthy claimed/live worker must still explicitly submit after its post-audit; watchdog recovery is available only at the recovery-eligibility boundaries defined by the execution model. Behavior-artifact digest fences are additional to—not replacements for—the owner-scoped attempt manifest fence that recovery derives from a complete attempt scan. The digest maps prove that evidence and attempt artifacts did not change, while the manifest independently proves the requested groups' visible draft set, conservatively fenced ambiguous files, and exact batch-owned canonical additions without blocking on drafts owned only by healthy, non-requested groups.
1060
+
1061
+ `readSubmissionSnapshot` and every `commitSubmission` lock authenticate
1062
+ `plan.json` with `assertPlanContentVersion`, unconditionally and for every group
1063
+ kind, including shared and behavior-free groups. The check is never predicated
1064
+ on mutable `page.behavior` presence, so removing the anchor cannot disable the
1065
+ behavior gates.
1066
+
1067
+ `validateSubmission` captures a sorted digest map over immutable `evidence/**`
1068
+ plus the four attempt artifacts before evaluation and again after evaluation.
1069
+ The maps must be exactly equal, including `null`/missing states; any difference
1070
+ is a retryable conflict and that round performs no submit, abandon, or
1071
+ publication. The map carried into `commitSubmission` is the pre-evaluation map.
1072
+ The four fixed evidence files (`composition.json`, `candidates.json`,
1073
+ `assertions.json`, `unknowns.json`) of every behavior page are always seeded as
1074
+ digest-or-null, so a missing file cannot appear later as a newly accepted key.
1075
+
1076
+ `commitSubmission` rechecks under the submission lock:
1077
+
1078
+ - the ledger `plan_version` and `assertPlanContentVersion(plan)`;
1079
+ - every behavior artifact digest and every allowed-missing `null` state;
1080
+ - the staged bytes and the existing canonical bytes.
1081
+
1082
+ A replacement, deletion, appearance, or same-version plan-content change
1083
+ returns `{conflict:true}` and publishes nothing: no abandon event, no submit
1084
+ event, and no canonical file. A conflict is retryable from a fresh snapshot.
1085
+
1086
+ `finalize` performs the same fence with a complete initial digest baseline:
1087
+
1088
+ - require `plan.plan_version === state.plan_version` and
1089
+ `assertPlanContentVersion(plan)` before rendering;
1090
+ - baseline immutable evidence and attempt artifacts after plan/attempt loading
1091
+ but before `renderAll`, seeding every fixed evidence file as digest-or-null;
1092
+ the baseline is monotonic: after the complete initial pass, no key may be
1093
+ added and no digest may be replaced;
1094
+ - after that complete baseline, a later observation may not add a key or turn a
1095
+ `null` into a present file; such an appearance aborts rather than merging;
1096
+ - assert the baseline immediately before and after every group gate;
1097
+ - hold the submission ledger lock across staged rendering, gates, and
1098
+ publication, so no submit can advance the attempt mid-snapshot;
1099
+ - render SPECs and write `coverage-report.json`, `specs.json`,
1100
+ `grouping-report.json`, and `report.md` into a staging directory, verify the
1101
+ baseline again, then publish with `specs.json` last and rollback on failure.
1102
+
1103
+ A post-gate replacement aborts finalization instead of being adopted as the new
1104
+ expected bytes. Operational aborts exit 2; a published run exits 0 even when a
1105
+ gate failed, because `specs.json` declares the hole through `completeness` /
1106
+ `incomplete`. Finalize writes `coverage-report.json` beside `report.md` and adds
1107
+ a `## Behavior Coverage` section; `specs.json` keeps `so-id`/`path`/`deps` per
1108
+ SPEC (plus the completeness declaration) and no SPEC body contract changes.
1109
+
1110
+ ## 10. Coverage Report and Downstream Isolation
1111
+
1112
+ `coverage-report.json` contains:
1113
+
1114
+ - `schema_version`, `plan_version`, `coverage_status`, `delivery_status`;
1115
+ - `unresolved_evidence_areas` — unresolved pages plus run-level unknowns;
1116
+ - `behavior_unknowns`, `composition_roots`, aggregate `counts`, and
1117
+ `failures`;
1118
+ - `pages[]` with `page_id`, `authoring_status`, `coverage_status`,
1119
+ `delivery_status`, `composition_roots`, `source_units`,
1120
+ `inventory_status`, `unresolved_references`, `pre_audit_status`,
1121
+ `post_audit_status`, `dispositions`, canonical `links`, `unknowns`,
1122
+ `interaction_scans`, `source_unit_reviews`, and `counts`.
1123
+
1124
+ `interaction_scans` and `source_unit_reviews` are deterministic projections of
1125
+ the page state, sorted by `locator` and `source_unit_id`. They are diagnostics
1126
+ only: neither appears in `specs.json`, a SPEC body, or coder instructions. A
1127
+ page that was never audited keeps both arrays empty.
1128
+
1129
+ `report.md` distinguishes authoring success from coverage completeness and
1130
+ lists hard failures, partial reasons, unresolved source locations, and unknown
1131
+ reasons with next actions. Its `## Behavior Coverage` section also prints:
1132
+
1133
+ - `Failed or truncated scan units` — scan records whose status is not `ok`, plus
1134
+ `truncated: true` records while the page still carries an unresolved
1135
+ `cause: "truncated"` unknown for that scan's `source_unit_id`;
1136
+ - `Incomplete SourceUnit reviews` — current SourceUnits without a
1137
+ digest-matched terminal review and exact attribution;
1138
+ - `Pages with scan or review blind spots` — pages that are already partial and
1139
+ carry at least one of those blind spots.
1140
+
1141
+ Warnings and failures keep independent sections; G7 and G8 remain warnings and
1142
+ never determine delivery state.
1143
+
1144
+ Partial status is generation-side metadata only. `specs.json` keeps its three
1145
+ downstream fields (`so-id`, `path`, `deps`) and is unchanged. SPEC bodies carry
1146
+ no partial marker. Coder instructions carry no coverage-status requirement.
1147
+ Complete and partial packages are structurally identical for the downstream
1148
+ coder. Partial status never appears in `specs.json`, SPEC bodies, or coder instructions.
1149
+
1150
+ ## 11. G4 Priorities
1151
+
1152
+ For a behavior-enabled page group, assertion links are the primary
1153
+ authoring-coverage contract, and the legacy `claim_token` coverage is a
1154
+ secondary check. G4 reads `discovery.json`, `pre-audit.json`, and `post-review.json` together with the drafts; these are the gate inputs. `post-audit.json` is recomputed operator output, not a G4 input: the gate re-evaluates the same inputs and never reads that file as a verdict. The operator file is still digest-fenced for submission and finalization.
1155
+
1156
+ G4 evaluates:
1157
+
1158
+ 1. the discovery, pre-audit, and post-review artifact set, digests, attempts,
1159
+ and page sets;
1160
+ 2. evidence anchor, reconciliation, and immutable discovery;
1161
+ 3. every planned assertion's explicit `coverage.behaviors` link;
1162
+ 4. semantic evidence and coverage reviews;
1163
+ 5. the legacy `out_edges`, `is_trigger` widget, and interaction-signal token
1164
+ claims. An interaction signal owned by an immutable interaction-signal
1165
+ candidate is validated by that candidate's disposition instead of a
1166
+ standalone token claim: promoted → claim, waived → exclusion, unknown or
1167
+ unfinished → partial.
1168
+
1169
+ A `coverage_status:"partial"` page is never converted into a failure or a
1170
+ warning. It stays partial and drives honest `delivered-partial` delivery.