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
@@ -3,7 +3,7 @@ registry_id: yss.digital-human-roles
3
3
  status: active
4
4
  description: >-
5
5
  数字人角色、主控、阶段协作组、技能启用/禁止与生命周期会签的单一事实源。 角色配置与运行时无关;Cursor / Codex / Grok 等只通过 runtimes 绑定。 Ticket 五态不是数字人角色。
6
- canonical_path: docs/agents/digital-human-roles.yaml
6
+ canonical_path: .template-spec/agents/digital-human-roles.yaml
7
7
  runtime_policy:
8
8
  overlay_on_lifecycle: true
9
9
  consumed_by_lifecycle: true
@@ -41,7 +41,7 @@ runtimes:
41
41
  shared_workspace_is_not_security_boundary: false
42
42
  side_effect_approval: biological-human
43
43
  notes: >-
44
- 覆盖 docs/agents/yss-skill-registry.yaml 的 agent_runtime_roots (codex / cursor / pi)。 技能仍从 .agents/skills 投影,不按职称再维护一份。
44
+ 覆盖 .template-spec/agents/yss-skill-registry.yaml 的 agent_runtime_roots (codex / cursor / pi)。 技能仍从 .agents/skills 投影,不按职称再维护一份。
45
45
  - id: runtime.grok
46
46
  kind: grok-bot
47
47
  instance_kind: durable-bot
@@ -87,7 +87,7 @@ roles:
87
87
  contract_version: 1
88
88
  title: YSS 产品经理
89
89
  stages: [ stage.plan, stage.spec-architecture, stage.product-design, stage.verification-release-retrospective ]
90
- draft_artifact_ids: [ artifact.product-overview, artifact.functional-architecture, artifact.interaction-spec, artifact.state-matrix, artifact.prototype-confirmation ]
90
+ draft_artifact_ids: [ artifact.product-overview, artifact.functional-architecture, artifact.interaction-spec, artifact.state-matrix, artifact.prototype-confirmation-v2 ]
91
91
  core_skills: [ yss-design-system, yss-prototype-stage, prototype-review, yss-research, competitive-intelligence ]
92
92
  forbidden_skills: [ yss-ui, yss-domain, yss-repository, yss-web-controller, yss-ddd-scaffold-generator, yss-layered-mvc-scaffold-generator, implement, tdd ]
93
93
  description: >-
@@ -290,7 +290,7 @@ user_decision_policy:
290
290
  work_unit_gates:
291
291
  work-unit.spec-synthesis:
292
292
  - gate.spec-baseline-approved
293
- work-unit.prototype-design:
293
+ work-unit.prototype-design-v2:
294
294
  - gate.product-design-approved
295
295
  work-unit.technical-analysis:
296
296
  - gate.backend-architecture-platform-approved
@@ -298,5 +298,5 @@ user_decision_policy:
298
298
  conditional_decisions: [ scaffold-choice, external-input, new-authorization, risk-acceptance ]
299
299
  waiting_allows: independent-work-only
300
300
  expiry: basis-change-or-revocation-only
301
- record_schema: docs/process/schemas/user-decision.schema.json
301
+ record_schema: .template-spec/process/schemas/user-decision.schema.json
302
302
  verifier: scripts/verify-user-decision
@@ -6,7 +6,7 @@
6
6
 
7
7
  当项目主远端为 GitLab 时,默认使用 GitLab 作为代码托管、Merge Request、CI/CD 和工作流协作入口。
8
8
 
9
- Spec、Ticket 和 triage 不在本文中写死到 GitLab;它们按 `docs/agents/issue-tracker.md` 在 Local Markdown、GitLab / GitHub 间路由。
9
+ Spec、Ticket 和 triage 不在本文中写死到 GitLab;它们按 `.template-spec/agents/issue-tracker.md` 在 Local Markdown、GitLab / GitHub 间路由。
10
10
 
11
11
  已集成能力:
12
12
 
@@ -112,7 +112,7 @@ scripts/gitworks ci-status
112
112
 
113
113
  1. 读取项目状态:`scripts/gitworks status`。
114
114
  2. 需要 GitLab API / clone / push workflow 时,使用 `gitlab-workflow` skill。
115
- 3. 需要 MR / CI / Pipeline 时,使用 `glab` 或 `scripts/gitworks`;需要 Ticket / Spec / triage 时,先按 `docs/agents/issue-tracker.md` 判断 Local Markdown、GitLab 或 GitHub。
115
+ 3. 需要 MR / CI / Pipeline 时,使用 `glab` 或 `scripts/gitworks`;需要 Ticket / Spec / triage 时,先按 `.template-spec/agents/issue-tracker.md` 判断 Local Markdown、GitLab 或 GitHub。
116
116
  4. 执行自动提交前,必须先检查工作区脏文件,避免把无关 `.agents/`、`.codex/`、本机配置或用户未确认文件混入提交。
117
117
  5. 不直接提交到受保护主分支;默认使用 `feature/*`、`fix/*`、`chore/*` 分支。
118
118
  6. 自动 workflow 只在用户明确授权提交/推送时执行。
@@ -92,7 +92,7 @@ Git checkpoint 必须说明主 tracker、同步状态、验证命令、剩余风
92
92
  - Apply labels: `glab issue update <iid> --label "ready-for-agent"`
93
93
  - Close an issue: `glab issue close <iid>`
94
94
 
95
- GitLab 相关配置和 MR / CI 工作流见 `docs/agents/gitlab-workflow-skills.md`。
95
+ GitLab 相关配置和 MR / CI 工作流见 `.template-spec/agents/gitlab-workflow-skills.md`。
96
96
 
97
97
  ## GitHub Issues
98
98
 
@@ -65,7 +65,7 @@ DDD 脚手架的 Parent 工程约束由 `yss-ddd-scaffold-generator/references/e
65
65
 
66
66
  新工作迁移到:
67
67
 
68
- - 通用生命周期路由直接使用 `yss-product-lifecycle`;并行执行遵循 `docs/process/subagent-collaboration.md` 和运行时原生协调能力。
68
+ - 通用生命周期路由直接使用 `yss-product-lifecycle`;并行执行遵循 `.template-spec/process/subagent-collaboration.md` 和运行时原生协调能力。
69
69
  - 前端业务页面统一使用 `yss-ui` + `yss-ui-business-page-generation`,按影响面加载组件、Formily、表格、树、API、主题和高度专项 Skill。
70
70
  - 原型还原使用批准且摘要当前的 Visual Baseline、`frontend_implementation_plan` 与 `frontend_implementation_verification`;只做 type-check 不构成还原通过。
71
71
  - 前端与微应用提交统一使用 `frontend-commit`,scope 以仓库真实规则和业务模块为准,不再按目录机械映射。
@@ -80,7 +80,7 @@ DDD 脚手架的 Parent 工程约束由 `yss-ddd-scaffold-generator/references/e
80
80
  同步升级内容:
81
81
 
82
82
  - 技能注册表和调用者使用新 canonical ID;Registry、编译器合同、Slice Implementation Contract 与 YSS Skill Execution Result 使用 schema v2。
83
- - Recipe 只引用 dotted capability;类型化依赖只由 `docs/agents/yss-skill-registry.yaml` 持有。
83
+ - Recipe 只引用 dotted capability;类型化依赖只由 `.template-spec/agents/yss-skill-registry.yaml` 持有。
84
84
  - 旧 schema v1 输入明确拒绝并返回迁移提示,不自动升级。
85
85
  - 历史冻结证据和不可变候选快照不改写。旧 ID 仅可继续出现在本迁移记录、`OBSOLETE` 阻断集合及负向测试中。
86
86
 
@@ -10,6 +10,6 @@
10
10
  | `ready-for-human` | `ready-for-human` | Spec、设计、契约草案或其他资产需要会签(指定数字人或生物人)或特权访问 |
11
11
  | `wontfix` | `wontfix` | 不会处理 |
12
12
 
13
- 当 skill 提及某个 Ticket 状态时,使用表中对应的 Tracker 标签。会签人由 `docs/agents/digital-human-roles.yaml` 指定,不由本表指定。
13
+ 当 skill 提及某个 Ticket 状态时,使用表中对应的 Tracker 标签。会签人由 `.template-spec/agents/digital-human-roles.yaml` 指定,不由本表指定。
14
14
 
15
15
  Local Markdown 主 tracker 不调用远程标签:在 Ticket 文件顶部使用同名 `Status:` 值记录 Ticket 状态。Wayfinder 的 `claimed` / `resolved` 仅是临时工作状态,不属于本表五态;进入交付 Ticket 前必须转换为标准 `Status:`。
@@ -121,14 +121,14 @@ capability_contract:
121
121
  platform_component_binding:
122
122
  marker: provider
123
123
  required_kind: yss-component
124
- catalog_source: docs/engineering/backend-platforms.json
124
+ catalog_source: .template-spec/engineering/backend-platforms.json
125
125
  provider_kinds: [yss-component, platform-managed, none]
126
126
  retirement_contract:
127
127
  schema_version: 1
128
128
  stages: [deprecated, retired]
129
129
  deprecated_new_use: forbidden
130
130
  cleanup_statuses: [migration-only, remove-ready]
131
- hard_retirement_tombstone: docs/agents/skill-migrations.md
131
+ hard_retirement_tombstone: .template-spec/agents/skill-migrations.md
132
132
  retired_id_source: scripts/lib/skill-supply-chain.mjs#OBSOLETE
133
133
  failure_codes:
134
134
  deprecated: skill-deprecated
@@ -21,8 +21,8 @@
21
21
 
22
22
  推荐模板:
23
23
 
24
- - `docs/design/templates/product-overview-design-template.md`:Spec 初稿之后、页面 / 原型 / 交互设计之前的产品总体设计 / 功能架构评审稿。
25
- - `docs/architecture/templates/system-overview-design-template.md`:系统 / 数据架构与工程契约设计审查阶段的系统概要设计评审稿,承接 API 影响分析 / 契约草案 / OpenAPI Draft 与工程基线,并在 OpenAPI Freeze 前反向校验 Draft。
24
+ - `.template-spec/design/templates/product-overview-design-template.md`:Spec 初稿之后、页面 / 原型 / 交互设计之前的产品总体设计 / 功能架构评审稿。
25
+ - `.template-spec/architecture/templates/system-overview-design-template.md`:系统 / 数据架构与工程契约设计审查阶段的系统概要设计评审稿,承接 API 影响分析 / 契约草案 / OpenAPI Draft 与工程基线,并在 OpenAPI Freeze 前反向校验 Draft。
26
26
 
27
27
  ---
28
28
 
@@ -48,7 +48,7 @@ delegate_task(
48
48
  ```python
49
49
  delegate_task(
50
50
  goal="根据技术讨论记录,自动生成 ADR",
51
- context="使用 docs/templates/adr-template.md 模板"
51
+ context="使用 .template-spec/templates/adr-template.md 模板"
52
52
  )
53
53
  ```
54
54
 
@@ -1,5 +1,7 @@
1
1
  # 技术方案:[功能名称]
2
2
 
3
+ > 本文仅作为技术方案阅读模板;后端交付的批准与实现输入以 `yss-technical-design` 持有的当前结构化 Technical Design 合同为准。性能目标从已确认的需求和工程基线填写,不预设阈值。
4
+
3
5
  > 版本: 0.1 | 作者: | 日期: | 关联: Spec-xxx / ADR-xxx
4
6
 
5
7
  ---
@@ -101,7 +103,7 @@ CREATE TABLE xxx (
101
103
  | 指标 | 目标 | 方案 |
102
104
  |------|------|------|
103
105
  | 预期 QPS | | |
104
- | P99 响应时间 | ≤ 200ms | |
106
+ | P99 响应时间 | <已确认目标及依据;未确认则留待决定> | |
105
107
  | 数据量 (1年) | | |
106
108
  | 缓存策略 | | Redis / CDN / 浏览器缓存 |
107
109
  | 数据库索引 | | |
@@ -5,16 +5,16 @@
5
5
  设计系统基线:
6
6
 
7
7
  - `DESIGN.md`:机器可读的视觉 token 与组件变体规范源,按 Google `design.md` alpha 格式维护。
8
- - `docs/design/design-system-sync.yaml`:主模板与可独立分发的战略设计模板之间的共享章节版本与 SHA-256 同步摘要。
9
- - `docs/design/design.md`:YSS 设计治理、双轨运行时、生命周期和验证说明;不与规范源重复定义 token。
10
- - `docs/design/tokens/`:随仓库保存的主题、亮色 / 暗色 / 紧凑 token 和 CSS 变量快照,后续实现不得依赖本机 Downloads 目录或原始 Less。
8
+ - `.template-source/design/design-system-sync.yaml`:主模板与可独立分发的战略设计模板之间的共享章节版本与 SHA-256 同步摘要。
9
+ - `.template-spec/design/design.md`:YSS 设计治理、双轨运行时、生命周期和验证说明;不与规范源重复定义 token。
10
+ - `.template-spec/design/tokens/`:随仓库保存的主题、亮色 / 暗色 / 紧凑 token 和 CSS 变量快照,后续实现不得依赖本机 Downloads 目录或原始 Less。
11
11
  - 默认工作界面密度:`theme.json` 使用 default algorithm,与 Data Quality 的 32px 控件、14px 正文、20px Card 内距一致;仅显式紧凑模式叠加一次 compact algorithm;暗色紧凑模式组合 dark 与 compact algorithm,禁止重复压缩。
12
12
 
13
13
  Token 或组件视觉变体变更必须先修改 `DESIGN.md`,再更新派生快照;治理说明不得复制具体值。业务状态、API、权限和交互验收继续使用 Spec、交互说明及状态矩阵。
14
14
 
15
15
  产品原型由 `yss-prototype-stage` 持有阶段合同:先评审低保真/状态矩阵,再选择 H1 视觉或 H2 流程,并按需调用 `product-design:index` focused workflow。YSS 生命周期负责校验档位选择、Prototype Evidence schema v4、Visual Baseline schema v1、统一 Design QA、用户确认和 Spec / OpenAPI 回填。原型阶段不得调用生产实现技能 `yss-ui`。
16
16
 
17
- 进入 Spec 初稿 / 需求基线流程后,必须先沉淀产品总体设计 / 功能架构,再进入页面 / 原型 / 交互设计、Spec 校准、API 影响分析 / 契约草案或实现。产品总体设计文档必须包含低保真原型 / 页面草图,用于验证页面结构、关键操作和主流程。无 UI 的功能也需要产品总体设计 / 功能架构来说明功能域、业务对象、模块边界、API / 数据影响和不适用的页面状态;只有不进入 Spec 生命周期的小改动可在影响面评估中记录不适用原因。
17
+ 进入 Spec 初稿 / 需求基线流程后,先沉淀产品总体设计 / 功能架构,再进入页面 / 原型 / 交互设计、Spec 校准、API 影响分析 / 契约草案或实现。有 UI 影响时,产品总体设计记录早期页面 / 流程草图与待验证问题;正式低保真原型属于产品设计阶段。无 UI 的功能仍需说明功能域、业务对象、模块边界及 API / 数据影响,并记录页面草图不适用的依据;不生成空原型。
18
18
 
19
19
  进入 API 影响分析 / 契约草案前,有用户界面的功能还必须沉淀:
20
20
 
@@ -31,13 +31,14 @@ Token 或组件视觉变体变更必须先修改 `DESIGN.md`,再更新派生
31
31
 
32
32
  推荐模板:
33
33
 
34
- - `docs/design/templates/product-overview-design-template.md`:Spec 初稿之后、页面 / 原型 / 交互设计之前,用于团队评审产品总体设计、功能架构、低保真原型、页面/API/数据影响和 Spec 回填项;它是后续交互设计输入,不替代详细交互说明。
35
- - `docs/design/templates/interaction-spec-template.md`:页面、流程、交互、Spec 回填项和 OpenAPI 反推清单。
36
- - `docs/design/templates/state-matrix-template.md`:loading、empty、error、readonly、no-permission、conflict 等状态。
37
- - `docs/design/templates/prototype-review-checklist.md`:进入 Spec 校准 / API 影响分析 / 契约草案前的原型评审门禁。
38
- - `docs/design/templates/prototype-confirmation-template.md`:原型交付物验证后的用户确认记录。
39
- - `docs/design/templates/prototype-evidence-template.yaml`:Prototype Evidence schema v4 原型档位、浏览器、统一 Design QA、Visual Baseline 引用、条件组件事实、评审和确认的机器可读证据清单。
40
- - `docs/design/templates/visual-baseline-template.yaml`:Visual Baseline schema v1 页面语义、视口、状态、图片、mask、来源和采集环境的可移植清单。
34
+ - `.template-spec/design/templates/product-overview-design-template.md`:Spec 初稿之后、产品设计之前,用于评审功能架构、早期页面 / 流程草图、影响面和 Spec 回填项;正式低保真原型在产品设计阶段完成。
35
+ - `.template-spec/design/templates/interaction-spec-template.md`:页面、流程、交互、Spec 回填项和 OpenAPI 反推清单。
36
+ - `.template-spec/design/templates/state-matrix-template.md`:loading、empty、error、readonly、no-permission、conflict 等状态。
37
+ - `.template-spec/design/templates/examples/`:已填示例仅说明填写方式,不构成项目需求或批准结论。
38
+ - `.template-spec/design/templates/prototype-review-checklist.md`:进入 Spec 校准 / API 影响分析 / 契约草案前的原型评审门禁。
39
+ - `.template-spec/design/templates/prototype-confirmation-template.md`:原型交付物验证后的用户确认记录。
40
+ - `.template-spec/design/templates/prototype-evidence-template.yaml`:Prototype Evidence schema v4 原型档位、浏览器、统一 Design QA、Visual Baseline 引用、条件组件事实、评审和确认的机器可读证据清单。
41
+ - `.template-spec/design/templates/visual-baseline-template.yaml`:Visual Baseline schema v1 页面语义、视口、状态、图片、mask、来源和采集环境的可移植清单。
41
42
 
42
43
  推荐技能:
43
44
 
@@ -5,13 +5,13 @@
5
5
  ## 与 DESIGN.md 的职责边界
6
6
 
7
7
  - `DESIGN.md`:机器可读的颜色、排版、圆角、间距和组件视觉变体规范;使用 Google `design.md` alpha 格式。
8
- - `docs/design/tokens/*`:由规范源投影的运行时快照,禁止直接修改后作为规范依据;使用 `scripts/design-md` 执行漂移检查。
8
+ - `.template-spec/design/tokens/*`:由规范源投影的运行时快照,禁止直接修改后作为规范依据;使用 `scripts/design-md` 执行漂移检查。
9
9
  - 本文件:解释 YSS UI / Ant Design 双轨、页面设计约束、原型证据和生命周期门禁,不重新定义规范 token 的具体值。
10
10
  - Spec、交互说明和状态矩阵:继续承载业务状态、API、权限、并发、失败恢复和页面验收,不写入 `DESIGN.md`。
11
11
 
12
12
  ## 来源与定位
13
13
 
14
- 本文件基于本地设计系统包首次分析整理,并在后续用项目 Ant Design 5 Less / `:root` CSS 变量覆盖默认亮色主题。紧凑密度、间距和容器规格同时参考既有 YSS 实现。视觉 token 的规范源改为根目录 `DESIGN.md`;本文件和 `docs/design/tokens/*` 是治理说明与派生视图。外部目录只作为历史输入或实现样本,不作为后续工程依赖,也不作为实现语言。
14
+ 本文件基于本地设计系统包首次分析整理,并在后续用项目 Ant Design 5 Less / `:root` CSS 变量覆盖默认亮色主题。紧凑密度、间距和容器规格同时参考既有 YSS 实现。视觉 token 的规范源改为根目录 `DESIGN.md`;本文件和 `.template-spec/design/tokens/*` 是治理说明与派生视图。外部目录只作为历史输入或实现样本,不作为后续工程依赖,也不作为实现语言。
15
15
 
16
16
  关键来源:
17
17
 
@@ -21,11 +21,11 @@
21
21
  | 历史 `Product-Design-System` 包 | 首次引入 Ant Design 企业级语义、状态矩阵和验收习惯 | 仅保留原则、组件规则和审查清单 |
22
22
  | 项目 Ant Design 5 Less / `:root` 变量 | 品牌主色、运行时切换别名、色板与布局 token 的历史项目覆盖 | 保留经批准的品牌覆盖;不作为 v6 / Antdv Next API 事实 |
23
23
  | `yss-meta` 的 `packages/src/styles` | 已落地的紧凑间距、Card 圆角、CSS 变量桥接和客户主题案例 | 只提取稳定语义;utility class、客户覆盖和兼容补丁不进入默认规范 |
24
- | `docs/design/tokens/tokens.default.json` | 默认亮色主题派生 token | 作为实现 token 基线 |
25
- | `docs/design/tokens/tokens.dark.json` | 暗色主题派生 token | 暗色仍走 `darkAlgorithm`;本轮未按新 seed 重派生完整暗色色板 |
26
- | `docs/design/tokens/tokens.compact.json` | 紧凑密度主题派生 token | 共享亮色 seed,紧凑高度算法保持现状 |
27
- | `docs/design/tokens/variables.css` | `--brand-*` 与运行时别名 | 前端实现时优先转换为项目 token |
28
- | `docs/design/tokens/theme.json` | Ant Design `ConfigProvider` theme 配置 | React + Ant Design 项目可直接参考 |
24
+ | `.template-spec/design/tokens/tokens.default.json` | 默认亮色主题派生 token | 作为实现 token 基线 |
25
+ | `.template-spec/design/tokens/tokens.dark.json` | 暗色主题派生 token | 暗色仍走 `darkAlgorithm`;本轮未按新 seed 重派生完整暗色色板 |
26
+ | `.template-spec/design/tokens/tokens.compact.json` | 紧凑密度主题派生 token | 共享亮色 seed,紧凑高度算法保持现状 |
27
+ | `.template-spec/design/tokens/variables.css` | `--brand-*` 与运行时别名 | 前端实现时优先转换为项目 token |
28
+ | `.template-spec/design/tokens/theme.json` | Ant Design `ConfigProvider` theme 配置 | React + Ant Design 项目可直接参考 |
29
29
 
30
30
  历史 Less 输入曾存在互相覆盖的默认值;裁定结果已迁入根 `DESIGN.md`。本文件不保留第二份值表。历史值、上游默认或客户覆盖只能作为追溯输入,不能反向覆盖 `DESIGN.md`;需要改变裁定时先改规范源,再重新生成 Token/CSS 投影并更新同步摘要。
31
31
 
@@ -35,11 +35,11 @@
35
35
 
36
36
  ## 原型设计依据的优先级
37
37
 
38
- 当前原型以项目根 `DESIGN.md` 为视觉规范源,`docs/design/design.md` 解释治理规则,`docs/design/tokens/*` 是派生实现视图。需要真实 AntD 控件辅助评审时,上游资料只提供组件事实,不覆盖项目规范;在 `prototype-evidence.yaml` 中记录根规范与 Token digest,不把上游默认直接写回项目实现。
38
+ 当前原型以项目根 `DESIGN.md` 为视觉规范源,`.template-spec/design/design.md` 解释治理规则,`.template-spec/design/tokens/*` 是派生实现视图。需要真实 AntD 控件辅助评审时,上游资料只提供组件事实,不覆盖项目规范;在 `prototype-evidence.yaml` 中记录根规范与 Token digest,不把上游默认直接写回项目实现。
39
39
 
40
40
  项目覆盖与官方默认的差异直接读取根 `DESIGN.md` 并用 `design-md diff` 核验;本文件不复制差异值。上游预设色板可以保留其自身颜色谱,但**色板预设 ≠ 品牌 seed**。
41
41
 
42
- Codex `$design-qa` 的 Colors/tokens 与 Fonts/typography 对照必须以根 `DESIGN.md` 为 source visual truth,并用 `docs/design/tokens/*` 复核实际投影;不得回退到上游默认或历史品牌值。执行清单见 `.agents/skills/yss-design-system/references/design-qa-theme.md`。
42
+ Codex `$design-qa` 的 Colors/tokens 与 Fonts/typography 对照必须以根 `DESIGN.md` 为 source visual truth,并用 `.template-spec/design/tokens/*` 复核实际投影;不得回退到上游默认或历史品牌值。执行清单见 `.agents/skills/yss-design-system/references/design-qa-theme.md`。
43
43
 
44
44
  原型 H1/H2 默认使用 `html-css-js`,以本地 Token CSS 保留 YSS 企业后台视觉语言;复杂交互影响评审结论时可按集成说明选用 `react-antd-prebuilt`。生产实现只在目标工程按 lockfile 核验组件 API;原型阶段不调用 `yss-ui`。已有项目中冻结的组件库原型及其事实证据保持只读;模板不再预置 Antdv Next fact pack,也不生成新的 Provider 事实包。
45
45
 
@@ -60,7 +60,7 @@ HTML 直接使用 DESIGN.md 当前默认尺寸与主题 CSS,不要求 ConfigPr
60
60
 
61
61
  ## Token 基线
62
62
 
63
- 本文件不再抄写视觉 Token 的具体值。规范值只从根 `DESIGN.md` 读取,运行时名称和值只从 `docs/design/tokens/*` 派生快照读取;两者不一致时视为 drift,不在本文件中重新裁定。
63
+ 本文件不再抄写视觉 Token 的具体值。规范值只从根 `DESIGN.md` 读取,运行时名称和值只从 `.template-spec/design/tokens/*` 派生快照读取;两者不一致时视为 drift,不在本文件中重新裁定。
64
64
 
65
65
  ### 颜色角色映射
66
66
 
@@ -141,7 +141,7 @@ HTML 直接使用 DESIGN.md 当前默认尺寸与主题 CSS,不要求 ConfigPr
141
141
  | 表格 / 列表 | 容器 `0` 或 `spacing.sm` | 工具栏与表格 `spacing.xs` | 表格内部 cell padding 使用组件紧凑规格,不用页面 CSS 逐列覆盖 |
142
142
  | Modal / Drawer | `spacing.md` | 内容区块 `spacing.sm`;操作区 `spacing.xs` | 复杂多步流程不塞入 Modal,改用独立页面或 Drawer 分区 |
143
143
 
144
- 紧凑模式的计算值以 `docs/design/tokens/tokens.compact.json` 为准,它来自 `docs/design/tokens/theme.json` 的 seed 叠加一次 compact algorithm。业务页面只消费计算后的语义层级,不复制外部样例中的 `.m-*` / `.p-*` utility class,也不再次缩放。
144
+ 紧凑模式的计算值以 `.template-spec/design/tokens/tokens.compact.json` 为准,它来自 `.template-spec/design/tokens/theme.json` 的 seed 叠加一次 compact algorithm。业务页面只消费计算后的语义层级,不复制外部样例中的 `.m-*` / `.p-*` utility class,也不再次缩放。
145
145
 
146
146
  Margin 使用规则:组件自身默认不声明外部 margin,兄弟元素之间优先由父级 `gap` 管理;只有文档流语义或无法使用布局容器时才使用 margin,并仍限定在 `spacing.*` 阶梯内。禁止用负 margin 修补布局。
147
147
 
@@ -164,7 +164,7 @@ Margin 使用规则:组件自身默认不声明外部 margin,兄弟元素之
164
164
  | `borderRadius` | 6 | 默认控件圆角 |
165
165
  | `borderRadiusLG` | 8 | Card、大容器 / 浮层 |
166
166
 
167
- 保持“控件圆角小于或等于容器圆角”:控件使用 `rounded.sm/md`,Card 与普通容器使用 `rounded.lg`。更大的 panel 圆角属于局部产品扩展,不作为紧凑型默认值;确需使用时必须先登记规范角色,不能让同一页面任意混用。实现时以根 `DESIGN.md` 与 `docs/design/tokens/tokens.default.json` 为默认基线。
167
+ 保持“控件圆角小于或等于容器圆角”:控件使用 `rounded.sm/md`,Card 与普通容器使用 `rounded.lg`。更大的 panel 圆角属于局部产品扩展,不作为紧凑型默认值;确需使用时必须先登记规范角色,不能让同一页面任意混用。实现时以根 `DESIGN.md` 与 `.template-spec/design/tokens/tokens.default.json` 为默认基线。
168
168
 
169
169
  ### 动效
170
170
 
@@ -265,12 +265,12 @@ Margin 使用规则:组件自身默认不声明外部 margin,兄弟元素之
265
265
 
266
266
  如果前端使用 React + Ant Design:
267
267
 
268
- - 使用 `ConfigProvider` 注入 `docs/design/tokens/theme.json` 中的 theme 配置。
268
+ - 使用 `ConfigProvider` 注入 `.template-spec/design/tokens/theme.json` 中的 theme 配置。
269
269
  - 默认采用 Data Quality 浅色与 32px 控件;仅显式紧凑模式使用 `compactAlgorithm`;暗色工作界面组合 `darkAlgorithm` 与 `compactAlgorithm`。seed 与计算结果分别从 `theme.json`、`tokens.compact.json` 读取。
270
270
  - 组件样式优先通过 Ant Design token、component token、CSS variables 或主题算法表达。
271
271
  - 消息、通知、Modal 静态方法应使用 `App`、hook API 或 context holder,避免主题上下文丢失。
272
- - 暗色模式使用 `darkAlgorithm` 或 `docs/design/tokens/variables.dark.css`,不要手工反转颜色。本轮只同步了暗色的字体栈和圆角 seed;完整暗色色板仍是历史算法结果,启用暗色前应再派生一次。
273
- - 紧凑模式默认使用 `compactAlgorithm` 或 `docs/design/tokens/tokens.compact.json`,不要逐组件压缩高度;选择紧凑模式的原型交付物按紧凑 token 验收实际 padding、gap、Card 圆角和控件高度。
272
+ - 暗色模式使用 `darkAlgorithm` 或 `.template-spec/design/tokens/variables.dark.css`,不要手工反转颜色。本轮只同步了暗色的字体栈和圆角 seed;完整暗色色板仍是历史算法结果,启用暗色前应再派生一次。
273
+ - 紧凑模式默认使用 `compactAlgorithm` 或 `.template-spec/design/tokens/tokens.compact.json`,不要逐组件压缩高度;选择紧凑模式的原型交付物按紧凑 token 验收实际 padding、gap、Card 圆角和控件高度。
274
274
 
275
275
  H1/H2 原型使用 HTML/CSS/JavaScript:
276
276
 
@@ -280,7 +280,7 @@ H1/H2 原型使用 HTML/CSS/JavaScript:
280
280
 
281
281
  如果前端不是 Ant Design:
282
282
 
283
- - 先把 `docs/design/tokens/tokens.default.json` 转为项目设计 token,再映射到目标 UI 库。
283
+ - 先把 `.template-spec/design/tokens/tokens.default.json` 转为项目设计 token,再映射到目标 UI 库。
284
284
  - 保留组件语义和状态语义,不要只复制颜色。
285
285
  - 保持 `theme.json` 的基础 seed,并映射 `tokens.compact.json` 的计算结果;排版、间距和表面角色从根 `DESIGN.md` 读取。
286
286
  - 运行时动态换肤使用 `--primary-color` 等短名别名,或直接改 `--brand-*`。
@@ -300,9 +300,9 @@ H1/H2 原型使用 HTML/CSS/JavaScript:
300
300
 
301
301
  ## 后续落地 TODO
302
302
 
303
- - 将 `docs/design/tokens/theme.json` 作为 Data Quality 默认主题接入原型主题配置。
304
- - 将 `docs/design/tokens/variables.css` 中的 `--brand-*` 与运行时别名纳入项目 token 管理。
305
- - 如果项目启用暗色模式,用 `darkAlgorithm` 按新 seed 重派生 `docs/design/tokens/tokens.dark.json`,并补充截图验收。
303
+ - 将 `.template-spec/design/tokens/theme.json` 作为 Data Quality 默认主题接入原型主题配置。
304
+ - 将 `.template-spec/design/tokens/variables.css` 中的 `--brand-*` 与运行时别名纳入项目 token 管理。
305
+ - 如果项目启用暗色模式,用 `darkAlgorithm` 按新 seed 重派生 `.template-spec/design/tokens/tokens.dark.json`,并补充截图验收。
306
306
  - 让 H1/H2 原型适配器默认接入项目 Token,并在浏览器证据中记录实际计算后的 padding、gap、Card 圆角和控件高度。
307
307
 
308
308
  ## HTML 原型补充基线
@@ -1,4 +1,6 @@
1
- # <功能名称> 交互说明模板
1
+ > 示例:模型发布。仅展示填写方式,不构成真实需求、已批准规则或可复制的项目事实。
2
+
3
+ # 模型发布:交互说明填写示例
2
4
 
3
5
  > 适用时机:Spec 初稿和产品总体设计 / 功能架构完成之后,Spec 校准 / API 影响分析 / 契约草案之前;仅用于有用户界面影响的功能。
4
6
 
@@ -9,7 +11,7 @@
9
11
  | Spec 初稿 | `docs/.scratch/<feature>/spec.md` | 原型评审后需要回填和校准 |
10
12
  | 产品总体设计 / 功能架构 | `docs/.scratch/<feature>/design/<feature>-product-overview-design.md` | 必需;缺失时先返回产品总体设计阶段 |
11
13
  | 领域术语 | `CONTEXT.md` | 核心名词、状态和业务规则 |
12
- | Plan | `docs/.scratch/<feature>/plan/<feature>-discovery.md` | 可选 |
14
+ | Plan | `<实际 Plan 资产引用>` | 按当前项目范围填写 |
13
15
  | 原型阶段合同 / 视觉来源 | `yss-prototype-stage`;`source_visual.kind=design-system` 或 `visual-reference` | 默认 DESIGN.md 规范直出;独立视觉稿才条件使用 Product Design focused skill |
14
16
  | 原型 / 线框图 | `<链接或导出图片路径>` | Excalidraw / Figma / Penpot / tldraw / Axure / Markdown |
15
17
  | H1/H2 原型交付物 | `docs/.scratch/<feature>/design/prototypes/index.html` 与本地资源 | 低保真评审后按档位补齐;默认原生 HTML,复杂控件影响评审结论时选择 AntD 预构建;产出后须用户确认 |
@@ -80,7 +82,7 @@
80
82
 
81
83
  ## 5. 状态矩阵
82
84
 
83
- 引用或复制 `docs/design/templates/state-matrix-template.md`。
85
+ 引用或复制 `.template-spec/design/templates/state-matrix-template.md`。
84
86
 
85
87
  ## 6. OpenAPI 反推清单
86
88
 
@@ -1,4 +1,6 @@
1
- # <功能名称> 状态矩阵模板
1
+ > 示例:模型发布。仅展示填写方式,不构成真实需求、已批准规则或可复制的项目事实。
2
+
3
+ # 模型发布:状态矩阵填写示例
2
4
 
3
5
  > 适用时机:由 `yss-prototype-stage` 统一消费;规范直出与条件独立视觉稿使用同一状态矩阵,在 Spec 校准和 API 影响分析 / 契约草案之前补齐页面状态。
4
6
 
@@ -0,0 +1,61 @@
1
+ # <功能名称> 交互说明
2
+
3
+ > 适用时机:Spec 初稿和产品总体设计 / 功能架构完成之后;仅用于有用户界面影响的功能。填写示例见 `examples/model-publishing-interaction.example.md`,示例不构成需求。
4
+
5
+ ## 1. 输入与范围
6
+
7
+ | 资产 | 当前引用 / 版本 | 用途或未决项 |
8
+ |---|---|---|
9
+ | Spec 初稿 | <可读引用> | 交互发现须回填 Spec |
10
+ | 产品总体设计 / 功能架构 | <可读引用> | 页面与功能边界 |
11
+ | Plan 决策 | <实际资产引用;不适用则说明> | 目标、非目标与已确认取舍 |
12
+ | 领域词汇 | `CONTEXT.md` | 稳定术语 |
13
+ | 视觉来源 | `DESIGN.md` 或已批准的独立视觉来源 | 原型档位选择依据 |
14
+ | 已有原型或 API 草案 | <引用或不适用原因> | 仅用作当前阶段输入 |
15
+
16
+ - 本次用户、任务与 UI 影响:<待填写>
17
+ - 不在本次范围内的交互:<待填写>
18
+
19
+ ## 2. 页面地图
20
+
21
+ 引用总体设计的当前页面地图与边界;本节只细化交互入口、操作和后续流转。未变化的页面可引用上游对应行,当前阅读仍须能定位完整路径;发现边界、角色或目标变化时记录差异并回填 Spec / 总体设计,不重复定义另一份范围。
22
+
23
+ | 页面 / 区域 | 入口与角色 | 用户目标 | 关键操作 | 下一步 |
24
+ |---|---|---|---|---|
25
+ | <待填写> | <待填写> | <待填写> | <待填写> | <待填写> |
26
+
27
+ ## 3. 主流程与恢复
28
+
29
+ | 步骤 / 触发 | 用户操作 | 系统反馈 | 失败或异常 | 恢复路径 | Spec 规则引用 |
30
+ |---|---|---|---|---|---|
31
+ | <待填写> | <待填写> | <待填写> | <待填写> | <待填写> | <待填写> |
32
+
33
+ ## 4. 页面细节
34
+
35
+ | 页面 / 区域 | 信息或字段 | 数据来源 | 可用条件 / 权限 | 校验与反馈 | 待确认项 |
36
+ |---|---|---|---|---|---|
37
+ | <待填写> | <待填写> | <待填写> | <待填写> | <待填写> | <待填写> |
38
+
39
+ ## 5. 状态与原型
40
+
41
+ - 状态矩阵:<引用 `.template-spec/design/templates/state-matrix-template.md` 的当前实例;不适用则说明原因>。
42
+ - 低保真评审:<证据引用或待完成>。
43
+ - H1/H2 档位及触发理由:<待选择;不预填批准结果>。
44
+ - 原型交付物与 schema v4 验证:<实际引用;产出前写待完成>。
45
+ - 生产组件待验事项:<交给前端实现计划的清单;无则说明>。
46
+
47
+ ## 6. API 影响与 Spec 回填
48
+
49
+ | 交互需求 / 原型发现 | API 或数据影响 | 需回填的 Spec 规则 / 验收 | 负责人 | 状态 |
50
+ |---|---|---|---|---|
51
+ | <待填写> | <待评估> | <待填写> | <待登记> | 待确认 |
52
+
53
+ ## 7. 验收与未决问题
54
+
55
+ - 页面主流程、失败状态和恢复路径有可核验的交互说明,或记录不适用原因。
56
+ - 字段、操作与权限条件均有来源;不能用示例或组件默认行为代替产品决定。
57
+ - 原型档位、浏览器与 Design QA 证据按 `yss-prototype-stage` 的当前合同验收;此文档不批准原型或实现。
58
+
59
+ | 问题 / 决定 | 当前选项与依据 | 负责人 | 解决时点 | 状态 |
60
+ |---|---|---|---|---|
61
+ | <待填写> | <待填写> | <待登记> | <待登记> | 待确认 |
@@ -8,7 +8,7 @@ owner: ai
8
8
  # <功能名称> 产品总体设计与功能架构
9
9
 
10
10
  > 适用时机:Spec 初稿之后、页面 / 原型 / 交互设计之前。
11
- > 本文用于明确功能域、模块边界、MVP 范围、页面清单、低保真原型、状态 / 权限影响、OpenAPI 反推点和 Spec 回填项;它是页面 / 原型 / 交互设计的上游输入,不替代 Spec、交互说明、契约草案 / OpenAPI Draft 或系统概要设计。
11
+ > 本文用于明确功能域、模块边界、MVP 范围、页面或流程草图、状态 / 权限影响、OpenAPI 反推点和 Spec 回填项;它是正式低保真原型与交互设计的上游输入,不替代产品设计阶段的原型评审、Spec 或工程契约。
12
12
 
13
13
  ## 1. 输入资产
14
14
 
@@ -22,11 +22,11 @@ owner: ai
22
22
 
23
23
  ## 2. 设计目标
24
24
 
25
- - 目标用户:
26
- - 核心场景:
27
- - MVP 目标:
28
- - 非目标范围:
29
- - 成功标准:
25
+ 引用 Plan / Spec 中已确认的目标用户、核心场景、MVP、非目标和成功标准,写明章节或规则 ID。本节说明这些目标对功能边界与设计的约束;仅记录新增细化或差异,不重新批准上游范围。必要摘录绑定同一来源;引用不可读或标准未确认时列为开放问题。
26
+
27
+ | 上游目标 / 规则引用 | 本设计承接的约束 | 本阶段新增细化 / 差异与处理 |
28
+ |---|---|---|
29
+ | <当前资产及章节 / ID> | <对模块、流程或验收的约束> | <细化;无差异则说明沿用> |
30
30
 
31
31
  ## 3. 用户主流程
32
32
 
@@ -68,9 +68,9 @@ owner: ai
68
68
  |------|----------|----------|----------|------------------|------|
69
69
  | | | | | | |
70
70
 
71
- ## 8. 低保真原型 / 页面草图
71
+ ## 8. 页面结构 / 流程草图(条件适用)
72
72
 
73
- > 本节用于在产品总体设计阶段先验证页面结构、核心操作和跨页面流转,不展开到高保真视觉、组件实现或完整字段级交互;后续页面 / 原型 / 交互设计需基于本节继续细化。无 UI 功能仍保留本节,用流程 / 能力草图和“不适用原因”说明用户或系统如何完成任务。
73
+ > 有 UI 影响时记录早期页面结构、核心操作和跨页面流转。正式 `artifact.low-fidelity-prototype` 由后续 `stage.product-design` 产出与评审。无 UI 影响时写明依据和不适用原因,按需要给出业务流程或能力草图,不生成空页面线框。
74
74
 
75
75
  ### 8.1 页面地图
76
76
 
@@ -78,7 +78,7 @@ owner: ai
78
78
  |-------------|------|----------|----------|--------|
79
79
  | | | | | |
80
80
 
81
- ### 8.2 低保真线框
81
+ ### 8.2 早期结构草图(有 UI 影响时填写)
82
82
 
83
83
  ```text
84
84
  页面名称:
@@ -90,7 +90,7 @@ owner: ai
90
90
  [反馈区:校验结果 / 错误提示 / 空态]
91
91
  ```
92
92
 
93
- ### 8.3 原型评审关注点
93
+ ### 8.3 后续原型评审关注点(有 UI 影响时填写)
94
94
 
95
95
  | 页面 / 流程 | 需要验证的问题 | 关联 P0 需求 | 关联 API / 数据 / 权限影响 | 后续交互设计待细化 |
96
96
  |-------------|----------------|--------------|-----------------------------|--------------------|
@@ -115,7 +115,7 @@ owner: ai
115
115
  - [ ] 功能域、模块边界和优先级清楚。
116
116
  - [ ] 业务边界与协作检查已完成,或明确说明本次变更不影响业务责任边界。
117
117
  - [ ] 页面、API、数据、权限和审计影响已显式标注。
118
- - [ ] 低保真原型 / 页面草图已覆盖 P0 页面、主流程和关键异常路径,并能支撑后续交互设计。
118
+ - [ ] 有 UI 影响时,早期页面草图覆盖 P0 页面、主流程和关键异常路径,并列出正式低保真原型待验证事项;无 UI 时记录不适用原因与必要的流程说明。
119
119
  - [ ] Spec 回填项已列出,并分清阻断项和非阻断项。
120
120
  - [ ] 风险影响、验证证据和责任人已记录。
121
121
  - [ ] 可进入页面 / 原型 / 交互设计,或明确阻断项。
@@ -33,12 +33,12 @@ source_visual:
33
33
  design_baseline:
34
34
  canonical_design_ref: DESIGN.md
35
35
  canonical_design_digest: <sha256>
36
- project_design_ref: docs/design/design.md
36
+ project_design_ref: .template-spec/design/design.md
37
37
  project_token_refs:
38
38
  # 默认 Data Quality 浅色;显式暗色 / 紧凑模式改为实际消费的对应快照,并同步摘要和视觉基线 cases[].theme。
39
- - docs/design/tokens/theme.json
40
- - docs/design/tokens/tokens.default.json
41
- - docs/design/tokens/variables.css
39
+ - .template-spec/design/tokens/theme.json
40
+ - .template-spec/design/tokens/tokens.default.json
41
+ - .template-spec/design/tokens/variables.css
42
42
  project_token_baseline_digest: <sha256>
43
43
  project_override_reviewed: false
44
44
  visual_baseline:
@@ -10,7 +10,7 @@
10
10
  | 交互说明 | `docs/.scratch/<feature>/design/<feature>-interaction-spec.md` | |
11
11
  | 原型 / 线框图 | `<链接或导出图片路径>` | |
12
12
  | 状态矩阵 | `docs/.scratch/<feature>/design/<feature>-state-matrix.md` | |
13
- | 视觉规范与主题快照 | 根 `DESIGN.md`、`docs/design/design.md`、实际消费的 Token 快照 | 默认 Data Quality 浅色;显式暗色 / 紧凑模式注明选择依据 |
13
+ | 视觉规范与主题快照 | 根 `DESIGN.md`、`.template-spec/design/design.md`、实际消费的 Token 快照 | 默认 Data Quality 浅色;显式暗色 / 紧凑模式注明选择依据 |
14
14
  | 原型阶段合同 / Product Design 路由记录 | `yss-prototype-stage`;规范直出或条件独立视觉稿路线 | |
15
15
  | 原型验证清单 | `docs/.scratch/<feature>/verification/prototype-evidence.yaml` | 档位确定后补齐 schema v4 共同与档位证据,并引用 Visual Baseline Bundle v1 |
16
16
  | 现有 API 草案 | `docs/.scratch/<feature>/api/<feature>.yaml` | 可选 |
@@ -0,0 +1,29 @@
1
+ # <功能名称> 状态矩阵
2
+
3
+ > 由 `yss-prototype-stage` 消费,在 Spec 校准及 API 影响分析前记录当前页面状态。填写示例见 `examples/model-publishing-state-matrix.example.md`;示例不构成需求。
4
+
5
+ 状态矩阵同时承担轻量状态机合同。实际可进入的每个状态须有触发、允许转换、guard、动作和退出路径;不另建第二份状态机资产。按真实影响覆盖 loading、empty、error、readonly、disabled、no-permission、conflict 等状态,未命中项写明原因。
6
+
7
+ ## 页面状态
8
+
9
+ | 页面 / 组件 | 状态 | 触发条件 | 界面反馈 | API / 数据来源 | 验收点 / 规则引用 |
10
+ |---|---|---|---|---|---|
11
+ | <待填写> | <待填写> | <待填写> | <待填写> | <待填写> | <待填写> |
12
+
13
+ ## 状态转换与恢复
14
+
15
+ | 当前状态 | 事件 | Guard | 下一状态 | 进入 / 退出动作 | 恢复或退出路径 |
16
+ |---|---|---|---|---|---|
17
+ | <待填写> | <待填写> | <待填写> | <待填写> | <待填写> | <待填写> |
18
+
19
+ ## 待确认的产品决定
20
+
21
+ | 决定 | 方案与依据 | 负责人 | 解决时点 | 状态 |
22
+ |---|---|---|---|---|
23
+ | <待填写> | <待填写> | <待登记> | <待登记> | 待确认 |
24
+
25
+ ## OpenAPI 与 Spec 回填
26
+
27
+ | 状态 / 转换 | 契约影响 | Spec 规则或验收回填 | 处理状态 |
28
+ |---|---|---|---|
29
+ | <待填写> | <待评估> | <待填写> | 待确认 |
@@ -0,0 +1,13 @@
1
+ {
2
+ "schema_version": 1,
3
+ "source": "DESIGN.md",
4
+ "source_sha256": "e84a6c175840efe9663a2d0aba37f5635c053f47452bb146d1025d65665b1bec",
5
+ "files": {
6
+ ".template-spec/design/tokens/theme.json": "740f80c2c55763564ac5e1cf4159e0d5f0965548d53e0eb0de0ff380e74f0a93",
7
+ ".template-spec/design/tokens/tokens.default.json": "4e6446ee85195e3a75676a763cb8be2c625dc86b2b0676cbc8b45b2221135a71",
8
+ ".template-spec/design/tokens/tokens.dark.json": "826391c5dafaef4d924003052bcfa9b38943e589120b0ff740214a12c9981ae1",
9
+ ".template-spec/design/tokens/tokens.compact.json": "1a943c1354487addc67e399ededc122337d278a9ff61cb12d36a2f8202e26d9c",
10
+ ".template-spec/design/tokens/variables.css": "028c24f9e935f5c4b1392d131a4cd13482e6572a2ced4360ffa833aa3fbeaf66",
11
+ ".template-spec/design/tokens/variables.dark.css": "38132db701cd1e9793b6320baba20645a2cf577edc75b25aadb211f65bf05767"
12
+ }
13
+ }
@@ -25,7 +25,7 @@ Project Scaffold Contract v4 新增 `platform_configuration` v2,两个脚手
25
25
 
26
26
  配置可由 `platformBinding(profile, entry)` 机械构造;该函数把 Profile 中规范化的 `component_platform_line` 持久化到 v2 binding,并由 schema、解析器、架构身份摘要和 Slice 组件绑定摘要共同校验。组件平台线表示可消费的双平台源码索引,不承载 `maintenance`、`candidate` 或 `blocked` 生命周期;生命周期继续由 compatibility 与 capability 状态表达。当前 Boot 2 与 Boot 3 分别固定为 `boot2-java8`、`boot3-java17`。Boot 4 没有现有组件平台线,不生成可批准的 v2 `platform_configuration`,继续在选择阶段阻断。该函数不批准用户选择或开放支持。修改平台、YSS 坐标或依赖配方会使绑定失效;仅更新同配方证据不改变用户选择摘要。历史 Manifest 继续只读验证,不自动补字段或重写批准。仅继承架构不等于继承平台批准。
27
27
 
28
- `resolveBackendPlatform(binding, { root })` 在未显式传入 catalog 时读取该 `root` 下的 `docs/engineering/backend-platforms.json`;未传 `root` 时读取模板仓目录。这样 Slice freshness 与隔离 fixture 使用各自的目录事实,不会意外回退到模板工作区。
28
+ `resolveBackendPlatform(binding, { root })` 在未显式传入 catalog 时读取该 `root` 下的 `.template-spec/engineering/backend-platforms.json`;未传 `root` 时读取模板仓目录。这样 Slice freshness 与隔离 fixture 使用各自的目录事实,不会意外回退到模板工作区。
29
29
 
30
30
  ## 组件能力绑定
31
31
 
@@ -2,11 +2,13 @@
2
2
 
3
3
  正式 Spec 起草之前必须通过 `node scripts/verify-plan-spec-entry <state.yaml>`;显式 `to-spec`、恢复、任务包派发和下一路由均不得绕过。Plan 不通过时可继续无依赖调研,不创建正式 Spec 草稿。此检查复用 `gate.plan-approved` 用户决定,不新增批准阶段,也不授权实现。
4
4
 
5
- 检查 ID 与条件门禁取自 `docs/process/lifecycle-registry.yaml` 的 `stage.plan.spec_entry`。查询 Plan 或相关工作单元自动加载 `planning`、`grill_exit` 和全量检查,初始均为 `pending`。自动加载不代表勾选通过。
5
+ 可先用 `scripts/plan-spec-entry prepare --root <项目> --feature <id> --plan <Plan引用> --context-reconciliation <调和记录引用>` 将可读输入及当前摘要组织为待审候选 JSON,或用 `scripts/plan-spec-entry diff --root <项目> --review <审阅包引用>` 比较原依据与当前字节。两条命令只写标准输出;所有检查初始为 `pending`,影响判断为未知,候选不构成会签或批准。缺输入时返回结构化阻断原因。
6
+
7
+ 检查 ID 与条件门禁取自 `.template-spec/process/lifecycle-registry.yaml` 的 `stage.plan.spec_entry`。查询 Plan 或相关工作单元自动加载 `planning`、`grill_exit` 和全量检查,初始均为 `pending`。自动加载不代表勾选通过。
6
8
 
7
9
  ## 持久化合同
8
10
 
9
- 入口状态包含 `feature_id`、`plan_review_ref`、`plan_user_decision_ref`。这三个字段同样用于任务包、checkpoint 和完成态 Workflow Execution Result;不从历史阶段、路径或默认值推断。
11
+ 入口状态包含 `feature_id`、`plan_review_ref`,并按用户决定协议提供 `plan_user_decision_ref` 或 `plan_continuation_ref`。这些字段同样用于任务包、checkpoint 和完成态 Workflow Execution Result;不从历史阶段、路径或默认值推断。两条证明路径均由现有用户决定校验器核验,不能混填或以延续记录伪造新回复。
10
12
 
11
13
  `plan_review_ref` 指向 YAML / JSON:
12
14
 
@@ -18,6 +20,8 @@
18
20
  - `impacts`:显式评估 `domain_strategy`(领域边界、词汇、协作或核心规则影响)和 `stage_decision`(需要稳定阶段决策合同)。证据和判断必须呈现给用户;缺值不解释为 false。
19
21
  - `internal_checks`:注册表 `check_impacts` 内部专业审查全部逐项记录。命中项须 `status: approved`、`approval_ref`、`subject_ref`、`approval_scope`、`evidence_refs`,会签记录及对应资产均加入 `basis`;未命中项须 `status: not-applicable`、`reason`、`evidence_refs`,并由用户确认影响面判断。阶段决策检查的上游依赖必须批准,不能用 N/A 跳过。
20
22
 
21
- 先固定审阅包及依据,展示当前内容、范围、风险、延期、N/A 理由和下一动作,再取得真实用户回复。`plan_user_decision_ref` 采用 `docs/process/schemas/user-decision.schema.json`:边界为 `gate.plan-approved`,subject 为当前 `plan_review_ref`,scope 包含当前 `feature_id`。不得将旧“继续”、数字人会签或合成测试回复当作本次批准。
23
+ 先固定审阅包及依据,展示当前内容、范围、风险、延期、N/A 理由和下一动作,再取得真实用户回复。`plan_user_decision_ref` 采用 `.template-spec/process/schemas/user-decision.schema.json`:边界为 `gate.plan-approved`,subject 为当前 `plan_review_ref`,scope 包含当前 `feature_id`。不得将旧“继续”、数字人会签或合成测试回复当作本次批准。
24
+
25
+ 审阅包、注册表、Plan、词汇、依据或批准来源变化均要求重新校验;摘要漂移时先展示差异并按用户决定协议重验:排版、措辞或派生内容变化,经独立等价审查证明决定依据与授权范围未变,且原始决定和适用外部审批仍有效时,可用 `plan_continuation_ref` 延续;范围、关键规则、验收、契约承诺、授权或风险接受发生实质变化时重新取得决定。未知影响先补分析,不能视为等价。检查器保证结构、引用、摘要和回复绑定,不证明业务事实或身份来源绝对真实;主控仍须按证据核查影响面,不能为了放行而填 false 或空问题列表。
22
26
 
23
- 审阅包、注册表、Plan、词汇、依据或批准来源变化均要求重新校验;摘要漂移时重新展示并取得当前确认。检查器保证结构、引用、摘要和回复绑定,不证明业务事实或身份来源绝对真实;主控仍须按证据核查影响面,不能为了放行而填 false 或空问题列表。
27
+ 批准延续使用 `yss-product-lifecycle/references/user-decisions.md` 的 `approved-scope-continuation-v1`:绑定当前审阅包、原始真实决定、实际差异与独立审查;禁止链式延续、修改旧回复或跳过检查。`scripts/plan-spec-entry prepare` 只起草候选,`diff` 只报告原始字节变化;两者均不判定等价或批准。