@buaa_smat/hometrans 26.0.3 → 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 (750) hide show
  1. package/README.md +1 -1
  2. package/agents/code-reviewer.md +91 -21
  3. package/env-requirements.json +1 -1
  4. package/i18n/agents/code-reviewer.md +93 -21
  5. package/i18n/skills/a2h-app-migrate/SKILL.md +19 -11
  6. package/i18n/skills/a2h-app-migrate/references/feature-scope.md +121 -0
  7. package/i18n/skills/a2h-app-migrate/references/stage-map.md +2 -2
  8. package/i18n/skills/a2h-app-migrate/references/workflow.yaml +320 -73
  9. package/i18n/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +78 -5
  10. package/i18n/skills/a2h-app-migrate/scripts/env_preflight.mjs +79 -11
  11. package/i18n/skills/a2h-app-migrate/scripts/human_review_gate.mjs +75 -4
  12. package/i18n/skills/a2h-app-migrate/test/test_android_index.mjs +12 -0
  13. package/i18n/skills/a2h-app-migrate/test/test_env_requirements.mjs +25 -10
  14. package/i18n/skills/a2h-app-migrate/test/test_finalize.mjs +35 -7
  15. package/i18n/skills/a2h-app-migrate/test/test_resume_plan.mjs +52 -0
  16. package/i18n/skills/a2h-app-migrate/test/test_resume_summary.mjs +26 -0
  17. package/i18n/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +36 -0
  18. package/i18n/skills/a2h-app-migrate/test/test_run_dir.mjs +71 -7
  19. package/i18n/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +117 -0
  20. package/i18n/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +7 -3
  21. package/i18n/skills/a2h-app-migrate/test/test_utg_static_done.mjs +38 -2
  22. package/i18n/skills/a2h-arch-generate/SKILL.md +20 -17
  23. package/i18n/skills/a2h-arch-generate/references/database-schema-recovery.md +2 -2
  24. package/i18n/skills/a2h-arch-generate/references/harmony-project-inspection.md +8 -8
  25. package/i18n/skills/a2h-arch-generate/references/homegraph-workflow.md +25 -14
  26. package/i18n/skills/a2h-arch-generate/references/source-baseline.md +4 -4
  27. package/i18n/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +3 -3
  28. package/i18n/skills/a2h-arkts-logic-coder/SKILL.md +304 -0
  29. package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -1
  30. package/i18n/skills/a2h-arkts-logic-coder/references/code-generation.md +59 -2
  31. package/i18n/skills/a2h-arkts-logic-coder/references/spec-design.md +52 -11
  32. package/i18n/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +328 -38
  33. package/i18n/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +245 -0
  34. package/i18n/skills/a2h-batch-ui-align/SKILL.md +70 -21
  35. package/i18n/skills/a2h-batch-ui-align/references/cards/alignment.md +5 -1
  36. package/i18n/skills/a2h-batch-ui-align/references/cards/geometry.md +5 -0
  37. package/i18n/skills/a2h-batch-ui-align/references/cards/interaction.md +2 -1
  38. package/i18n/skills/a2h-batch-ui-align/references/cards/resources.md +6 -4
  39. package/i18n/skills/a2h-batch-ui-align/references/cards/widgets.md +5 -0
  40. package/i18n/skills/a2h-batch-ui-align/references/cards/window.md +2 -1
  41. package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +236 -11
  42. package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +8 -5
  43. package/i18n/skills/a2h-batch-ui-align/references/incremental-scope.md +28 -9
  44. package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +7 -4
  45. package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +28 -1
  46. package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_decorator-quickref.md +31 -0
  47. package/i18n/skills/a2h-batch-ui-align/references/step3-capture.md +22 -6
  48. package/i18n/skills/a2h-batch-ui-align/references/step4-prepare.md +3 -0
  49. package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +26 -4
  50. package/i18n/skills/a2h-batch-ui-align/scripts/branch_coverage.mjs +155 -0
  51. package/i18n/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +386 -16
  52. package/i18n/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +19 -1
  53. package/i18n/skills/a2h-batch-ui-align/scripts/group_pack.mjs +134 -11
  54. package/i18n/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +147 -0
  55. package/i18n/skills/a2h-batch-ui-align/scripts/measure_pack.ts +231 -5
  56. package/i18n/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +82 -8
  57. package/i18n/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +21 -7
  58. package/i18n/skills/a2h-batch-ui-align/scripts/state_doc.mjs +9 -4
  59. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/main.ts +48 -5
  60. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +3 -17
  61. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +1 -19
  62. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/dialog_backboard.ts +91 -0
  63. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/event_default_click.ts +179 -0
  64. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +339 -0
  65. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/image_source.ts +84 -0
  66. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/input_traps.ts +249 -0
  67. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +234 -5
  68. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_host.ts +145 -0
  69. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +45 -11
  70. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_binds.ts +56 -0
  71. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_string.ts +96 -0
  72. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +60 -0
  73. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +3 -2
  74. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +102 -0
  75. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +54 -4
  76. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/runtime_traps.ts +440 -0
  77. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +75 -23
  78. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/swiper_index.ts +65 -0
  79. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +63 -2
  80. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/waterflow_sections.ts +231 -0
  81. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +4 -4
  82. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_input_runtime.test.mjs +514 -0
  83. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +224 -0
  84. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_overlay_lottie.test.mjs +199 -0
  85. package/i18n/skills/a2h-batch-ui-align/scripts/tests/branch_coverage.test.mjs +116 -0
  86. package/i18n/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +133 -0
  87. package/i18n/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +5 -3
  88. package/i18n/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +33 -2
  89. package/i18n/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +12 -0
  90. package/i18n/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +8 -0
  91. package/i18n/skills/a2h-coldstart-smoke-gate/SKILL.md +7 -4
  92. package/i18n/skills/a2h-dashboard-render/scripts/device_capture.mjs +11 -9
  93. package/i18n/skills/a2h-module-semantic-docs/SKILL.md +51 -13
  94. package/i18n/skills/a2h-page-specgen/SKILL.md +123 -20
  95. package/i18n/skills/a2h-page-specgen/references/behavior-ledger.md +1174 -0
  96. package/i18n/skills/a2h-page-specgen/references/body-language.md +11 -9
  97. package/i18n/skills/a2h-page-specgen/references/gates.md +119 -52
  98. package/i18n/skills/a2h-page-specgen/references/page-inventory.md +69 -22
  99. package/i18n/skills/a2h-page-specgen/references/scenario-authoring.md +274 -0
  100. package/i18n/skills/a2h-page-specgen/references/spec-example.md +312 -0
  101. package/i18n/skills/a2h-page-specgen/references/spec-template.md +113 -110
  102. package/i18n/skills/a2h-page-specgen/scripts/behavior-audit.mjs +2436 -0
  103. package/i18n/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +1833 -0
  104. package/i18n/skills/a2h-page-specgen/scripts/behavior-model.mjs +181 -0
  105. package/i18n/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +1205 -0
  106. package/i18n/skills/a2h-page-specgen/scripts/entry-evidence.mjs +1123 -0
  107. package/i18n/skills/a2h-page-specgen/scripts/facts-build.mjs +171 -62
  108. package/i18n/skills/a2h-page-specgen/scripts/footprint.mjs +314 -192
  109. package/i18n/skills/a2h-page-specgen/scripts/gate.mjs +364 -76
  110. package/i18n/skills/a2h-page-specgen/scripts/interactions.mjs +216 -8
  111. package/i18n/skills/a2h-page-specgen/scripts/inventory.mjs +371 -0
  112. package/i18n/skills/a2h-page-specgen/scripts/lib/contracts.mjs +116 -223
  113. package/i18n/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +235 -0
  114. package/i18n/skills/a2h-page-specgen/scripts/lib/hg.mjs +521 -13
  115. package/i18n/skills/a2h-page-specgen/scripts/lib/homegraph-process.mjs +102 -0
  116. package/i18n/skills/a2h-page-specgen/scripts/lib/homegraph-query.mjs +161 -0
  117. package/i18n/skills/a2h-page-specgen/scripts/lib/operation-reviews.mjs +913 -0
  118. package/i18n/skills/a2h-page-specgen/scripts/lib/prose.mjs +12 -8
  119. package/i18n/skills/a2h-page-specgen/scripts/lib/semantic-detail.mjs +353 -0
  120. package/i18n/skills/a2h-page-specgen/scripts/lib/source-text.mjs +497 -0
  121. package/i18n/skills/a2h-page-specgen/scripts/operation-evidence.mjs +1542 -0
  122. package/i18n/skills/a2h-page-specgen/scripts/prepare.mjs +483 -125
  123. package/i18n/skills/a2h-page-specgen/scripts/render.mjs +10 -33
  124. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +288 -7
  125. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.json +25 -0
  126. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +373 -0
  127. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +300 -0
  128. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.json +47 -0
  129. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +373 -0
  130. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +300 -0
  131. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +2694 -0
  132. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +726 -0
  133. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +108 -0
  134. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +373 -0
  135. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.review.md +65 -0
  136. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +267 -0
  137. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.json +57 -0
  138. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +373 -0
  139. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +300 -0
  140. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/branch-checklist.md +32 -0
  141. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/gate-results.json +22 -0
  142. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/manifest.json +111 -0
  143. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/portability.test.mjs +141 -0
  144. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/review.md +22 -0
  145. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +553 -0
  146. package/i18n/skills/a2h-page-specgen/scripts/test/android-entry-evidence.test.mjs +585 -0
  147. package/i18n/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +755 -0
  148. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-group.test.mjs +546 -0
  149. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-post.test.mjs +655 -0
  150. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +1234 -0
  151. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-component-gate.test.mjs +520 -0
  152. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +1516 -0
  153. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-finalize.test.mjs +759 -0
  154. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +630 -0
  155. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-model.test.mjs +118 -0
  156. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +798 -0
  157. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-regression.test.mjs +886 -0
  158. package/i18n/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +134 -163
  159. package/i18n/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +475 -0
  160. package/i18n/skills/a2h-page-specgen/scripts/test/facts.test.mjs +40 -1
  161. package/i18n/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +206 -9
  162. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/App.vue +1 -0
  163. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-conflict-record.json +17 -0
  164. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-record.json +17 -0
  165. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/manifest.json +3 -0
  166. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages/list/index.vue +80 -0
  167. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages.json +14 -0
  168. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/source-record.json +15 -0
  169. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/components/RefreshPanel.vue +15 -0
  170. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/composables/useRefresh.ts +50 -0
  171. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/pages/help/index.vue +9 -0
  172. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/state/store.ts +4 -0
  173. package/i18n/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +459 -188
  174. package/i18n/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +89 -0
  175. package/i18n/skills/a2h-page-specgen/scripts/test/gate.test.mjs +862 -12
  176. package/i18n/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +332 -0
  177. package/i18n/skills/a2h-page-specgen/scripts/test/helpers.mjs +139 -5
  178. package/i18n/skills/a2h-page-specgen/scripts/test/hg.test.mjs +378 -0
  179. package/i18n/skills/a2h-page-specgen/scripts/test/homegraph-process-fixture.mjs +130 -0
  180. package/i18n/skills/a2h-page-specgen/scripts/test/homegraph-query.test.mjs +288 -0
  181. package/i18n/skills/a2h-page-specgen/scripts/test/integration.test.mjs +69 -2
  182. package/i18n/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +267 -2
  183. package/i18n/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +111 -0
  184. package/i18n/skills/a2h-page-specgen/scripts/test/keys.test.mjs +10 -8
  185. package/i18n/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +1002 -0
  186. package/i18n/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +143 -51
  187. package/i18n/skills/a2h-page-specgen/scripts/test/prepare-homegraph-reproduction.mjs +365 -0
  188. package/i18n/skills/a2h-page-specgen/scripts/test/prepare-homegraph.test.mjs +569 -0
  189. package/i18n/skills/a2h-page-specgen/scripts/test/prepare-pipeline.test.mjs +326 -0
  190. package/i18n/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +166 -3
  191. package/i18n/skills/a2h-page-specgen/scripts/test/prose.test.mjs +13 -5
  192. package/i18n/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +531 -0
  193. package/i18n/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +102 -7
  194. package/i18n/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +1308 -72
  195. package/i18n/skills/a2h-page-specgen/scripts/test/render.test.mjs +69 -44
  196. package/i18n/skills/a2h-page-specgen/scripts/test/review-followup.test.mjs +467 -0
  197. package/i18n/skills/a2h-page-specgen/scripts/test/semantic-detail.test.mjs +949 -0
  198. package/i18n/skills/a2h-page-specgen/scripts/test/submit.test.mjs +658 -120
  199. package/i18n/skills/a2h-page-specgen/scripts/test/uniapp-operation-evidence.test.mjs +639 -0
  200. package/i18n/skills/a2h-page-specgen/scripts/test/utg-footprint-contract.test.mjs +274 -0
  201. package/i18n/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +101 -65
  202. package/i18n/skills/a2h-resource-convert/SKILL.md +9 -1
  203. package/i18n/skills/a2h-resource-convert/references/code-vector-icon-rules.md +2 -1
  204. package/i18n/skills/a2h-resource-convert/references/incremental-page-migration.md +23 -2
  205. package/i18n/skills/a2h-resource-convert/references/lottie-conversion-rules.md +7 -0
  206. package/i18n/skills/a2h-resource-convert/references/step4-resource-types.md +2 -0
  207. package/i18n/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +67 -3
  208. package/i18n/skills/a2h-resource-convert/scripts/lottie_hosts.ts +415 -0
  209. package/i18n/skills/a2h-resource-convert/scripts/tests/lottie_hosts.test.mjs +222 -0
  210. package/i18n/skills/a2h-spec-design-pipeline/SKILL.md +69 -109
  211. package/i18n/skills/a2h-spec-design-pipeline/references/coding-loop.md +135 -37
  212. package/i18n/skills/a2h-spec-design-pipeline/references/homegraph-cli.md +307 -0
  213. package/i18n/skills/a2h-spec-design-pipeline/references/initialization.md +103 -0
  214. package/i18n/skills/a2h-spec-design-pipeline/references/merge-queue.md +126 -23
  215. package/i18n/skills/a2h-spec-design-pipeline/references/post-loop.md +23 -0
  216. package/i18n/skills/a2h-spec-design-pipeline/references/review-loop.md +71 -0
  217. package/i18n/skills/a2h-spec-design-pipeline/references/scripts.md +24 -13
  218. package/i18n/skills/a2h-spec-design-pipeline/references/state-and-resume.md +246 -0
  219. package/i18n/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +170 -7
  220. package/i18n/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +155 -0
  221. package/i18n/skills/a2h-spec-generate/SKILL.md +2 -2
  222. package/i18n/skills/a2h-utg-explorer/SKILL.md +9 -3
  223. package/i18n/skills/a2h-utg-explorer/references/architecture.md +3 -0
  224. package/i18n/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +74 -84
  225. package/i18n/skills/a2h-utg-explorer/scripts/hybrid_route_cdp.mjs +376 -0
  226. package/i18n/skills/a2h-utg-explorer/scripts/recover_d.mjs +288 -21
  227. package/i18n/skills/a2h-utg-explorer/scripts/seed_recipes.mjs +426 -0
  228. package/i18n/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +252 -0
  229. package/i18n/skills/a2h-utg-explorer/scripts/tests/hybrid_route_identity.test.mjs +146 -0
  230. package/i18n/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +122 -0
  231. package/i18n/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +15 -0
  232. package/i18n/skills/a2h-utg-explorer/scripts/tests/seed_recipes.test.mjs +261 -0
  233. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/diagnostics.mjs +196 -0
  234. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/hybrid_route.mjs +140 -0
  235. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +211 -61
  236. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +47 -0
  237. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +724 -47
  238. package/i18n/skills/a2h-utg-static/SKILL.md +6 -2
  239. package/i18n/skills/a2h-utg-static/scripts/assemble.mjs +82 -12
  240. package/i18n/skills/a2h-utg-static/scripts/click_paths.mjs +116 -5
  241. package/i18n/skills/a2h-utg-static/scripts/compose_body_text.mjs +3 -3
  242. package/i18n/skills/a2h-utg-static/scripts/compose_titles.mjs +5 -5
  243. package/i18n/skills/a2h-utg-static/scripts/compose_widgets.mjs +4 -4
  244. package/i18n/skills/a2h-utg-static/scripts/data_model.mjs +590 -0
  245. package/i18n/skills/a2h-utg-static/scripts/data_producers.mjs +431 -0
  246. package/i18n/skills/a2h-utg-static/scripts/hybrid_scope.mjs +50 -5
  247. package/i18n/skills/a2h-utg-static/scripts/label_resolve.mjs +49 -4
  248. package/i18n/skills/a2h-utg-static/scripts/lib/hybrid-provenance.mjs +201 -0
  249. package/i18n/skills/a2h-utg-static/scripts/lib/uniapp-routes.mjs +195 -0
  250. package/i18n/skills/a2h-utg-static/scripts/nl_hints.mjs +32 -4
  251. package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +17 -0
  252. package/i18n/skills/a2h-utg-static/scripts/tests/test_data_model.mjs +120 -0
  253. package/i18n/skills/a2h-utg-static/scripts/tests/test_data_producers.mjs +113 -0
  254. package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_provenance.mjs +150 -0
  255. package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +181 -17
  256. package/i18n/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +35 -1
  257. package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_routes.mjs +161 -0
  258. package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +118 -19
  259. package/i18n/skills/a2h-utg-static/scripts/tests/test_utg_specgen_boundary.mjs +45 -0
  260. package/i18n/skills/a2h-utg-static/scripts/uniapp_nav.mjs +113 -70
  261. package/package.json +3 -6
  262. package/skills/a2h-app-migrate/SKILL.md +19 -11
  263. package/skills/a2h-app-migrate/references/feature-scope.md +121 -0
  264. package/skills/a2h-app-migrate/references/stage-map.md +2 -2
  265. package/skills/a2h-app-migrate/references/workflow.yaml +307 -74
  266. package/skills/a2h-app-migrate/scripts/android_index.mjs +35 -8
  267. package/skills/a2h-app-migrate/scripts/check_module_docs_done.mjs +39 -1
  268. package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +78 -5
  269. package/skills/a2h-app-migrate/scripts/check_spec_pipeline_done.mjs +144 -9
  270. package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +14 -1
  271. package/skills/a2h-app-migrate/scripts/check_utg_static_done.mjs +46 -5
  272. package/skills/a2h-app-migrate/scripts/diagnose.mjs +162 -0
  273. package/skills/a2h-app-migrate/scripts/env_preflight.mjs +79 -11
  274. package/skills/a2h-app-migrate/scripts/feature_scope.mjs +347 -0
  275. package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +75 -4
  276. package/skills/a2h-app-migrate/scripts/infer_android_root.mjs +17 -1
  277. package/skills/a2h-app-migrate/scripts/ledger.mjs +64 -6
  278. package/skills/a2h-app-migrate/scripts/migration_manifest.mjs +351 -0
  279. package/skills/a2h-app-migrate/scripts/paths_preflight.mjs +9 -23
  280. package/skills/a2h-app-migrate/scripts/resume_plan.mjs +33 -9
  281. package/skills/a2h-app-migrate/scripts/reuse_static_utg.mjs +33 -1
  282. package/skills/a2h-app-migrate/scripts/run_dir.mjs +27 -17
  283. package/skills/a2h-app-migrate/scripts/scope_model.mjs +255 -0
  284. package/skills/a2h-app-migrate/scripts/scope_report.mjs +128 -0
  285. package/skills/a2h-app-migrate/scripts/source_fp.mjs +120 -0
  286. package/skills/a2h-app-migrate/test/test_android_index.mjs +12 -0
  287. package/skills/a2h-app-migrate/test/test_env_requirements.mjs +25 -10
  288. package/skills/a2h-app-migrate/test/test_feature_scope.mjs +217 -0
  289. package/skills/a2h-app-migrate/test/test_finalize.mjs +35 -7
  290. package/skills/a2h-app-migrate/test/test_hmos_fingerprint.mjs +7 -7
  291. package/skills/a2h-app-migrate/test/test_incremental_acceptance.mjs +145 -0
  292. package/skills/a2h-app-migrate/test/test_incremental_phase2.mjs +223 -0
  293. package/skills/a2h-app-migrate/test/test_incremental_phase2_acceptance.mjs +157 -0
  294. package/skills/a2h-app-migrate/test/test_incremental_profile.mjs +84 -0
  295. package/skills/a2h-app-migrate/test/test_infer_android_root.mjs +10 -0
  296. package/skills/a2h-app-migrate/test/test_json_io.mjs +1 -1
  297. package/skills/a2h-app-migrate/test/test_leaf_questions.mjs +39 -0
  298. package/skills/a2h-app-migrate/test/test_migration_manifest.mjs +225 -0
  299. package/skills/a2h-app-migrate/test/test_module_docs_done.mjs +33 -0
  300. package/skills/a2h-app-migrate/test/test_resume_plan.mjs +52 -0
  301. package/skills/a2h-app-migrate/test/test_resume_summary.mjs +26 -0
  302. package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +36 -0
  303. package/skills/a2h-app-migrate/test/test_run_dir.mjs +71 -7
  304. package/skills/a2h-app-migrate/test/test_scope_model.mjs +172 -0
  305. package/skills/a2h-app-migrate/test/test_spec_engine_contract.mjs +13 -5
  306. package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +117 -0
  307. package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +7 -3
  308. package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +170 -3
  309. package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +1 -1
  310. package/skills/a2h-app-migrate/test/test_ui_batch_capture_audit.mjs +106 -0
  311. package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +12 -0
  312. package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +38 -2
  313. package/skills/a2h-arch-generate/SKILL.md +20 -17
  314. package/skills/a2h-arch-generate/references/homegraph-workflow.md +10 -8
  315. package/skills/a2h-arch-generate/references/source-baseline.md +2 -2
  316. package/skills/a2h-arch-generate/scripts/cleanup_intermediates.mjs +34 -3
  317. package/skills/a2h-arch-generate/scripts/create_project.mjs +24 -1
  318. package/skills/a2h-arch-generate/scripts/inspect_and_route.mjs +29 -5
  319. package/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +3 -3
  320. package/skills/a2h-arch-generate/scripts/tests/test_cleanup.mjs +17 -0
  321. package/skills/a2h-arch-generate/scripts/tests/test_router.mjs +26 -0
  322. package/skills/a2h-arch-generate/scripts/validate_incremental_docs.mjs +4 -2
  323. package/skills/a2h-arkts-logic-coder/SKILL.md +146 -17
  324. package/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -1
  325. package/skills/a2h-arkts-logic-coder/references/code-generation.md +59 -2
  326. package/skills/a2h-arkts-logic-coder/references/spec-design.md +42 -11
  327. package/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +328 -38
  328. package/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +244 -0
  329. package/skills/a2h-batch-ui-align/SKILL.md +72 -22
  330. package/skills/a2h-batch-ui-align/assets/ColorUtils.ets +16 -2
  331. package/skills/a2h-batch-ui-align/references/cards/alignment.md +5 -1
  332. package/skills/a2h-batch-ui-align/references/cards/geometry.md +5 -0
  333. package/skills/a2h-batch-ui-align/references/cards/interaction.md +2 -1
  334. package/skills/a2h-batch-ui-align/references/cards/resources.md +6 -4
  335. package/skills/a2h-batch-ui-align/references/cards/widgets.md +5 -0
  336. package/skills/a2h-batch-ui-align/references/cards/window.md +2 -1
  337. package/skills/a2h-batch-ui-align/references/checker-rules.md +236 -11
  338. package/skills/a2h-batch-ui-align/references/conversion-procedure.md +8 -5
  339. package/skills/a2h-batch-ui-align/references/host-dispatch.md +2 -0
  340. package/skills/a2h-batch-ui-align/references/incremental-scope.md +28 -9
  341. package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +7 -4
  342. package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +28 -1
  343. 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
  344. package/skills/a2h-batch-ui-align/references/step3-capture.md +25 -6
  345. package/skills/a2h-batch-ui-align/references/step4-prepare.md +3 -0
  346. package/skills/a2h-batch-ui-align/references/step5-convert.md +26 -4
  347. package/skills/a2h-batch-ui-align/scripts/branch_coverage.mjs +155 -0
  348. package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +380 -16
  349. package/skills/a2h-batch-ui-align/scripts/capture_audit.mjs +474 -0
  350. package/skills/a2h-batch-ui-align/scripts/capture_fast.mjs +665 -0
  351. package/skills/a2h-batch-ui-align/scripts/capture_verify.mjs +552 -0
  352. package/skills/a2h-batch-ui-align/scripts/detach.mjs +5 -2
  353. package/skills/a2h-batch-ui-align/scripts/evidence_gate.mjs +39 -5
  354. package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +19 -1
  355. package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +134 -11
  356. package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +213 -30
  357. package/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +147 -0
  358. package/skills/a2h-batch-ui-align/scripts/list_existing.mjs +141 -0
  359. package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +231 -5
  360. package/skills/a2h-batch-ui-align/scripts/page_gap.mjs +210 -0
  361. package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +82 -8
  362. package/skills/a2h-batch-ui-align/scripts/progress_identity.mjs +208 -0
  363. package/skills/a2h-batch-ui-align/scripts/scroll_verdict.mjs +62 -0
  364. package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +21 -7
  365. package/skills/a2h-batch-ui-align/scripts/shell_requests.mjs +273 -0
  366. package/skills/a2h-batch-ui-align/scripts/state_doc.mjs +9 -4
  367. package/skills/a2h-batch-ui-align/scripts/static_check/core/baseline.ts +79 -0
  368. package/skills/a2h-batch-ui-align/scripts/static_check/core/parse.ts +90 -2
  369. package/skills/a2h-batch-ui-align/scripts/static_check/core/scan.ts +44 -0
  370. package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +48 -5
  371. package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +24 -0
  372. package/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +3 -17
  373. package/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +1 -19
  374. package/skills/a2h-batch-ui-align/scripts/static_check/rules/dialog_backboard.ts +91 -0
  375. package/skills/a2h-batch-ui-align/scripts/static_check/rules/event_default_click.ts +179 -0
  376. package/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +339 -0
  377. package/skills/a2h-batch-ui-align/scripts/static_check/rules/image_source.ts +84 -0
  378. package/skills/a2h-batch-ui-align/scripts/static_check/rules/input_traps.ts +249 -0
  379. package/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +234 -5
  380. package/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_host.ts +145 -0
  381. package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +45 -11
  382. package/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_binds.ts +56 -0
  383. package/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_string.ts +96 -0
  384. package/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +60 -0
  385. package/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +3 -2
  386. package/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +102 -0
  387. package/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +54 -4
  388. package/skills/a2h-batch-ui-align/scripts/static_check/rules/runtime_traps.ts +440 -0
  389. package/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +75 -23
  390. package/skills/a2h-batch-ui-align/scripts/static_check/rules/swiper_index.ts +65 -0
  391. package/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +63 -2
  392. package/skills/a2h-batch-ui-align/scripts/static_check/rules/waterflow_sections.ts +231 -0
  393. package/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +4 -4
  394. package/skills/a2h-batch-ui-align/scripts/static_check/scan_file.ts +24 -2
  395. package/skills/a2h-batch-ui-align/scripts/tests/agent_cli.test.mjs +14 -0
  396. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_baseline.test.mjs +129 -0
  397. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_coolmall_runtime2.test.mjs +697 -0
  398. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_hit_test.test.mjs +298 -0
  399. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_input_runtime.test.mjs +514 -0
  400. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +224 -0
  401. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_overlay_lottie.test.mjs +199 -0
  402. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rule_smoke.test.mjs +41 -7
  403. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_runtime_api.test.mjs +346 -0
  404. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_theme_runtime.test.mjs +95 -0
  405. package/skills/a2h-batch-ui-align/scripts/tests/branch_coverage.test.mjs +116 -0
  406. package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +126 -0
  407. package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_scope.test.mjs +1 -0
  408. package/skills/a2h-batch-ui-align/scripts/tests/capture_audit.test.mjs +179 -0
  409. package/skills/a2h-batch-ui-align/scripts/tests/capture_fast.test.mjs +56 -0
  410. package/skills/a2h-batch-ui-align/scripts/tests/capture_gate.test.mjs +197 -0
  411. package/skills/a2h-batch-ui-align/scripts/tests/capture_review_fixes.test.mjs +322 -0
  412. package/skills/a2h-batch-ui-align/scripts/tests/color_utils_asset.test.mjs +19 -0
  413. package/skills/a2h-batch-ui-align/scripts/tests/evidence_gate.test.mjs +15 -0
  414. package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/SearchMenuDialog.buggy.ets +95 -0
  415. package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/meta.json +21 -0
  416. package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/screenshot.png +0 -0
  417. package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/view.xml +35 -0
  418. package/skills/a2h-batch-ui-align/scripts/tests/group_pack_evidence.test.mjs +95 -0
  419. package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +155 -1
  420. package/skills/a2h-batch-ui-align/scripts/tests/icon_coverage.test.mjs +314 -0
  421. package/skills/a2h-batch-ui-align/scripts/tests/list_existing.test.mjs +157 -0
  422. package/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +5 -3
  423. package/skills/a2h-batch-ui-align/scripts/tests/page_gap.test.mjs +115 -0
  424. package/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +33 -2
  425. package/skills/a2h-batch-ui-align/scripts/tests/progress_identity.test.mjs +174 -0
  426. package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +5 -0
  427. package/skills/a2h-batch-ui-align/scripts/tests/shell_requests.test.mjs +158 -0
  428. package/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +12 -0
  429. package/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +8 -0
  430. package/skills/a2h-coldstart-smoke-gate/SKILL.md +7 -4
  431. package/skills/a2h-dashboard-render/test/test_device_locale_dialogs.mjs +17 -0
  432. package/skills/a2h-module-semantic-docs/SKILL.md +51 -13
  433. package/skills/a2h-module-semantic-docs/scripts/scan_modules.mjs +66 -11
  434. package/skills/a2h-module-semantic-docs/test/test_incremental_fingerprint.mjs +94 -0
  435. package/skills/a2h-page-specgen/SKILL.md +124 -20
  436. package/skills/a2h-page-specgen/references/behavior-ledger.md +1170 -0
  437. package/skills/a2h-page-specgen/references/body-language.md +11 -9
  438. package/skills/a2h-page-specgen/references/evidence.md +35 -0
  439. package/skills/a2h-page-specgen/references/execution-model.md +135 -26
  440. package/skills/a2h-page-specgen/references/footprint-and-grouping.md +20 -15
  441. package/skills/a2h-page-specgen/references/gates.md +120 -52
  442. package/skills/a2h-page-specgen/references/page-inventory.md +69 -22
  443. package/skills/a2h-page-specgen/references/scenario-authoring.md +272 -0
  444. package/skills/a2h-page-specgen/references/spec-example.md +312 -0
  445. package/skills/a2h-page-specgen/references/spec-template.md +112 -109
  446. package/skills/a2h-page-specgen/scripts/behavior-audit.mjs +2436 -0
  447. package/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +1833 -0
  448. package/skills/a2h-page-specgen/scripts/behavior-model.mjs +181 -0
  449. package/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +1205 -0
  450. package/skills/a2h-page-specgen/scripts/dispatch.mjs +8 -5
  451. package/skills/a2h-page-specgen/scripts/entry-evidence.mjs +1123 -0
  452. package/skills/a2h-page-specgen/scripts/facts-build.mjs +170 -61
  453. package/skills/a2h-page-specgen/scripts/finalize.mjs +466 -63
  454. package/skills/a2h-page-specgen/scripts/footprint.mjs +302 -180
  455. package/skills/a2h-page-specgen/scripts/gate.mjs +372 -82
  456. package/skills/a2h-page-specgen/scripts/interactions.mjs +215 -8
  457. package/skills/a2h-page-specgen/scripts/inventory.mjs +102 -0
  458. package/skills/a2h-page-specgen/scripts/lib/contracts.mjs +116 -216
  459. package/skills/a2h-page-specgen/scripts/lib/draft-store.mjs +105 -13
  460. package/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +235 -0
  461. package/skills/a2h-page-specgen/scripts/lib/hg.mjs +520 -12
  462. package/skills/a2h-page-specgen/scripts/lib/homegraph-process.mjs +102 -0
  463. package/skills/a2h-page-specgen/scripts/lib/homegraph-query.mjs +161 -0
  464. package/skills/a2h-page-specgen/scripts/lib/ledger.mjs +129 -6
  465. package/skills/a2h-page-specgen/scripts/lib/main-module.mjs +24 -0
  466. package/skills/a2h-page-specgen/scripts/lib/operation-reviews.mjs +913 -0
  467. package/skills/a2h-page-specgen/scripts/lib/prose.mjs +12 -8
  468. package/skills/a2h-page-specgen/scripts/lib/recovery-policy.mjs +28 -0
  469. package/skills/a2h-page-specgen/scripts/lib/scope.mjs +355 -0
  470. package/skills/a2h-page-specgen/scripts/lib/semantic-detail.mjs +353 -0
  471. package/skills/a2h-page-specgen/scripts/lib/source-text.mjs +106 -0
  472. package/skills/a2h-page-specgen/scripts/operation-evidence.mjs +1542 -0
  473. package/skills/a2h-page-specgen/scripts/prepare.mjs +470 -122
  474. package/skills/a2h-page-specgen/scripts/render.mjs +11 -34
  475. package/skills/a2h-page-specgen/scripts/report.mjs +339 -6
  476. package/skills/a2h-page-specgen/scripts/submission.mjs +253 -88
  477. package/skills/a2h-page-specgen/scripts/submit.mjs +12 -6
  478. package/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +288 -7
  479. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.java +15 -0
  480. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.json +26 -0
  481. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +347 -0
  482. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +298 -0
  483. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.java +36 -0
  484. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.json +43 -0
  485. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +347 -0
  486. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +298 -0
  487. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +2694 -0
  488. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +726 -0
  489. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +108 -0
  490. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +347 -0
  491. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.review.md +65 -0
  492. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +265 -0
  493. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.java +47 -0
  494. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.json +54 -0
  495. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +347 -0
  496. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +298 -0
  497. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/branch-checklist.md +32 -0
  498. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/gate-results.json +22 -0
  499. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/manifest.json +111 -0
  500. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/portability.test.mjs +141 -0
  501. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/review.md +22 -0
  502. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +515 -0
  503. package/skills/a2h-page-specgen/scripts/test/android-entry-evidence.test.mjs +585 -0
  504. package/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +755 -0
  505. package/skills/a2h-page-specgen/scripts/test/behavior-audit-group.test.mjs +543 -0
  506. package/skills/a2h-page-specgen/scripts/test/behavior-audit-post.test.mjs +652 -0
  507. package/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +1231 -0
  508. package/skills/a2h-page-specgen/scripts/test/behavior-component-gate.test.mjs +494 -0
  509. package/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +1513 -0
  510. package/skills/a2h-page-specgen/scripts/test/behavior-finalize.test.mjs +758 -0
  511. package/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +623 -0
  512. package/skills/a2h-page-specgen/scripts/test/behavior-model.test.mjs +116 -0
  513. package/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +795 -0
  514. package/skills/a2h-page-specgen/scripts/test/behavior-regression.test.mjs +883 -0
  515. package/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +135 -137
  516. package/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +475 -0
  517. package/skills/a2h-page-specgen/scripts/test/facts.test.mjs +40 -1
  518. package/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +178 -9
  519. package/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +19 -1
  520. package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanels.java +14 -0
  521. package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanels.kt +14 -0
  522. package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanelsKotlinForms.kt +12 -0
  523. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ChildContent.java +6 -0
  524. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ComposeLifecycle.kt +26 -0
  525. package/skills/a2h-page-specgen/scripts/test/fixtures/src/LifecycleCallAndOverride.java +10 -0
  526. package/skills/a2h-page-specgen/scripts/test/fixtures/src/LifecycleHooks.kt +31 -0
  527. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ManyLifecycleHooks.kt +12 -0
  528. package/skills/a2h-page-specgen/scripts/test/fixtures/src/RefreshOnResume.java +7 -0
  529. package/skills/a2h-page-specgen/scripts/test/fixtures/src/RefreshResultNoise.kt +36 -0
  530. package/skills/a2h-page-specgen/scripts/test/fixtures/src/SelectionView.java +5 -0
  531. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ShowPage.vue +12 -0
  532. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ThirdPartyLifecycle.kt +25 -0
  533. package/skills/a2h-page-specgen/scripts/test/fixtures/src/fragment_detail.xml +1 -0
  534. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/App.vue +1 -0
  535. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-conflict-record.json +17 -0
  536. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-record.json +17 -0
  537. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/manifest.json +3 -0
  538. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages/list/index.vue +80 -0
  539. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages.json +14 -0
  540. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/source-record.json +15 -0
  541. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/components/RefreshPanel.vue +15 -0
  542. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/composables/useRefresh.ts +50 -0
  543. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/pages/help/index.vue +9 -0
  544. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/state/store.ts +4 -0
  545. package/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +459 -188
  546. package/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +89 -0
  547. package/skills/a2h-page-specgen/scripts/test/gate.test.mjs +869 -13
  548. package/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +332 -0
  549. package/skills/a2h-page-specgen/scripts/test/helpers.mjs +139 -5
  550. package/skills/a2h-page-specgen/scripts/test/hg.test.mjs +378 -0
  551. package/skills/a2h-page-specgen/scripts/test/homegraph-process-fixture.mjs +130 -0
  552. package/skills/a2h-page-specgen/scripts/test/homegraph-query.test.mjs +288 -0
  553. package/skills/a2h-page-specgen/scripts/test/integration.test.mjs +69 -2
  554. package/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +267 -2
  555. package/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +111 -0
  556. package/skills/a2h-page-specgen/scripts/test/keys.test.mjs +10 -8
  557. package/skills/a2h-page-specgen/scripts/test/ledger-lock.test.mjs +77 -0
  558. package/skills/a2h-page-specgen/scripts/test/ledger.test.mjs +1 -1
  559. package/skills/a2h-page-specgen/scripts/test/main-module.test.mjs +43 -0
  560. package/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +1002 -0
  561. package/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +143 -51
  562. package/skills/a2h-page-specgen/scripts/test/prepare-homegraph-reproduction.mjs +365 -0
  563. package/skills/a2h-page-specgen/scripts/test/prepare-homegraph.test.mjs +569 -0
  564. package/skills/a2h-page-specgen/scripts/test/prepare-index.test.mjs +42 -2
  565. package/skills/a2h-page-specgen/scripts/test/prepare-pipeline.test.mjs +326 -0
  566. package/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +171 -3
  567. package/skills/a2h-page-specgen/scripts/test/prose.test.mjs +13 -5
  568. package/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +365 -1
  569. package/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +102 -7
  570. package/skills/a2h-page-specgen/scripts/test/recovery-policy.test.mjs +14 -0
  571. package/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +1308 -72
  572. package/skills/a2h-page-specgen/scripts/test/render.test.mjs +85 -42
  573. package/skills/a2h-page-specgen/scripts/test/report.test.mjs +296 -0
  574. package/skills/a2h-page-specgen/scripts/test/review-followup.test.mjs +467 -0
  575. package/skills/a2h-page-specgen/scripts/test/scope.test.mjs +292 -0
  576. package/skills/a2h-page-specgen/scripts/test/semantic-detail.test.mjs +949 -0
  577. package/skills/a2h-page-specgen/scripts/test/submit.test.mjs +645 -115
  578. package/skills/a2h-page-specgen/scripts/test/uniapp-operation-evidence.test.mjs +639 -0
  579. package/skills/a2h-page-specgen/scripts/test/utg-footprint-contract.test.mjs +274 -0
  580. package/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +101 -65
  581. package/skills/a2h-page-specgen/scripts/test/waker.test.mjs +88 -74
  582. package/skills/a2h-page-specgen/scripts/test/watchdog.test.mjs +30 -1
  583. package/skills/a2h-page-specgen/scripts/waker.mjs +79 -12
  584. package/skills/a2h-page-specgen/scripts/watchdog.mjs +18 -17
  585. package/skills/a2h-resource-convert/SKILL.md +9 -1
  586. package/skills/a2h-resource-convert/references/code-vector-icon-rules.md +2 -1
  587. package/skills/a2h-resource-convert/references/incremental-page-migration.md +23 -2
  588. package/skills/a2h-resource-convert/references/lottie-conversion-rules.md +7 -0
  589. package/skills/a2h-resource-convert/references/step4-resource-types.md +2 -0
  590. package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +67 -3
  591. package/skills/a2h-resource-convert/scripts/a2h_resource_incremental.ts +68 -0
  592. package/skills/a2h-resource-convert/scripts/code_vector_icons.ts +45 -3
  593. package/skills/a2h-resource-convert/scripts/extract_page_resources.ts +42 -5
  594. package/skills/a2h-resource-convert/scripts/lottie_hosts.ts +415 -0
  595. package/skills/a2h-resource-convert/scripts/lottie_refs.ts +398 -0
  596. package/skills/a2h-resource-convert/scripts/merge_mapping.ts +316 -0
  597. package/skills/a2h-resource-convert/scripts/svg_fidelity_check.ts +2 -1
  598. package/skills/a2h-resource-convert/scripts/tests/code_vector_guard.test.mjs +75 -0
  599. package/skills/a2h-resource-convert/scripts/tests/lottie_hosts.test.mjs +222 -0
  600. package/skills/a2h-resource-convert/scripts/tests/lottie_incremental.test.mjs +178 -0
  601. package/skills/a2h-resource-convert/scripts/tests/merge_mapping.test.mjs +201 -0
  602. package/skills/a2h-spec-design-pipeline/SKILL.md +48 -72
  603. package/skills/a2h-spec-design-pipeline/references/coding-loop.md +123 -37
  604. package/skills/a2h-spec-design-pipeline/references/execution-model.md +40 -8
  605. package/skills/a2h-spec-design-pipeline/references/final-report-template.md +5 -4
  606. package/skills/a2h-spec-design-pipeline/references/homegraph-cli.md +229 -0
  607. package/skills/a2h-spec-design-pipeline/references/initialization.md +37 -5
  608. package/skills/a2h-spec-design-pipeline/references/merge-queue.md +126 -23
  609. package/skills/a2h-spec-design-pipeline/references/permission-index.json +206 -0
  610. package/skills/a2h-spec-design-pipeline/references/post-loop.md +23 -0
  611. package/skills/a2h-spec-design-pipeline/references/resolver-prompt.md +7 -1
  612. package/skills/a2h-spec-design-pipeline/references/review-loop.md +46 -0
  613. package/skills/a2h-spec-design-pipeline/references/scripts.md +38 -14
  614. package/skills/a2h-spec-design-pipeline/references/shared-layer.md +127 -4
  615. package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +90 -24
  616. package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +65 -34
  617. package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleMeta.json +11 -1
  618. package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleSet.json +10 -2
  619. package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/README.md +47 -0
  620. package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-param-contract.json +31 -0
  621. package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-permission-map.json +698 -0
  622. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-cn.md +96 -0
  623. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-en.md +103 -0
  624. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-cn.md +124 -0
  625. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-en.md +138 -0
  626. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-cn.md +106 -0
  627. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-en.md +113 -0
  628. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ApiPermissionDeclaredCheck.js +705 -0
  629. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ArkUIRuntimePitfallCheck.js +1063 -0
  630. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/PlatformApiContractCheck.js +473 -0
  631. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/{HttpExtraDataEmptyStringCheck.js → platform/ExtraDataSubCheck.js} +27 -30
  632. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/index.js +4 -2
  633. package/skills/a2h-spec-design-pipeline/rules/migration-rules/package.json +3 -2
  634. package/skills/a2h-spec-design-pipeline/scripts/check_design_map.ts +108 -0
  635. package/skills/a2h-spec-design-pipeline/scripts/check_permissions.ts +420 -0
  636. package/skills/a2h-spec-design-pipeline/scripts/check_review_evidence.ts +45 -0
  637. package/skills/a2h-spec-design-pipeline/scripts/dispatch/evidence.mjs +55 -2
  638. package/skills/a2h-spec-design-pipeline/scripts/dispatch/fold.mjs +138 -7
  639. package/skills/a2h-spec-design-pipeline/scripts/dispatch/landing.mjs +10 -13
  640. package/skills/a2h-spec-design-pipeline/scripts/dispatch/progress.mjs +21 -2
  641. package/skills/a2h-spec-design-pipeline/scripts/dispatch/reconcile.mjs +63 -4
  642. package/skills/a2h-spec-design-pipeline/scripts/dispatch/wait.mjs +32 -2
  643. package/skills/a2h-spec-design-pipeline/scripts/dispatch.mjs +109 -13
  644. package/skills/a2h-spec-design-pipeline/scripts/ensure_index.ts +866 -0
  645. package/skills/a2h-spec-design-pipeline/scripts/fixtures/homecheck-stub.cjs +47 -0
  646. package/skills/a2h-spec-design-pipeline/scripts/homecheck_scan.ts +12 -17
  647. package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +172 -7
  648. package/skills/a2h-spec-design-pipeline/scripts/resolver_prompt.ts +36 -16
  649. package/skills/a2h-spec-design-pipeline/scripts/sync_permission_index.ts +340 -0
  650. package/skills/a2h-spec-design-pipeline/scripts/test_api_permission_declared.ts +281 -0
  651. package/skills/a2h-spec-design-pipeline/scripts/test_arkui_runtime_pitfall.ts +690 -0
  652. package/skills/a2h-spec-design-pipeline/scripts/test_check_design_map.ts +46 -0
  653. package/skills/a2h-spec-design-pipeline/scripts/test_check_permissions.ts +201 -0
  654. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_commands.mjs +27 -3
  655. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_e2e.mjs +20 -7
  656. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_evidence.mjs +143 -13
  657. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_fold.mjs +168 -7
  658. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_landing.mjs +139 -2
  659. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_progress.mjs +25 -0
  660. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_reconcile.mjs +92 -4
  661. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_wait.mjs +37 -0
  662. package/skills/a2h-spec-design-pipeline/scripts/test_ensure_index.ts +572 -0
  663. package/skills/a2h-spec-design-pipeline/scripts/test_ensure_index_real.ts +56 -0
  664. package/skills/a2h-spec-design-pipeline/scripts/test_homecheck_scan.ts +4 -5
  665. package/skills/a2h-spec-design-pipeline/scripts/test_homegraph_docs.ts +217 -0
  666. package/skills/a2h-spec-design-pipeline/scripts/test_permission_index.ts +214 -0
  667. package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +155 -0
  668. package/skills/a2h-spec-design-pipeline/scripts/test_platform_api_contract.ts +308 -0
  669. package/skills/a2h-spec-design-pipeline/scripts/test_resolver_prompt.ts +59 -8
  670. package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_docs.ts +44 -0
  671. package/skills/a2h-spec-generate/SKILL.md +2 -2
  672. package/skills/a2h-spec-generate/references/specs.schema.json +24 -11
  673. package/skills/a2h-spec-generate/scripts/ensure-index.mjs +1 -2
  674. package/skills/a2h-spec-generate/test/ensure-index.test.mjs +1 -2
  675. package/skills/a2h-utg-explorer/SKILL.md +9 -3
  676. package/skills/a2h-utg-explorer/references/architecture.md +3 -0
  677. package/skills/a2h-utg-explorer/scripts/audit.mjs +8 -2
  678. package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +56 -5
  679. package/skills/a2h-utg-explorer/scripts/direct_launch.mjs +47 -2
  680. package/skills/a2h-utg-explorer/scripts/hybrid_route_cdp.mjs +376 -0
  681. package/skills/a2h-utg-explorer/scripts/plan.mjs +8 -0
  682. package/skills/a2h-utg-explorer/scripts/recover_d.mjs +288 -21
  683. package/skills/a2h-utg-explorer/scripts/report.mjs +89 -0
  684. package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +67 -10
  685. package/skills/a2h-utg-explorer/scripts/run_device.mjs +10 -2
  686. package/skills/a2h-utg-explorer/scripts/seed_recipes.mjs +426 -0
  687. package/skills/a2h-utg-explorer/scripts/tests/blank_wait.test.mjs +126 -0
  688. package/skills/a2h-utg-explorer/scripts/tests/default_override.test.mjs +109 -0
  689. package/skills/a2h-utg-explorer/scripts/tests/device_locale_dialogs.test.mjs +29 -0
  690. package/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +254 -0
  691. package/skills/a2h-utg-explorer/scripts/tests/foreground_spelling.test.mjs +155 -0
  692. package/skills/a2h-utg-explorer/scripts/tests/hybrid_route.test.mjs +120 -0
  693. package/skills/a2h-utg-explorer/scripts/tests/hybrid_route_identity.test.mjs +146 -0
  694. package/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +122 -0
  695. package/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +15 -0
  696. package/skills/a2h-utg-explorer/scripts/tests/pr169_review_fixes.test.mjs +218 -0
  697. package/skills/a2h-utg-explorer/scripts/tests/pr191_review_fixes.test.mjs +292 -0
  698. package/skills/a2h-utg-explorer/scripts/tests/recover_d_grounding.test.mjs +164 -0
  699. package/skills/a2h-utg-explorer/scripts/tests/replay_reroute.test.mjs +143 -0
  700. package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +6 -2
  701. package/skills/a2h-utg-explorer/scripts/tests/run_cycle_follow.test.mjs +35 -0
  702. package/skills/a2h-utg-explorer/scripts/tests/seed_recipes.test.mjs +261 -0
  703. package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +122 -4
  704. package/skills/a2h-utg-explorer/scripts/utg_explorer/diagnostics.mjs +196 -0
  705. package/skills/a2h-utg-explorer/scripts/utg_explorer/hybrid_route.mjs +140 -0
  706. package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +138 -4
  707. package/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +47 -0
  708. package/skills/a2h-utg-explorer/scripts/utg_explorer/strings.mjs +22 -13
  709. package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +718 -42
  710. package/skills/a2h-utg-explorer/scripts/variant.mjs +57 -11
  711. package/skills/a2h-utg-static/SKILL.md +6 -2
  712. package/skills/a2h-utg-static/scripts/assemble.mjs +65 -0
  713. package/skills/a2h-utg-static/scripts/click_paths.mjs +116 -5
  714. package/skills/a2h-utg-static/scripts/compose_body_text.mjs +3 -3
  715. package/skills/a2h-utg-static/scripts/compose_overlay.mjs +8 -1
  716. package/skills/a2h-utg-static/scripts/compose_titles.mjs +5 -5
  717. package/skills/a2h-utg-static/scripts/compose_widgets.mjs +4 -4
  718. package/skills/a2h-utg-static/scripts/data_model.mjs +590 -0
  719. package/skills/a2h-utg-static/scripts/data_producers.mjs +431 -0
  720. package/skills/a2h-utg-static/scripts/hybrid_scope.mjs +46 -1
  721. package/skills/a2h-utg-static/scripts/label_resolve.mjs +49 -4
  722. package/skills/a2h-utg-static/scripts/lib/hybrid-provenance.mjs +201 -0
  723. package/skills/a2h-utg-static/scripts/lib/uniapp-routes.mjs +195 -0
  724. package/skills/a2h-utg-static/scripts/menu_nav.mjs +1 -1
  725. package/skills/a2h-utg-static/scripts/nl_hints.mjs +32 -4
  726. package/skills/a2h-utg-static/scripts/run_pipeline.mjs +86 -4
  727. package/skills/a2h-utg-static/scripts/tests/test_carry_answers.mjs +30 -0
  728. package/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +18 -0
  729. package/skills/a2h-utg-static/scripts/tests/test_data_model.mjs +120 -0
  730. package/skills/a2h-utg-static/scripts/tests/test_data_producers.mjs +114 -0
  731. package/skills/a2h-utg-static/scripts/tests/test_guard_kinds_locale.mjs +12 -0
  732. package/skills/a2h-utg-static/scripts/tests/test_hybrid_provenance.mjs +150 -0
  733. package/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +165 -1
  734. package/skills/a2h-utg-static/scripts/tests/test_library_activity.mjs +45 -0
  735. package/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +35 -1
  736. package/skills/a2h-utg-static/scripts/tests/test_nl_hints_default_override.mjs +50 -0
  737. package/skills/a2h-utg-static/scripts/tests/test_pipeline_llm_phases.mjs +21 -0
  738. package/skills/a2h-utg-static/scripts/tests/test_pr169_review_fixes.mjs +172 -0
  739. package/skills/a2h-utg-static/scripts/tests/test_redirect_path_cost.mjs +136 -0
  740. package/skills/a2h-utg-static/scripts/tests/test_uniapp_route_jump.mjs +175 -0
  741. package/skills/a2h-utg-static/scripts/tests/test_uniapp_routes.mjs +161 -0
  742. package/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +99 -0
  743. package/skills/a2h-utg-static/scripts/tests/test_utg_specgen_boundary.mjs +45 -0
  744. package/skills/a2h-utg-static/scripts/tests/test_vm_nav_helper_navigate.mjs +21 -0
  745. package/skills/a2h-utg-static/scripts/uniapp_nav.mjs +112 -69
  746. package/skills/a2h-utg-static/scripts/vm_nav.mjs +9 -1
  747. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/http-extra-data-empty-string-cn.md +0 -55
  748. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/http-extra-data-empty-string-en.md +0 -60
  749. package/skills/a2h-spec-design-pipeline/scripts/ensure_wt_index.ts +0 -948
  750. package/skills/a2h-spec-design-pipeline/scripts/test_ensure_wt_index.ts +0 -1014
@@ -5,7 +5,8 @@
5
5
 
6
6
  | Rule | Basis (where the original text lives) | In one sentence |
7
7
  |---|---|---|
8
- | `fullsize-container` (CAND) | `conversion-procedure.md` Phase 5 "Interaction Reachability Evidence"; the fill-container row of "Common Mistranslations" in `cards/geometry.md` | A fill container takes part in hit testing by default and swallows the clicks beneath it even when transparent. Label each one as interactive, or set `.hitTestBehavior(HitTestMode.None)`; this is not a defect list, so do not change code just because something is listed |
8
+ | `stack-swallows-taps` (GATE) | `conversion-procedure.md` Phase 5 "Interaction Reachability Evidence"; API reference, enums, HitTestMode; FAQ faqs-arkui-549 | A filling layer drawn later in a Stack, taking no input itself or in its subtree, covers clickable earlier siblings: Default blocks the siblings, with or without onClick. Add `.hitTestBehavior(HitTestMode.None)` |
9
+ | `fullsize-container` (GATE/CAND) | same | A filling node the checker cannot prove, from the layer structure, leaves taps alone. A GATE closes only by fixing the code or by the checker-verified marker `// HIT-TEST: blocks-input:` / `covers-below:`, never by EVIDENCE text; a CAND is what the checker cannot see (components outside the scan, zIndex, no call site) |
9
10
  | `a11y-content-desc-unobservable` (GATE/CAND) | this entry in `references/checker-rules.md` | The `uitest` view tree exports only `accessibilityDescription`. Icon-only/glyph-only controls get `.accessibilityDescription(X)`, with the same value as the Android `content-desc` |
10
11
  | `orphan-component` (GATE) | `step5-convert.md` Step 5.5 "Gate" and the wiring of self-contained components | An `export struct` that is never imported or instantiated will never render: import and instantiate it in the host page, and wire the trigger to its visibility switch |
11
12
  | `converted-page-unreachable` (GATE) | `step5-convert.md` Step 5.5 "wire navigation to real pages" | Following each page's `navigates_to` in `conversion_set.json`, write a real `router.pushUrl` or component switch for every edge pointing to a converted page, and register it in `main_pages.json` |
@@ -5,9 +5,9 @@
5
5
 
6
6
  **String resource values — `$r()` is not a string**: `$r('app.string.x')` returns a `Resource` object (a resource token) that does not override `toString()`. Android `getString(R.string.x)` / Compose `stringResource(R.string.x)` return a real `String` and **must not** be translated to `$r('app.string.x').toString()`, `String($r(…))`, template interpolation or `+` concatenation with a string — all of these yield the literal `"[object Object]"`, with no error at compile time or run time. For display only, hand the `Resource` straight to `Text()` / `promptAction.showToast({ message })` etc. (they accept `Resource`); with arguments use `$r('app.string.x', arg)`; when you must concatenate or use it in logic, get the real string first: `this.getUIContext().getHostContext()!.resourceManager.getStringSync($r('app.string.x').id[, arg])` (the `getStringSync(resource)` overload is deprecated since API 20; pass `.id`). A ViewModel has no UIContext; the page passes in the context or the already-resolved string. GATE `resource-as-string`.
7
7
 
8
- **Colours the theme changes — resources, not literals**: read the Theme mechanism in `Project Fact (Shell Contract)` first. When `theme.mode` is not `static` (Android has `darkColorScheme` / `isSystemInDarkTheme` / night mode / `values-night`, or the colour scheme takes `primary` from a variable), every colour the Android theme changes is `$r('app.color.<name>')`: the light value in `base/element/color.json`, the dark value in `dark/element/color.json` under the same name, citing the `file:line` of the Android dark scheme (captures show the light scheme only; dark values never come from screenshots). The reason: `ApplicationContext.setColorMode` only switches resource-qualifier directories (official "Dark mode adaptation"), so a `'#FFFFFF'` string or a `static readonly` hex constant never changes. When Compose keeps the palette in Kotlin constants, resource conversion produces none of these colours, and this skill's colour-token layer creates them: token members return `$r(...)`, not hex strings. `bindSheet` takes `backgroundColor` explicitly (default `Color.White`). A runtime theme colour (`hits_runtime` non-empty) is read through a getter of one observable theme state; UI groups only read it and the logic stage wires its persistence. A colour with the same value in both schemes may stay a literal under `// THEME-FIXED: <both scheme lines>`. GATE `theme-color-literal` / `theme-sheet-background-default`.
8
+ **Colours the theme changes — resources, not literals**: read the Theme mechanism in `Project Fact (Shell Contract)` first. When `theme.mode` is not `static` (Android has `darkColorScheme` / `isSystemInDarkTheme` / night mode / `values-night`, or the colour scheme takes `primary` from a variable), every colour the Android theme changes is `$r('app.color.<name>')`: the light value in `base/element/color.json`, the dark value in `dark/element/color.json` under the same name, citing the `file:line` of the Android dark scheme (captures show the light scheme only; dark values never come from screenshots). The reason: `ApplicationContext.setColorMode` only switches resource-qualifier directories (official "Dark mode adaptation"), so a `'#FFFFFF'` string or a `static readonly` hex constant never changes. When Compose keeps the palette in Kotlin constants, resource conversion produces none of these colours, and this skill's colour-token layer creates them: token members return `$r(...)`, not hex strings. `bindSheet` takes `backgroundColor` explicitly (default `Color.White`). Runtime theme colours (`hits_runtime` non-empty): the contract's `theme.runtime_slots` lists the slots the user can pick (e.g. `primary`); these slots are **always** read through a getter of the observable theme state in `theme.state_module` and are **never** written as `$r('app.color.<slot>')`: that is a compile-time resource and does not follow the colour the user picks (GATE `theme-runtime-color-static`; where the colour really stays the brand colour, write `// THEME-STATIC: <Android file:line>`). The entry group creates `state_module` (initial values are the Android default colours); every other group only imports it and never writes a theme store of its own; the logic stage wires the persistence. A colour with the same value in both schemes may stay a literal under `// THEME-FIXED: <both scheme lines>`. GATE `theme-color-literal` / `theme-sheet-background-default` / `theme-runtime-color-static`.
9
9
 
10
- **Color arithmetic — do not hand-write blending functions**: Android's `ColorUtils.blendARGB` / `setAlphaComponent` / `Color.parseColor`, and Compose's `Color.copy(alpha = x)` / `Color(0x…).copy(alpha = …)` / `colorResource(…).copy(alpha = …)`, always go through this skill's `assets/ColorUtils.ets` (`copy(alpha = x)` = `setAlphaComponent(c, x)`). ArkUI color strings are `#AARRGGBB`, **alpha first**; appending the two alpha digits **after** `#RRGGBB` gives `#RRGGBBAA`, which is valid and raises no error but is read as a different color (`'#000000' + '1A'` = `#0000001A` → alpha 00, fully transparent; `'#FFFFFF1A'` → opaque yellow). GATE `color-alpha-appended`. When the project has no `<module>/src/main/ets/common/ColorUtils.ets`, **copy it over verbatim** — do not rewrite it or start another one. It has been tested bit-for-bit against androidx (including `(int)` truncation: `blend(#FFFFFF, #E5E5EA, .62)` = `#EEEEF1`; rounding would give `#EFEFF2`). For blends whose inputs are all fixed Palette values, prefer **precomputing them as literal constants** with the source formula in a comment. "Formula substituted back, consistent" in EVIDENCE must be **actually run** output (e.g. `node -e`); mental arithmetic is not accepted.
10
+ **Color arithmetic — do not hand-write blending functions**: Android's `ColorUtils.blendARGB` / `setAlphaComponent` / `Color.parseColor`, and Compose's `Color.copy(alpha = x)` / `Color(0x…).copy(alpha = …)` / `colorResource(…).copy(alpha = …)`, always go through this skill's `assets/ColorUtils.ets`. **Do not mix the two alpha scales**: Compose `copy(alpha = 0.5f)` is 0..1 and maps to `withAlpha(c, 0.5)`; Android `ColorUtils.setAlphaComponent(c, 128)` is 0..255 and maps to `setAlphaComponent(c, 128)`. Passing Compose's `0.5` to `setAlphaComponent` yields an alpha byte of only `00`/`01`, an almost fully transparent color (a disabled button disappears), GATE `alpha-scale-mismatch`; the asset version rounds a computed non-integer alpha (such as `0.3 * 255`) to the nearest byte instead of throwing, and throws only outside 0..255. ArkUI color strings are `#AARRGGBB`, **alpha first**; appending the two alpha digits **after** `#RRGGBB` gives `#RRGGBBAA`, which is valid and raises no error but is read as a different color (`'#000000' + '1A'` = `#0000001A` → alpha 00, fully transparent; `'#FFFFFF1A'` → opaque yellow). GATE `color-alpha-appended`. When the project has no `<module>/src/main/ets/common/ColorUtils.ets`, **copy it over verbatim** — do not rewrite it or start another one. It has been tested bit-for-bit against androidx (including `(int)` truncation: `blend(#FFFFFF, #E5E5EA, .62)` = `#EEEEF1`; rounding would give `#EFEFF2`). For blends whose inputs are all fixed Palette values, prefer **precomputing them as literal constants** with the source formula in a comment. "Formula substituted back, consistent" in EVIDENCE must be **actually run** output (e.g. `node -e`); mental arithmetic is not accepted.
11
11
 
12
12
  **Icon source tiers — decide icon by icon and label the tier in the report**:
13
13
 
@@ -29,7 +29,7 @@ The order is fixed as L1 → L2 → L2.5 → L3; **do not infer on your own what
29
29
  **The three forbidden downgrades** (compile cleanly, pass static reference checks, but are visually wrong):
30
30
 
31
31
  1. **emoji / Unicode / text glyphs in place of icons** — things like `←` `✓` `★` `🔍` `≡`.
32
- 2. **Substituting an existing drawable with mismatched semantics** — e.g. using `ic_placeholder` as the settings icon, or an arrow icon as the check mark. "The name exists and compiles" is not a reason to choose it.
32
+ 2. **Substituting an existing drawable with mismatched semantics** — e.g. using `ic_placeholder` as the settings icon, or an arrow icon as the check mark. "The name exists and compiles" is not a reason to choose it. **Replacing a Lottie animation with a ready-made static image picked by name or meaning is this case too** (the only exception is a `lottie_fallbackRes` the Android source declares): when the source plays Lottie, integrate `@ohos/lottie`, or register L3 degraded and write `// LOTTIE-DEGRADED: <reason>`. GATE `lottie-host-not-integrated`.
33
33
  3. **Hand-writing SVG paths from memory** — hand-written output almost always carries the bounding-box path of Material web SVGs, which `.fillColor()` paints into a solid block covering the whole icon (see Phase 5 "Misused Resource References").
34
34
 
35
35
  **An unregistered L3 is a failure.** Better to explicitly register a "missing icon" than to silently swap in a wrong one.
@@ -61,7 +61,7 @@ The order is fixed as L1 → L2 → L2.5 → L3; **do not infer on your own what
61
61
  Alternatives: rewrite the stroked geometry as equivalent fill geometry (an even-width ring = outer circle + inner circle in the same path + `fill-rule="evenodd"`); switch to a native target component; or prepare two pre-colored assets per state.
62
62
  **Follow tint checks to the call site**: when the argument of `Image(icon)` is a `@Builder`/method parameter, the file has no `$r` literal alongside `.fillColor()`, so you must go to each call site, take the media actually passed in, and open each one to check. The checker follows call sites; when it cannot, it reports CAND `fillcolor-media-unresolved`, which must not be treated as a pass.
63
63
 
64
- - **Whether there is a `fill="none"` bounding-box path covering the viewBox** (like `<path d="M0 0h24v24H0z" fill="none"/>`). `fillColor` overlays **all** geometry and `fill="none"` cannot stop it — that path gets painted into a solid block covering the whole icon. An Android `<vector>` source **never** produces this path (it is how Material web SVGs are written), so its presence proves the SVG was hand-written from memory and it should be reconverted from `res/drawable`.
64
+ - **Whether there is a `fill="none"` bounding-box path covering the viewBox** (like `<path d="M0 0h24v24H0z" fill="none"/>`, or `<rect fill="none" width="24" height="24"/>` in older Material files; both spellings behave the same; a full-size rect with a visible `stroke` is a border and does not count). `fillColor` overlays **all** geometry and `fill="none"` cannot stop it — that path gets painted into a solid block covering the whole icon. An Android `<vector>` source **never** produces this path (it is how Material web SVGs are written), so its presence proves the SVG was hand-written from memory and it should be reconverted from `res/drawable`.
65
65
  - **Whether `fill`/`stroke` retain unresolved `?attr/...` theme attributes**. SVG does not understand Android theme attributes, so that geometry gets no color (white box). Go back to the Android source and resolve it to the concrete color in the theme.
66
66
  - **Whether it is a placeholder SVG** (grey rectangle + resource name text). Those are generated by the resource conversion phase to keep the build compiling; they are not real icons and render as grey boxes in the UI.
67
67
  - **Whether it is valid XML — are there duplicate attributes on the same element?** Duplicate attributes are a **fatal error** under the XML spec; the parser rejects the whole document, so the icon **draws not a single pixel** (blank, rather than drawn wrong). This item differs in nature from the others: all the others "assume the file is a valid SVG, then check the semantics", whereas this one checks "does the file even parse" — no amount of semantic checking covers it. The known source is the converter first hard-coding `fill-opacity="1"` on every path and then appending Android's `fillAlpha` as a **second** `fill-opacity`. Fix: go back to the Android `<vector>` source to check the attribute and keep only the correct value (when the converter writes the default first and the real value second, keep the latter). Mechanical backstop: GATE rule `media-duplicate-attribute`.
@@ -79,9 +79,11 @@ The order is fixed as L1 → L2 → L2.5 → L3; **do not infer on your own what
79
79
  | The scope/granularity of a value-selection rule changed | A constant hoisted out of the loop on the source side becomes computed per item (or the reverse) | Mappings and `$r()` are all correct, yet the rendered variants are systematically wrong | → Phase 4.2 "Data-driven visible variants": trace to the call site where the value is produced and passed in |
80
80
  | **`.fillColor()` tinting an SVG colored by `stroke`** | The SVG is written as `fill="none"` per the rule and tinting intuitively uses `fillColor`; both sides are right | The color **has no effect at all** (`renderMode(Template)` doesn't help either), often showing only in the selected state | → the tint-channel sub-item of Phase 5 "Misused Resource References": prefer `.supportSvg2(true)` + `.colorFilter(...)`; follow `Image(param)` to the call site. GATE `fillcolor-on-stroke-svg` |
81
81
  | **`stringResource()` translated as `$r(…).toString()`** | Android gets a String, so `.toString()` looks like merely making it explicit | `Resource` has no `toString()`; the UI shows `[object Object]` with zero errors | For display pass the `Resource` directly; for concatenation use `resourceManager.getStringSync($r(…).id)`; GATE `resource-as-string` |
82
+ | **A Compose 0..1 alpha passed to `setAlphaComponent`** | The value of `copy(alpha = 0.5f)` copied as is, without noticing the function is Android's 0..255 scale | `0.5` yields an alpha of only `00`/`01`: the color is almost fully transparent, a disabled button is invisible (the login button "appears only after typing"), with no error | Compose scale: `withAlpha(c, 0.5)`, or `setAlphaComponent(c, 128)`; GATE `alpha-scale-mismatch` |
82
83
  | **Alpha appended to the end of the color string** | Compose `Color.copy(alpha = x)` intuitively translated as `'#RRGGBB' + hex(x)` | `#RRGGBBAA` is read as `#AARRGGBB`: background fully transparent or a different color, zero errors | `setAlphaComponent()` (`assets/ColorUtils.ets`); GATE `color-alpha-appended` |
83
84
  | **`.fillColor()` on a bitmap (png/webp/jpg)** | Android `tint` on a `mipmap`/`drawable` bitmap translated literally to `fillColor` | SDK: fillColor only applies to SVG sources, the bitmap keeps its colour (e.g. a white plus icon invisible on a light background), no error | use `.colorFilter(...)` (same matrix as above) or convert the `<vector>` to SVG; GATE `fillcolor-on-raster-media` (checks every qualifier directory, not only base/) |
84
85
  | **Hand-writing icon SVGs from memory** | The icon is a library-compiled `ImageVector` that is not in `res/` | The bounding-box path is painted by `fillColor` into a **solid block** | → Phase 4.3 icon source tiers (if the asset cannot be obtained, register `degraded`); GATE `fillcolor-on-full-viewport-path` |
86
+ | **Theme mode stored but never applied** | The settings page writes `ThemeMode` into the theme state, and "dark/light is handled by resource qualifiers" leaves it unwired | Resource qualifiers change value only after `setColorMode` switches: with no call anywhere, dark / light / follow system change nothing | Call `getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK / _LIGHT / _NOT_SET)` where it is set; it is not persisted (FAQ "Dark mode adaptation and persistence"), so read the stored mode in the entry ability on launch and call it again. GATE `theme-mode-closure` |
85
87
  | **Theme colours copied into hex constants** | Captures show light only, so the Compose palette was "copied 1:1" into `static readonly '#…'` | After switching to dark or another theme colour the pages stay the same; only the few components that read the theme state explicitly change | Read the contract's theme; tokens return `$r('app.color.*')` with base + dark color.json; GATE `theme-color-literal` |
86
88
  | **Consuming media whose content cannot be drawn** | Only `ls media/` was used to confirm it "exists" | Leftover `?attr/...` → white box; placeholder SVG → grey box | → Phase 5 "Misused Resource References"; GATE `media-unresolved-theme-attr` / `media-placeholder-in-use` |
87
89
  | Hand-written color blending/concatenation functions | `blendARGB` looks like just a few lines of arithmetic, and EVIDENCE passes on mental "substituted back, consistent" | A miscomputed string (e.g. `'#FFEDF2EDF2F109'`) is **silently ignored** by ArkUI: transparent background, black stroke, zero errors | → 4.3 "Color arithmetic": use `assets/ColorUtils.ets` or precomputed literals. GATE `color-literal-malformed`, CAND `color-built-at-runtime` |
@@ -26,10 +26,13 @@ The report must include this ownership table, **each row labeled (a) / (b1) / (b
26
26
 
27
27
  **Appearance Substitution — do not "downgrade" an appearance the reference has captured**: if the **graphic structure** of a framework widget (picker, dialog, switch, progress bar…) in the reference screenshot differs from the same-named ArkUI component, the conclusion of question 2 can only be (b2) override or (a) custom drawing, or flagged `escalate`; you **must not** just write "ArkUI has no such form, degraded to X". This follows the same principle as the captured-state rule in Phase 5 "Transition Implementation Evidence": the appearance captured in the screenshot is itself the acceptance target. The typical instances are Android `TimePicker` / `TimePickerDialog`'s default clock face and `DatePicker` / `DatePickerDialog`'s default month calendar, while the same-named ArkUI components are all wheels (the "map by mode" row of the mapping table; GATE `framework-picker-appearance`). When the parent flow accepts the difference, write `// APPEARANCE-ESCALATED(<Widget>): <ruling source>` above the line and register `escalate` in the report.
28
28
 
29
+ **One sheet / content cover per node**: a `bindSheet` / `bindContentCover` is owned by the node it is bound to, and a node keeps one modal lifecycle; with two on one attribute chain, one closes right after it opens ("tap, flash, gone"), and neither the build nor the smoke test shows it. Each Compose `ModalBottomSheet` has its own state, which in ArkUI means its own host node: bind each on its trigger node, or wrap each in an empty container as host; with many overlays, manage them with `UIContext.openBindSheet` / `closeBindSheet`. This applies equally when Step 5.5 wiring adds an overlay. GATE `multiple-overlay-binds-same-node`.
30
+
29
31
  **System dialogs and menus — anchor with the native mechanism, take the look from the source theme**: Android `PopupMenu` / `ContextMenu` / a `ListPopupWindow` anchored to a button, and `AlertDialog.Builder` / `MaterialAlertDialogBuilder`, are framework widgets whose **look is set by the Android app theme**, not by "the system"; once moved to ArkUI, "the system look" becomes the HarmonyOS look. The mapping table's "Direct mapping" only says the APIs line up, not that the look does.
30
32
 
31
33
  - **Menus**: always anchor with `.bindMenu(...)` **on the trigger component** (`.bindContextMenu(...)` for long-press menus); a custom-drawn, state-driven overlay is **forbidden** (width, corner radius, dividers, shadow and position have no source, and it is not anchored to the button; GATE `popup-menu-not-bound`). For the look, pass a `@Builder` returning `Menu(){ MenuItem() }` and take values in the priority below; **do not pass `MenuElement[]`**, which renders the HarmonyOS system menu (GATE `popup-menu-default-look`).
32
34
  - **Dialogs**: do not use the default look of `showAlertDialog` / `AlertDialog.show` / `showActionSheet` (centred title, buttons split across the row); draw a **shared dialog component** to the source theme (title, message, 0–3 text buttons) and open it with `getUIContext().getPromptAction().openCustomDialog(ComponentContent)` or `CustomDialogController` (GATE `framework-dialog-appearance`). Check `harmony_index.md` / existing `components/` first and reuse it; if none exists, this group creates it under `components/` and names it in the report for later groups to reuse.
35
+ **The backboard is the panel, one layer only**: `openCustomDialog` / `CustomDialogController` has its own backboard, with a default corner radius of 32vp and a blur material that defaults to `COMPONENT_ULTRA_THICK` before API 26.0.0 and to `NONE` after it (promptAction / CustomDialog doc); left unset, it varies by device. The inset between the Android window and panel (16dp in AppCompat) is **transparent**, and only the panel is visible on screen. So the Android panel's look goes on the **backboard options**: `width: '<panel share of screen width>%'` (the `dialog panel` line of measure_summary), `backgroundBlurStyle: BlurStyle.NONE`, `backgroundColor: <panel colour>`, `cornerRadius: <panel radius>`, and `shadow` for a shadow; the builder root is `width('100%')` and gets **no** padding, background, radius or shadow. Translating the inset into `padding(16)` on the builder root and drawing the panel inside it wraps an extra layer of backboard around the panel (GATE `dialog-backboard-default`). A `CustomDialogController` may instead set `customStyle: true` and let the builder root draw the panel itself.
33
36
  - **Value priority**: ① this overlay's capture (`measure_pack`: panel width share, row height, text inset, foreground/background colors); ② a **captured** overlay of the same kind elsewhere in the app (another page's menu/dialog, `template-page measured`); ③ the defaults below for the source theme (the theme chain is read from the application module's `src/main` AndroidManifest `android:theme` → `<style parent>` in `res/values/`; the checker output prints the resolved chain. When `values-v21/` / `values-night/` redefines that theme on another family, the device decides the look: the checker reports only a CAND with both chains, and the capture decides). **When none of the three exists, still do not fall back to HarmonyOS defaults.**
34
37
 
35
38
  | Source theme (parent chain) | AlertDialog | PopupMenu |
@@ -52,6 +55,8 @@ Second- and third-level overlays (a confirmation opened by a menu item, a list d
52
55
  |---|---|---|---|
53
56
  | **`PopupMenu` custom-drawn as an overlay panel** | Applying the "overlay = state-driven overlay" pattern uniformly | Menu size, corner radius, dividers and position are all invented, and it is not anchored to the button | Write `.bindMenu(this.xxxMenu)` (`@Builder` + `Menu/MenuItem`) on the trigger component. GATE `popup-menu-not-bound` |
54
57
  | **`PopupMenu` / `AlertDialog` in the HarmonyOS system default look** | The mapping table's "Direct mapping" + "prefer native components for uncaptured overlays" | Menu radius/width/font and the dialog's title alignment and button layout all become HarmonyOS style; second/third-level dialogs have no capture, so everything passes | Take values from the source-theme table in "System dialogs and menus": a `@Builder Menu` for menus, the shared source-theme dialog component for dialogs. GATE `popup-menu-default-look` / `framework-dialog-appearance` |
58
+ | **An extra backboard layer around the dialog panel** | measure_pack's window line (inset included) is treated as a container: outer `width('95%') + padding(16)`, panel drawn inside; the backboard options set only `width` | An extra ring of backboard around the white panel (default radius, plus frosted blur before API 26), like "another layer of background around the box" | → "The backboard is the panel" under the "Dialogs" item: the panel's look goes on the backboard options, and the builder root gets no padding / background. GATE `dialog-backboard-default` |
55
59
  | **Fixed-size text-glyph buttons** (`'•••'`, `'‹'`, `'×'`) | On Android it fits at the same font size and box width | Symbols such as `•` in HarmonyOS fallback fonts are wider, so without `maxLines` it wraps and "•••" is laid out as "⁘" | Add `.maxLines(1)` to fixed-width `Text`, estimating CJK/symbols at 1em; GATE `fixed-box-text-wraps` |
56
60
  | **Framework pickers "mapped directly by same name"** | The mapping table says `TimePicker → TimePicker` | Android defaults to a clock face/month calendar while ArkUI uses wheels — the whole appearance differs | First determine the Android-side mode (`timePickerMode`/`datePickerMode`/theme); if it is not spinner, handle per Phase 4.3 "Appearance Substitution". GATE `framework-picker-appearance` |
61
+ | **An amount field uses `InputType.Number`** | The mapping table says `number → Number`; Android `numberDecimal` / Compose `KeyboardType.Decimal` only switch the keyboard and filter nothing, so ArkUI is assumed to behave the same | ArkUI `InputType.Number` is "pure digit input, no negatives or decimals" and **filters out** the decimal point: typing 99.9 leaves 999 | Fields that may hold decimals (amount, price, weight) use `InputType.NUMBER_DECIMAL` (one decimal point, no negatives; use `inputFilter` for negatives). GATE `input-type-decimal-domain` |
57
62
  | **Rebuilding, outside the atomic component, decorations it already has** | The view tree exposes the internal parts of the framework composite widget, and mapping them one by one seems more "faithful" | The same visual element is drawn twice, and the extra line/box often lands **outside** the component | → Phase 4.3 "Part ownership of framework composite widgets", Phase 5 "Duplicate Decoration Check" |
@@ -10,7 +10,7 @@
10
10
  Search the page's host Activity and its Application/base classes first; when the host itself has none, hits belonging to another Activity (e.g. a crash page, a full-screen reader page) **do not** count as evidence for this page.
11
11
  **Inferring this item from screenshots is forbidden**: "the status bar is visible in the screenshot" or "content starts below the status bar" **cannot** imply non-immersive — an edge-to-edge page pads itself for insets, and its screenshot is **exactly the same shape** as a non-immersive one, so that criterion is bound to misjudge immersive pages. Screenshots may only corroborate, never serve as the basis for ①.
12
12
  ② **Window layer**: fixed to the default layout — `EntryAbility` **does not call** `setWindowLayoutFullScreen` (it may call `setWindowSystemBarProperties` to change the bar foreground color). The system lays content out in the safe area, automatically avoiding the status bar and navigation indicator. This item only needs to state "window layer: default layout"; calling `setWindowLayoutFullScreen(true)` is a failure (`window-fullscreen-layout` GATE).
13
- ③ **Component layer**: when ① is immersive, chrome that touches a system bar extends only its **background** into it — shell/page root `.background(<color>, { ignoresLayoutSafeAreaEdges: [LayoutSafeAreaEdge.TOP] })`, bottom chrome `[LayoutSafeAreaEdge.BOTTOM]`; content that itself must be drawn into the status bar (full-screen cover, video) uses `expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP])` on that component. **Neither form works inside `Refresh` / `Scroll` / `List`** (these containers have `clip` true by default and cut off the extension; GATE `safe-area-in-clipping-ancestor`): when bar-touching chrome sits inside such a container (a collapsing header inside pull-to-refresh), put its background in a separate layer under the page root, outside the container, with its height driven by the same state and `.hitTestBehavior(HitTestMode.None)`, leaving the content where it is. **This layer's height is the height inside the safe area (the same value as the content layer), drawn with `.background(<color or @Builder>, { ignoresLayoutSafeAreaEdges: [LayoutSafeAreaEdge.TOP] })`**: the background area adds one status-bar height above the component while the component's layout stays unchanged. **Do not** use a fixed height + `expandSafeArea`: after extension a fixed width/height (or `'auto'`) keeps its size, so the whole component moves up by one bar height and its bottom edge moves up with it (safe-area doc, expandSafeArea constraints; GATE/CAND `fixed-size-expand-safe-area`). A `@Builder` background does not update with the builder's internal state, so put fade `opacity` etc. on this layer itself.
13
+ ③ **Component layer**: when ① is immersive, chrome that touches a system bar extends only its **background** into it — shell/page root `.background(<color>, { ignoresLayoutSafeAreaEdges: [LayoutSafeAreaEdge.TOP] })`, bottom chrome `[LayoutSafeAreaEdge.BOTTOM]`; content that itself must be drawn into the status bar (full-screen cover, video) uses `expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP])` on that component. **Neither form works inside `Refresh` / `Scroll` / `List`** (these containers have `clip` true by default and cut off the extension; GATE `safe-area-in-clipping-ancestor`): when bar-touching chrome sits inside such a container (a collapsing header inside pull-to-refresh), put its background in a separate layer under the page root, outside the container, with its height driven by the same state and `.hitTestBehavior(HitTestMode.None)`, leaving the content where it is. **This layer must write `.width('100%')`**: it is usually an empty container, and width/height default to the children's size (size attributes doc), which is 0 for an empty container; `.background()` does not take part in measuring, so without a width the whole layer is invisible (GATE `bg-only-container-collapsed`). The page-root `Stack` that holds it writes `alignContent: Alignment.TopStart`, otherwise a fixed-height background layer is centred vertically. **This layer's height is the height inside the safe area (the same value as the content layer), drawn with `.background(<color or @Builder>, { ignoresLayoutSafeAreaEdges: [LayoutSafeAreaEdge.TOP] })`**: the background area adds one status-bar height above the component while the component's layout stays unchanged. **Do not** use a fixed height + `expandSafeArea`: after extension a fixed width/height (or `'auto'`) keeps its size, so the whole component moves up by one bar height and its bottom edge moves up with it (safe-area doc, expandSafeArea constraints; GATE/CAND `fixed-size-expand-safe-area`). A `@Builder` background does not update with the builder's internal state, so put fade `opacity` etc. on this layer itself.
14
14
  **Layer by layer under the bar**: "background" means **every layer Android actually draws** in the system-bar area, not just one base color. List, in z-order, the painters of the area under the bar (screen y < status-bar height) — container background color, a filling `ImageView` (header image, often with `scaleType=fitXY/centerCrop`), gradients/shapes, scrims — and every layer must go into the extension layer: color layers use `.background(<color>, …)`, image layers use `.background(<@Builder that draws the image>, …)` (or stack a same-size `Image` inside the extension layer), and multiple layers are stacked inside the extension layer in the original z-order. The basis is the Android layout `file:line` (that View's constraints pin it to the `parent` top, or a negative `marginTop` pushes it under the bar). When only the bottom color block is moved and the image above it stays inside the clipping container, the status bar shows only a solid color — `safe-area-in-clipping-ancestor` cannot catch this (the image itself writes no safe-area API); CAND `backdrop-image-in-clipping-ancestor` lists suspicious filling `Image`s.
15
15
  Full-bleed content using `expandSafeArea` likewise must not have a fixed height; use a percentage height. When ① is non-immersive, state "not used". List the actual `file:line`; Fragment pages hosted by a shell are handled by the shell — state that and cite the shell's line numbers.
16
16
  ④ Whether ①②③ are equivalent.
@@ -26,4 +26,5 @@
26
26
  | edge-to-edge translated as a full-screen window layer + per-page padding by bar height | `setDecorFitsSystemWindows(false)` looks like "full-screen window" | When the bar height cannot be read / a stale value is read (the avoid area can be 0, a one-time V2 read never updates), **every** top bar in the batch falls into the status bar and becomes untappable; cross-page consistency gets full marks | → Phase 5 "Window Mode Evidence" ②③ and the "Key point" paragraph; GATE `window-fullscreen-layout` / `system-bar-height-read` |
27
27
  | **Bar-touching background placed inside `Refresh` / `Scroll` / `List`** | `expandSafeArea` / `ignoresLayoutSafeAreaEdges` written on the component that needs immersion looks right | The status bar shows only the page-root background and the immersion disappears; compilation and smoke all pass | → Phase 5 "Window Mode Evidence" ③; GATE `safe-area-in-clipping-ancestor` |
28
28
  | **The extension layer moves only the base color, leaving the header image under the bar inside the clipping container** | The rule's example says `.background(<color>, …)`, so "background" is read as a single color and the header image is treated as "content" and left in place | The status bar is a solid color while Android shows an image; `safe-area-in-clipping-ancestor` and `android-immersive-not-mirrored` all pass | → Phase 5 "Window Mode Evidence" ③ "Layer by layer under the bar"; CAND `backdrop-image-in-clipping-ancestor` |
29
+ | **Background layer outside the page root written as an empty `Stack().height(h).background(…)`** | Following ③, a separate layer was written with its height driven by state, but only the height was set | An empty container's width is its children's size = 0, and `.background()` does not take part in measuring: the header image and header colour disappear entirely, leaving only the page-root colour; build, smoke gate and EVIDENCE all pass | Background layer `.width('100%')` + state-driven height, page root `Stack({ alignContent: Alignment.TopStart })`; GATE `bg-only-container-collapsed` |
29
30
  | **Fixed-height background layer with `expandSafeArea(TOP)`** | Assuming the extension adds one status-bar height on top of the original height | A fixed size keeps its size after extension, so the layer moves up as a whole and its bottom edge loses one bar height: the header image no longer covers the text at the bottom; not noticed if you only look at whether the status bar is painted | → Phase 5 "Window Mode Evidence" ③; use `background(…, { ignoresLayoutSafeAreaEdges })` instead; GATE/CAND `fixed-size-expand-safe-area` |
@@ -8,6 +8,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
8
8
 
9
9
  ## geometry — Geometry (size, placement, alignment)
10
10
 
11
+ ### bg-only-container-collapsed
12
+
13
+ - Level: GATE / CAND
14
+ - Needs: —
15
+ - Knowledge card: `references/cards/geometry.md`
16
+ - Trigger: a `Row`/`Column`/`Stack`/`Flex`/`RelativeContainer` with no children is shown only through background/backgroundImage/backgroundColor/a gradient, yet has no size on its width or height axis (judged after expanding same-file @Styles / @Extend). When the chain has `.attributeModifier()` the size may be set at runtime, so it drops to CAND.
17
+ - Fix: When width/height are unset a container takes the size its children need (size attributes doc); with no children that is 0, and `.background()` does not take part in measuring: give the background layer `.width('100%')` (fill the parent) or an explicit size; when it should follow a sibling's size, hang the background on that sibling.
18
+ - Downgrade marker: none
19
+
11
20
  ### canvas-coord-density-scaled
12
21
 
13
22
  - Level: GATE / CAND
@@ -71,6 +80,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
71
80
  - Fix: `fixed-box-text-wraps` (GATE: the literal text of a fixed-width, fixed-height `Text` does not fit by font-size estimate and has no `maxLines`; CJK/symbols estimated at 1em, pure ASCII reported as GATE only when clearly overflowing; when the font size cannot be read as a number (`$r(...)`, a variable, `px`) it is estimated at 16 and downgraded to CAND) → `.maxLines(1)` + widen.
72
81
  - Downgrade marker: none
73
82
 
83
+ ### hscroll-centered-in-column
84
+
85
+ - Level: GATE / CAND
86
+ - Needs: —
87
+ - Knowledge card: `references/cards/alignment.md`
88
+ - Trigger: a horizontal `Scroll` has no width (it shrinks to its content) and the `Column` directly around it writes no `alignItems` (default HorizontalAlign.Center); GATE when the content is ForEach / LazyForEach / Repeat, CAND otherwise.
89
+ - Fix: Compose LazyRow / HorizontalScrollView fill the width and start at the leading edge. Give the horizontal Scroll `.width('100%')` + `.align(Alignment.Start)` (horizontally Start = left + vertically centered, which is what is wanted), or write `.alignItems(HorizontalAlign.Start)` on the parent Column. When centered on purpose, write `// SCROLL-CENTER: <basis>` above the Scroll to downgrade to CAND
90
+ - Downgrade marker: `// SCROLL-CENTER: <basis>`
91
+
74
92
  ### layout-weight-on-component-root
75
93
 
76
94
  - Level: GATE
@@ -80,6 +98,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
80
98
  - Fix: move `.layoutWeight()` from the struct's build() root node to the call site, and make the inner root node fill **only along the parent container's main axis** (parent `Row` → `.width('100%')`, parent `Column` → `.height('100%')`). With a parent `Row`, do not also add `.height('100%')` while you are at it: if it lands inside a scroll container, the next rule will stop it.
81
99
  - Downgrade marker: none
82
100
 
101
+ ### layout-weight-on-shared-component-root
102
+
103
+ - Level: GATE / CAND
104
+ - Needs: —
105
+ - Knowledge card: `references/cards/geometry.md`
106
+ - Trigger: a struct's build() root node writes `.layoutWeight()`, and the component is called from 2 or more files (the call sites chain no attributes, so the previous rule does not fire; callers importing by relative path or by package name both count). GATE when the weight is a number literal; CAND when it comes from a value (e.g. `.layoutWeight(this.w)`), since callers already control it.
107
+ - Fix: how much main-axis space a child takes is the caller's decision (Compose writes `Modifier.weight` only at the call site, never inside the component): remove `.layoutWeight()` from the component root and write `X({ … }).layoutWeight(1)` only at the call sites that must fill. When the Android source component really carries the weight on its root (callers cannot override it), write `// ROOT-WEIGHT: <source evidence>` above the root weight to close this rule.
108
+ - Downgrade marker: `// ROOT-WEIGHT: <basis>`
109
+
83
110
  ### main-axis-pct-siblings
84
111
 
85
112
  - Level: GATE / CAND
@@ -131,17 +158,26 @@ A downgrade marker is written above the hit line (with the colon and the basis),
131
158
  - Needs: —
132
159
  - Knowledge card: `references/cards/geometry.md`
133
160
  - Trigger: going up from a percentage `.height()` to a vertical Scroll/List/Grid/WaterFlow, no layer in between has a definite height (followed across structs to the call site).
134
- - Fix: corner badges use `.position({ right, bottom })`; a content root that must fill the viewport uses `.constraintSize({ minHeight: '100%' })`.
161
+ - Fix: corner badges use `.position({ right, bottom })`; a content root that must fill the viewport uses `.constraintSize({ minHeight: '100%' })`; a mask / greyed-out layer covering the whole card uses `.overlay(this.<@Builder>())` whose builder root is `width/height('100%')` + `backgroundColor` + `hitTestBehavior(HitTestMode.Transparent)` (`'100%'` inside the overlay is relative to the host); **do not** pass a colour string (`overlay(string)` is mask text, GATE `overlay-string-color`).
162
+ - Downgrade marker: none
163
+
164
+ ### relative-container-unsized-in-scroll
165
+
166
+ - Level: GATE
167
+ - Needs: —
168
+ - Knowledge card: `references/cards/geometry.md`
169
+ - Trigger: A `RelativeContainer` inside a vertical Scroll/List/Grid/WaterFlow, with no definite height on any level up to the scroll container, whose own height is unset or `'auto'` / `LayoutPolicy.wrapContent` / `fixAtIdealSize`, and with a child whose `alignRules` anchor top / bottom / center on `'__container__'` (traced across structs to the call site).
170
+ - Fix: RelativeContainer doc: when height is `"auto"` (API 11+) or `wrapContent` (API 20+), any child anchored to the container in the vertical direction disables the self-sizing and the height counts as unset (FAQ faqs-arkui-318: the container height and the child layout depend on each other in a cycle). Express an Android `wrap_content` card with `Column`/`Row`/`Stack` (left icon + text column = `Row { Image; Column { … } }`, corner elements with `Stack` + `Alignment`); when two-dimensional constraints are really needed, anchor vertically only on siblings (the first child has no vertical alignRules and sits at the top by default) and write `.height('auto')`, or write the height measured in the reference view tree.
135
171
  - Downgrade marker: none
136
172
 
137
173
  ### scroll-align-default-center
138
174
 
139
- - Level: CAND
175
+ - Level: GATE / CAND
140
176
  - Needs: —
141
177
  - Knowledge card: `references/cards/alignment.md`
142
- - Trigger: a vertical `Scroll` writes no `.align()` (defaults to Alignment.Center).
143
- - Fix: if the content may be shorter than the viewport (settings page, empty list), write .align(Alignment.TopStart); when it really is centered (fillViewport + gravity=center), note the basis
144
- - Downgrade marker: none
178
+ - Trigger: a vertical `Scroll` writes no `.align()` (defaults to Alignment.Center); GATE when the content contains ForEach / LazyForEach / Repeat (data-driven, item count unknown), CAND otherwise.
179
+ - Fix: write .align(Alignment.TopStart) (`align` is a universal attribute; the API reference "Location" lists it as effective on Scroll, default Alignment.Center). When it really is centered (Android fillViewport + gravity=center), write `// SCROLL-CENTER: <basis>` above the Scroll to downgrade to CAND; EVIDENCE text does not close this rule
180
+ - Downgrade marker: `// SCROLL-CENTER: <basis>`
145
181
 
146
182
  ### scroll-align-not-top
147
183
 
@@ -179,6 +215,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
179
215
  - Fix: `stack-child-align-noop` (GATE: a `Stack` with no `alignContent` (both the constructor argument and its own `.alignContent()` / `.align()` count; the last one wins), whose child relies on its own `.align()` to pin to the bottom/edge while that child wraps its content on that axis) → set `alignContent` on the `Stack`
180
216
  - Downgrade marker: none
181
217
 
218
+ ### stack-custom-child-default-center
219
+
220
+ - Level: GATE / CAND
221
+ - Needs: —
222
+ - Knowledge card: `references/cards/alignment.md`
223
+ - Trigger: in a `Stack` with no alignContent, one of ≥2 siblings is a project custom component with no positioning at its call site, whose build() root does not fill the Stack vertically (or horizontally). Decided across files; when the root is itself a custom component it is followed down the component chain (up to 4 levels); children inside if / else branches count too. GATE only when it misses vertically, the Stack is taller, and the root has a definite height or children placed with `.position` / `.offset` inside; a content-sized overlay with no inner positioning (loading, empty state, hint), a horizontal-only miss, or `.attributeModifier()` on the chain is CAND.
224
+ - Fix: ConstraintLayout / MotionLayout / FrameLayout / Compose Box anchor children top-left (or by constraints): when layering into a `Stack`, write `Stack({ alignContent: Alignment.TopStart })`; or give the call site `.position` / `.markAnchor` / `.align`; or make the component root `.width('100%').height('100%')` and position inside it. For an intentional center, write `// STACK-CENTER: <basis>` above the call.
225
+ - Downgrade marker: `// STACK-CENTER: <basis>`
226
+
182
227
  ### stack-overlay-default-center
183
228
 
184
229
  - Level: GATE / CAND
@@ -188,17 +233,53 @@ A downgrade marker is written above the hit line (with the colon and the basis),
188
233
  - Fix: `stack-overlay-default-center` (GATE: in a `Stack` likewise without `alignContent`, one of ≥2 siblings is positioned only by a one-sided `margin.bottom`/`margin.top`, does not fill the height, and has no position/offset/align; write `// STACK-CENTER: <basis>` for an intentional center to downgrade it to CAND) → set the matching `alignContent` on the `Stack`
189
234
  - Downgrade marker: `// STACK-CENTER: <basis>`
190
235
 
236
+ ### text-input-default-padding-clips
237
+
238
+ - Level: GATE / CAND
239
+ - Needs: —
240
+ - Knowledge card: `references/cards/geometry.md`
241
+ - Trigger: a `TextInput` / `TextArea` / `Search` writes a literal `.height(H)` but no `.padding()`, and the default padding (8vp top and bottom; 12vp in TextInput underline mode) plus one text line does not fit in H — the text is clipped to its top half.
242
+ - Fix: Compose BasicTextField / an undecorated EditText have no inner padding and map to `.padding(0)` (TextInput reference: default padding {top 8, right 16, bottom 8, left 16}; with padding 0 also set `.borderRadius(0)` so the caret is not cut), or make the height text line + padding. When justified, write `// PADDING-IN-SIZE: <basis>` above the component to downgrade to CAND
243
+ - Downgrade marker: `// PADDING-IN-SIZE: <basis>`
244
+
245
+ ### waterflow-section-count-literal
246
+
247
+ - Level: CAND
248
+ - Needs: —
249
+ - Knowledge card: `references/cards/geometry.md`
250
+ - Trigger: `SectionOptions` `itemsCount` is written as a number literal.
251
+ - Fix: SDK WaterFlowSections: after changing sections, the child counts of all sections must add up to the real number of WaterFlow children, or the layout breaks and stops scrolling. Compute itemsCount from the data source (e.g. `this.vm.listData.length`) and sync with `sections.update` / `splice` when the data changes (refresh, load more, mock replaced by real data); do not switch between full-line and grid content with if/else inside one FlowItem template, split them into sections.
252
+ - Downgrade marker: none
253
+
254
+ ### waterflow-sections-no-gap
255
+
256
+ - Level: GATE / CAND
257
+ - Needs: —
258
+ - Knowledge card: `references/cards/geometry.md`
259
+ - Trigger: `WaterFlow({ sections: … })` has no `columnsGap` / `rowsGap` in its attribute chain, no `SectionOptions` added to that sections object writes `rowsGap` / `columnsGap` / `margin`, and no FlowItem writes `margin` / `padding`: every FlowItem touches the next one. Each WaterFlow is judged by its own sections (nested objects, callbacks and building the object before assigning the gap all count). GATE needs both: the sections and FlowItems are visible in this file, and with `--android` the Android source this file ports (same file name, or this file cites `X.kt`) has a Lazy*Grid writing `verticalItemSpacing` / `spacedBy`. Sections built in a ViewModel or another file, or FlowItems supplied by a @Builder / component, are CAND only.
260
+ - Fix: SDK SectionOptions: columnsGap / rowsGap fall back to the WaterFlow attribute of the same name, margin defaults to 0. Map the Compose source item by item: `contentPadding` → each section `margin` (or WaterFlow `.padding`), `horizontalArrangement = spacedBy(x)` → `columnsGap`, `verticalItemSpacing = y` → `rowsGap`; full-line items (`span = FullLine`) go into a `crossCount: 1` section that also writes `rowsGap`. When the source really has no spacing, write `// WATERFLOW-GAP: <source evidence>` above the WaterFlow to close this rule.
261
+ - Downgrade marker: `// WATERFLOW-GAP: <basis>`
262
+
191
263
  ### wide-constant-width
192
264
 
193
265
  - Level: CAND
194
266
  - Needs: —
195
267
  - Knowledge card: `references/cards/geometry.md`
196
268
  - Trigger: a constant width ≥ 300vp (or a constraintSize minWidth ≥ 300).
197
- - Fix: write it as a relative width following Android's ratios (dialog: outer width('95%') + left/right padding 16, inner width('100%')); when it really is a fixed width, note the basis
269
+ - Fix: write it as a relative width following Android's ratios (dialog: the backboard option `width` takes the screen-width share from the `dialog panel` line of measure_summary; the backboard is the panel, see the "Dialogs" item of the widgets card); when it really is a fixed width, note the basis
198
270
  - Downgrade marker: none
199
271
 
200
272
  ## appearance — Appearance (color, widget appearance, visual effects, transitions)
201
273
 
274
+ ### alpha-scale-mismatch
275
+
276
+ - Level: GATE
277
+ - Needs: —
278
+ - Knowledge card: `references/cards/resources.md`
279
+ - Trigger: the alpha `a` in `setAlphaComponent(color, a)` is a decimal literal between 0 and 1 (e.g. 0.5) — the function's alpha scale is 0..255.
280
+ - Fix: Compose `copy(alpha = 0.5f)` is 0..1, Android `ColorUtils.setAlphaComponent` is 0..255: 0.5 yields an alpha byte of only 0 or 1 (depending on rounding) and the color is almost fully transparent (a disabled button disappears). Write `setAlphaComponent(c, 128)` (round(f × 255)), or `withAlpha(c, 0.5)` from `assets/ColorUtils.ets` (Compose scale).
281
+ - Downgrade marker: none
282
+
202
283
  ### blur-not-mirrored
203
284
 
204
285
  - Level: GATE / CAND
@@ -235,6 +316,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
235
316
  - Fix: `color-literal-malformed` (GATE) / `color-built-at-runtime` (CAND): change the color string to a valid literal or use `assets/ColorUtils.ets`; if a CAND-hit concatenation is a safe form such as simply adding a `#` prefix, just explain it in the report.
236
317
  - Downgrade marker: none
237
318
 
319
+ ### dialog-backboard-default
320
+
321
+ - Level: GATE
322
+ - Needs: —
323
+ - Knowledge card: `references/cards/widgets.md`
324
+ - Trigger: The options of `openCustomDialog(…)` / `new CustomDialogController({…})` (a literal, or a variable in the same file initialised with a literal) do not set both `backgroundBlurStyle` and `cornerRadius` (not reported when a `CustomDialogController` sets `customStyle: true`).
325
+ - Fix: The dialog backboard has its own default look: `cornerRadius` defaults to 32vp; `backgroundBlurStyle` defaults to `COMPONENT_ULTRA_THICK` before API 26.0.0 and to `NONE` after it (promptAction / CustomDialog doc), so the same code looks different on different devices. Per the "Dialogs" item of the widgets card, the backboard is the Android panel: set `backgroundBlurStyle: BlurStyle.NONE`, `backgroundColor: <panel colour>`, `cornerRadius: <panel radius>`, `width: '<panel share of screen width>%'` in the options, and add no padding / background / radius on the builder root; the inset between the Android window and panel is transparent and is not translated into a container.
326
+ - Downgrade marker: none
327
+
238
328
  ### framework-dialog-appearance
239
329
 
240
330
  - Level: GATE / CAND
@@ -253,6 +343,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
253
343
  - Fix: handle per Phase 4.3 "Appearance Substitution"; when the parent flow has accepted the difference, the `APPEARANCE-ESCALATED` marker downgrades it to CAND.
254
344
  - Downgrade marker: `// APPEARANCE-ESCALATED(<Widget>): <basis>`
255
345
 
346
+ ### overlay-string-color
347
+
348
+ - Level: GATE
349
+ - Needs: —
350
+ - Knowledge card: `references/cards/geometry.md`
351
+ - Trigger: The first argument of `.overlay(` is a colour string: a colour literal (`'#…'`, `'transparent'`, `'rgb(…)'`/`'rgba(…)'`), a conditional with a colour-literal branch, or a `this.<member>` initialised with a colour literal.
352
+ - Fix: `overlay(value: string)` is the **mask text** overload (overlay doc): the colour value is drawn as text at the component's top-left corner and the mask itself paints no pixels. Write a whole-card mask as an `@Builder` overlay: `@Builder mask() { Column().width('100%').height('100%').backgroundColor(<colour>).hitTestBehavior(HitTestMode.Transparent) }`, called as `.overlay(this.mask())` (overlay doc example 3: `'100%'` inside the overlay is relative to the host component); for a conditional mask use `if` inside the builder, never pass `'transparent'`.
353
+ - Downgrade marker: none
354
+
256
355
  ### popup-menu-default-look
257
356
 
258
357
  - Level: GATE / CAND
@@ -313,9 +412,27 @@ A downgrade marker is written above the hit line (with the colon and the basis),
313
412
  - Needs: `shell-plan`
314
413
  - Knowledge card: `references/cards/resources.md`
315
414
  - Trigger: the shell contract's theme.mode is not static (Android has a dark scheme or a runtime theme colour), and an .ets file contains a `'#…'` colour literal, or a colour-attribute argument is a fixed enum such as `Color.White` / `Color.Black`.
316
- - Fix: change it to `$r('app.color.<name>')`, defined under the same name in both the base and dark color.json (the dark value cites the line of the Android dark scheme / values-night), submitted through registry_requests `color` / `dark_color`; a runtime theme colour is read through a getter of the observable theme state. A colour whose value is the same in both Android schemes gets `// THEME-FIXED: <both scheme lines>` above it (downgraded to CAND).
415
+ - Fix: change it to `$r('app.color.<name>')`, defined under the same name in both the base and dark color.json (the dark value cites the line of the Android dark scheme / values-night), submitted through registry_requests `color` / `dark_color`; a runtime theme colour listed in the contract's `theme.runtime_slots` does not use `$r`: it is read through a getter of the observable theme state in `theme.state_module` (GATE `theme-runtime-color-static`). A colour whose value is the same in both Android schemes gets `// THEME-FIXED: <both scheme lines>` above it (downgraded to CAND).
317
416
  - Downgrade marker: `// THEME-FIXED: <basis>`
318
417
 
418
+ ### theme-mode-closure
419
+
420
+ - Level: GATE
421
+ - Needs: —
422
+ - Knowledge card: `references/cards/resources.md`
423
+ - Trigger: the project writes a theme mode (a `ThemeMode` enum plus `setThemeMode(` / `themeMode =`), but no file calls `setColorMode(` (a mention in a comment or a string literal does not count).
424
+ - Fix: Dark/light takes effect through `ApplicationContext.setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK / _LIGHT / _NOT_SET)`; storing the state without calling it changes nothing. Call it where the mode is set and, because setColorMode is not persisted (FAQ "Dark mode adaptation and persistence"), read the stored mode in the entry ability on launch and call it again.
425
+ - Downgrade marker: none
426
+
427
+ ### theme-runtime-color-static
428
+
429
+ - Level: GATE / CAND
430
+ - Needs: `shell-plan`
431
+ - Knowledge card: `references/cards/resources.md`
432
+ - Trigger: the shell contract's `theme.runtime_slots` is non-empty (the Android colour scheme's `primary` comes from a user setting), and `$r('app.color.<slot>')` appears in a colour attribute or colour field; or the project has a second theme-state implementation (a file other than `theme.state_module` declares a `*Theme*Store` / `*ThemeState` class).
433
+ - Fix: read the runtime theme colour through a getter of the observable theme state in `theme.state_module` (V2: `@ObservedV2` + `@Trace`; the component holds the instance and writes `.backgroundColor(this.theme.primary)`); `$r('app.color.<slot>')` is a compile-time resource and does not follow the colour the user picks. Where the colour really stays the brand colour and does not follow the skin (e.g. the splash logo), write `// THEME-STATIC: <Android basis file:line>` above it (downgraded to CAND). Delete a second theme-state implementation and import `state_module` instead.
434
+ - Downgrade marker: `// THEME-STATIC: <basis>`
435
+
319
436
  ### theme-sheet-background-default
320
437
 
321
438
  - Level: GATE
@@ -359,7 +476,7 @@ A downgrade marker is written above the hit line (with the colon and the basis),
359
476
  - Level: GATE
360
477
  - Needs: `--resources`
361
478
  - Knowledge card: `references/cards/resources.md`
362
- - Trigger: the referenced media SVG has a bounding-box path with fill="none" whose d is exactly the full viewBox rectangle.
479
+ - Trigger: the referenced media SVG has a fill="none" bounding box covering the viewBox: a path whose d is exactly the full viewBox rectangle, or a rect with x/y at 0 and width/height equal to the viewBox.
363
480
  - Fix: - The rules that read SVG/resource file content (need `--resources`) correspond to the sub-items of "Misused Resource References": `fillcolor-on-stroke-svg`, `fillcolor-on-full-viewport-path`, `media-unresolved-theme-attr` / `media-placeholder-in-use`, `media-duplicate-attribute`. They are exactly the class missed by "just running `ls media/` to confirm the name exists".
364
481
  - Downgrade marker: none
365
482
 
@@ -390,6 +507,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
390
507
  - Fix: pass arguments: $r('app.string.x', value), or getStringSync(id, value)
391
508
  - Downgrade marker: none
392
509
 
510
+ ### lottie-host-not-integrated
511
+
512
+ - Level: GATE / CAND
513
+ - Needs: `--android`
514
+ - Knowledge card: `references/cards/resources.md`
515
+ - Trigger: An Android source cited by the `.ets` plays Lottie (`LottieAnimation` / `LottieAnimationView` / `rememberLottieComposition` / `lottie_rawRes` etc.), and none of the `.ets` citing it imports `@ohos/lottie`.
516
+ - Fix: Load `rawfile/lottie/<name>.json` with `@ohos/lottie` per `references/lottie-integration.md` (request `@ohos/lottie` in registry_requests if the dependency is missing). When it truly cannot be integrated, write `// LOTTIE-DEGRADED: <which animation, what placeholder, why>` in a `.ets` that cites the source to downgrade to CAND, and register L3 degraded in the report. Replacing the Lottie with another static drawable is "substituting an existing drawable with mismatched semantics", not a downgrade exit.
517
+ - Downgrade marker: `// LOTTIE-DEGRADED: <basis>`
518
+
393
519
  ### media-duplicate-attribute
394
520
 
395
521
  - Level: GATE
@@ -491,13 +617,40 @@ A downgrade marker is written above the hit line (with the colon and the basis),
491
617
  - Fix: `loadContent()` in the `UIAbility` does not point at a converted page, so the app launches the scaffold's Hello World. It fires only once converted pages exist.
492
618
  - Downgrade marker: none
493
619
 
620
+ ### event-default-click-swallows-parent
621
+
622
+ - Level: GATE
623
+ - Needs: —
624
+ - Knowledge card: `references/cards/interaction.md`
625
+ - Trigger: a component's build() binds `.onClick(…)` unconditionally to just `this.X()` / `this.X?.()` (the arrow may take parameters, e.g. `(e) => this.X(e)`), X being an `@Event` / callback parameter the caller may leave out (empty-function default, or optional / undefined default); the binding has no `hitTestBehavior` that switches on whether X was passed (a constant such as `HitTestMode.Default` does not count) and is not inside an `if (this.X …)` branch; some call site does not pass X while one of its ancestors (across the call chain too) writes `.onClick`. With same-name components in several modules, each call site is matched to its own declaration by import / module.
626
+ - Fix: an ArkUI tap is handled by the innermost hit node: a child that binds onClick (even to an empty function) takes the tap, and the ancestor's onClick no longer fires. Compose `onClick: (() -> Unit)? = null` adds `clickable` only when non-null; do not translate it into an empty default plus an unconditional binding. Do both steps: declare the parameter as optional `@Event X: (() => void) | undefined = undefined`, and keep the node out of hit testing when it is not passed: `.onClick(() => { this.X?.() })` with `.hitTestBehavior(this.X === undefined ? HitTestMode.None : HitTestMode.Default)`. Changing the default without the hitTestBehavior still takes the tap. Where the call site needs no click, a component without a click also works. When that call site really must not trigger the ancestor's click, write `// CLICK-OWNER: <evidence>` above it to close this rule.
627
+ - Downgrade marker: `// CLICK-OWNER: <basis>`
628
+
494
629
  ### fullsize-container
495
630
 
496
- - Level: CAND
631
+ - Level: GATE / CAND
497
632
  - Needs: —
498
633
  - Knowledge card: `references/cards/interaction.md`
499
- - Trigger: an attribute chain has both `.width('100%')` and `.height('100%')`, but no `hitTestBehavior`.
500
- - Fix: - The `[CANDIDATES]` section is **not defects**, just a narrowing of the manual review scope. Whether the fill containers and constant coordinates it lists are correct depends on the anchoring direction and stacking order on the Android source side — lexical analysis cannot decide that. Treat it as the to-review list for the three items "Position Anchor Evidence", "Interaction Reachability Evidence" and "Window Mode Evidence", and annotate the source of each entry; **do not change code just because something is listed** — most fill containers are legitimate.
634
+ - Trigger: a node `'100%'` in width and height with no `hitTestBehavior` that the checker cannot prove, from the layer structure, leaves the taps below it alone. Nodes it can prove (taking input itself, a non-layered parent, nothing clickable below, a page root) are no longer listed. Any `hitTestBehavior` (`Block` / `Default` included) counts as the author's explicit choice and is out of scope.
635
+ - Fix: GATE "conditional overlay": while shown it covers clickable elements below it. When blocking input is the intent (loading mask, modal layer) write the downgrade marker `// HIT-TEST: blocks-input: <basis>`; otherwise add `.hitTestBehavior(HitTestMode.None)`. GATE "layer whose children take input": its own area covers clickable elements below it; size or place it so it does not, or add `.hitTestBehavior(HitTestMode.Transparent)` when a tap on it should reach them too; when covering the lower layer is the intent (a full-screen sheet over its own scrim) write `// HIT-TEST: covers-below: <basis>`. CAND (a component outside the scanned files drawn by it or below it, `zIndex` reordering, no call site found): the checker cannot decide it; check it under "Interaction Reachability Evidence".
636
+ - Downgrade marker: `// HIT-TEST: <blocks-input|covers-below>: <basis>`
637
+
638
+ ### input-type-decimal-domain
639
+
640
+ - Level: GATE
641
+ - Needs: —
642
+ - Knowledge card: `references/cards/widgets.md`
643
+ - Trigger: an amount/price field (a **whole word**, split on camelCase / snake_case, of the struct name, text, placeholder or onChange is price / amount / money / cost / fee / balance, or the text contains a Chinese money word) uses `.type(InputType.Number)`; the fee inside FeedbackPage is not a whole word and does not count.
644
+ - Fix: InputType.Number is "pure digit input, no negatives or decimals" and **filters out** the decimal point; Android `inputType=numberDecimal` / Compose `KeyboardType.Decimal` only switch the keyboard. Use `InputType.NUMBER_DECIMAL` (API 11+, one decimal point, no negatives; use inputFilter for negatives). When the amount really is an integer, write `// INPUT-INTEGER: <basis>` above the component to close this rule.
645
+ - Downgrade marker: `// INPUT-INTEGER: <basis>`
646
+
647
+ ### multiple-overlay-binds-same-node
648
+
649
+ - Level: GATE
650
+ - Needs: —
651
+ - Knowledge card: `references/cards/widgets.md`
652
+ - Trigger: One component's attribute chain binds two or more `.bindSheet(` / `.bindContentCover(`.
653
+ - Fix: Bind one sheet / content cover per node: put each overlay on its own trigger node, or wrap each in an empty container (e.g. `Column()`) as its host; with many or stacked overlays, manage them by content handle with `UIContext.openBindSheet` / `updateBindSheet` / `closeBindSheet`. Each Compose `ModalBottomSheet` has its own state, which in ArkUI means its own host node.
501
654
  - Downgrade marker: none
502
655
 
503
656
  ### offset-in-scroll-content
@@ -536,8 +689,53 @@ A downgrade marker is written above the hit line (with the colon and the basis),
536
689
  - Fix: it should not be a standalone @Entry route page: the shell (entry group) mounts it, and navigation goes through the shell's tab switching/route stack, not router.pushUrl
537
690
  - Downgrade marker: none
538
691
 
692
+ ### stack-swallows-taps
693
+
694
+ - Level: GATE
695
+ - Needs: —
696
+ - Knowledge card: `references/cards/interaction.md`
697
+ - Trigger: a later, always-shown child of a `Stack`/`RelativeContainer` is `'100%'` in width and height, has no `hitTestBehavior`, takes no input itself or in its subtree, and an earlier sibling has a clickable element (items a `ForEach` / `LazyForEach` / `Repeat` repeats count at its position among the siblings). Any `hitTestBehavior` on the layer (`Block` / `Default` included) counts as the author's explicit choice and is not reported.
698
+ - Fix: give the layer `.hitTestBehavior(HitTestMode.None)` (`HitTestMode.Transparent` when the layer must still receive events itself). The default `HitTestMode.Default` blocks the touch test of sibling nodes, so a transparent layer with no onClick still swallows every tap below it.
699
+ - Downgrade marker: none
700
+
701
+ ### swiper-index-unbound
702
+
703
+ - Level: GATE
704
+ - Needs: —
705
+ - Knowledge card: `references/cards/dynamics.md`
706
+ - Trigger: `aboutToAppear()` calls `this.<ctrl>.changeIndex(…)`, while the attribute chain of `Swiper(this.<ctrl>)` in the same file has no `.index(…)`.
707
+ - Fix: `aboutToAppear` runs before `build()` (custom component lifecycle doc), when the Swiper does not exist yet and the controller has nothing to page; the initial page is decided by `.index()` and is page 0 when it is unset (FAQ "How does Swiper show the page at a given index"). Give the Swiper `.index(this.vm.selectedTabIndex)` (V1 can bind it two-way with `$$`) so state drives both the initial page and later page changes; keep `changeIndex` for user actions after build.
708
+ - Downgrade marker: none
709
+
539
710
  ## state — State management (V1/V2 decorators, Builder parameter passing)
540
711
 
712
+ ### appstoragev2-connect-creator
713
+
714
+ - Level: GATE
715
+ - Needs: —
716
+ - Knowledge card: `references/cards/state.md`
717
+ - Trigger: two shapes: (1) `AppStorageV2.connect(Type, key)` / `PersistenceV2.connect(Type, key)` passes a key but no third argument (default creator), with no `keys().includes(key)` guard before it; (2) one key (a string literal or a same-file `const X = '...'`) is connected with types **declared in different places** (classes each file declares or copies itself; compared by the declaring file of the class or the package it is imported from, so several pages importing one exported class do not count).
718
+ - Fix: AppStorageV2 docs: "the creator may be omitted only when the data is already stored; otherwise it must be given, or the app fails" — the first connect throws `BusinessError: The default creator should be function when first connect`, and a `connect(...) ?? new T()` fallback never runs; "connecting different types to one key makes the app fail", and same-named classes in different files are different types. Always write `connect(T, key, () => new T())!`; for a key shared across modules, put the class and its connect with a creator in one shared HAR (common/*) that every module imports, instead of copying the connector into each module.
719
+ - Downgrade marker: none
720
+
721
+ ### builder-param-arrow-inline-component
722
+
723
+ - Level: GATE
724
+ - Needs: —
725
+ - Knowledge card: `references/cards/state.md`
726
+ - Trigger: a **custom component** receives an arrow function `prop: () => { … }` in its constructor argument whose body writes a component directly (`Child({…})`, `Text(…)`, `Column() {…}`, `ForEach(…)`) instead of only calling a @Builder such as `this.X()` / `X()`. Only names proven to be components count: built-in kinds, structs declared in this file, and imports that resolve to a file declaring a struct of that name; an imported global `@Builder function` (e.g. `() => { EmptyView() }`) or an unresolved name does not fire.
727
+ - Fix: only @Builder / @LocalBuilder bodies are compiled into UI build code; an arrow body is kept as is, so `Child({…})` inside it is a plain call of the component class and crashes with `TypeError: class constructor cannot called without 'new'` when the slot renders. It compiles and the cold start does not hit it (slots usually sit in a Success / has-data branch). Move the component into a `@Builder X()` of this component (use `@LocalBuilder` when it reads parent state) and pass `prop: () => { this.X() }`; when it does not read this, `prop: this.X` works too. When the capitalised name called in the arrow is really a @Builder function from a source this check cannot resolve (e.g. a re-export), write `// ARROW-SLOT: <evidence>` above the property to close this rule.
728
+ - Downgrade marker: `// ARROW-SLOT: <basis>`
729
+
730
+ ### builder-param-bare-method-ref
731
+
732
+ - Level: GATE
733
+ - Needs: —
734
+ - Knowledge card: `references/cards/state.md`
735
+ - Trigger: a **custom component** (a struct declared in this file or imported) receives `prop: this.X` in its constructor argument, where X is this component's `@Builder` (not `@LocalBuilder`) and X's body reads `this.`.
736
+ - Fix: Inside a @Builder, `this` is the component at the **actual call site**: once `this.X` is handed to a child's @BuilderParam, X runs in the child and `this.foo` reads the child → an `undefined is not callable` crash or the child's field of the same name (FAQ "Error message: undefined is not callable when calling this in BuilderParam"). Write `prop: () => { this.X() }` (the arrow body may **only** call a @Builder; components go inside X, see builder-param-arrow-inline-component), or declare X with `@LocalBuilder` (its `this` stays the declaring component). When X's `this` reads only members the child also has, write `// BUILDER-THIS: <basis>` above the call site to close this rule.
737
+ - Downgrade marker: `// BUILDER-THIS: <basis>`
738
+
541
739
  ### builder-param-by-value
542
740
 
543
741
  - Level: GATE / CAND
@@ -547,6 +745,24 @@ A downgrade marker is written above the hit line (with the colon and the basis),
547
745
  - Fix: read `this.xxx` directly inside the Builder, or switch to a single object-literal parameter, or, with several parameters, pass `UIUtils.makeBinding<T>(() => this.x)`, declare the parameter as `Binding<T>` and read `.value` inside the Builder (API 20+, `arkts-builder` §Passing parameters by callback), or turn it into a `@Component` + `@Prop`. When you have confirmed the arguments do not change with state, write `// BUILDER-STATIC: <basis>` above the call site to downgrade it to CAND.
548
746
  - Downgrade marker: `// BUILDER-STATIC: <basis>`
549
747
 
748
+ ### controlled-input-conditional-writeback
749
+
750
+ - Level: GATE / CAND
751
+ - Needs: —
752
+ - Knowledge card: `references/cards/state.md`
753
+ - Trigger: a `TextInput`/`TextArea`/`Search` binds `text` one way to `this.x`, the assignment to `this.x` in `onChange` does not run on every path (if/else with every arm assigning, or an assignment in a try block, count as every path), and the callback makes no `this.…(…)` call that hands the new value on: GATE when the value written is derived from the parameter (ordinary input never writes back and the state keeps its old value); CAND when the parameter itself is written back only when a check passes (`if (ok(v)) this.x = v`: rejected input stays in the field while the state keeps the previous value).
754
+ - Fix: The displayed value of an ArkUI input is kept by the component itself; without a write-back in `onChange` the state variable does not follow (TextInput reference, text parameter; FAQ "How to fix abnormal TextInput input limits"). Compose `onValueChange = { v -> val f = filter(v); if (f != v) state = f }` / "assign after filtering" becomes a write of the filtered result on **every path**: `const f = filter(v); this.x = f;`, or a `text: $$this.x` / `!!` two-way binding plus `inputFilter`. For the validation-guard CAND (`if (ok(v)) this.x = v`), refuse the input with `.inputFilter(…)` when the Android side did.
755
+ - Downgrade marker: none
756
+
757
+ ### dialog-controller-v2-builder
758
+
759
+ - Level: GATE
760
+ - Needs: —
761
+ - Knowledge card: `references/cards/state.md`
762
+ - Trigger: `new CustomDialogController({ builder: X(...) })` is written in a `@ComponentV2` component, or the builder target X is `@ComponentV2` (not `@CustomDialog`).
763
+ - Fix: CustomDialog reference: CustomDialogController is valid only as a member of a @CustomDialog / @Component struct and assigned inside a @Component, and the builder must be a @CustomDialog. In a V2 page use `this.getUIContext().getPromptAction().openCustomDialog(new ComponentContent(uiContext, wrapBuilder(fn), params), options)`, whose builder may instantiate a @ComponentV2 component; close it with closeCustomDialog(contentNode).
764
+ - Downgrade marker: none
765
+
550
766
  ### observedv2-without-trace
551
767
 
552
768
  - Level: GATE
@@ -677,6 +893,15 @@ A downgrade marker is written above the hit line (with the colon and the basis),
677
893
  - Fix: wrap it in a built-in container — `Column() { Name({ … }) }`.width('100%').height('100%'). If Name itself is already 100%/100%, this wrapper is layout-transparent and changes no visible geometry
678
894
  - Downgrade marker: none
679
895
 
896
+ ### image-source-typed-array
897
+
898
+ - Level: GATE
899
+ - Needs: —
900
+ - Knowledge card: `references/cards/resources.md`
901
+ - Trigger: The argument of `createImageSource(x)` is a `Uint8Array`: `decodeSync(…)` / `new Uint8Array(…)` passed directly, or a variable in the same file declared `: Uint8Array` or assigned from either of those.
902
+ - Fix: The buffer overload accepts only `ArrayBuffer` (`createImageSource(buf: ArrayBuffer)` in the `@ohos.multimedia.image` d.ts); the compiler lets a `Uint8Array` through by structural typing and decoding fails at runtime. Pass `bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength)`: plain `bytes.buffer` brings in extra bytes when the view has an offset. Do not silently return null on a decode failure; log it and re-fetch.
903
+ - Downgrade marker: none
904
+
680
905
  ### request-permission-schema
681
906
 
682
907
  - Level: GATE