@buaa_smat/hometrans 26.0.2 → 26.0.4-devecocli.1
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/agents/code-reviewer.md +111 -154
- package/devecocli-plugin/common.ts +2271 -0
- package/devecocli-plugin/content-resolver.ts +363 -0
- package/devecocli-plugin/install.ts +72 -0
- package/devecocli-plugin/uninstall.ts +26 -0
- package/devecocli-plugin/update.ts +77 -0
- package/i18n/FILE-NAMES.md +9 -0
- package/i18n/agents/code-reviewer.md +436 -0
- package/i18n/agents/model-render-worker.md +38 -0
- package/i18n/agents/specgen-worker.md +18 -0
- package/i18n/commands/hometrans.md +17 -0
- package/i18n/skills/a2h-app-migrate/SKILL.md +206 -0
- package/i18n/skills/a2h-app-migrate/references/config.example.json +28 -0
- package/i18n/skills/a2h-app-migrate/references/feature-scope.md +121 -0
- package/i18n/skills/a2h-app-migrate/references/specs.example.json +19 -0
- package/i18n/skills/a2h-app-migrate/references/stage-map.md +50 -0
- package/i18n/skills/a2h-app-migrate/references/workflow.yaml +2007 -0
- package/i18n/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +187 -0
- package/i18n/skills/a2h-app-migrate/scripts/env_preflight.mjs +1656 -0
- package/i18n/skills/a2h-app-migrate/scripts/human_review_gate.mjs +728 -0
- package/i18n/skills/a2h-app-migrate/scripts/validate_workflow.mjs +541 -0
- package/i18n/skills/a2h-app-migrate/test/test_android_index.mjs +143 -0
- package/i18n/skills/a2h-app-migrate/test/test_arch_done.mjs +54 -0
- package/i18n/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +98 -0
- package/i18n/skills/a2h-app-migrate/test/test_config_example.mjs +42 -0
- package/i18n/skills/a2h-app-migrate/test/test_ensure_utg_snapshot.mjs +147 -0
- package/i18n/skills/a2h-app-migrate/test/test_env_requirements.mjs +713 -0
- package/i18n/skills/a2h-app-migrate/test/test_finalize.mjs +117 -0
- package/i18n/skills/a2h-app-migrate/test/test_image_probe.mjs +120 -0
- package/i18n/skills/a2h-app-migrate/test/test_interaction.mjs +122 -0
- package/i18n/skills/a2h-app-migrate/test/test_preflight_report.mjs +93 -0
- package/i18n/skills/a2h-app-migrate/test/test_resume_plan.mjs +271 -0
- package/i18n/skills/a2h-app-migrate/test/test_resume_summary.mjs +222 -0
- package/i18n/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +136 -0
- package/i18n/skills/a2h-app-migrate/test/test_run_dir.mjs +552 -0
- package/i18n/skills/a2h-app-migrate/test/test_skill_doc.mjs +144 -0
- package/i18n/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +263 -0
- package/i18n/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +165 -0
- package/i18n/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +76 -0
- package/i18n/skills/a2h-app-migrate/test/test_ui_batch_gate.mjs +226 -0
- package/i18n/skills/a2h-app-migrate/test/test_user_facing_progress.mjs +43 -0
- package/i18n/skills/a2h-app-migrate/test/test_utg_static_done.mjs +207 -0
- package/i18n/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +87 -0
- package/i18n/skills/a2h-arch-generate/SKILL.md +378 -0
- package/i18n/skills/a2h-arch-generate/examples/reconcile-existing-project.md +107 -0
- package/i18n/skills/a2h-arch-generate/examples/simple-conversion-backend.md +70 -0
- package/i18n/skills/a2h-arch-generate/references/arkts-mvvm-v2.md +1407 -0
- package/i18n/skills/a2h-arch-generate/references/artifact-contracts.generate.md +120 -0
- package/i18n/skills/a2h-arch-generate/references/artifact-contracts.reconcile.md +123 -0
- package/i18n/skills/a2h-arch-generate/references/bpta-layered-architecture-design.md +88 -0
- package/i18n/skills/a2h-arch-generate/references/database-schema-recovery.md +107 -0
- package/i18n/skills/a2h-arch-generate/references/existing-target-annotation.md +68 -0
- package/i18n/skills/a2h-arch-generate/references/harmony-project-inspection.md +150 -0
- package/i18n/skills/a2h-arch-generate/references/harmony-target-architecture.md +94 -0
- package/i18n/skills/a2h-arch-generate/references/homegraph-workflow.md +131 -0
- package/i18n/skills/a2h-arch-generate/references/source-baseline.md +93 -0
- package/i18n/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +360 -0
- package/i18n/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +798 -0
- package/i18n/skills/a2h-arch-generate/scripts/lib/contract_terms.mjs +40 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/generate.mjs +639 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/reconcile-layer-PROJECT_DESIGN.md +47 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/single-entry-PROJECT_DESIGN.md +15 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/three-layer-PROJECT_DESIGN.md +36 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/verification-report.md +150 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages.json +5 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/e2e/run_e2e.mjs +548 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +1261 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/test_module_templates.mjs +70 -0
- package/i18n/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +851 -0
- package/i18n/skills/a2h-arch-generate/scripts/validate_data_docs.mjs +982 -0
- package/i18n/skills/a2h-arkts-logic-coder/SKILL.md +304 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +10 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/code-generation.md +249 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/spec-design.md +344 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/design/move_spec_technical_reference.mjs +162 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/design/validate_spec_design_output.mjs +298 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +877 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/test_check_units.ts +149 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/move_design.md +18 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/move_design_crlf.md +18 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/move_spec.md +7 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/validate_issue_file.md +12 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/validate_issues.json +57 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/test_spec_design_scripts.mjs +547 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +597 -0
- package/i18n/skills/a2h-batch-ui-align/SKILL.md +372 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/alignment.md +35 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/build.md +13 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/canvas.md +17 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/dynamics.md +27 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/geometry.md +85 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/interaction.md +23 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/resources.md +89 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/state-v1.md +29 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/state.md +14 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/widgets.md +62 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/window.md +30 -0
- package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +930 -0
- package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +420 -0
- package/i18n/skills/a2h-batch-ui-align/references/incremental-scope.md +158 -0
- package/i18n/skills/a2h-batch-ui-align/references/lottie-integration.md +43 -0
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +2552 -0
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +560 -0
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +175 -0
- package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_decorator-quickref.md +251 -0
- package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_paradigm-selection.md +28 -0
- package/i18n/skills/a2h-batch-ui-align/references/step3-capture.md +232 -0
- package/i18n/skills/a2h-batch-ui-align/references/step4-prepare.md +206 -0
- package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +232 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/android_parse_fast.ts +2005 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/branch_coverage.mjs +155 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +2118 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +79 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/detect_paradigm.mjs +245 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/draw_coverage.mjs +264 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +1805 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/gen_rule_docs.mjs +100 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +612 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/group_pack.mjs +1959 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +147 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/image_probe.mjs +405 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/measure_pack.ts +1632 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +1300 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +1234 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/state_doc.mjs +417 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/core/cli.ts +134 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/core/i18n.ts +18 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/main.ts +216 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +615 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/android_immersive.ts +125 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +49 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/block_comment_break.ts +64 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/blur_mirrored.ts +134 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_call_sites.ts +242 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_invokes_callback.ts +136 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/canvas.ts +255 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/color_string.ts +109 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/column_shrink.ts +154 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/constant_coordinate.ts +39 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/container_align.ts +140 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/dialog_backboard.ts +91 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_root_builtin.ts +69 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_route.ts +114 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/event_default_click.ts +179 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/fixed_size_safe_area.ts +103 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/format_string.ts +157 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_dialog.ts +110 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_picker.ts +115 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +339 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/image_source.ts +84 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/input_traps.ts +249 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +780 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_host.ts +145 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_content.ts +138 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +408 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/offset_in_scroll.ts +163 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/orphan_component.ts +119 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_binds.ts +56 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_string.ts +96 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +179 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/page_reachability.ts +94 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/path_commands_vp.ts +50 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +81 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/popup_menu.ts +137 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/r_template_string.ts +37 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +102 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/request_permission.ts +98 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/resource_as_string.ts +68 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +147 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/runtime_traps.ts +440 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/safe_area_clipping.ts +168 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +127 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_delta.ts +178 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sdk_api.ts +195 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/shared_chrome.ts +73 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_blur.ts +95 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/shell_content.ts +198 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/stack_occluding.ts +118 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/state_decorators.ts +73 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/state_name_shadows.ts +93 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/string_quote_leak.ts +73 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/surface_stroke.ts +50 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/swiper_index.ts +65 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +184 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/track_getter.ts +132 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/waterflow_sections.ts +231 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +53 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/window_mode.ts +67 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_a11y.test.mjs +598 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_blur.test.mjs +217 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_builder_calls.test.mjs +323 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_fidelity.test.mjs +507 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_input_runtime.test.mjs +514 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +651 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_occlusion_offset_format.test.mjs +372 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_overlay_lottie.test.mjs +199 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_review_fixes.test.mjs +298 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rules.test.mjs +365 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_padding_raster.test.mjs +262 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +473 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/branch_coverage.test.mjs +116 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +693 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/draw_coverage.test.mjs +245 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/export_ui_info.test.mjs +742 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/generate_pages_json.test.mjs +123 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/group_pack.test.mjs +363 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/image_probe.test.mjs +243 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +326 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/occlusion.test.mjs +102 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +356 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +60 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +395 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/static_check_registry.test.mjs +122 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/text_color_diff.test.mjs +250 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/text_color_diff.mjs +470 -0
- package/i18n/skills/a2h-coldstart-smoke-gate/SKILL.md +62 -0
- package/i18n/skills/a2h-dashboard-render/SKILL.md +73 -0
- package/i18n/skills/a2h-dashboard-render/references/artifact-contract.jsonc +117 -0
- package/i18n/skills/a2h-dashboard-render/references/artifact-registry-spec.md +67 -0
- package/i18n/skills/a2h-dashboard-render/references/dashboard-guide.md +91 -0
- package/i18n/skills/a2h-dashboard-render/references/dashboard.config.example.json +19 -0
- package/i18n/skills/a2h-dashboard-render/scripts/dashboard.mjs +3245 -0
- package/i18n/skills/a2h-dashboard-render/scripts/device_capture.mjs +2050 -0
- package/i18n/skills/a2h-dashboard-render/test/fixtures/page_capture/expected.json +156 -0
- package/i18n/skills/a2h-dashboard-render/test/fixtures/page_capture/hmos.json +1 -0
- package/i18n/skills/a2h-dashboard-render/test/fixtures/page_capture/list.xml +1 -0
- package/i18n/skills/a2h-dashboard-render/test/test_artifact_contract.mjs +168 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +118 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +93 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_i18n.mjs +154 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +1369 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +318 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_ui_pipeline.mjs +81 -0
- package/i18n/skills/a2h-dashboard-render/test/test_device_capture_env.mjs +115 -0
- package/i18n/skills/a2h-dashboard-render/test/test_device_capture_policy.mjs +411 -0
- package/i18n/skills/a2h-dashboard-render/test/test_page_capture.mjs +147 -0
- package/i18n/skills/a2h-dashboard-render/test/test_usage_readers.mjs +512 -0
- package/i18n/skills/a2h-fix-build-errors/SKILL.md +304 -0
- package/i18n/skills/a2h-fix-build-errors/references/arkts-strict-patterns.md +219 -0
- package/i18n/skills/a2h-fix-build-errors/references/rdb-entity-pattern.md +131 -0
- package/i18n/skills/a2h-module-semantic-docs/SKILL.md +265 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/module_structure.json +187 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/module_understanding.json +351 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/module_update_plan.json +495 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/project_directory_structure.json +157 -0
- package/i18n/skills/a2h-module-semantic-docs/test/test_scan_and_commit.mjs +388 -0
- package/i18n/skills/a2h-page-specgen/SKILL.md +239 -0
- package/i18n/skills/a2h-page-specgen/references/behavior-ledger.md +1174 -0
- package/i18n/skills/a2h-page-specgen/references/body-language.md +179 -0
- package/i18n/skills/a2h-page-specgen/references/gates.md +329 -0
- package/i18n/skills/a2h-page-specgen/references/page-inventory.md +220 -0
- package/i18n/skills/a2h-page-specgen/references/scenario-authoring.md +274 -0
- package/i18n/skills/a2h-page-specgen/references/spec-example.md +312 -0
- package/i18n/skills/a2h-page-specgen/references/spec-template.md +210 -0
- package/i18n/skills/a2h-page-specgen/scripts/behavior-audit.mjs +2436 -0
- package/i18n/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +1833 -0
- package/i18n/skills/a2h-page-specgen/scripts/behavior-model.mjs +181 -0
- package/i18n/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +1205 -0
- package/i18n/skills/a2h-page-specgen/scripts/entry-evidence.mjs +1123 -0
- package/i18n/skills/a2h-page-specgen/scripts/facts-build.mjs +1613 -0
- package/i18n/skills/a2h-page-specgen/scripts/footprint.mjs +1650 -0
- package/i18n/skills/a2h-page-specgen/scripts/gate.mjs +864 -0
- package/i18n/skills/a2h-page-specgen/scripts/interactions.mjs +346 -0
- package/i18n/skills/a2h-page-specgen/scripts/inventory.mjs +371 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/contracts.mjs +155 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +235 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/hg.mjs +684 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/homegraph-process.mjs +102 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/homegraph-query.mjs +161 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/operation-reviews.mjs +913 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/prose.mjs +252 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/reach.mjs +53 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/semantic-detail.mjs +353 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/source-text.mjs +497 -0
- package/i18n/skills/a2h-page-specgen/scripts/operation-evidence.mjs +1542 -0
- package/i18n/skills/a2h-page-specgen/scripts/prepare.mjs +864 -0
- package/i18n/skills/a2h-page-specgen/scripts/render.mjs +276 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +897 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.json +25 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +373 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +300 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.json +47 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +373 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +300 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +2694 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +726 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +108 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +373 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.review.md +65 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +267 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.json +57 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +373 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +300 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/branch-checklist.md +32 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/gate-results.json +22 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/manifest.json +111 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/portability.test.mjs +141 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/review.md +22 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +553 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/android-entry-evidence.test.mjs +585 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +755 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-group.test.mjs +546 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-post.test.mjs +655 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +1234 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-component-gate.test.mjs +520 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +1516 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-finalize.test.mjs +759 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +630 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-model.test.mjs +118 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +798 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-regression.test.mjs +886 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +205 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +475 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/facts.test.mjs +1205 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +271 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/facts/i18n/zh.js.txt +8 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-b+zh+Hans/strings.xml +7 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-zh/strings.xml +8 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/App.vue +1 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-conflict-record.json +17 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-record.json +17 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/manifest.json +3 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages/list/index.vue +80 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages.json +14 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/source-record.json +15 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/components/RefreshPanel.vue +15 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/composables/useRefresh.ts +50 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/pages/help/index.vue +9 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/state/store.ts +4 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/utg/click_paths.json +28 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +1029 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fsx.test.mjs +32 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +143 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/gate.test.mjs +1121 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +332 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/helpers.mjs +188 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/hg.test.mjs +549 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/homegraph-process-fixture.mjs +130 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/homegraph-query.test.mjs +288 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/integration.test.mjs +368 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +348 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +250 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/keys.test.mjs +776 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +1002 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +1103 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prepare-homegraph-reproduction.mjs +365 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prepare-homegraph.test.mjs +569 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prepare-pipeline.test.mjs +326 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +240 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prose.test.mjs +427 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +531 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/reach.test.mjs +93 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +418 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +1782 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/render.test.mjs +536 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/review-followup.test.mjs +467 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/semantic-detail.test.mjs +949 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/submit.test.mjs +1239 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/uniapp-operation-evidence.test.mjs +639 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/utg-footprint-contract.test.mjs +274 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/utg-io.test.mjs +90 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +1801 -0
- package/i18n/skills/a2h-resource-convert/SKILL.md +375 -0
- package/i18n/skills/a2h-resource-convert/references/code-vector-icon-rules.md +336 -0
- package/i18n/skills/a2h-resource-convert/references/incremental-page-migration.md +272 -0
- package/i18n/skills/a2h-resource-convert/references/lottie-conversion-rules.md +226 -0
- package/i18n/skills/a2h-resource-convert/references/resource-mapping-rules.md +493 -0
- package/i18n/skills/a2h-resource-convert/references/step4-resource-types.md +251 -0
- package/i18n/skills/a2h-resource-convert/references/step7-report-template.md +217 -0
- package/i18n/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +2596 -0
- package/i18n/skills/a2h-resource-convert/scripts/lottie_hosts.ts +415 -0
- package/i18n/skills/a2h-resource-convert/scripts/tests/docs_only_i18n.test.mjs +44 -0
- package/i18n/skills/a2h-resource-convert/scripts/tests/lottie_hosts.test.mjs +222 -0
- package/i18n/skills/a2h-spec-design-pipeline/SKILL.md +238 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/coding-loop.md +358 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/homegraph-cli.md +307 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/initialization.md +103 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/merge-queue.md +266 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/post-loop.md +23 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/review-loop.md +71 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/scripts.md +55 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/specs.example.json +19 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/state-and-resume.md +246 -0
- package/i18n/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +752 -0
- package/i18n/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +661 -0
- package/i18n/skills/a2h-spec-generate/SKILL.md +375 -0
- package/i18n/skills/a2h-spec-generate/references/batch-mode.md +215 -0
- package/i18n/skills/a2h-spec-generate/references/delete-blast-radius.md +3 -0
- package/i18n/skills/a2h-spec-generate/references/dispatch-watchdog.md +150 -0
- package/i18n/skills/a2h-spec-generate/references/fusion-task-contract.md +184 -0
- package/i18n/skills/a2h-spec-generate/references/input-formats.md +27 -0
- package/i18n/skills/a2h-spec-generate/references/library-evidence.md +3 -0
- package/i18n/skills/a2h-spec-generate/references/method-discipline.md +64 -0
- package/i18n/skills/a2h-spec-generate/references/optional-gates.json +45 -0
- package/i18n/skills/a2h-spec-generate/references/recall-guide.md +84 -0
- package/i18n/skills/a2h-spec-generate/references/recall-terse.md +3 -0
- package/i18n/skills/a2h-spec-generate/references/recall-uniapp.md +10 -0
- package/i18n/skills/a2h-spec-generate/references/requirement-scope.md +122 -0
- package/i18n/skills/a2h-spec-generate/references/review-checklist.md +22 -0
- package/i18n/skills/a2h-spec-generate/references/spec-sample-complex.md +80 -0
- package/i18n/skills/a2h-spec-generate/references/spec-sample-transfer.md +43 -0
- package/i18n/skills/a2h-spec-generate/references/spec-samples.md +65 -0
- package/i18n/skills/a2h-spec-generate/references/specs.schema.json +85 -0
- package/i18n/skills/a2h-spec-generate/references/synthesis-rules.md +145 -0
- package/i18n/skills/a2h-spec-generate/references/transfer-file.md +5 -0
- package/i18n/skills/a2h-spec-generate/references/transfer-socket.md +5 -0
- package/i18n/skills/a2h-spec-generate/references/worker-rules.md +129 -0
- package/i18n/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +702 -0
- package/i18n/skills/a2h-spec-generate/scripts/check_spec.ts +515 -0
- package/i18n/skills/a2h-spec-generate/scripts/collect-specs.mjs +727 -0
- package/i18n/skills/a2h-spec-generate/scripts/feature-stem.mjs +151 -0
- package/i18n/skills/a2h-spec-generate/scripts/parse_requirements.ts +515 -0
- package/i18n/skills/a2h-spec-generate/scripts/prepare-facts.mjs +313 -0
- package/i18n/skills/a2h-spec-generate/scripts/publish-specs.mjs +354 -0
- package/i18n/skills/a2h-spec-generate/scripts/regroup-by-page.mjs +669 -0
- package/i18n/skills/a2h-spec-generate/scripts/render-tasks.mjs +385 -0
- package/i18n/skills/a2h-spec-generate/scripts/report.mjs +136 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +2217 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +845 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +572 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +580 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +1265 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +1057 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/behavior-seed.ts +565 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/library-evidence.ts +544 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/navigation-guard.ts +363 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/schema.ts +317 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/selfcheck.ts +707 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/spec-bindings.ts +436 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +608 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +650 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +178 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +923 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +912 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +279 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +163 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +1039 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +256 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fixtures/fusion-run.ts +243 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-area-facts.test.ts +576 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-detectors.test.ts +176 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-e2e.test.ts +103 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-schema.test.ts +111 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-selfcheck.test.ts +307 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +340 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +1857 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-navigation-guard.test.ts +262 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +722 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-scope.test.ts +339 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-selfcheck.test.ts +1253 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +608 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/model-scope.test.ts +411 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/model-task-contract.test.ts +300 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/model-v4.test.ts +1061 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/uniapp-scanner.test.ts +159 -0
- package/i18n/skills/a2h-spec-generate/template/REQ.txt +22 -0
- package/i18n/skills/a2h-spec-generate/template/REQ.xlsx +0 -0
- package/i18n/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +847 -0
- package/i18n/skills/a2h-spec-generate/test/check-spec.test.ts +415 -0
- package/i18n/skills/a2h-spec-generate/test/collect-specs.test.mjs +808 -0
- package/i18n/skills/a2h-spec-generate/test/feature-stem.test.mjs +157 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/components/MyCard.vue +9 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/feature/editor/index.vue +1 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/detail/index.vue +1 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/home/index.vue +33 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/settings/index.vue +1 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages.json +23 -0
- package/i18n/skills/a2h-spec-generate/test/inspect-uniapp.test.mjs +54 -0
- package/i18n/skills/a2h-spec-generate/test/prepare-facts.test.mjs +41 -0
- package/i18n/skills/a2h-spec-generate/test/publish-specs.test.mjs +295 -0
- package/i18n/skills/a2h-spec-generate/test/regroup-by-page.test.mjs +354 -0
- package/i18n/skills/a2h-spec-generate/test/render-tasks.test.mjs +596 -0
- package/i18n/skills/a2h-spec-generate/test/report.test.mjs +47 -0
- package/i18n/skills/a2h-utg-explorer/SKILL.md +126 -0
- package/i18n/skills/a2h-utg-explorer/references/architecture.md +282 -0
- package/i18n/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +908 -0
- package/i18n/skills/a2h-utg-explorer/scripts/final_utg.mjs +446 -0
- package/i18n/skills/a2h-utg-explorer/scripts/hint_check.mjs +147 -0
- package/i18n/skills/a2h-utg-explorer/scripts/hint_source.mjs +119 -0
- package/i18n/skills/a2h-utg-explorer/scripts/hybrid_route_cdp.mjs +376 -0
- package/i18n/skills/a2h-utg-explorer/scripts/recover_b.mjs +550 -0
- package/i18n/skills/a2h-utg-explorer/scripts/recover_d.mjs +647 -0
- package/i18n/skills/a2h-utg-explorer/scripts/seed_recipes.mjs +426 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +66 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +302 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/content_wait.test.mjs +207 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +252 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/direct_launch.test.mjs +130 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/final_utg.test.mjs +135 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/generalization_fixes.test.mjs +252 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +129 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/hybrid_route_identity.test.mjs +146 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +614 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +214 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/overflow_prefix.test.mjs +327 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/overlay_identity.test.mjs +204 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +393 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/pager_navigation.test.mjs +119 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/panel_routes.test.mjs +208 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +240 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/recover_b.test.mjs +173 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/recover_d.test.mjs +280 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/robustness_fixes.test.mjs +345 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +194 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/seed_recipes.test.mjs +261 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/semantics.test.mjs +102 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/state_ambiguity.test.mjs +92 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/twin_opener.test.mjs +119 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/variant_strings.test.mjs +63 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/diagnostics.mjs +196 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/hybrid_route.mjs +140 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +1562 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +47 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +2714 -0
- package/i18n/skills/a2h-utg-static/SKILL.md +372 -0
- package/i18n/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +248 -0
- package/i18n/skills/a2h-utg-static/references/view-interactions.md +215 -0
- package/i18n/skills/a2h-utg-static/scripts/assemble.mjs +2190 -0
- package/i18n/skills/a2h-utg-static/scripts/audit.mjs +268 -0
- package/i18n/skills/a2h-utg-static/scripts/click_paths.mjs +720 -0
- package/i18n/skills/a2h-utg-static/scripts/compose_body_text.mjs +250 -0
- package/i18n/skills/a2h-utg-static/scripts/compose_titles.mjs +374 -0
- package/i18n/skills/a2h-utg-static/scripts/compose_widgets.mjs +498 -0
- package/i18n/skills/a2h-utg-static/scripts/data_model.mjs +590 -0
- package/i18n/skills/a2h-utg-static/scripts/data_producers.mjs +431 -0
- package/i18n/skills/a2h-utg-static/scripts/fragment_nav.mjs +1137 -0
- package/i18n/skills/a2h-utg-static/scripts/hybrid_scope.mjs +705 -0
- package/i18n/skills/a2h-utg-static/scripts/interaction_sites.mjs +267 -0
- package/i18n/skills/a2h-utg-static/scripts/label_resolve.mjs +958 -0
- package/i18n/skills/a2h-utg-static/scripts/lib/hybrid-provenance.mjs +201 -0
- package/i18n/skills/a2h-utg-static/scripts/lib/uniapp-routes.mjs +195 -0
- package/i18n/skills/a2h-utg-static/scripts/nl_hints.mjs +545 -0
- package/i18n/skills/a2h-utg-static/scripts/presenter_nav.mjs +490 -0
- package/i18n/skills/a2h-utg-static/scripts/static_prior.mjs +956 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/regression_matrix.mjs +1261 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_callee_string_default.mjs +30 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_chrome_tokens.mjs +60 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_commented_out_trigger.mjs +111 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +125 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_vm_nav.mjs +289 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_data_model.mjs +120 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_data_producers.mjs +113 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_disabled_guard.mjs +42 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_drawer_panel_gesture.mjs +140 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_fresh_branch_guard.mjs +49 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hint_language.mjs +136 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_bundle_attribution.mjs +74 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_bundled_pages.mjs +181 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_provenance.mjs +150 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +457 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_title_renders.mjs +118 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_label_accessor_forms.mjs +187 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_label_source.mjs +70 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_launch_intent_guard.mjs +67 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_login_interceptor.mjs +368 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_mode_and_cb_param.mjs +172 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +78 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_nl_hint_grammar.mjs +42 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_nl_hints_gate.mjs +85 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_nl_hints_off_path.mjs +67 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_non_gesture_step_flag.mjs +62 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_preference_widgets.mjs +48 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_read_text_crlf.mjs +41 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_sealed_dialog_state.mjs +148 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_state_specific_hop.mjs +130 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_synthetic_label_identity.mjs +51 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_template_title.mjs +61 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_ui_elements_flow_filter.mjs +110 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_data_table.mjs +340 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_relative_url.mjs +125 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_routes.mjs +161 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +330 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_utg_specgen_boundary.mjs +45 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_viewpage_nav.mjs +340 -0
- package/i18n/skills/a2h-utg-static/scripts/uniapp_nav.mjs +1394 -0
- package/i18n/skills/a2h-utg-static/scripts/uniapp_widgets.mjs +244 -0
- package/i18n/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +769 -0
- package/index.js +1643 -0
- package/package.json +18 -168
- package/platforms/deveco/agents/code-reviewer.frontmatter.md +1 -1
- package/platforms/opencode/agents/code-reviewer.frontmatter.md +1 -1
- package/plugin.jsonc +12 -0
- package/skills/a2h-app-migrate/SKILL.md +31 -12
- package/skills/a2h-app-migrate/references/config.example.json +1 -0
- package/skills/a2h-app-migrate/references/feature-scope.md +121 -0
- package/skills/a2h-app-migrate/references/stage-map.md +4 -2
- package/skills/a2h-app-migrate/references/workflow.yaml +427 -103
- package/skills/a2h-app-migrate/scripts/android_index.mjs +35 -8
- package/skills/a2h-app-migrate/scripts/check_module_docs_done.mjs +39 -1
- package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +78 -6
- package/skills/a2h-app-migrate/scripts/check_spec_pipeline_done.mjs +144 -9
- package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +14 -1
- package/skills/a2h-app-migrate/scripts/check_utg_static_done.mjs +46 -5
- package/skills/a2h-app-migrate/scripts/diagnose.mjs +162 -0
- package/skills/a2h-app-migrate/scripts/env_preflight.mjs +178 -44
- package/skills/a2h-app-migrate/scripts/feature_scope.mjs +347 -0
- package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +81 -11
- package/skills/a2h-app-migrate/scripts/infer_android_root.mjs +17 -1
- package/skills/a2h-app-migrate/scripts/ledger.mjs +80 -10
- package/skills/a2h-app-migrate/scripts/migration_manifest.mjs +351 -0
- package/skills/a2h-app-migrate/scripts/paths_preflight.mjs +9 -23
- package/skills/a2h-app-migrate/scripts/resume_plan.mjs +72 -12
- package/skills/a2h-app-migrate/scripts/reuse_static_utg.mjs +33 -1
- package/skills/a2h-app-migrate/scripts/run_dir.mjs +137 -41
- package/skills/a2h-app-migrate/scripts/scope_model.mjs +255 -0
- package/skills/a2h-app-migrate/scripts/scope_report.mjs +128 -0
- package/skills/a2h-app-migrate/scripts/source_fp.mjs +120 -0
- package/skills/a2h-app-migrate/scripts/spec_layout.mjs +2 -0
- package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +38 -0
- package/skills/a2h-app-migrate/test/test_android_index.mjs +143 -0
- package/skills/a2h-app-migrate/test/test_apk_preflight.mjs +63 -0
- package/skills/a2h-app-migrate/test/test_arch_done.mjs +54 -0
- package/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +98 -0
- package/skills/a2h-app-migrate/test/test_config_example.mjs +42 -0
- package/skills/a2h-app-migrate/test/test_devecocli_docs_preflight.mjs +32 -0
- package/skills/a2h-app-migrate/test/test_ensure_utg_snapshot.mjs +147 -0
- package/skills/a2h-app-migrate/test/test_entry_guards.mjs +102 -0
- package/skills/a2h-app-migrate/test/test_env_requirements.mjs +713 -0
- package/skills/a2h-app-migrate/test/test_feature_scope.mjs +217 -0
- package/skills/a2h-app-migrate/test/test_finalize.mjs +117 -0
- package/skills/a2h-app-migrate/test/test_gate_checkpoint.mjs +146 -0
- package/skills/a2h-app-migrate/test/test_hmos_fingerprint.mjs +68 -0
- package/skills/a2h-app-migrate/test/test_i18n_engine_mirror.mjs +51 -0
- package/skills/a2h-app-migrate/test/test_image_probe.mjs +120 -0
- package/skills/a2h-app-migrate/test/test_incremental_acceptance.mjs +145 -0
- package/skills/a2h-app-migrate/test/test_incremental_phase2.mjs +223 -0
- package/skills/a2h-app-migrate/test/test_incremental_phase2_acceptance.mjs +157 -0
- package/skills/a2h-app-migrate/test/test_incremental_profile.mjs +84 -0
- package/skills/a2h-app-migrate/test/test_infer_android_root.mjs +101 -0
- package/skills/a2h-app-migrate/test/test_interaction.mjs +122 -0
- package/skills/a2h-app-migrate/test/test_json_io.mjs +32 -0
- package/skills/a2h-app-migrate/test/test_leaf_questions.mjs +150 -0
- package/skills/a2h-app-migrate/test/test_migration_manifest.mjs +225 -0
- package/skills/a2h-app-migrate/test/test_module_docs_done.mjs +86 -0
- package/skills/a2h-app-migrate/test/test_parse_args.mjs +69 -0
- package/skills/a2h-app-migrate/test/test_preflight_report.mjs +93 -0
- package/skills/a2h-app-migrate/test/test_resume_plan.mjs +271 -0
- package/skills/a2h-app-migrate/test/test_resume_summary.mjs +222 -0
- package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +136 -0
- package/skills/a2h-app-migrate/test/test_run_dir.mjs +552 -0
- package/skills/a2h-app-migrate/test/test_scope_model.mjs +172 -0
- package/skills/a2h-app-migrate/test/test_skill_doc.mjs +144 -0
- package/skills/a2h-app-migrate/test/test_spec_engine_acceptance.mjs +94 -0
- package/skills/a2h-app-migrate/test/test_spec_engine_contract.mjs +155 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +263 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +165 -0
- package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +511 -0
- package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +76 -0
- package/skills/a2h-app-migrate/test/test_ui_batch_capture_audit.mjs +106 -0
- package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +65 -0
- package/skills/a2h-app-migrate/test/test_ui_batch_gate.mjs +226 -0
- package/skills/a2h-app-migrate/test/test_uniapp_preflight.mjs +83 -0
- package/skills/a2h-app-migrate/test/test_user_facing_progress.mjs +43 -0
- package/skills/a2h-app-migrate/test/test_utg_dirs.mjs +41 -0
- package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +214 -0
- package/skills/a2h-app-migrate/test/test_validate_races.mjs +50 -0
- package/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +87 -0
- package/skills/a2h-arch-generate/SKILL.md +20 -17
- package/skills/a2h-arch-generate/references/database-schema-recovery.md +2 -2
- package/skills/a2h-arch-generate/references/harmony-project-inspection.md +8 -8
- package/skills/a2h-arch-generate/references/homegraph-workflow.md +25 -14
- package/skills/a2h-arch-generate/references/module-evidence-subagent.md +2 -2
- package/skills/a2h-arch-generate/references/source-baseline.md +4 -4
- package/skills/a2h-arch-generate/scripts/cleanup_intermediates.mjs +34 -3
- package/skills/a2h-arch-generate/scripts/create_project.mjs +24 -1
- package/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +35 -46
- package/skills/a2h-arch-generate/scripts/inspect_and_route.mjs +29 -5
- package/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +33 -40
- package/skills/a2h-arch-generate/scripts/module_create/generate.mjs +2 -3
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/build.gradle +11 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/AndroidManifest.xml +12 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/MainActivity.kt +8 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/NotesStore.kt +17 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/build.gradle +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/settings.gradle +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/AppScope/app.json5 +8 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/build-profile.json5 +14 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/src/main/ets/utils/Format.ets +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/src/main/ets/pages/Home.ets +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/src/main/ets/engine/SyncEngine.ets +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/hvigorfile.ts +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/oh-package.json5 +9 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/src/main/ets/pages/Index.ets +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/App.vue +10 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/manifest.json +6 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages/index/index.vue +16 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages.json +5 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/run_e2e.mjs +548 -0
- package/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +1260 -0
- package/skills/a2h-arch-generate/scripts/tests/test_cleanup.mjs +208 -0
- package/skills/a2h-arch-generate/scripts/tests/test_console_encoding.mjs +52 -0
- package/skills/a2h-arch-generate/scripts/tests/test_git_root.mjs +34 -0
- package/skills/a2h-arch-generate/scripts/tests/test_module_templates.mjs +70 -0
- package/skills/a2h-arch-generate/scripts/tests/test_router.mjs +164 -0
- package/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +2 -5
- package/skills/a2h-arch-generate/scripts/validate_incremental_docs.mjs +4 -2
- package/skills/a2h-arkts-logic-coder/SKILL.md +163 -15
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +3 -1
- package/skills/a2h-arkts-logic-coder/references/code-generation.md +120 -1
- package/skills/a2h-arkts-logic-coder/references/spec-design.md +46 -11
- package/skills/a2h-arkts-logic-coder/scripts/design/validate_spec_design_output.mjs +22 -25
- package/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +873 -0
- package/skills/a2h-arkts-logic-coder/test/golden/inspect_happy.json +20 -0
- package/skills/a2h-arkts-logic-coder/test/golden/move_design.md +18 -0
- package/skills/a2h-arkts-logic-coder/test/golden/move_design_crlf.md +18 -0
- package/skills/a2h-arkts-logic-coder/test/golden/move_spec.md +7 -0
- package/skills/a2h-arkts-logic-coder/test/golden/resolve_cases.json +36 -0
- package/skills/a2h-arkts-logic-coder/test/golden/validate_issue_file.md +12 -0
- package/skills/a2h-arkts-logic-coder/test/golden/validate_issues.json +57 -0
- package/skills/a2h-arkts-logic-coder/test/test_spec_design_scripts.mjs +547 -0
- package/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +596 -0
- package/skills/a2h-batch-ui-align/SKILL.md +78 -26
- package/skills/a2h-batch-ui-align/assets/ColorUtils.ets +16 -2
- package/skills/a2h-batch-ui-align/references/cards/alignment.md +5 -1
- package/skills/a2h-batch-ui-align/references/cards/geometry.md +6 -1
- package/skills/a2h-batch-ui-align/references/cards/interaction.md +2 -1
- package/skills/a2h-batch-ui-align/references/cards/resources.md +9 -3
- package/skills/a2h-batch-ui-align/references/cards/widgets.md +27 -3
- package/skills/a2h-batch-ui-align/references/cards/window.md +2 -1
- package/skills/a2h-batch-ui-align/references/checker-rules.md +301 -13
- package/skills/a2h-batch-ui-align/references/conversion-procedure.md +53 -13
- package/skills/a2h-batch-ui-align/references/host-dispatch.md +2 -0
- package/skills/a2h-batch-ui-align/references/incremental-scope.md +28 -9
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +14 -9
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +2 -2
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +28 -1
- package/skills/a2h-batch-ui-align/references/state-mgmt/_/350/243/205/351/245/260/345/231/250/351/200/237/346/237/245.md +30 -0
- package/skills/a2h-batch-ui-align/references/step3-capture.md +25 -6
- package/skills/a2h-batch-ui-align/references/step4-prepare.md +7 -2
- package/skills/a2h-batch-ui-align/references/step5-convert.md +33 -9
- package/skills/a2h-batch-ui-align/scripts/android_parse_fast.ts +6 -7
- package/skills/a2h-batch-ui-align/scripts/branch_coverage.mjs +155 -0
- package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +463 -22
- package/skills/a2h-batch-ui-align/scripts/capture_audit.mjs +474 -0
- package/skills/a2h-batch-ui-align/scripts/capture_fast.mjs +665 -0
- package/skills/a2h-batch-ui-align/scripts/capture_verify.mjs +552 -0
- package/skills/a2h-batch-ui-align/scripts/detach.mjs +5 -2
- package/skills/a2h-batch-ui-align/scripts/draw_coverage.mjs +264 -0
- package/skills/a2h-batch-ui-align/scripts/evidence_gate.mjs +263 -0
- package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +20 -3
- package/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +4 -5
- package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +220 -35
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +517 -41
- package/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +147 -0
- package/skills/a2h-batch-ui-align/scripts/image_probe.mjs +231 -54
- package/skills/a2h-batch-ui-align/scripts/list_existing.mjs +141 -0
- package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +239 -14
- package/skills/a2h-batch-ui-align/scripts/page_gap.mjs +210 -0
- package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +98 -11
- package/skills/a2h-batch-ui-align/scripts/progress_identity.mjs +208 -0
- package/skills/a2h-batch-ui-align/scripts/scroll_verdict.mjs +62 -0
- package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +118 -4
- package/skills/a2h-batch-ui-align/scripts/shell_requests.mjs +273 -0
- package/skills/a2h-batch-ui-align/scripts/state_doc.mjs +9 -4
- package/skills/a2h-batch-ui-align/scripts/static_check/core/android.ts +231 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/baseline.ts +79 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/i18n.ts +1 -5
- package/skills/a2h-batch-ui-align/scripts/static_check/core/parse.ts +90 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/core/scan.ts +44 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +61 -12
- package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +32 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +3 -17
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/android_immersive.ts +3 -3
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +1 -19
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/blur_mirrored.ts +2 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_invokes_callback.ts +84 -19
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/color_string.ts +11 -4
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/constant_coordinate.ts +2 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/dialog_backboard.ts +91 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/event_default_click.ts +179 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_dialog.ts +110 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_picker.ts +5 -5
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +339 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/image_source.ts +84 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/input_traps.ts +249 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +234 -5
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_host.ts +145 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_content.ts +2 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +110 -12
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_binds.ts +56 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_string.ts +96 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +179 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +3 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/popup_menu.ts +81 -8
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +102 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +54 -4
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/runtime_traps.ts +440 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +75 -23
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_delta.ts +178 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/swiper_index.ts +65 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +184 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/waterflow_sections.ts +231 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +4 -4
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/window_mode.ts +2 -3
- package/skills/a2h-batch-ui-align/scripts/static_check/scan_file.ts +30 -2
- package/skills/a2h-batch-ui-align/scripts/tests/agent_cli.test.mjs +231 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_a11y.test.mjs +598 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_align_tint.test.mjs +312 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_baseline.test.mjs +129 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_blur.test.mjs +217 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_builder_calls.test.mjs +323 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_canvas_pct.test.mjs +312 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_coolmall_runtime2.test.mjs +697 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_fidelity.test.mjs +507 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_hit_test.test.mjs +298 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_input_runtime.test.mjs +514 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +651 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_occlusion_offset_format.test.mjs +372 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_overlay_lottie.test.mjs +199 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_review_fixes.test.mjs +298 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rule_smoke.test.mjs +269 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rules.test.mjs +365 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_runtime_api.test.mjs +346 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_padding_raster.test.mjs +262 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_safearea.test.mjs +742 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_shell.test.mjs +91 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_theme.test.mjs +86 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_theme_runtime.test.mjs +95 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +473 -0
- package/skills/a2h-batch-ui-align/scripts/tests/branch_coverage.test.mjs +116 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +693 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_scope.test.mjs +291 -0
- package/skills/a2h-batch-ui-align/scripts/tests/capture_audit.test.mjs +179 -0
- package/skills/a2h-batch-ui-align/scripts/tests/capture_fast.test.mjs +56 -0
- package/skills/a2h-batch-ui-align/scripts/tests/capture_gate.test.mjs +197 -0
- package/skills/a2h-batch-ui-align/scripts/tests/capture_review_fixes.test.mjs +322 -0
- package/skills/a2h-batch-ui-align/scripts/tests/color_utils_asset.test.mjs +93 -0
- package/skills/a2h-batch-ui-align/scripts/tests/detect_paradigm.test.mjs +260 -0
- package/skills/a2h-batch-ui-align/scripts/tests/draw_coverage.test.mjs +244 -0
- package/skills/a2h-batch-ui-align/scripts/tests/evidence_gate.test.mjs +435 -0
- package/skills/a2h-batch-ui-align/scripts/tests/export_scroll_states.test.mjs +31 -0
- package/skills/a2h-batch-ui-align/scripts/tests/export_ui_info.test.mjs +742 -0
- package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/SearchMenuDialog.buggy.ets +95 -0
- package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/meta.json +21 -0
- package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/screenshot.png +0 -0
- package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/view.xml +35 -0
- package/skills/a2h-batch-ui-align/scripts/tests/generate_pages_json.test.mjs +123 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_commit.test.mjs +126 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_pack.test.mjs +363 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_pack_evidence.test.mjs +95 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +1782 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_watch.test.mjs +215 -0
- package/skills/a2h-batch-ui-align/scripts/tests/harmony_index.test.mjs +95 -0
- package/skills/a2h-batch-ui-align/scripts/tests/host_env.test.mjs +115 -0
- package/skills/a2h-batch-ui-align/scripts/tests/icon_coverage.test.mjs +314 -0
- package/skills/a2h-batch-ui-align/scripts/tests/image_probe.test.mjs +243 -0
- package/skills/a2h-batch-ui-align/scripts/tests/list_existing.test.mjs +157 -0
- package/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +326 -0
- package/skills/a2h-batch-ui-align/scripts/tests/occlusion.test.mjs +102 -0
- package/skills/a2h-batch-ui-align/scripts/tests/page_gap.test.mjs +115 -0
- package/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +356 -0
- package/skills/a2h-batch-ui-align/scripts/tests/progress_identity.test.mjs +174 -0
- package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +302 -0
- package/skills/a2h-batch-ui-align/scripts/tests/shell_requests.test.mjs +158 -0
- package/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +60 -0
- package/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +395 -0
- package/skills/a2h-batch-ui-align/scripts/tests/static_check_registry.test.mjs +122 -0
- package/skills/a2h-batch-ui-align/scripts/tests/test_bfs_exit.ts +49 -0
- package/skills/a2h-batch-ui-align/scripts/tests/text_color_diff.test.mjs +250 -0
- package/skills/a2h-coldstart-smoke-gate/SKILL.md +7 -4
- package/skills/a2h-dashboard-render/scripts/dashboard.mjs +12 -14
- package/skills/a2h-dashboard-render/scripts/device_capture.mjs +29 -30
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/broken.xml +1 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/expected.json +156 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/hmos.json +1 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/list.xml +1 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/nested_scroll.xml +1 -0
- package/skills/a2h-dashboard-render/test/test_artifact_contract.mjs +168 -0
- package/skills/a2h-dashboard-render/test/test_cli_check_registry.mjs +99 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +118 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +93 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_i18n.mjs +203 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +1369 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +318 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_ui_pipeline.mjs +81 -0
- package/skills/a2h-dashboard-render/test/test_device_capture_env.mjs +115 -0
- package/skills/a2h-dashboard-render/test/test_device_capture_policy.mjs +411 -0
- package/skills/a2h-dashboard-render/test/test_device_locale_dialogs.mjs +17 -0
- package/skills/a2h-dashboard-render/test/test_page_capture.mjs +147 -0
- package/skills/a2h-dashboard-render/test/test_usage_readers.mjs +512 -0
- package/skills/a2h-module-semantic-docs/SKILL.md +51 -13
- package/skills/a2h-module-semantic-docs/scripts/scan_modules.mjs +66 -11
- package/skills/a2h-module-semantic-docs/test/golden/module_structure.json +187 -0
- package/skills/a2h-module-semantic-docs/test/golden/module_understanding.json +351 -0
- package/skills/a2h-module-semantic-docs/test/golden/module_update_plan.json +495 -0
- package/skills/a2h-module-semantic-docs/test/golden/project_directory_structure.json +157 -0
- package/skills/a2h-module-semantic-docs/test/test_incremental_fingerprint.mjs +94 -0
- package/skills/a2h-module-semantic-docs/test/test_scan_and_commit.mjs +388 -0
- package/skills/a2h-page-specgen/SKILL.md +240 -0
- package/skills/a2h-page-specgen/references/behavior-ledger.md +1170 -0
- package/skills/a2h-page-specgen/references/body-language.md +179 -0
- package/skills/a2h-page-specgen/references/evidence.md +105 -0
- package/skills/a2h-page-specgen/references/execution-model.md +364 -0
- package/skills/a2h-page-specgen/references/footprint-and-grouping.md +255 -0
- package/skills/a2h-page-specgen/references/gates.md +323 -0
- package/skills/a2h-page-specgen/references/page-inventory.md +220 -0
- package/skills/a2h-page-specgen/references/scenario-authoring.md +272 -0
- package/skills/a2h-page-specgen/references/spec-example.md +312 -0
- package/skills/a2h-page-specgen/references/spec-template.md +210 -0
- package/skills/a2h-page-specgen/scripts/behavior-audit.mjs +2436 -0
- package/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +1833 -0
- package/skills/a2h-page-specgen/scripts/behavior-model.mjs +181 -0
- package/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +1205 -0
- package/skills/a2h-page-specgen/scripts/dispatch.mjs +212 -0
- package/skills/a2h-page-specgen/scripts/entry-evidence.mjs +1123 -0
- package/skills/a2h-page-specgen/scripts/facts-build.mjs +1613 -0
- package/skills/a2h-page-specgen/scripts/finalize.mjs +825 -0
- package/skills/a2h-page-specgen/scripts/footprint.mjs +1650 -0
- package/skills/a2h-page-specgen/scripts/gate.mjs +848 -0
- package/skills/a2h-page-specgen/scripts/interactions.mjs +344 -0
- package/skills/a2h-page-specgen/scripts/inventory.mjs +371 -0
- package/skills/a2h-page-specgen/scripts/lib/contracts.mjs +155 -0
- package/skills/a2h-page-specgen/scripts/lib/deps-source.mjs +399 -0
- package/skills/a2h-page-specgen/scripts/lib/draft-store.mjs +229 -0
- package/skills/a2h-page-specgen/scripts/lib/footprint-roles.mjs +278 -0
- package/skills/a2h-page-specgen/scripts/lib/fsx.mjs +79 -0
- package/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +235 -0
- package/skills/a2h-page-specgen/scripts/lib/hg.mjs +683 -0
- package/skills/a2h-page-specgen/scripts/lib/homegraph-process.mjs +102 -0
- package/skills/a2h-page-specgen/scripts/lib/homegraph-query.mjs +161 -0
- package/skills/a2h-page-specgen/scripts/lib/ledger.mjs +478 -0
- package/skills/a2h-page-specgen/scripts/lib/main-module.mjs +24 -0
- package/skills/a2h-page-specgen/scripts/lib/operation-reviews.mjs +913 -0
- package/skills/a2h-page-specgen/scripts/lib/prose.mjs +238 -0
- package/skills/a2h-page-specgen/scripts/lib/reach.mjs +53 -0
- package/skills/a2h-page-specgen/scripts/lib/recovery-policy.mjs +28 -0
- package/skills/a2h-page-specgen/scripts/lib/scope.mjs +355 -0
- package/skills/a2h-page-specgen/scripts/lib/semantic-detail.mjs +353 -0
- package/skills/a2h-page-specgen/scripts/lib/source-text.mjs +497 -0
- package/skills/a2h-page-specgen/scripts/lib/symbols.mjs +125 -0
- package/skills/a2h-page-specgen/scripts/lib/utg-io.mjs +110 -0
- package/skills/a2h-page-specgen/scripts/lib/waker-event-store.mjs +658 -0
- package/skills/a2h-page-specgen/scripts/operation-evidence.mjs +1542 -0
- package/skills/a2h-page-specgen/scripts/prepare.mjs +840 -0
- package/skills/a2h-page-specgen/scripts/render.mjs +294 -0
- package/skills/a2h-page-specgen/scripts/report.mjs +340 -0
- package/skills/a2h-page-specgen/scripts/submission.mjs +697 -0
- package/skills/a2h-page-specgen/scripts/submit.mjs +85 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/README.md +77 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +871 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.java +15 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.json +26 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +347 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +298 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.java +36 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.json +43 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +347 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +298 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +2694 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +726 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +108 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +347 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.review.md +65 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +265 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.java +47 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.json +54 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +347 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +298 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/branch-checklist.md +32 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/gate-results.json +22 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/manifest.json +111 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/portability.test.mjs +141 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/review.md +22 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +515 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/cases.example.json +57 -0
- package/skills/a2h-page-specgen/scripts/test/android-entry-evidence.test.mjs +585 -0
- package/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +755 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-audit-group.test.mjs +543 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-audit-post.test.mjs +652 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +1231 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-component-gate.test.mjs +494 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +1513 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-finalize.test.mjs +758 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +623 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-model.test.mjs +116 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +795 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-regression.test.mjs +883 -0
- package/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +205 -0
- package/skills/a2h-page-specgen/scripts/test/dispatch.test.mjs +258 -0
- package/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +475 -0
- package/skills/a2h-page-specgen/scripts/test/facts.test.mjs +1203 -0
- package/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +243 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Api.kt +20 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/BothAnnotations.kt +28 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Cache.kt +7 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Comments.kt +26 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Mmkv.kt +7 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Models.kt +19 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Pair.kt +7 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Prefs.kt +9 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Room.kt +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Sample.kt +43 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Templates.kt +34 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Timeouts.kt +8 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/androidTest/Helper.kt +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/build.gradle.kts +16 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/i18n/en.js.txt +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/i18n/zh.js.txt +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/libs.versions.toml +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/package.json +10 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values/strings.xml +10 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-b+zh+Hans/strings.xml +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-land/strings.xml +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-night/strings.xml +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-v21/strings.xml +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-zh/strings.xml +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/test/Legacy.kt +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/weather.proto +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-container/src/AppPreferences.kt +13 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-container/src/SettingsViewModel.kt +16 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-dao/src/UserDao.kt +28 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-moko/i18n/src/commonMain/moko-resources/base/strings.xml +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-moko/i18n/src/commonMain/moko-resources/fil/strings.xml +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/res/values/arrays.xml +25 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/res/values/strings.xml +10 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/res/xml/prefs.xml +27 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/Api.java +19 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/Datastore.kt +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/Settings.java +13 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/forecast.js +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/store.js +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-receiver/src/BasePreferences.kt +13 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-receiver/src/Screen.kt +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-receiver/src/UiPreferences.kt +8 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-retrofit/src/AuthAPI.kt +26 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/AndroidManifest.xml +20 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/feature/auth/navigation/ScreenRoute.kt +8 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/pages.json +19 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/components/Widget.vue +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/pages/detail/detail.vue +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/pages/index/index.vue +24 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/store/userStore.js +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/uni_modules/uview-ui/components/u-thing.js +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp.mkdb.mjs +144 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +112 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanels.java +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanels.kt +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanelsKotlinForms.kt +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ChildContent.java +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ComposeLifecycle.kt +26 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/LifecycleCallAndOverride.java +10 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/LifecycleHooks.kt +31 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/MainFragment.java +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ManyLifecycleHooks.kt +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ManyListeners.java +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/PlainActivity.java +3 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/RefreshOnResume.java +7 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/RefreshResultNoise.kt +36 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/SelectionView.java +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ShowPage.vue +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ThirdPartyLifecycle.kt +25 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/fragment_detail.xml +1 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/App.vue +1 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-conflict-record.json +17 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-record.json +17 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/manifest.json +3 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages/list/index.vue +80 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages.json +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/source-record.json +15 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/components/RefreshPanel.vue +15 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/composables/useRefresh.ts +50 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/pages/help/index.vue +9 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/state/store.ts +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/utg/click_paths.json +28 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/utg/fold-chain/utg.json +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/utg/utg.json +34 -0
- package/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +1029 -0
- package/skills/a2h-page-specgen/scripts/test/footprint-roles.test.mjs +172 -0
- package/skills/a2h-page-specgen/scripts/test/fsx.test.mjs +32 -0
- package/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +143 -0
- package/skills/a2h-page-specgen/scripts/test/gate.test.mjs +1078 -0
- package/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +332 -0
- package/skills/a2h-page-specgen/scripts/test/helpers.mjs +188 -0
- package/skills/a2h-page-specgen/scripts/test/hg.test.mjs +549 -0
- package/skills/a2h-page-specgen/scripts/test/homegraph-process-fixture.mjs +130 -0
- package/skills/a2h-page-specgen/scripts/test/homegraph-query.test.mjs +288 -0
- package/skills/a2h-page-specgen/scripts/test/integration.test.mjs +368 -0
- package/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +310 -0
- package/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +250 -0
- package/skills/a2h-page-specgen/scripts/test/keys.test.mjs +776 -0
- package/skills/a2h-page-specgen/scripts/test/ledger-lock.test.mjs +77 -0
- package/skills/a2h-page-specgen/scripts/test/ledger.test.mjs +464 -0
- package/skills/a2h-page-specgen/scripts/test/main-module.test.mjs +43 -0
- package/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +1002 -0
- package/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +1103 -0
- package/skills/a2h-page-specgen/scripts/test/prepare-homegraph-reproduction.mjs +365 -0
- package/skills/a2h-page-specgen/scripts/test/prepare-homegraph.test.mjs +569 -0
- package/skills/a2h-page-specgen/scripts/test/prepare-index.test.mjs +160 -0
- package/skills/a2h-page-specgen/scripts/test/prepare-pipeline.test.mjs +326 -0
- package/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +236 -0
- package/skills/a2h-page-specgen/scripts/test/prose.test.mjs +398 -0
- package/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +531 -0
- package/skills/a2h-page-specgen/scripts/test/reach.test.mjs +93 -0
- package/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +418 -0
- package/skills/a2h-page-specgen/scripts/test/recovery-policy.test.mjs +14 -0
- package/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +1782 -0
- package/skills/a2h-page-specgen/scripts/test/render.test.mjs +546 -0
- package/skills/a2h-page-specgen/scripts/test/report.test.mjs +296 -0
- package/skills/a2h-page-specgen/scripts/test/review-followup.test.mjs +467 -0
- package/skills/a2h-page-specgen/scripts/test/scope.test.mjs +292 -0
- package/skills/a2h-page-specgen/scripts/test/semantic-detail.test.mjs +949 -0
- package/skills/a2h-page-specgen/scripts/test/source-text.test.mjs +181 -0
- package/skills/a2h-page-specgen/scripts/test/submit.test.mjs +1231 -0
- package/skills/a2h-page-specgen/scripts/test/uniapp-operation-evidence.test.mjs +639 -0
- package/skills/a2h-page-specgen/scripts/test/utg-footprint-contract.test.mjs +274 -0
- package/skills/a2h-page-specgen/scripts/test/utg-io.test.mjs +90 -0
- package/skills/a2h-page-specgen/scripts/test/waker-event-store.test.mjs +1365 -0
- package/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +1801 -0
- package/skills/a2h-page-specgen/scripts/test/waker.test.mjs +1993 -0
- package/skills/a2h-page-specgen/scripts/test/watchdog.test.mjs +342 -0
- package/skills/a2h-page-specgen/scripts/waker.mjs +1301 -0
- package/skills/a2h-page-specgen/scripts/watchdog.mjs +299 -0
- package/skills/a2h-resource-convert/SKILL.md +9 -1
- package/skills/a2h-resource-convert/references/code-vector-icon-rules.md +2 -1
- package/skills/a2h-resource-convert/references/incremental-page-migration.md +23 -2
- package/skills/a2h-resource-convert/references/lottie-conversion-rules.md +7 -0
- package/skills/a2h-resource-convert/references/step4-resource-types.md +2 -0
- package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +115 -53
- package/skills/a2h-resource-convert/scripts/a2h_resource_incremental.ts +68 -0
- package/skills/a2h-resource-convert/scripts/code_vector_icons.ts +45 -3
- package/skills/a2h-resource-convert/scripts/extract_page_resources.ts +42 -5
- package/skills/a2h-resource-convert/scripts/lottie_hosts.ts +415 -0
- package/skills/a2h-resource-convert/scripts/lottie_refs.ts +398 -0
- package/skills/a2h-resource-convert/scripts/merge_mapping.ts +316 -0
- package/skills/a2h-resource-convert/scripts/svg_fidelity_check.ts +2 -1
- package/skills/a2h-resource-convert/scripts/tests/adaptive_icon.test.mjs +182 -0
- package/skills/a2h-resource-convert/scripts/tests/app_identity.test.mjs +206 -0
- package/skills/a2h-resource-convert/scripts/tests/code_vector_guard.test.mjs +75 -0
- package/skills/a2h-resource-convert/scripts/tests/docs_only_i18n.test.mjs +44 -0
- package/skills/a2h-resource-convert/scripts/tests/lottie_hosts.test.mjs +222 -0
- package/skills/a2h-resource-convert/scripts/tests/lottie_incremental.test.mjs +178 -0
- package/skills/a2h-resource-convert/scripts/tests/merge_mapping.test.mjs +201 -0
- package/skills/a2h-spec-design-pipeline/SKILL.md +98 -121
- package/skills/a2h-spec-design-pipeline/references/coding-loop.md +170 -45
- package/skills/a2h-spec-design-pipeline/references/execution-model.md +62 -12
- package/skills/a2h-spec-design-pipeline/references/final-report-template.md +6 -4
- package/skills/a2h-spec-design-pipeline/references/homegraph-cli.md +229 -0
- package/skills/a2h-spec-design-pipeline/references/initialization.md +49 -6
- package/skills/a2h-spec-design-pipeline/references/merge-queue.md +198 -54
- package/skills/a2h-spec-design-pipeline/references/permission-index.json +206 -0
- package/skills/a2h-spec-design-pipeline/references/post-loop.md +23 -0
- package/skills/a2h-spec-design-pipeline/references/resolver-prompt.md +67 -0
- package/skills/a2h-spec-design-pipeline/references/review-loop.md +46 -0
- package/skills/a2h-spec-design-pipeline/references/scripts.md +47 -14
- package/skills/a2h-spec-design-pipeline/references/shared-layer.md +390 -0
- package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +148 -29
- package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +104 -24
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleMeta.json +18 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleSet.json +16 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/README.md +47 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-param-contract.json +31 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-permission-map.json +698 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-cn.md +96 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-en.md +103 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-cn.md +124 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-en.md +138 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-cn.md +106 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-en.md +113 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ApiPermissionDeclaredCheck.js +705 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ArkUIRuntimePitfallCheck.js +1063 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/PlatformApiContractCheck.js +473 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/platform/ExtraDataSubCheck.js +485 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/index.js +13 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/package.json +18 -0
- package/skills/a2h-spec-design-pipeline/scripts/branch_landed.ts +12 -38
- package/skills/a2h-spec-design-pipeline/scripts/check_design_map.ts +108 -0
- package/skills/a2h-spec-design-pipeline/scripts/check_permissions.ts +420 -0
- package/skills/a2h-spec-design-pipeline/scripts/check_review_evidence.ts +45 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/evidence.mjs +95 -7
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/fold.mjs +156 -7
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/landing.mjs +71 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/progress.mjs +22 -3
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/reconcile.mjs +63 -4
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/wait.mjs +33 -3
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/worktree.mjs +2 -2
- package/skills/a2h-spec-design-pipeline/scripts/dispatch.mjs +232 -13
- package/skills/a2h-spec-design-pipeline/scripts/ensure_index.ts +866 -0
- package/skills/a2h-spec-design-pipeline/scripts/fixtures/homecheck-stub.cjs +47 -0
- package/skills/a2h-spec-design-pipeline/scripts/homecheck_scan.ts +220 -44
- package/skills/a2h-spec-design-pipeline/scripts/lib/shared_classes.ts +113 -0
- package/skills/a2h-spec-design-pipeline/scripts/lib/shared_docs.ts +202 -0
- package/skills/a2h-spec-design-pipeline/scripts/lib/wiring.ts +58 -0
- package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +178 -14
- package/skills/a2h-spec-design-pipeline/scripts/resolve_wiring.ts +3 -0
- package/skills/a2h-spec-design-pipeline/scripts/resolver_prompt.ts +368 -0
- package/skills/a2h-spec-design-pipeline/scripts/scan_shared.ts +642 -0
- package/skills/a2h-spec-design-pipeline/scripts/sync_permission_index.ts +340 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_api_permission_declared.ts +281 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_arkui_runtime_pitfall.ts +690 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_check_design_map.ts +46 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_check_permissions.ts +201 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_commands.mjs +42 -8
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_e2e.mjs +27 -9
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_evidence.mjs +242 -9
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_fold.mjs +192 -7
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_landing.mjs +531 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_progress.mjs +49 -1
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_reconcile.mjs +92 -4
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_wait.mjs +51 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_index.ts +572 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_index_real.ts +56 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_homecheck_scan.ts +17 -10
- package/skills/a2h-spec-design-pipeline/scripts/test_homegraph_docs.ts +217 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_permission_index.ts +214 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +155 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_platform_api_contract.ts +308 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_resolve_wiring.ts +14 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_resolver_prompt.ts +401 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_scan_shared.ts +996 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_classes.ts +80 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_docs.ts +205 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_docs.ts +165 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_e2e.ts +85 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_validate_shared_manifest.ts +720 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_wiring.ts +40 -0
- package/skills/a2h-spec-design-pipeline/scripts/validate_shared_manifest.ts +566 -0
- package/skills/a2h-spec-generate/SKILL.md +89 -23
- package/skills/a2h-spec-generate/references/batch-mode.md +78 -17
- package/skills/a2h-spec-generate/references/dispatch-watchdog.md +150 -0
- package/skills/a2h-spec-generate/references/fusion-task-contract.md +7 -0
- package/skills/a2h-spec-generate/references/review-checklist.md +1 -0
- package/skills/a2h-spec-generate/references/specs.schema.json +24 -11
- package/skills/a2h-spec-generate/references/synthesis-rules.md +4 -2
- package/skills/a2h-spec-generate/references/worker-rules.md +6 -3
- package/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +4 -5
- package/skills/a2h-spec-generate/scripts/check_spec.ts +145 -14
- package/skills/a2h-spec-generate/scripts/collect-specs.mjs +261 -19
- package/skills/a2h-spec-generate/scripts/dispatch-watch.mjs +1168 -0
- package/skills/a2h-spec-generate/scripts/ensure-index.mjs +1 -2
- package/skills/a2h-spec-generate/scripts/feature-stem.mjs +1 -2
- package/skills/a2h-spec-generate/scripts/publish-specs.mjs +1 -2
- package/skills/a2h-spec-generate/scripts/regroup-by-page.mjs +1 -2
- package/skills/a2h-spec-generate/scripts/render-tasks.mjs +25 -46
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +26 -27
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +3 -6
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +31 -32
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +2 -3
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +15 -26
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +102 -81
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/behavior-seed.ts +39 -19
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/library-evidence.ts +12 -13
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/navigation-guard.ts +363 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +35 -196
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +3 -1
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +22 -96
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +3 -4
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/contracts.ts +1 -1
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +74 -7
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/prepare.ts +51 -7
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +42 -111
- package/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +1 -20
- package/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +1 -2
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +3 -4
- package/skills/a2h-spec-generate/scripts/reqgen/test/control-fact-join.test.ts +50 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/control-name-uniapp.test.ts +75 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/cross-area-anchor.test.ts +256 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fixtures/fusion-run.ts +243 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fixtures/zip.ts +63 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-area-facts.test.ts +650 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-detectors.test.ts +176 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-e2e.test.ts +103 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-schema.test.ts +111 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-seed.test.ts +195 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-selfcheck.test.ts +307 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +347 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +1948 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-library-evidence.test.ts +239 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-navigation-guard.test.ts +277 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +844 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-scope.test.ts +339 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-selfcheck.test.ts +1253 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +608 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-cli-blockers.test.ts +117 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-scope.test.ts +411 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-seeds.test.ts +175 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-task-contract.test.ts +300 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-v4.test.ts +1061 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/specgen-completeness.test.ts +286 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/stagem-stored-path.test.ts +25 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/uniapp-scanner.test.ts +159 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/zip.test.ts +61 -0
- package/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +879 -0
- package/skills/a2h-spec-generate/test/check-spec.test.ts +430 -0
- package/skills/a2h-spec-generate/test/collect-specs.test.mjs +811 -0
- package/skills/a2h-spec-generate/test/detect-project.test.mjs +37 -0
- package/skills/a2h-spec-generate/test/dispatch-watch.test.mjs +606 -0
- package/skills/a2h-spec-generate/test/ensure-index.test.mjs +229 -0
- package/skills/a2h-spec-generate/test/feature-stem.test.mjs +157 -0
- package/skills/a2h-spec-generate/test/fixtures/android/app/src/main/AndroidManifest.xml +3 -0
- package/skills/a2h-spec-generate/test/fixtures/android/build.gradle +3 -0
- package/skills/a2h-spec-generate/test/fixtures/android/settings.gradle +3 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/package.json +9 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/App.vue +8 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/components/MyCard.vue +9 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/feature/editor/index.vue +1 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/main.ts +6 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/manifest.json +4 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/detail/index.vue +1 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/home/index.vue +33 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/settings/index.vue +1 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages.json +23 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/services/items.ts +3 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/tsconfig.json +8 -0
- package/skills/a2h-spec-generate/test/fixtures/unknown/README.txt +1 -0
- package/skills/a2h-spec-generate/test/inspect-uniapp.test.mjs +54 -0
- package/skills/a2h-spec-generate/test/prepare-facts.test.mjs +41 -0
- package/skills/a2h-spec-generate/test/publication-verdict.test.mjs +182 -0
- package/skills/a2h-spec-generate/test/publish-specs.test.mjs +295 -0
- package/skills/a2h-spec-generate/test/regroup-by-page.test.mjs +354 -0
- package/skills/a2h-spec-generate/test/render-tasks.test.mjs +596 -0
- package/skills/a2h-spec-generate/test/report.test.mjs +47 -0
- package/skills/a2h-utg-explorer/SKILL.md +9 -3
- package/skills/a2h-utg-explorer/references/architecture.md +7 -0
- package/skills/a2h-utg-explorer/scripts/audit.mjs +8 -2
- package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +120 -85
- package/skills/a2h-utg-explorer/scripts/direct_launch.mjs +47 -2
- package/skills/a2h-utg-explorer/scripts/hint_check.mjs +1 -2
- package/skills/a2h-utg-explorer/scripts/hybrid_route_cdp.mjs +376 -0
- package/skills/a2h-utg-explorer/scripts/plan.mjs +8 -0
- package/skills/a2h-utg-explorer/scripts/recover.mjs +1 -1
- package/skills/a2h-utg-explorer/scripts/recover_d.mjs +288 -21
- package/skills/a2h-utg-explorer/scripts/rejudge.mjs +5 -3
- package/skills/a2h-utg-explorer/scripts/report.mjs +89 -0
- package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +67 -10
- package/skills/a2h-utg-explorer/scripts/run_device.mjs +10 -2
- package/skills/a2h-utg-explorer/scripts/seed_recipes.mjs +426 -0
- package/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +66 -0
- package/skills/a2h-utg-explorer/scripts/tests/blank_wait.test.mjs +126 -0
- package/skills/a2h-utg-explorer/scripts/tests/calendar_round_fixes.test.mjs +244 -0
- package/skills/a2h-utg-explorer/scripts/tests/chain.test.mjs +45 -0
- package/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +302 -0
- package/skills/a2h-utg-explorer/scripts/tests/content_wait.test.mjs +207 -0
- package/skills/a2h-utg-explorer/scripts/tests/coverage_rules.test.mjs +104 -0
- package/skills/a2h-utg-explorer/scripts/tests/d_prereqs.test.mjs +231 -0
- package/skills/a2h-utg-explorer/scripts/tests/default_override.test.mjs +109 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_health.test.mjs +160 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_locale_dialogs.test.mjs +29 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_locale_identity.test.mjs +77 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_lock_retry.test.mjs +187 -0
- package/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +254 -0
- package/skills/a2h-utg-explorer/scripts/tests/direct_launch.test.mjs +130 -0
- package/skills/a2h-utg-explorer/scripts/tests/explorer_review_fixes.test.mjs +137 -0
- package/skills/a2h-utg-explorer/scripts/tests/final_utg.test.mjs +135 -0
- package/skills/a2h-utg-explorer/scripts/tests/first_round_phases.test.mjs +16 -0
- package/skills/a2h-utg-explorer/scripts/tests/foreground_spelling.test.mjs +155 -0
- package/skills/a2h-utg-explorer/scripts/tests/fresh_state_plan.test.mjs +78 -0
- package/skills/a2h-utg-explorer/scripts/tests/generalization_fixes.test.mjs +252 -0
- package/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +129 -0
- package/skills/a2h-utg-explorer/scripts/tests/holds_without_data_parity.test.mjs +26 -0
- package/skills/a2h-utg-explorer/scripts/tests/hybrid_route.test.mjs +120 -0
- package/skills/a2h-utg-explorer/scripts/tests/hybrid_route_identity.test.mjs +146 -0
- package/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +614 -0
- package/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +214 -0
- package/skills/a2h-utg-explorer/scripts/tests/launch_failure.test.mjs +40 -0
- package/skills/a2h-utg-explorer/scripts/tests/node_coverage.test.mjs +193 -0
- package/skills/a2h-utg-explorer/scripts/tests/overflow_prefix.test.mjs +327 -0
- package/skills/a2h-utg-explorer/scripts/tests/overlay_identity.test.mjs +204 -0
- package/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +393 -0
- package/skills/a2h-utg-explorer/scripts/tests/pager_navigation.test.mjs +119 -0
- package/skills/a2h-utg-explorer/scripts/tests/panel_routes.test.mjs +208 -0
- package/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +240 -0
- package/skills/a2h-utg-explorer/scripts/tests/pr169_review_fixes.test.mjs +218 -0
- package/skills/a2h-utg-explorer/scripts/tests/pr191_review_fixes.test.mjs +292 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover.test.mjs +212 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover_b.test.mjs +173 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover_d.test.mjs +280 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover_d_grounding.test.mjs +164 -0
- package/skills/a2h-utg-explorer/scripts/tests/replay_reroute.test.mjs +143 -0
- package/skills/a2h-utg-explorer/scripts/tests/review_fixes.test.mjs +213 -0
- package/skills/a2h-utg-explorer/scripts/tests/robustness_fixes.test.mjs +345 -0
- package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +458 -0
- package/skills/a2h-utg-explorer/scripts/tests/run_cycle_follow.test.mjs +35 -0
- package/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +194 -0
- package/skills/a2h-utg-explorer/scripts/tests/scope.test.mjs +229 -0
- package/skills/a2h-utg-explorer/scripts/tests/scroll_sweep.test.mjs +336 -0
- package/skills/a2h-utg-explorer/scripts/tests/seed_recipes.test.mjs +261 -0
- package/skills/a2h-utg-explorer/scripts/tests/semantics.test.mjs +102 -0
- package/skills/a2h-utg-explorer/scripts/tests/snapshot_integrity.test.mjs +142 -0
- package/skills/a2h-utg-explorer/scripts/tests/state_ambiguity.test.mjs +92 -0
- package/skills/a2h-utg-explorer/scripts/tests/string_tables_twin_ties.test.mjs +83 -0
- package/skills/a2h-utg-explorer/scripts/tests/tar_fixture.mjs +12 -0
- package/skills/a2h-utg-explorer/scripts/tests/twin_opener.test.mjs +119 -0
- package/skills/a2h-utg-explorer/scripts/tests/u2_backend.test.mjs +346 -0
- package/skills/a2h-utg-explorer/scripts/tests/ui_state_anchors.test.mjs +112 -0
- package/skills/a2h-utg-explorer/scripts/tests/variant_strings.test.mjs +63 -0
- package/skills/a2h-utg-explorer/scripts/tests/worklist_parts.test.mjs +24 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +135 -7
- package/skills/a2h-utg-explorer/scripts/utg_explorer/diagnostics.mjs +196 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/hybrid_route.mjs +140 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +245 -69
- package/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +47 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/strings.mjs +164 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +718 -42
- package/skills/a2h-utg-explorer/scripts/variant.mjs +57 -11
- package/skills/a2h-utg-static/SKILL.md +6 -2
- package/skills/a2h-utg-static/scripts/assemble.mjs +93 -3
- package/skills/a2h-utg-static/scripts/click_paths.mjs +135 -25
- package/skills/a2h-utg-static/scripts/compose_body_text.mjs +3 -3
- package/skills/a2h-utg-static/scripts/compose_overlay.mjs +110 -3
- package/skills/a2h-utg-static/scripts/compose_titles.mjs +5 -5
- package/skills/a2h-utg-static/scripts/compose_widgets.mjs +4 -4
- package/skills/a2h-utg-static/scripts/data_model.mjs +590 -0
- package/skills/a2h-utg-static/scripts/data_producers.mjs +431 -0
- package/skills/a2h-utg-static/scripts/fragment_nav.mjs +2 -3
- package/skills/a2h-utg-static/scripts/hybrid_scope.mjs +46 -1
- package/skills/a2h-utg-static/scripts/label_resolve.mjs +49 -4
- package/skills/a2h-utg-static/scripts/lib/hybrid-provenance.mjs +201 -0
- package/skills/a2h-utg-static/scripts/lib/uniapp-routes.mjs +195 -0
- package/skills/a2h-utg-static/scripts/menu_nav.mjs +1 -1
- package/skills/a2h-utg-static/scripts/nl_hints.mjs +34 -7
- package/skills/a2h-utg-static/scripts/presenter_nav.mjs +1 -2
- package/skills/a2h-utg-static/scripts/route_interceptor.mjs +21 -7
- package/skills/a2h-utg-static/scripts/run_pipeline.mjs +86 -4
- package/skills/a2h-utg-static/scripts/static_prior.mjs +26 -29
- package/skills/a2h-utg-static/scripts/tests/test_activity_gates.mjs +84 -0
- package/skills/a2h-utg-static/scripts/tests/test_carry_answers.mjs +30 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +18 -0
- package/skills/a2h-utg-static/scripts/tests/test_data_model.mjs +120 -0
- package/skills/a2h-utg-static/scripts/tests/test_data_producers.mjs +114 -0
- package/skills/a2h-utg-static/scripts/tests/test_guard_kinds_locale.mjs +12 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_provenance.mjs +150 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +165 -1
- package/skills/a2h-utg-static/scripts/tests/test_library_activity.mjs +45 -0
- package/skills/a2h-utg-static/scripts/tests/test_login_interceptor.mjs +38 -0
- package/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +35 -1
- package/skills/a2h-utg-static/scripts/tests/test_nl_hints_default_override.mjs +50 -0
- package/skills/a2h-utg-static/scripts/tests/test_pipeline_llm_phases.mjs +21 -0
- package/skills/a2h-utg-static/scripts/tests/test_pr169_review_fixes.mjs +172 -0
- package/skills/a2h-utg-static/scripts/tests/test_redirect_path_cost.mjs +136 -0
- package/skills/a2h-utg-static/scripts/tests/test_route_token_words.mjs +29 -1
- package/skills/a2h-utg-static/scripts/tests/test_uniapp_route_jump.mjs +175 -0
- package/skills/a2h-utg-static/scripts/tests/test_uniapp_routes.mjs +161 -0
- package/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +99 -0
- package/skills/a2h-utg-static/scripts/tests/test_utg_specgen_boundary.mjs +45 -0
- package/skills/a2h-utg-static/scripts/tests/test_vm_nav_helper_navigate.mjs +21 -0
- package/skills/a2h-utg-static/scripts/uniapp_nav.mjs +112 -69
- package/skills/a2h-utg-static/scripts/vm_nav.mjs +9 -1
- package/README.md +0 -439
- package/dist/cli/config-store.js +0 -128
- package/dist/cli/config.js +0 -48
- package/dist/cli/editors.json +0 -114
- package/dist/cli/env-vars.js +0 -127
- package/dist/cli/index.js +0 -73
- package/dist/cli/init.js +0 -2513
- package/dist/cli/uninstall.js +0 -406
- package/dist/platform/compose.js +0 -228
- package/dist/platform/frontmatter.js +0 -151
- package/dist/platform/installer.js +0 -417
- package/dist/platform/registry.js +0 -337
- package/dist/platform/transform.js +0 -363
- package/dist/platform/types.js +0 -9
- package/dist/platform/validate.js +0 -152
- package/dist/utils/regex.js +0 -7
- package/env-requirements.json +0 -511
- package/resource/choose_editor.png +0 -0
- package/resource/convert_pipeline_process.svg +0 -114
- package/resource/project_architecture.svg +0 -120
- 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/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-app-migrate/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-arch-generate/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-arch-generate/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-arkts-logic-coder/scripts/design/i18n-term.d.mts +0 -5
- package/skills/a2h-arkts-logic-coder/scripts/design/i18n-term.mjs +0 -54
- package/skills/a2h-batch-ui-align/references/source-only-tier.md +0 -38
- package/skills/a2h-batch-ui-align/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-batch-ui-align/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-dashboard-render/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-dashboard-render/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-resource-convert/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-resource-convert/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-spec-design-pipeline/scripts/ensure_wt_index.ts +0 -885
- package/skills/a2h-spec-design-pipeline/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-spec-design-pipeline/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_wt_index.ts +0 -856
- package/skills/a2h-spec-design-pipeline/scripts/test_i18n_term.ts +0 -70
- package/skills/a2h-spec-generate/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-spec-generate/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-spec-generate/scripts/reqgen/src/i18n-term.d.mts +0 -5
- package/skills/a2h-spec-generate/scripts/reqgen/src/i18n-term.mjs +0 -54
- package/skills/a2h-utg-explorer/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-utg-explorer/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-utg-static/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-utg-static/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-utg-static/scripts/tests/test_i18n_term.mjs +0 -155
|
@@ -0,0 +1,1170 @@
|
|
|
1
|
+
# Behavior Evidence Ledger Protocol
|
|
2
|
+
|
|
3
|
+
This document is the worker-facing protocol for `behavior-ledger-v3` with the
|
|
4
|
+
`static-source-v2` coverage profile. It describes the immutable evidence that
|
|
5
|
+
`prepare.mjs` writes, the discovery document a worker owns, both audits, the
|
|
6
|
+
exact draft fields that bind authoring to discovery, and the digest fences that
|
|
7
|
+
protect submission and finalization.
|
|
8
|
+
|
|
9
|
+
The model is platform-neutral. A behavior assertion is the minimum coverage
|
|
10
|
+
unit; a scenario is an authoring shape, not a coverage denominator. Nothing in
|
|
11
|
+
this protocol depends on a specific application, component, or product domain.
|
|
12
|
+
|
|
13
|
+
`complete` is bounded by the active discovery adapter's capabilities. The
|
|
14
|
+
`static-source-v2` adapter proves static structure — sources, composition,
|
|
15
|
+
scannable interaction registrations, and the behavior it can state faithfully.
|
|
16
|
+
Constructs the adapter cannot represent remain semantic-review or partial
|
|
17
|
+
territory; no worker may claim completeness beyond what the adapter observed.
|
|
18
|
+
|
|
19
|
+
## 1. Artifacts and Ownership
|
|
20
|
+
|
|
21
|
+
Every attempt has one directory:
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
behavior/attempt-<n>/<group_id>/
|
|
25
|
+
discovery.json worker writes before drafting
|
|
26
|
+
pre-audit.json behavior-audit.mjs pre writes
|
|
27
|
+
post-review.json worker writes after drafting
|
|
28
|
+
post-audit.json behavior-audit.mjs post writes
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
| Artifact | Producer | Mutability |
|
|
32
|
+
|---|---|---|
|
|
33
|
+
| `evidence/<stemOf(page_id)>/composition.json` | `prepare.mjs` | Immutable input |
|
|
34
|
+
| `evidence/<stemOf(page_id)>/candidates.json` | `prepare.mjs` | Immutable input |
|
|
35
|
+
| `evidence/<stemOf(page_id)>/assertions.json` | `prepare.mjs` | Immutable input |
|
|
36
|
+
| `evidence/<stemOf(page_id)>/unknowns.json` | `prepare.mjs` | Immutable input |
|
|
37
|
+
| `behavior/attempt-<n>/<group_id>/discovery.json` | Worker | Written once per attempt before drafting |
|
|
38
|
+
| `behavior/attempt-<n>/<group_id>/pre-audit.json` | Pre-audit CLI | Written by the CLI only |
|
|
39
|
+
| `drafts/attempt-<n>/<stemOf(spec_id)>.json` | Worker | Canonical draft for the attempt |
|
|
40
|
+
| `behavior/attempt-<n>/<group_id>/post-review.json` | Worker | Written after drafting |
|
|
41
|
+
| `behavior/attempt-<n>/<group_id>/post-audit.json` | Post-audit CLI | Written by the CLI only |
|
|
42
|
+
| `coverage-report.json` and `report.md` | `finalize.mjs` | Operator-facing report only |
|
|
43
|
+
|
|
44
|
+
`<n>` is the current attempt number from the strict-v2 ledger, and
|
|
45
|
+
`<group_id>` is the literal group identifier from `plan.json`. One attempt
|
|
46
|
+
identity is shared by the gate inputs: the group `discovery.json` top-level
|
|
47
|
+
`attempt`, every discovery page entry's `attempt`, the `pre-audit.json`
|
|
48
|
+
`attempt`, and the `post-review.json` `attempt` must all equal the current
|
|
49
|
+
attempt. A mismatch at any of those points is a G4 hard failure, not partial
|
|
50
|
+
delivery.
|
|
51
|
+
|
|
52
|
+
Drafts are scoped by directory only: the canonical path is
|
|
53
|
+
`drafts/attempt-<n>/<stemOf(spec_id)>.json` and a draft carries no attempt field
|
|
54
|
+
of its own. Its `discovery_digest` is what binds it to the group discovery.
|
|
55
|
+
`post-audit.json` is operator output, not a gate input: its `attempt` field is
|
|
56
|
+
diagnostic only. It is included in the submission/finalize digest fence, but no
|
|
57
|
+
gate reads it as a verdict.
|
|
58
|
+
|
|
59
|
+
`stemOf(page_id)` and `stemOf(spec_id)` are the lossless percent encoding
|
|
60
|
+
defined in `spec-template.md`. A worker never writes or edits anything under
|
|
61
|
+
`evidence/`.
|
|
62
|
+
|
|
63
|
+
## 2. Immutable Evidence
|
|
64
|
+
|
|
65
|
+
`composition.json` carries the canonical SourceUnit snapshot:
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"schema_version": "behavior-ledger-v3",
|
|
70
|
+
"profile": {
|
|
71
|
+
"id": "static-source-v2",
|
|
72
|
+
"interaction_rules": "interaction-rules-v2",
|
|
73
|
+
"composition_depth": 3
|
|
74
|
+
},
|
|
75
|
+
"snapshot_digest": "sha256-of-the-evidence-document",
|
|
76
|
+
"composition_roots": ["src/primary.ext"],
|
|
77
|
+
"source_units": [
|
|
78
|
+
{
|
|
79
|
+
"id": "su_…",
|
|
80
|
+
"role": "page-body",
|
|
81
|
+
"locator": "src/primary.ext",
|
|
82
|
+
"read_status": "read",
|
|
83
|
+
"profile_status": "review-required",
|
|
84
|
+
"content_digest": "sha256-of-the-file-bytes",
|
|
85
|
+
"line_count": 120,
|
|
86
|
+
"unknown_reasons": []
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"interaction_scans": [
|
|
90
|
+
{
|
|
91
|
+
"source_unit_id": "su_…",
|
|
92
|
+
"locator": "src/primary.ext",
|
|
93
|
+
"status": "ok",
|
|
94
|
+
"signal_count": 2,
|
|
95
|
+
"truncated": false
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"current_snapshot": {
|
|
99
|
+
"profile_id": "static-source-v2",
|
|
100
|
+
"snapshot_digest": "sha256-of-profile-and-source-units",
|
|
101
|
+
"source_units": ["…same SourceUnit objects…"]
|
|
102
|
+
},
|
|
103
|
+
"snapshot_history": [],
|
|
104
|
+
"inventory_status": "closed",
|
|
105
|
+
"unresolved_references": []
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
`interaction_scans` carries one record per readable, UI-scannable SourceUnit. Required entry/request/response/state-producer files kept solely as evidence use role `required-evidence`; they remain reviewed SourceUnits but are excluded from target-page UI scans, interactions, and estimates. The
|
|
110
|
+
page-level `interactions[]` aggregate is the union of the per-unit UI scans, and
|
|
111
|
+
every aggregated signal keeps the `evidence_ats[]` of the positions that
|
|
112
|
+
produced it. `interactions_truncated` is true when any unit's scan truncated;
|
|
113
|
+
the page aggregate is never a single page-wide budget.
|
|
114
|
+
|
|
115
|
+
`lifecycle_scans` mirrors that shape, with one deliberate addition: a
|
|
116
|
+
`required-evidence` unit **owned by the page** is also lifecycle-scanned, because
|
|
117
|
+
a page's own view model is exactly where lifecycle registrations live. It is
|
|
118
|
+
still excluded from the interaction scan (it is not page UI), and a shared
|
|
119
|
+
required-evidence unit owned by no page is not scanned at all. A scan record
|
|
120
|
+
without candidates means the unit's signals were attributed elsewhere — or, when
|
|
121
|
+
no page owns the file, to nobody: that case is never silent, it is recorded as a
|
|
122
|
+
`lifecycle-attribution-unresolved` unknown, so an unowned shared registration
|
|
123
|
+
always surfaces as an open question instead of vanishing.
|
|
124
|
+
|
|
125
|
+
`candidates.json`, `assertions.json`, and `unknowns.json` carry the three raw
|
|
126
|
+
lists. An assertion is:
|
|
127
|
+
|
|
128
|
+
```json
|
|
129
|
+
{
|
|
130
|
+
"id": "ba_…",
|
|
131
|
+
"behavior_key": "bk_…",
|
|
132
|
+
"subject": {"page_id": "page:Alpha", "region_id": "region:Primary"},
|
|
133
|
+
"trigger": {"verb": "activate", "target": "Primary action"},
|
|
134
|
+
"preconditions": [],
|
|
135
|
+
"source_branch": "unconditional",
|
|
136
|
+
"outcomes": [
|
|
137
|
+
{"kind": "visible-change", "description": "The primary result becomes visible"}
|
|
138
|
+
],
|
|
139
|
+
"side_effects": [],
|
|
140
|
+
"evidence_refs": [
|
|
141
|
+
{
|
|
142
|
+
"uri": "src/primary.ext",
|
|
143
|
+
"span": {"start": 12, "end": 14},
|
|
144
|
+
"snapshot_digest": "sha256-of-the-current-snapshot",
|
|
145
|
+
"profile_id": "static-source-v2"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"candidate_ids": ["cand_…"],
|
|
149
|
+
"provenance": {"method": "structural", "profile": "static-source-v2"}
|
|
150
|
+
}
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
`id` is the stable fingerprint of subject, trigger, preconditions, source
|
|
154
|
+
branch, outcomes, and side effects. `behavior_key` covers the same fields
|
|
155
|
+
without outcomes and side effects, so incompatible outcomes under one behavior
|
|
156
|
+
context become a conflict group rather than unrelated assertions.
|
|
157
|
+
`candidate_ids[]` is provenance, not identity: a promoted assertion names every
|
|
158
|
+
candidate that produced it, and deduplication unions those sets. A worker that
|
|
159
|
+
merges candidates into one semantic assertion must keep every source ID in the
|
|
160
|
+
list; a single `candidate_id` can never stand for a merged set.
|
|
161
|
+
|
|
162
|
+
A candidate is a structural signal without a proven user-observable outcome:
|
|
163
|
+
|
|
164
|
+
```json
|
|
165
|
+
{
|
|
166
|
+
"candidate_id": "cand_…",
|
|
167
|
+
"subject": {"page_id": "page:Alpha", "region_id": "region:Primary"},
|
|
168
|
+
"trigger": {"kind": "widget", "widget": "primaryAction", "is_trigger": true},
|
|
169
|
+
"evidence_refs": ["…same reference shape as an assertion…"],
|
|
170
|
+
"review_status": "pending",
|
|
171
|
+
"provenance": {"method": "structural", "profile": "static-source-v2"}
|
|
172
|
+
}
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
An entry candidate may also carry `trigger.behavior_variant.argument_values` with
|
|
176
|
+
source-backed `literal` call-site values, wrapper-declaration `defaults`, their
|
|
177
|
+
merged `effective` values, and explicitly `unresolved` expressions. Workers may
|
|
178
|
+
consume only the recorded effective values; they must not evaluate or guess an
|
|
179
|
+
expression in `unresolved`. A computed call-site argument remains unknown even
|
|
180
|
+
when the declaration has a default, because the explicit argument overrides that
|
|
181
|
+
default. The wrapper declaration is required source evidence whenever its
|
|
182
|
+
literal defaults are used.
|
|
183
|
+
|
|
184
|
+
### 2.1 Evidence validation
|
|
185
|
+
|
|
186
|
+
Every assertion needs at least one evidence reference that resolves against a
|
|
187
|
+
recorded snapshot for the current page:
|
|
188
|
+
|
|
189
|
+
- the referred `uri` must resolve inside the source root;
|
|
190
|
+
- `span` must be an object with integer `start` and `end`, and the recorded
|
|
191
|
+
SourceUnit `line_count` must be an integer; `start >= 1`, `end >= start`, and
|
|
192
|
+
`end <= line_count` must all hold. Structure and range are checked before any
|
|
193
|
+
read status or digest drift, so a malformed span is `invalid`, never a
|
|
194
|
+
retryable `unknown`;
|
|
195
|
+
- the snapshot digest and profile must match `current_snapshot` or an explicit
|
|
196
|
+
`snapshot_history` entry;
|
|
197
|
+
- a current reference is valid only when the SourceUnit was read and the
|
|
198
|
+
current file bytes still hash to `content_digest`.
|
|
199
|
+
|
|
200
|
+
The reference states are deliberately distinct:
|
|
201
|
+
|
|
202
|
+
- `valid` — the reference belongs to the current snapshot and profile, the
|
|
203
|
+
SourceUnit was read, the span is in range, and the current file bytes still
|
|
204
|
+
hash to `content_digest`.
|
|
205
|
+
- `stale` (`stale-evidence`) — the reference belongs to an older snapshot or
|
|
206
|
+
profile. It requires rediscovery; it cannot count as specified.
|
|
207
|
+
- `unknown` (`source-unread` or `source-changed`) — the current reference
|
|
208
|
+
cannot be proven: the unit was not read, or the current on-disk bytes no
|
|
209
|
+
longer match the recorded snapshot. It requires a re-read, not a waiver.
|
|
210
|
+
- `invalid` (`unrecorded-evidence-snapshot`, `evidence-outside-source`,
|
|
211
|
+
`invalid-evidence-span`, or `evidence-validation-error`) — the reference is
|
|
212
|
+
unusable and is a hard failure.
|
|
213
|
+
|
|
214
|
+
None of these states may be reported as complete coverage, and none may be
|
|
215
|
+
silently dropped.
|
|
216
|
+
|
|
217
|
+
### 2.2 Unknown Producers, Scopes, and Causes
|
|
218
|
+
|
|
219
|
+
The static producer writes the initial unknown records, and the post-audit can
|
|
220
|
+
add one synthetic review unknown. These are the actual producer contracts:
|
|
221
|
+
|
|
222
|
+
| Scope | Reason | Cause | Producer condition |
|
|
223
|
+
|---|---|---|---|
|
|
224
|
+
| `source-unit` | `review-required` | — | every readable SourceUnit starts unreviewed |
|
|
225
|
+
| `source-unit` | `source-unread` | — | the SourceUnit could not be read |
|
|
226
|
+
| `composition` | `unresolved-source-unit` | — | a recorded origin or traversal reference has no resolved unit |
|
|
227
|
+
| run (plan `behavior_unknowns`) | `navigation-guards-absent` | — | `.hometrans/project_design.md` documents navigation interception (e.g. login) but no page `<axis>_interceptor` and no edge guard with `redirect_when_unmet` was recorded; a guard that does record a redirect yields an extra `<branch>:unmet` assertion, and a page interceptor an `enter` assertion |
|
|
228
|
+
| `interaction` | `review-incomplete` | `no_source` | the page has no scannable source at all; a readable non-code SourceUnit does not produce this |
|
|
229
|
+
| `interaction` | `source-unread` | `skipped` | the scan was skipped because the page source was unreadable |
|
|
230
|
+
| `interaction` | `review-incomplete` | `truncated` | a bounded scan left interaction signals unexamined |
|
|
231
|
+
| `behavior` | `review-incomplete` | `missing-trigger-locator`, `unattachable-trigger-evidence`, or `unrepresentable-guard` | a navigation candidate could not become an assertion but has attachable source evidence |
|
|
232
|
+
| `behavior` | `review-incomplete` | a computed wrapper argument/default or a scoped wrapper call/declaration resolution failure | literal and independently known default values remain available, but the unresolved entry arguments block the trigger field |
|
|
233
|
+
| `composition` | `review-incomplete` | `missing-trigger-locator`, `unattachable-trigger-evidence`, or `unrepresentable-guard` | the same navigation candidate has no attachable evidence location |
|
|
234
|
+
| `behavior` | `review-insufficient` | — | a candidate review is insufficient but supplies evidence and affected fields |
|
|
235
|
+
| `assertion` | `review-incomplete` | — | the post-audit synthesizes `review-incomplete:<assertion_id>` for a missing or incomplete semantic review |
|
|
236
|
+
|
|
237
|
+
Reconciliation also accepts worker-authored unknowns that use
|
|
238
|
+
`source-changed`, `stale-evidence`, `unsupported-construct`, or
|
|
239
|
+
`review-insufficient` when the evidence supports them. A resolution for those
|
|
240
|
+
reasons must cite current evidence and the resulting assertion IDs.
|
|
241
|
+
|
|
242
|
+
Truncation is not a reason. A bounded scan emits scope `interaction`, reason
|
|
243
|
+
`review-incomplete`, and cause `truncated`; no separate truncation reason
|
|
244
|
+
exists.
|
|
245
|
+
|
|
246
|
+
Source-unit unknowns use `scope:"source-unit"` and their `locator`. They are
|
|
247
|
+
cleared only by a digest-matched terminal SourceUnit review or a lawful
|
|
248
|
+
resolution, and they never use `affected_fields`. Only this scope may be
|
|
249
|
+
resolved implicitly by a SourceUnit review; composition, interaction, behavior,
|
|
250
|
+
and assertion unknowns require an explicit, relevant, evidence-backed
|
|
251
|
+
resolution. Interaction unknowns use `scope:"interaction"` with `page_id` and
|
|
252
|
+
the cause above; they are not field-scoped assertion unknowns. Field-scoped and
|
|
253
|
+
composition contracts are defined in §3.3.
|
|
254
|
+
|
|
255
|
+
A readable non-code SourceUnit has no scan record and produces no interaction
|
|
256
|
+
unknown: its closure comes from the SourceUnit review, not from a synthetic scan
|
|
257
|
+
gap. A page with no UI-scannable SourceUnit reports `interaction_scan:"no_source"`
|
|
258
|
+
and still closes through composition and the SourceUnit reviews. A scan record
|
|
259
|
+
whose status is not `ok` (for example `skipped` or `no_source`) is a failed scan
|
|
260
|
+
unit: it stays partial until reviewed, and it is never a hard failure by
|
|
261
|
+
itself.
|
|
262
|
+
|
|
263
|
+
### 2.3 Composition closure
|
|
264
|
+
|
|
265
|
+
`inventory_status` is `closed` only when a primary source exists and neither an
|
|
266
|
+
origin nor a traversal reference is unresolved. Folded overlays, embedded
|
|
267
|
+
content, and instance peers remain SourceUnits; folding changes SPEC ownership,
|
|
268
|
+
never the set of sources that discovery must inspect. Every SourceUnit needs a
|
|
269
|
+
review, and `reviewed_digest` must equal its current `content_digest`.
|
|
270
|
+
|
|
271
|
+
`inventory_status` and `unresolved_references` are immutable producer facts and
|
|
272
|
+
are reported as diagnostics only. Delivery is decided by whether a composition
|
|
273
|
+
**unknown** is still open: a lawful resolution (§3.4) closes it, and a reference
|
|
274
|
+
that no longer has an open unknown no longer blocks delivery. This is what makes
|
|
275
|
+
"resolve the reference" a meaningful instruction instead of a permanent partial.
|
|
276
|
+
|
|
277
|
+
A reference may only become a composition gap when it can denote a source unit:
|
|
278
|
+
its kind is one of `imports`, `references`, `instantiates`, `extends`,
|
|
279
|
+
`implements`, and its target is a real project source. For JVM/ArkTS that means
|
|
280
|
+
a symbol or file the index already locates — a qualified name must match the
|
|
281
|
+
file's own package path, so `android.view.View` is refuted even when the project
|
|
282
|
+
also declares `View.kt`, while `pkg.Outer.Inner` keeps `Outer.kt`. For
|
|
283
|
+
uniapp/Vue it means a module specifier that resolves to a project file
|
|
284
|
+
(`@/x`, `./x`, `../x`, or a directory barrel such as `@/sheep` →
|
|
285
|
+
`sheep/index.js`). Symbol-level references (`calls`, `type_of`, `returns`,
|
|
286
|
+
`decorates`), bare packages (`dayjs`, `@dcloudio/uni-app`, `node:fs`), Vue
|
|
287
|
+
props, type parameters (`T`), and raw parser expressions are external
|
|
288
|
+
diagnostics — they never enter `unknowns` and never keep a page partial.
|
|
289
|
+
|
|
290
|
+
To bound pathological traversal breadth, at most 200 traversal-expanded shared
|
|
291
|
+
SourceUnits are snapshotted per page. Every page body, folded overlay, embedded
|
|
292
|
+
origin, and instance-peer origin is always retained regardless of this bound.
|
|
293
|
+
Each omitted traversal locator is recorded in a composition
|
|
294
|
+
`review-incomplete` unknown with `cause:"source-unit-limit"` and
|
|
295
|
+
`omitted_source_units`; inventory remains partial. The bound never silently
|
|
296
|
+
shrinks the reviewed composition scope.
|
|
297
|
+
|
|
298
|
+
## 3. Worker Discovery Document
|
|
299
|
+
|
|
300
|
+
`discovery.json` is a group document whose digest covers the complete
|
|
301
|
+
`{ schema_version, attempt, pages }` value. It contains one entry per page of
|
|
302
|
+
the group:
|
|
303
|
+
|
|
304
|
+
```json
|
|
305
|
+
{
|
|
306
|
+
"schema_version": "behavior-ledger-v3",
|
|
307
|
+
"attempt": 2,
|
|
308
|
+
"pages": [
|
|
309
|
+
{
|
|
310
|
+
"page_id": "page:Alpha",
|
|
311
|
+
"attempt": 2,
|
|
312
|
+
"inventory_status": "closed",
|
|
313
|
+
"source_units": ["…the immutable SourceUnit list…"],
|
|
314
|
+
"interaction_scans": ["…the immutable per-unit scan records…"],
|
|
315
|
+
"source_unit_reviews": [
|
|
316
|
+
{
|
|
317
|
+
"source_unit_id": "su_…",
|
|
318
|
+
"status": "reviewed",
|
|
319
|
+
"reviewed_digest": "sha256-of-the-file-bytes",
|
|
320
|
+
"conclusion": "assertions-found",
|
|
321
|
+
"assertion_ids": ["ba_…"]
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"assertions": ["…immutable assertions plus validated semantic additions…"],
|
|
325
|
+
"candidates": ["…immutable candidates…"],
|
|
326
|
+
"unknowns": ["…immutable unknowns plus new semantic unknowns…"],
|
|
327
|
+
"planned": [
|
|
328
|
+
{
|
|
329
|
+
"assertion_id": "ba_…",
|
|
330
|
+
"status": "specified",
|
|
331
|
+
"scenario": 1,
|
|
332
|
+
"steps": [1, 2],
|
|
333
|
+
"review_status": "reviewed"
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
"evidence_reviews": [
|
|
337
|
+
{"assertion_id": "ba_…", "status": "supported"}
|
|
338
|
+
],
|
|
339
|
+
"candidate_reviews": [
|
|
340
|
+
{"candidate_id": "cand_…", "status": "refuted"}
|
|
341
|
+
],
|
|
342
|
+
"candidate_dispositions": [
|
|
343
|
+
{
|
|
344
|
+
"candidate_id": "cand_…",
|
|
345
|
+
"status": "waived",
|
|
346
|
+
"reason": "no-user-observable",
|
|
347
|
+
"evidence_refs": ["…"],
|
|
348
|
+
"review_status": "reviewed"
|
|
349
|
+
}
|
|
350
|
+
],
|
|
351
|
+
"promotions": [],
|
|
352
|
+
"resolutions": []
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
Immutable clean-room rules:
|
|
359
|
+
|
|
360
|
+
- `discovery.assertions` must contain every immutable assertion with unchanged behavior content and `evidence_refs`, plus only validated semantic additions. Omitting an immutable assertion, deleting it, or rewriting its content is a hard failure. `assertions` is not an optional echo field. The only evidence-reference exception is an explicit stale/unread rediscovery: a related current-evidence unknown must have a lawful `resolved` resolution naming the assertion, every replacement reference must be current, and at least one replaced reference must be non-current.
|
|
361
|
+
- Optional exact echo fields are `page_id`, `schema_version`, `profile`,
|
|
362
|
+
`composition_roots`, `source_units`, `interaction_scans`, `current_snapshot`,
|
|
363
|
+
`snapshot_history`, `snapshot_digest`, `inventory_status`,
|
|
364
|
+
`unresolved_references`, and `candidates`. When one is present it must equal Evidence exactly; omitting an optional echo field leaves the Evidence value in force and never replaces it.
|
|
365
|
+
- Discovery may add validated semantic assertions and new semantic unknowns,
|
|
366
|
+
but may not delete or rewrite an immutable candidate, SourceUnit, or initial
|
|
367
|
+
unknown ID. An initial unknown that is omitted remains in force; if it is
|
|
368
|
+
carried it must equal Evidence exactly.
|
|
369
|
+
- Exactly one `source_unit_reviews` entry exists per current SourceUnit, with
|
|
370
|
+
no missing, extra, or duplicate IDs and a digest-matched `reviewed_digest`.
|
|
371
|
+
Each terminal review also carries a legal `conclusion` and the exact
|
|
372
|
+
`assertion_ids` attributed to that unit (see §3.1.1); a review without them
|
|
373
|
+
is unfinished, not complete.
|
|
374
|
+
- A candidate may not disappear. A terminal review (`supported`, `refuted`, or
|
|
375
|
+
`insufficient`) requires a terminal disposition: `promoted`, a legal `waived`
|
|
376
|
+
reason, or `unknown`. A `pending` or `failed` review stays undisposed and
|
|
377
|
+
keeps the page partial.
|
|
378
|
+
- `review_status` on a planned or candidate disposition is `reviewed` or
|
|
379
|
+
`incomplete`. An incomplete disposition keeps the audit unfinished.
|
|
380
|
+
|
|
381
|
+
### 3.1.1 SourceUnit reviews, attribution, and candidate provenance
|
|
382
|
+
|
|
383
|
+
Review every SourceUnit before deciding assertion dispositions. A completed
|
|
384
|
+
review is:
|
|
385
|
+
|
|
386
|
+
```json
|
|
387
|
+
{
|
|
388
|
+
"source_unit_id": "su_…",
|
|
389
|
+
"status": "reviewed",
|
|
390
|
+
"reviewed_digest": "sha256-of-the-file-bytes",
|
|
391
|
+
"conclusion": "assertions-found",
|
|
392
|
+
"assertion_ids": ["ba_…"]
|
|
393
|
+
}
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
- `conclusion` is exactly `assertions-found` or `no-assertions-found`.
|
|
397
|
+
`assertions-found` requires a non-empty `assertion_ids`; the other conclusion
|
|
398
|
+
requires an empty one.
|
|
399
|
+
- `assertion_ids` is the exact attribution set, not a summary. It must cover
|
|
400
|
+
every assertion the unit contributed to — including assertions later planned
|
|
401
|
+
`no-user-observable`, `duplicate-assertion`, or `out-of-scope` — and must not
|
|
402
|
+
borrow an assertion attributed to a different unit.
|
|
403
|
+
- Revisioning a unit's bytes changes its `content_digest`; the review must be
|
|
404
|
+
re-recorded at the new digest or it stays incomplete.
|
|
405
|
+
- A merged semantic assertion keeps every source candidate in `candidate_ids[]`.
|
|
406
|
+
Ownership is provenance: dropping a merged candidate ID hides where the
|
|
407
|
+
behavior came from and fails reconciliation.
|
|
408
|
+
|
|
409
|
+
Per-unit discovery is additive, never a page-wide budget: a host file cannot
|
|
410
|
+
starve an embedded unit's scan, and a readable non-code unit closes through its
|
|
411
|
+
review rather than a synthetic interaction unknown.
|
|
412
|
+
|
|
413
|
+
The same source file can legitimately be scanned as an embedded SourceUnit of a
|
|
414
|
+
host page and as the page body of an overlay or window page. Assertions and
|
|
415
|
+
reviews remain page-scoped: the overlay-owned behavior belongs to the overlay
|
|
416
|
+
page SPEC. A cross-page `duplicate-assertion` is not a valid shortcut; use
|
|
417
|
+
evidence-backed `out-of-scope` or `no-user-observable` handling on the host only
|
|
418
|
+
when the host SPEC genuinely does not own that behavior.
|
|
419
|
+
|
|
420
|
+
Lifecycle candidates follow the same page scope, resolved by attribution rather
|
|
421
|
+
than by raw reference. A `lifecycle-signal` is mounted on the page that owns the
|
|
422
|
+
file it was scanned from, and ownership is decided in two tiers:
|
|
423
|
+
|
|
424
|
+
- **Structural tier.** A page's own composition — the page body and the units
|
|
425
|
+
folded into it (an embedded dialog, a companion file, an overlay window) — is
|
|
426
|
+
that page's, graph or no graph: its signals always mint on the page, even
|
|
427
|
+
when the body reaches them only through a helper. A shared file that exactly
|
|
428
|
+
one UI group's footprint references is that group's composition too, so a
|
|
429
|
+
traversal-only grandchild component still mints on its sole page. A body-less
|
|
430
|
+
page keeps its whole composition the same way.
|
|
431
|
+
- **Graph tier.** Everything else — shared content and required evidence — is
|
|
432
|
+
attributed by the naming relation: a file whose declaration (class, object,
|
|
433
|
+
interface, or top-level function) a page body imports, references, or
|
|
434
|
+
instantiates is owned by that page. Calling a member is usage, not ownership,
|
|
435
|
+
and inheritance never transfers a file: `extends`/`implements` marks a base
|
|
436
|
+
class as shared infrastructure, and the import that merely serves the
|
|
437
|
+
inheritance is suppressed with it. The owning page mints; every other
|
|
438
|
+
referencing page stays silent — that is the dedup.
|
|
439
|
+
|
|
440
|
+
When both tiers speak — a dialog embedded in a host page that is also the body
|
|
441
|
+
of an overlay page — the candidate mints on both pages with the graph owners
|
|
442
|
+
recorded in `trigger.owner_page_ids`; the host's copy names the overlay page and
|
|
443
|
+
can therefore be waived as an external surface, while the overlay page treats it
|
|
444
|
+
as its own page-body behavior.
|
|
445
|
+
|
|
446
|
+
A signal whose file no page owns — a base activity every page extends, a result
|
|
447
|
+
bus, a navigation helper — mints **no** page-scoped candidate, but it never
|
|
448
|
+
vanishes: each scanning page records a `lifecycle-attribution-unresolved`
|
|
449
|
+
unknown for it, so the open question is visible and auditable instead of silent.
|
|
450
|
+
A body file that backs two page records (a Compose route plus the pager tab
|
|
451
|
+
showing the same screen) is owned by both, because it is the same UI.
|
|
452
|
+
|
|
453
|
+
A cross-page result bus is consequently split at its two ends: the page that
|
|
454
|
+
writes the result owns the `producer` candidate, the page that re-reads owns the
|
|
455
|
+
`consumer` candidate, and neither copies the other's line. `trigger.signal_role`
|
|
456
|
+
records which end a candidate is, and `trigger.owner_page_ids` records the
|
|
457
|
+
ownership the adapter observed (empty for shared infrastructure). Ownership is
|
|
458
|
+
never inferred from file or type names: renaming a screen cannot change it.
|
|
459
|
+
|
|
460
|
+
Component hints are adapter capabilities, not protocol guarantees. Java/Kotlin
|
|
461
|
+
view hints (for example a dismissible bottom panel) do not imply equivalent
|
|
462
|
+
automatic hints for Vue or another ecosystem. Unsupported constructs remain
|
|
463
|
+
semantic-review or partial territory, and no worker may claim completeness
|
|
464
|
+
beyond the active adapter's capabilities.
|
|
465
|
+
|
|
466
|
+
### 3.1 Planned assertion dispositions
|
|
467
|
+
|
|
468
|
+
`planned[]` is the pre-authoring disposition for every discovered assertion.
|
|
469
|
+
The closed status set is:
|
|
470
|
+
|
|
471
|
+
| Status | Required evidence review | Authoring contract |
|
|
472
|
+
|---|---|---|
|
|
473
|
+
| `specified` | `supported` | A scenario and concrete steps will describe the behavior |
|
|
474
|
+
| `unknown` | `insufficient` | Non-empty `unknown_ids`, each related to this assertion |
|
|
475
|
+
| `no-user-observable` | `refuted` | Review disproved the suspected observable outcome |
|
|
476
|
+
| `duplicate-assertion` | `supported` | A reviewed specified canonical plus `semantic_equivalence_review` |
|
|
477
|
+
| `out-of-scope` | `supported` | Current evidence plus `scope_rule:"external-surface"` or `"explicitly-excluded-source"` |
|
|
478
|
+
|
|
479
|
+
`unsupported` is always a hard failure. `supported + unknown` is a hard failure
|
|
480
|
+
even when `review_status` is `incomplete`: an incomplete review cannot launder
|
|
481
|
+
a contradiction into partial delivery.
|
|
482
|
+
|
|
483
|
+
Every assertion needs exactly one planned disposition. A terminal `supported`,
|
|
484
|
+
`refuted`, or `insufficient` evidence review with no planned disposition is a
|
|
485
|
+
known omission and a hard failure in both the pre-audit and the post-audit.
|
|
486
|
+
Deleting both the planned disposition and its draft link is not genuine partial
|
|
487
|
+
work; a missing or non-terminal review remains incomplete/partial instead.
|
|
488
|
+
|
|
489
|
+
`refuted` and `insufficient` are not interchangeable. `refuted` is a terminal
|
|
490
|
+
conclusion that the suspected behavior has no user-observable outcome and only
|
|
491
|
+
supports `no-user-observable`. `insufficient` is a terminal conclusion that the
|
|
492
|
+
evidence cannot determine the behavior's `trigger`, `preconditions`,
|
|
493
|
+
`outcomes`, or `side_effects`, and only supports `unknown` with a related
|
|
494
|
+
unknown record. Both are terminal; neither is a pass.
|
|
495
|
+
|
|
496
|
+
A `duplicate-assertion` is legal only when:
|
|
497
|
+
|
|
498
|
+
- the target is an existing assertion with the same `behavior_key`;
|
|
499
|
+
- the assertions form a real multi-member behavior group;
|
|
500
|
+
- the canonical target is planned `specified` with `review_status:"reviewed"`;
|
|
501
|
+
- the disposition carries `semantic_equivalence_review:{status:"supported"}`;
|
|
502
|
+
- a draft link later names that exact `canonical_assertion_id` and the
|
|
503
|
+
canonical assertion itself has a `specified` draft link.
|
|
504
|
+
|
|
505
|
+
### 3.2 Candidate promotion, waivers, and unknown dispositions
|
|
506
|
+
|
|
507
|
+
`candidate_reviews[]` is keyed by `candidate_id` and accepts
|
|
508
|
+
`supported`, `refuted`, `insufficient`, `pending`, or `failed`.
|
|
509
|
+
`candidate_dispositions[]` accepts exactly:
|
|
510
|
+
|
|
511
|
+
```json
|
|
512
|
+
{"candidate_id": "cand_…", "status": "promoted", "assertion_id": "ba_…", "review_status": "reviewed"}
|
|
513
|
+
{"candidate_id": "cand_…", "status": "waived", "reason": "no-user-observable", "evidence_refs": ["…"], "review_status": "reviewed"}
|
|
514
|
+
{"candidate_id": "cand_…", "status": "waived", "reason": "out-of-scope", "evidence_refs": ["…"], "scope_rule": "external-surface", "review_status": "reviewed"}
|
|
515
|
+
{"candidate_id": "cand_…", "status": "unknown", "unknown_ids": ["unk_…"], "review_status": "reviewed"}
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
A `promoted` disposition needs a `promotions[]` record and a supported review
|
|
519
|
+
that supplies a normalized assertion planned `specified`. A
|
|
520
|
+
`no-user-observable` waiver needs a `refuted` review. An `out-of-scope` waiver
|
|
521
|
+
needs a supported review, non-empty evidence, and a scope rule. Free-form scope
|
|
522
|
+
text is not a waiver: both planned and candidate `out-of-scope` dispositions
|
|
523
|
+
accept only `external-surface` or `explicitly-excluded-source`, and the draft
|
|
524
|
+
link must repeat the exact planned value. Every candidate
|
|
525
|
+
or planned waiver reference must resolve to `state.status === "valid"` on the
|
|
526
|
+
current snapshot; stale, source-unread, source-changed, and invalid references
|
|
527
|
+
are hard failures. An `unknown` disposition needs an `insufficient` review and
|
|
528
|
+
related unresolved unknown IDs whose `candidate_id` is exactly this candidate:
|
|
529
|
+
an assertion-only `affected_assertion_id` or a shared SourceUnit cannot be
|
|
530
|
+
borrowed. A terminal (`supported`, `refuted`, `insufficient`) review without a
|
|
531
|
+
disposition is a hard failure. A `pending` or `failed` review stays incomplete
|
|
532
|
+
and must remain undisposed: writing a disposition before the review finishes is
|
|
533
|
+
itself a hard failure (`candidate-disposition-pending`), and the page stays
|
|
534
|
+
partial until the review is terminal.
|
|
535
|
+
|
|
536
|
+
A `lifecycle-signal` candidate may never be waived
|
|
537
|
+
`out-of-scope` with `external-surface` on a page that owns its file: the
|
|
538
|
+
signal was mounted on that page precisely because the page owns the behavior,
|
|
539
|
+
so the waiver contradicts the mounting rule itself
|
|
540
|
+
(`lifecycle-waiver-external-owner`). When the behavior genuinely belongs to
|
|
541
|
+
another page, the candidate is minted on that page; when the file is shared
|
|
542
|
+
infrastructure, no candidate is minted at all. The honest dispositions on an
|
|
543
|
+
owned lifecycle candidate are `promoted`, `no-user-observable` with a refuted
|
|
544
|
+
review, or `unknown`. Interaction-signal candidates keep their
|
|
545
|
+
host/embedded-unit `out-of-scope` path.
|
|
546
|
+
|
|
547
|
+
An `explicitly-excluded-source` waiver is only as good as the recorded
|
|
548
|
+
exclusion behind it: the evidence freezes `scope_exclusions` — the locators the
|
|
549
|
+
adapter attributed to another page — at prepare time, and both planned and
|
|
550
|
+
candidate waivers with that scope rule must cite locators inside the frozen
|
|
551
|
+
set (`waiver-excluded-source-unmatched` otherwise). A source this page owns,
|
|
552
|
+
or a shared source nobody owns, is never "explicitly excluded"; the latter is
|
|
553
|
+
what the `lifecycle-attribution-unresolved` unknown is for. Citations are
|
|
554
|
+
canonicalized before matching, so aliasing a locator
|
|
555
|
+
(`./src/alpha.js`, backslashes, `..` segments) cannot escape the recorded set.
|
|
556
|
+
|
|
557
|
+
A candidate-backed interaction signal follows its disposition, not a separate
|
|
558
|
+
legacy obligation:
|
|
559
|
+
|
|
560
|
+
- `promoted` requires a `coverage.interactions` claim at the same scenario as
|
|
561
|
+
its `specified` behavior link. The claim's value is the signal's
|
|
562
|
+
`claim_token`, and that token must appear in the claimed scenario's `steps`.
|
|
563
|
+
A missing claim is a hard failure in full evaluation and is only deferred
|
|
564
|
+
under partial evaluation.
|
|
565
|
+
- `waived` requires an entry in `coverage.excluded[]` with the same reason the
|
|
566
|
+
disposition used. A missing exclusion is a hard failure in full evaluation
|
|
567
|
+
and is only deferred under partial evaluation.
|
|
568
|
+
- `unknown` or an unfinished review stays partial and needs neither: a
|
|
569
|
+
candidate-backed signal that is unknown/incomplete is not required to be claimed
|
|
570
|
+
in `coverage.interactions` or excluded in `coverage.excluded[]`, and its
|
|
571
|
+
absence from both is not a G4 failure.
|
|
572
|
+
|
|
573
|
+
### 3.3 Unknown relevance contracts
|
|
574
|
+
|
|
575
|
+
A field-scoped unknown must identify what it blocks:
|
|
576
|
+
|
|
577
|
+
```json
|
|
578
|
+
{
|
|
579
|
+
"id": "unk_…",
|
|
580
|
+
"scope": "assertion",
|
|
581
|
+
"reason": "unsupported-construct",
|
|
582
|
+
"source_unit_ids": ["su_…"],
|
|
583
|
+
"affected_assertion_id": "ba_…",
|
|
584
|
+
"affected_fields": ["outcomes"],
|
|
585
|
+
"evidence_refs": ["…"],
|
|
586
|
+
"relevance_review": {"status": "reviewed", "conclusion": "blocks-fields"},
|
|
587
|
+
"next_action": "Inspect the unsupported source region"
|
|
588
|
+
}
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
`affected_fields` is a non-empty subset of `trigger`, `preconditions`,
|
|
592
|
+
`outcomes`, and `side_effects`. The unknown must name at least one related
|
|
593
|
+
assertion, candidate, or SourceUnit, carry specific current evidence, and have
|
|
594
|
+
a reviewed `blocks-fields` relevance. A candidate-scoped unknown also names the
|
|
595
|
+
candidate. An unrelated unknown elsewhere in the page cannot justify an
|
|
596
|
+
assertion's unknown disposition.
|
|
597
|
+
|
|
598
|
+
A composition unknown uses its own contract:
|
|
599
|
+
|
|
600
|
+
```json
|
|
601
|
+
{
|
|
602
|
+
"id": "unk_…",
|
|
603
|
+
"scope": "composition",
|
|
604
|
+
"reason": "unresolved-source-unit",
|
|
605
|
+
"referring_file": "src/primary.ext",
|
|
606
|
+
"locator": "src/missing.ext",
|
|
607
|
+
"relevance_review": {"status": "reviewed", "conclusion": "blocks-composition"},
|
|
608
|
+
"next_action": "Resolve the recorded reference and inspect its target"
|
|
609
|
+
}
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
It needs an unresolved locator or referring file and a reviewed
|
|
613
|
+
`blocks-composition` relevance; it does not use assertion fields. Open
|
|
614
|
+
composition keeps the page partial even when every listed SourceUnit was read.
|
|
615
|
+
|
|
616
|
+
### 3.4 Resolutions
|
|
617
|
+
|
|
618
|
+
An immutable or newly discovered unknown stays unresolved unless a clean
|
|
619
|
+
`resolutions[]` entry clears it or a digest-matched terminal SourceUnit review
|
|
620
|
+
resolves a `review-required`, `review-incomplete`, or `review-insufficient`
|
|
621
|
+
source unknown. A resolution is one of:
|
|
622
|
+
|
|
623
|
+
```json
|
|
624
|
+
{"unknown_id": "unk_…", "status": "resolved", "evidence_refs": ["…current snapshot…"], "assertion_ids": ["ba_…"], "review_status": "reviewed"}
|
|
625
|
+
{"unknown_id": "unk_…", "status": "no-user-observable", "evidence_refs": ["…current snapshot…"], "review_status": "reviewed"}
|
|
626
|
+
{"unknown_id": "unk_…", "status": "no-assertions-found", "source_unit_id": "su_…", "reviewed_digest": "sha256-of-the-file-bytes", "assertion_ids": [], "review_status": "reviewed"}
|
|
627
|
+
```
|
|
628
|
+
|
|
629
|
+
- `resolved` and `no-user-observable` require non-empty evidence from the
|
|
630
|
+
current snapshot. For `source-unread`, `source-changed`, `stale-evidence`,
|
|
631
|
+
`unsupported-construct`, and `review-insufficient`, `resolved` must also name
|
|
632
|
+
the resulting assertion IDs. `no-user-observable` records a reviewed
|
|
633
|
+
conclusion with current evidence.
|
|
634
|
+
- `no-assertions-found` is allowed only for review-required,
|
|
635
|
+
review-incomplete, or review-insufficient source reasons. Its
|
|
636
|
+
`reviewed_digest` must match the unit's current content digest, and its
|
|
637
|
+
`assertion_ids` must stay empty: it may not invent assertions.
|
|
638
|
+
- A missing, malformed, or failed resolution leaves the unknown unresolved.
|
|
639
|
+
`review_status:"incomplete"` defers the decision; it does not clear anything.
|
|
640
|
+
|
|
641
|
+
A truncated interaction scan closes only through its own resolution:
|
|
642
|
+
|
|
643
|
+
```json
|
|
644
|
+
{"unknown_id": "unk_…", "status": "resolved", "source_unit_id": "su_…", "reviewed_digest": "sha256-of-the-file-bytes", "evidence_refs": ["…current snapshot…"], "assertion_ids": ["ba_…"], "review_status": "reviewed"}
|
|
645
|
+
```
|
|
646
|
+
|
|
647
|
+
- The status must be `resolved`; `no-user-observable` and `no-assertions-found`
|
|
648
|
+
cannot close truncation.
|
|
649
|
+
- `source_unit_id` must be the truncated unit and its `reviewed_digest` must
|
|
650
|
+
match that unit's current `content_digest`.
|
|
651
|
+
- `evidence_refs` must be non-empty and current, and `assertion_ids` must equal
|
|
652
|
+
the closed review's attribution for that unit.
|
|
653
|
+
- Every candidate that cites the unit's locator must have a terminal review and
|
|
654
|
+
a `promoted` or `waived` disposition. An unfinished candidate leaves the
|
|
655
|
+
truncation partial.
|
|
656
|
+
- A truncated unit that was never fully reviewed, or whose resolution is
|
|
657
|
+
missing or `review_status:"incomplete"`, keeps the page partial. There is no
|
|
658
|
+
implicit closure.
|
|
659
|
+
|
|
660
|
+
## 4. Worker Workflow
|
|
661
|
+
|
|
662
|
+
Every attempt follows this exact order:
|
|
663
|
+
|
|
664
|
+
```text
|
|
665
|
+
read interaction_scans; name the failed and truncated units
|
|
666
|
+
read every SourceUnit and the related resources it needs
|
|
667
|
+
add semantic assertions, keeping every merged candidate in candidate_ids[]
|
|
668
|
+
write each SourceUnit conclusion and the exact assertion_ids attribution
|
|
669
|
+
write an explicit resolved resolution for every truncation you fully reviewed
|
|
670
|
+
settle candidate dispositions and planned dispositions
|
|
671
|
+
write behavior/attempt-<n>/<group_id>/discovery.json
|
|
672
|
+
run behavior-audit.mjs <output> pre <group_id> --attempt <n>
|
|
673
|
+
write drafts/attempt-<n>/<stem>.json
|
|
674
|
+
write behavior/attempt-<n>/<group_id>/post-review.json
|
|
675
|
+
run behavior-audit.mjs <output> post <group_id> --attempt <n>
|
|
676
|
+
submit immediately through submit.mjs
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
The CLI signatures are:
|
|
680
|
+
|
|
681
|
+
```bash
|
|
682
|
+
node scripts/behavior-audit.mjs <output> pre <group_id> --attempt <n>
|
|
683
|
+
node scripts/behavior-audit.mjs <output> post <group_id> --attempt <n>
|
|
684
|
+
```
|
|
685
|
+
|
|
686
|
+
Rules:
|
|
687
|
+
|
|
688
|
+
- Read the evidence slices and the real source before writing discovery. The
|
|
689
|
+
slices are an index; the source is the evidence of record.
|
|
690
|
+
- Check `interaction_scans` per SourceUnit first. A record whose status is not
|
|
691
|
+
`ok`, or whose `truncated` is true, is the first unit to re-read. The page
|
|
692
|
+
aggregate never substitutes for the unit record.
|
|
693
|
+
- Write discovery only under the current attempt directory. Never edit
|
|
694
|
+
`evidence/` and never create a second attempt directory.
|
|
695
|
+
- Run the pre-audit after discovery and before drafting. `completed` and
|
|
696
|
+
`incomplete` both exit 0. An `incomplete` pre-audit permits drafting but
|
|
697
|
+
forces partial delivery later. `failed` exits 1 and must be repaired before
|
|
698
|
+
drafting; operational errors exit 2.
|
|
699
|
+
- Write the drafts, then the post-review, then run the post-audit. Compute
|
|
700
|
+
`drafts_digest` directly with `node scripts/behavior-audit.mjs <output> digest
|
|
701
|
+
<group_id> --attempt <n>`; do not infer it from a failed audit. A post-review
|
|
702
|
+
mismatch (digest, attempt, page, review, or link) is a hard G4 failure. A
|
|
703
|
+
`specified` link must use the pre-reviewed scenario and include every planned
|
|
704
|
+
step (additional supporting steps are allowed).
|
|
705
|
+
- Finalization requires discovery, pre-audit, and post-review. A missing
|
|
706
|
+
artifact is a retryable exit-2 readiness abort with no publication; deletion
|
|
707
|
+
cannot turn a known omission into partial delivery.
|
|
708
|
+
- Submission (explicit and recovery) requires discovery, pre-audit, and
|
|
709
|
+
post-review, exactly like finalization: a group committed without them could
|
|
710
|
+
never be finalized. An explicit submit with a missing artifact is rejected as
|
|
711
|
+
`Audit incomplete` without abandoning the group; recovery defers it. A present
|
|
712
|
+
but incomplete/failed semantic review remains genuine partial.
|
|
713
|
+
- G4 recomputes each page's pre-audit from Evidence and discovery and rejects
|
|
714
|
+
`pre-audit-mismatch`; the editable pre-audit file is a receipt, not a verdict.
|
|
715
|
+
- Submit immediately after the post-audit through `submit.mjs`; do not keep
|
|
716
|
+
editing after submission.
|
|
717
|
+
- Workers cannot reclassify an unknown as specified without new evidence. An
|
|
718
|
+
unresolved blind spot remains unknown, a refuted review only supports a
|
|
719
|
+
no-user-observable waiver, and an insufficient review only supports an
|
|
720
|
+
unknown disposition with directly related unresolved IDs.
|
|
721
|
+
- Stale or source-changed evidence requires rediscovery. A digest-matched
|
|
722
|
+
SourceUnit review, a resolution with current evidence and resulting
|
|
723
|
+
assertion IDs, or a reviewed no-user-observable conclusion is the only way
|
|
724
|
+
forward; manual acceptance does not upgrade partial to complete.
|
|
725
|
+
- Live drift is re-observed: submission and finalize re-read the current source
|
|
726
|
+
bytes. If a reviewed file changes after the review, the live bytes no longer
|
|
727
|
+
hash to `content_digest`, the unit becomes `source-changed`, and the page
|
|
728
|
+
returns to partial. A recorded review or scan never launders live drift into
|
|
729
|
+
complete coverage.
|
|
730
|
+
|
|
731
|
+
## 5. Draft Schema Additions
|
|
732
|
+
|
|
733
|
+
A behavior-enabled draft carries the page discovery digest and explicit links:
|
|
734
|
+
|
|
735
|
+
```json
|
|
736
|
+
{
|
|
737
|
+
"spec_id": "page:Alpha",
|
|
738
|
+
"page_id": "page:Alpha",
|
|
739
|
+
"discovery_digest": "sha256-of-the-page-discovery-entry",
|
|
740
|
+
"coverage": {
|
|
741
|
+
"edges": [],
|
|
742
|
+
"widgets": [],
|
|
743
|
+
"interactions": [],
|
|
744
|
+
"excluded": [],
|
|
745
|
+
"behaviors": [
|
|
746
|
+
{"assertion_id": "ba_…", "status": "specified", "scenario": 1, "steps": [1, 2]}
|
|
747
|
+
]
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
```
|
|
751
|
+
|
|
752
|
+
`discovery_digest` must equal `stableDigest` of this page's entry in
|
|
753
|
+
`discovery.json`; the pre-audit page digest, the post-review `page_digests`
|
|
754
|
+
value, and every draft for the page must use the same value.
|
|
755
|
+
|
|
756
|
+
`coverage.behaviors[]` accepts exactly these link shapes:
|
|
757
|
+
|
|
758
|
+
```json
|
|
759
|
+
{"assertion_id": "ba_…", "status": "specified", "scenario": 1, "steps": [1, 2]}
|
|
760
|
+
{"assertion_id": "ba_…", "status": "waived", "reason": "duplicate-assertion", "canonical_assertion_id": "ba_…", "evidence_refs": []}
|
|
761
|
+
{"assertion_id": "ba_…", "status": "waived", "reason": "no-user-observable", "evidence_refs": ["…"]}
|
|
762
|
+
{"assertion_id": "ba_…", "status": "waived", "reason": "out-of-scope", "evidence_refs": ["…"], "scope_rule": "external-surface"}
|
|
763
|
+
{"assertion_id": "ba_…", "status": "unknown", "unknown_ids": ["unk_…"]}
|
|
764
|
+
```
|
|
765
|
+
|
|
766
|
+
- `specified` links use the pre-reviewed scenario and include every planned
|
|
767
|
+
step. Scenario and step indices are 1-based and must exist in this draft;
|
|
768
|
+
`steps` is a non-empty array and may add supporting steps.
|
|
769
|
+
- A `specified` scenario must restate the assertion's navigation gate
|
|
770
|
+
preconditions in the scenario's steps. Write the branch as the user sees it:
|
|
771
|
+
where the gate leads when met, and the prompt or redirect when unmet. Gate
|
|
772
|
+
detail rows (`polarity:`, `redirect_when_unmet:`, `…: interceptor:…`) travel
|
|
773
|
+
with their axis; the audit requires one axis token in the scenario. An ASCII
|
|
774
|
+
token matches only as a whole word, so a step that mentions "payload" does
|
|
775
|
+
not satisfy a `pay` gate. A page that already requires the same axis at entry
|
|
776
|
+
(`required_state` or an interceptor) covers the gate in its entry scenario,
|
|
777
|
+
so action scenarios are not forced to repeat it. Discovery gives a user
|
|
778
|
+
transition the target page's gate even when the edge itself has no guard; an
|
|
779
|
+
edge guard only covers the axis it names. Non-navigation data axes
|
|
780
|
+
(`data-state`, `content`, …) and prose guards stay with the semantic review;
|
|
781
|
+
only recognized gate axes are language-checked. A scenario that drops the
|
|
782
|
+
gate is a hard `link-precondition` failure.
|
|
783
|
+
- A draft links one assertion at most once. The only exception is a set of
|
|
784
|
+
`specified` links for genuinely distinct response branches: every link must
|
|
785
|
+
carry a different exact `response_span` / `response_role`, match that branch's
|
|
786
|
+
evidence and operation-review scenario/step ownership, and retain the normal
|
|
787
|
+
planned-disposition checks. True duplicate identities, unbacked identities,
|
|
788
|
+
and identity-less sharing fail as `link-duplicate`. Every planned assertion
|
|
789
|
+
for the page needs at least one link across the page's drafts; a missing
|
|
790
|
+
required link is a hard failure.
|
|
791
|
+
- A duplicate link must name the exact planned `canonical_assertion_id`, and
|
|
792
|
+
that canonical assertion must have its own `specified` link.
|
|
793
|
+
- `no-user-observable` and `out-of-scope` waivers require evidence that
|
|
794
|
+
resolves to `state.status === "valid"` on the current snapshot. A `stale`,
|
|
795
|
+
`source-unread`, `source-changed`, or `invalid` reference fails the waiver;
|
|
796
|
+
`out-of-scope` also requires the exact planned `external-surface` or
|
|
797
|
+
`explicitly-excluded-source` rule. Arbitrary text and mismatched rules fail.
|
|
798
|
+
- An `unknown` link must cite unresolved unknown IDs whose
|
|
799
|
+
`affected_assertion_id` is the linked assertion. Resolved or unrelated IDs
|
|
800
|
+
fail.
|
|
801
|
+
- Links must agree with the planned disposition. A `specified` link for an
|
|
802
|
+
unknown assertion, or vice versa, is a conflict.
|
|
803
|
+
|
|
804
|
+
### 5.1 Evidence-owned semantic detail
|
|
805
|
+
|
|
806
|
+
Immutable and worker-added discovery assertions, together with operation response
|
|
807
|
+
roles, may classify observable behavior
|
|
808
|
+
with the closed vocabulary `trigger`, `state-transition`, `ui-result`,
|
|
809
|
+
`http-error`, `business-error`, `empty`, `reset`, and `boundary`. This is not a
|
|
810
|
+
fixed checklist: the post-audit derives only the categories present on
|
|
811
|
+
evidence-backed assertions and each operation's own `response_spans` roles.
|
|
812
|
+
One operation's response branches never satisfy another operation's category.
|
|
813
|
+
|
|
814
|
+
An entry assertion carries `operation_id`, `category`, and an optional exact
|
|
815
|
+
`claim_token` (an outcome description is the fallback). Its evidence-backed
|
|
816
|
+
`operation_reviews` entry may own a scenario and optional `steps` subset without
|
|
817
|
+
an operation candidate; a review for any other unknown operation remains an
|
|
818
|
+
`operation-review-extra` failure. Never invent a candidate for entry-only
|
|
819
|
+
semantics.
|
|
820
|
+
|
|
821
|
+
Every operation candidate needs an `operation_reviews` entry and a draft endpoint
|
|
822
|
+
projection (`operation-review-missing` otherwise), except by its `owner`:
|
|
823
|
+
`external` (initiated by another page/module) and `out-of-feature-scope` are
|
|
824
|
+
neither reviewed nor projected; their evidence stays in the ledger. prepare sets
|
|
825
|
+
`out-of-feature-scope` only on an incremental `SUP` / `CHG` page
|
|
826
|
+
(`lib/scope.mjs` `scopeFeatureOperations`): an operation none of whose spans
|
|
827
|
+
overlaps the page's feature evidence (feature `source_refs`, map refs, `CHG`
|
|
828
|
+
change lines; a ref without a line covers its file) and whose spans' enclosing
|
|
829
|
+
functions are outside the HomeGraph call closure (calls / instantiates /
|
|
830
|
+
references / contains, plus same-name methods for dispatch) of the functions
|
|
831
|
+
holding that evidence. Each one is recorded in
|
|
832
|
+
`plan.json pages[].feature_scope.operation_scope.excluded` and listed in the
|
|
833
|
+
prompt; the worker puts its `operation_id` in `coverage.excluded` with
|
|
834
|
+
`out-of-feature-scope` and waives assertions on it through the usual
|
|
835
|
+
`out-of-scope` + `explicitly-excluded-source` path. Whenever this cannot be
|
|
836
|
+
decided (no feature evidence or no code anchor, an anchor the graph does not
|
|
837
|
+
know, no graph, the closure over its limit, a span without an enclosing
|
|
838
|
+
function) the page's operations stay in scope (`operation_scope.status:
|
|
839
|
+
"undetermined"`). NEW pages and full runs are never affected.
|
|
840
|
+
|
|
841
|
+
A response role may carry explicit `category`, `assertion_id`, and
|
|
842
|
+
`claim_token` metadata. Real v3 spans also have these closed role mappings:
|
|
843
|
+
`callback` → `ui-result`, `promise` → `ui-result`, `complete` → `reset`, and
|
|
844
|
+
`response-interceptor` → `state-transition`. When `category` or `assertion_id`
|
|
845
|
+
is absent, the post-audit derives the category and binds the span to a worker
|
|
846
|
+
assertion whose `evidence_refs` contains the exact same source location. An
|
|
847
|
+
unrecognized role produces a `semantic-response-role-unknown` scoped unknown.
|
|
848
|
+
Any supplied assertion or response `category` outside the closed vocabulary
|
|
849
|
+
instead produces `semantic-category-unknown` with `category:null`; an invalid
|
|
850
|
+
explicit response category never falls back to the real-role mapping. A
|
|
851
|
+
recognized role without its bound assertion produces a semantic evidence
|
|
852
|
+
unknown. None of these blind spots is silently exempt, and each keeps production
|
|
853
|
+
delivery partial rather than becoming a hard missing-category failure.
|
|
854
|
+
|
|
855
|
+
Every evidence-backed scenario/step/response branch is an independent semantic
|
|
856
|
+
owner, even when several branches share one `operation_id` and `category`.
|
|
857
|
+
Covering one branch cannot satisfy another. A behavior link may carry audit-only
|
|
858
|
+
`response_span` and `response_role` identity. When one assertion is bound to
|
|
859
|
+
multiple response roles, each branch has its own `specified` link with a
|
|
860
|
+
distinct exact identity; deleting either branch leaves that operation/category
|
|
861
|
+
uncovered. True duplicates and identity-less sharing remain invalid. Neither
|
|
862
|
+
identity field is rendered into the SPEC body.
|
|
863
|
+
|
|
864
|
+
A specified link for a classified assertion adds the same ownership metadata:
|
|
865
|
+
|
|
866
|
+
```json
|
|
867
|
+
{"assertion_id":"ba_…","status":"specified","scenario":1,"steps":[2],"operation_id":"op-list","category":"http-error","claim_token":"The request failure preserves the previous list"}
|
|
868
|
+
```
|
|
869
|
+
|
|
870
|
+
The claim must occur in at least one owned step, and the link's claim must equal
|
|
871
|
+
the evidence claim. Contracts and request templates cannot substitute for this
|
|
872
|
+
observable behavior. A missing category is a G4 `semantic-category-missing`
|
|
873
|
+
failure with the exact `operation_id` and `category`. Missing evidence, an
|
|
874
|
+
unresolved response role, an absent operation/scenario owner, or an unavailable
|
|
875
|
+
claim instead produces a scoped semantic unknown and partial delivery. A valid
|
|
876
|
+
scoped `unknown` disposition stays partial, and a lawful waiver keeps its normal
|
|
877
|
+
waived delivery outcome; neither may also fail as `semantic-category-missing`.
|
|
878
|
+
Invalid unknowns and waivers still fail through the existing behavior contracts.
|
|
879
|
+
|
|
880
|
+
`coverage.behaviors` must be a real array whenever it is present. A non-array
|
|
881
|
+
value is a hard G4 `behaviors-shape` failure even when discovery is missing, and
|
|
882
|
+
finalize/report link collection never spreads a non-array value.
|
|
883
|
+
|
|
884
|
+
`discovery_digest` and `coverage.behaviors` are audit metadata only. Neither
|
|
885
|
+
`discovery_digest` nor `coverage.behaviors` is rendered into the SPEC body or
|
|
886
|
+
`specs.json`.
|
|
887
|
+
|
|
888
|
+
## 6. Pre-Audit
|
|
889
|
+
|
|
890
|
+
The pre-audit checks the evidence anchor, reconciliation, immutable discovery,
|
|
891
|
+
evidence references, unknown relevance, waiver evidence, and review
|
|
892
|
+
dispositions. It writes `pre-audit.json` atomically:
|
|
893
|
+
|
|
894
|
+
```json
|
|
895
|
+
{
|
|
896
|
+
"status": "completed",
|
|
897
|
+
"coverage_status": "complete",
|
|
898
|
+
"discovery_digest": "sha256-of-the-full-group-discovery-document",
|
|
899
|
+
"attempt": 2,
|
|
900
|
+
"pages": {
|
|
901
|
+
"page:Alpha": {
|
|
902
|
+
"status": "completed",
|
|
903
|
+
"coverage_status": "complete",
|
|
904
|
+
"failures": [],
|
|
905
|
+
"unknowns": [],
|
|
906
|
+
"dispositions": ["…the planned dispositions…"],
|
|
907
|
+
"discovery_digest": "sha256-of-this-page-discovery-entry",
|
|
908
|
+
"attempt": 2
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
```
|
|
913
|
+
|
|
914
|
+
Digest scope:
|
|
915
|
+
|
|
916
|
+
- The group `discovery_digest` is `stableDigest` over the full
|
|
917
|
+
`{ schema_version, attempt, pages }` document. It is not a reduced page-digest
|
|
918
|
+
projection, so adding a page changes the group digest.
|
|
919
|
+
- Each `pages[page_id].discovery_digest` is `stableDigest` of that page entry;
|
|
920
|
+
page digests are distinct and bind drafts.
|
|
921
|
+
- A group status is `failed` when any page fails or a group-level ledger,
|
|
922
|
+
attempt, extra-page, or missing-page check fails; `incomplete` when any page
|
|
923
|
+
is incomplete; otherwise `completed`.
|
|
924
|
+
- Pre-audit `completed` means the structural checks and required reviews
|
|
925
|
+
finished. `incomplete` permits drafting but forces partial delivery.
|
|
926
|
+
`failed` blocks drafting.
|
|
927
|
+
- Page coverage is `partial` whenever the page status is not `completed`, an
|
|
928
|
+
unknown is unresolved, composition is open, a SourceUnit is unread, or stale
|
|
929
|
+
evidence is not legally accounted for. Audit status and coverage status are
|
|
930
|
+
related but not identical.
|
|
931
|
+
|
|
932
|
+
## 7. Post-Review and Post-Audit
|
|
933
|
+
|
|
934
|
+
The worker writes `post-review.json` after drafting:
|
|
935
|
+
|
|
936
|
+
```json
|
|
937
|
+
{
|
|
938
|
+
"attempt": 2,
|
|
939
|
+
"discovery_digest": "sha256-of-the-full-group-discovery-document",
|
|
940
|
+
"page_digests": {
|
|
941
|
+
"page:Alpha": "sha256-of-the-page-discovery-entry"
|
|
942
|
+
},
|
|
943
|
+
"drafts_digest": "sha256-of-all-group-drafts-sorted-by-spec_id",
|
|
944
|
+
"status": "completed",
|
|
945
|
+
"reviews": [
|
|
946
|
+
{
|
|
947
|
+
"assertion_id": "ba_…",
|
|
948
|
+
"evidence_status": "supported",
|
|
949
|
+
"coverage_status": "covered"
|
|
950
|
+
}
|
|
951
|
+
]
|
|
952
|
+
}
|
|
953
|
+
```
|
|
954
|
+
|
|
955
|
+
- `discovery_digest` is the same full-document group digest used by the
|
|
956
|
+
pre-audit.
|
|
957
|
+
- `page_digests[page_id]` carries the per-page discovery digest.
|
|
958
|
+
- `drafts_digest` is `stableDigest` over every canonical group draft sorted by `spec_id`. It is validated exactly once at group scope; a single-page
|
|
959
|
+
evaluator never recomputes it from filtered drafts.
|
|
960
|
+
- `reviews[]` is keyed by `assertion_id`. `evidence_status` is `supported`,
|
|
961
|
+
`refuted`, `insufficient`, `unsupported`, or `incomplete`. `coverage_status`
|
|
962
|
+
is `covered`, `mismatch`, `not-required`, or `incomplete`.
|
|
963
|
+
- `unsupported` evidence and a `mismatch` coverage conclusion are hard
|
|
964
|
+
failures. A missing or `incomplete` review adds a `review-incomplete`
|
|
965
|
+
unknown and leaves authoring partial; it is not a hard failure.
|
|
966
|
+
- The review matrix is closed: `specified` requires
|
|
967
|
+
`supported`/`covered`; `unknown` requires `insufficient`/`not-required`;
|
|
968
|
+
`no-user-observable` requires `refuted`/`not-required`; `duplicate-assertion`
|
|
969
|
+
and `out-of-scope` require `supported`/`not-required`.
|
|
970
|
+
- At group scope, every review `assertion_id` must belong to at least one page
|
|
971
|
+
assertion set in the group. An ID outside the union is a G4 `review-extra`
|
|
972
|
+
failure; it cannot be filtered away by a per-page projection.
|
|
973
|
+
|
|
974
|
+
The post-audit also runs the §5.1 semantic-detail evaluation for every draft.
|
|
975
|
+
Its failures enter the G4 failure set, its unknowns enter the page unknown set,
|
|
976
|
+
and both participate in `derivePageState`: a missing category fails delivery,
|
|
977
|
+
while unresolved semantic evidence or ownership keeps authoring and delivery
|
|
978
|
+
partial. Helper output alone is never the production verdict.
|
|
979
|
+
|
|
980
|
+
The post-audit writes `post-audit.json` as operator output. It is not a gate
|
|
981
|
+
input and no gate reads it as a verdict; the gate recomputes the same evaluation
|
|
982
|
+
from discovery, pre-audit, post-review, and drafts. The file is still part of the
|
|
983
|
+
submission/finalize digest fence.
|
|
984
|
+
|
|
985
|
+
```json
|
|
986
|
+
{
|
|
987
|
+
"status": "completed",
|
|
988
|
+
"coverage_status": "complete",
|
|
989
|
+
"discovery_digest": "sha256-of-the-full-group-discovery-document",
|
|
990
|
+
"attempt": 2,
|
|
991
|
+
"counts": {"specified": 1, "waived": 0, "unknown": 0, "conflicted": 0},
|
|
992
|
+
"pages": {
|
|
993
|
+
"page:Alpha": {
|
|
994
|
+
"authoring_status": "passed",
|
|
995
|
+
"coverage_status": "complete",
|
|
996
|
+
"delivery_status": "delivered-complete",
|
|
997
|
+
"counts": {"specified": 1, "waived": 0, "unknown": 0, "conflicted": 0},
|
|
998
|
+
"dispositions": ["…"],
|
|
999
|
+
"unknowns": [],
|
|
1000
|
+
"source_units": ["…"],
|
|
1001
|
+
"composition_roots": ["src/primary.ext"],
|
|
1002
|
+
"inventory_status": "closed",
|
|
1003
|
+
"unresolved_references": [],
|
|
1004
|
+
"pre_audit_status": "completed",
|
|
1005
|
+
"post_audit_status": "completed"
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
"failures": []
|
|
1009
|
+
}
|
|
1010
|
+
```
|
|
1011
|
+
|
|
1012
|
+
`counts.waived` includes every waiver-class disposition:
|
|
1013
|
+
`no-user-observable`, `duplicate-assertion`, and `out-of-scope`. `promoted`
|
|
1014
|
+
candidates are not double-counted because their promoted assertion is already
|
|
1015
|
+
planned `specified`.
|
|
1016
|
+
|
|
1017
|
+
## 8. Hard Failure, Partial, and Not-Audited
|
|
1018
|
+
|
|
1019
|
+
Hard failures include malformed or missing required artifacts, digest or
|
|
1020
|
+
attempt mismatches, evidence-anchor failures, immutable tampering, missing or
|
|
1021
|
+
extra page entries, an invalid scenario or step link, a specified scenario that
|
|
1022
|
+
drops a navigation gate precondition, a demonstrated semantic mismatch, a
|
|
1023
|
+
missing required link, an invalid waiver or unknown, and `unsupported` evidence.
|
|
1024
|
+
Hard failures always decide `failed` before any complete/partial
|
|
1025
|
+
classification.
|
|
1026
|
+
|
|
1027
|
+
Missing artifacts are distinguished by the submission phase:
|
|
1028
|
+
|
|
1029
|
+
- Finalization requires discovery, pre-audit, and post-review. Missing any of
|
|
1030
|
+
them (`missing-discovery`, `missing-pre-audit`, or `missing-post-review`) is a
|
|
1031
|
+
retryable exit-2 readiness abort with no publication; deletion
|
|
1032
|
+
cannot turn a known omission into partial delivery.
|
|
1033
|
+
- Submission requires the same three artifacts, so no submitted group can
|
|
1034
|
+
reach finalization without them. A group the ledger closed as `failed` is the
|
|
1035
|
+
one exception at finalization: it is never dispatched again, so its missing
|
|
1036
|
+
artifacts are not awaited; it is published as a failed shard (`group-failed`)
|
|
1037
|
+
and lands in `incomplete.failedShards`.
|
|
1038
|
+
- Independently, a present but non-array `coverage.behaviors` is a G4
|
|
1039
|
+
`behaviors-shape` failure before any partial fallback.
|
|
1040
|
+
- A behavior-anchored plan page that produced no audited state becomes an
|
|
1041
|
+
explicit placeholder: `authoring_status:"partial"`,
|
|
1042
|
+
`coverage_status:"partial"`, `delivery_status:"delivered-partial"`,
|
|
1043
|
+
pre/post status `not-audited`, zero counts, empty SourceUnits and
|
|
1044
|
+
composition, and one `not-audited` unknown. It never disappears and never
|
|
1045
|
+
throws.
|
|
1046
|
+
|
|
1047
|
+
A page is complete only when composition is closed with no open composition
|
|
1048
|
+
unknown, every SourceUnit was read and reviewed at its current digest, no
|
|
1049
|
+
unknown remains, every evidence reference is valid, both audits completed, and
|
|
1050
|
+
every assertion is specified or legally waived. Raw
|
|
1051
|
+
`unresolved_references`/`inventory_status` are immutable producer diagnostics and
|
|
1052
|
+
do not participate in this verdict; a lawful resolution closes the composition
|
|
1053
|
+
unknown they describe. A run with any unresolved page
|
|
1054
|
+
or run-level behavior unknown is `delivered-partial`; the finalize summary
|
|
1055
|
+
reports `delivered-partial` and `unresolved_evidence_areas`.
|
|
1056
|
+
|
|
1057
|
+
## 9. Submission, Commit, and Finalize Fences
|
|
1058
|
+
|
|
1059
|
+
Intermediate discovery, draft, review, and audit artifacts are not submission authorization. A healthy claimed/live worker must still explicitly submit after its post-audit; watchdog recovery is available only at the recovery-eligibility boundaries defined by the execution model. Behavior-artifact digest fences are additional to—not replacements for—the owner-scoped attempt manifest fence that recovery derives from a complete attempt scan. The digest maps prove that evidence and attempt artifacts did not change, while the manifest independently proves the requested groups' visible draft set, conservatively fenced ambiguous files, and exact batch-owned canonical additions without blocking on drafts owned only by healthy, non-requested groups.
|
|
1060
|
+
|
|
1061
|
+
`readSubmissionSnapshot` and every `commitSubmission` lock authenticate
|
|
1062
|
+
`plan.json` with `assertPlanContentVersion`, unconditionally and for every group
|
|
1063
|
+
kind, including shared and behavior-free groups. The check is never predicated
|
|
1064
|
+
on mutable `page.behavior` presence, so removing the anchor cannot disable the
|
|
1065
|
+
behavior gates.
|
|
1066
|
+
|
|
1067
|
+
`validateSubmission` captures a sorted digest map over immutable `evidence/**`
|
|
1068
|
+
plus the four attempt artifacts before evaluation and again after evaluation.
|
|
1069
|
+
The maps must be exactly equal, including `null`/missing states; any difference
|
|
1070
|
+
is a retryable conflict and that round performs no submit, abandon, or
|
|
1071
|
+
publication. The map carried into `commitSubmission` is the pre-evaluation map.
|
|
1072
|
+
The four fixed evidence files (`composition.json`, `candidates.json`,
|
|
1073
|
+
`assertions.json`, `unknowns.json`) of every behavior page are always seeded as
|
|
1074
|
+
digest-or-null, so a missing file cannot appear later as a newly accepted key.
|
|
1075
|
+
|
|
1076
|
+
`commitSubmission` rechecks under the submission lock:
|
|
1077
|
+
|
|
1078
|
+
- the ledger `plan_version` and `assertPlanContentVersion(plan)`;
|
|
1079
|
+
- every behavior artifact digest and every allowed-missing `null` state;
|
|
1080
|
+
- the staged bytes and the existing canonical bytes.
|
|
1081
|
+
|
|
1082
|
+
A replacement, deletion, appearance, or same-version plan-content change
|
|
1083
|
+
returns `{conflict:true}` and publishes nothing: no abandon event, no submit
|
|
1084
|
+
event, and no canonical file. A conflict is retryable from a fresh snapshot.
|
|
1085
|
+
|
|
1086
|
+
`finalize` performs the same fence with a complete initial digest baseline:
|
|
1087
|
+
|
|
1088
|
+
- require `plan.plan_version === state.plan_version` and
|
|
1089
|
+
`assertPlanContentVersion(plan)` before rendering;
|
|
1090
|
+
- baseline immutable evidence and attempt artifacts after plan/attempt loading
|
|
1091
|
+
but before `renderAll`, seeding every fixed evidence file as digest-or-null;
|
|
1092
|
+
the baseline is monotonic: after the complete initial pass, no key may be
|
|
1093
|
+
added and no digest may be replaced;
|
|
1094
|
+
- after that complete baseline, a later observation may not add a key or turn a
|
|
1095
|
+
`null` into a present file; such an appearance aborts rather than merging;
|
|
1096
|
+
- assert the baseline immediately before and after every group gate;
|
|
1097
|
+
- hold the submission ledger lock across staged rendering, gates, and
|
|
1098
|
+
publication, so no submit can advance the attempt mid-snapshot;
|
|
1099
|
+
- render SPECs and write `coverage-report.json`, `specs.json`,
|
|
1100
|
+
`grouping-report.json`, and `report.md` into a staging directory, verify the
|
|
1101
|
+
baseline again, then publish with `specs.json` last and rollback on failure.
|
|
1102
|
+
|
|
1103
|
+
A post-gate replacement aborts finalization instead of being adopted as the new
|
|
1104
|
+
expected bytes. Operational aborts exit 2; a published run exits 0 even when a
|
|
1105
|
+
gate failed, because `specs.json` declares the hole through `completeness` /
|
|
1106
|
+
`incomplete`. Finalize writes `coverage-report.json` beside `report.md` and adds
|
|
1107
|
+
a `## Behavior Coverage` section; `specs.json` keeps `so-id`/`path`/`deps` per
|
|
1108
|
+
SPEC (plus the completeness declaration) and no SPEC body contract changes.
|
|
1109
|
+
|
|
1110
|
+
## 10. Coverage Report and Downstream Isolation
|
|
1111
|
+
|
|
1112
|
+
`coverage-report.json` contains:
|
|
1113
|
+
|
|
1114
|
+
- `schema_version`, `plan_version`, `coverage_status`, `delivery_status`;
|
|
1115
|
+
- `unresolved_evidence_areas` — unresolved pages plus run-level unknowns;
|
|
1116
|
+
- `behavior_unknowns`, `composition_roots`, aggregate `counts`, and
|
|
1117
|
+
`failures`;
|
|
1118
|
+
- `pages[]` with `page_id`, `authoring_status`, `coverage_status`,
|
|
1119
|
+
`delivery_status`, `composition_roots`, `source_units`,
|
|
1120
|
+
`inventory_status`, `unresolved_references`, `pre_audit_status`,
|
|
1121
|
+
`post_audit_status`, `dispositions`, canonical `links`, `unknowns`,
|
|
1122
|
+
`interaction_scans`, `source_unit_reviews`, and `counts`.
|
|
1123
|
+
|
|
1124
|
+
`interaction_scans` and `source_unit_reviews` are deterministic projections of
|
|
1125
|
+
the page state, sorted by `locator` and `source_unit_id`. They are diagnostics
|
|
1126
|
+
only: neither appears in `specs.json`, a SPEC body, or coder instructions. A
|
|
1127
|
+
page that was never audited keeps both arrays empty.
|
|
1128
|
+
|
|
1129
|
+
`report.md` distinguishes authoring success from coverage completeness and
|
|
1130
|
+
lists hard failures, partial reasons, unresolved source locations, and unknown
|
|
1131
|
+
reasons with next actions. Its `## Behavior Coverage` section also prints:
|
|
1132
|
+
|
|
1133
|
+
- `Failed or truncated scan units` — scan records whose status is not `ok`, plus
|
|
1134
|
+
`truncated: true` records while the page still carries an unresolved
|
|
1135
|
+
`cause: "truncated"` unknown for that scan's `source_unit_id`;
|
|
1136
|
+
- `Incomplete SourceUnit reviews` — current SourceUnits without a
|
|
1137
|
+
digest-matched terminal review and exact attribution;
|
|
1138
|
+
- `Pages with scan or review blind spots` — pages that are already partial and
|
|
1139
|
+
carry at least one of those blind spots.
|
|
1140
|
+
|
|
1141
|
+
Warnings and failures keep independent sections; G7 and G8 remain warnings and
|
|
1142
|
+
never determine delivery state.
|
|
1143
|
+
|
|
1144
|
+
Partial status is generation-side metadata only. `specs.json` keeps its three
|
|
1145
|
+
downstream fields (`so-id`, `path`, `deps`) and is unchanged. SPEC bodies carry
|
|
1146
|
+
no partial marker. Coder instructions carry no coverage-status requirement.
|
|
1147
|
+
Complete and partial packages are structurally identical for the downstream
|
|
1148
|
+
coder. Partial status never appears in `specs.json`, SPEC bodies, or coder instructions.
|
|
1149
|
+
|
|
1150
|
+
## 11. G4 Priorities
|
|
1151
|
+
|
|
1152
|
+
For a behavior-enabled page group, assertion links are the primary
|
|
1153
|
+
authoring-coverage contract, and the legacy `claim_token` coverage is a
|
|
1154
|
+
secondary check. G4 reads `discovery.json`, `pre-audit.json`, and `post-review.json` together with the drafts; these are the gate inputs. `post-audit.json` is recomputed operator output, not a G4 input: the gate re-evaluates the same inputs and never reads that file as a verdict. The operator file is still digest-fenced for submission and finalization.
|
|
1155
|
+
|
|
1156
|
+
G4 evaluates:
|
|
1157
|
+
|
|
1158
|
+
1. the discovery, pre-audit, and post-review artifact set, digests, attempts,
|
|
1159
|
+
and page sets;
|
|
1160
|
+
2. evidence anchor, reconciliation, and immutable discovery;
|
|
1161
|
+
3. every planned assertion's explicit `coverage.behaviors` link;
|
|
1162
|
+
4. semantic evidence and coverage reviews;
|
|
1163
|
+
5. the legacy `out_edges`, `is_trigger` widget, and interaction-signal token
|
|
1164
|
+
claims. An interaction signal owned by an immutable interaction-signal
|
|
1165
|
+
candidate is validated by that candidate's disposition instead of a
|
|
1166
|
+
standalone token claim: promoted → claim, waived → exclusion, unknown or
|
|
1167
|
+
unfinished → partial.
|
|
1168
|
+
|
|
1169
|
+
A `coverage_status:"partial"` page is never converted into a failure or a
|
|
1170
|
+
warning. It stays partial and drives honest `delivered-partial` delivery.
|