@buaa_smat/hometrans 26.0.1 → 26.0.3
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 +14 -7
- package/agents/code-reviewer.md +25 -138
- package/dist/cli/index.js +4 -1
- package/dist/cli/init.js +131 -26
- package/dist/cli/uninstall.js +5 -5
- package/dist/platform/language.js +77 -0
- package/env-requirements.json +30 -5
- package/i18n/FILE-NAMES.md +9 -0
- package/i18n/agents/code-reviewer.md +364 -0
- package/i18n/agents/model-render-worker.md +38 -0
- package/i18n/agents/specgen-worker.md +18 -0
- package/i18n/commands/hometrans.md +17 -0
- package/i18n/skills/a2h-app-migrate/SKILL.md +198 -0
- package/i18n/skills/a2h-app-migrate/references/config.example.json +28 -0
- package/i18n/skills/a2h-app-migrate/references/specs.example.json +19 -0
- package/i18n/skills/a2h-app-migrate/references/stage-map.md +50 -0
- package/i18n/skills/a2h-app-migrate/references/workflow.yaml +1760 -0
- package/i18n/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +114 -0
- package/i18n/skills/a2h-app-migrate/scripts/env_preflight.mjs +1588 -0
- package/i18n/skills/a2h-app-migrate/scripts/human_review_gate.mjs +657 -0
- package/i18n/skills/a2h-app-migrate/scripts/validate_workflow.mjs +541 -0
- package/i18n/skills/a2h-app-migrate/test/test_android_index.mjs +131 -0
- package/i18n/skills/a2h-app-migrate/test/test_arch_done.mjs +54 -0
- package/i18n/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +98 -0
- package/i18n/skills/a2h-app-migrate/test/test_config_example.mjs +42 -0
- package/i18n/skills/a2h-app-migrate/test/test_ensure_utg_snapshot.mjs +147 -0
- package/i18n/skills/a2h-app-migrate/test/test_env_requirements.mjs +698 -0
- package/i18n/skills/a2h-app-migrate/test/test_finalize.mjs +89 -0
- package/i18n/skills/a2h-app-migrate/test/test_image_probe.mjs +120 -0
- package/i18n/skills/a2h-app-migrate/test/test_interaction.mjs +122 -0
- package/i18n/skills/a2h-app-migrate/test/test_preflight_report.mjs +93 -0
- package/i18n/skills/a2h-app-migrate/test/test_resume_plan.mjs +219 -0
- package/i18n/skills/a2h-app-migrate/test/test_resume_summary.mjs +196 -0
- package/i18n/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +100 -0
- package/i18n/skills/a2h-app-migrate/test/test_run_dir.mjs +488 -0
- package/i18n/skills/a2h-app-migrate/test/test_skill_doc.mjs +144 -0
- package/i18n/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +146 -0
- package/i18n/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +161 -0
- package/i18n/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +76 -0
- package/i18n/skills/a2h-app-migrate/test/test_ui_batch_gate.mjs +226 -0
- package/i18n/skills/a2h-app-migrate/test/test_user_facing_progress.mjs +43 -0
- package/i18n/skills/a2h-app-migrate/test/test_utg_static_done.mjs +171 -0
- package/i18n/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +87 -0
- package/i18n/skills/a2h-arch-generate/SKILL.md +375 -0
- package/i18n/skills/a2h-arch-generate/examples/reconcile-existing-project.md +107 -0
- package/i18n/skills/a2h-arch-generate/examples/simple-conversion-backend.md +70 -0
- package/i18n/skills/a2h-arch-generate/references/arkts-mvvm-v2.md +1407 -0
- package/i18n/skills/a2h-arch-generate/references/artifact-contracts.generate.md +120 -0
- package/i18n/skills/a2h-arch-generate/references/artifact-contracts.reconcile.md +123 -0
- package/i18n/skills/a2h-arch-generate/references/bpta-layered-architecture-design.md +88 -0
- package/i18n/skills/a2h-arch-generate/references/database-schema-recovery.md +107 -0
- package/i18n/skills/a2h-arch-generate/references/existing-target-annotation.md +68 -0
- package/i18n/skills/a2h-arch-generate/references/harmony-project-inspection.md +150 -0
- package/i18n/skills/a2h-arch-generate/references/harmony-target-architecture.md +94 -0
- package/i18n/skills/a2h-arch-generate/references/homegraph-workflow.md +120 -0
- package/i18n/skills/a2h-arch-generate/references/source-baseline.md +93 -0
- package/i18n/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +360 -0
- package/i18n/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +798 -0
- package/i18n/skills/a2h-arch-generate/scripts/lib/contract_terms.mjs +40 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/generate.mjs +639 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/reconcile-layer-PROJECT_DESIGN.md +47 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/single-entry-PROJECT_DESIGN.md +15 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/three-layer-PROJECT_DESIGN.md +36 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/verification-report.md +150 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages.json +5 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/e2e/run_e2e.mjs +548 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +1261 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/test_module_templates.mjs +70 -0
- package/i18n/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +851 -0
- package/i18n/skills/a2h-arch-generate/scripts/validate_data_docs.mjs +982 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +9 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/code-generation.md +192 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/spec-design.md +303 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/design/move_spec_technical_reference.mjs +162 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/design/validate_spec_design_output.mjs +298 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +587 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/test_check_units.ts +149 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/move_design.md +18 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/move_design_crlf.md +18 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/move_spec.md +7 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/validate_issue_file.md +12 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/validate_issues.json +57 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/test_spec_design_scripts.mjs +547 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +352 -0
- package/i18n/skills/a2h-batch-ui-align/SKILL.md +323 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/alignment.md +31 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/build.md +13 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/canvas.md +17 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/dynamics.md +27 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/geometry.md +80 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/interaction.md +22 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/resources.md +87 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/state-v1.md +29 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/state.md +14 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/widgets.md +57 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/window.md +29 -0
- package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +705 -0
- package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +417 -0
- package/i18n/skills/a2h-batch-ui-align/references/incremental-scope.md +139 -0
- package/i18n/skills/a2h-batch-ui-align/references/lottie-integration.md +43 -0
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +2549 -0
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +560 -0
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +148 -0
- package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_decorator-quickref.md +220 -0
- package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_paradigm-selection.md +28 -0
- package/i18n/skills/a2h-batch-ui-align/references/step3-capture.md +216 -0
- package/i18n/skills/a2h-batch-ui-align/references/step4-prepare.md +203 -0
- package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +210 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/android_parse_fast.ts +2005 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +1748 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +79 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/detect_paradigm.mjs +245 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/draw_coverage.mjs +264 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +1787 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/gen_rule_docs.mjs +100 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +612 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/group_pack.mjs +1836 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/image_probe.mjs +405 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/measure_pack.ts +1406 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +1226 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +1220 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/state_doc.mjs +412 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/core/cli.ts +134 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/core/i18n.ts +18 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/main.ts +173 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +629 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/android_immersive.ts +125 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +67 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/block_comment_break.ts +64 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/blur_mirrored.ts +134 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_call_sites.ts +242 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_invokes_callback.ts +136 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/canvas.ts +255 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/color_string.ts +109 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/column_shrink.ts +154 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/constant_coordinate.ts +39 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/container_align.ts +140 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_root_builtin.ts +69 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_route.ts +114 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/fixed_size_safe_area.ts +103 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/format_string.ts +157 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_dialog.ts +110 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_picker.ts +115 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +551 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_content.ts +138 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +374 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/offset_in_scroll.ts +163 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/orphan_component.ts +119 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +119 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/page_reachability.ts +94 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/path_commands_vp.ts +50 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +80 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/popup_menu.ts +137 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/r_template_string.ts +37 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/request_permission.ts +98 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/resource_as_string.ts +68 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +97 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/safe_area_clipping.ts +168 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +75 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_delta.ts +178 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sdk_api.ts +195 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/shared_chrome.ts +73 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_blur.ts +95 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/shell_content.ts +198 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/stack_occluding.ts +118 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/state_decorators.ts +73 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/state_name_shadows.ts +93 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/string_quote_leak.ts +73 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/surface_stroke.ts +50 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +123 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/track_getter.ts +132 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +53 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/window_mode.ts +67 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_a11y.test.mjs +598 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_blur.test.mjs +217 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_builder_calls.test.mjs +323 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_fidelity.test.mjs +507 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +427 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_occlusion_offset_format.test.mjs +372 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_review_fixes.test.mjs +298 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rules.test.mjs +365 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_padding_raster.test.mjs +262 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +473 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +560 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/draw_coverage.test.mjs +245 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/export_ui_info.test.mjs +742 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/generate_pages_json.test.mjs +123 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/group_pack.test.mjs +363 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/image_probe.test.mjs +243 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +324 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/occlusion.test.mjs +102 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +325 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +48 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +387 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/static_check_registry.test.mjs +122 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/text_color_diff.test.mjs +250 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/text_color_diff.mjs +470 -0
- package/i18n/skills/a2h-coldstart-smoke-gate/SKILL.md +59 -0
- package/i18n/skills/a2h-dashboard-render/SKILL.md +73 -0
- package/i18n/skills/a2h-dashboard-render/references/artifact-contract.jsonc +117 -0
- package/i18n/skills/a2h-dashboard-render/references/artifact-registry-spec.md +67 -0
- package/i18n/skills/a2h-dashboard-render/references/dashboard-guide.md +91 -0
- package/i18n/skills/a2h-dashboard-render/references/dashboard.config.example.json +19 -0
- package/i18n/skills/a2h-dashboard-render/scripts/dashboard.mjs +3245 -0
- package/i18n/skills/a2h-dashboard-render/scripts/device_capture.mjs +2048 -0
- package/i18n/skills/a2h-dashboard-render/test/fixtures/page_capture/expected.json +156 -0
- package/i18n/skills/a2h-dashboard-render/test/fixtures/page_capture/hmos.json +1 -0
- package/i18n/skills/a2h-dashboard-render/test/fixtures/page_capture/list.xml +1 -0
- package/i18n/skills/a2h-dashboard-render/test/test_artifact_contract.mjs +168 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +118 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +93 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_i18n.mjs +154 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +1369 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +318 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_ui_pipeline.mjs +81 -0
- package/i18n/skills/a2h-dashboard-render/test/test_device_capture_env.mjs +115 -0
- package/i18n/skills/a2h-dashboard-render/test/test_device_capture_policy.mjs +411 -0
- package/i18n/skills/a2h-dashboard-render/test/test_page_capture.mjs +147 -0
- package/i18n/skills/a2h-dashboard-render/test/test_usage_readers.mjs +512 -0
- package/i18n/skills/a2h-fix-build-errors/SKILL.md +304 -0
- package/i18n/skills/a2h-fix-build-errors/references/arkts-strict-patterns.md +219 -0
- package/i18n/skills/a2h-fix-build-errors/references/rdb-entity-pattern.md +131 -0
- package/i18n/skills/a2h-module-semantic-docs/SKILL.md +227 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/module_structure.json +187 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/module_understanding.json +351 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/module_update_plan.json +495 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/project_directory_structure.json +157 -0
- package/i18n/skills/a2h-module-semantic-docs/test/test_scan_and_commit.mjs +388 -0
- package/i18n/skills/a2h-page-specgen/SKILL.md +136 -0
- package/i18n/skills/a2h-page-specgen/references/body-language.md +177 -0
- package/i18n/skills/a2h-page-specgen/references/gates.md +262 -0
- package/i18n/skills/a2h-page-specgen/references/page-inventory.md +173 -0
- package/i18n/skills/a2h-page-specgen/references/spec-template.md +207 -0
- package/i18n/skills/a2h-page-specgen/scripts/facts-build.mjs +1504 -0
- package/i18n/skills/a2h-page-specgen/scripts/footprint.mjs +1528 -0
- package/i18n/skills/a2h-page-specgen/scripts/gate.mjs +576 -0
- package/i18n/skills/a2h-page-specgen/scripts/interactions.mjs +138 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/contracts.mjs +262 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/hg.mjs +176 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/prose.mjs +248 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/reach.mjs +53 -0
- package/i18n/skills/a2h-page-specgen/scripts/prepare.mjs +506 -0
- package/i18n/skills/a2h-page-specgen/scripts/render.mjs +299 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +616 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +234 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/facts.test.mjs +1166 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +74 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/facts/i18n/zh.js.txt +8 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-b+zh+Hans/strings.xml +7 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-zh/strings.xml +8 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/utg/click_paths.json +28 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +758 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fsx.test.mjs +32 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +54 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/gate.test.mjs +271 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/helpers.mjs +54 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/hg.test.mjs +171 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/integration.test.mjs +301 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +83 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +139 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/keys.test.mjs +774 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +1011 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +77 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prose.test.mjs +419 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/reach.test.mjs +93 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +323 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +546 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/render.test.mjs +511 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/submit.test.mjs +701 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/utg-io.test.mjs +90 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +1765 -0
- package/i18n/skills/a2h-resource-convert/SKILL.md +367 -0
- package/i18n/skills/a2h-resource-convert/references/code-vector-icon-rules.md +335 -0
- package/i18n/skills/a2h-resource-convert/references/incremental-page-migration.md +251 -0
- package/i18n/skills/a2h-resource-convert/references/lottie-conversion-rules.md +219 -0
- package/i18n/skills/a2h-resource-convert/references/resource-mapping-rules.md +493 -0
- package/i18n/skills/a2h-resource-convert/references/step4-resource-types.md +249 -0
- package/i18n/skills/a2h-resource-convert/references/step7-report-template.md +217 -0
- package/i18n/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +2532 -0
- package/i18n/skills/a2h-resource-convert/scripts/tests/docs_only_i18n.test.mjs +44 -0
- package/i18n/skills/a2h-spec-design-pipeline/SKILL.md +278 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/coding-loop.md +260 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/merge-queue.md +163 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/scripts.md +44 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/specs.example.json +19 -0
- package/i18n/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +589 -0
- package/i18n/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +506 -0
- package/i18n/skills/a2h-spec-generate/SKILL.md +375 -0
- package/i18n/skills/a2h-spec-generate/references/batch-mode.md +215 -0
- package/i18n/skills/a2h-spec-generate/references/delete-blast-radius.md +3 -0
- package/i18n/skills/a2h-spec-generate/references/dispatch-watchdog.md +150 -0
- package/i18n/skills/a2h-spec-generate/references/fusion-task-contract.md +184 -0
- package/i18n/skills/a2h-spec-generate/references/input-formats.md +27 -0
- package/i18n/skills/a2h-spec-generate/references/library-evidence.md +3 -0
- package/i18n/skills/a2h-spec-generate/references/method-discipline.md +64 -0
- package/i18n/skills/a2h-spec-generate/references/optional-gates.json +45 -0
- package/i18n/skills/a2h-spec-generate/references/recall-guide.md +84 -0
- package/i18n/skills/a2h-spec-generate/references/recall-terse.md +3 -0
- package/i18n/skills/a2h-spec-generate/references/recall-uniapp.md +10 -0
- package/i18n/skills/a2h-spec-generate/references/requirement-scope.md +122 -0
- package/i18n/skills/a2h-spec-generate/references/review-checklist.md +22 -0
- package/i18n/skills/a2h-spec-generate/references/spec-sample-complex.md +80 -0
- package/i18n/skills/a2h-spec-generate/references/spec-sample-transfer.md +43 -0
- package/i18n/skills/a2h-spec-generate/references/spec-samples.md +65 -0
- package/i18n/skills/a2h-spec-generate/references/specs.schema.json +85 -0
- package/i18n/skills/a2h-spec-generate/references/synthesis-rules.md +145 -0
- package/i18n/skills/a2h-spec-generate/references/transfer-file.md +5 -0
- package/i18n/skills/a2h-spec-generate/references/transfer-socket.md +5 -0
- package/i18n/skills/a2h-spec-generate/references/worker-rules.md +129 -0
- package/i18n/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +702 -0
- package/i18n/skills/a2h-spec-generate/scripts/check_spec.ts +515 -0
- package/i18n/skills/a2h-spec-generate/scripts/collect-specs.mjs +727 -0
- package/i18n/skills/a2h-spec-generate/scripts/feature-stem.mjs +151 -0
- package/i18n/skills/a2h-spec-generate/scripts/parse_requirements.ts +515 -0
- package/i18n/skills/a2h-spec-generate/scripts/prepare-facts.mjs +313 -0
- package/i18n/skills/a2h-spec-generate/scripts/publish-specs.mjs +354 -0
- package/i18n/skills/a2h-spec-generate/scripts/regroup-by-page.mjs +669 -0
- package/i18n/skills/a2h-spec-generate/scripts/render-tasks.mjs +385 -0
- package/i18n/skills/a2h-spec-generate/scripts/report.mjs +136 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +2217 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +845 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +572 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +580 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +1265 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +1057 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/behavior-seed.ts +565 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/library-evidence.ts +544 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/navigation-guard.ts +363 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/schema.ts +317 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/selfcheck.ts +707 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/spec-bindings.ts +436 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +608 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +650 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +178 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +923 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +912 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +279 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +163 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +1039 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +256 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fixtures/fusion-run.ts +243 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-area-facts.test.ts +576 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-detectors.test.ts +176 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-e2e.test.ts +103 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-schema.test.ts +111 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-selfcheck.test.ts +307 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +340 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +1857 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-navigation-guard.test.ts +262 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +722 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-scope.test.ts +339 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-selfcheck.test.ts +1253 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +608 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/model-scope.test.ts +411 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/model-task-contract.test.ts +300 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/model-v4.test.ts +1061 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/uniapp-scanner.test.ts +159 -0
- package/i18n/skills/a2h-spec-generate/template/REQ.txt +22 -0
- package/i18n/skills/a2h-spec-generate/template/REQ.xlsx +0 -0
- package/i18n/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +847 -0
- package/i18n/skills/a2h-spec-generate/test/check-spec.test.ts +415 -0
- package/i18n/skills/a2h-spec-generate/test/collect-specs.test.mjs +808 -0
- package/i18n/skills/a2h-spec-generate/test/feature-stem.test.mjs +157 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/components/MyCard.vue +9 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/feature/editor/index.vue +1 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/detail/index.vue +1 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/home/index.vue +33 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/settings/index.vue +1 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages.json +23 -0
- package/i18n/skills/a2h-spec-generate/test/inspect-uniapp.test.mjs +54 -0
- package/i18n/skills/a2h-spec-generate/test/prepare-facts.test.mjs +41 -0
- package/i18n/skills/a2h-spec-generate/test/publish-specs.test.mjs +295 -0
- package/i18n/skills/a2h-spec-generate/test/regroup-by-page.test.mjs +354 -0
- package/i18n/skills/a2h-spec-generate/test/render-tasks.test.mjs +596 -0
- package/i18n/skills/a2h-spec-generate/test/report.test.mjs +47 -0
- package/i18n/skills/a2h-utg-explorer/SKILL.md +120 -0
- package/i18n/skills/a2h-utg-explorer/references/architecture.md +279 -0
- package/i18n/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +918 -0
- package/i18n/skills/a2h-utg-explorer/scripts/final_utg.mjs +446 -0
- package/i18n/skills/a2h-utg-explorer/scripts/hint_check.mjs +147 -0
- package/i18n/skills/a2h-utg-explorer/scripts/hint_source.mjs +119 -0
- package/i18n/skills/a2h-utg-explorer/scripts/recover_b.mjs +550 -0
- package/i18n/skills/a2h-utg-explorer/scripts/recover_d.mjs +380 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +66 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +302 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/content_wait.test.mjs +207 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/direct_launch.test.mjs +130 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/final_utg.test.mjs +135 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/generalization_fixes.test.mjs +252 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +129 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +492 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +199 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/overflow_prefix.test.mjs +327 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/overlay_identity.test.mjs +204 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +393 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/pager_navigation.test.mjs +119 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/panel_routes.test.mjs +208 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +240 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/recover_b.test.mjs +173 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/recover_d.test.mjs +280 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/robustness_fixes.test.mjs +345 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +194 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/semantics.test.mjs +102 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/state_ambiguity.test.mjs +92 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/twin_opener.test.mjs +119 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/variant_strings.test.mjs +63 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +1412 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +2037 -0
- package/i18n/skills/a2h-utg-static/SKILL.md +368 -0
- package/i18n/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +248 -0
- package/i18n/skills/a2h-utg-static/references/view-interactions.md +215 -0
- package/i18n/skills/a2h-utg-static/scripts/assemble.mjs +2120 -0
- package/i18n/skills/a2h-utg-static/scripts/audit.mjs +268 -0
- package/i18n/skills/a2h-utg-static/scripts/click_paths.mjs +609 -0
- package/i18n/skills/a2h-utg-static/scripts/compose_body_text.mjs +250 -0
- package/i18n/skills/a2h-utg-static/scripts/compose_titles.mjs +374 -0
- package/i18n/skills/a2h-utg-static/scripts/compose_widgets.mjs +498 -0
- package/i18n/skills/a2h-utg-static/scripts/fragment_nav.mjs +1137 -0
- package/i18n/skills/a2h-utg-static/scripts/hybrid_scope.mjs +660 -0
- package/i18n/skills/a2h-utg-static/scripts/interaction_sites.mjs +267 -0
- package/i18n/skills/a2h-utg-static/scripts/label_resolve.mjs +913 -0
- package/i18n/skills/a2h-utg-static/scripts/nl_hints.mjs +517 -0
- package/i18n/skills/a2h-utg-static/scripts/presenter_nav.mjs +490 -0
- package/i18n/skills/a2h-utg-static/scripts/static_prior.mjs +956 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/regression_matrix.mjs +1261 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_callee_string_default.mjs +30 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_chrome_tokens.mjs +60 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_commented_out_trigger.mjs +111 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +108 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_vm_nav.mjs +289 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_disabled_guard.mjs +42 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_drawer_panel_gesture.mjs +140 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_fresh_branch_guard.mjs +49 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hint_language.mjs +136 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_bundle_attribution.mjs +74 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_bundled_pages.mjs +181 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +293 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_title_renders.mjs +118 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_label_accessor_forms.mjs +187 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_label_source.mjs +70 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_launch_intent_guard.mjs +67 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_login_interceptor.mjs +368 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_mode_and_cb_param.mjs +172 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +44 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_nl_hint_grammar.mjs +42 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_nl_hints_gate.mjs +85 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_nl_hints_off_path.mjs +67 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_non_gesture_step_flag.mjs +62 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_preference_widgets.mjs +48 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_read_text_crlf.mjs +41 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_sealed_dialog_state.mjs +148 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_state_specific_hop.mjs +130 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_synthetic_label_identity.mjs +51 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_template_title.mjs +61 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_ui_elements_flow_filter.mjs +110 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_data_table.mjs +340 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_relative_url.mjs +125 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +231 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_viewpage_nav.mjs +340 -0
- package/i18n/skills/a2h-utg-static/scripts/uniapp_nav.mjs +1351 -0
- package/i18n/skills/a2h-utg-static/scripts/uniapp_widgets.mjs +244 -0
- package/i18n/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +769 -0
- package/package.json +13 -160
- package/platforms/deveco/agents/code-reviewer.frontmatter.md +1 -1
- package/platforms/opencode/agents/code-reviewer.frontmatter.md +1 -1
- package/skills/a2h-app-migrate/SKILL.md +17 -6
- package/skills/a2h-app-migrate/references/config.example.json +1 -0
- package/skills/a2h-app-migrate/references/stage-map.md +3 -1
- package/skills/a2h-app-migrate/references/workflow.yaml +138 -47
- package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +1 -2
- package/skills/a2h-app-migrate/scripts/env_preflight.mjs +105 -39
- package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +7 -8
- package/skills/a2h-app-migrate/scripts/ledger.mjs +17 -5
- package/skills/a2h-app-migrate/scripts/resume_plan.mjs +43 -7
- package/skills/a2h-app-migrate/scripts/run_dir.mjs +127 -41
- package/skills/a2h-app-migrate/scripts/spec_layout.mjs +2 -0
- package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +38 -0
- package/skills/a2h-app-migrate/test/test_android_index.mjs +131 -0
- package/skills/a2h-app-migrate/test/test_apk_preflight.mjs +63 -0
- package/skills/a2h-app-migrate/test/test_arch_done.mjs +54 -0
- package/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +98 -0
- package/skills/a2h-app-migrate/test/test_config_example.mjs +42 -0
- package/skills/a2h-app-migrate/test/test_devecocli_docs_preflight.mjs +32 -0
- package/skills/a2h-app-migrate/test/test_ensure_utg_snapshot.mjs +147 -0
- package/skills/a2h-app-migrate/test/test_entry_guards.mjs +102 -0
- package/skills/a2h-app-migrate/test/test_env_requirements.mjs +698 -0
- package/skills/a2h-app-migrate/test/test_finalize.mjs +89 -0
- package/skills/a2h-app-migrate/test/test_gate_checkpoint.mjs +146 -0
- package/skills/a2h-app-migrate/test/test_hmos_fingerprint.mjs +68 -0
- package/skills/a2h-app-migrate/test/test_i18n_engine_mirror.mjs +51 -0
- package/skills/a2h-app-migrate/test/test_image_probe.mjs +120 -0
- package/skills/a2h-app-migrate/test/test_infer_android_root.mjs +91 -0
- package/skills/a2h-app-migrate/test/test_interaction.mjs +122 -0
- package/skills/a2h-app-migrate/test/test_json_io.mjs +32 -0
- package/skills/a2h-app-migrate/test/test_leaf_questions.mjs +111 -0
- package/skills/a2h-app-migrate/test/test_module_docs_done.mjs +53 -0
- package/skills/a2h-app-migrate/test/test_parse_args.mjs +69 -0
- package/skills/a2h-app-migrate/test/test_preflight_report.mjs +93 -0
- package/skills/a2h-app-migrate/test/test_resume_plan.mjs +219 -0
- package/skills/a2h-app-migrate/test/test_resume_summary.mjs +196 -0
- package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +100 -0
- package/skills/a2h-app-migrate/test/test_run_dir.mjs +488 -0
- package/skills/a2h-app-migrate/test/test_skill_doc.mjs +144 -0
- package/skills/a2h-app-migrate/test/test_spec_engine_acceptance.mjs +94 -0
- package/skills/a2h-app-migrate/test/test_spec_engine_contract.mjs +147 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +146 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +161 -0
- package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +344 -0
- package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +76 -0
- package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +53 -0
- package/skills/a2h-app-migrate/test/test_ui_batch_gate.mjs +226 -0
- package/skills/a2h-app-migrate/test/test_uniapp_preflight.mjs +83 -0
- package/skills/a2h-app-migrate/test/test_user_facing_progress.mjs +43 -0
- package/skills/a2h-app-migrate/test/test_utg_dirs.mjs +41 -0
- package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +178 -0
- package/skills/a2h-app-migrate/test/test_validate_races.mjs +50 -0
- package/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +87 -0
- package/skills/a2h-arch-generate/SKILL.md +1 -1
- package/skills/a2h-arch-generate/references/database-schema-recovery.md +2 -2
- package/skills/a2h-arch-generate/references/harmony-project-inspection.md +8 -8
- package/skills/a2h-arch-generate/references/homegraph-workflow.md +15 -6
- package/skills/a2h-arch-generate/references/module-evidence-subagent.md +2 -2
- package/skills/a2h-arch-generate/references/source-baseline.md +2 -2
- package/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +35 -46
- package/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +33 -40
- package/skills/a2h-arch-generate/scripts/module_create/generate.mjs +2 -3
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/build.gradle +11 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/AndroidManifest.xml +12 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/MainActivity.kt +8 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/NotesStore.kt +17 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/build.gradle +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/settings.gradle +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/AppScope/app.json5 +8 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/build-profile.json5 +14 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/src/main/ets/utils/Format.ets +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/src/main/ets/pages/Home.ets +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/src/main/ets/engine/SyncEngine.ets +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/hvigorfile.ts +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/oh-package.json5 +9 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/src/main/ets/pages/Index.ets +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/App.vue +10 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/manifest.json +6 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages/index/index.vue +16 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages.json +5 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/run_e2e.mjs +548 -0
- package/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +1260 -0
- package/skills/a2h-arch-generate/scripts/tests/test_cleanup.mjs +191 -0
- package/skills/a2h-arch-generate/scripts/tests/test_console_encoding.mjs +52 -0
- package/skills/a2h-arch-generate/scripts/tests/test_git_root.mjs +34 -0
- package/skills/a2h-arch-generate/scripts/tests/test_module_templates.mjs +70 -0
- package/skills/a2h-arch-generate/scripts/tests/test_router.mjs +138 -0
- package/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +2 -5
- package/skills/a2h-arkts-logic-coder/SKILL.md +21 -2
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +1 -0
- package/skills/a2h-arkts-logic-coder/references/code-generation.md +62 -0
- package/skills/a2h-arkts-logic-coder/references/spec-design.md +4 -0
- package/skills/a2h-arkts-logic-coder/scripts/design/validate_spec_design_output.mjs +22 -25
- package/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +583 -0
- package/skills/a2h-arkts-logic-coder/test/golden/inspect_happy.json +20 -0
- package/skills/a2h-arkts-logic-coder/test/golden/move_design.md +18 -0
- package/skills/a2h-arkts-logic-coder/test/golden/move_design_crlf.md +18 -0
- package/skills/a2h-arkts-logic-coder/test/golden/move_spec.md +7 -0
- package/skills/a2h-arkts-logic-coder/test/golden/resolve_cases.json +36 -0
- package/skills/a2h-arkts-logic-coder/test/golden/validate_issue_file.md +12 -0
- package/skills/a2h-arkts-logic-coder/test/golden/validate_issues.json +57 -0
- package/skills/a2h-arkts-logic-coder/test/test_spec_design_scripts.mjs +547 -0
- package/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +352 -0
- package/skills/a2h-batch-ui-align/SKILL.md +6 -4
- package/skills/a2h-batch-ui-align/references/cards/geometry.md +1 -1
- package/skills/a2h-batch-ui-align/references/cards/resources.md +4 -0
- package/skills/a2h-batch-ui-align/references/cards/widgets.md +22 -3
- package/skills/a2h-batch-ui-align/references/checker-rules.md +66 -3
- package/skills/a2h-batch-ui-align/references/conversion-procedure.md +45 -8
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +7 -5
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +2 -2
- package/skills/a2h-batch-ui-align/references/step4-prepare.md +4 -2
- package/skills/a2h-batch-ui-align/references/step5-convert.md +7 -5
- package/skills/a2h-batch-ui-align/scripts/android_parse_fast.ts +6 -7
- package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +84 -7
- package/skills/a2h-batch-ui-align/scripts/draw_coverage.mjs +264 -0
- package/skills/a2h-batch-ui-align/scripts/evidence_gate.mjs +229 -0
- package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +1 -2
- package/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +4 -5
- package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +88 -26
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +305 -12
- package/skills/a2h-batch-ui-align/scripts/image_probe.mjs +231 -54
- package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +8 -9
- package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +18 -5
- package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +103 -3
- package/skills/a2h-batch-ui-align/scripts/static_check/core/android.ts +231 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/i18n.ts +1 -5
- package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +14 -8
- package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +8 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/android_immersive.ts +3 -3
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/blur_mirrored.ts +2 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_invokes_callback.ts +84 -19
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/color_string.ts +11 -4
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/constant_coordinate.ts +2 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_dialog.ts +110 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_picker.ts +5 -5
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_content.ts +2 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +66 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +119 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/popup_menu.ts +81 -8
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_delta.ts +178 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +123 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/window_mode.ts +2 -3
- package/skills/a2h-batch-ui-align/scripts/static_check/scan_file.ts +6 -0
- package/skills/a2h-batch-ui-align/scripts/tests/agent_cli.test.mjs +217 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_a11y.test.mjs +598 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_align_tint.test.mjs +312 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_blur.test.mjs +217 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_builder_calls.test.mjs +323 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_canvas_pct.test.mjs +312 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_fidelity.test.mjs +507 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +427 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_occlusion_offset_format.test.mjs +372 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_review_fixes.test.mjs +298 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rule_smoke.test.mjs +235 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rules.test.mjs +365 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_padding_raster.test.mjs +262 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_safearea.test.mjs +742 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_shell.test.mjs +91 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_theme.test.mjs +86 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +473 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +567 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_scope.test.mjs +290 -0
- package/skills/a2h-batch-ui-align/scripts/tests/color_utils_asset.test.mjs +74 -0
- package/skills/a2h-batch-ui-align/scripts/tests/detect_paradigm.test.mjs +260 -0
- package/skills/a2h-batch-ui-align/scripts/tests/draw_coverage.test.mjs +244 -0
- package/skills/a2h-batch-ui-align/scripts/tests/evidence_gate.test.mjs +420 -0
- package/skills/a2h-batch-ui-align/scripts/tests/export_scroll_states.test.mjs +31 -0
- package/skills/a2h-batch-ui-align/scripts/tests/export_ui_info.test.mjs +742 -0
- package/skills/a2h-batch-ui-align/scripts/tests/generate_pages_json.test.mjs +123 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_commit.test.mjs +126 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_pack.test.mjs +363 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +1628 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_watch.test.mjs +215 -0
- package/skills/a2h-batch-ui-align/scripts/tests/harmony_index.test.mjs +95 -0
- package/skills/a2h-batch-ui-align/scripts/tests/host_env.test.mjs +115 -0
- package/skills/a2h-batch-ui-align/scripts/tests/image_probe.test.mjs +243 -0
- package/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +324 -0
- package/skills/a2h-batch-ui-align/scripts/tests/occlusion.test.mjs +102 -0
- package/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +325 -0
- package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +297 -0
- package/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +48 -0
- package/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +387 -0
- package/skills/a2h-batch-ui-align/scripts/tests/static_check_registry.test.mjs +122 -0
- package/skills/a2h-batch-ui-align/scripts/tests/test_bfs_exit.ts +49 -0
- package/skills/a2h-batch-ui-align/scripts/tests/text_color_diff.test.mjs +250 -0
- package/skills/a2h-dashboard-render/scripts/dashboard.mjs +12 -14
- package/skills/a2h-dashboard-render/scripts/device_capture.mjs +29 -30
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/broken.xml +1 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/expected.json +156 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/hmos.json +1 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/list.xml +1 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/nested_scroll.xml +1 -0
- package/skills/a2h-dashboard-render/test/test_artifact_contract.mjs +168 -0
- package/skills/a2h-dashboard-render/test/test_cli_check_registry.mjs +99 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +118 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +93 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_i18n.mjs +203 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +1369 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +318 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_ui_pipeline.mjs +81 -0
- package/skills/a2h-dashboard-render/test/test_device_capture_env.mjs +115 -0
- package/skills/a2h-dashboard-render/test/test_device_capture_policy.mjs +411 -0
- package/skills/a2h-dashboard-render/test/test_page_capture.mjs +147 -0
- package/skills/a2h-dashboard-render/test/test_usage_readers.mjs +512 -0
- package/skills/a2h-module-semantic-docs/test/golden/module_structure.json +187 -0
- package/skills/a2h-module-semantic-docs/test/golden/module_understanding.json +351 -0
- package/skills/a2h-module-semantic-docs/test/golden/module_update_plan.json +495 -0
- package/skills/a2h-module-semantic-docs/test/golden/project_directory_structure.json +157 -0
- package/skills/a2h-module-semantic-docs/test/test_scan_and_commit.mjs +388 -0
- package/skills/a2h-page-specgen/SKILL.md +136 -0
- package/skills/a2h-page-specgen/references/body-language.md +177 -0
- package/skills/a2h-page-specgen/references/evidence.md +70 -0
- package/skills/a2h-page-specgen/references/execution-model.md +255 -0
- package/skills/a2h-page-specgen/references/footprint-and-grouping.md +250 -0
- package/skills/a2h-page-specgen/references/gates.md +255 -0
- package/skills/a2h-page-specgen/references/page-inventory.md +173 -0
- package/skills/a2h-page-specgen/references/spec-template.md +207 -0
- package/skills/a2h-page-specgen/scripts/dispatch.mjs +209 -0
- package/skills/a2h-page-specgen/scripts/facts-build.mjs +1504 -0
- package/skills/a2h-page-specgen/scripts/finalize.mjs +422 -0
- package/skills/a2h-page-specgen/scripts/footprint.mjs +1528 -0
- package/skills/a2h-page-specgen/scripts/gate.mjs +558 -0
- package/skills/a2h-page-specgen/scripts/interactions.mjs +137 -0
- package/skills/a2h-page-specgen/scripts/inventory.mjs +269 -0
- package/skills/a2h-page-specgen/scripts/lib/contracts.mjs +255 -0
- package/skills/a2h-page-specgen/scripts/lib/deps-source.mjs +399 -0
- package/skills/a2h-page-specgen/scripts/lib/draft-store.mjs +137 -0
- package/skills/a2h-page-specgen/scripts/lib/footprint-roles.mjs +278 -0
- package/skills/a2h-page-specgen/scripts/lib/fsx.mjs +79 -0
- package/skills/a2h-page-specgen/scripts/lib/hg.mjs +175 -0
- package/skills/a2h-page-specgen/scripts/lib/ledger.mjs +355 -0
- package/skills/a2h-page-specgen/scripts/lib/prose.mjs +234 -0
- package/skills/a2h-page-specgen/scripts/lib/reach.mjs +53 -0
- package/skills/a2h-page-specgen/scripts/lib/source-text.mjs +391 -0
- package/skills/a2h-page-specgen/scripts/lib/symbols.mjs +125 -0
- package/skills/a2h-page-specgen/scripts/lib/utg-io.mjs +110 -0
- package/skills/a2h-page-specgen/scripts/lib/waker-event-store.mjs +658 -0
- package/skills/a2h-page-specgen/scripts/prepare.mjs +492 -0
- package/skills/a2h-page-specgen/scripts/render.mjs +317 -0
- package/skills/a2h-page-specgen/scripts/report.mjs +7 -0
- package/skills/a2h-page-specgen/scripts/submission.mjs +532 -0
- package/skills/a2h-page-specgen/scripts/submit.mjs +79 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/README.md +77 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +590 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/cases.example.json +57 -0
- package/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +207 -0
- package/skills/a2h-page-specgen/scripts/test/dispatch.test.mjs +258 -0
- package/skills/a2h-page-specgen/scripts/test/facts.test.mjs +1164 -0
- package/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +74 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Api.kt +20 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/BothAnnotations.kt +28 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Cache.kt +7 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Comments.kt +26 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Mmkv.kt +7 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Models.kt +19 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Pair.kt +7 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Prefs.kt +9 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Room.kt +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Sample.kt +43 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Templates.kt +34 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Timeouts.kt +8 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/androidTest/Helper.kt +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/build.gradle.kts +16 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/i18n/en.js.txt +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/i18n/zh.js.txt +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/libs.versions.toml +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/package.json +10 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values/strings.xml +10 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-b+zh+Hans/strings.xml +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-land/strings.xml +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-night/strings.xml +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-v21/strings.xml +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-zh/strings.xml +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/test/Legacy.kt +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/weather.proto +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-container/src/AppPreferences.kt +13 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-container/src/SettingsViewModel.kt +16 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-dao/src/UserDao.kt +28 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-moko/i18n/src/commonMain/moko-resources/base/strings.xml +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-moko/i18n/src/commonMain/moko-resources/fil/strings.xml +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/res/values/arrays.xml +25 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/res/values/strings.xml +10 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/res/xml/prefs.xml +27 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/Api.java +19 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/Datastore.kt +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/Settings.java +13 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/forecast.js +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/store.js +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-receiver/src/BasePreferences.kt +13 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-receiver/src/Screen.kt +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-receiver/src/UiPreferences.kt +8 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-retrofit/src/AuthAPI.kt +26 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/AndroidManifest.xml +20 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/feature/auth/navigation/ScreenRoute.kt +8 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/pages.json +19 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/components/Widget.vue +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/pages/detail/detail.vue +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/pages/index/index.vue +24 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/store/userStore.js +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/uni_modules/uview-ui/components/u-thing.js +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp.mkdb.mjs +144 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +94 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/MainFragment.java +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ManyListeners.java +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/PlainActivity.java +3 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/utg/click_paths.json +28 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/utg/fold-chain/utg.json +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/utg/utg.json +34 -0
- package/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +758 -0
- package/skills/a2h-page-specgen/scripts/test/footprint-roles.test.mjs +172 -0
- package/skills/a2h-page-specgen/scripts/test/fsx.test.mjs +32 -0
- package/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +54 -0
- package/skills/a2h-page-specgen/scripts/test/gate.test.mjs +222 -0
- package/skills/a2h-page-specgen/scripts/test/helpers.mjs +54 -0
- package/skills/a2h-page-specgen/scripts/test/hg.test.mjs +171 -0
- package/skills/a2h-page-specgen/scripts/test/integration.test.mjs +301 -0
- package/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +45 -0
- package/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +139 -0
- package/skills/a2h-page-specgen/scripts/test/keys.test.mjs +774 -0
- package/skills/a2h-page-specgen/scripts/test/ledger.test.mjs +464 -0
- package/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +1011 -0
- package/skills/a2h-page-specgen/scripts/test/prepare-index.test.mjs +120 -0
- package/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +68 -0
- package/skills/a2h-page-specgen/scripts/test/prose.test.mjs +390 -0
- package/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +167 -0
- package/skills/a2h-page-specgen/scripts/test/reach.test.mjs +93 -0
- package/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +323 -0
- package/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +546 -0
- package/skills/a2h-page-specgen/scripts/test/render.test.mjs +503 -0
- package/skills/a2h-page-specgen/scripts/test/source-text.test.mjs +181 -0
- package/skills/a2h-page-specgen/scripts/test/submit.test.mjs +701 -0
- package/skills/a2h-page-specgen/scripts/test/utg-io.test.mjs +90 -0
- package/skills/a2h-page-specgen/scripts/test/waker-event-store.test.mjs +1365 -0
- package/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +1765 -0
- package/skills/a2h-page-specgen/scripts/test/waker.test.mjs +1979 -0
- package/skills/a2h-page-specgen/scripts/test/watchdog.test.mjs +313 -0
- package/skills/a2h-page-specgen/scripts/waker.mjs +1234 -0
- package/skills/a2h-page-specgen/scripts/watchdog.mjs +298 -0
- package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +49 -51
- package/skills/a2h-resource-convert/scripts/tests/adaptive_icon.test.mjs +182 -0
- package/skills/a2h-resource-convert/scripts/tests/app_identity.test.mjs +206 -0
- package/skills/a2h-resource-convert/scripts/tests/docs_only_i18n.test.mjs +44 -0
- package/skills/a2h-spec-design-pipeline/SKILL.md +79 -78
- package/skills/a2h-spec-design-pipeline/references/coding-loop.md +51 -12
- package/skills/a2h-spec-design-pipeline/references/execution-model.md +24 -6
- package/skills/a2h-spec-design-pipeline/references/final-report-template.md +3 -2
- package/skills/a2h-spec-design-pipeline/references/initialization.md +15 -4
- package/skills/a2h-spec-design-pipeline/references/merge-queue.md +82 -41
- package/skills/a2h-spec-design-pipeline/references/resolver-prompt.md +61 -0
- package/skills/a2h-spec-design-pipeline/references/scripts.md +19 -10
- package/skills/a2h-spec-design-pipeline/references/shared-layer.md +267 -0
- package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +61 -8
- package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +62 -13
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleMeta.json +8 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleSet.json +8 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/http-extra-data-empty-string-cn.md +55 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/http-extra-data-empty-string-en.md +60 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/HttpExtraDataEmptyStringCheck.js +488 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/index.js +11 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/package.json +17 -0
- package/skills/a2h-spec-design-pipeline/scripts/branch_landed.ts +12 -38
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/evidence.mjs +40 -5
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/fold.mjs +18 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/landing.mjs +74 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/progress.mjs +1 -1
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/wait.mjs +1 -1
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/worktree.mjs +2 -2
- package/skills/a2h-spec-design-pipeline/scripts/dispatch.mjs +128 -5
- package/skills/a2h-spec-design-pipeline/scripts/ensure_wt_index.ts +98 -35
- package/skills/a2h-spec-design-pipeline/scripts/homecheck_scan.ts +218 -37
- package/skills/a2h-spec-design-pipeline/scripts/lib/shared_classes.ts +113 -0
- package/skills/a2h-spec-design-pipeline/scripts/lib/shared_docs.ts +202 -0
- package/skills/a2h-spec-design-pipeline/scripts/lib/wiring.ts +58 -0
- package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +6 -7
- package/skills/a2h-spec-design-pipeline/scripts/resolve_wiring.ts +3 -0
- package/skills/a2h-spec-design-pipeline/scripts/resolver_prompt.ts +348 -0
- package/skills/a2h-spec-design-pipeline/scripts/scan_shared.ts +642 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_commands.mjs +15 -5
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_e2e.mjs +7 -2
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_evidence.mjs +104 -1
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_fold.mjs +24 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_landing.mjs +394 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_progress.mjs +24 -1
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_wait.mjs +14 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_wt_index.ts +163 -5
- package/skills/a2h-spec-design-pipeline/scripts/test_homecheck_scan.ts +15 -7
- package/skills/a2h-spec-design-pipeline/scripts/test_resolve_wiring.ts +14 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_resolver_prompt.ts +350 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_scan_shared.ts +996 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_classes.ts +80 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_docs.ts +205 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_docs.ts +121 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_e2e.ts +85 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_validate_shared_manifest.ts +720 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_wiring.ts +40 -0
- package/skills/a2h-spec-design-pipeline/scripts/validate_shared_manifest.ts +566 -0
- package/skills/a2h-spec-generate/SKILL.md +87 -21
- package/skills/a2h-spec-generate/references/batch-mode.md +78 -17
- package/skills/a2h-spec-generate/references/dispatch-watchdog.md +150 -0
- package/skills/a2h-spec-generate/references/fusion-task-contract.md +7 -0
- package/skills/a2h-spec-generate/references/review-checklist.md +1 -0
- package/skills/a2h-spec-generate/references/synthesis-rules.md +4 -2
- package/skills/a2h-spec-generate/references/worker-rules.md +6 -3
- package/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +4 -5
- package/skills/a2h-spec-generate/scripts/check_spec.ts +145 -14
- package/skills/a2h-spec-generate/scripts/collect-specs.mjs +261 -19
- package/skills/a2h-spec-generate/scripts/dispatch-watch.mjs +1168 -0
- package/skills/a2h-spec-generate/scripts/feature-stem.mjs +1 -2
- package/skills/a2h-spec-generate/scripts/publish-specs.mjs +1 -2
- package/skills/a2h-spec-generate/scripts/regroup-by-page.mjs +1 -2
- package/skills/a2h-spec-generate/scripts/render-tasks.mjs +25 -46
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +26 -27
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +3 -6
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +31 -32
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +2 -3
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +15 -26
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +102 -81
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/behavior-seed.ts +39 -19
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/library-evidence.ts +12 -13
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/navigation-guard.ts +363 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +35 -196
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +3 -1
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +22 -96
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +3 -4
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/contracts.ts +1 -1
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +74 -7
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/prepare.ts +51 -7
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +42 -111
- package/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +1 -20
- package/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +1 -2
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +3 -4
- package/skills/a2h-spec-generate/scripts/reqgen/test/control-fact-join.test.ts +50 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/control-name-uniapp.test.ts +75 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/cross-area-anchor.test.ts +256 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fixtures/fusion-run.ts +243 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fixtures/zip.ts +63 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-area-facts.test.ts +650 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-detectors.test.ts +176 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-e2e.test.ts +103 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-schema.test.ts +111 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-seed.test.ts +195 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-selfcheck.test.ts +307 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +347 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +1948 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-library-evidence.test.ts +239 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-navigation-guard.test.ts +277 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +844 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-scope.test.ts +339 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-selfcheck.test.ts +1253 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +608 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-cli-blockers.test.ts +117 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-scope.test.ts +411 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-seeds.test.ts +175 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-task-contract.test.ts +300 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-v4.test.ts +1061 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/specgen-completeness.test.ts +286 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/stagem-stored-path.test.ts +25 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/uniapp-scanner.test.ts +159 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/zip.test.ts +61 -0
- package/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +879 -0
- package/skills/a2h-spec-generate/test/check-spec.test.ts +430 -0
- package/skills/a2h-spec-generate/test/collect-specs.test.mjs +811 -0
- package/skills/a2h-spec-generate/test/detect-project.test.mjs +37 -0
- package/skills/a2h-spec-generate/test/dispatch-watch.test.mjs +606 -0
- package/skills/a2h-spec-generate/test/ensure-index.test.mjs +230 -0
- package/skills/a2h-spec-generate/test/feature-stem.test.mjs +157 -0
- package/skills/a2h-spec-generate/test/fixtures/android/app/src/main/AndroidManifest.xml +3 -0
- package/skills/a2h-spec-generate/test/fixtures/android/build.gradle +3 -0
- package/skills/a2h-spec-generate/test/fixtures/android/settings.gradle +3 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/package.json +9 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/App.vue +8 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/components/MyCard.vue +9 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/feature/editor/index.vue +1 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/main.ts +6 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/manifest.json +4 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/detail/index.vue +1 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/home/index.vue +33 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/settings/index.vue +1 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages.json +23 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/services/items.ts +3 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/tsconfig.json +8 -0
- package/skills/a2h-spec-generate/test/fixtures/unknown/README.txt +1 -0
- package/skills/a2h-spec-generate/test/inspect-uniapp.test.mjs +54 -0
- package/skills/a2h-spec-generate/test/prepare-facts.test.mjs +41 -0
- package/skills/a2h-spec-generate/test/publication-verdict.test.mjs +182 -0
- package/skills/a2h-spec-generate/test/publish-specs.test.mjs +295 -0
- package/skills/a2h-spec-generate/test/regroup-by-page.test.mjs +354 -0
- package/skills/a2h-spec-generate/test/render-tasks.test.mjs +596 -0
- package/skills/a2h-spec-generate/test/report.test.mjs +47 -0
- package/skills/a2h-utg-explorer/references/architecture.md +4 -0
- package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +64 -80
- package/skills/a2h-utg-explorer/scripts/hint_check.mjs +1 -2
- package/skills/a2h-utg-explorer/scripts/recover.mjs +1 -1
- package/skills/a2h-utg-explorer/scripts/rejudge.mjs +5 -3
- package/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +66 -0
- package/skills/a2h-utg-explorer/scripts/tests/calendar_round_fixes.test.mjs +244 -0
- package/skills/a2h-utg-explorer/scripts/tests/chain.test.mjs +45 -0
- package/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +302 -0
- package/skills/a2h-utg-explorer/scripts/tests/content_wait.test.mjs +207 -0
- package/skills/a2h-utg-explorer/scripts/tests/coverage_rules.test.mjs +104 -0
- package/skills/a2h-utg-explorer/scripts/tests/d_prereqs.test.mjs +231 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_health.test.mjs +160 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_locale_identity.test.mjs +77 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_lock_retry.test.mjs +187 -0
- package/skills/a2h-utg-explorer/scripts/tests/direct_launch.test.mjs +130 -0
- package/skills/a2h-utg-explorer/scripts/tests/explorer_review_fixes.test.mjs +137 -0
- package/skills/a2h-utg-explorer/scripts/tests/final_utg.test.mjs +135 -0
- package/skills/a2h-utg-explorer/scripts/tests/first_round_phases.test.mjs +16 -0
- package/skills/a2h-utg-explorer/scripts/tests/fresh_state_plan.test.mjs +78 -0
- package/skills/a2h-utg-explorer/scripts/tests/generalization_fixes.test.mjs +252 -0
- package/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +129 -0
- package/skills/a2h-utg-explorer/scripts/tests/holds_without_data_parity.test.mjs +26 -0
- package/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +492 -0
- package/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +199 -0
- package/skills/a2h-utg-explorer/scripts/tests/launch_failure.test.mjs +40 -0
- package/skills/a2h-utg-explorer/scripts/tests/node_coverage.test.mjs +193 -0
- package/skills/a2h-utg-explorer/scripts/tests/overflow_prefix.test.mjs +327 -0
- package/skills/a2h-utg-explorer/scripts/tests/overlay_identity.test.mjs +204 -0
- package/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +393 -0
- package/skills/a2h-utg-explorer/scripts/tests/pager_navigation.test.mjs +119 -0
- package/skills/a2h-utg-explorer/scripts/tests/panel_routes.test.mjs +208 -0
- package/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +240 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover.test.mjs +212 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover_b.test.mjs +173 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover_d.test.mjs +280 -0
- package/skills/a2h-utg-explorer/scripts/tests/review_fixes.test.mjs +213 -0
- package/skills/a2h-utg-explorer/scripts/tests/robustness_fixes.test.mjs +345 -0
- package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +454 -0
- package/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +194 -0
- package/skills/a2h-utg-explorer/scripts/tests/scope.test.mjs +229 -0
- package/skills/a2h-utg-explorer/scripts/tests/scroll_sweep.test.mjs +336 -0
- package/skills/a2h-utg-explorer/scripts/tests/semantics.test.mjs +102 -0
- package/skills/a2h-utg-explorer/scripts/tests/snapshot_integrity.test.mjs +142 -0
- package/skills/a2h-utg-explorer/scripts/tests/state_ambiguity.test.mjs +92 -0
- package/skills/a2h-utg-explorer/scripts/tests/string_tables_twin_ties.test.mjs +83 -0
- package/skills/a2h-utg-explorer/scripts/tests/tar_fixture.mjs +12 -0
- package/skills/a2h-utg-explorer/scripts/tests/twin_opener.test.mjs +119 -0
- package/skills/a2h-utg-explorer/scripts/tests/u2_backend.test.mjs +346 -0
- package/skills/a2h-utg-explorer/scripts/tests/ui_state_anchors.test.mjs +112 -0
- package/skills/a2h-utg-explorer/scripts/tests/variant_strings.test.mjs +63 -0
- package/skills/a2h-utg-explorer/scripts/tests/worklist_parts.test.mjs +24 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +13 -3
- package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +107 -65
- package/skills/a2h-utg-explorer/scripts/utg_explorer/strings.mjs +155 -0
- package/skills/a2h-utg-static/scripts/assemble.mjs +28 -3
- package/skills/a2h-utg-static/scripts/click_paths.mjs +19 -20
- package/skills/a2h-utg-static/scripts/compose_overlay.mjs +102 -2
- package/skills/a2h-utg-static/scripts/fragment_nav.mjs +2 -3
- package/skills/a2h-utg-static/scripts/nl_hints.mjs +2 -3
- package/skills/a2h-utg-static/scripts/presenter_nav.mjs +1 -2
- package/skills/a2h-utg-static/scripts/route_interceptor.mjs +21 -7
- package/skills/a2h-utg-static/scripts/static_prior.mjs +26 -29
- package/skills/a2h-utg-static/scripts/tests/test_activity_gates.mjs +84 -0
- package/skills/a2h-utg-static/scripts/tests/test_login_interceptor.mjs +38 -0
- package/skills/a2h-utg-static/scripts/tests/test_route_token_words.mjs +29 -1
- package/skills/a2h-app-migrate/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-app-migrate/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-arch-generate/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-arch-generate/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-arkts-logic-coder/scripts/design/i18n-term.d.mts +0 -5
- package/skills/a2h-arkts-logic-coder/scripts/design/i18n-term.mjs +0 -54
- package/skills/a2h-batch-ui-align/references/source-only-tier.md +0 -38
- package/skills/a2h-batch-ui-align/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-batch-ui-align/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-dashboard-render/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-dashboard-render/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-resource-convert/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-resource-convert/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-spec-design-pipeline/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-spec-design-pipeline/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-spec-design-pipeline/scripts/test_i18n_term.ts +0 -70
- package/skills/a2h-spec-generate/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-spec-generate/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-spec-generate/scripts/reqgen/src/i18n-term.d.mts +0 -5
- package/skills/a2h-spec-generate/scripts/reqgen/src/i18n-term.mjs +0 -54
- package/skills/a2h-utg-explorer/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-utg-explorer/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-utg-static/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-utg-static/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-utg-static/scripts/tests/test_i18n_term.mjs +0 -155
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: a2h-spec-design-pipeline
|
|
3
|
-
description: "Grouped Android→HarmonyOS migration orchestrator driven by a specs.json list
|
|
3
|
+
description: "Grouped Android→HarmonyOS migration orchestrator driven by a specs.json list: one group per page directory, one wave loop — deps-aware slicing, per-chunk design inside coding, parallel coding in isolated worktrees with a serial completion-ordered merge queue and bounded conflict recovery, one build per wave, per-group parallel review plus bounded fix rounds, one semantic-docs refresh, per-group marker commits. Use when the user supplies specs.json, an Android source dir, a HarmonyOS dir, and a design output dir, and wants design→convert→docs→commit per spec. For UI-page migration use a2h-ui-spec-pipeline. Triggers: \"specs.json 迁移\", \"spec pipeline\", \"a2h-spec-design-pipeline\", \"a2h-spec-pipeline\", \"批量生成设计并转换\"."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# a2h-spec-design-pipeline — 分组并行「设计 → 转换」流水线
|
|
7
7
|
|
|
8
|
-
This skill is a thin **orchestrator**. It owns no conversion logic of its own; it groups a `specs.json` list into page-level **groups** (one group per spec-file parent directory) and runs a single **wave loop** until no groups remain. Each wave runs S0 → W0 → B1⇄B2 → B3 → B4 → B5 → C:
|
|
8
|
+
This skill is a thin **orchestrator**. It owns no conversion logic of its own; it groups a `specs.json` list into page-level **groups** (one group per spec-file parent directory) and runs a single **wave loop** until no groups remain. Each wave runs S0 → F0 → W0 → B1⇄B2 → B3 → B4 → B5 → C:
|
|
9
9
|
|
|
10
|
-
1. **S0 — slice this wave
|
|
11
|
-
2. **W0 → B1⇄B2 → … → C —
|
|
10
|
+
1. **S0 — slice this wave** with `scripts/plan_waves.ts` (incremental; deps-aware backfill, flat fallback; details at S0). Wave numbers are not monotone in group order.
|
|
11
|
+
2. **F0 → W0 → B1⇄B2 → … → C — pre-seed the shared layer, then execute the wave** (each stage below owns its details: worktrees, parallel chunked coding with a serial merge queue, one build, parallel review with bounded fix rounds, one docs refresh, per-group finalize).
|
|
12
12
|
|
|
13
13
|
Deterministic precomputation lives in the scripts (inventory: `references/scripts.md`); the orchestrator runs them and reads their JSON — it never re-derives paths or counts by hand.
|
|
14
14
|
|
|
@@ -16,21 +16,22 @@ Deterministic precomputation lives in the scripts (inventory: `references/script
|
|
|
16
16
|
|
|
17
17
|
| File | Owns | Read |
|
|
18
18
|
|---|---|---|
|
|
19
|
-
| `references/initialization.md` | I1–I4
|
|
20
|
-
| `references/
|
|
21
|
-
| `references/
|
|
22
|
-
| `references/
|
|
23
|
-
| `references/
|
|
24
|
-
| `references/
|
|
19
|
+
| `references/initialization.md` | I1–I4 (inputs, precompute, prerequisites, setup, announcement) | at run start |
|
|
20
|
+
| `references/shared-layer.md` | F0 trigger, prompt, manifest/validation, docs commit, fail-soft | before F0 |
|
|
21
|
+
| `references/coding-loop.md` | B1 (chunk pointers, ledger protocol, event loop, guard, chunk contract) | before the wave loop |
|
|
22
|
+
| `references/merge-queue.md` | B2 (audit, landing, recovery ladder, wiring) | on enqueue/pop/conflict |
|
|
23
|
+
| `references/state-and-resume.md` | mid-flight, `runId`/reconcile, state schema/atomic/`.bak` | on resume/restore |
|
|
24
|
+
| `references/execution-model.md` | ledger contract (events, CAS, state machine, waker) | on every wakeup |
|
|
25
|
+
| `references/legacy-cleanup.md` | retired dispatch-runtime cleanup | before first `--new-run` |
|
|
25
26
|
| `references/scripts.md` | script + test inventory | as needed |
|
|
26
|
-
| `references/static-defect-gate.md` | Homecheck static-defect
|
|
27
|
-
| `references/final-report-template.md` |
|
|
27
|
+
| `references/static-defect-gate.md` | Homecheck static-defect gate | before smoke |
|
|
28
|
+
| `references/final-report-template.md` | Finalization summary template | at Finalization |
|
|
28
29
|
|
|
29
|
-
**Execution model — every stage runs in an isolated sub-agent** (details at I5): the orchestrator parses compact JSON results, runs the scripts and git/worktree bookkeeping itself, and dispatches the next stage. B1
|
|
30
|
+
**Execution model — every stage runs in an isolated sub-agent** (details at I5): the orchestrator parses compact JSON results, runs the scripts and git/worktree bookkeeping itself, and dispatches the next stage. Only B1 chunk agents and B2 conflict resolvers are background dispatches; user interaction is confined to Initialization — after I4 the run is autonomous (per-group failures logged, never paused). Background completion notifications are the run's only immediate wakeup source, and one that never arrives strands the whole wave — so every background dispatch is claimed on the on-disk **dispatch ledger** (`dispatch.mjs`) before it leaves, and a durable **waker** (`dispatch.mjs waker`) holds a wakeup independently of any notification (discipline: `references/execution-model.md`).
|
|
30
31
|
|
|
31
|
-
**Scope — spec logic, not UI rendering.**
|
|
32
|
+
**Scope — spec logic, not UI rendering.** It migrates **behavioral specs** (ViewModels, services, repositories, data entities, DB/Preferences access, navigation wiring), not ArkUI page layouts (use `a2h-ui-spec-pipeline` / `a2h-batch-ui-align`); each group's `ui_sequence`s are navigation/ownership context only.
|
|
32
33
|
|
|
33
|
-
> **Note on commits.** Coder sub-agents commit
|
|
34
|
+
> **Note on commits.** Coder sub-agents commit on their own worktree branches; the wave-end merge preserves them. The orchestrator adds one `wiring` commit per wave, per-wave fix commits (build-fixer; the fix-mode reviewer commits its own `fix(review)`), and one marker commit per group — `group <G> (specs so-a..so-b)` — carrying that group's residual changes (chunk designs and design_map.md are runtime artifacts, ignored).
|
|
34
35
|
|
|
35
36
|
## Inputs
|
|
36
37
|
|
|
@@ -47,6 +48,8 @@ Parse the arguments from the user's message (natural language is fine — no fix
|
|
|
47
48
|
| `MAX_SCEN` | Max scenarios per coding chunk (spec atomic) | `32` |
|
|
48
49
|
| `DEVECO_HOME` | `--deveco-home`: DevEco root for every build | env |
|
|
49
50
|
| `IMAGE_READ` | `--image-read true\|false`: whether this host's sub-agents can read image files (a2h-app-migrate probes it at bootstrap). `false` → every sub-agent prompt carries the no-image rule of I5. Never probe it by opening an image in this session | `true` |
|
|
51
|
+
| `SHARED_LAYER` | `auto` (default) or `off`; persisted in `state.config.shared_layer` |
|
|
52
|
+
| `SOURCE_KIND` | optional `android` (default) or `uniapp`; persisted in `state.config.source_kind`. No current caller passes it (`a2h-app-migrate` exports no `SOURCE_KIND` variable), so it defaults to `android` and only labels the F0 agent's source-evidence reading — scanning is project-neutral |
|
|
50
53
|
|
|
51
54
|
### specs.json format
|
|
52
55
|
|
|
@@ -57,7 +60,7 @@ The format is owned by the producing skill (`a2h-spec-generate` 的 `publish-spe
|
|
|
57
60
|
Apply **`references/initialization.md` verbatim** (its steps I1–I4 = the numbered steps 1–12). This is the run's **only** interactive window; everything after I4 is autonomous. The stages:
|
|
58
61
|
|
|
59
62
|
- **I1 — inputs, grouping precompute, wiring surface.** `plan_groups.ts` (`--emit-state` on a fresh run; without it on a resume, where exit 3 = specs.json changed → stop) writes `spec_group_plan.json`, one `spec_group_<G>/merged_spec.md` per group, and — on a fresh run — the state seed; `resolve_wiring.ts` fills `state.config.wiring_files` (three tiers; skipped on a resume when the field already exists, so user corrections survive). Every later stage reads their JSON — never re-derive paths, counts, or membership by hand.
|
|
60
|
-
- **I2 — environment prerequisites.** `DEVECO_HOME` resolving, `<HMOS>` a git repo, Node ≥ 22.18, the Homegraph engine runnable, the semantic docs (`project_design.md` required, `database_design.md` / `preferences_design.md` optional), Homecheck availability and rule sets, then `DOCS_MODE`, `MVVM_MODE`, `MAX_ROUNDS_REVIEW`.
|
|
63
|
+
- **I2 — environment prerequisites.** `DEVECO_HOME` resolving, `<HMOS>` a git repo, Node ≥ 22.18, the Homegraph engine runnable, the semantic docs (`project_design.md` required, `database_design.md` / `preferences_design.md` optional), Homecheck availability and rule sets, then `DOCS_MODE`, `STATE_DOCS_MODE`, `MVVM_MODE`, `MAX_ROUNDS_REVIEW`.
|
|
61
64
|
- **I3 — one-time setup.** Create `DESIGN_DIR`; `git_baseline.ts` (gitignores `.hometrans/` + `.homegraph/` and commits a fresh scaffold as `pre-campaign baseline` so W0 has a `WAVE_BASE` and a clean tree); seed the semantic-docs baseline once.
|
|
62
65
|
- **I4 — announce, then commit to autonomous execution.** Announce the plan table, flags, warnings, the git baseline and the wiring-surface summary — the one window for user corrections — then no prompts and no mid-run branching (per-group failures are recorded and skipped).
|
|
63
66
|
|
|
@@ -65,15 +68,15 @@ Apply **`references/initialization.md` verbatim** (its steps I1–I4 = the numbe
|
|
|
65
68
|
|
|
66
69
|
- Every sub-skill run happens in a **fresh sub-agent** via the `Agent` tool. The prompt must (1) name the sub-skill/agent and its exact inputs, (2) forbid asking back — on ambiguity take the documented safe default or return `{ "ok": false, "note": ... }`, (3) require the final message to be **only** a compact JSON object, (4) when `IMAGE_READ` is `false`, open with `Do not open any image file (.png/.jpg/.jpeg/.webp/.gif): image content crashes this host session; use view trees, measure files and source instead.` — this covers coders, resolvers, build-fixers, reviewers and the watchdog sentinel alike. A sub-agent that still dies on image content (`messages.content.type` invalid; it cannot be resumed) sets `IMAGE_READ=false` for the rest of the run (persist it in the state file) and is redispatched fresh with the rule; the final report says so.
|
|
67
70
|
- Sub-skill SKILL.md text never enters this orchestrator's context during the wave loop (the exception: the runtime smoke gate, run by the orchestrator itself).
|
|
68
|
-
- The orchestrator itself runs: the deterministic scripts (`plan_groups.ts`, `resolve_wiring.ts`, `git_baseline.ts`, `stage_design_inputs.ts`, `ensure_wt_index.ts`, `plan_waves.ts`, `deps_ready.ts`, `branch_landed.ts`, `audit_claims.ts`, `dispatch.mjs` — the ledger's only writer), git/worktree/merge/wiring/commit bookkeeping, the B4 single-writer homegraph index sync of `<HMOS>` (the only `<HMOS>`-index write moment — each worktree's own index is built at creation by `ensure_wt_index.ts` and refreshed only on resume (W0 or mid-wave) and at hop (b); reviewers are read-only), state-file updates, dispatch discipline (including dispatching the post-loop Homecheck gate sub-agent and validating its JSON reply — the scan/fix/build-check work itself, `homecheck_scan.ts` included, belongs to that sub-agent), and the post-loop runtime smoke gate. Nothing else.
|
|
71
|
+
- The orchestrator itself runs: the deterministic scripts (`plan_groups.ts`, `resolve_wiring.ts`, `git_baseline.ts`, `stage_design_inputs.ts`, `ensure_wt_index.ts`, `plan_waves.ts`, `scan_shared.ts`, `validate_shared_manifest.ts`, `deps_ready.ts`, `branch_landed.ts`, `resolver_prompt.ts`, `audit_claims.ts`, `dispatch.mjs` — the ledger's only writer), git/worktree/merge/wiring/commit bookkeeping, the B4 single-writer homegraph index sync of `<HMOS>` (the only `<HMOS>`-index write moment — each worktree's own index is built at creation by `ensure_wt_index.ts` and refreshed only on resume (W0 or mid-wave) and at hop (b); reviewers are read-only), state-file updates, dispatch discipline (including dispatching the post-loop Homecheck gate sub-agent and validating its JSON reply — the scan/fix/build-check work itself, `homecheck_scan.ts` included, belongs to that sub-agent), and the post-loop runtime smoke gate. Nothing else.
|
|
69
72
|
- **Ledger + waker discipline.** Every background dispatch is `claim` → seed the foreground baseline → `intent` → Agent → `confirm` (the session id proves liveness); progress is `beat`; a completion is `artifact` + `submit` then `release`. Only `dispatch.mjs` writes the ledger. Before ending a turn with active units, run `dispatch.mjs probe`: `inPlace:false` (or a different `runId`) → arm the durable waker as one background sub-agent running `dispatch.mjs waker`; its `dispatch/waker.event.json` is consumed at the start of **every** turn (verify `runId`, delete after reading). Write `dispatch/waker.stop` on every terminal path — wave barrier, resume, abort, Finalization.
|
|
70
73
|
- A returned sub-agent result — success or failure — is never a stop: parse it, persist it, dispatch the next.
|
|
71
74
|
|
|
72
75
|
## The wave loop
|
|
73
76
|
|
|
74
|
-
**Mid-flight detection (resume into an interrupted wave).** Apply **`references/state-and-resume.md` → Mid-flight detection verbatim** before running S0. In short: a state group with `wave != null` and a status outside {done, failed} means the wave loop must be **re-entered**, not restarted — reset the dispatch run first (write `dispatch/waker.stop`, snapshot `dispatch/ledger.jsonl`, then `dispatch.mjs init --wave <K> --concurrency <WAVE_WIDTH> --new-run` — the genuine reset that gives the new session its own `runId`, archives the old pipeline state as
|
|
77
|
+
**Mid-flight detection (resume into an interrupted wave).** Apply **`references/state-and-resume.md` → Mid-flight detection verbatim** before running S0. In short: a state group with `wave != null` and a status outside {done, failed} means the wave loop must be **re-entered**, not restarted — reset the dispatch run first (write `dispatch/waker.stop`, snapshot `dispatch/ledger.jsonl`, then `dispatch.mjs init --wave <K> --concurrency <WAVE_WIDTH> --new-run` — the genuine reset that gives the new session its own `runId`, archives the old pipeline state as audit trail, and makes every old-run active unit dead-run on the first `reconcile`; a **normal later wave** is plain `init --wave <K>` under the same `runId` — see `references/legacy-cleanup.md` for the one-time runtime cleanup before that reset), then `reconcile` and repair state one way before dispatching. Then branch on `wave_<K>/wave_meta.json`: absent → re-enter F0 idempotently (`shared_manifest.json` / `shared_inflight.json` / `campaign_id`), then W0 for the groups whose `state.wave == K`, then continue W0 onward; present → classify every recorded member (a done chunk with an empty `specs[].design_file` → backfill it from the design file first; no worktree → route by the `deps_ready.ts` verdict; merged → skip; coding incomplete → re-stage design inputs (`stage_design_inputs.ts`) and re-upsert its `design_map` row, then dispatch; coding complete and unmerged → enqueue its merge) and drain the B1⇄B2 event loop. **"Merged" is always `branch_landed.ts --wt-gen <wtGen>`**, never `merge-base --is-ancestor`.
|
|
75
78
|
|
|
76
|
-
Iterate waves until `plan_waves.ts` reports `{"wave": null, "done": true}` (no pending groups). **Skip any group already `done` or `failed`**. Each wave runs S0 → W0 → B1⇄B2 → B3 → B4 → B5 → C (B1 and B2 interleave: coding-completion events drive per-group chunk chaining and the serial merge queue).
|
|
79
|
+
Iterate waves until `plan_waves.ts` reports `{"wave": null, "done": true}` (no pending groups). **Skip any group already `done` or `failed`**. Each wave runs S0 → F0 → W0 → B1⇄B2 → B3 → B4 → B5 → C (B1 and B2 interleave: coding-completion events drive per-group chunk chaining and the serial merge queue).
|
|
77
80
|
|
|
78
81
|
### S0 — Slice this wave (deterministic script, incremental)
|
|
79
82
|
|
|
@@ -96,6 +99,14 @@ Decision order: ineligible → skip; no same-wave deps → join; same-wave deps
|
|
|
96
99
|
|
|
97
100
|
It appends the wave to `<HMOS>/.hometrans/spec_wave_plan.json` (schema `spec_wave_plan/v2` — waves only) and sets `state.groups[G].wave = k` for members. Announce this wave's members (G, group_id, per-group scenario totals) before W0. **Same-wave file overlaps are expected, not prevented** — they surface as merge work at B2 and as audit findings after the merge queue drains.
|
|
98
101
|
|
|
102
|
+
### F0 — shared-layer pre-seeding
|
|
103
|
+
|
|
104
|
+
Before W0, run `node <skill-dir>/scripts/scan_shared.ts <HMOS> --wave <K>`. `SHARED_LAYER=off` → write a skipped manifest with `reason:"disabled"` and continue to W0 without scanning or dispatching. Scanner exit `2` (missing/unparseable input) → skipped manifest `reason:"failed:2"` and continue to W0 — no `PRE_F0` exists, so nothing to reset. `skip:true` → write the skipped manifest from `references/shared-layer.md` and continue to W0. Otherwise assert the main tree is clean, record `PRE_F0 = git rev-parse HEAD`, write `wave_<K>/shared_inflight.json` (`campaign_id`, `pre`, `wiring_files`, `wiring_compact`), and dispatch one foreground `general` sub-agent with `references/shared-layer.md`.
|
|
105
|
+
|
|
106
|
+
After it returns, apply the **reply-recovery protocol** there ("Reply recovery"): an unparseable reply resumes the same session at most twice, then falls back to the on-disk manifest/commit. Then branch on `wave_<K>/shared_manifest.json` status: `done` → run `node <skill-dir>/scripts/validate_shared_manifest.ts <HMOS> --wave <K> --base <PRE_F0>` (non-resume: `HEAD` must equal the F0 commit); `skipped` (including `declined:*`) → valid **only when the agent made no commit**: require `git rev-parse HEAD` == `PRE_F0`, record the reason, and continue to W0 without the done validator. A skipped manifest whose `HEAD` moved is an **unrecorded-commit anomaly** — not a skip and not a rollback case: record `failed:post_agent_commit`, restore the wiring snapshot, and **stop for manual recovery**; never reset or delete those commits. Any other post-agent failure with a recorded F0 commit → the **ownership-guarded rollback** in `references/shared-layer.md` (`git reset --hard PRE_F0` + `git clean -fd` only in the two recorded cases — `HEAD == commit`, or `HEAD == docs_commit` whose parent is `commit` — and only when every dirty path is F0's own; otherwise stop under the dirty-tree rule), restore `wiring_files`/`wiring_compact` from `shared_inflight.json`, write the skipped manifest, continue W0. On success: append the module's new barrel/wiring **and any `modules[].files` matching a wiring category** (`Index.ets`, the `getRdbStore` registration file, `module.json5`, `oh-package.json5`) to `state.config.wiring_files` + refresh `wiring_compact`. Before W0, if `database_design`/`preferences_design` resolved to a root-only file and `.hometrans/<name>.md` is missing, copy it verbatim into `.hometrans/` (independent of `DOCS_MODE`). Then run the docs-refresh procedure in `references/shared-layer.md` ("Docs refresh / visibility"): a `docs(wave K)` commit only when tracked `.hometrans` docs changed; `WAVE_BASE = docs_commit ?? infra commit`.
|
|
107
|
+
|
|
108
|
+
See `references/shared-layer.md` for the authoritative prompt and manifest.
|
|
109
|
+
|
|
99
110
|
### W0 — Preconditions & worktrees
|
|
100
111
|
|
|
101
112
|
1. Verify the main tree is clean (`git -C <HMOS> status --porcelain` empty). Dirty → **stop the run and report** (never auto-commit user changes; never ask mid-run).
|
|
@@ -109,31 +120,33 @@ It appends the wave to `<HMOS>/.hometrans/spec_wave_plan.json` (schema `spec_wav
|
|
|
109
120
|
- **Non-empty, NOT merged into main** (`branch_landed.ts --wt-gen <n>` → `landed: false`) → **resumable** (ready members only): keep worktree and branch, resume this group's B1 chunks (the so-id-log chunk-resume rule). Its index is refreshed below (`--sync`) — the branch moved on since creation.
|
|
110
121
|
- **Non-empty, already merged** → post-B2 leftover: remove and recreate (ready members only).
|
|
111
122
|
|
|
112
|
-
|
|
123
|
+
Then index every surviving worktree: `node <skill-dir>/scripts/ensure_wt_index.ts <HMOS> WT/g<G>r<wtGen>` for one created/recreated now, `… --sync` for a kept one (skip both when `ENGINE_MODE=off`). Pass a smaller `--timeout-ms` for a small project (it bounds the build only; when there is no local db the status probe is skipped, otherwise it uses the probe budget set by `--status-timeout-ms`, default 120 s — raise it for a large project). On Windows the timeout kills only the cmd.exe shim, so the script reaps the writer the attempt started (`reaped` in its JSON) instead of leaving a node engine at 100% CPU; an unfinalized index reports `index.state: "indexing"` and the next run rebuilds it rather than using it. **Fail fast:** after two consecutive `timeout`/`init_failed`/`index_failed` results, stop building indexes for the wave (record `engine_degraded` + the K skipped members in the wave log; those coders use grep/read) — 3-10 minutes per worktree is worse than no graph. Normal cost is **serial W0 setup** (≈1.5 s when the index exists, ~10 s per new index on a mid-size project), not a hang. A worktree never inherits `<HMOS>`'s `.homegraph/` (gitignored), so without this the coder has no graph. **Exit 1 is degraded, not a failure:** record `action`/`reason`/`detail` in the wave log and continue; the coder falls back to grep/read (the coder clause is passed only when the index is usable, so an unusable leftover is never advertised). Exit 0 with `reason: "sync_incomplete"` = the refresh failed but the previous snapshot is usable — record it as degraded. Never hand a coder `<HMOS>`'s index: it answers from another branch (other groups' merged code, none of this worktree's commits) and the CLI prints no mismatch warning. A symlinked/junctioned `.homegraph/` — dangling included — is refused (`homegraph_linked`); it would present another tree's index as this worktree's.
|
|
113
124
|
4. **Stage the design inputs into every surviving worktree** (created, recreated, or kept): `node <skill-dir>/scripts/stage_design_inputs.ts <HMOS> WT/g<G>r<wtGen>`. Exit 1 → record it in the wave log and continue (the coder's design step will report `design_gap_blocked` if `project_design.md` is missing). Then **upsert** this wave's `design_map.md` rows (one row per member G; Design File / Start blank until a chunk design lands). Columns: `G | Group (dir) | Specs | Scenarios | Design File | UI Sequence | Start | End`; `End` stays `进行中` until C.
|
|
114
125
|
|
|
115
126
|
### B1 — Parallel coding (chunked, per-group serial, background-dispatched)
|
|
116
127
|
|
|
117
|
-
Apply **`references/coding-loop.md` verbatim** — read it before entering the wave loop, and re-read the section
|
|
128
|
+
Apply **`references/coding-loop.md` verbatim** — read it before entering the wave loop, and re-read the applicable section on every wakeup. It owns:
|
|
118
129
|
|
|
119
|
-
- **chunk
|
|
120
|
-
- **the dispatch command contract**: `
|
|
121
|
-
- **the spec §11 event loop**: consume `orch.event.json`/`waker.event.json
|
|
122
|
-
- **the turn-end guard**: `reconcile` → merge
|
|
123
|
-
- **
|
|
124
|
-
- **the chunk dispatch contract** (`a2h-arkts-logic-coder` fields
|
|
130
|
+
- **chunk pointers**: `state.groups[G].chunks[k].status` (`pending` → `in_flight` → `done`/`failed`); at most one chunk in flight per group, up to `WAVE_WIDTH` chunk agents, at most one merge;
|
|
131
|
+
- **the dispatch command contract**: `claim` (returns `unitId/attempt/claimGen/token/wtGen/worktree/branch/baseHead/baseDirty`) → `intent` → Agent → `confirm --session` → `beat`/`evidence` → `artifact` + `submit --kind completed|failed` → `release --outcome done|failed`; identity commands pass `--expect-gen`/`--token`, and a mismatch is a stale no-op;
|
|
132
|
+
- **the spec §11 event loop**: consume `orch.event.json`/`waker.event.json`; evidence sweep (`progress` → `beat`; attempt artifacts → `artifact`/`submit`/`reject`); `reconcile` + one-way repair; triage (`submitted` → `queue-merge` + `release`; `failed` → `retry` or close; `orphaned` → wait; resolver → ladder); drain merges; deps release; dispatch to `freeSlots`; residue disposal; `wait`;
|
|
133
|
+
- **the turn-end guard**: `reconcile` → merge drain → deps release → never-strand disposal → arm the waker (`probe`; `waker` in background; `waker.stop` on every terminal path);
|
|
134
|
+
- **waker wakeup disposal**: demux `waker.event.json` (`artifact`/`git`/`ledger`/`state`/`deadline` → targeted evidence; `relay` → re-arm; `error` → repair), then drain;
|
|
135
|
+
- **the chunk dispatch contract** (`a2h-arkts-logic-coder` fields, the compact wiring list and the so-id prompt extra with its code-first/no-build/state-refresh/worktree-index rules), the design-mode verdict, the so-id resume parse, and the coding-complete → audit → B3 handoff.
|
|
125
136
|
|
|
126
|
-
Hot-path invariants (the reference
|
|
137
|
+
Hot-path invariants (the reference is authoritative): every background dispatch is claimed **before** it leaves and `intent` precedes the Agent call; a completion is released only from fresh per-attempt evidence; a retry is `retry` + a fresh claim (never an in-place resurrection of a live unit); a stale identity writes nothing; no turn may end while active units remain without a live waker for the current `runId`.
|
|
127
138
|
|
|
128
|
-
### B2 — Serial merge queue, interleaved with B1 (the only git-writer moment)
|
|
139
|
+
### B2 — Serial merge queue, interleaved with B1 (the only git-writer moment during a wave)
|
|
129
140
|
|
|
130
|
-
Apply **`references/merge-queue.md` verbatim.** B2 is a queue the B1 event loop drains while coding continues — not a phase after B1: a group enters at its coding-complete event, the queue is processed strictly serially (main is the single git-writer), popped in coding-completion order,
|
|
141
|
+
Apply **`references/merge-queue.md` verbatim.** B2 is a queue the B1 event loop drains while coding continues — not a phase after B1: a group enters at its coding-complete event, the queue is processed strictly serially (main is the single git-writer during a wave), popped in coding-completion order, with at most one merge — normal or resolver-backed — in progress. It owns:
|
|
131
142
|
|
|
132
|
-
- **step 0, the actual-write audit** (`audit_claims.ts <HMOS> --wave <K> --base <WAVE_BASE>`, once per wave after the queue drains and before wiring, on the recorded `state.groups[G].audit = { base, tip }` pairs; findings
|
|
133
|
-
- **landing**:
|
|
134
|
-
- **the recovery ladder** on conflict
|
|
143
|
+
- **step 0, the actual-write audit** (`audit_claims.ts <HMOS> --wave <K> --base <WAVE_BASE>`, once per wave after the queue drains and before wiring, on the recorded `state.groups[G].audit = { base, tip }` pairs; findings feed B4, never a stop);
|
|
144
|
+
- **landing**: `branch_landed.ts --wt-gen <n>` on `specpipe/g<G>r<wtGen>` (already landed → reuse its `merge_commit`) → otherwise `PRE = git rev-parse HEAD` → `git merge --no-ff --no-edit specpipe/g<G>r<wtGen>` (every landing a main-side merge commit, never a fast-forward) → `dispatch.mjs group-merge <G> --landed <merge-commit>`; the zero-commit branch is the only no-op (`group-merge <G>` without `--landed`, queued + all chunks done, records `noop`). `group-merge` refuses while a merge is in progress, for a failed group, or when `--landed` is not that group's landing commit. **Only after `group-merge` succeeds**: the group's B4 net-change range `PRE..<merge-commit>`, specs to `stage: "B"`, status `merged` (ledger first, state second);
|
|
145
|
+
- **the recovery ladder** on conflict: hop (a) background conflict-resolve re-dispatch 1× (main `merge --abort` → `claim resolver:g<G>` → worktree `git merge <main>` → `resolver_prompt.ts` renders the prompt from all involved groups' ORIGINAL SPECs, chunk SPECs, design docs and wiring list with a strict-JSON return → `intent` → dispatch → `confirm`); hop (b) group re-code 1×; hop (c) fail-soft `failed`; hop counters are conversation-transient;
|
|
135
146
|
- **the wiring application** after the queue drains (idempotent, per group in chunk order, mechanically applied from the chunks' `wiring.md` rows onto `state.config.wiring_files`; lock files skipped; same-key cross-group conflicts recorded for manual follow-up) and its single `wiring` commit (skipped when all wiring files are empty/absent).
|
|
136
147
|
|
|
148
|
+
F0 is the one pre-W0 exception (see **Ordering & safety rules**).
|
|
149
|
+
|
|
137
150
|
### B3 — One build per wave
|
|
138
151
|
|
|
139
152
|
Dispatch one `build-fixer` sub-agent (`harmony_project_dir: <HMOS>`, `deveco_home: <DEVECO_HOME>`, `output_path: <HMOS>/.hometrans/wave_<wave>/build` — the agent's field names) in the foreground. It fixes cross-group compile errors and replies with one JSON object `{ ok, build, commit, fixes, report, note }`. (Build failure after fix attempts → record; the wave still proceeds to review — the review report will carry the build status.)
|
|
@@ -149,58 +162,37 @@ Dispatch one `build-fixer` sub-agent (`harmony_project_dir: <HMOS>`, `deveco_hom
|
|
|
149
162
|
Every group carries its review state in `state.groups[G].review = { round, open, scenarios, carry_over, fix_commits }` (written after every step below; atomic like every state write):
|
|
150
163
|
- `open` — `true` while the group still has a defect the fixer can act on.
|
|
151
164
|
- `scenarios` — the scenario ids (`so-N 场景X`) the last report judged FAIL / PARTIAL.
|
|
152
|
-
- `carry_over` —
|
|
165
|
+
- `carry_over` — path of the group's last `review-fix-report.md`, whose Remaining Issues the next fixer re-attempts.
|
|
153
166
|
- `fix_commits` — every `fix(review)` commit made for this group.
|
|
154
167
|
|
|
155
|
-
A group is **open** after a review when its report has any FAIL / PARTIAL scenario, a broken Launch Path hop, a non-PASS Cross-Cutting section, or a wave-audit finding that names it — or when
|
|
168
|
+
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 the report is **missing** (reviewer failed twice). PASS and UNABLE TO VERIFY are **closed** verdicts: UNABLE TO VERIFY is evidence debt no code change closes, so it never keeps a group open and never costs a round. A closed group is never re-reviewed or handed to a fixer again unless step 1(c) reopens it.
|
|
156
169
|
|
|
157
|
-
Loop rounds `r = 1 .. MAX_ROUNDS_REVIEW
|
|
170
|
+
Loop rounds `r = 1 .. MAX_ROUNDS_REVIEW` (default `2`):
|
|
158
171
|
|
|
159
|
-
0. **Single-writer index sync (main tree)** — the orchestrator is the only writer of `<HMOS>`'s index during review; each worktree's
|
|
172
|
+
0. **Single-writer index sync (main tree)** — the orchestrator is the only writer of `<HMOS>`'s index during review; each worktree's index was built at creation (W0 / deps release) and is **not** touched here. **Skip entirely when `ENGINE_MODE=off`** (no engine command may run in the run). Before dispatching this round's reviewers: `homegraph status --json <HMOS>` → stale → `homegraph sync --quiet <HMOS>`, unindexed → `homegraph init -i <HMOS>` (bound to **120000 ms** — the 1.6.x engine can write the index then spin forever before finalize, so a 600 s default only burns 10 minutes). Failure/timeout → record and continue: the reviewers' concurrency rule degrades automatically, and a step-0 failure is **not** index state — never leak it into reviewer prompts. After one timeout, skip this step for the rest of the run (the engine will hang every round); re-sync every round only while it keeps returning.
|
|
160
173
|
1. **Select this round's review set — exactly these groups, computed from state, never by judgment:**
|
|
161
174
|
- `r = 1`: every `merged` member of the wave, all scenarios.
|
|
162
|
-
- `r ≥ 2
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
- (c) **regression check** — a closed group whose files were touched by a `fix(review)` or rebuild commit of the previous round (`git -C <HMOS> diff --name-only <commit>^..<commit>` intersected with `git diff --name-only` of the group's B2 range). This reopens the group.
|
|
166
|
-
|
|
167
|
-
Every other group is skipped — it is not reviewed again.
|
|
168
|
-
- The set is empty → exit the loop (skip the verification round too).
|
|
169
|
-
2. **Dispatch the selected reviewers as ONE foreground batch — every reviewer call of the round in a single assistant message, never one-per-message** (reviewers are read-only — overlap is always safe). Per selected group: a `code-reviewer` sub-agent call with:
|
|
175
|
+
- `r ≥ 2`: only (a) groups still **open** after the previous round's fix; (b) groups whose previous report is missing; (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. Every other group is skipped — not reviewed again.
|
|
176
|
+
- The set is empty → exit the loop.
|
|
177
|
+
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, so overlap is always safe). Per selected group: a `code-reviewer` sub-agent call with:
|
|
170
178
|
- `harmonyos_project_path: <HMOS>`;
|
|
171
179
|
- `commit_range: <the group's net-change range recorded at B2 — PRE..<merge-commit>>`;
|
|
172
180
|
- `test_case_path: <merged_spec abs path>`;
|
|
173
181
|
- `output_path: <HMOS>/.hometrans/spec_group_<G>/review-round_<r>`;
|
|
174
|
-
- from `r ≥ 2` also `extra_commits: <
|
|
175
|
-
- from `r ≥ 2` also `scenarios`:
|
|
176
|
-
- case (a): the group's `review.scenarios` plus the scenarios its cross-cutting / launch-path / audit findings cite;
|
|
177
|
-
- cases (b) and (c): omitted, so all scenarios are reviewed.
|
|
182
|
+
- from `r ≥ 2` also `extra_commits: <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);
|
|
183
|
+
- from `r ≥ 2` also `scenarios`: case (a) the group's `review.scenarios` plus the scenarios its cross-cutting / launch-path / audit findings cite; cases (b)/(c) omitted, so all scenarios are reviewed.
|
|
178
184
|
|
|
179
185
|
Do not add other fields; wiring registrations live in the `wiring` commit, outside every group's range.
|
|
180
186
|
|
|
181
|
-
**Failure handling — retry once, never a stop.** A reviewer call that errors → re-dispatch
|
|
182
|
-
3. **Update each reviewed group's state.**
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
- `
|
|
189
|
-
|
|
190
|
-
- `carry_over_report_path: <review.carry_over>`, when set — the previous round's fix report for this group, whose `Failed to fix` / `UNCERTAIN` / `NOT_ATTEMPTED` rows the fixer re-attempts;
|
|
191
|
-
- `harmonyos_project_path: <HMOS>`, `android_project_path: <ANDROID>`;
|
|
192
|
-
- `output_path`: the same `review-round_<r>` dir;
|
|
193
|
-
- `build: false` — the orchestrator builds once for the whole round.
|
|
194
|
-
|
|
195
|
-
After each fixer returns:
|
|
196
|
-
- append its `commit` to `review.fix_commits` when it is not `none`;
|
|
197
|
-
- set `review.carry_over` to its `review-fix-report.md`;
|
|
198
|
-
- copy every `UI_OUT_OF_SCOPE` row of that report into `<HMOS>/.hometrans/wave_<K>/ui_followups.md` (G, scenario, expected path, defect). The final report lists them under Manual Follow-up.
|
|
199
|
-
|
|
200
|
-
A fixer that errors → retry it once; a second failure → record it, the group stays open, and the next fixer is dispatched.
|
|
201
|
-
|
|
202
|
-
When every fixer has returned, dispatch **one** `build-fixer` (B3's fields, `output_path: <HMOS>/.hometrans/wave_<K>/review_round_<r>/build`) and validate its reply exactly as in B3. Its fix commit, when any, counts as a previous-round commit for step 1(c). Then the next round.
|
|
203
|
-
6. **Verification round (review only).** After the last fix round (`r = MAX_ROUNDS_REVIEW`), run steps 1–3 once more as round `r + 1`, and no fix. Without it the last round's fixes would ship unchecked. Groups still open after it are listed in the final report with their open scenarios and their last fix report.
|
|
187
|
+
**Failure handling — retry once, never a stop.** A reviewer call that errors → re-dispatch 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.
|
|
188
|
+
3. **Update each reviewed group's state.** Extract per-spec verdicts into `state.specs[]` (stage stays `B`); set `review.round = r`, recompute `open`, and set `scenarios` to this report's FAIL / PARTIAL ids — a scenario reviewed this round replaces its old verdict, one not in this round's `scenarios` subset keeps it. 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 processes them; a finding naming two groups goes to the lower `G`.
|
|
189
|
+
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.
|
|
190
|
+
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: `mode: fix`; `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); `carry_over_report_path: <review.carry_over>` when set (the previous round's fix report whose Remaining Issues are re-attempted); `harmonyos_project_path: <HMOS>`, `android_project_path: <ANDROID>`; `output_path`: the same `review-round_<r>` dir; `build: false` (the orchestrator builds once per round).
|
|
191
|
+
|
|
192
|
+
After each fixer returns: append its `commit` to `review.fix_commits` when not `none`, and set `review.carry_over` to its `review-fix-report.md`. A fixer that errors → retry once; a second failure → record it, the group stays open, dispatch the next fixer.
|
|
193
|
+
|
|
194
|
+
When every fixer has returned, dispatch **one** `build-fixer` (B3's fields, `output_path: <HMOS>/.hometrans/wave_<K>/review_round_<r>/build`) and validate its reply exactly as in B3; its fix commit, when any, counts as a previous-round commit for step 1(c). Then the next round.
|
|
195
|
+
6. **Last round.** After `r = MAX_ROUNDS_REVIEW` the loop ends; groups still open are listed in the final report with their open scenarios and last `review-fix-report.md` as manual follow-up.
|
|
204
196
|
|
|
205
197
|
### B5 — One semantic-docs refresh per wave
|
|
206
198
|
|
|
@@ -217,10 +209,18 @@ For each group in the wave (group order):
|
|
|
217
209
|
|
|
218
210
|
## State persistence & resume
|
|
219
211
|
|
|
220
|
-
Full schema, sibling-file ownership, the atomic-write rule, the `.bak` restore path, the `runId` reset and the one-way state repair are in **`references/state-and-resume.md` → State persistence & resume — apply verbatim.** Hot-path essentials: `<HMOS>/.hometrans/spec_pipeline_state.json` (schema `spec_pipeline_state/v2`, gitignored) is written by `plan_groups.ts --emit-state`, updated by `plan_waves.ts`, and updated by the orchestrator after every stage — chunk/group statuses, each group's `audit: { base, tip }` coder snapshot, and `coding_base`. Every write replaces the file atomically (temp + rename); per-spec v1 field names are frozen and `stage` is exactly `A | B | B2 | C`;
|
|
212
|
+
Full schema, sibling-file ownership, the atomic-write rule, the `.bak` restore path, the `runId` reset and the one-way state repair are in **`references/state-and-resume.md` → State persistence & resume — apply verbatim.** Hot-path essentials: `<HMOS>/.hometrans/spec_pipeline_state.json` (schema `spec_pipeline_state/v2`, gitignored) is written by `plan_groups.ts --emit-state`, updated by `plan_waves.ts`, and updated by the orchestrator after every stage — chunk/group statuses, each group's `audit: { base, tip }` coder snapshot, and `coding_base`. Every write replaces the file atomically (temp + rename); per-spec v1 field names are frozen and `stage` is exactly `A | B | B2 | C`; dispatch truth lives only in `<HMOS>/.hometrans/dispatch/`, written only by `dispatch.mjs` (`ledger.jsonl` is truth; `state.json` is a rebuildable fold cache); `reconcile` reports `stateMismatches` and the orchestrator repairs state **one way** (ledger → state), never reverse; an unparseable state is restored from `.bak`, and the ledger is never deleted to "fix" it; each chunk's design is generated once (a retry re-uses it unless an issue file exists). One-time cleanup of retired dispatch runtime files: `references/legacy-cleanup.md`.
|
|
221
213
|
|
|
222
214
|
## Fail-soft rules (never pause)
|
|
223
215
|
|
|
216
|
+
- F0 scan/agent/validation failure → ownership-guarded reset to `PRE_F0`
|
|
217
|
+
(only the two recorded cases — `HEAD == commit`, or `HEAD == docs_commit`
|
|
218
|
+
whose parent is `commit` — allow a reset; guard fails → stop under the
|
|
219
|
+
dirty-tree rule), restore the `wiring_files`/`wiring_compact` snapshot, write
|
|
220
|
+
a skipped `shared_manifest.json`, continue W0. A post-agent skip whose `HEAD`
|
|
221
|
+
moved is `failed:post_agent_commit`: a skipped manifest records no commit, so
|
|
222
|
+
**no reset** — record it, surface it for manual recovery, never delete those
|
|
223
|
+
commits. F0 never blocks a wave except for that unowned-history anomaly.
|
|
224
224
|
- **Every** group marked `failed` (any cause, incl. a failed release) also gets each of its specs `status: "failed"` in the same state write — the completion check counts specs.
|
|
225
225
|
- A chunk whose design step fails (`design_gap_blocked` / `validation_failure`) follows the normal chunk failure path; a missing design artifact after a completed submission is a wave-log/report warning, not a group failure.
|
|
226
226
|
- Chunk failure (after one retry) → group `failed`; its branch is discarded, any queued merge dropped; wave continues.
|
|
@@ -229,13 +229,14 @@ Full schema, sibling-file ownership, the atomic-write rule, the `.bak` restore p
|
|
|
229
229
|
- A parked merge whose resolver unit is terminal — `orphaned` (a phantom/zombie dispatch) or `closed` — → the ladder advances **without hop (a)**: hop (b) group re-code if a generation remains, else hop (c) fail-soft (group `failed`, merge dropped) — same turn (never-strand guard).
|
|
230
230
|
- Merge ladder exhausted → group `failed`, continue (report flags dependents).
|
|
231
231
|
- B3/B4/B5 failures → record and continue (carried in the final report).
|
|
232
|
-
- The only legitimate stops: the wave loop + Finalization complete,
|
|
232
|
+
- The only legitimate stops: the wave loop + Finalization complete, an environment prerequisite Initialization was supposed to guarantee is unrecoverable (e.g. dirty main tree at W0), or the F0 **unowned-history anomaly** (`failed:post_agent_commit` — a skipped manifest whose `HEAD` moved with no recorded commit; stop for manual recovery, never reset or delete those commits).
|
|
233
233
|
|
|
234
234
|
## Homecheck static-defect check (after the last wave, before the smoke gate)
|
|
235
235
|
|
|
236
|
-
Dispatch one `general` sub-agent in the foreground to run the Homecheck gate per `references/static-defect-gate.md` (inputs: `<HMOS>`, `<skill-dir>`, `DEVECO_HOME`, `runId = state.config.campaign_id`, the per-campaign nonce from I3 step 10b — never `specs_json_sha256`, which repeats when the same specs.json starts a new campaign) — scan, fix `
|
|
236
|
+
Dispatch one `general` sub-agent in the foreground to run the Homecheck gate per `references/static-defect-gate.md` (inputs: `<HMOS>`, `<skill-dir>`, `DEVECO_HOME`, `runId = state.config.campaign_id`, the per-campaign nonce from I3 step 10b — never `specs_json_sha256`, which repeats when the same specs.json starts a new campaign) — scan, fix every `errors[]` finding and every migration-set `warnings[]` finding in the main tree, one final build check; the sub-agent dispatches nothing and never fixes compile errors itself. It replies with the compact JSON `{ ok, status, rounds, errorsBefore, errorsAfter, fixed, suppressed, remaining, build, note }` — validate per B3 (fallback: `summary.json` on disk, accepted only on a `runId` match), then mirror it into `state.post_homecheck` (the completion authority on resume — `summary.json` alone never marks the gate done). Off the reply's `build`: `FAILED` → dispatch one `build-fixer` (B3's contract, `output_path: <HMOS>/.hometrans/homecheck/build`); `SUCCESS` or no code change → nothing to fix. Then run the smoke gate on the fresh build.
|
|
237
237
|
|
|
238
238
|
- Gate mode is fixed: scan, fix, and rescan up to 2 rounds; remaining errors are reported, never hidden.
|
|
239
|
+
- The migration rule set (`<skill-dir>/rules/migration-rules`, `plugin:@hometrans/all`) is part of the scan. Its warnings are repaired too; warnings of the three fixed sets are not in scope. A scan that cannot prove the migration set loaded is a `scan_error`, never a clean pass.
|
|
239
240
|
- Scan failures, timeouts, and missing rule sets are fail-soft and recorded.
|
|
240
241
|
|
|
241
242
|
## Runtime smoke gate (after the last wave, before Finalization)
|
|
@@ -259,11 +260,11 @@ All outcomes proceed to Finalization.
|
|
|
259
260
|
|
|
260
261
|
## Ordering & safety rules
|
|
261
262
|
|
|
262
|
-
- **The wave loop is sequential across waves**: S0 slices the wave before W0 creates its worktrees (never pre-generate later waves); inside a wave, merges serialize on main in coding-completion order (group order breaks same-turn ties and governs resume).
|
|
263
|
+
- **The wave loop is sequential across waves**: S0 slices the wave, F0 pre-seeds its shared primitives, before W0 creates its worktrees (never pre-generate later waves); inside a wave, merges serialize on main in coding-completion order (group order breaks same-turn ties and governs resume).
|
|
263
264
|
- **Specs run sequentially inside a group** (chunks serial in one worktree; intra-page `page-order` always respected); **groups run in parallel only within a wave**, in isolated worktrees — same-wave write overlaps are expected and handled by B2's serial merge + the recovery ladder.
|
|
264
265
|
- **Design is per chunk**: each chunk generates its own `SPEC_DESIGN_G<G>_c<k>.md` before coding; the orchestrator records it in `state`/`design_map.md` on the chunk's successful release. Designs are runtime artifacts and are not committed.
|
|
265
|
-
- **specs.json order is dual — scan order and dependency carrier
|
|
266
|
-
- **Worktrees are the parallel-isolation mechanism** — never run two coders in one working tree, and coders never build or install dependencies inside them (compilation is B3's, on the main tree — coder-side build runs orphan worktree cleanup on Windows). The wiring surface (resolved once at Initialization into `state.config.wiring_files`) never gets direct coder edits (`wiring-mode`); the orchestrator applies wiring serially after merges.
|
|
266
|
+
- **specs.json order is dual — scan order and dependency carrier** (the producer's linearization, `a2h-spec-generate` 的 `publish-specs`). Scan order: groups are ordered by first occurrence; chunks, merges, and wave slicing follow it (backfill may admit a later-order clean group into an earlier wave — wave numbers are not monotone in group order). Dependency carrier: each spec's `deps` (lifted by `plan_groups.ts` to group level; same-page sisters split by the scenario cap re-link through them) point at earlier so-ids, and dispatch-hold (`deps_ready.ts`) staggers within-wave dispatch: same-wave groups still code in parallel, only dispatch starts are staggered, and a released member's coder starts from its deps' merged code; deps pointing at later so-ids are cycle edges — ignored and recorded. Older specs.json without deps keeps pure parallel behavior. The flat fallback bounds this: when the forecast for the remaining pool exceeds 2× the width-bound ideal dispatch rounds, `plan_waves.ts` slices flat and dispatch-hold stops holding (a `mode: "flat"` wave releases everything) — throughput wins, and same-wave conflicts surface at B2.
|
|
267
|
+
- **Worktrees are the parallel-isolation mechanism** — never run two coders in one working tree, and coders never build or install dependencies inside them (compilation is B3's, on the main tree — coder-side build runs orphan worktree cleanup on Windows). The wiring surface (resolved once at Initialization into `state.config.wiring_files`) never gets direct coder edits (`wiring-mode`); the orchestrator applies wiring serially after merges. F0 is the one pre-W0 exception: it edits `state.config.wiring_files` files directly and commits `infra(wave K): shared layer`. B2's wiring application remains idempotent and is not affected.
|
|
267
268
|
- **Every stage is a sub-agent**; results are JSON only; no result is a stop.
|
|
268
269
|
- **`plan_groups.ts` / `plan_waves.ts` are the single source of grouping/wave-slicing truth** — never recompute by hand, never reorder groups.
|
|
269
270
|
- **State is durable** — every stage transition is written to `spec_pipeline_state.json` (atomically: temp file + rename) before dispatching the next stage.
|
|
@@ -36,10 +36,15 @@ background dispatch — chunk, retry, resolver, release-time chunk 1 — follows
|
|
|
36
36
|
<HMOS> progress` reports the units whose last commit / attempt-artifact / dirty-path mtime moved past
|
|
37
37
|
`lastProgress`; write `beat <unitId> --expect-gen <claimGen> --token <token>` for each. A healthy 40+
|
|
38
38
|
minute agent therefore never hits the lease.
|
|
39
|
-
5. **On completion evidence.** The coder writes only files (`commit-info.md` / `issues.md` / `wiring.md`
|
|
40
|
-
into the attempt directory. The orchestrator runs `dispatch.mjs <HMOS> evidence <unitId>` and reads its
|
|
41
|
-
`{kind, reason}` — the deterministic per-attempt check (fresh mtime, `TASK_BASE..HEAD` so-id coverage,
|
|
42
|
-
`commit-id` in range, quiet worktree relative to `baseDirty`).
|
|
39
|
+
5. **On completion evidence.** The coder writes only files (`commit-info.md` / `issues.md` / `wiring.md` /
|
|
40
|
+
`state_docs_used.md`) into the attempt directory. The orchestrator runs `dispatch.mjs <HMOS> evidence <unitId>` and reads its
|
|
41
|
+
`{kind, reason, stateDocs?, warnings?}` — the deterministic per-attempt check (fresh mtime, `TASK_BASE..HEAD` so-id coverage,
|
|
42
|
+
`commit-id` in range, quiet worktree relative to `baseDirty`). A `state_docs_used.md` with no line carrying
|
|
43
|
+
`state-docs: available|unavailable|not-applicable` still completes, with `warnings: ["state-docs-invalid"]`;
|
|
44
|
+
a missing file is `warnings: ["state-docs-missing"]` and a valid `unavailable` verdict is `warnings:
|
|
45
|
+
["state-docs-unavailable"]` in the JSON, never silently assumed. Append every `warnings`
|
|
46
|
+
entry to the wave log and to the final report's Manual Follow-up TODOs, so a skipped gate stays
|
|
47
|
+
visible even when the chunk completes. Only `kind: "completed"` authorizes
|
|
43
48
|
`dispatch.mjs <HMOS> artifact <unitId> --path <commit-info.md>` and `dispatch.mjs <HMOS> submit
|
|
44
49
|
<unitId> --expect-gen <claimGen> --token <token> --kind completed`. `kind: "failed"` (a fresh `issues.md`
|
|
45
50
|
wins regardless of write order — a blocked attempt writes `issues.md` and may still emit
|
|
@@ -101,10 +106,21 @@ below in order (the spec §11 loop; reconcile is the pivot, not a second source
|
|
|
101
106
|
- `orphaned` resolver → the B2 ladder hop.
|
|
102
107
|
5. **Reconcile again; drain the merge queue** (`references/merge-queue.md`): before a pop, check
|
|
103
108
|
`branch_landed.ts <HMOS> <G> --wt-gen <wtGen>`; already landed → record its `pre..range` and
|
|
104
|
-
`group-merge
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
`group-merge <G> --landed <merge_commit>`; not landed → `git merge --no-ff --no-edit
|
|
110
|
+
specpipe/g<G>r<wtGen>`, then `group-merge <G> --landed $(git -C <HMOS> rev-parse HEAD)`. A
|
|
111
|
+
zero-commit branch (`tip` present, `tip` equal to the group's recorded base, `commits_ahead_of_main:0`)
|
|
112
|
+
is the only no-op path — and only when the group was queued and every planned chunk is
|
|
113
|
+
`done`/`accepted`: `group-merge <G>` without `--landed` records `noop:true`. A zero-commit group whose
|
|
114
|
+
chunks include a `failed`/`closed` one is terminal at `landed-required` → `group-fail <G>` (never retry
|
|
115
|
+
every turn). If the generation branch was already landed and then deleted, pass the known
|
|
116
|
+
`--landed <M>` (accepted when it is a first-parent merge naming `specpipe/g<G>r<wtGen>`).
|
|
117
|
+
`group-merge` refuses while main is mid-merge (`MERGE_HEAD` exists); never run it in the same unchecked
|
|
118
|
+
shell line as `git merge`. A conflict takes ladder hop (a) and
|
|
119
|
+
parks the queue: main `merge --abort` → `claim resolver:g<G>` → worktree `git merge <main>` →
|
|
120
|
+
`resolver_prompt.ts` → `intent` → background dispatch → `confirm`. The group's state marks
|
|
121
|
+
(`stage: "B"`, `status = "merged"`) are written only after `group-merge` succeeds. A resolver that
|
|
122
|
+
finished is released (`release --outcome merged`) only after its landing commit exists, then
|
|
123
|
+
`group-merge --landed`.
|
|
108
124
|
6. **Deps release sweep (the chain's tail).** `node <skill-dir>/scripts/deps_ready.ts <HMOS> --wave <K>`
|
|
109
125
|
is a pure function of plan deps + group/chunk statuses; a nonzero exit is recorded and retried next
|
|
110
126
|
turn. A **flat** wave yields `ready` for every pending member. For every member newly in `released`
|
|
@@ -123,7 +139,9 @@ below in order (the spec §11 loop; reconcile is the pivot, not a second source
|
|
|
123
139
|
by this pass; `chunk k-1 done` is read from the **ledger**, so a lagging state never blocks dispatch.
|
|
124
140
|
8. **Residue disposal (scope = every group still holding units, including older waves).** A group whose
|
|
125
141
|
units are all terminal but whose group status is not → `queue-merge` when unlanded (then drain), or
|
|
126
|
-
`group-merge
|
|
142
|
+
`group-merge <G> --landed <merge_commit>` when `branch_landed.ts` reports it already landed. A
|
|
143
|
+
zero-commit group whose terminal chunks include `failed`/`closed` can never land: skip the queue and
|
|
144
|
+
`group-fail <G>` directly. `failed-group-residue` (a failed group still holding a non-terminal
|
|
127
145
|
unit) → dispose of those units (`reject` for invalid evidence, `orphan`/`close` as their state allows):
|
|
128
146
|
they can never reach a verdict on their own and would keep `complete` false forever. `deadGroups` → fresh
|
|
129
147
|
reset (if a generation remains) or
|
|
@@ -198,8 +216,27 @@ its artifacts.
|
|
|
198
216
|
`module.json5`, `oh-package*.json5`, `main_pages.json`, `route_map.json`, `resources/**/element/*.json`
|
|
199
217
|
— all locale variants) + the discrete entries of `state.config.wiring_files` that match no category
|
|
200
218
|
(project-specific: ability sources, the DB registration file, `*Routes.ets`) + the lock-file rule
|
|
201
|
-
(never edit, no wiring rows — the build regenerates).
|
|
202
|
-
|
|
219
|
+
(never edit, no wiring rows — the build regenerates). The compact list is derived from
|
|
220
|
+
`state.config.wiring_files` (the source of truth); `resolve_wiring.ts` also persists the same rendering
|
|
221
|
+
as `state.config.wiring_compact`, which `resolver_prompt.ts` treats as a fallback only when
|
|
222
|
+
`wiring_files` is absent. Never paste the raw full list (~167 paths ≈ ~3k tokens per dispatch).
|
|
223
|
+
- `shared-layer-list`: the cumulative shared-layer inventory (`network.transport [X, Y] from
|
|
224
|
+
'module'`; `none` when no wave has a done manifest). Advisory, not a gate; the one-sentence coder
|
|
225
|
+
rule it carries: these shared implementations already exist in this wave's baseline — prefer
|
|
226
|
+
reusing them; when genuinely insufficient, append inside the original module (append-only, never
|
|
227
|
+
changing an existing symbol's semantics) instead of building a second parallel provider; **never
|
|
228
|
+
skip a scenario because it is "shared"**; record doubts in `issues.md`. Compute it as the union
|
|
229
|
+
of `wave_<j>/shared_manifest.json` for every `j <= K` with `status: "done"` **and `campaign_id`
|
|
230
|
+
equal to the current `state.config.campaign_id`** (a done manifest from an earlier campaign is
|
|
231
|
+
residue, never inventory), deduped by
|
|
232
|
+
`(module.id, module.path)`, rendered as `symbols from '<module_name>'` (the `api[].name`
|
|
233
|
+
symbols); never persist it — B1 resume recomputes it from the files. A design-mode dispatch
|
|
234
|
+
carries the same list, so the design proposes against the existing APIs.
|
|
235
|
+
- `state-docs-mode`: `<state.config.state_docs_mode>` (`available` / `unavailable`) — the coder's
|
|
236
|
+
state-management doc gate reads it (`a2h-arkts-logic-coder` → `references/code-generation.md`
|
|
237
|
+
Step 2). With `unavailable` the coder skips the `devecocli docs` wrapper, falls back to its
|
|
238
|
+
`references/ISSUES.md`, and records `state-docs: unavailable` in `state_docs_used.md`. Never paste
|
|
239
|
+
the doc rules or a doc key list into the prompt — the coder skill owns them.
|
|
203
240
|
- worktree index: `<worktree>/.homegraph/`, built by the dispatcher when the worktree was created
|
|
204
241
|
(`ensure_wt_index.ts` — W0 for ready members, the deps release sweep for held ones). Read-only for the
|
|
205
242
|
coder; the prompt clause below carries the usage rules. **No usable index** (the script exited 1, or
|
|
@@ -223,7 +260,9 @@ its artifacts.
|
|
|
223
260
|
**No-build rule**: the coder must not build, compile, or install dependencies in the worktree — no
|
|
224
261
|
`devecocli build`, `hvigorw`, `ohpm install`, or any equivalent; static checks (the skill's node
|
|
225
262
|
scripts, git) are fine. Compile verification belongs to B3 alone (`build-fixer` runs `devecocli build`
|
|
226
|
-
once per wave on the main tree). **
|
|
263
|
+
once per wave on the main tree). **State-refresh rule**: before choosing any state variable or
|
|
264
|
+
decorator, follow the coder skill's state-management doc gate and write `state_docs_used.md`; never
|
|
265
|
+
settle a decorator from memory or analogy. **Your final JSON must echo the `unitId` given above.**" — resume
|
|
227
266
|
detection is mechanical: parse `git -C <worktree> log --oneline <TASK_BASE>..` commit-message so-id
|
|
228
267
|
prefixes to find the last completed so-id before any re-dispatch. `TASK_BASE` = the ledger group's
|
|
229
268
|
`base` (falling back to `WAVE_BASE`); `coding_base` in state is a read-only cache. Filter the parsed
|
|
@@ -105,7 +105,7 @@ closeReason/lastSubmitKey/lateEvents`.
|
|
|
105
105
|
"worktree":"…/g2r1","branch":"specpipe/g2r1","reason":"hop-b|dead"}
|
|
106
106
|
{"t":"…","ev":"queue-merge","group":2}
|
|
107
107
|
{"t":"…","ev":"dequeue-merge","group":2}
|
|
108
|
-
{"t":"…","ev":"group-merge","group":2}
|
|
108
|
+
{"t":"…","ev":"group-merge","group":2,"landed":"<merge-sha>"}
|
|
109
109
|
{"t":"…","ev":"group-fail","group":2}
|
|
110
110
|
{"t":"…","ev":"artifact","unit":"chunk:g2c1","path":"…/attempt_1/commit-info.md"}
|
|
111
111
|
```
|
|
@@ -133,7 +133,7 @@ Every event carries `runId`. The allowed-transitions table is the contract `fold
|
|
|
133
133
|
| `close(content-exhausted\|dead\|ladder-exhausted)` | `failed`/`orphaned` | `closed` | same identity; records `closeReason` |
|
|
134
134
|
| `retry` | `failed` (content<2) / `abandoned` (force) | `pending` | clears identity, preserves `attempt`; `force` also resets `dispatchAttempts`/`contentAttempts` |
|
|
135
135
|
| `group-reset` | no active unit in the group | every unit `pending` | reuse keeps the generation; fresh needs new worktree+branch; clears `mergeQueued` |
|
|
136
|
-
| `group-merge` | any | `merged` | clears `mergeQueued`; **means already landed**; removes older-generation worktrees/branches |
|
|
136
|
+
| `group-merge` | any except `failed` | `merged` | clears `mergeQueued`; records the canonical `landed` merge commit and `noop` (zero-commit only when tip == the group's base, queued, all planned chunks done); **means already landed**; removes older-generation worktrees/branches; CLI-refused while `MERGE_HEAD` exists and re-checked under the ledger lock |
|
|
137
137
|
| `group-fail` | any | `failed` | clears `mergeQueued` |
|
|
138
138
|
| `group-worktree` | any | records base/worktree/branch/history, sets `provisioned` | `wtGen` required and equal to the group's current value |
|
|
139
139
|
| `queue-merge`/`dequeue-merge` | non-terminal group | sets/clears `mergeQueued` | terminal groups rejected |
|
|
@@ -227,7 +227,8 @@ node dispatch.mjs <HMOS> release <unitId> --expect-gen <claimGen> --token <t> --
|
|
|
227
227
|
node dispatch.mjs <HMOS> accept <unitId> --expect-gen <claimGen> --reason wave-end
|
|
228
228
|
node dispatch.mjs <HMOS> close <unitId> [--expect-gen <claimGen> --token <t>] --reason content-exhausted|dead|ladder-exhausted|blocked
|
|
229
229
|
node dispatch.mjs <HMOS> group-reset <G> --mode reuse|fresh --base <sha> --reason hop-b|dead [--worktree <abs> --branch <name>]
|
|
230
|
-
node dispatch.mjs <HMOS> group-merge <G>
|
|
230
|
+
node dispatch.mjs <HMOS> group-merge <G> [--landed <merge-sha>]
|
|
231
|
+
node dispatch.mjs <HMOS> group-merge <G> # zero-commit no-op only (records noop:true)
|
|
231
232
|
node dispatch.mjs <HMOS> group-fail <G>
|
|
232
233
|
node dispatch.mjs <HMOS> queue-merge <G>
|
|
233
234
|
node dispatch.mjs <HMOS> dequeue-merge <G>
|
|
@@ -261,8 +262,25 @@ node dispatch.mjs <HMOS> progress
|
|
|
261
262
|
- `intent` must be written **before** the Agent call. `release(merged)` only after the landing succeeded.
|
|
262
263
|
- `reconcile` writes only timeout-derived events; it never writes `submit`/`accept`/`group-*`.
|
|
263
264
|
- `probe` prints `{inPlace, pid, host, runId, at}` for the waker lock.
|
|
264
|
-
- `group-merge`
|
|
265
|
-
|
|
265
|
+
- `group-merge` is the **landing gate**, not a bookkeeping call: `--landed <sha>` is required whenever the
|
|
266
|
+
branch has commits, and the sha must be exactly that group's landing merge commit
|
|
267
|
+
(`<merge>^1` = the pre-merge main HEAD, branch tip = non-first parent) — `landed-required` /
|
|
268
|
+
`landed-unknown` / `landed-mismatch` otherwise (the canonical merge sha, not the caller's ref, is
|
|
269
|
+
what gets recorded). A zero-commit branch records `noop:true` without `--landed`, and only when the
|
|
270
|
+
branch still sits on the group's recorded base, the group was queued, and every planned chunk is
|
|
271
|
+
`done`/`accepted`. When the branch is already deleted (C), an explicit `--landed <M>` is accepted only
|
|
272
|
+
if `M` is a first-parent merge on main whose subject names the generation branch (`landed-mismatch`
|
|
273
|
+
otherwise). It refuses while main is mid-merge (`merge-in-progress`; git exit 1 is the only
|
|
274
|
+
"no merge", any other status is `merge-head-unknown`), when the landing cannot be computed
|
|
275
|
+
(`landed-unverifiable`), for a `failed` group (`group-failed`), and it never appends a second row: the
|
|
276
|
+
pre-append re-check under the ledger lock rejects a gen/branch/base swap (`generation-changed`) and a
|
|
277
|
+
concurrent duplicate (`merge-already-recorded`). An already-landed group answers
|
|
278
|
+
`{duplicate:true,verified:true}`, a legacy `merged` row without a recorded landing answers
|
|
279
|
+
`{duplicate:true,verified:false,legacy:true}` (plus `unlanded:true` when that branch still holds
|
|
280
|
+
commits that never landed — fail it soft with `group-fail`, never skip it). It reports
|
|
281
|
+
`cleaned: {removed, failed}` and removes the group's older-generation worktrees and branches after the
|
|
282
|
+
merge lands; the current generation's tree is left for the audit. The orchestrator writes the group
|
|
283
|
+
state marks **after** this succeeds.
|
|
266
284
|
- `status` includes `cache: fresh|stale|absent|corrupt`, comparing `dispatch/state.json` with a fresh fold.
|
|
267
285
|
- Lock acquisition prunes orphaned `*.stale.*`/`*.tmp`/`*.renew` files older than an hour.
|
|
268
286
|
|
|
@@ -293,7 +311,7 @@ the claim identity: `units` carry no `claimGen`/`token`.
|
|
|
293
311
|
|
|
294
312
|
`wait` is read-only over the ledger/state/worktrees; it writes only its baseline and `--event-file`. It
|
|
295
313
|
snapshots the active units' worktree gitdir files (`logs/HEAD`, `index`, `COMMIT_EDITMSG`), the current
|
|
296
|
-
attempt directory's artifacts (`commit-info.md`, `issues.md`, `wiring.md`), the ledger (size/mtime/last
|
|
314
|
+
attempt directory's artifacts (`commit-info.md`, `issues.md`, `wiring.md`, `state_docs_used.md`), the ledger (size/mtime/last
|
|
297
315
|
line), `spec_pipeline_state.json` (mtime), and `nextDeadline`. The first baseline is seeded at the
|
|
298
316
|
earliest observation; `claim` seeds the newly claimed unit into the foreground baseline before it
|
|
299
317
|
returns. On a change it atomically writes the event file `{runId, kind: ledger|state|artifact|git|deadline,
|
|
@@ -10,7 +10,8 @@ The orchestrator prints this at Finalization step 4, filling every placeholder.
|
|
|
10
10
|
- Static defect check (before smoke): PASS / FAIL / SKIPPED — pass→PASS; fail / build_failed / scan_error / scan_timeout→FAIL; skipped / preflight_failed / infra_error→SKIPPED; errors X → Y; fixed F; suppressed S; remaining R; build SUCCESS / FAILED
|
|
11
11
|
- Actual-write audit: registry edits Y (coder) + R (resolver), cross-group overlaps Z, empty-diff groups (per-wave details: .hometrans/wave_<k>/claim_audit.json)
|
|
12
12
|
- Dispatch-hold: held-then-released groups [G...], cycle edges ignored [G→G...] (per-wave details in the wave log); flat waves (deps forecast collapsed concurrency): waves [k...] sliced `mode: "flat"` — deps ignored, overlaps handled at B2
|
|
13
|
-
-
|
|
13
|
+
- Shared layer (F0): per wave — Infra(wave K) | <commit | skipped(reason)> | docs=<sha | none> | modules=N | foundation_overlaps_after=<n> (foundation_overlaps_after: the wave's claim_audit.cross_group_overlaps files filtered against the cumulative inventory's `modules[].files`, not `wiring`)
|
|
14
|
+
- Review (B4): per wave — rounds run R, groups reviewed per round [r1: n, r2: n, ...], groups still open after the last round [G (open scenarios)...], fix-mode Remaining Issues per group (count)
|
|
14
15
|
- Failed groups: [...] (with downstream impact notes)
|
|
15
16
|
|
|
16
17
|
### Per-Group Results
|
|
@@ -22,5 +23,5 @@ The orchestrator prints this at Finalization step 4, filling every placeholder.
|
|
|
22
23
|
|---|---|---|---|---|---|
|
|
23
24
|
|
|
24
25
|
### Manual Follow-up TODOs
|
|
25
|
-
- (design issues, unfixed review defects — groups still open after the
|
|
26
|
+
- (design issues, unfixed review defects — groups still open after the last review round, with their open scenarios and last review-fix-report —, build issues, cross-group and audit findings, state-docs evidence warnings (`state-docs-missing` / `state-docs-invalid` / `state-docs-unavailable` from the per-chunk artifacts), unfixed Homecheck errors, smoke-gate FAIL_*/SKIPPED_* outcomes)
|
|
26
27
|
```
|