@buaa_smat/hometrans 0.1.16 → 0.1.19

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 (235) hide show
  1. package/README.md +162 -54
  2. package/agents/code-reviewer.md +321 -65
  3. package/agents/logic-coder.md +113 -88
  4. package/agents/logic-context-builder.md +47 -29
  5. package/agents/scripts/hmos-precheck/backends/arkts.mjs +567 -0
  6. package/agents/scripts/hmos-precheck/backends/arkts_diff.mjs +159 -0
  7. package/agents/scripts/hmos-precheck/backends/arkts_project_rules.mjs +398 -0
  8. package/agents/scripts/hmos-precheck/backends/codelinter.mjs +250 -0
  9. package/agents/scripts/hmos-precheck/backends/project_integrity.mjs +321 -0
  10. package/agents/scripts/hmos-precheck/backends/static_precheck.mjs +247 -0
  11. package/agents/scripts/hmos-precheck/core/config.mjs +184 -0
  12. package/agents/scripts/hmos-precheck/core/diagnostic_scope.mjs +20 -0
  13. package/agents/scripts/hmos-precheck/core/process_adapter.mjs +47 -0
  14. package/agents/scripts/hmos-precheck/core/project_catalog.mjs +50 -0
  15. package/agents/scripts/hmos-precheck/core/result_projection.mjs +147 -0
  16. package/agents/scripts/hmos-precheck/core/scope_plan.mjs +131 -0
  17. package/agents/scripts/hmos-precheck/core/sdk_context.mjs +67 -0
  18. package/agents/scripts/hmos-precheck/docs/architecture.md +37 -0
  19. package/agents/scripts/hmos-precheck/docs/performance-optimization.md +28 -0
  20. package/agents/scripts/hmos-precheck/docs/upstream-reference.json +19 -0
  21. package/agents/scripts/hmos-precheck/docs/validation.md +50 -0
  22. package/agents/scripts/hmos-precheck/index.mjs +17 -0
  23. package/agents/scripts/hmos-precheck/invocation.mjs +231 -0
  24. package/agents/scripts/hmos-precheck/rules/rule_case_matrix.csv +32 -0
  25. package/agents/scripts/hmos-precheck/rules/rule_inventory.csv +64 -0
  26. package/agents/scripts/hmos-precheck/rules/rule_inventory.mjs +59 -0
  27. package/agents/scripts/hmos-precheck/rules/rule_policy.mjs +54 -0
  28. package/agents/scripts/platform_query.mjs +626 -0
  29. package/agents/scripts/platform_query.test.mjs +422 -0
  30. package/agents/self-test-fixer.md +36 -34
  31. package/agents/self-tester.md +123 -143
  32. package/agents/test-case-generation-generator.md +317 -0
  33. package/agents/test-case-generation-validator.md +231 -0
  34. package/dist/cli/config-store.js +16 -63
  35. package/dist/cli/env-vars.js +1 -3
  36. package/dist/cli/index.js +0 -11
  37. package/dist/cli/init.js +127 -144
  38. package/dist/cli/uninstall.js +76 -110
  39. package/dist/utils/regex.js +8 -0
  40. package/env-requirements.json +55 -54
  41. package/package.json +6 -6
  42. package/resource/convert_pipeline_process.svg +103 -0
  43. package/resource/project_architecture.svg +122 -0
  44. package/resource/title_dark.png +0 -0
  45. package/skills/hmos-batch-ui-align/SKILL.md +345 -41
  46. package/skills/hmos-batch-ui-align/references/conversion-procedure.md +661 -180
  47. package/skills/hmos-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +2533 -2533
  48. package/skills/hmos-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +555 -555
  49. package/skills/hmos-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +117 -117
  50. package/skills/hmos-batch-ui-align/references/mvvm/@Link/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/217/214/345/220/221/345/220/214/346/255/245.md +648 -648
  51. package/skills/hmos-batch-ui-align/references/mvvm/@Observed/350/243/205/351/245/260/345/231/250/345/222/214@ObjectLink/350/243/205/351/245/260/345/231/250/357/274/232/345/265/214/345/245/227/347/261/273/345/257/271/350/261/241/345/261/236/346/200/247/345/217/230/345/214/226.md +2088 -2088
  52. package/skills/hmos-batch-ui-align/references/mvvm/@Prop/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/215/225/345/220/221/345/220/214/346/255/245.md +1033 -1033
  53. package/skills/hmos-batch-ui-align/references/mvvm/@Provide/350/243/205/351/245/260/345/231/250/345/222/214@Consume/350/243/205/351/245/260/345/231/250/357/274/232/344/270/216/345/220/216/344/273/243/347/273/204/344/273/266/345/217/214/345/220/221/345/220/214/346/255/245.md +1183 -1183
  54. package/skills/hmos-batch-ui-align/references/mvvm/@State/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/347/212/266/346/200/201.md +576 -576
  55. package/skills/hmos-batch-ui-align/references/mvvm/@Track/350/243/205/351/245/260/345/231/250/357/274/232class/345/257/271/350/261/241/345/261/236/346/200/247/347/272/247/346/233/264/346/226/260.md +297 -297
  56. package/skills/hmos-batch-ui-align/references/mvvm/@Watch/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/346/233/264/346/224/271/351/200/232/347/237/245.md +395 -395
  57. package/skills/hmos-batch-ui-align/references/mvvm/AppStorage/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200/347/232/204UI/347/212/266/346/200/201/345/255/230/345/202/250.md +902 -902
  58. package/skills/hmos-batch-ui-align/references/mvvm/Environment/357/274/232/350/256/276/345/244/207/347/216/257/345/242/203/346/237/245/350/257/242.md +106 -106
  59. package/skills/hmos-batch-ui-align/references/mvvm/LocalStorage/357/274/232/351/241/265/351/235/242/347/272/247UI/347/212/266/346/200/201/345/255/230/345/202/250.md +1178 -1178
  60. package/skills/hmos-batch-ui-align/references/mvvm/MVVM/346/250/241/345/274/217/357/274/210V1/357/274/211.md +911 -911
  61. package/skills/hmos-batch-ui-align/references/mvvm/PersistentStorage/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +354 -354
  62. package/skills/hmos-batch-ui-align/references/mvvm//347/256/241/347/220/206/345/272/224/347/224/250/346/213/245/346/234/211/347/232/204/347/212/266/346/200/201/346/246/202/350/277/260.md +11 -11
  63. package/skills/hmos-batch-ui-align/references/mvvm-v2/!!/350/257/255/346/263/225/357/274/232/345/217/214/345/220/221/347/273/221/345/256/232.md +206 -0
  64. package/skills/hmos-batch-ui-align/references/mvvm-v2/@Computed/350/243/205/351/245/260/345/231/250/357/274/232/350/256/241/347/256/227/345/261/236/346/200/247.md +373 -0
  65. package/skills/hmos-batch-ui-align/references/mvvm-v2/@Event/350/243/205/351/245/260/345/231/250/357/274/232/350/247/204/350/214/203/347/273/204/344/273/266/350/276/223/345/207/272.md +158 -0
  66. package/skills/hmos-batch-ui-align/references/mvvm-v2/@Local/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/351/203/250/347/212/266/346/200/201.md +750 -0
  67. package/skills/hmos-batch-ui-align/references/mvvm-v2/@Monitor/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/344/277/256/346/224/271/345/274/202/346/255/245/347/233/221/345/220/254.md +1704 -0
  68. package/skills/hmos-batch-ui-align/references/mvvm-v2/@ObservedV2/350/243/205/351/245/260/345/231/250/345/222/214@Trace/350/243/205/351/245/260/345/231/250/357/274/232/347/261/273/345/261/236/346/200/247/345/217/230/345/214/226/350/247/202/346/265/213.md +1012 -0
  69. package/skills/hmos-batch-ui-align/references/mvvm-v2/@Once/350/243/205/351/245/260/345/231/250/357/274/232/345/210/235/345/247/213/345/214/226/345/220/214/346/255/245/344/270/200/346/254/241.md +164 -0
  70. package/skills/hmos-batch-ui-align/references/mvvm-v2/@Param/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/244/226/351/203/250/350/276/223/345/205/245.md +840 -0
  71. package/skills/hmos-batch-ui-align/references/mvvm-v2/@Provider/350/243/205/351/245/260/345/231/250/345/222/214@Consumer/350/243/205/351/245/260/345/231/250/357/274/232/350/267/250/347/273/204/344/273/266/345/261/202/347/272/247/345/217/214/345/220/221/345/220/214/346/255/245.md +856 -0
  72. package/skills/hmos-batch-ui-align/references/mvvm-v2/@Type/350/243/205/351/245/260/345/231/250/357/274/232/346/240/207/350/256/260/347/261/273/345/261/236/346/200/247/347/232/204/347/261/273/345/236/213.md +83 -0
  73. package/skills/hmos-batch-ui-align/references/mvvm-v2/AppStorageV2/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200UI/347/212/266/346/200/201/345/255/230/345/202/250.md +294 -0
  74. package/skills/hmos-batch-ui-align/references/mvvm-v2/MVVM/346/250/241/345/274/217/357/274/210V2/357/274/211.md +1407 -0
  75. package/skills/hmos-batch-ui-align/references/mvvm-v2/PersistenceV2/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +1220 -0
  76. package/skills/hmos-batch-ui-align/references/mvvm-v2/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +47 -0
  77. package/skills/hmos-batch-ui-align/references/mvvm-v2/_/350/243/205/351/245/260/345/231/250/351/200/237/346/237/245.md +133 -0
  78. package/skills/hmos-batch-ui-align/references/mvvm-v2//347/212/266/346/200/201/347/256/241/347/220/206V1/345/220/221V2/350/277/201/347/247/273/344/270/216/346/267/267/347/224/250/346/214/207/345/257/274.md +840 -0
  79. package/skills/hmos-batch-ui-align/scripts/android_parse_fast.ts +1798 -0
  80. package/skills/hmos-batch-ui-align/scripts/arkts_static_check.ts +1592 -0
  81. package/skills/hmos-batch-ui-align/scripts/measure_pack.ts +752 -0
  82. package/skills/hmos-convert-pipeline/SKILL.md +168 -121
  83. package/skills/hmos-fix-build-errors/SKILL.md +87 -67
  84. package/skills/hmos-fix-build-errors/references/arkts-strict-patterns.md +219 -219
  85. package/skills/hmos-fix-build-errors/references/known-patterns.md +157 -157
  86. package/skills/hmos-fix-build-errors/references/rdb-entity-pattern.md +131 -131
  87. package/skills/hmos-incremental-ui-align/README.md +53 -36
  88. package/skills/hmos-incremental-ui-align/SKILL.md +179 -23
  89. package/skills/hmos-incremental-ui-align/diff_analysis.md +52 -52
  90. package/skills/hmos-incremental-ui-align/page_align.md +62 -62
  91. package/skills/hmos-incremental-ui-align/references/Comparison_Template.md +38 -2
  92. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@Link/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/217/214/345/220/221/345/220/214/346/255/245.md +648 -648
  93. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@Observed/350/243/205/351/245/260/345/231/250/345/222/214@ObjectLink/350/243/205/351/245/260/345/231/250/357/274/232/345/265/214/345/245/227/347/261/273/345/257/271/350/261/241/345/261/236/346/200/247/345/217/230/345/214/226.md +2088 -2088
  94. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@Prop/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/215/225/345/220/221/345/220/214/346/255/245.md +1033 -1033
  95. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@Provide/350/243/205/351/245/260/345/231/250/345/222/214@Consume/350/243/205/351/245/260/345/231/250/357/274/232/344/270/216/345/220/216/344/273/243/347/273/204/344/273/266/345/217/214/345/220/221/345/220/214/346/255/245.md +1183 -1183
  96. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@State/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/347/212/266/346/200/201.md +576 -576
  97. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@Track/350/243/205/351/245/260/345/231/250/357/274/232class/345/257/271/350/261/241/345/261/236/346/200/247/347/272/247/346/233/264/346/226/260.md +297 -297
  98. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@Watch/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/346/233/264/346/224/271/351/200/232/347/237/245.md +395 -395
  99. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/AppStorage/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200/347/232/204UI/347/212/266/346/200/201/345/255/230/345/202/250.md +902 -902
  100. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/Environment/357/274/232/350/256/276/345/244/207/347/216/257/345/242/203/346/237/245/350/257/242.md +106 -106
  101. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/LocalStorage/357/274/232/351/241/265/351/235/242/347/272/247UI/347/212/266/346/200/201/345/255/230/345/202/250.md +1178 -1178
  102. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/MVVM/346/250/241/345/274/217V1.md +911 -911
  103. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/PersistentStorage/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +354 -354
  104. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243//347/256/241/347/220/206/345/272/224/347/224/250/346/213/245/346/234/211/347/232/204/347/212/266/346/200/201/346/246/202/350/277/260.md +11 -11
  105. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/!!/350/257/255/346/263/225/357/274/232/345/217/214/345/220/221/347/273/221/345/256/232.md +206 -0
  106. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Computed/350/243/205/351/245/260/345/231/250/357/274/232/350/256/241/347/256/227/345/261/236/346/200/247.md +373 -0
  107. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Event/350/243/205/351/245/260/345/231/250/357/274/232/350/247/204/350/214/203/347/273/204/344/273/266/350/276/223/345/207/272.md +158 -0
  108. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Local/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/351/203/250/347/212/266/346/200/201.md +750 -0
  109. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Monitor/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/344/277/256/346/224/271/345/274/202/346/255/245/347/233/221/345/220/254.md +1704 -0
  110. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@ObservedV2/350/243/205/351/245/260/345/231/250/345/222/214@Trace/350/243/205/351/245/260/345/231/250/357/274/232/347/261/273/345/261/236/346/200/247/345/217/230/345/214/226/350/247/202/346/265/213.md +1012 -0
  111. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Once/350/243/205/351/245/260/345/231/250/357/274/232/345/210/235/345/247/213/345/214/226/345/220/214/346/255/245/344/270/200/346/254/241.md +164 -0
  112. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Param/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/244/226/351/203/250/350/276/223/345/205/245.md +840 -0
  113. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Provider/350/243/205/351/245/260/345/231/250/345/222/214@Consumer/350/243/205/351/245/260/345/231/250/357/274/232/350/267/250/347/273/204/344/273/266/345/261/202/347/272/247/345/217/214/345/220/221/345/220/214/346/255/245.md +856 -0
  114. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Type/350/243/205/351/245/260/345/231/250/357/274/232/346/240/207/350/256/260/347/261/273/345/261/236/346/200/247/347/232/204/347/261/273/345/236/213.md +83 -0
  115. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/AppStorageV2/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200UI/347/212/266/346/200/201/345/255/230/345/202/250.md +294 -0
  116. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/MVVM/346/250/241/345/274/217/357/274/210V2/357/274/211.md +1407 -0
  117. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/PersistenceV2/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +1220 -0
  118. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +47 -0
  119. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2//347/212/266/346/200/201/347/256/241/347/220/206V1/345/220/221V2/350/277/201/347/247/273/344/270/216/346/267/267/347/224/250/346/214/207/345/257/274.md +840 -0
  120. package/skills/hmos-incremental-ui-align/references/State_Model_Template.md +74 -0
  121. package/skills/hmos-incremental-ui-align/references/UI_Analysis_Template.md +34 -4
  122. package/skills/hmos-incremental-ui-align/references/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +2533 -2533
  123. package/skills/hmos-incremental-ui-align/references/android-to-harmonyOS-ui-interaction-mapping-reference.md +555 -555
  124. package/skills/hmos-incremental-ui-align/references/android-to-harmonyOS-ui-layout-mapping-reference.md +117 -117
  125. package/skills/hmos-incremental-ui-align/scripts/app_feature_verify.ts +937 -0
  126. package/skills/hmos-incremental-ui-align/scripts/extract_checklist.ts +343 -0
  127. package/skills/hmos-incremental-ui-align/scripts/navigation-capure.md +44 -5
  128. package/skills/hmos-incremental-ui-align/scripts/page_capture.ts +977 -0
  129. package/skills/hmos-incremental-ui-align/scripts/page_capture_burst.ts +188 -0
  130. package/skills/hmos-integration-test/README.md +61 -70
  131. package/skills/hmos-integration-test/SKILL.md +128 -111
  132. package/skills/hmos-resources-convert/SKILL.md +334 -66
  133. package/skills/hmos-resources-convert/references/code-vector-icon-rules.md +335 -0
  134. package/skills/hmos-resources-convert/references/conversion-rules.md +676 -663
  135. package/skills/hmos-resources-convert/references/dependency-analysis-rules.md +410 -388
  136. package/skills/hmos-resources-convert/references/lottie-conversion-rules.md +219 -0
  137. package/skills/hmos-resources-convert/references/resource-mapping-rules.md +482 -457
  138. package/skills/hmos-resources-convert/references/xml-drawable-to-svg-rules.md +592 -513
  139. package/skills/hmos-resources-convert/scripts/a2h_resource_convert.ts +2163 -0
  140. package/skills/hmos-resources-convert/scripts/code_vector_icons.ts +591 -0
  141. package/skills/hmos-resources-convert/scripts/svg_fidelity_check.ts +632 -0
  142. package/skills/hmos-spec-generate/SKILL.md +293 -214
  143. package/skills/hmos-spec-generate/scripts/parse_requirements.ts +515 -0
  144. package/skills/hmos-spec-generate/template/REQ.txt +22 -0
  145. package/skills/hmos-spec-generate/template/REQ.xlsx +0 -0
  146. package/skills/hmos-test-case-generation/README.md +241 -0
  147. package/skills/hmos-test-case-generation/SKILL.md +324 -0
  148. package/skills/hmos-test-case-generation/references/contract.md +315 -0
  149. package/skills/hmos-test-case-generation/references/review-notes-template.md +84 -0
  150. package/skills/hmos-test-case-generation/references/ui-elements-schema.md +142 -0
  151. package/skills/hmos-test-case-generation/tools/convert_to_ui_elements.ts +550 -0
  152. package/skills/hmos-test-case-generation/tools/validate.ts +1312 -0
  153. package/tools/bfs-crawl/README.md +73 -0
  154. package/tools/bfs-crawl/android_viewtree_bfs_crawler.ts +1662 -0
  155. package/tools/test-tools/autotest/config.ts +175 -0
  156. package/tools/test-tools/autotest/deps/autotest-agent-0.1.1.tgz +0 -0
  157. package/tools/test-tools/autotest/docs/README.md +266 -0
  158. package/tools/test-tools/autotest/{testcases_schema.md → docs/testcases_schema.md} +1 -1
  159. package/tools/test-tools/autotest/engine/batch-launcher.ts +327 -0
  160. package/tools/test-tools/autotest/engine/report-tool.ts +773 -0
  161. package/tools/test-tools/autotest/engine/self-test-runner.ts +961 -0
  162. package/tools/test-tools/autotest/engine/testcases-tool.ts +246 -0
  163. package/tools/test-tools/autotest/paths.ts +41 -0
  164. package/tools/test-tools/autotest/resolve-metadata-tool.ts +143 -0
  165. package/tools/test-tools/autotest/runner/logger.ts +45 -0
  166. package/tools/test-tools/autotest/runner/process-utils.ts +41 -0
  167. package/tools/test-tools/autotest/validate.ts +167 -0
  168. package/agents/build-fixer.md +0 -385
  169. package/agents/logic-coder/scripts/platform_context_query.py +0 -568
  170. package/agents/review-fixer.md +0 -405
  171. package/agents/spec-generator.md +0 -541
  172. package/dist/cli/mcp-setup.js +0 -258
  173. package/dist/cli/mcp.js +0 -94
  174. package/dist/context/index.js +0 -694
  175. package/resource/migration_process.svg +0 -94
  176. package/resource/migration_process_transparent.svg +0 -93
  177. package/skills/hmos-batch-ui-align/scripts/android_parse_fast.py +0 -1606
  178. package/skills/hmos-incremental-ui-align/scripts/__pycache__/app_feature_verify.cpython-314.pyc +0 -0
  179. package/skills/hmos-incremental-ui-align/scripts/app_feature_verify.py +0 -542
  180. package/skills/hmos-incremental-ui-align/scripts/page_capture.py +0 -597
  181. package/skills/hmos-resources-convert/evals/evals.json +0 -171
  182. package/skills/hmos-resources-convert/template/AppScope/app.json5 +0 -10
  183. package/skills/hmos-resources-convert/template/AppScope/resources/base/element/string.json +0 -8
  184. package/skills/hmos-resources-convert/template/AppScope/resources/base/media/background.png +0 -0
  185. package/skills/hmos-resources-convert/template/AppScope/resources/base/media/foreground.png +0 -0
  186. package/skills/hmos-resources-convert/template/AppScope/resources/base/media/layered_image.json +0 -7
  187. package/skills/hmos-resources-convert/template/build-profile.json5 +0 -42
  188. package/skills/hmos-resources-convert/template/code-linter.json5 +0 -32
  189. package/skills/hmos-resources-convert/template/entry/build-profile.json5 +0 -33
  190. package/skills/hmos-resources-convert/template/entry/hvigorfile.ts +0 -6
  191. package/skills/hmos-resources-convert/template/entry/obfuscation-rules.txt +0 -23
  192. package/skills/hmos-resources-convert/template/entry/oh-package.json5 +0 -10
  193. package/skills/hmos-resources-convert/template/entry/src/main/ets/entryability/EntryAbility.ets +0 -48
  194. package/skills/hmos-resources-convert/template/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets +0 -16
  195. package/skills/hmos-resources-convert/template/entry/src/main/ets/pages/Index.ets +0 -23
  196. package/skills/hmos-resources-convert/template/entry/src/main/module.json5 +0 -55
  197. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/element/color.json +0 -8
  198. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/element/float.json +0 -8
  199. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/element/string.json +0 -16
  200. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/media/background.png +0 -0
  201. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/media/foreground.png +0 -0
  202. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/media/layered_image.json +0 -7
  203. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/media/startIcon.png +0 -0
  204. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/profile/backup_config.json +0 -3
  205. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/profile/main_pages.json +0 -5
  206. package/skills/hmos-resources-convert/template/entry/src/main/resources/dark/element/color.json +0 -8
  207. package/skills/hmos-resources-convert/template/entry/src/mock/mock-config.json5 +0 -2
  208. package/skills/hmos-resources-convert/template/entry/src/ohosTest/ets/test/Ability.test.ets +0 -35
  209. package/skills/hmos-resources-convert/template/entry/src/ohosTest/ets/test/List.test.ets +0 -5
  210. package/skills/hmos-resources-convert/template/entry/src/ohosTest/module.json5 +0 -16
  211. package/skills/hmos-resources-convert/template/entry/src/test/List.test.ets +0 -5
  212. package/skills/hmos-resources-convert/template/entry/src/test/LocalUnit.test.ets +0 -33
  213. package/skills/hmos-resources-convert/template/hvigor/hvigor-config.json5 +0 -23
  214. package/skills/hmos-resources-convert/template/hvigorfile.ts +0 -6
  215. package/skills/hmos-resources-convert/template/oh-package-lock.json5 +0 -28
  216. package/skills/hmos-resources-convert/template/oh-package.json5 +0 -10
  217. package/skills/hmos-resources-convert/tools/apktool.bat +0 -85
  218. package/skills/hmos-resources-convert/tools/apktool_3.0.1.jar +0 -0
  219. package/skills/hmos-spec-generate/references/android-platform-tokens.md +0 -105
  220. package/skills/hmos-spec-generate/references/spec-sample-1.md +0 -78
  221. package/skills/hmos-spec-generate/references/spec-sample-2.md +0 -58
  222. package/skills/hmos-spec-generate/references/spec-sample-3.md +0 -116
  223. package/skills/hmos-spec-generate/references/step4-report-template.md +0 -33
  224. package/tools/test-tools/autotest/README.md +0 -238
  225. package/tools/test-tools/autotest/pyproject.toml +0 -26
  226. package/tools/test-tools/autotest/report_tool.py +0 -759
  227. package/tools/test-tools/autotest/self_test_runner.py +0 -895
  228. package/tools/test-tools/autotest/testcases_tool.py +0 -215
  229. package/tools/test-tools/autotest/uv.lock +0 -3156
  230. package/tools/test-tools/harmony_autotest-0.1.0-py3-none-any.whl +0 -0
  231. package/tools/test-tools/hypium-6.1.0.210-py3-none-any.whl +0 -0
  232. package/tools/test-tools/hypium_mcp-0.6.5-py3-none-any.whl +0 -0
  233. package/tools/test-tools/xdevice-6.1.0.210-py3-none-any.whl +0 -0
  234. package/tools/test-tools/xdevice_devicetest-6.1.0.210-py3-none-any.whl +0 -0
  235. package/tools/test-tools/xdevice_ohos-6.1.0.210-py3-none-any.whl +0 -0
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: logic-coder
3
3
  description: "Execute the HarmonyOS ArkTS app contract without reopening design choices."
4
- color: blue
5
- min-model: sonnet
4
+ color: primary
5
+ mode: subagent
6
6
  ---
7
7
 
8
8
  ## Inputs
@@ -10,31 +10,44 @@ min-model: sonnet
10
10
  - `plan_file` = `{output_path}/plan.md`
11
11
  - `harmony_project_dir` (abs)
12
12
  - `output_path` (abs)
13
- - `plugin_path` (abs) — plugin root; `{scripts}` = `{plugin_path}/agents/logic-coder/scripts/`
13
+ - `scripts_path` (abs) — shared agent scripts directory
14
14
 
15
15
  ## Tools
16
16
 
17
17
  Platform context query:
18
18
 
19
- uv run --no-project python {scripts}/platform_context_query.py \
19
+ node {scripts_path}/platform_query.mjs \
20
20
  --request {output_path}/platform-context-request.json \
21
- --out-dir {output_path}/platform-context-{N}
21
+ --out-dir {output_path}/coder-platform-context-{N}
22
22
 
23
- Unique `{N}` per query; do not reuse out-dir. Request JSON: `stage` ("coder"),
24
- `focus_point`, `task_excerpt`, `project_evidence`, `platform_surfaces`,
25
- `extra_constraints`, optional `api_level`. Read `structured_evidence` first from
26
- `platform-context-result.json`; use raw `evidence` only if needed. Follow-up
27
- only if the first result does not resolve a specific local API constraint.
23
+ Unique `{N}` per query; do not reuse out-dir. Emit canonical names and arrays
24
+ exactly as shown:
25
+
26
+ ```json
27
+ {"stage":"coder","focus_point":"...","task_excerpt":"...","project_evidence":"...","platform_surfaces":["..."],"extra_constraints":["..."],"api_level":22}
28
+ ```
29
+
30
+ Read
31
+ `{output_path}/coder-platform-context-{N}/platform-context-result.json`, use
32
+ `structured_evidence` first, run once by default, and allow at most one
33
+ follow-up only if the first result's `structured_evidence` cannot answer the
34
+ specific correctness dimension that triggered the query. Never search local
35
+ SDK/DevEco paths.
36
+
37
+ HarmonyOS project precheck:
38
+
39
+ node {scripts_path}/hmos-precheck/index.mjs run \
40
+ --project-root {harmony_project_dir} \
41
+ --output-dir {output_path}/precheck \
42
+ --base-ref HEAD
28
43
 
29
44
  ## Contract
30
45
 
31
46
  Coder executes the narrowed `plan.md` contract: verify local facts, patch the
32
- approved path, validate, commit, or report the blocker.
47
+ approved path, validate, commit the completed main path or a truthful in-scope
48
+ checkpoint, and write `commit-info.md`.
33
49
 
34
- Do not reread SPEC, rewrite the plan, choose architecture, substitute
35
- target/owner/access/fallback, expand scope, or turn blockers into soft notes. Do
36
- not invent APIs, symbols, state, data, or success paths. If truthful closure is
37
- blocked, write the gap instead of fake completion.
50
+ If truthful closure is blocked, keep the gap explicit instead of fake completion.
38
51
 
39
52
  ## Procedure
40
53
 
@@ -45,32 +58,30 @@ blocked, write the gap instead of fake completion.
45
58
  4. Patch only plan-required behavior.
46
59
  5. Validate (per Validate And Output). Stage only plan-required files; do not
47
60
  use `git add -A`.
48
- 6. Commit with a non-interactive message naming the decision contract.
49
- 7. Write `{output_path}/commit-info.md` with `commit_id: <full hash>`.
50
- 8. Write `{output_path}/issues.md` only for blocking `Unknown`,
51
- repo-vs-plan contradiction, platform drift, missing proof, or validation
52
- failure.
53
-
54
- Never ask. Never commit outside plan scope.
61
+ 6. Commit with a non-interactive message naming the decision contract. If the
62
+ diff is empty, do not create an empty commit; write `commit_id: none` and
63
+ `summary: no code change required` into `commit-info.md`. Otherwise commit
64
+ the completed main path when it is proven, or the safest truthful in-scope
65
+ checkpoint when safe progress exists. Do not let a checkpoint read like full
66
+ closure.
67
+ 7. Write `{output_path}/commit-info.md` with:
68
+ - `commit_id`: `<full hash>` or `none`
69
+ - `summary`: `none` or the most important unresolved/degraded fact
70
+
71
+ Never ask. Never commit outside plan scope. If a required fact cannot be
72
+ resolved through local evidence, plan evidence, or a platform query, record it
73
+ in `commit-info.md` and keep the result at checkpoint.
55
74
 
56
75
  ## Read Scope
57
76
 
58
- After `plan_file`, read only plan-named files, direct imports/exports, needed
59
- symbol/type definitions, current producer/owner/consumer/target display,
60
- same-pattern local code, build-error files, and plan-named platform evidence.
77
+ Read files and symbols named in the plan's Edit Plan. When a plan-stated fact
78
+ needs confirmation at its declaration site, expand to that direct dependency.
61
79
 
62
- Do not scan lookalike routes, adjacent surfaces, global stores, or alternate
63
- owners unless a plan-required fact is directly contradicted. Proof-driven
64
- expansion is allowed: read along plan-declared writer/consumer chains to verify
65
- the plan contract is executable, and when editing a shared function/interface/
66
- export, read its direct callers to verify signature compatibility and equivalent
67
- wiring of plan-required behavior. Expansion is
68
- proof, not planning.
69
-
70
- Efficiency: read plan-named files at default limit; do not set a smaller
71
- limit. For non-plan files, locate the target first and read only the relevant
72
- section. If an edit fails once, change strategy immediately; do not retry the
73
- same old_string.
80
+ When owner/source, write path, intermediate state, or a shared export changes,
81
+ expand to the minimum writer/consumer chain needed to verify the plan's stated
82
+ owner is the truth owner. This expansion may reveal writers or consumers the
83
+ plan did not list; if so, record the gap in `commit-info.md` and keep at
84
+ checkpoint — do not attempt to patch unlisted paths.
74
85
 
75
86
  ## Verification
76
87
 
@@ -89,7 +100,6 @@ Map the plan contract to code and verify:
89
100
  - target consumption
90
101
  - protected non-target reachability
91
102
  - nearby same-pattern support
92
-
93
103
  Sentinel rules (flag for Platform Behavior, do not resolve here):
94
104
  - new API call pattern whose parameter combination, conflict mode, return
95
105
  semantics, or NULL behavior does not appear in existing project code
@@ -123,59 +133,59 @@ ArkTS floor (static family card):
123
133
 
124
134
  ### Semantic Closure
125
135
 
126
- Trigger when the edit changes a write/read path or intermediate state of a
127
- field/action with writers and consumers; involves persistence-backed display,
128
- fallback/default, missing/current, or async states; or introduces a new writer
129
- for a field/action with existing consumers.
136
+ Verification phase focus: owner/source closure. Do not ignore unresolved Local
137
+ Check findings; they still constrain this phase and final validation. The
138
+ question here is whether the patch wires every writer, consumer, and edge path
139
+ to the plan's stated owner/source.
130
140
 
131
- For each changed field/action, prove one live path covers all bound writers,
132
- producer effect/display, target reader/display, first render/restore, and
133
- missing/current semantics. New writer: also prove return/error semantics
134
- consumed by every direct caller.
141
+ Trigger when the patch changes a write/read path or intermediate state of any
142
+ field/action with writers and consumers, or introduces a new writer for a
143
+ field/action with existing consumers.
135
144
 
136
- Forbidden unless all bound writers/consumers derive same meaning from same
137
- owner/source: mirror/cache as truth, split producer/reader paths, preset/default
138
- masking missing/unset, snapshot/placeholder standing in for owner state.
145
+ For each such field/action, verify against the plan's stated owner/source:
139
146
 
140
- Carrier paths (storage, cache, route params, AppStorage, event buses,
141
- singleton-like access, copied models, persistence, fallback/defaults, bridges,
142
- synchronized variables) are transport — prove truth only if plan promotes and
143
- patch rebinds every bound writer, display, first render, restore, and future
144
- write. Read/render does not prove write/update/delete/restore; lookup/cache/
145
- index/default must not erase or reclassify owner value.
147
+ - all plan-required writers write to the stated owner, not a carrier or cache
148
+ - all plan-required consumers read from the stated owner, not a mirror
149
+ - first render, restore, and missing/unset paths all use the stated owner
150
+ - no existing writer or consumer was left on a prior carrier path
146
151
 
147
- Promoted owner needed → prove it replaces current, first-render, restore, and
148
- future writes. Missing proof → issues.md.
152
+ Forbidden regardless of plan: mirror/cache as truth, split producer/reader
153
+ paths, preset/default masking missing/unset.
149
154
 
150
- ### Platform Behavior
155
+ A gap here is a proof failure — record in `commit-info.md` and keep at
156
+ checkpoint. Do not re-derive which owner to choose; that is the plan's contract.
151
157
 
152
- A local pattern is identical only for the correctness dimensions this task
153
- depends on. If the new use differs in any correctness-relevant dimension not
154
- covered by project evidence, the behavior is not proven.
158
+ ### Platform Behavior
155
159
 
156
- These do not prove platform behavior: same SDK/module but different method;
157
- same method but different parameters; same parameters but different return/
158
- error/null/default semantics consumed by callers; same call pattern but
159
- different conflict behavior, lifecycle assumption, or persistence assumption.
160
+ For each `coder must verify` row, identify the missing evidence before acting:
160
161
 
161
- Plan-mandated: if the plan's platform assumptions marks `coder must verify`,
162
- produce `platform-context-result.json` for that item before patching dependent
163
- code. Cite which local implementation fact the result confirmed, changed, or left
164
- unresolved in `commit-info.md`. Conflicting or unresolved evidence blocks the
165
- dependent edit. If a `proven` row
166
- lacks local evidence or correctness dimensions, treat as `coder must verify`.
162
+ - Platform rule: query before patching dependent code. Conflicting or unresolved
163
+ evidence blocks that edit; do not substitute a new implementation path.
164
+ - Project runtime outcome: use one runtime proposition: initial state + exact
165
+ event/mutation + binding depth + identity/key + lifecycle/async timing + API
166
+ level -> observable effect. A platform query cannot prove this outcome. Use
167
+ matching local execution evidence when available; otherwise implement only
168
+ the already-decided path and keep the commit at checkpoint. Record that one
169
+ runtime verification gap in the final summary.
167
170
 
168
- Self-triggered: any platform assumption used by the edit, including Local Check
169
- sentinels, whose correctness dimensions are not covered by local evidence →
170
- query per Tools before patching.
171
+ If a `proven` row lacks local evidence or correctness dimensions, treat it as
172
+ `coder must verify`. Self-trigger a query only for an uncovered platform rule
173
+ used by the edit, including Local Check sentinels.
171
174
 
172
175
  Scope: platform API, ArkUI, ArkTS, lifecycle, permissions, resources, signing,
173
176
  packaging, build configuration, persistence, NULL/default behavior.
174
177
 
175
178
  Do not re-decide plan-level main/forbidden/fallback. Treat platform query
176
179
  output as evidence, not authority. If evidence conflicts with the plan or
177
- remains unresolved, write `platform_drift` or blocking `Unknown` to
178
- `issues.md`; do not choose a different platform path.
180
+ remains unresolved, do not choose a different platform path.
181
+
182
+ ## Invariants (recency-anchored for commit decision)
183
+
184
+ Do not reread SPEC, rewrite the plan, choose architecture, substitute
185
+ target/owner/access/fallback, expand scope, or turn blockers into soft notes.
186
+ Do not invent APIs, symbols, state, data, or success paths.
187
+
188
+ Never commit outside plan scope.
179
189
 
180
190
  ## Validate And Output
181
191
 
@@ -184,16 +194,31 @@ Before commit, remap the final diff to the plan and name code-level proof that:
184
194
  - changed files stay in scope
185
195
  - target consumes the changed path
186
196
  - forbidden owner/carrier/fallback/scope did not appear
187
- - plan-named completion evidence holds, including triggered semantic closure and
188
- async intermediate states when applicable
197
+ - plan-named completion evidence holds, including plan-stated write/read path
198
+ and async intermediate states when applicable
189
199
  - protected behavior remains
190
- - platform boundary is not loosened; no unrecorded `platform_drift`
191
- - build/compile has no new failure except documented signing/profile blockers
192
-
193
- If any proof cannot be named from code, do not self-certify completion; write
194
- `issues.md` with `missing_proof` or `validation_failure`.
195
-
196
- `commit-info.md` is required. `issues.md` is only for `blocking_unknown`,
197
- `repo_plan_contradiction`, `platform_drift`, `missing_proof`, or
198
- `validation_failure`; if a safe partial commit exists, name the unimplemented
199
- plan part exactly.
200
+ - platform boundary is not loosened; no unrecorded platform mismatch or
201
+ unresolved platform note
202
+ - local validation in changed scope has no unexplained new code issue
203
+ - if claiming main-path completion, no proof gap remains for target consumption,
204
+ truth owner/source, access path, or plan-named completion evidence
205
+
206
+ For changed ArkTS `.ets` source or HarmonyOS app/module/build/route/page/resource/
207
+ permission configuration, execute the project precheck above. Only `{ok:true}`
208
+ passes. Otherwise read `read_file`; repair only in-scope issues with
209
+ `blocking:true` and `agent_fixable:true`. Rerun at most twice, and stop at
210
+ checkpoint if blockers do not decrease.
211
+
212
+ Try to close the main path before commit. Commit as completed only when target
213
+ consumption, truth owner/source, access path, and plan-named completion
214
+ evidence are proven. If the main path is still open but a safe truthful
215
+ in-scope checkpoint exists, commit that checkpoint instead and keep the
216
+ remaining gap explicit. Do not compress multiple parallel unresolved facts into
217
+ one vague note; continue narrowing until at most one primary carry-forward fact
218
+ remains.
219
+
220
+ `commit-info.md` is always required. Write `commit_id`, and use `summary` only
221
+ for the single remaining carry-forward fact at output time; otherwise write
222
+ `none`. Carry-forward facts include degraded precheck results, unresolved
223
+ platform behavior, or the one proof gap that still keeps the result at
224
+ checkpoint status. Keep it concrete and short.
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: logic-context-builder
3
3
  description: "Constrain HarmonyOS ArkTS app changes into an executable decision contract."
4
- color: blue
5
- min-model: sonnet
4
+ color: primary
5
+ mode: subagent
6
6
  ---
7
7
 
8
8
  ## Inputs
@@ -10,23 +10,31 @@ min-model: sonnet
10
10
  - `spec_file` (abs)
11
11
  - `harmony_project_dir` (abs)
12
12
  - `output_path` (abs)
13
- - `plugin_path` (abs) — plugin root; `{scripts}` = `{plugin_path}/agents/logic-coder/scripts/`
13
+ - `scripts_path` (abs) — shared agent scripts directory
14
14
 
15
15
  ## Tools
16
16
 
17
17
  Platform context query:
18
18
 
19
- uv run --no-project python {scripts}/platform_context_query.py \
19
+ node {scripts_path}/platform_query.mjs \
20
20
  --request {output_path}/platform-context-request.json \
21
- --out-dir {output_path}/platform-context-{N}
21
+ --out-dir {output_path}/planner-platform-context-{N}
22
22
 
23
- Unique `{N}` per query; do not reuse out-dir. Request JSON: `stage`
24
- ("planner"), `focus_point`, `task_excerpt`, `project_evidence`,
25
- `platform_surfaces`, `extra_constraints`, optional `api_level`. Read result from
26
- `platform-context-result.json`; consume `structured_evidence` first, then raw
27
- `evidence` only if needed. The query returns evidence, not authority. Follow-up
28
- only if first result is unknown and blocks the decision. If evidence is missing
29
- or conflicting and the fact blocks, note as blocking `Unknown`.
23
+ Unique `{N}` per query; do not reuse out-dir. Emit canonical names and arrays
24
+ exactly as shown:
25
+
26
+ ```json
27
+ {"stage":"planner","focus_point":"...","task_excerpt":"...","project_evidence":"...","platform_surfaces":["..."],"extra_constraints":["..."],"api_level":22}
28
+ ```
29
+
30
+ Read
31
+ `{output_path}/planner-platform-context-{N}/platform-context-result.json` and
32
+ use `structured_evidence` first. The query returns evidence, not authority. Run
33
+ once by default; at most one follow-up only if the first result still blocks
34
+ the decision. Never search local SDK/DevEco paths. If evidence is missing or
35
+ conflicting and the decision still cannot be closed, note the unresolved point
36
+ briefly. One tool call targets one blocking decision and may request multiple
37
+ evidence types for it (default: `api` + `pattern`).
30
38
 
31
39
  ## Contract
32
40
 
@@ -41,17 +49,22 @@ Emit only the `plan.md` body, starting with `## Decision Contract`.
41
49
 
42
50
  ## Procedure
43
51
 
44
- Causal chain (commit downstream nodes only after upstream is resolved; file
45
- reads may happen in any order but each must advance the next unresolved node):
52
+ Causal chain (commit downstream nodes only after upstream is resolved):
46
53
 
47
54
  ```text
48
55
  requested outcome -> target surface/effect -> truth owner/source -> writer ->
49
56
  reader/consumer -> triggered edge paths -> protected non-target behavior
50
57
  ```
51
58
 
52
- Every read must advance a chain node. Do not read beyond chain-relevant files.
53
- Promote files to edit only after chain justifies them. Use retrieval before
54
- broad local reading.
59
+ Maintain one internal Read Frontier: `question`, `decision impact`, bounded
60
+ `anchors`, and `status` (`open|resolved|blocked`). Read the highest-upstream open
61
+ question whose answer can still change the plan; batch questions only when they
62
+ share an anchor. After each read, resolve, reject, or narrow that question. If
63
+ unchanged evidence does none of these, stop that search pattern. Broaden only
64
+ while the question remains decision-changing and a bounded next anchor exists;
65
+ otherwise record `Unknown`. Do not output the frontier. Promote files to edit
66
+ only after the chain justifies them. Do not use `rg --files`, `find . -name`,
67
+ unscoped `ls`, or feature-term search loops.
55
68
 
56
69
  At any node, trigger as needed:
57
70
  - Project facts narrow the choice (per Project Truth).
@@ -131,24 +144,29 @@ A local pattern is identical only for the correctness dimensions this task
131
144
  depends on. If the new use differs in any correctness-relevant dimension not
132
145
  covered by project evidence, the behavior is not proven.
133
146
 
147
+ For runtime-sensitive behavior, use one runtime proposition: initial state +
148
+ exact event/mutation + binding depth + identity/key + lifecycle/async timing +
149
+ API level -> observable effect. Source occurrence, import resolution,
150
+ compilation, a similar component shape, or a platform query cannot prove this
151
+ project's runtime outcome. `proven` requires local execution evidence covering
152
+ the same dimensions. Otherwise use `coder must verify`; query only the platform
153
+ rule that changes the plan, and block only when that rule remains unresolved.
154
+
134
155
  These do not prove platform behavior: same SDK/module but different method;
135
156
  same method but different parameters; same parameters but different return/
136
157
  error/null/default semantics; same call pattern but different conflict behavior,
137
158
  lifecycle assumption, or persistence assumption.
138
159
 
139
160
  For each chain node that uses a platform API, component, lifecycle,
140
- permission, or persistence behavior: first list the assumed platform behaviors,
141
- then classify each:
142
- 1. Local evidence covers every correctness-relevant dimension → `proven`. Name:
143
- assumed behavior, local evidence, correctness dimensions this task depends
144
- on, why the evidence covers them.
145
- 2. Any required dimension not covered + affects main path, forbidden path,
146
- fallback, edit boundary, or completion evidence → query per Tools → consume
147
- platform evidence. Write Platform Decision only when evidence is consistent
148
- and decision-relevant; otherwise write blocking `Unknown`.
149
- 3. Any required dimension not covered + does not change main path, forbidden
150
- path, fallback, edit boundary, or completion evidence → `coder must verify`.
151
- 4. Query fails or cannot resolve + blocks chain → `blocked Unknown`.
161
+ permission, or persistence behavior, classify each assumed behavior once:
162
+ 1. Local evidence covers it → `proven`. Name the evidence and why it covers
163
+ the dimension.
164
+ 2. It is an uncovered platform rule and changes the plan → query per Tools;
165
+ consistent evidence becomes a Platform Decision, otherwise `Unknown`.
166
+ 3. It is a project runtime outcome, or an uncovered platform rule that does not
167
+ change the plan → `coder must verify`. Runtime outcomes require matching
168
+ execution evidence; platform queries cannot prove them.
169
+ 4. A required platform rule remains unresolved and blocks the chain → `Unknown`.
152
170
 
153
171
  Output in plan.md: Platform Evidence/Decision (when step 2 triggers) + Platform
154
172
  Assumptions table. Each `proven` row must retain: assumed behavior, local