@buaa_smat/hometrans 26.0.0-devecocli.4 → 26.0.0
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 +433 -0
- package/agents/build-fixer.md +1 -2
- package/agents/code-reviewer.md +31 -15
- package/agents/model-render-worker.md +9 -5
- package/dist/cli/config-store.js +128 -0
- package/dist/cli/config.js +48 -0
- package/dist/cli/editors.json +114 -0
- package/dist/cli/env-vars.js +127 -0
- package/dist/cli/index.js +73 -0
- package/dist/cli/init.js +2513 -0
- package/dist/cli/uninstall.js +406 -0
- package/dist/platform/compose.js +228 -0
- package/dist/platform/frontmatter.js +151 -0
- package/dist/platform/installer.js +417 -0
- package/dist/platform/registry.js +337 -0
- package/dist/platform/transform.js +363 -0
- package/dist/platform/types.js +9 -0
- package/dist/platform/validate.js +152 -0
- package/dist/utils/regex.js +7 -0
- package/env-requirements.json +511 -0
- package/package.json +240 -11
- package/platforms/deveco/agents/code-reviewer.frontmatter.md +1 -1
- package/platforms/opencode/agents/code-reviewer.frontmatter.md +1 -1
- package/resource/choose_editor.png +0 -0
- package/resource/convert_pipeline_process.svg +114 -0
- package/resource/project_architecture.svg +120 -0
- package/resource/set_environment.png +0 -0
- package/resource/set_multimodel.png +0 -0
- package/resource/set_sdk.png +0 -0
- package/resource/title_dark.png +0 -0
- package/skills/a2h-app-migrate/SKILL.md +17 -11
- package/skills/a2h-app-migrate/references/stage-map.md +22 -7
- package/skills/a2h-app-migrate/references/workflow.yaml +276 -209
- package/skills/a2h-app-migrate/scripts/android_index.mjs +34 -16
- package/skills/a2h-app-migrate/scripts/check_arch_done.mjs +12 -12
- package/skills/a2h-app-migrate/scripts/check_module_docs_done.mjs +12 -12
- package/skills/a2h-app-migrate/scripts/check_signing.mjs +16 -16
- package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +17 -16
- package/skills/a2h-app-migrate/scripts/check_spec_pipeline_done.mjs +141 -62
- package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +12 -12
- package/skills/a2h-app-migrate/scripts/check_utg_static_done.mjs +26 -26
- package/skills/a2h-app-migrate/scripts/cli_values.mjs +7 -7
- package/skills/a2h-app-migrate/scripts/ensure_utg_snapshot.mjs +144 -0
- package/skills/a2h-app-migrate/scripts/env_preflight.mjs +474 -365
- package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +115 -108
- package/skills/a2h-app-migrate/scripts/i18n-term.d.mts +5 -0
- package/skills/a2h-app-migrate/scripts/i18n-term.mjs +54 -0
- package/skills/a2h-app-migrate/scripts/infer_android_root.mjs +6 -6
- package/skills/a2h-app-migrate/scripts/json_io.mjs +1 -1
- package/skills/a2h-app-migrate/scripts/ledger.mjs +15 -15
- package/skills/a2h-app-migrate/scripts/paths_preflight.mjs +99 -99
- package/skills/a2h-app-migrate/scripts/resume_plan.mjs +25 -25
- package/skills/a2h-app-migrate/scripts/reuse_static_utg.mjs +9 -9
- package/skills/a2h-app-migrate/scripts/run_dir.mjs +33 -33
- package/skills/a2h-app-migrate/scripts/spec_layout.mjs +13 -11
- package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +128 -80
- package/skills/a2h-app-migrate/scripts/write_resume_summary.mjs +349 -0
- package/skills/a2h-arch-generate/scripts/cleanup_intermediates.mjs +21 -21
- package/skills/a2h-arch-generate/scripts/create_project.mjs +23 -23
- package/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +48 -40
- package/skills/a2h-arch-generate/scripts/generate_state.mjs +7 -7
- package/skills/a2h-arch-generate/scripts/i18n-term.d.mts +5 -0
- package/skills/a2h-arch-generate/scripts/i18n-term.mjs +54 -0
- package/skills/a2h-arch-generate/scripts/inspect_android_project.mjs +10 -1
- package/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +41 -36
- package/skills/a2h-arch-generate/scripts/lib/contract_terms.mjs +40 -0
- package/skills/a2h-arch-generate/scripts/lib/py_compat.mjs +1 -1
- package/skills/a2h-arch-generate/scripts/module_create/create.mjs +17 -17
- package/skills/a2h-arch-generate/scripts/module_create/generate.mjs +54 -50
- package/skills/a2h-arch-generate/scripts/scaffold_project.mjs +42 -42
- package/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +69 -44
- package/skills/a2h-arch-generate/scripts/validate_data_docs.mjs +62 -17
- package/skills/a2h-arch-generate/scripts/validate_incremental_docs.mjs +5 -4
- package/skills/a2h-arkts-logic-coder/SKILL.md +39 -8
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -0
- package/skills/a2h-arkts-logic-coder/references/code-generation.md +28 -17
- package/skills/{a2h-spec-design/SKILL.md → a2h-arkts-logic-coder/references/spec-design.md} +45 -78
- package/skills/a2h-arkts-logic-coder/scripts/check_mvvm.ts +1 -1
- package/skills/a2h-arkts-logic-coder/scripts/check_units.ts +448 -0
- package/skills/a2h-arkts-logic-coder/scripts/design/i18n-term.d.mts +5 -0
- package/skills/a2h-arkts-logic-coder/scripts/design/i18n-term.mjs +54 -0
- package/skills/{a2h-spec-design/scripts → a2h-arkts-logic-coder/scripts/design}/inspect_spec_design_inputs.mjs +18 -12
- package/skills/{a2h-spec-design/scripts → a2h-arkts-logic-coder/scripts/design}/lib/py_compat.mjs +1 -1
- package/skills/{a2h-spec-design/scripts → a2h-arkts-logic-coder/scripts/design}/move_spec_technical_reference.mjs +10 -7
- package/skills/{a2h-spec-design/scripts → a2h-arkts-logic-coder/scripts/design}/resolve_module_design.mjs +13 -7
- package/skills/{a2h-spec-design/scripts → a2h-arkts-logic-coder/scripts/design}/validate_spec_design_output.mjs +57 -41
- package/skills/a2h-arkts-logic-coder/scripts/stop_check_hook.ts +66 -323
- package/skills/a2h-arkts-logic-coder/scripts/test_check_scripts.ts +66 -108
- package/skills/a2h-arkts-logic-coder/scripts/test_check_units.ts +149 -0
- package/skills/a2h-arkts-logic-coder/scripts/test_worktree_compat.ts +5 -18
- package/skills/a2h-batch-ui-align/SKILL.md +39 -39
- package/skills/a2h-batch-ui-align/references/cards/alignment.md +31 -0
- package/skills/a2h-batch-ui-align/references/cards/build.md +13 -0
- package/skills/a2h-batch-ui-align/references/cards/canvas.md +17 -0
- package/skills/a2h-batch-ui-align/references/cards/dynamics.md +27 -0
- package/skills/a2h-batch-ui-align/references/cards/geometry.md +80 -0
- package/skills/a2h-batch-ui-align/references/cards/interaction.md +22 -0
- package/skills/a2h-batch-ui-align/references/cards/resources.md +83 -0
- package/skills/a2h-batch-ui-align/references/cards/state-v1.md +29 -0
- package/skills/a2h-batch-ui-align/references/cards/state.md +14 -0
- package/skills/a2h-batch-ui-align/references/cards/widgets.md +38 -0
- package/skills/a2h-batch-ui-align/references/cards/window.md +29 -0
- package/skills/a2h-batch-ui-align/references/checker-rules.md +642 -0
- package/skills/a2h-batch-ui-align/references/conversion-procedure.md +69 -260
- package/skills/a2h-batch-ui-align/references/host-dispatch.md +34 -0
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +16 -4
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +3 -1
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +32 -1
- package/skills/a2h-batch-ui-align/references/source-only-tier.md +7 -1
- package/skills/a2h-batch-ui-align/references/state-mgmt/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +28 -0
- package/skills/a2h-batch-ui-align/references/state-mgmt/_/350/243/205/351/245/260/345/231/250/351/200/237/346/237/245.md +220 -0
- package/skills/a2h-batch-ui-align/references/step3-capture.md +11 -9
- package/skills/a2h-batch-ui-align/references/step4-prepare.md +13 -8
- package/skills/a2h-batch-ui-align/references/step5-convert.md +21 -18
- package/skills/a2h-batch-ui-align/scripts/agent_cli.mjs +44 -44
- package/skills/a2h-batch-ui-align/scripts/android_parse_fast.ts +237 -236
- package/skills/a2h-batch-ui-align/scripts/arkts_static_check.ts +42 -3854
- package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +34 -32
- package/skills/a2h-batch-ui-align/scripts/detach.mjs +1 -1
- package/skills/a2h-batch-ui-align/scripts/detect_paradigm.mjs +240 -0
- package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +139 -33
- package/skills/a2h-batch-ui-align/scripts/gen_rule_docs.mjs +100 -0
- package/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +26 -25
- package/skills/a2h-batch-ui-align/scripts/group_commit.mjs +1 -1
- package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +159 -12
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +145 -21
- package/skills/a2h-batch-ui-align/scripts/group_watch.mjs +8 -8
- package/skills/a2h-batch-ui-align/scripts/host_env.mjs +1 -1
- package/skills/a2h-batch-ui-align/scripts/i18n-term.d.mts +5 -0
- package/skills/a2h-batch-ui-align/scripts/i18n-term.mjs +54 -0
- package/skills/a2h-batch-ui-align/scripts/image_probe.mjs +228 -0
- package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +444 -266
- package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +66 -32
- package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +141 -57
- package/skills/a2h-batch-ui-align/scripts/state_doc.mjs +410 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/android.ts +80 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/cli.ts +134 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/findings.ts +21 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/i18n.ts +22 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/meta.ts +34 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/parse.ts +668 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/scan.ts +392 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +167 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/package.json +3 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +101 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +629 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/android_immersive.ts +125 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +67 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/block_comment_break.ts +64 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/blur_mirrored.ts +134 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_call_sites.ts +242 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_invokes_callback.ts +71 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/canvas.ts +255 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/color_string.ts +102 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/column_shrink.ts +154 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/constant_coordinate.ts +39 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/container_align.ts +140 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_root_builtin.ts +69 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_route.ts +114 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/fixed_size_safe_area.ts +103 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/format_string.ts +157 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_picker.ts +115 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +551 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_content.ts +138 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +310 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/offset_in_scroll.ts +163 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/orphan_component.ts +119 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/page_reachability.ts +94 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/path_commands_vp.ts +50 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +80 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/popup_menu.ts +64 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/r_template_string.ts +37 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/request_permission.ts +98 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/resource_as_string.ts +68 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +97 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/safe_area_clipping.ts +168 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +75 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/sdk_api.ts +195 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/shared_chrome.ts +73 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_blur.ts +95 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/shell_content.ts +198 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/stack_occluding.ts +118 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/state_decorators.ts +73 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/state_name_shadows.ts +93 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/string_quote_leak.ts +73 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/surface_stroke.ts +50 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/track_getter.ts +132 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +53 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/window_mode.ts +68 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/scan_file.ts +153 -0
- package/skills/a2h-batch-ui-align/scripts/text_color_diff.mjs +65 -65
- package/skills/a2h-coldstart-smoke-gate/SKILL.md +8 -6
- package/skills/a2h-dashboard-render/SKILL.md +15 -7
- package/skills/a2h-dashboard-render/references/artifact-contract.jsonc +5 -35
- package/skills/a2h-dashboard-render/references/artifact-registry-spec.md +4 -4
- package/skills/a2h-dashboard-render/references/dashboard-guide.md +91 -0
- package/skills/a2h-dashboard-render/scripts/check-registry.mjs +17 -17
- package/skills/a2h-dashboard-render/scripts/dashboard.css +3546 -0
- package/skills/a2h-dashboard-render/scripts/dashboard.mjs +1021 -941
- package/skills/a2h-dashboard-render/scripts/device_capture.mjs +104 -65
- package/skills/a2h-dashboard-render/scripts/i18n-term.d.mts +5 -0
- package/skills/a2h-dashboard-render/scripts/i18n-term.mjs +54 -0
- package/skills/a2h-dashboard-render/scripts/page_capture.mjs +8 -8
- package/skills/a2h-dashboard-render/scripts/usage_readers.mjs +67 -37
- package/skills/a2h-dashboard-render/scripts/usage_worker.mjs +4 -4
- package/skills/a2h-fix-build-errors/SKILL.md +1 -2
- package/skills/a2h-resource-convert/SKILL.md +1 -3
- package/skills/a2h-resource-convert/references/step7-report-template.md +2 -2
- package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +366 -361
- package/skills/a2h-resource-convert/scripts/a2h_resource_incremental.ts +170 -170
- package/skills/a2h-resource-convert/scripts/app_identity.ts +162 -162
- package/skills/a2h-resource-convert/scripts/code_vector_icons.ts +95 -95
- package/skills/a2h-resource-convert/scripts/extract_page_resources.ts +132 -132
- package/skills/a2h-resource-convert/scripts/extract_project_resources.ts +220 -220
- package/skills/a2h-resource-convert/scripts/i18n-term.d.mts +5 -0
- package/skills/a2h-resource-convert/scripts/i18n-term.mjs +54 -0
- package/skills/a2h-resource-convert/scripts/svg_fidelity_check.ts +74 -74
- package/skills/a2h-spec-design-pipeline/SKILL.md +113 -63
- package/skills/a2h-spec-design-pipeline/references/coding-loop.md +226 -56
- package/skills/a2h-spec-design-pipeline/references/execution-model.md +315 -62
- package/skills/a2h-spec-design-pipeline/references/final-report-template.md +4 -2
- package/skills/a2h-spec-design-pipeline/references/initialization.md +12 -9
- package/skills/a2h-spec-design-pipeline/references/legacy-cleanup.md +18 -0
- package/skills/a2h-spec-design-pipeline/references/merge-queue.md +109 -8
- package/skills/a2h-spec-design-pipeline/references/scripts.md +29 -16
- package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +116 -8
- package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +179 -0
- package/skills/a2h-spec-design-pipeline/scripts/audit_claims.ts +33 -5
- package/skills/a2h-spec-design-pipeline/scripts/branch_landed.ts +36 -16
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/evidence.mjs +93 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/fold.mjs +915 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/ledger.mjs +234 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/plan.mjs +33 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/progress.mjs +31 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/reconcile.mjs +94 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/state-mirror.mjs +55 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/timeouts.mjs +34 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/wait.mjs +92 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/waker.mjs +60 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/worktree.mjs +89 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch.mjs +551 -0
- package/skills/a2h-spec-design-pipeline/scripts/ensure_wt_index.ts +267 -33
- package/skills/a2h-spec-design-pipeline/scripts/git_baseline.ts +30 -10
- package/skills/a2h-spec-design-pipeline/scripts/homecheck_scan.ts +634 -0
- package/skills/a2h-spec-design-pipeline/scripts/i18n-term.d.mts +5 -0
- package/skills/a2h-spec-design-pipeline/scripts/i18n-term.mjs +54 -0
- package/skills/a2h-spec-design-pipeline/scripts/lib/io.mjs +33 -0
- package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +107 -19
- package/skills/a2h-spec-design-pipeline/scripts/stage_design_inputs.ts +79 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_atomic_write.ts +4 -4
- package/skills/a2h-spec-design-pipeline/scripts/test_audit_claims.ts +121 -38
- package/skills/a2h-spec-design-pipeline/scripts/test_branch_landed.ts +58 -11
- package/skills/a2h-spec-design-pipeline/scripts/test_deps_ready.ts +31 -31
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_commands.mjs +564 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_e2e.mjs +339 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_evidence.mjs +161 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_fold.mjs +1024 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_ledger.mjs +178 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_plan.mjs +60 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_progress.mjs +58 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_reconcile.mjs +91 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_wait.mjs +60 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_waker.mjs +95 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_worktree.mjs +81 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_wt_index.ts +183 -2
- package/skills/a2h-spec-design-pipeline/scripts/test_git_baseline.ts +29 -2
- package/skills/a2h-spec-design-pipeline/scripts/test_homecheck_scan.ts +294 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_i18n_term.ts +70 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +157 -30
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_waves.ts +2 -2
- package/skills/a2h-spec-design-pipeline/scripts/test_stage_design_inputs.ts +72 -0
- package/skills/a2h-spec-generate/SKILL.md +34 -10
- package/skills/a2h-spec-generate/references/batch-mode.md +4 -1
- package/skills/a2h-spec-generate/references/fusion-task-contract.md +90 -21
- package/skills/a2h-spec-generate/references/recall-guide.md +1 -0
- package/skills/a2h-spec-generate/references/requirement-scope.md +1 -1
- package/skills/a2h-spec-generate/references/specs.schema.json +6 -0
- package/skills/a2h-spec-generate/references/worker-rules.md +2 -1
- package/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +305 -116
- package/skills/a2h-spec-generate/scripts/check_spec.ts +136 -114
- package/skills/a2h-spec-generate/scripts/collect-specs.mjs +19 -4
- package/skills/a2h-spec-generate/scripts/ensure-index.mjs +74 -14
- package/skills/a2h-spec-generate/scripts/feature-stem.mjs +4 -2
- package/skills/a2h-spec-generate/scripts/i18n-term.d.mts +5 -0
- package/skills/a2h-spec-generate/scripts/i18n-term.mjs +54 -0
- package/skills/a2h-spec-generate/scripts/parse_requirements.ts +65 -65
- package/skills/a2h-spec-generate/scripts/prepare-facts.mjs +8 -2
- package/skills/a2h-spec-generate/scripts/publication-verdict.mjs +8 -2
- package/skills/a2h-spec-generate/scripts/publish-specs.mjs +80 -5
- package/skills/a2h-spec-generate/scripts/regroup-by-page.mjs +670 -0
- package/skills/a2h-spec-generate/scripts/render-tasks.mjs +37 -30
- package/skills/a2h-spec-generate/scripts/report.mjs +7 -3
- package/skills/a2h-spec-generate/scripts/reqgen/assets/dashboard.html +26 -26
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-api.js +2 -2
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-code-view.js +2 -2
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-format.js +4 -4
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-handoff.js +6 -6
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-tree.js +3 -3
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.html +23 -23
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.js +16 -16
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +27 -26
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +7 -4
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +32 -31
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +3 -2
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +26 -20
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +92 -69
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-output.ts +7 -3
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/behavior-seed.ts +545 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/library-evidence.ts +545 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/schema.ts +177 -2
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/selfcheck.ts +424 -29
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/spec-bindings.ts +133 -7
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +302 -103
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/zip.ts +99 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/i18n-term.d.mts +5 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/i18n-term.mjs +54 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +8 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/schema.ts +5 -1
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +39 -33
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +4 -3
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/contracts.ts +4 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +48 -6
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/prepare.ts +366 -5
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/query.ts +102 -3
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +81 -52
- package/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +21 -11
- package/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +2 -1
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +13 -4
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-api.ts +2 -2
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-code-view.ts +2 -2
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-format.ts +4 -4
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-handoff.ts +6 -6
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-tree.ts +3 -3
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz.ts +16 -16
- package/skills/a2h-utg-explorer/assets/final_viewer.html +21 -21
- package/skills/a2h-utg-explorer/references/architecture.md +7 -2
- package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +108 -9
- package/skills/a2h-utg-explorer/scripts/d_prereqs.mjs +21 -3
- package/skills/a2h-utg-explorer/scripts/hint_check.mjs +4 -1
- package/skills/a2h-utg-explorer/scripts/i18n-term.d.mts +5 -0
- package/skills/a2h-utg-explorer/scripts/i18n-term.mjs +54 -0
- package/skills/a2h-utg-explorer/scripts/panel_routes.mjs +229 -0
- package/skills/a2h-utg-explorer/scripts/plan.mjs +45 -2
- package/skills/a2h-utg-explorer/scripts/recover_b.mjs +2 -1
- package/skills/a2h-utg-explorer/scripts/report.mjs +38 -18
- package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +9 -2
- package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +179 -18
- package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +21 -4
- package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +449 -42
- package/skills/a2h-utg-static/SKILL.md +7 -0
- package/skills/a2h-utg-static/scripts/assemble.mjs +29 -2
- package/skills/a2h-utg-static/scripts/click_paths.mjs +42 -26
- package/skills/a2h-utg-static/scripts/fragment_nav.mjs +4 -2
- package/skills/a2h-utg-static/scripts/i18n-term.d.mts +5 -0
- package/skills/a2h-utg-static/scripts/i18n-term.mjs +54 -0
- package/skills/a2h-utg-static/scripts/manifest.mjs +91 -10
- package/skills/a2h-utg-static/scripts/nl_hints.mjs +68 -3
- package/skills/a2h-utg-static/scripts/presenter_nav.mjs +2 -1
- package/skills/a2h-utg-static/scripts/route_interceptor.mjs +374 -0
- package/skills/a2h-utg-static/scripts/static_prior.mjs +87 -33
- package/skills/a2h-utg-static/scripts/uniapp_nav.mjs +240 -8
- package/skills/a2h-utg-static/scripts/utg_html.mjs +51 -51
- package/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +100 -100
- package/devecocli-plugin/common.ts +0 -2203
- package/devecocli-plugin/install.ts +0 -61
- package/devecocli-plugin/uninstall.ts +0 -26
- package/devecocli-plugin/update.ts +0 -66
- package/index.js +0 -1418
- package/plugin.jsonc +0 -12
- package/skills/a2h-app-migrate/test/test_android_index.mjs +0 -80
- package/skills/a2h-app-migrate/test/test_apk_preflight.mjs +0 -63
- package/skills/a2h-app-migrate/test/test_arch_done.mjs +0 -54
- package/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +0 -92
- package/skills/a2h-app-migrate/test/test_config_example.mjs +0 -42
- package/skills/a2h-app-migrate/test/test_entry_guards.mjs +0 -93
- package/skills/a2h-app-migrate/test/test_env_requirements.mjs +0 -544
- package/skills/a2h-app-migrate/test/test_finalize.mjs +0 -89
- package/skills/a2h-app-migrate/test/test_gate_checkpoint.mjs +0 -146
- package/skills/a2h-app-migrate/test/test_hmos_fingerprint.mjs +0 -68
- package/skills/a2h-app-migrate/test/test_infer_android_root.mjs +0 -91
- package/skills/a2h-app-migrate/test/test_interaction.mjs +0 -122
- package/skills/a2h-app-migrate/test/test_json_io.mjs +0 -32
- package/skills/a2h-app-migrate/test/test_leaf_questions.mjs +0 -109
- package/skills/a2h-app-migrate/test/test_module_docs_done.mjs +0 -53
- package/skills/a2h-app-migrate/test/test_parse_args.mjs +0 -69
- package/skills/a2h-app-migrate/test/test_preflight_report.mjs +0 -93
- package/skills/a2h-app-migrate/test/test_resume_plan.mjs +0 -144
- package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +0 -100
- package/skills/a2h-app-migrate/test/test_run_dir.mjs +0 -315
- package/skills/a2h-app-migrate/test/test_skill_doc.mjs +0 -133
- package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +0 -133
- package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +0 -158
- package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +0 -181
- package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +0 -76
- package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +0 -53
- package/skills/a2h-app-migrate/test/test_ui_batch_gate.mjs +0 -226
- package/skills/a2h-app-migrate/test/test_uniapp_preflight.mjs +0 -83
- package/skills/a2h-app-migrate/test/test_utg_dirs.mjs +0 -39
- package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +0 -168
- package/skills/a2h-app-migrate/test/test_validate_races.mjs +0 -50
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/build.gradle +0 -11
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/AndroidManifest.xml +0 -12
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/MainActivity.kt +0 -8
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/NotesStore.kt +0 -17
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/build.gradle +0 -3
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/settings.gradle +0 -1
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/AppScope/app.json5 +0 -8
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/build-profile.json5 +0 -14
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/build-profile.json5 +0 -7
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/oh-package.json5 +0 -1
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/src/main/ets/utils/Format.ets +0 -3
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/build-profile.json5 +0 -7
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/oh-package.json5 +0 -1
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/src/main/ets/pages/Home.ets +0 -3
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/build-profile.json5 +0 -7
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/oh-package.json5 +0 -1
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/src/main/ets/engine/SyncEngine.ets +0 -3
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/hvigorfile.ts +0 -1
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/oh-package.json5 +0 -1
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/build-profile.json5 +0 -7
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/oh-package.json5 +0 -9
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/src/main/ets/pages/Index.ets +0 -7
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/App.vue +0 -10
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/manifest.json +0 -6
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages/index/index.vue +0 -16
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages.json +0 -5
- package/skills/a2h-arch-generate/scripts/tests/e2e/run_e2e.mjs +0 -548
- package/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +0 -1122
- package/skills/a2h-arch-generate/scripts/tests/test_cleanup.mjs +0 -191
- package/skills/a2h-arch-generate/scripts/tests/test_console_encoding.mjs +0 -52
- package/skills/a2h-arch-generate/scripts/tests/test_git_root.mjs +0 -34
- package/skills/a2h-arch-generate/scripts/tests/test_router.mjs +0 -138
- package/skills/a2h-arkts-logic-coder/scripts/check_module_scope.ts +0 -224
- package/skills/a2h-batch-ui-align/flowchart.html +0 -271
- package/skills/a2h-batch-ui-align/references/mvvm/@Link/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -648
- package/skills/a2h-batch-ui-align/references/mvvm/@Observed/350/243/205/351/245/260/345/231/250/345/222/214@ObjectLink/350/243/205/351/245/260/345/231/250/357/274/232/345/265/214/345/245/227/347/261/273/345/257/271/350/261/241/345/261/236/346/200/247/345/217/230/345/214/226.md +0 -2089
- package/skills/a2h-batch-ui-align/references/mvvm/@Prop/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/215/225/345/220/221/345/220/214/346/255/245.md +0 -1033
- package/skills/a2h-batch-ui-align/references/mvvm/@Provide/350/243/205/351/245/260/345/231/250/345/222/214@Consume/350/243/205/351/245/260/345/231/250/357/274/232/344/270/216/345/220/216/344/273/243/347/273/204/344/273/266/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -1183
- package/skills/a2h-batch-ui-align/references/mvvm/@State/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/347/212/266/346/200/201.md +0 -576
- package/skills/a2h-batch-ui-align/references/mvvm/@Track/350/243/205/351/245/260/345/231/250/357/274/232class/345/257/271/350/261/241/345/261/236/346/200/247/347/272/247/346/233/264/346/226/260.md +0 -297
- package/skills/a2h-batch-ui-align/references/mvvm/@Watch/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/346/233/264/346/224/271/351/200/232/347/237/245.md +0 -395
- package/skills/a2h-batch-ui-align/references/mvvm/AppStorage/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200/347/232/204UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -903
- package/skills/a2h-batch-ui-align/references/mvvm/Environment/357/274/232/350/256/276/345/244/207/347/216/257/345/242/203/346/237/245/350/257/242.md +0 -106
- package/skills/a2h-batch-ui-align/references/mvvm/LocalStorage/357/274/232/351/241/265/351/235/242/347/272/247UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -1178
- package/skills/a2h-batch-ui-align/references/mvvm/MVVM/346/250/241/345/274/217/357/274/210V1/357/274/211.md +0 -911
- package/skills/a2h-batch-ui-align/references/mvvm/PersistentStorage/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +0 -355
- package/skills/a2h-batch-ui-align/references/mvvm//347/256/241/347/220/206/345/272/224/347/224/250/346/213/245/346/234/211/347/232/204/347/212/266/346/200/201/346/246/202/350/277/260.md +0 -11
- package/skills/a2h-batch-ui-align/references/mvvm-v2/!!/350/257/255/346/263/225/357/274/232/345/217/214/345/220/221/347/273/221/345/256/232.md +0 -206
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Computed/350/243/205/351/245/260/345/231/250/357/274/232/350/256/241/347/256/227/345/261/236/346/200/247.md +0 -373
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Event/350/243/205/351/245/260/345/231/250/357/274/232/350/247/204/350/214/203/347/273/204/344/273/266/350/276/223/345/207/272.md +0 -158
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Local/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/351/203/250/347/212/266/346/200/201.md +0 -750
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Monitor/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/344/277/256/346/224/271/345/274/202/346/255/245/347/233/221/345/220/254.md +0 -1704
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@ObservedV2/350/243/205/351/245/260/345/231/250/345/222/214@Trace/350/243/205/351/245/260/345/231/250/357/274/232/347/261/273/345/261/236/346/200/247/345/217/230/345/214/226/350/247/202/346/265/213.md +0 -1012
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Once/350/243/205/351/245/260/345/231/250/357/274/232/345/210/235/345/247/213/345/214/226/345/220/214/346/255/245/344/270/200/346/254/241.md +0 -164
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Param/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/244/226/351/203/250/350/276/223/345/205/245.md +0 -840
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Provider/350/243/205/351/245/260/345/231/250/345/222/214@Consumer/350/243/205/351/245/260/345/231/250/357/274/232/350/267/250/347/273/204/344/273/266/345/261/202/347/272/247/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -856
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Type/350/243/205/351/245/260/345/231/250/357/274/232/346/240/207/350/256/260/347/261/273/345/261/236/346/200/247/347/232/204/347/261/273/345/236/213.md +0 -83
- package/skills/a2h-batch-ui-align/references/mvvm-v2/AppStorageV2/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -294
- package/skills/a2h-batch-ui-align/references/mvvm-v2/MVVM/346/250/241/345/274/217/357/274/210V2/357/274/211.md +0 -1407
- package/skills/a2h-batch-ui-align/references/mvvm-v2/PersistenceV2/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +0 -1220
- package/skills/a2h-batch-ui-align/references/mvvm-v2/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +0 -47
- package/skills/a2h-batch-ui-align/references/mvvm-v2/_/350/243/205/351/245/260/345/231/250/351/200/237/346/237/245.md +0 -133
- package/skills/a2h-batch-ui-align/references/mvvm-v2//347/212/266/346/200/201/347/256/241/347/220/206V1/345/220/221V2/350/277/201/347/247/273/344/270/216/346/267/267/347/224/250/346/214/207/345/257/274.md +0 -840
- package/skills/a2h-batch-ui-align/scripts/tests/agent_cli.test.mjs +0 -217
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_align_tint.test.mjs +0 -253
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_canvas_pct.test.mjs +0 -312
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_fidelity.test.mjs +0 -241
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +0 -365
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_review_fixes.test.mjs +0 -298
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rules.test.mjs +0 -365
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_shell.test.mjs +0 -91
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +0 -473
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +0 -356
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_scope.test.mjs +0 -290
- package/skills/a2h-batch-ui-align/scripts/tests/color_utils_asset.test.mjs +0 -74
- package/skills/a2h-batch-ui-align/scripts/tests/export_scroll_states.test.mjs +0 -31
- package/skills/a2h-batch-ui-align/scripts/tests/export_ui_info.test.mjs +0 -564
- package/skills/a2h-batch-ui-align/scripts/tests/generate_pages_json.test.mjs +0 -123
- package/skills/a2h-batch-ui-align/scripts/tests/group_commit.test.mjs +0 -126
- package/skills/a2h-batch-ui-align/scripts/tests/group_pack.test.mjs +0 -241
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +0 -1451
- package/skills/a2h-batch-ui-align/scripts/tests/group_watch.test.mjs +0 -215
- package/skills/a2h-batch-ui-align/scripts/tests/harmony_index.test.mjs +0 -95
- package/skills/a2h-batch-ui-align/scripts/tests/host_env.test.mjs +0 -115
- package/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +0 -170
- package/skills/a2h-batch-ui-align/scripts/tests/occlusion.test.mjs +0 -102
- package/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +0 -244
- package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +0 -166
- package/skills/a2h-batch-ui-align/scripts/tests/test_bfs_exit.ts +0 -49
- package/skills/a2h-batch-ui-align/scripts/tests/text_color_diff.test.mjs +0 -219
- package/skills/a2h-dashboard-render/references//347/234/213/346/235/277/350/257/264/346/230/216.md +0 -83
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/broken.xml +0 -1
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/expected.json +0 -156
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/hmos.json +0 -1
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/list.xml +0 -1
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/nested_scroll.xml +0 -1
- package/skills/a2h-dashboard-render/test/test_artifact_contract.mjs +0 -170
- package/skills/a2h-dashboard-render/test/test_cli_check_registry.mjs +0 -99
- package/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +0 -182
- package/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +0 -64
- package/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +0 -1172
- package/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +0 -251
- package/skills/a2h-dashboard-render/test/test_dashboard_ui_pipeline.mjs +0 -81
- package/skills/a2h-dashboard-render/test/test_device_capture_env.mjs +0 -115
- package/skills/a2h-dashboard-render/test/test_device_capture_policy.mjs +0 -303
- package/skills/a2h-dashboard-render/test/test_page_capture.mjs +0 -147
- package/skills/a2h-dashboard-render/test/test_usage_readers.mjs +0 -444
- package/skills/a2h-module-semantic-docs/test/golden/module_structure.json +0 -187
- package/skills/a2h-module-semantic-docs/test/golden/module_understanding.json +0 -351
- package/skills/a2h-module-semantic-docs/test/golden/module_update_plan.json +0 -495
- package/skills/a2h-module-semantic-docs/test/golden/project_directory_structure.json +0 -157
- package/skills/a2h-module-semantic-docs/test/test_scan_and_commit.mjs +0 -388
- package/skills/a2h-resource-convert/scripts/tests/adaptive_icon.test.mjs +0 -182
- package/skills/a2h-resource-convert/scripts/tests/app_identity.test.mjs +0 -206
- package/skills/a2h-spec-design/test/golden/inspect_happy.json +0 -20
- package/skills/a2h-spec-design/test/golden/move_design.md +0 -18
- package/skills/a2h-spec-design/test/golden/move_design_crlf.md +0 -18
- package/skills/a2h-spec-design/test/golden/move_spec.md +0 -7
- package/skills/a2h-spec-design/test/golden/resolve_cases.json +0 -36
- package/skills/a2h-spec-design/test/golden/validate_issue_file.md +0 -12
- package/skills/a2h-spec-design/test/golden/validate_issues.json +0 -57
- package/skills/a2h-spec-design/test/test_spec_design_scripts.mjs +0 -381
- package/skills/a2h-spec-design-pipeline/scripts/inflight.mjs +0 -944
- package/skills/a2h-spec-design-pipeline/scripts/lib/bgcli.mjs +0 -95
- package/skills/a2h-spec-design-pipeline/scripts/reconcile.mjs +0 -218
- package/skills/a2h-spec-design-pipeline/scripts/test_bgcli.mjs +0 -64
- package/skills/a2h-spec-design-pipeline/scripts/test_inflight.mjs +0 -452
- package/skills/a2h-spec-design-pipeline/scripts/test_reconcile.mjs +0 -182
- package/skills/a2h-spec-design-pipeline/scripts/test_watchdog.mjs +0 -289
- package/skills/a2h-spec-design-pipeline/scripts/watchdog.mjs +0 -441
- package/skills/a2h-spec-generate/scripts/reqgen/test/control-fact-join.test.ts +0 -50
- package/skills/a2h-spec-generate/scripts/reqgen/test/control-name-uniapp.test.ts +0 -75
- package/skills/a2h-spec-generate/scripts/reqgen/test/cross-area-anchor.test.ts +0 -256
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-area-facts.test.ts +0 -576
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +0 -290
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +0 -1323
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +0 -574
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-scope.test.ts +0 -339
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-selfcheck.test.ts +0 -831
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +0 -548
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-cli-blockers.test.ts +0 -117
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-scope.test.ts +0 -396
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-seeds.test.ts +0 -175
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-task-contract.test.ts +0 -298
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-v4.test.ts +0 -1061
- package/skills/a2h-spec-generate/scripts/reqgen/test/specgen-completeness.test.ts +0 -286
- package/skills/a2h-spec-generate/scripts/reqgen/test/stagem-stored-path.test.ts +0 -25
- package/skills/a2h-spec-generate/scripts/reqgen/test/uniapp-scanner.test.ts +0 -159
- package/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +0 -632
- package/skills/a2h-spec-generate/test/check-spec.test.ts +0 -200
- package/skills/a2h-spec-generate/test/collect-specs.test.mjs +0 -538
- package/skills/a2h-spec-generate/test/detect-project.test.mjs +0 -37
- package/skills/a2h-spec-generate/test/ensure-index.test.mjs +0 -45
- package/skills/a2h-spec-generate/test/feature-stem.test.mjs +0 -147
- package/skills/a2h-spec-generate/test/fixtures/android/app/src/main/AndroidManifest.xml +0 -3
- package/skills/a2h-spec-generate/test/fixtures/android/build.gradle +0 -3
- package/skills/a2h-spec-generate/test/fixtures/android/settings.gradle +0 -3
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/package.json +0 -9
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/App.vue +0 -8
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/components/MyCard.vue +0 -9
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/feature/editor/index.vue +0 -1
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/main.ts +0 -6
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/manifest.json +0 -4
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/detail/index.vue +0 -1
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/home/index.vue +0 -33
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/settings/index.vue +0 -1
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages.json +0 -23
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/services/items.ts +0 -3
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/tsconfig.json +0 -8
- package/skills/a2h-spec-generate/test/fixtures/unknown/README.txt +0 -1
- package/skills/a2h-spec-generate/test/inspect-uniapp.test.mjs +0 -54
- package/skills/a2h-spec-generate/test/publication-verdict.test.mjs +0 -157
- package/skills/a2h-spec-generate/test/publish-specs.test.mjs +0 -282
- package/skills/a2h-spec-generate/test/render-tasks.test.mjs +0 -593
- package/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +0 -66
- package/skills/a2h-utg-explorer/scripts/tests/chain.test.mjs +0 -45
- package/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +0 -243
- package/skills/a2h-utg-explorer/scripts/tests/coverage_rules.test.mjs +0 -104
- package/skills/a2h-utg-explorer/scripts/tests/d_prereqs.test.mjs +0 -223
- package/skills/a2h-utg-explorer/scripts/tests/device_health.test.mjs +0 -88
- package/skills/a2h-utg-explorer/scripts/tests/device_lock_retry.test.mjs +0 -187
- package/skills/a2h-utg-explorer/scripts/tests/direct_launch.test.mjs +0 -130
- package/skills/a2h-utg-explorer/scripts/tests/explorer_review_fixes.test.mjs +0 -136
- package/skills/a2h-utg-explorer/scripts/tests/final_utg.test.mjs +0 -135
- package/skills/a2h-utg-explorer/scripts/tests/first_round_phases.test.mjs +0 -16
- package/skills/a2h-utg-explorer/scripts/tests/generalization_fixes.test.mjs +0 -251
- package/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +0 -42
- package/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +0 -162
- package/skills/a2h-utg-explorer/scripts/tests/node_coverage.test.mjs +0 -193
- package/skills/a2h-utg-explorer/scripts/tests/overflow_prefix.test.mjs +0 -204
- package/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +0 -355
- package/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +0 -240
- package/skills/a2h-utg-explorer/scripts/tests/recover.test.mjs +0 -212
- package/skills/a2h-utg-explorer/scripts/tests/recover_b.test.mjs +0 -173
- package/skills/a2h-utg-explorer/scripts/tests/recover_d.test.mjs +0 -280
- package/skills/a2h-utg-explorer/scripts/tests/review_fixes.test.mjs +0 -213
- package/skills/a2h-utg-explorer/scripts/tests/robustness_fixes.test.mjs +0 -345
- package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +0 -453
- package/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +0 -131
- package/skills/a2h-utg-explorer/scripts/tests/scope.test.mjs +0 -229
- package/skills/a2h-utg-explorer/scripts/tests/scroll_sweep.test.mjs +0 -336
- package/skills/a2h-utg-explorer/scripts/tests/semantics.test.mjs +0 -102
- package/skills/a2h-utg-explorer/scripts/tests/state_ambiguity.test.mjs +0 -92
- package/skills/a2h-utg-explorer/scripts/tests/twin_opener.test.mjs +0 -119
- package/skills/a2h-utg-explorer/scripts/tests/u2_backend.test.mjs +0 -346
- package/skills/a2h-utg-explorer/scripts/tests/ui_state_anchors.test.mjs +0 -112
- package/skills/a2h-utg-explorer/scripts/tests/variant_strings.test.mjs +0 -63
- package/skills/a2h-utg-explorer/scripts/tests/worklist_parts.test.mjs +0 -24
- package/skills/a2h-utg-static/scripts/tests/_zipw.mjs +0 -28
- package/skills/a2h-utg-static/scripts/tests/probe_autoload.mjs +0 -108
- package/skills/a2h-utg-static/scripts/tests/probe_layout_fragments.mjs +0 -90
- package/skills/a2h-utg-static/scripts/tests/probe_unknown_scope.mjs +0 -61
- package/skills/a2h-utg-static/scripts/tests/regression_matrix.mjs +0 -1261
- package/skills/a2h-utg-static/scripts/tests/test_activity_alias_launcher.mjs +0 -90
- package/skills/a2h-utg-static/scripts/tests/test_activity_supertype_chain.mjs +0 -106
- package/skills/a2h-utg-static/scripts/tests/test_bottom_sheet_container.mjs +0 -58
- package/skills/a2h-utg-static/scripts/tests/test_branch_guard.mjs +0 -19
- package/skills/a2h-utg-static/scripts/tests/test_callee_string_default.mjs +0 -30
- package/skills/a2h-utg-static/scripts/tests/test_carry_answers.mjs +0 -103
- package/skills/a2h-utg-static/scripts/tests/test_chrome_tokens.mjs +0 -60
- package/skills/a2h-utg-static/scripts/tests/test_commented_out_trigger.mjs +0 -111
- package/skills/a2h-utg-static/scripts/tests/test_commit_scope.mjs +0 -113
- package/skills/a2h-utg-static/scripts/tests/test_compose_file_private_route.mjs +0 -117
- package/skills/a2h-utg-static/scripts/tests/test_compose_nested_graph.mjs +0 -166
- package/skills/a2h-utg-static/scripts/tests/test_compose_route_holder_collision.mjs +0 -112
- package/skills/a2h-utg-static/scripts/tests/test_compose_vm_nav.mjs +0 -289
- package/skills/a2h-utg-static/scripts/tests/test_custom_source_root.mjs +0 -71
- package/skills/a2h-utg-static/scripts/tests/test_defensive_null_guard.mjs +0 -77
- package/skills/a2h-utg-static/scripts/tests/test_dialog_orphan_entries.mjs +0 -99
- package/skills/a2h-utg-static/scripts/tests/test_dialog_page_owner.mjs +0 -69
- package/skills/a2h-utg-static/scripts/tests/test_dialogshow_builder_forms.mjs +0 -96
- package/skills/a2h-utg-static/scripts/tests/test_dialogshow_java_factory.mjs +0 -37
- package/skills/a2h-utg-static/scripts/tests/test_disabled_guard.mjs +0 -42
- package/skills/a2h-utg-static/scripts/tests/test_drawer_panel_gesture.mjs +0 -140
- package/skills/a2h-utg-static/scripts/tests/test_edge_dedupe_by_gesture.mjs +0 -111
- package/skills/a2h-utg-static/scripts/tests/test_edge_provenance_lint.mjs +0 -70
- package/skills/a2h-utg-static/scripts/tests/test_enclosing_gesture.mjs +0 -69
- package/skills/a2h-utg-static/scripts/tests/test_external_surface_roots.mjs +0 -43
- package/skills/a2h-utg-static/scripts/tests/test_find_package_indirect.mjs +0 -67
- package/skills/a2h-utg-static/scripts/tests/test_forwarding_wrapper.mjs +0 -38
- package/skills/a2h-utg-static/scripts/tests/test_fragment_containment.mjs +0 -85
- package/skills/a2h-utg-static/scripts/tests/test_fragment_helper_trigger.mjs +0 -92
- package/skills/a2h-utg-static/scripts/tests/test_graph.mjs +0 -55
- package/skills/a2h-utg-static/scripts/tests/test_guard_clause.mjs +0 -86
- package/skills/a2h-utg-static/scripts/tests/test_hint_language.mjs +0 -119
- package/skills/a2h-utg-static/scripts/tests/test_host_kind_by_chain.mjs +0 -68
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_bundle_attribution.mjs +0 -74
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_bundled_pages.mjs +0 -181
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +0 -293
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_title_renders.mjs +0 -118
- package/skills/a2h-utg-static/scripts/tests/test_interaction_sites.mjs +0 -272
- package/skills/a2h-utg-static/scripts/tests/test_item_data_instance.mjs +0 -51
- package/skills/a2h-utg-static/scripts/tests/test_kotlin_fn_spans.mjs +0 -69
- package/skills/a2h-utg-static/scripts/tests/test_label_accessor_forms.mjs +0 -187
- package/skills/a2h-utg-static/scripts/tests/test_label_source.mjs +0 -70
- package/skills/a2h-utg-static/scripts/tests/test_launch_intent_guard.mjs +0 -67
- package/skills/a2h-utg-static/scripts/tests/test_layout_declared_fragment.mjs +0 -103
- package/skills/a2h-utg-static/scripts/tests/test_listener_call_forms.mjs +0 -79
- package/skills/a2h-utg-static/scripts/tests/test_listener_receiver_binding.mjs +0 -47
- package/skills/a2h-utg-static/scripts/tests/test_manifest_exported_default.mjs +0 -40
- package/skills/a2h-utg-static/scripts/tests/test_manifest_filters_modules.mjs +0 -84
- package/skills/a2h-utg-static/scripts/tests/test_manifest_srcfile.mjs +0 -68
- package/skills/a2h-utg-static/scripts/tests/test_mode_and_cb_param.mjs +0 -172
- package/skills/a2h-utg-static/scripts/tests/test_module_namespace.mjs +0 -33
- package/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +0 -44
- package/skills/a2h-utg-static/scripts/tests/test_multiple_entry_contracts.mjs +0 -80
- package/skills/a2h-utg-static/scripts/tests/test_nav_graph_xml.mjs +0 -35
- package/skills/a2h-utg-static/scripts/tests/test_nl_hint_grammar.mjs +0 -42
- package/skills/a2h-utg-static/scripts/tests/test_nl_hints_gate.mjs +0 -85
- package/skills/a2h-utg-static/scripts/tests/test_node_id_collision.mjs +0 -57
- package/skills/a2h-utg-static/scripts/tests/test_non_gesture_step_flag.mjs +0 -62
- package/skills/a2h-utg-static/scripts/tests/test_out_of_scope_and_settings.mjs +0 -72
- package/skills/a2h-utg-static/scripts/tests/test_overload_and_climb.mjs +0 -86
- package/skills/a2h-utg-static/scripts/tests/test_pager_page_source.mjs +0 -78
- package/skills/a2h-utg-static/scripts/tests/test_pager_position_zero.mjs +0 -65
- package/skills/a2h-utg-static/scripts/tests/test_pager_variant_guard.mjs +0 -172
- package/skills/a2h-utg-static/scripts/tests/test_pipeline_llm_phases.mjs +0 -107
- package/skills/a2h-utg-static/scripts/tests/test_plain_dialog_nodes.mjs +0 -167
- package/skills/a2h-utg-static/scripts/tests/test_plaindialog_shared_anchor.mjs +0 -117
- package/skills/a2h-utg-static/scripts/tests/test_preference_click_nav.mjs +0 -98
- package/skills/a2h-utg-static/scripts/tests/test_preference_host_binding.mjs +0 -87
- package/skills/a2h-utg-static/scripts/tests/test_preference_nesting.mjs +0 -183
- package/skills/a2h-utg-static/scripts/tests/test_preference_widgets.mjs +0 -48
- package/skills/a2h-utg-static/scripts/tests/test_read_text_crlf.mjs +0 -41
- package/skills/a2h-utg-static/scripts/tests/test_resolver_tier_parity.mjs +0 -126
- package/skills/a2h-utg-static/scripts/tests/test_result_launcher.mjs +0 -142
- package/skills/a2h-utg-static/scripts/tests/test_review_fixes.mjs +0 -135
- package/skills/a2h-utg-static/scripts/tests/test_route_token_words.mjs +0 -66
- package/skills/a2h-utg-static/scripts/tests/test_same_name_decl_scope.mjs +0 -236
- package/skills/a2h-utg-static/scripts/tests/test_scope_utils.mjs +0 -85
- package/skills/a2h-utg-static/scripts/tests/test_sealed_dialog_state.mjs +0 -148
- package/skills/a2h-utg-static/scripts/tests/test_shared_overlay_split.mjs +0 -63
- package/skills/a2h-utg-static/scripts/tests/test_slug_parity.mjs +0 -58
- package/skills/a2h-utg-static/scripts/tests/test_starter_node_id.mjs +0 -41
- package/skills/a2h-utg-static/scripts/tests/test_state_guard_arity.mjs +0 -109
- package/skills/a2h-utg-static/scripts/tests/test_state_guard_commented_candidates.mjs +0 -68
- package/skills/a2h-utg-static/scripts/tests/test_state_guard_model_gates.mjs +0 -127
- package/skills/a2h-utg-static/scripts/tests/test_state_specific_hop.mjs +0 -130
- package/skills/a2h-utg-static/scripts/tests/test_synthetic_label_identity.mjs +0 -51
- package/skills/a2h-utg-static/scripts/tests/test_template_method_layout.mjs +0 -81
- package/skills/a2h-utg-static/scripts/tests/test_template_title.mjs +0 -58
- package/skills/a2h-utg-static/scripts/tests/test_trigger_id_spelling.mjs +0 -68
- package/skills/a2h-utg-static/scripts/tests/test_ui_elements_action_override.mjs +0 -91
- package/skills/a2h-utg-static/scripts/tests/test_ui_elements_flow_filter.mjs +0 -110
- package/skills/a2h-utg-static/scripts/tests/test_ui_elements_nl_hint_key.mjs +0 -89
- package/skills/a2h-utg-static/scripts/tests/test_uiless_host_fold.mjs +0 -98
- package/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +0 -231
- package/skills/a2h-utg-static/scripts/tests/test_view_click_refs.mjs +0 -104
- package/skills/a2h-utg-static/scripts/tests/test_view_id_label.mjs +0 -69
- package/skills/a2h-utg-static/scripts/tests/test_view_interactions.mjs +0 -346
- package/skills/a2h-utg-static/scripts/tests/test_viewpage_nav.mjs +0 -340
- package/skills/a2h-utg-static/scripts/tests/test_vm_nav_helper_navigate.mjs +0 -98
- package/skills/a2h-utg-static/scripts/tests/test_widget_class_scope.mjs +0 -92
- package/skills/a2h-utg-static/scripts/tests/test_window_nav_kotlin.mjs +0 -158
- package/skills/a2h-utg-static/scripts/tests/test_worklist_parts.mjs +0 -65
|
@@ -6,16 +6,117 @@ applied at wave end. `SKILL.md` carries the navigation summary; this file is the
|
|
|
6
6
|
|
|
7
7
|
### B2 — Serial merge queue, interleaved with B1 (the only git-writer moment)
|
|
8
8
|
|
|
9
|
-
B2 is not a phase that starts after B1 — it is a **merge queue** the B1 event loop drains while coding
|
|
9
|
+
B2 is not a phase that starts after B1 — it is a **merge queue** the B1 event loop drains while coding
|
|
10
|
+
continues. A group enters the queue at its coding-complete event (`queue-merge <G>` only when its last
|
|
11
|
+
non-terminal chunk completed); the queue is processed strictly serially (main is the single git-writer),
|
|
12
|
+
popped in coding-completion order (same-turn ties and resume use group order), and at most one merge —
|
|
13
|
+
normal or resolver-backed — is in progress at any moment. A normal merge is an orchestrator shell command
|
|
14
|
+
— same-turn. A conflict resolution is a **background** sub-agent (the ladder below) — only the merge
|
|
15
|
+
queue is parked; the resolver's completion event releases it. `dequeue-merge <G>` drops a queued item;
|
|
16
|
+
`group-merge <G>` is written **only after** the landing commit exists; `group-fail <G>` is the fail-soft
|
|
17
|
+
exit.
|
|
10
18
|
|
|
11
|
-
0. **Actual-write audit** (deterministic, observability — never a stop): runs **once per wave, when
|
|
19
|
+
0. **Actual-write audit** (deterministic, observability — never a stop): runs **once per wave, when
|
|
20
|
+
B1⇄B2 finish** — after the merge queue drains (every member `merged`/`failed`), before wiring
|
|
21
|
+
application — `node <skill-dir>/scripts/audit_claims.ts <HMOS> --wave <K> --base <WAVE_BASE>`. Each
|
|
22
|
+
group is audited through its recorded coder snapshot `state.groups[G].audit = { base, tip }` (base =
|
|
23
|
+
the group's coding base — `WAVE_BASE`, the hop-b reset HEAD of a re-coded group, or the release-fork
|
|
24
|
+
HEAD (`coding_base`) of a held-then-released member; tip freezes the branch before any hop-a resolver
|
|
25
|
+
merge can mutate it): `git diff --name-only base tip` → coder files, wiring-surface edits
|
|
26
|
+
(wiring-mode violations), empty diffs, and same-wave groups whose actual write sets intersect. For a
|
|
27
|
+
hop-a group the audit additionally reports `resolver_edits` / `resolver_registry_edits` — hand-written
|
|
28
|
+
post-coder work on the first-parent chain above the recorded `tip`; per merge in that chain, a file
|
|
29
|
+
counts as hand-written only when it differs from the auto-merge of the parents **and** from both
|
|
30
|
+
parents (a clean auto-merge and a verbatim take are not hand-written). A group without a recorded pair
|
|
31
|
+
falls back to `WAVE_BASE..specpipe/g<G>r<wtGen>`, with each group's `wtGen` read from the dispatch
|
|
32
|
+
ledger (one generation per group; `--wt-gen <n>` is the no-ledger fallback; `--branch` wins) — lower confidence
|
|
33
|
+
if the branch was ladder-mutated. The recorded pairs make the audit independent of merge/resolver
|
|
34
|
+
timing. Findings are data: registry edits, resolver registry edits, and overlap files flow into B4's
|
|
35
|
+
merged findings (the fix list); cross-group actual overlaps are post-hoc observation of the conflicts
|
|
36
|
+
B2's ladder already handled. Nonzero exit = malformed inputs — record and continue without audit data.
|
|
12
37
|
|
|
13
38
|
Then, for each group popped from the queue:
|
|
14
|
-
1.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
39
|
+
1. **Landing.** The group's branch is the **current generation** recorded in the ledger group
|
|
40
|
+
(`state.groups[G].branch`, `specpipe/g<G>r<wtGen>`). First check
|
|
41
|
+
`node <skill-dir>/scripts/branch_landed.ts <HMOS> <G> --wt-gen <wtGen>`; if `landed:true`, the branch
|
|
42
|
+
is already on main (a crash between the merge and the state write) — record its `pre..range`, set the
|
|
43
|
+
group `merged`, and `group-merge <G>` without re-merging. Otherwise `PRE = git -C <HMOS> rev-parse
|
|
44
|
+
HEAD`, then `git -C <HMOS> merge --no-ff --no-edit specpipe/g<G>r<wtGen>` — **every landing is a
|
|
45
|
+
main-side merge commit** (first parent = `PRE`); no landing ever fast-forwards (a fast-forward would
|
|
46
|
+
put the branch's own commit on main with an inverted parent order, poisoning both the range rule and
|
|
47
|
+
main's first-parent line). Non-overlapping hunks auto-merge; later groups three-way-merge against main
|
|
48
|
+
(base = `WAVE_BASE`). Overlapping edits between same-wave groups are **expected** — the ladder below
|
|
49
|
+
handles them. **Record the group's net-change range for B4 as `PRE..<merge-commit>`**
|
|
50
|
+
(already-up-to-date, no commit created → record `PRE..PRE`, an empty range). Never hand B4
|
|
51
|
+
`WAVE_BASE..<main head after the merge>` — that tree contains all earlier groups' changes. On landing
|
|
52
|
+
success (including a conflict-resolved merge), set the group's specs to `stage: "B"`, set
|
|
53
|
+
`state.groups[G].status = "merged"`, then `dispatch.mjs <HMOS> group-merge <G>`.
|
|
54
|
+
|
|
55
|
+
2. **On conflict — the recovery ladder (per group, max 2 hops then fail-soft; hop counters are
|
|
56
|
+
conversation-transient — a crash restart re-arms the ladder, position re-derives from the ledger +
|
|
57
|
+
git, never from remembered hops):**
|
|
58
|
+
a. **Conflict-resolve re-dispatch (1×, background):** `git -C <HMOS> merge --abort`; inside the
|
|
59
|
+
group's worktree run `git merge <main HEAD>` (abort a leftover in-progress worktree merge first —
|
|
60
|
+
a crashed resolver's); then claim the resolver:
|
|
61
|
+
`dispatch.mjs <HMOS> claim resolver:g<G>` → `intent resolver:g<G> --expect-gen <claimGen> --token
|
|
62
|
+
<token>` → dispatch a general-purpose sub-agent **in background** → `confirm resolver:g<G>
|
|
63
|
+
--expect-gen <claimGen> --token <token> --session <sessionID>` when the call returns. The prompt
|
|
64
|
+
carries the `unitId`, the conflicted file list (`git diff --name-only --diff-filter=U`), the marked
|
|
65
|
+
files, the absolute paths of both groups' existing chunk design files (one per line; the resolver
|
|
66
|
+
reads only those relevant to the conflicted files), **the worktree path as its exclusive working
|
|
67
|
+
directory (never touch main)**, **the wiring forbidden list in the same compact form as B1's chunk
|
|
68
|
+
dispatch** (wiring-surface files are never edited — route registrations go through the group's
|
|
69
|
+
wiring.md rows), **the worktree HomeGraph rule — only when the dispatcher determined this worktree's
|
|
70
|
+
index is usable (`ensure_wt_index.ts` exited 0 and `ENGINE_MODE` is not `off`); otherwise
|
|
71
|
+
grep/read** (`homegraph explore -p <worktree>` only — the worktree's own index is read-only; never
|
|
72
|
+
`homegraph init`/`sync`/`index`, and never `<HMOS>`'s index, which answers from another branch), the
|
|
73
|
+
instruction "在保留另一组已合并场景的前提下,把本组场景落到当前代码上", and a required compact-JSON
|
|
74
|
+
return (`{ "ok": true, "unitId": "resolver:g<G>", "merge_commit": "<hash>" }`). The resolver works
|
|
75
|
+
**only in the group's worktree**; main is untouched until the post-completion landing (step 1).
|
|
76
|
+
Evidence: run `dispatch.mjs <HMOS> evidence resolver:g<G>` (read-only; exit 0 = `completed`, 1 =
|
|
77
|
+
not). `completed` → `artifact` + `submit(completed)`; `failed` (a fresh `resolver/attempt_<n>/issues.md`)
|
|
78
|
+
→ `submit(failed)`; `invalid` → `reject --reason evidence-invalid`. On success,
|
|
79
|
+
land the merge (step 1), then `release resolver:g<G> --expect-gen <claimGen> --token <token>
|
|
80
|
+
--outcome merged` and `group-merge <G>` — the landing must exist before `group-merge`, which also
|
|
81
|
+
removes the group's older-generation worktrees/branches (`cleaned` in its output) and leaves the
|
|
82
|
+
current generation for the audit. A failed
|
|
83
|
+
resolver with `contentAttempts < 2` takes a `retry` and hop (a) re-dispatch; otherwise advance to
|
|
84
|
+
hop (b). An orphaned/closed resolver that can never land takes hop (b) directly, never hop (a):
|
|
85
|
+
`git -C <worktree> merge --abort`, then `dequeue-merge <G>` before the reset.
|
|
86
|
+
b. **Group re-code (1×):** `dequeue-merge <G>`; if the failed resolver left a worktree merge,
|
|
87
|
+
`git -C <worktree> merge --abort`. Choose the generation mode by the trigger:
|
|
88
|
+
- **content failure** → `group-reset <G> --mode reuse --base <current main HEAD> --reason hop-b`
|
|
89
|
+
(the in-place `reset --hard`; `wtGen` unchanged), then `ensure_wt_index.ts <HMOS>
|
|
90
|
+
WT/g<G>r<wtGen> --sync` (the reset moved the code under the index; skip when `ENGINE_MODE=off`).
|
|
91
|
+
- **orphaned/dead resolver** → `group-reset <G> --mode fresh --base <current main HEAD>
|
|
92
|
+
--reason hop-b --worktree <abs>/WT/g<G>r<next> --branch specpipe/g<G>r<next>`: the generation
|
|
93
|
+
fence creates the new generation and **leaves the old tree/branch in place** (`group-merge` and
|
|
94
|
+
C remove older generations); it fails with
|
|
95
|
+
`max-generations` when `wtGen+1 >= 3` (the generation budget is exhausted → hop (c)). Then build
|
|
96
|
+
the new generation's index (`ensure_wt_index.ts <HMOS> WT/g<G>r<next>`) before any coder starts.
|
|
97
|
+
In both modes run `stage_design_inputs.ts <HMOS> WT/g<G>r<n>` (idempotent) and reset the group's
|
|
98
|
+
state chunk rows and group status to `pending` (the ledger reset already did its side). Record
|
|
99
|
+
`state.groups[G].audit.base = <that HEAD>` (the `tip` is re-recorded when the re-code completes)
|
|
100
|
+
and re-run the chunks through the same event loop (claim → intent → dispatch → confirm; the design
|
|
101
|
+
is reused unless an issue file exists). The so-id resume rule covers the re-code's own commits if
|
|
102
|
+
it crashes midway. Exit 1 from `ensure_wt_index` → record `reason`/`detail` and continue; exit 0
|
|
103
|
+
with `reason:"sync_incomplete"` is a degraded refresh, never a re-dispatch trigger.
|
|
104
|
+
c. **Fail-soft:** `close resolver:g<G> --expect-gen <claimGen> --token <token> --reason
|
|
105
|
+
ladder-exhausted` (the `close` records the terminal reason), then `group-fail <G>` and continue with
|
|
106
|
+
the next group; list it in the final report (groups that depended on its code are flagged).
|
|
107
|
+
|
|
19
108
|
3. Every merge is followed by nothing yet — one build covers the whole wave (B3).
|
|
20
109
|
|
|
21
|
-
After every member is `merged` or `failed` and the merge queue is empty (the B2 step-0 audit has run
|
|
110
|
+
After every member is `merged` or `failed` and the merge queue is empty (the B2 step-0 audit has run
|
|
111
|
+
first): **apply wiring** — idempotently: skip the whole application when a `wiring` commit already exists
|
|
112
|
+
in `WAVE_BASE..HEAD` (`git log --oneline <WAVE_BASE>..HEAD --grep '^wiring$'`); per row, if the target
|
|
113
|
+
file already contains the row's key (route name / string key / entity name), skip that row and note it in
|
|
114
|
+
the wave log. For each group (in order), aggregate its chunks' `wiring.md` files
|
|
115
|
+
(`.hometrans/spec_group_<G>/chunk_<k>/wiring.md`, chunk order — the winning attempt's files are promoted
|
|
116
|
+
to `chunk_<k>/` on `release`, `resolver/` for a resolver) and mechanically apply the rows to the target
|
|
117
|
+
files (change types: routes / pages / permissions / dependencies / entities / symbol exports / abilities /
|
|
118
|
+
strings — the surface is `state.config.wiring_files`; lock files are skipped, the build regenerates
|
|
119
|
+
them). **Same-key check**: rows from different groups targeting the same file + same key → record as a
|
|
120
|
+
cross-group wiring conflict for the final report's manual follow-up list (do not block — the later row
|
|
121
|
+
wins; needs human adjudication). Then one commit `wiring`. If all wiring files are empty/absent, skip the
|
|
122
|
+
commit.
|
|
@@ -2,26 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
- `SKILL.md` — the orchestrator's contract (this skill's main document).
|
|
4
4
|
- `package.json` — declares the skill folder an ES-module package (`"type": "module"`), so the `.ts` scripts parse as ESM wherever the folder is installed — no dependence on the host project's package type.
|
|
5
|
-
- `scripts/plan_groups.ts` — grouping (one group per spec-file parent directory; group_id = the directory's basename, widened only when two parent dirs share a basename), group-level deps, scenario counting, chunk packing, merged-spec generation, state v2 seeding (deterministic; has tests).
|
|
5
|
+
- `scripts/plan_groups.ts` — grouping (one group per spec-file parent directory; group_id = the directory's basename, widened only when two parent dirs share a basename), group-level deps, scenario counting, chunk packing with per-chunk spec slices and design paths, merged-spec generation, plan v2 emission, state v2 seeding with seed cleanup of runtime design artifacts (deterministic; has tests).
|
|
6
6
|
- `scripts/resolve_wiring.ts` — three-tier wiring-surface derivation into `state.config.wiring_files` (single source of truth; deterministic; has tests).
|
|
7
|
-
- `scripts/git_baseline.ts` — I3 campaign-start baseline: gitignores `.hometrans/` + `.homegraph
|
|
8
|
-
- `scripts/
|
|
7
|
+
- `scripts/git_baseline.ts` — I3 campaign-start baseline: gitignores `.hometrans/` + `.homegraph/` (plus an in-repo custom `--design-dir`), and before the first wave commits an unborn-HEAD / dirty tree as `pre-campaign baseline` so W0 has a `WAVE_BASE` and a clean tree; no-op once a wave is assigned (deterministic; has tests).
|
|
8
|
+
- `scripts/stage_design_inputs.ts` — W0 and the deps release sweep: stages the semantic design docs (`project_design.md`, `database_design.md` / `preferences_design.md` when present, and per-module `module_design.md`) from `<HMOS>/.hometrans` into a worktree's `.hometrans`, so the coder's design step resolves them from the worktree; skips the runtime subtrees (`spec_design`, `dispatch`, `spec_pipeline_archive`, `spec_group_*`, `wave_*`) (deterministic; has tests).
|
|
9
|
+
- `scripts/ensure_wt_index.ts` — the worktree's own HomeGraph index, built at worktree creation (W0 for `ready` members, the deps release sweep for held ones; a resumable kept worktree or a hop-b reset is refreshed with `--sync`): `init` when none is local (a worktree inherits no `.homegraph/`; the main index is never borrowed — it answers from another branch, silently for the CLI), `index` (full rebuild) when the local index is not usable — empty/partial, or a corrupt db that makes `homegraph status --json` itself fail (`homegraph init` does nothing when the directory already holds an index db, so a leftover index needs `index`), `none` when usable, `sync` unconditionally with `--sync` (the engine's `pendingChanges` only counts uncommitted edits, so a commit- or reset-driven refresh must not be gated on it). Usable = local ∧ `lastIndexed` set ∧ `fileCount > 0` ∧ the engine finalized the last build (`index.state` `complete`/`partial`; `indexing` is the engine's "killed mid-index" marker and `failed` reported failure, so both are rebuilt; a missing state is a pre-marker engine and falls back to the content check). After EVERY failed attempt the index is re-read: a build that exits non-zero but leaves a complete index is accepted (and stops the retries); a failed refresh that leaves the previous usable index returns exit 0 with `reason: "sync_incomplete"` (the snapshot is stale — record it); otherwise only this worktree's own `.homegraph/` is removed - never `homegraph uninit` (which resolves upward and would delete an ancestor workspace index), never a symlink/junction (dangling included), never a plain file, and never a directory that holds tracked files (`.homegraph/.gitignore` is legitimately tracked in some repos). A timed-out first build or rebuild is a failure (exit 1; the next run rebuilds). On Windows the engine runs behind a cmd.exe shim and `spawnSync` kills only that shim, so the writer this call started (the PID in `<worktree>/.homegraph/homegraph.lock`) is reaped with the attempt's process tree; an index it never finalized reports `index.state: "indexing"` and the next run rebuilds it. A symlinked/junctioned `.homegraph/` — dangling included — is never followed or deleted (deterministic; has tests).
|
|
9
10
|
- `scripts/plan_waves.ts` — deterministic deps-aware backfill wave slicing (bump same-wave-dep candidates when a clean candidate can backfill, else hold in-wave for runtime dispatch-hold) with a flat fallback: a pool larger than one wave whose deps forecast exceeds 2× the width-bound ideal dispatch rounds slices pure group order with `mode: "flat"` (deps stop shaping concurrency; has tests).
|
|
10
11
|
- `scripts/deps_ready.ts` — dispatch-hold verdicts for a wave's pending members: `ready`/`held` per group-level deps (cycle edges ignored + recorded) plus the `released` (no-dispatch-yet) subset; a `mode: "flat"` wave yields `ready` for every pending member; read-only over plan + state + wave plan (deterministic; has tests).
|
|
11
|
-
- `scripts/branch_landed.ts` — the resume "merged" predicate: landed ⇔ a `--no-ff` merge on main's first-parent line has the branch tip as its second parent (a zero-commit branch is never landed, unlike `merge-base --is-ancestor`);
|
|
12
|
-
- `scripts/audit_claims.ts` — actual-write audit when B1⇄B2 finish (B2 step 0), on recorded per-group coder pairs: wiring-surface violations, resolver hand-edit violations, empty diffs, same-wave cross-group overlaps (deterministic; has tests).
|
|
13
|
-
- `scripts/
|
|
14
|
-
- `scripts/
|
|
15
|
-
- `scripts/
|
|
16
|
-
- `scripts/
|
|
17
|
-
- `scripts/
|
|
18
|
-
- `scripts/
|
|
19
|
-
- `scripts/
|
|
12
|
+
- `scripts/branch_landed.ts` — the resume "merged" predicate: landed ⇔ a `--no-ff` merge on main's first-parent line has the branch tip as its second parent (a zero-commit branch is never landed, unlike `merge-base --is-ancestor`); takes `[--wt-gen <n>] [--branch <name>]` (the generation branch `specpipe/g<G>r<n>`; `--branch` wins) and returns the landing's B4 range `PRE..M` (read-only; has tests).
|
|
13
|
+
- `scripts/audit_claims.ts` — actual-write audit when B1⇄B2 finish (B2 step 0), on recorded per-group coder pairs, with each group's generation read from the dispatch ledger (`--wt-gen` is the no-ledger fallback, `--branch` overrides) for the fallback range: wiring-surface violations, resolver hand-edit violations, empty diffs, same-wave cross-group overlaps (deterministic; has tests).
|
|
14
|
+
- `scripts/homecheck_scan.ts` — post-loop Homecheck scan: generates the project/rule configs for the three fixed rule sets, runs the installed CLI, and writes `findings.json` with error severities only (a previous `findings.json` is deleted before any probe, so a killed run never leaves a stale clean result) (deterministic; has tests).
|
|
15
|
+
- `scripts/dispatch.mjs` — the dispatch CLI and the **only writer** of `<HMOS>/.hometrans/dispatch/ledger.jsonl`: `init` (plan per wave; `--new-run` starts a new `runId`), `group-worktree`, `claim` / `intent` / `confirm` / `start` / `beat` / `submit` / `abandon` / `orphan` / `reject` / `retry` / `release` / `accept` / `close` / `artifact`, `group-reset` / `group-merge` / `group-fail` / `queue-merge` / `dequeue-merge`, and the read/projection commands `reconcile [--check]`, `wait`, `waker`, `probe`, `status`, `progress`, `evidence` (read-only per-attempt gate; exit 0 = completed). It is the CAS + lock layer (claimGen/token identity, stale events ignored), prints compact JSON, and is the only command the runbook uses for dispatch state (has tests).
|
|
16
|
+
- `scripts/dispatch/ledger.mjs` — ledger file paths, the atomic `{pid,host,boot,nonce,at}` lock (boot/nonce-aware stale-owner takeover, nonce-owned release, orphan-temp pruning), tail repair, fatal corrupt detection, append/fsync, `foldLedger` + the `dispatch/state.json` cache writer, and the `runId`/token/claimGen generators.
|
|
17
|
+
- `scripts/dispatch/fold.mjs` — the pure dispatch FSM: `createState`, `applyEvent`, `foldEvents`, `deriveTimeouts`, `isComplete`, `parseUnitId`, `DEFAULTS` (claim/no-evidence/lease/evidence TTLs, content/dispatch attempts, generations), terminal/active sets.
|
|
18
|
+
- `scripts/dispatch/plan.mjs` — `buildPlanEvent`: reads `spec_wave_plan.json` + `spec_group_plan.json` and builds the wave's `plan` event (unit universe per group).
|
|
19
|
+
- `scripts/dispatch/evidence.mjs` — per-attempt evidence: attempt-directory layout, `commit-info.md` parsing, chunk/resolver evidence rules, quiet-worktree check (`git status --porcelain=v1 -z --untracked-files=all --no-renames`), and `promoteAttempt` (the winning attempt's artifacts copied to the chunk/resolver dir on release).
|
|
20
|
+
- `scripts/dispatch/reconcile.mjs` — the reconcile projection: derived-timeout application, `dispatchable`, `groupResidue`, `deadGroups`, verdicts, `nextDeadline`; the ledger write path stays in `dispatch.mjs`.
|
|
21
|
+
- `scripts/dispatch/state-mirror.mjs` — ledger → `spec_pipeline_state.json` mismatch projection (units, chunks, groups) for the orchestrator's one-way repair.
|
|
22
|
+
- `scripts/dispatch/wait.mjs` — snapshot/diff engine and the foreground `wait` (gitdir files, attempt artifacts, ledger, state, deadline), baseline seeding from `claim`, and the durable event file.
|
|
23
|
+
- `scripts/dispatch/waker.mjs` — the durable waker: `waker.lock` ownership, 30-second wait slices, lock renewal, relay after 120 timeouts, `waker.stop` disarm, and the event payload (`runId` checked by the parent).
|
|
24
|
+
- `scripts/dispatch/progress.mjs` — progress observation for live units (last commit / attempt-artifact / dirty-path mtimes) feeding `beat`.
|
|
25
|
+
- `scripts/dispatch/worktree.mjs` — generation-aware worktree plumbing: `WT/g<G>r<n>` / `specpipe/g<G>r<n>`, `provisionGroup` (rebuilds a stale branch at the requested base), `resetGroup` (reuse), `cleanupGenerations`, and `git`/`gitRaw`.
|
|
26
|
+
- `scripts/dispatch/timeouts.mjs` — `nextDeadline` over claimed/dispatched/live/orphaned/submitted and `buildDerived` for the next timeout projection.
|
|
27
|
+
- `scripts/lib/io.mjs` — shared plumbing: atomic JSON/file writes (temp + fsync + rename), BOM-tolerant JSON reads, `ensureDir`, and junction/case-safe `isMain`.
|
|
28
|
+
- `scripts/atomic_write.ts` — crash-safe file replacement (temp + fsync + rename, optional `.bak`) shared by the `.ts` scripts above.
|
|
29
|
+
- `scripts/test_plan_groups.ts`, `scripts/test_resolve_wiring.ts`, `scripts/test_git_baseline.ts`, `scripts/test_stage_design_inputs.ts`, `scripts/test_ensure_wt_index.ts`, `scripts/test_branch_landed.ts`, `scripts/test_plan_waves.ts`, `scripts/test_deps_ready.ts`, `scripts/test_audit_claims.ts`, `scripts/test_atomic_write.ts`, `scripts/test_homecheck_scan.ts` — unit tests (run with `node --test <file>`).
|
|
30
|
+
- `scripts/test_dispatch_commands.mjs`, `scripts/test_dispatch_e2e.mjs`, `scripts/test_dispatch_evidence.mjs`, `scripts/test_dispatch_fold.mjs`, `scripts/test_dispatch_ledger.mjs`, `scripts/test_dispatch_plan.mjs`, `scripts/test_dispatch_progress.mjs`, `scripts/test_dispatch_reconcile.mjs`, `scripts/test_dispatch_wait.mjs`, `scripts/test_dispatch_waker.mjs`, `scripts/test_dispatch_worktree.mjs` — the dispatch ledger's unit and end-to-end tests: lock/CAS, fold, plan, evidence, reconcile, wait/waker, progress, worktree generations, and the mini-wave harness (run with `node --test <file>`).
|
|
20
31
|
- `references/specs.example.json` — example of the specs.json input format (the format is owned by the producing skill, a2h-spec-generate 的 publish-specs).
|
|
21
32
|
- `references/initialization.md` — I1–I4 verbatim (steps 1–12): input validation, the `plan_groups.ts` + `resolve_wiring.ts` precompute, environment prerequisites, one-time setup (git baseline, docs baseline), announcement.
|
|
22
|
-
- `references/coding-loop.md` — B1 verbatim: chunk pointers, the
|
|
23
|
-
- `references/merge-queue.md` — B2 verbatim: the step-0 actual-write audit,
|
|
24
|
-
- `references/state-and-resume.md` — mid-flight detection (resume into an interrupted wave) and the state file contract (schema, sibling-file ownership, atomic writes, `.bak` restore
|
|
25
|
-
- `references/execution-model.md` — the
|
|
33
|
+
- `references/coding-loop.md` — B1 verbatim: chunk pointers, the dispatch ledger protocol (`claim/intent/confirm/start/beat/submit/release/...`), the spec §11 event loop, the turn-end guard with `reconcile`/`wait`/`waker`, and the chunk dispatch contract with the so-id resume rule.
|
|
34
|
+
- `references/merge-queue.md` — B2 verbatim: the step-0 actual-write audit, generation-branch landing (`branch_landed --wt-gen`, `group-merge` after landing), the resolver `claim/intent/confirm` recovery ladder, and the wave-end wiring application.
|
|
35
|
+
- `references/state-and-resume.md` — mid-flight detection (resume into an interrupted wave), `runId` + reconcile, one-way state repair, generation-aware `WT/g<G>r<n>` paths, and the state file contract (schema, sibling-file ownership, atomic writes, `.bak` restore).
|
|
36
|
+
- `references/execution-model.md` — the dispatch ledger contract: files, events, identity/CAS, the state machine, timeouts/`runId`, commands, reconcile output, `wait`/waker discipline, ledger integrity.
|
|
37
|
+
- `references/static-defect-gate.md` — the post-loop Homecheck check before the smoke gate: fixed rule sets, scan/fix rounds, the closing verification scan, the per-campaign `runId`, build-before-smoke rule, summary schema, and resume behavior.
|
|
38
|
+
- `references/legacy-cleanup.md` — the one-time runtime cleanup of retired `.hometrans` dispatch files on resume (exact filenames; runtime artifacts only).
|
|
26
39
|
- `references/final-report-template.md` — the Finalization summary report template (every section mandatory).
|
|
27
40
|
- `references/scripts.md` — this file.
|
|
@@ -5,17 +5,125 @@ the state file must be read, restored, or compared with the resolved inputs.
|
|
|
5
5
|
|
|
6
6
|
## Mid-flight detection (resume into an interrupted wave)
|
|
7
7
|
|
|
8
|
-
Before starting a wave — before running S0 — if any group in state has `wave != null` and `status` not in
|
|
8
|
+
Before starting a wave — before running S0 — if any group in state has `wave != null` and `status` not in
|
|
9
|
+
{done, failed}, that wave is interrupted — do NOT start the wave loop fresh. Re-enter it directly.
|
|
10
|
+
**Ledger reset on resume (first, before any re-dispatch):**
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
1. Disarm the waker: write `<HMOS>/.hometrans/dispatch/waker.stop` (idempotent; the waker's `exited`
|
|
13
|
+
event is optional).
|
|
14
|
+
2. Snapshot the ledger: `dispatch/ledger.jsonl` → `dispatch/ledger.resumed-<ts>.jsonl` (audit trail; the
|
|
15
|
+
ledger itself is never deleted).
|
|
16
|
+
3. Apply `references/legacy-cleanup.md` once if this project ran the retired dispatch scripts.
|
|
17
|
+
4. Re-establish the wave plan: `node <skill-dir>/scripts/dispatch.mjs <HMOS> init --wave <K>
|
|
18
|
+
--concurrency <WAVE_WIDTH> --new-run`. The **mid-flight reset** is a genuine reset: it gives this
|
|
19
|
+
session its own `runId` (so every old-run active unit immediately gets `abandon(dead-run)` /
|
|
20
|
+
`orphan(dead-run)` on the first `reconcile`) and archives the previous pipeline state under
|
|
21
|
+
`spec_pipeline_archive/` as the audit trail — keep that archived file, and restore it into place
|
|
22
|
+
(`spec_pipeline_archive/state-<ts>.json` → `.hometrans/spec_pipeline_state.json`) before step 5 when
|
|
23
|
+
this is a resume of the same campaign rather than a brand-new campaign. A **normal later wave** is
|
|
24
|
+
plain `init --wave <K>` under the same `runId` (it appends a plan and is a no-op when identical).
|
|
25
|
+
Never use `--new-run` between normal waves.
|
|
26
|
+
5. Run `dispatch.mjs <HMOS> reconcile`, then repair `spec_pipeline_state.json` one way (ledger → state:
|
|
27
|
+
terminal unit → chunk `done`/`failed`; group status; chunk rows) before dispatching anything. Position
|
|
28
|
+
is re-derived from the ledger + git, never from a dead session's live bookkeeping.
|
|
29
|
+
|
|
30
|
+
**"Merged" = `branch_landed.ts`**, never `merge-base --is-ancestor` (a zero-commit branch is trivially an
|
|
31
|
+
ancestor). Check the group's current generation: `node <skill-dir>/scripts/branch_landed.ts <HMOS> <G>
|
|
32
|
+
--wt-gen <wtGen>`; `landed:true` also returns the landing's `pre..range` for a crash that left B4's range
|
|
33
|
+
unrecorded.
|
|
34
|
+
|
|
35
|
+
- **No `wave_<K>/wave_meta.json`** → the crash happened before W0: re-enter at W0 for the groups whose
|
|
36
|
+
state `wave == K` (their worktrees are created/classified by W0).
|
|
11
37
|
- **wave_meta.json exists** → read it for WAVE_BASE/members and classify every member:
|
|
12
|
-
- **
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
38
|
+
- **Any group with a done chunk whose `specs[].design_file` is empty (run this FIRST, before the
|
|
39
|
+
branches below)** → look up `<DESIGN_DIR>/SPEC_DESIGN_G<G>_c<k>.md`; if it exists, backfill
|
|
40
|
+
`state.specs[].design_file` (basename) and `stage: "A"`; otherwise record a warning in the wave log
|
|
41
|
+
(do not fail the group);
|
|
42
|
+
- **no worktree** (state `pending` ∧ `WT/g<G>r<n>` absent on disk — the coding-incomplete branch reads
|
|
43
|
+
the worktree's git log and cannot apply to a worktree-less member; this is the dispatch-hold state):
|
|
44
|
+
route by the `deps_ready.ts` verdict — `ready` → the release procedure (the B1 deps release sweep),
|
|
45
|
+
`held` → wait for the release trigger;
|
|
46
|
+
- **merged** (`branch_landed.ts --wt-gen <n>` → `landed: true`, or state status `merged`/`done`) → skip
|
|
47
|
+
(first ensuring the group's B4 range is recorded — a crash between the landing commit and the state
|
|
48
|
+
write leaves it unrecorded; take the script's `range` and write `group-merge` if the ledger has not);
|
|
49
|
+
- **coding incomplete** (some chunk not `done`) → before refreshing the index or dispatching, run
|
|
50
|
+
`node <skill-dir>/scripts/stage_design_inputs.ts <HMOS> WT/g<G>r<n>` (idempotent) and re-upsert this
|
|
51
|
+
wave's `design_map.md` row if it is absent (a crash between W0 step 3 and step 4 leaves the
|
|
52
|
+
worktree/staging incomplete). Then **refresh this worktree's index before dispatching**
|
|
53
|
+
(`node <skill-dir>/scripts/ensure_wt_index.ts <HMOS> WT/g<G>r<n> --sync` — idempotent, ≈1.6 s when
|
|
54
|
+
usable, and it also catches up with commits made since W0; skip when `ENGINE_MODE=off`). A resume has
|
|
55
|
+
no wave log, so this run's `action`/`reason`/`detail` (recorded) is the ONLY source for the coder's
|
|
56
|
+
HomeGraph clause — never assume the index from W0 is still usable. Then claim the unit and dispatch
|
|
57
|
+
that group's next chunk in background (position from the worktree's so-id commit log);
|
|
58
|
+
- **coding complete & unmerged** (all chunks `done`, branch unlanded) → `queue-merge <G>` (or leave it
|
|
59
|
+
queued) in group order.
|
|
16
60
|
|
|
17
|
-
|
|
61
|
+
Then re-enter the B1⇄B2 event loop and drain it. At re-entry, if main is **mid-merge**
|
|
62
|
+
(`<HMOS>/.git/MERGE_HEAD` exists) → `git -C <HMOS> merge --abort`, then continue. If the main tree is
|
|
63
|
+
dirty with ONLY wiring-surface files modified (all `git status --porcelain` paths in
|
|
64
|
+
`state.config.wiring_files`), treat it as an interrupted wiring application — verify idempotently and
|
|
65
|
+
commit as `wiring`; any other dirt stops the run.
|
|
18
66
|
|
|
19
67
|
## State persistence & resume
|
|
20
68
|
|
|
21
|
-
`<HMOS>/.hometrans/spec_pipeline_state.json` (schema `spec_pipeline_state/v2`, gitignored) is written by
|
|
69
|
+
`<HMOS>/.hometrans/spec_pipeline_state.json` (schema `spec_pipeline_state/v2`, gitignored) is written by
|
|
70
|
+
`plan_groups.ts --emit-state`, updated by `plan_waves.ts` (wave assignment), and updated by the
|
|
71
|
+
orchestrator after every stage — including the B1⇄B2 bookkeeping: chunk statuses (`pending` →
|
|
72
|
+
`in_flight` → `done`/`failed`), group statuses (`pending` → `coding`/`coded` → `merged` → `done`, or
|
|
73
|
+
`failed`), chunk pointers `groups[G].chunks[k].spec_file/design_file/ui_sequence`,
|
|
74
|
+
`config.design_granularity`, each group's coder snapshot `audit: { base, tip }` (additive group-level
|
|
75
|
+
field — the frozen per-spec field names stay untouched), `coding_base` (the release-fork main HEAD; the
|
|
76
|
+
audit base cache and the so-id resume anchor for held-then-released members, overwritten on re-release),
|
|
77
|
+
`review: { round, open, scenarios, carry_over, fix_commits }` (B4's per-group review state — which groups
|
|
78
|
+
the next round re-reviews and fixes; a resume inside B4 continues from `review.round` with the same
|
|
79
|
+
selection rule), and `wave`/`G`. The dispatch truth lives only in `<HMOS>/.hometrans/dispatch/`, written only by
|
|
80
|
+
`dispatch.mjs`:
|
|
81
|
+
|
|
82
|
+
- `ledger.jsonl` — the append-only scheduling truth (events in `references/execution-model.md`);
|
|
83
|
+
- `state.json` — the fold cache; only `reconcile` writes it, and deleting it is legal (it is rebuilt);
|
|
84
|
+
- `ledger.lock` — `{pid,host,boot,nonce,at}`, the single-writer lock (atomic create; released only by its owner's `nonce`);
|
|
85
|
+
- `waker.lock` / `waker.stop` / `waker.event.json` — the durable wakeup channel;
|
|
86
|
+
- `orch.event.json` — the foreground `wait` event (consumed then deleted);
|
|
87
|
+
- `snapshots/{orch,waker}.snapshot.json` — the wait baselines.
|
|
88
|
+
|
|
89
|
+
The state file itself never carries dispatch timestamps, generations, or tokens — that is the ledger's
|
|
90
|
+
job. Resume snapshots the ledger rather than clearing it; live session bookkeeping is
|
|
91
|
+
conversation-transient and never part of the state (crash recovery re-derives position from the ledger +
|
|
92
|
+
git + state). The post-loop Homecheck check writes only `<HMOS>/.hometrans/homecheck/**`: the scan script
|
|
93
|
+
writes `findings.json`, the dispatched gate sub-agent writes `summary.json`; the group/spec state schema
|
|
94
|
+
is unchanged. Its outcome is mirrored in the additive top-level `post_homecheck` field (`status`,
|
|
95
|
+
`errorsBefore`, `errorsAfter`, `rounds`, `build`, `at` — a `skipped` write carries `note` instead of the
|
|
96
|
+
counts and happens at I2, without a dispatch and without touching `.hometrans/homecheck/`). The mirror —
|
|
97
|
+
not `summary.json` — is the completion authority for resume. Per-spec rows keep the v1 field names
|
|
98
|
+
(`status`/`stage`/`design_file`/`commit`) — frozen,
|
|
99
|
+
do not rename (external tooling reads this file); `design_file` on a spec is the chunk design that governs
|
|
100
|
+
it; `stage` vocabulary is exactly `A | B | B2 | C`.
|
|
101
|
+
|
|
102
|
+
**One-way state repair.** `reconcile` reports `stateMismatches` (units, chunks, groups) but never edits
|
|
103
|
+
this file. The orchestrator repairs it in the ledger → state direction only: a terminal ledger chunk
|
|
104
|
+
(`done`/`accepted` → state `done`; `closed`/`abandoned` → state `failed`), the group status (`coding` →
|
|
105
|
+
`coding`, `merged` → `merged`, `failed` → `failed`), and the group's chunk rows; then reconcile once
|
|
106
|
+
more. Never write the ledger from state, and never resurrect a unit because state still says `pending`.
|
|
107
|
+
Vocabulary: ledger `coding` mirrors state `coding` (in progress); the orchestrator's `coded` stays the
|
|
108
|
+
"coding complete / merge queued" marker. `deps_ready.ts` treats `merged|done|failed` as satisfied, so
|
|
109
|
+
both markers correctly count as unsatisfied for dependency release.
|
|
110
|
+
|
|
111
|
+
**Every write replaces the file atomically** (temp file + rename — the scripts do it themselves via
|
|
112
|
+
`atomic_write.ts`, keeping the previous version as `spec_pipeline_state.json.bak`; the orchestrator writes
|
|
113
|
+
`.tmp` then renames) — never edit in place. On restart: if the state does not parse, restore it from
|
|
114
|
+
`.bak` — it predates the orchestrator updates since the last script write, so run the mid-flight
|
|
115
|
+
detection, which re-derives chunk/merge position from git/ledger — and list the restore in the final
|
|
116
|
+
report. Never delete the ledger to "fix" a parse error — that under-counts active units; restore the
|
|
117
|
+
state from `.bak` and re-derive instead. If the state exists, verify `config` matches the resolved inputs
|
|
118
|
+
— including `config.design_granularity === "chunk"` — (diverged → stop), skip `done`/`failed` groups, and
|
|
119
|
+
resume the wave loop. Designs are per-chunk and design-once: a chunk's design is generated before its
|
|
120
|
+
code, and a retry re-uses it unless an issue file exists.
|
|
121
|
+
|
|
122
|
+
**Worktree paths are generation-aware.** A group's worktree is `WT/g<G>r<wtGen>` and its branch
|
|
123
|
+
`specpipe/g<G>r<wtGen>` (generation 0 = `g<G>r0`; the bare `g<G>` name is never used). The ledger group
|
|
124
|
+
record is the only source of `wtGen`/worktree/branch; state mirrors it for the orchestrator's bookkeeping.
|
|
125
|
+
`group-worktree <G> --wt-gen <n>` is the only claim fence (it sets `provisioned`); `group-reset --mode
|
|
126
|
+
fresh` creates the next generation and `--mode reuse` resets the current one in place. `group-merge`
|
|
127
|
+
already removes every older generation (its `cleaned` field lists them). At C, clean the **current**
|
|
128
|
+
generation: `git -C <HMOS> worktree remove WT/g<G>r<wtGen>` (retry once, then `--force`, then
|
|
129
|
+
`git worktree prune`) and `git branch -D specpipe/g<G>r<wtGen>`.
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# Homecheck static-defect check (after the wave loop, before the smoke gate)
|
|
2
|
+
|
|
3
|
+
Apply this file verbatim when the wave loop reports `{"wave": null, "done": true}`. The executor is one
|
|
4
|
+
dispatched gate sub-agent (a fresh `general` agent, foreground); the orchestrator only dispatches it,
|
|
5
|
+
validates its compact JSON reply, and mirrors the outcome — it never runs the scan/fix work itself. This
|
|
6
|
+
is a single project-wide check on the merged `<HMOS>` tree; it does not run per wave and does not modify
|
|
7
|
+
the group/spec state machine.
|
|
8
|
+
|
|
9
|
+
## Inputs and preconditions
|
|
10
|
+
|
|
11
|
+
- `<HMOS>` is the merged project; the main tree is clean (`git status --porcelain` empty). Dirty → record
|
|
12
|
+
`infra_error` and end the gate (the orchestrator still continues to the smoke gate).
|
|
13
|
+
- The installed `homecheck` package is >= 1.0.5 and its `config/ruleSet.json` contains the three fixed
|
|
14
|
+
domains: `@arkui-reliability`, `@correctness`, `@compatibility`. Do not substitute another domain.
|
|
15
|
+
- The check always runs in gate mode, with at most 2 scan-and-fix rounds.
|
|
16
|
+
- Both ETS SDK paths must resolve before scanning: explicit `--ohos-sdk-path` / `--hms-sdk-path` win;
|
|
17
|
+
otherwise each auto-discovers under `DEVECO_SDK_HOME` / `DEVECO_HOME` / `DEVECO_CLI_STUDIO_PATH`
|
|
18
|
+
(OS environment variables, as `ht init` writes them), e.g. `<root>/sdk/default/<openharmony|hms>/ets`. If either is unresolved → preflight fails
|
|
19
|
+
and the check is recorded as `preflight_failed`.
|
|
20
|
+
- The dispatch carries the `runId` — this campaign's `state.config.campaign_id`, a per-campaign nonce
|
|
21
|
+
written once at I3 (step 10b). Not `specs_json_sha256`: the same specs.json started as a new
|
|
22
|
+
campaign hashes identically, and `.hometrans/homecheck/` is never cleaned between campaigns, so the
|
|
23
|
+
previous campaign's `summary.json` would then be accepted as this one's gate result. The sub-agent
|
|
24
|
+
copies the value verbatim into `summary.json`; the orchestrator accepts a disk `summary.json` as the
|
|
25
|
+
reply fallback only on a `runId` match.
|
|
26
|
+
|
|
27
|
+
## Scan
|
|
28
|
+
|
|
29
|
+
For each repair round `r` (up to 2; a scan, then repairs only when it finds `error` findings — a
|
|
30
|
+
round whose scan is clean ends the loop):
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
node <skill-dir>/scripts/homecheck_scan.ts <HMOS> \
|
|
34
|
+
--report-dir <HMOS>/.hometrans/homecheck/round_<r> \
|
|
35
|
+
[--homecheck-home <dir>] \
|
|
36
|
+
[--ohos-sdk-path <dir>] [--hms-sdk-path <dir>] \
|
|
37
|
+
[--scan-timeout-ms 540000]
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
The scan timeout defaults to 540000 ms — a margin below the 600000 ms foreground shell cap (the
|
|
41
|
+
same cap the build check uses): resolution probes and report parsing also run inside that window, so
|
|
42
|
+
a default equal to the cap lets the shell kill the script before it writes findings.json. Keep the
|
|
43
|
+
margin: an over-long scan is ended by the script (`scan_timeout` in findings.json, exit 1), not by a
|
|
44
|
+
tool kill that would leave no findings.json.
|
|
45
|
+
|
|
46
|
+
The script generates `projectConfig.json` / `ruleConfig.json` and runs the legacy CLI. It uses exactly:
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
"ruleSet": [
|
|
50
|
+
"plugin:@arkui-reliability/all",
|
|
51
|
+
"plugin:@correctness/all",
|
|
52
|
+
"plugin:@compatibility/all"
|
|
53
|
+
]
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Rules:
|
|
57
|
+
|
|
58
|
+
- `checkProject: true` so global rules run.
|
|
59
|
+
- `fix: false`; repairs are performed by this check, not by Homecheck's autofix.
|
|
60
|
+
- `@compatibility/signature-scan-check` stays disabled unless a concrete target version or signature set is supplied.
|
|
61
|
+
- Never downgrade an `error` to `warn`/`off` to pass the check. Global rules cannot be suppressed with
|
|
62
|
+
`homecheck-disable` comments.
|
|
63
|
+
|
|
64
|
+
Exit codes: `0` clean, `3` errors found, `1` preflight/scan failure (including timeout and
|
|
65
|
+
`nothing-to-check`), `2` usage error. The script writes `findings.json` in the round directory. Exit
|
|
66
|
+
`0` is valid only with a written `findings.json` whose `scan.outcome` is `success` — a `0` without it
|
|
67
|
+
(e.g. a broken junctioned invocation) is recorded as `scan_error`, never as a clean pass.
|
|
68
|
+
|
|
69
|
+
## Repair
|
|
70
|
+
|
|
71
|
+
Only `severity = error` findings are repaired. For each finding:
|
|
72
|
+
|
|
73
|
+
1. Read the rule documentation (`docPath`, or `document/checker/<domain>/<rule>-cn.md` in the Homecheck
|
|
74
|
+
install).
|
|
75
|
+
2. Apply the minimal behavior-preserving fix; do not refactor or reformat unrelated code.
|
|
76
|
+
3. Treat Homecheck's `fix` range as a hint, not an unconditional replacement.
|
|
77
|
+
4. If the finding is a confirmed false positive, suppress it with
|
|
78
|
+
`// homecheck-disable-next-line <ruleId>` and record ruleId, file, line, reason, and evidence in the
|
|
79
|
+
round's `homecheck-fix-report.md`.
|
|
80
|
+
5. Commit the repaired batch as `fix(homecheck): <n> errors in <m> files`.
|
|
81
|
+
|
|
82
|
+
No new agent type is used: the fixes are performed by the gate sub-agent executing this file (the
|
|
83
|
+
orchestrator only dispatches the gate and validates its reply). Batch by file or rule so a large
|
|
84
|
+
findings file does not exhaust context. The gate sub-agent never dispatches another agent — not even
|
|
85
|
+
`build-fixer`. A compile error introduced by a repair is never fixed inside the gate: the build result
|
|
86
|
+
reports it, and the orchestrator handles it after the gate returns.
|
|
87
|
+
|
|
88
|
+
## Closing verification scan
|
|
89
|
+
|
|
90
|
+
After the last round that repaired code, run one scan-only pass — no repair, no commit — into its own
|
|
91
|
+
report directory:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
node <skill-dir>/scripts/homecheck_scan.ts <HMOS> \
|
|
95
|
+
--report-dir <HMOS>/.hometrans/homecheck/verify \
|
|
96
|
+
[--homecheck-home <dir>] \
|
|
97
|
+
[--ohos-sdk-path <dir>] [--hms-sdk-path <dir>] \
|
|
98
|
+
[--scan-timeout-ms 540000]
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
When the last scan already found no `error` findings, that scan is the closing verification itself —
|
|
102
|
+
never re-scan an unchanged tree. This pass pins the state the gate hands over: the unresolved findings
|
|
103
|
+
in `summary.json` and the final report come from its `findings.json`, never from a round that was
|
|
104
|
+
repaired afterwards. A non-`success` outcome sets the check's `scan_error` / `scan_timeout` status.
|
|
105
|
+
|
|
106
|
+
## Build check (after the repair rounds)
|
|
107
|
+
|
|
108
|
+
Build once at the end, only if any repair changed code — a check, not a fix loop: a single
|
|
109
|
+
foreground build of `<HMOS>` (600000 ms timeout, log to `<HMOS>/.hometrans/homecheck/build.log`),
|
|
110
|
+
invoked from the project root with the same entrypoint the fix loop uses:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
cd <HMOS> && devecocli build > .hometrans/homecheck/build.log 2>&1 # POSIX
|
|
114
|
+
cmd /c "cd /d <HMOS> && devecocli build > .hometrans\homecheck\build.log 2>&1" # Windows (cmd)
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
The result feeds the `build` field of `summary.json` and the final JSON reply, and nothing else: a
|
|
118
|
+
failed build is the orchestrator's to handle after the gate returns — it dispatches the `build-fixer`
|
|
119
|
+
then (a build still red after that skips the smoke gate) — never an in-gate fix, never a dispatch.
|
|
120
|
+
|
|
121
|
+
- Build success → `build: "SUCCESS"` → write `summary.json`.
|
|
122
|
+
- Build failure → mark the check `build_failed` and stop — no in-gate retries, no dispatches — then
|
|
123
|
+
write `summary.json`.
|
|
124
|
+
|
|
125
|
+
No code changed → skip the build (the tree is exactly the last built state) and write `summary.json`.
|
|
126
|
+
|
|
127
|
+
## Summary and status
|
|
128
|
+
|
|
129
|
+
`<HMOS>/.hometrans/homecheck/summary.json`:
|
|
130
|
+
|
|
131
|
+
```json
|
|
132
|
+
{
|
|
133
|
+
"schema": "homecheck_postloop/v1",
|
|
134
|
+
"mode": "gate",
|
|
135
|
+
"runId": "<state.config.campaign_id>",
|
|
136
|
+
"homecheckVersion": "1.0.5",
|
|
137
|
+
"ruleSets": ["plugin:@arkui-reliability/all", "plugin:@correctness/all", "plugin:@compatibility/all"],
|
|
138
|
+
"rounds": 2,
|
|
139
|
+
"errorsBefore": 5,
|
|
140
|
+
"errorsAfter": 0,
|
|
141
|
+
"fixed": 5,
|
|
142
|
+
"suppressed": 0,
|
|
143
|
+
"remaining": 0,
|
|
144
|
+
"build": "SUCCESS",
|
|
145
|
+
"status": "pass",
|
|
146
|
+
"signatureScan": { "enabled": false, "reason": "no target version set" }
|
|
147
|
+
}
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Status values: `pass`, `fail`, `build_failed`, `skipped`, `preflight_failed`, `scan_timeout`,
|
|
151
|
+
`scan_error`, `infra_error`. Field semantics: `errorsBefore` — error count of the round-1 scan;
|
|
152
|
+
`errorsAfter` — error count of the closing verification scan (`remaining` equals it);
|
|
153
|
+
`rounds` — repair rounds performed, 0-2 (the closing scan is not a round); `fixed` / `suppressed` —
|
|
154
|
+
as recorded in the rounds' `homecheck-fix-report.md`. `status: pass` requires `errorsAfter = 0`.
|
|
155
|
+
The gate sub-agent never writes the state file: the orchestrator mirrors
|
|
156
|
+
the result in the additive `state.post_homecheck` field — that mirror, never `summary.json` alone, is
|
|
157
|
+
the completion authority on resume. The gate sub-agent's final message is **only**
|
|
158
|
+
the compact JSON object `{ ok, status, rounds, errorsBefore, errorsAfter, fixed, suppressed, remaining,
|
|
159
|
+
build, note }` — `ok` is true whenever the gate completed and wrote its summary, whatever the `status`.
|
|
160
|
+
|
|
161
|
+
## Failure handling and the smoke gate
|
|
162
|
+
|
|
163
|
+
The gate sub-agent returns; the orchestrator applies this handling:
|
|
164
|
+
|
|
165
|
+
- `pass` → run the smoke gate.
|
|
166
|
+
- `fail` / `build_failed` / `scan_error` / `scan_timeout` / `preflight_failed` → record the result and the
|
|
167
|
+
remaining findings in the final report. By default continue to the smoke gate when the build is usable.
|
|
168
|
+
- Any code change requires a successful build before the smoke gate (the gate's build check, or the
|
|
169
|
+
post-gate `build-fixer` run). Still red after the fixer → skip the smoke gate and record
|
|
170
|
+
`Smoke: SKIPPED_HOMECHECK_BUILD_FAILED`; never smoke a stale build.
|
|
171
|
+
- Do not roll back completed groups or C-stage marker commits because of a finding.
|
|
172
|
+
|
|
173
|
+
## Resume
|
|
174
|
+
|
|
175
|
+
The check is idempotent: a dispatch re-scans the current tree from round 1 instead of resuming a
|
|
176
|
+
half-applied fix round. Completion authority is the orchestrator's `state.post_homecheck`, never
|
|
177
|
+
`summary.json` alone — the full resume decision tree (including the `build: FAILED` re-fix branch and
|
|
178
|
+
the `runId`-guarded disk fallback) is `references/state-and-resume.md` → After the wave loop. A
|
|
179
|
+
`skipped` gate is not retried.
|