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.
Files changed (513) hide show
  1. package/README.md +6 -2
  2. package/package.json +1 -1
  3. package/src/api/_sync-service.js +31 -6
  4. package/src/cli/args.js +2 -0
  5. package/src/cli/help.js +4 -1
  6. package/src/commands/attach.js +9 -3
  7. package/src/commands/diff.js +1 -0
  8. package/src/commands/doctor.js +1 -0
  9. package/src/commands/init.js +2 -1
  10. package/src/commands/sync.js +1 -0
  11. package/src/family-identity.js +1 -1
  12. package/src/template/asset-runtime.js +57 -49
  13. package/src/template/attach-planner.js +1 -1
  14. package/src/template/distribution-runtime.js +9 -9
  15. package/src/template/instance-runtime.js +9 -9
  16. package/src/template/layout-migration.js +160 -0
  17. package/src/template/migration-runtime.js +2 -2
  18. package/src/template/sync-planner.js +1 -1
  19. package/template/.agents/rules/yss-ai-skills.md +1 -1
  20. package/template/.agents/skills/.strategic-design-skills-manifest.json +7 -8
  21. package/template/.agents/skills/.yss-skills-manifest.json +2 -2
  22. package/template/.agents/skills/alibaba-java-code-style/SKILL.md +1 -1
  23. package/template/.agents/skills/code-review/SKILL.md +6 -6
  24. package/template/.agents/skills/code-review/references/yss-review-standards.md +1 -1
  25. package/template/.agents/skills/cross-repo-implementation-routing/SKILL.md +2 -2
  26. package/template/.agents/skills/i-have-adhd/SKILL.md +1 -1
  27. package/template/.agents/skills/i-have-adhd/references/yss-adaptation.md +1 -1
  28. package/template/.agents/skills/i-have-adhd/tests/verify-integration.mjs +2 -2
  29. package/template/.agents/skills/implementation-repo-onboarding/SKILL.md +2 -2
  30. package/template/.agents/skills/llm-wiki/references/discover.md +3 -3
  31. package/template/.agents/skills/prototype-review/SKILL.md +4 -4
  32. package/template/.agents/skills/setup-matt-pocock-skills/SKILL.md +10 -10
  33. package/template/.agents/skills/triage/SKILL.md +1 -1
  34. package/template/.agents/skills/yss-application/references/profiles/layered-mvc-service.md +1 -1
  35. package/template/.agents/skills/yss-application/references/profiles/mvc-data-analysis-v1.md +1 -1
  36. package/template/.agents/skills/yss-backend-spec-review/SKILL.md +1 -1
  37. package/template/.agents/skills/yss-backend-spec-review/references/check-inputs.md +1 -1
  38. package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
  39. package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
  40. package/template/.agents/skills/yss-design-system/SKILL.md +10 -10
  41. package/template/.agents/skills/yss-design-system/references/design-qa-theme.md +3 -3
  42. package/template/.agents/skills/yss-design-system/references/design-system.md +3 -3
  43. package/template/.agents/skills/yss-exception/SKILL.md +1 -1
  44. package/template/.agents/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
  45. package/template/.agents/skills/yss-frontend-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
  46. package/template/.agents/skills/yss-frontend-scaffold-generator/scripts/refresh_baseline.mjs +2 -2
  47. package/template/.agents/skills/yss-implementation-contract-compiler/SKILL.md +9 -9
  48. package/template/.agents/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -1
  49. package/template/.agents/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +9 -9
  50. package/template/.agents/skills/yss-implementation-contract-compiler/references/slice-implementation-contract-v2.md +3 -3
  51. package/template/.agents/skills/yss-implementation-contract-compiler/references/slice-implementation-contract.md +1 -1
  52. package/template/.agents/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +1 -1
  53. package/template/.agents/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
  54. package/template/.agents/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +5 -5
  55. package/template/.agents/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
  56. package/template/.agents/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +42 -0
  57. package/template/.agents/skills/yss-openapi-draft-review/SKILL.md +2 -2
  58. package/template/.agents/skills/yss-openapi-governance/SKILL.md +7 -7
  59. package/template/.agents/skills/yss-product-lifecycle/SKILL.md +11 -11
  60. package/template/.agents/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
  61. package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +65 -43
  62. package/template/.agents/skills/yss-product-lifecycle/references/orchestration.md +22 -14
  63. package/template/.agents/skills/yss-product-lifecycle/references/request-triage.md +2 -0
  64. package/template/.agents/skills/yss-product-lifecycle/references/state-model.md +3 -3
  65. package/template/.agents/skills/yss-product-lifecycle/references/user-decisions.md +2 -2
  66. package/template/.agents/skills/yss-prototype-stage/SKILL.md +7 -7
  67. package/template/.agents/skills/yss-prototype-stage/references/existing-ui-entry.md +1 -1
  68. package/template/.agents/skills/yss-prototype-stage/scripts/build-antd-prototype.mjs +1 -1
  69. package/template/.agents/skills/yss-prototype-stage/scripts/offline-html.mjs +3 -3
  70. package/template/.agents/skills/yss-prototype-stage/tests/browser-smoke.mjs +2 -2
  71. package/template/.agents/skills/yss-prototype-stage/tests/run-scenarios.mjs +4 -4
  72. package/template/.agents/skills/yss-prototype-stage/tests/workbench-smoke.mjs +1 -1
  73. package/template/.agents/skills/yss-repository/SKILL.md +2 -2
  74. package/template/.agents/skills/yss-repository/references/profiles/layered-mvc-service.md +1 -1
  75. package/template/.agents/skills/yss-repository/references/profiles/mvc-data-analysis-v1.md +1 -1
  76. package/template/.agents/skills/yss-repository/tests/profile-routing.test.mjs +2 -2
  77. package/template/.agents/skills/yss-research/SKILL.md +2 -2
  78. package/template/.agents/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +1 -1
  79. package/template/.agents/skills/yss-stage-decision/SKILL.md +5 -5
  80. package/template/.agents/skills/yss-stage-decision/references/domain-strategy-contract.md +1 -1
  81. package/template/.agents/skills/yss-stage-decision/references/strategic-handoff-routing.md +1 -1
  82. package/template/.agents/skills/yss-tactical-design/SKILL.md +2 -2
  83. package/template/.agents/skills/yss-tactical-design/references/strategic-handoff-routing.md +1 -1
  84. package/template/.agents/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
  85. package/template/.agents/skills/yss-technical-design/SKILL.md +6 -6
  86. package/template/.agents/skills/yss-technical-design/references/technical-design-contract.md +1 -1
  87. package/template/.agents/skills/yss-ui/SKILL.md +1 -1
  88. package/template/.agents/skills/yss-up-springboot3/SKILL.md +1 -1
  89. package/template/.agents/skills/yss-web-controller/SKILL.md +1 -1
  90. package/template/.agents/skills/yss-web-controller/references/profiles/layered-mvc-service.md +1 -1
  91. package/template/.codex/skills/alibaba-java-code-style/SKILL.md +1 -1
  92. package/template/.codex/skills/code-review/SKILL.md +6 -6
  93. package/template/.codex/skills/code-review/references/yss-review-standards.md +1 -1
  94. package/template/.codex/skills/cross-repo-implementation-routing/SKILL.md +2 -2
  95. package/template/.codex/skills/i-have-adhd/SKILL.md +1 -1
  96. package/template/.codex/skills/i-have-adhd/references/yss-adaptation.md +1 -1
  97. package/template/.codex/skills/i-have-adhd/tests/verify-integration.mjs +2 -2
  98. package/template/.codex/skills/implementation-repo-onboarding/SKILL.md +2 -2
  99. package/template/.codex/skills/llm-wiki/references/discover.md +3 -3
  100. package/template/.codex/skills/prototype-review/SKILL.md +4 -4
  101. package/template/.codex/skills/setup-matt-pocock-skills/SKILL.md +10 -10
  102. package/template/.codex/skills/triage/SKILL.md +1 -1
  103. package/template/.codex/skills/yss-application/references/profiles/layered-mvc-service.md +1 -1
  104. package/template/.codex/skills/yss-application/references/profiles/mvc-data-analysis-v1.md +1 -1
  105. package/template/.codex/skills/yss-backend-spec-review/SKILL.md +1 -1
  106. package/template/.codex/skills/yss-backend-spec-review/references/check-inputs.md +1 -1
  107. package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
  108. package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
  109. package/template/.codex/skills/yss-design-system/SKILL.md +10 -10
  110. package/template/.codex/skills/yss-design-system/references/design-qa-theme.md +3 -3
  111. package/template/.codex/skills/yss-design-system/references/design-system.md +3 -3
  112. package/template/.codex/skills/yss-exception/SKILL.md +1 -1
  113. package/template/.codex/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
  114. package/template/.codex/skills/yss-frontend-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
  115. package/template/.codex/skills/yss-frontend-scaffold-generator/scripts/refresh_baseline.mjs +2 -2
  116. package/template/.codex/skills/yss-implementation-contract-compiler/SKILL.md +9 -9
  117. package/template/.codex/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -1
  118. package/template/.codex/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +9 -9
  119. package/template/.codex/skills/yss-implementation-contract-compiler/references/slice-implementation-contract-v2.md +3 -3
  120. package/template/.codex/skills/yss-implementation-contract-compiler/references/slice-implementation-contract.md +1 -1
  121. package/template/.codex/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +1 -1
  122. package/template/.codex/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
  123. package/template/.codex/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +5 -5
  124. package/template/.codex/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
  125. package/template/.codex/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +42 -0
  126. package/template/.codex/skills/yss-openapi-draft-review/SKILL.md +2 -2
  127. package/template/.codex/skills/yss-openapi-governance/SKILL.md +7 -7
  128. package/template/.codex/skills/yss-product-lifecycle/SKILL.md +11 -11
  129. package/template/.codex/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
  130. package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +65 -43
  131. package/template/.codex/skills/yss-product-lifecycle/references/orchestration.md +22 -14
  132. package/template/.codex/skills/yss-product-lifecycle/references/request-triage.md +2 -0
  133. package/template/.codex/skills/yss-product-lifecycle/references/state-model.md +3 -3
  134. package/template/.codex/skills/yss-product-lifecycle/references/user-decisions.md +2 -2
  135. package/template/.codex/skills/yss-prototype-stage/SKILL.md +7 -7
  136. package/template/.codex/skills/yss-prototype-stage/references/existing-ui-entry.md +1 -1
  137. package/template/.codex/skills/yss-prototype-stage/scripts/build-antd-prototype.mjs +1 -1
  138. package/template/.codex/skills/yss-prototype-stage/scripts/offline-html.mjs +3 -3
  139. package/template/.codex/skills/yss-prototype-stage/tests/browser-smoke.mjs +2 -2
  140. package/template/.codex/skills/yss-prototype-stage/tests/run-scenarios.mjs +4 -4
  141. package/template/.codex/skills/yss-prototype-stage/tests/workbench-smoke.mjs +1 -1
  142. package/template/.codex/skills/yss-repository/SKILL.md +2 -2
  143. package/template/.codex/skills/yss-repository/references/profiles/layered-mvc-service.md +1 -1
  144. package/template/.codex/skills/yss-repository/references/profiles/mvc-data-analysis-v1.md +1 -1
  145. package/template/.codex/skills/yss-repository/tests/profile-routing.test.mjs +2 -2
  146. package/template/.codex/skills/yss-research/SKILL.md +2 -2
  147. package/template/.codex/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +1 -1
  148. package/template/.codex/skills/yss-stage-decision/SKILL.md +5 -5
  149. package/template/.codex/skills/yss-stage-decision/references/domain-strategy-contract.md +1 -1
  150. package/template/.codex/skills/yss-stage-decision/references/strategic-handoff-routing.md +1 -1
  151. package/template/.codex/skills/yss-tactical-design/SKILL.md +2 -2
  152. package/template/.codex/skills/yss-tactical-design/references/strategic-handoff-routing.md +1 -1
  153. package/template/.codex/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
  154. package/template/.codex/skills/yss-technical-design/SKILL.md +6 -6
  155. package/template/.codex/skills/yss-technical-design/references/technical-design-contract.md +1 -1
  156. package/template/.codex/skills/yss-ui/SKILL.md +1 -1
  157. package/template/.codex/skills/yss-up-springboot3/SKILL.md +1 -1
  158. package/template/.codex/skills/yss-web-controller/SKILL.md +1 -1
  159. package/template/.codex/skills/yss-web-controller/references/profiles/layered-mvc-service.md +1 -1
  160. package/template/.cursor/skills/alibaba-java-code-style/SKILL.md +1 -1
  161. package/template/.cursor/skills/code-review/SKILL.md +6 -6
  162. package/template/.cursor/skills/code-review/references/yss-review-standards.md +1 -1
  163. package/template/.cursor/skills/cross-repo-implementation-routing/SKILL.md +2 -2
  164. package/template/.cursor/skills/i-have-adhd/SKILL.md +1 -1
  165. package/template/.cursor/skills/i-have-adhd/references/yss-adaptation.md +1 -1
  166. package/template/.cursor/skills/i-have-adhd/tests/verify-integration.mjs +2 -2
  167. package/template/.cursor/skills/implementation-repo-onboarding/SKILL.md +2 -2
  168. package/template/.cursor/skills/llm-wiki/references/discover.md +3 -3
  169. package/template/.cursor/skills/prototype-review/SKILL.md +4 -4
  170. package/template/.cursor/skills/setup-matt-pocock-skills/SKILL.md +10 -10
  171. package/template/.cursor/skills/triage/SKILL.md +1 -1
  172. package/template/.cursor/skills/yss-application/references/profiles/layered-mvc-service.md +1 -1
  173. package/template/.cursor/skills/yss-application/references/profiles/mvc-data-analysis-v1.md +1 -1
  174. package/template/.cursor/skills/yss-backend-spec-review/SKILL.md +1 -1
  175. package/template/.cursor/skills/yss-backend-spec-review/references/check-inputs.md +1 -1
  176. package/template/.cursor/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
  177. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
  178. package/template/.cursor/skills/yss-design-system/SKILL.md +10 -10
  179. package/template/.cursor/skills/yss-design-system/references/design-qa-theme.md +3 -3
  180. package/template/.cursor/skills/yss-design-system/references/design-system.md +3 -3
  181. package/template/.cursor/skills/yss-exception/SKILL.md +1 -1
  182. package/template/.cursor/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
  183. package/template/.cursor/skills/yss-frontend-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
  184. package/template/.cursor/skills/yss-frontend-scaffold-generator/scripts/refresh_baseline.mjs +2 -2
  185. package/template/.cursor/skills/yss-implementation-contract-compiler/SKILL.md +9 -9
  186. package/template/.cursor/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -1
  187. package/template/.cursor/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +9 -9
  188. package/template/.cursor/skills/yss-implementation-contract-compiler/references/slice-implementation-contract-v2.md +3 -3
  189. package/template/.cursor/skills/yss-implementation-contract-compiler/references/slice-implementation-contract.md +1 -1
  190. package/template/.cursor/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +1 -1
  191. package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
  192. package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +5 -5
  193. package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
  194. package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +42 -0
  195. package/template/.cursor/skills/yss-openapi-draft-review/SKILL.md +2 -2
  196. package/template/.cursor/skills/yss-openapi-governance/SKILL.md +7 -7
  197. package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +11 -11
  198. package/template/.cursor/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
  199. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +65 -43
  200. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +22 -14
  201. package/template/.cursor/skills/yss-product-lifecycle/references/request-triage.md +2 -0
  202. package/template/.cursor/skills/yss-product-lifecycle/references/state-model.md +3 -3
  203. package/template/.cursor/skills/yss-product-lifecycle/references/user-decisions.md +2 -2
  204. package/template/.cursor/skills/yss-prototype-stage/SKILL.md +7 -7
  205. package/template/.cursor/skills/yss-prototype-stage/references/existing-ui-entry.md +1 -1
  206. package/template/.cursor/skills/yss-prototype-stage/scripts/build-antd-prototype.mjs +1 -1
  207. package/template/.cursor/skills/yss-prototype-stage/scripts/offline-html.mjs +3 -3
  208. package/template/.cursor/skills/yss-prototype-stage/tests/browser-smoke.mjs +2 -2
  209. package/template/.cursor/skills/yss-prototype-stage/tests/run-scenarios.mjs +4 -4
  210. package/template/.cursor/skills/yss-prototype-stage/tests/workbench-smoke.mjs +1 -1
  211. package/template/.cursor/skills/yss-repository/SKILL.md +2 -2
  212. package/template/.cursor/skills/yss-repository/references/profiles/layered-mvc-service.md +1 -1
  213. package/template/.cursor/skills/yss-repository/references/profiles/mvc-data-analysis-v1.md +1 -1
  214. package/template/.cursor/skills/yss-repository/tests/profile-routing.test.mjs +2 -2
  215. package/template/.cursor/skills/yss-research/SKILL.md +2 -2
  216. package/template/.cursor/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +1 -1
  217. package/template/.cursor/skills/yss-stage-decision/SKILL.md +5 -5
  218. package/template/.cursor/skills/yss-stage-decision/references/domain-strategy-contract.md +1 -1
  219. package/template/.cursor/skills/yss-stage-decision/references/strategic-handoff-routing.md +1 -1
  220. package/template/.cursor/skills/yss-tactical-design/SKILL.md +2 -2
  221. package/template/.cursor/skills/yss-tactical-design/references/strategic-handoff-routing.md +1 -1
  222. package/template/.cursor/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
  223. package/template/.cursor/skills/yss-technical-design/SKILL.md +6 -6
  224. package/template/.cursor/skills/yss-technical-design/references/technical-design-contract.md +1 -1
  225. package/template/.cursor/skills/yss-ui/SKILL.md +1 -1
  226. package/template/.cursor/skills/yss-up-springboot3/SKILL.md +1 -1
  227. package/template/.cursor/skills/yss-web-controller/SKILL.md +1 -1
  228. package/template/.cursor/skills/yss-web-controller/references/profiles/layered-mvc-service.md +1 -1
  229. package/template/.cursorrules +1 -1
  230. package/template/.pi/skills/alibaba-java-code-style/SKILL.md +1 -1
  231. package/template/.pi/skills/code-review/SKILL.md +6 -6
  232. package/template/.pi/skills/code-review/references/yss-review-standards.md +1 -1
  233. package/template/.pi/skills/cross-repo-implementation-routing/SKILL.md +2 -2
  234. package/template/.pi/skills/i-have-adhd/SKILL.md +1 -1
  235. package/template/.pi/skills/i-have-adhd/references/yss-adaptation.md +1 -1
  236. package/template/.pi/skills/i-have-adhd/tests/verify-integration.mjs +2 -2
  237. package/template/.pi/skills/implementation-repo-onboarding/SKILL.md +2 -2
  238. package/template/.pi/skills/llm-wiki/references/discover.md +3 -3
  239. package/template/.pi/skills/prototype-review/SKILL.md +4 -4
  240. package/template/.pi/skills/setup-matt-pocock-skills/SKILL.md +10 -10
  241. package/template/.pi/skills/triage/SKILL.md +1 -1
  242. package/template/.pi/skills/yss-application/references/profiles/layered-mvc-service.md +1 -1
  243. package/template/.pi/skills/yss-application/references/profiles/mvc-data-analysis-v1.md +1 -1
  244. package/template/.pi/skills/yss-backend-spec-review/SKILL.md +1 -1
  245. package/template/.pi/skills/yss-backend-spec-review/references/check-inputs.md +1 -1
  246. package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
  247. package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
  248. package/template/.pi/skills/yss-design-system/SKILL.md +10 -10
  249. package/template/.pi/skills/yss-design-system/references/design-qa-theme.md +3 -3
  250. package/template/.pi/skills/yss-design-system/references/design-system.md +3 -3
  251. package/template/.pi/skills/yss-exception/SKILL.md +1 -1
  252. package/template/.pi/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
  253. package/template/.pi/skills/yss-frontend-scaffold-generator/scripts/generate_scaffold.mjs +1 -1
  254. package/template/.pi/skills/yss-frontend-scaffold-generator/scripts/refresh_baseline.mjs +2 -2
  255. package/template/.pi/skills/yss-implementation-contract-compiler/SKILL.md +9 -9
  256. package/template/.pi/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -1
  257. package/template/.pi/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +9 -9
  258. package/template/.pi/skills/yss-implementation-contract-compiler/references/slice-implementation-contract-v2.md +3 -3
  259. package/template/.pi/skills/yss-implementation-contract-compiler/references/slice-implementation-contract.md +1 -1
  260. package/template/.pi/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +1 -1
  261. package/template/.pi/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
  262. package/template/.pi/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +5 -5
  263. package/template/.pi/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
  264. package/template/.pi/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +42 -0
  265. package/template/.pi/skills/yss-openapi-draft-review/SKILL.md +2 -2
  266. package/template/.pi/skills/yss-openapi-governance/SKILL.md +7 -7
  267. package/template/.pi/skills/yss-product-lifecycle/SKILL.md +11 -11
  268. package/template/.pi/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
  269. package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +65 -43
  270. package/template/.pi/skills/yss-product-lifecycle/references/orchestration.md +22 -14
  271. package/template/.pi/skills/yss-product-lifecycle/references/request-triage.md +2 -0
  272. package/template/.pi/skills/yss-product-lifecycle/references/state-model.md +3 -3
  273. package/template/.pi/skills/yss-product-lifecycle/references/user-decisions.md +2 -2
  274. package/template/.pi/skills/yss-prototype-stage/SKILL.md +7 -7
  275. package/template/.pi/skills/yss-prototype-stage/references/existing-ui-entry.md +1 -1
  276. package/template/.pi/skills/yss-prototype-stage/scripts/build-antd-prototype.mjs +1 -1
  277. package/template/.pi/skills/yss-prototype-stage/scripts/offline-html.mjs +3 -3
  278. package/template/.pi/skills/yss-prototype-stage/tests/browser-smoke.mjs +2 -2
  279. package/template/.pi/skills/yss-prototype-stage/tests/run-scenarios.mjs +4 -4
  280. package/template/.pi/skills/yss-prototype-stage/tests/workbench-smoke.mjs +1 -1
  281. package/template/.pi/skills/yss-repository/SKILL.md +2 -2
  282. package/template/.pi/skills/yss-repository/references/profiles/layered-mvc-service.md +1 -1
  283. package/template/.pi/skills/yss-repository/references/profiles/mvc-data-analysis-v1.md +1 -1
  284. package/template/.pi/skills/yss-repository/tests/profile-routing.test.mjs +2 -2
  285. package/template/.pi/skills/yss-research/SKILL.md +2 -2
  286. package/template/.pi/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +1 -1
  287. package/template/.pi/skills/yss-stage-decision/SKILL.md +5 -5
  288. package/template/.pi/skills/yss-stage-decision/references/domain-strategy-contract.md +1 -1
  289. package/template/.pi/skills/yss-stage-decision/references/strategic-handoff-routing.md +1 -1
  290. package/template/.pi/skills/yss-tactical-design/SKILL.md +2 -2
  291. package/template/.pi/skills/yss-tactical-design/references/strategic-handoff-routing.md +1 -1
  292. package/template/.pi/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
  293. package/template/.pi/skills/yss-technical-design/SKILL.md +6 -6
  294. package/template/.pi/skills/yss-technical-design/references/technical-design-contract.md +1 -1
  295. package/template/.pi/skills/yss-ui/SKILL.md +1 -1
  296. package/template/.pi/skills/yss-up-springboot3/SKILL.md +1 -1
  297. package/template/.pi/skills/yss-web-controller/SKILL.md +1 -1
  298. package/template/.pi/skills/yss-web-controller/references/profiles/layered-mvc-service.md +1 -1
  299. package/template/{docs → .template-spec}/adr/README.md +1 -1
  300. package/template/{docs → .template-spec}/agents/README.md +1 -1
  301. package/template/{docs → .template-spec}/agents/backend-architecture-profiles.md +2 -2
  302. package/template/{docs → .template-spec}/agents/digital-human-roles.md +6 -6
  303. package/template/{docs → .template-spec}/agents/digital-human-roles.yaml +5 -5
  304. package/template/{docs → .template-spec}/agents/gitlab-workflow-skills.md +2 -2
  305. package/template/{docs → .template-spec}/agents/issue-tracker.md +1 -1
  306. package/template/{docs → .template-spec}/agents/skill-migrations.md +2 -2
  307. package/template/{docs → .template-spec}/agents/triage-labels.md +1 -1
  308. package/template/{docs → .template-spec}/agents/yss-skill-registry.yaml +2 -2
  309. package/template/{docs → .template-spec}/architecture/README.md +3 -3
  310. package/template/{docs → .template-spec}/architecture/templates/tech-design-template.md +3 -1
  311. package/template/{docs → .template-spec}/design/README.md +12 -11
  312. package/template/{docs → .template-spec}/design/design.md +19 -19
  313. package/template/{docs/design/templates/interaction-spec-template.md → .template-spec/design/templates/examples/model-publishing-interaction.example.md} +5 -3
  314. package/template/{docs/design/templates/state-matrix-template.md → .template-spec/design/templates/examples/model-publishing-state-matrix.example.md} +3 -1
  315. package/template/.template-spec/design/templates/interaction-spec-template.md +61 -0
  316. package/template/{docs → .template-spec}/design/templates/product-overview-design-template.md +11 -11
  317. package/template/{docs → .template-spec}/design/templates/prototype-evidence-template.yaml +4 -4
  318. package/template/{docs → .template-spec}/design/templates/prototype-review-checklist.md +1 -1
  319. package/template/.template-spec/design/templates/state-matrix-template.md +29 -0
  320. package/template/.template-spec/design/tokens/.design-md-projection.json +13 -0
  321. package/template/{docs → .template-spec}/engineering/backend-platforms.md +1 -1
  322. package/template/{docs → .template-spec}/plan/entry-review.md +8 -4
  323. package/template/{docs → .template-spec}/plan/templates/plan-template.md +1 -1
  324. package/template/{docs → .template-spec}/process/contract-reading.md +1 -1
  325. package/template/{docs → .template-spec}/process/lifecycle-artifact-map.md +5 -5
  326. package/template/.template-spec/process/lifecycle-registry-baseline.json +253 -0
  327. package/template/{docs → .template-spec}/process/lifecycle-registry.yaml +19 -12
  328. package/template/{docs → .template-spec}/process/plan-migration.md +1 -1
  329. package/template/{docs → .template-spec}/process/schemas/digital-human-task-package.schema.json +14 -1
  330. package/template/{docs → .template-spec}/process/schemas/lifecycle-checkpoint.schema.json +15 -0
  331. package/template/{docs → .template-spec}/process/schemas/lifecycle-registry.schema.json +1 -1
  332. package/template/{docs → .template-spec}/process/schemas/strategic-design-handoff-v3.schema.json +1 -1
  333. package/template/{docs → .template-spec}/process/schemas/strategic-design-handoff-v4.schema.json +1 -1
  334. package/template/{docs → .template-spec}/process/schemas/strategic-design-handoff-v5.schema.json +1 -1
  335. package/template/{docs → .template-spec}/process/schemas/strategic-design-handoff.schema.json +1 -1
  336. package/template/{docs → .template-spec}/process/stage-tracking.md +1 -1
  337. package/template/{docs → .template-spec}/process/subagent-collaboration.md +2 -2
  338. package/template/{docs → .template-spec}/templates/build-architecture-checklist-template.md +2 -2
  339. package/template/{docs → .template-spec}/templates/digital-human-runtime-profile-template.md +2 -2
  340. package/template/{docs → .template-spec}/templates/grok-bot-profile-template.md +1 -1
  341. package/template/{docs → .template-spec}/templates/local-parent-ticket-template.md +1 -1
  342. package/template/.template-spec/templates/release-note-template.md +29 -0
  343. package/template/.template-spec/templates/retro-report-template.md +24 -0
  344. package/template/{docs → .template-spec}/templates/subagent-task-package-template.md +3 -3
  345. package/template/.template-spec/templates/verification-record-template.md +64 -0
  346. package/template/{docs → .template-spec}/templates/vertical-slice-ticket-template.md +5 -10
  347. package/template/{docs → .template-spec}/user-guide//347/224/250/346/210/267/346/211/213/345/206/214.md +1 -1
  348. 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
  349. package/template/AGENTS.md +12 -12
  350. package/template/CONTEXT.md +3 -3
  351. package/template/README.md +21 -21
  352. package/template/scripts/backend-delivery +1 -1
  353. package/template/scripts/lib/api-contract-decision.mjs +1 -1
  354. package/template/scripts/lib/approved-execution-context.mjs +5 -5
  355. package/template/scripts/lib/backend-delivery.mjs +4 -4
  356. package/template/scripts/lib/backend-platform.mjs +1 -1
  357. package/template/scripts/lib/backend-review.mjs +1 -1
  358. package/template/scripts/lib/backend-scaffold-prerequisites.mjs +1 -1
  359. package/template/scripts/lib/backend-standards-coverage.mjs +2 -2
  360. package/template/scripts/lib/context-reconciliation.mjs +1 -1
  361. package/template/scripts/lib/contract-views.mjs +9 -9
  362. package/template/scripts/lib/delivery-preflight.mjs +6 -6
  363. package/template/scripts/lib/design-md.mjs +2 -2
  364. package/template/scripts/lib/digital-human-roles.mjs +2 -2
  365. package/template/scripts/lib/existing-backend-architecture.mjs +1 -1
  366. package/template/scripts/lib/existing-ui-baseline.mjs +1 -1
  367. package/template/scripts/lib/frontend-delivery.mjs +2 -2
  368. package/template/scripts/lib/governance-layout.mjs +74 -0
  369. package/template/scripts/lib/harness-execution-scope.mjs +2 -2
  370. package/template/scripts/lib/lifecycle-context-query.mjs +11 -3
  371. package/template/scripts/lib/lifecycle-registry.mjs +46 -7
  372. package/template/scripts/lib/lifecycle-status.mjs +111 -0
  373. package/template/scripts/lib/lifecycle-transition.mjs +71 -10
  374. package/template/scripts/lib/openapi-draft-validation.mjs +1 -1
  375. package/template/scripts/lib/plan-spec-entry-view.mjs +48 -0
  376. package/template/scripts/lib/plan-spec-entry.mjs +3 -3
  377. package/template/scripts/lib/skill-registry.mjs +8 -8
  378. package/template/scripts/lib/skill-supply-chain.mjs +1 -1
  379. package/template/scripts/lib/slice-contract-preparation.mjs +3 -3
  380. package/template/scripts/lib/slice-contract.mjs +1 -1
  381. package/template/scripts/lib/slice-repositories.mjs +1 -1
  382. package/template/scripts/lib/slice-task-package.mjs +3 -3
  383. package/template/scripts/lib/stage-tracking-migration.mjs +2 -2
  384. package/template/scripts/lib/stage-tracking.mjs +5 -5
  385. package/template/scripts/lib/strategic-feedback.mjs +2 -2
  386. package/template/scripts/lib/strategic-handoff-routing.mjs +2 -2
  387. package/template/scripts/lib/strategic-handoff.mjs +15 -15
  388. package/template/scripts/lib/task-package-schema.mjs +2 -2
  389. package/template/scripts/lib/task-package.mjs +1 -1
  390. package/template/scripts/lib/technical-design-boundary.mjs +1 -1
  391. package/template/scripts/lib/user-decision.mjs +2 -1
  392. package/template/scripts/lifecycle-status +14 -0
  393. package/template/scripts/plan-spec-entry +21 -0
  394. package/template/scripts/strategic-consumer-entry +1 -1
  395. package/template/scripts/strategic-handoff +1 -1
  396. package/template/scripts/verify-frontend-implementation-evidence +1 -1
  397. package/template/scripts/verify-governance-layout +15 -0
  398. package/template/scripts/verify-lifecycle-checkpoint +1 -1
  399. package/template/scripts/verify-project-instance +2 -0
  400. package/template/scripts/verify-scaffold-architecture-decisions +1 -1
  401. package/template/scripts/verify-strategic-context-import +3 -3
  402. package/template/skills-lock.json +77 -77
  403. package/template.manifest.json +19 -19
  404. package/template.snapshot.json +5 -5
  405. package/template/docs/agents/archify-integration.md +0 -19
  406. package/template/docs/design/design-system-sync.yaml +0 -13
  407. package/template/docs/design/preview-dark.html +0 -178
  408. package/template/docs/design/preview.css +0 -730
  409. package/template/docs/design/preview.html +0 -178
  410. package/template/docs/design/preview.js +0 -71
  411. package/template/docs/design/tokens/.design-md-projection.json +0 -13
  412. package/template/docs/engineering/evidence/aliyun-artifact-resolution.json +0 -446
  413. package/template/docs/process/MATT-POCOCK-ENGINEERING-SKILLS.md +0 -13
  414. package/template/docs/process/github-workflows.md +0 -52
  415. package/template/docs/templates/release-note-template.md +0 -14
  416. package/template/docs/templates/retro-report-template.md +0 -16
  417. package/template/docs/templates/verification-record-template.md +0 -53
  418. /package/template/{docs → .template-spec}/agents/domain.md +0 -0
  419. /package/template/{docs → .template-spec}/api/templates/openapi-draft-review-checklist.md +0 -0
  420. /package/template/{docs → .template-spec}/api/templates/openapi-draft-validation-record-template.yaml +0 -0
  421. /package/template/{docs → .template-spec}/api/templates/openapi-freeze-record-template.md +0 -0
  422. /package/template/{docs → .template-spec}/api/templates/openapi-json-export-record-template.md +0 -0
  423. /package/template/{docs → .template-spec}/architecture/templates/architecture-deepening-template.md +0 -0
  424. /package/template/{docs → .template-spec}/architecture/templates/architecture-review-checklist.md +0 -0
  425. /package/template/{docs → .template-spec}/architecture/templates/business-architecture-template.md +0 -0
  426. /package/template/{docs → .template-spec}/architecture/templates/data-architecture-template.md +0 -0
  427. /package/template/{docs → .template-spec}/architecture/templates/engineering-baseline-review-template.md +0 -0
  428. /package/template/{docs → .template-spec}/architecture/templates/functional-architecture-template.md +0 -0
  429. /package/template/{docs → .template-spec}/architecture/templates/system-overview-design-template.md +0 -0
  430. /package/template/{docs → .template-spec}/design/diagrams/README.md +0 -0
  431. /package/template/{docs → .template-spec}/design/schemas/visual-baseline.schema.json +0 -0
  432. /package/template/{docs → .template-spec}/design/templates/prototype-confirmation-template.md +0 -0
  433. /package/template/{docs → .template-spec}/design/templates/visual-baseline-template.yaml +0 -0
  434. /package/template/{docs → .template-spec}/design/tokens/theme.json +0 -0
  435. /package/template/{docs → .template-spec}/design/tokens/tokens.compact.json +0 -0
  436. /package/template/{docs → .template-spec}/design/tokens/tokens.dark.json +0 -0
  437. /package/template/{docs → .template-spec}/design/tokens/tokens.default.json +0 -0
  438. /package/template/{docs → .template-spec}/design/tokens/variables.css +0 -0
  439. /package/template/{docs → .template-spec}/design/tokens/variables.dark.css +0 -0
  440. /package/template/{docs → .template-spec}/engineering/backend-platforms.json +0 -0
  441. /package/template/{docs → .template-spec}/plan/README.md +0 -0
  442. /package/template/{docs → .template-spec}/plan/templates/competitive-analysis-template.md +0 -0
  443. /package/template/{docs → .template-spec}/plan/templates/competitive-matrix-template.md +0 -0
  444. /package/template/{docs → .template-spec}/plan/templates/market-analysis-template.md +0 -0
  445. /package/template/{docs → .template-spec}/plan/templates/user-pain-points-template.md +0 -0
  446. /package/template/{docs → .template-spec}/process/delivery-preflight.md +0 -0
  447. /package/template/{docs → .template-spec}/process/document-writing.md +0 -0
  448. /package/template/{docs → .template-spec}/process/existing-backend-architecture.md +0 -0
  449. /package/template/{docs → .template-spec}/process/existing-ui-baseline.md +0 -0
  450. /package/template/{docs → .template-spec}/process/frontend-backend-delivery.md +0 -0
  451. /package/template/{docs → .template-spec}/process/harness-process-tailoring.md +0 -0
  452. /package/template/{docs → .template-spec}/process/implementation-repo-integration.md +0 -0
  453. /package/template/{docs/process/lifecycle-registry-baseline.json → .template-spec/process/lifecycle-registry-baseline-v1.json} +0 -0
  454. /package/template/{docs → .template-spec}/process/schemas/api-contract-decision-v2.schema.json +0 -0
  455. /package/template/{docs → .template-spec}/process/schemas/api-contract-decision.schema.json +0 -0
  456. /package/template/{docs → .template-spec}/process/schemas/backend-architecture-identity.schema.json +0 -0
  457. /package/template/{docs → .template-spec}/process/schemas/backend-delivery-verification.schema.json +0 -0
  458. /package/template/{docs → .template-spec}/process/schemas/backend-delivery.schema.json +0 -0
  459. /package/template/{docs → .template-spec}/process/schemas/context-reconciliation.schema.json +0 -0
  460. /package/template/{docs → .template-spec}/process/schemas/data-architecture-decision.schema.json +0 -0
  461. /package/template/{docs → .template-spec}/process/schemas/delivery-preflight-input.schema.json +0 -0
  462. /package/template/{docs → .template-spec}/process/schemas/delivery-preflight-result.schema.json +0 -0
  463. /package/template/{docs → .template-spec}/process/schemas/existing-ui-baseline.schema.json +0 -0
  464. /package/template/{docs → .template-spec}/process/schemas/frontend-delivery-acceptance-v1.schema.json +0 -0
  465. /package/template/{docs → .template-spec}/process/schemas/frontend-delivery-acceptance-v3.schema.json +0 -0
  466. /package/template/{docs → .template-spec}/process/schemas/frontend-delivery-acceptance.schema.json +0 -0
  467. /package/template/{docs → .template-spec}/process/schemas/frontend-implementation-evidence.schema.json +0 -0
  468. /package/template/{docs → .template-spec}/process/schemas/frontend-strategic-preflight-v2.schema.json +0 -0
  469. /package/template/{docs → .template-spec}/process/schemas/frontend-strategic-preflight.schema.json +0 -0
  470. /package/template/{docs → .template-spec}/process/schemas/implementation-repository-preparation-result.schema.json +0 -0
  471. /package/template/{docs → .template-spec}/process/schemas/openapi-draft-validation-record.schema.json +0 -0
  472. /package/template/{docs → .template-spec}/process/schemas/project-scaffold-contract.schema.json +0 -0
  473. /package/template/{docs → .template-spec}/process/schemas/review-bundle.schema.json +0 -0
  474. /package/template/{docs → .template-spec}/process/schemas/scaffold-architecture-decisions.schema.json +0 -0
  475. /package/template/{docs → .template-spec}/process/schemas/slice-implementation-contract-v3.schema.json +0 -0
  476. /package/template/{docs → .template-spec}/process/schemas/stage-tracking.schema.json +0 -0
  477. /package/template/{docs → .template-spec}/process/schemas/strategic-consumer-feedback.schema.json +0 -0
  478. /package/template/{docs → .template-spec}/process/schemas/strategic-feedback-adjudication.schema.json +0 -0
  479. /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-delivery-verification.schema.json +0 -0
  480. /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-delivery.schema.json +0 -0
  481. /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-domain-strategy-v3.schema.json +0 -0
  482. /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-domain-strategy.schema.json +0 -0
  483. /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-export-v2.schema.json +0 -0
  484. /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-export.schema.json +0 -0
  485. /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-import-receipt-v3.schema.json +0 -0
  486. /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-import-receipt.schema.json +0 -0
  487. /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-package.schema.json +0 -0
  488. /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-stage-decision-package-v3.schema.json +0 -0
  489. /package/template/{docs → .template-spec}/process/schemas/strategic-handoff-stage-decision-package.schema.json +0 -0
  490. /package/template/{docs → .template-spec}/process/schemas/subagent-task-package.schema.json +0 -0
  491. /package/template/{docs → .template-spec}/process/schemas/user-decision.schema.json +0 -0
  492. /package/template/{docs → .template-spec}/process/strategic-handoff-package.md +0 -0
  493. /package/template/{docs → .template-spec}/process/templates/context-reconciliation-template.yaml +0 -0
  494. /package/template/{docs → .template-spec}/process/templates/frontend-implementation-plan-template.yaml +0 -0
  495. /package/template/{docs → .template-spec}/process/templates/frontend-implementation-verification-template.yaml +0 -0
  496. /package/template/{docs → .template-spec}/process/templates/lifecycle-checkpoint-template.yaml +0 -0
  497. /package/template/{docs → .template-spec}/process/templates/scaffold-architecture-decisions-template.yaml +0 -0
  498. /package/template/{docs → .template-spec}/process/templates/stage-checkpoint-template.md +0 -0
  499. /package/template/{docs → .template-spec}/process/templates/user-decision-template.yaml +0 -0
  500. /package/template/{docs → .template-spec}/templates/adr-template.md +0 -0
  501. /package/template/{docs → .template-spec}/templates/approval-record-template.yaml +0 -0
  502. /package/template/{docs → .template-spec}/templates/cross-repo-slice-template.md +0 -0
  503. /package/template/{docs → .template-spec}/templates/examples/lifecycle-writing-examples.md +0 -0
  504. /package/template/{docs → .template-spec}/templates/implementation-repo-registry-template.md +0 -0
  505. /package/template/{docs → .template-spec}/templates/openapi-spec-template.yaml +0 -0
  506. /package/template/{docs → .template-spec}/templates/review-bundle-template.yaml +0 -0
  507. /package/template/{docs → .template-spec}/templates/review-report-template.md +0 -0
  508. /package/template/{docs → .template-spec}/templates/spec-delta-template.md +0 -0
  509. /package/template/{docs → .template-spec}/templates/spec-template.md +0 -0
  510. /package/template/{docs → .template-spec}/user-guide/yss-ui-mcp.md +0 -0
  511. /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
  512. /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
  513. /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
@@ -7,7 +7,7 @@ owner: <负责人>
7
7
 
8
8
  # <功能名称> Plan(战略规划)
9
9
 
10
- > 生命周期身份:`stage.plan` / `artifact.plan-record`。按影响面填写,不制造未命中项的空产物。进入 Spec 的退出条件以 `docs/process/lifecycle-registry.yaml` 为准。
10
+ > 生命周期身份:`stage.plan` / `artifact.plan-record`。按影响面填写,不制造未命中项的空产物。进入 Spec 的退出条件以 `.template-spec/process/lifecycle-registry.yaml` 为准。
11
11
 
12
12
  填写前读取[中文写作规范](../../process/document-writing.md)和 [Plan 对照](../../templates/examples/lifecycle-writing-examples.md#1-plan让业务问题和取舍可见)。先说明问题和本期取舍,假设与事实分开;以下各项按实际影响填写。
13
13
 
@@ -1,6 +1,6 @@
1
1
  # 合同阅读、准备与显式迁移
2
2
 
3
- 本文件描述工具入口;阶段、批准和执行门禁仍由 `docs/process/lifecycle-registry.yaml` 及资产所有者定义。YAML 是权威文件,视图不能编辑、批准合同或授予执行权限。
3
+ 本文件描述工具入口;阶段、批准和执行门禁仍由 `.template-spec/process/lifecycle-registry.yaml` 及资产所有者定义。YAML 是权威文件,视图不能编辑、批准合同或授予执行权限。
4
4
 
5
5
  ```sh
6
6
  scripts/contract view <资产> --kind <类型> [--profile review|task|full] [--unit <ID>] [--json]
@@ -1,9 +1,9 @@
1
1
  # YSS 生命周期产物与门禁地图
2
2
 
3
- 本文是模板仓库与模板实例共享的生命周期派生阅读视图。结构化事实源是 `docs/process/lifecycle-registry.yaml`;本文解释主阶段、条件门禁、必须持久化的产物和退出标准。具体项目只有在触发条件命中时才执行对应门禁。
3
+ 本文是模板仓库与模板实例共享的生命周期派生阅读视图。结构化事实源是 `.template-spec/process/lifecycle-registry.yaml`;本文解释主阶段、条件门禁、必须持久化的产物和退出标准。具体项目只有在触发条件命中时才执行对应门禁。
4
4
 
5
5
  <!-- lifecycle-registry:structure:start -->
6
- > 此结构区由 `docs/process/lifecycle-registry.yaml` 生成。当前为 `active` 模式:正式门禁、内部检查和派生文档共同消费此事实源。
6
+ > 此结构区由 `.template-spec/process/lifecycle-registry.yaml` 生成。当前为 `active` 模式:正式门禁、内部检查和派生文档共同消费此事实源。
7
7
 
8
8
  ## 1. 主阶段
9
9
 
@@ -70,8 +70,8 @@
70
70
  | `artifact.low-fidelity-prototype` | 低保真原型 | `stage.product-design` | 命中产品设计影响。 |
71
71
  | `artifact.state-matrix` | 状态矩阵 | `stage.product-design` | 存在状态流转、异常或恢复。 |
72
72
  | `artifact.prototype-deliverable` | 原型交付物 | `stage.product-design` | 低保真评审后需要 H1 视觉或 H2 流程校准。 |
73
- | `artifact.prototype-review` | 原型评审记录 | `stage.product-design` | 命中 gate.prototype-reviewed。 |
74
- | `artifact.prototype-confirmation` | 原型确认记录 | `stage.product-design` | 命中 gate.user-confirmation。 |
73
+ | `artifact.prototype-review-v2` | 原型评审记录 | `stage.product-design` | 命中 check.prototype-reviewed。 |
74
+ | `artifact.prototype-confirmation-v2` | 原型确认记录 | `stage.product-design` | 命中 gate.product-design-approved。 |
75
75
  | `artifact.openapi-draft` | OpenAPI Draft | `stage.system-data-engineering` | 有 API 影响。 |
76
76
  | `artifact.openapi-freeze-record` | OpenAPI Freeze 记录 | `stage.system-data-engineering` | API 进入实现。 |
77
77
  | `artifact.data-architecture` | 数据架构 | `stage.system-data-engineering` | 数据模型、存储或一致性变化。 |
@@ -107,7 +107,7 @@
107
107
  | `evidence.antd-cli-validation` | Ant Design CLI 校验证据 | 设计语言、组件、demo、token、semantic 与 lint 的实际 CLI/目标版本和可读输出引用。 |
108
108
  | `evidence.browser-prototype-verification` | 浏览器原型验证证据 | 高保真原型的非空渲染、主流程、异常状态、视口和控制台验证记录。 |
109
109
  | `evidence.prototype-profile-decision` | 原型档位选择证据 | 基于低保真评审后的风险触发、决定目标、H1/H2 计算结果以及人工升降级依据。 |
110
- | `evidence.prototype-deliverable-verification` | 原型交付物验证证据 | schema v3 共同证据与所选档位的浏览器、Design QA、无障碍、组件事实或真实组件合同验证结果。 |
110
+ | `evidence.prototype-deliverable-verification` | 原型交付物验证证据 | 新原型证据采用 schema v4,包含共同证据、Visual Baseline Bundle、浏览器、Design QA、无障碍及档位验证结果;历史 v3 仅供只读兼容。 |
111
111
  | `evidence.prototype-confirmation` | 原型用户确认记录 | 高保真原型、验证清单和进入下游阶段范围的人工确认结论。 |
112
112
  | `evidence.openapi-draft-review` | OpenAPI Draft 审查记录 | P0、错误、分页、幂等和契约测试审查记录。 |
113
113
  | `evidence.contract-approval` | Slice 合同批准记录 | 生命周期编排器批准且已持久化的当前版本合同引用。 |
@@ -0,0 +1,253 @@
1
+ {
2
+ "schema_version": 2,
3
+ "registry_id": "yss.lifecycle",
4
+ "historical_baseline": ".template-spec/process/lifecycle-registry-baseline-v1.json",
5
+ "historical_sha256": "5aa3194ec5b8d781a7705b049359644c3f18e09c33b9383d19675c5d0e2ab9bc",
6
+ "published_ids": [
7
+ "artifact.architecture-review",
8
+ "artifact.data-architecture",
9
+ "artifact.discovery-record",
10
+ "artifact.domain-strategy",
11
+ "artifact.engineering-baseline",
12
+ "artifact.frontend-implementation-plan",
13
+ "artifact.frontend-implementation-verification",
14
+ "artifact.functional-architecture",
15
+ "artifact.high-fidelity-html-prototype",
16
+ "artifact.impact-assessment",
17
+ "artifact.implementation-repository-preparation-result",
18
+ "artifact.interaction-spec",
19
+ "artifact.low-fidelity-prototype",
20
+ "artifact.openapi-draft",
21
+ "artifact.openapi-freeze-record",
22
+ "artifact.parent-ticket",
23
+ "artifact.plan-record",
24
+ "artifact.product-overview",
25
+ "artifact.project-scaffold-contract",
26
+ "artifact.prototype-confirmation",
27
+ "artifact.prototype-confirmation-v2",
28
+ "artifact.prototype-deliverable",
29
+ "artifact.prototype-review",
30
+ "artifact.prototype-review-v2",
31
+ "artifact.retrospective",
32
+ "artifact.slice-implementation-contract",
33
+ "artifact.spec",
34
+ "artifact.spec-delta",
35
+ "artifact.stage-decision-package",
36
+ "artifact.state-matrix",
37
+ "artifact.tactical-design",
38
+ "artifact.technical-design",
39
+ "artifact.vertical-slice-ticket",
40
+ "check.architecture-reviewed",
41
+ "check.design-reviewed",
42
+ "check.domain-strategy-approved",
43
+ "check.engineering-baseline-accepted",
44
+ "check.frontend-delivery-inputs-verified",
45
+ "check.frontend-implementation-verified",
46
+ "check.implementation-repositories-ready",
47
+ "check.openapi-draft-reviewed",
48
+ "check.openapi-frozen",
49
+ "check.prototype-reviewed",
50
+ "check.prototype-verified",
51
+ "check.repository-identity-valid",
52
+ "check.slice-ready-for-agent",
53
+ "check.stage-decision-package-approved",
54
+ "evidence.antd-cli-validation",
55
+ "evidence.approval-record",
56
+ "evidence.browser-prototype-verification",
57
+ "evidence.checkpoint-and-rollback",
58
+ "evidence.context-reconciliation",
59
+ "evidence.contract-approval",
60
+ "evidence.design-review-result",
61
+ "evidence.domain-strategy-review",
62
+ "evidence.fresh-verification",
63
+ "evidence.frontend-implementation-verification",
64
+ "evidence.impact-assessment",
65
+ "evidence.implementation-repository-preparation",
66
+ "evidence.maintenance-intensity-checkpoint",
67
+ "evidence.openapi-draft-review",
68
+ "evidence.prototype-confirmation",
69
+ "evidence.prototype-deliverable-verification",
70
+ "evidence.prototype-profile-decision",
71
+ "evidence.prototype-review-result",
72
+ "evidence.repository-identity-check",
73
+ "evidence.stage-decision-package",
74
+ "evidence.tactical-design-review",
75
+ "evidence.technical-design-review",
76
+ "evidence.yss-skill-execution-result",
77
+ "gate.architecture-reviewed",
78
+ "gate.backend-architecture-platform-approved",
79
+ "gate.delivery-accepted",
80
+ "gate.design-reviewed",
81
+ "gate.domain-strategy-approved",
82
+ "gate.engineering-baseline-accepted",
83
+ "gate.engineering-contract-approved",
84
+ "gate.frontend-delivery-inputs-verified",
85
+ "gate.frontend-implementation-verified",
86
+ "gate.implementation-repositories-ready",
87
+ "gate.openapi-draft-reviewed",
88
+ "gate.openapi-frozen",
89
+ "gate.plan-approved",
90
+ "gate.product-design-approved",
91
+ "gate.prototype-reviewed",
92
+ "gate.prototype-verified",
93
+ "gate.release-ready",
94
+ "gate.repository-identity-valid",
95
+ "gate.slice-contract-approved",
96
+ "gate.slice-ready-for-agent",
97
+ "gate.spec-baseline-approved",
98
+ "gate.stage-decision-package-approved",
99
+ "gate.user-confirmation",
100
+ "stage.discovery",
101
+ "stage.entry-triage",
102
+ "stage.plan",
103
+ "stage.product-design",
104
+ "stage.spec-architecture",
105
+ "stage.system-data-engineering",
106
+ "stage.ticket-formalization",
107
+ "stage.verification-release-retrospective",
108
+ "stage.vertical-slice-implementation",
109
+ "work-unit.attach-sync-integration",
110
+ "work-unit.backend-delivery",
111
+ "work-unit.code-review",
112
+ "work-unit.discovery-opportunity",
113
+ "work-unit.discovery-requirements",
114
+ "work-unit.domain-strategy-design",
115
+ "work-unit.entry-triage",
116
+ "work-unit.fresh-verification",
117
+ "work-unit.frontend-implementation-verification",
118
+ "work-unit.implementation-repository-preparation",
119
+ "work-unit.independent-review",
120
+ "work-unit.intensity-aware-review",
121
+ "work-unit.intensity-aware-review-v2",
122
+ "work-unit.intensity-aware-verification",
123
+ "work-unit.intensity-aware-verification-v2",
124
+ "work-unit.plan-opportunity",
125
+ "work-unit.plan-requirements",
126
+ "work-unit.prototype-design",
127
+ "work-unit.prototype-design-v2",
128
+ "work-unit.release-and-retrospective",
129
+ "work-unit.release-and-rollback",
130
+ "work-unit.service-project-initialization",
131
+ "work-unit.skill-projection-sync",
132
+ "work-unit.slice-implementation",
133
+ "work-unit.spec-synthesis",
134
+ "work-unit.ssot-update",
135
+ "work-unit.stage-decision",
136
+ "work-unit.technical-analysis",
137
+ "work-unit.template-snapshot-build",
138
+ "work-unit.ticket-decomposition"
139
+ ],
140
+ "migrations": {
141
+ "artifact.prototype-review": "artifact.prototype-review-v2",
142
+ "artifact.prototype-confirmation": "artifact.prototype-confirmation-v2",
143
+ "work-unit.intensity-aware-verification": "work-unit.intensity-aware-verification-v2",
144
+ "work-unit.intensity-aware-review": "work-unit.intensity-aware-review-v2",
145
+ "work-unit.prototype-design": "work-unit.prototype-design-v2"
146
+ },
147
+ "semantic_sha256_by_id": {
148
+ "artifact.architecture-review": "55e32428ee07475ac57f91f53f410dcf182ddaa3aa56187e8f4ba56968142e08",
149
+ "artifact.data-architecture": "6ed995295f4e99f953d90d739e9a6d1fc36cc0a50757ec34da39165872ca8731",
150
+ "artifact.domain-strategy": "3eb281af20f0106d836ec2816f0e524754f4f49e24abc2deb1c0daed1d9a918d",
151
+ "artifact.engineering-baseline": "0706c5d26e062fe33324e2cedaf50887cb4618770dddb1802d4f8cf80dfbb330",
152
+ "artifact.frontend-implementation-plan": "13f5561e7d74f4d4a6660c9fe408d6525296ab5feff51922ee48b364a1609d6c",
153
+ "artifact.frontend-implementation-verification": "db829707b9ab9161153244411b91ec6870daf1122241dffe453d779963578bd2",
154
+ "artifact.functional-architecture": "0e36b4dced6ba03a37be603ef33cdf4d0863e2436e5ec4d7ebdc457ce6266880",
155
+ "artifact.impact-assessment": "bce62b147d2f352673507befaf2a30195275257bfbf5fd4a84f93daec35d3146",
156
+ "artifact.implementation-repository-preparation-result": "41cbb653414612fdfea8fad43884c011217d0912d758460f4de3e767f4c37ce5",
157
+ "artifact.interaction-spec": "355c7de48e6014e9075ba43ca4f42e387858ae1173308e39870ff74cc87f3836",
158
+ "artifact.low-fidelity-prototype": "4cb480c2df5eaaf29f3eb53ba3d376eaa9c7309dff3c52364c3b66a63d463903",
159
+ "artifact.openapi-draft": "1b98c72dfa204bb63858ba5b7f06ff72028ca6dedeccf28ae45a7644fe6ae86c",
160
+ "artifact.openapi-freeze-record": "08ee4585a855264efbb50457f1c9e240fc2f3a5058b7a3af2f7a68736a140eb1",
161
+ "artifact.parent-ticket": "af769d9ece22bfba7f1dc28760616afef6a30663028765b23454e1477350bdfc",
162
+ "artifact.plan-record": "afe7072c38667a5b59d981fc1011a9567388dd5875f003ecee1779e31719764e",
163
+ "artifact.product-overview": "35918d75d311a3b31fc6dd4e427f39f60c2943ae2bdc5ce65507389453c5ff14",
164
+ "artifact.project-scaffold-contract": "b4d340e476723e7bd6dc6ecbbc429de4d10f7d257917389005aceb820690fc26",
165
+ "artifact.prototype-confirmation-v2": "4f31d17923afe9305a433d0030010be5358cab549ec535c82aa8fff913db61d3",
166
+ "artifact.prototype-deliverable": "ac2b77832290533643770c0e87486833ca98e5e4ca3401fda11f74936c4e3e6f",
167
+ "artifact.prototype-review-v2": "a0b679c29e0078fbce7eaeb3f20e200af50eb3dd81176db576c1bf24d21db095",
168
+ "artifact.retrospective": "77be27b3d8f523a0a352aecd985bf3ea8600dd14170ce7153daa08469d6f7b7e",
169
+ "artifact.slice-implementation-contract": "b572a1af9aa11742a56703a12a1f8d7519a33d6fc9fac3fdf415c9ac8330c0d8",
170
+ "artifact.spec": "bf7bb82adfbb32e97affaef0f615f6ca58f04390fe532df03dfbf1a04ec704df",
171
+ "artifact.spec-delta": "0d5e577c956544a92861385d5b3f6d358384ea9b959e11facd9aa4772e72c27c",
172
+ "artifact.stage-decision-package": "b3ad40c18caa65e24b130c1c4e4b9279739a724ba127ae6137cf198dc48c99e6",
173
+ "artifact.state-matrix": "e2019ae1c95d63f4ddefce9e51dbfb5fe3cb6b441c4c2b1cc74cd0f6c7fe9785",
174
+ "artifact.tactical-design": "66fa71c4e40d79919c3e178266e52a961a69314326a84e8e2d3f360643b4bf50",
175
+ "artifact.technical-design": "9e66cff2077559641d9ddce37c3da9d9d9e3f7399527193fa7d6c7301655f274",
176
+ "artifact.vertical-slice-ticket": "58b5a8114889c8ebb549621db3df7b1e9bcd4a823078d797cf80088998d31270",
177
+ "check.architecture-reviewed": "f52ba4a0d131f1abb9fc2eb910e3c4cea67dba329517c8a5a33b1e0758e5092b",
178
+ "check.design-reviewed": "7cd467cd49c5cea056d6135ca8a98e68ae43b45b2f2a7c7db641a575b55c207c",
179
+ "check.domain-strategy-approved": "eb1aa5c6133b44274339cb1b358502c1bd346a781414b726451223e22c100cea",
180
+ "check.engineering-baseline-accepted": "10d2776e1bea6d4103248b4d6267a8f747936b58237c0b5def23dd655d2b3a85",
181
+ "check.frontend-delivery-inputs-verified": "ba2d9ce9e7f4fc50fdeb5dc4d8d583c3ba5e0a969f21b4bebcd8cf2d78c27ea8",
182
+ "check.frontend-implementation-verified": "d4170e12ea66fccfc84756f5e0a969e39f392a3c815543735df91db1b5a1d747",
183
+ "check.implementation-repositories-ready": "c3ef8a82e9b59c595fb50e331a011d1071ec826e3293f44eda329321cc58a691",
184
+ "check.openapi-draft-reviewed": "5b27b54b99a71c7f14857dfd338f8148af79cb15896e2bbe305b62b67aac88bd",
185
+ "check.openapi-frozen": "47007fc1de92cd5ad0a56d0edc93e0e5d8a1ad82b883efd6264746aa3872f9cf",
186
+ "check.prototype-reviewed": "bc4f5501b9821a38ed6430bd0691636b58bd5d989ca072ff020078fffdfda9ef",
187
+ "check.prototype-verified": "649594b50967159373a1e958a21418519566e98983b8eda86f8a0b80f121e285",
188
+ "check.repository-identity-valid": "30d2b63085c2700de26bde12693e8c3f4318d0275e56ffa3dd55407a96db5e4d",
189
+ "check.slice-ready-for-agent": "c21c2efb06953f86b79eaf74d8f279f70256f9afb71877a5cf7a4ca2e2173d73",
190
+ "check.stage-decision-package-approved": "47ce3e399922cf4db217fe7884f07d15c9cf7926e14dc31035685aac5283001f",
191
+ "evidence.antd-cli-validation": "2142576c0f69ed56bd93bdd6b646843a6742e16c2ba2c30b2129fd5212b269b8",
192
+ "evidence.approval-record": "1ed858621b29345b316beb1fea2bea935c8ae446b8d7d37b283a0809be64e316",
193
+ "evidence.browser-prototype-verification": "7754db41d2e0e2f487a5fbc7bc4de92f472208d5a950f0ed03db40ee4af86a5a",
194
+ "evidence.checkpoint-and-rollback": "b556222549840e3030473e97a35cffcae8203adafeb8abef4834e06e50058925",
195
+ "evidence.context-reconciliation": "6e55bf19b91ea13306e18676b1869ce4370d40dcf52c0a3bcf58732c67f8171a",
196
+ "evidence.contract-approval": "1733abfdd0cbf55934540fede246c0b5b43d08e7d9b2f7de28f018b387e329ff",
197
+ "evidence.design-review-result": "73c6f69ca0a718efcc399a5e9c3f0f88d48fa64a070cbe01fe9bae66d10b8819",
198
+ "evidence.domain-strategy-review": "bf976abbf39d49cf3ffbdea4676451e955a7509d2a2366866519013e826eddfc",
199
+ "evidence.fresh-verification": "ae49e07f2c5d6543a9eb6d371b290ce99e659692ffed63d35195e17850b02f34",
200
+ "evidence.frontend-implementation-verification": "c2067930a083446043e23d8bd3c63653611ad1b766774b096890186fbe2549de",
201
+ "evidence.impact-assessment": "1a0d167729ae969b551df8814622b291e3f42f03d3f95d45f92e2fbf2e8c7b6f",
202
+ "evidence.implementation-repository-preparation": "40738005f10512078bcf0ca76f4ba8c8a2d44a54e3dc98259a4498c6a4737cbd",
203
+ "evidence.maintenance-intensity-checkpoint": "fc0588a1be13f2cbaaf66d79adad3ab87f7a51ae5732a01934ede0f9eb3d293c",
204
+ "evidence.openapi-draft-review": "4e0e11033999288c23c63f385b1e508239c196dc5d5fb2478c6eaa0bd065a081",
205
+ "evidence.prototype-confirmation": "1e9b1c2e6566c86f2fa4d60561cea5556ef092bbccbf89978c9797e12e8250b2",
206
+ "evidence.prototype-deliverable-verification": "cb72b910785b4749d7d66c4223ccfeee6c865b4cc9a31a9b151dcd7e91c4ae67",
207
+ "evidence.prototype-profile-decision": "58c9607fcdcb53815d5800e66ebcff8533013940ea9a634e257f851ca08c9bbd",
208
+ "evidence.prototype-review-result": "25bdb592b8e817c3bb4ef12d06dc43101de6622b1134ea2cbe98061f013f3531",
209
+ "evidence.repository-identity-check": "c5730d9bb25cbbd7d021f70a473b8b884e86f917e0a40ce1f768c71236e5b2a0",
210
+ "evidence.stage-decision-package": "d7e731a58bef0c22b0cd2e935f637f9a6d821e56894c3549ebc20b0b2d64902a",
211
+ "evidence.tactical-design-review": "4ea473898840b8485d9ca84b408d3132dfb6f23b55dfbacc7e602cbd33ec3959",
212
+ "evidence.technical-design-review": "03543e60515b6a4adb8c831a2003c3b751ad5a6dc4869d9ebd2005294980ed93",
213
+ "evidence.yss-skill-execution-result": "46286f205d241f6cd39cab99fd6e756b07488fd2da272dd1cccaa76052b46a0c",
214
+ "gate.backend-architecture-platform-approved": "58267edd48bfe2d983171c0495ba12235fc5ea467c33e5f433882a6ce218974c",
215
+ "gate.delivery-accepted": "984722a7351684aaa7f93ae5b84dc681afb78ba425efb55fcd8148b53f300b75",
216
+ "gate.engineering-contract-approved": "b9665d951354fed92ae315db8967c103b3f8a21a55d57c1dd4353ebfb49b1bf5",
217
+ "gate.plan-approved": "ae6cd4cb1a4a876546ae78ca91e13a685c6d6871dbc002ecf60f731531691902",
218
+ "gate.product-design-approved": "71c3af8e64d3a3b7708d4a365aa31140ad664a4df668e08846fb8b65442ca0c9",
219
+ "gate.slice-contract-approved": "04a2501336deec8cc58a57e3d3b3f6ce268756389618c81f9b2de3cb6ef28b66",
220
+ "gate.spec-baseline-approved": "81a96c3e0d50709eb79ab28136293437c5f96f6cc6b5744b98ac9613077dda98",
221
+ "stage.entry-triage": "9e2826607902a444d0defcdaebdb71b75e21c6b378a2ac4aba7bda4b1df7ff83",
222
+ "stage.plan": "a5851399855f2c70babffecb2cf9ba4b09373bce35218660e9c8c8ff369ceb67",
223
+ "stage.product-design": "1bad463780accbb20525eea35ed823fa1c41437adae7223c62c936d34092f317",
224
+ "stage.spec-architecture": "a52739d58a5dee33e5a6586ba3e769731f7785e46173582f9115b813e716a880",
225
+ "stage.system-data-engineering": "2b9191d0decf30b896e7cb6d5bd681256a114482344d9cf7a6dc2f4ca5bac079",
226
+ "stage.ticket-formalization": "c2c4295dbe29eb0e69a6ccf16958c9cc7b8ab7ba6e90115f290020e98acb9902",
227
+ "stage.verification-release-retrospective": "a73eaeb805ccbae44d394c74e38a609c1a47f281c6a305abfc10f5afb9b695e8",
228
+ "stage.vertical-slice-implementation": "a24a5a6e2d5a6ccf0561f43818883cd285a42e209a4f47509b6f18e7ced68344",
229
+ "work-unit.attach-sync-integration": "b57d0324e98146e834ba04e05c364b3cb107753ea2f31ae22560932c1dc3c0d9",
230
+ "work-unit.backend-delivery": "7d800c190102c66b782179c1985d0f470b47b940549d90eb3103aee02acb0230",
231
+ "work-unit.code-review": "40371458e91f90995f87c2a15f09117b0971d16baf6471089a20a215020acb01",
232
+ "work-unit.domain-strategy-design": "748a901446f94c6b5226266e0e21d700e46629826c141bc9527c32619f563b4a",
233
+ "work-unit.entry-triage": "4735f7b335ce72b602890aab470ef1dfc40f574802bc236db8fc18976da81fed",
234
+ "work-unit.frontend-implementation-verification": "9ec453baecde9035ee4be402680b924b35b22b7a9385f9e868d838398dc4e6fc",
235
+ "work-unit.implementation-repository-preparation": "c2f930ed2f5bb76214fa520d967eca47a44f003894ed971479ab0ced77b9007f",
236
+ "work-unit.intensity-aware-review-v2": "be0c488ff39c192c8724395ee224844c9f68cddb749c6335255e226759103e59",
237
+ "work-unit.intensity-aware-verification-v2": "3747058bc5574521bd8317c62d4684867de8a27a21e3471e42dcb9f226e05524",
238
+ "work-unit.plan-opportunity": "3953e4b05794038237c698bfd7233a90d4bd0ea904c22718f399ad6dc00dbfb3",
239
+ "work-unit.plan-requirements": "ce9a5d6b59d501c09851e60426294c5ad47dd2ae6b4019b867d80a162bb213d2",
240
+ "work-unit.prototype-design-v2": "f40355b838f3a2926513ac42f44e2eb5e854a3e28f9d8f83fd1f0e5c9ca44293",
241
+ "work-unit.release-and-retrospective": "a87cdd47918a249629f7cdc9874420b441bd64c28860dc3910ca217be7ebaad6",
242
+ "work-unit.release-and-rollback": "2c26da7b1133a588e1d098a91aad399c270dab12224c3b1c12a4c79e99da5905",
243
+ "work-unit.service-project-initialization": "a2142c0555f1ba54e888e9daa21ee36cfaead8444eb8255003031bb22cf5636b",
244
+ "work-unit.skill-projection-sync": "da8bb5f347cc01d56bd85e9eecdaf1c2a33584ed040239672b2e6cf973f4dd6a",
245
+ "work-unit.slice-implementation": "c33b625587d636afa47142862df003d704f82b4ee4e8f79f5bf6a6c3747fcee4",
246
+ "work-unit.spec-synthesis": "ce6c6d556dec93517ac525be6bbf59f4e0962f0882378b785b84db75b41a0527",
247
+ "work-unit.ssot-update": "f52e42205478e19529746af16aa75f863d2a238f481cebb157192bdf928ca27f",
248
+ "work-unit.stage-decision": "9a43c029438849337d1ddead2b4f0ca1d1c3482c279265e2b1db3088cbff6048",
249
+ "work-unit.technical-analysis": "57bb8cab7b0ef2eff43d848914bdd9297ec582570d11c0639dda3227a383726a",
250
+ "work-unit.template-snapshot-build": "48463092d1c644f5a5fc4f1c188ba662d7984085b8b04b1fbff450ef8c682939",
251
+ "work-unit.ticket-decomposition": "d239bd6855ea3cc8d448892af8bff62f5531499774eed58761288374b4c3d2cc"
252
+ }
253
+ }
@@ -6,7 +6,7 @@ description: >-
6
6
  id_policy:
7
7
  pattern: '^(stage|gate|check|artifact|work-unit|evidence)\.[a-z0-9][a-z0-9-]*$'
8
8
  published_ids_immutable: true
9
- baseline: docs/process/lifecycle-registry-baseline.json
9
+ baseline: .template-spec/process/lifecycle-registry-baseline.json
10
10
  deprecated_ids:
11
11
  - artifact.high-fidelity-html-prototype
12
12
  - work-unit.fresh-verification
@@ -31,6 +31,11 @@ id_policy:
31
31
  - gate.slice-ready-for-agent
32
32
  - gate.frontend-implementation-verified
33
33
  - gate.release-ready
34
+ - artifact.prototype-review
35
+ - artifact.prototype-confirmation
36
+ - work-unit.intensity-aware-verification
37
+ - work-unit.intensity-aware-review
38
+ - work-unit.prototype-design
34
39
 
35
40
  stages:
36
41
  - id: stage.entry-triage
@@ -120,7 +125,9 @@ evidence:
120
125
  description: 基于低保真评审后的风险触发、决定目标、H1/H2 计算结果以及人工升降级依据。
121
126
  - id: evidence.prototype-deliverable-verification
122
127
  name: 原型交付物验证证据
128
+ # description 保留已发布稳定 ID 的历史语义快照;当前产物版本读取 public_description 及原型证据合同。
123
129
  description: schema v3 共同证据与所选档位的浏览器、Design QA、无障碍、组件事实或真实组件合同验证结果。
130
+ public_description: 新原型证据采用 schema v4,包含共同证据、Visual Baseline Bundle、浏览器、Design QA、无障碍及档位验证结果;历史 v3 仅供只读兼容。
124
131
  - id: evidence.prototype-confirmation
125
132
  name: 原型用户确认记录
126
133
  description: 高保真原型、验证清单和进入下游阶段范围的人工确认结论。
@@ -259,14 +266,14 @@ artifacts:
259
266
  name: 原型交付物
260
267
  stage: stage.product-design
261
268
  trigger: 低保真评审后需要 H1 视觉或 H2 流程校准。
262
- - id: artifact.prototype-review
269
+ - id: artifact.prototype-review-v2
263
270
  name: 原型评审记录
264
271
  stage: stage.product-design
265
- trigger: 命中 gate.prototype-reviewed。
266
- - id: artifact.prototype-confirmation
272
+ trigger: 命中 check.prototype-reviewed。
273
+ - id: artifact.prototype-confirmation-v2
267
274
  name: 原型确认记录
268
275
  stage: stage.product-design
269
- trigger: 命中 gate.user-confirmation。
276
+ trigger: 命中 gate.product-design-approved。
270
277
  - id: artifact.openapi-draft
271
278
  name: OpenAPI Draft
272
279
  stage: stage.system-data-engineering
@@ -363,18 +370,18 @@ work_units:
363
370
  input: 目标仓库、dry-run 计划。
364
371
  output: 受管资产和 metadata。
365
372
  completion: 验证通过或完整回滚。
366
- - id: work-unit.intensity-aware-verification
373
+ - id: work-unit.intensity-aware-verification-v2
367
374
  name: 分级 Fresh verification
368
375
  scope: template-source
369
376
  input: 变更仓库、强度分级与对应最低证据。
370
377
  output: 命令输出与证据。
371
- completion: L1 相关检查、L2 最小反例与 fresh verification、L3 完整 RED / GREEN / REFACTOR 与 fresh verification 按命中等级通过。
372
- - id: work-unit.intensity-aware-review
378
+ completion: L1 完成相关检查;L2 完成最小反例、维护者自检与本轮 fresh verification;L3 完成维护者自检与本轮 fresh verification,正式发布前另运行完整 scripts/verify-template。
379
+ - id: work-unit.intensity-aware-review-v2
373
380
  name: 分级审查
374
381
  scope: template-source
375
382
  input: 变更 diff、强度分级与验证证据。
376
- output: L1 self-check / 人工 checkpoint、L2 聚焦独立审查或 L3 正式独立审查结论。
377
- completion: 已按命中等级完成审查且无未处理阻断项;L1 不强制独立 reviewer。
383
+ output: 维护者自检结论与阻断项;按需记录聚焦独立审查结果。
384
+ completion: 已完成命中等级要求的维护者自检并处理阻断项;独立审查仅在另行触发时执行,不由 L2 或 L3 自动强制。
378
385
  - id: work-unit.release-and-rollback
379
386
  name: 发布与回滚
380
387
  scope: template-source
@@ -417,12 +424,12 @@ work_units:
417
424
  input: 已确认的 Plan 记录和测试 seam。
418
425
  output: Spec、产品总体设计和功能架构。
419
426
  completion: Spec 内容完整并进入 ready-for-human;下游推进仍需 gate.spec-baseline-approved。
420
- - id: work-unit.prototype-design
427
+ - id: work-unit.prototype-design-v2
421
428
  name: 原型设计与验证
422
429
  scope: project-instance
423
430
  input: Spec、产品设计影响和状态矩阵。
424
431
  output: 交互说明、低保真、状态矩阵、H1/H2 原型交付物、统一 Design QA、档位验证证据与前端实现交接事项。
425
- completion: 低保真评审、schema v3 原型交付物验证和用户确认门禁均通过;生产组件待验事项已交接到前端实现计划。
432
+ completion: 低保真评审、schema v4 原型交付物验证和用户确认门禁均通过;Visual Baseline Bundle 和生产组件待验事项已交接到前端实现计划。
426
433
  - id: work-unit.technical-analysis
427
434
  name: 技术分析与契约冻结
428
435
  scope: project-instance
@@ -2,7 +2,7 @@
2
2
 
3
3
  新流程仅使用 `stage.plan`、`artifact.plan-record`、`work-unit.plan-opportunity` 和 `work-unit.plan-requirements`。不提供 Discovery 阶段别名、旧标识解析或兼容入口;旧 ID 在注册表中仅作为弃用清单保留,以防重新分配,不可执行。
4
4
 
5
- 新工作从 `docs/plan/templates/plan-template.md` 起草,工作目录为 `docs/.scratch/<feature>/plan/`。问题、机会和事实探索是 Plan 内按影响面执行的活动。
5
+ 新工作从 `.template-spec/plan/templates/plan-template.md` 起草,工作目录为 `docs/.scratch/<feature>/plan/`。问题、机会和事实探索是 Plan 内按影响面执行的活动。
6
6
 
7
7
  历史冻结文档、批准记录和摘要保持原字节。旧状态不能直接恢复执行;如需继续,按当前 Plan 模板重新整理输入并核查当前退出条件,不把旧批准自动视为新流程批准。已有事实和结论可引用,但须记录当前版本、适用范围和复用理由。
8
8
 
@@ -27,6 +27,19 @@
27
27
  "convergence"
28
28
  ],
29
29
  "properties": {
30
+ "transition_evidence": {
31
+ "type": "object",
32
+ "additionalProperties": false,
33
+ "properties": {
34
+ "strategic_handoff_consumption": { "type": "object" },
35
+ "approved_spec": { "type": "object" },
36
+ "context_reconciliation": { "type": "object" },
37
+ "technical_design": { "type": "object" },
38
+ "data_architecture_decision": { "type": "object" },
39
+ "api_contract_decision": { "type": "object" },
40
+ "engineering_contract_approval_ref": { "type": "string", "minLength": 1 }
41
+ }
42
+ },
30
43
  "plan_review_ref": {
31
44
  "type": "string",
32
45
  "minLength": 1
@@ -127,7 +140,7 @@
127
140
  ],
128
141
  "properties": {
129
142
  "registry_ref": {
130
- "const": "docs/agents/digital-human-roles.yaml"
143
+ "const": ".template-spec/agents/digital-human-roles.yaml"
131
144
  },
132
145
  "defaults_ref": {
133
146
  "type": "string",
@@ -22,6 +22,21 @@
22
22
  "rollback"
23
23
  ],
24
24
  "properties": {
25
+ "service_project_initialization": {
26
+ "type": "object",
27
+ "additionalProperties": false,
28
+ "required": ["project_id", "contract_ref", "contract_digest", "project_root", "context_handoff_digest"],
29
+ "properties": {
30
+ "project_id": { "type": "string", "minLength": 1 },
31
+ "contract_ref": { "type": "string", "minLength": 1 },
32
+ "contract_digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
33
+ "project_root": { "type": "string", "minLength": 1 },
34
+ "context_handoff_digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
35
+ "manifest_ref": { "type": "string", "minLength": 1 },
36
+ "verification_ref": { "type": "string", "minLength": 1 },
37
+ "result_ref": { "type": "string", "minLength": 1 }
38
+ }
39
+ },
25
40
  "plan_continuation_ref": {
26
41
  "type": "string",
27
42
  "minLength": 1
@@ -45,7 +45,7 @@
45
45
  "const": true
46
46
  },
47
47
  "baseline": {
48
- "const": "docs/process/lifecycle-registry-baseline.json"
48
+ "const": ".template-spec/process/lifecycle-registry-baseline.json"
49
49
  },
50
50
  "deprecated_ids": {
51
51
  "type": "array",
@@ -114,7 +114,7 @@
114
114
  "const": "CONTEXT.md"
115
115
  },
116
116
  "reconciliation_schema_ref": {
117
- "const": "docs/process/schemas/context-reconciliation.schema.json"
117
+ "const": ".template-spec/process/schemas/context-reconciliation.schema.json"
118
118
  },
119
119
  "required_before_skill": {
120
120
  "enum": [
@@ -667,7 +667,7 @@
667
667
  "properties": {
668
668
  "required": {"const": true},
669
669
  "target_context_ref": {"const": "CONTEXT.md"},
670
- "schema_ref": {"const": "docs/process/schemas/context-reconciliation.schema.json"}
670
+ "schema_ref": {"const": ".template-spec/process/schemas/context-reconciliation.schema.json"}
671
671
  }
672
672
  },
673
673
  "reason": {"type": "string", "minLength": 1},
@@ -769,7 +769,7 @@
769
769
  "const": "CONTEXT.md"
770
770
  },
771
771
  "schema_ref": {
772
- "const": "docs/process/schemas/context-reconciliation.schema.json"
772
+ "const": ".template-spec/process/schemas/context-reconciliation.schema.json"
773
773
  }
774
774
  }
775
775
  },
@@ -769,7 +769,7 @@
769
769
  "const": "CONTEXT.md"
770
770
  },
771
771
  "schema_ref": {
772
- "const": "docs/process/schemas/context-reconciliation.schema.json"
772
+ "const": ".template-spec/process/schemas/context-reconciliation.schema.json"
773
773
  }
774
774
  }
775
775
  },
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## 启用与职责
6
6
 
7
- `docs/agents/issue-tracker.md` 的 `tracker.lifecycle_tracking_version: 1` 表示项目已启用。新初始化默认启用;attach / sync 保留已有配置,未声明的旧项目不自动启用。只读检查不修改项目;旧项目先 plan 再显式 apply。模板源只维护机制,不在模板根生成产品工作项。
7
+ `.template-spec/agents/issue-tracker.md` 的 `tracker.lifecycle_tracking_version: 1` 表示项目已启用。新初始化默认启用;attach / sync 保留已有配置,未声明的旧项目不自动启用。只读检查不修改项目;旧项目先 plan 再显式 apply。模板源只维护机制,不在模板根生成产品工作项。
8
8
 
9
9
  完整研发从 Plan(或接入的最近可信阶段)建立唯一父 Ticket。Design 继续使用 checkpoint / map,不创建工程父 Ticket。Backend / Frontend 只消费已交接资产,不因本协议取得 Plan、Spec 或产品设计的编写权限。Dev 消费主模板的同一协议。
10
10
 
@@ -6,8 +6,8 @@ Subagent 和其它运行时实例只接收边界清晰的任务包。主控数
6
6
 
7
7
  ## 任务包
8
8
 
9
- 凡主控向数字人角色或独立运行时正式派发生命周期工作单元,都必须使用 `docs/process/schemas/digital-human-task-package.schema.json` 定义的任务包,并写明 `task_id`、`work_unit_id`、`actor_id`、数字人角色 ID、`runtime_id`、执行态、工作流状态、从 `docs/agents/digital-human-roles.yaml` 复制的 `core_skills` / `forbidden_skills`(可用 `taskPackageDefaults`)、合同类型和版本、输入资产、目标、允许写路径、禁止事项、验收标准、验证命令及其实际退出码 / 执行时间 / 证据引用、下游消费者和汇合方式。`slice-implementation` 才额外绑定 Slice Implementation Contract;禁止手写第二套技能包;任务包由 `scripts/verify-digital-human-task-package` 校验,`scripts/verify-subagent-task-package` 仅为兼容入口。
9
+ 凡主控向数字人角色或独立运行时正式派发生命周期工作单元,都必须使用 `.template-spec/process/schemas/digital-human-task-package.schema.json` 定义的任务包,并写明 `task_id`、`work_unit_id`、`actor_id`、数字人角色 ID、`runtime_id`、执行态、工作流状态、从 `.template-spec/agents/digital-human-roles.yaml` 复制的 `core_skills` / `forbidden_skills`(可用 `taskPackageDefaults`)、合同类型和版本、输入资产、目标、允许写路径、禁止事项、验收标准、验证命令及其实际退出码 / 执行时间 / 证据引用、下游消费者和汇合方式。`slice-implementation` 才额外绑定 Slice Implementation Contract;禁止手写第二套技能包;任务包由 `scripts/verify-digital-human-task-package` 校验,`scripts/verify-subagent-task-package` 仅为兼容入口。
10
10
 
11
11
  ## 汇合
12
12
 
13
- 返回结果必须符合 `workflow-execution-result-v1`,至少包括 `work_unit`、`workflow_reference`、`result`、`skill`、`changed_files` / `changed_artifacts`、`evidence_refs`、实际验证结果、`deferred_seams`、`drift`、`violation`、`new_impacts`、`stale_candidates`、`blocking_signals` 和 `next_route`。主控必须重新执行 fresh verification,并在集中 checkpoint 中保留阶段因果。会签写入 `docs/.scratch/<feature>/gates/<gate-id>-approval.yaml`(形状见 `docs/templates/approval-record-template.yaml`),不能用聊天表情代替。恢复前校验 `scripts/verify-approval-record`。
13
+ 返回结果必须符合 `workflow-execution-result-v1`,至少包括 `work_unit`、`workflow_reference`、`result`、`skill`、`changed_files` / `changed_artifacts`、`evidence_refs`、实际验证结果、`deferred_seams`、`drift`、`violation`、`new_impacts`、`stale_candidates`、`blocking_signals` 和 `next_route`。主控必须重新执行 fresh verification,并在集中 checkpoint 中保留阶段因果。会签写入 `docs/.scratch/<feature>/gates/<gate-id>-approval.yaml`(形状见 `.template-spec/templates/approval-record-template.yaml`),不能用聊天表情代替。恢复前校验 `scripts/verify-approval-record`。
@@ -20,7 +20,7 @@ owner: ai
20
20
  | 风险 / 回滚约束 | `AGENTS.md` | |
21
21
  | Slice Implementation Contract | | 填写 contract_id / contract_version / 生命周期批准状态 |
22
22
  | 后端脚手架策略 | `orchestration-contract.yaml` / DDD 或 Layered MVC 生成器 | | backend `scaffold_status=required` 时填写架构与平台用户门禁、architecture decision、精确 Spring Boot 版本、schema v4 合同身份、批准/持久化引用、生成器输入、Manifest v4、实际 `./mvnw` 结果和后置实现合同编译器重编译;既有工程填写登记值复用证据 |
23
- | 工程项目路径策略 | `docs/process/implementation-repo-integration.md` / 实现合同编译器 Contract | | Harness 内必须是 `apps/backend/<project>/` 或 `apps/frontend/<project>/`;`apps/backend/`、`apps/frontend/` 仅为容器,`app/backend/`、`app/frontend/` 及其子路径阻断 |
23
+ | 工程项目路径策略 | `.template-spec/process/implementation-repo-integration.md` / 实现合同编译器 Contract | | Harness 内必须是 `apps/backend/<project>/` 或 `apps/frontend/<project>/`;`apps/backend/`、`apps/frontend/` 仅为容器,`app/backend/`、`app/frontend/` 及其子路径阻断 |
24
24
  | 垂直切片工作单元 | | |
25
25
  | YSS Skill Execution Result | | 每个 skill / work_unit 的结果文件引用 |
26
26
 
@@ -43,7 +43,7 @@ owner: ai
43
43
  | Infrastructure:需要持久化的切片必须有 PO / Repository / Convertor / GatewayImpl;`InMemory*Gateway` 只能作为显式 `seam-deferred` | `yss-repository` / 数据架构 | | `implemented` / `seam-deferred` / `drift` / `violation` / `not-applicable` | | 未补齐时不得声称生产持久化完成 |
44
44
  | POJO / Convertor:DTO / VO / CMD / Query / PO / Domain Model 样板代码默认使用 Lombok;对象转换默认使用 MapStruct,禁止 `BeanUtils.copyProperties`、反射拷贝和重复手写字段赋值 | `lombok` / `mapstruct` / `AGENTS.md` | | `implemented` / `seam-deferred` / `drift` / `violation` / `not-applicable` | | 未加载 skill、缺注解处理器配置、缺 Convertor 或无例外说明时标记 `violation` |
45
45
  | 后端工程工具链:构建、测试、运行、OpenAPI 生成、CI 和 Release 命令必须使用项目根目录 `./mvnw ...`;裸 `mvn ...` 必须有受控例外记录 | DDD / Layered MVC 生成器及 implementation routing | | `implemented` / `seam-deferred` / `drift` / `violation` / `not-applicable` | | 无例外记录时改为 `./mvnw ...`,否则不得进入完成 / 可合并结论 |
46
- | 工程项目路径:每个 Harness 内项目必须有具体项目段,禁止直接写入容器根或单数 `app/...` | `docs/process/implementation-repo-integration.md` / implementation path validator | | `implemented` / `seam-deferred` / `drift` / `violation` / `not-applicable` | | 路径违规时停止 build,并回到实现路由 |
46
+ | 工程项目路径:每个 Harness 内项目必须有具体项目段,禁止直接写入容器根或单数 `app/...` | `.template-spec/process/implementation-repo-integration.md` / implementation path validator | | `implemented` / `seam-deferred` / `drift` / `violation` / `not-applicable` | | 路径违规时停止 build,并回到实现路由 |
47
47
  | 文档语言:持久化生命周期文档、实施记录、审查报告、发布说明和 Git checkpoint 正文必须使用中文,英文 skill / 模板不得原样落地 | `AGENTS.md` / `yss-product-lifecycle` | | `implemented` / `seam-deferred` / `drift` / `violation` / `not-applicable` | | 仅保留必要英文技术标识、命令和 metadata |
48
48
  | 高风险变更:按已批准的普通影响面结论记录验证证据、责任人和回滚约束 | `AGENTS.md` / Spec / 架构记录 | | `implemented` / `seam-deferred` / `drift` / `violation` / `not-applicable` | | 缺验证证据或责任人时不得发布或合并 |
49
49
  | 质量基线:`baseline_id` / `baseline_version` 只从 `engineering-baseline` 引用,Slice、Execution Result、审查和发布不得重复定义 | `engineering-baseline` / `orchestration-contract.yaml` | | `implemented` / `seam-deferred` / `drift` / `violation` / `not-applicable` | | 缺少基线引用或出现重复标准时阻断并回到工程基线 |
@@ -1,6 +1,6 @@
1
1
  # 数字人运行时 Profile:<数字人角色>
2
2
 
3
- > 从 `docs/agents/digital-human-roles.yaml` 复制 title / description / skill。不要手写第二套职责。先选 `runtime_id`,再按该运行时适配器落地。
3
+ > 从 `.template-spec/agents/digital-human-roles.yaml` 复制 title / description / skill。不要手写第二套职责。先选 `runtime_id`,再按该运行时适配器落地。
4
4
 
5
5
  ## 绑定
6
6
 
@@ -34,5 +34,5 @@
34
34
  - 人默认只跟主控说话。
35
35
  - 逻辑协作组以 YAML `stage_groups` 为准。
36
36
  - 当前运行时若声明了 `max_collaboration_group_size` 且 `overflow=one-to-one-handoff`,超员时改 1:1,不改逻辑组。
37
- - 会签按 YAML `gate_policy` 写 `docs/templates/approval-record-template.yaml`,填 `runtime_id` 与 `principal_ref`。恢复前跑 `scripts/verify-approval-record`。
37
+ - 会签按 YAML `gate_policy` 写 `.template-spec/templates/approval-record-template.yaml`,填 `runtime_id` 与 `principal_ref`。恢复前跑 `scripts/verify-approval-record`。
38
38
  - 权威产物写 git。
@@ -1,6 +1,6 @@
1
1
  # Grok Bot Profile:<数字人角色>
2
2
 
3
- > 这是 `runtime.grok` 适配模板。角色职责仍以 `docs/agents/digital-human-roles.yaml` 为准。通用流程见 `docs/templates/digital-human-runtime-profile-template.md`。
3
+ > 这是 `runtime.grok` 适配模板。角色职责仍以 `.template-spec/agents/digital-human-roles.yaml` 为准。通用流程见 `.template-spec/templates/digital-human-runtime-profile-template.md`。
4
4
 
5
5
  ## Profile
6
6
 
@@ -52,7 +52,7 @@ Status: ready-for-human
52
52
 
53
53
  | 门禁 | 记录路径 | 会签角色 | 状态 |
54
54
  |---|---|---|---|
55
- | | `docs/.scratch/<feature>/gates/<gate-id>-approval.yaml` | 见 `docs/agents/digital-human-roles.yaml` | pending / approved / blocked / not-applicable |
55
+ | | `docs/.scratch/<feature>/gates/<gate-id>-approval.yaml` | 见 `.template-spec/agents/digital-human-roles.yaml` | pending / approved / blocked / not-applicable |
56
56
 
57
57
  ## 阻塞关系
58
58