create-yss-spec 3.4.7 → 3.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (454) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/template/.agents/skills/.strategic-design-skills-manifest.json +5 -5
  4. package/template/.agents/skills/alibaba-java-code-style/SKILL.md +2 -2
  5. package/template/.agents/skills/archify/SKILL.md +2 -19
  6. package/template/.agents/skills/archify/references/geometry-and-routing.md +20 -0
  7. package/template/.agents/skills/code-review/SKILL.md +3 -33
  8. package/template/.agents/skills/code-review/references/candidate-capture.md +33 -0
  9. package/template/.agents/skills/code-review/references/yss-review-standards.md +20 -0
  10. package/template/.agents/skills/codebase-design/SKILL.md +2 -2
  11. package/template/.agents/skills/competitive-intelligence/SKILL.md +1 -1
  12. package/template/.agents/skills/diagnosing-bugs/SKILL.md +6 -2
  13. package/template/.agents/skills/formily-foundation/SKILL.md +1 -1
  14. package/template/.agents/skills/formily-step-flow/SKILL.md +3 -2
  15. package/template/.agents/skills/frontend-commit/SKILL.md +6 -6
  16. package/template/.agents/skills/grilling/SKILL.md +2 -2
  17. package/template/.agents/skills/implement/SKILL.md +1 -1
  18. package/template/.agents/skills/implementation-repo-onboarding/SKILL.md +3 -3
  19. package/template/.agents/skills/implementation-repo-onboarding/references/write-scope.md +5 -0
  20. package/template/.agents/skills/improve-codebase-architecture/SKILL.md +10 -6
  21. package/template/.agents/skills/java-backend-commit/SKILL.md +5 -5
  22. package/template/.agents/skills/llm-wiki/SKILL.md +1 -1
  23. package/template/.agents/skills/lombok/SKILL.md +1 -1
  24. package/template/.agents/skills/mapstruct/SKILL.md +3 -1
  25. package/template/.agents/skills/prototype/SKILL.md +1 -1
  26. package/template/.agents/skills/prototype-review/SKILL.md +1 -1
  27. package/template/.agents/skills/resolving-merge-conflicts/SKILL.md +2 -2
  28. package/template/.agents/skills/tdd/SKILL.md +1 -1
  29. package/template/.agents/skills/to-questionnaire/SKILL.md +4 -2
  30. package/template/.agents/skills/to-spec/SKILL.md +3 -3
  31. package/template/.agents/skills/to-tickets/SKILL.md +7 -7
  32. package/template/.agents/skills/using-git-worktrees/SKILL.md +13 -11
  33. package/template/.agents/skills/wait-what/SKILL.md +1 -1
  34. package/template/.agents/skills/wayfinder/SKILL.md +4 -2
  35. package/template/.agents/skills/writing-for-agents/SKILL.md +9 -73
  36. package/template/.agents/skills/writing-for-agents/references/writing-principles.md +76 -0
  37. package/template/.agents/skills/yss-api-integration/SKILL.md +2 -2
  38. package/template/.agents/skills/yss-application/SKILL.md +12 -0
  39. package/template/.agents/skills/yss-application/references/application-layer-guide.md +7 -0
  40. package/template/.agents/skills/yss-audit-log/SKILL.md +3 -1
  41. package/template/.agents/skills/yss-audit-log/assets/AuditLogAspect.java +1 -0
  42. package/template/.agents/skills/yss-audit-log/assets/YssAuditLogPrintSubscriberImpl.java +1 -0
  43. package/template/.agents/skills/yss-audit-log/assets/YssAuditLogSysManagerSubscriberImpl.java +1 -0
  44. package/template/.agents/skills/yss-audit-log/assets/YssAuditPublishService.java +1 -0
  45. package/template/.agents/skills/yss-backend-spec-review/SKILL.md +44 -0
  46. package/template/.agents/skills/yss-backend-spec-review/references/check-inputs.md +21 -0
  47. package/template/.agents/skills/yss-backend-spec-review/references/remediation-workflow.md +48 -0
  48. package/template/.agents/skills/yss-backend-spec-review/references/standards-coverage.md +39 -0
  49. package/template/.agents/skills/yss-backend-spec-review/tests/routing.test.mjs +19 -0
  50. package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +7 -34
  51. package/template/.agents/skills/yss-ddd-scaffold-generator/assets/templates/java/architecture-rules-test.java.template +60 -23
  52. package/template/.agents/skills/yss-ddd-scaffold-generator/assets/templates/pom/bootstrap-pom.xml.template +6 -0
  53. package/template/.agents/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +1 -1
  54. package/template/.agents/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +4 -2
  55. package/template/.agents/skills/yss-ddd-scaffold-generator/references/command-examples.md +32 -0
  56. package/template/.agents/skills/yss-ddd-scaffold-generator/references/engineering-baseline.md +7 -1
  57. package/template/.agents/skills/yss-ddd-scaffold-generator/references/generator-maintenance.md +7 -0
  58. package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/first-slice-compatibility.test.mjs +6 -10
  59. package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +12 -16
  60. package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +36 -87
  61. package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +4 -3
  62. package/template/.agents/skills/yss-design-system/SKILL.md +2 -2
  63. package/template/.agents/skills/yss-domain/SKILL.md +17 -5
  64. package/template/.agents/skills/yss-domain/references/domain-layer-guide.md +10 -3
  65. package/template/.agents/skills/yss-domain/references/existing-project.md +5 -0
  66. package/template/.agents/skills/yss-dto/SKILL.md +13 -10
  67. package/template/.agents/skills/yss-dto/references/wire-validation-checklist.md +14 -0
  68. package/template/.agents/skills/yss-exception/SKILL.md +2 -2
  69. package/template/.agents/skills/yss-formily-schema-generator/SKILL.md +12 -12
  70. package/template/.agents/skills/yss-hook/SKILL.md +8 -44
  71. package/template/.agents/skills/yss-hook/references/use-request.md +42 -0
  72. package/template/.agents/skills/yss-implementation-contract-compiler/SKILL.md +1 -5
  73. package/template/.agents/skills/yss-implementation-contract-compiler/references/boundaries.md +5 -0
  74. package/template/.agents/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +7 -0
  75. package/template/.agents/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +5 -1
  76. package/template/.agents/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
  77. package/template/.agents/skills/yss-layered-mvc-scaffold-generator/assets/templates/architecture-rules-test.java.template +66 -0
  78. package/template/.agents/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +4 -2
  79. package/template/.agents/skills/yss-mybatis/SKILL.md +14 -0
  80. package/template/.agents/skills/yss-openapi-draft-review/SKILL.md +1 -1
  81. package/template/.agents/skills/yss-openapi-governance/SKILL.md +1 -32
  82. package/template/.agents/skills/yss-openapi-governance/references/governance-output.md +34 -0
  83. package/template/.agents/skills/yss-product-lifecycle/SKILL.md +1 -1
  84. package/template/.agents/skills/yss-prototype-stage/SKILL.md +1 -5
  85. package/template/.agents/skills/yss-prototype-stage/references/existing-ui-entry.md +7 -0
  86. package/template/.agents/skills/yss-repository/SKILL.md +13 -1
  87. package/template/.agents/skills/yss-repository/references/profiles/existing-domain-driven-maven.md +7 -0
  88. package/template/.agents/skills/yss-repository/references/profiles/existing-layered-mvc-maven.md +7 -0
  89. package/template/.agents/skills/yss-repository/references/profiles/target-domain-model.md +10 -2
  90. package/template/.agents/skills/yss-repository/tests/profile-routing.test.mjs +3 -1
  91. package/template/.agents/skills/yss-stage-decision/SKILL.md +1 -1
  92. package/template/.agents/skills/yss-stage-decision/references/strategic-handoff-routing.md +3 -0
  93. package/template/.agents/skills/yss-tactical-design/SKILL.md +1 -3
  94. package/template/.agents/skills/yss-tactical-design/references/strategic-handoff-routing.md +5 -0
  95. package/template/.agents/skills/yss-ui-business-page-generation/SKILL.md +5 -3
  96. package/template/.agents/skills/yss-validation/SKILL.md +1 -1
  97. package/template/.agents/skills/yss-web-controller/SKILL.md +16 -7
  98. package/template/.agents/skills/yss-web-controller/references/web-adapter-layer-guide.md +8 -0
  99. package/template/.agents/skills/ytable-usage/SKILL.md +2 -2
  100. package/template/.codex/skills/alibaba-java-code-style/SKILL.md +2 -2
  101. package/template/.codex/skills/archify/SKILL.md +2 -19
  102. package/template/.codex/skills/archify/references/geometry-and-routing.md +20 -0
  103. package/template/.codex/skills/code-review/SKILL.md +3 -33
  104. package/template/.codex/skills/code-review/references/candidate-capture.md +33 -0
  105. package/template/.codex/skills/code-review/references/yss-review-standards.md +20 -0
  106. package/template/.codex/skills/codebase-design/SKILL.md +2 -2
  107. package/template/.codex/skills/competitive-intelligence/SKILL.md +1 -1
  108. package/template/.codex/skills/data-analytics/mcp/server.cjs +2 -1
  109. package/template/.codex/skills/data-analytics/skills/analyze-data-quality/SKILL.md +9 -32
  110. package/template/.codex/skills/data-analytics/skills/analyze-data-quality/references/quality-checks.md +29 -0
  111. package/template/.codex/skills/data-analytics/skills/build-dashboard/SKILL.md +1 -1
  112. package/template/.codex/skills/data-analytics/skills/build-report/SKILL.md +4 -4
  113. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/SKILL.md +12 -22
  114. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc/cli.py +5 -10
  115. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc/plan.py +47 -49
  116. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/tests/test_delivery_plan.py +45 -0
  117. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-slides/SKILL.md +4 -5
  118. package/template/.codex/skills/data-analytics/skills/build-report/report-to-pdf/SKILL.md +1 -1
  119. package/template/.codex/skills/data-analytics/skills/build-report/specifications/mcp-app-report.md +1 -1
  120. package/template/.codex/skills/data-analytics/skills/design-kpis/SKILL.md +1 -1
  121. package/template/.codex/skills/data-analytics/skills/gather-business-context/SKILL.md +1 -1
  122. package/template/.codex/skills/data-analytics/skills/index/SKILL.md +4 -4
  123. package/template/.codex/skills/data-analytics/skills/jupyter-notebooks/SKILL.md +1 -1
  124. package/template/.codex/skills/data-analytics/skills/kpi-reporting/SKILL.md +2 -2
  125. package/template/.codex/skills/data-analytics/skills/market-sizing/SKILL.md +1 -1
  126. package/template/.codex/skills/data-analytics/skills/metric-diagnostics/SKILL.md +1 -1
  127. package/template/.codex/skills/data-analytics/skills/product-business-analysis/SKILL.md +1 -1
  128. package/template/.codex/skills/data-analytics/skills/spreadsheets/SKILL.md +4 -4
  129. package/template/.codex/skills/data-analytics/skills/user-context/SKILL.md +16 -14
  130. package/template/.codex/skills/data-analytics/skills/user-context/plugin-author-config/automation-config.md +1 -1
  131. package/template/.codex/skills/data-analytics/skills/user-context/references/onboarding-examples.md +1 -1
  132. package/template/.codex/skills/data-analytics/skills/user-context/references/onboarding.md +7 -7
  133. package/template/.codex/skills/data-analytics/skills/user-context/references/source-category-runtime.md +7 -7
  134. package/template/.codex/skills/data-analytics/skills/user-context/scripts/data_analytics_preflight.py +4 -2
  135. package/template/.codex/skills/data-analytics/skills/user-context/scripts/validate_user_context_preflight.py +5 -5
  136. package/template/.codex/skills/data-analytics/skills/user-context/tests/test_state_helpers.py +3 -3
  137. package/template/.codex/skills/data-analytics/skills/validate-data/SKILL.md +7 -71
  138. package/template/.codex/skills/data-analytics/skills/validate-data/references/validation-methods.md +70 -0
  139. package/template/.codex/skills/data-analytics/skills/visualize-data/SKILL.md +4 -4
  140. package/template/.codex/skills/data-analytics/src/analytics-app/App.tsx +1 -1
  141. package/template/.codex/skills/data-analytics/src/analytics-app-core.md +1 -1
  142. package/template/.codex/skills/diagnosing-bugs/SKILL.md +6 -2
  143. package/template/.codex/skills/formily-foundation/SKILL.md +1 -1
  144. package/template/.codex/skills/formily-step-flow/SKILL.md +3 -2
  145. package/template/.codex/skills/frontend-commit/SKILL.md +6 -6
  146. package/template/.codex/skills/grilling/SKILL.md +2 -2
  147. package/template/.codex/skills/implement/SKILL.md +1 -1
  148. package/template/.codex/skills/implementation-repo-onboarding/SKILL.md +3 -3
  149. package/template/.codex/skills/implementation-repo-onboarding/references/write-scope.md +5 -0
  150. package/template/.codex/skills/improve-codebase-architecture/SKILL.md +10 -6
  151. package/template/.codex/skills/java-backend-commit/SKILL.md +5 -5
  152. package/template/.codex/skills/llm-wiki/SKILL.md +1 -1
  153. package/template/.codex/skills/lombok/SKILL.md +1 -1
  154. package/template/.codex/skills/mapstruct/SKILL.md +3 -1
  155. package/template/.codex/skills/product-design/references/critical-overrides.md +3 -4
  156. package/template/.codex/skills/product-design/skills/audit/SKILL.md +1 -1
  157. package/template/.codex/skills/product-design/skills/design-qa/SKILL.md +1 -1
  158. package/template/.codex/skills/product-design/skills/get-context/SKILL.md +2 -1
  159. package/template/.codex/skills/product-design/skills/ideate/SKILL.md +2 -50
  160. package/template/.codex/skills/product-design/skills/ideate/references/image-prompt-patterns.md +51 -0
  161. package/template/.codex/skills/product-design/skills/image-to-code/SKILL.md +6 -6
  162. package/template/.codex/skills/product-design/skills/index/SKILL.md +2 -2
  163. package/template/.codex/skills/product-design/skills/prototype/SKILL.md +6 -6
  164. package/template/.codex/skills/product-design/skills/url-to-code/SKILL.md +1 -1
  165. package/template/.codex/skills/product-design/skills/user-context/SKILL.md +1 -1
  166. package/template/.codex/skills/prototype/SKILL.md +1 -1
  167. package/template/.codex/skills/prototype-review/SKILL.md +1 -1
  168. package/template/.codex/skills/resolving-merge-conflicts/SKILL.md +2 -2
  169. package/template/.codex/skills/tdd/SKILL.md +1 -1
  170. package/template/.codex/skills/to-questionnaire/SKILL.md +4 -2
  171. package/template/.codex/skills/to-spec/SKILL.md +3 -3
  172. package/template/.codex/skills/to-tickets/SKILL.md +7 -7
  173. package/template/.codex/skills/using-git-worktrees/SKILL.md +13 -11
  174. package/template/.codex/skills/wait-what/SKILL.md +1 -1
  175. package/template/.codex/skills/wayfinder/SKILL.md +4 -2
  176. package/template/.codex/skills/writing-for-agents/SKILL.md +9 -73
  177. package/template/.codex/skills/writing-for-agents/references/writing-principles.md +76 -0
  178. package/template/.codex/skills/yss-api-integration/SKILL.md +2 -2
  179. package/template/.codex/skills/yss-application/SKILL.md +12 -0
  180. package/template/.codex/skills/yss-application/references/application-layer-guide.md +7 -0
  181. package/template/.codex/skills/yss-audit-log/SKILL.md +3 -1
  182. package/template/.codex/skills/yss-audit-log/assets/AuditLogAspect.java +1 -0
  183. package/template/.codex/skills/yss-audit-log/assets/YssAuditLogPrintSubscriberImpl.java +1 -0
  184. package/template/.codex/skills/yss-audit-log/assets/YssAuditLogSysManagerSubscriberImpl.java +1 -0
  185. package/template/.codex/skills/yss-audit-log/assets/YssAuditPublishService.java +1 -0
  186. package/template/.codex/skills/yss-backend-spec-review/SKILL.md +44 -0
  187. package/template/.codex/skills/yss-backend-spec-review/references/check-inputs.md +21 -0
  188. package/template/.codex/skills/yss-backend-spec-review/references/remediation-workflow.md +48 -0
  189. package/template/.codex/skills/yss-backend-spec-review/references/standards-coverage.md +39 -0
  190. package/template/.codex/skills/yss-backend-spec-review/tests/routing.test.mjs +19 -0
  191. package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +7 -34
  192. package/template/.codex/skills/yss-ddd-scaffold-generator/assets/templates/java/architecture-rules-test.java.template +60 -23
  193. package/template/.codex/skills/yss-ddd-scaffold-generator/assets/templates/pom/bootstrap-pom.xml.template +6 -0
  194. package/template/.codex/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +1 -1
  195. package/template/.codex/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +4 -2
  196. package/template/.codex/skills/yss-ddd-scaffold-generator/references/command-examples.md +32 -0
  197. package/template/.codex/skills/yss-ddd-scaffold-generator/references/engineering-baseline.md +7 -1
  198. package/template/.codex/skills/yss-ddd-scaffold-generator/references/generator-maintenance.md +7 -0
  199. package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/first-slice-compatibility.test.mjs +6 -10
  200. package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +12 -16
  201. package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +36 -87
  202. package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +4 -3
  203. package/template/.codex/skills/yss-design-system/SKILL.md +2 -2
  204. package/template/.codex/skills/yss-domain/SKILL.md +17 -5
  205. package/template/.codex/skills/yss-domain/references/domain-layer-guide.md +10 -3
  206. package/template/.codex/skills/yss-domain/references/existing-project.md +5 -0
  207. package/template/.codex/skills/yss-dto/SKILL.md +13 -10
  208. package/template/.codex/skills/yss-dto/references/wire-validation-checklist.md +14 -0
  209. package/template/.codex/skills/yss-exception/SKILL.md +2 -2
  210. package/template/.codex/skills/yss-formily-schema-generator/SKILL.md +12 -12
  211. package/template/.codex/skills/yss-hook/SKILL.md +8 -44
  212. package/template/.codex/skills/yss-hook/references/use-request.md +42 -0
  213. package/template/.codex/skills/yss-implementation-contract-compiler/SKILL.md +1 -5
  214. package/template/.codex/skills/yss-implementation-contract-compiler/references/boundaries.md +5 -0
  215. package/template/.codex/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +7 -0
  216. package/template/.codex/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +5 -1
  217. package/template/.codex/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
  218. package/template/.codex/skills/yss-layered-mvc-scaffold-generator/assets/templates/architecture-rules-test.java.template +66 -0
  219. package/template/.codex/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +4 -2
  220. package/template/.codex/skills/yss-mybatis/SKILL.md +14 -0
  221. package/template/.codex/skills/yss-openapi-draft-review/SKILL.md +1 -1
  222. package/template/.codex/skills/yss-openapi-governance/SKILL.md +1 -32
  223. package/template/.codex/skills/yss-openapi-governance/references/governance-output.md +34 -0
  224. package/template/.codex/skills/yss-product-lifecycle/SKILL.md +1 -1
  225. package/template/.codex/skills/yss-prototype-stage/SKILL.md +1 -5
  226. package/template/.codex/skills/yss-prototype-stage/references/existing-ui-entry.md +7 -0
  227. package/template/.codex/skills/yss-repository/SKILL.md +13 -1
  228. package/template/.codex/skills/yss-repository/references/profiles/existing-domain-driven-maven.md +7 -0
  229. package/template/.codex/skills/yss-repository/references/profiles/existing-layered-mvc-maven.md +7 -0
  230. package/template/.codex/skills/yss-repository/references/profiles/target-domain-model.md +10 -2
  231. package/template/.codex/skills/yss-repository/tests/profile-routing.test.mjs +3 -1
  232. package/template/.codex/skills/yss-stage-decision/SKILL.md +1 -1
  233. package/template/.codex/skills/yss-stage-decision/references/strategic-handoff-routing.md +3 -0
  234. package/template/.codex/skills/yss-tactical-design/SKILL.md +1 -3
  235. package/template/.codex/skills/yss-tactical-design/references/strategic-handoff-routing.md +5 -0
  236. package/template/.codex/skills/yss-ui-business-page-generation/SKILL.md +5 -3
  237. package/template/.codex/skills/yss-validation/SKILL.md +1 -1
  238. package/template/.codex/skills/yss-web-controller/SKILL.md +16 -7
  239. package/template/.codex/skills/yss-web-controller/references/web-adapter-layer-guide.md +8 -0
  240. package/template/.codex/skills/ytable-usage/SKILL.md +2 -2
  241. package/template/.cursor/skills/alibaba-java-code-style/SKILL.md +2 -2
  242. package/template/.cursor/skills/archify/SKILL.md +2 -19
  243. package/template/.cursor/skills/archify/references/geometry-and-routing.md +20 -0
  244. package/template/.cursor/skills/code-review/SKILL.md +3 -33
  245. package/template/.cursor/skills/code-review/references/candidate-capture.md +33 -0
  246. package/template/.cursor/skills/code-review/references/yss-review-standards.md +20 -0
  247. package/template/.cursor/skills/codebase-design/SKILL.md +2 -2
  248. package/template/.cursor/skills/competitive-intelligence/SKILL.md +1 -1
  249. package/template/.cursor/skills/diagnosing-bugs/SKILL.md +6 -2
  250. package/template/.cursor/skills/formily-foundation/SKILL.md +1 -1
  251. package/template/.cursor/skills/formily-step-flow/SKILL.md +3 -2
  252. package/template/.cursor/skills/frontend-commit/SKILL.md +6 -6
  253. package/template/.cursor/skills/grilling/SKILL.md +2 -2
  254. package/template/.cursor/skills/implement/SKILL.md +1 -1
  255. package/template/.cursor/skills/implementation-repo-onboarding/SKILL.md +3 -3
  256. package/template/.cursor/skills/implementation-repo-onboarding/references/write-scope.md +5 -0
  257. package/template/.cursor/skills/improve-codebase-architecture/SKILL.md +10 -6
  258. package/template/.cursor/skills/java-backend-commit/SKILL.md +5 -5
  259. package/template/.cursor/skills/llm-wiki/SKILL.md +1 -1
  260. package/template/.cursor/skills/lombok/SKILL.md +1 -1
  261. package/template/.cursor/skills/mapstruct/SKILL.md +3 -1
  262. package/template/.cursor/skills/prototype/SKILL.md +1 -1
  263. package/template/.cursor/skills/prototype-review/SKILL.md +1 -1
  264. package/template/.cursor/skills/resolving-merge-conflicts/SKILL.md +2 -2
  265. package/template/.cursor/skills/tdd/SKILL.md +1 -1
  266. package/template/.cursor/skills/to-questionnaire/SKILL.md +4 -2
  267. package/template/.cursor/skills/to-spec/SKILL.md +3 -3
  268. package/template/.cursor/skills/to-tickets/SKILL.md +7 -7
  269. package/template/.cursor/skills/using-git-worktrees/SKILL.md +13 -11
  270. package/template/.cursor/skills/wait-what/SKILL.md +1 -1
  271. package/template/.cursor/skills/wayfinder/SKILL.md +4 -2
  272. package/template/.cursor/skills/writing-for-agents/SKILL.md +9 -73
  273. package/template/.cursor/skills/writing-for-agents/references/writing-principles.md +76 -0
  274. package/template/.cursor/skills/yss-api-integration/SKILL.md +2 -2
  275. package/template/.cursor/skills/yss-application/SKILL.md +12 -0
  276. package/template/.cursor/skills/yss-application/references/application-layer-guide.md +7 -0
  277. package/template/.cursor/skills/yss-audit-log/SKILL.md +3 -1
  278. package/template/.cursor/skills/yss-audit-log/assets/AuditLogAspect.java +1 -0
  279. package/template/.cursor/skills/yss-audit-log/assets/YssAuditLogPrintSubscriberImpl.java +1 -0
  280. package/template/.cursor/skills/yss-audit-log/assets/YssAuditLogSysManagerSubscriberImpl.java +1 -0
  281. package/template/.cursor/skills/yss-audit-log/assets/YssAuditPublishService.java +1 -0
  282. package/template/.cursor/skills/yss-backend-spec-review/SKILL.md +44 -0
  283. package/template/.cursor/skills/yss-backend-spec-review/references/check-inputs.md +21 -0
  284. package/template/.cursor/skills/yss-backend-spec-review/references/remediation-workflow.md +48 -0
  285. package/template/.cursor/skills/yss-backend-spec-review/references/standards-coverage.md +39 -0
  286. package/template/.cursor/skills/yss-backend-spec-review/tests/routing.test.mjs +19 -0
  287. package/template/.cursor/skills/yss-ddd-scaffold-generator/SKILL.md +7 -34
  288. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/java/architecture-rules-test.java.template +60 -23
  289. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/pom/bootstrap-pom.xml.template +6 -0
  290. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +1 -1
  291. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +4 -2
  292. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/command-examples.md +32 -0
  293. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/engineering-baseline.md +7 -1
  294. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/generator-maintenance.md +7 -0
  295. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/first-slice-compatibility.test.mjs +6 -10
  296. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +12 -16
  297. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +36 -87
  298. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +4 -3
  299. package/template/.cursor/skills/yss-design-system/SKILL.md +2 -2
  300. package/template/.cursor/skills/yss-domain/SKILL.md +17 -5
  301. package/template/.cursor/skills/yss-domain/references/domain-layer-guide.md +10 -3
  302. package/template/.cursor/skills/yss-domain/references/existing-project.md +5 -0
  303. package/template/.cursor/skills/yss-dto/SKILL.md +13 -10
  304. package/template/.cursor/skills/yss-dto/references/wire-validation-checklist.md +14 -0
  305. package/template/.cursor/skills/yss-exception/SKILL.md +2 -2
  306. package/template/.cursor/skills/yss-formily-schema-generator/SKILL.md +12 -12
  307. package/template/.cursor/skills/yss-hook/SKILL.md +8 -44
  308. package/template/.cursor/skills/yss-hook/references/use-request.md +42 -0
  309. package/template/.cursor/skills/yss-implementation-contract-compiler/SKILL.md +1 -5
  310. package/template/.cursor/skills/yss-implementation-contract-compiler/references/boundaries.md +5 -0
  311. package/template/.cursor/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +7 -0
  312. package/template/.cursor/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +5 -1
  313. package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
  314. package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/assets/templates/architecture-rules-test.java.template +66 -0
  315. package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +4 -2
  316. package/template/.cursor/skills/yss-mybatis/SKILL.md +14 -0
  317. package/template/.cursor/skills/yss-openapi-draft-review/SKILL.md +1 -1
  318. package/template/.cursor/skills/yss-openapi-governance/SKILL.md +1 -32
  319. package/template/.cursor/skills/yss-openapi-governance/references/governance-output.md +34 -0
  320. package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +1 -1
  321. package/template/.cursor/skills/yss-prototype-stage/SKILL.md +1 -5
  322. package/template/.cursor/skills/yss-prototype-stage/references/existing-ui-entry.md +7 -0
  323. package/template/.cursor/skills/yss-repository/SKILL.md +13 -1
  324. package/template/.cursor/skills/yss-repository/references/profiles/existing-domain-driven-maven.md +7 -0
  325. package/template/.cursor/skills/yss-repository/references/profiles/existing-layered-mvc-maven.md +7 -0
  326. package/template/.cursor/skills/yss-repository/references/profiles/target-domain-model.md +10 -2
  327. package/template/.cursor/skills/yss-repository/tests/profile-routing.test.mjs +3 -1
  328. package/template/.cursor/skills/yss-stage-decision/SKILL.md +1 -1
  329. package/template/.cursor/skills/yss-stage-decision/references/strategic-handoff-routing.md +3 -0
  330. package/template/.cursor/skills/yss-tactical-design/SKILL.md +1 -3
  331. package/template/.cursor/skills/yss-tactical-design/references/strategic-handoff-routing.md +5 -0
  332. package/template/.cursor/skills/yss-ui-business-page-generation/SKILL.md +5 -3
  333. package/template/.cursor/skills/yss-validation/SKILL.md +1 -1
  334. package/template/.cursor/skills/yss-web-controller/SKILL.md +16 -7
  335. package/template/.cursor/skills/yss-web-controller/references/web-adapter-layer-guide.md +8 -0
  336. package/template/.cursor/skills/ytable-usage/SKILL.md +2 -2
  337. package/template/.pi/skills/alibaba-java-code-style/SKILL.md +2 -2
  338. package/template/.pi/skills/archify/SKILL.md +2 -19
  339. package/template/.pi/skills/archify/references/geometry-and-routing.md +20 -0
  340. package/template/.pi/skills/code-review/SKILL.md +3 -33
  341. package/template/.pi/skills/code-review/references/candidate-capture.md +33 -0
  342. package/template/.pi/skills/code-review/references/yss-review-standards.md +20 -0
  343. package/template/.pi/skills/codebase-design/SKILL.md +2 -2
  344. package/template/.pi/skills/competitive-intelligence/SKILL.md +1 -1
  345. package/template/.pi/skills/diagnosing-bugs/SKILL.md +6 -2
  346. package/template/.pi/skills/formily-foundation/SKILL.md +1 -1
  347. package/template/.pi/skills/formily-step-flow/SKILL.md +3 -2
  348. package/template/.pi/skills/frontend-commit/SKILL.md +6 -6
  349. package/template/.pi/skills/grilling/SKILL.md +2 -2
  350. package/template/.pi/skills/implement/SKILL.md +1 -1
  351. package/template/.pi/skills/implementation-repo-onboarding/SKILL.md +3 -3
  352. package/template/.pi/skills/implementation-repo-onboarding/references/write-scope.md +5 -0
  353. package/template/.pi/skills/improve-codebase-architecture/SKILL.md +10 -6
  354. package/template/.pi/skills/java-backend-commit/SKILL.md +5 -5
  355. package/template/.pi/skills/llm-wiki/SKILL.md +1 -1
  356. package/template/.pi/skills/lombok/SKILL.md +1 -1
  357. package/template/.pi/skills/mapstruct/SKILL.md +3 -1
  358. package/template/.pi/skills/prototype/SKILL.md +1 -1
  359. package/template/.pi/skills/prototype-review/SKILL.md +1 -1
  360. package/template/.pi/skills/resolving-merge-conflicts/SKILL.md +2 -2
  361. package/template/.pi/skills/tdd/SKILL.md +1 -1
  362. package/template/.pi/skills/to-questionnaire/SKILL.md +4 -2
  363. package/template/.pi/skills/to-spec/SKILL.md +3 -3
  364. package/template/.pi/skills/to-tickets/SKILL.md +7 -7
  365. package/template/.pi/skills/using-git-worktrees/SKILL.md +13 -11
  366. package/template/.pi/skills/wait-what/SKILL.md +1 -1
  367. package/template/.pi/skills/wayfinder/SKILL.md +4 -2
  368. package/template/.pi/skills/writing-for-agents/SKILL.md +9 -73
  369. package/template/.pi/skills/writing-for-agents/references/writing-principles.md +76 -0
  370. package/template/.pi/skills/yss-api-integration/SKILL.md +2 -2
  371. package/template/.pi/skills/yss-application/SKILL.md +12 -0
  372. package/template/.pi/skills/yss-application/references/application-layer-guide.md +7 -0
  373. package/template/.pi/skills/yss-audit-log/SKILL.md +3 -1
  374. package/template/.pi/skills/yss-audit-log/assets/AuditLogAspect.java +1 -0
  375. package/template/.pi/skills/yss-audit-log/assets/YssAuditLogPrintSubscriberImpl.java +1 -0
  376. package/template/.pi/skills/yss-audit-log/assets/YssAuditLogSysManagerSubscriberImpl.java +1 -0
  377. package/template/.pi/skills/yss-audit-log/assets/YssAuditPublishService.java +1 -0
  378. package/template/.pi/skills/yss-backend-spec-review/SKILL.md +44 -0
  379. package/template/.pi/skills/yss-backend-spec-review/references/check-inputs.md +21 -0
  380. package/template/.pi/skills/yss-backend-spec-review/references/remediation-workflow.md +48 -0
  381. package/template/.pi/skills/yss-backend-spec-review/references/standards-coverage.md +39 -0
  382. package/template/.pi/skills/yss-backend-spec-review/tests/routing.test.mjs +19 -0
  383. package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +7 -34
  384. package/template/.pi/skills/yss-ddd-scaffold-generator/assets/templates/java/architecture-rules-test.java.template +60 -23
  385. package/template/.pi/skills/yss-ddd-scaffold-generator/assets/templates/pom/bootstrap-pom.xml.template +6 -0
  386. package/template/.pi/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +1 -1
  387. package/template/.pi/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +4 -2
  388. package/template/.pi/skills/yss-ddd-scaffold-generator/references/command-examples.md +32 -0
  389. package/template/.pi/skills/yss-ddd-scaffold-generator/references/engineering-baseline.md +7 -1
  390. package/template/.pi/skills/yss-ddd-scaffold-generator/references/generator-maintenance.md +7 -0
  391. package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/first-slice-compatibility.test.mjs +6 -10
  392. package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +12 -16
  393. package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +36 -87
  394. package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +4 -3
  395. package/template/.pi/skills/yss-design-system/SKILL.md +2 -2
  396. package/template/.pi/skills/yss-domain/SKILL.md +17 -5
  397. package/template/.pi/skills/yss-domain/references/domain-layer-guide.md +10 -3
  398. package/template/.pi/skills/yss-domain/references/existing-project.md +5 -0
  399. package/template/.pi/skills/yss-dto/SKILL.md +13 -10
  400. package/template/.pi/skills/yss-dto/references/wire-validation-checklist.md +14 -0
  401. package/template/.pi/skills/yss-exception/SKILL.md +2 -2
  402. package/template/.pi/skills/yss-formily-schema-generator/SKILL.md +12 -12
  403. package/template/.pi/skills/yss-hook/SKILL.md +8 -44
  404. package/template/.pi/skills/yss-hook/references/use-request.md +42 -0
  405. package/template/.pi/skills/yss-implementation-contract-compiler/SKILL.md +1 -5
  406. package/template/.pi/skills/yss-implementation-contract-compiler/references/boundaries.md +5 -0
  407. package/template/.pi/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +7 -0
  408. package/template/.pi/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +5 -1
  409. package/template/.pi/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
  410. package/template/.pi/skills/yss-layered-mvc-scaffold-generator/assets/templates/architecture-rules-test.java.template +66 -0
  411. package/template/.pi/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +4 -2
  412. package/template/.pi/skills/yss-mybatis/SKILL.md +14 -0
  413. package/template/.pi/skills/yss-openapi-draft-review/SKILL.md +1 -1
  414. package/template/.pi/skills/yss-openapi-governance/SKILL.md +1 -32
  415. package/template/.pi/skills/yss-openapi-governance/references/governance-output.md +34 -0
  416. package/template/.pi/skills/yss-product-lifecycle/SKILL.md +1 -1
  417. package/template/.pi/skills/yss-prototype-stage/SKILL.md +1 -5
  418. package/template/.pi/skills/yss-prototype-stage/references/existing-ui-entry.md +7 -0
  419. package/template/.pi/skills/yss-repository/SKILL.md +13 -1
  420. package/template/.pi/skills/yss-repository/references/profiles/existing-domain-driven-maven.md +7 -0
  421. package/template/.pi/skills/yss-repository/references/profiles/existing-layered-mvc-maven.md +7 -0
  422. package/template/.pi/skills/yss-repository/references/profiles/target-domain-model.md +10 -2
  423. package/template/.pi/skills/yss-repository/tests/profile-routing.test.mjs +3 -1
  424. package/template/.pi/skills/yss-stage-decision/SKILL.md +1 -1
  425. package/template/.pi/skills/yss-stage-decision/references/strategic-handoff-routing.md +3 -0
  426. package/template/.pi/skills/yss-tactical-design/SKILL.md +1 -3
  427. package/template/.pi/skills/yss-tactical-design/references/strategic-handoff-routing.md +5 -0
  428. package/template/.pi/skills/yss-ui-business-page-generation/SKILL.md +5 -3
  429. package/template/.pi/skills/yss-validation/SKILL.md +1 -1
  430. package/template/.pi/skills/yss-web-controller/SKILL.md +16 -7
  431. package/template/.pi/skills/yss-web-controller/references/web-adapter-layer-guide.md +8 -0
  432. package/template/.pi/skills/ytable-usage/SKILL.md +2 -2
  433. package/template/docs/agents/yss-skill-registry.yaml +13 -0
  434. package/template/docs/engineering/backend-platforms.md +14 -0
  435. package/template/docs/process/schemas/digital-human-task-package.schema.json +713 -100
  436. package/template/docs/process/schemas/slice-implementation-contract-v3.schema.json +41 -0
  437. package/template/scripts/backend-standards-coverage +26 -0
  438. package/template/scripts/lib/backend-platform-provenance.mjs +1 -1
  439. package/template/scripts/lib/backend-platform-verification.mjs +2 -2
  440. package/template/scripts/lib/backend-platform.mjs +62 -0
  441. package/template/scripts/lib/backend-review.mjs +140 -0
  442. package/template/scripts/lib/backend-standards-coverage.mjs +237 -0
  443. package/template/scripts/lib/first-slice-artifacts.mjs +47 -0
  444. package/template/scripts/lib/first-slice-tests.mjs +24 -0
  445. package/template/scripts/lib/lifecycle-transition.mjs +9 -0
  446. package/template/scripts/lib/maintenance-candidate.mjs +160 -0
  447. package/template/scripts/lib/profile-skill-sync.mjs +46 -5
  448. package/template/scripts/lib/slice-execution-preflight.mjs +43 -0
  449. package/template/scripts/slice-contract +7 -3
  450. package/template/scripts/verify-backend-platform-matrix +8 -2
  451. package/template/skills-lock.json +77 -63
  452. package/template/yss-public-skills.json +4 -2
  453. package/template.manifest.json +0 -1
  454. package/template.snapshot.json +5 -5
@@ -4,133 +4,746 @@
4
4
  "title": "YSS Digital Human Task Package",
5
5
  "type": "object",
6
6
  "additionalProperties": false,
7
- "required": ["schema_version", "task_id", "work_unit_id", "actor_id", "role_id", "runtime_id", "execution_state", "workflow_status", "skill_source", "contract", "inputs", "objective", "allowed_write_paths", "forbidden_actions", "expected_outputs", "expected_evidence_files", "verification_commands", "verification_results", "downstream_consumers", "convergence"],
7
+ "required": [
8
+ "schema_version",
9
+ "task_id",
10
+ "work_unit_id",
11
+ "actor_id",
12
+ "role_id",
13
+ "runtime_id",
14
+ "execution_state",
15
+ "workflow_status",
16
+ "skill_source",
17
+ "contract",
18
+ "inputs",
19
+ "objective",
20
+ "allowed_write_paths",
21
+ "forbidden_actions",
22
+ "expected_outputs",
23
+ "expected_evidence_files",
24
+ "verification_commands",
25
+ "verification_results",
26
+ "downstream_consumers",
27
+ "convergence"
28
+ ],
8
29
  "properties": {
9
- "plan_review_ref": { "type": "string", "minLength": 1 },
10
- "plan_approval_ref": { "type": "string", "minLength": 1 },
11
- "plan_user_decision_ref": { "type": "string", "minLength": 1 },
12
- "plan_continuation_ref": { "type": "string", "minLength": 1 },
13
- "schema_version": { "const": 1 },
30
+ "plan_review_ref": {
31
+ "type": "string",
32
+ "minLength": 1
33
+ },
34
+ "plan_approval_ref": {
35
+ "type": "string",
36
+ "minLength": 1
37
+ },
38
+ "plan_user_decision_ref": {
39
+ "type": "string",
40
+ "minLength": 1
41
+ },
42
+ "plan_continuation_ref": {
43
+ "type": "string",
44
+ "minLength": 1
45
+ },
46
+ "schema_version": {
47
+ "const": 1
48
+ },
14
49
  "frontend_delivery": {
15
- "type": "object", "additionalProperties": false, "required": ["acceptance_ref"],
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "required": [
53
+ "acceptance_ref"
54
+ ],
16
55
  "properties": {
17
- "acceptance_ref": { "type": "string", "minLength": 1 },
18
- "digest": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" }
19
- }
20
- },
21
- "slice_id": { "type": "string", "minLength": 1 },
22
- "task_id": { "type": "string", "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*$" },
23
- "work_unit_id": { "type": "string", "minLength": 1, "pattern": "^work-unit\\.[a-z0-9][a-z0-9-]*$" },
24
- "actor_id": { "type": "string", "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$" },
25
- "role_id": { "type": "string", "pattern": "^role\\.[a-z0-9][a-z0-9-]*$" },
26
- "runtime_id": { "type": "string", "pattern": "^runtime\\.[a-z0-9][a-z0-9-]*$" },
27
- "execution_state": { "enum": ["Explorer", "Drafter", "Worker", "Reviewer", "Verifier"] },
28
- "workflow_status": { "enum": ["not-started", "active", "paused", "resolved", "failed"] },
29
- "stage_id": { "type": "string", "pattern": "^stage\\.[a-z0-9][a-z0-9-]*$" },
30
- "feature_id": { "type": "string", "minLength": 1 },
56
+ "acceptance_ref": {
57
+ "type": "string",
58
+ "minLength": 1
59
+ },
60
+ "digest": {
61
+ "type": "string",
62
+ "pattern": "^sha256:[0-9a-f]{64}$"
63
+ }
64
+ }
65
+ },
66
+ "slice_id": {
67
+ "type": "string",
68
+ "minLength": 1
69
+ },
70
+ "task_id": {
71
+ "type": "string",
72
+ "minLength": 1,
73
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"
74
+ },
75
+ "work_unit_id": {
76
+ "type": "string",
77
+ "minLength": 1,
78
+ "pattern": "^work-unit\\.[a-z0-9][a-z0-9-]*$"
79
+ },
80
+ "actor_id": {
81
+ "type": "string",
82
+ "minLength": 1,
83
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$"
84
+ },
85
+ "role_id": {
86
+ "type": "string",
87
+ "pattern": "^role\\.[a-z0-9][a-z0-9-]*$"
88
+ },
89
+ "runtime_id": {
90
+ "type": "string",
91
+ "pattern": "^runtime\\.[a-z0-9][a-z0-9-]*$"
92
+ },
93
+ "execution_state": {
94
+ "enum": [
95
+ "Explorer",
96
+ "Drafter",
97
+ "Worker",
98
+ "Reviewer",
99
+ "Verifier"
100
+ ]
101
+ },
102
+ "workflow_status": {
103
+ "enum": [
104
+ "not-started",
105
+ "active",
106
+ "paused",
107
+ "resolved",
108
+ "failed"
109
+ ]
110
+ },
111
+ "stage_id": {
112
+ "type": "string",
113
+ "pattern": "^stage\\.[a-z0-9][a-z0-9-]*$"
114
+ },
115
+ "feature_id": {
116
+ "type": "string",
117
+ "minLength": 1
118
+ },
31
119
  "skill_source": {
32
- "type": "object", "additionalProperties": false,
33
- "required": ["registry_ref", "defaults_ref", "core_skills", "forbidden_skills"],
120
+ "type": "object",
121
+ "additionalProperties": false,
122
+ "required": [
123
+ "registry_ref",
124
+ "defaults_ref",
125
+ "core_skills",
126
+ "forbidden_skills"
127
+ ],
34
128
  "properties": {
35
- "registry_ref": { "const": "docs/agents/digital-human-roles.yaml" },
36
- "defaults_ref": { "type": "string", "minLength": 1 },
37
- "core_skills": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
38
- "forbidden_skills": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } }
129
+ "registry_ref": {
130
+ "const": "docs/agents/digital-human-roles.yaml"
131
+ },
132
+ "defaults_ref": {
133
+ "type": "string",
134
+ "minLength": 1
135
+ },
136
+ "core_skills": {
137
+ "type": "array",
138
+ "minItems": 1,
139
+ "uniqueItems": true,
140
+ "items": {
141
+ "type": "string",
142
+ "minLength": 1
143
+ }
144
+ },
145
+ "forbidden_skills": {
146
+ "type": "array",
147
+ "minItems": 1,
148
+ "uniqueItems": true,
149
+ "items": {
150
+ "type": "string",
151
+ "minLength": 1
152
+ }
153
+ }
39
154
  }
40
155
  },
41
156
  "contract": {
42
- "type": "object", "additionalProperties": false,
43
- "required": ["kind", "contract_id", "contract_version", "status", "contract_ref"],
157
+ "type": "object",
158
+ "additionalProperties": false,
159
+ "required": [
160
+ "kind",
161
+ "contract_id",
162
+ "contract_version",
163
+ "status",
164
+ "contract_ref"
165
+ ],
44
166
  "properties": {
45
- "kind": { "enum": ["lifecycle-work-unit", "slice-implementation", "template-maintenance"] },
46
- "contract_id": { "type": "string", "minLength": 1 },
47
- "contract_version": { "oneOf": [{ "type": "integer", "minimum": 1 }, { "type": "string", "minLength": 1, "pattern": "\\S" }] },
48
- "status": { "enum": ["issued", "stale", "blocked"] },
49
- "contract_ref": { "type": "string", "minLength": 1 },
50
- "lifecycle_ref": { "type": "string", "minLength": 1 },
51
- "slice_contract_ref": { "type": "string", "minLength": 1 },
52
- "maintenance_ref": { "type": "string", "minLength": 1 },
53
- "candidate_kind": { "type": "string", "minLength": 1 },
54
- "candidate_requirement": { "type": "string", "minLength": 1 },
55
- "candidate_digest": { "type": "string", "pattern": "^(?:sha256:)?[a-f0-9]{64}$" },
56
- "review_axis": { "enum": ["standards", "spec", "lead"] },
57
- "review_round": { "type": "integer", "minimum": 1, "maximum": 2 },
58
- "applicable_rule_refs": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
59
- "artifact_refs": { "type": "array", "items": { "type": "string", "minLength": 1 } },
60
- "gate_refs": { "type": "array", "items": { "type": "string", "minLength": 1 } }
61
- }
62
- },
63
- "user_decisions": { "type": "array", "items": { "type": "object", "required": ["boundary", "subject_ref", "scope"], "oneOf": [{"required": ["user_decision_ref"]}, {"required": ["continuation_ref"]}], "properties": { "boundary": { "type": "string" }, "subject_ref": { "type": "string" }, "scope": { "type": "array", "minItems": 1, "items": { "type": "string" } }, "user_decision_ref": { "type": "string", "minLength": 1 }, "continuation_ref": { "type": "string", "minLength": 1 } }, "additionalProperties": false } },
64
- "inputs": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
65
- "allowed_read_paths": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
66
- "objective": { "type": "string", "minLength": 1 },
67
- "allowed_write_paths": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
68
- "forbidden_actions": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
69
- "expected_outputs": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
70
- "expected_evidence_files": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
71
- "verification_commands": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
167
+ "kind": {
168
+ "enum": [
169
+ "lifecycle-work-unit",
170
+ "slice-implementation",
171
+ "template-maintenance"
172
+ ]
173
+ },
174
+ "contract_id": {
175
+ "type": "string",
176
+ "minLength": 1
177
+ },
178
+ "contract_version": {
179
+ "oneOf": [
180
+ {
181
+ "type": "integer",
182
+ "minimum": 1
183
+ },
184
+ {
185
+ "type": "string",
186
+ "minLength": 1,
187
+ "pattern": "\\S"
188
+ }
189
+ ]
190
+ },
191
+ "status": {
192
+ "enum": [
193
+ "issued",
194
+ "stale",
195
+ "blocked"
196
+ ]
197
+ },
198
+ "contract_ref": {
199
+ "type": "string",
200
+ "minLength": 1
201
+ },
202
+ "lifecycle_ref": {
203
+ "type": "string",
204
+ "minLength": 1
205
+ },
206
+ "slice_contract_ref": {
207
+ "type": "string",
208
+ "minLength": 1
209
+ },
210
+ "maintenance_ref": {
211
+ "type": "string",
212
+ "minLength": 1
213
+ },
214
+ "candidate_kind": {
215
+ "type": "string",
216
+ "minLength": 1
217
+ },
218
+ "candidate_requirement": {
219
+ "type": "string",
220
+ "minLength": 1
221
+ },
222
+ "candidate_digest": {
223
+ "type": "string",
224
+ "pattern": "^(?:sha256:)?[a-f0-9]{64}$"
225
+ },
226
+ "review_axis": {
227
+ "enum": [
228
+ "standards",
229
+ "spec",
230
+ "lead"
231
+ ]
232
+ },
233
+ "review_round": {
234
+ "type": "integer",
235
+ "minimum": 1,
236
+ "maximum": 2
237
+ },
238
+ "applicable_rule_refs": {
239
+ "type": "array",
240
+ "minItems": 1,
241
+ "uniqueItems": true,
242
+ "items": {
243
+ "type": "string",
244
+ "minLength": 1
245
+ }
246
+ },
247
+ "artifact_refs": {
248
+ "type": "array",
249
+ "items": {
250
+ "type": "string",
251
+ "minLength": 1
252
+ }
253
+ },
254
+ "gate_refs": {
255
+ "type": "array",
256
+ "items": {
257
+ "type": "string",
258
+ "minLength": 1
259
+ }
260
+ }
261
+ }
262
+ },
263
+ "user_decisions": {
264
+ "type": "array",
265
+ "items": {
266
+ "type": "object",
267
+ "required": [
268
+ "boundary",
269
+ "subject_ref",
270
+ "scope"
271
+ ],
272
+ "oneOf": [
273
+ {
274
+ "required": [
275
+ "user_decision_ref"
276
+ ]
277
+ },
278
+ {
279
+ "required": [
280
+ "continuation_ref"
281
+ ]
282
+ }
283
+ ],
284
+ "properties": {
285
+ "boundary": {
286
+ "type": "string"
287
+ },
288
+ "subject_ref": {
289
+ "type": "string"
290
+ },
291
+ "scope": {
292
+ "type": "array",
293
+ "minItems": 1,
294
+ "items": {
295
+ "type": "string"
296
+ }
297
+ },
298
+ "user_decision_ref": {
299
+ "type": "string",
300
+ "minLength": 1
301
+ },
302
+ "continuation_ref": {
303
+ "type": "string",
304
+ "minLength": 1
305
+ }
306
+ },
307
+ "additionalProperties": false
308
+ }
309
+ },
310
+ "inputs": {
311
+ "type": "array",
312
+ "minItems": 1,
313
+ "items": {
314
+ "type": "string",
315
+ "minLength": 1
316
+ }
317
+ },
318
+ "allowed_read_paths": {
319
+ "type": "array",
320
+ "minItems": 1,
321
+ "uniqueItems": true,
322
+ "items": {
323
+ "type": "string",
324
+ "minLength": 1
325
+ }
326
+ },
327
+ "objective": {
328
+ "type": "string",
329
+ "minLength": 1
330
+ },
331
+ "allowed_write_paths": {
332
+ "type": "array",
333
+ "minItems": 1,
334
+ "uniqueItems": true,
335
+ "items": {
336
+ "type": "string",
337
+ "minLength": 1
338
+ }
339
+ },
340
+ "forbidden_actions": {
341
+ "type": "array",
342
+ "minItems": 1,
343
+ "uniqueItems": true,
344
+ "items": {
345
+ "type": "string",
346
+ "minLength": 1
347
+ }
348
+ },
349
+ "expected_outputs": {
350
+ "type": "array",
351
+ "minItems": 1,
352
+ "items": {
353
+ "type": "string",
354
+ "minLength": 1
355
+ }
356
+ },
357
+ "expected_evidence_files": {
358
+ "type": "array",
359
+ "minItems": 1,
360
+ "uniqueItems": true,
361
+ "items": {
362
+ "type": "string",
363
+ "minLength": 1
364
+ }
365
+ },
366
+ "verification_commands": {
367
+ "type": "array",
368
+ "minItems": 1,
369
+ "items": {
370
+ "type": "string",
371
+ "minLength": 1
372
+ }
373
+ },
72
374
  "verification_results": {
73
- "type": "array", "items": {
74
- "type": "object", "additionalProperties": false,
75
- "required": ["command", "exit_code", "executed_at", "evidence_ref"],
375
+ "type": "array",
376
+ "items": {
377
+ "type": "object",
378
+ "additionalProperties": false,
379
+ "required": [
380
+ "command",
381
+ "exit_code",
382
+ "executed_at",
383
+ "evidence_ref"
384
+ ],
76
385
  "properties": {
77
- "command": { "type": "string", "minLength": 1 },
78
- "exit_code": { "type": "integer", "minimum": 0 },
79
- "duration_ms": { "type": "integer", "minimum": 0 },
80
- "executed_at": { "type": "string", "minLength": 1 },
81
- "evidence_ref": { "type": "string", "minLength": 1 },
82
- "stdout_ref": { "type": "string", "minLength": 1 },
83
- "stderr_ref": { "type": "string", "minLength": 1 }
386
+ "command": {
387
+ "type": "string",
388
+ "minLength": 1
389
+ },
390
+ "exit_code": {
391
+ "type": "integer",
392
+ "minimum": 0
393
+ },
394
+ "duration_ms": {
395
+ "type": "integer",
396
+ "minimum": 0
397
+ },
398
+ "executed_at": {
399
+ "type": "string",
400
+ "minLength": 1
401
+ },
402
+ "evidence_ref": {
403
+ "type": "string",
404
+ "minLength": 1
405
+ },
406
+ "stdout_ref": {
407
+ "type": "string",
408
+ "minLength": 1
409
+ },
410
+ "stderr_ref": {
411
+ "type": "string",
412
+ "minLength": 1
413
+ }
84
414
  }
85
415
  }
86
416
  },
87
417
  "review_context": {
88
- "type": "object", "additionalProperties": false, "required": ["implementation_actor_id"],
89
- "properties": { "implementation_actor_id": { "type": "string", "minLength": 1 }, "implementation_task_id": { "type": "string", "minLength": 1 } }
418
+ "type": "object",
419
+ "additionalProperties": false,
420
+ "required": [
421
+ "implementation_actor_id"
422
+ ],
423
+ "properties": {
424
+ "implementation_actor_id": {
425
+ "type": "string",
426
+ "minLength": 1
427
+ },
428
+ "implementation_task_id": {
429
+ "type": "string",
430
+ "minLength": 1
431
+ }
432
+ }
433
+ },
434
+ "downstream_consumers": {
435
+ "type": "array",
436
+ "minItems": 1,
437
+ "items": {
438
+ "type": "string",
439
+ "minLength": 1
440
+ }
90
441
  },
91
- "downstream_consumers": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
92
442
  "convergence": {
93
- "type": "object", "additionalProperties": false, "required": ["parent_work_unit", "convergence_ref"],
443
+ "type": "object",
444
+ "additionalProperties": false,
445
+ "required": [
446
+ "parent_work_unit",
447
+ "convergence_ref"
448
+ ],
94
449
  "properties": {
95
- "parent_work_unit": { "type": "string", "pattern": "^work-unit\\.[a-z0-9][a-z0-9-]*$" },
96
- "convergence_ref": { "type": "string", "minLength": 1 },
97
- "conflict_escalation": { "type": "string", "minLength": 1 }
450
+ "parent_work_unit": {
451
+ "type": "string",
452
+ "pattern": "^work-unit\\.[a-z0-9][a-z0-9-]*$"
453
+ },
454
+ "convergence_ref": {
455
+ "type": "string",
456
+ "minLength": 1
457
+ },
458
+ "conflict_escalation": {
459
+ "type": "string",
460
+ "minLength": 1
461
+ }
98
462
  }
99
463
  },
100
464
  "result": {
101
- "type": "object", "additionalProperties": false,
465
+ "type": "object",
466
+ "additionalProperties": false,
102
467
  "properties": {
103
- "result_schema": { "const": "workflow-execution-result-v1" },
104
- "work_unit": { "type": "string", "minLength": 1 },
105
- "workflow_reference": { "type": "string", "minLength": 1 },
106
- "result": { "enum": ["completed", "blocked", "needs-human", "failed"] },
468
+ "result_schema": {
469
+ "const": "workflow-execution-result-v1"
470
+ },
471
+ "work_unit": {
472
+ "type": "string",
473
+ "minLength": 1
474
+ },
475
+ "workflow_reference": {
476
+ "type": "string",
477
+ "minLength": 1
478
+ },
479
+ "result": {
480
+ "enum": [
481
+ "completed",
482
+ "blocked",
483
+ "needs-human",
484
+ "failed"
485
+ ]
486
+ },
107
487
  "context_reconciliation": {
108
- "type": "object", "additionalProperties": false,
109
- "required": ["status", "ref"],
488
+ "type": "object",
489
+ "additionalProperties": false,
490
+ "required": [
491
+ "status",
492
+ "ref"
493
+ ],
110
494
  "properties": {
111
- "status": { "enum": ["reconciled", "not-applicable", "blocked"] },
112
- "ref": { "type": "string", "minLength": 1 },
113
- "reason": { "type": "string", "minLength": 1 }
114
- }
115
- },
116
- "skill": { "type": "string", "minLength": 1 },
117
- "changed_files": { "type": "array", "items": { "type": "string", "minLength": 1 } },
118
- "changed_artifacts": { "type": "array", "items": { "type": "string", "minLength": 1 } },
119
- "evidence_refs": { "type": "array", "items": { "type": "string", "minLength": 1 } },
120
- "deferred_seams": { "type": "array", "items": { "type": "string", "minLength": 1 } },
121
- "drift": { "type": "array", "items": { "type": "string", "minLength": 1 } },
122
- "violation": { "type": "array", "items": { "type": "string", "minLength": 1 } },
123
- "new_impacts": { "type": "array", "items": { "type": "string", "minLength": 1 } },
124
- "stale_candidates": { "type": "array", "items": { "type": "string", "minLength": 1 } },
125
- "next_route": { "type": ["string", "null"], "minLength": 1 },
126
- "blocking_signals": { "type": "array", "items": { "type": "string", "minLength": 1 } }
495
+ "status": {
496
+ "enum": [
497
+ "reconciled",
498
+ "not-applicable",
499
+ "blocked"
500
+ ]
501
+ },
502
+ "ref": {
503
+ "type": "string",
504
+ "minLength": 1
505
+ },
506
+ "reason": {
507
+ "type": "string",
508
+ "minLength": 1
509
+ }
510
+ }
511
+ },
512
+ "skill": {
513
+ "type": "string",
514
+ "minLength": 1
515
+ },
516
+ "changed_files": {
517
+ "type": "array",
518
+ "items": {
519
+ "type": "string",
520
+ "minLength": 1
521
+ }
522
+ },
523
+ "changed_artifacts": {
524
+ "type": "array",
525
+ "items": {
526
+ "type": "string",
527
+ "minLength": 1
528
+ }
529
+ },
530
+ "evidence_refs": {
531
+ "type": "array",
532
+ "items": {
533
+ "type": "string",
534
+ "minLength": 1
535
+ }
536
+ },
537
+ "deferred_seams": {
538
+ "type": "array",
539
+ "items": {
540
+ "type": "string",
541
+ "minLength": 1
542
+ }
543
+ },
544
+ "drift": {
545
+ "type": "array",
546
+ "items": {
547
+ "type": "string",
548
+ "minLength": 1
549
+ }
550
+ },
551
+ "violation": {
552
+ "type": "array",
553
+ "items": {
554
+ "type": "string",
555
+ "minLength": 1
556
+ }
557
+ },
558
+ "new_impacts": {
559
+ "type": "array",
560
+ "items": {
561
+ "type": "string",
562
+ "minLength": 1
563
+ }
564
+ },
565
+ "stale_candidates": {
566
+ "type": "array",
567
+ "items": {
568
+ "type": "string",
569
+ "minLength": 1
570
+ }
571
+ },
572
+ "next_route": {
573
+ "type": [
574
+ "string",
575
+ "null"
576
+ ],
577
+ "minLength": 1
578
+ },
579
+ "blocking_signals": {
580
+ "type": "array",
581
+ "items": {
582
+ "type": "string",
583
+ "minLength": 1
584
+ }
585
+ }
127
586
  }
587
+ },
588
+ "review_input": {
589
+ "type": "object",
590
+ "properties": {
591
+ "slice_contract_ref": {
592
+ "type": "string",
593
+ "minLength": 1
594
+ },
595
+ "scope_kind": {
596
+ "enum": [
597
+ "baseline",
598
+ "change"
599
+ ]
600
+ },
601
+ "standards_coverage_ref": {
602
+ "type": "string",
603
+ "minLength": 1
604
+ },
605
+ "standards_coverage_digest": {
606
+ "type": "string",
607
+ "pattern": "^[a-f0-9]{64}$"
608
+ },
609
+ "review_base_ref": {
610
+ "type": "string",
611
+ "pattern": "^[a-f0-9]{40}$"
612
+ },
613
+ "responsibility_evidence": {
614
+ "type": "array",
615
+ "items": {
616
+ "type": "object",
617
+ "required": [
618
+ "ref",
619
+ "digest"
620
+ ],
621
+ "properties": {
622
+ "ref": {
623
+ "type": "string",
624
+ "minLength": 1
625
+ },
626
+ "digest": {
627
+ "type": "string",
628
+ "pattern": "^(sha256:)?[a-f0-9]{64}$"
629
+ }
630
+ }
631
+ }
632
+ }
633
+ },
634
+ "allOf": [
635
+ {
636
+ "if": {
637
+ "required": [
638
+ "scope_kind"
639
+ ],
640
+ "properties": {
641
+ "scope_kind": {
642
+ "const": "change"
643
+ }
644
+ }
645
+ },
646
+ "then": {
647
+ "required": [
648
+ "slice_contract_ref",
649
+ "standards_coverage_ref",
650
+ "standards_coverage_digest"
651
+ ]
652
+ }
653
+ }
654
+ ]
655
+ },
656
+ "review_result_ref": {
657
+ "type": "string",
658
+ "minLength": 1
128
659
  }
129
660
  },
130
661
  "allOf": [
131
- { "if": { "properties": { "contract": { "properties": { "kind": { "const": "lifecycle-work-unit" } } } } }, "then": { "required": ["stage_id"], "properties": { "contract": { "required": ["lifecycle_ref"] } } } },
132
- { "if": { "properties": { "contract": { "properties": { "kind": { "const": "slice-implementation" } } } } }, "then": { "required": ["stage_id"], "properties": { "contract": { "required": ["slice_contract_ref"] } } } },
133
- { "if": { "properties": { "contract": { "properties": { "kind": { "const": "template-maintenance" } } } } }, "then": { "properties": { "contract": { "required": ["maintenance_ref"] } } } },
134
- { "if": { "properties": { "execution_state": { "const": "Reviewer" } } }, "then": { "required": ["review_context"] } }
662
+ {
663
+ "if": {
664
+ "properties": {
665
+ "contract": {
666
+ "properties": {
667
+ "kind": {
668
+ "const": "lifecycle-work-unit"
669
+ }
670
+ }
671
+ }
672
+ }
673
+ },
674
+ "then": {
675
+ "required": [
676
+ "stage_id"
677
+ ],
678
+ "properties": {
679
+ "contract": {
680
+ "required": [
681
+ "lifecycle_ref"
682
+ ]
683
+ }
684
+ }
685
+ }
686
+ },
687
+ {
688
+ "if": {
689
+ "properties": {
690
+ "contract": {
691
+ "properties": {
692
+ "kind": {
693
+ "const": "slice-implementation"
694
+ }
695
+ }
696
+ }
697
+ }
698
+ },
699
+ "then": {
700
+ "required": [
701
+ "stage_id"
702
+ ],
703
+ "properties": {
704
+ "contract": {
705
+ "required": [
706
+ "slice_contract_ref"
707
+ ]
708
+ }
709
+ }
710
+ }
711
+ },
712
+ {
713
+ "if": {
714
+ "properties": {
715
+ "contract": {
716
+ "properties": {
717
+ "kind": {
718
+ "const": "template-maintenance"
719
+ }
720
+ }
721
+ }
722
+ }
723
+ },
724
+ "then": {
725
+ "properties": {
726
+ "contract": {
727
+ "required": [
728
+ "maintenance_ref"
729
+ ]
730
+ }
731
+ }
732
+ }
733
+ },
734
+ {
735
+ "if": {
736
+ "properties": {
737
+ "execution_state": {
738
+ "const": "Reviewer"
739
+ }
740
+ }
741
+ },
742
+ "then": {
743
+ "required": [
744
+ "review_context"
745
+ ]
746
+ }
747
+ }
135
748
  ]
136
749
  }