create-yss-spec 3.5.6 → 3.5.9
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/bin/create-yss-spec.js +3 -1
- package/cli-core.lock.json +10 -6
- package/package.json +4 -1
- package/src/api/_sync-service.js +3 -1
- package/src/command-runner.mjs +44 -9
- package/src/commands/doctor.js +40 -0
- package/src/commands/skills.js +7 -2
- package/src/content-identity.js +111 -0
- package/src/runtime-store.mjs +650 -0
- package/src/template/asset-runtime.js +124 -22
- package/src/template/instance-runtime.js +23 -7
- package/src/validation/metadata.js +8 -0
- package/template/.agents/skills/.strategic-design-skills-manifest.json +3 -3
- package/template/.agents/skills/alibaba-java-code-style/SKILL.md +30 -36
- package/template/.agents/skills/archify/SKILL.md +2 -2
- package/template/.agents/skills/archify/scripts/yss-safe-deliver.mjs +10 -6
- package/template/.agents/skills/archify/test/yss-safe-deliver.test.mjs +9 -2
- package/template/.agents/skills/code-review/SKILL.md +19 -11
- package/template/.agents/skills/code-review/references/candidate-capture.md +1 -1
- package/template/.agents/skills/code-review/references/legacy-convergence.md +3 -1
- package/template/.agents/skills/code-review/references/review-axis-checklists.md +2 -0
- package/template/.agents/skills/code-review/references/yss-review-standards.md +4 -2
- package/template/.agents/skills/competitive-intelligence/SKILL.md +32 -74
- package/template/.agents/skills/file-export-download/SKILL.md +4 -73
- package/template/.agents/skills/file-export-download/references/binary-contract-example.md +26 -0
- package/template/.agents/skills/file-export-download/references/download-call-example.md +45 -0
- package/template/.agents/skills/formily-foundation/SKILL.md +6 -105
- package/template/.agents/skills/formily-foundation/references/async-save-example.md +57 -0
- package/template/.agents/skills/formily-foundation/references/query-layout.md +50 -0
- package/template/.agents/skills/formily-linkage-effects/SKILL.md +3 -116
- package/template/.agents/skills/formily-linkage-effects/references/linkage-example.md +116 -0
- package/template/.agents/skills/formily-mode-slot-detail/SKILL.md +3 -81
- package/template/.agents/skills/formily-mode-slot-detail/references/mode-slot-example.md +81 -0
- package/template/.agents/skills/formily-step-flow/SKILL.md +3 -143
- package/template/.agents/skills/formily-step-flow/references/step-flow-example.md +143 -0
- package/template/.agents/skills/handoff/SKILL.md +3 -1
- package/template/.agents/skills/i-have-adhd/SKILL.md +2 -2
- package/template/.agents/skills/i-have-adhd/references/yss-adaptation.md +2 -2
- package/template/.agents/skills/i-have-adhd/tests/verify-integration.mjs +7 -2
- package/template/.agents/skills/implement/SKILL.md +2 -2
- package/template/.agents/skills/llm-wiki/references/transactions.md +2 -2
- package/template/.agents/skills/llm-wiki/scripts/core.mjs +40 -2
- package/template/.agents/skills/llm-wiki/scripts/transaction.mjs +30 -27
- package/template/.agents/skills/llm-wiki/scripts/v2.test.mjs +38 -2
- package/template/.agents/skills/lombok/SKILL.md +2 -0
- package/template/.agents/skills/mapstruct/SKILL.md +2 -0
- package/template/.agents/skills/tdd/SKILL.md +2 -2
- package/template/.agents/skills/theme-token-usage/SKILL.md +6 -5
- package/template/.agents/skills/wayfinder/references/chart-map.md +2 -2
- package/template/.agents/skills/wayfinder/references/ticket-types.md +1 -1
- package/template/.agents/skills/yss-api-integration/SKILL.md +13 -50
- package/template/.agents/skills/yss-api-integration/references/orval-list-example.md +38 -0
- package/template/.agents/skills/yss-application/SKILL.md +11 -5
- package/template/.agents/skills/yss-audit-log/SKILL.md +8 -6
- package/template/.agents/skills/yss-audit-log/references/README.md +5 -5
- package/template/.agents/skills/yss-cache/SKILL.md +4 -4
- package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +7 -8
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +13 -6
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/command-examples.md +2 -0
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +28 -1
- package/template/.agents/skills/yss-design-system/SKILL.md +2 -2
- package/template/.agents/skills/yss-distributed-id/SKILL.md +4 -4
- package/template/.agents/skills/yss-dto/SKILL.md +9 -9
- package/template/.agents/skills/yss-dto/references/README.md +4 -4
- package/template/.agents/skills/yss-dto/references/wire-validation-checklist.md +4 -4
- package/template/.agents/skills/yss-excel-mvc/SKILL.md +4 -4
- package/template/.agents/skills/yss-exception/SKILL.md +42 -48
- package/template/.agents/skills/yss-formily-schema-generator/SKILL.md +26 -170
- package/template/.agents/skills/yss-formily-schema-generator/references/workflow.md +49 -193
- package/template/.agents/skills/yss-frontend-scaffold-generator/SKILL.md +14 -10
- package/template/.agents/skills/yss-implementation-contract-compiler/SKILL.md +4 -6
- package/template/.agents/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +15 -1
- package/template/.agents/skills/yss-layered-mvc-scaffold-generator/SKILL.md +1 -1
- package/template/.agents/skills/yss-mybatis/SKILL.md +4 -4
- package/template/.agents/skills/yss-openapi-draft-review/SKILL.md +6 -4
- package/template/.agents/skills/yss-openapi-draft-review/references/review-output.md +2 -0
- package/template/.agents/skills/yss-openapi-draft-review/references/semantic-review.md +3 -3
- package/template/.agents/skills/yss-openapi-governance/SKILL.md +5 -7
- package/template/.agents/skills/yss-openapi-governance/references/governance-output.md +2 -0
- package/template/.agents/skills/yss-openapi-governance/references/governance-workflow.md +3 -3
- package/template/.agents/skills/yss-product-lifecycle/SKILL.md +32 -26
- package/template/.agents/skills/yss-product-lifecycle/references/artifact-dependencies.md +1 -1
- package/template/.agents/skills/yss-product-lifecycle/references/matt-yss-adapter.md +28 -6
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +143 -4
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration.md +38 -13
- package/template/.agents/skills/yss-product-lifecycle/references/plan-requirements.md +7 -6
- package/template/.agents/skills/yss-product-lifecycle/references/state-model.md +3 -1
- package/template/.agents/skills/yss-product-lifecycle/references/user-decisions.md +3 -3
- package/template/.agents/skills/yss-prototype-stage/SKILL.md +1 -5
- package/template/.agents/skills/yss-prototype-stage/scripts/verify-prototype-design.mjs +1 -0
- package/template/.agents/skills/yss-repository/SKILL.md +2 -2
- package/template/.agents/skills/yss-research/SKILL.md +39 -48
- package/template/.agents/skills/yss-research/assets/competitive-evidence-template.yaml +146 -0
- package/template/.agents/skills/yss-research/references/competitive-analysis.md +76 -0
- package/template/.agents/skills/yss-research/references/competitive-analysis.schema.json +324 -0
- package/template/.agents/skills/yss-research/references/evidence-contract.md +8 -0
- package/template/.agents/skills/yss-research/scripts/lib/competitive-analysis.mjs +185 -0
- package/template/.agents/skills/yss-research/scripts/render-competitive-outputs.mjs +16 -0
- package/template/.agents/skills/yss-research/scripts/validate-research-package.mjs +6 -2
- package/template/.agents/skills/yss-research/tests/competitive-scenarios.test.mjs +270 -0
- package/template/.agents/skills/yss-resilience4j/SKILL.md +25 -31
- package/template/.agents/skills/yss-security-algorithm/SKILL.md +37 -43
- package/template/.agents/skills/yss-skill-source-index-refresh/SKILL.md +29 -36
- package/template/.agents/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +1 -1
- package/template/.agents/skills/yss-stage-decision/SKILL.md +2 -5
- package/template/.agents/skills/yss-stage-decision/scripts/validate-domain-strategy.mjs +8 -5
- package/template/.agents/skills/yss-stage-decision/scripts/validate-stage-decision-package.mjs +8 -5
- package/template/.agents/skills/yss-stage-decision/tests/run-scenarios.mjs +83 -13
- package/template/.agents/skills/yss-tactical-design/SKILL.md +1 -1
- package/template/.agents/skills/yss-tactical-design/references/output-template.md +3 -3
- package/template/.agents/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
- package/template/.agents/skills/yss-technical-design/SKILL.md +6 -5
- package/template/.agents/skills/yss-ui/SKILL.md +7 -1
- package/template/.agents/skills/yss-ui/assets/docs/guide/gitlab-ci-integration.md +2 -2
- package/template/.agents/skills/yss-ui/references/checklist.md +38 -96
- package/template/.agents/skills/yss-ui/references/component-routing.md +3 -1
- package/template/.agents/skills/yss-ui/references/quick-recipes.md +17 -272
- package/template/.agents/skills/yss-ui/references/specialized-components.md +3 -3
- package/template/.agents/skills/yss-ui-business-page-generation/SKILL.md +1 -1
- package/template/.agents/skills/yss-up-springboot3/SKILL.md +19 -21
- package/template/.agents/skills/yss-userinfo/SKILL.md +27 -33
- package/template/.agents/skills/yss-validation/SKILL.md +26 -32
- package/template/.agents/skills/yss-web-controller/SKILL.md +11 -44
- package/template/.agents/skills/yss-web-controller/references/crud-generation.md +38 -0
- package/template/.agents/skills/ytable-usage/SKILL.md +2 -2
- package/template/.agents/skills/ytree-usage/SKILL.md +2 -80
- package/template/.agents/skills/ytree-usage/references/tree-and-confirmation-example.md +81 -0
- package/template/.codex/skills/alibaba-java-code-style/SKILL.md +30 -36
- package/template/.codex/skills/archify/SKILL.md +2 -2
- package/template/.codex/skills/archify/scripts/yss-safe-deliver.mjs +10 -6
- package/template/.codex/skills/archify/test/yss-safe-deliver.test.mjs +9 -2
- package/template/.codex/skills/code-review/SKILL.md +19 -11
- package/template/.codex/skills/code-review/references/candidate-capture.md +1 -1
- package/template/.codex/skills/code-review/references/legacy-convergence.md +3 -1
- package/template/.codex/skills/code-review/references/review-axis-checklists.md +2 -0
- package/template/.codex/skills/code-review/references/yss-review-standards.md +4 -2
- package/template/.codex/skills/competitive-intelligence/SKILL.md +32 -74
- package/template/.codex/skills/file-export-download/SKILL.md +4 -73
- package/template/.codex/skills/file-export-download/references/binary-contract-example.md +26 -0
- package/template/.codex/skills/file-export-download/references/download-call-example.md +45 -0
- package/template/.codex/skills/formily-foundation/SKILL.md +6 -105
- package/template/.codex/skills/formily-foundation/references/async-save-example.md +57 -0
- package/template/.codex/skills/formily-foundation/references/query-layout.md +50 -0
- package/template/.codex/skills/formily-linkage-effects/SKILL.md +3 -116
- package/template/.codex/skills/formily-linkage-effects/references/linkage-example.md +116 -0
- package/template/.codex/skills/formily-mode-slot-detail/SKILL.md +3 -81
- package/template/.codex/skills/formily-mode-slot-detail/references/mode-slot-example.md +81 -0
- package/template/.codex/skills/formily-step-flow/SKILL.md +3 -143
- package/template/.codex/skills/formily-step-flow/references/step-flow-example.md +143 -0
- package/template/.codex/skills/handoff/SKILL.md +3 -1
- package/template/.codex/skills/i-have-adhd/SKILL.md +2 -2
- package/template/.codex/skills/i-have-adhd/references/yss-adaptation.md +2 -2
- package/template/.codex/skills/i-have-adhd/tests/verify-integration.mjs +7 -2
- package/template/.codex/skills/implement/SKILL.md +2 -2
- package/template/.codex/skills/llm-wiki/references/transactions.md +2 -2
- package/template/.codex/skills/llm-wiki/scripts/core.mjs +40 -2
- package/template/.codex/skills/llm-wiki/scripts/transaction.mjs +30 -27
- package/template/.codex/skills/llm-wiki/scripts/v2.test.mjs +38 -2
- package/template/.codex/skills/lombok/SKILL.md +2 -0
- package/template/.codex/skills/mapstruct/SKILL.md +2 -0
- package/template/.codex/skills/product-design/references/communication-protocol.md +3 -3
- package/template/.codex/skills/product-design/references/critical-overrides.md +4 -5
- package/template/.codex/skills/product-design/skills/audit/SKILL.md +2 -4
- package/template/.codex/skills/product-design/skills/get-context/SKILL.md +6 -8
- package/template/.codex/skills/product-design/skills/ideate/SKILL.md +3 -3
- package/template/.codex/skills/product-design/skills/image-to-code/SKILL.md +3 -5
- package/template/.codex/skills/product-design/skills/index/SKILL.md +1 -1
- package/template/.codex/skills/product-design/skills/prototype/SKILL.md +2 -4
- package/template/.codex/skills/product-design/skills/research/SKILL.md +4 -6
- package/template/.codex/skills/product-design/skills/research/assets/research-brief-template.md +3 -3
- package/template/.codex/skills/product-design/skills/share/SKILL.md +2 -4
- package/template/.codex/skills/product-design/skills/url-to-code/SKILL.md +2 -4
- package/template/.codex/skills/product-design/skills/user-context/SKILL.md +1 -1
- package/template/.codex/skills/tdd/SKILL.md +2 -2
- package/template/.codex/skills/theme-token-usage/SKILL.md +6 -5
- package/template/.codex/skills/wayfinder/references/chart-map.md +2 -2
- package/template/.codex/skills/wayfinder/references/ticket-types.md +1 -1
- package/template/.codex/skills/yss-api-integration/SKILL.md +13 -50
- package/template/.codex/skills/yss-api-integration/references/orval-list-example.md +38 -0
- package/template/.codex/skills/yss-application/SKILL.md +11 -5
- package/template/.codex/skills/yss-audit-log/SKILL.md +8 -6
- package/template/.codex/skills/yss-audit-log/references/README.md +5 -5
- package/template/.codex/skills/yss-cache/SKILL.md +4 -4
- package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +7 -8
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +13 -6
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/command-examples.md +2 -0
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +28 -1
- package/template/.codex/skills/yss-design-system/SKILL.md +2 -2
- package/template/.codex/skills/yss-distributed-id/SKILL.md +4 -4
- package/template/.codex/skills/yss-dto/SKILL.md +9 -9
- package/template/.codex/skills/yss-dto/references/README.md +4 -4
- package/template/.codex/skills/yss-dto/references/wire-validation-checklist.md +4 -4
- package/template/.codex/skills/yss-excel-mvc/SKILL.md +4 -4
- package/template/.codex/skills/yss-exception/SKILL.md +42 -48
- package/template/.codex/skills/yss-formily-schema-generator/SKILL.md +26 -170
- package/template/.codex/skills/yss-formily-schema-generator/references/workflow.md +49 -193
- package/template/.codex/skills/yss-frontend-scaffold-generator/SKILL.md +14 -10
- package/template/.codex/skills/yss-implementation-contract-compiler/SKILL.md +4 -6
- package/template/.codex/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +15 -1
- package/template/.codex/skills/yss-layered-mvc-scaffold-generator/SKILL.md +1 -1
- package/template/.codex/skills/yss-mybatis/SKILL.md +4 -4
- package/template/.codex/skills/yss-openapi-draft-review/SKILL.md +6 -4
- package/template/.codex/skills/yss-openapi-draft-review/references/review-output.md +2 -0
- package/template/.codex/skills/yss-openapi-draft-review/references/semantic-review.md +3 -3
- package/template/.codex/skills/yss-openapi-governance/SKILL.md +5 -7
- package/template/.codex/skills/yss-openapi-governance/references/governance-output.md +2 -0
- package/template/.codex/skills/yss-openapi-governance/references/governance-workflow.md +3 -3
- package/template/.codex/skills/yss-product-lifecycle/SKILL.md +32 -26
- package/template/.codex/skills/yss-product-lifecycle/references/artifact-dependencies.md +1 -1
- package/template/.codex/skills/yss-product-lifecycle/references/matt-yss-adapter.md +28 -6
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +143 -4
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration.md +38 -13
- package/template/.codex/skills/yss-product-lifecycle/references/plan-requirements.md +7 -6
- package/template/.codex/skills/yss-product-lifecycle/references/state-model.md +3 -1
- package/template/.codex/skills/yss-product-lifecycle/references/user-decisions.md +3 -3
- package/template/.codex/skills/yss-prototype-stage/SKILL.md +1 -5
- package/template/.codex/skills/yss-prototype-stage/scripts/verify-prototype-design.mjs +1 -0
- package/template/.codex/skills/yss-repository/SKILL.md +2 -2
- package/template/.codex/skills/yss-research/SKILL.md +39 -48
- package/template/.codex/skills/yss-research/assets/competitive-evidence-template.yaml +146 -0
- package/template/.codex/skills/yss-research/references/competitive-analysis.md +76 -0
- package/template/.codex/skills/yss-research/references/competitive-analysis.schema.json +324 -0
- package/template/.codex/skills/yss-research/references/evidence-contract.md +8 -0
- package/template/.codex/skills/yss-research/scripts/lib/competitive-analysis.mjs +185 -0
- package/template/.codex/skills/yss-research/scripts/render-competitive-outputs.mjs +16 -0
- package/template/.codex/skills/yss-research/scripts/validate-research-package.mjs +6 -2
- package/template/.codex/skills/yss-research/tests/competitive-scenarios.test.mjs +270 -0
- package/template/.codex/skills/yss-resilience4j/SKILL.md +25 -31
- package/template/.codex/skills/yss-security-algorithm/SKILL.md +37 -43
- package/template/.codex/skills/yss-skill-source-index-refresh/SKILL.md +29 -36
- package/template/.codex/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +1 -1
- package/template/.codex/skills/yss-stage-decision/SKILL.md +2 -5
- package/template/.codex/skills/yss-stage-decision/scripts/validate-domain-strategy.mjs +8 -5
- package/template/.codex/skills/yss-stage-decision/scripts/validate-stage-decision-package.mjs +8 -5
- package/template/.codex/skills/yss-stage-decision/tests/run-scenarios.mjs +83 -13
- package/template/.codex/skills/yss-tactical-design/SKILL.md +1 -1
- package/template/.codex/skills/yss-tactical-design/references/output-template.md +3 -3
- package/template/.codex/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
- package/template/.codex/skills/yss-technical-design/SKILL.md +6 -5
- package/template/.codex/skills/yss-ui/SKILL.md +7 -1
- package/template/.codex/skills/yss-ui/assets/docs/guide/gitlab-ci-integration.md +2 -2
- package/template/.codex/skills/yss-ui/references/checklist.md +38 -96
- package/template/.codex/skills/yss-ui/references/component-routing.md +3 -1
- package/template/.codex/skills/yss-ui/references/quick-recipes.md +17 -272
- package/template/.codex/skills/yss-ui/references/specialized-components.md +3 -3
- package/template/.codex/skills/yss-ui-business-page-generation/SKILL.md +1 -1
- package/template/.codex/skills/yss-up-springboot3/SKILL.md +19 -21
- package/template/.codex/skills/yss-userinfo/SKILL.md +27 -33
- package/template/.codex/skills/yss-validation/SKILL.md +26 -32
- package/template/.codex/skills/yss-web-controller/SKILL.md +11 -44
- package/template/.codex/skills/yss-web-controller/references/crud-generation.md +38 -0
- package/template/.codex/skills/ytable-usage/SKILL.md +2 -2
- package/template/.codex/skills/ytree-usage/SKILL.md +2 -80
- package/template/.codex/skills/ytree-usage/references/tree-and-confirmation-example.md +81 -0
- package/template/.cursor/skills/alibaba-java-code-style/SKILL.md +30 -36
- package/template/.cursor/skills/archify/SKILL.md +2 -2
- package/template/.cursor/skills/archify/scripts/yss-safe-deliver.mjs +10 -6
- package/template/.cursor/skills/archify/test/yss-safe-deliver.test.mjs +9 -2
- package/template/.cursor/skills/code-review/SKILL.md +19 -11
- package/template/.cursor/skills/code-review/references/candidate-capture.md +1 -1
- package/template/.cursor/skills/code-review/references/legacy-convergence.md +3 -1
- package/template/.cursor/skills/code-review/references/review-axis-checklists.md +2 -0
- package/template/.cursor/skills/code-review/references/yss-review-standards.md +4 -2
- package/template/.cursor/skills/competitive-intelligence/SKILL.md +32 -74
- package/template/.cursor/skills/file-export-download/SKILL.md +4 -73
- package/template/.cursor/skills/file-export-download/references/binary-contract-example.md +26 -0
- package/template/.cursor/skills/file-export-download/references/download-call-example.md +45 -0
- package/template/.cursor/skills/formily-foundation/SKILL.md +6 -105
- package/template/.cursor/skills/formily-foundation/references/async-save-example.md +57 -0
- package/template/.cursor/skills/formily-foundation/references/query-layout.md +50 -0
- package/template/.cursor/skills/formily-linkage-effects/SKILL.md +3 -116
- package/template/.cursor/skills/formily-linkage-effects/references/linkage-example.md +116 -0
- package/template/.cursor/skills/formily-mode-slot-detail/SKILL.md +3 -81
- package/template/.cursor/skills/formily-mode-slot-detail/references/mode-slot-example.md +81 -0
- package/template/.cursor/skills/formily-step-flow/SKILL.md +3 -143
- package/template/.cursor/skills/formily-step-flow/references/step-flow-example.md +143 -0
- package/template/.cursor/skills/handoff/SKILL.md +3 -1
- package/template/.cursor/skills/i-have-adhd/SKILL.md +2 -2
- package/template/.cursor/skills/i-have-adhd/references/yss-adaptation.md +2 -2
- package/template/.cursor/skills/i-have-adhd/tests/verify-integration.mjs +7 -2
- package/template/.cursor/skills/implement/SKILL.md +2 -2
- package/template/.cursor/skills/llm-wiki/references/transactions.md +2 -2
- package/template/.cursor/skills/llm-wiki/scripts/core.mjs +40 -2
- package/template/.cursor/skills/llm-wiki/scripts/transaction.mjs +30 -27
- package/template/.cursor/skills/llm-wiki/scripts/v2.test.mjs +38 -2
- package/template/.cursor/skills/lombok/SKILL.md +2 -0
- package/template/.cursor/skills/mapstruct/SKILL.md +2 -0
- package/template/.cursor/skills/tdd/SKILL.md +2 -2
- package/template/.cursor/skills/theme-token-usage/SKILL.md +6 -5
- package/template/.cursor/skills/wayfinder/references/chart-map.md +2 -2
- package/template/.cursor/skills/wayfinder/references/ticket-types.md +1 -1
- package/template/.cursor/skills/yss-api-integration/SKILL.md +13 -50
- package/template/.cursor/skills/yss-api-integration/references/orval-list-example.md +38 -0
- package/template/.cursor/skills/yss-application/SKILL.md +11 -5
- package/template/.cursor/skills/yss-audit-log/SKILL.md +8 -6
- package/template/.cursor/skills/yss-audit-log/references/README.md +5 -5
- package/template/.cursor/skills/yss-cache/SKILL.md +4 -4
- package/template/.cursor/skills/yss-ddd-scaffold-generator/SKILL.md +7 -8
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +13 -6
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/command-examples.md +2 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +28 -1
- package/template/.cursor/skills/yss-design-system/SKILL.md +2 -2
- package/template/.cursor/skills/yss-distributed-id/SKILL.md +4 -4
- package/template/.cursor/skills/yss-dto/SKILL.md +9 -9
- package/template/.cursor/skills/yss-dto/references/README.md +4 -4
- package/template/.cursor/skills/yss-dto/references/wire-validation-checklist.md +4 -4
- package/template/.cursor/skills/yss-excel-mvc/SKILL.md +4 -4
- package/template/.cursor/skills/yss-exception/SKILL.md +42 -48
- package/template/.cursor/skills/yss-formily-schema-generator/SKILL.md +26 -170
- package/template/.cursor/skills/yss-formily-schema-generator/references/workflow.md +49 -193
- package/template/.cursor/skills/yss-frontend-scaffold-generator/SKILL.md +14 -10
- package/template/.cursor/skills/yss-implementation-contract-compiler/SKILL.md +4 -6
- package/template/.cursor/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +15 -1
- package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/SKILL.md +1 -1
- package/template/.cursor/skills/yss-mybatis/SKILL.md +4 -4
- package/template/.cursor/skills/yss-openapi-draft-review/SKILL.md +6 -4
- package/template/.cursor/skills/yss-openapi-draft-review/references/review-output.md +2 -0
- package/template/.cursor/skills/yss-openapi-draft-review/references/semantic-review.md +3 -3
- package/template/.cursor/skills/yss-openapi-governance/SKILL.md +5 -7
- package/template/.cursor/skills/yss-openapi-governance/references/governance-output.md +2 -0
- package/template/.cursor/skills/yss-openapi-governance/references/governance-workflow.md +3 -3
- package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +32 -26
- package/template/.cursor/skills/yss-product-lifecycle/references/artifact-dependencies.md +1 -1
- package/template/.cursor/skills/yss-product-lifecycle/references/matt-yss-adapter.md +28 -6
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +143 -4
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +38 -13
- package/template/.cursor/skills/yss-product-lifecycle/references/plan-requirements.md +7 -6
- package/template/.cursor/skills/yss-product-lifecycle/references/state-model.md +3 -1
- package/template/.cursor/skills/yss-product-lifecycle/references/user-decisions.md +3 -3
- package/template/.cursor/skills/yss-prototype-stage/SKILL.md +1 -5
- package/template/.cursor/skills/yss-prototype-stage/scripts/verify-prototype-design.mjs +1 -0
- package/template/.cursor/skills/yss-repository/SKILL.md +2 -2
- package/template/.cursor/skills/yss-research/SKILL.md +39 -48
- package/template/.cursor/skills/yss-research/assets/competitive-evidence-template.yaml +146 -0
- package/template/.cursor/skills/yss-research/references/competitive-analysis.md +76 -0
- package/template/.cursor/skills/yss-research/references/competitive-analysis.schema.json +324 -0
- package/template/.cursor/skills/yss-research/references/evidence-contract.md +8 -0
- package/template/.cursor/skills/yss-research/scripts/lib/competitive-analysis.mjs +185 -0
- package/template/.cursor/skills/yss-research/scripts/render-competitive-outputs.mjs +16 -0
- package/template/.cursor/skills/yss-research/scripts/validate-research-package.mjs +6 -2
- package/template/.cursor/skills/yss-research/tests/competitive-scenarios.test.mjs +270 -0
- package/template/.cursor/skills/yss-resilience4j/SKILL.md +25 -31
- package/template/.cursor/skills/yss-security-algorithm/SKILL.md +37 -43
- package/template/.cursor/skills/yss-skill-source-index-refresh/SKILL.md +29 -36
- package/template/.cursor/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +1 -1
- package/template/.cursor/skills/yss-stage-decision/SKILL.md +2 -5
- package/template/.cursor/skills/yss-stage-decision/scripts/validate-domain-strategy.mjs +8 -5
- package/template/.cursor/skills/yss-stage-decision/scripts/validate-stage-decision-package.mjs +8 -5
- package/template/.cursor/skills/yss-stage-decision/tests/run-scenarios.mjs +83 -13
- package/template/.cursor/skills/yss-tactical-design/SKILL.md +1 -1
- package/template/.cursor/skills/yss-tactical-design/references/output-template.md +3 -3
- package/template/.cursor/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
- package/template/.cursor/skills/yss-technical-design/SKILL.md +6 -5
- package/template/.cursor/skills/yss-ui/SKILL.md +7 -1
- package/template/.cursor/skills/yss-ui/assets/docs/guide/gitlab-ci-integration.md +2 -2
- package/template/.cursor/skills/yss-ui/references/checklist.md +38 -96
- package/template/.cursor/skills/yss-ui/references/component-routing.md +3 -1
- package/template/.cursor/skills/yss-ui/references/quick-recipes.md +17 -272
- package/template/.cursor/skills/yss-ui/references/specialized-components.md +3 -3
- package/template/.cursor/skills/yss-ui-business-page-generation/SKILL.md +1 -1
- package/template/.cursor/skills/yss-up-springboot3/SKILL.md +19 -21
- package/template/.cursor/skills/yss-userinfo/SKILL.md +27 -33
- package/template/.cursor/skills/yss-validation/SKILL.md +26 -32
- package/template/.cursor/skills/yss-web-controller/SKILL.md +11 -44
- package/template/.cursor/skills/yss-web-controller/references/crud-generation.md +38 -0
- package/template/.cursor/skills/ytable-usage/SKILL.md +2 -2
- package/template/.cursor/skills/ytree-usage/SKILL.md +2 -80
- package/template/.cursor/skills/ytree-usage/references/tree-and-confirmation-example.md +81 -0
- package/template/.pi/skills/alibaba-java-code-style/SKILL.md +30 -36
- package/template/.pi/skills/archify/SKILL.md +2 -2
- package/template/.pi/skills/archify/scripts/yss-safe-deliver.mjs +10 -6
- package/template/.pi/skills/archify/test/yss-safe-deliver.test.mjs +9 -2
- package/template/.pi/skills/code-review/SKILL.md +19 -11
- package/template/.pi/skills/code-review/references/candidate-capture.md +1 -1
- package/template/.pi/skills/code-review/references/legacy-convergence.md +3 -1
- package/template/.pi/skills/code-review/references/review-axis-checklists.md +2 -0
- package/template/.pi/skills/code-review/references/yss-review-standards.md +4 -2
- package/template/.pi/skills/competitive-intelligence/SKILL.md +32 -74
- package/template/.pi/skills/file-export-download/SKILL.md +4 -73
- package/template/.pi/skills/file-export-download/references/binary-contract-example.md +26 -0
- package/template/.pi/skills/file-export-download/references/download-call-example.md +45 -0
- package/template/.pi/skills/formily-foundation/SKILL.md +6 -105
- package/template/.pi/skills/formily-foundation/references/async-save-example.md +57 -0
- package/template/.pi/skills/formily-foundation/references/query-layout.md +50 -0
- package/template/.pi/skills/formily-linkage-effects/SKILL.md +3 -116
- package/template/.pi/skills/formily-linkage-effects/references/linkage-example.md +116 -0
- package/template/.pi/skills/formily-mode-slot-detail/SKILL.md +3 -81
- package/template/.pi/skills/formily-mode-slot-detail/references/mode-slot-example.md +81 -0
- package/template/.pi/skills/formily-step-flow/SKILL.md +3 -143
- package/template/.pi/skills/formily-step-flow/references/step-flow-example.md +143 -0
- package/template/.pi/skills/handoff/SKILL.md +3 -1
- package/template/.pi/skills/i-have-adhd/SKILL.md +2 -2
- package/template/.pi/skills/i-have-adhd/references/yss-adaptation.md +2 -2
- package/template/.pi/skills/i-have-adhd/tests/verify-integration.mjs +7 -2
- package/template/.pi/skills/implement/SKILL.md +2 -2
- package/template/.pi/skills/llm-wiki/references/transactions.md +2 -2
- package/template/.pi/skills/llm-wiki/scripts/core.mjs +40 -2
- package/template/.pi/skills/llm-wiki/scripts/transaction.mjs +30 -27
- package/template/.pi/skills/llm-wiki/scripts/v2.test.mjs +38 -2
- package/template/.pi/skills/lombok/SKILL.md +2 -0
- package/template/.pi/skills/mapstruct/SKILL.md +2 -0
- package/template/.pi/skills/tdd/SKILL.md +2 -2
- package/template/.pi/skills/theme-token-usage/SKILL.md +6 -5
- package/template/.pi/skills/wayfinder/references/chart-map.md +2 -2
- package/template/.pi/skills/wayfinder/references/ticket-types.md +1 -1
- package/template/.pi/skills/yss-api-integration/SKILL.md +13 -50
- package/template/.pi/skills/yss-api-integration/references/orval-list-example.md +38 -0
- package/template/.pi/skills/yss-application/SKILL.md +11 -5
- package/template/.pi/skills/yss-audit-log/SKILL.md +8 -6
- package/template/.pi/skills/yss-audit-log/references/README.md +5 -5
- package/template/.pi/skills/yss-cache/SKILL.md +4 -4
- package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +7 -8
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +13 -6
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/command-examples.md +2 -0
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +28 -1
- package/template/.pi/skills/yss-design-system/SKILL.md +2 -2
- package/template/.pi/skills/yss-distributed-id/SKILL.md +4 -4
- package/template/.pi/skills/yss-dto/SKILL.md +9 -9
- package/template/.pi/skills/yss-dto/references/README.md +4 -4
- package/template/.pi/skills/yss-dto/references/wire-validation-checklist.md +4 -4
- package/template/.pi/skills/yss-excel-mvc/SKILL.md +4 -4
- package/template/.pi/skills/yss-exception/SKILL.md +42 -48
- package/template/.pi/skills/yss-formily-schema-generator/SKILL.md +26 -170
- package/template/.pi/skills/yss-formily-schema-generator/references/workflow.md +49 -193
- package/template/.pi/skills/yss-frontend-scaffold-generator/SKILL.md +14 -10
- package/template/.pi/skills/yss-implementation-contract-compiler/SKILL.md +4 -6
- package/template/.pi/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +15 -1
- package/template/.pi/skills/yss-layered-mvc-scaffold-generator/SKILL.md +1 -1
- package/template/.pi/skills/yss-mybatis/SKILL.md +4 -4
- package/template/.pi/skills/yss-openapi-draft-review/SKILL.md +6 -4
- package/template/.pi/skills/yss-openapi-draft-review/references/review-output.md +2 -0
- package/template/.pi/skills/yss-openapi-draft-review/references/semantic-review.md +3 -3
- package/template/.pi/skills/yss-openapi-governance/SKILL.md +5 -7
- package/template/.pi/skills/yss-openapi-governance/references/governance-output.md +2 -0
- package/template/.pi/skills/yss-openapi-governance/references/governance-workflow.md +3 -3
- package/template/.pi/skills/yss-product-lifecycle/SKILL.md +32 -26
- package/template/.pi/skills/yss-product-lifecycle/references/artifact-dependencies.md +1 -1
- package/template/.pi/skills/yss-product-lifecycle/references/matt-yss-adapter.md +28 -6
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +143 -4
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration.md +38 -13
- package/template/.pi/skills/yss-product-lifecycle/references/plan-requirements.md +7 -6
- package/template/.pi/skills/yss-product-lifecycle/references/state-model.md +3 -1
- package/template/.pi/skills/yss-product-lifecycle/references/user-decisions.md +3 -3
- package/template/.pi/skills/yss-prototype-stage/SKILL.md +1 -5
- package/template/.pi/skills/yss-prototype-stage/scripts/verify-prototype-design.mjs +1 -0
- package/template/.pi/skills/yss-repository/SKILL.md +2 -2
- package/template/.pi/skills/yss-research/SKILL.md +39 -48
- package/template/.pi/skills/yss-research/assets/competitive-evidence-template.yaml +146 -0
- package/template/.pi/skills/yss-research/references/competitive-analysis.md +76 -0
- package/template/.pi/skills/yss-research/references/competitive-analysis.schema.json +324 -0
- package/template/.pi/skills/yss-research/references/evidence-contract.md +8 -0
- package/template/.pi/skills/yss-research/scripts/lib/competitive-analysis.mjs +185 -0
- package/template/.pi/skills/yss-research/scripts/render-competitive-outputs.mjs +16 -0
- package/template/.pi/skills/yss-research/scripts/validate-research-package.mjs +6 -2
- package/template/.pi/skills/yss-research/tests/competitive-scenarios.test.mjs +270 -0
- package/template/.pi/skills/yss-resilience4j/SKILL.md +25 -31
- package/template/.pi/skills/yss-security-algorithm/SKILL.md +37 -43
- package/template/.pi/skills/yss-skill-source-index-refresh/SKILL.md +29 -36
- package/template/.pi/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +1 -1
- package/template/.pi/skills/yss-stage-decision/SKILL.md +2 -5
- package/template/.pi/skills/yss-stage-decision/scripts/validate-domain-strategy.mjs +8 -5
- package/template/.pi/skills/yss-stage-decision/scripts/validate-stage-decision-package.mjs +8 -5
- package/template/.pi/skills/yss-stage-decision/tests/run-scenarios.mjs +83 -13
- package/template/.pi/skills/yss-tactical-design/SKILL.md +1 -1
- package/template/.pi/skills/yss-tactical-design/references/output-template.md +3 -3
- package/template/.pi/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
- package/template/.pi/skills/yss-technical-design/SKILL.md +6 -5
- package/template/.pi/skills/yss-ui/SKILL.md +7 -1
- package/template/.pi/skills/yss-ui/assets/docs/guide/gitlab-ci-integration.md +2 -2
- package/template/.pi/skills/yss-ui/references/checklist.md +38 -96
- package/template/.pi/skills/yss-ui/references/component-routing.md +3 -1
- package/template/.pi/skills/yss-ui/references/quick-recipes.md +17 -272
- package/template/.pi/skills/yss-ui/references/specialized-components.md +3 -3
- package/template/.pi/skills/yss-ui-business-page-generation/SKILL.md +1 -1
- package/template/.pi/skills/yss-up-springboot3/SKILL.md +19 -21
- package/template/.pi/skills/yss-userinfo/SKILL.md +27 -33
- package/template/.pi/skills/yss-validation/SKILL.md +26 -32
- package/template/.pi/skills/yss-web-controller/SKILL.md +11 -44
- package/template/.pi/skills/yss-web-controller/references/crud-generation.md +38 -0
- package/template/.pi/skills/ytable-usage/SKILL.md +2 -2
- package/template/.pi/skills/ytree-usage/SKILL.md +2 -80
- package/template/.pi/skills/ytree-usage/references/tree-and-confirmation-example.md +81 -0
- package/template/.template-spec/agents/backend-architecture-profiles.md +1 -1
- package/template/.template-spec/agents/digital-human-roles.md +5 -1
- package/template/.template-spec/agents/digital-human-roles.yaml +49 -1
- package/template/.template-spec/engineering/backend-platforms.json +1 -1
- package/template/.template-spec/plan/entry-review.md +2 -1
- package/template/.template-spec/plan/templates/competitive-analysis-template.md +38 -36
- package/template/.template-spec/plan/templates/competitive-matrix-template.md +37 -17
- package/template/.template-spec/plan/templates/plan-template.md +11 -5
- package/template/.template-spec/process/document-writing.md +22 -3
- package/template/.template-spec/process/harness-process-tailoring.md +5 -1
- package/template/.template-spec/process/implementation-repo-integration.md +26 -8
- package/template/.template-spec/process/research-completion.md +2 -0
- package/template/.template-spec/process/runtime-storage.md +78 -0
- package/template/.template-spec/process/schemas/approval-context.schema.json +67 -0
- package/template/.template-spec/process/schemas/approval-record.schema.json +179 -16
- package/template/.template-spec/process/schemas/backend-delivery.schema.json +16 -0
- package/template/.template-spec/process/schemas/delivery-preflight-input.schema.json +4 -0
- package/template/.template-spec/process/schemas/digital-human-task-package.schema.json +236 -1
- package/template/.template-spec/process/schemas/implementation-repository-preparation-result.schema.json +335 -52
- package/template/.template-spec/process/schemas/lifecycle-checkpoint.schema.json +11 -0
- package/template/.template-spec/process/schemas/project-scaffold-contract.schema.json +3 -0
- package/template/.template-spec/process/schemas/review-bundle.schema.json +347 -35
- package/template/.template-spec/process/schemas/strategic-design-handoff-v3.schema.json +504 -0
- package/template/.template-spec/process/schemas/strategic-design-handoff-v4.schema.json +544 -8
- package/template/.template-spec/process/schemas/strategic-design-handoff-v5.schema.json +616 -0
- package/template/.template-spec/process/schemas/strategic-design-handoff.schema.json +616 -0
- package/template/.template-spec/process/schemas/strategic-handoff-domain-strategy-v3.schema.json +712 -109
- package/template/.template-spec/process/schemas/strategic-handoff-domain-strategy.schema.json +595 -90
- package/template/.template-spec/process/schemas/strategic-handoff-export-v2.schema.json +448 -0
- package/template/.template-spec/process/schemas/strategic-handoff-export.schema.json +392 -0
- package/template/.template-spec/process/schemas/strategic-handoff-stage-decision-package-v3.schema.json +556 -83
- package/template/.template-spec/process/schemas/strategic-handoff-stage-decision-package.schema.json +418 -57
- package/template/.template-spec/process/script-execution.md +37 -0
- package/template/.template-spec/process/subagent-collaboration.md +7 -1
- package/template/.template-spec/templates/approval-record-template.json +7 -3
- package/template/.template-spec/templates/approval-record-template.yaml +8 -2
- package/template/.template-spec/templates/examples/lifecycle-writing-examples.md +92 -2
- package/template/.template-spec/templates/retro-report-template.md +10 -3
- package/template/.template-spec/templates/review-bundle-template.yaml +19 -10
- package/template/.template-spec/user-guide//347/224/250/346/210/267/346/211/213/345/206/214.md +2 -0
- package/template/AGENTS.md +4 -3
- package/template/CONTEXT.md +2 -2
- package/template/README.md +2 -2
- package/template/scripts/advance-maintenance-iteration +51 -0
- package/template/scripts/lib/approval-checkpoint-discovery.mjs +26 -0
- package/template/scripts/lib/approval-consumption.mjs +35 -0
- package/template/scripts/lib/approval-current.mjs +111 -0
- package/template/scripts/lib/approval-record-io.mjs +56 -0
- package/template/scripts/lib/approval-record.mjs +79 -184
- package/template/scripts/lib/approved-execution-context.mjs +8 -6
- package/template/scripts/lib/asset-transactions.mjs +5 -1
- package/template/scripts/lib/backend-delivery.mjs +1 -1
- package/template/scripts/lib/backend-review.mjs +2 -1
- package/template/scripts/lib/backend-scaffold-prerequisites.mjs +3 -2
- package/template/scripts/lib/business-ticket-lifecycle.mjs +2 -1
- package/template/scripts/lib/checkpoint-commit.mjs +50 -0
- package/template/scripts/lib/command-runner.mjs +44 -9
- package/template/scripts/lib/content-identity.mjs +273 -0
- package/template/scripts/lib/delivery-preflight.mjs +2 -1
- package/template/scripts/lib/digital-human-roles.mjs +12 -5
- package/template/scripts/lib/drift-report.mjs +110 -0
- package/template/scripts/lib/existing-backend-architecture.mjs +4 -1
- package/template/scripts/lib/lifecycle-context-query.mjs +172 -11
- package/template/scripts/lib/lifecycle-controls.mjs +9 -19
- package/template/scripts/lib/lifecycle-presentation.mjs +5 -0
- package/template/scripts/lib/lifecycle-status.mjs +63 -12
- package/template/scripts/lib/lifecycle-transition.mjs +2 -1
- package/template/scripts/lib/maintenance-candidate.mjs +24 -30
- package/template/scripts/lib/maintenance-research.mjs +52 -8
- package/template/scripts/lib/maintenance-storage.mjs +81 -0
- package/template/scripts/lib/plan-spec-entry.mjs +2 -1
- package/template/scripts/lib/project-governance.mjs +2 -1
- package/template/scripts/lib/read-only-intake.mjs +44 -9
- package/template/scripts/lib/review-capabilities.mjs +234 -0
- package/template/scripts/lib/review-package.mjs +100 -0
- package/template/scripts/lib/runtime-store.mjs +650 -0
- package/template/scripts/lib/skill-registry.mjs +4 -4
- package/template/scripts/lib/strategic-handoff.mjs +22 -9
- package/template/scripts/lib/task-package.mjs +47 -16
- package/template/scripts/lifecycle-status +26 -1
- package/template/scripts/maintenance-path +11 -0
- package/template/scripts/prepare-review-package +8 -0
- package/template/scripts/project-ci +13 -3
- package/template/scripts/query-lifecycle-context +8 -1
- package/template/scripts/run-read-only-intake +2 -2
- package/template/scripts/runtime-store +40 -0
- package/template/scripts/verify-approval-record +21 -13
- package/template/scripts/verify-lifecycle-checkpoint +7 -3
- package/template/scripts/verify-project-instance +21 -1
- package/template/skills-lock.json +64 -63
- package/template.snapshot.json +4 -4
- package/vendor/cli-core/cli.mjs +2 -0
- package/vendor/cli-core/command-runner.mjs +44 -9
- package/vendor/cli-core/package.json +1 -1
- package/vendor/cli-core/runtime-store.mjs +650 -0
- package/vendor/cli-core/scaffold.mjs +4 -2
|
@@ -5,11 +5,11 @@ description: 编排 YSS 研发全生命周期;当阶段、产物、门禁或 S
|
|
|
5
5
|
|
|
6
6
|
# YSS Product Lifecycle
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
合同阅读与更新:`scripts/contract view|render|check-views`;见 `.template-spec/process/contract-reading.md`。
|
|
9
9
|
|
|
10
10
|
五类机器资产默认 JSON;读写、迁移及恢复须遵循 `.template-spec/process/structured-assets.md`。
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
文档/进度按 `document_writing` 调用 `i-have-adhd`,遵循 `.template-spec/process/document-writing.md`。
|
|
13
13
|
|
|
14
14
|
## 事实源
|
|
15
15
|
|
|
@@ -24,23 +24,25 @@ description: 编排 YSS 研发全生命周期;当阶段、产物、门禁或 S
|
|
|
24
24
|
| 影响面、裁剪与维护强度 | `.template-spec/process/harness-process-tailoring.md`、`.template-source/process/maintenance-intensity.yaml` |
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
scripts/query-lifecycle-context --
|
|
27
|
+
scripts/query-lifecycle-context --work-unit work-unit.plan-requirements --check-skills
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
`--include`
|
|
30
|
+
`--include` 限合同顶层键。调用前按 [来源与补装](references/matt-yss-adapter.md) 预检,在既有授权内补装并重验。
|
|
31
31
|
|
|
32
|
-
按 `execution_efficiency`
|
|
32
|
+
按 `execution_efficiency` 复用入口、合并查询和未变资料,核验资产与门禁;见项目 `.template-spec/process/script-execution.md`。
|
|
33
33
|
|
|
34
34
|
## 入口与模式
|
|
35
35
|
|
|
36
36
|
1. 严格解析 `yss-project.yaml`,不得按目录、Git remote 或占位符猜仓库身份。
|
|
37
|
-
2.
|
|
38
|
-
3.
|
|
37
|
+
2. 判定影响面及最近可信阶段;完成须有内容、审查、新鲜上游和可读证据,文件存在不代表通过。
|
|
38
|
+
3. 按 `request_triage` 选 `route`、`orchestrate`、`resume`、`audit`;行动请求无需模式关键字,意图不明只读 `route`。模式、门禁及授权边界仍适用。
|
|
39
39
|
4. `project-instance` 按生命周期注册表推进;`template-source` 只走模板维护流程。
|
|
40
40
|
|
|
41
|
-
Plan
|
|
41
|
+
Plan 入口读 `.template-spec/plan/README.md`、`.template-spec/process/plan-migration.md`,核验战略输入与退出条件。关键未决项阻断 Spec;其余记责任人、时点和接收方。仅认 Plan,不解析旧阶段或自动沿用历史批准。
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
必须确认的未决项按 `planning.clarification_policy` 主动调用 `grilling`,见 [澄清](references/plan-requirements.md)。
|
|
44
|
+
|
|
45
|
+
分诊见 [协议](references/request-triage.md) 与 `--include request_triage`;先查证据,再问必要缺口。
|
|
44
46
|
|
|
45
47
|
## 不可越过的边界
|
|
46
48
|
|
|
@@ -52,49 +54,53 @@ Plan 入口读取 `.template-spec/plan/README.md` 和 `.template-spec/process/pl
|
|
|
52
54
|
|
|
53
55
|
不得越过命中的阶段、门禁、实现仓库准备或 Ticket 正式化。实现只接收绑定垂直切片、已批准且持久化、版本当前并通过完整 `ready-for-agent` 计算的合同;父 Ticket、`ready-for-human` 切片、`stale`、`drift`、`new_impacts`、`violation` 或缺失证据均阻断。实现仓库、脚手架、UI 还原、review input 和发布条件从对应合同子树查询,不在入口重复定义。
|
|
54
56
|
|
|
55
|
-
|
|
57
|
+
按 `gate_consolidation` 默认一名独立审查者,按能力缺口、冲突或外部制度增员;相邻检查组合、逐项留证。复审按 `review_input.rereview` 首轮完整、修复定向、当前候选重绑定,未知先调查。
|
|
56
58
|
|
|
57
|
-
|
|
59
|
+
职责及后端终点见 `execution_scopes`,恢复、编译、派发须复验。保留产品设计门禁,后端交付不等于业务完成或发布。
|
|
58
60
|
|
|
59
61
|
### 用户决定
|
|
60
62
|
|
|
61
|
-
按角色表 `user_decision_policy`
|
|
63
|
+
按角色表 `user_decision_policy` 与 `references/user-decisions.md` 展示资产、范围、风险、后续动作,再取得提问者或指定生物人的原始回复。数字人、超时、默认项不得代答。先验 `continuation_ref`;未知先调查,实质变化或缺强制审批时重新决定。缺陷/缺证据阻断,建议记待办;合同、验证、外部授权仍适用。
|
|
62
64
|
|
|
63
65
|
### 外部副作用与 Git
|
|
64
66
|
|
|
65
|
-
|
|
67
|
+
生命周期批准、实现授权、泛泛意向不构成 Git 授权。按 `references/user-decisions.md` 整理明确动作与范围的真实回复,无需重填字段。commit、push、其他外部动作分别核验;来源不可读、撤回、越界则不执行。`git-submodule` 逐仓授权、非 detached HEAD、先子仓后父仓 gitlink。
|
|
66
68
|
|
|
67
69
|
## 有界编排循环
|
|
68
70
|
|
|
69
|
-
1.
|
|
70
|
-
2.
|
|
71
|
-
3.
|
|
72
|
-
4. `to-spec`、`to-tickets`、`implement`
|
|
71
|
+
1. 从真实资产重建状态,查询 mode、stage、work-unit 及必要合同子树。
|
|
72
|
+
2. 核验影响面、上游新鲜度、门禁和阻塞,选择首个未阻塞单元;`not-applicable` 不作豁免。
|
|
73
|
+
3. 主控持有原生正式资产;专项按结构化任务包派发,只调用合同允许的 model-invoked skill。
|
|
74
|
+
4. 兼容入口 `to-spec`、`to-tickets`、`implement` 仅由用户显式调用。主控预检输入、路径、门禁;入口按 `matt_invocation_boundary` 写产物并回交验收,不批准或改变 Ticket 就绪状态。原生资产归主控。
|
|
73
75
|
5. 先逐项验收用户目标、遗漏、错误假设和未决问题,再验收 `Workflow Execution Result`:工作单元、合同、允许写路径、`context_reconciliation`、证据、实际验证、延期 seam、漂移和下一路由必须可核验。实现派发额外绑定当前 Slice Implementation Contract v3;其他阶段不得伪造该合同。
|
|
74
|
-
6.
|
|
76
|
+
6. 按 `blocking_disposition` 自主处理阻塞;缺真实决定或新授权才展示资产后询问。独立工作继续,完成结论不新增暂停。
|
|
75
77
|
|
|
76
|
-
|
|
78
|
+
`project-instance` 批准或流转前按根 `AGENTS.md` 完成术语回写与 `context_reconciliation`;候选术语、错误路径、摘要漂移或冲突阻断。质量标准由 `engineering-baseline` 唯一定义,高风险反证按裁剪合同。
|
|
77
79
|
|
|
78
80
|
## 面向业务角色
|
|
79
81
|
|
|
80
82
|
澄清目标、流程、责任、规则、范围和验收例子。业务总览引用权威资产,展示状态、未决项、责任人和下一步,不复制正文或新增门禁。
|
|
81
83
|
|
|
82
|
-
Plan → Spec
|
|
84
|
+
Plan → Spec 写入前按 `.template-spec/plan/entry-review.md` 持久化审阅包,执行 `node scripts/verify-plan-spec-entry <state.yaml>`;缺项、过期或无真实回复阻断,独立调研继续。
|
|
85
|
+
|
|
86
|
+
`checks.grill_exit=passed` 仅准备就绪;共同理解与当前 Plan 合并真实确认后,入口判定完整退出。
|
|
83
87
|
|
|
84
88
|
## 结果与暂停
|
|
85
89
|
|
|
86
|
-
|
|
90
|
+
每轮返回/暂停按 `user_progress_report` 说明阶段及依据、结果、下一阶段/单元及条件、问题/阻塞、责任方、解除与复验、主控动作、用户决定。未知写“待核验”,负责人缺失写“未登记”;目标不代表批准,已授权修复继续。
|
|
91
|
+
|
|
92
|
+
按 `workflow_execution_result` 与 `references/state-model.md` 记录状态、证据新鲜度、阻塞、动作、路由、Ticket / Git checkpoint。
|
|
87
93
|
|
|
88
|
-
|
|
94
|
+
发送前核对状态、证据新鲜度、阻塞与结构化结果;见 [结果提示](references/orchestration.md#结果与友好提示)。会签保留门禁、角色/运行时、文件、推荐答案、恢复动作。恢复先验证;完成/合并/发布须同一候选通过适用审查和 fresh verification;发布须生物人决定。
|
|
89
95
|
|
|
90
|
-
Plan
|
|
96
|
+
Plan/Spec/Design 追踪见 `.template-spec/process/stage-tracking.md`。
|
|
91
97
|
|
|
92
|
-
|
|
98
|
+
澄清读 [对账](references/plan-requirements.md),外部输入读 [问卷](references/external-input-questionnaire.md)。
|
|
93
99
|
|
|
94
100
|
Spec 起草业务票,Design 校准后正式化;无设计影响直接正式化,研发再细化 Slice。按 `.template-spec/process/business-tickets.md` 检查覆盖和批准;业务票不授予实现资格。
|
|
95
101
|
|
|
96
102
|
## 功能资产整理
|
|
97
103
|
|
|
98
|
-
|
|
104
|
+
资产整理及旧票迁移按 `.template-spec/process/feature-assets.md` 和显式计划保留状态、批准依据、原文,不推进阶段;被引用草稿按正式资产保留。
|
|
99
105
|
|
|
100
|
-
|
|
106
|
+
既有实例模板升级、旧布局迁移和升级恢复用 `yss-harness-upgrade`,遵循 `.template-spec/process/harness-upgrade.md`;不推进产品阶段或重写历史批准。
|
|
@@ -28,7 +28,7 @@ Implementation → Independent Review → Fresh Verification → Release
|
|
|
28
28
|
5. 重新审查后优先恢复原 Ticket;仅在范围或验收目标根本变化时重建。
|
|
29
29
|
6. 原 `not-applicable` 的条件被推翻时,改为 `missing` 或 `draft`。
|
|
30
30
|
|
|
31
|
-
具体 `impact type → artifact/gate → direct/transitive → when` 以 `orchestration-contract.yaml` 为机器可执行事实。条件满足时,`direct` 节点直接标记 `stale`;`transitive` 节点仅在其依赖的 direct 节点发生语义变化时传播。条件不满足时保持原状态,尤其不得把 `not-applicable` 改成 `stale
|
|
31
|
+
具体 `impact type → artifact/gate → direct/transitive → when` 以 `orchestration-contract.yaml` 为机器可执行事实。条件满足时,`direct` 节点直接标记 `stale`;`transitive` 节点仅在其依赖的 direct 节点发生语义变化时传播。条件不满足时保持原状态,尤其不得把 `not-applicable` 改成 `stale`。表中未列出的节点不传播;无法分类的变化先调查行为、结论和依赖,并阻断依赖事项,不猜测或默认全轴复审。
|
|
32
32
|
|
|
33
33
|
每个 `stale` 节点必须记录 `stale_by`、影响类型、证据引用和重新批准条件。重新批准 direct 节点后,逐个重新核验 transitive 节点;只有其全部受影响上游恢复为 `approved/not-applicable` 且本节点重新验证通过,才能移除 `stale`。
|
|
34
34
|
|
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Matt / YSS 工作流适配
|
|
2
2
|
|
|
3
|
+
上游来源是 [mattpocock/skills](https://github.com/mattpocock/skills)。固定提交、原始哈希和实际生效的 YSS 适配哈希以根 `skills-lock.json` 为准;补装使用模板快照中的适配版,不直接覆盖为上游最新版本。
|
|
4
|
+
|
|
5
|
+
项目实例按需分发:注册表中受支持的技能可能尚未安装;改名与别名由 `.template-spec/agents/yss-skill-registry.yaml` 解析;已退役名称按 `.template-spec/agents/skill-migrations.md` 重新路由。这三种情况不能混用,也不需要把整个上游仓库装进实例。
|
|
6
|
+
|
|
7
|
+
## 工作单元技能预检与补装
|
|
8
|
+
|
|
9
|
+
准备调用原生工作单元的专项技能前,运行:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
scripts/query-lifecycle-context --work-unit work-unit.plan-requirements --check-skills --agent-runtime codex
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
运行时只在实例登记了唯一平台时可以省略;条件依赖用重复的 `--when <条件>` 传入。查询只检查当前工作单元和已触发依赖,不加载兼容入口的纯引用或整个角色技能包。普通查询仍不证明技能已安装。
|
|
16
|
+
|
|
17
|
+
`skill_readiness` 为 `ready` 时退出 0;`missing` / `blocked` 时退出 2;非法输入或查询失败退出 1。技能可用不证明阶段批准、切片资格或任务完成。
|
|
18
|
+
|
|
19
|
+
收到 `missing` 后,由 Agent 执行结果中的 `remediation.plan_command`,核对新增技能、路径和依赖。已有任务授权覆盖该范围且计划无冲突时执行 `apply_command`,利用现有事务刷新锁文件并校验实例;随后重新执行同一预检,通过后才调用技能。安装 user-invoked 技能不授予调用资格。
|
|
20
|
+
|
|
21
|
+
`blocked` 中的受管文件丢失、哈希/投影漂移、同名路径冲突、运行时未配置、退役或外部技能缺失必须分别处理;CLI 快照不匹配时补装计划也会拒绝。不得自动覆盖、强制同步或扩展迁移范围。旧实例只读检查现有文件,缺失时按本家族 CLI 规划同步或迁移,不自动转换分发模式。
|
|
22
|
+
|
|
3
23
|
Matt skills 决定如何工作;YSS 生命周期决定是否允许推进;YSS 专项 skills 决定如何符合工程规范。
|
|
4
24
|
|
|
5
25
|
生命周期默认使用 `work_unit_routes.*.native`;下表中的 Matt flow 是 `work_unit_routes.*.compatibility` 显式兼容输入。兼容入口的正式资产由用户创建并回交生命周期验收,原生工作单元的正式资产由生命周期编排器创建。
|
|
@@ -15,7 +35,7 @@ Matt skills 决定如何工作;YSS 生命周期决定是否允许推进;YSS
|
|
|
15
35
|
| 情形 | Matt flow | 生命周期验收 |
|
|
16
36
|
|---|---|---|
|
|
17
37
|
| 首次启用或配置缺失 | `setup-matt-pocock-skills`(用户显式) | `needs-human`,说明缺失项;用户完成 setup 后重新计算 readiness |
|
|
18
|
-
| 需求澄清 | 原生 `work-unit.plan-requirements
|
|
38
|
+
| 需求澄清 | 原生 `work-unit.plan-requirements`,按 `planning.clarification_policy` 主动调用 `grilling` 处理必须确认的未决决定,术语使用 `domain-modeling` | 逐项验收未决项和证据回流;完整退出联合当前 Plan 用户决定 |
|
|
19
39
|
| 信息在其他人手中 | 生命周期外部输入问卷 | 使用 `external-input-required` 暂停;答案回流后记录 response、重新分类影响面,再进入 `work-unit.plan-requirements` 或 `to-spec` |
|
|
20
40
|
| 大型模糊工作 | `wayfinder`(可选) | 仅在跨会话 / 跨 Agent 或 frontier 不清晰时启用;map 真正完成后 `handoff → to-spec` |
|
|
21
41
|
| 技术或战略事实 | `yss-research`(`research` 为 deprecated alias) | `technical-evidence` 核验一手技术资料;`strategy-evidence` 为领域战略和阶段决策提供可审计证据;研究包不得自行修改或批准下游资产 |
|
|
@@ -33,7 +53,7 @@ Matt skills 决定如何工作;YSS 生命周期决定是否允许推进;YSS
|
|
|
33
53
|
|
|
34
54
|
尽量不修改 Matt skill 以复制 YSS 规则。只有它违反模板硬门禁时才做最小兼容修改。
|
|
35
55
|
|
|
36
|
-
实现合同编译器 只能返回 `draft`、`blocked` 或 `ready-for-lifecycle-review`,不得自行批准合同、设置 `ready-for-agent` 或宣布完成。`new_impacts`、`drift`、`violation
|
|
56
|
+
实现合同编译器 只能返回 `draft`、`blocked` 或 `ready-for-lifecycle-review`,不得自行批准合同、设置 `ready-for-agent` 或宣布完成。`new_impacts`、`drift`、`violation`、越界路径或缺失实际验证阻断依赖动作,由本编排器先调查实际变化及依赖,再修复、补证据或回到受影响生命周期工作单元;不因此默认全轴复审或向用户索取新决定。
|
|
37
57
|
|
|
38
58
|
## Workflow Execution Result
|
|
39
59
|
|
|
@@ -56,7 +76,7 @@ next_route: <next-work-unit-or-null>
|
|
|
56
76
|
blocking_signals: []
|
|
57
77
|
```
|
|
58
78
|
|
|
59
|
-
存在 `drift`、`new_impacts`、`violation`、`missing_evidence` 或 `stale_candidates`,以及证据缺失时,不得返回 `completed
|
|
79
|
+
存在 `drift`、`new_impacts`、`violation`、`missing_evidence` 或 `stale_candidates`,以及证据缺失时,不得返回 `completed`;由编排器调查变化、受影响结论 / 行为及依赖,定向修复 / 重路由、复验并重绑定当前候选。专业等待自主派发并等待,缺真实决定或新授权才展示资产后询问,无依赖的已授权工作继续。
|
|
60
80
|
|
|
61
81
|
实现合同编译器 状态映射为:`draft → completed`、`blocked → blocked`、`ready-for-lifecycle-review → needs-human`。这里的 `completed` 只表示 Matt 工作单元已产出可验收结果,不表示生命周期完成或可发布。
|
|
62
82
|
|
|
@@ -72,13 +92,15 @@ blocking_signals: []
|
|
|
72
92
|
|
|
73
93
|
`grill_exit` 不是“已经聊过”的自然语言声明。它必须同时证明 frontier 为空、事实已解决或分别路由到 `yss-research` / prototype / external input、用户决策已确认、双方共同理解已确认,并且没有未回流的 runnable blocker。
|
|
74
94
|
|
|
95
|
+
按 `planning.clarification_policy` 主动开始必要澄清,调查、实验和专业审查分别取得证据,分轮仅询问前提已明确的必要决定。审阅包中的 `checks.grill_exit=passed` 表示澄清准备就绪;共同理解总述与完整当前 Plan 审阅包合并展示,由同一真实回复确认。入口联合准备检查与当前 `gate.plan-approved` 决定后才判断完整退出;回复独立保存,不回写审阅包或依据,不增加批准阶段。
|
|
96
|
+
|
|
75
97
|
## Review 候选与 Git 授权
|
|
76
98
|
|
|
77
|
-
YSS 调用 `code-review` 前必须形成 review input,至少包含 `review_mode`、`review_base_ref`、`implementation_candidate_ref`、`candidate_snapshot_ref`、`candidate_digest`、`spec_ref`、`ticket_ref`、`slice_contract_ref`、`build_architecture_checklist_ref` 和 `yss_execution_result_refs`,并满足 `orchestration-contract.yaml.review_input.manifest_required_by_mode`。Standards 还必须编译 `review_standards_route`:合同 `required_skills`、影响面专项检查输入、报告模板与 `finding_disposition`;机器检查按 `run_if_present` 执行。质量标准只从 `engineering-baseline` 引用,禁止在 review input 或切片中另起一份。命中高风险影响时,review input 还要引用 Doubt-Driven 主张 / 反证记录;缺少反证或残余风险未处理时返回 `blocked`。`committed` 审查 merge-base 到不可变 `HEAD`;`worktree` 一次捕获 merge-base 到 working tree 的 committed、staged、unstaged 和 untracked 内容,使用 `yss-worktree-candidate-v1` 规定的 raw path、uint64 big-endian 长度、tracked/untracked record 和不支持条目阻断规则计算 SHA-256,让所有参与审查者(人数按 `orchestration-contract.yaml.gate_consolidation
|
|
99
|
+
YSS 调用 `code-review` 前必须形成 review input,至少包含 `review_mode`、`review_base_ref`、`implementation_candidate_ref`、`candidate_snapshot_ref`、`candidate_digest`、`spec_ref`、`ticket_ref`、`slice_contract_ref`、`build_architecture_checklist_ref` 和 `yss_execution_result_refs`,并满足 `orchestration-contract.yaml.review_input.manifest_required_by_mode`。Standards 还必须编译 `review_standards_route`:合同 `required_skills`、影响面专项检查输入、报告模板与 `finding_disposition`;机器检查按 `run_if_present` 执行。质量标准只从 `engineering-baseline` 引用,禁止在 review input 或切片中另起一份。命中高风险影响时,review input 还要引用 Doubt-Driven 主张 / 反证记录;缺少反证或残余风险未处理时返回 `blocked`。`committed` 审查 merge-base 到不可变 `HEAD`;`worktree` 一次捕获 merge-base 到 working tree 的 committed、staged、unstaged 和 untracked 内容,使用 `yss-worktree-candidate-v1` 规定的 raw path、uint64 big-endian 长度、tracked/untracked record 和不支持条目阻断规则计算 SHA-256,让所有参与审查者(人数按 `orchestration-contract.yaml.gate_consolidation`)消费同一不可变快照,并在返回和完成 checkpoint 复核摘要未变化。缺少输入、候选为空、专项覆盖缺失、未关闭 mandatory `violation`、适用行空白或摘要变化时返回 `blocked`,不能漏掉首轮适用项、另起通用审查 skill、由审查者改实现,或合并未重绑定的不同候选结论。`violation` 类 finding 交实现者在原合同路径修复,按差异、受影响结论 / 行为及依赖定向复审并重绑定;摘要变化、UI 或 `new_impacts` 不触发全轴默认或兜底,未知先调查。`drift` / `new_impacts` 使合同 `stale` 并回 实现合同编译器更新受影响合同;未受影响项须有可读比较依据才能复用。
|
|
78
100
|
|
|
79
|
-
Matt `implement` 的通用提交指令不构成 YSS Git
|
|
101
|
+
Matt `implement` 的通用提交指令不构成 YSS Git 授权。执行 commit 必须同时具备 `commit_authorized=true`、非空 `commit_scope` 和 `commit_authorization_ref`;执行 push 必须同时具备 `push_authorized=true`、非空 `push_scope` 和 `push_authorization_ref`。commit 与 push 分别检查,commit 授权不包含 push。`git-submodule` 还必须按仓授权、禁止 detached HEAD 提交,并先推子仓再更新父仓 gitlink。
|
|
80
102
|
|
|
81
|
-
|
|
103
|
+
按既有 [用户决定协议](user-decisions.md),编排器可以把具体 Git 动作、仓库和改动范围明确的真实用户回复整理成上述三字段,并保留可读原始来源,不要求用户再填写内部字段。结合可读原始上下文,指向明确范围的“做完提交”可整理为 commit 授权;泛泛的“继续”、实现授权、当前分支或测试通过不能补足动作和范围。字段缺失、来源不可读、授权撤回或动作超出范围时不执行对应 Git 动作,只记录 checkpoint 判断;不得补造同意或扩大原回复范围。
|
|
82
104
|
|
|
83
105
|
## Setup readiness
|
|
84
106
|
|
|
@@ -11,6 +11,45 @@ document_writing:
|
|
|
11
11
|
artifact_ownership: unchanged
|
|
12
12
|
gate_and_status_semantics: unchanged
|
|
13
13
|
|
|
14
|
+
user_progress_report:
|
|
15
|
+
owner: yss-product-lifecycle
|
|
16
|
+
reference: references/orchestration.md#结果与友好提示
|
|
17
|
+
writing_reference: .template-spec/process/document-writing.md#4-进度与会签提示
|
|
18
|
+
emit_on: [ controller-return, status-request, resume, stage-boundary, blocked, human-pause, handoff, completion-assessment ]
|
|
19
|
+
ordinary_progress: meaningful-changes-only
|
|
20
|
+
audience: current-feature-or-authorized-task
|
|
21
|
+
sources: [ current-checkpoint, stage-tracking, readable-assets, applicable-verification, lifecycle-registry, orchestration-contract ]
|
|
22
|
+
required_information: [ current-stage-and-work-unit, state-basis, this-turn-outcome, next-stage-and-work-unit, entry-conditions, issues-and-blockers, registered-owner, recovery-action-and-recheck, agent-next-action, user-action-if-required, evidence-freshness ]
|
|
23
|
+
structured_result_fields: [ mode, repository_mode, stage, work_unit, impacts, artifacts, gates, tickets, slices, contracts, evidence_freshness, readiness, blockers, actions_taken, next_work_unit, pause_reason, ticket_sync, git_checkpoint ]
|
|
24
|
+
presentation_is: derived-explanation-never-approval-or-execution-authorization
|
|
25
|
+
next_stage:
|
|
26
|
+
source: current-registered-work-unit-stage-association-and-validated-route
|
|
27
|
+
stage-order-as-route: forbidden
|
|
28
|
+
same_stage: explain-remaining-work-in-current-stage
|
|
29
|
+
unresolved_or_missing_route: not-verified-with-missing-input
|
|
30
|
+
terminal: explain-verified-task-or-execution-scope-endpoint
|
|
31
|
+
planned_target_is_approved_transition: false
|
|
32
|
+
include: [ expected-output, applicable-entry-conditions, unmet-preconditions ]
|
|
33
|
+
issues:
|
|
34
|
+
classification: [ blocker, nonblocking-open-question, suggestion ]
|
|
35
|
+
blocker_fields: [ problem, affected-action, source-ref, registered-owner, resolution-action, resolution-evidence, resume-verification ]
|
|
36
|
+
all_material_blockers_visible: true
|
|
37
|
+
unknown_owner: not-registered-never-auto-assigned
|
|
38
|
+
nonblocking_items: retain-owner-resolution-time-and-receiver-or-backlog-ref
|
|
39
|
+
missing_or_stale_evidence: not-verified-with-recovery-action
|
|
40
|
+
no_blockers_claim: current-applicable-verification-required
|
|
41
|
+
readonly_no_findings: no-detected-blockers-with-unchecked-scope
|
|
42
|
+
recovery:
|
|
43
|
+
authorized_agent_actions: continue-and-report-result
|
|
44
|
+
dependent_actions: wait-for-real-input-or-current-valid-approval
|
|
45
|
+
independent_authorized_work: continue
|
|
46
|
+
human_action: explain-why-needed-source-scope-options-and-resume-condition
|
|
47
|
+
commands: actual-applicable-validator-and-arguments-never-invented
|
|
48
|
+
before_send: [ current-state-matches-evidence, next-route-and-entry-conditions-explained, blockers-have-actionable-recovery, owner-is-registered-or-explicitly-missing, freshness-and-unchecked-scope-visible, user-text-matches-structured-result, authorized-work-not-shifted-to-user ]
|
|
49
|
+
template_source: maintenance-step-and-verification-target-never-product-stage
|
|
50
|
+
invalid_identity: explain-manifest-error-and-migration-check-without-guessing-stage
|
|
51
|
+
forbidden: [ skill-name-only-return, raw-json-only-user-answer, bare-blocked-without-recovery, stage-complete-from-file-existence, repeated-approval-without-new-boundary ]
|
|
52
|
+
|
|
14
53
|
backend_architecture_identity_policy:
|
|
15
54
|
source: .template-spec/agents/yss-skill-registry.yaml
|
|
16
55
|
generated_profiles: architecture_profiles
|
|
@@ -50,6 +89,7 @@ review_verification:
|
|
|
50
89
|
low_medium_combined_independent_executor: true
|
|
51
90
|
implementer_must_be_separate: true
|
|
52
91
|
split_when: [ new_module, high_risk, responsibility_conflict, dual_control_required ]
|
|
92
|
+
capability_policy_ref: .template-spec/agents/digital-human-roles.yaml
|
|
53
93
|
|
|
54
94
|
checkpoint_policy:
|
|
55
95
|
strategy: consolidated
|
|
@@ -124,6 +164,14 @@ request_triage:
|
|
|
124
164
|
structural_checks_prove_model_accuracy: false
|
|
125
165
|
|
|
126
166
|
execution_efficiency:
|
|
167
|
+
script_execution:
|
|
168
|
+
standard_operations: reuse-installed-public-entrypoints
|
|
169
|
+
entrypoint_invocation: declared-interpreter-or-executable-shebang
|
|
170
|
+
missing_capability: inspect-help-and-profile-before-adding-adapter
|
|
171
|
+
temporary_analysis: bounded-scope-outside-repository-no-new-authority
|
|
172
|
+
diagnostic_generation: synthetic-fixtures-no-real-approval-bodies
|
|
173
|
+
dependency_explanation: derive-from-current-source-and-distribution-closure
|
|
174
|
+
guidance_ref: .template-spec/process/script-execution.md
|
|
127
175
|
context_query:
|
|
128
176
|
strategy: combine-mode-stage-work-unit-and-required-includes
|
|
129
177
|
read_scope: current-work-unit-and-triggered-impacts
|
|
@@ -256,6 +304,19 @@ task_package:
|
|
|
256
304
|
registry_ref: .template-spec/agents/digital-human-roles.yaml
|
|
257
305
|
defaults: taskPackageDefaults(role_id)
|
|
258
306
|
copy_required: [ core_skills, forbidden_skills ]
|
|
307
|
+
review_skills: compiled-from-review-capabilities-for-readonly-review
|
|
308
|
+
review_execution_states: [ Reviewer, Verifier ]
|
|
309
|
+
review_skills_do_not_override: [ core_skills, forbidden_skills, allowed_write_paths ]
|
|
310
|
+
review_context:
|
|
311
|
+
source: current-consumer-checkpoint-and-review-task
|
|
312
|
+
schema_ref: .template-spec/process/schemas/digital-human-task-package.schema.json
|
|
313
|
+
capability_policy_ref: .template-spec/agents/digital-human-roles.yaml
|
|
314
|
+
applicable_to: formal-v1-professional-review
|
|
315
|
+
required: [ check_ids, capability_ids, candidate_ref, candidate_digest, policy_ref, policy_digest, reviewer_principal_ref, drafter_principal_ref, approval_scope, basis ]
|
|
316
|
+
candidate_and_policy: current-ref-and-byte-digest
|
|
317
|
+
reviewer_must_differ_from_drafter: true
|
|
318
|
+
compile_skills_from: review_capabilities
|
|
319
|
+
readonly_intake_v2: unchanged
|
|
259
320
|
contract:
|
|
260
321
|
kinds: [ lifecycle-work-unit, slice-implementation, template-maintenance ]
|
|
261
322
|
required: [ kind, contract_id, contract_version, status, contract_ref ]
|
|
@@ -312,6 +373,23 @@ skill_source_contract:
|
|
|
312
373
|
adaptation_ref_required_when_effective_diff: true
|
|
313
374
|
retired_shared_skills: [ yss-antd-design, yss-antdv-next-design, ask-matt, batch-grill-me, grill-me, dispatching-parallel-agents, loop-me, migrate-to-shoehorn, product-design-prototype, prototype-page-acceptance, scaffold-exercises, setup-pre-commit, setup-ts-deep-modules, teach, writing-beats, writing-fragments, writing-shape, yss-components, yss-dictionary, yss-jdbc, yss-log, yss-microapp-commit, yss-mvc-scaffold-generator, yss-mvc-design, yss-mvc-data-analysis-project-initializer, yss-backend-scaffold-parent, yss-page-module-development, yss-taskflow, yss-backend-scaffold-application, yss-backend-scaffold-domain, yss-backend-scaffold-infrastructure, yss-backend-scaffold-web, yss-backend-scaffold-adapter, yss-application-layer-reference, yss-domain-layer-reference, yss-infrastructure-layer-reference, yss-web-layer-reference ]
|
|
314
375
|
|
|
376
|
+
skill_preflight:
|
|
377
|
+
command: scripts/query-lifecycle-context
|
|
378
|
+
enable_flag: --check-skills
|
|
379
|
+
scope: selected-work-unit-and-active-context-dependencies
|
|
380
|
+
readonly: true
|
|
381
|
+
statuses: [ ready, missing, blocked ]
|
|
382
|
+
exit_codes: { ready: 0, missing_or_blocked: 2, invalid_input_or_execution_error: 1 }
|
|
383
|
+
runtime_selection: explicit-or-single-registered-runtime
|
|
384
|
+
conditional_dependencies: explicit-when-triggers
|
|
385
|
+
excludes: [ compatibility-references, complete-role-skill-lists, other-work-units ]
|
|
386
|
+
installation: existing-family-cli-plan-then-apply
|
|
387
|
+
apply_requires: [ existing-task-authorization-covers-plan, no-conflicts ]
|
|
388
|
+
after_apply: rerun-current-work-unit-preflight
|
|
389
|
+
never_grants: [ skill-invocation-permission, stage-approval, ready-for-agent, completion ]
|
|
390
|
+
block_current_invocation_on: [ managed-file-missing, hash-drift, projection-drift, path-conflict, runtime-unavailable, external-skill-unavailable, retired-skill, cli-snapshot-mismatch ]
|
|
391
|
+
automatic_force_or_migration: forbidden
|
|
392
|
+
|
|
315
393
|
# 生命周期默认走原生工作单元;Matt user-invoked skill 仅保留为兼容入口。
|
|
316
394
|
lifecycle_native_entries:
|
|
317
395
|
default_entry: yss-product-lifecycle
|
|
@@ -555,15 +633,17 @@ work_unit_routes:
|
|
|
555
633
|
product-slice: slice-contract
|
|
556
634
|
template-maintenance: L1-L2-L3
|
|
557
635
|
reviewer_write_implementation: forbidden
|
|
558
|
-
|
|
636
|
+
repair_then_targeted_rereview:
|
|
559
637
|
kinds: [ violation, machine_check_failure, blank_applicable_row, missing_evidence ]
|
|
560
638
|
actor: implementer
|
|
561
639
|
on_original_contract: true
|
|
562
|
-
then:
|
|
640
|
+
then: compare_diff_map_affected_conclusions_behavior_dependencies_rereview_and_rebind
|
|
641
|
+
reuse_unaffected: readable-unchanged-conditions-basis-and-dependencies-evidence
|
|
563
642
|
stale_and_reroute:
|
|
564
643
|
kinds: [ drift, new_impacts, required_skills_mismatch ]
|
|
565
644
|
mark_contract: stale
|
|
566
645
|
continue_coding_on_old_contract: forbidden
|
|
646
|
+
impact_analysis: investigate-before-selecting-rereview-scope
|
|
567
647
|
next: compiler-or-earlier-lifecycle
|
|
568
648
|
exemption_policy:
|
|
569
649
|
not_applicable: impact_not_triggered_only
|
|
@@ -715,6 +795,38 @@ planning:
|
|
|
715
795
|
implementation_authorized: false
|
|
716
796
|
frontier_scope: current-plan-decisions
|
|
717
797
|
deferred_details: excluded-from-frontier-only-after-user-confirms-deferral
|
|
798
|
+
clarification_policy:
|
|
799
|
+
trigger: required-plan-user-decision-unresolved
|
|
800
|
+
skill: grilling
|
|
801
|
+
invocation_mode: model-invoked
|
|
802
|
+
explicit_user_invocation_required: false
|
|
803
|
+
inputs: [ current_scope, discovered_facts, confirmed_decisions, open_items, decision_dependencies ]
|
|
804
|
+
dispositions:
|
|
805
|
+
required_user_decision: grilling-with-real-user-response
|
|
806
|
+
discoverable_fact: investigate-or-yss-research
|
|
807
|
+
runnable_blocker: prototype-or-actual-verification-with-evidence
|
|
808
|
+
professional_wait: autonomously-dispatch-or-inspect-existing-task-then-wait
|
|
809
|
+
verification_failure: repair-supply-evidence-or-reroute
|
|
810
|
+
noncritical_detail: existing-deferral-policy-with-user-confirmation
|
|
811
|
+
rounds:
|
|
812
|
+
frontier: decisions-with-settled-prerequisites
|
|
813
|
+
questions: all-independent-actionable-frontier-questions-with-recommendations
|
|
814
|
+
advance: after-real-user-response
|
|
815
|
+
unsettled_facts: wait-only-for-dependent-questions
|
|
816
|
+
reuse: unchanged-confirmed-decisions
|
|
817
|
+
correction: reopen-only-affected-decisions-and-dependencies
|
|
818
|
+
independent_authorized_work: continue
|
|
819
|
+
convergence:
|
|
820
|
+
summary: [ user_problem, goals, mvp, non_goals, key_rules, acceptance_examples, open_item_resolutions, remaining_uncertainty ]
|
|
821
|
+
required_open_items: resolved-with-current-evidence
|
|
822
|
+
facts_and_verification: readable-evidence-required
|
|
823
|
+
preparation_check: grill_exit
|
|
824
|
+
preparation_passed_means: clarification-materials-and-prerequisites-ready
|
|
825
|
+
final_confirmation_boundary: gate.plan-approved
|
|
826
|
+
final_confirmation: shared-understanding-and-current-plan-in-one-real-response
|
|
827
|
+
final_confirmation_proof: plan_user_decision_ref-or-valid-plan_continuation_ref
|
|
828
|
+
confirmation_writeback: external-proof-without-review-or-basis-rewrite
|
|
829
|
+
completion: passed-preparation-and-valid-current-user-decision
|
|
718
830
|
|
|
719
831
|
grill_exit:
|
|
720
832
|
required: [ frontier_empty, facts_resolved_or_routed, decisions_confirmed, shared_understanding_confirmed, no_unresolved_runnable_blocker ]
|
|
@@ -723,6 +835,9 @@ grill_exit:
|
|
|
723
835
|
runnable_question: handoff-prototype-handoff
|
|
724
836
|
external_decision: external-input-required
|
|
725
837
|
user_confirmation_required: true
|
|
838
|
+
preparation_check: grill_exit
|
|
839
|
+
final_confirmation_boundary: gate.plan-approved
|
|
840
|
+
completion: passed-preparation-and-valid-current-user-decision
|
|
726
841
|
output: plan-evidence
|
|
727
842
|
|
|
728
843
|
ticket_role_transition:
|
|
@@ -750,7 +865,15 @@ review_input:
|
|
|
750
865
|
completed_requires_no_blank_applicable_rows: true
|
|
751
866
|
reviewer_write_implementation: forbidden
|
|
752
867
|
repair_invalidates_candidate: true
|
|
753
|
-
repair_action:
|
|
868
|
+
repair_action: recapture_candidate_and_rereview_affected_conclusions_behavior_dependencies
|
|
869
|
+
rereview:
|
|
870
|
+
first_review: all-applicable-axes-and-specialist-checks
|
|
871
|
+
sequence: [ compare-old-and-current-candidate, map-affected-conclusions-behavior-and-dependencies, targeted-rereview-and-verification, rebind-current-candidate-and-basis ]
|
|
872
|
+
reuse_requires: [ readable-comparison-evidence, unchanged-check-conditions, unchanged-basis, unchanged-dependencies, current-candidate-binding ]
|
|
873
|
+
unknown_impact: investigate-and-block-dependent-conclusions
|
|
874
|
+
full_axis_default_or_fallback: forbidden
|
|
875
|
+
digest_ui_new_impacts_alone: insufficient-for-full-axis-rereview
|
|
876
|
+
history: preserve-old-reports-and-bind-new-consumption-evidence
|
|
754
877
|
modes: [ committed, worktree ]
|
|
755
878
|
committed:
|
|
756
879
|
candidate_ref: HEAD
|
|
@@ -1115,8 +1238,10 @@ frontend_implementation_verification:
|
|
|
1115
1238
|
on_new_impact: [ new_impacts, drift, reroute ]
|
|
1116
1239
|
|
|
1117
1240
|
unknown_impact:
|
|
1118
|
-
action:
|
|
1241
|
+
action: investigate-and-block-dependent-transition
|
|
1119
1242
|
reason_code: impact-classification-required
|
|
1243
|
+
user_question: only-if-investigation-identifies-missing-real-decision-or-authorization
|
|
1244
|
+
full_axis_default_or_fallback: forbidden
|
|
1120
1245
|
|
|
1121
1246
|
# 每个 target 必须声明 kind、传播层级和适用条件。条件不满足时保持原状态,尤其不得把 not-applicable 改成 stale。
|
|
1122
1247
|
impact_propagation:
|
|
@@ -1248,6 +1373,7 @@ user_decision_evidence:
|
|
|
1248
1373
|
gate_consolidation:
|
|
1249
1374
|
source: .template-spec/process/lifecycle-registry.yaml
|
|
1250
1375
|
check_policy: .template-spec/agents/digital-human-roles.yaml
|
|
1376
|
+
capability_source: .template-spec/agents/digital-human-roles.yaml#review_capabilities
|
|
1251
1377
|
checks: automatic_or_independent_review_without_separate_user_decision
|
|
1252
1378
|
check_failure: blocks_aggregate_gate
|
|
1253
1379
|
plan_decision_boundary: gate.plan-approved
|
|
@@ -1257,6 +1383,9 @@ gate_consolidation:
|
|
|
1257
1383
|
reuse: unchanged_approval_or_verified_approved_scope_continuation
|
|
1258
1384
|
default_review: one_owner_one_independent_reviewer
|
|
1259
1385
|
adjacent_reviews: one_bundle_with_explicit_per_check_outcomes
|
|
1386
|
+
new_approval_and_review_bundle_schema: 2
|
|
1387
|
+
current_validation: scripts/verify-approval-record --require-approved --checkpoint <current checkpoint>
|
|
1388
|
+
expected_context: consumer-checkpoint-and-review-task-never-self-filled-from-record
|
|
1260
1389
|
extra_reviewers: uncovered_expertise_conflict_or_external_requirement
|
|
1261
1390
|
suggestions: recorded_backlog_without_blocking
|
|
1262
1391
|
continuation_protocol: references/user-decisions.md
|
|
@@ -1264,6 +1393,16 @@ gate_consolidation:
|
|
|
1264
1393
|
historical_gate_records: read_only_no_automatic_approval_migration
|
|
1265
1394
|
verifier: scripts/verify-lifecycle-checkpoint
|
|
1266
1395
|
|
|
1396
|
+
blocking_disposition:
|
|
1397
|
+
professional_wait: autonomously-dispatch-or-inspect-existing-task-then-wait
|
|
1398
|
+
verification_failure: repair-supply-evidence-or-reroute
|
|
1399
|
+
unknown_impact: investigate-before-review-scope-or-decision
|
|
1400
|
+
real_decision_or_new_authorization_missing: present-reviewable-assets-then-request-designated-human-response
|
|
1401
|
+
unresolved_state_conflict: investigate-and-block-dependent-actions
|
|
1402
|
+
independent_authorized_work: continue
|
|
1403
|
+
completion_conclusion_alone: no-new-pause
|
|
1404
|
+
question_count: minimum-actionable-independent-questions-may-be-batched
|
|
1405
|
+
|
|
1267
1406
|
# 项目 opt-in 只选择此权威策略,不能传入自定义工作单元白名单。
|
|
1268
1407
|
execution_scopes:
|
|
1269
1408
|
plan-to-backend:
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
5. 执行最小生命周期工作单元:主控先按 `.template-spec/process/schemas/digital-human-task-package.schema.json` 编译并校验任务包,再只实际调用允许的 model-invoked skill;原生工作单元可直接持有正式资产,Matt 兼容 user-invoked skill 仅作为 workflow reference,仍由用户显式启动。将结果归一化为 `Workflow Execution Result`,验收输出并回写状态与证据。任务包的 `contract.kind` 按工作单元选择;只有实现子任务使用 `slice-implementation` 并消费 Slice Implementation Contract,其他阶段不伪造该合同。
|
|
10
10
|
6. 若仍在授权和自动推进边界内,回到第 3 步;否则暂停。
|
|
11
11
|
|
|
12
|
+
第 5 步调用专项技能前,执行 `scripts/query-lifecycle-context --work-unit <当前工作单元> --check-skills`,多运行时显式指定 `--agent-runtime`,条件依赖传入 `--when`。按 `skill_preflight` 和 [来源与补装协议](matt-yss-adapter.md) 处理结果:缺失时核对现有 CLI 计划,在既有授权内安装并重新预检;漂移、冲突、缺运行时和版本不匹配暂停当前调用。纯查询、安装或预检通过均不能代替调用资格、批准或完成证据。
|
|
13
|
+
|
|
12
14
|
不要仅输出下一个提示词后结束 `orchestrate`/`resume`。不要因进入业务代码阶段而退出主控;应把实现交给专项 skill,并在返回后继续核验。
|
|
13
15
|
|
|
14
16
|
连续阶段自动推进时累积 Ticket 同步和 Git 判断证据,在阶段退出、人工暂停、handoff、进入实现、合并或发布边界集中 checkpoint。发生阻塞、责任人变化或资产需要单独批准时立即落 checkpoint,不因合并记录而丢失阶段因果关系。
|
|
@@ -21,6 +23,28 @@
|
|
|
21
23
|
|
|
22
24
|
上游变化按既有依赖关系使受影响资产过期,保留未受影响工作和历史记录;恢复、派发和交付边界仍执行适用 Context、决定/延续、门禁、仓库和允许写范围的校验。核验后输入变化即重验。有效授权不重复询问;未知或实质变化回交原责任方。历史实例缺 stage_tracking 时按已登记兼容和显式迁移入口处理,状态查询不自动补写。
|
|
23
25
|
|
|
26
|
+
## 结果与友好提示
|
|
27
|
+
|
|
28
|
+
按 `orchestration-contract.yaml.user_progress_report`,每轮主控返回、状态询问、恢复、阶段切换、阻塞和暂停都提供当前任务的中文说明。先回答当前在哪一步、这轮取得什么结果,再说明下一阶段或单元、进入条件及未满足项。阶段和名称读取注册表,状态来自当前 checkpoint、资产和适用验证;未核验写“待核验”,未登记负责人写“未登记”。普通过程更新只报有意义的变化,不重复整套状态。
|
|
29
|
+
|
|
30
|
+
下一工作单元可能仍在当前阶段,要说明先完成哪项工作,再流转到哪里。目标阶段从注册表的工作单元归属和经过验证的路由取得;缺少路由或归属时指出缺口,不按阶段顺序猜测,不把计划目标写成“已进入”。完成当前任务或命中执行范围终点时说明终点与验证依据;没有下一单元不自动代表完成。`template-source` 展示模板维护步骤、验证目标和余项,不套用产品阶段;身份非法时解释清单问题及迁移检查动作。
|
|
31
|
+
|
|
32
|
+
区分阻塞、非阻断未决项和建议。每项实质阻塞说明具体问题、阻断的动作、来源、已登记责任方、处理动作、解除证据和恢复校验。可以优先解释最关键的问题,但其他实质阻塞也要可见。非阻断项沿用已有责任人、解决时点、接收方或待办引用;缺口如实说明,不把建议变成门禁。只读查询无发现时写“未发现已登记阻塞,完整就绪仍待核验”,不得把空数组、文件存在、历史通过或退出 0 写成“无阻塞 / 可进入下一阶段”。
|
|
33
|
+
|
|
34
|
+
主控先完成已授权且能够处理的补充、修复和验证,再报告结果;提示本身不是暂停理由。确需用户决定或外部输入时,解释需要什么、来自哪个合同或门禁、影响范围、推荐选项及取舍和收到回复后的恢复动作。等待只阻断依赖工作,其他已授权工作继续。命令从当前适用合同和已有验证器取得,未执行标为待执行;未知原因写当前失败现象与下一项诊断,不编造原因或修复结果。
|
|
35
|
+
|
|
36
|
+
发送前逐项核对:当前阶段有依据;本轮结果可读取;下一目标和进入条件一致;阻塞有处理与复验方法;责任方已登记或明确缺失;过期、未检查和未完成事项可见;中文提示、结构化结果、Ticket 和 checkpoint 没有矛盾;未把 Agent 可执行的操作转交用户。结构化结果保留 `user_progress_report.structured_result_fields`,此说明只消费既有状态,不要求另一套状态文件或新增批准。
|
|
37
|
+
|
|
38
|
+
下面是虚构的表达示例,不作为真实项目状态或批准:
|
|
39
|
+
|
|
40
|
+
> 当前仍在 Plan,需求范围已补齐,成功标准的统计口径尚未确认。下一阶段是 Spec;进入前需要确认统计口径并通过当前规划审阅包的适用检查。此项阻断 Plan → Spec,负责人未登记,需要先明确该决定的负责人。收到其真实回复后,主控更新原材料并运行规划进入 Spec 的校验;已授权的独立调研继续进行。
|
|
41
|
+
|
|
42
|
+
## 运行记录与留存
|
|
43
|
+
|
|
44
|
+
按 `.template-spec/process/runtime-storage.md` 保存普通执行事件和日志。`scripts/runtime-store inspect` 用于定位运行、保护原因和过期日志,`export` 形成可独立核验的文件包。正式 checkpoint、合同、批准、用户决定和恢复事务仍以原文件为权威;数据库索引或历史通过记录不能推进阶段、改变 Ticket 状态或授予执行资格。
|
|
45
|
+
|
|
46
|
+
中断恢复先核对原运行身份、命令结果和仍保留的日志;存储异常或记录缺失不能触发重复执行已完成的命令。待恢复运行、被正式引用或受保护的材料保留。清理仅通过显式 `plan-gc` / `apply-gc` 完成,不在查询、恢复或阶段流转时自动清理。
|
|
47
|
+
|
|
24
48
|
## 执行成本
|
|
25
49
|
|
|
26
50
|
执行策略以 `orchestration-contract.yaml.execution_efficiency` 为准,通过同一次 `query-lifecycle-context` 查询取得。Plan → Spec → Ticket 的耗时应分清脚本执行、Agent 读取与编排、人工等待;没有计时记录时不把总时长归因于摘要计算。
|
|
@@ -31,6 +55,8 @@
|
|
|
31
55
|
|
|
32
56
|
脚本命令、实际退出码和 duration_ms 记入已有 checkpoint 的验证证据;Agent 编排和人工等待仅在有计时来源时记录,否则标为 unknown。无需为耗时再建一套阶段产物。
|
|
33
57
|
|
|
58
|
+
常见查询、合同准备/阅读/验证、状态恢复和技能同步直接消费已安装入口,调用约定见消费项目 `.template-spec/process/script-execution.md`。工具缺失先按 Profile 和固定版本核对安装;只有实际参数或输出缺口才补适配。一次性分析保留明确输入、允许写范围与实际日志,不承载阶段裁决或批准;诊断使用固定适配器与合成 fixture。
|
|
59
|
+
|
|
34
60
|
## 阶段边界
|
|
35
61
|
|
|
36
62
|
Matt phase boundary 是工作阶段之间的上下文决策,不是新的生命周期状态。按以下顺序判断,第一项适用即停止判断:
|
|
@@ -77,7 +103,7 @@ tracker 选择和冲突按 `.template-spec/agents/issue-tracker.md` 裁决:已
|
|
|
77
103
|
|
|
78
104
|
- `work-unit.technical-analysis` 由 `yss-technical-design` 组织后端技术设计;其 `domain-driven` 分支调用 `yss-tactical-design`,`layered-mvc` 分支由自身持有。状态、规则、一致性、持久化影响本身不意味着选择 DDD。无后端技术设计影响记录带原因的 `not-applicable`,其他 API / 前端技术分析继续各自路由。新合同使用 `artifact.technical-design`,通过 `evidence.technical-design-review` 回交现有架构审查;旧 DDD 稳定 ID 只读兼容。批准仍由生命周期维护,编译器消费批准且当前的设计起草实现合同;`stale`、`drift` 或 `new_impacts` 时不得继续 Ticket 正式化。
|
|
79
105
|
|
|
80
|
-
- `work-unit.plan-requirements`
|
|
106
|
+
- `work-unit.plan-requirements` 按 `planning.clarification_policy` 在必须确认的需求、规则、范围或取舍未决时主动调用 `grilling`,术语工作使用 `domain-modeling`。事实、实验、专业审查分别回流证据,依赖分轮并复用未变确认。`checks.grill_exit=passed` 表示准备就绪;固定审阅包后将共同理解与 Plan 批准范围一并展示,以单独保存的真实回复联合完成完整退出。`work-unit.plan-opportunity` 按事实类型路由 `competitive-intelligence` 或 `yss-research`。`yss-research:quick` 只用于探索;外部证据进入领域战略、阶段决策或其他生命周期批准输入前必须升级为 `evidence-audited`。生命周期原生工作单元默认负责 Spec、Ticket 和实现资产;`to-spec`、`to-tickets`、`implement` 仅保留为显式兼容入口,结果必须回交生命周期验收。
|
|
81
107
|
- 原生 `work-unit.ticket-decomposition` 只能在 OpenAPI Freeze 或无 API 影响记录后创建垂直切片,初始 Ticket 状态统一为 `ready-for-human`;生命周期复算完整公式后才能提升 `ready-for-agent`。该工作单元必须返回 `ticket_decomposition_result_ref` 和垂直切片引用,并作为实现的必经前置证据。
|
|
82
108
|
- 原生 `work-unit.slice-implementation` 必须在生命周期批准并持久化 Slice Implementation Contract 和 Build Architecture Checklist 后执行;用户显式 `implement` 仍走兼容入口,不得绕过生命周期。
|
|
83
109
|
- `Workflow Execution Result.next_route` 必须通过生命周期转换校验;Spec、原型和技术分析不得直接跳转到 Ticket 正式化或实现,必须先完成 `work-unit.implementation-repository-preparation`,再进入 `work-unit.ticket-decomposition`。
|
|
@@ -87,16 +113,16 @@ tracker 选择和冲突按 `.template-spec/agents/issue-tracker.md` 裁决:已
|
|
|
87
113
|
## 审查与验证
|
|
88
114
|
|
|
89
115
|
- 调用 `code-review` 前先固定 review input:`review_mode`、`review_base_ref`、`implementation_candidate_ref`、`candidate_snapshot_ref`、`candidate_digest`、Spec/Ticket、Slice Implementation Contract、Build Architecture Checklist 和 YSS Skill Execution Result 引用。`committed` 模式审查不可变 `HEAD`;`worktree` 模式一次捕获 committed、staged、unstaged 和 untracked 内容。必须按 `orchestration-contract.yaml.review_input` 的 manifest 按模式必填字段及 `yss-worktree-candidate-v1` 字节流(raw path、uint64 big-endian 长度、tracked/untracked record)计算 SHA-256,所有参与审查者(人数按 `orchestration-contract.yaml.gate_consolidation`) 必须消费同一不可变快照。返回后或完成 checkpoint 摘要变化时返回 `blocked`,由编排器决定重新审查。候选为空、漏项或 fixed point 不可解析时阻断。
|
|
90
|
-
-
|
|
91
|
-
- 该执行者必须独立于实现者;新模块、高风险变更、职责冲突或需双人控制时,Reviewer 与 Verifier
|
|
116
|
+
- 小改动和中等变更可由同一具备所需能力的独立执行者完成 `code-review` 与 fresh verification,并在同一报告中分别记录 findings、命令、结果和残余风险。专业任务按角色表 `review_capabilities` 和检查策略编译 `review_context`、`skill_source.review_skills`,当前候选、策略、范围、依据和独立主体均须可核验;不在流程正文另定义能力表。
|
|
117
|
+
- 该执行者必须独立于实现者;新模块、高风险变更、职责冲突或需双人控制时,Reviewer 与 Verifier 分开。按能力覆盖缺口、专业结论冲突或外部制度增加专家,是与此分离要求不同的条件。
|
|
92
118
|
- `code-review` 是唯一默认代码审查 skill。GitLab、CI、Sonar、Alibaba Java 与 YSS 前端 / 后端 skill 作为仓库规则或专项检查输入接入 Standards 轴,由 `review_standards_route` 按影响面编译;不再叠加第二个通用审查 skill。漏掉合同 `required_skills`、适用报告行空白、mandatory `violation` 未关闭或可机器检查规则既无工具结果也无原文引用时,不得 `completed`。
|
|
93
|
-
- 产品切片与模板维护共用 finding 分类;产品切片执行下述候选审查闭环,模板维护按 `.template-spec/process/harness-process-tailoring.md` 的 L1 / L2 / L3 验证强度闭合,不自动冻结候选或全轴复审。`violation
|
|
119
|
+
- 产品切片与模板维护共用 finding 分类;产品切片执行下述候选审查闭环,模板维护按 `.template-spec/process/harness-process-tailoring.md` 的 L1 / L2 / L3 验证强度闭合,不自动冻结候选或全轴复审。`violation`、机器检查失败、适用行空白由实现者在原合同路径修复,比较旧 / 新候选差异及受影响结论、行为和依赖,再捕获候选、定向复审 / 验证并重绑定。`drift`、`new_impacts`、`required_skills` 与真实影响不一致时合同 `stale`,先调查实际影响再回 实现合同编译器 或更早阶段更新受影响合同,禁止在旧合同上继续编码;不把这些信号升级为全轴默认或兜底。审查者不得写实现。`not-applicable` 仅当影响面未命中;命中后 mandatory 不得豁免,只允许修复或完整 `seam-deferred`。禁止为日常 Alibaba / YSS 新增生物人豁免门禁。
|
|
94
120
|
- 独立 Reviewer 必须与实现者不同实例,并在能执行已登记 `pnpm` / `./mvnw` 的运行时中审查。模板源 `.cursor/environment.json` 只服务模板校验,不替代实现仓审查运行时。不为此再创建第二个 Cloud 审查环境或 `/code-review` skill。
|
|
95
|
-
- UI
|
|
121
|
+
- UI 影响切片首轮将 `UI fidelity` 作为 `code-review` 的条件第三轴,完成全部适用检查。修复后依实际差异及行为 / 依赖判断应复验的视觉、状态、规范或验收结论;UI 影响或摘要变化不自动触发所有轴。未知影响先调查并阻断依赖事项。未受影响项须有可读比较依据证明条件、依据和依赖未变,全部消费结论重新绑定当前候选与实际验证,历史报告不改写。
|
|
96
122
|
|
|
97
123
|
## Git 授权
|
|
98
124
|
|
|
99
|
-
实现授权、`orchestrate`/`resume` 的有界写入、当前分支和 Git checkpoint 都不蕴含 commit 或 push 授权。执行 commit 前必须同时取得 `commit_authorized=true`、非空 `commit_scope` 和 `commit_authorization_ref`;执行 push 前必须同时取得 `push_authorized=true`、非空 `push_scope` 和 `push_authorization_ref
|
|
125
|
+
实现授权、`orchestrate`/`resume` 的有界写入、当前分支和 Git checkpoint 都不蕴含 commit 或 push 授权。执行 commit 前必须同时取得 `commit_authorized=true`、非空 `commit_scope` 和 `commit_authorization_ref`;执行 push 前必须同时取得 `push_authorized=true`、非空 `push_scope` 和 `push_authorization_ref`。按既有 [用户决定协议](user-decisions.md),Agent 可从明确动作与仓库/改动范围的真实用户回复整理三字段,保留可读原始来源,无需用户重填。commit 授权不包含 push;字段缺失、来源不可读、撤回或超出授权范围时只记录 checkpoint 判断,不执行对应动作。泛泛意向、时间压力、测试通过或“本地 commit 可逆”都不能补足授权。
|
|
100
126
|
|
|
101
127
|
`repository_scope: git-submodule` 时授权按仓分别计算:禁止在 detached HEAD 提交;commit / push 顺序必须先子仓、再父仓 gitlink(`superproject-gitlink-update`);父仓 push 使用 `git push --recurse-submodules=check`。空 gitlink、detached HEAD、`--force` 覆盖挂载点不得当成普通目录脚手架,也不得把实现源码复制进 Harness。登记字段必须能与 `harness-apps` / `external-repository` 区分,并对照工作树 gitlink。
|
|
102
128
|
|
|
@@ -104,15 +130,14 @@ tracker 选择和冲突按 `.template-spec/agents/issue-tracker.md` 裁决:已
|
|
|
104
130
|
|
|
105
131
|
关键决定使用 [真实用户回复协议](user-decisions.md),消费角色注册表的 `user_decision_policy`。会签前先形成可审阅资产;恢复、阶段流转、实施派发和发布时校验原始回复及当前资产摘要。普通会签的数字人审查与用户决定分别保留,关键决定不得以数字人会签、无反对意见或超时放行。等待只阻断依赖事项;新的 `user_decisions` 引用通过 Workflow Execution Result、checkpoint 和任务包传递。
|
|
106
132
|
|
|
107
|
-
##
|
|
133
|
+
## 按阻塞原因处理
|
|
108
134
|
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
- 即将作出可合并、可发布或完成结论。
|
|
135
|
+
- 专业审查等待:按角色表的检查 / 能力策略自主派发任务,已有运行中任务先核对身份,不重复派发;等待结果并继续无依赖工作。会签仍保留门禁 ID、指定 `role_id`、`runtime_id`、会签文件和证据。恢复前执行 `scripts/verify-approval-record --require-approved --checkpoint <current checkpoint>`;消费者提供当前期望上下文,不能从记录反向填充。能力缺失、起草者自签、上下文过期或生物人门禁被数字人关闭时返回 `blocked`,不得标 `approved`。
|
|
136
|
+
- 验证失败、证据冲突或专项结果不可验收:调查、修复、补证据或重新路由;只阻断依赖该结果的动作。专业任务未完成不等于需要用户回答。
|
|
137
|
+
- 未知影响:先调查变化的行为、结论和依赖,确认复审范围和决定变化后再处理;不得默认全轴复审,也不得用扩大检查代替影响分析。
|
|
138
|
+
- 真实决定、新授权或无法自主取得的必要输入缺失:先完成可独立执行检查与可审阅资产,再展示版本、差异、风险、范围及恢复动作,向提问者或其明确指定负责人询问。无真实回复保持等待;多个独立的当前决定可合并提问,不强制每次一个问题。
|
|
114
139
|
|
|
115
|
-
|
|
140
|
+
暂停记录按原因保留证据、责任方、恢复条件和下一动作;只在需要真实决定或输入时展示问题与建议。提出完成、可合并或可发布结论先完成适用审查与 fresh verification,不因此另建暂停;实际合并、推送、发布仍检查既有外部动作授权。
|
|
116
141
|
|
|
117
142
|
## Context Plan 与质量基线
|
|
118
143
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# 需求澄清与 Context 对账
|
|
2
2
|
|
|
3
|
-
`work-unit.plan-requirements` 由 `yss-product-lifecycle` 或当前 profile
|
|
3
|
+
`work-unit.plan-requirements` 由 `yss-product-lifecycle` 或当前 profile 编排器执行。发现必须确认的需求、业务规则、范围或取舍未决项时,按 `planning.clarification_policy` 主动调用 `grilling`;术语工作使用 `domain-modeling`。不另建批准入口。
|
|
4
4
|
|
|
5
5
|
1. 读取 yss-project.yaml 与唯一根 CONTEXT.md,执行 `scripts/verify-context-contract --root . --json`。缺失、大小写错误、嵌套合同、跨仓路径、伪锚点或不支持的 schema 都阻断;格式消费 `domain-modeling/CONTEXT-FORMAT.md`。
|
|
6
|
-
2.
|
|
7
|
-
3.
|
|
8
|
-
4.
|
|
9
|
-
5.
|
|
10
|
-
6.
|
|
6
|
+
2. 自行查证可发现事实,技术事实路由 `yss-research`,可执行阻塞安排原型或实际验证,专业审查由主控派发,验证失败修复或补证。真正用户决定才组成当前决策前沿;调查未完成只等待依赖该事实的问题,其他必要问题和独立已授权工作继续。未确认的术语留在 Plan,不能写成稳定事实。
|
|
7
|
+
3. 依问题依赖分轮询问全部当前可回答的必要问题,每题给出建议,保留真实原始回复;回复后再推进依赖问题。复用未变化的确认,用户纠正理解时只重开受影响问题及依赖。不能用口头同意代替事实、实验或审查证据。
|
|
8
|
+
4. 确认后由 domain-modeling 维护五列业务词汇表,以 `<ContextId>/<EnglishIdentifier>` 标识;非 Global 的 ContextId 来自已确认业务责任区。只有难以逆转、非显然且有真实取舍的决定才形成 ADR。研究和实际验证保留可读证据。
|
|
9
|
+
5. `project-instance` 批准或返回下一工作单元前生成 `context_reconciliation`,保存可读 ref、document_digest、referenced_terms_digest 与 term_refs,并执行对账验证。候选、别名、范围冲突或摘要漂移均阻断;对账不另增门禁。`template-source` 仅校验模板合同并记录有原因的 `not-applicable`,不虚构业务术语。
|
|
10
|
+
6. 收敛时回述用户问题、目标、MVP、非目标、关键规则、验收例子、未决项结论及剩余不确定性,核对解决证据和非关键延期交接。`checks.grill_exit=passed` 表示准备就绪,仍待最终真实决定。固定完整 Plan 审阅包后,将共同理解与当前 Plan 批准范围合并展示、取得同一真实回复;回复存入外部 `plan_user_decision_ref`,不回写审阅包或其 `basis`。入口通过准备检查和当前决定后才判定完整 `grill_exit`;既有批准仅按用户决定协议核验延续。
|
|
11
|
+
7. 结束时列出已确认决定、未决假设、变更文档、对账状态与引用、下一授权动作。未回流 blocker 不得进入 Spec。共同理解与变更范围未确认前不改实现合同或代码;澄清结果不能批准资产、设置 ready-for-agent 或自行推进阶段,交回当前编排器验收。
|
|
11
12
|
|
|
12
13
|
起草 Plan 使用 `.template-spec/plan/templates/plan-template.md`,Spec 使用 `.template-spec/templates/spec-template.md`;显式 `to-spec` 使用同一模板。可选只读诊断及未评估项见 `.template-spec/process/plan-spec-quality.md`,不增加阶段门禁。
|