create-yss-spec 3.5.0 → 3.5.2
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 +6 -2
- package/package.json +1 -1
- package/src/api/_sync-service.js +31 -6
- package/src/cli/args.js +2 -0
- package/src/cli/help.js +4 -1
- package/src/commands/attach.js +9 -3
- package/src/commands/diff.js +1 -0
- package/src/commands/doctor.js +1 -0
- package/src/commands/init.js +2 -1
- package/src/commands/sync.js +1 -0
- package/src/family-identity.js +1 -1
- package/src/template/asset-runtime.js +57 -49
- package/src/template/attach-planner.js +1 -1
- package/src/template/distribution-runtime.js +9 -9
- package/src/template/instance-runtime.js +9 -9
- package/src/template/layout-migration.js +160 -0
- package/src/template/migration-runtime.js +2 -2
- package/src/template/sync-planner.js +1 -1
- package/template/.agents/rules/yss-ai-skills.md +1 -1
- package/template/.agents/skills/.strategic-design-skills-manifest.json +7 -8
- package/template/.agents/skills/.yss-skills-manifest.json +2 -2
- package/template/.agents/skills/alibaba-java-code-style/SKILL.md +1 -1
- package/template/.agents/skills/code-review/SKILL.md +6 -6
- package/template/.agents/skills/code-review/references/yss-review-standards.md +1 -1
- package/template/.agents/skills/cross-repo-implementation-routing/SKILL.md +2 -2
- package/template/.agents/skills/i-have-adhd/SKILL.md +1 -1
- package/template/.agents/skills/i-have-adhd/references/yss-adaptation.md +1 -1
- package/template/.agents/skills/i-have-adhd/tests/verify-integration.mjs +2 -2
- package/template/.agents/skills/implementation-repo-onboarding/SKILL.md +2 -2
- package/template/.agents/skills/llm-wiki/references/discover.md +3 -3
- package/template/.agents/skills/prototype-review/SKILL.md +4 -4
- package/template/.agents/skills/setup-matt-pocock-skills/SKILL.md +10 -10
- package/template/.agents/skills/triage/SKILL.md +1 -1
- package/template/.agents/skills/yss-application/references/profiles/layered-mvc-service.md +1 -1
- package/template/.agents/skills/yss-application/references/profiles/mvc-data-analysis-v1.md +1 -1
- package/template/.agents/skills/yss-backend-spec-review/SKILL.md +1 -1
- package/template/.agents/skills/yss-backend-spec-review/references/check-inputs.md +1 -1
- package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
- package/template/.agents/skills/yss-design-system/SKILL.md +10 -10
- package/template/.agents/skills/yss-design-system/references/design-qa-theme.md +3 -3
- package/template/.agents/skills/yss-design-system/references/design-system.md +3 -3
- package/template/.agents/skills/yss-exception/SKILL.md +1 -1
- package/template/.agents/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
- package/template/.agents/skills/yss-frontend-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
- package/template/.agents/skills/yss-frontend-scaffold-generator/scripts/refresh_baseline.mjs +2 -2
- package/template/.agents/skills/yss-implementation-contract-compiler/SKILL.md +9 -9
- package/template/.agents/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -1
- package/template/.agents/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +9 -9
- package/template/.agents/skills/yss-implementation-contract-compiler/references/slice-implementation-contract-v2.md +3 -3
- package/template/.agents/skills/yss-implementation-contract-compiler/references/slice-implementation-contract.md +1 -1
- package/template/.agents/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +1 -1
- package/template/.agents/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
- package/template/.agents/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +5 -5
- package/template/.agents/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
- package/template/.agents/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +42 -0
- package/template/.agents/skills/yss-openapi-draft-review/SKILL.md +2 -2
- package/template/.agents/skills/yss-openapi-governance/SKILL.md +7 -7
- package/template/.agents/skills/yss-product-lifecycle/SKILL.md +11 -11
- package/template/.agents/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +65 -43
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration.md +22 -14
- package/template/.agents/skills/yss-product-lifecycle/references/request-triage.md +2 -0
- package/template/.agents/skills/yss-product-lifecycle/references/state-model.md +3 -3
- package/template/.agents/skills/yss-product-lifecycle/references/user-decisions.md +2 -2
- package/template/.agents/skills/yss-prototype-stage/SKILL.md +7 -7
- package/template/.agents/skills/yss-prototype-stage/references/existing-ui-entry.md +1 -1
- package/template/.agents/skills/yss-prototype-stage/scripts/build-antd-prototype.mjs +1 -1
- package/template/.agents/skills/yss-prototype-stage/scripts/offline-html.mjs +3 -3
- package/template/.agents/skills/yss-prototype-stage/tests/browser-smoke.mjs +2 -2
- package/template/.agents/skills/yss-prototype-stage/tests/run-scenarios.mjs +4 -4
- package/template/.agents/skills/yss-prototype-stage/tests/workbench-smoke.mjs +1 -1
- package/template/.agents/skills/yss-repository/SKILL.md +2 -2
- package/template/.agents/skills/yss-repository/references/profiles/layered-mvc-service.md +1 -1
- package/template/.agents/skills/yss-repository/references/profiles/mvc-data-analysis-v1.md +1 -1
- package/template/.agents/skills/yss-repository/tests/profile-routing.test.mjs +2 -2
- package/template/.agents/skills/yss-research/SKILL.md +2 -2
- 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 +5 -5
- package/template/.agents/skills/yss-stage-decision/references/domain-strategy-contract.md +1 -1
- package/template/.agents/skills/yss-stage-decision/references/strategic-handoff-routing.md +1 -1
- package/template/.agents/skills/yss-tactical-design/SKILL.md +2 -2
- package/template/.agents/skills/yss-tactical-design/references/strategic-handoff-routing.md +1 -1
- package/template/.agents/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
- package/template/.agents/skills/yss-technical-design/SKILL.md +6 -6
- package/template/.agents/skills/yss-technical-design/references/technical-design-contract.md +1 -1
- package/template/.agents/skills/yss-ui/SKILL.md +1 -1
- package/template/.agents/skills/yss-up-springboot3/SKILL.md +1 -1
- package/template/.agents/skills/yss-web-controller/SKILL.md +1 -1
- package/template/.agents/skills/yss-web-controller/references/profiles/layered-mvc-service.md +1 -1
- package/template/.codex/skills/alibaba-java-code-style/SKILL.md +1 -1
- package/template/.codex/skills/code-review/SKILL.md +6 -6
- package/template/.codex/skills/code-review/references/yss-review-standards.md +1 -1
- package/template/.codex/skills/cross-repo-implementation-routing/SKILL.md +2 -2
- package/template/.codex/skills/i-have-adhd/SKILL.md +1 -1
- package/template/.codex/skills/i-have-adhd/references/yss-adaptation.md +1 -1
- package/template/.codex/skills/i-have-adhd/tests/verify-integration.mjs +2 -2
- package/template/.codex/skills/implementation-repo-onboarding/SKILL.md +2 -2
- package/template/.codex/skills/llm-wiki/references/discover.md +3 -3
- package/template/.codex/skills/prototype-review/SKILL.md +4 -4
- package/template/.codex/skills/setup-matt-pocock-skills/SKILL.md +10 -10
- package/template/.codex/skills/triage/SKILL.md +1 -1
- package/template/.codex/skills/yss-application/references/profiles/layered-mvc-service.md +1 -1
- package/template/.codex/skills/yss-application/references/profiles/mvc-data-analysis-v1.md +1 -1
- package/template/.codex/skills/yss-backend-spec-review/SKILL.md +1 -1
- package/template/.codex/skills/yss-backend-spec-review/references/check-inputs.md +1 -1
- package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
- package/template/.codex/skills/yss-design-system/SKILL.md +10 -10
- package/template/.codex/skills/yss-design-system/references/design-qa-theme.md +3 -3
- package/template/.codex/skills/yss-design-system/references/design-system.md +3 -3
- package/template/.codex/skills/yss-exception/SKILL.md +1 -1
- package/template/.codex/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
- package/template/.codex/skills/yss-frontend-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
- package/template/.codex/skills/yss-frontend-scaffold-generator/scripts/refresh_baseline.mjs +2 -2
- package/template/.codex/skills/yss-implementation-contract-compiler/SKILL.md +9 -9
- package/template/.codex/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -1
- package/template/.codex/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +9 -9
- package/template/.codex/skills/yss-implementation-contract-compiler/references/slice-implementation-contract-v2.md +3 -3
- package/template/.codex/skills/yss-implementation-contract-compiler/references/slice-implementation-contract.md +1 -1
- package/template/.codex/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +1 -1
- package/template/.codex/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
- package/template/.codex/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +5 -5
- package/template/.codex/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
- package/template/.codex/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +42 -0
- package/template/.codex/skills/yss-openapi-draft-review/SKILL.md +2 -2
- package/template/.codex/skills/yss-openapi-governance/SKILL.md +7 -7
- package/template/.codex/skills/yss-product-lifecycle/SKILL.md +11 -11
- package/template/.codex/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +65 -43
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration.md +22 -14
- package/template/.codex/skills/yss-product-lifecycle/references/request-triage.md +2 -0
- package/template/.codex/skills/yss-product-lifecycle/references/state-model.md +3 -3
- package/template/.codex/skills/yss-product-lifecycle/references/user-decisions.md +2 -2
- package/template/.codex/skills/yss-prototype-stage/SKILL.md +7 -7
- package/template/.codex/skills/yss-prototype-stage/references/existing-ui-entry.md +1 -1
- package/template/.codex/skills/yss-prototype-stage/scripts/build-antd-prototype.mjs +1 -1
- package/template/.codex/skills/yss-prototype-stage/scripts/offline-html.mjs +3 -3
- package/template/.codex/skills/yss-prototype-stage/tests/browser-smoke.mjs +2 -2
- package/template/.codex/skills/yss-prototype-stage/tests/run-scenarios.mjs +4 -4
- package/template/.codex/skills/yss-prototype-stage/tests/workbench-smoke.mjs +1 -1
- package/template/.codex/skills/yss-repository/SKILL.md +2 -2
- package/template/.codex/skills/yss-repository/references/profiles/layered-mvc-service.md +1 -1
- package/template/.codex/skills/yss-repository/references/profiles/mvc-data-analysis-v1.md +1 -1
- package/template/.codex/skills/yss-repository/tests/profile-routing.test.mjs +2 -2
- package/template/.codex/skills/yss-research/SKILL.md +2 -2
- 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 +5 -5
- package/template/.codex/skills/yss-stage-decision/references/domain-strategy-contract.md +1 -1
- package/template/.codex/skills/yss-stage-decision/references/strategic-handoff-routing.md +1 -1
- package/template/.codex/skills/yss-tactical-design/SKILL.md +2 -2
- package/template/.codex/skills/yss-tactical-design/references/strategic-handoff-routing.md +1 -1
- package/template/.codex/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
- package/template/.codex/skills/yss-technical-design/SKILL.md +6 -6
- package/template/.codex/skills/yss-technical-design/references/technical-design-contract.md +1 -1
- package/template/.codex/skills/yss-ui/SKILL.md +1 -1
- package/template/.codex/skills/yss-up-springboot3/SKILL.md +1 -1
- package/template/.codex/skills/yss-web-controller/SKILL.md +1 -1
- package/template/.codex/skills/yss-web-controller/references/profiles/layered-mvc-service.md +1 -1
- package/template/.cursor/skills/alibaba-java-code-style/SKILL.md +1 -1
- package/template/.cursor/skills/code-review/SKILL.md +6 -6
- package/template/.cursor/skills/code-review/references/yss-review-standards.md +1 -1
- package/template/.cursor/skills/cross-repo-implementation-routing/SKILL.md +2 -2
- package/template/.cursor/skills/i-have-adhd/SKILL.md +1 -1
- package/template/.cursor/skills/i-have-adhd/references/yss-adaptation.md +1 -1
- package/template/.cursor/skills/i-have-adhd/tests/verify-integration.mjs +2 -2
- package/template/.cursor/skills/implementation-repo-onboarding/SKILL.md +2 -2
- package/template/.cursor/skills/llm-wiki/references/discover.md +3 -3
- package/template/.cursor/skills/prototype-review/SKILL.md +4 -4
- package/template/.cursor/skills/setup-matt-pocock-skills/SKILL.md +10 -10
- package/template/.cursor/skills/triage/SKILL.md +1 -1
- package/template/.cursor/skills/yss-application/references/profiles/layered-mvc-service.md +1 -1
- package/template/.cursor/skills/yss-application/references/profiles/mvc-data-analysis-v1.md +1 -1
- package/template/.cursor/skills/yss-backend-spec-review/SKILL.md +1 -1
- package/template/.cursor/skills/yss-backend-spec-review/references/check-inputs.md +1 -1
- package/template/.cursor/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
- package/template/.cursor/skills/yss-design-system/SKILL.md +10 -10
- package/template/.cursor/skills/yss-design-system/references/design-qa-theme.md +3 -3
- package/template/.cursor/skills/yss-design-system/references/design-system.md +3 -3
- package/template/.cursor/skills/yss-exception/SKILL.md +1 -1
- package/template/.cursor/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
- package/template/.cursor/skills/yss-frontend-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
- package/template/.cursor/skills/yss-frontend-scaffold-generator/scripts/refresh_baseline.mjs +2 -2
- package/template/.cursor/skills/yss-implementation-contract-compiler/SKILL.md +9 -9
- package/template/.cursor/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -1
- package/template/.cursor/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +9 -9
- package/template/.cursor/skills/yss-implementation-contract-compiler/references/slice-implementation-contract-v2.md +3 -3
- package/template/.cursor/skills/yss-implementation-contract-compiler/references/slice-implementation-contract.md +1 -1
- package/template/.cursor/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +1 -1
- package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
- package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +5 -5
- package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
- package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +42 -0
- package/template/.cursor/skills/yss-openapi-draft-review/SKILL.md +2 -2
- package/template/.cursor/skills/yss-openapi-governance/SKILL.md +7 -7
- package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +11 -11
- package/template/.cursor/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +65 -43
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +22 -14
- package/template/.cursor/skills/yss-product-lifecycle/references/request-triage.md +2 -0
- package/template/.cursor/skills/yss-product-lifecycle/references/state-model.md +3 -3
- package/template/.cursor/skills/yss-product-lifecycle/references/user-decisions.md +2 -2
- package/template/.cursor/skills/yss-prototype-stage/SKILL.md +7 -7
- package/template/.cursor/skills/yss-prototype-stage/references/existing-ui-entry.md +1 -1
- package/template/.cursor/skills/yss-prototype-stage/scripts/build-antd-prototype.mjs +1 -1
- package/template/.cursor/skills/yss-prototype-stage/scripts/offline-html.mjs +3 -3
- package/template/.cursor/skills/yss-prototype-stage/tests/browser-smoke.mjs +2 -2
- package/template/.cursor/skills/yss-prototype-stage/tests/run-scenarios.mjs +4 -4
- package/template/.cursor/skills/yss-prototype-stage/tests/workbench-smoke.mjs +1 -1
- package/template/.cursor/skills/yss-repository/SKILL.md +2 -2
- package/template/.cursor/skills/yss-repository/references/profiles/layered-mvc-service.md +1 -1
- package/template/.cursor/skills/yss-repository/references/profiles/mvc-data-analysis-v1.md +1 -1
- package/template/.cursor/skills/yss-repository/tests/profile-routing.test.mjs +2 -2
- package/template/.cursor/skills/yss-research/SKILL.md +2 -2
- 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 +5 -5
- package/template/.cursor/skills/yss-stage-decision/references/domain-strategy-contract.md +1 -1
- package/template/.cursor/skills/yss-stage-decision/references/strategic-handoff-routing.md +1 -1
- package/template/.cursor/skills/yss-tactical-design/SKILL.md +2 -2
- package/template/.cursor/skills/yss-tactical-design/references/strategic-handoff-routing.md +1 -1
- package/template/.cursor/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
- package/template/.cursor/skills/yss-technical-design/SKILL.md +6 -6
- package/template/.cursor/skills/yss-technical-design/references/technical-design-contract.md +1 -1
- package/template/.cursor/skills/yss-ui/SKILL.md +1 -1
- package/template/.cursor/skills/yss-up-springboot3/SKILL.md +1 -1
- package/template/.cursor/skills/yss-web-controller/SKILL.md +1 -1
- package/template/.cursor/skills/yss-web-controller/references/profiles/layered-mvc-service.md +1 -1
- package/template/.cursorrules +1 -1
- package/template/.pi/skills/alibaba-java-code-style/SKILL.md +1 -1
- package/template/.pi/skills/code-review/SKILL.md +6 -6
- package/template/.pi/skills/code-review/references/yss-review-standards.md +1 -1
- package/template/.pi/skills/cross-repo-implementation-routing/SKILL.md +2 -2
- package/template/.pi/skills/i-have-adhd/SKILL.md +1 -1
- package/template/.pi/skills/i-have-adhd/references/yss-adaptation.md +1 -1
- package/template/.pi/skills/i-have-adhd/tests/verify-integration.mjs +2 -2
- package/template/.pi/skills/implementation-repo-onboarding/SKILL.md +2 -2
- package/template/.pi/skills/llm-wiki/references/discover.md +3 -3
- package/template/.pi/skills/prototype-review/SKILL.md +4 -4
- package/template/.pi/skills/setup-matt-pocock-skills/SKILL.md +10 -10
- package/template/.pi/skills/triage/SKILL.md +1 -1
- package/template/.pi/skills/yss-application/references/profiles/layered-mvc-service.md +1 -1
- package/template/.pi/skills/yss-application/references/profiles/mvc-data-analysis-v1.md +1 -1
- package/template/.pi/skills/yss-backend-spec-review/SKILL.md +1 -1
- package/template/.pi/skills/yss-backend-spec-review/references/check-inputs.md +1 -1
- package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
- package/template/.pi/skills/yss-design-system/SKILL.md +10 -10
- package/template/.pi/skills/yss-design-system/references/design-qa-theme.md +3 -3
- package/template/.pi/skills/yss-design-system/references/design-system.md +3 -3
- package/template/.pi/skills/yss-exception/SKILL.md +1 -1
- package/template/.pi/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
- package/template/.pi/skills/yss-frontend-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
- package/template/.pi/skills/yss-frontend-scaffold-generator/scripts/refresh_baseline.mjs +2 -2
- package/template/.pi/skills/yss-implementation-contract-compiler/SKILL.md +9 -9
- package/template/.pi/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -1
- package/template/.pi/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +9 -9
- package/template/.pi/skills/yss-implementation-contract-compiler/references/slice-implementation-contract-v2.md +3 -3
- package/template/.pi/skills/yss-implementation-contract-compiler/references/slice-implementation-contract.md +1 -1
- package/template/.pi/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +1 -1
- package/template/.pi/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
- package/template/.pi/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +5 -5
- package/template/.pi/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
- package/template/.pi/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +42 -0
- package/template/.pi/skills/yss-openapi-draft-review/SKILL.md +2 -2
- package/template/.pi/skills/yss-openapi-governance/SKILL.md +7 -7
- package/template/.pi/skills/yss-product-lifecycle/SKILL.md +11 -11
- package/template/.pi/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +65 -43
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration.md +22 -14
- package/template/.pi/skills/yss-product-lifecycle/references/request-triage.md +2 -0
- package/template/.pi/skills/yss-product-lifecycle/references/state-model.md +3 -3
- package/template/.pi/skills/yss-product-lifecycle/references/user-decisions.md +2 -2
- package/template/.pi/skills/yss-prototype-stage/SKILL.md +7 -7
- package/template/.pi/skills/yss-prototype-stage/references/existing-ui-entry.md +1 -1
- package/template/.pi/skills/yss-prototype-stage/scripts/build-antd-prototype.mjs +1 -1
- package/template/.pi/skills/yss-prototype-stage/scripts/offline-html.mjs +3 -3
- package/template/.pi/skills/yss-prototype-stage/tests/browser-smoke.mjs +2 -2
- package/template/.pi/skills/yss-prototype-stage/tests/run-scenarios.mjs +4 -4
- package/template/.pi/skills/yss-prototype-stage/tests/workbench-smoke.mjs +1 -1
- package/template/.pi/skills/yss-repository/SKILL.md +2 -2
- package/template/.pi/skills/yss-repository/references/profiles/layered-mvc-service.md +1 -1
- package/template/.pi/skills/yss-repository/references/profiles/mvc-data-analysis-v1.md +1 -1
- package/template/.pi/skills/yss-repository/tests/profile-routing.test.mjs +2 -2
- package/template/.pi/skills/yss-research/SKILL.md +2 -2
- 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 +5 -5
- package/template/.pi/skills/yss-stage-decision/references/domain-strategy-contract.md +1 -1
- package/template/.pi/skills/yss-stage-decision/references/strategic-handoff-routing.md +1 -1
- package/template/.pi/skills/yss-tactical-design/SKILL.md +2 -2
- package/template/.pi/skills/yss-tactical-design/references/strategic-handoff-routing.md +1 -1
- package/template/.pi/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
- package/template/.pi/skills/yss-technical-design/SKILL.md +6 -6
- package/template/.pi/skills/yss-technical-design/references/technical-design-contract.md +1 -1
- package/template/.pi/skills/yss-ui/SKILL.md +1 -1
- package/template/.pi/skills/yss-up-springboot3/SKILL.md +1 -1
- package/template/.pi/skills/yss-web-controller/SKILL.md +1 -1
- package/template/.pi/skills/yss-web-controller/references/profiles/layered-mvc-service.md +1 -1
- package/template/{docs → .template-spec}/adr/README.md +1 -1
- package/template/{docs → .template-spec}/agents/README.md +1 -1
- package/template/{docs → .template-spec}/agents/backend-architecture-profiles.md +2 -2
- package/template/{docs → .template-spec}/agents/digital-human-roles.md +6 -6
- package/template/{docs → .template-spec}/agents/digital-human-roles.yaml +5 -5
- package/template/{docs → .template-spec}/agents/gitlab-workflow-skills.md +2 -2
- package/template/{docs → .template-spec}/agents/issue-tracker.md +1 -1
- package/template/{docs → .template-spec}/agents/skill-migrations.md +2 -2
- package/template/{docs → .template-spec}/agents/triage-labels.md +1 -1
- package/template/{docs → .template-spec}/agents/yss-skill-registry.yaml +2 -2
- package/template/{docs → .template-spec}/architecture/README.md +3 -3
- package/template/{docs → .template-spec}/architecture/templates/tech-design-template.md +3 -1
- package/template/{docs → .template-spec}/design/README.md +12 -11
- package/template/{docs → .template-spec}/design/design.md +19 -19
- package/template/{docs/design/templates/interaction-spec-template.md → .template-spec/design/templates/examples/model-publishing-interaction.example.md} +5 -3
- package/template/{docs/design/templates/state-matrix-template.md → .template-spec/design/templates/examples/model-publishing-state-matrix.example.md} +3 -1
- package/template/.template-spec/design/templates/interaction-spec-template.md +61 -0
- package/template/{docs → .template-spec}/design/templates/product-overview-design-template.md +11 -11
- package/template/{docs → .template-spec}/design/templates/prototype-evidence-template.yaml +4 -4
- package/template/{docs → .template-spec}/design/templates/prototype-review-checklist.md +1 -1
- package/template/.template-spec/design/templates/state-matrix-template.md +29 -0
- package/template/.template-spec/design/tokens/.design-md-projection.json +13 -0
- package/template/{docs → .template-spec}/engineering/backend-platforms.md +1 -1
- package/template/{docs → .template-spec}/plan/entry-review.md +8 -4
- package/template/{docs → .template-spec}/plan/templates/plan-template.md +1 -1
- package/template/{docs → .template-spec}/process/contract-reading.md +1 -1
- package/template/{docs → .template-spec}/process/lifecycle-artifact-map.md +5 -5
- package/template/.template-spec/process/lifecycle-registry-baseline.json +253 -0
- package/template/{docs → .template-spec}/process/lifecycle-registry.yaml +19 -12
- package/template/{docs → .template-spec}/process/plan-migration.md +1 -1
- package/template/{docs → .template-spec}/process/schemas/digital-human-task-package.schema.json +14 -1
- package/template/{docs → .template-spec}/process/schemas/lifecycle-checkpoint.schema.json +15 -0
- package/template/{docs → .template-spec}/process/schemas/lifecycle-registry.schema.json +1 -1
- package/template/{docs → .template-spec}/process/schemas/strategic-design-handoff-v3.schema.json +1 -1
- package/template/{docs → .template-spec}/process/schemas/strategic-design-handoff-v4.schema.json +1 -1
- package/template/{docs → .template-spec}/process/schemas/strategic-design-handoff-v5.schema.json +1 -1
- package/template/{docs → .template-spec}/process/schemas/strategic-design-handoff.schema.json +1 -1
- package/template/{docs → .template-spec}/process/stage-tracking.md +1 -1
- package/template/{docs → .template-spec}/process/subagent-collaboration.md +2 -2
- package/template/{docs → .template-spec}/templates/build-architecture-checklist-template.md +2 -2
- package/template/{docs → .template-spec}/templates/digital-human-runtime-profile-template.md +2 -2
- package/template/{docs → .template-spec}/templates/grok-bot-profile-template.md +1 -1
- package/template/{docs → .template-spec}/templates/local-parent-ticket-template.md +1 -1
- package/template/.template-spec/templates/release-note-template.md +29 -0
- package/template/.template-spec/templates/retro-report-template.md +24 -0
- package/template/{docs → .template-spec}/templates/subagent-task-package-template.md +3 -3
- package/template/.template-spec/templates/verification-record-template.md +64 -0
- package/template/{docs → .template-spec}/templates/vertical-slice-ticket-template.md +5 -10
- package/template/{docs → .template-spec}/user-guide//347/224/250/346/210/267/346/211/213/345/206/214.md +1 -1
- package/template/{docs → .template-spec}/user-guide//347/224/250/346/210/267/346/211/213/345/206/214/347/264/242/345/274/225.md +4 -4
- package/template/AGENTS.md +12 -12
- package/template/CONTEXT.md +3 -3
- package/template/README.md +21 -21
- package/template/scripts/backend-delivery +1 -1
- package/template/scripts/lib/api-contract-decision.mjs +1 -1
- package/template/scripts/lib/approved-execution-context.mjs +5 -5
- package/template/scripts/lib/backend-delivery.mjs +4 -4
- package/template/scripts/lib/backend-platform.mjs +1 -1
- package/template/scripts/lib/backend-review.mjs +1 -1
- package/template/scripts/lib/backend-scaffold-prerequisites.mjs +1 -1
- package/template/scripts/lib/backend-standards-coverage.mjs +2 -2
- package/template/scripts/lib/context-reconciliation.mjs +1 -1
- package/template/scripts/lib/contract-views.mjs +9 -9
- package/template/scripts/lib/delivery-preflight.mjs +6 -6
- package/template/scripts/lib/design-md.mjs +2 -2
- package/template/scripts/lib/digital-human-roles.mjs +2 -2
- package/template/scripts/lib/existing-backend-architecture.mjs +1 -1
- package/template/scripts/lib/existing-ui-baseline.mjs +1 -1
- package/template/scripts/lib/frontend-delivery.mjs +2 -2
- package/template/scripts/lib/governance-layout.mjs +74 -0
- package/template/scripts/lib/harness-execution-scope.mjs +2 -2
- package/template/scripts/lib/lifecycle-context-query.mjs +11 -3
- package/template/scripts/lib/lifecycle-registry.mjs +46 -7
- package/template/scripts/lib/lifecycle-status.mjs +111 -0
- package/template/scripts/lib/lifecycle-transition.mjs +71 -10
- package/template/scripts/lib/openapi-draft-validation.mjs +1 -1
- package/template/scripts/lib/plan-spec-entry-view.mjs +48 -0
- package/template/scripts/lib/plan-spec-entry.mjs +3 -3
- package/template/scripts/lib/skill-registry.mjs +8 -8
- package/template/scripts/lib/skill-supply-chain.mjs +1 -1
- package/template/scripts/lib/slice-contract-preparation.mjs +3 -3
- package/template/scripts/lib/slice-contract.mjs +1 -1
- package/template/scripts/lib/slice-repositories.mjs +1 -1
- package/template/scripts/lib/slice-task-package.mjs +3 -3
- package/template/scripts/lib/stage-tracking-migration.mjs +2 -2
- package/template/scripts/lib/stage-tracking.mjs +5 -5
- package/template/scripts/lib/strategic-feedback.mjs +2 -2
- package/template/scripts/lib/strategic-handoff-routing.mjs +2 -2
- package/template/scripts/lib/strategic-handoff.mjs +15 -15
- package/template/scripts/lib/task-package-schema.mjs +2 -2
- package/template/scripts/lib/task-package.mjs +1 -1
- package/template/scripts/lib/technical-design-boundary.mjs +1 -1
- package/template/scripts/lib/user-decision.mjs +2 -1
- package/template/scripts/lifecycle-status +14 -0
- package/template/scripts/plan-spec-entry +21 -0
- package/template/scripts/strategic-consumer-entry +1 -1
- package/template/scripts/strategic-handoff +1 -1
- package/template/scripts/verify-frontend-implementation-evidence +1 -1
- package/template/scripts/verify-governance-layout +15 -0
- package/template/scripts/verify-lifecycle-checkpoint +1 -1
- package/template/scripts/verify-project-instance +2 -0
- package/template/scripts/verify-scaffold-architecture-decisions +1 -1
- package/template/scripts/verify-strategic-context-import +3 -3
- package/template/skills-lock.json +77 -77
- package/template.manifest.json +19 -19
- package/template.snapshot.json +5 -5
- package/template/docs/agents/archify-integration.md +0 -19
- package/template/docs/design/design-system-sync.yaml +0 -13
- package/template/docs/design/preview-dark.html +0 -178
- package/template/docs/design/preview.css +0 -730
- package/template/docs/design/preview.html +0 -178
- package/template/docs/design/preview.js +0 -71
- package/template/docs/design/tokens/.design-md-projection.json +0 -13
- package/template/docs/engineering/evidence/aliyun-artifact-resolution.json +0 -446
- package/template/docs/process/MATT-POCOCK-ENGINEERING-SKILLS.md +0 -13
- package/template/docs/process/github-workflows.md +0 -52
- package/template/docs/templates/release-note-template.md +0 -14
- package/template/docs/templates/retro-report-template.md +0 -16
- package/template/docs/templates/verification-record-template.md +0 -53
- /package/template/{docs → .template-spec}/agents/domain.md +0 -0
- /package/template/{docs → .template-spec}/api/templates/openapi-draft-review-checklist.md +0 -0
- /package/template/{docs → .template-spec}/api/templates/openapi-draft-validation-record-template.yaml +0 -0
- /package/template/{docs → .template-spec}/api/templates/openapi-freeze-record-template.md +0 -0
- /package/template/{docs → .template-spec}/api/templates/openapi-json-export-record-template.md +0 -0
- /package/template/{docs → .template-spec}/architecture/templates/architecture-deepening-template.md +0 -0
- /package/template/{docs → .template-spec}/architecture/templates/architecture-review-checklist.md +0 -0
- /package/template/{docs → .template-spec}/architecture/templates/business-architecture-template.md +0 -0
- /package/template/{docs → .template-spec}/architecture/templates/data-architecture-template.md +0 -0
- /package/template/{docs → .template-spec}/architecture/templates/engineering-baseline-review-template.md +0 -0
- /package/template/{docs → .template-spec}/architecture/templates/functional-architecture-template.md +0 -0
- /package/template/{docs → .template-spec}/architecture/templates/system-overview-design-template.md +0 -0
- /package/template/{docs → .template-spec}/design/diagrams/README.md +0 -0
- /package/template/{docs → .template-spec}/design/schemas/visual-baseline.schema.json +0 -0
- /package/template/{docs → .template-spec}/design/templates/prototype-confirmation-template.md +0 -0
- /package/template/{docs → .template-spec}/design/templates/visual-baseline-template.yaml +0 -0
- /package/template/{docs → .template-spec}/design/tokens/theme.json +0 -0
- /package/template/{docs → .template-spec}/design/tokens/tokens.compact.json +0 -0
- /package/template/{docs → .template-spec}/design/tokens/tokens.dark.json +0 -0
- /package/template/{docs → .template-spec}/design/tokens/tokens.default.json +0 -0
- /package/template/{docs → .template-spec}/design/tokens/variables.css +0 -0
- /package/template/{docs → .template-spec}/design/tokens/variables.dark.css +0 -0
- /package/template/{docs → .template-spec}/engineering/backend-platforms.json +0 -0
- /package/template/{docs → .template-spec}/plan/README.md +0 -0
- /package/template/{docs → .template-spec}/plan/templates/competitive-analysis-template.md +0 -0
- /package/template/{docs → .template-spec}/plan/templates/competitive-matrix-template.md +0 -0
- /package/template/{docs → .template-spec}/plan/templates/market-analysis-template.md +0 -0
- /package/template/{docs → .template-spec}/plan/templates/user-pain-points-template.md +0 -0
- /package/template/{docs → .template-spec}/process/delivery-preflight.md +0 -0
- /package/template/{docs → .template-spec}/process/document-writing.md +0 -0
- /package/template/{docs → .template-spec}/process/existing-backend-architecture.md +0 -0
- /package/template/{docs → .template-spec}/process/existing-ui-baseline.md +0 -0
- /package/template/{docs → .template-spec}/process/frontend-backend-delivery.md +0 -0
- /package/template/{docs → .template-spec}/process/harness-process-tailoring.md +0 -0
- /package/template/{docs → .template-spec}/process/implementation-repo-integration.md +0 -0
- /package/template/{docs/process/lifecycle-registry-baseline.json → .template-spec/process/lifecycle-registry-baseline-v1.json} +0 -0
- /package/template/{docs → .template-spec}/process/schemas/api-contract-decision-v2.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/api-contract-decision.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/backend-architecture-identity.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/backend-delivery-verification.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/backend-delivery.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/context-reconciliation.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/data-architecture-decision.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/delivery-preflight-input.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/delivery-preflight-result.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/existing-ui-baseline.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/frontend-delivery-acceptance-v1.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/frontend-delivery-acceptance-v3.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/frontend-delivery-acceptance.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/frontend-implementation-evidence.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/frontend-strategic-preflight-v2.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/frontend-strategic-preflight.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/implementation-repository-preparation-result.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/openapi-draft-validation-record.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/project-scaffold-contract.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/review-bundle.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/scaffold-architecture-decisions.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/slice-implementation-contract-v3.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/stage-tracking.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/strategic-consumer-feedback.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/strategic-feedback-adjudication.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-delivery-verification.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-delivery.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-domain-strategy-v3.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-domain-strategy.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-export-v2.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-export.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-import-receipt-v3.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-import-receipt.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-package.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-stage-decision-package-v3.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-stage-decision-package.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/subagent-task-package.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/schemas/user-decision.schema.json +0 -0
- /package/template/{docs → .template-spec}/process/strategic-handoff-package.md +0 -0
- /package/template/{docs → .template-spec}/process/templates/context-reconciliation-template.yaml +0 -0
- /package/template/{docs → .template-spec}/process/templates/frontend-implementation-plan-template.yaml +0 -0
- /package/template/{docs → .template-spec}/process/templates/frontend-implementation-verification-template.yaml +0 -0
- /package/template/{docs → .template-spec}/process/templates/lifecycle-checkpoint-template.yaml +0 -0
- /package/template/{docs → .template-spec}/process/templates/scaffold-architecture-decisions-template.yaml +0 -0
- /package/template/{docs → .template-spec}/process/templates/stage-checkpoint-template.md +0 -0
- /package/template/{docs → .template-spec}/process/templates/user-decision-template.yaml +0 -0
- /package/template/{docs → .template-spec}/templates/adr-template.md +0 -0
- /package/template/{docs → .template-spec}/templates/approval-record-template.yaml +0 -0
- /package/template/{docs → .template-spec}/templates/cross-repo-slice-template.md +0 -0
- /package/template/{docs → .template-spec}/templates/examples/lifecycle-writing-examples.md +0 -0
- /package/template/{docs → .template-spec}/templates/implementation-repo-registry-template.md +0 -0
- /package/template/{docs → .template-spec}/templates/openapi-spec-template.yaml +0 -0
- /package/template/{docs → .template-spec}/templates/review-bundle-template.yaml +0 -0
- /package/template/{docs → .template-spec}/templates/review-report-template.md +0 -0
- /package/template/{docs → .template-spec}/templates/spec-delta-template.md +0 -0
- /package/template/{docs → .template-spec}/templates/spec-template.md +0 -0
- /package/template/{docs → .template-spec}/user-guide/yss-ui-mcp.md +0 -0
- /package/template/{docs → .template-spec}/user-guide//346/212/200/346/234/257/350/256/276/350/256/241/347/224/250/346/210/267/346/214/207/345/215/227.md" +0 -0
- /package/template/{docs → .template-spec}/user-guide//350/256/276/345/244/207/345/200/237/347/224/250/350/264/257/347/251/277/346/241/210/344/276/213.md" +0 -0
- /package/template/{docs → .template-spec}/user-guide//351/230/266/346/256/265/346/216/245/345/205/245/344/270/216/344/272/247/347/211/251/345/244/215/347/224/250/344/275/277/347/224/250/346/211/213/345/206/214.md" +0 -0
|
@@ -5,11 +5,11 @@ description: 编排 YSS 研发全生命周期;当阶段、产物、门禁或 S
|
|
|
5
5
|
|
|
6
6
|
# YSS Product Lifecycle
|
|
7
7
|
|
|
8
|
-
合同阅读:`scripts/contract view`;见
|
|
8
|
+
合同阅读:`scripts/contract view`;见 `.template-spec/process/contract-reading.md`。
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
主控识别请求、身份及可信阶段,计算 frontier 并派发、验收工作单元;专项 Skill 执行与独立审查。
|
|
11
11
|
|
|
12
|
-
文档按 `document_writing` 条件调用 `i-have-adhd`,并传递
|
|
12
|
+
文档按 `document_writing` 条件调用 `i-have-adhd`,并传递 `.template-spec/process/document-writing.md` 规范。
|
|
13
13
|
|
|
14
14
|
## 事实源与按需加载
|
|
15
15
|
|
|
@@ -17,11 +17,11 @@ description: 编排 YSS 研发全生命周期;当阶段、产物、门禁或 S
|
|
|
17
17
|
|
|
18
18
|
| 事实 | 权威来源 |
|
|
19
19
|
|---|---|
|
|
20
|
-
| 阶段、聚合门禁、内部检查、产物、工作单元、证据和稳定 ID |
|
|
20
|
+
| 阶段、聚合门禁、内部检查、产物、工作单元、证据和稳定 ID | `.template-spec/process/lifecycle-registry.yaml` |
|
|
21
21
|
| 执行模式、流转、readiness、暂停、结果和授权语义 | `references/orchestration-contract.yaml` |
|
|
22
|
-
| Skill 身份、capability、依赖和路由 |
|
|
23
|
-
| 数字人角色、运行时和会签策略 |
|
|
24
|
-
| 影响面、裁剪和模板维护强度 |
|
|
22
|
+
| Skill 身份、capability、依赖和路由 | `.template-spec/agents/yss-skill-registry.yaml` |
|
|
23
|
+
| 数字人角色、运行时和会签策略 | `.template-spec/agents/digital-human-roles.yaml` |
|
|
24
|
+
| 影响面、裁剪和模板维护强度 | `.template-spec/process/harness-process-tailoring.md`、`.template-source/process/maintenance-intensity.yaml` |
|
|
25
25
|
|
|
26
26
|
用 `scripts/query-lifecycle-context` 查询合同:
|
|
27
27
|
|
|
@@ -40,7 +40,7 @@ scripts/query-lifecycle-context --mode route --stage stage.plan --work-unit work
|
|
|
40
40
|
3. 按合同 `request_triage` 选择 `route`、`orchestrate`、`resume`、`audit`;明确行动请求无需模式关键字,意图不明时只读 `route`。`modes`、门禁及授权边界仍适用。
|
|
41
41
|
4. `project-instance` 按生命周期注册表推进;`template-source` 只走模板维护流程。
|
|
42
42
|
|
|
43
|
-
Plan 入口读取
|
|
43
|
+
Plan 入口读取 `.template-spec/plan/README.md` 和 `.template-spec/process/plan-migration.md`,核查战略输入与退出条件。关键未决项阻断 Spec;其他未决项记录责任人、解决时点和接收方。只用 Plan 标识;旧阶段不兼容解析,历史批准不自动沿用。
|
|
44
44
|
|
|
45
45
|
理解、澄清与纠错见 [请求分诊协议](references/request-triage.md);用 `scripts/query-lifecycle-context --include request_triage` 查询合同。先查上下文和证据,只问影响下一动作的缺口,不按问题长度追问。
|
|
46
46
|
|
|
@@ -83,9 +83,9 @@ Plan 入口读取 `docs/plan/README.md` 和 `docs/process/plan-migration.md`,
|
|
|
83
83
|
|
|
84
84
|
`机会与目标 → 业务故事 → 责任与交接 → 规则、例子与疑问 → 可验收需求 → 页面验证 → 业务任务 → 交接研发`
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
按当前决策澄清目标、流程、责任、规则、范围和验收例子。业务方案总览引用权威资产,展示状态、未决项、责任人和下一步;不复制正文或新增门禁。
|
|
87
87
|
|
|
88
|
-
Plan → Spec(含正式草稿、恢复与显式 `to-spec`)写入前,按
|
|
88
|
+
Plan → Spec(含正式草稿、恢复与显式 `to-spec`)写入前,按 `.template-spec/plan/entry-review.md` 持久化审阅包并运行 `node scripts/verify-plan-spec-entry <state.yaml>`。检查默认 pending,缺项、过期或无真实回复即阻断;独立调研可继续。
|
|
89
89
|
|
|
90
90
|
## 结果与暂停
|
|
91
91
|
|
|
@@ -97,4 +97,4 @@ Plan → Spec(含正式草稿、恢复与显式 `to-spec`)写入前,按 `d
|
|
|
97
97
|
|
|
98
98
|
专项合同加载索引见 `references/orchestration.md`。
|
|
99
99
|
|
|
100
|
-
Plan / Spec / Design 追踪按
|
|
100
|
+
Plan / Spec / Design 追踪按 `.template-spec/process/stage-tracking.md`。
|
|
@@ -19,7 +19,7 @@ Matt skills 决定如何工作;YSS 生命周期决定是否允许推进;YSS
|
|
|
19
19
|
| 信息在其他人手中 | `to-questionnaire` | 使用 `external-input-required` 暂停;答案回流后记录 response、重新分类影响面,再进入 `grill-with-docs` 或 `to-spec` |
|
|
20
20
|
| 大型模糊工作 | `wayfinder`(可选) | 仅在跨会话 / 跨 Agent 或 frontier 不清晰时启用;map 真正完成后 `handoff → to-spec` |
|
|
21
21
|
| 技术或战略事实 | `yss-research`(`research` 为 deprecated alias) | `technical-evidence` 核验一手技术资料;`strategy-evidence` 为领域战略和阶段决策提供可审计证据;研究包不得自行修改或批准下游资产 |
|
|
22
|
-
| runnable 问题 | `prototype` | 生成单文件可分享 HTML,保留 `prototype/<name>` 分支作为主来源;必须 source/return handoff 和结论回填,只能作为阶段 4 输入,不得替代低保真评审、H1/H2 档位路由、schema
|
|
22
|
+
| runnable 问题 | `prototype` | 生成单文件可分享 HTML,保留 `prototype/<name>` 分支作为主来源;必须 source/return handoff 和结论回填,只能作为阶段 4 输入,不得替代低保真评审、H1/H2 档位路由、schema v4 验证和用户确认 |
|
|
23
23
|
| Spec 综合 | 原生 `work-unit.spec-synthesis`;`to-spec`(用户显式兼容) | 初稿进入 `ready-for-human`,不得直接实现 |
|
|
24
24
|
| 切片 | 原生 `work-unit.ticket-decomposition`;`to-tickets`(用户显式兼容) | 仅在冻结/无影响记录后拆垂直切片,初始 Ticket 状态为 `ready-for-human` |
|
|
25
25
|
| 实现 | 原生 `work-unit.slice-implementation`;`implement`(用户显式兼容) | 当前合同批准并持久化后执行;内部使用 `tdd`,结果回交后再次核验 |
|
|
@@ -48,7 +48,7 @@ workflow_reference:
|
|
|
48
48
|
invocation_mode: reference
|
|
49
49
|
result: completed # completed / blocked / needs-human / failed
|
|
50
50
|
evidence_refs:
|
|
51
|
-
-
|
|
51
|
+
- .template-spec/process/yss-product-lifecycle-orchestrator-validation.md
|
|
52
52
|
changed_artifacts: []
|
|
53
53
|
new_impacts: []
|
|
54
54
|
stale_candidates: []
|
|
@@ -74,7 +74,7 @@ blocking_signals: []
|
|
|
74
74
|
|
|
75
75
|
## Review 候选与 Git 授权
|
|
76
76
|
|
|
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
|
|
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`) 消费同一不可变快照,并在返回和完成 checkpoint 复核摘要未变化。缺少输入、候选为空、专项覆盖缺失、未关闭 mandatory `violation`、适用行空白或摘要变化时返回 `blocked`,不能缩小审查范围、另起通用审查 skill、由审查者改实现,或合并不同候选的结论。`violation` 类 finding 交实现者在原合同路径修复后全轴复审;`drift` / `new_impacts` 使合同 `stale` 并回 实现合同编译器。
|
|
78
78
|
|
|
79
79
|
Matt `implement` 的通用提交指令不构成 YSS Git 授权。只有用户明确给出 `commit_authorized` 为 `true`、非空 `commit_scope` 和 `commit_authorization_ref` 时才能 commit;只有明确给出 `push_authorized` 为 `true`、非空 `push_scope` 和 `push_authorization_ref` 时才能 push。缺少任一字段时保持工作区不变,只输出 checkpoint 判断;不得把 `orchestrate`、实现授权、当前分支、测试通过或负责人要求解释为隐含授权。`git-submodule` 还必须按仓授权、禁止 detached HEAD 提交,并先推子仓再更新父仓 gitlink。
|
|
80
80
|
|
|
@@ -92,11 +92,11 @@ Matt `implement` 的通用提交指令不构成 YSS Git 授权。只有用户明
|
|
|
92
92
|
|
|
93
93
|
当 YSS 生命周期处于 active 状态时,Matt `to-spec` 中独立运行时的 `ready-for-agent` 发布提示由本适配层覆盖为 `ready-for-human`:Spec 必须先经过产品总体设计 / 功能架构、必要的设计与契约门禁,之后才由生命周期编排器决定垂直切片 Ticket 的 `ready-for-agent`。这只约束 YSS 编排下的状态写入,不修改 Matt skill 单独运行时的核心行为。
|
|
94
94
|
|
|
95
|
-
`setup-matt-pocock-skills` 仅由用户显式启动。readiness=`missing` 时返回 `needs-human`、`requested_skill=setup-matt-pocock-skills` 和 `resume_route=setup-readiness`;仅发现旧路径资产仍进入 migration-check 并暂停写入。`ready` 直接继续,`conflict` 进入迁移裁决,`degraded` 保留待发布草案,`not-applicable` 仅验证模板契约。通用 setup 文案与 YSS tracker 合同冲突时,以
|
|
95
|
+
`setup-matt-pocock-skills` 仅由用户显式启动。readiness=`missing` 时返回 `needs-human`、`requested_skill=setup-matt-pocock-skills` 和 `resume_route=setup-readiness`;仅发现旧路径资产仍进入 migration-check 并暂停写入。`ready` 直接继续,`conflict` 进入迁移裁决,`degraded` 保留待发布草案,`not-applicable` 仅验证模板契约。通用 setup 文案与 YSS tracker 合同冲突时,以 `.template-spec/agents/issue-tracker.md` 和本编排契约为准。
|
|
96
96
|
|
|
97
97
|
### Local Markdown 兼容映射
|
|
98
98
|
|
|
99
|
-
当
|
|
99
|
+
当 `.template-spec/agents/issue-tracker.md` 的 `platform` 为 `local-markdown` 时,Matt flow 的本地输出归一化为以下 YSS 载体:
|
|
100
100
|
|
|
101
101
|
| Matt 产物 | Local 载体 |
|
|
102
102
|
|---|---|
|
package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml
CHANGED
|
@@ -4,21 +4,21 @@ document_writing:
|
|
|
4
4
|
condition: lifecycle-document-output
|
|
5
5
|
scope: current-document-work-only
|
|
6
6
|
dispatch: pass-condition-and-reference-to-document-owner
|
|
7
|
-
reference:
|
|
8
|
-
examples:
|
|
7
|
+
reference: .template-spec/process/document-writing.md
|
|
8
|
+
examples: .template-spec/templates/examples/lifecycle-writing-examples.md
|
|
9
9
|
load_when: [lifecycle-document-draft, lifecycle-document-revision, progress-or-decision-presentation]
|
|
10
10
|
dispatch_input: include-reference-for-document-work
|
|
11
11
|
artifact_ownership: unchanged
|
|
12
12
|
gate_and_status_semantics: unchanged
|
|
13
13
|
|
|
14
14
|
backend_architecture_identity_policy:
|
|
15
|
-
source:
|
|
15
|
+
source: .template-spec/agents/yss-skill-registry.yaml
|
|
16
16
|
generated_profiles: architecture_profiles
|
|
17
17
|
existing_profiles: existing_project_profiles
|
|
18
18
|
existing_evidence: [repository-registration, engineering-baseline, existing-project-observation]
|
|
19
19
|
evidence_policy: original-ref-digest-and-current-source-verification
|
|
20
20
|
delivery_preflight: scripts/preflight-delivery
|
|
21
|
-
schema:
|
|
21
|
+
schema: .template-spec/process/schemas/backend-architecture-identity.schema.json
|
|
22
22
|
required_surfaces: [engineering-baseline, repository-registration, scaffold-manifest, slice-contract, work-unit, execution-result]
|
|
23
23
|
agreement: exact-identity-and-digest
|
|
24
24
|
missing_or_drift: blocked-and-recompile
|
|
@@ -89,6 +89,7 @@ request_triage:
|
|
|
89
89
|
explicit_audit: audit
|
|
90
90
|
authorized_continuation: resume
|
|
91
91
|
clear_action_request: orchestrate
|
|
92
|
+
clear_read_only_investigation_request: orchestrate
|
|
92
93
|
unresolved_intent: route
|
|
93
94
|
investigation: read-only-actions-unless-additional-scope-authorized
|
|
94
95
|
mode_keywords_required: false
|
|
@@ -138,9 +139,19 @@ execution_efficiency:
|
|
|
138
139
|
template_regression_suite: template-maintenance-or-explicit-regression-task
|
|
139
140
|
per_work_unit_context_reconciliation: required
|
|
140
141
|
skip_triggered_gates: forbidden
|
|
142
|
+
recovery:
|
|
143
|
+
state_source: current-checkpoint-stage-tracking-and-readable-task-results
|
|
144
|
+
status_view: read-only-diagnostics-never-execution-authorization
|
|
145
|
+
running_or_unknown_task: inspect-existing-task-identity-before-dispatch
|
|
146
|
+
completed_task: verify-current-evidence-then-recompute-frontier
|
|
147
|
+
action_completed_before_checkpoint: reconcile-actual-artifacts-before-repeating-side-effects
|
|
148
|
+
changed_inputs: invalidate-affected-dependencies-and-revalidate
|
|
149
|
+
missing_legacy_tracking: existing-compatibility-or-explicit-migration
|
|
150
|
+
unknown_external_result: stop-duplicate-side-effect-and-report-missing-evidence
|
|
151
|
+
approval: revalidate-current-decision-or-supported-continuation
|
|
141
152
|
interaction:
|
|
142
153
|
questions: batch-independent-current-stage-questions
|
|
143
|
-
user_decision_policy_ref:
|
|
154
|
+
user_decision_policy_ref: .template-spec/agents/digital-human-roles.yaml#user_decision_policy
|
|
144
155
|
decision_evidence_ref: references/user-decisions.md
|
|
145
156
|
dependent_future_approvals: forbidden
|
|
146
157
|
checkpoint_policy_ref: checkpoint_policy
|
|
@@ -208,7 +219,7 @@ workflow_execution_result:
|
|
|
208
219
|
evidence_ref_validation: readable-or-resolvable
|
|
209
220
|
completed_requires_no_blocking_signals: true
|
|
210
221
|
context_reconciliation:
|
|
211
|
-
schema_ref:
|
|
222
|
+
schema_ref: .template-spec/process/schemas/context-reconciliation.schema.json
|
|
212
223
|
validator: scripts/verify-context-reconciliation
|
|
213
224
|
project-instance: {required_status: reconciled, readable_ref_required: true, transition_without_reconciliation: blocked}
|
|
214
225
|
template-source: {required_status: not-applicable, reason_required: true}
|
|
@@ -233,8 +244,8 @@ workflow_execution_result:
|
|
|
233
244
|
task_package:
|
|
234
245
|
schema_version: 1
|
|
235
246
|
applies_to: all-formal-digital-human-dispatches
|
|
236
|
-
schema_ref:
|
|
237
|
-
compatibility_schema_ref:
|
|
247
|
+
schema_ref: .template-spec/process/schemas/digital-human-task-package.schema.json
|
|
248
|
+
compatibility_schema_ref: .template-spec/process/schemas/subagent-task-package.schema.json
|
|
238
249
|
validator: scripts/verify-digital-human-task-package
|
|
239
250
|
compatibility_validator: scripts/verify-subagent-task-package
|
|
240
251
|
persistence_layout: docs/.scratch/<feature>/task-packages/<task-id>.yaml
|
|
@@ -242,7 +253,7 @@ task_package:
|
|
|
242
253
|
execution_states: [Explorer, Drafter, Worker, Reviewer, Verifier]
|
|
243
254
|
workflow_statuses: [not-started, active, paused, resolved, failed]
|
|
244
255
|
skill_source:
|
|
245
|
-
registry_ref:
|
|
256
|
+
registry_ref: .template-spec/agents/digital-human-roles.yaml
|
|
246
257
|
defaults: taskPackageDefaults(role_id)
|
|
247
258
|
copy_required: [core_skills, forbidden_skills]
|
|
248
259
|
contract:
|
|
@@ -305,7 +316,7 @@ skill_source_contract:
|
|
|
305
316
|
lifecycle_native_entries:
|
|
306
317
|
default_entry: yss-product-lifecycle
|
|
307
318
|
formal_artifact_owner: yss-product-lifecycle
|
|
308
|
-
user_confirmation_policy_ref:
|
|
319
|
+
user_confirmation_policy_ref: .template-spec/agents/digital-human-roles.yaml#user_decision_policy
|
|
309
320
|
compatibility_entries:
|
|
310
321
|
to-spec: lifecycle-validate-and-accept
|
|
311
322
|
to-tickets: lifecycle-validate-and-accept
|
|
@@ -354,7 +365,7 @@ work_unit_routes:
|
|
|
354
365
|
human_gate: spec-baseline
|
|
355
366
|
applies_when: new_feature_or_behavior_change
|
|
356
367
|
not_applicable_reason: existing_frozen_spec_is_current
|
|
357
|
-
work-unit.prototype-design:
|
|
368
|
+
work-unit.prototype-design-v2:
|
|
358
369
|
native: {source: yss-product-lifecycle, skill: yss-product-lifecycle, invocation_mode: model-invoked}
|
|
359
370
|
primary_skill: yss-prototype-stage
|
|
360
371
|
supporting_skills: [prototype-review, yss-design-system, product-design:index]
|
|
@@ -362,7 +373,7 @@ work_unit_routes:
|
|
|
362
373
|
execution_order: [yss-design-system, low-fidelity-assets, prototype-review, prototype-profile-routing, profile-adapter-build, browser-design-qa-accessibility, user-confirmation]
|
|
363
374
|
profile_routing_ref: .agents/skills/yss-prototype-stage/references/prototype-profile-routing.md
|
|
364
375
|
prototype_adapter_ref: .agents/skills/yss-prototype-stage/references/product-design-adapter.md
|
|
365
|
-
evidence_schema_version:
|
|
376
|
+
evidence_schema_version: 4
|
|
366
377
|
profile_contract:
|
|
367
378
|
default_when_uncertain: H2
|
|
368
379
|
highest_matching_profile_wins: true
|
|
@@ -388,7 +399,7 @@ work_unit_routes:
|
|
|
388
399
|
applies_when: new_backend_repository
|
|
389
400
|
confirms: [architecture_family, exact_spring_boot_version]
|
|
390
401
|
architecture_choices: [domain-driven, layered-mvc]
|
|
391
|
-
platform_source:
|
|
402
|
+
platform_source: .template-spec/engineering/backend-platforms.json
|
|
392
403
|
existing_repository: not-applicable-reuse-current-registration
|
|
393
404
|
missing_or_stale: blocked
|
|
394
405
|
branches:
|
|
@@ -438,6 +449,16 @@ work_unit_routes:
|
|
|
438
449
|
result_schema_version: 2
|
|
439
450
|
backend_design_prerequisites_required: [technical_design, data_architecture_decision, api_contract_decision, engineering_contract_approval_ref]
|
|
440
451
|
must_complete_before: work-unit.ticket-decomposition
|
|
452
|
+
work-unit.service-project-initialization:
|
|
453
|
+
native: {source: yss-product-lifecycle, skill: yss-product-lifecycle, invocation_mode: model-invoked}
|
|
454
|
+
primary_skill: yss-layered-mvc-scaffold-generator
|
|
455
|
+
supporting_skills: []
|
|
456
|
+
skills: [yss-layered-mvc-scaffold-generator]
|
|
457
|
+
parent_work_unit: work-unit.implementation-repository-preparation
|
|
458
|
+
return_to: work-unit.implementation-repository-preparation
|
|
459
|
+
applies_when: new_backend_project_with_approved_current_v4_mvc-data-analysis-v1_contract
|
|
460
|
+
completion_evidence: [scaffold-manifest-v4, scaffold-verification, workflow-execution-result, context-handoff-digest]
|
|
461
|
+
not_applicable_reason: existing_project_or_other_architecture_profile
|
|
441
462
|
work-unit.ticket-decomposition:
|
|
442
463
|
native: {source: yss-product-lifecycle, skill: yss-product-lifecycle, invocation_mode: model-invoked}
|
|
443
464
|
primary_skill: yss-product-lifecycle
|
|
@@ -498,7 +519,7 @@ work_unit_routes:
|
|
|
498
519
|
review_standards_route:
|
|
499
520
|
unique_default_skill: code-review
|
|
500
521
|
second_generic_review_skill: forbidden
|
|
501
|
-
report_template:
|
|
522
|
+
report_template: .template-spec/templates/review-report-template.md
|
|
502
523
|
contract_required_skills: required
|
|
503
524
|
write_implementation: forbidden
|
|
504
525
|
machine_checks:
|
|
@@ -621,21 +642,22 @@ transition_graph:
|
|
|
621
642
|
validator: scripts/lib/lifecycle-transition.mjs
|
|
622
643
|
implementation_requires_predecessor: work-unit.ticket-decomposition
|
|
623
644
|
routes:
|
|
624
|
-
work-unit.ssot-update: [work-unit.skill-projection-sync, work-unit.intensity-aware-verification]
|
|
625
|
-
work-unit.skill-projection-sync: [work-unit.template-snapshot-build, work-unit.intensity-aware-verification]
|
|
626
|
-
work-unit.template-snapshot-build: [work-unit.attach-sync-integration, work-unit.intensity-aware-verification]
|
|
627
|
-
work-unit.attach-sync-integration: [work-unit.intensity-aware-verification]
|
|
628
|
-
work-unit.intensity-aware-verification: [work-unit.intensity-aware-review]
|
|
629
|
-
work-unit.intensity-aware-review: [work-unit.release-and-rollback]
|
|
645
|
+
work-unit.ssot-update: [work-unit.skill-projection-sync, work-unit.intensity-aware-verification-v2]
|
|
646
|
+
work-unit.skill-projection-sync: [work-unit.template-snapshot-build, work-unit.intensity-aware-verification-v2]
|
|
647
|
+
work-unit.template-snapshot-build: [work-unit.attach-sync-integration, work-unit.intensity-aware-verification-v2]
|
|
648
|
+
work-unit.attach-sync-integration: [work-unit.intensity-aware-verification-v2]
|
|
649
|
+
work-unit.intensity-aware-verification-v2: [work-unit.intensity-aware-review-v2]
|
|
650
|
+
work-unit.intensity-aware-review-v2: [work-unit.release-and-rollback]
|
|
630
651
|
work-unit.release-and-rollback: []
|
|
631
652
|
work-unit.plan-opportunity: [work-unit.plan-requirements, work-unit.domain-strategy-design, work-unit.stage-decision, work-unit.spec-synthesis]
|
|
632
653
|
work-unit.plan-requirements: [work-unit.domain-strategy-design, work-unit.stage-decision, work-unit.spec-synthesis]
|
|
633
654
|
work-unit.domain-strategy-design: [work-unit.stage-decision, work-unit.spec-synthesis]
|
|
634
655
|
work-unit.stage-decision: [work-unit.spec-synthesis]
|
|
635
|
-
work-unit.spec-synthesis: [work-unit.prototype-design, work-unit.technical-analysis]
|
|
636
|
-
work-unit.prototype-design: [work-unit.technical-analysis]
|
|
656
|
+
work-unit.spec-synthesis: [work-unit.prototype-design-v2, work-unit.technical-analysis]
|
|
657
|
+
work-unit.prototype-design-v2: [work-unit.technical-analysis]
|
|
637
658
|
work-unit.technical-analysis: [work-unit.implementation-repository-preparation]
|
|
638
|
-
work-unit.implementation-repository-preparation: [work-unit.ticket-decomposition]
|
|
659
|
+
work-unit.implementation-repository-preparation: [work-unit.service-project-initialization, work-unit.ticket-decomposition]
|
|
660
|
+
work-unit.service-project-initialization: [work-unit.implementation-repository-preparation]
|
|
639
661
|
work-unit.ticket-decomposition: [work-unit.slice-implementation]
|
|
640
662
|
work-unit.slice-implementation: [work-unit.frontend-implementation-verification, work-unit.code-review]
|
|
641
663
|
work-unit.frontend-implementation-verification: [work-unit.code-review]
|
|
@@ -644,23 +666,23 @@ transition_graph:
|
|
|
644
666
|
work-unit.release-and-retrospective: []
|
|
645
667
|
forbidden_shortcuts:
|
|
646
668
|
- {from: work-unit.spec-synthesis, to: work-unit.implementation-repository-preparation}
|
|
647
|
-
- {from: work-unit.prototype-design, to: work-unit.implementation-repository-preparation}
|
|
669
|
+
- {from: work-unit.prototype-design-v2, to: work-unit.implementation-repository-preparation}
|
|
648
670
|
- {from: work-unit.spec-synthesis, to: work-unit.slice-implementation}
|
|
649
|
-
- {from: work-unit.prototype-design, to: work-unit.slice-implementation}
|
|
671
|
+
- {from: work-unit.prototype-design-v2, to: work-unit.slice-implementation}
|
|
650
672
|
- {from: work-unit.technical-analysis, to: work-unit.slice-implementation}
|
|
651
673
|
- {from: work-unit.technical-analysis, to: work-unit.ticket-decomposition}
|
|
652
674
|
|
|
653
675
|
planning:
|
|
654
676
|
entry_validator: scripts/verify-plan-spec-entry
|
|
655
|
-
review_contract:
|
|
656
|
-
check_policy:
|
|
677
|
+
review_contract: .template-spec/plan/entry-review.md
|
|
678
|
+
check_policy: .template-spec/process/lifecycle-registry.yaml
|
|
657
679
|
default_check_status: pending
|
|
658
680
|
formal_spec_draft_requires_passed_entry: true
|
|
659
681
|
stage: stage.plan
|
|
660
682
|
record: artifact.plan-record
|
|
661
|
-
template:
|
|
662
|
-
exit_policy:
|
|
663
|
-
migration_policy:
|
|
683
|
+
template: .template-spec/plan/templates/plan-template.md
|
|
684
|
+
exit_policy: .template-spec/process/lifecycle-registry.yaml
|
|
685
|
+
migration_policy: .template-spec/process/plan-migration.md
|
|
664
686
|
critical_open_questions: block-before-spec
|
|
665
687
|
deferred_details_require: [noncritical_reason, owner, resolution_point, downstream_recipient]
|
|
666
688
|
reuse_requires: [source_ref, current_version, applicable_scope, reason]
|
|
@@ -805,7 +827,7 @@ scaffold_architecture_decision:
|
|
|
805
827
|
display_name: MVC 开发脚手架
|
|
806
828
|
recommendation_signals: [crud, reporting-query, data-transformation, external-system-orchestration, thin-domain]
|
|
807
829
|
platform_choice:
|
|
808
|
-
source:
|
|
830
|
+
source: .template-spec/engineering/backend-platforms.json
|
|
809
831
|
confirms: [platform_profile, spring_boot_version, java_version]
|
|
810
832
|
version_format: exact-patch
|
|
811
833
|
latest_or_range: forbidden
|
|
@@ -855,7 +877,7 @@ backend_scaffold:
|
|
|
855
877
|
contract_schema:
|
|
856
878
|
schema_version: 4
|
|
857
879
|
current_schema_version: 4
|
|
858
|
-
schema_ref:
|
|
880
|
+
schema_ref: .template-spec/process/schemas/project-scaffold-contract.schema.json
|
|
859
881
|
compatible_backend_versions: [3, 4]
|
|
860
882
|
frontend_minimum_version: 4
|
|
861
883
|
identity: service-engineering-baseline
|
|
@@ -878,9 +900,9 @@ backend_scaffold:
|
|
|
878
900
|
component_version_policy: per-artifact-from-verified-component-capabilities
|
|
879
901
|
profiles:
|
|
880
902
|
discriminant: architecture_family
|
|
881
|
-
source:
|
|
903
|
+
source: .template-spec/engineering/backend-platforms.json
|
|
882
904
|
platform_binding: platform_configuration-v2
|
|
883
|
-
architecture_profiles_source:
|
|
905
|
+
architecture_profiles_source: .template-spec/agents/yss-skill-registry.yaml
|
|
884
906
|
unsupported: [old-architecture-profile, arbitrary-module-combination, unverified-platform-or-component-capability]
|
|
885
907
|
module_profile:
|
|
886
908
|
required: [requested_capabilities, resolved_modules, resolution_version]
|
|
@@ -1048,7 +1070,7 @@ frontend_implementation_plan:
|
|
|
1048
1070
|
applies_when: [ui_impact]
|
|
1049
1071
|
required_before: [ready_for_agent]
|
|
1050
1072
|
required: [prototype_ref, spec_ref, visual_baseline, route_and_page_inventory, baseline_case_ids, desktop_viewport, narrow_viewport, state_cases, pnpm_commands]
|
|
1051
|
-
schema:
|
|
1073
|
+
schema: .template-spec/process/schemas/frontend-implementation-evidence.schema.json
|
|
1052
1074
|
validator: scripts/verify-frontend-implementation-evidence
|
|
1053
1075
|
acceptance: [kind_plan, template_false, status_approved, no_template_placeholders, readable_baseline_refs, approved_visual_baseline_digest_current, selected_case_ids_exist]
|
|
1054
1076
|
|
|
@@ -1057,7 +1079,7 @@ frontend_implementation_verification:
|
|
|
1057
1079
|
required_before: [release]
|
|
1058
1080
|
required: [prototype_ref, spec_ref, visual_baseline, route_and_page_inventory, case_results, interaction_results, console_warning_check, pnpm_commands, actual_verification, uncovered_differences, difference_owner]
|
|
1059
1081
|
verification: [actual_command, exit_code, executed_at, evidence_ref]
|
|
1060
|
-
schema:
|
|
1082
|
+
schema: .template-spec/process/schemas/frontend-implementation-evidence.schema.json
|
|
1061
1083
|
validator: scripts/verify-frontend-implementation-evidence
|
|
1062
1084
|
acceptance: [kind_verification, template_false, status_approved, no_template_placeholders, visual_baseline_identity_and_digest_match, case_results_pair_every_selected_case, no_unexplained_difference, console_warning_pass, pnpm_exit_codes_zero, independent_review_approved]
|
|
1063
1085
|
blocked_when: [unexplained_visual_difference, missing_visual_evidence, typecheck_only, claimed_alignment_without_evidence]
|
|
@@ -1182,8 +1204,8 @@ behavioral_invariants:
|
|
|
1182
1204
|
diagnostics_redact_secrets: true
|
|
1183
1205
|
|
|
1184
1206
|
user_decision_evidence:
|
|
1185
|
-
policy_ref:
|
|
1186
|
-
schema_ref:
|
|
1207
|
+
policy_ref: .template-spec/agents/digital-human-roles.yaml#user_decision_policy
|
|
1208
|
+
schema_ref: .template-spec/process/schemas/user-decision.schema.json
|
|
1187
1209
|
protocol_ref: references/user-decisions.md
|
|
1188
1210
|
verifier: scripts/verify-user-decision
|
|
1189
1211
|
workflow_result_fields: [user_decisions, user_decision_not_applicable]
|
|
@@ -1195,8 +1217,8 @@ user_decision_evidence:
|
|
|
1195
1217
|
basis_changed: revalidate_then_continue_only_with_independent_equivalence_evidence
|
|
1196
1218
|
|
|
1197
1219
|
gate_consolidation:
|
|
1198
|
-
source:
|
|
1199
|
-
check_policy:
|
|
1220
|
+
source: .template-spec/process/lifecycle-registry.yaml
|
|
1221
|
+
check_policy: .template-spec/agents/digital-human-roles.yaml
|
|
1200
1222
|
checks: automatic_or_independent_review_without_separate_user_decision
|
|
1201
1223
|
check_failure: blocks_aggregate_gate
|
|
1202
1224
|
plan_decision_boundary: gate.plan-approved
|
|
@@ -1220,7 +1242,7 @@ execution_scopes:
|
|
|
1220
1242
|
validator: scripts/lib/lifecycle-execution-scope.mjs
|
|
1221
1243
|
terminal_work_unit: work-unit.backend-delivery
|
|
1222
1244
|
terminal_record: .yss-backend-delivery.json
|
|
1223
|
-
allowed_work_units: [work-unit.entry-triage, work-unit.plan-opportunity, work-unit.plan-requirements, work-unit.domain-strategy-design, work-unit.stage-decision, work-unit.spec-synthesis, work-unit.prototype-design, work-unit.technical-analysis, work-unit.implementation-repository-preparation, work-unit.scaffold-generation, work-unit.ticket-decomposition, work-unit.slice-implementation, work-unit.code-review, work-unit.backend-delivery]
|
|
1245
|
+
allowed_work_units: [work-unit.entry-triage, work-unit.plan-opportunity, work-unit.plan-requirements, work-unit.domain-strategy-design, work-unit.stage-decision, work-unit.spec-synthesis, work-unit.prototype-design-v2, work-unit.technical-analysis, work-unit.implementation-repository-preparation, work-unit.service-project-initialization, work-unit.scaffold-generation, work-unit.ticket-decomposition, work-unit.slice-implementation, work-unit.code-review, work-unit.backend-delivery]
|
|
1224
1246
|
route_overrides:
|
|
1225
1247
|
work-unit.code-review: [work-unit.slice-implementation, work-unit.backend-delivery]
|
|
1226
1248
|
work-unit.slice-implementation: [work-unit.code-review]
|
|
@@ -1251,8 +1273,8 @@ consumer_entry_routes:
|
|
|
1251
1273
|
target_work_unit: work-unit.technical-design
|
|
1252
1274
|
|
|
1253
1275
|
stage_tracking:
|
|
1254
|
-
contract:
|
|
1255
|
-
schema:
|
|
1276
|
+
contract: .template-spec/process/stage-tracking.md
|
|
1277
|
+
schema: .template-spec/process/schemas/stage-tracking.schema.json
|
|
1256
1278
|
verifier: scripts/stage-tracking
|
|
1257
1279
|
configuration: tracker.lifecycle_tracking_version
|
|
1258
1280
|
machine_state_owner: checkpoint.stage_tracking
|
|
@@ -2,17 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
## 有界推进循环
|
|
4
4
|
|
|
5
|
-
1. 按 `orchestration-contract.yaml.request_triage` 理解请求并选择模式,再识别仓库身份、任务规模和影响面;问题理解与澄清细节见 [请求分诊协议](request-triage.md)
|
|
5
|
+
1. 按 `orchestration-contract.yaml.request_triage` 理解请求并选择模式,再识别仓库身份、任务规模和影响面;问题理解与澄清细节见 [请求分诊协议](request-triage.md)。查看已有项目进度可用 `scripts/lifecycle-status --root <项目> --checkpoint <引用>` 读取当前阶段、阻塞、负责人和下一动作;此视图不推进状态或代替流转校验。
|
|
6
6
|
2. `setup readiness`:每个任务只执行一次,核对 tracker、五态标签和领域文档布局,并在本轮缓存结果;仅在 tracker、主远端、真实标签或配置变化时重查。
|
|
7
|
-
3. 加载父 Ticket/checkpoint 与真实资产,计算最近可信阶段;按
|
|
7
|
+
3. 加载父 Ticket/checkpoint 与真实资产,计算最近可信阶段;按 `.template-spec/process/stage-tracking.md` 登记、恢复并核验当前阶段工作项,写入前确保 checkpoint 已持久化,工作单元结果带 checkpoint_ref。
|
|
8
8
|
4. 评估资产、门禁和 `stale`,选择第一个未阻塞工作单元。进入 `work-unit.slice-implementation` 前,必须先通过 `scripts/lib/lifecycle-transition.mjs` 的 Ticket 正式化、垂直切片绑定和合法 `next_route` 校验;父 Ticket、缺少垂直切片或 `ready-for-human` 的切片一律 `blocked`。
|
|
9
|
-
5. 执行最小生命周期工作单元:主控先按
|
|
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
12
|
不要仅输出下一个提示词后结束 `orchestrate`/`resume`。不要因进入业务代码阶段而退出主控;应把实现交给专项 skill,并在返回后继续核验。
|
|
13
13
|
|
|
14
14
|
连续阶段自动推进时累积 Ticket 同步和 Git 判断证据,在阶段退出、人工暂停、handoff、进入实现、合并或发布边界集中 checkpoint。发生阻塞、责任人变化或资产需要单独批准时立即落 checkpoint,不因合并记录而丢失阶段因果关系。
|
|
15
15
|
|
|
16
|
+
## 状态查看与中断恢复
|
|
17
|
+
|
|
18
|
+
`lifecycle-status` 保留原 JSON 字段,并以 `verification_scope` 区分已检查、失败、未检查和不适用;`diagnostics` 给出来源、已有负责人及恢复建议,`next_step` 给出前置条件和可用的命令参数数组。`blockers: []` 仅表示本次读取未发现阻塞,退出 0 不证明批准有效或允许实现。视图只写 stdout,不调用完整验证、远端或状态写入;缺少预检脚本时显示缺口,不能猜命令。
|
|
19
|
+
|
|
20
|
+
恢复按合同 `execution_efficiency.recovery` 执行:读取当前 checkpoint、阶段工作项、任务包和真实结果,先识别运行中任务、已有完成证据及操作已完成但尚未登记的情况。运行中或结果未知时核对原任务身份,不因缺少摘要再次派发;已有完成证据须先复核新鲜度,再计算下一单元。外部动作缺可查询结果时报告缺口,不能重做副作用。
|
|
21
|
+
|
|
22
|
+
上游变化按既有依赖关系使受影响资产过期,保留未受影响工作和历史记录;恢复、派发和交付边界仍执行适用 Context、决定/延续、门禁、仓库和允许写范围的校验。核验后输入变化即重验。有效授权不重复询问;未知或实质变化回交原责任方。历史实例缺 stage_tracking 时按已登记兼容和显式迁移入口处理,状态查询不自动补写。
|
|
23
|
+
|
|
16
24
|
## 执行成本
|
|
17
25
|
|
|
18
26
|
执行策略以 `orchestration-contract.yaml.execution_efficiency` 为准,通过同一次 `query-lifecycle-context` 查询取得。Plan → Spec → Ticket 的耗时应分清脚本执行、Agent 读取与编排、人工等待;没有计时记录时不把总时长归因于摘要计算。
|
|
@@ -41,11 +49,11 @@ Matt phase boundary 是工作阶段之间的上下文决策,不是新的生命
|
|
|
41
49
|
|
|
42
50
|
所有命中项目必须达到 `existing-and-onboarded` 或 `initialized-and-verified`,未命中的交付面必须有带原因的 `not-applicable`。聚合结果、Manifest、验证和 onboarding 证据必须可读且当前;否则 `check.implementation-repositories-ready` 阻断 Ticket 正式化。旧实例恢复时保留已有 Ticket,但将相关 Ticket / Slice Contract 标为 `blocked` / `stale` 并返回本工作单元。
|
|
43
51
|
|
|
44
|
-
`prototype_confirmation` 通过后,先判断实现仓库登记中的 backend `scaffold_status`。当状态为 `required` 时,在进入 DDD / MVC 分支设计前完成 `gate.backend-architecture-platform-approved`:Agent 按领域复杂度给出 `domain-driven` / `layered-mvc` 推荐和依据,并从
|
|
52
|
+
`prototype_confirmation` 通过后,先判断实现仓库登记中的 backend `scaffold_status`。当状态为 `required` 时,在进入 DDD / MVC 分支设计前完成 `gate.backend-architecture-platform-approved`:Agent 按领域复杂度给出 `domain-driven` / `layered-mvc` 推荐和依据,并从 `.template-spec/engineering/backend-platforms.json` 展示可选平台的精确 Spring Boot 补丁版本与 Java 版本;用户在同一次决定中确认架构与平台。本体选择作为子项目预填默认值,用户可批量确认全部项目或逐项覆盖。选择写入 `scaffold-architecture-decisions.yaml`;处于 `undecided`、`recommended`、`awaiting-user-decision` 或 `stale` 时必须阻断,不得默认 DDD、MVC 或 Spring Boot 版本,也不得在生成器内交互。既有工程使用当前 `existing-registration` 的架构及固定工程基线/POM 中的实际 Spring Boot 版本,核验摘要和支持状态后将该门禁记录为 `not-applicable`,不重复询问;架构转换或平台升级另行立项。
|
|
45
53
|
|
|
46
|
-
`gate.backend-architecture-platform-approved` 通过、选择达到 `lifecycle-approved` 且 digest 当前后,才可进入对应的 DDD 战术设计或 MVC 技术设计分支,再完成批准且当前的 Technical Design、Data Architecture Decision v1 和 API Contract Decision v1
|
|
54
|
+
`gate.backend-architecture-platform-approved` 通过、选择达到 `lifecycle-approved` 且 digest 当前后,才可进入对应的 DDD 战术设计或 MVC 技术设计分支,再完成批准且当前的 Technical Design、Data Architecture Decision v1 和 API Contract Decision(新建 v2;历史 v1 只读兼容,准备与迁移见 `.template-spec/process/contract-reading.md`)。数据与 API 均按影响强制:命中则绑定设计及评审闭包,未命中则绑定评估、明确原因和证据。再由 `yss-implementation-contract-compiler` 编译脚手架 schema v4 `controlled-generation` 工作单元合同。顺序为:工程基线与架构/平台推荐 → 用户确认与选择持久化 → DDD / MVC 分支设计 → 技术/数据/API 设计 → 工程合同原子批准 → 脚手架合同持久化 → `domain-driven` 使用 `yss-ddd-scaffold-generator` 或 `layered-mvc` 使用 `yss-layered-mvc-scaffold-generator` → 对应基线/Manifest v4 校验 → 仓库准备 v2 → 实现合同编译器业务合同重编译。`existing` / `initialized` 不重复生成;架构转换或平台升级必须单独立项。schema v3 只允许历史 Manifest 的只读恢复审计,不得新生成。
|
|
47
55
|
|
|
48
|
-
脚手架工作单元必须使用结构化 schema v4 合同 JSON,除工程身份、架构决定、Profile、模块闭包、允许路径和验证命令外,必须以原始字节 digest 绑定 Technical Design、Data Architecture Decision v1、API Contract Decision v1 和 `gate.engineering-contract-approved` 的真实批准记录。API `required` 时 Draft、Validation、独立 Review、Freeze 与工程批准必须绑定同一 OpenAPI YAML 字节;`not-applicable` 时不得携带空占位资产。生成器在创建输出目录前读取并校验所有引用、版本、主体、gate、批准范围、资产绑定与摘要;虚构 URI、字符串自证或仅有 `status: approved` 均无效。三条 Wrapper 命令必须由受控工作单元真实执行并留存证据。非空目标、`--force`、旧项目迁移和模板升级均阻断。脚手架不得生成 Controller、Repository 实现、SQL、领域行为、业务规则、状态机、权限、事务、复杂查询、错误映射、用户可见行为或示例业务 API;`empty-scaffold-verified` 仍不是 `ready-for-agent`。
|
|
56
|
+
脚手架工作单元必须使用结构化 schema v4 合同 JSON,除工程身份、架构决定、Profile、模块闭包、允许路径和验证命令外,必须以原始字节 digest 绑定 Technical Design、Data Architecture Decision v1、API Contract Decision(新建 v2;历史 v1 只读兼容,准备与迁移见 `.template-spec/process/contract-reading.md`) 和 `gate.engineering-contract-approved` 的真实批准记录。API `required` 时 Draft、Validation、独立 Review、Freeze 与工程批准必须绑定同一 OpenAPI YAML 字节;`not-applicable` 时不得携带空占位资产。生成器在创建输出目录前读取并校验所有引用、版本、主体、gate、批准范围、资产绑定与摘要;虚构 URI、字符串自证或仅有 `status: approved` 均无效。三条 Wrapper 命令必须由受控工作单元真实执行并留存证据。非空目标、`--force`、旧项目迁移和模板升级均阻断。脚手架不得生成 Controller、Repository 实现、SQL、领域行为、业务规则、状态机、权限、事务、复杂查询、错误映射、用户可见行为或示例业务 API;`empty-scaffold-verified` 仍不是 `ready-for-agent`。
|
|
49
57
|
|
|
50
58
|
脚手架完成后,所有后续生成的后端代码仍必须重新消费当前版本的批准 Slice Implementation Contract、YSS skill 依赖闭包、允许写路径、预期证据和 Execution Result。业务行为使用 `behavior-tdd`;只有机械结构、样板、配置和冻结客户端使用 `controlled-generation`。缺少合同、skill、证据或实际验证时立即阻断;生成范围从机械内容变成业务行为时触发完整重路由。
|
|
51
59
|
|
|
@@ -61,9 +69,9 @@ Readiness 结果在同一任务内复用。只有 tracker、主远端、真实
|
|
|
61
69
|
| `degraded` | 已选择的 GitHub/GitLab 不可用 | 建 `docs/.scratch/<feature>/` 待发布草案,不改投平台 |
|
|
62
70
|
| `not-applicable` | `template-source` | 只验证模板契约 |
|
|
63
71
|
|
|
64
|
-
远程 tracker 必须检查真实标签;Local Markdown 必须检查功能包目录和 Ticket 顶部的 `Status:`。仅有
|
|
72
|
+
远程 tracker 必须检查真实标签;Local Markdown 必须检查功能包目录和 Ticket 顶部的 `Status:`。仅有 `.template-spec/agents/triage-labels.md` 不代表远程标签存在,也不能替代 Local 文件状态检查。
|
|
65
73
|
|
|
66
|
-
tracker 选择和冲突按
|
|
74
|
+
tracker 选择和冲突按 `.template-spec/agents/issue-tracker.md` 裁决:已持久化 tracker 配置优先,本模板默认 `local-markdown`,Local root 为 `docs/.scratch/`;用户在初始化/迁移时明确选择 GitHub/GitLab 后才切换,Git remote 只代表代码托管。Local 主 tracker 不要求远程 Ticket;只有已选择远程平台但凭据不可用时,才降级为 `docs/.scratch/<feature>/` 待发布草案,不自动改投其他平台。发现根 `.scratch/` 或 `docs/requirements/tickets/` 旧资产时,保留 `migration_ref` 并暂停写入;新旧路径同时存在时返回 `conflict`。恢复前记录最终平台、真实五态标签或 Local `Status:` 检查结果和草案位置。
|
|
67
75
|
|
|
68
76
|
## Matt flow 进入条件
|
|
69
77
|
|
|
@@ -78,11 +86,11 @@ tracker 选择和冲突按 `docs/agents/issue-tracker.md` 裁决:已持久化
|
|
|
78
86
|
|
|
79
87
|
## 审查与验证
|
|
80
88
|
|
|
81
|
-
- 调用 `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
|
|
89
|
+
- 调用 `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 不可解析时阻断。
|
|
82
90
|
- 小改动和中等变更可由同一独立执行者完成 `code-review` 与 fresh verification,并在同一报告中分别记录 findings、命令、结果和残余风险。
|
|
83
91
|
- 该执行者必须独立于实现者;新模块、高风险变更、职责冲突或需双人控制时,Reviewer 与 Verifier 分开。
|
|
84
92
|
- `code-review` 是唯一默认代码审查 skill。GitLab、CI、Sonar、Alibaba Java 与 YSS 前端 / 后端 skill 作为仓库规则或专项检查输入接入 Standards 轴,由 `review_standards_route` 按影响面编译;不再叠加第二个通用审查 skill。漏掉合同 `required_skills`、适用报告行空白、mandatory `violation` 未关闭或可机器检查规则既无工具结果也无原文引用时,不得 `completed`。
|
|
85
|
-
- 产品切片与模板维护共用 finding 分类;产品切片执行下述候选审查闭环,模板维护按
|
|
93
|
+
- 产品切片与模板维护共用 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 新增生物人豁免门禁。
|
|
86
94
|
- 独立 Reviewer 必须与实现者不同实例,并在能执行已登记 `pnpm` / `./mvnw` 的运行时中审查。模板源 `.cursor/environment.json` 只服务模板校验,不替代实现仓审查运行时。不为此再创建第二个 Cloud 审查环境或 `/code-review` skill。
|
|
87
95
|
- UI 影响切片将 `UI fidelity` 作为 `code-review` 的条件第三轴;任何修复都会使候选摘要失效,必须重新捕获候选并重跑 Standards、Spec、UI fidelity 和 fresh verification。
|
|
88
96
|
|
|
@@ -98,7 +106,7 @@ tracker 选择和冲突按 `docs/agents/issue-tracker.md` 裁决:已持久化
|
|
|
98
106
|
|
|
99
107
|
## 必须暂停
|
|
100
108
|
|
|
101
|
-
- 注册表中的聚合门禁等待会签裁决(数字人或生物人,以
|
|
109
|
+
- 注册表中的聚合门禁等待会签裁决(数字人或生物人,以 `.template-spec/agents/digital-human-roles.yaml` 的 `gate_policy` 为准)。暂停输出必须包含:门禁 ID、指定 `role_id`、`runtime_id`、会签文件路径。恢复前执行 `scripts/verify-approval-record --require-approved`;角色错误、起草者自签或生物人门禁被数字人关闭时返回 `blocked`,不得标 `approved`。
|
|
102
110
|
- 需要目标仓库、外部凭据、发布窗口或其他新授权。
|
|
103
111
|
- 状态与证据冲突且无法可靠重建。
|
|
104
112
|
- 专项 skill 失败或返回不可验收结果。
|
|
@@ -129,7 +137,7 @@ Decision ticket 产生决策,不是实现切片,不得标记 `ready-for-agen
|
|
|
129
137
|
|
|
130
138
|
Prototype 回流必须有可核验证据:来源 handoff、prototype 资产或运行记录、结论、被更新的 Spec/设计/ADR/Ticket 引用、剩余未决项和返回 handoff。仅在对话中声称“已验证”不算回流完成。
|
|
131
139
|
|
|
132
|
-
Matt `prototype` 的回流还必须注明 `prototype_branch`,并保留单文件 HTML 主来源;该结果只能作为 YSS 原型输入,仍须完成阶段 4 的低保真评审、H1/H2 档位路由、schema
|
|
140
|
+
Matt `prototype` 的回流还必须注明 `prototype_branch`,并保留单文件 HTML 主来源;该结果只能作为 YSS 原型输入,仍须完成阶段 4 的低保真评审、H1/H2 档位路由、schema v4 验证和用户确认,不得用 throwaway prototype 替代。
|
|
133
141
|
|
|
134
142
|
`to-questionnaire` 未收到答案时使用 `external-input-required` 暂停,记录问卷、接收人、所需输出和恢复路由;收到答案后记录 response、重新分类影响面和更新后的权威资产,再回到 `grill-with-docs` 或 `to-spec`。
|
|
135
143
|
|
|
@@ -147,8 +155,8 @@ Checkpoint 中已批准门禁必须带 `basis: [{ref, digest}]` 和按 `evidence
|
|
|
147
155
|
|
|
148
156
|
## 专项合同加载索引
|
|
149
157
|
|
|
150
|
-
专项加载提示:实现仓库与脚手架查询 `implementation_repository_preparation`、`backend_scaffold`;切片实现查询 `ticket_formalization`、`ready_for_agent`;UI 查询 `frontend_implementation_plan`、`frontend_implementation_verification`;审查查询 `review_input`;发布查询 `release_readiness`、`git_authorization`、`user_decision_evidence`;战略交接读取
|
|
158
|
+
专项加载提示:实现仓库与脚手架查询 `implementation_repository_preparation`、`backend_scaffold`;切片实现查询 `ticket_formalization`、`ready_for_agent`;UI 查询 `frontend_implementation_plan`、`frontend_implementation_verification`;审查查询 `review_input`;发布查询 `release_readiness`、`git_authorization`、`user_decision_evidence`;战略交接读取 `.template-spec/process/strategic-handoff-package.md` 并按其中验证器执行。
|
|
151
159
|
|
|
152
160
|
## 后端脚手架平台
|
|
153
161
|
|
|
154
|
-
在工程基线中合并展示、确认架构和 Boot 精确版本、Java、YSS 父 POM/BOM;缺少选择时询问,当前批准可复用。独立子项目可继承或覆盖,并可一次确认明确列出的多个项目。同一 Maven 工程统一平台。执行 `scripts/backend-platforms` 展示兼容状态;只允许已验证组合。决定、合同、Manifest 和下游身份绑定同一平台摘要;变更重新确认。合同见仓库
|
|
162
|
+
在工程基线中合并展示、确认架构和 Boot 精确版本、Java、YSS 父 POM/BOM;缺少选择时询问,当前批准可复用。独立子项目可继承或覆盖,并可一次确认明确列出的多个项目。同一 Maven 工程统一平台。执行 `scripts/backend-platforms` 展示兼容状态;只允许已验证组合。决定、合同、Manifest 和下游身份绑定同一平台摘要;变更重新确认。合同见仓库 `.template-spec/engineering/backend-platforms.md`。
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
|
|
15
15
|
“帮我修复”“开始实施”等明确行动请求可选择有界执行;“只讨论”“不要改文件”限制当前范围。“继续”只恢复已明确且仍有效的动作,不扩展授权。仅“能否优化”可能是评估请求,应结合上下文判断;不得用关键词匹配替代理解。
|
|
16
16
|
|
|
17
|
+
明确要求“查一下”“排查”时,即使首步仅为只读取证,也用 `orchestrate` 推进调查;`route` 留给咨询、澄清和明确只讨论的请求。取证不扩大成代码修改授权。
|
|
18
|
+
|
|
17
19
|
模式选择不代替仓库身份、实现合同、用户决定或 Git/发布授权检查。排查授权不自动包含修改;实现缺少前置条件时说明具体阻塞并推进可独立开展的授权工作。用户请求简单咨询时直接回答,不创建流程产物。
|
|
18
20
|
|
|
19
21
|
“排查慢接口,并评估是否重构”包含两个目标:先取得性能证据,再评估重构;不能把评估自动升级为重构实施。将每个目标的下一动作和依赖带入任务包,返回时逐项验收。复杂请求只需向用户简述理解和下一步,不强制每次确认复述。
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
| `tracker.kind` | `local-markdown`、`github`、`gitlab` |
|
|
13
13
|
| `ticket.role` | `needs-triage`、`needs-info`、`ready-for-agent`、`ready-for-human`、`wontfix` |
|
|
14
14
|
|
|
15
|
-
Matt 五态不得扩义。资产的 `ready-for-human` 与 Ticket label 必须带命名空间表达。`paused-human-gate` 表示等待
|
|
15
|
+
Matt 五态不得扩义。资产的 `ready-for-human` 与 Ticket label 必须带命名空间表达。`paused-human-gate` 表示等待 `.template-spec/agents/digital-human-roles.yaml` 指定的会签人(数字人或生物人),不是「必须是生物人」。但 `user_decision_policy` 命中的关键决定还必须有真实用户回复,数字人会签不能解除该等待。
|
|
16
16
|
|
|
17
17
|
Slice v3 冻结需求文件的 status 是冻结时快照,不能用来推断当前执行状态。状态流转和验收结果写入已配置主 tracker / 任务包;需求改版后重新编译、审查与绑定批准,见 [Slice 冻结需求协议](../../yss-implementation-contract-compiler/references/slice-implementation-contract.md#第二轮增量规则)。
|
|
18
18
|
|
|
@@ -71,13 +71,13 @@ AND UI 影响切片的前端实现还原计划已通过 schema 校验、`templat
|
|
|
71
71
|
|
|
72
72
|
## Review 与 Git 授权状态
|
|
73
73
|
|
|
74
|
-
进入代码审查时保存 `review_mode`、`review_base_ref`、`implementation_candidate_ref`、`candidate_snapshot_ref`、`candidate_digest` 及 Spec、Ticket、合同、Checklist、YSS Execution Result 引用,并记录专项检查覆盖与机器检查结果。`worktree` 候选必须一次捕获 committed、staged、unstaged 和 untracked 文件;manifest 的按模式必填字段以及 `yss-worktree-candidate-v1`(raw path、uint64 big-endian 长度、tracked/untracked record、symlink 和不支持条目)以 `orchestration-contract.yaml.review_input`
|
|
74
|
+
进入代码审查时保存 `review_mode`、`review_base_ref`、`implementation_candidate_ref`、`candidate_snapshot_ref`、`candidate_digest` 及 Spec、Ticket、合同、Checklist、YSS Execution Result 引用,并记录专项检查覆盖与机器检查结果。`worktree` 候选必须一次捕获 committed、staged、unstaged 和 untracked 文件;manifest 的按模式必填字段以及 `yss-worktree-candidate-v1`(raw path、uint64 big-endian 长度、tracked/untracked record、symlink 和不支持条目)以 `orchestration-contract.yaml.review_input` 为唯一执行定义。所有参与审查者(人数按 `orchestration-contract.yaml.gate_consolidation`) 消费同一不可变快照;返回后或完成 checkpoint 摘要变化则返回 `blocked` 并重新审查。Finding 分流不新增生命周期状态:`violation` 仍在当前合同路径由实现者修复后复审;`drift` / `new_impacts` 把合同标 `stale` 并走既有重路由。该清单只作为审查证据。
|
|
75
75
|
|
|
76
76
|
Git 动作分别保存 `commit_authorized`、`commit_scope`、`commit_authorization_ref`、`push_authorized`、`push_scope`、`push_authorization_ref`。只有授权值严格为 `true`、范围和用户授权引用均非空时才执行相应动作;缺失授权时保持工作区不变并记录 checkpoint 判断。`git-submodule` 另保存每仓授权、`checkout_state` 和先子后父顺序;空 gitlink、detached HEAD 或 `--force` 覆盖挂载点时不得当成普通目录 commit / 脚手架。
|
|
77
77
|
|
|
78
78
|
## 状态块
|
|
79
79
|
|
|
80
|
-
状态块位于主 tracker 的功能父 Ticket,并使用
|
|
80
|
+
状态块位于主 tracker 的功能父 Ticket,并使用 `.template-spec/process/templates/lifecycle-checkpoint-template.yaml` 的结构化形状和 `lifecycle-checkpoint.schema.json` 校验;Local Markdown 使用 `docs/.scratch/<feature>/parent-ticket.md`,可将完整 checkpoint 保存在 `docs/.scratch/<feature>/gates/lifecycle-checkpoint.yaml` 后由父 Ticket 引用,远程 tracker 使用 Issue 并在本地功能包保留引用。平台不可用时才位于 stage checkpoint。只保存索引、状态、引用和因果关系:
|
|
81
81
|
|
|
82
82
|
```yaml
|
|
83
83
|
lifecycle:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 关键决策的真实用户回复协议
|
|
2
2
|
|
|
3
|
-
适用门禁、工作单元和条件事项只由
|
|
3
|
+
适用门禁、工作单元和条件事项只由 `.template-spec/agents/digital-human-roles.yaml.user_decision_policy` 定义。本协议解释执行和证据格式,不新增阶段、门禁或 Ticket 状态。专业审查记录与用户决定分别保存;关键决定缺少任一适用条件都不能放行。
|
|
4
4
|
|
|
5
5
|
## 六条执行规则
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
## 记录与来源
|
|
15
15
|
|
|
16
|
-
使用
|
|
16
|
+
使用 `.template-spec/process/schemas/user-decision.schema.json` 和 `.template-spec/process/templates/user-decision-template.yaml`。存于 `docs/.scratch/<feature>/decisions/<request-id>.yaml`;已展示的请求快照不改写,修改方案产生新请求并保留旧引用。请求中的 `subject` 指向可独立摘要的资产正文或冻结快照,批准记录另存,避免正文包含自己的批准摘要形成循环。`basis` 列出影响决定的额外冻结依据。
|
|
17
17
|
|
|
18
18
|
原始消息可由运行时直接读取,或保存为原始会话导出 / 用户提供的确认文件。跨平台统一捕获封装如下;字段必须来自原始来源,保留原始引用和完整原文,不能把 Agent 编写的摘要包装成来源:
|
|
19
19
|
|