create-yss-spec 3.5.6 → 3.5.8
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/content-identity.js +111 -0
- package/src/runtime-store.mjs +650 -0
- package/src/template/asset-runtime.js +4 -1
- package/src/template/instance-runtime.js +23 -7
- package/src/validation/metadata.js +8 -0
- package/template/.agents/skills/.strategic-design-skills-manifest.json +1 -1
- 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 +2 -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 +23 -21
- 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 +25 -5
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +100 -4
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration.md +35 -12
- 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-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-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 +2 -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 +23 -21
- 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 +25 -5
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +100 -4
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration.md +35 -12
- 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-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-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 +2 -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 +23 -21
- 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 +25 -5
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +100 -4
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +35 -12
- 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-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-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 +2 -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 +23 -21
- 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 +25 -5
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +100 -4
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration.md +35 -12
- 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-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-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/templates/competitive-analysis-template.md +38 -36
- package/template/.template-spec/plan/templates/competitive-matrix-template.md +37 -17
- 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/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/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 +62 -61
- 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
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
# [主题] 竞品深度分析报告
|
|
2
2
|
|
|
3
|
-
>
|
|
4
|
-
>
|
|
5
|
-
>
|
|
3
|
+
> 本文件是研究双文件的附属深度阅读材料,由 `competitive-intelligence` 执行分析、`yss-research` 持有模式和证据包,不能替代 `<slug>-research-brief.md`。
|
|
4
|
+
> 配套 `competitive-matrix-template.md` 用于横向功能矩阵。默认完整矩阵与深度报告同时输出;只选报告时第 5 节包含完整比较表,同时输出时引用同目录矩阵。
|
|
5
|
+
> 结论区分事实、推断、假设和建议并引用统一 Claim / Evidence。候选术语交给 `domain-modeling`,MVP、非目标和优先级交给 Plan / Spec 所有者;本研究不写入 `CONTEXT.md`、Spec、ADR、Ticket 状态或批准。
|
|
6
6
|
|
|
7
7
|
## 0. 文档信息
|
|
8
8
|
|
|
9
9
|
| 项 | 内容 |
|
|
10
10
|
|---|---|
|
|
11
11
|
| 调研主题 | [例如:数据中台数据建模] |
|
|
12
|
-
|
|
|
12
|
+
| 调研截至日期 | [YYYY-MM-DD,与 `competitive_analysis.as_of` 一致] |
|
|
13
13
|
| 调研对象 | [竞品 A] / [竞品 B] / [竞品 C] |
|
|
14
14
|
| 调研人 | [姓名 / Agent] |
|
|
15
15
|
| 资料边界 | [公开官网 / 官方文档 / 白皮书 / 访谈 / 试用环境] |
|
|
16
16
|
| 可信度说明 | [哪些信息已验证,哪些信息待验证] |
|
|
17
|
-
|
|
|
17
|
+
| Profile / 模式 | [`strategy-evidence` 或 `technical-evidence`] / [`evidence-audited`;探索材料注明未审计] |
|
|
18
|
+
| 输出选择 | [`report` 或 `both`] |
|
|
19
|
+
| 研究简报 / 证据 | [`<slug>-research-brief.md`] / [`<slug>-evidence.yaml`] |
|
|
20
|
+
| 关联矩阵 | [同时输出时链接 `<slug>-competitive-matrix.md`;仅报告时写比较表位于第 5 节] |
|
|
21
|
+
| 版本 / 套餐 / 地区范围 | [以第 5 节工具管理区为准;未确认字段写 `unknown`] |
|
|
22
|
+
| 审核与接收者 | [研究审核人、下游资产所有者和当前审核范围] |
|
|
18
23
|
|
|
19
24
|
## 1. 调研背景
|
|
20
25
|
|
|
@@ -56,16 +61,15 @@
|
|
|
56
61
|
2. [机会点 2]
|
|
57
62
|
3. [机会点 3]
|
|
58
63
|
|
|
59
|
-
## 3.
|
|
64
|
+
## 3. 定位与流程摘要
|
|
60
65
|
|
|
61
|
-
>
|
|
66
|
+
> 本节综合定位与流程并引用 Claim;功能支持状态和比较范围以第 5 节工具管理区或其关联矩阵为准,避免另写一份功能事实表。
|
|
62
67
|
|
|
63
68
|
| 维度 | [竞品 A] | [竞品 B] | [竞品 C] |
|
|
64
69
|
|---|---|---|---|
|
|
65
70
|
| 核心定位 | | | |
|
|
66
71
|
| 目标用户 | | | |
|
|
67
72
|
| 核心流程 | | | |
|
|
68
|
-
| 关键能力 | | | |
|
|
69
73
|
| 差异化亮点 | | | |
|
|
70
74
|
| 公开资料成熟度 | 高 / 中 / 低 | 高 / 中 / 低 | 高 / 中 / 低 |
|
|
71
75
|
|
|
@@ -79,9 +83,7 @@
|
|
|
79
83
|
|
|
80
84
|
#### 4.1.2 功能设计
|
|
81
85
|
|
|
82
|
-
|
|
83
|
-
|---|---|---|
|
|
84
|
-
| [模块] | [功能点] | [功能说明] |
|
|
86
|
+
[引用第 5 节比较结果的能力 ID 和 Claim,解释功能组织、对象与使用条件。不能在区外另行修改支持状态;推断说明依据。]
|
|
85
87
|
|
|
86
88
|
#### 4.1.3 使用 / 落地流程
|
|
87
89
|
|
|
@@ -109,9 +111,7 @@
|
|
|
109
111
|
|
|
110
112
|
#### 4.2.2 功能设计
|
|
111
113
|
|
|
112
|
-
|
|
113
|
-
|---|---|---|
|
|
114
|
-
| [模块] | [功能点] | [功能说明] |
|
|
114
|
+
[引用第 5 节比较结果的能力 ID 和 Claim,解释功能组织、对象与使用条件。不能在区外另行修改支持状态;推断说明依据。]
|
|
115
115
|
|
|
116
116
|
#### 4.2.3 使用 / 落地流程
|
|
117
117
|
|
|
@@ -139,9 +139,7 @@
|
|
|
139
139
|
|
|
140
140
|
#### 4.3.2 功能设计
|
|
141
141
|
|
|
142
|
-
|
|
143
|
-
|---|---|---|
|
|
144
|
-
| [模块] | [功能点] | [功能说明] |
|
|
142
|
+
[引用第 5 节比较结果的能力 ID 和 Claim,解释功能组织、对象与使用条件。不能在区外另行修改支持状态;推断说明依据。]
|
|
145
143
|
|
|
146
144
|
#### 4.3.3 使用 / 落地流程
|
|
147
145
|
|
|
@@ -161,13 +159,15 @@
|
|
|
161
159
|
- [不足或风险 1]
|
|
162
160
|
- [公开资料不足处]
|
|
163
161
|
|
|
164
|
-
## 5.
|
|
162
|
+
## 5. 功能比较
|
|
165
163
|
|
|
166
|
-
|
|
167
|
-
|---|---|---|---|---|---|
|
|
168
|
-
| [功能域] | [子功能] | ✅ / ⚠️ / ❌ / ❓ | ✅ / ⚠️ / ❌ / ❓ | ✅ / ⚠️ / ❌ / ❓ | P0 / P1 / P2 / 不做 |
|
|
164
|
+
状态口径:✅ 明确支持(`supported`);⚠️ 部分支持(`partial`,说明限制);❌ 明确不支持(`absent`,须有适用范围内的已审计依据);❓ 未知(`unknown`,说明缺口和补证计划)。资料不完整或搜索无结果不能推定部分支持或不支持。
|
|
169
165
|
|
|
170
|
-
|
|
166
|
+
以下管理区由 `render-competitive-outputs.mjs` 从 `competitive_analysis` 生成:仅报告时包含完整表;同时输出矩阵时包含同目录矩阵链接和证据摘要。管理区外保留本报告分析正文,不手写第二份比较事实。
|
|
167
|
+
|
|
168
|
+
<!-- YSS-COMPETITIVE:START -->
|
|
169
|
+
[工具管理区:先填写结构化结果,再运行渲染器;不手填比较事实。]
|
|
170
|
+
<!-- YSS-COMPETITIVE:END -->
|
|
171
171
|
|
|
172
172
|
## 6. 流程泳道图
|
|
173
173
|
|
|
@@ -192,19 +192,17 @@ flowchart LR
|
|
|
192
192
|
U1 --> P1 --> P2 --> O1 --> P3 --> O2 --> U2
|
|
193
193
|
```
|
|
194
194
|
|
|
195
|
-
## 7.
|
|
195
|
+
## 7. 能力评分(条件适用)
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
默认不生成数字排名。只有用户明确要求评分时,先确认量表、能力定义、维度 / 权重和评分依据再填写;否则本节写不适用及原因。未知写“不评分”,不能作为低分或零分,不能按未知项计算综合排名。
|
|
198
198
|
|
|
199
|
-
| 能力 | [竞品 A] | [竞品 B] | [竞品 C] |
|
|
200
|
-
|
|
201
|
-
| [能力
|
|
202
|
-
| [能力 2] | | | | [依据] |
|
|
203
|
-
| [能力 3] | | | | [依据] |
|
|
199
|
+
| 能力 ID | 已确认量表 / 权重 | [竞品 A] | [竞品 B] | [竞品 C] | Claim / 评分依据及限制 |
|
|
200
|
+
|---|---|---|---|---|---|
|
|
201
|
+
| [能力 ID] | [量表与确认来源] | [分值或不评分] | [分值或不评分] | [分值或不评分] | [依据与适用范围] |
|
|
204
202
|
|
|
205
203
|
## 8. Grilling 问题清单
|
|
206
204
|
|
|
207
|
-
>
|
|
205
|
+
> 本节整理供 Plan / Spec 所有者继续澄清的问题。术语、产品边界和重大取舍由各自所有者确认并写入权威资产;竞品研究只回传候选与依据。
|
|
208
206
|
|
|
209
207
|
1. 首要用户是谁?是否只能先服务一个角色?
|
|
210
208
|
2. 第一高频场景是什么?是新建、改造、迁移、治理,还是消费?
|
|
@@ -217,12 +215,14 @@ flowchart LR
|
|
|
217
215
|
|
|
218
216
|
## 9. 机会点
|
|
219
217
|
|
|
220
|
-
| 机会点 |
|
|
218
|
+
| 机会点 | 用户痛点与 Claim | 竞品现状 / 缺口及能力 ID | 实现难度与依据 | 优先级建议与理由 |
|
|
221
219
|
|---|---|---|---|---|
|
|
222
|
-
| [机会点] | [痛点] | [
|
|
220
|
+
| [机会点] | [痛点 / Claim] | [现状和已确认缺口,未知不算缺失] | [有依据时填写,否则待技术评估] | [交 Plan 所有者判断的建议] |
|
|
223
221
|
|
|
224
222
|
## 10. MVP 建议
|
|
225
223
|
|
|
224
|
+
> 以下范围和路线是研究建议,引用用户问题、业务约束与竞品 Claim,待 Plan 所有者确认;不构成已批准需求或实现授权。
|
|
225
|
+
|
|
226
226
|
### 10.1 MVP 目标
|
|
227
227
|
|
|
228
228
|
[用一段话说明 MVP 要帮助哪个用户,在什么场景下,完成什么最小闭环。]
|
|
@@ -251,11 +251,13 @@ flowchart LR
|
|
|
251
251
|
|
|
252
252
|
1. [补充调研 / 用户访谈 / 厂商验证]
|
|
253
253
|
2. [进入 work-unit.plan-requirements 继续澄清的问题]
|
|
254
|
-
3. [
|
|
255
|
-
4. [
|
|
254
|
+
3. [把已审计结论、候选术语、MVP / 非目标与成功标准建议回交对应所有者]
|
|
255
|
+
4. [由生命周期所有者判断进入 Spec 和后续工程契约 / 垂直切片 Ticket 的条件]
|
|
256
256
|
|
|
257
257
|
## 12. 参考资料
|
|
258
258
|
|
|
259
|
-
|
|
|
259
|
+
| Evidence / Claim ID | 来源与可定位链接 | 来源类别 | 来源日期 / 观察日期 | 限制与反向信号 |
|
|
260
260
|
|---|---|---|---|---|
|
|
261
|
-
| [
|
|
261
|
+
| [统一台账 ID] | [URL / 章节 / 记录] | [primary / direct-experience / near-primary 等] | [YYYY-MM-DD] | [抽样、访问、版本、独立性限制或反向来源] |
|
|
262
|
+
|
|
263
|
+
[引用同目录 evidence 文件中的统一台账,不另建事实台账。来源冲突、访问失败和未知项保留原因、补证动作及接收者;机械校验不能证明来源支持结论,研究审核须核对实质 Claim。]
|
|
@@ -1,28 +1,48 @@
|
|
|
1
|
-
# 竞品功能矩阵
|
|
1
|
+
# [主题] 竞品功能矩阵
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> 本文件是研究双文件的附属阅读材料。审计模式由 `yss-research` 持有证据,`competitive-intelligence` 执行分析;比较事实来自同目录 evidence 文件的 `competitive_analysis`,分析正文需由研究审核者核验。
|
|
4
|
+
> ✅ 明确支持(`supported`)|⚠️ 部分支持(`partial`)|❌ 明确不支持(`absent`)|❓ 未知(`unknown`)。未查到资料不能证明不支持;未知不能归入部分支持。
|
|
5
|
+
|
|
6
|
+
## 文档信息
|
|
7
|
+
|
|
8
|
+
| 项 | 内容 |
|
|
9
|
+
|---|---|
|
|
10
|
+
| 调研主题与读者 | [主题 / 读者] |
|
|
11
|
+
| Profile / 模式 | [`strategy-evidence` 或 `technical-evidence`] / [`quick` 或 `evidence-audited`] |
|
|
12
|
+
| 研究简报 / 证据 | [`<slug>-research-brief.md`] / [`<slug>-evidence.yaml`] |
|
|
13
|
+
| 关联深度报告 | [选定报告时填写同目录链接;仅矩阵时写不适用及原因] |
|
|
14
|
+
| 审核与限制 | [审核人 / 审核范围 / 未覆盖事项;普通探索明确未审计] |
|
|
4
15
|
|
|
5
16
|
## 竞品概览
|
|
6
17
|
|
|
7
|
-
| 竞品 | 类型 | 目标用户 | 核心定位 |
|
|
8
|
-
|
|
9
|
-
| | | | |
|
|
18
|
+
| 竞品 ID / 名称 | 类型 | 目标用户 | 核心定位 | Claim / 来源 |
|
|
19
|
+
|---|---|---|---|---|
|
|
20
|
+
| [稳定 ID / 名称] | [直接 / 间接 / 替代方案] | [用户] | [定位] | [Claim ID / 可定位来源] |
|
|
10
21
|
|
|
11
22
|
## 功能矩阵
|
|
12
23
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
| (按需扩展) | | | | | |
|
|
24
|
+
以下区域由 `render-competitive-outputs.mjs` 根据 `competitive_analysis` 生成,包含截至日期、比较范围、产品 / 版本 / 套餐 / 地区、能力定义、状态表和证据 / 缺口摘要。未确认范围写 `unknown`,完整覆盖每个竞品 × 能力。
|
|
25
|
+
|
|
26
|
+
<!-- YSS-COMPETITIVE:START -->
|
|
27
|
+
[工具管理区:先填写结构化结果,再运行渲染器;不手填比较事实。]
|
|
28
|
+
<!-- YSS-COMPETITIVE:END -->
|
|
19
29
|
|
|
20
30
|
## 差异化亮点
|
|
21
|
-
(每个竞品的独特优势)
|
|
22
31
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
32
|
+
[按竞品说明优势、适用用户与条件,引用 Claim / 来源。推断写明依据;功能支持状态仅以管理区为准。]
|
|
33
|
+
|
|
34
|
+
## 功能空白与产品机会
|
|
35
|
+
|
|
36
|
+
未知不能算作竞品缺失。下表为待 Plan 所有者判断的建议;实现难度只有依据时填写,未评估写待技术评估。
|
|
37
|
+
|
|
38
|
+
| 机会点 | 用户痛点与依据 | 竞品现状及限制 | 建议与理由 | 待验证问题 |
|
|
39
|
+
|---|---|---|---|---|
|
|
40
|
+
| [机会] | [Claim / 来源] | [关联能力 ID / Claim] | [候选范围或优先级建议] | [补证动作与接收者] |
|
|
41
|
+
|
|
42
|
+
## 结论与交接
|
|
43
|
+
|
|
44
|
+
[分别写已支持的事实、推断、反向信号、限制和下一项决定。候选术语回交 `domain-modeling`;产品机会、MVP / 非目标与优先级回交 Plan / Spec 所有者。研究不修改 `CONTEXT.md`、Spec、Ticket 状态或批准记录。]
|
|
45
|
+
|
|
46
|
+
## 参考资料与缺口
|
|
27
47
|
|
|
28
|
-
|
|
48
|
+
[引用统一证据台账的 Evidence / Claim / Search ID 及可定位来源;保留来源日期、抽样、访问、独立性和版本限制,不另建第二套事实台账。]
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
起草或修订生命周期文档时,先读本规范的共用写法,再按阶段查阅第 3 节;发送进度与会签提示时读取第 4 节。按当前写入范围应用,正文、摘要和结构化信息应保持同一语义。
|
|
4
4
|
|
|
5
|
-
[Plan、Spec、Ticket
|
|
5
|
+
[Plan、Spec、Ticket、PR / MR 与复盘写作对照](../templates/examples/lifecycle-writing-examples.md)提供同一事实输入下的改写样例;示例不构成真实需求、执行证据或批准。
|
|
6
6
|
|
|
7
7
|
## 1. 适用范围与保留项
|
|
8
8
|
|
|
9
|
-
适用于研究结论、Plan、Spec、产品设计说明、工程契约的解释正文、Ticket
|
|
9
|
+
适用于研究结论、Plan、Spec、产品设计说明、工程契约的解释正文、Ticket、审查、PR / MR 描述、发布和复盘。聊天中的进度通知按第 4 节处理。
|
|
10
10
|
|
|
11
11
|
本文件是生命周期文档的共用写作规范。生命周期身份、门禁、资产所有权、批准和状态由根 `AGENTS.md` 指定的权威资产决定;标准术语消费根 `CONTEXT.md`。本规范约束表达,不新增阶段、审批或业务规则。
|
|
12
12
|
|
|
@@ -59,6 +59,23 @@
|
|
|
59
59
|
|
|
60
60
|
这些指引帮助填写既有模板,不新增必填字段、阶段或门禁。Plan 不提前承诺详细 API 和工程实现;Spec 的例子不代替完整规则;Ticket 不重新设计已冻结行为。
|
|
61
61
|
|
|
62
|
+
### PR / MR 描述
|
|
63
|
+
|
|
64
|
+
用户要求起草或修订 PR / MR 描述时,按最终改动组织以下四部分。小改动可以写成四个短段落,复杂改动可用已有 PR / MR 模板;不要求新增模板文件或结构化字段。
|
|
65
|
+
|
|
66
|
+
1. **问题与 Before / After**:说明谁在什么条件下遇到什么问题,以及当前候选改变了什么可观察行为。已复现的原行为、候选目标与实际验证结果分别表达;未验证的 After 写成待验证目标。背景只保留解释本次改动所需的信息。
|
|
67
|
+
2. **范围与合同**:描述最终修改的范围,引用适用的现行 Spec、Ticket、工程契约或模板维护任务及其版本。交代影响判断所需的边界和依赖;不把未完成的依赖、草案或历史批准写成当前就绪。标题与正文围绕最终改动,不沿用已放弃方案的描述。
|
|
68
|
+
3. **实际验证与限制**:写明已执行命令的工作目录、退出码、对应结果及可定位证据。失败检查保留实际失败现象;未执行或未覆盖的检查说明原因和剩余限制,不能与通过项合并成“全部通过”。验证证据支持到哪里,结论就写到哪里。
|
|
69
|
+
4. **风险与回滚**:按实际影响说明剩余风险、依赖、阻塞及恢复方式。可逆改动引用已知回滚点和可执行恢复步骤;恢复尚未验证时明确说明。数据迁移、外部副作用或其他难以恢复的变化如实说明限制,不凭空承诺可以回滚。
|
|
70
|
+
|
|
71
|
+
起草或修订描述本身不授予 `git commit`、`git push`、远程创建 PR / MR、合并或发布权限。这些动作继续消费既有授权范围;描述、测试通过或自检结论不替代现行审查、批准和 Fresh Verification。
|
|
72
|
+
|
|
73
|
+
### 复盘中的改进与沉淀
|
|
74
|
+
|
|
75
|
+
先根据触发条件、实际影响和执行证据区分事实、已确认机制与待验证假设。检查已经存在但未接入实际执行路径,或本次没有执行时,优先修复接入与执行并引用执行证据。对重复出现、可机械判定的不变量,确认既有检查没有覆盖后,再提出能够检测该情形的最小检查和失败反例;无法机械判定的事项说明人工验证的方法、依据和结果记录位置。
|
|
76
|
+
|
|
77
|
+
改进动作及关闭状态继续由既有待办 / 工作项持有。复盘引用事实源、Skill、模板或检查的修订去向和实际验证结果;只有计划、建议或尚未执行的验证时保持待处理。单次现象先验证其机制和适用范围,不直接沉淀为通用禁令。
|
|
78
|
+
|
|
62
79
|
## 4. 进度与会签提示
|
|
63
80
|
|
|
64
81
|
### 将流程编号转成读者能理解的说明
|
|
@@ -73,10 +90,12 @@
|
|
|
73
90
|
|
|
74
91
|
状态阅读可用 `scripts/lifecycle-status --root <项目> --checkpoint <ref> --format text`;默认 JSON 继续供工具读取。该查询及其中文展示均不授予执行或批准权限。
|
|
75
92
|
|
|
76
|
-
|
|
93
|
+
生命周期主控每轮返回或暂停,以及用户询问状态、恢复、阶段切换或出现阻塞时,简短说明:**当前阶段与本轮结果、下一阶段或单元及进入条件、问题与阻塞、谁处理及如何解除、下一动作**。依具体内容用连贯短段落或列表,不强制表格或固定行数;输出检查以当前编排合同的 `user_progress_report` 为准。普通问题直接回答;其他进度更新只说明本轮有意义的变化,状态未变时不重复整套说明。
|
|
77
94
|
|
|
78
95
|
状态读取已有 checkpoint 和适用验证结果,不建立或要求用户填写另一套状态文件。未核验的阶段或阻塞情况写“待核验”;只有当前适用证据支持时才能写“无阻塞”。证据过期应明确指出过期输入及恢复动作,不能沿用历史通过结论。责任人按已有登记填写,缺失写“未登记”,不自行指派;下一动作说明如何补齐登记或核验。
|
|
79
96
|
|
|
97
|
+
下一单元仍属当前阶段时说明剩余工作;拟进入的下一阶段附进入条件,不把目标写成已获准流转。阻塞逐项说明影响、来源、责任方、处理动作、解除证据和恢复检查;未决项与建议按实际影响表达。只读查询的未发现不等于已核验无阻塞,缺少下一路由不等于完成。模板源展示维护步骤和验证目标,阶段、批准和完成结论仍由原权威合同裁决。
|
|
98
|
+
|
|
80
99
|
默认只展示当前需要处理的事项,证据路径按需展开。查看状态本身不改文件,也不触发全套验证;推进阶段时仍执行原有适用校验。已授权且 Agent 可以完成的动作继续执行,避免把操作转交用户。
|
|
81
100
|
|
|
82
101
|
请求决定时展示当前版本、推荐方案及理由、实质选项和取舍、风险、批准范围与后续动作,遵守既有用户决定协议。可以突出当前最重要的问题,但所有影响决定的阻塞和选项都应可见。一次回复需要多个相互独立的决定时,分别说明各自影响。
|
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
|
|
11
11
|
普通功能采用一个推进负责人和一个独立审查者,按主要风险选择专业能力;仅在能力缺口、专业结论冲突或项目外部制度要求时增加审查者。角色表的 `countersigners` 是候选能力,不是全员签字名单。无依赖的审查可并行;同一候选的相邻检查可一次审查并逐项记录,聚合验收引用已有结论。
|
|
12
12
|
|
|
13
|
-
人工暂停由决定变化触发:业务范围、关键规则、验收标准、契约承诺、授权边界、风险接受、已采纳质量标准或对外承诺发生实质变化时,展示差异后重新决定。API
|
|
13
|
+
人工暂停由决定变化触发:业务范围、关键规则、验收标准、契约承诺、授权边界、风险接受、已采纳质量标准或对外承诺发生实质变化时,展示差异后重新决定。API、数据和跨仓影响仍触发适用专业检查,但技术载体本身不要求重复人工批准。授权清单明确覆盖的范围按生命周期用户决定协议延续;未知变化先调查并补影响分析,确认需要新的真实决定后才询问,不默认沿用或以全轴复审兜底。
|
|
14
|
+
|
|
15
|
+
专业能力和只读补充技能读取角色表的 `review_capabilities` 与检查策略,由主控编译正式任务的 `review_context` 和 `skill_source.review_skills`,不复制能力定义。专业审查未返回时,主控自主派发或核对现有任务后等待,同时继续无依赖工作;验证失败或结果不可验收时修复、补证据或重新路由。仅缺真实决定、新授权或无法自主取得的必要输入时,完成可审阅资产后向指定负责人询问。给出完成结论本身不形成新暂停。
|
|
16
|
+
|
|
17
|
+
首轮按实际影响覆盖全部适用检查。修复后先比较旧候选与当前候选,列明受影响结论、行为及直接 / 传递依赖,再定向复审并重新绑定当前候选、依据和实际验证。未受影响项只在可读取比较依据证明其条件与依赖未变时复用;摘要变化、UI 影响或 `new_impacts` 不自动扩展为全部审查轴,未知影响先调查并阻断依赖事项。
|
|
14
18
|
|
|
15
19
|
排版、措辞和派生内容调整也必须更新当前摘要、差异说明和验证证据;独立审查证明决定依据未变后可延续,不通过忽略字节差异或修改原回复实现复用。普通实现细化补受影响测试和审查。项目外部制度未确认时不能使用自动延续;已登记的客户、公司和审计强制审批按原要求执行。
|
|
16
20
|
|
|
@@ -46,7 +46,7 @@ apps/
|
|
|
46
46
|
- 后端:已登记项目根的 `./mvnw` 校验 / 测试;若工程已配置 Checkstyle、P3C 或 Spotless,审查时实际执行。
|
|
47
47
|
- `git-submodule` 必须递归检出;空 gitlink 不得当作「没有工程」。
|
|
48
48
|
- 模板源 `.cursor/environment.json` 只安装模板校验依赖(`jsonschema`、模板 `pnpm`),**不是**实现仓审查运行时。`project-instance` 与实现仓库的 Cloud / CI 环境自行包含 JDK、Maven Wrapper 和 `pnpm`。
|
|
49
|
-
- 审查任务包只写证据路径;专项 skill 只读,不得写实现。审查 finding 按 `review_standards_route.finding_disposition` 分流:`violation`
|
|
49
|
+
- 审查任务包只写证据路径;专项 skill 只读,不得写实现。审查 finding 按 `review_standards_route.finding_disposition` 分流:`violation` 交实现者修复后按差异、受影响结论及依赖定向复审;`drift` / `new_impacts` 回 实现合同编译器,不在审查会话中改代码。
|
|
50
50
|
|
|
51
51
|
## 1.3 `repository_scope: git-submodule`
|
|
52
52
|
|
|
@@ -74,11 +74,29 @@ apps/
|
|
|
74
74
|
|
|
75
75
|
采用后端交付驱动前端的专职项目,按 [前后端交付与联合接收](frontend-backend-delivery.md) 执行输入校验。该条件同时进入合同编译、任务派发、生命周期实施/恢复和正式前端证据检查;原通用研发 profile 保留兼容,不能以兼容入口替专职项目跳过接收。
|
|
76
76
|
|
|
77
|
-
| 影响面 | 必须绑定的记录 |
|
|
78
|
-
|
|
79
|
-
| Harness-only | change、文档路径、压力场景、fresh verification、checkpoint |
|
|
80
|
-
| release-only | release note、发布顺序、观察信号、rollback |
|
|
81
|
-
| backend-only | backend repo、分支、MR / PR、CI、API 影响 |
|
|
82
|
-
| frontend-only | frontend repo、分支、lint / type-check / build |
|
|
83
|
-
| contract-only | OpenAPI Draft / Freeze、消费者确认 |
|
|
77
|
+
| 影响面 | 必须绑定的记录 |
|
|
78
|
+
|---|---|
|
|
79
|
+
| Harness-only | change、文档路径、压力场景、fresh verification、checkpoint |
|
|
80
|
+
| release-only | release note、发布顺序、观察信号、rollback |
|
|
81
|
+
| backend-only | backend repo、分支、MR / PR、CI、API 影响 |
|
|
82
|
+
| frontend-only | frontend repo、分支、lint / type-check / build |
|
|
83
|
+
| contract-only | OpenAPI Draft / Freeze、消费者确认 |
|
|
84
84
|
|
|
85
|
+
## 3. 跨仓库责任
|
|
86
|
+
|
|
87
|
+
- 模板仓库负责 `yss-project.yaml`、流程事实源、迁移指南、技能投影、模板校验脚本和快照可发布状态。
|
|
88
|
+
- CLI 仓库负责 `attach`、`sync`、受管 manifest、快照 commit、metadata、迁移计划、备份 / 回滚、端到端测试和用户说明。
|
|
89
|
+
- CLI 只写研发管理资产;不得创建或覆盖前后端运行时代码,不删除目标 `.git`,也不创建、覆盖或删除 `.gitmodules` 与 gitlink。
|
|
90
|
+
- 模板 commit 必须是 40 位不可变提交;开发测试可通过 `YSS_SPEC_TEMPLATE_REF` 覆盖,正式发布不得跟随浮动 `main`。
|
|
91
|
+
|
|
92
|
+
## 4. Fresh verification 与 checkpoint
|
|
93
|
+
|
|
94
|
+
模板仓库至少执行:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
scripts/sync-skills --check
|
|
98
|
+
scripts/update-skill-lock --check
|
|
99
|
+
scripts/verify-template
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
CLI 仓库至少执行固定 commit 的 `YSS_SPEC_TEMPLATE_REF=<pinned-commit> npm test`、`npm pack --dry-run`,并在解包后的 CLI 上验证 init、attach、sync、迁移冲突和回滚。共同发布前记录两个仓库的 commit、模板快照 hash、测试结果、独立审查结论和 rollback 路径。
|
|
@@ -12,6 +12,8 @@ node scripts/verify-maintenance-research <slug>-research-brief.md <slug>-evidenc
|
|
|
12
12
|
|
|
13
13
|
命令实际调用研究包校验器,保留 stdout/stderr、退出码、起止时间及简报、台账、校验器、日志的 SHA-256;返回 `binding: {ref, digest}`。不会覆盖旧目录。失败记录保留,不能用于完成。
|
|
14
14
|
|
|
15
|
+
包含 `competitive_analysis` 的新研究包还在 `inputs.competitive` 中绑定选定的矩阵、报告,以及竞品 Schema、渲染器、比较校验模块、两份模板与 JSON Schema 执行器的 `{ref, digest}`。这些引用同时写入结果的 `evidence_refs`。产物仅允许同目录相对文件名;越界或符号链接逃逸直接拒绝。接收端重新核验当前字节并重跑校验,任何绑定变化都使旧记录失效。没有扩展的旧包和历史记录保留原合同,不改写旧字节。
|
|
16
|
+
|
|
15
17
|
Workflow Execution Result 在原字段之外携带 `research_verification: {ref, digest}`。`evidence_refs` 包含验证记录、简报、台账和 Context 不适用说明。`context_reconciliation.status` 为 `not-applicable` 且必须给出原因;执行阻断、drift、violation、new_impacts 和 stale_candidates 必须为空。
|
|
16
18
|
|
|
17
19
|
接收端重读绑定字节,并实际重跑当前研究校验器。通过后可以 `next_route: null` 独立结束。结构校验不证明来源中的事实,也不代替主控对重要结论的来源审计;研究报告保留反证、来源缺口和结论边界。
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# 运行记录与证据留存
|
|
2
|
+
|
|
3
|
+
运行工具把普通执行记录保存到仓库外的 SQLite 和日志目录。checkpoint、合同、批准、用户原始决定、迁移回执及恢复事务继续使用现有文件作为权威。查询索引和历史通过记录只能帮助定位证据;阶段流转、实现和交付仍执行当前合同要求的 Fresh Verification。
|
|
4
|
+
|
|
5
|
+
## 存储位置与运行方式
|
|
6
|
+
|
|
7
|
+
受影响工具要求 Node `>=22.13 <27`,使用内置 `node:sqlite`,不安装原生驱动。低于最低版本或达到 27 时,在创建目标目录、数据库或日志前拒绝执行;`off` 模式也遵守工具的 Node 基线。
|
|
8
|
+
|
|
9
|
+
默认目录为 `~/.yss-harness/runtime/<workspace-id>/`,其中 `workspace-id` 是项目根目录真实路径的 SHA-256。不同 worktree 分开保存。`YSS_RUNTIME_HOME` 可指定仓外绝对目录,CI 优先使用 `RUNNER_TEMP`。目录本身及符号链接解析后的目标均不得进入项目或已登记子仓。
|
|
10
|
+
|
|
11
|
+
支持运行存储的执行入口接受 `--runtime-store sqlite|off`。试点使用显式模式;验证及分发闭合后,新版本默认使用 `sqlite`。`off` 回到原文件执行路径,用于受控回退。已有实例通过升级计划接入,不自动迁移业务文件。
|
|
12
|
+
|
|
13
|
+
运行由创建它的存储会话登记终止;其它连接不能通过 `finish` 接管运行或覆写报告。进程中断后保留待恢复状态,历史状态不能据此转成当前验证通过。
|
|
14
|
+
|
|
15
|
+
| 内容 | 保存方式与用途 |
|
|
16
|
+
|---|---|
|
|
17
|
+
| 运行摘要、命令结果、事件 | SQLite 保存输入摘要、实际退出码、耗时和终止原因 |
|
|
18
|
+
| checkpoint 查询索引 | 绑定源文件路径和当前摘要;源文件变化后索引过期,不能改变门禁结果 |
|
|
19
|
+
| stdout / stderr | 执行时流式写日志文件,正文不逐段进入数据库 |
|
|
20
|
+
| 重复运行输入清单 | 以原字节 SHA-256 去重并压缩,数据库登记对象引用 |
|
|
21
|
+
| 正式验证材料 | 独立文件包,保留原报告与 `run:` 格式,并登记永久保护 |
|
|
22
|
+
|
|
23
|
+
数据库文件名为 `runtime.sqlite`。SQLite 使用短事务、`journal_mode=DELETE`、`synchronous=FULL` 和 5 秒锁等待。事务资产中的完整输入、恢复备份仍保留原字节,不替换为运行对象引用。Fresh Verification 的源码扫描范围保持不变;如果以后消费仓外对象作为输入,必须显式绑定对象摘要。
|
|
24
|
+
|
|
25
|
+
模板 runner 在同一短事务中保存一次实际命令结果、日志索引和对应完成事件;复用执行仍单独登记各查询位置的事件,通过 command_id 引用首个实际命令,避免在事件中重复保存命令及日志路径。文件摘要与序列化在事务前完成,事务失败回滚全部登记,命令及已有日志不重跑或删除。首次登记失败后的复用事件保留脱敏命令和日志路径,不能引用不存在的命令记录。
|
|
26
|
+
|
|
27
|
+
命令结果保留原有 runner 状态,并追加 actual_exit_code、actual_exit_signal 和 actual_exit_code_observed。超时、取消的包装状态不替代子进程实际退出观察;未执行或启动失败的实际退出码为 null,信号终止保留实际信号。普通退出 130 仍按实际失败处理,不能仅凭数字判为取消。
|
|
28
|
+
|
|
29
|
+
## 执行与证据
|
|
30
|
+
|
|
31
|
+
运行登记完成后执行命令,保存实际结果并形成报告。命令执行成功和运行存储成功分别记录;数据库故障不得改写实际命令退出码,也不得重跑已经执行的命令。已有日志继续保留,报告给出存储异常。无法形成完整验证报告时,不能宣布验证通过。
|
|
32
|
+
|
|
33
|
+
模板验证未指定 `--report-dir` 时保存普通运行记录;显式报告目录自动保护。发布验证保护内部完整验证报告。只读分诊继续保存独立运行包并保护整个包,`run:` 仍解析到真实文件。`project-ci check` 的 stdout JSON 和原退出码保持兼容,可选择登记运行。
|
|
34
|
+
|
|
35
|
+
导出包带相对路径和摘要清单,能够在没有原数据库的环境核验。新阅读入口消费该清单;旧报告字段和历史已批准材料继续兼容,不重新序列化历史材料。
|
|
36
|
+
|
|
37
|
+
## 管理入口
|
|
38
|
+
|
|
39
|
+
统一使用 `scripts/runtime-store`。精确参数可通过 `scripts/runtime-store --help` 查询;查询和验证的 `--plan` 不创建数据库或运行文件。
|
|
40
|
+
|
|
41
|
+
| 命令 | 行为 |
|
|
42
|
+
|---|---|
|
|
43
|
+
| `inspect` | 查询运行、存储量、保护原因和过期候选 |
|
|
44
|
+
| `inventory` | 只读盘点存量机器文件,报告分类、大小、重复内容和归档候选 |
|
|
45
|
+
| `export` | 导出指定运行的报告、日志、输入和摘要清单,登记永久保护 |
|
|
46
|
+
| `plan-gc` | 生成可审阅的清理计划,不删除文件 |
|
|
47
|
+
| `apply-gc` | 按计划重验引用、占用与输入摘要后清理 |
|
|
48
|
+
| `backup` | 创建一致性数据库快照及恢复所需文件 |
|
|
49
|
+
| `restore` | 从备份恢复,拒绝覆盖不同内容的目标 |
|
|
50
|
+
|
|
51
|
+
常用操作如下;输出、计划与备份目录均选择仓外绝对路径:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
scripts/runtime-store inspect --root <项目根> --json
|
|
55
|
+
scripts/runtime-store inventory --root <项目根> --json
|
|
56
|
+
scripts/runtime-store export --root <项目根> --run <运行ID> --output <新的仓外目录>
|
|
57
|
+
scripts/runtime-store inspect --source <导出包目录>
|
|
58
|
+
scripts/runtime-store plan-gc --root <项目根> > <仓外计划.json>
|
|
59
|
+
scripts/runtime-store apply-gc --root <项目根> --plan <仓外计划.json>
|
|
60
|
+
scripts/runtime-store backup --root <项目根> --output <新的仓外备份目录>
|
|
61
|
+
scripts/runtime-store restore --root <项目根> --source <仓外备份目录>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
数据库版本由迁移记录管理,升级前备份;未知版本和不符合初始化条件的已有数据库拒绝写入。备份等待运行占用解除后创建独立一致性快照,并保存相关文件摘要;恢复核对所属工作区和摘要,已有不同内容不覆盖。派生索引可以从仍保留的权威文件重建,未导出的运行事件依赖备份恢复。
|
|
65
|
+
|
|
66
|
+
备份保存运行存储目录及一致性数据库快照。登记在其它仓外目录的正式报告列为 `external_dependencies`,保留其路径和摘要;恢复结果的 `formal_evidence_complete` 表示这些外部材料是否仍完整。需要脱离原环境携带正式证据时,应先使用 `export` 生成独立包,再通过 `inspect --source` 校验并解析相对日志路径。备份不会搬迁或覆盖原正式报告。
|
|
67
|
+
|
|
68
|
+
## 留存与显式清理
|
|
69
|
+
|
|
70
|
+
普通成功运行从结束时间起保留 7 天;失败、超时和取消运行保留 30 天。只有显式执行 `apply-gc` 才删除过期日志。清理后保留精简摘要及“日志已过期”标记,查询者不能将其作为完整证据。
|
|
71
|
+
|
|
72
|
+
清理须同时满足:运行已结束且过期、没有保护记录或正式引用、没有进程占用、引用扫描完整。未知分类、未解析动态引用、待恢复运行和运行中记录均保留。计划生成后输入发生变化时,执行拒绝该计划。共享输入对象只有在全部引用都具备清理资格时才删除。正式导出材料不适用 7 / 30 天留存期。
|
|
73
|
+
|
|
74
|
+
文件占用探测不可用或结果不完整时,清理资格保持不确定并保留文件。macOS / Linux 使用 `lsof`,Windows 使用独占文件探测。清理中断记录 `gc-pending`;恢复清理由重新执行 `plan-gc` 生成计划,再显式执行 `apply-gc`,重新检查引用、保护、占用和剩余原字节。普通启动不会自动继续删除。
|
|
75
|
+
|
|
76
|
+
执行清理时应保持正式引用和日志读写的静止窗口;需要作为正式材料使用的运行先执行 `export` 登记保护。SQLite 事务能协调本存储的登记、保护与对象引用,任意外部文件写者和日志读取进程不共享该锁,因此删前复核不能提供跨进程文件系统的原子快照。无法建立静止窗口时只运行 `plan-gc`,保留候选。
|
|
77
|
+
|
|
78
|
+
历史合同、批准、checkpoint、回执和维护证据只参与 `inventory`。盘点列出的归档候选不授予删除或迁移权限;历史整理需要独立的范围授权及当前验证。
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"required": [
|
|
4
|
+
"subject_ref",
|
|
5
|
+
"approval_scope",
|
|
6
|
+
"basis",
|
|
7
|
+
"drafter_principal_ref"
|
|
8
|
+
],
|
|
9
|
+
"properties": {
|
|
10
|
+
"subject_ref": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1
|
|
13
|
+
},
|
|
14
|
+
"subject_digest": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^(sha256:)?[a-f0-9]{64}$"
|
|
17
|
+
},
|
|
18
|
+
"approval_scope": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"uniqueItems": true,
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"basis": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"minItems": 1,
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"required": [
|
|
33
|
+
"ref",
|
|
34
|
+
"digest"
|
|
35
|
+
],
|
|
36
|
+
"properties": {
|
|
37
|
+
"ref": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"minLength": 1
|
|
40
|
+
},
|
|
41
|
+
"digest": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"pattern": "^(sha256:)?[a-f0-9]{64}$"
|
|
44
|
+
},
|
|
45
|
+
"version": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"minLength": 1
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"additionalProperties": false
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"drafter_principal_ref": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"minLength": 1
|
|
56
|
+
},
|
|
57
|
+
"review_package": {
|
|
58
|
+
"type": "boolean"
|
|
59
|
+
},
|
|
60
|
+
"review_context": {
|
|
61
|
+
"type": "object"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
65
|
+
"title": "Consumer-owned current approval context",
|
|
66
|
+
"additionalProperties": false
|
|
67
|
+
}
|