@buaa_smat/hometrans 26.0.5 → 26.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +249 -279
- package/agents/code-reviewer.md +1 -1
- package/dist/cli/editors.json +20 -0
- package/dist/platform/registry.js +1 -0
- package/dist/platform/validate.js +2 -1
- package/i18n/agents/code-reviewer.md +1 -1
- package/i18n/platforms/atomcode/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/claude-code/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/codebuddy/skills/a2h-app-migrate/SKILL.unique.md +8 -0
- package/i18n/platforms/codex/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/cursor/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/deveco/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/opencode/skills/a2h-app-migrate/SKILL.unique.md +10 -0
- package/i18n/platforms/qoder/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/qoder-cn/skills/a2h-app-migrate/SKILL.unique.md +8 -0
- package/i18n/platforms/trae/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/trae-cn/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/skills/a2h-app-migrate/SKILL.md +32 -15
- package/i18n/skills/a2h-app-migrate/references/stage-map.md +4 -2
- package/i18n/skills/a2h-app-migrate/references/workflow.yaml +148 -89
- package/i18n/skills/a2h-app-migrate/scripts/env_preflight.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/scripts/validate_workflow.mjs +51 -2
- package/i18n/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/test/test_interaction.mjs +0 -2
- package/i18n/skills/a2h-app-migrate/test/test_resume_plan.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/test/test_skill_doc.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/test/test_utg_static_done.mjs +9 -3
- package/i18n/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +4 -2
- package/i18n/skills/a2h-arkts-logic-coder/SKILL.md +8 -7
- package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -2
- package/i18n/skills/a2h-arkts-logic-coder/references/code-generation.md +33 -12
- package/i18n/skills/a2h-batch-ui-align/SKILL.md +14 -12
- package/i18n/skills/a2h-batch-ui-align/references/cards/alignment.md +1 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/canvas.md +1 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/dynamics.md +32 -1
- package/i18n/skills/a2h-batch-ui-align/references/cards/geometry.md +3 -2
- package/i18n/skills/a2h-batch-ui-align/references/cards/interaction.md +4 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/resources.md +19 -1
- package/i18n/skills/a2h-batch-ui-align/references/cards/widgets.md +13 -1
- package/i18n/skills/a2h-batch-ui-align/references/cards/window.md +2 -2
- package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +205 -7
- package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +10 -17
- package/i18n/skills/a2h-batch-ui-align/references/incremental-scope.md +3 -4
- package/i18n/skills/a2h-batch-ui-align/references/lottie-integration.md +47 -2
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +52 -328
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +1 -138
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +2 -11
- package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_paradigm-selection.md +1 -1
- package/i18n/skills/a2h-batch-ui-align/references/step3-capture.md +8 -23
- package/i18n/skills/a2h-batch-ui-align/references/step4-prepare.md +2 -1
- package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +17 -9
- package/i18n/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +239 -16
- package/i18n/skills/a2h-batch-ui-align/scripts/group_pack.mjs +6 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +6 -3
- package/i18n/skills/a2h-batch-ui-align/scripts/measure_pack.ts +170 -10
- package/i18n/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +42 -1
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/main.ts +20 -1
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +81 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/click_handler.ts +140 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/collapsing_toolbar.ts +124 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/compose_semantics.ts +287 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/flowitem_width.ts +78 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +194 -8
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/inset_stacked.ts +138 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/int_division.ts +181 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +62 -2
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_path.ts +77 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_ready.ts +109 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +88 -18
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_cycle.ts +140 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +2 -2
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/see_through_overlay.ts +149 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_builder.ts +139 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_show_close.ts +53 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/space_between_optional.ts +115 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +7 -1
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/width_fill.ts +160 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_inset_stacked.test.mjs +155 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +60 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +38 -0
- package/i18n/skills/a2h-module-semantic-docs/SKILL.md +3 -2
- package/i18n/skills/a2h-page-specgen/SKILL.md +36 -5
- package/i18n/skills/a2h-page-specgen/references/behavior-ledger.md +89 -21
- package/i18n/skills/a2h-page-specgen/references/gates.md +33 -7
- package/i18n/skills/a2h-page-specgen/references/scenario-authoring.md +67 -13
- package/i18n/skills/a2h-page-specgen/references/spec-example.md +166 -32
- package/i18n/skills/a2h-page-specgen/references/spec-template.md +8 -5
- package/i18n/skills/a2h-page-specgen/scripts/behavior-audit.mjs +37 -1
- package/i18n/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +241 -22
- package/i18n/skills/a2h-page-specgen/scripts/behavior-model.mjs +29 -2
- package/i18n/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +32 -0
- package/i18n/skills/a2h-page-specgen/scripts/contract-calls.mjs +715 -0
- package/i18n/skills/a2h-page-specgen/scripts/footprint.mjs +129 -2
- package/i18n/skills/a2h-page-specgen/scripts/gate.mjs +19 -10
- package/i18n/skills/a2h-page-specgen/scripts/lib/contracts.mjs +62 -3
- package/i18n/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +27 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/hg.mjs +116 -6
- package/i18n/skills/a2h-page-specgen/scripts/operation-evidence.mjs +270 -29
- package/i18n/skills/a2h-page-specgen/scripts/prepare.mjs +26 -14
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +118 -25
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +104 -19
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +118 -25
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +104 -19
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +216 -216
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +1 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +2 -2
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +118 -25
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +100 -15
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +118 -25
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +104 -19
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +155 -3
- package/i18n/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +529 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +27 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +158 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +11 -13
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +97 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/contract-calls.test.mjs +737 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +75 -3
- package/i18n/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +24 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +124 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +6 -2
- package/i18n/skills/a2h-page-specgen/scripts/test/gate.test.mjs +106 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +32 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/hg.test.mjs +12 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +6 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +11 -3
- package/i18n/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +1 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +1 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/submit.test.mjs +159 -27
- package/i18n/skills/a2h-resource-convert/SKILL.md +1 -1
- package/i18n/skills/a2h-resource-convert/references/lottie-conversion-rules.md +2 -2
- package/i18n/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +124 -8
- package/i18n/skills/a2h-resource-convert/scripts/sync-framework-strings.mjs +147 -0
- package/i18n/skills/a2h-resource-convert/scripts/tests/framework_strings.test.mjs +131 -0
- package/i18n/skills/a2h-spec-design-pipeline/SKILL.md +15 -12
- package/i18n/skills/a2h-spec-design-pipeline/references/coding-loop.md +38 -10
- package/i18n/skills/a2h-spec-design-pipeline/references/initialization.md +2 -2
- package/i18n/skills/a2h-spec-design-pipeline/references/post-loop.md +2 -2
- package/i18n/skills/a2h-spec-design-pipeline/references/reply-recovery.md +172 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/review-loop.md +2 -2
- package/i18n/skills/a2h-spec-design-pipeline/references/scripts.md +5 -3
- package/i18n/skills/a2h-spec-design-pipeline/references/state-and-resume.md +7 -1
- package/i18n/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +1 -1
- package/i18n/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +2 -0
- package/i18n/skills/a2h-spec-generate/references/input-formats.md +1 -1
- package/i18n/skills/a2h-utg-explorer/SKILL.md +11 -5
- package/i18n/skills/a2h-utg-explorer/references/architecture.md +37 -19
- package/i18n/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +48 -3
- package/i18n/skills/a2h-utg-explorer/scripts/final_utg.mjs +21 -0
- package/i18n/skills/a2h-utg-explorer/scripts/recover_d.mjs +67 -8
- package/i18n/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +32 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/dialog_own_layout.test.mjs +40 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +63 -2
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +143 -14
- package/i18n/skills/a2h-utg-static/SKILL.md +3 -3
- package/i18n/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +4 -3
- package/i18n/skills/a2h-utg-static/scripts/click_paths.mjs +1 -1
- package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +25 -0
- package/i18n/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +1 -0
- package/package.json +2 -1
- package/platforms/atomcode/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/claude-code/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/codebuddy/agents/build-fixer.frontmatter.md +5 -0
- package/platforms/codebuddy/agents/code-reviewer.frontmatter.md +5 -0
- package/platforms/codebuddy/agents/model-render-worker.frontmatter.md +5 -0
- package/platforms/codebuddy/agents/model-worker.frontmatter.md +5 -0
- package/platforms/codebuddy/agents/specgen-worker.frontmatter.md +5 -0
- package/platforms/codebuddy/skills/a2h-app-migrate/SKILL.unique.md +8 -0
- package/platforms/codex/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/cursor/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/deveco/agents/build-fixer.frontmatter.md +2 -0
- package/platforms/deveco/agents/code-reviewer.frontmatter.md +2 -0
- package/platforms/deveco/agents/model-render-worker.frontmatter.md +2 -0
- package/platforms/deveco/agents/model-worker.frontmatter.md +2 -0
- package/platforms/deveco/agents/specgen-worker.frontmatter.md +2 -0
- package/platforms/deveco/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/opencode/agents/build-fixer.frontmatter.md +2 -0
- package/platforms/opencode/agents/code-reviewer.frontmatter.md +2 -0
- package/platforms/opencode/agents/model-render-worker.frontmatter.md +2 -0
- package/platforms/opencode/agents/model-worker.frontmatter.md +2 -0
- package/platforms/opencode/agents/specgen-worker.frontmatter.md +2 -0
- package/platforms/opencode/skills/a2h-app-migrate/SKILL.unique.md +10 -0
- package/platforms/qoder/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/qoder-cn/skills/a2h-app-migrate/SKILL.unique.md +8 -0
- package/platforms/trae/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/trae-cn/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/skills/a2h-app-migrate/SKILL.md +31 -14
- package/skills/a2h-app-migrate/references/stage-map.md +4 -2
- package/skills/a2h-app-migrate/references/workflow.yaml +152 -89
- package/skills/a2h-app-migrate/scripts/assert_dag_complete.mjs +1 -1
- package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +28 -11
- package/skills/a2h-app-migrate/scripts/dag_action_catalog.mjs +76 -0
- package/skills/a2h-app-migrate/scripts/dag_production_executor.mjs +60 -5
- package/skills/a2h-app-migrate/scripts/dag_runner.mjs +184 -4
- package/skills/a2h-app-migrate/scripts/env_preflight.mjs +1 -1
- package/skills/a2h-app-migrate/scripts/ledger.mjs +2 -2
- package/skills/a2h-app-migrate/scripts/resume_plan.mjs +3 -3
- package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +51 -2
- package/skills/a2h-app-migrate/test/test_dag_blocked_guard.mjs +291 -0
- package/skills/a2h-app-migrate/test/test_dag_production.mjs +40 -0
- package/skills/a2h-app-migrate/test/test_dag_runner.mjs +4 -3
- package/skills/a2h-app-migrate/test/test_i18n_engine_mirror.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_interaction.mjs +0 -2
- package/skills/a2h-app-migrate/test/test_resume_plan.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_skill_doc.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_spec_engine_contract.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +36 -0
- package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +19 -6
- package/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +4 -2
- package/skills/a2h-arkts-logic-coder/SKILL.md +8 -7
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -2
- package/skills/a2h-arkts-logic-coder/references/code-generation.md +33 -12
- package/skills/a2h-batch-ui-align/SKILL.md +14 -12
- package/skills/a2h-batch-ui-align/references/cards/alignment.md +1 -0
- package/skills/a2h-batch-ui-align/references/cards/canvas.md +1 -0
- package/skills/a2h-batch-ui-align/references/cards/dynamics.md +32 -1
- package/skills/a2h-batch-ui-align/references/cards/geometry.md +3 -2
- package/skills/a2h-batch-ui-align/references/cards/interaction.md +4 -0
- package/skills/a2h-batch-ui-align/references/cards/resources.md +19 -1
- package/skills/a2h-batch-ui-align/references/cards/widgets.md +13 -1
- package/skills/a2h-batch-ui-align/references/cards/window.md +2 -2
- package/skills/a2h-batch-ui-align/references/checker-rules.md +205 -7
- package/skills/a2h-batch-ui-align/references/conversion-procedure.md +10 -17
- package/skills/a2h-batch-ui-align/references/incremental-scope.md +3 -4
- package/skills/a2h-batch-ui-align/references/lottie-integration.md +47 -2
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +52 -328
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +1 -138
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +2 -11
- package/skills/a2h-batch-ui-align/references/state-mgmt/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +1 -1
- package/skills/a2h-batch-ui-align/references/step3-capture.md +8 -23
- package/skills/a2h-batch-ui-align/references/step4-prepare.md +2 -1
- package/skills/a2h-batch-ui-align/references/step5-convert.md +17 -9
- package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +239 -16
- package/skills/a2h-batch-ui-align/scripts/group_commit.mjs +6 -1
- package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +6 -0
- package/skills/a2h-batch-ui-align/scripts/group_pass.mjs +270 -0
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +134 -16
- package/skills/a2h-batch-ui-align/scripts/group_watch.mjs +39 -8
- package/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +6 -3
- package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +170 -10
- package/skills/a2h-batch-ui-align/scripts/module_placement.mjs +189 -0
- package/skills/a2h-batch-ui-align/scripts/overlay_effects.mjs +205 -0
- package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +42 -1
- package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +20 -1
- package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +28 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +81 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/click_handler.ts +140 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/collapsing_toolbar.ts +124 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/compose_semantics.ts +287 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/flowitem_width.ts +78 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +194 -8
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/inset_stacked.ts +138 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/int_division.ts +181 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +62 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_path.ts +77 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_ready.ts +109 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +88 -18
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_cycle.ts +140 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +2 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/see_through_overlay.ts +149 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_builder.ts +139 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_show_close.ts +53 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/space_between_optional.ts +115 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +7 -1
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/width_fill.ts +160 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/scan_file.ts +28 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_chrome_defaults.test.mjs +328 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_click_handler.test.mjs +127 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_compose_semantics.test.mjs +150 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_hit_test.test.mjs +117 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_inset_stacked.test.mjs +155 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +60 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rule_smoke.test.mjs +413 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_runtime_api.test.mjs +159 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_sheet_builder.test.mjs +192 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_theme.test.mjs +4 -2
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +38 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_compose.test.mjs +106 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_commit.test.mjs +15 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_pass.test.mjs +150 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +125 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_watch.test.mjs +56 -0
- package/skills/a2h-batch-ui-align/scripts/tests/measure_pack_icon_leaf.test.mjs +143 -0
- package/skills/a2h-batch-ui-align/scripts/tests/module_placement.test.mjs +248 -0
- package/skills/a2h-batch-ui-align/scripts/tests/overlay_effects.test.mjs +214 -0
- package/skills/a2h-fix-build-errors/references/known-patterns.md +5 -5
- package/skills/a2h-module-semantic-docs/SKILL.md +3 -2
- package/skills/a2h-module-semantic-docs/scripts/commit_module_state.mjs +10 -0
- package/skills/a2h-module-semantic-docs/scripts/design_baseline.mjs +158 -0
- package/skills/a2h-module-semantic-docs/test/test_design_baseline.mjs +128 -0
- package/skills/a2h-page-specgen/SKILL.md +36 -5
- package/skills/a2h-page-specgen/references/behavior-ledger.md +88 -21
- package/skills/a2h-page-specgen/references/evidence.md +2 -1
- package/skills/a2h-page-specgen/references/execution-model.md +13 -5
- package/skills/a2h-page-specgen/references/gates.md +33 -7
- package/skills/a2h-page-specgen/references/scenario-authoring.md +67 -13
- package/skills/a2h-page-specgen/references/spec-example.md +166 -32
- package/skills/a2h-page-specgen/references/spec-template.md +8 -5
- package/skills/a2h-page-specgen/scripts/behavior-audit.mjs +40 -2
- package/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +241 -22
- package/skills/a2h-page-specgen/scripts/behavior-model.mjs +29 -2
- package/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +35 -2
- package/skills/a2h-page-specgen/scripts/contract-calls.mjs +715 -0
- package/skills/a2h-page-specgen/scripts/finalize.mjs +55 -2
- package/skills/a2h-page-specgen/scripts/footprint.mjs +129 -2
- package/skills/a2h-page-specgen/scripts/gate.mjs +20 -11
- package/skills/a2h-page-specgen/scripts/lib/contracts.mjs +56 -3
- package/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +27 -0
- package/skills/a2h-page-specgen/scripts/lib/hg.mjs +114 -5
- package/skills/a2h-page-specgen/scripts/lib/ledger.mjs +20 -3
- package/skills/a2h-page-specgen/scripts/operation-evidence.mjs +270 -29
- package/skills/a2h-page-specgen/scripts/prepare.mjs +25 -14
- package/skills/a2h-page-specgen/scripts/report.mjs +26 -5
- package/skills/a2h-page-specgen/scripts/submission.mjs +69 -2
- package/skills/a2h-page-specgen/scripts/submit.mjs +105 -4
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +110 -18
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +97 -12
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +110 -18
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +97 -12
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +224 -224
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +1 -1
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +2 -2
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +110 -18
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +97 -12
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +110 -18
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +97 -12
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +153 -3
- package/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +529 -1
- package/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +27 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +158 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +11 -13
- package/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +97 -0
- package/skills/a2h-page-specgen/scripts/test/contract-calls.test.mjs +737 -0
- package/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +82 -3
- package/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +24 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +11 -0
- package/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +6 -2
- package/skills/a2h-page-specgen/scripts/test/gate.test.mjs +94 -1
- package/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +32 -0
- package/skills/a2h-page-specgen/scripts/test/hg.test.mjs +14 -0
- package/skills/a2h-page-specgen/scripts/test/ledger.test.mjs +49 -1
- package/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +6 -1
- package/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +12 -4
- package/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +1 -1
- package/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +1 -0
- package/skills/a2h-page-specgen/scripts/test/report.test.mjs +80 -1
- package/skills/a2h-page-specgen/scripts/test/submit.test.mjs +159 -27
- package/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +23 -0
- package/skills/a2h-page-specgen/scripts/waker.mjs +8 -1
- package/skills/a2h-resource-convert/SKILL.md +1 -1
- package/skills/a2h-resource-convert/data/framework-strings/NOTICE +10 -0
- package/skills/a2h-resource-convert/data/framework-strings/manifest.json +90 -0
- package/skills/a2h-resource-convert/data/framework-strings/strings.json +382 -0
- package/skills/a2h-resource-convert/references/conversion-rules.md +7 -1
- package/skills/a2h-resource-convert/references/lottie-conversion-rules.md +2 -2
- package/skills/a2h-resource-convert/references/step5-reference-resolution.md +16 -0
- package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +124 -8
- package/skills/a2h-resource-convert/scripts/sync-framework-strings.mjs +147 -0
- package/skills/a2h-resource-convert/scripts/tests/framework_strings.test.mjs +131 -0
- package/skills/a2h-spec-design-pipeline/SKILL.md +14 -11
- package/skills/a2h-spec-design-pipeline/references/coding-loop.md +38 -10
- package/skills/a2h-spec-design-pipeline/references/execution-model.md +3 -0
- package/skills/a2h-spec-design-pipeline/references/final-report-template.md +6 -3
- package/skills/a2h-spec-design-pipeline/references/initialization.md +2 -2
- package/skills/a2h-spec-design-pipeline/references/post-loop.md +2 -2
- package/skills/a2h-spec-design-pipeline/references/reply-recovery.md +172 -0
- package/skills/a2h-spec-design-pipeline/references/review-loop.md +2 -2
- package/skills/a2h-spec-design-pipeline/references/scripts.md +4 -3
- package/skills/a2h-spec-design-pipeline/references/shared-layer.md +24 -19
- package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +7 -1
- package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +12 -5
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleMeta.json +5 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleSet.json +4 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/README.md +27 -3
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-param-contract.json +46 -1
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-permission-map.json +2511 -295
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-cn.md +27 -72
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-en.md +39 -83
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-cn.md +132 -101
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-en.md +158 -115
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-cn.md +60 -93
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-en.md +73 -100
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/route-page-side-effect-import-cn.md +52 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/route-page-side-effect-import-en.md +59 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ApiPermissionDeclaredCheck.js +57 -8
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ArkUIRuntimePitfallCheck.js +475 -18
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/PlatformApiContractCheck.js +472 -4
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/RoutePageSideEffectImportCheck.js +570 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/arkui/RouteParamCarrierSubCheck.js +1053 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/sql/SqlIdentifierAnalysis.js +427 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/index.js +7 -1
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/package.json +1 -1
- package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +1 -1
- package/skills/a2h-spec-design-pipeline/scripts/settle.ts +785 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_api_permission_declared.ts +286 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_arkui_runtime_pitfall.ts +166 -2
- package/skills/a2h-spec-design-pipeline/scripts/test_docs_refresh_contract.ts +40 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +2 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_platform_api_contract.ts +350 -7
- package/skills/a2h-spec-design-pipeline/scripts/test_route_page_side_effect_import.ts +185 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_route_param_carrier.ts +341 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_settle.ts +593 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_docs.ts +92 -1
- package/skills/a2h-spec-design-pipeline/scripts/test_sql_identifier_analysis.ts +137 -0
- package/skills/a2h-spec-generate/references/input-formats.md +1 -1
- package/skills/a2h-utg-explorer/SKILL.md +11 -5
- package/skills/a2h-utg-explorer/references/architecture.md +37 -19
- package/skills/a2h-utg-explorer/scripts/audit.mjs +6 -2
- package/skills/a2h-utg-explorer/scripts/close_phases.mjs +8 -5
- package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +95 -19
- package/skills/a2h-utg-explorer/scripts/d_prereqs.mjs +192 -4
- package/skills/a2h-utg-explorer/scripts/final_utg.mjs +21 -0
- package/skills/a2h-utg-explorer/scripts/panel_routes.mjs +1 -1
- package/skills/a2h-utg-explorer/scripts/plan.mjs +16 -1
- package/skills/a2h-utg-explorer/scripts/predicates.mjs +270 -0
- package/skills/a2h-utg-explorer/scripts/promote_dynamic.mjs +2 -0
- package/skills/a2h-utg-explorer/scripts/recover.mjs +4 -3
- package/skills/a2h-utg-explorer/scripts/recover_d.mjs +67 -8
- package/skills/a2h-utg-explorer/scripts/rejudge.mjs +4 -3
- package/skills/a2h-utg-explorer/scripts/report.mjs +32 -2
- package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +103 -36
- package/skills/a2h-utg-explorer/scripts/run_device.mjs +3 -8
- package/skills/a2h-utg-explorer/scripts/schedule_states.mjs +189 -0
- package/skills/a2h-utg-explorer/scripts/tests/calendar_round_fixes.test.mjs +9 -0
- package/skills/a2h-utg-explorer/scripts/tests/coverage_rules.test.mjs +11 -0
- package/skills/a2h-utg-explorer/scripts/tests/d_prereqs.test.mjs +31 -2
- package/skills/a2h-utg-explorer/scripts/tests/device_lock_retry.test.mjs +1 -1
- package/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +32 -0
- package/skills/a2h-utg-explorer/scripts/tests/dialog_own_layout.test.mjs +40 -0
- package/skills/a2h-utg-explorer/scripts/tests/explorer_review_fixes.test.mjs +4 -1
- package/skills/a2h-utg-explorer/scripts/tests/hybrid_route.test.mjs +6 -28
- package/skills/a2h-utg-explorer/scripts/tests/in_route_surface.test.mjs +125 -0
- package/skills/a2h-utg-explorer/scripts/tests/list_probe_target_wait.test.mjs +86 -0
- package/skills/a2h-utg-explorer/scripts/tests/multi_host.test.mjs +167 -0
- package/skills/a2h-utg-explorer/scripts/tests/nested_list.test.mjs +58 -0
- package/skills/a2h-utg-explorer/scripts/tests/overlay_opener.test.mjs +100 -0
- package/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +8 -1
- package/skills/a2h-utg-explorer/scripts/tests/pr169_review_fixes.test.mjs +1 -0
- package/skills/a2h-utg-explorer/scripts/tests/pr191_review_fixes.test.mjs +2 -31
- package/skills/a2h-utg-explorer/scripts/tests/review_fixes.test.mjs +1 -1
- package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +56 -7
- package/skills/a2h-utg-explorer/scripts/tests/snapshot_integrity.test.mjs +117 -6
- package/skills/a2h-utg-explorer/scripts/tests/state_inventory.test.mjs +414 -0
- package/skills/a2h-utg-explorer/scripts/tests/tree_unreliable.test.mjs +197 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +196 -30
- package/skills/a2h-utg-explorer/scripts/utg_explorer/hosts.mjs +146 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +63 -2
- package/skills/a2h-utg-explorer/scripts/utg_explorer/states.mjs +286 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +197 -19
- package/skills/a2h-utg-static/SKILL.md +3 -3
- package/skills/a2h-utg-static/references/extractors.md +7 -0
- package/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +4 -3
- package/skills/a2h-utg-static/scripts/click_paths.mjs +1 -1
- package/skills/a2h-utg-static/scripts/compose_overlay.mjs +642 -22
- package/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +25 -0
- package/skills/a2h-utg-static/scripts/tests/test_in_route_surface.mjs +123 -0
- package/skills/a2h-utg-static/scripts/tests/test_overlay_host_effects.mjs +239 -0
- package/skills/a2h-utg-static/scripts/tests/test_shared_host_depths.mjs +48 -0
- package/skills/a2h-utg-static/scripts/utg_html.mjs +2 -0
- package/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +1 -0
- package/i18n/skills/a2h-app-migrate/references/specs.example.json +0 -19
- package/i18n/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +0 -79
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +0 -47
- 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/skills/a2h-app-migrate/references/specs.example.json +0 -19
- package/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +0 -79
- package/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +0 -47
package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
node scripts/dispatch.mjs C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork
|
|
1
|
+
node scripts/dispatch.mjs C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\scripts\test\acceptance\authoring start g01-authoring --token {{token}}
|
|
2
2
|
|
|
3
3
|
# Task group: g01-authoring
|
|
4
4
|
|
|
@@ -18,12 +18,14 @@ The page evidence ledger is written by prepare and is read-only:
|
|
|
18
18
|
- `evidence/page%3APlainDisplay/candidates.json`
|
|
19
19
|
- `evidence/page%3APlainDisplay/assertions.json`
|
|
20
20
|
- `evidence/page%3APlainDisplay/unknowns.json`
|
|
21
|
+
- `evidence/page%3APlainDisplay/contracts.json`
|
|
21
22
|
Do not edit anything under `evidence/`.
|
|
22
|
-
|
|
23
|
+
`contracts.json` is read-only evidence for HTTP/UI/persistence contracts reached on the call graph; every URL, query parameter, response field and UI constructor it records must enter the SPEC or become an explicit unknown.
|
|
24
|
+
The global fact base lives under `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\scripts\test\acceptance\authoring/facts/`:
|
|
23
25
|
- symbols.json: {symbols: [...]}
|
|
24
26
|
- entities.json, endpoints.json, stores.json, strings.json, libs.json
|
|
25
27
|
|
|
26
|
-
Source root `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\skills\a2h-page-specgen\scripts\test\acceptance\authoring` — the evidence slices are an index, not the only source.
|
|
28
|
+
Source root `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\scripts\test\acceptance\authoring` — the evidence slices are an index, not the only source.
|
|
27
29
|
Every value in a contract must be traceable under this tree: when a slice says "the query
|
|
28
30
|
parameters include ...", go to the source and take every parameter name in full; when a
|
|
29
31
|
slice says "and other options", enumerate the complete value list from
|
|
@@ -37,14 +39,15 @@ Work in this order on every attempt:
|
|
|
37
39
|
1. Read interaction_scans and locate the failed and truncated units: Inspect interaction_scans for every SourceUnit. A record whose status is not ok, or whose truncated flag is true, is the unit this attempt must reconsider first.
|
|
38
40
|
2. Read each SourceUnit and the related resources it needs: first read the page evidence ledger (composition / candidates / assertions / unknowns) and the source; the source is authoritative for values and branches. Read embedded content, folded overlays, and the same source reused across pages; one file may be both a host page's embedded unit and an overlay page's body, and assertions and reviews still follow page ownership.
|
|
39
41
|
3. Add semantic assertions and candidate_ids[]: candidate_ids[] must retain every source of a merged promoted candidate. Do not keep just one.
|
|
42
|
+
For interactions the scanner cannot see, follow references/behavior-ledger.md section 2.4: every interactive view either has an assertion or a waiver reason; signal_count=0 does not mean "no interaction".
|
|
40
43
|
4. Write each SourceUnit conclusion and the complete assertion_ids: The only completed conclusions are assertions-found and no-assertions-found. assertion_ids must exactly cover every assertion attributed to the SourceUnit.
|
|
41
|
-
5. Write an explicit resolution for every fully reviewed truncated unit
|
|
44
|
+
5. Write an explicit resolved resolution for every fully reviewed truncated unit. A reviewed truncated SourceUnit closes only through an explicit resolved resolution. Composition unknowns fall into two classes: a reason:"unresolved-source-unit" reference gap is resolved by fixing the source reference and then writing a resolution, or it stays partial; a cause:"source-unit-limit" gap is producer-reserved, so never write any resolution for it. The same applies to contract-call-deferred and contract-evidence-limit contract unknowns. Such a resolution never closes the gap, only leaves a diagnostic; the page publishes partial, and only a producer-side change (wider bound or page split) can remove it.
|
|
42
45
|
6. Settle candidate dispositions and planned dispositions: A terminal candidate review requires a terminal disposition; supported / refuted / insufficient reviews must be disposed, a promoted review needs a promotions record, and a waived review needs a legal reason and current evidence. pending or failed candidates stay undisposed and keep the page partial, so never write a disposition before the review completes. Every assertion needs a terminal disposition.
|
|
43
|
-
7. Write
|
|
44
|
-
8. Run the pre-audit: `node scripts/behavior-audit.mjs C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork
|
|
45
|
-
9. Once the pre-audit passes, write each SPEC's draft to `drafts/attempt-{{attempt}}/<stem>.json` (<stem> comes from stemOf(spec_id)) as described in the output path below.
|
|
46
|
-
10. After drafting, write `behavior/attempt-{{attempt}}/g01-authoring/post-review.json`. Compute drafts_digest with `node scripts/behavior-audit.mjs C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork
|
|
47
|
-
11. Run the post-audit: `node scripts/behavior-audit.mjs C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork
|
|
46
|
+
7. Write each page's static discovery to `behavior/attempt-{{attempt}}/g01-authoring/discovery.json` in `group.pages` order, persisting each page before moving to the next. Never write `gen.mjs` or any unified generator.
|
|
47
|
+
8. Run the pre-audit: `node scripts/behavior-audit.mjs C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\scripts\test\acceptance\authoring pre g01-authoring --attempt {{attempt}}`; when it fails, fix discovery.json and rerun.
|
|
48
|
+
9. Once the pre-audit passes, write each SPEC's draft to `drafts/attempt-{{attempt}}/<stem>.json` (<stem> comes from stemOf(spec_id)) as described in the output path below; process pages in the same order and persist each draft before moving to the next page.
|
|
49
|
+
10. After drafting, write `behavior/attempt-{{attempt}}/g01-authoring/post-review.json`. Compute drafts_digest with `node scripts/behavior-audit.mjs C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\scripts\test\acceptance\authoring digest g01-authoring --attempt {{attempt}}`; never infer it from a failure message.
|
|
50
|
+
11. Run the post-audit: `node scripts/behavior-audit.mjs C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\scripts\test\acceptance\authoring post g01-authoring --attempt {{attempt}}`; when it fails, fix the draft for the stated failure and rerun.
|
|
48
51
|
12. Submit immediately once the post-audit passes, using the submit command below.
|
|
49
52
|
Align coverage with candidate disposition while drafting: Promoted interactions use coverage.interactions; waived interactions use coverage.excluded; unknown interactions keep the page partial. A candidate-backed interaction signal that is unknown or unfinished needs neither a claim nor an exclusion in coverage; the page stays partial.
|
|
50
53
|
Submission and finalize re-read the live source bytes: a file that changes after review is source-changed, the page returns to partial, and a recorded review cannot launder it back to complete.
|
|
@@ -58,6 +61,7 @@ Write each SPEC's draft to `drafts/attempt-{{attempt}}/<stem>.json`, where <stem
|
|
|
58
61
|
|
|
59
62
|
Scenario prose (`summary` and `scenarios`) is read by both a reviewer and the downstream coder:
|
|
60
63
|
it carries the user-perceivable behaviour AND the data facts needed to implement it.
|
|
64
|
+
Before writing any value, answer three questions: where it comes from, how it is processed, where it is consumed; missing one means it is not written.
|
|
61
65
|
- no class or method names; data field, key, parameter, and enum names keep their source spelling
|
|
62
66
|
- no file:line references
|
|
63
67
|
- no framework type names (Activity, Fragment, ViewModel, etc.)
|
|
@@ -77,7 +81,8 @@ Do not write page-level `contracts`:
|
|
|
77
81
|
comes from a Room @Entity, also write the `operations` array (each item carries the method and
|
|
78
82
|
function fields, taken from the same-named fields in entities.json)
|
|
79
83
|
- `rules`: conversion formulas, boundary values, rounding and formatting rules, written as
|
|
80
|
-
statements a coder can follow
|
|
84
|
+
statements a coder can follow; every coefficient, offset, threshold and enum value in them
|
|
85
|
+
must reach the steps in the shape the steps state it
|
|
81
86
|
|
|
82
87
|
Contracts come from entities.json / endpoints.json / stores.json under `facts/` and from the
|
|
83
88
|
evidence slices; the `scenarios[].contracts` field structure is in `references/spec-template.md`.
|
|
@@ -123,18 +128,20 @@ The final SPEC must follow these rules:
|
|
|
123
128
|
- Atomic scenarios must be comprehensive and non-redundant.
|
|
124
129
|
- The SPEC must contain a requirement semantic description, scenario semantic descriptions, and scenario flow descriptions.
|
|
125
130
|
- The scenario flow description must contain the trigger operation sequence and the logical execution steps for that scenario.
|
|
131
|
+
- Every interactive element must name its observable result, including interactions provided by a component or a library (a missing listener in application code does not mean there is no interaction); when there is genuinely no interaction, state "no response" and cite the evidence.
|
|
126
132
|
|
|
127
133
|
The sections below define how to apply them. The rules constrain only the final SPEC prose; evidence collection still keeps source symbols, paths, and `file:line`.
|
|
128
134
|
|
|
129
135
|
### Evidence-First Expansion
|
|
130
136
|
|
|
131
|
-
Expand only branches that the source actually implements and that affect user-observable behavior. Every scenario, step, and outcome must be traceable to source evidence
|
|
137
|
+
Expand only branches that the source actually implements and that affect user-observable behavior. Every scenario, step, and outcome must be traceable to a source location or an evidence entry; when it cannot be traced, do not write it — record an unknown rather than filling the gap from experience or with behavior that is merely common in similar products.
|
|
132
138
|
|
|
133
139
|
- Do not add timeout, permission, retry, or empty-state scenarios without evidence just because software of this kind usually has them.
|
|
134
140
|
- Fixed copy, the source of dynamic copy, counts, thresholds, formats, retention policies, and recovery behavior all require evidence. Never invent fixed error copy or replace dynamic copy with an unsupported literal value.
|
|
135
141
|
- When the source implements dynamic error copy, state its real source, for example: “Show an error message using the text returned by the server.”
|
|
136
142
|
- A failure without a textual message is valid. Write only the actual observable outcomes, such as loading ending, old content remaining, or another real result; for example: “When the request finishes, stop loading and retain the old content without showing an additional message.”
|
|
137
143
|
- An internal failure with no user-observable outcome does not become a UI scenario. Never invent a message, navigation, or state change just to cover a failure category.
|
|
144
|
+
- **Evidence for "what the UI shows" comes from the render branch, not from a state assignment**. A ViewModel assigning a state value (e.g. the load state reset to its initial value on an empty list) only says the value exists, not that it is drawn. Before writing a "shows / displays / appears" step, find the UI code that renders in that state (the Compose `when (state)` / `if` branch, the View `visibility` setting, the adapter item type) and confirm that branch reads the value and draws the element. If the branch does not read it, do not write it as a visible element; when it must be recorded, write it as an invisible state fact (e.g. "the load-more state is reset to its initial value"), without "shows". One app's list page: the list base class's `Empty` branch draws only an empty-state view, and the load-more footer exists only inside the `Success` list content. The SPEC turned the load-state assignment on an empty list into "the tab's bottom shows the pull-to-load initial state", the review judged it PARTIAL, and after the fix every empty tab showed "pull up to load more" at the bottom.
|
|
138
145
|
|
|
139
146
|
### Atomic Scenarios
|
|
140
147
|
|
|
@@ -152,12 +159,13 @@ An atomic scenario is the smallest independently verifiable user-perceivable pat
|
|
|
152
159
|
| Normal | representative happy path with typical data | entry and first frame, data ready, primary interaction |
|
|
153
160
|
| Edge/boundary | the edge of the valid domain | empty, minimum, maximum, duplicate, conflict, denied, timeout, interrupted |
|
|
154
161
|
|
|
155
|
-
Do not compress normal, empty-data, failure, timeout, or recovery paths into multiple “if” alternatives within one scenario merely to shorten the SPEC. Each of these paths still requires source evidence.
|
|
162
|
+
Do not compress normal, empty-data, failure, timeout, or recovery paths into multiple “if” alternatives within one scenario merely to shorten the SPEC. Each of these paths still requires source evidence. Continuous display steps inside the same submodule may remain in one scenario; different visible submodules must not be merged merely because they share a data-ready state.
|
|
156
163
|
|
|
157
164
|
- Keep one scenario for one trigger plus one outcome.
|
|
158
165
|
- Do not split fields or items that share source, format, visibility, and empty behavior.
|
|
159
166
|
- A noun-only change (“the first song” / “the second song”) is data, not a scenario.
|
|
160
167
|
- Split when success and failure are mixed in one scenario, or when two unrelated outcomes appear.
|
|
168
|
+
- A shared data state is not a merge license: display that lands in different source containers, adapters, custom views, child fragments, or independent layout regions is a different submodule, and each submodule's observable result needs its own scenario.
|
|
161
169
|
|
|
162
170
|
### Source Inspection Axes for Scenario Expansion
|
|
163
171
|
|
|
@@ -165,14 +173,14 @@ Before drafting, inspect the source for the page's actual behavior along every a
|
|
|
165
173
|
|
|
166
174
|
| Axis | Source checks |
|
|
167
175
|
|---|---|
|
|
168
|
-
| Input and submission | Empty input, whitespace-only input, leading/trailing whitespace, valid input, length boundaries, over-limit input, invalid characters, clearing, repeated submission, rapid consecutive submission |
|
|
176
|
+
| Input and submission | Empty input, whitespace-only input, leading/trailing whitespace, valid input, length boundaries, over-limit input, invalid characters, clearing, repeated submission, rapid consecutive submission; for a numeric input also confirm integer versus decimal and whether a negative value is accepted |
|
|
169
177
|
| Data display | No cache, existing cache, loading, complete data, missing fields, empty fields, data-source precedence, fallback, conditional hiding, formatting boundaries |
|
|
170
178
|
| Network requests | No network, connection failure, connection/read timeout, service or business failure, empty response, malformed response, missing fields, retries implemented in source, old-content policy |
|
|
171
179
|
| Lists and pagination | Initial load, empty list, exactly one page, more than one page, append/replace, loading completion, pagination failure, relationship between refresh and pagination |
|
|
172
180
|
| Permissions and services | First request, grant, denial, permanent denial, service disabled, cached or default fallback, system settings and rechecking after return |
|
|
173
181
|
| Overlay flows | Open, valid/invalid confirmation, cancel, back dismissal, repeated opening, host state after closing |
|
|
174
182
|
| Local reads and writes | No record, successful/failed read, corrupted data, defaults, successful/failed write, read-back after re-entry |
|
|
175
|
-
| Lifecycle | Cold start, re-entry, back navigation, page recreation, settings changes, saving on exit |
|
|
183
|
+
| Lifecycle | Cold start, re-entry, back navigation, page recreation, settings changes, saving on exit; see the “Lifecycle and Invalidation Axis” |
|
|
176
184
|
| Repeated operations | Add/cancel, toggle switches, repeated taps, triggering again while in progress, updates to associated areas |
|
|
177
185
|
|
|
178
186
|
### Scenario Flow and Step Writing
|
|
@@ -190,8 +198,11 @@ A scenario flow description consists of the trigger operation sequence and the l
|
|
|
190
198
|
“Precondition → user/system trigger → validation/processing → in-progress state → observable outcome → completion” is an optional inspection order, not a set of slots every scenario must fill. Organize steps around the stages the scenario actually passes through; never add unsupported content to complete the sequence.
|
|
191
199
|
|
|
192
200
|
- Each step expresses one verifiable action, processing rule, or observable outcome; do not compress independent branches into one step.
|
|
201
|
+
- Write every decision with three things: how it is determined (which key, field, or response, which value counts as true, when it is read), what happens when it holds, and what happens when it does not; state the branch with no observable result too.
|
|
202
|
+
- A state word ("signed in", "authorized", "enabled") is not a test: name what is read, what it is compared against, and when. For example, "signed in" becomes "reads the login credential from local storage on entry; non-empty means signed in, empty sends the user to the login page".
|
|
193
203
|
- Name the actor, target, and result so a reviewer can tell who does what to which object under which state, and what is observed afterward.
|
|
194
204
|
- State source-backed fixed copy, dynamic-copy sources, counts, thresholds, formats, units, and ordering. Never supply a value that lacks evidence.
|
|
205
|
+
- Self-check a numeric step: from that sentence, can a reader tell whether `-1`, `0.5` and `12.345` are accepted? If not, the step is not yet assertable.
|
|
195
206
|
- A pure display scenario must state at least its entry condition or data state, its data source or derivation, and the concrete display result.
|
|
196
207
|
- Both dynamic error copy and silent failure are valid when they match the source; not every error needs a fixed literal message.
|
|
197
208
|
- Do not replace necessary steps with abbreviated cross-scenario references such as “same as above,” “follow scenario 1,” or “same as scenario 2.” Every scenario must independently state its own trigger, processing, and outcome.
|
|
@@ -201,6 +212,22 @@ A scenario flow description consists of the trigger operation sequence and the l
|
|
|
201
212
|
|
|
202
213
|
Do not introduce a minimum of two steps per scenario or a minimum of 12 characters per step. English retains the existing floors of at least 5 words per step and at least 40 words in the summary. A complete, concise one-step scenario is valid.
|
|
203
214
|
|
|
215
|
+
#### Data Sources and Processing Destinations
|
|
216
|
+
|
|
217
|
+
Every data boundary names **two sides**.
|
|
218
|
+
|
|
219
|
+
**Present side**: where it comes from (a full response field path, a local-storage key, a page input, a fixed value, or a computed value) and what happens to it afterwards (the display region, the computation, the key it is written to, the request field it is sent as).
|
|
220
|
+
|
|
221
|
+
**Absent side**: the sibling data this step does **not carry, write or send**, and where an empty, missing or default value goes.
|
|
222
|
+
|
|
223
|
+
The absent side cannot be dropped: a reader cannot infer “the rest is absent” from “one item was mentioned”, and an implementation fills the “nothing” with a plausible value (`-1`, `0`, an empty string) that the downstream treats as a filter. Name the absent item itself (“does not carry <item>”, “does not send <field>”, “does not write <key>”); “the rest is unchanged”, “as needed” or “depending on the case” are not substitutes.
|
|
224
|
+
|
|
225
|
+
When one data set is used by several entries or branches, the carried items line up one by one; an item that only one entry carries must be written as “not carried” by the others.
|
|
226
|
+
|
|
227
|
+
**Three-part closure**: every value states where it comes from, how it is processed and where it is consumed - a near-synonym field follows the one the consuming code reads, never the field name; processing names the inputs that can change the result and the difference after they change; consumption names the display region, computation, key or parameter. When two inputs produce the same result, that assertion does not prove the input takes effect.
|
|
228
|
+
|
|
229
|
+
When a scenario has several sources, each step states which one it reads.
|
|
230
|
+
|
|
204
231
|
#### Natural merge: contract facts enter the steps
|
|
205
232
|
|
|
206
233
|
Before submitting the draft, do one merge pass: rewrite every fact in that scenario's `contracts` into the step that consumes it, as a natural English sentence. The drafting model performs this step; it is not a mechanical appendix.
|
|
@@ -213,6 +240,7 @@ Real `response_spans` map `callback`, `promise`, `complete`, and `response-inter
|
|
|
213
240
|
- Copy data facts with their source spelling; do not write class or method names, `file:line`, assignment expressions, `dp`/`sp`/`px`/`dip` (including a bare unit name), or colour values; a field, parameter, or key name the contract requires verbatim is a fact the steps must carry, not a source symbol; rewrite visual values as business descriptions ("the size is large").
|
|
214
241
|
- Never write a sub-heading or note paragraph, and never use "same as above" or "as in scenario 1".
|
|
215
242
|
- Self-check: walk the `contracts` entries and confirm that the URL, method, every parameter name, response field, every key name, default, all enum values, and every field name appear in this scenario's steps.
|
|
243
|
+
- Self-check the numbers in a rule: every value in `rules[].statement` that the rule can be wrong about (a conversion coefficient, an offset, a threshold, an enum value such as `1.8`, `32`, `2`) must appear in the step that consumes the rule, in the shape the step states it — a thousands separator only groups digits (`10,000` is written `10000`), a sign is written in words (`-32` becomes "subtract 32"), and an exponent is written out (`1e3` becomes `1000`); a literal that only describes how a value is printed (a zero-padded field width, the count in "keep 2 decimal places") is not a fact, and G2 does not require it.
|
|
216
244
|
|
|
217
245
|
**Cross-boundary implementation facts**: a method or gRPC service and method, a URL or service endpoint, headers or metadata, field names, protocol commands, and keys are first written into the consuming scenario's `contracts`, then merged into the same scenario's steps together with the observable behaviour they produce.
|
|
218
246
|
|
|
@@ -223,6 +251,8 @@ Real `response_spans` map `callback`, `promise`, `complete`, and `response-inter
|
|
|
223
251
|
| Persistence | Key, type, default, all values, fields | The step that reads or writes persistence |
|
|
224
252
|
| Callback / observer / event | Registration, trigger condition, payload fields, ordering and timing | The step that triggers and refreshes |
|
|
225
253
|
|
|
254
|
+
Every row above also states the absent side: which fields are not queried or sent, which keys are not written, which payload fields are absent. Stating only the present ones is not complete.
|
|
255
|
+
|
|
226
256
|
**Localizable copy and enums**: when copy or an enum label comes from a localizable resource (`strings.xml` / `plurals` / `string-array`, UniApp `i18n/*.js`, etc.) that is not marked `translatable="false"`, the body still carries assertable text: give the logical name and every language's value, e.g. “show localizable copy `confirm_text` (zh: `确定` / en: `OK`)”, with the current UI language selecting which one is displayed. Never keep only the `default` or one language column, and never drop the per-language values in favour of just “displayed per the current UI language”. An enum fixes only its language-neutral values and lists labels per language. Write the mapping into that scenario's steps, e.g. “the confirm copy's logical name is confirm_text, zh is 确定 and en is OK; Android reads strings.xml confirm_text, and HarmonyOS resolves the same logical name into string.json — never assume the resource name matches Android”. Only a `translatable="false"` resource may be copied verbatim; a hardcoded non-resource literal is still copied as-is.
|
|
227
257
|
|
|
228
258
|
**Flow anti-patterns**:
|
|
@@ -249,18 +279,68 @@ For example, “after favoriting, update global state and refresh related pages
|
|
|
249
279
|
- Every item on the impact list must land in the final SPEC's scenario steps; when one operation affects several visible pieces of data, expand each one instead of merging them into a single sentence.
|
|
250
280
|
- Cross-page linkage states only the data-layer result (e.g. “the favorite data source gains the song”); showing it on the target page belongs to that page's own SPEC, and this SPEC's implementation must not modify other pages' code.
|
|
251
281
|
- The impact scope follows the source: never omit a linkage the source implements, and never invent one it does not.
|
|
282
|
+
- State the effective timing of every completed write item by item: which surfaces refresh immediately and which wait until the target page next becomes visible; never write "refresh immediately" for a page that is not open.
|
|
283
|
+
|
|
284
|
+
### Lifecycle and Invalidation Axis
|
|
285
|
+
|
|
286
|
+
Inspect every page against the four trigger classes below; for each class answer three questions: what is re-read, who is notified, and where the evidence is. Static discovery records the hooks it hits as `lifecycle-signal` candidates; a candidate only locates the line and decides nothing — hooks the scan does not reach are still self-checked under this section.
|
|
287
|
+
|
|
288
|
+
| Trigger class | Questions to check |
|
|
289
|
+
|---|---|
|
|
290
|
+
| Entry | What is read on first entry; on re-entry, what is read back from persistence, what is requested again, and what keeps the stale in-memory value |
|
|
291
|
+
| Back navigation | After returning from a lower page or a dialog, which regions re-read; which keep stale values |
|
|
292
|
+
| Tab switch | When a tab is selected again without being destroyed and recreated, what is re-read; whether the refresh signal still fires when the selection does not change |
|
|
293
|
+
| Write completion | After a write, which surfaces refresh immediately; which wait until they next become visible |
|
|
294
|
+
|
|
295
|
+
Android retrieval clues (the corresponding semantics are the candidate claim_token vocabulary):
|
|
296
|
+
|
|
297
|
+
| Retrieval clue | Corresponding semantics |
|
|
298
|
+
|---|---|
|
|
299
|
+
| A zero-argument `onResume` / `onStart` override in a page or view model, or Compose's `LifecycleResumeEffect` / `LifecycleEventEffect` | Re-read when visible again |
|
|
300
|
+
| `LifecycleEventObserver` / `DefaultLifecycleObserver` / `addObserver` / `onStateChanged` | Lifecycle-linked refresh |
|
|
301
|
+
| An `observeRefreshState` call site, and `RefreshResult` construction or `is` checks | Refresh result notification |
|
|
302
|
+
| Observation registration and collection of `LiveData` / `StateFlow` / `SharedFlow`, plus `collectAsStateWithLifecycle` / `WhileSubscribed` | Collect while visible |
|
|
303
|
+
| A global mode setting call | Global mode applied |
|
|
304
|
+
|
|
305
|
+
Review every lifecycle-signal candidate and choose one of three: a user-observable behavior exists → write it as an assertion with outcomes on observable results and link the scenario, mapping the trigger class from the navigation structure and source; confirmed none → a lawful waiver (no-user-observable) with source evidence; insufficient evidence → record an unknown and keep the page partial. Unreviewed candidates stay pending; never skip the review to deliver.
|
|
306
|
+
|
|
307
|
+
Timing wording follows the source: "refreshes immediately" when it takes effect on completion, "re-read on return" or "re-read on next entry" when it waits until the page is visible again — never mix the two. An axis scenario's trigger sequence starts from the timing event, and its last step lands on an assertable observable outcome.
|
|
252
308
|
|
|
253
309
|
### Request Bodies and Responses
|
|
254
310
|
|
|
255
|
-
When a scenario performs a network request,
|
|
311
|
+
When a scenario performs a network request, write the request body as a **tree-shaped field table inside the request step that sends it**. Write the response key by key.
|
|
312
|
+
|
|
313
|
+
The table has four fixed, labelled segments in a fixed order and is a top-level fenced code block, so every renderer keeps its line breaks:
|
|
314
|
+
|
|
315
|
+
```text
|
|
316
|
+
<Request body name>
|
|
317
|
+
├─ field:<path> type/encoding:<type> default:<value> send:<rule>
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
- **Write every key**: list each key of the source's request-body construction, including keys that are **always the default**, **always sent**, or **never sent on this page**; dropping one is a failure, and fields may not be picked by scenario. **A field with a default is not necessarily sent** — whether it appears must be confirmed from the source's serializer or request-construction site.
|
|
321
|
+
- `field:` a top-level field is written with its plain name; a nested leaf is `a.b`; an array element is `a[].b`; the array itself is `a[]` (type `array<T>`). A parent object appears together with its children; give it its own `object` row only when the parent itself carries a send rule.
|
|
322
|
+
- `type/encoding:` only the closed vocabulary `string`, `int`, `int64`, `float`, `double`, `bool`, `object`, `array<T>`; put a time format, a byte encoding or a radix in parentheses (`string(yyyy-MM-dd HH:mm)`, `string(Base64)`, `int(>=1)`). Never write "text" or "number" as loose prose, and keep the token byte-identical to the contract's `type`.
|
|
323
|
+
- `default:` `—` means the field has no default value; strings are quoted; write only the value, never whether the key is sent.
|
|
324
|
+
- `send:` one decidable English sentence stating when the key appears on the wire, starting with exactly one of:
|
|
325
|
+
- `required`: the key is always present. Stop there when a missing source value is a defect; add ", falls back to the default" when the default fills it, and name the source or failure when it matters, for example ", falls back to the default unknown when it cannot be read";
|
|
326
|
+
- `optional`: the key may be absent, immediately followed by a decidable condition written as ", not sent when <condition>" or ", sent only when <condition>", for example ", not sent when it has no value", ", not sent when the array is empty", ", not sent when it equals the default 0", ", not sent when the source cannot be determined", ", not sent when the user specifies no insert position";
|
|
327
|
+
- `never`: never appears; the field stays in the data model and is skipped when serializing.
|
|
328
|
+
- Whether a key is sent follows the source's serializer or request-construction site: a nullable field, a field with a default, and a model-required field do not mean "always sent"; a field with a default may be omitted when it equals the default, and may also always be sent.
|
|
329
|
+
- The condition must be writable as a single `if`: name a concrete condition such as "has no value", "the array is empty", "equals the default", "the control is off", "nothing is selected", "cannot be read", "the source cannot be determined". Never write "as needed", "depending on", "generally", "maybe"; list every condition separately instead of "except in special cases".
|
|
330
|
+
- `required` and `optional` differ only in whether the key is always present; the `default:` segment says what value fills a missing value and never whether the key appears, so the two segments never substitute for each other. A boolean that uses `false` for "the user set nothing" must say "not sent when it equals the default false", not "not sent when it has no value".
|
|
331
|
+
- When writing a condition, "no value" means unassigned or `null`; for strings and arrays a length of 0 also counts as no value; `0` and `false` count as values.
|
|
332
|
+
- Start the step with an executable action, not a caption such as "the structure is as follows": "the request body is serialized field by field from the table below and then sent; the key order follows the table's row order and whether a key appears follows the send segment".
|
|
333
|
+
- Separate the segments with at least one space: the path after `field:` must not be glued to the next segment, or the path and `default:` read as a `file:line`; write `default:false`, never `default=false`; no table line starts with `#`.
|
|
334
|
+
- Name the table root in business terms (for example "sync request body"), never with the request type name from the source.
|
|
335
|
+
- When a field's value does not come from this page's input (local storage, the previous response, a fixed value, a computed value), add one line after the table naming each such field, for example: "Value sources: `userId` is the current signed-in user number in local storage, `deviceId` is the device identifier in local storage, and `payload` is the pending-queue record count." Fields fed by page input need no entry.
|
|
336
|
+
|
|
337
|
+
**Relation to the contracts.** Each table row is also declared once in that scenario's `contracts.endpoints[].params` with `in: "body"`, byte-identical. The contracts are the audited fact base: G2 compares every parameter name, default and value source against the step text, and one missing token fails the gate. The table is what the reader and the downstream coder see. Query parameters, path parameters and headers are listed the same way with their own `in`; key names, defaults and fixed values follow the source — never guess, and never drop a key that has a default.
|
|
338
|
+
|
|
339
|
+
**Response.** List one field path per string in `response_fields[]` (`current_temperature`, `hourly.temperatures[]`); the envelope (code/data/message), types, nullability and the handling of a missing or default-valued field go into that endpoint's `note` and are merged into the step — never into a `response_fields` element, because G2 requires each element to appear verbatim in the step.
|
|
256
340
|
|
|
257
|
-
|
|
258
|
-
- Use only the keys listed in `spec-template.md`: write the default and the value source into that parameter's `default` and `source`, and write nested keys as a path (e.g. `data.list[].id`) in `name`; any other key cannot reach the steps and is rejected by G2.
|
|
259
|
-
- When the body is an object or an array, state the nesting and every child key; never write “other fields,” “etc.,” or a single sample value.
|
|
260
|
-
- For the response, try to list one field path per string in `response_fields` (e.g. `current_temperature`, `hourly.temperatures[]`), naming only the field or its path; the envelope (e.g. code/data/message), types, nullability, and how a missing or default-valued field is handled go into that endpoint's `note` and are merged into the steps — never into a `response_fields` element, because G2 requires each element to appear verbatim in the steps.
|
|
261
|
-
- Key names, defaults, and fixed values follow the source: when the SPEC does not state them, read the place in the source that builds the request and parses the response and fill them in — never guess, and never drop a key that has a default.
|
|
341
|
+
**G2 checks verbatim.** A method, URL, parameter name, parameter default, value source or response field present in the contracts but absent from the steps fails the gate. The envelope, types, nullability and missing-value handling are outside that check and must still be written into the steps, not left in `contracts` alone.
|
|
262
342
|
|
|
263
|
-
|
|
343
|
+
When the same request appears in several scenarios, each scenario repeats the complete table; never write "same as above" or "see scenario 1". The send condition lives only in the table; the steps state the server behaviour or the user-visible result once the condition holds. When the body is an object or an array, state the nesting and every child key; never write "other fields", "etc.", or a single sample value.
|
|
264
344
|
|
|
265
345
|
### Platform-Neutral Body Text
|
|
266
346
|
|
|
@@ -301,6 +381,8 @@ The SPEC is a contract for reimplementation: a statement that cannot become code
|
|
|
301
381
|
| “show the corresponding message” / “give a prompt” | Show the toast “Added to playlist” (copy the UI text verbatim) |
|
|
302
382
|
| “prompt the user when the name is too long” | When the trimmed name is longer than 100 characters, show the toast “Playlist name is too long” |
|
|
303
383
|
| “several” / “a certain number” / “relatively large” / “relatively long” | 100 characters / 500 milliseconds / at most 20 items |
|
|
384
|
+
| “accepts digits only” / “numeric keyboard” | State the numeric type and sign: integer or decimal, and whether a negative value is accepted; also state the decimal places, bounds, leading zeros, thousands separators, whitespace and invalid-character handling that the source implements |
|
|
385
|
+
| “signed in” / “signed out” with no test | State the test: which storage key or field is read, which value counts as signed in, and when it is read |
|
|
304
386
|
| “sort by a certain rule” | Sort by time added to the playlist, descending |
|
|
305
387
|
| “perform the corresponding handling” / “run the necessary validation” | Validate in order: trim whitespace → check empty → check length ≤ 100 |
|
|
306
388
|
| “store locally” | Write to the playlist persistent storage; it still applies after the page is reopened |
|
|
@@ -333,6 +415,7 @@ assertion needs exactly one disposition, and the draft's `coverage.behaviors`
|
|
|
333
415
|
must explain explicitly which scenario and steps cover it.
|
|
334
416
|
|
|
335
417
|
- A `specified` link must name an existing 1-based `scenario` and `steps` array in this draft; writing a keyword or merely listing the assertion is not coverage.
|
|
418
|
+
- When the assertion's precondition is a navigation gate, the linked scenario's steps must state the gate in user-visible terms: where it leads when met, and the prompt or redirect seen when unmet. If the page already requires the same state at entry (`required_state` or an interceptor), the entry scenario covers it and action scenarios need not repeat it. The audit mechanically checks for the gate axis token, and a missing token is a hard failure; whether both the met and unmet branches are stated remains a semantic-review item.
|
|
336
419
|
- An `unknown` link must cite an unresolved unknown that is directly related to the same assertion; it cannot borrow an unrelated page unknown or dodge authoring when the evidence is already sufficient.
|
|
337
420
|
- A `waived` link is legal only with a structured reason and evidence: `duplicate-assertion` must name the plan-selected reviewed canonical assertion; `no-user-observable` and `out-of-scope` need current evidence, and the latter accepts only `external-surface` or `explicitly-excluded-source`, repeated exactly from the planned disposition.
|
|
338
421
|
- `refuted` is the terminal conclusion that there is no user-observable result and only supports `no-user-observable`; `insufficient` is the terminal conclusion that the evidence cannot determine the trigger, preconditions, outcomes, or side effects and only supports an `unknown` with a related unknown record. Neither replaces the other, and neither is a pass.
|
|
@@ -344,15 +427,22 @@ must explain explicitly which scenario and steps cover it.
|
|
|
344
427
|
Before submission, confirm all of the following:
|
|
345
428
|
|
|
346
429
|
- Every UTG interaction's relevant source branches were inspected, rather than drafting only the normal path.
|
|
430
|
+
- The “Lifecycle and Invalidation Axis” was checked against the source for all four trigger classes, and every lifecycle-signal candidate has a terminal disposition.
|
|
347
431
|
- Every discovered exceptional path has an explicit disposition: an independent scenario, steps on the same path, or confirmation that it has no user-observable behavior.
|
|
348
432
|
- Lists and complex display areas were checked for empty and partial data.
|
|
433
|
+
- Every "shows / displays / appears" step maps to the UI branch that actually renders it in that state (`file:line`), not only to a ViewModel state assignment. Check empty, error and loading states especially: their branches usually draw a single placeholder component.
|
|
349
434
|
- Asynchronous operations were checked for in-progress, success, and the failure states implemented in source.
|
|
350
435
|
- Persistent operations were checked for write outcomes and read-back behavior.
|
|
436
|
+
- Numeric inputs state integer versus decimal and whether a negative value is accepted, with no “accepts digits only” standing in for the type; the decimal places, bounds, whitespace and invalid-character handling the source implements are written out, and no unimplemented constraint is written as existing behavior.
|
|
437
|
+
- Every data boundary names both sides — present (source and destination) and absent (what it does not carry, write or send, and where empty, missing or default goes); entries over one data set line up item by item, absent items are written out, and absence is never written as -1, 0 or an empty string.
|
|
438
|
+
- Every value answers where it comes from (including the field’s origin in the consuming code), how it is processed (including the inputs that change the result and the difference after they change), and where it is consumed; missing any of the three leaves the scenario incomplete.
|
|
439
|
+
- Every branch states how its condition is determined and both outcomes; every step traces to a source location or an evidence entry; whether a key is sent follows the source serializer, never a nullable field, a default value, or a model-required flag.
|
|
351
440
|
- Scenarios that create, read, update, or delete data, or synchronize state or data, list every affected piece of data and how it changes, with no vague “related data updates in sync.”
|
|
352
|
-
- Network scenarios
|
|
441
|
+
- Network scenarios write the request body as a field table inside the sending step, each row carrying the four labelled segments `field:`, `type/encoding:`, `default:` and `send:`; declare the same fields in `contracts.endpoints[].params`, list every value source that is not page input, start every send segment with `required`/`optional`/`never` and follow it with a decidable condition (never "as needed" or "depending on"), describe the response structure as fully as possible, and keep all of these facts in that same step.
|
|
353
442
|
- No vague phrase such as “handle all other errors uniformly” substitutes for concrete branches.
|
|
354
443
|
- Every scenario is independently readable, with no abbreviated cross-scenario references and no unsupported copy, branches, thresholds, or outcomes added to fill gaps.
|
|
355
444
|
- Each scenario is exactly one normal or one edge/boundary case, with no success/failure mix.
|
|
445
|
+
- Every independent visible submodule (different source container, adapter, custom view, child fragment, or layout region) has its own scenario; none is merged merely because it shares a data state.
|
|
356
446
|
- Every scenario flow starts with its trigger operation sequence and ends with the observable outcome.
|
|
357
447
|
- The body carries no leftover source symbols, framework types, resources, package names, paths, or carrier detail.
|
|
358
448
|
- No banned wording; numbers instead of quantifiers; complete enumerations; verbatim toast copy (localizable resources give the logical name and every language's value; non-resource literals stay verbatim).
|
|
@@ -361,12 +451,15 @@ Before submission, confirm all of the following:
|
|
|
361
451
|
|
|
362
452
|
## Heartbeat command
|
|
363
453
|
|
|
364
|
-
While working, report progress with `node scripts/dispatch.mjs C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork
|
|
454
|
+
While working, report progress with `node scripts/dispatch.mjs C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\scripts\test\acceptance\authoring beat g01-authoring --token {{token}}`.
|
|
365
455
|
|
|
366
456
|
## Submit command and lock contention
|
|
367
457
|
|
|
368
|
-
|
|
369
|
-
`node scripts/submit.mjs C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork
|
|
458
|
+
Dry-run first once the post-audit (step 11) passes, then submit for real; do not wait or do unrelated work in between. The dry run executes the same G1–G8 gates and writes nothing, so fix every reported failure before submitting:
|
|
459
|
+
`node scripts/submit.mjs C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\scripts\test\acceptance\authoring g01-authoring --token {{token}} --dry-run --draft <draft.json>`.
|
|
460
|
+
Real submission: `node scripts/submit.mjs C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\scripts\test\acceptance\authoring g01-authoring --token {{token}} --draft <draft.json>`. If discovery, pre-audit or post-review is missing, submit rejects with `Audit incomplete`; write the missing artifact and submit again in the same attempt.
|
|
461
|
+
A gate-failing submit records `precheck-failed` and keeps the attempt live for up to 3 failed submits; after that the attempt is abandoned and the orchestrator dispatches a retry.
|
|
462
|
+
A `Token mismatch` means that attempt was abandoned or retried: stop editing that attempt's drafts/ and behavior/ directories and wait for the retry dispatch prompt.
|
|
370
463
|
If start, beat or submit hits `ledger busy`, make at most three attempts in total (the first
|
|
371
464
|
one included), with bounded 50ms and 100ms backoff.
|
|
372
465
|
`ledger busy` is not a task failure but a short lock contention; when all three attempts are
|