@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.
- package/README.md +1 -1
- package/agents/code-reviewer.md +91 -21
- package/env-requirements.json +1 -1
- package/i18n/agents/code-reviewer.md +93 -21
- package/i18n/skills/a2h-app-migrate/SKILL.md +19 -11
- package/i18n/skills/a2h-app-migrate/references/feature-scope.md +121 -0
- package/i18n/skills/a2h-app-migrate/references/stage-map.md +2 -2
- package/i18n/skills/a2h-app-migrate/references/workflow.yaml +320 -73
- package/i18n/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +78 -5
- package/i18n/skills/a2h-app-migrate/scripts/env_preflight.mjs +79 -11
- package/i18n/skills/a2h-app-migrate/scripts/human_review_gate.mjs +75 -4
- package/i18n/skills/a2h-app-migrate/test/test_android_index.mjs +12 -0
- package/i18n/skills/a2h-app-migrate/test/test_env_requirements.mjs +25 -10
- package/i18n/skills/a2h-app-migrate/test/test_finalize.mjs +35 -7
- package/i18n/skills/a2h-app-migrate/test/test_resume_plan.mjs +52 -0
- package/i18n/skills/a2h-app-migrate/test/test_resume_summary.mjs +26 -0
- package/i18n/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +36 -0
- package/i18n/skills/a2h-app-migrate/test/test_run_dir.mjs +71 -7
- package/i18n/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +117 -0
- package/i18n/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +7 -3
- package/i18n/skills/a2h-app-migrate/test/test_utg_static_done.mjs +38 -2
- package/i18n/skills/a2h-arch-generate/SKILL.md +20 -17
- package/i18n/skills/a2h-arch-generate/references/database-schema-recovery.md +2 -2
- package/i18n/skills/a2h-arch-generate/references/harmony-project-inspection.md +8 -8
- package/i18n/skills/a2h-arch-generate/references/homegraph-workflow.md +25 -14
- package/i18n/skills/a2h-arch-generate/references/source-baseline.md +4 -4
- package/i18n/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +3 -3
- package/i18n/skills/a2h-arkts-logic-coder/SKILL.md +304 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -1
- package/i18n/skills/a2h-arkts-logic-coder/references/code-generation.md +59 -2
- package/i18n/skills/a2h-arkts-logic-coder/references/spec-design.md +52 -11
- package/i18n/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +328 -38
- package/i18n/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +245 -0
- package/i18n/skills/a2h-batch-ui-align/SKILL.md +70 -21
- package/i18n/skills/a2h-batch-ui-align/references/cards/alignment.md +5 -1
- package/i18n/skills/a2h-batch-ui-align/references/cards/geometry.md +5 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/interaction.md +2 -1
- package/i18n/skills/a2h-batch-ui-align/references/cards/resources.md +6 -4
- package/i18n/skills/a2h-batch-ui-align/references/cards/widgets.md +5 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/window.md +2 -1
- package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +236 -11
- package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +8 -5
- package/i18n/skills/a2h-batch-ui-align/references/incremental-scope.md +28 -9
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +7 -4
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +28 -1
- package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_decorator-quickref.md +31 -0
- package/i18n/skills/a2h-batch-ui-align/references/step3-capture.md +22 -6
- package/i18n/skills/a2h-batch-ui-align/references/step4-prepare.md +3 -0
- package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +26 -4
- package/i18n/skills/a2h-batch-ui-align/scripts/branch_coverage.mjs +155 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +386 -16
- package/i18n/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +19 -1
- package/i18n/skills/a2h-batch-ui-align/scripts/group_pack.mjs +134 -11
- package/i18n/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +147 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/measure_pack.ts +231 -5
- package/i18n/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +82 -8
- package/i18n/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +21 -7
- package/i18n/skills/a2h-batch-ui-align/scripts/state_doc.mjs +9 -4
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/main.ts +48 -5
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +3 -17
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +1 -19
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/dialog_backboard.ts +91 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/event_default_click.ts +179 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +339 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/image_source.ts +84 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/input_traps.ts +249 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +234 -5
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_host.ts +145 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +45 -11
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_binds.ts +56 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_string.ts +96 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +60 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +3 -2
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +102 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +54 -4
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/runtime_traps.ts +440 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +75 -23
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/swiper_index.ts +65 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +63 -2
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/waterflow_sections.ts +231 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +4 -4
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_input_runtime.test.mjs +514 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +224 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_overlay_lottie.test.mjs +199 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/branch_coverage.test.mjs +116 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +133 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +5 -3
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +33 -2
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +12 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +8 -0
- package/i18n/skills/a2h-coldstart-smoke-gate/SKILL.md +7 -4
- package/i18n/skills/a2h-dashboard-render/scripts/device_capture.mjs +11 -9
- package/i18n/skills/a2h-module-semantic-docs/SKILL.md +51 -13
- package/i18n/skills/a2h-page-specgen/SKILL.md +123 -20
- package/i18n/skills/a2h-page-specgen/references/behavior-ledger.md +1174 -0
- package/i18n/skills/a2h-page-specgen/references/body-language.md +11 -9
- package/i18n/skills/a2h-page-specgen/references/gates.md +119 -52
- package/i18n/skills/a2h-page-specgen/references/page-inventory.md +69 -22
- package/i18n/skills/a2h-page-specgen/references/scenario-authoring.md +274 -0
- package/i18n/skills/a2h-page-specgen/references/spec-example.md +312 -0
- package/i18n/skills/a2h-page-specgen/references/spec-template.md +113 -110
- package/i18n/skills/a2h-page-specgen/scripts/behavior-audit.mjs +2436 -0
- package/i18n/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +1833 -0
- package/i18n/skills/a2h-page-specgen/scripts/behavior-model.mjs +181 -0
- package/i18n/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +1205 -0
- package/i18n/skills/a2h-page-specgen/scripts/entry-evidence.mjs +1123 -0
- package/i18n/skills/a2h-page-specgen/scripts/facts-build.mjs +171 -62
- package/i18n/skills/a2h-page-specgen/scripts/footprint.mjs +314 -192
- package/i18n/skills/a2h-page-specgen/scripts/gate.mjs +364 -76
- package/i18n/skills/a2h-page-specgen/scripts/interactions.mjs +216 -8
- package/i18n/skills/a2h-page-specgen/scripts/inventory.mjs +371 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/contracts.mjs +116 -223
- package/i18n/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +235 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/hg.mjs +521 -13
- package/i18n/skills/a2h-page-specgen/scripts/lib/homegraph-process.mjs +102 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/homegraph-query.mjs +161 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/operation-reviews.mjs +913 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/prose.mjs +12 -8
- package/i18n/skills/a2h-page-specgen/scripts/lib/semantic-detail.mjs +353 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/source-text.mjs +497 -0
- package/i18n/skills/a2h-page-specgen/scripts/operation-evidence.mjs +1542 -0
- package/i18n/skills/a2h-page-specgen/scripts/prepare.mjs +483 -125
- package/i18n/skills/a2h-page-specgen/scripts/render.mjs +10 -33
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +288 -7
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.json +25 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +373 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +300 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.json +47 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +373 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +300 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +2694 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +726 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +108 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +373 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.review.md +65 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +267 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.json +57 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +373 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +300 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/branch-checklist.md +32 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/gate-results.json +22 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/manifest.json +111 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/portability.test.mjs +141 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/review.md +22 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +553 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/android-entry-evidence.test.mjs +585 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +755 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-group.test.mjs +546 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-post.test.mjs +655 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +1234 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-component-gate.test.mjs +520 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +1516 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-finalize.test.mjs +759 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +630 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-model.test.mjs +118 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +798 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-regression.test.mjs +886 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +134 -163
- package/i18n/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +475 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/facts.test.mjs +40 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +206 -9
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/App.vue +1 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-conflict-record.json +17 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-record.json +17 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/manifest.json +3 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages/list/index.vue +80 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages.json +14 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/source-record.json +15 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/components/RefreshPanel.vue +15 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/composables/useRefresh.ts +50 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/pages/help/index.vue +9 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/state/store.ts +4 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +459 -188
- package/i18n/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +89 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/gate.test.mjs +862 -12
- package/i18n/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +332 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/helpers.mjs +139 -5
- package/i18n/skills/a2h-page-specgen/scripts/test/hg.test.mjs +378 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/homegraph-process-fixture.mjs +130 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/homegraph-query.test.mjs +288 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/integration.test.mjs +69 -2
- package/i18n/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +267 -2
- package/i18n/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +111 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/keys.test.mjs +10 -8
- package/i18n/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +1002 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +143 -51
- package/i18n/skills/a2h-page-specgen/scripts/test/prepare-homegraph-reproduction.mjs +365 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prepare-homegraph.test.mjs +569 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prepare-pipeline.test.mjs +326 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +166 -3
- package/i18n/skills/a2h-page-specgen/scripts/test/prose.test.mjs +13 -5
- package/i18n/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +531 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +102 -7
- package/i18n/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +1308 -72
- package/i18n/skills/a2h-page-specgen/scripts/test/render.test.mjs +69 -44
- package/i18n/skills/a2h-page-specgen/scripts/test/review-followup.test.mjs +467 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/semantic-detail.test.mjs +949 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/submit.test.mjs +658 -120
- package/i18n/skills/a2h-page-specgen/scripts/test/uniapp-operation-evidence.test.mjs +639 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/utg-footprint-contract.test.mjs +274 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +101 -65
- package/i18n/skills/a2h-resource-convert/SKILL.md +9 -1
- package/i18n/skills/a2h-resource-convert/references/code-vector-icon-rules.md +2 -1
- package/i18n/skills/a2h-resource-convert/references/incremental-page-migration.md +23 -2
- package/i18n/skills/a2h-resource-convert/references/lottie-conversion-rules.md +7 -0
- package/i18n/skills/a2h-resource-convert/references/step4-resource-types.md +2 -0
- package/i18n/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +67 -3
- package/i18n/skills/a2h-resource-convert/scripts/lottie_hosts.ts +415 -0
- package/i18n/skills/a2h-resource-convert/scripts/tests/lottie_hosts.test.mjs +222 -0
- package/i18n/skills/a2h-spec-design-pipeline/SKILL.md +69 -109
- package/i18n/skills/a2h-spec-design-pipeline/references/coding-loop.md +135 -37
- package/i18n/skills/a2h-spec-design-pipeline/references/homegraph-cli.md +307 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/initialization.md +103 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/merge-queue.md +126 -23
- package/i18n/skills/a2h-spec-design-pipeline/references/post-loop.md +23 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/review-loop.md +71 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/scripts.md +24 -13
- package/i18n/skills/a2h-spec-design-pipeline/references/state-and-resume.md +246 -0
- package/i18n/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +170 -7
- package/i18n/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +155 -0
- package/i18n/skills/a2h-spec-generate/SKILL.md +2 -2
- package/i18n/skills/a2h-utg-explorer/SKILL.md +9 -3
- package/i18n/skills/a2h-utg-explorer/references/architecture.md +3 -0
- package/i18n/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +74 -84
- package/i18n/skills/a2h-utg-explorer/scripts/hybrid_route_cdp.mjs +376 -0
- package/i18n/skills/a2h-utg-explorer/scripts/recover_d.mjs +288 -21
- package/i18n/skills/a2h-utg-explorer/scripts/seed_recipes.mjs +426 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +252 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/hybrid_route_identity.test.mjs +146 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +122 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +15 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/seed_recipes.test.mjs +261 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/diagnostics.mjs +196 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/hybrid_route.mjs +140 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +211 -61
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +47 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +724 -47
- package/i18n/skills/a2h-utg-static/SKILL.md +6 -2
- package/i18n/skills/a2h-utg-static/scripts/assemble.mjs +82 -12
- package/i18n/skills/a2h-utg-static/scripts/click_paths.mjs +116 -5
- package/i18n/skills/a2h-utg-static/scripts/compose_body_text.mjs +3 -3
- package/i18n/skills/a2h-utg-static/scripts/compose_titles.mjs +5 -5
- package/i18n/skills/a2h-utg-static/scripts/compose_widgets.mjs +4 -4
- package/i18n/skills/a2h-utg-static/scripts/data_model.mjs +590 -0
- package/i18n/skills/a2h-utg-static/scripts/data_producers.mjs +431 -0
- package/i18n/skills/a2h-utg-static/scripts/hybrid_scope.mjs +50 -5
- package/i18n/skills/a2h-utg-static/scripts/label_resolve.mjs +49 -4
- package/i18n/skills/a2h-utg-static/scripts/lib/hybrid-provenance.mjs +201 -0
- package/i18n/skills/a2h-utg-static/scripts/lib/uniapp-routes.mjs +195 -0
- package/i18n/skills/a2h-utg-static/scripts/nl_hints.mjs +32 -4
- package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +17 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_data_model.mjs +120 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_data_producers.mjs +113 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_provenance.mjs +150 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +181 -17
- package/i18n/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +35 -1
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_routes.mjs +161 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +118 -19
- package/i18n/skills/a2h-utg-static/scripts/tests/test_utg_specgen_boundary.mjs +45 -0
- package/i18n/skills/a2h-utg-static/scripts/uniapp_nav.mjs +113 -70
- package/package.json +3 -6
- package/skills/a2h-app-migrate/SKILL.md +19 -11
- package/skills/a2h-app-migrate/references/feature-scope.md +121 -0
- package/skills/a2h-app-migrate/references/stage-map.md +2 -2
- package/skills/a2h-app-migrate/references/workflow.yaml +307 -74
- package/skills/a2h-app-migrate/scripts/android_index.mjs +35 -8
- package/skills/a2h-app-migrate/scripts/check_module_docs_done.mjs +39 -1
- package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +78 -5
- package/skills/a2h-app-migrate/scripts/check_spec_pipeline_done.mjs +144 -9
- package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +14 -1
- package/skills/a2h-app-migrate/scripts/check_utg_static_done.mjs +46 -5
- package/skills/a2h-app-migrate/scripts/diagnose.mjs +162 -0
- package/skills/a2h-app-migrate/scripts/env_preflight.mjs +79 -11
- package/skills/a2h-app-migrate/scripts/feature_scope.mjs +347 -0
- package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +75 -4
- package/skills/a2h-app-migrate/scripts/infer_android_root.mjs +17 -1
- package/skills/a2h-app-migrate/scripts/ledger.mjs +64 -6
- package/skills/a2h-app-migrate/scripts/migration_manifest.mjs +351 -0
- package/skills/a2h-app-migrate/scripts/paths_preflight.mjs +9 -23
- package/skills/a2h-app-migrate/scripts/resume_plan.mjs +33 -9
- package/skills/a2h-app-migrate/scripts/reuse_static_utg.mjs +33 -1
- package/skills/a2h-app-migrate/scripts/run_dir.mjs +27 -17
- package/skills/a2h-app-migrate/scripts/scope_model.mjs +255 -0
- package/skills/a2h-app-migrate/scripts/scope_report.mjs +128 -0
- package/skills/a2h-app-migrate/scripts/source_fp.mjs +120 -0
- package/skills/a2h-app-migrate/test/test_android_index.mjs +12 -0
- package/skills/a2h-app-migrate/test/test_env_requirements.mjs +25 -10
- package/skills/a2h-app-migrate/test/test_feature_scope.mjs +217 -0
- package/skills/a2h-app-migrate/test/test_finalize.mjs +35 -7
- package/skills/a2h-app-migrate/test/test_hmos_fingerprint.mjs +7 -7
- package/skills/a2h-app-migrate/test/test_incremental_acceptance.mjs +145 -0
- package/skills/a2h-app-migrate/test/test_incremental_phase2.mjs +223 -0
- package/skills/a2h-app-migrate/test/test_incremental_phase2_acceptance.mjs +157 -0
- package/skills/a2h-app-migrate/test/test_incremental_profile.mjs +84 -0
- package/skills/a2h-app-migrate/test/test_infer_android_root.mjs +10 -0
- package/skills/a2h-app-migrate/test/test_json_io.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_leaf_questions.mjs +39 -0
- package/skills/a2h-app-migrate/test/test_migration_manifest.mjs +225 -0
- package/skills/a2h-app-migrate/test/test_module_docs_done.mjs +33 -0
- package/skills/a2h-app-migrate/test/test_resume_plan.mjs +52 -0
- package/skills/a2h-app-migrate/test/test_resume_summary.mjs +26 -0
- package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +36 -0
- package/skills/a2h-app-migrate/test/test_run_dir.mjs +71 -7
- package/skills/a2h-app-migrate/test/test_scope_model.mjs +172 -0
- package/skills/a2h-app-migrate/test/test_spec_engine_contract.mjs +13 -5
- package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +117 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +7 -3
- package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +170 -3
- package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_ui_batch_capture_audit.mjs +106 -0
- package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +12 -0
- package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +38 -2
- package/skills/a2h-arch-generate/SKILL.md +20 -17
- package/skills/a2h-arch-generate/references/homegraph-workflow.md +10 -8
- package/skills/a2h-arch-generate/references/source-baseline.md +2 -2
- package/skills/a2h-arch-generate/scripts/cleanup_intermediates.mjs +34 -3
- package/skills/a2h-arch-generate/scripts/create_project.mjs +24 -1
- package/skills/a2h-arch-generate/scripts/inspect_and_route.mjs +29 -5
- package/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +3 -3
- package/skills/a2h-arch-generate/scripts/tests/test_cleanup.mjs +17 -0
- package/skills/a2h-arch-generate/scripts/tests/test_router.mjs +26 -0
- package/skills/a2h-arch-generate/scripts/validate_incremental_docs.mjs +4 -2
- package/skills/a2h-arkts-logic-coder/SKILL.md +146 -17
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -1
- package/skills/a2h-arkts-logic-coder/references/code-generation.md +59 -2
- package/skills/a2h-arkts-logic-coder/references/spec-design.md +42 -11
- package/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +328 -38
- package/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +244 -0
- package/skills/a2h-batch-ui-align/SKILL.md +72 -22
- package/skills/a2h-batch-ui-align/assets/ColorUtils.ets +16 -2
- package/skills/a2h-batch-ui-align/references/cards/alignment.md +5 -1
- package/skills/a2h-batch-ui-align/references/cards/geometry.md +5 -0
- package/skills/a2h-batch-ui-align/references/cards/interaction.md +2 -1
- package/skills/a2h-batch-ui-align/references/cards/resources.md +6 -4
- package/skills/a2h-batch-ui-align/references/cards/widgets.md +5 -0
- package/skills/a2h-batch-ui-align/references/cards/window.md +2 -1
- package/skills/a2h-batch-ui-align/references/checker-rules.md +236 -11
- package/skills/a2h-batch-ui-align/references/conversion-procedure.md +8 -5
- package/skills/a2h-batch-ui-align/references/host-dispatch.md +2 -0
- package/skills/a2h-batch-ui-align/references/incremental-scope.md +28 -9
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +7 -4
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +28 -1
- 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
- package/skills/a2h-batch-ui-align/references/step3-capture.md +25 -6
- package/skills/a2h-batch-ui-align/references/step4-prepare.md +3 -0
- package/skills/a2h-batch-ui-align/references/step5-convert.md +26 -4
- package/skills/a2h-batch-ui-align/scripts/branch_coverage.mjs +155 -0
- package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +380 -16
- package/skills/a2h-batch-ui-align/scripts/capture_audit.mjs +474 -0
- package/skills/a2h-batch-ui-align/scripts/capture_fast.mjs +665 -0
- package/skills/a2h-batch-ui-align/scripts/capture_verify.mjs +552 -0
- package/skills/a2h-batch-ui-align/scripts/detach.mjs +5 -2
- package/skills/a2h-batch-ui-align/scripts/evidence_gate.mjs +39 -5
- package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +19 -1
- package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +134 -11
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +213 -30
- package/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +147 -0
- package/skills/a2h-batch-ui-align/scripts/list_existing.mjs +141 -0
- package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +231 -5
- package/skills/a2h-batch-ui-align/scripts/page_gap.mjs +210 -0
- package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +82 -8
- package/skills/a2h-batch-ui-align/scripts/progress_identity.mjs +208 -0
- package/skills/a2h-batch-ui-align/scripts/scroll_verdict.mjs +62 -0
- package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +21 -7
- package/skills/a2h-batch-ui-align/scripts/shell_requests.mjs +273 -0
- package/skills/a2h-batch-ui-align/scripts/state_doc.mjs +9 -4
- package/skills/a2h-batch-ui-align/scripts/static_check/core/baseline.ts +79 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/parse.ts +90 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/core/scan.ts +44 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +48 -5
- package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +24 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +3 -17
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +1 -19
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/dialog_backboard.ts +91 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/event_default_click.ts +179 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +339 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/image_source.ts +84 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/input_traps.ts +249 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +234 -5
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_host.ts +145 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +45 -11
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_binds.ts +56 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_string.ts +96 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +60 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +3 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +102 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +54 -4
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/runtime_traps.ts +440 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +75 -23
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/swiper_index.ts +65 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +63 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/waterflow_sections.ts +231 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +4 -4
- package/skills/a2h-batch-ui-align/scripts/static_check/scan_file.ts +24 -2
- package/skills/a2h-batch-ui-align/scripts/tests/agent_cli.test.mjs +14 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_baseline.test.mjs +129 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_coolmall_runtime2.test.mjs +697 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_hit_test.test.mjs +298 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_input_runtime.test.mjs +514 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +224 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_overlay_lottie.test.mjs +199 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rule_smoke.test.mjs +41 -7
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_runtime_api.test.mjs +346 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_theme_runtime.test.mjs +95 -0
- package/skills/a2h-batch-ui-align/scripts/tests/branch_coverage.test.mjs +116 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +126 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_scope.test.mjs +1 -0
- package/skills/a2h-batch-ui-align/scripts/tests/capture_audit.test.mjs +179 -0
- package/skills/a2h-batch-ui-align/scripts/tests/capture_fast.test.mjs +56 -0
- package/skills/a2h-batch-ui-align/scripts/tests/capture_gate.test.mjs +197 -0
- package/skills/a2h-batch-ui-align/scripts/tests/capture_review_fixes.test.mjs +322 -0
- package/skills/a2h-batch-ui-align/scripts/tests/color_utils_asset.test.mjs +19 -0
- package/skills/a2h-batch-ui-align/scripts/tests/evidence_gate.test.mjs +15 -0
- package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/SearchMenuDialog.buggy.ets +95 -0
- package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/meta.json +21 -0
- package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/screenshot.png +0 -0
- package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/view.xml +35 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_pack_evidence.test.mjs +95 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +155 -1
- package/skills/a2h-batch-ui-align/scripts/tests/icon_coverage.test.mjs +314 -0
- package/skills/a2h-batch-ui-align/scripts/tests/list_existing.test.mjs +157 -0
- package/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +5 -3
- package/skills/a2h-batch-ui-align/scripts/tests/page_gap.test.mjs +115 -0
- package/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +33 -2
- package/skills/a2h-batch-ui-align/scripts/tests/progress_identity.test.mjs +174 -0
- package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +5 -0
- package/skills/a2h-batch-ui-align/scripts/tests/shell_requests.test.mjs +158 -0
- package/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +12 -0
- package/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +8 -0
- package/skills/a2h-coldstart-smoke-gate/SKILL.md +7 -4
- package/skills/a2h-dashboard-render/test/test_device_locale_dialogs.mjs +17 -0
- package/skills/a2h-module-semantic-docs/SKILL.md +51 -13
- package/skills/a2h-module-semantic-docs/scripts/scan_modules.mjs +66 -11
- package/skills/a2h-module-semantic-docs/test/test_incremental_fingerprint.mjs +94 -0
- package/skills/a2h-page-specgen/SKILL.md +124 -20
- package/skills/a2h-page-specgen/references/behavior-ledger.md +1170 -0
- package/skills/a2h-page-specgen/references/body-language.md +11 -9
- package/skills/a2h-page-specgen/references/evidence.md +35 -0
- package/skills/a2h-page-specgen/references/execution-model.md +135 -26
- package/skills/a2h-page-specgen/references/footprint-and-grouping.md +20 -15
- package/skills/a2h-page-specgen/references/gates.md +120 -52
- package/skills/a2h-page-specgen/references/page-inventory.md +69 -22
- package/skills/a2h-page-specgen/references/scenario-authoring.md +272 -0
- package/skills/a2h-page-specgen/references/spec-example.md +312 -0
- package/skills/a2h-page-specgen/references/spec-template.md +112 -109
- package/skills/a2h-page-specgen/scripts/behavior-audit.mjs +2436 -0
- package/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +1833 -0
- package/skills/a2h-page-specgen/scripts/behavior-model.mjs +181 -0
- package/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +1205 -0
- package/skills/a2h-page-specgen/scripts/dispatch.mjs +8 -5
- package/skills/a2h-page-specgen/scripts/entry-evidence.mjs +1123 -0
- package/skills/a2h-page-specgen/scripts/facts-build.mjs +170 -61
- package/skills/a2h-page-specgen/scripts/finalize.mjs +466 -63
- package/skills/a2h-page-specgen/scripts/footprint.mjs +302 -180
- package/skills/a2h-page-specgen/scripts/gate.mjs +372 -82
- package/skills/a2h-page-specgen/scripts/interactions.mjs +215 -8
- package/skills/a2h-page-specgen/scripts/inventory.mjs +102 -0
- package/skills/a2h-page-specgen/scripts/lib/contracts.mjs +116 -216
- package/skills/a2h-page-specgen/scripts/lib/draft-store.mjs +105 -13
- package/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +235 -0
- package/skills/a2h-page-specgen/scripts/lib/hg.mjs +520 -12
- package/skills/a2h-page-specgen/scripts/lib/homegraph-process.mjs +102 -0
- package/skills/a2h-page-specgen/scripts/lib/homegraph-query.mjs +161 -0
- package/skills/a2h-page-specgen/scripts/lib/ledger.mjs +129 -6
- package/skills/a2h-page-specgen/scripts/lib/main-module.mjs +24 -0
- package/skills/a2h-page-specgen/scripts/lib/operation-reviews.mjs +913 -0
- package/skills/a2h-page-specgen/scripts/lib/prose.mjs +12 -8
- package/skills/a2h-page-specgen/scripts/lib/recovery-policy.mjs +28 -0
- package/skills/a2h-page-specgen/scripts/lib/scope.mjs +355 -0
- package/skills/a2h-page-specgen/scripts/lib/semantic-detail.mjs +353 -0
- package/skills/a2h-page-specgen/scripts/lib/source-text.mjs +106 -0
- package/skills/a2h-page-specgen/scripts/operation-evidence.mjs +1542 -0
- package/skills/a2h-page-specgen/scripts/prepare.mjs +470 -122
- package/skills/a2h-page-specgen/scripts/render.mjs +11 -34
- package/skills/a2h-page-specgen/scripts/report.mjs +339 -6
- package/skills/a2h-page-specgen/scripts/submission.mjs +253 -88
- package/skills/a2h-page-specgen/scripts/submit.mjs +12 -6
- package/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +288 -7
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.java +15 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.json +26 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +347 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +298 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.java +36 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.json +43 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +347 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +298 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +2694 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +726 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +108 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +347 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.review.md +65 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +265 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.java +47 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.json +54 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +347 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +298 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/branch-checklist.md +32 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/gate-results.json +22 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/manifest.json +111 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/portability.test.mjs +141 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/review.md +22 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +515 -0
- package/skills/a2h-page-specgen/scripts/test/android-entry-evidence.test.mjs +585 -0
- package/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +755 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-audit-group.test.mjs +543 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-audit-post.test.mjs +652 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +1231 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-component-gate.test.mjs +494 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +1513 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-finalize.test.mjs +758 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +623 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-model.test.mjs +116 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +795 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-regression.test.mjs +883 -0
- package/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +135 -137
- package/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +475 -0
- package/skills/a2h-page-specgen/scripts/test/facts.test.mjs +40 -1
- package/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +178 -9
- package/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +19 -1
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanels.java +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanels.kt +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanelsKotlinForms.kt +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ChildContent.java +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ComposeLifecycle.kt +26 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/LifecycleCallAndOverride.java +10 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/LifecycleHooks.kt +31 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ManyLifecycleHooks.kt +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/RefreshOnResume.java +7 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/RefreshResultNoise.kt +36 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/SelectionView.java +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ShowPage.vue +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ThirdPartyLifecycle.kt +25 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/fragment_detail.xml +1 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/App.vue +1 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-conflict-record.json +17 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-record.json +17 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/manifest.json +3 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages/list/index.vue +80 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages.json +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/source-record.json +15 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/components/RefreshPanel.vue +15 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/composables/useRefresh.ts +50 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/pages/help/index.vue +9 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/state/store.ts +4 -0
- package/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +459 -188
- package/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +89 -0
- package/skills/a2h-page-specgen/scripts/test/gate.test.mjs +869 -13
- package/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +332 -0
- package/skills/a2h-page-specgen/scripts/test/helpers.mjs +139 -5
- package/skills/a2h-page-specgen/scripts/test/hg.test.mjs +378 -0
- package/skills/a2h-page-specgen/scripts/test/homegraph-process-fixture.mjs +130 -0
- package/skills/a2h-page-specgen/scripts/test/homegraph-query.test.mjs +288 -0
- package/skills/a2h-page-specgen/scripts/test/integration.test.mjs +69 -2
- package/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +267 -2
- package/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +111 -0
- package/skills/a2h-page-specgen/scripts/test/keys.test.mjs +10 -8
- package/skills/a2h-page-specgen/scripts/test/ledger-lock.test.mjs +77 -0
- package/skills/a2h-page-specgen/scripts/test/ledger.test.mjs +1 -1
- package/skills/a2h-page-specgen/scripts/test/main-module.test.mjs +43 -0
- package/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +1002 -0
- package/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +143 -51
- package/skills/a2h-page-specgen/scripts/test/prepare-homegraph-reproduction.mjs +365 -0
- package/skills/a2h-page-specgen/scripts/test/prepare-homegraph.test.mjs +569 -0
- package/skills/a2h-page-specgen/scripts/test/prepare-index.test.mjs +42 -2
- package/skills/a2h-page-specgen/scripts/test/prepare-pipeline.test.mjs +326 -0
- package/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +171 -3
- package/skills/a2h-page-specgen/scripts/test/prose.test.mjs +13 -5
- package/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +365 -1
- package/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +102 -7
- package/skills/a2h-page-specgen/scripts/test/recovery-policy.test.mjs +14 -0
- package/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +1308 -72
- package/skills/a2h-page-specgen/scripts/test/render.test.mjs +85 -42
- package/skills/a2h-page-specgen/scripts/test/report.test.mjs +296 -0
- package/skills/a2h-page-specgen/scripts/test/review-followup.test.mjs +467 -0
- package/skills/a2h-page-specgen/scripts/test/scope.test.mjs +292 -0
- package/skills/a2h-page-specgen/scripts/test/semantic-detail.test.mjs +949 -0
- package/skills/a2h-page-specgen/scripts/test/submit.test.mjs +645 -115
- package/skills/a2h-page-specgen/scripts/test/uniapp-operation-evidence.test.mjs +639 -0
- package/skills/a2h-page-specgen/scripts/test/utg-footprint-contract.test.mjs +274 -0
- package/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +101 -65
- package/skills/a2h-page-specgen/scripts/test/waker.test.mjs +88 -74
- package/skills/a2h-page-specgen/scripts/test/watchdog.test.mjs +30 -1
- package/skills/a2h-page-specgen/scripts/waker.mjs +79 -12
- package/skills/a2h-page-specgen/scripts/watchdog.mjs +18 -17
- package/skills/a2h-resource-convert/SKILL.md +9 -1
- package/skills/a2h-resource-convert/references/code-vector-icon-rules.md +2 -1
- package/skills/a2h-resource-convert/references/incremental-page-migration.md +23 -2
- package/skills/a2h-resource-convert/references/lottie-conversion-rules.md +7 -0
- package/skills/a2h-resource-convert/references/step4-resource-types.md +2 -0
- package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +67 -3
- package/skills/a2h-resource-convert/scripts/a2h_resource_incremental.ts +68 -0
- package/skills/a2h-resource-convert/scripts/code_vector_icons.ts +45 -3
- package/skills/a2h-resource-convert/scripts/extract_page_resources.ts +42 -5
- package/skills/a2h-resource-convert/scripts/lottie_hosts.ts +415 -0
- package/skills/a2h-resource-convert/scripts/lottie_refs.ts +398 -0
- package/skills/a2h-resource-convert/scripts/merge_mapping.ts +316 -0
- package/skills/a2h-resource-convert/scripts/svg_fidelity_check.ts +2 -1
- package/skills/a2h-resource-convert/scripts/tests/code_vector_guard.test.mjs +75 -0
- package/skills/a2h-resource-convert/scripts/tests/lottie_hosts.test.mjs +222 -0
- package/skills/a2h-resource-convert/scripts/tests/lottie_incremental.test.mjs +178 -0
- package/skills/a2h-resource-convert/scripts/tests/merge_mapping.test.mjs +201 -0
- package/skills/a2h-spec-design-pipeline/SKILL.md +48 -72
- package/skills/a2h-spec-design-pipeline/references/coding-loop.md +123 -37
- package/skills/a2h-spec-design-pipeline/references/execution-model.md +40 -8
- package/skills/a2h-spec-design-pipeline/references/final-report-template.md +5 -4
- package/skills/a2h-spec-design-pipeline/references/homegraph-cli.md +229 -0
- package/skills/a2h-spec-design-pipeline/references/initialization.md +37 -5
- package/skills/a2h-spec-design-pipeline/references/merge-queue.md +126 -23
- package/skills/a2h-spec-design-pipeline/references/permission-index.json +206 -0
- package/skills/a2h-spec-design-pipeline/references/post-loop.md +23 -0
- package/skills/a2h-spec-design-pipeline/references/resolver-prompt.md +7 -1
- package/skills/a2h-spec-design-pipeline/references/review-loop.md +46 -0
- package/skills/a2h-spec-design-pipeline/references/scripts.md +38 -14
- package/skills/a2h-spec-design-pipeline/references/shared-layer.md +127 -4
- package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +90 -24
- package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +65 -34
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleMeta.json +11 -1
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleSet.json +10 -2
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/README.md +47 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-param-contract.json +31 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-permission-map.json +698 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-cn.md +96 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-en.md +103 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-cn.md +124 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-en.md +138 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-cn.md +106 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-en.md +113 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ApiPermissionDeclaredCheck.js +705 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ArkUIRuntimePitfallCheck.js +1063 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/PlatformApiContractCheck.js +473 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/{HttpExtraDataEmptyStringCheck.js → platform/ExtraDataSubCheck.js} +27 -30
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/index.js +4 -2
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/package.json +3 -2
- package/skills/a2h-spec-design-pipeline/scripts/check_design_map.ts +108 -0
- package/skills/a2h-spec-design-pipeline/scripts/check_permissions.ts +420 -0
- package/skills/a2h-spec-design-pipeline/scripts/check_review_evidence.ts +45 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/evidence.mjs +55 -2
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/fold.mjs +138 -7
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/landing.mjs +10 -13
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/progress.mjs +21 -2
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/reconcile.mjs +63 -4
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/wait.mjs +32 -2
- package/skills/a2h-spec-design-pipeline/scripts/dispatch.mjs +109 -13
- package/skills/a2h-spec-design-pipeline/scripts/ensure_index.ts +866 -0
- package/skills/a2h-spec-design-pipeline/scripts/fixtures/homecheck-stub.cjs +47 -0
- package/skills/a2h-spec-design-pipeline/scripts/homecheck_scan.ts +12 -17
- package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +172 -7
- package/skills/a2h-spec-design-pipeline/scripts/resolver_prompt.ts +36 -16
- package/skills/a2h-spec-design-pipeline/scripts/sync_permission_index.ts +340 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_api_permission_declared.ts +281 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_arkui_runtime_pitfall.ts +690 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_check_design_map.ts +46 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_check_permissions.ts +201 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_commands.mjs +27 -3
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_e2e.mjs +20 -7
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_evidence.mjs +143 -13
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_fold.mjs +168 -7
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_landing.mjs +139 -2
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_progress.mjs +25 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_reconcile.mjs +92 -4
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_wait.mjs +37 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_index.ts +572 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_index_real.ts +56 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_homecheck_scan.ts +4 -5
- package/skills/a2h-spec-design-pipeline/scripts/test_homegraph_docs.ts +217 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_permission_index.ts +214 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +155 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_platform_api_contract.ts +308 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_resolver_prompt.ts +59 -8
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_docs.ts +44 -0
- package/skills/a2h-spec-generate/SKILL.md +2 -2
- package/skills/a2h-spec-generate/references/specs.schema.json +24 -11
- package/skills/a2h-spec-generate/scripts/ensure-index.mjs +1 -2
- package/skills/a2h-spec-generate/test/ensure-index.test.mjs +1 -2
- package/skills/a2h-utg-explorer/SKILL.md +9 -3
- package/skills/a2h-utg-explorer/references/architecture.md +3 -0
- package/skills/a2h-utg-explorer/scripts/audit.mjs +8 -2
- package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +56 -5
- package/skills/a2h-utg-explorer/scripts/direct_launch.mjs +47 -2
- package/skills/a2h-utg-explorer/scripts/hybrid_route_cdp.mjs +376 -0
- package/skills/a2h-utg-explorer/scripts/plan.mjs +8 -0
- package/skills/a2h-utg-explorer/scripts/recover_d.mjs +288 -21
- package/skills/a2h-utg-explorer/scripts/report.mjs +89 -0
- package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +67 -10
- package/skills/a2h-utg-explorer/scripts/run_device.mjs +10 -2
- package/skills/a2h-utg-explorer/scripts/seed_recipes.mjs +426 -0
- package/skills/a2h-utg-explorer/scripts/tests/blank_wait.test.mjs +126 -0
- package/skills/a2h-utg-explorer/scripts/tests/default_override.test.mjs +109 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_locale_dialogs.test.mjs +29 -0
- package/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +254 -0
- package/skills/a2h-utg-explorer/scripts/tests/foreground_spelling.test.mjs +155 -0
- package/skills/a2h-utg-explorer/scripts/tests/hybrid_route.test.mjs +120 -0
- package/skills/a2h-utg-explorer/scripts/tests/hybrid_route_identity.test.mjs +146 -0
- package/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +122 -0
- package/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +15 -0
- package/skills/a2h-utg-explorer/scripts/tests/pr169_review_fixes.test.mjs +218 -0
- package/skills/a2h-utg-explorer/scripts/tests/pr191_review_fixes.test.mjs +292 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover_d_grounding.test.mjs +164 -0
- package/skills/a2h-utg-explorer/scripts/tests/replay_reroute.test.mjs +143 -0
- package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +6 -2
- package/skills/a2h-utg-explorer/scripts/tests/run_cycle_follow.test.mjs +35 -0
- package/skills/a2h-utg-explorer/scripts/tests/seed_recipes.test.mjs +261 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +122 -4
- package/skills/a2h-utg-explorer/scripts/utg_explorer/diagnostics.mjs +196 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/hybrid_route.mjs +140 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +138 -4
- package/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +47 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/strings.mjs +22 -13
- package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +718 -42
- package/skills/a2h-utg-explorer/scripts/variant.mjs +57 -11
- package/skills/a2h-utg-static/SKILL.md +6 -2
- package/skills/a2h-utg-static/scripts/assemble.mjs +65 -0
- package/skills/a2h-utg-static/scripts/click_paths.mjs +116 -5
- package/skills/a2h-utg-static/scripts/compose_body_text.mjs +3 -3
- package/skills/a2h-utg-static/scripts/compose_overlay.mjs +8 -1
- package/skills/a2h-utg-static/scripts/compose_titles.mjs +5 -5
- package/skills/a2h-utg-static/scripts/compose_widgets.mjs +4 -4
- package/skills/a2h-utg-static/scripts/data_model.mjs +590 -0
- package/skills/a2h-utg-static/scripts/data_producers.mjs +431 -0
- package/skills/a2h-utg-static/scripts/hybrid_scope.mjs +46 -1
- package/skills/a2h-utg-static/scripts/label_resolve.mjs +49 -4
- package/skills/a2h-utg-static/scripts/lib/hybrid-provenance.mjs +201 -0
- package/skills/a2h-utg-static/scripts/lib/uniapp-routes.mjs +195 -0
- package/skills/a2h-utg-static/scripts/menu_nav.mjs +1 -1
- package/skills/a2h-utg-static/scripts/nl_hints.mjs +32 -4
- package/skills/a2h-utg-static/scripts/run_pipeline.mjs +86 -4
- package/skills/a2h-utg-static/scripts/tests/test_carry_answers.mjs +30 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +18 -0
- package/skills/a2h-utg-static/scripts/tests/test_data_model.mjs +120 -0
- package/skills/a2h-utg-static/scripts/tests/test_data_producers.mjs +114 -0
- package/skills/a2h-utg-static/scripts/tests/test_guard_kinds_locale.mjs +12 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_provenance.mjs +150 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +165 -1
- package/skills/a2h-utg-static/scripts/tests/test_library_activity.mjs +45 -0
- package/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +35 -1
- package/skills/a2h-utg-static/scripts/tests/test_nl_hints_default_override.mjs +50 -0
- package/skills/a2h-utg-static/scripts/tests/test_pipeline_llm_phases.mjs +21 -0
- package/skills/a2h-utg-static/scripts/tests/test_pr169_review_fixes.mjs +172 -0
- package/skills/a2h-utg-static/scripts/tests/test_redirect_path_cost.mjs +136 -0
- package/skills/a2h-utg-static/scripts/tests/test_uniapp_route_jump.mjs +175 -0
- package/skills/a2h-utg-static/scripts/tests/test_uniapp_routes.mjs +161 -0
- package/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +99 -0
- package/skills/a2h-utg-static/scripts/tests/test_utg_specgen_boundary.mjs +45 -0
- package/skills/a2h-utg-static/scripts/tests/test_vm_nav_helper_navigate.mjs +21 -0
- package/skills/a2h-utg-static/scripts/uniapp_nav.mjs +112 -69
- package/skills/a2h-utg-static/scripts/vm_nav.mjs +9 -1
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/http-extra-data-empty-string-cn.md +0 -55
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/http-extra-data-empty-string-en.md +0 -60
- package/skills/a2h-spec-design-pipeline/scripts/ensure_wt_index.ts +0 -948
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_wt_index.ts +0 -1014
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Initialization — I1–I4 (inputs, precompute, environment, one-time setup, announcement)
|
|
2
|
+
|
|
3
|
+
Apply these steps **verbatim**, in order, before the first wave. This is the run's **only** interactive
|
|
4
|
+
window. `SKILL.md` carries the checklist; this file carries the full step text. Step numbers 1–12 are
|
|
5
|
+
stable and cross-referenced by the rest of the skill (I5 continues them in `SKILL.md`).
|
|
6
|
+
|
|
7
|
+
### I1 — Resolve inputs & run the grouping precompute
|
|
8
|
+
|
|
9
|
+
1. Parse `SPECS_JSON`, `ANDROID`, `HMOS`, `DESIGN_DIR`, and the flags. If any required path is missing or does not exist → **ask now**. Confirm specs.json parses with a non-empty `specs` array.
|
|
10
|
+
2. Run the deterministic precompute (validates every spec file and produces the tables the whole run reads). **Fresh run vs resume** — the state seed `--emit-state` refuses to overwrite an existing state file:
|
|
11
|
+
|
|
12
|
+
- **Fresh run** (no `<HMOS>/.hometrans/spec_pipeline_state.json`):
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
node <skill-dir>/scripts/plan_groups.ts <SPECS_JSON> <HMOS> \
|
|
16
|
+
--max-scenarios-per-chunk <MAX_SCEN> --design-dir <DESIGN_DIR> \
|
|
17
|
+
--android <ANDROID> --engine-mode <ENGINE_MODE> --wave-width <WAVE_WIDTH> --emit-state
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Resume compares exactly `specs_json / specs_json_sha256 / android / hmos / design_dir / grouping / wave_width / max_scenarios_per_chunk / engine_mode / design_granularity / shared_layer / source_kind` — a legacy state missing either F0 field compares as its default (`auto` / `android`), never as a divergence (see 8c).
|
|
21
|
+
|
|
22
|
+
- **Resume** (state exists): run the same command **without** `--emit-state` (idempotent; exit 3 = specs.json content changed → stop; exit 4 = legacy campaign (no per-chunk design marker) → archive with check_spec_pipeline_done.mjs --archive-stale and restart **only when the campaign is unfinished**: a legacy campaign whose groups are all done is reused as-is (check_spec_pipeline_done.mjs exits 0) and must NOT be archived/re-run — its output is already merged. Archiving an unfinished legacy campaign loses its progress (groups are re-designed and re-coded from scratch): say so in the report); then verify the state's `config` matches the resolved inputs (diverged → stop and tell the user, never mix two runs; the I2 probe results `state_docs_mode` / `api_docs_mode` are excluded, see 7b/7c).
|
|
23
|
+
|
|
24
|
+
It writes `<HMOS>/.hometrans/spec_group_plan.json` (groups with their group-level `deps`, per-spec rows, merged-spec paths, chunks), one `spec_group_<G>/merged_spec.md` per group, one `spec_group_<G>/chunk_<k>_spec.md` per chunk, and on a fresh run the state seed (schema `spec_pipeline_state/v2`, `config.design_granularity: "chunk"`). If it reports `[ERROR]` (missing spec file, bad JSON), resolve with the user **now**. Surface its `warnings` (non-contiguous directory blocks, zero-scenario specs, oversized specs) in the plan announcement.
|
|
25
|
+
|
|
26
|
+
**Incremental migration** (a2h-app-migrate `PROFILE=incremental`): when specs.json carries `scope.scope_id` and `<HMOS>/.hometrans/ui_info/conversion_set.json` (override: `--conversion-set <path>`) is an incremental plan with the **same** `scope_id`, `plan_groups.ts` maps each row's `spec_id` to the `existing_writes` a2h-batch-ui-align recorded for that page's group — the HarmonyOS files that existed **before** this run (enumerated at I3, before any write). They appear as `existing` on the spec row of `spec_group_plan.json` (`existing_specs` counts them in its stdout) and as an "existing HarmonyOS code — edit, never recreate" block after that spec in `merged_spec.md` and its chunk spec, so the designer and coder extend those files in place instead of creating a parallel file. A conversion set of another scope, or a full run, marks nothing.
|
|
27
|
+
|
|
28
|
+
With a v2 feature scope, `plan_groups.ts` also reads `<HMOS>/.hometrans/incremental/scope.json` (same `scope_id` only) and appends, after each SUP / CHG spec, a "this round's features" block listing the features (and, for CHG, the change): the coder implements exactly those inside the existing code, modifies a changed behavior's implementation instead of adding a second one, and leaves the rest of the page as it is.
|
|
29
|
+
|
|
30
|
+
**Carry-over (incremental phase 2).** On a fresh run (`--emit-state`) `plan_groups.ts` looks at the latest archived campaign (`<HMOS>/.hometrans/spec_pipeline_archive/<ts>/spec_pipeline_state.json`) whose specs.json still has the sha256 it was seeded from. A row of the new specs.json with the same `spec_id` and `content_sha256` as a spec that campaign finished (or itself carried) is **carried**: its code is already merged, so it is planned in no group, a dep on it counts as satisfied, and it is listed in `state.carried` / the plan's `carried` (stdout `carried`). Changed and new specs are planned as usual; a resume keeps the recorded decision; `--no-carry` re-plans everything. When every spec is carried there is no group: the state is seeded with `finalization.carried_only` (stdout `carried_only: true`) — skip I2 onward and report "nothing to re-code: every spec is unchanged since it was landed"; `check_spec_pipeline_done.mjs` counts such a campaign as done.
|
|
31
|
+
2b. Resolve the wiring surface (deterministic, single source of truth):
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
node <skill-dir>/scripts/resolve_wiring.ts <HMOS>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Three-tier derivation into `state.config.wiring_files`: Tier-1 framework patterns (all `Index.ets`, `module.json5`, `oh-package*.json5`, `main_pages.json`, `route_map.json`, `resources/**/element/*.json` across locale variants) + Tier-2 project-derived (ability sources from every `module.json5` `srcEntry`, the RDB registration file via `getRdbStore`, `*Routes.ets` route tables) + Tier-3 closed loop (announced at I4 for user correction; the per-wave actual-write audit reports misses). Every consumer — the B1 dispatch forbidden list, the audit's registry detection, the B2 wiring application — reads this one field. Lock files are listed but get NO wiring rows (the B3 build regenerates them). **On a resume where `state.config.wiring_files` already exists, skip the re-run** — it would overwrite Tier-3 user corrections made at I4.
|
|
38
|
+
3. Read back the plan; the loop reads only this table — never re-derive paths, counts, or group membership.
|
|
39
|
+
|
|
40
|
+
### I2 — Resolve environment prerequisites
|
|
41
|
+
|
|
42
|
+
4. Confirm `DEVECO_HOME` (`--deveco-home`, else env `DEVECO_HOME`/`DEVECO_SDK_HOME`) resolves (build-fixer needs it). Confirm `HMOS` is a git repository. Confirm **Node ≥ 22.18** (`node --version`; `--experimental-strip-types` is also acceptable). Missing → resolve **now** or abort. Soft note (never a stop): **git ≥ 2.38** enables the wave-end audit's resolver hand-edit layer (`merge-tree --write-tree`); older git degrades that one layer fail-soft (stderr warning).
|
|
43
|
+
5. Ensure both HomeGraph indexes, **CLI only**. **Skip this step entirely when `ENGINE_MODE=off`**.
|
|
44
|
+
Otherwise run, in this order (triggers `i2-android`, then `i2-hmos`):
|
|
45
|
+
```
|
|
46
|
+
node <skill-dir>/scripts/ensure_index.ts <ANDROID> --create --sync
|
|
47
|
+
node <skill-dir>/scripts/ensure_index.ts <HMOS> --create --sync
|
|
48
|
+
```
|
|
49
|
+
`--create` initializes the local `.homegraph/homegraph.db` only when it is absent; `--sync`
|
|
50
|
+
refreshes an existing one. `ensure_index.ts` owns the **300000 ms** `init` bound, the holder-aware
|
|
51
|
+
`unlock`/`index --inplace` fallback, quarantine of a corrupt db, and the `lock_busy` refusal.
|
|
52
|
+
Do **not** use `homegraph status` as a freshness gate: it reads git's uncommitted set, so after a
|
|
53
|
+
pipeline commit it reports "up to date" while the index is behind HEAD; pipeline events sync
|
|
54
|
+
unconditionally. Record both JSON lines in `state.engine.{android,hmos}`. Exit 1 under
|
|
55
|
+
`ENGINE_MODE=auto` → record `reason`/`detail`, mark that index degraded and continue;
|
|
56
|
+
exit 0 with `reason: "sync_incomplete"` also counts as a degraded refresh. Under `ENGINE_MODE=required` → hard stop with `state.engine_blocked = { index: "android" | "hmos", reason, at }`
|
|
57
|
+
(the index whose call failed — a resume retries exactly that one). The `<ANDROID>` index is a
|
|
58
|
+
write into the source repository: announce it at I4, and only an existing `<ANDROID>/.gitignore`
|
|
59
|
+
may gain a `.homegraph/` entry. If the engine is not runnable at all, set `ENGINE_MODE=auto` with
|
|
60
|
+
the user **now**. If `state.config.homegraph.init_timeout_ms` is set (a number, or
|
|
61
|
+
`{ "android": N, "hmos": M }`), pass it as `--init-timeout-ms` for the corresponding repo; the
|
|
62
|
+
default stays 300000 ms.
|
|
63
|
+
6. Confirm the semantic docs the B1 design step reads: `project_design.md` (required; resolved from `<HMOS>/.hometrans/`), `database_design.md` / `preferences_design.md` (optional). If `project_design.md` is absent the I3 baseline seed **must** run.
|
|
64
|
+
6b. Validate `DESIGN_DIR`: it may be absent (I3 creates it), must not be a file, must not equal `HMOS`, must not be a symlink/junction pointing outside `HMOS`; when it exists inside `HMOS`, `git -C <HMOS> ls-files -- <rel>` must be empty. Abort on violation.
|
|
65
|
+
7. Resolve `DOCS_MODE` (`skill` | `script` | `off`) by trial-invoking the semantic-docs path; record it run-wide.
|
|
66
|
+
7b. Resolve `STATE_DOCS_MODE` (`available` | `unavailable`) once, for the coder's state-management doc gate (`a2h-arkts-logic-coder` → `references/code-generation.md` Step 2). Probe with one bounded search — this also builds the local docs index once, before any worktree coder pays for it:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
devecocli docs search "AppStorage" --catalog harmonyos-guides --format json --limit 1
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Exit 0 → `available`; `devecocli` missing, an empty result, or any permanent failure → `unavailable`. While the output contains `Lock file is already being held`, another devecocli process is building the index: retry with backoff for about 2 minutes before deciding. Record the verdict in `state.config.state_docs_mode`; a resume reuses it when present and runs this probe when the field is absent (a state seeded before this feature) — never abort, never ask — and announce it at I4. `unavailable` only downgrades the coder gate — the coder falls back to `references/ISSUES.md` and records `state-docs: unavailable`; it never stops the run. `state_docs_mode` is a probe result, not a resolved input: exclude it from the resume `config` divergence comparison.
|
|
73
|
+
7c. Resolve `API_DOCS_MODE` (`available` | `unavailable`) once, for the coder's platform-API doc gate (`a2h-arkts-logic-coder` → `references/code-generation.md` Step 2, the "Platform API doc gate" block). Probe the **second** catalogue — 7b only proves the guides index is built:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
devecocli docs search "@ohos.net.http" --catalog harmonyos-references --format json --limit 1
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Exit 0 with at least one hit → `available`; otherwise `unavailable` (same lock-retry budget as 7b). Record it in `state.config.api_docs_mode`: a resume reuses it when present and runs this probe again when the field is absent (a state seeded before this feature), so an older campaign never resumes with the gate silently off — never abort, never ask. Exclude it from the resume `config` divergence comparison (it is a probe result, not an input), and announce it at I4 together with `state_docs_mode`. The two are independent: `api_docs_mode` only softens the API lookup, and a coder that writes `api-docs: unavailable` reports its `state-docs` verdict unchanged.
|
|
80
|
+
8. Resolve run-wide knobs: `MVVM_MODE` (default `true`), `MAX_ROUNDS_REVIEW` (default `2`).
|
|
81
|
+
8b. Resolve the Homecheck static-defect check: locate the installed `homecheck` package (`HOMECHECK_HOME` env, else `npm root -g`, else the `homecheck` binary on `PATH` — the same chain `homecheck_scan.ts` uses), confirm `config/ruleSet.json` contains `@arkui-semantic-correctness`, `@correctness`, and `@compatibility`, confirm the skill's own `rules/migration-rules` package is present (the scan's fourth rule set), and resolve the OpenHarmony/HMS ETS SDK paths from `DEVECO_SDK_HOME` / `DEVECO_HOME` (or the legacy `OHOS_SDK_PATH` / `HMS_SDK_PATH`; OS environment only). If any of these cannot be resolved, record the skip now: `state.post_homecheck = { status: "skipped", note: <what was missing>, at }` (the orchestrator's own write — no dispatch this campaign; the final report shows SKIPPED, the smoke gate still runs, the skip is never retried on resume, and it satisfies Finalization's precondition). Homecheck unavailability is a skip, never an abort.
|
|
82
|
+
8c. Resolve the optional `SOURCE_KIND` (`android|uniapp`, default `android`) and store it in
|
|
83
|
+
`state.config.source_kind`. Resolve `SHARED_LAYER` (`auto|off`, default `auto`) into
|
|
84
|
+
`state.config.shared_layer`. Both are input-divergence items; a legacy state missing them uses
|
|
85
|
+
the defaults without stopping. Announce `SHARED_LAYER` and `SOURCE_KIND` at I4.
|
|
86
|
+
|
|
87
|
+
### I3 — Run all one-time setup
|
|
88
|
+
|
|
89
|
+
9. Create `DESIGN_DIR` if absent; reject `DESIGN_DIR === <HMOS>`. Optionally set `git -C <HMOS> config gc.auto 0` (avoids auto-gc racing worktree operations in long runs).
|
|
90
|
+
9b. **Git baseline** (before step 10 — its commit must not become a docs-only root commit):
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
node <skill-dir>/scripts/git_baseline.ts <HMOS> --design-dir <DESIGN_DIR>
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Gitignores `.hometrans/` + `.homegraph/` (an in-repo custom design dir is appended to `.gitignore`); before the first wave, commits an unborn-HEAD / dirty tree (a fresh scaffold: only `git init`, upstream output uncommitted) as `pre-campaign baseline` so W0 has a `WAVE_BASE` and a clean tree. No-op once a wave exists (mid-campaign dirt stays W0's to judge). Keep `head` / `files` for I4 and the final report. Exit 1 → abort, like an I2 miss. The committed `.homegraph/` rule stays load-bearing: `ensure_index.ts` refuses to write an index whose database would be tracked, and amends an existing `.gitignore` instead of committing a db — do not remove it.
|
|
97
|
+
10. **Seed the semantic-docs baseline once** (via the `DOCS_MODE` path), commit as `semantic-docs baseline`. Skip if the baseline state already exists.
|
|
98
|
+
10b. **Campaign identity.** If `state.config.campaign_id` is absent, generate one and persist it with the state write: `node -e "process.stdout.write(crypto.randomUUID())"`. A resume keeps the existing value — it identifies this campaign, not this process. This nonce (never `specs_json_sha256`, which is identical when the same specs.json starts a new campaign) is the `runId` the Homecheck gate dispatch carries.
|
|
99
|
+
|
|
100
|
+
### I4 — Announce, then commit to autonomous execution
|
|
101
|
+
|
|
102
|
+
11. Announce the resolved plan: group table (G, group_id, spec count, scenario count, chunk count), `ANDROID`/`HMOS`/`DESIGN_DIR`, all flags, `state_docs_mode`, `api_docs_mode`, the two HomeGraph index paths with their I2 verdicts (`<ANDROID>/.homegraph`, `<HMOS>/.homegraph`; the `<ANDROID>` index is a write into the source repository, and only an existing `<ANDROID>/.gitignore` may gain a `.homegraph/` entry), warnings, the git baseline (`git_baseline.ts` head + committed file count, or "already clean"), the wiring-surface summary (framework/abilities/database/routes counts from `resolve_wiring.ts` — the user may correct the list now, the one interactive window), and the wave-loop outline (S0 → F0 → W0 → B1..C per wave).
|
|
103
|
+
12. From here the run is autonomous: no prompts, no mid-run branching. Per-group failures are recorded (state + final report) and skipped.
|
|
@@ -7,8 +7,9 @@ applied at wave end. `SKILL.md` carries the navigation summary; this file is the
|
|
|
7
7
|
### B2 — Serial merge queue, interleaved with B1 (the only git-writer moment)
|
|
8
8
|
|
|
9
9
|
B2 is not a phase that starts after B1 — it is a **merge queue** the B1 event loop drains while coding
|
|
10
|
-
continues. A group enters the queue at its coding-complete event (`queue-merge <G>` only when
|
|
11
|
-
|
|
10
|
+
continues. A group enters the queue at its coding-complete event (`queue-merge <G>` only when every planned
|
|
11
|
+
chunk is `done`/`accepted` — the same predicate as the landing gate, checked **before** any `git merge`;
|
|
12
|
+
`chunks-incomplete` otherwise); the queue is processed strictly serially (main is the single git-writer),
|
|
12
13
|
popped in coding-completion order (same-turn ties and resume use group order), and at most one merge —
|
|
13
14
|
normal or resolver-backed — is in progress at any moment. A normal merge is an orchestrator shell command
|
|
14
15
|
— same-turn. A conflict resolution is a **background** sub-agent (the ladder below) — only the merge
|
|
@@ -17,8 +18,9 @@ queue is parked; the resolver's completion event releases it. `dequeue-merge <G>
|
|
|
17
18
|
zero-commit branch records an explicit no-op without `--landed`); `group-fail <G>` is the fail-soft exit.
|
|
18
19
|
`group-merge` refuses to write while main is mid-merge (`MERGE_HEAD` exists, reason `merge-in-progress`),
|
|
19
20
|
when the branch has unlanded commits and `--landed` is absent (`landed-required`), when the supplied sha
|
|
20
|
-
is not that group's landing merge commit (`landed-mismatch`/`landed-unknown`),
|
|
21
|
-
(`group-failed`)
|
|
21
|
+
is not that group's landing merge commit (`landed-mismatch`/`landed-unknown`), for a `failed` group
|
|
22
|
+
(`group-failed`), and while any planned chunk of the group is not `done`/`accepted` (`chunks-incomplete`).
|
|
23
|
+
The ledger row is the truth; the state file is written **after** a successful
|
|
22
24
|
`group-merge`, never before.
|
|
23
25
|
|
|
24
26
|
0. **Actual-write audit** (deterministic, observability — never a stop): runs **once per wave, when
|
|
@@ -72,6 +74,29 @@ Then, for each group popped from the queue:
|
|
|
72
74
|
`--landed <M>`: the gate accepts `M` when it is a first-parent merge on main whose subject names
|
|
73
75
|
`specpipe/g<G>r<wtGen>` (`landed-mismatch` otherwise).
|
|
74
76
|
|
|
77
|
+
**Incomplete group — the `chunks-incomplete` repair.** `queue-merge` and landed `group-merge --landed`
|
|
78
|
+
both require every planned chunk to be `done`/`accepted` (exit 2). Because the queue gate fires before
|
|
79
|
+
the landing merge, this normally stops an incomplete branch **before** `git merge` runs. If the refusal
|
|
80
|
+
still arrives, `dequeue-merge <G>` when it is queued, then branch on the group's status:
|
|
81
|
+
- **still `coding`** (no `group-merge` row was written): finish the remaining chunks on the current
|
|
82
|
+
generation, then queue and land again. A `closed`/`abandoned` chunk can never land → `group-fail <G>`.
|
|
83
|
+
If a `git merge` already ran, main holds a partial merge commit; keep coding the same generation and a
|
|
84
|
+
second `--no-ff` merge lands the rest (or the group is failed soft). Never mark missing chunks done.
|
|
85
|
+
`group-reopen` is **not** available here — it refuses `not-merged`, and a coding completion is not a
|
|
86
|
+
repair.
|
|
87
|
+
- **already `merged`/`done`** (a row written by an older release, or a premature landing): the group is
|
|
88
|
+
reopenable. Run `dispatch.mjs <HMOS> group-reopen <G> --base <current main HEAD>` — it opens generation
|
|
89
|
+
`wtGen+1` from current main, keeps the finished chunks `done` (their code is already on main), reopens
|
|
90
|
+
the rest **and the resolver unit** to `pending`, re-admits the group and its chunk units to
|
|
91
|
+
`state.plan` (so a later wave's plan cannot hide them), and clears `landed`/`noop`/`mergeQueued` so a
|
|
92
|
+
second, complete landing can be recorded. Then continue B1 and land once. A row with no recorded
|
|
93
|
+
landing is re-verified against generation `wtGen` first: `landing-unrecorded` (nothing landed) and
|
|
94
|
+
`landing-unverifiable` (branch state unreadable) refuse the repair instead of assuming the finished
|
|
95
|
+
chunks are on main. `group-reopen` also refuses `not-merged`, `nothing-to-reopen` (all chunks
|
|
96
|
+
done/accepted), `active-units`, `max-generations`, a `--wt-gen` that is not `wtGen+1`
|
|
97
|
+
(`wtGen-mismatch`, exit 2), and a mismatched `--worktree`/`--branch`; every refusal happens before the
|
|
98
|
+
tree moves. It is the only sanctioned way back from `merged`; never hand-edit the ledger.
|
|
99
|
+
|
|
75
100
|
Never hand B4 `WAVE_BASE..<main head after the merge>` — that tree contains all earlier groups'
|
|
76
101
|
changes. State marks (`stage: "B"`, group `merged`, the B4 range) follow a successful `group-merge`
|
|
77
102
|
in the same turn.
|
|
@@ -88,12 +113,14 @@ Then, for each group popped from the queue:
|
|
|
88
113
|
2. Claim: `dispatch.mjs <HMOS> claim resolver:g<G>` (prints `claimGen`, `token`, `attempt`).
|
|
89
114
|
3. Run `git -C <worktree> merge <main HEAD>`. A clean merge creates a merge commit with no conflict
|
|
90
115
|
— the renderer below reports `resolver_needed:false`, and the attempt is abandoned as a phantom.
|
|
91
|
-
4. Render the prompt: `node <skill-dir>/scripts/resolver_prompt.ts <HMOS> <G>
|
|
92
|
-
|
|
93
|
-
|
|
116
|
+
4. Render the prompt: `node <skill-dir>/scripts/resolver_prompt.ts <HMOS> <G> --android <ANDROID>`
|
|
117
|
+
→ one strict-JSON line `{resolver_needed, unitId, worktree, conflicts, groups, issues_file,
|
|
118
|
+
hmos_project_path, android_project_path, prompt}`. The renderer
|
|
94
119
|
derives the involved groups from each landed group's `<merge>^1..<merge>` net-change range
|
|
95
120
|
intersected with the conflicted files; `--groups G1,G2` is a manual override (the current group
|
|
96
|
-
is always included). `--
|
|
121
|
+
is always included). `--android <ANDROID>` is **always** passed: the resolver needs the
|
|
122
|
+
Android-side index for parity queries, and the JSON carries both `hmos_project_path` (the shared
|
|
123
|
+
`<HMOS>` index root) and `android_project_path` (`null` when no Android root exists).
|
|
97
124
|
`--dry-run` is operator-only (prints the markdown; no ledger write). `resolver_needed:false`
|
|
98
125
|
(empty conflict list) is a phantom: `abandon resolver:g<G> --expect-gen <claimGen> --token
|
|
99
126
|
<token> --reason phantom`, then finish the landing (step 1) / no-op.
|
|
@@ -104,13 +131,27 @@ Then, for each group popped from the queue:
|
|
|
104
131
|
The prompt carries the `unitId`, the conflicted file list, **each involved group's ORIGINAL SPEC**
|
|
105
132
|
plus its chunk SPECs and design docs (absolute paths; the resolver reads only those relevant to the
|
|
106
133
|
conflicted files), **the worktree path as its exclusive working directory (never touch main)**, the
|
|
107
|
-
wiring forbidden list in the same compact form as B1's chunk dispatch, the HomeGraph rule only
|
|
108
|
-
|
|
109
|
-
|
|
134
|
+
wiring forbidden list in the same compact form as B1's chunk dispatch, the HomeGraph rule (read-only
|
|
135
|
+
CLI on the **available** shared indexes — see the availability rule below), the exact
|
|
136
|
+
`resolver/attempt_<n>/issues.md` path for a failure, the instruction
|
|
110
137
|
"while preserving the other group's already-merged scenarios, land this group's scenarios onto the
|
|
111
138
|
current code", and a required strict-JSON return
|
|
112
139
|
(`{ "ok": true, "unitId": "resolver:g<G>", "merge_commit": "<hash>" }`). The resolver works **only
|
|
113
140
|
in the group's worktree**; main is untouched until the post-completion landing (step 1).
|
|
141
|
+
|
|
142
|
+
**HomeGraph availability (appended to the rendered prompt).** `resolver_prompt.ts` has no readiness
|
|
143
|
+
flag and always emits both index paths, so the orchestrator appends the decision after rendering:
|
|
144
|
+
|
|
145
|
+
- engine not `off` and at least one index ready (`hmos_index_ready` / `android_index_ready`; an unready
|
|
146
|
+
path is dropped from the rule) → the read-only CLI rule: `homegraph explore -p`, `impact` and
|
|
147
|
+
`callers` on the available indexes; never `init`/`sync`/`index`/`unlock`, never a worktree index; a
|
|
148
|
+
symbol the index shows but the worktree lacks is `index_ahead`, never proof it exists.
|
|
149
|
+
- `ENGINE_MODE=off` or no index ready (missing / degraded sync) → replace the rule with: "HomeGraph is
|
|
150
|
+
unavailable (`<engine-mode>` / `<engine-degraded-reason>`) — do not query any index; locate code with
|
|
151
|
+
grep/read and record `fallback: homegraph-unavailable` in `resolver/attempt_<n>/notes.md`."
|
|
152
|
+
|
|
153
|
+
A resolver therefore never queries an index that does not exist.
|
|
154
|
+
|
|
114
155
|
Evidence: run `dispatch.mjs <HMOS> evidence resolver:g<G>` (read-only; exit 0 = `completed`, 1 =
|
|
115
156
|
not). `completed` → `artifact` + `submit(completed)`; `failed` (a fresh `resolver/attempt_<n>/issues.md`)
|
|
116
157
|
→ `submit(failed)`; `invalid` → `reject --reason evidence-invalid`. `incomplete` **on the
|
|
@@ -127,37 +168,99 @@ Then, for each group popped from the queue:
|
|
|
127
168
|
b. **Group re-code (1×):** `dequeue-merge <G>`; if the failed resolver left a worktree merge,
|
|
128
169
|
`git -C <worktree> merge --abort`. Choose the generation mode by the trigger:
|
|
129
170
|
- **content failure** → `group-reset <G> --mode reuse --base <current main HEAD> --reason hop-b`
|
|
130
|
-
(the in-place `reset --hard`; `wtGen` unchanged)
|
|
131
|
-
|
|
171
|
+
(the in-place `reset --hard`; `wtGen` unchanged). Normally no index write: the reset moves worktree
|
|
172
|
+
files only; the shared main index was already synced at `b2-merge`. If code on main did change during
|
|
173
|
+
hop (b) (e.g. a resolver landing, then another merge), run
|
|
174
|
+
`node <skill-dir>/scripts/ensure_index.ts <HMOS> --sync` once with trigger `b2-hop-b` (skip when
|
|
175
|
+
`ENGINE_MODE=off`); otherwise this row does not apply and no index is written.
|
|
132
176
|
- **orphaned/dead resolver** → `group-reset <G> --mode fresh --base <current main HEAD>
|
|
133
177
|
--reason hop-b --worktree <abs>/WT/g<G>r<next> --branch specpipe/g<G>r<next>`: the generation
|
|
134
178
|
fence creates the new generation and **leaves the old tree/branch in place** (`group-merge` and
|
|
135
179
|
C remove older generations); it fails with
|
|
136
|
-
`max-generations` when `wtGen+1 >= 3` (the generation budget is exhausted → hop (c)).
|
|
137
|
-
the
|
|
180
|
+
`max-generations` when `wtGen+1 >= 3` (the generation budget is exhausted → hop (c)). No index
|
|
181
|
+
write: the reset moves worktree files only; the shared main index was already synced at
|
|
182
|
+
`b2-merge`. If code on main did change during hop (b) (e.g. a resolver landing, then another
|
|
183
|
+
merge), run `node <skill-dir>/scripts/ensure_index.ts <HMOS> --sync` once with trigger `b2-hop-b`
|
|
184
|
+
(skip when `ENGINE_MODE=off`); otherwise this row does not apply and no index is written.
|
|
138
185
|
In both modes run `stage_design_inputs.ts <HMOS> WT/g<G>r<n>` (idempotent) and reset the group's
|
|
139
186
|
state chunk rows and group status to `pending` (the ledger reset already did its side). Record
|
|
140
187
|
`state.groups[G].audit.base = <that HEAD>` (the `tip` is re-recorded when the re-code completes)
|
|
141
188
|
and re-run the chunks through the same event loop (claim → intent → dispatch → confirm; the design
|
|
142
189
|
is reused unless an issue file exists). The so-id resume rule covers the re-code's own commits if
|
|
143
|
-
it crashes midway. Exit 1 from `
|
|
144
|
-
with `reason:"sync_incomplete"` is a degraded refresh, never a
|
|
190
|
+
it crashes midway. Exit 1 from `ensure_index.ts` (or `reason:"lock_busy"`) → record
|
|
191
|
+
`reason`/`detail` and continue; exit 0 with `reason:"sync_incomplete"` is a degraded refresh, never a
|
|
192
|
+
re-dispatch trigger.
|
|
145
193
|
c. **Fail-soft:** `close resolver:g<G> --expect-gen <claimGen> --token <token> --reason
|
|
146
194
|
ladder-exhausted` (the `close` records the terminal reason), then `group-fail <G>` and continue with
|
|
147
195
|
the next group; list it in the final report (groups that depended on its code are flagged).
|
|
148
196
|
|
|
149
|
-
3. Every merge is followed by
|
|
197
|
+
3. Every successful landing (`group-merge`) is immediately followed by `ensure_index.ts <HMOS> --sync`
|
|
198
|
+
(trigger `b2-merge`; skip when `ENGINE_MODE=off`; exit 1 or `reason:"lock_busy"` is a degraded refresh,
|
|
199
|
+
never a merge failure), so the shared main index matches main before the next coding turn; one build
|
|
200
|
+
still covers the whole wave (B3).
|
|
150
201
|
|
|
151
202
|
After every member is `merged` or `failed` and the merge queue is empty (the B2 step-0 audit has run
|
|
152
203
|
first): **apply wiring** — idempotently: skip the whole application when a `wiring` commit already exists
|
|
153
|
-
in `WAVE_BASE..HEAD` (`git log --oneline <WAVE_BASE>..HEAD --grep '^wiring$'`); per row, if the target
|
|
154
|
-
file already contains the row's key (route name / string key / entity name), skip that
|
|
155
|
-
|
|
204
|
+
in `WAVE_BASE..HEAD` (`git log --oneline <WAVE_BASE>..HEAD --grep '^wiring$'`; a `wiring (deps of G<G>)` commit from the deps release sweep does not count); per row, if the target
|
|
205
|
+
file already contains the row's key (route name / string key / entity name / permission name), skip that
|
|
206
|
+
row and note it in the wave log.
|
|
207
|
+
|
|
208
|
+
**Permission completeness is a named part of this wiring step — check it explicitly, every wave, never
|
|
209
|
+
infer it from the rows.** Before the `wiring` commit, run the deterministic collector (read-only; one
|
|
210
|
+
JSON line):
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
node <skill-dir>/scripts/check_permissions.ts <HMOS> --wave <K>
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
It sweeps this wave's `merged_spec.md` + chunk SPECs/`design.md` (every `ohos.permission.*` name, consent
|
|
217
|
+
ids included), reads the entry module's `module.json5` `requestPermissions` (F0's pre-seed plus everything
|
|
218
|
+
merged so far), F0's per-wave `shared_manifest.json` `notes` and `references/permission-index.json`, and
|
|
219
|
+
replies `toAdd[]`, `held[]`, `unknown[]`, `unused[]`, `declaredForbidden[]` and `counts`.
|
|
220
|
+
|
|
221
|
+
**A permission is added only when F0's own rules allow it** (`references/shared-layer.md` → Permissions):
|
|
222
|
+
the index entry must have `restricted: false` **and** `level: normal`. A restricted / ACL name, a
|
|
223
|
+
`system_basic` / `system_core` name, a capability HarmonyOS serves through a system picker or UI (media
|
|
224
|
+
read, contact selection, audio pick, `tel:`), and notification publishing are **never** declared, whatever
|
|
225
|
+
a spec or design says — a normal-APL signature cannot be granted them and the store review rejects them.
|
|
226
|
+
The script already applies that filter (those names are in `held[]` with the reason): apply **only
|
|
227
|
+
`toAdd[]`** exactly like an `add-permission` row — append to `requestPermissions` (never rewrite), and give
|
|
228
|
+
a `user_grant` entry `reason` + `usedScene`. Never re-add a held name by hand. A picker / notification
|
|
229
|
+
capability the specs name but the index does not mark restricted cannot be caught mechanically — F0's
|
|
230
|
+
rules still win over the index: hold it and record its `<name> | skip | <documentId> | picker|none` line so
|
|
231
|
+
later waves and the script agree.
|
|
232
|
+
|
|
233
|
+
**F0's judgement is authoritative and remembered.** A name F0 already judged — the line
|
|
234
|
+
`<name> | skip | <documentId> | restricted|picker|none` in a wave's `shared_manifest.json` `notes` — stays
|
|
235
|
+
held: it is never re-added and never re-counted as missing in a later wave. `unknown[]` (a name absent from
|
|
236
|
+
`references/permission-index.json`) is report-only: never write it; record
|
|
237
|
+
`wiring: permission-missing-not-in-index <name>` in the wave log and flag the owning group.
|
|
238
|
+
`declaredForbidden[]` (a restricted / non-`normal` name that is already declared) goes to the final
|
|
239
|
+
report's manual follow-up — never auto-removed here.
|
|
240
|
+
|
|
241
|
+
**The reverse check spans the campaign, not the wave.** `unused[]` compares the declaring `module.json5`
|
|
242
|
+
with every group already merged/done **plus F0's notes** — never with this wave alone, or an earlier wave's
|
|
243
|
+
permission would be reported unused on every later wave. Record each hit as
|
|
244
|
+
`wiring: permission-unused <name>` in the wave log, never remove it.
|
|
245
|
+
|
|
246
|
+
Declaring the permission is wiring; the runtime consent (`requestPermissionsFromUser`) call site belongs
|
|
247
|
+
to the chunk coder and is only verified here (`consent.callSites` in the reply; missing → flag the group
|
|
248
|
+
for B4, do not write it into a coder file). State the result in the wave log and in the `wiring` commit
|
|
249
|
+
body (`permissions: required <n>, added <m>, missing <k>, held <h>`) — a wave whose check did not run is
|
|
250
|
+
not a completed wiring step, a non-empty `unknown[]` is a final-report follow-up item, and a non-empty
|
|
251
|
+
`held[]` is normal.
|
|
252
|
+
|
|
253
|
+
A permission row is keyed by its `ohos.permission.*` name (never by the
|
|
254
|
+
`reason` string): F0 may already have declared the name up front, and the same name from two groups must
|
|
255
|
+
apply once. A permission row whose name is **absent from `references/permission-index.json`** is never
|
|
256
|
+
applied: skip it and record `wiring: permission-name-not-in-index <name>` in the wave log, so the chunk
|
|
257
|
+
that invented it is flagged instead of writing an unallowlisted name into `module.json5`. For each group (in order), aggregate its chunks' `wiring.md` files
|
|
156
258
|
(`.hometrans/spec_group_<G>/chunk_<k>/wiring.md`, chunk order — the winning attempt's files are promoted
|
|
157
259
|
to `chunk_<k>/` on `release`, `resolver/` for a resolver) and mechanically apply the rows to the target
|
|
158
260
|
files (change types: routes / pages / permissions / dependencies / entities / symbol exports / abilities /
|
|
159
261
|
strings — the surface is `state.config.wiring_files`; lock files are skipped, the build regenerates
|
|
160
262
|
them). **Same-key check**: rows from different groups targeting the same file + same key → record as a
|
|
161
263
|
cross-group wiring conflict for the final report's manual follow-up list (do not block — the later row
|
|
162
|
-
wins; needs human adjudication). Then one commit `wiring`. If
|
|
163
|
-
commit
|
|
264
|
+
wins; needs human adjudication). Then one commit `wiring`. If no wiring file changed (no row applied and
|
|
265
|
+
the permission-completeness check added nothing), skip the commit — the completeness check still ran and
|
|
266
|
+
its counts are recorded in the wave log.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# After the wave loop — Homecheck → runtime smoke gate → Finalization
|
|
2
|
+
|
|
3
|
+
Authoritative post-loop procedure, applied verbatim (SKILL.md → After the wave loop keeps only the navigation summary). Order: Homecheck → smoke gate → Finalization, each gated by its marker (resume rules: `references/state-and-resume.md` → After the wave loop).
|
|
4
|
+
|
|
5
|
+
## Homecheck static-defect check (after the last wave, before the smoke gate)
|
|
6
|
+
|
|
7
|
+
**Finalization is gated on this step.** `state.post_homecheck` must exist before Finalization. Missing → run this gate (or write the I2 8b `skipped` mirror, per `references/state-and-resume.md`), then the smoke gate.
|
|
8
|
+
|
|
9
|
+
Dispatch one foreground `general` sub-agent to run the gate verbatim per `references/static-defect-gate.md` (that file owns the inputs, the nonce rule, gate mode, warning policy, fail-soft rules and the reply contract; pass `runId = state.config.campaign_id`). Validate its reply per B3 (`summary.json` fallback only on a `runId` match), mirror it into `state.post_homecheck` (the resume authority); reply `build: FAILED` → dispatch one `build-fixer` (B3's contract, `output_path: <HMOS>/.hometrans/homecheck/build`). Then the smoke gate on the fresh build.
|
|
10
|
+
|
|
11
|
+
## Runtime smoke gate (after Homecheck, before Finalization)
|
|
12
|
+
|
|
13
|
+
Run `a2h-coldstart-smoke-gate` yourself (no sub-agent) with `harmony_project_dir = <HMOS>`, `image_read = IMAGE_READ`; a still-red post-Homecheck build (after `build-fixer`) → record `SKIPPED_HOMECHECK_BUILD_FAILED`, do not run it. After a verdict (or that skip) write `state.post_smoke = { verdict, at }` atomically — enum and reporting per `references/final-report-template.md`; `SKIPPED_*` counts as executed; no verdict → no marker → Finalization blocked.
|
|
14
|
+
|
|
15
|
+
## Finalization (after all waves)
|
|
16
|
+
|
|
17
|
+
0. **Precondition — both markers exist.** `state.post_homecheck.status` (the `skipped` mirror counts) and `state.post_smoke.verdict` are both required; missing either → re-run that step and write its marker first. A missing marker is never a pass, on a resume too. The one exemption is a carried-only round (no group, `finalization.carried_only` seeded by `plan_groups.ts`): nothing was recoded, so it never reaches this step (`references/state-and-resume.md` → Carried-only exemption).
|
|
18
|
+
1. Final build sanity check: run `a2h-fix-build-errors` once against `HMOS` with `DEVECO_HOME` as `deveco_studio_path` (fast no-op when green); commit any changes as `build fix`.
|
|
19
|
+
2. Design issue sweep: list `DESIGN_DIR/SPEC_DESIGN_G*_c*_issue.md` files for manual follow-up.
|
|
20
|
+
3. Run `node <skill-dir>/scripts/check_design_map.ts <HMOS>`; exit 1 → list its problems in the report, never call the map complete.
|
|
21
|
+
3b. **Ledger finalization**: snapshot `<HMOS>/.hometrans/dispatch/ledger.jsonl` to `dispatch/ledger.final-<ts>.jsonl` (the summary report lists its unresolved/accepted units), then write `<HMOS>/.hometrans/dispatch/waker.stop` (idempotent — the waker was already stopped at the last wave's barrier) and `reconcile` once for the final count. Never delete the ledger; never leave a background waker alive after the run ends.
|
|
22
|
+
4. Print the summary report per `references/final-report-template.md` (every section mandatory; all outcomes — including failures — carried, never silently dropped).
|
|
23
|
+
5. Write `state.finalization = { done: true, final_build, homecheck: <post_homecheck.status>, smoke: <post_smoke.verdict>, at }` (atomic) — the completion marker callers check; absent = Finalization never ran. Flags without on-disk evidence are not done (state-and-resume.md → Completion evidence).
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# B4 — Unified review loop (parallel per group, per-group serial fix, only open groups re-reviewed)
|
|
2
|
+
|
|
3
|
+
Authoritative B4 procedure, applied verbatim (SKILL.md → B4 keeps only the navigation summary). Also read SKILL.md's rule for recording every `ensure_index` call: it applies to every trigger point below.
|
|
4
|
+
|
|
5
|
+
Every group carries its review state in `state.groups[G].review = { round, open, scenarios, carry_over, fix_commits }` (written after every step below; atomic like every state write):
|
|
6
|
+
- `open` — `true` while the group still has a defect the fixer can act on.
|
|
7
|
+
- `scenarios` — the scenario ids (`so-N Scenario X`) the last report judged FAIL / PARTIAL.
|
|
8
|
+
- `carry_over` — the path of the group's last `review-fix-report.md`, whose Remaining Issues the next fixer re-attempts.
|
|
9
|
+
- `fix_commits` — every `fix(review)` commit made for this group.
|
|
10
|
+
|
|
11
|
+
A group is **open** after a review when its report has any FAIL / PARTIAL scenario, a broken Launch Path hop, a non-PASS Cross-Cutting section, or a wave-audit finding that names it — or when its report is **missing** (reviewer failed twice). PASS and UNABLE TO VERIFY are **closed** verdicts: UNABLE TO VERIFY is evidence debt that no code change closes, so it never keeps a group open and never costs a round. A closed group is never re-reviewed and never handed to a fixer again, unless step 1(c) reopens it.
|
|
12
|
+
|
|
13
|
+
Loop rounds `r = 1 .. MAX_ROUNDS_REVIEW` (default `2`):
|
|
14
|
+
|
|
15
|
+
0. **Single-writer index sync (main tree)** — the orchestrator is the only writer of `<HMOS>`'s index; coders, reviewers, fixers, resolvers and the semantic-docs sub-agent are read-only, and no worktree index exists to refresh. **Skip entirely when `ENGINE_MODE=off`**. Before dispatching this round's reviewers: `node <skill-dir>/scripts/ensure_index.ts <HMOS> --sync` (trigger `b4-step0`). Never gate on `homegraph status`: after the B2/B3 commits the tree is clean, so it reports "up to date" while the index is behind HEAD. Exit 1 → record `reason`; under `required` hard-stop (`state.engine_blocked`), under `auto` record `engine_degraded` and continue (reviewers receive `engine_degraded_reason`). After two consecutive non-`lock_busy` failures the circuit breaker skips this step for the rest of the campaign.
|
|
16
|
+
|
|
17
|
+
(Recording every `ensure_index` call: SKILL.md → B4 — it applies to every trigger point.)
|
|
18
|
+
1. **Select this round's review set — exactly these groups, computed from state, never by judgment:**
|
|
19
|
+
- `r = 1`: every `merged` member of the wave, all scenarios.
|
|
20
|
+
- `r ≥ 2`: only
|
|
21
|
+
- (a) groups still **open** after the previous round's fix;
|
|
22
|
+
- (b) groups whose previous report is missing;
|
|
23
|
+
- (c) **regression check** — a closed group whose files were touched by a `fix(review)` or rebuild commit of the previous round (`git -C <HMOS> diff --name-only <commit>^..<commit>` intersected with `git diff --name-only` of the group's B2 range). This reopens the group.
|
|
24
|
+
|
|
25
|
+
Every other group is skipped — it is not reviewed again.
|
|
26
|
+
- The set is empty → exit the loop.
|
|
27
|
+
2. **Dispatch the selected reviewers as ONE foreground batch — every reviewer call of the round in a single assistant message, never one-per-message** (reviewers are read-only — overlap is always safe). Per selected group: a `code-reviewer` sub-agent call with:
|
|
28
|
+
- `harmonyos_project_path: <HMOS>`;
|
|
29
|
+
- `commit_range: <the group's net-change range recorded at B2 — PRE..<merge-commit>>`;
|
|
30
|
+
- `test_case_path: <merged_spec abs path>`;
|
|
31
|
+
- `output_path: <HMOS>/.hometrans/spec_group_<G>/review-round_<r>`;
|
|
32
|
+
- from `r ≥ 2` also `extra_commits: <state.groups[G].review.fix_commits plus the previous round's rebuild commit, when any>`, so the fixes are in the change context. The B2 range alone predates them.
|
|
33
|
+
- from `r ≥ 2` also `scenarios`:
|
|
34
|
+
- case (a): the group's `review.scenarios` plus the scenarios its cross-cutting / launch-path / audit findings cite;
|
|
35
|
+
- cases (b) and (c): omitted, so all scenarios are reviewed;
|
|
36
|
+
- `android_project_path: <ANDROID>`;
|
|
37
|
+
- `hmos_index_ready` / `android_index_ready`: the orchestrator's `<true|false>` verdict for each index;
|
|
38
|
+
- `homegraph_guide`: `<skill-dir>/references/homegraph-cli.md`;
|
|
39
|
+
- `engine_mode` / `engine_degraded_reason`: `<ENGINE_MODE>` / the recorded degraded reason (`null` when none).
|
|
40
|
+
|
|
41
|
+
Add exactly these fields — `harmonyos_project_path` is both the review target and the HomeGraph index root (the same `<HMOS>` main checkout). Wiring registrations live in the `wiring` commit, outside every group's range.
|
|
42
|
+
|
|
43
|
+
**Failure handling — retry once, never a stop.** A reviewer call that errors → re-dispatch it once, with the same contract, batched with every other same-round failure. A second failure → record it and continue: that group's report is missing, it stays open, and it is flagged in the final report. Reports are per-spec sectioned.
|
|
44
|
+
3. For every reviewer that returned, run `node <skill-dir>/scripts/check_review_evidence.ts <output_path>/code-review-report.md --engine-mode <ENGINE_MODE>`. `<report>` is the per-group report produced in this round — never `findings.md` (it is assembled only in step 5, so it would read as `report-unreadable`). A missing section is a warning under `auto` and a failure under `required`: re-dispatch that reviewer once; if it is still missing, record `review_contract_violation` and keep the round's verdicts.
|
|
45
|
+
|
|
46
|
+
**Update each reviewed group's state.**
|
|
47
|
+
- Extract per-spec verdicts into `state.specs[]` (stage stays `B`).
|
|
48
|
+
- Set `review.round = r`, recompute `open`, and set `scenarios` to the FAIL / PARTIAL scenario ids of this report. A scenario reviewed this round replaces its old verdict; one not in this round's `scenarios` subset keeps it.
|
|
49
|
+
- The wave audit's findings (`.hometrans/wave_<K>/claim_audit.json`: registry edits, resolver registry edits / wiring-mode violations, cross-group actual overlaps) are attributed in round 1 to every group they name and keep that group open until a fixer has processed them. A finding that names two groups goes to the lower `G`.
|
|
50
|
+
4. **Exit check.** No group is open → exit the loop. Open groups whose only cause is a missing report get no fixer: go straight to the next round.
|
|
51
|
+
5. **Fix — one fix-mode `code-reviewer` per open group, dispatched serially in group order.** Fixers write to the main tree, so one runs at a time. Each fix call gets:
|
|
52
|
+
- `mode: fix`;
|
|
53
|
+
- `review_report_path: <HMOS>/.hometrans/spec_group_<G>/review-round_<r>/findings.md` — the group's round-`r` report, plus the audit findings attributed to it in round 1. The orchestrator writes this file and **copies each reviewer's `## HomeGraph evidence` section into it verbatim**, so the fixer reads the evidence.
|
|
54
|
+
- `carry_over_report_path: <review.carry_over>`, when set — the previous round's fix report for this group, whose Remaining Issues the fixer re-attempts;
|
|
55
|
+
- `harmonyos_project_path: <HMOS>`, `android_project_path: <ANDROID>`;
|
|
56
|
+
- `output_path`: the same `review-round_<r>` dir;
|
|
57
|
+
- `build: false` — the orchestrator builds once for the whole round;
|
|
58
|
+
- `homegraph_guide: <skill-dir>/references/homegraph-cli.md`;
|
|
59
|
+
- `engine_mode: <ENGINE_MODE>`; `engine_degraded_reason: <the recorded reason or null>`.
|
|
60
|
+
- `permission_index: <skill-dir>/references/permission-index.json` — a fixer adds only allowlisted, non-restricted permission names (code-reviewer Step F1).
|
|
61
|
+
|
|
62
|
+
Pass exactly these fields and add no scope restrictions of your own. `wiring-mode` binds only B1 coders in their worktrees. A fixer runs alone on the main tree with nothing left to merge, so it may edit `state.config.wiring_files` files when a finding needs it (for example, a missing `requestPermissions` entry in `module.json5`). Such edits are additive and minimal — never reorder or remove other entries — and every wiring file the fixer touches is listed in its `review-fix-report.md`.
|
|
63
|
+
|
|
64
|
+
After each fixer returns:
|
|
65
|
+
- append its `commit` to `review.fix_commits` when it is not `none`;
|
|
66
|
+
- set `review.carry_over` to its `review-fix-report.md`; then run `node <skill-dir>/scripts/ensure_index.ts <HMOS> --sync` (trigger `b4-fix`; skip when `ENGINE_MODE=off`; record the JSON line — a degraded refresh never blocks the round).
|
|
67
|
+
|
|
68
|
+
A fixer that errors → retry it once; a second failure → record it, the group stays open, and the next fixer is dispatched.
|
|
69
|
+
|
|
70
|
+
When every fixer has returned, dispatch **one** `build-fixer` (B3's fields, `output_path: <HMOS>/.hometrans/wave_<K>/review_round_<r>/build`) and validate its reply exactly as in B3. Its fix commit, when any, counts as a previous-round commit for step 1(c). After that round rebuild, run `node <skill-dir>/scripts/ensure_index.ts <HMOS> --sync` (trigger `b4-rebuild`; skip when `ENGINE_MODE=off`; record the JSON line). Then the next round.
|
|
71
|
+
6. **Last round.** After `r = MAX_ROUNDS_REVIEW`'s fixes, re-review the fixed groups once (step 1–3 rules, `review-round_<r+1>`, no fixer); that verdict is final. Groups still open are listed in the final report with their open scenarios and last `review-fix-report.md` as manual follow-up.
|