@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/SilentFailurePage.worker.md
CHANGED
|
@@ -6,18 +6,18 @@ This file describes exactly one focused fixture worker. The target `spec_id` is
|
|
|
6
6
|
|
|
7
7
|
Read only these six inputs. Do not read any other source, evidence, historical output, or draft:
|
|
8
8
|
|
|
9
|
-
1. The named Java fixture: `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\skills\a2h-page-specgen\scripts\test\acceptance\authoring\SilentFailurePage.java`
|
|
10
|
-
2. The English authoring rules: `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork
|
|
11
|
-
3. The SPEC template: `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork
|
|
12
|
-
4. The fixed manifest: `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork
|
|
13
|
-
5. The frozen pre-authored branch checklist: `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork
|
|
14
|
-
6. This page's production-format prompt: `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork
|
|
9
|
+
1. The named Java fixture: `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\scripts\test\acceptance\authoring\SilentFailurePage.java`
|
|
10
|
+
2. The English authoring rules: `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\references\scenario-authoring.md`
|
|
11
|
+
3. The SPEC template: `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\references\spec-template.md`
|
|
12
|
+
4. The fixed manifest: `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\scripts\test\acceptance\authoring\manifest.json`
|
|
13
|
+
5. The frozen pre-authored branch checklist: `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\scripts\test\acceptance\authoring\branch-checklist.md`
|
|
14
|
+
6. This page's production-format prompt: `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\scripts\test\acceptance\authoring\SilentFailurePage.prompt.md`
|
|
15
15
|
|
|
16
16
|
## Fixture protocol (overrides production commands in the prompt)
|
|
17
17
|
|
|
18
18
|
- The production start, beat (heartbeat), and submit commands in the prompt are evidence of the production format only; **none of them may be executed in this fixture**.
|
|
19
19
|
- No prepare, ledger, claim token, waker, dispatch, or submit call is available or required. Do not obtain a token and do not start or resume any production flow.
|
|
20
|
-
- Handle only the page named by this file. Write **raw JSON**, without a Markdown fence and without calling any production command, directly to this exact manifest draft path: `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork
|
|
20
|
+
- Handle only the page named by this file. Write **raw JSON**, without a Markdown fence and without calling any production command, directly to this exact manifest draft path: `C:\Users\admin\Desktop\agent-trajectory-analysis\experiment\a2h\resources\HomeTransProFork\.i18n-stage-regen\skills\a2h-page-specgen\scripts\test\acceptance\authoring\SilentFailurePage.json`
|
|
21
21
|
- Do not modify the Java, authoring rules, template, manifest, prompt, or frozen checklist, and never revise the checklist to match output.
|
|
22
22
|
|
|
23
23
|
## Draft structure
|
|
@@ -63,18 +63,20 @@ The final SPEC must follow these rules:
|
|
|
63
63
|
- Atomic scenarios must be comprehensive and non-redundant.
|
|
64
64
|
- The SPEC must contain a requirement semantic description, scenario semantic descriptions, and scenario flow descriptions.
|
|
65
65
|
- The scenario flow description must contain the trigger operation sequence and the logical execution steps for that scenario.
|
|
66
|
+
- 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.
|
|
66
67
|
|
|
67
68
|
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`.
|
|
68
69
|
|
|
69
70
|
### Evidence-First Expansion
|
|
70
71
|
|
|
71
|
-
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
|
|
72
|
+
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.
|
|
72
73
|
|
|
73
74
|
- Do not add timeout, permission, retry, or empty-state scenarios without evidence just because software of this kind usually has them.
|
|
74
75
|
- 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.
|
|
75
76
|
- When the source implements dynamic error copy, state its real source, for example: “Show an error message using the text returned by the server.”
|
|
76
77
|
- 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.”
|
|
77
78
|
- 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.
|
|
79
|
+
- **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.
|
|
78
80
|
|
|
79
81
|
### Atomic Scenarios
|
|
80
82
|
|
|
@@ -92,12 +94,13 @@ An atomic scenario is the smallest independently verifiable user-perceivable pat
|
|
|
92
94
|
| Normal | representative happy path with typical data | entry and first frame, data ready, primary interaction |
|
|
93
95
|
| Edge/boundary | the edge of the valid domain | empty, minimum, maximum, duplicate, conflict, denied, timeout, interrupted |
|
|
94
96
|
|
|
95
|
-
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.
|
|
97
|
+
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.
|
|
96
98
|
|
|
97
99
|
- Keep one scenario for one trigger plus one outcome.
|
|
98
100
|
- Do not split fields or items that share source, format, visibility, and empty behavior.
|
|
99
101
|
- A noun-only change (“the first song” / “the second song”) is data, not a scenario.
|
|
100
102
|
- Split when success and failure are mixed in one scenario, or when two unrelated outcomes appear.
|
|
103
|
+
- 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.
|
|
101
104
|
|
|
102
105
|
### Source Inspection Axes for Scenario Expansion
|
|
103
106
|
|
|
@@ -105,14 +108,14 @@ Before drafting, inspect the source for the page's actual behavior along every a
|
|
|
105
108
|
|
|
106
109
|
| Axis | Source checks |
|
|
107
110
|
|---|---|
|
|
108
|
-
| 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 |
|
|
111
|
+
| 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 |
|
|
109
112
|
| Data display | No cache, existing cache, loading, complete data, missing fields, empty fields, data-source precedence, fallback, conditional hiding, formatting boundaries |
|
|
110
113
|
| 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 |
|
|
111
114
|
| 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 |
|
|
112
115
|
| Permissions and services | First request, grant, denial, permanent denial, service disabled, cached or default fallback, system settings and rechecking after return |
|
|
113
116
|
| Overlay flows | Open, valid/invalid confirmation, cancel, back dismissal, repeated opening, host state after closing |
|
|
114
117
|
| Local reads and writes | No record, successful/failed read, corrupted data, defaults, successful/failed write, read-back after re-entry |
|
|
115
|
-
| Lifecycle | Cold start, re-entry, back navigation, page recreation, settings changes, saving on exit |
|
|
118
|
+
| Lifecycle | Cold start, re-entry, back navigation, page recreation, settings changes, saving on exit; see the “Lifecycle and Invalidation Axis” |
|
|
116
119
|
| Repeated operations | Add/cancel, toggle switches, repeated taps, triggering again while in progress, updates to associated areas |
|
|
117
120
|
|
|
118
121
|
### Scenario Flow and Step Writing
|
|
@@ -130,8 +133,11 @@ A scenario flow description consists of the trigger operation sequence and the l
|
|
|
130
133
|
“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.
|
|
131
134
|
|
|
132
135
|
- Each step expresses one verifiable action, processing rule, or observable outcome; do not compress independent branches into one step.
|
|
136
|
+
- 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.
|
|
137
|
+
- 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".
|
|
133
138
|
- 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.
|
|
134
139
|
- State source-backed fixed copy, dynamic-copy sources, counts, thresholds, formats, units, and ordering. Never supply a value that lacks evidence.
|
|
140
|
+
- 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.
|
|
135
141
|
- A pure display scenario must state at least its entry condition or data state, its data source or derivation, and the concrete display result.
|
|
136
142
|
- Both dynamic error copy and silent failure are valid when they match the source; not every error needs a fixed literal message.
|
|
137
143
|
- 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.
|
|
@@ -141,6 +147,22 @@ A scenario flow description consists of the trigger operation sequence and the l
|
|
|
141
147
|
|
|
142
148
|
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.
|
|
143
149
|
|
|
150
|
+
#### Data Sources and Processing Destinations
|
|
151
|
+
|
|
152
|
+
Every data boundary names **two sides**.
|
|
153
|
+
|
|
154
|
+
**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).
|
|
155
|
+
|
|
156
|
+
**Absent side**: the sibling data this step does **not carry, write or send**, and where an empty, missing or default value goes.
|
|
157
|
+
|
|
158
|
+
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.
|
|
159
|
+
|
|
160
|
+
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.
|
|
161
|
+
|
|
162
|
+
**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.
|
|
163
|
+
|
|
164
|
+
When a scenario has several sources, each step states which one it reads.
|
|
165
|
+
|
|
144
166
|
#### Natural merge: contract facts enter the steps
|
|
145
167
|
|
|
146
168
|
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.
|
|
@@ -153,6 +175,7 @@ Real `response_spans` map `callback`, `promise`, `complete`, and `response-inter
|
|
|
153
175
|
- 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").
|
|
154
176
|
- Never write a sub-heading or note paragraph, and never use "same as above" or "as in scenario 1".
|
|
155
177
|
- 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.
|
|
178
|
+
- 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.
|
|
156
179
|
|
|
157
180
|
**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.
|
|
158
181
|
|
|
@@ -163,6 +186,8 @@ Real `response_spans` map `callback`, `promise`, `complete`, and `response-inter
|
|
|
163
186
|
| Persistence | Key, type, default, all values, fields | The step that reads or writes persistence |
|
|
164
187
|
| Callback / observer / event | Registration, trigger condition, payload fields, ordering and timing | The step that triggers and refreshes |
|
|
165
188
|
|
|
189
|
+
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.
|
|
190
|
+
|
|
166
191
|
**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.
|
|
167
192
|
|
|
168
193
|
**Flow anti-patterns**:
|
|
@@ -189,18 +214,68 @@ For example, “after favoriting, update global state and refresh related pages
|
|
|
189
214
|
- 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.
|
|
190
215
|
- 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.
|
|
191
216
|
- The impact scope follows the source: never omit a linkage the source implements, and never invent one it does not.
|
|
217
|
+
- 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.
|
|
218
|
+
|
|
219
|
+
### Lifecycle and Invalidation Axis
|
|
220
|
+
|
|
221
|
+
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.
|
|
222
|
+
|
|
223
|
+
| Trigger class | Questions to check |
|
|
224
|
+
|---|---|
|
|
225
|
+
| 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 |
|
|
226
|
+
| Back navigation | After returning from a lower page or a dialog, which regions re-read; which keep stale values |
|
|
227
|
+
| 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 |
|
|
228
|
+
| Write completion | After a write, which surfaces refresh immediately; which wait until they next become visible |
|
|
229
|
+
|
|
230
|
+
Android retrieval clues (the corresponding semantics are the candidate claim_token vocabulary):
|
|
231
|
+
|
|
232
|
+
| Retrieval clue | Corresponding semantics |
|
|
233
|
+
|---|---|
|
|
234
|
+
| A zero-argument `onResume` / `onStart` override in a page or view model, or Compose's `LifecycleResumeEffect` / `LifecycleEventEffect` | Re-read when visible again |
|
|
235
|
+
| `LifecycleEventObserver` / `DefaultLifecycleObserver` / `addObserver` / `onStateChanged` | Lifecycle-linked refresh |
|
|
236
|
+
| An `observeRefreshState` call site, and `RefreshResult` construction or `is` checks | Refresh result notification |
|
|
237
|
+
| Observation registration and collection of `LiveData` / `StateFlow` / `SharedFlow`, plus `collectAsStateWithLifecycle` / `WhileSubscribed` | Collect while visible |
|
|
238
|
+
| A global mode setting call | Global mode applied |
|
|
239
|
+
|
|
240
|
+
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.
|
|
241
|
+
|
|
242
|
+
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.
|
|
192
243
|
|
|
193
244
|
### Request Bodies and Responses
|
|
194
245
|
|
|
195
|
-
When a scenario performs a network request,
|
|
246
|
+
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.
|
|
247
|
+
|
|
248
|
+
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:
|
|
249
|
+
|
|
250
|
+
```text
|
|
251
|
+
<Request body name>
|
|
252
|
+
├─ field:<path> type/encoding:<type> default:<value> send:<rule>
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
- **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.
|
|
256
|
+
- `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.
|
|
257
|
+
- `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`.
|
|
258
|
+
- `default:` `—` means the field has no default value; strings are quoted; write only the value, never whether the key is sent.
|
|
259
|
+
- `send:` one decidable English sentence stating when the key appears on the wire, starting with exactly one of:
|
|
260
|
+
- `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";
|
|
261
|
+
- `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";
|
|
262
|
+
- `never`: never appears; the field stays in the data model and is skipped when serializing.
|
|
263
|
+
- 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.
|
|
264
|
+
- 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".
|
|
265
|
+
- `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".
|
|
266
|
+
- 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.
|
|
267
|
+
- 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".
|
|
268
|
+
- 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 `#`.
|
|
269
|
+
- Name the table root in business terms (for example "sync request body"), never with the request type name from the source.
|
|
270
|
+
- 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.
|
|
271
|
+
|
|
272
|
+
**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.
|
|
273
|
+
|
|
274
|
+
**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.
|
|
196
275
|
|
|
197
|
-
|
|
198
|
-
- 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.
|
|
199
|
-
- 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.
|
|
200
|
-
- 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.
|
|
201
|
-
- 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.
|
|
276
|
+
**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.
|
|
202
277
|
|
|
203
|
-
|
|
278
|
+
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.
|
|
204
279
|
|
|
205
280
|
### Platform-Neutral Body Text
|
|
206
281
|
|
|
@@ -241,6 +316,8 @@ The SPEC is a contract for reimplementation: a statement that cannot become code
|
|
|
241
316
|
| “show the corresponding message” / “give a prompt” | Show the toast “Added to playlist” (copy the UI text verbatim) |
|
|
242
317
|
| “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” |
|
|
243
318
|
| “several” / “a certain number” / “relatively large” / “relatively long” | 100 characters / 500 milliseconds / at most 20 items |
|
|
319
|
+
| “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 |
|
|
320
|
+
| “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 |
|
|
244
321
|
| “sort by a certain rule” | Sort by time added to the playlist, descending |
|
|
245
322
|
| “perform the corresponding handling” / “run the necessary validation” | Validate in order: trim whitespace → check empty → check length ≤ 100 |
|
|
246
323
|
| “store locally” | Write to the playlist persistent storage; it still applies after the page is reopened |
|
|
@@ -273,6 +350,7 @@ assertion needs exactly one disposition, and the draft's `coverage.behaviors`
|
|
|
273
350
|
must explain explicitly which scenario and steps cover it.
|
|
274
351
|
|
|
275
352
|
- 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.
|
|
353
|
+
- 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.
|
|
276
354
|
- 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.
|
|
277
355
|
- 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.
|
|
278
356
|
- `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.
|
|
@@ -284,15 +362,22 @@ must explain explicitly which scenario and steps cover it.
|
|
|
284
362
|
Before submission, confirm all of the following:
|
|
285
363
|
|
|
286
364
|
- Every UTG interaction's relevant source branches were inspected, rather than drafting only the normal path.
|
|
365
|
+
- The “Lifecycle and Invalidation Axis” was checked against the source for all four trigger classes, and every lifecycle-signal candidate has a terminal disposition.
|
|
287
366
|
- 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.
|
|
288
367
|
- Lists and complex display areas were checked for empty and partial data.
|
|
368
|
+
- 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.
|
|
289
369
|
- Asynchronous operations were checked for in-progress, success, and the failure states implemented in source.
|
|
290
370
|
- Persistent operations were checked for write outcomes and read-back behavior.
|
|
371
|
+
- 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.
|
|
372
|
+
- 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.
|
|
373
|
+
- 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.
|
|
374
|
+
- 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.
|
|
291
375
|
- 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.”
|
|
292
|
-
- Network scenarios
|
|
376
|
+
- 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.
|
|
293
377
|
- No vague phrase such as “handle all other errors uniformly” substitutes for concrete branches.
|
|
294
378
|
- Every scenario is independently readable, with no abbreviated cross-scenario references and no unsupported copy, branches, thresholds, or outcomes added to fill gaps.
|
|
295
379
|
- Each scenario is exactly one normal or one edge/boundary case, with no success/failure mix.
|
|
380
|
+
- 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.
|
|
296
381
|
- Every scenario flow starts with its trigger operation sequence and ends with the observable outcome.
|
|
297
382
|
- The body carries no leftover source symbols, framework types, resources, package names, paths, or carrier detail.
|
|
298
383
|
- 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).
|