@wildo-ai/framework-knowledge 1.1.11 → 1.1.13

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 (812) hide show
  1. package/dist/claude-marketplace/.claude-plugin/marketplace.json +1 -1
  2. package/dist/claude-marketplace/plugins/wildo/.claude-plugin/plugin.json +1 -1
  3. package/dist/claude-marketplace/plugins/wildo/references/acceptance.md +4 -0
  4. package/dist/claude-marketplace/plugins/wildo/references/composites-and-the-loop.md +25 -3
  5. package/dist/claude-marketplace/plugins/wildo/references/creation-state.md +40 -12
  6. package/dist/claude-marketplace/plugins/wildo/references/derived-artifacts.md +3 -3
  7. package/dist/claude-marketplace/plugins/wildo/references/runs-judges-and-questions.md +12 -0
  8. package/dist/claude-marketplace/plugins/wildo/skills/answer/SKILL.md +19 -2
  9. package/dist/claude-marketplace/plugins/wildo/skills/build/SKILL.md +33 -9
  10. package/dist/esm/framework-knowledge.definitions.d.ts +2 -3
  11. package/dist/esm/framework-knowledge.definitions.d.ts.map +1 -1
  12. package/dist/esm/framework-knowledge.definitions.js +180 -32
  13. package/dist/esm/framework-knowledge.definitions.js.map +1 -1
  14. package/dist/esm/framework-knowledge.loader.d.ts.map +1 -1
  15. package/dist/esm/framework-knowledge.loader.js.map +1 -1
  16. package/dist/esm/framework-knowledge.research-provenance.d.ts +6 -4
  17. package/dist/esm/framework-knowledge.research-provenance.d.ts.map +1 -1
  18. package/dist/esm/framework-knowledge.research-provenance.js.map +1 -1
  19. package/dist/esm/framework-knowledge.schemas.d.ts.map +1 -1
  20. package/dist/esm/framework-knowledge.schemas.js.map +1 -1
  21. package/dist/esm/index.d.ts.map +1 -1
  22. package/dist/esm/index.js.map +1 -1
  23. package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.d.ts +2 -3
  24. package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.d.ts.map +1 -1
  25. package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.js +4 -12
  26. package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.js.map +1 -1
  27. package/dist/esm/playbooks/bottom_up.build/playbook.definition.d.ts.map +1 -1
  28. package/dist/esm/playbooks/bottom_up.build/playbook.definition.js +12 -1
  29. package/dist/esm/playbooks/bottom_up.build/playbook.definition.js.map +1 -1
  30. package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.d.ts +7 -4
  31. package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.d.ts.map +1 -1
  32. package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.js +76 -14
  33. package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.js.map +1 -1
  34. package/dist/esm/playbooks/bottom_up.build-dispatch/playbook.definition.d.ts +0 -4
  35. package/dist/esm/playbooks/bottom_up.build-dispatch/playbook.definition.d.ts.map +1 -1
  36. package/dist/esm/playbooks/bottom_up.build-dispatch/playbook.definition.js +3 -15
  37. package/dist/esm/playbooks/bottom_up.build-dispatch/playbook.definition.js.map +1 -1
  38. package/dist/esm/playbooks/bottom_up.build-scale/playbook.definition.d.ts.map +1 -1
  39. package/dist/esm/playbooks/bottom_up.build-scale/playbook.definition.js.map +1 -1
  40. package/dist/esm/playbooks/bottom_up.capability-composition/playbook.definition.d.ts.map +1 -1
  41. package/dist/esm/playbooks/bottom_up.capability-composition/playbook.definition.js.map +1 -1
  42. package/dist/esm/playbooks/bottom_up.conception/playbook.definition.d.ts.map +1 -1
  43. package/dist/esm/playbooks/bottom_up.conception/playbook.definition.js.map +1 -1
  44. package/dist/esm/playbooks/bottom_up.documentation-plan/playbook.definition.d.ts +1 -1
  45. package/dist/esm/playbooks/bottom_up.documentation-plan/playbook.definition.d.ts.map +1 -1
  46. package/dist/esm/playbooks/bottom_up.documentation-plan/playbook.definition.js +1 -1
  47. package/dist/esm/playbooks/bottom_up.documentation-plan/playbook.definition.js.map +1 -1
  48. package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.d.ts.map +1 -1
  49. package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.js +35 -14
  50. package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.js.map +1 -1
  51. package/dist/esm/playbooks/bottom_up.experience-plan/playbook.definition.d.ts +16 -8
  52. package/dist/esm/playbooks/bottom_up.experience-plan/playbook.definition.d.ts.map +1 -1
  53. package/dist/esm/playbooks/bottom_up.experience-plan/playbook.definition.js +19 -8
  54. package/dist/esm/playbooks/bottom_up.experience-plan/playbook.definition.js.map +1 -1
  55. package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.d.ts +30 -3
  56. package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.d.ts.map +1 -1
  57. package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.js +87 -16
  58. package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.js.map +1 -1
  59. package/dist/esm/playbooks/bottom_up.integration-plan/playbook.definition.d.ts.map +1 -1
  60. package/dist/esm/playbooks/bottom_up.integration-plan/playbook.definition.js.map +1 -1
  61. package/dist/esm/playbooks/bottom_up.maturity-reading/playbook.definition.d.ts +2 -2
  62. package/dist/esm/playbooks/bottom_up.maturity-reading/playbook.definition.d.ts.map +1 -1
  63. package/dist/esm/playbooks/bottom_up.maturity-reading/playbook.definition.js +2 -2
  64. package/dist/esm/playbooks/bottom_up.maturity-reading/playbook.definition.js.map +1 -1
  65. package/dist/esm/playbooks/bottom_up.placement-plan/playbook.definition.d.ts +5 -1
  66. package/dist/esm/playbooks/bottom_up.placement-plan/playbook.definition.d.ts.map +1 -1
  67. package/dist/esm/playbooks/bottom_up.placement-plan/playbook.definition.js +3 -2
  68. package/dist/esm/playbooks/bottom_up.placement-plan/playbook.definition.js.map +1 -1
  69. package/dist/esm/playbooks/bottom_up.website-plan/playbook.definition.d.ts.map +1 -1
  70. package/dist/esm/playbooks/bottom_up.website-plan/playbook.definition.js.map +1 -1
  71. package/dist/esm/playbooks/cross_cutting.application-creation/playbook.definition.d.ts +45 -10
  72. package/dist/esm/playbooks/cross_cutting.application-creation/playbook.definition.d.ts.map +1 -1
  73. package/dist/esm/playbooks/cross_cutting.application-creation/playbook.definition.js +61 -21
  74. package/dist/esm/playbooks/cross_cutting.application-creation/playbook.definition.js.map +1 -1
  75. package/dist/esm/playbooks/cross_cutting.compliance/playbook.definition.d.ts +4 -3
  76. package/dist/esm/playbooks/cross_cutting.compliance/playbook.definition.d.ts.map +1 -1
  77. package/dist/esm/playbooks/cross_cutting.compliance/playbook.definition.js +8 -5
  78. package/dist/esm/playbooks/cross_cutting.compliance/playbook.definition.js.map +1 -1
  79. package/dist/esm/playbooks/cross_cutting.feature-development/playbook.definition.d.ts.map +1 -1
  80. package/dist/esm/playbooks/cross_cutting.feature-development/playbook.definition.js.map +1 -1
  81. package/dist/esm/playbooks/cross_cutting.refinement/playbook.definition.d.ts +2 -2
  82. package/dist/esm/playbooks/cross_cutting.refinement/playbook.definition.d.ts.map +1 -1
  83. package/dist/esm/playbooks/cross_cutting.refinement/playbook.definition.js +3 -5
  84. package/dist/esm/playbooks/cross_cutting.refinement/playbook.definition.js.map +1 -1
  85. package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.d.ts +1 -1
  86. package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.d.ts.map +1 -1
  87. package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.js +3 -3
  88. package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.js.map +1 -1
  89. package/dist/esm/playbooks/refinement.document-facts/playbook.definition.d.ts.map +1 -1
  90. package/dist/esm/playbooks/refinement.document-facts/playbook.definition.js +8 -6
  91. package/dist/esm/playbooks/refinement.document-facts/playbook.definition.js.map +1 -1
  92. package/dist/esm/playbooks/refinement.feature-contribution/playbook.definition.d.ts +5 -0
  93. package/dist/esm/playbooks/refinement.feature-contribution/playbook.definition.d.ts.map +1 -1
  94. package/dist/esm/playbooks/refinement.feature-contribution/playbook.definition.js +8 -1
  95. package/dist/esm/playbooks/refinement.feature-contribution/playbook.definition.js.map +1 -1
  96. package/dist/esm/playbooks/refinement.governance-document-candidate/playbook.definition.d.ts.map +1 -1
  97. package/dist/esm/playbooks/refinement.governance-document-candidate/playbook.definition.js.map +1 -1
  98. package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.d.ts +4 -1
  99. package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.d.ts.map +1 -1
  100. package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.js +11 -3
  101. package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.js.map +1 -1
  102. package/dist/esm/playbooks/top_down.brand-name-research/playbook.definition.d.ts.map +1 -1
  103. package/dist/esm/playbooks/top_down.brand-name-research/playbook.definition.js +1 -1
  104. package/dist/esm/playbooks/top_down.brand-name-research/playbook.definition.js.map +1 -1
  105. package/dist/esm/playbooks/top_down.brand-name-screening-produce/playbook.definition.d.ts.map +1 -1
  106. package/dist/esm/playbooks/top_down.brand-name-screening-produce/playbook.definition.js +6 -4
  107. package/dist/esm/playbooks/top_down.brand-name-screening-produce/playbook.definition.js.map +1 -1
  108. package/dist/esm/playbooks/top_down.brand-naming/playbook.definition.d.ts +3 -1
  109. package/dist/esm/playbooks/top_down.brand-naming/playbook.definition.d.ts.map +1 -1
  110. package/dist/esm/playbooks/top_down.brand-naming/playbook.definition.js +4 -1
  111. package/dist/esm/playbooks/top_down.brand-naming/playbook.definition.js.map +1 -1
  112. package/dist/esm/playbooks/top_down.business-model/playbook.definition.d.ts +10 -1
  113. package/dist/esm/playbooks/top_down.business-model/playbook.definition.d.ts.map +1 -1
  114. package/dist/esm/playbooks/top_down.business-model/playbook.definition.js +36 -13
  115. package/dist/esm/playbooks/top_down.business-model/playbook.definition.js.map +1 -1
  116. package/dist/esm/playbooks/top_down.capability-map/playbook.definition.d.ts +8 -2
  117. package/dist/esm/playbooks/top_down.capability-map/playbook.definition.d.ts.map +1 -1
  118. package/dist/esm/playbooks/top_down.capability-map/playbook.definition.js +7 -1
  119. package/dist/esm/playbooks/top_down.capability-map/playbook.definition.js.map +1 -1
  120. package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.d.ts +4 -1
  121. package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.d.ts.map +1 -1
  122. package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.js +34 -6
  123. package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.js.map +1 -1
  124. package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.d.ts +5 -2
  125. package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.d.ts.map +1 -1
  126. package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.js +4 -3
  127. package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.js.map +1 -1
  128. package/dist/esm/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.d.ts.map +1 -1
  129. package/dist/esm/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.js +2 -2
  130. package/dist/esm/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.js.map +1 -1
  131. package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.d.ts +22 -10
  132. package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.d.ts.map +1 -1
  133. package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.js +39 -29
  134. package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.js.map +1 -1
  135. package/dist/esm/playbooks/top_down.compliance-research/playbook.definition.d.ts.map +1 -1
  136. package/dist/esm/playbooks/top_down.compliance-research/playbook.definition.js.map +1 -1
  137. package/dist/esm/playbooks/top_down.definition/playbook.definition.d.ts +8 -3
  138. package/dist/esm/playbooks/top_down.definition/playbook.definition.d.ts.map +1 -1
  139. package/dist/esm/playbooks/top_down.definition/playbook.definition.js +16 -7
  140. package/dist/esm/playbooks/top_down.definition/playbook.definition.js.map +1 -1
  141. package/dist/esm/playbooks/top_down.expert-personas/playbook.definition.d.ts.map +1 -1
  142. package/dist/esm/playbooks/top_down.expert-personas/playbook.definition.js.map +1 -1
  143. package/dist/esm/playbooks/top_down.feature-drafts/playbook.definition.d.ts.map +1 -1
  144. package/dist/esm/playbooks/top_down.feature-drafts/playbook.definition.js.map +1 -1
  145. package/dist/esm/playbooks/top_down.market-analysis/playbook.definition.d.ts.map +1 -1
  146. package/dist/esm/playbooks/top_down.market-analysis/playbook.definition.js.map +1 -1
  147. package/dist/esm/playbooks/top_down.market-evidence-adequacy/playbook.definition.d.ts.map +1 -1
  148. package/dist/esm/playbooks/top_down.market-evidence-adequacy/playbook.definition.js +2 -2
  149. package/dist/esm/playbooks/top_down.market-evidence-adequacy/playbook.definition.js.map +1 -1
  150. package/dist/esm/playbooks/top_down.market-research/playbook.definition.d.ts.map +1 -1
  151. package/dist/esm/playbooks/top_down.market-research/playbook.definition.js.map +1 -1
  152. package/dist/esm/playbooks/top_down.market-snapshot-produce/playbook.definition.d.ts.map +1 -1
  153. package/dist/esm/playbooks/top_down.market-snapshot-produce/playbook.definition.js +1 -1
  154. package/dist/esm/playbooks/top_down.market-snapshot-produce/playbook.definition.js.map +1 -1
  155. package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.d.ts.map +1 -1
  156. package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.js +13 -5
  157. package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.js.map +1 -1
  158. package/dist/esm/playbooks/top_down.requirements-definition/playbook.definition.d.ts +3 -7
  159. package/dist/esm/playbooks/top_down.requirements-definition/playbook.definition.d.ts.map +1 -1
  160. package/dist/esm/playbooks/top_down.requirements-definition/playbook.definition.js +12 -14
  161. package/dist/esm/playbooks/top_down.requirements-definition/playbook.definition.js.map +1 -1
  162. package/dist/esm/playbooks/top_down.risk-register/playbook.definition.d.ts +3 -0
  163. package/dist/esm/playbooks/top_down.risk-register/playbook.definition.d.ts.map +1 -1
  164. package/dist/esm/playbooks/top_down.risk-register/playbook.definition.js +2 -1
  165. package/dist/esm/playbooks/top_down.risk-register/playbook.definition.js.map +1 -1
  166. package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.d.ts +3 -1
  167. package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.d.ts.map +1 -1
  168. package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.js +2 -1
  169. package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.js.map +1 -1
  170. package/dist/esm/playbooks/top_down.service-method/playbook.definition.d.ts +4 -1
  171. package/dist/esm/playbooks/top_down.service-method/playbook.definition.d.ts.map +1 -1
  172. package/dist/esm/playbooks/top_down.service-method/playbook.definition.js +14 -1
  173. package/dist/esm/playbooks/top_down.service-method/playbook.definition.js.map +1 -1
  174. package/dist/esm/playbooks/top_down.value-proposition/playbook.definition.d.ts +3 -1
  175. package/dist/esm/playbooks/top_down.value-proposition/playbook.definition.d.ts.map +1 -1
  176. package/dist/esm/playbooks/top_down.value-proposition/playbook.definition.js +4 -2
  177. package/dist/esm/playbooks/top_down.value-proposition/playbook.definition.js.map +1 -1
  178. package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.d.ts +34 -1
  179. package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.d.ts.map +1 -1
  180. package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.js +35 -17
  181. package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.js.map +1 -1
  182. package/dist/esm/source-anchor-grammar.d.ts.map +1 -1
  183. package/dist/esm/source-anchor-grammar.js.map +1 -1
  184. package/dist/knowledge/assurance-authority-bases/wildo-safe-baseline-v1/authority-basis.json +1 -1
  185. package/dist/knowledge/assurance-authority-bases/wildo-safe-baseline-v1/external-framework-mapping.json +1 -1
  186. package/dist/knowledge/manifest.json +7 -7
  187. package/dist/knowledge/playbooks/bottom_up.assemble-verify/method.md +6 -0
  188. package/dist/knowledge/playbooks/bottom_up.assemble-verify/playbook.json +4 -4
  189. package/dist/knowledge/playbooks/bottom_up.build/method.md +12 -2
  190. package/dist/knowledge/playbooks/bottom_up.build/playbook.json +5 -3
  191. package/dist/knowledge/playbooks/bottom_up.build-decompose/evaluation-protocol.json +1 -1
  192. package/dist/knowledge/playbooks/bottom_up.build-decompose/evaluation-treatment.json +1 -1
  193. package/dist/knowledge/playbooks/bottom_up.build-decompose/method.md +439 -27
  194. package/dist/knowledge/playbooks/bottom_up.build-decompose/playbook.json +15 -4
  195. package/dist/knowledge/playbooks/bottom_up.build-dispatch/method.md +203 -7
  196. package/dist/knowledge/playbooks/bottom_up.build-dispatch/playbook.json +2 -5
  197. package/dist/knowledge/playbooks/bottom_up.build-scale/playbook.json +1 -0
  198. package/dist/knowledge/playbooks/bottom_up.capability-composition/playbook.json +1 -0
  199. package/dist/knowledge/playbooks/bottom_up.conception/playbook.json +1 -0
  200. package/dist/knowledge/playbooks/bottom_up.documentation-plan/method.md +2 -2
  201. package/dist/knowledge/playbooks/bottom_up.documentation-plan/playbook.json +2 -1
  202. package/dist/knowledge/playbooks/bottom_up.domain-plan/evaluation-protocol.json +1 -1
  203. package/dist/knowledge/playbooks/bottom_up.domain-plan/evaluation-treatment.json +1 -1
  204. package/dist/knowledge/playbooks/bottom_up.domain-plan/method.md +104 -2
  205. package/dist/knowledge/playbooks/bottom_up.domain-plan/playbook.json +8 -4
  206. package/dist/knowledge/playbooks/bottom_up.experience-plan/method.md +59 -4
  207. package/dist/knowledge/playbooks/bottom_up.experience-plan/playbook.json +18 -6
  208. package/dist/knowledge/playbooks/bottom_up.foundation/method.md +121 -24
  209. package/dist/knowledge/playbooks/bottom_up.foundation/playbook.json +55 -8
  210. package/dist/knowledge/playbooks/bottom_up.integration-plan/method.md +15 -8
  211. package/dist/knowledge/playbooks/bottom_up.integration-plan/playbook.json +2 -1
  212. package/dist/knowledge/playbooks/bottom_up.maturity-reading/method.md +19 -2
  213. package/dist/knowledge/playbooks/bottom_up.maturity-reading/playbook.json +4 -3
  214. package/dist/knowledge/playbooks/bottom_up.placement-plan/method.md +34 -0
  215. package/dist/knowledge/playbooks/bottom_up.placement-plan/playbook.json +9 -2
  216. package/dist/knowledge/playbooks/bottom_up.website-plan/playbook.json +1 -0
  217. package/dist/knowledge/playbooks/cross_cutting.application-creation/method.md +27 -12
  218. package/dist/knowledge/playbooks/cross_cutting.application-creation/playbook.json +11 -5
  219. package/dist/knowledge/playbooks/cross_cutting.compliance/method.md +4 -4
  220. package/dist/knowledge/playbooks/cross_cutting.compliance/playbook.json +7 -2
  221. package/dist/knowledge/playbooks/cross_cutting.feature-development/playbook.json +1 -0
  222. package/dist/knowledge/playbooks/cross_cutting.refinement/method.md +6 -6
  223. package/dist/knowledge/playbooks/cross_cutting.refinement/playbook.json +3 -4
  224. package/dist/knowledge/playbooks/refinement.compliance-document-candidate/evaluation-protocol.json +1 -1
  225. package/dist/knowledge/playbooks/refinement.compliance-document-candidate/evaluation-treatment.json +1 -1
  226. package/dist/knowledge/playbooks/refinement.compliance-document-candidate/method.md +56 -5
  227. package/dist/knowledge/playbooks/refinement.compliance-document-candidate/playbook.json +3 -2
  228. package/dist/knowledge/playbooks/refinement.document-facts/method.md +6 -4
  229. package/dist/knowledge/playbooks/refinement.document-facts/playbook.json +5 -1
  230. package/dist/knowledge/playbooks/refinement.feature-contribution/playbook.json +8 -1
  231. package/dist/knowledge/playbooks/refinement.governance-document-candidate/playbook.json +1 -0
  232. package/dist/knowledge/playbooks/top_down.brand-identity/evaluation-protocol.json +1 -1
  233. package/dist/knowledge/playbooks/top_down.brand-identity/evaluation-treatment.json +1 -1
  234. package/dist/knowledge/playbooks/top_down.brand-identity/playbook.json +15 -3
  235. package/dist/knowledge/playbooks/top_down.brand-name-research/method.md +11 -4
  236. package/dist/knowledge/playbooks/top_down.brand-name-research/playbook.json +3 -2
  237. package/dist/knowledge/playbooks/top_down.brand-name-screening-produce/evaluation-protocol.json +1 -1
  238. package/dist/knowledge/playbooks/top_down.brand-name-screening-produce/evaluation-treatment.json +1 -1
  239. package/dist/knowledge/playbooks/top_down.brand-name-screening-produce/method.md +16 -6
  240. package/dist/knowledge/playbooks/top_down.brand-name-screening-produce/playbook.json +3 -2
  241. package/dist/knowledge/playbooks/top_down.brand-naming/playbook.json +5 -1
  242. package/dist/knowledge/playbooks/top_down.business-model/evaluation-protocol.json +1 -1
  243. package/dist/knowledge/playbooks/top_down.business-model/evaluation-treatment.json +1 -1
  244. package/dist/knowledge/playbooks/top_down.business-model/method.md +43 -11
  245. package/dist/knowledge/playbooks/top_down.business-model/playbook.json +24 -8
  246. package/dist/knowledge/playbooks/top_down.capability-map/playbook.json +6 -2
  247. package/dist/knowledge/playbooks/top_down.compliance-analysis/method.md +1 -1
  248. package/dist/knowledge/playbooks/top_down.compliance-analysis/playbook.json +49 -14
  249. package/dist/knowledge/playbooks/top_down.compliance-conception/method.md +3 -3
  250. package/dist/knowledge/playbooks/top_down.compliance-conception/playbook.json +6 -2
  251. package/dist/knowledge/playbooks/top_down.compliance-evidence-adequacy/method.md +20 -0
  252. package/dist/knowledge/playbooks/top_down.compliance-evidence-adequacy/playbook.json +4 -3
  253. package/dist/knowledge/playbooks/top_down.compliance-posture/evaluation-protocol.json +1 -1
  254. package/dist/knowledge/playbooks/top_down.compliance-posture/evaluation-treatment.json +1 -1
  255. package/dist/knowledge/playbooks/top_down.compliance-posture/method.md +69 -65
  256. package/dist/knowledge/playbooks/top_down.compliance-posture/playbook.json +11 -7
  257. package/dist/knowledge/playbooks/top_down.compliance-research/playbook.json +1 -0
  258. package/dist/knowledge/playbooks/top_down.definition/method.md +3 -1
  259. package/dist/knowledge/playbooks/top_down.definition/playbook.json +11 -3
  260. package/dist/knowledge/playbooks/top_down.expert-personas/playbook.json +1 -0
  261. package/dist/knowledge/playbooks/top_down.feature-drafts/playbook.json +1 -0
  262. package/dist/knowledge/playbooks/top_down.market-analysis/playbook.json +1 -0
  263. package/dist/knowledge/playbooks/top_down.market-evidence-adequacy/method.md +4 -2
  264. package/dist/knowledge/playbooks/top_down.market-evidence-adequacy/playbook.json +4 -3
  265. package/dist/knowledge/playbooks/top_down.market-research/playbook.json +1 -0
  266. package/dist/knowledge/playbooks/top_down.market-snapshot-produce/method.md +3 -0
  267. package/dist/knowledge/playbooks/top_down.market-snapshot-produce/playbook.json +3 -2
  268. package/dist/knowledge/playbooks/top_down.phase-gate/evaluation-protocol.json +1 -1
  269. package/dist/knowledge/playbooks/top_down.phase-gate/evaluation-treatment.json +1 -1
  270. package/dist/knowledge/playbooks/top_down.phase-gate/playbook.json +1 -0
  271. package/dist/knowledge/playbooks/top_down.requirements-definition/method.md +14 -0
  272. package/dist/knowledge/playbooks/top_down.requirements-definition/playbook.json +11 -7
  273. package/dist/knowledge/playbooks/top_down.risk-register/method.md +7 -0
  274. package/dist/knowledge/playbooks/top_down.risk-register/playbook.json +5 -1
  275. package/dist/knowledge/playbooks/top_down.scope-roadmap/playbook.json +6 -1
  276. package/dist/knowledge/playbooks/top_down.service-method/method.md +19 -1
  277. package/dist/knowledge/playbooks/top_down.service-method/playbook.json +16 -4
  278. package/dist/knowledge/playbooks/top_down.value-proposition/method.md +5 -2
  279. package/dist/knowledge/playbooks/top_down.value-proposition/playbook.json +9 -3
  280. package/dist/knowledge/playbooks/top_down.vision-elicitation/evaluation-protocol.json +1 -1
  281. package/dist/knowledge/playbooks/top_down.vision-elicitation/evaluation-treatment.json +1 -1
  282. package/dist/knowledge/playbooks/top_down.vision-elicitation/method.md +17 -2
  283. package/dist/knowledge/playbooks/top_down.vision-elicitation/playbook.json +59 -15
  284. package/dist/knowledge/references/application-documentation-chapters.config.md +45 -10
  285. package/dist/knowledge/references/application-documentation-plan.config.md +2 -2
  286. package/dist/knowledge/references/application-maturity.config.md +70 -1
  287. package/dist/knowledge/references/backend.inbound-channels.attachment-adoption.md +4 -2
  288. package/dist/knowledge/references/backend.inbound-channels.handler-definition.md +52 -11
  289. package/dist/knowledge/references/backend.inbound-handlers.definition.md +38 -1
  290. package/dist/knowledge/references/brand.name-screening.config.md +30 -3
  291. package/dist/knowledge/references/build-plan.task-graph.config.md +200 -4
  292. package/dist/knowledge/references/business-model.pricing-plan.config.md +12 -9
  293. package/dist/knowledge/references/business-model.snapshot.config.md +29 -2
  294. package/dist/knowledge/references/business-model.snapshot.validation.md +11 -8
  295. package/dist/knowledge/references/companion.introspection.behaviors.market.md +3 -0
  296. package/dist/knowledge/references/companion.market.generation-service.md +46 -5
  297. package/dist/knowledge/references/companion.market.prompt-renderer.md +1 -1
  298. package/dist/knowledge/references/companion.technical-doc.service.md +195 -63
  299. package/dist/knowledge/references/domain-plan.record-partition.md +105 -0
  300. package/dist/knowledge/references/engine.client-bundle.allow-list.md +3 -1
  301. package/dist/knowledge/references/engine.saas-technical-doc.config.md +69 -15
  302. package/dist/knowledge/references/example.authorization.application-roles.office-and-field.md +10 -0
  303. package/dist/knowledge/references/example.backend.addon-wiring.module.md +6 -0
  304. package/dist/knowledge/references/example.backend.custom-operation.declared-refusal-code.md +41 -0
  305. package/dist/knowledge/references/example.backend.custom-operation.external-effect-reservation.md +107 -0
  306. package/dist/knowledge/references/example.blueprint.definition.internal-tool.md +4 -2
  307. package/dist/knowledge/references/example.flows-actors.chat-assistant.md +8 -5
  308. package/dist/knowledge/references/example.infra.environment-config.local.md +13 -66
  309. package/dist/knowledge/references/example.module.companion-exports.full.md +1 -0
  310. package/dist/knowledge/references/example.module.relationships.actor-edge-back-to-scope-owner.md +35 -35
  311. package/dist/knowledge/references/example.navigation.one-entry-per-concept.md +47 -0
  312. package/dist/knowledge/references/example.organization-identity.system-of-record-partitions.md +18 -0
  313. package/dist/knowledge/references/example.provider.backend-module-shape.md +28 -4
  314. package/dist/knowledge/references/example.resource.add-resource.module-factory-map.md +0 -4
  315. package/dist/knowledge/references/example.resource.config-wiring.retention-policy-operations.md +21 -0
  316. package/dist/knowledge/references/example.resource.custom-view.backend-refusal.md +75 -0
  317. package/dist/knowledge/references/example.resource.status-lifecycle.quote.md +8 -7
  318. package/dist/knowledge/references/example.resource.ui-behavior.operation-icon.md +37 -2
  319. package/dist/knowledge/references/example.resource.ui-behavior.record-template.md +0 -1
  320. package/dist/knowledge/references/example.resource.ui-behavior.surface-decision.md +1 -1
  321. package/dist/knowledge/references/example.resource.ui-behavior.workflow-record-page.md +212 -0
  322. package/dist/knowledge/references/example.subject-export.portability-archive.md +42 -0
  323. package/dist/knowledge/references/example.views.app-level.workflow-home.md +238 -0
  324. package/dist/knowledge/references/example.website.demo.complete-items.md +3 -3
  325. package/dist/knowledge/references/example.website.pricing.audit-payloads.md +38 -0
  326. package/dist/knowledge/references/example.website.pricing.catalog-load.md +77 -0
  327. package/dist/knowledge/references/example.website.pricing.offers.md +43 -0
  328. package/dist/knowledge/references/example.website.pricing.plans-section.md +20 -0
  329. package/dist/knowledge/references/example.website.pricing.plans.md +88 -0
  330. package/dist/knowledge/references/example.website.section.stats.md +1 -1
  331. package/dist/knowledge/references/experience-plan.config.md +111 -1
  332. package/dist/knowledge/references/external-connectors.frontend-provider-consent-classification.md +2 -0
  333. package/dist/knowledge/references/external-connectors.models.file-storage-adapter.md +8 -1
  334. package/dist/knowledge/references/external-connectors.models.hook-signature-algorithms.md +104 -0
  335. package/dist/knowledge/references/external-connectors.models.oauth2-audiences.md +11 -6
  336. package/dist/knowledge/references/external-connectors.models.oauth2-incremental-consent.md +165 -0
  337. package/dist/knowledge/references/external-connectors.models.rest-operation-contract.md +1035 -19
  338. package/dist/knowledge/references/external-connectors.private.provider-compliance-state-collector.md +36 -0
  339. package/dist/knowledge/references/external-connectors.private.provider-configuration-check.md +69 -0
  340. package/dist/knowledge/references/integration-plan.config.md +7 -7
  341. package/dist/knowledge/references/placement-plan.config.md +19 -0
  342. package/dist/knowledge/references/platform.config.backing-services.md +9 -11
  343. package/dist/knowledge/references/platform.config.environment.deployment.md +133 -8
  344. package/dist/knowledge/references/platform.config.infra-provider-resolution.md +3 -3
  345. package/dist/knowledge/references/platform.config.infrastructure-host.md +1 -1
  346. package/dist/knowledge/references/platform.config.platform-key-management.md +89 -10
  347. package/dist/knowledge/references/platform.config.saas.md +20 -18
  348. package/dist/knowledge/references/presets.3d.frame-style-resolution.md +65 -0
  349. package/dist/knowledge/references/presets.layouts-2d.authoring.md +1 -1
  350. package/dist/knowledge/references/presets.models.field-form-control-variant.md +32 -0
  351. package/dist/knowledge/references/presets.models.labelling.sections.md +39 -0
  352. package/dist/knowledge/references/presets.models.surface-policy.defaults.md +3 -3
  353. package/dist/knowledge/references/presets.models.surface-variant.md +5 -4
  354. package/dist/knowledge/references/presets.themes.compose-theme.md +2 -1
  355. package/dist/knowledge/references/requirements.engine-substance.md +38 -0
  356. package/dist/knowledge/references/requirements.functional-requirement.config.md +11 -0
  357. package/dist/knowledge/references/requirements.non-functional-requirement.config.md +15 -4
  358. package/dist/knowledge/references/requirements.snapshot.config.md +2 -3
  359. package/dist/knowledge/references/saas.approval-seals.admin-endpoints.md +49 -2
  360. package/dist/knowledge/references/saas.backend.a2a.token-budget.md +11 -4
  361. package/dist/knowledge/references/saas.backend.actor-execution-continuation.md +21 -0
  362. package/dist/knowledge/references/saas.backend.app-config.backend-authored.md +5 -1
  363. package/dist/knowledge/references/saas.backend.application-initialization.assembly.md +1 -1
  364. package/dist/knowledge/references/saas.backend.authorization.role-ceiling.md +13 -1
  365. package/dist/knowledge/references/saas.backend.custom-operation.authoritative-fields.md +4 -1
  366. package/dist/knowledge/references/saas.backend.custom-operation.core-write-precondition.md +38 -0
  367. package/dist/knowledge/references/saas.backend.custom-operation.external-effect-reservation.md +109 -0
  368. package/dist/knowledge/references/saas.backend.custom-operation.hook-transaction-posture.md +43 -0
  369. package/dist/knowledge/references/saas.backend.document-sequence.issue-in-operation.md +1 -1
  370. package/dist/knowledge/references/saas.backend.document-sequence.raise-floor.md +62 -13
  371. package/dist/knowledge/references/saas.backend.domain-module.md +30 -1
  372. package/dist/knowledge/references/saas.backend.flows-actors.a2a-task-surface.md +26 -3
  373. package/dist/knowledge/references/saas.backend.flows-actors.chat-reply-handler.md +13 -1
  374. package/dist/knowledge/references/saas.backend.flows-actors.function-tool.md +435 -2
  375. package/dist/knowledge/references/saas.backend.flows-actors.invoke-agent.md +5 -3
  376. package/dist/knowledge/references/saas.backend.flows-actors.resource-read-tool.md +1 -1
  377. package/dist/knowledge/references/saas.backend.flows-actors.resource-write-tool.md +9 -4
  378. package/dist/knowledge/references/saas.backend.flows.start-flow-method.md +2 -1
  379. package/dist/knowledge/references/saas.backend.privacy.subject-export-archive.md +26 -0
  380. package/dist/knowledge/references/saas.backend.providers.connection-target-credential-resolution.md +21 -19
  381. package/dist/knowledge/references/saas.backend.system-access-service.md +159 -4
  382. package/dist/knowledge/references/saas.config.content-security-policy.md +26 -9
  383. package/dist/knowledge/references/saas.data-seeding.definition-input.md +1 -1
  384. package/dist/knowledge/references/saas.data-seeding.modes.md +4 -1
  385. package/dist/knowledge/references/saas.data-seeding.row-reference.md +2 -4
  386. package/dist/knowledge/references/saas.external-providers.backend-provider-loader.md +6 -0
  387. package/dist/knowledge/references/saas.external-providers.backend-provider-registry.runtime-filter.md +2 -0
  388. package/dist/knowledge/references/saas.frontend.chart-dashboard-view.md +43 -0
  389. package/dist/knowledge/references/saas.frontend.chart-dashboard.md +133 -0
  390. package/dist/knowledge/references/saas.frontend.chart-view.resource-chart-data.md +8 -4
  391. package/dist/knowledge/references/saas.frontend.collection-filter-presets.md +76 -9
  392. package/dist/knowledge/references/saas.frontend.command-menu.search-resource.md +3 -3
  393. package/dist/knowledge/references/saas.frontend.errors.backend-refusal.md +96 -0
  394. package/dist/knowledge/references/saas.frontend.execution-view.definition.md +40 -0
  395. package/dist/knowledge/references/saas.frontend.launcher.item-refs.md +4 -0
  396. package/dist/knowledge/references/saas.frontend.linked-conversations-embed.md +3 -5
  397. package/dist/knowledge/references/saas.frontend.record-page-parts.md +117 -0
  398. package/dist/knowledge/references/saas.frontend.related-resource-embeds.md +46 -16
  399. package/dist/knowledge/references/saas.frontend.related-resource-sections.md +6 -0
  400. package/dist/knowledge/references/saas.frontend.resource-header-title.md +1 -1
  401. package/dist/knowledge/references/saas.frontend.resource-layout-templates.md +43 -9
  402. package/dist/knowledge/references/saas.frontend.resource-operation-frontend-config.md +259 -15
  403. package/dist/knowledge/references/saas.frontend.resource-ui-behavior-config.md +4 -2
  404. package/dist/knowledge/references/saas.frontend.section-stages.md +63 -0
  405. package/dist/knowledge/references/saas.frontend.settings-hub.engine-destinations.md +42 -0
  406. package/dist/knowledge/references/saas.frontend.settings-hub.placement.md +6 -9
  407. package/dist/knowledge/references/saas.frontend.viewer-may-perform-operation.md +52 -0
  408. package/dist/knowledge/references/saas.models.agent-suspension.md +8 -8
  409. package/dist/knowledge/references/saas.models.audit-trails.actor-attribution.md +21 -0
  410. package/dist/knowledge/references/saas.models.auth.relationship-grantor-authentication.md +2 -2
  411. package/dist/knowledge/references/saas.models.chart-dashboard-tile-sizes.md +40 -0
  412. package/dist/knowledge/references/saas.models.config.declared-type-renames.md +246 -0
  413. package/dist/knowledge/references/saas.models.config.organization-types.md +20 -0
  414. package/dist/knowledge/references/saas.models.conversation-threads.md +39 -3
  415. package/dist/knowledge/references/saas.models.crypto-keys.floors.md +10 -0
  416. package/dist/knowledge/references/saas.models.crypto-keys.local-provider.md +2 -0
  417. package/dist/knowledge/references/saas.models.crypto-keys.purpose-descriptor.md +39 -0
  418. package/dist/knowledge/references/saas.models.crypto-keys.purposes.md +7 -0
  419. package/dist/knowledge/references/saas.models.data-mode-read-list.md +0 -78
  420. package/dist/knowledge/references/saas.models.engine-capabilities.md +11 -2
  421. package/dist/knowledge/references/saas.models.engine-capabilities.required-provider-floor.md +3 -0
  422. package/dist/knowledge/references/saas.models.external-data-pipeline.md +15 -8
  423. package/dist/knowledge/references/saas.models.flows-actors.agent-behavior-report.md +13 -9
  424. package/dist/knowledge/references/saas.models.flows-actors.agent-configuration.md +29 -0
  425. package/dist/knowledge/references/saas.models.flows-actors.agent-content-guardrails-environment.md +52 -0
  426. package/dist/knowledge/references/saas.models.flows-actors.agent-operation-record.md +7 -0
  427. package/dist/knowledge/references/saas.models.flows-actors.human-decision-decider.md +8 -0
  428. package/dist/knowledge/references/saas.models.flows-actors.human-input-form.md +47 -12
  429. package/dist/knowledge/references/saas.models.flows-actors.operation-approval-requirement.md +31 -0
  430. package/dist/knowledge/references/saas.models.flows-actors.review-deadlines-declaration.md +3 -3
  431. package/dist/knowledge/references/saas.models.flows.runnable-model.md +21 -2
  432. package/dist/knowledge/references/saas.models.guidance-flow.md +1 -1
  433. package/dist/knowledge/references/saas.models.http-api-binding.md +19 -8
  434. package/dist/knowledge/references/saas.models.human-decision-review-marker.md +1 -1
  435. package/dist/knowledge/references/saas.models.inbound-channels.md +71 -2
  436. package/dist/knowledge/references/saas.models.model-cost-accounting-config.md +1 -1
  437. package/dist/knowledge/references/saas.models.notifications.targets.md +3 -1
  438. package/dist/knowledge/references/saas.models.notifications.user-notification-definition.md +201 -15
  439. package/dist/knowledge/references/saas.models.organization-assigned-rows-declaration.md +2 -1
  440. package/dist/knowledge/references/saas.models.organization-dashboard-layout.md +61 -0
  441. package/dist/knowledge/references/saas.models.organization-own-rows-declaration.md +5 -2
  442. package/dist/knowledge/references/saas.models.organizations.identity-declaration.md +201 -0
  443. package/dist/knowledge/references/saas.models.organizations.organization-relationships.md +25 -3
  444. package/dist/knowledge/references/saas.models.organizations.relationship-invitations.md +6 -2
  445. package/dist/knowledge/references/saas.models.organizations.relationship-kinds.md +14 -0
  446. package/dist/knowledge/references/saas.models.organizations.relationship-record-separation.md +1 -0
  447. package/dist/knowledge/references/saas.models.privacy.data-residency.md +676 -0
  448. package/dist/knowledge/references/saas.models.privacy.legal-holds.md +46 -2
  449. package/dist/knowledge/references/saas.models.privacy.provider-capability-disclosure.md +6 -0
  450. package/dist/knowledge/references/saas.models.privacy.retention-binding.md +84 -1
  451. package/dist/knowledge/references/saas.models.privacy.retention-enforcement-record.md +10 -0
  452. package/dist/knowledge/references/saas.models.privacy.retention-schedule.md +5 -3
  453. package/dist/knowledge/references/saas.models.privacy.subject-data-recipients.md +2 -0
  454. package/dist/knowledge/references/saas.models.privacy.subject-export.md +134 -0
  455. package/dist/knowledge/references/saas.models.provider-capabilities.md +5 -0
  456. package/dist/knowledge/references/saas.models.providers.capability-resolution-mode.md +12 -6
  457. package/dist/knowledge/references/saas.models.providers.compliance-choice.md +15 -0
  458. package/dist/knowledge/references/saas.models.providers.processing-region-reach.md +132 -0
  459. package/dist/knowledge/references/saas.models.providers.processing-region-selection.md +139 -0
  460. package/dist/knowledge/references/saas.models.representative-activity.md +4 -0
  461. package/dist/knowledge/references/saas.models.resource-config.builder-parameters.md +107 -42
  462. package/dist/knowledge/references/saas.models.resource-config.operation-api-call.md +35 -0
  463. package/dist/knowledge/references/saas.models.resource-config.operation-auditable-event.md +4 -2
  464. package/dist/knowledge/references/saas.models.resource-config.operation-condition-parameters.md +56 -0
  465. package/dist/knowledge/references/saas.models.resource-config.operation-idempotency-key.md +16 -6
  466. package/dist/knowledge/references/saas.models.resource-config.operation-scope-admissions.md +38 -0
  467. package/dist/knowledge/references/saas.models.resource-config.resource-configuration.md +14 -16
  468. package/dist/knowledge/references/saas.models.resource-config.resources-registry.md +2 -2
  469. package/dist/knowledge/references/saas.models.resource-config.retention-policy.md +21 -0
  470. package/dist/knowledge/references/saas.models.resource-config.system-access-policy.md +32 -15
  471. package/dist/knowledge/references/saas.models.resource-operation-display-risk.md +5 -4
  472. package/dist/knowledge/references/saas.models.roles.definition.md +12 -1
  473. package/dist/knowledge/references/saas.models.roles.organization-defaults.md +6 -0
  474. package/dist/knowledge/references/saas.models.schema-family-builder.md +17 -2
  475. package/dist/knowledge/references/saas.models.system-of-record-actions.md +65 -1
  476. package/dist/knowledge/references/saas.models.system-of-record-capabilities.md +3 -1
  477. package/dist/knowledge/references/saas.models.system-of-record-error-codes.md +16 -0
  478. package/dist/knowledge/references/saas.models.systems-of-record.md +75 -14
  479. package/dist/knowledge/references/saas.public-runtime.contract.md +41 -23
  480. package/dist/knowledge/references/saas.rag.retrieval-refusals.md +3 -2
  481. package/dist/knowledge/references/saas.specifications.assurance-program.contract.md +12 -4
  482. package/dist/knowledge/references/saas.specifications.companion-exports.contract.md +21 -2
  483. package/dist/knowledge/references/saas.specifications.engine-resource-sub-domain.md +105 -0
  484. package/dist/knowledge/references/saas.specifications.governed-document-release.contract.md +6 -2
  485. package/dist/knowledge/references/saas.specifications.resource-operation-spec.md +20 -3
  486. package/dist/knowledge/references/saas.specifications.resource-spec-factory.md +100 -71
  487. package/dist/knowledge/references/saas.specifications.translation-glossary.md +80 -0
  488. package/dist/knowledge/references/saas.website.astro.label-loader.md +44 -10
  489. package/dist/knowledge/references/saas.website.astro.runtime-helper.md +3 -2
  490. package/dist/knowledge/references/saas.website.blog.collection-config.md +36 -32
  491. package/dist/knowledge/references/saas.website.blog.cover-resolver.md +1 -1
  492. package/dist/knowledge/references/saas.website.blog.frontmatter.md +2 -2
  493. package/dist/knowledge/references/saas.website.blog.post-renderer.md +2 -2
  494. package/dist/knowledge/references/saas.website.blog.react-mdx-integration.md +26 -19
  495. package/dist/knowledge/references/saas.website.blog.react-mdx-query.md +1 -1
  496. package/dist/knowledge/references/saas.website.config.pricing-catalog-loader.md +3 -1
  497. package/dist/knowledge/references/saas.website.config.site-context-loader.md +6 -3
  498. package/dist/knowledge/references/saas.website.label-keys.format.md +3 -2
  499. package/dist/knowledge/references/saas.website.label-pack.validator.md +3 -1
  500. package/dist/knowledge/references/service-method.config.md +35 -2
  501. package/dist/knowledge/references/vision.constraint.config.md +4 -2
  502. package/dist/knowledge/references/zod.decorators.chainable-runtime.md +60 -0
  503. package/dist/knowledge/references/zod.decorators.data-categories.md +46 -46
  504. package/dist/knowledge/references/zod.decorators.decorator-vocabulary.md +24 -0
  505. package/dist/knowledge/references/zod.decorators.display-edit-modes.md +11 -0
  506. package/dist/knowledge/references/zod.decorators.file-schema.md +4 -3
  507. package/dist/knowledge/references/zod.decorators.rag-source.md +20 -20
  508. package/dist/knowledge/references/zod.decorators.schema-metadata.md +2 -0
  509. package/dist/knowledge/references/zod.decorators.shared-structural-methods.md +30 -24
  510. package/dist/knowledge/references/zod.decorators.shared-structural-params.md +63 -0
  511. package/dist/knowledge/references/zod.decorators.structural-lifecycle-params.md +63 -0
  512. package/dist/knowledge/references/zod.factories.bigdecimal.md +4 -4
  513. package/dist/knowledge/references/zod.factories.code.md +4 -4
  514. package/dist/knowledge/references/zod.factories.duration.md +4 -4
  515. package/dist/knowledge/references/zod.factories.money.md +4 -4
  516. package/dist/knowledge/references/zod.factories.phone.md +4 -4
  517. package/dist/knowledge/references/zod.factories.year-month.md +79 -0
  518. package/dist/knowledge/registries/assurance-authority-bases.json +1 -1
  519. package/dist/knowledge/registries/framework-topics.json +455 -2
  520. package/dist/knowledge/registries/playbooks.json +51 -39
  521. package/dist/knowledge/registries/source-tags.json +2505 -1627
  522. package/dist/knowledge/rules/database-migration-obligation.md +6 -7
  523. package/dist/knowledge/rules/live-context-door.md +1 -1
  524. package/dist/knowledge/skills/INDEX.md +3 -1
  525. package/dist/knowledge/skills/agent-work-review/references/framework-actor-execution-continuation-api.md +24 -0
  526. package/dist/knowledge/skills/agent-work-review/references/framework-agent-work-review-marker-api.md +1 -1
  527. package/dist/knowledge/skills/agent-work-review/references/framework-human-input-form-api.md +47 -12
  528. package/dist/knowledge/skills/application-consumer-documentation-authoring/SKILL.md +30 -19
  529. package/dist/knowledge/skills/application-consumer-documentation-authoring/references/framework-documentation-chapters-api.md +48 -13
  530. package/dist/knowledge/skills/application-consumer-documentation-authoring/references/source-and-ownership-routing.md +2 -2
  531. package/dist/knowledge/skills/application-database-migrations/SKILL.md +10 -11
  532. package/dist/knowledge/skills/application-database-migrations/references/postgresql-supported-surfaces.md +64 -0
  533. package/dist/knowledge/skills/application-database-migrations/references/postgresql-vs-mongodb-obligations.md +13 -11
  534. package/dist/knowledge/skills/application-roles-authoring/SKILL.md +28 -3
  535. package/dist/knowledge/skills/application-roles-authoring/references/framework-application-roles-api.md +18 -1
  536. package/dist/knowledge/skills/application-roles-authoring/references/office-and-field-worked-example.md +22 -1
  537. package/dist/knowledge/skills/authorization-unit-narrowing/SKILL.md +46 -2
  538. package/dist/knowledge/skills/authorization-unit-narrowing/references/framework-assigned-rows-declaration-api.md +5 -3
  539. package/dist/knowledge/skills/authorization-unit-narrowing/references/framework-organization-identity-declaration-api.md +247 -0
  540. package/dist/knowledge/skills/authorization-unit-narrowing/references/framework-own-rows-declaration-api.md +12 -5
  541. package/dist/knowledge/skills/backend-addon-wiring/SKILL.md +6 -0
  542. package/dist/knowledge/skills/backend-addon-wiring/references/framework-backend-bootstrap-api.md +31 -2
  543. package/dist/knowledge/skills/backend-custom-operation/SKILL.md +51 -14
  544. package/dist/knowledge/skills/backend-custom-operation/references/after-the-operation.md +4 -1
  545. package/dist/knowledge/skills/backend-custom-operation/references/declared-refusal-codes.md +95 -0
  546. package/dist/knowledge/skills/backend-custom-operation/references/framework-audit-log-event-api.md +2 -2
  547. package/dist/knowledge/skills/backend-custom-operation/references/framework-core-write-precondition-api.md +73 -0
  548. package/dist/knowledge/skills/backend-custom-operation/references/framework-error-handling-api.md +5 -0
  549. package/dist/knowledge/skills/backend-custom-operation/references/framework-external-effect-reservation-api.md +276 -0
  550. package/dist/knowledge/skills/backend-custom-operation/references/framework-hook-transaction-posture-api.md +90 -0
  551. package/dist/knowledge/skills/blueprint-authoring/SKILL.md +4 -2
  552. package/dist/knowledge/skills/brand-name-screening/SKILL.md +13 -2
  553. package/dist/knowledge/skills/brand-name-screening/references/framework-brand-name-screening-api.md +30 -3
  554. package/dist/knowledge/skills/chat-agent-conversations/SKILL.md +3 -0
  555. package/dist/knowledge/skills/chat-agent-conversations/references/framework-chat-conversations-api.md +13 -1
  556. package/dist/knowledge/skills/compliance-document-authoring/references/document-composition-privacy-notice.md +45 -4
  557. package/dist/knowledge/skills/compliance-document-authoring/references/framework-governed-document-after-drafting.md +17 -7
  558. package/dist/knowledge/skills/compliance-document-authoring/references/framework-provider-compliance-choice-api.md +859 -0
  559. package/dist/knowledge/skills/compliance-document-authoring/references/framework-recipient-disclosures.md +6 -0
  560. package/dist/knowledge/skills/compliance-document-authoring/references/framework-subject-data-recipients.md +2 -0
  561. package/dist/knowledge/skills/config-app-shell/SKILL.md +5 -1
  562. package/dist/knowledge/skills/config-app-shell/references/framework-command-menu-omnibox-api.md +3 -3
  563. package/dist/knowledge/skills/config-app-shell/references/framework-launcher-items-api.md +4 -0
  564. package/dist/knowledge/skills/config-design-system/SKILL.md +1 -1
  565. package/dist/knowledge/skills/config-design-system/references/framework-surface-policy-api.md +8 -7
  566. package/dist/knowledge/skills/config-design-system/references/framework-theme-composition-api.md +44 -1
  567. package/dist/knowledge/skills/config-navigation/SKILL.md +2 -0
  568. package/dist/knowledge/skills/config-navigation/references/navigation-configuration-map.md +5 -0
  569. package/dist/knowledge/skills/config-navigation/references/one-entry-per-concept.md +101 -0
  570. package/dist/knowledge/skills/config-saas/SKILL.md +2 -2
  571. package/dist/knowledge/skills/config-saas/references/compliance-declarations.md +40 -3
  572. package/dist/knowledge/skills/config-saas/references/framework-auditable-event-catalog.md +20 -1
  573. package/dist/knowledge/skills/config-saas/references/framework-capability-resolution-api.md +75 -11
  574. package/dist/knowledge/skills/config-saas/references/framework-connection-target-credentials.md +21 -19
  575. package/dist/knowledge/skills/config-saas/references/framework-content-security-policy-api.md +26 -9
  576. package/dist/knowledge/skills/config-saas/references/framework-key-management-api.md +240 -9
  577. package/dist/knowledge/skills/config-saas/references/framework-provider-capabilities-api.md +16 -2
  578. package/dist/knowledge/skills/config-saas/references/framework-systems-of-record-api.md +116 -16
  579. package/dist/knowledge/skills/config-saas/references/framework-wildo-saas-config-api.md +20 -18
  580. package/dist/knowledge/skills/config-saas/references/saas-config-scope.md +1 -1
  581. package/dist/knowledge/skills/config-saas-backend/SKILL.md +11 -1
  582. package/dist/knowledge/skills/config-saas-backend/references/framework-backend-authored-config-api.md +5 -1
  583. package/dist/knowledge/skills/config-saas-backend/references/framework-declared-type-renames-api.md +261 -0
  584. package/dist/knowledge/skills/config-saas-backend/references/framework-organization-types-api.md +20 -0
  585. package/dist/knowledge/skills/config-saas-backend/references/renaming-organization-and-user-types.md +69 -0
  586. package/dist/knowledge/skills/configure-billing/SKILL.md +6 -0
  587. package/dist/knowledge/skills/configure-billing/references/example-backend-provider-module-shape.md +28 -4
  588. package/dist/knowledge/skills/configure-billing/references/framework-backend-provider-reachability-api.md +2 -0
  589. package/dist/knowledge/skills/configure-billing/references/framework-subscription-behavior-policy.md +4 -1
  590. package/dist/knowledge/skills/electronic-signature-deliverables/SKILL.md +131 -0
  591. package/dist/knowledge/skills/electronic-signature-deliverables/references/what-makes-a-request-signed.md +78 -0
  592. package/dist/knowledge/skills/email-add-template/SKILL.md +1 -1
  593. package/dist/knowledge/skills/email-add-template/references/framework-email-attachments-and-limits.md +11 -8
  594. package/dist/knowledge/skills/email-add-template/references/framework-email-send-api.md +3 -2
  595. package/dist/knowledge/skills/flows-actors-a2a-exposure/SKILL.md +31 -9
  596. package/dist/knowledge/skills/flows-actors-a2a-exposure/references/framework-a2a-token-budget-api.md +11 -4
  597. package/dist/knowledge/skills/flows-actors-a2a-exposure/references/framework-flows-actors-a2a-contract.md +26 -3
  598. package/dist/knowledge/skills/flows-actors-autonomous-agents/SKILL.md +13 -3
  599. package/dist/knowledge/skills/flows-actors-autonomous-agents/references/binding-and-review.md +27 -0
  600. package/dist/knowledge/skills/flows-actors-chat-assistant/SKILL.md +34 -11
  601. package/dist/knowledge/skills/flows-actors-chat-assistant/examples/todo-assistant.example.md +8 -5
  602. package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-agent-behavior-reports-api.md +13 -9
  603. package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-agent-content-guardrails-api.md +188 -10
  604. package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-agent-operation-record-api.md +7 -0
  605. package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-agent-suspension-api.md +11 -9
  606. package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-audit-agent-attribution-api.md +21 -0
  607. package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-decision-deadlines-api.md +3 -3
  608. package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-flows-actors-realtime-catalog.md +7 -1
  609. package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-flows-actors-tool-api.md +447 -8
  610. package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-flows-actors-view-api.md +30 -1
  611. package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-model-spend-limits-api.md +36 -15
  612. package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-tool-dispatch-obligations-api.md +8 -0
  613. package/dist/knowledge/skills/flows-actors-declared-flow/SKILL.md +13 -3
  614. package/dist/knowledge/skills/flows-actors-declared-flow/references/framework-flow-model-api.md +21 -2
  615. package/dist/knowledge/skills/flows-actors-declared-flow/references/framework-start-flow-api.md +2 -1
  616. package/dist/knowledge/skills/flows-actors-llm-agent-invocation/SKILL.md +13 -3
  617. package/dist/knowledge/skills/flows-actors-llm-agent-invocation/references/framework-llm-agent-definition-api.md +33 -1
  618. package/dist/knowledge/skills/flows-actors-llm-agent-invocation/references/framework-llm-agent-invocation-api.md +5 -3
  619. package/dist/knowledge/skills/frontend-component-catalog/SKILL.md +1 -1
  620. package/dist/knowledge/skills/frontend-component-catalog/references/framework-component-catalog.md +6 -5
  621. package/dist/knowledge/skills/frontend-component-catalog/references/framework-component-usage.md +50 -14
  622. package/dist/knowledge/skills/guidance-onboarding-authoring/references/framework-guidance-flow-api.md +1 -1
  623. package/dist/knowledge/skills/i18n-label-generation/references/framework-labelling-sections-api.md +39 -0
  624. package/dist/knowledge/skills/i18n-rerun-pipeline/references/framework-labelling-sections-api.md +39 -0
  625. package/dist/knowledge/skills/i18n-translation-rerun/SKILL.md +31 -2
  626. package/dist/knowledge/skills/i18n-translation-rerun/references/framework-labelling-sections-api.md +39 -0
  627. package/dist/knowledge/skills/i18n-translation-rerun/references/framework-translation-glossary-api.md +87 -0
  628. package/dist/knowledge/skills/inbound-channels/SKILL.md +31 -9
  629. package/dist/knowledge/skills/inbound-channels/references/email-channel.md +16 -4
  630. package/dist/knowledge/skills/inbound-channels/references/framework-inbound-channel-api.md +169 -23
  631. package/dist/knowledge/skills/inbound-channels/references/framework-inbound-handler-api.md +38 -1
  632. package/dist/knowledge/skills/inbound-channels/references/inbound-delivery-lifecycle.md +43 -4
  633. package/dist/knowledge/skills/inbound-channels/references/receiving-email.md +15 -3
  634. package/dist/knowledge/skills/inbound-channels/references/sms-channel.md +93 -0
  635. package/dist/knowledge/skills/infra-environment-config/SKILL.md +149 -77
  636. package/dist/knowledge/skills/infra-environment-config/references/framework-agent-content-guardrails-environment-api.md +67 -0
  637. package/dist/knowledge/skills/infra-environment-config/references/framework-backing-services-api.md +12 -14
  638. package/dist/knowledge/skills/infra-environment-config/references/framework-environment-deployment-api.md +133 -8
  639. package/dist/knowledge/skills/infra-environment-config/references/framework-infrastructure-host-api.md +1 -1
  640. package/dist/knowledge/skills/infra-environment-config/references/framework-platform-key-management-api.md +89 -10
  641. package/dist/knowledge/skills/layout-2d-adoption/references/framework-2d-layout-authoring-api.md +1 -1
  642. package/dist/knowledge/skills/layout-3d-adoption/references/framework-3d-focal-plane-settings-api.md +16 -0
  643. package/dist/knowledge/skills/layout-3d-adoption/references/framework-3d-frame-style-overrides-api.md +72 -0
  644. package/dist/knowledge/skills/layout-3d-adoption/references/manual-adoption-and-removal.md +2 -2
  645. package/dist/knowledge/skills/local-environment-bootstrap/SKILL.md +12 -9
  646. package/dist/knowledge/skills/local-environment-bootstrap/references/derived-artifact-currency.md +3 -3
  647. package/dist/knowledge/skills/local-environment-bootstrap/references/framework-upgrade-and-dependency-alignment.md +2 -2
  648. package/dist/knowledge/skills/local-environment-bootstrap/references/local-environment-troubleshooting.md +18 -10
  649. package/dist/knowledge/skills/local-environment-bootstrap/references/wildo-cli-bootstrap-commands.md +7 -7
  650. package/dist/knowledge/skills/market-companion-prompt-enrichment/SKILL.md +24 -2
  651. package/dist/knowledge/skills/market-companion-prompt-enrichment/references/framework-companion-behavior-api.md +33 -2
  652. package/dist/knowledge/skills/market-generation-cli/SKILL.md +47 -6
  653. package/dist/knowledge/skills/market-generation-cli/references/framework-market-generation-cli.md +61 -8
  654. package/dist/knowledge/skills/model-cost-attribution/SKILL.md +3 -1
  655. package/dist/knowledge/skills/model-cost-attribution/references/framework-model-cost-pricing-api.md +1 -1
  656. package/dist/knowledge/skills/model-cost-attribution/references/framework-work-unit-api.md +107 -42
  657. package/dist/knowledge/skills/module-companion-exports/SKILL.md +1 -0
  658. package/dist/knowledge/skills/module-companion-exports/references/companion-exports-by-package.md +21 -2
  659. package/dist/knowledge/skills/module-registration/references/framework-domain-modules-api.md +30 -1
  660. package/dist/knowledge/skills/module-relationships/SKILL.md +92 -91
  661. package/dist/knowledge/skills/organization-relationships/references/framework-organization-relationships-api.md +31 -5
  662. package/dist/knowledge/skills/organization-relationships/references/framework-relationship-grantor-authentication-api.md +2 -2
  663. package/dist/knowledge/skills/organization-relationships/references/framework-relationship-kinds-api.md +34 -0
  664. package/dist/knowledge/skills/organization-relationships/references/framework-relationship-record-separation-api.md +1 -0
  665. package/dist/knowledge/skills/organization-relationships/references/framework-representative-activity-api.md +4 -0
  666. package/dist/knowledge/skills/professional-qualifications/references/framework-operation-approval-requirement-api.md +31 -0
  667. package/dist/knowledge/skills/provider-backend-package/SKILL.md +272 -15
  668. package/dist/knowledge/skills/provider-backend-package/references/framework-optional-runtime-peers.md +4 -5
  669. package/dist/knowledge/skills/provider-backend-package/references/framework-provider-compliance-state-collector-api.md +96 -0
  670. package/dist/knowledge/skills/provider-backend-package/references/framework-provider-configuration-check-api.md +130 -0
  671. package/dist/knowledge/skills/provider-backend-package/references/framework-provider-file-storage-adapter-api.md +8 -1
  672. package/dist/knowledge/skills/provider-backend-package/references/framework-provider-inbound-endpoint-api.md +124 -3
  673. package/dist/knowledge/skills/provider-backend-package/references/framework-provider-incremental-consent-api.md +165 -0
  674. package/dist/knowledge/skills/provider-backend-package/references/framework-provider-loader-api.md +6 -0
  675. package/dist/knowledge/skills/provider-backend-package/references/framework-provider-processing-region-api.md +340 -0
  676. package/dist/knowledge/skills/provider-backend-package/references/framework-provider-shared-connection-api.md +11 -6
  677. package/dist/knowledge/skills/provider-frontend-file-picker/references/framework-frontend-provider-consent-api.md +2 -0
  678. package/dist/knowledge/skills/provider-frontend-module/SKILL.md +5 -2
  679. package/dist/knowledge/skills/provider-frontend-module/references/package-frontend-facets.md +1 -1
  680. package/dist/knowledge/skills/provider-operation-calls/SKILL.md +17 -3
  681. package/dist/knowledge/skills/provider-operation-calls/references/framework-rest-operation-contract-api.md +1035 -19
  682. package/dist/knowledge/skills/resource-add-field/SKILL.md +7 -0
  683. package/dist/knowledge/skills/resource-add-field/references/framework-field-cross-layer-api.md +322 -15
  684. package/dist/knowledge/skills/resource-add-resource/SKILL.md +9 -5
  685. package/dist/knowledge/skills/resource-add-resource/references/framework-engine-api-reference-categories-api.md +119 -0
  686. package/dist/knowledge/skills/resource-add-resource/references/framework-new-resource-core-config-api.md +107 -42
  687. package/dist/knowledge/skills/resource-chat-commands/SKILL.md +2 -1
  688. package/dist/knowledge/skills/resource-config-wiring/SKILL.md +71 -5
  689. package/dist/knowledge/skills/resource-config-wiring/references/framework-collection-operation-declarations.md +2 -2
  690. package/dist/knowledge/skills/resource-config-wiring/references/framework-operation-approval-api.md +48 -0
  691. package/dist/knowledge/skills/resource-config-wiring/references/framework-operation-audit-api.md +34 -7
  692. package/dist/knowledge/skills/resource-config-wiring/references/framework-operation-bulk-api.md +15 -11
  693. package/dist/knowledge/skills/resource-config-wiring/references/framework-operation-idempotency-key-api.md +66 -27
  694. package/dist/knowledge/skills/resource-config-wiring/references/framework-personal-data-declaration-api.md +140 -58
  695. package/dist/knowledge/skills/resource-config-wiring/references/framework-retention-policy-operations.md +28 -2
  696. package/dist/knowledge/skills/resource-config-wiring/references/framework-role-ceiling-api.md +34 -10
  697. package/dist/knowledge/skills/resource-config-wiring/references/framework-saas-models-operation-scope-enums-api.md +5 -4
  698. package/dist/knowledge/skills/resource-config-wiring/references/framework-saas-models-resource-config-api.md +158 -138
  699. package/dist/knowledge/skills/resource-config-wiring/references/framework-scope-admissions-api.md +52 -0
  700. package/dist/knowledge/skills/resource-config-wiring/references/framework-system-access-reads-api.md +205 -19
  701. package/dist/knowledge/skills/resource-config-wiring/references/framework-user-notifications-api.md +253 -25
  702. package/dist/knowledge/skills/resource-custom-view/SKILL.md +126 -1
  703. package/dist/knowledge/skills/resource-custom-view/references/custom-view-contracts.md +259 -15
  704. package/dist/knowledge/skills/resource-custom-view/references/framework-backend-refusal-api.md +110 -0
  705. package/dist/knowledge/skills/resource-external-data/SKILL.md +46 -12
  706. package/dist/knowledge/skills/resource-external-data/references/bidirectional-pipelines.md +1 -1
  707. package/dist/knowledge/skills/resource-external-data/references/framework-external-data-pipeline-api.md +15 -8
  708. package/dist/knowledge/skills/resource-external-data/references/framework-http-api-binding-api.md +19 -8
  709. package/dist/knowledge/skills/resource-external-data/references/framework-system-of-record-capabilities-api.md +3 -1
  710. package/dist/knowledge/skills/resource-external-data/references/local-test-doubles.md +121 -0
  711. package/dist/knowledge/skills/resource-external-data/references/outbound-pipelines.md +1 -1
  712. package/dist/knowledge/skills/resource-external-data/references/partition-from-the-domain-plan.md +230 -0
  713. package/dist/knowledge/skills/resource-external-data/references/presenting-a-copy-and-a-read-through.md +73 -0
  714. package/dist/knowledge/skills/resource-external-data/references/read-through-writes.md +26 -5
  715. package/dist/knowledge/skills/resource-external-data/references/system-of-record-actions.md +76 -6
  716. package/dist/knowledge/skills/resource-mcp-tool-exposure/SKILL.md +8 -0
  717. package/dist/knowledge/skills/resource-rag-source-fields/SKILL.md +12 -9
  718. package/dist/knowledge/skills/resource-rag-source-fields/references/framework-embeddings-capability-api.md +11 -2
  719. package/dist/knowledge/skills/resource-rag-source-fields/references/framework-rag-retrieval-api.md +29 -2
  720. package/dist/knowledge/skills/resource-rag-source-fields/references/framework-rag-source-decorator-api.md +20 -20
  721. package/dist/knowledge/skills/resource-retention-binding/SKILL.md +18 -2
  722. package/dist/knowledge/skills/resource-retention-binding/references/framework-legal-holds-api.md +46 -2
  723. package/dist/knowledge/skills/resource-retention-binding/references/framework-retention-binding-api.md +84 -1
  724. package/dist/knowledge/skills/resource-retention-binding/references/framework-retention-enforcement-records-api.md +10 -0
  725. package/dist/knowledge/skills/resource-retention-binding/references/framework-retention-schedule-api.md +5 -3
  726. package/dist/knowledge/skills/resource-retention-binding/references/framework-statutory-retention-api.md +21 -0
  727. package/dist/knowledge/skills/resource-retention-binding/references/start-point-decisions.md +14 -2
  728. package/dist/knowledge/skills/resource-schema-authoring/SKILL.md +1 -1
  729. package/dist/knowledge/skills/resource-schema-authoring/references/computed-totals.md +4 -1
  730. package/dist/knowledge/skills/resource-schema-authoring/references/document-numbers.md +78 -17
  731. package/dist/knowledge/skills/resource-schema-authoring/references/field-type-selection.md +2 -0
  732. package/dist/knowledge/skills/resource-schema-authoring/references/framework-decorator-vocabulary-api.md +26 -0
  733. package/dist/knowledge/skills/resource-schema-authoring/references/framework-personal-data-category-api.md +46 -46
  734. package/dist/knowledge/skills/resource-schema-authoring/references/framework-schema-family-api.md +17 -2
  735. package/dist/knowledge/skills/resource-schema-authoring/references/framework-shared-decorator-methods-api.md +36 -24
  736. package/dist/knowledge/skills/resource-schema-authoring/references/framework-shared-structural-params-api.md +63 -0
  737. package/dist/knowledge/skills/resource-schema-authoring/references/framework-special-factories-api.md +104 -23
  738. package/dist/knowledge/skills/resource-schema-authoring/references/framework-zod-lifecycle-and-chainable-api.md +123 -0
  739. package/dist/knowledge/skills/resource-schema-authoring/references/shared-layer-decorator-checklist.md +1 -0
  740. package/dist/knowledge/skills/resource-schema-authoring/references/special-factories.md +72 -0
  741. package/dist/knowledge/skills/resource-status-lifecycle/SKILL.md +42 -2
  742. package/dist/knowledge/skills/resource-status-lifecycle/references/framework-operation-condition-parameters-api.md +67 -0
  743. package/dist/knowledge/skills/resource-status-lifecycle/references/quote-lifecycle-worked-example.md +16 -12
  744. package/dist/knowledge/skills/resource-ui-behavior/SKILL.md +66 -3
  745. package/dist/knowledge/skills/resource-ui-behavior/references/framework-collection-filter-presets-api.md +89 -10
  746. package/dist/knowledge/skills/resource-ui-behavior/references/framework-display-edit-modes-api.md +11 -0
  747. package/dist/knowledge/skills/resource-ui-behavior/references/framework-frontend-resource-ui-contracts-api.md +263 -17
  748. package/dist/knowledge/skills/resource-ui-behavior/references/framework-record-page-parts-api.md +155 -0
  749. package/dist/knowledge/skills/resource-ui-behavior/references/framework-related-resource-embeds-api.md +83 -16
  750. package/dist/knowledge/skills/resource-ui-behavior/references/framework-resource-layout-templates-api.md +44 -10
  751. package/dist/knowledge/skills/resource-ui-behavior/references/framework-section-stages-api.md +102 -0
  752. package/dist/knowledge/skills/resource-ui-behavior/references/record-page-anatomy.md +9 -2
  753. package/dist/knowledge/skills/resource-ui-behavior/references/surface-decisions.md +33 -2
  754. package/dist/knowledge/skills/resource-ui-behavior/references/visual-quality-rubric.md +19 -2
  755. package/dist/knowledge/skills/resource-ui-behavior/references/workflow-record-page.md +264 -0
  756. package/dist/knowledge/skills/seeding-authoring/SKILL.md +24 -4
  757. package/dist/knowledge/skills/seeding-authoring/references/cross-seed-row-references.md +12 -0
  758. package/dist/knowledge/skills/seeding-authoring/references/framework-data-seeding-api.md +7 -6
  759. package/dist/knowledge/skills/settings-placement-authoring/SKILL.md +6 -0
  760. package/dist/knowledge/skills/settings-placement-authoring/references/framework-settings-destinations-catalog.md +42 -0
  761. package/dist/knowledge/skills/settings-placement-authoring/references/framework-settings-placement-api.md +6 -9
  762. package/dist/knowledge/skills/spec-companion-exports/SKILL.md +1 -0
  763. package/dist/knowledge/skills/spec-companion-exports/references/framework-companion-exports-contract-api.md +21 -2
  764. package/dist/knowledge/skills/spec-resource-update/SKILL.md +26 -0
  765. package/dist/knowledge/skills/spec-resource-update/references/framework-spec-resource-contracts-api.md +121 -75
  766. package/dist/knowledge/skills/spec-resource-update/references/workflow-record-page-specification.md +237 -0
  767. package/dist/knowledge/skills/spec-update-after-change/references/framework-spec-factory-api.md +100 -71
  768. package/dist/knowledge/skills/subject-data-export/SKILL.md +176 -0
  769. package/dist/knowledge/skills/subject-data-export/references/file-content-exclusions.md +15 -0
  770. package/dist/knowledge/skills/subject-data-export/references/framework-subject-export-api.md +142 -0
  771. package/dist/knowledge/skills/subject-data-export/references/framework-subject-export-archive-api.md +33 -0
  772. package/dist/knowledge/skills/views-app-level/SKILL.md +3 -1
  773. package/dist/knowledge/skills/views-app-level/references/workflow-home.md +373 -0
  774. package/dist/knowledge/skills/views-chart-authoring/SKILL.md +36 -5
  775. package/dist/knowledge/skills/views-chart-authoring/references/framework-resource-chart-data-api.md +9 -5
  776. package/dist/knowledge/skills/views-composite-authoring/SKILL.md +4 -0
  777. package/dist/knowledge/skills/views-composite-authoring/references/framework-chart-dashboard-api.md +371 -0
  778. package/dist/knowledge/skills/views-execution-authoring/references/framework-execution-view-contracts-api.md +40 -0
  779. package/dist/knowledge/skills/website-blog-authoring/SKILL.md +8 -6
  780. package/dist/knowledge/skills/website-blog-authoring/references/blog-adapter-api.md +70 -59
  781. package/dist/knowledge/skills/website-building-blocks/SKILL.md +1 -1
  782. package/dist/knowledge/skills/website-building-blocks/references/framework-website-demo-examples.md +3 -3
  783. package/dist/knowledge/skills/website-bundle-discipline/SKILL.md +4 -2
  784. package/dist/knowledge/skills/website-bundle-discipline/references/website-bundle-rules.md +3 -1
  785. package/dist/knowledge/skills/website-label-pack/SKILL.md +20 -5
  786. package/dist/knowledge/skills/website-page-authoring/references/framework-site-context-loader-api.md +6 -3
  787. package/dist/knowledge/skills/website-section-comparison/SKILL.md +2 -2
  788. package/dist/knowledge/skills/website-section-contact/SKILL.md +1 -1
  789. package/dist/knowledge/skills/website-section-cta/SKILL.md +1 -1
  790. package/dist/knowledge/skills/website-section-faq/SKILL.md +1 -1
  791. package/dist/knowledge/skills/website-section-feature-benefit-summary/SKILL.md +1 -1
  792. package/dist/knowledge/skills/website-section-feature-detail/SKILL.md +1 -1
  793. package/dist/knowledge/skills/website-section-footer-cta/SKILL.md +1 -1
  794. package/dist/knowledge/skills/website-section-hero/SKILL.md +1 -1
  795. package/dist/knowledge/skills/website-section-how-it-works/SKILL.md +1 -1
  796. package/dist/knowledge/skills/website-section-integrations/SKILL.md +3 -3
  797. package/dist/knowledge/skills/website-section-latest-posts/SKILL.md +1 -1
  798. package/dist/knowledge/skills/website-section-pricing/SKILL.md +142 -98
  799. package/dist/knowledge/skills/website-section-pricing/examples/pricing-offers.example.md +178 -66
  800. package/dist/knowledge/skills/website-section-pricing/references/framework-pricing-catalog-api.md +3 -1
  801. package/dist/knowledge/skills/website-section-problem/SKILL.md +3 -3
  802. package/dist/knowledge/skills/website-section-product-showcase/SKILL.md +1 -1
  803. package/dist/knowledge/skills/website-section-roadmap/SKILL.md +4 -4
  804. package/dist/knowledge/skills/website-section-social-proof/SKILL.md +1 -1
  805. package/dist/knowledge/skills/website-section-solution-paths/SKILL.md +2 -2
  806. package/dist/knowledge/skills/website-section-stats/SKILL.md +3 -3
  807. package/dist/knowledge/skills/website-seo-aeo-geo/references/aeo-api.md +3 -2
  808. package/dist/knowledge/skills/worker-authoring/SKILL.md +4 -2
  809. package/dist/knowledge/topic-index.json +2422 -723
  810. package/dist/tsconfig.build.tsbuildinfo +1 -1
  811. package/package.json +6 -6
  812. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.market-snapshot-produce/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,EAClD,2BAA2B,EAC3B,qBA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AAe,CAAC;QAC5E,+BAA+B,EAAE,CAAC,gFAAgF,CAAC;QACnH,eAAe,EAAE,iEAAiE;QAClF,cAAc,EAAE,yDAAyD;QACzE,gBAAgB,EAAE,6BAA6B,CAAC,YAAY;QAC5D,wBAAwB,EAAE,KAAK;KAChC;IACD,kBAAkB,EAAE;QAClB,aAAa,EAAE,CAAC;QAChB,SAAS,EAAE,0DAA0D;QACrE,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE;YACR,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,+BAA+B,CAAC,QAAQ,EAAE;YACpH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,MAAM,EAAE,MAAM,EAAE,+BAA+B,CAAC,MAAM,EAAE;YAChH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,gBAAgB,EAAE,MAAM,EAAE,+BAA+B,CAAC,gBAAgB,EAAE;YACpI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,iBAAiB,EAAE,MAAM,EAAE,+BAA+B,CAAC,iBAAiB,EAAE;YACtI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,KAAK,EAAE,MAAM,EAAE,+BAA+B,CAAC,KAAK,EAAE;SAC/G;QACD,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import type {\n MetaWorkflowEvaluationTreatmentSource,\n MetaWorkflowStructuredArtifactActionSource,\n} from '@wildo-ai/saas-backend-lib/meta-workflow-runtime';\nimport {\n MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_FailureDisposition,\n MetaWorkflow_HardFloorPosture,\n MetaWorkflow_OutputContentClass,\n MetaWorkflow_OutputContractCardinality,\n MetaWorkflow_StructuredArtifactOutputSetCommitment,\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_PredicateKind,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_ContextSource,\n MetaWorkflow_Phase,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'top_down.market-snapshot-produce',\n version: '0.1.1',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Derive a validated market snapshot from the vision and from the EVIDENCE a sibling research step gathered — the artifact-producing child of the `top_down.market-analysis` composite. The provider proposes the market graph; the trusted runtime stamps entity refs/version and keeps provenance, authority and accepted-family mutation outside model output. Its intent used to claim derivation from \"sealed research evidence\" while nothing supplied any; it now runs only once an adequacy gate has read the evidence and returned ADEQUATE.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n /*\n * The evaluator-optimizer gate, READ rather than narrated.\n *\n * Presence alone would not do: an adequacy step that RAN is not one that PASSED, and gating on\n * the return would let this produce a snapshot from evidence the gate had just called\n * insufficient. The verdict is a declared field of a schema-validated step result, so the\n * comparison is exact.\n */\n {\n kind: MetaWorkflow_PredicateKind.STEP_AVAILABLE,\n ref: 'evidence-adequacy',\n requires: { path: 'verdict', equals: 'adequate' },\n },\n ],\n inputs: [\n { family: 'vision-brief' },\n // Its own family: its method refines its own prior output and keeps its refs, so it must be GIVEN that output (#1430). Input, not precondition: a first run, with no prior output, stays eligible.\n { family: 'market-snapshot' },\n ],\n outputs: [{\n family: 'market-snapshot',\n schemaRef: 'saas-specifications:MarketSnapshot',\n description: 'The assembled market category, ICP, persona, jobs/pains/gains, benefit, positioning and reach graph validated by validateMarketSnapshot.',\n }],\n method: {\n /*\n * What the creator stated in the other interviews (#2498, #2499): data classes, regimes, jurisdictions, the core\n * workflow, user groups, the scope boundary. 005's creator named VAT identifiers, site addresses, two national\n * e-invoicing regimes and four countries, and none of it reached this step. A section, never a gate: the step runs\n * whether or not those interviews were answered.\n */\n contextSources: [MetaWorkflow_ContextSource.CREATOR_STATED_FACTS],\n skillRefs: [\n 'market-authoring-overview',\n 'market-category',\n 'market-icp',\n 'market-persona',\n 'market-jobs-pains-gains',\n 'market-tone-of-voice',\n 'market-add-feature-benefit',\n 'market-positioning-authoring',\n 'market-channels',\n 'market-alternatives',\n 'market-triggers-and-journey',\n 'market-proof-and-objection',\n 'market-message-templates-authoring',\n 'market-scoring-interpretation',\n 'market-snapshot-validation',\n ],\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: { maxRuns: 3 },\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & { method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'> };\n\nexport const structuredArtifactActionSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:structured-artifact-action/market-analysis',\n definitionVersion: 1,\n actionDefinition: {\n schemaVersion: 1,\n actionRef: 'application-creation:action/market-analysis',\n actionVersion: 1,\n intentRef: 'application-creation:intent/derive-market-truth-from-accepted-vision',\n inputSelectorRefs: ['application-creation:artifact-selector/accepted-vision-brief'],\n outcomeContractRefs: ['application-creation:output-contract/market-snapshot'],\n effectSafetyPolicyRef: 'application-creation:effect-safety/candidate-artifacts-before-acceptance',\n allowedCapabilityClassRefs: ['meta-workflow:capability-class/structured-artifact-generation'],\n requiredCapabilityFacetRefs: [\n 'meta-workflow:capability-facet/atomic-output-set',\n 'meta-workflow:capability-facet/sealed-input-projection',\n 'meta-workflow:capability-facet/strict-provider-schema',\n 'meta-workflow:capability-facet/trusted-normalization',\n ],\n authorityRequirementRef: 'application-creation:authority-requirement/market-analysis-result',\n budgetPolicyRef: 'application-creation:budget-policy/market-analysis',\n continuationPolicyRef: 'application-creation:continuation-policy/market-analysis',\n decisionPointDefinitionRefs: ['application-creation:decision-point/market-analysis-result'],\n },\n driverSelector: { driverRef: 'meta-workflow:driver/structured-artifact-action', driverVersion: 1 },\n inputProjectionContractSelector: { contractRef: 'application-creation:input-projection/accepted-vision', contractVersion: 1 },\n providerOutputSchemaSelector: { schemaRef: 'saas-specifications:schema/market-snapshot-generation', schemaVersion: 1 },\n normalizationContractSelector: { contractRef: 'saas-specifications:normalizer/market-snapshot-generation', contractVersion: 1 },\n outputContract: {\n schemaVersion: 1,\n outputContractRef: 'application-creation:output-contract/market-snapshot',\n outputContractVersion: 1,\n outputSchemaSelector: { schemaRef: 'saas-specifications:schema/market-snapshot', schemaVersion: 1 },\n contentClass: MetaWorkflow_OutputContentClass.STRUCTURED_RECORD,\n cardinality: MetaWorkflow_OutputContractCardinality.ONE,\n canonicalSerializationRef: 'meta-workflow:canonicalization/wildo-json',\n canonicalSerializationVersion: 1,\n validatorContractSelector: { contractRef: 'saas-specifications:validator/market-snapshot', contractVersion: 1 },\n acceptedArtifactClassificationRefs: ['application-creation:artifact-classification/candidate-specification-family-snapshot'],\n invalidOutputDisposition: MetaWorkflow_FailureDisposition.FAIL_BINDING,\n },\n outputSetCommitment: MetaWorkflow_StructuredArtifactOutputSetCommitment.ATOMIC,\n requiredLifecycleFacets: [],\n requiredFailureDispositions: [MetaWorkflow_FailureDisposition.FAIL_BINDING, MetaWorkflow_FailureDisposition.REQUEST_INPUT, MetaWorkflow_FailureDisposition.RETRY_NEW_BINDING],\n} satisfies MetaWorkflowStructuredArtifactActionSource;\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/market-analysis',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/market-analysis',\n protocolVersion: 1,\n promptAssemblyStrategy: MetaWorkflow_EvaluationPromptAssemblyStrategy.CANONICAL_PROTOCOL_EVIDENCE_V1,\n aggregationStrategy: MetaWorkflow_EvaluationAggregationStrategy.WORST_VERDICT_PRECEDENCE_V1,\n verdictPrecedence: [MetaWorkflow_EvaluationVerdict.GAP, MetaWorkflow_EvaluationVerdict.INDETERMINATE, MetaWorkflow_EvaluationVerdict.CONCERN, MetaWorkflow_EvaluationVerdict.PASS],\n aggregationPolicyRef: 'application-creation:aggregation/worst-market-analysis-verdict',\n criteria: [{\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/market-evidence-and-vision-coherence',\n // v2 (#2498): the category answers to what the creator said the product is, and a reframe is marked, never silent.\n criterionVersion: 2,\n instruction: 'Assess whether the validated market graph is meaningfully grounded in accepted vision and sealed research evidence, distinguishes facts from hypotheses, and is coherent enough for current-horizon requirements and capability work. Then check the category against what the creator stated, when it is in your evidence: it keeps every workflow stage they named, puts nothing they excluded at its centre, and a category naming a different kind of product from theirs carries a category note starting \"Reframe:\". A dropped stage, a centred exclusion, or an unmarked reframe is a GAP. Do not reward exhaustive taxonomy when the targeting or evidence basis is weak.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/market-evidence-and-vision-coherence',\n requirementVersion: 2,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/accepted-vision-research-and-market-candidate',\n minCount: 2,\n maxCount: 3,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-market-input-and-candidate',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-action-binding',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The market graph is valid, evidence-aware and coherent with the accepted vision.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The graph is usable but material targeting or evidence uncertainty is explicitly unresolved.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'The market graph materially contradicts the vision, lacks a usable target, presents unsupported claims as truth, or reframes the product the creator stated without marking it.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'Accepted vision, research evidence or candidate output is absent, stale or insufficient.',\n },\n }],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/market-analysis',\n policyVersion: 1,\n admissibleEvaluatorSelectors: [{ evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 }],\n defaultEvaluatorSelector: { evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 },\n outputContractSelector: { outputContractRef: 'meta-workflow:output-contract/structured-semantic-evaluation-candidate', outputContractVersion: 1 },\n fallbackPolicyRef: 'application-creation:evaluator-policy/fail-closed',\n escalationPolicyRef: 'application-creation:evaluator-policy/request-explicit-review',\n maximumAttempts: 2,\n timeoutPolicyRef: 'application-creation:evaluator-policy/bounded-semantic-evaluation',\n budgetPolicyRef: 'application-creation:evaluator-policy/current-work-cycle-budget',\n selectionPolicyRef: 'application-creation:evaluator-policy/scoped-risk-and-evidence',\n },\n decisionPointDefinition: {\n schemaVersion: 1,\n decisionPointRef: 'application-creation:decision-point/market-analysis-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/market-snapshot-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/market-snapshot-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/market-definition-change',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/market-analysis-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-market-analysis-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{ hardFloorRef: 'application-creation:hard-floor/market-snapshot-valid', evidenceRequirementRefs: ['application-creation:evidence-requirement/market-evidence-and-vision-coherence'] }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/market-analysis-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-market-snapshot',\n riskClassRef: 'application-creation:risk/market-accepted-family-mutation',\n decisionModePolicyRef: 'application-creation:authority-policy/explicit-operator-confirmation',\n assurancePolicyRef: 'application-creation:authority-policy/local-single-operator',\n channelPolicyRef: 'application-creation:authority-policy/interface-relay',\n principalPolicyRef: null,\n requiredDecisionMode: MetaWorkflow_AuthorityDecisionMode.EXPLICIT_OPERATOR_CONFIRMATION,\n minimumAssurance: MetaWorkflow_AuthorityAssuranceClass.LOCAL_OS_SESSION,\n admittedChannels: [MetaWorkflow_AuthorityInteractionChannel.INTERFACE_RELAY],\n requiredEvidenceRequirementRefs: ['application-creation:evidence-requirement/market-evidence-and-vision-coherence'],\n expiryPolicyRef: 'application-creation:authority-expiry/current-interface-session',\n noncePolicyRef: 'application-creation:authority-nonce/random-per-request',\n hardFloorPosture: MetaWorkflow_HardFloorPosture.NON_WAIVABLE,\n hardFloorOverrideAllowed: false,\n },\n continuationPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:continuation-policy/market-analysis',\n policyVersion: 1,\n mappings: [\n { decisionConsequence: MetaWorkflow_DecisionConsequence.CONTINUE, action: MetaWorkflow_ContinuationAction.CONTINUE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REVISE, action: MetaWorkflow_ContinuationAction.REVISE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE, action: MetaWorkflow_ContinuationAction.REQUEST_EVIDENCE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY, action: MetaWorkflow_ContinuationAction.REQUEST_AUTHORITY },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.BLOCK, action: MetaWorkflow_ContinuationAction.BLOCK },\n ],\n maximumRevisionAttempts: 3,\n maximumEvidenceRequests: 2,\n maximumAuthorityReviews: 1,\n fallbackAction: MetaWorkflow_ContinuationAction.BLOCK,\n },\n} satisfies MetaWorkflowEvaluationTreatmentSource;\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/top_down.market-snapshot-produce/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,EAClD,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,0BAA0B,EAC1B,kBAAkB,GAEnB,MAAM,oDAAoD,CAAC;AAE5D,MAAM,CAAC,MAAM,kBA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,EAAE,KAAK;KAChC;IACD,kBAAkB,EAAE;QAClB,aAAa,EAAE,CAAC;QAChB,SAAS,EAAE,0DAA0D;QACrE,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE;YACR,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,+BAA+B,CAAC,QAAQ,EAAE;YACpH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,MAAM,EAAE,MAAM,EAAE,+BAA+B,CAAC,MAAM,EAAE;YAChH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,gBAAgB,EAAE,MAAM,EAAE,+BAA+B,CAAC,gBAAgB,EAAE;YACpI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,iBAAiB,EAAE,MAAM,EAAE,+BAA+B,CAAC,iBAAiB,EAAE;YACtI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,KAAK,EAAE,MAAM,EAAE,+BAA+B,CAAC,KAAK,EAAE;SAC/G;QACD,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import type {\n MetaWorkflowEvaluationTreatmentSource,\n MetaWorkflowStructuredArtifactActionSource,\n} from '@wildo-ai/saas-backend-lib/meta-workflow-runtime';\nimport {\n MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_FailureDisposition,\n MetaWorkflow_HardFloorPosture,\n MetaWorkflow_OutputContentClass,\n MetaWorkflow_OutputContractCardinality,\n MetaWorkflow_StructuredArtifactOutputSetCommitment,\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_PredicateKind,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_ContextSource,\n MetaWorkflow_Phase,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'top_down.market-snapshot-produce',\n version: '0.1.2',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Derive a validated market snapshot from the vision and from the EVIDENCE a sibling research step gathered — the artifact-producing child of the `top_down.market-analysis` composite. The provider proposes the market graph; the trusted runtime stamps entity refs/version and keeps provenance, authority and accepted-family mutation outside model output. Its intent used to claim derivation from \"sealed research evidence\" while nothing supplied any; it now runs only once an adequacy gate has read the evidence and returned ADEQUATE.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n /*\n * The evaluator-optimizer gate, READ rather than narrated.\n *\n * Presence alone would not do: an adequacy step that RAN is not one that PASSED, and gating on\n * the return would let this produce a snapshot from evidence the gate had just called\n * insufficient. The verdict is a declared field of a schema-validated step result, so the\n * comparison is exact.\n */\n {\n kind: MetaWorkflow_PredicateKind.STEP_AVAILABLE,\n ref: 'evidence-adequacy',\n requires: { path: 'verdict', equals: 'adequate' },\n },\n ],\n inputs: [\n { family: 'vision-brief' },\n // Its own family: its method refines its own prior output and keeps its refs, so it must be GIVEN that output (#1430). Input, not precondition: a first run, with no prior output, stays eligible.\n { family: 'market-snapshot' },\n ],\n outputs: [{\n family: 'market-snapshot',\n schemaRef: 'saas-specifications:MarketSnapshot',\n description: 'The assembled market category, ICP, persona, jobs/pains/gains, benefit, positioning and reach graph validated by validateMarketSnapshot.',\n }],\n method: {\n /*\n * What the creator stated in the other interviews (#2498, #2499): data classes, regimes, jurisdictions, the core\n * workflow, user groups, the scope boundary. 005's creator named VAT identifiers, site addresses, two national\n * e-invoicing regimes and four countries, and none of it reached this step. A section, never a gate: the step runs\n * whether or not those interviews were answered.\n */\n contextSources: [MetaWorkflow_ContextSource.CREATOR_STATED_FACTS],\n skillRefs: [\n 'market-authoring-overview',\n 'market-category',\n 'market-icp',\n 'market-persona',\n 'market-jobs-pains-gains',\n 'market-tone-of-voice',\n 'market-add-feature-benefit',\n 'market-positioning-authoring',\n 'market-channels',\n 'market-alternatives',\n 'market-triggers-and-journey',\n 'market-proof-and-objection',\n 'market-message-templates-authoring',\n 'market-scoring-interpretation',\n 'market-snapshot-validation',\n ],\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: { maxRuns: 3 },\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & { method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'> };\n\nexport const structuredArtifactActionSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:structured-artifact-action/market-analysis',\n definitionVersion: 1,\n actionDefinition: {\n schemaVersion: 1,\n actionRef: 'application-creation:action/market-analysis',\n actionVersion: 1,\n intentRef: 'application-creation:intent/derive-market-truth-from-accepted-vision',\n inputSelectorRefs: ['application-creation:artifact-selector/accepted-vision-brief'],\n outcomeContractRefs: ['application-creation:output-contract/market-snapshot'],\n effectSafetyPolicyRef: 'application-creation:effect-safety/candidate-artifacts-before-acceptance',\n allowedCapabilityClassRefs: ['meta-workflow:capability-class/structured-artifact-generation'],\n requiredCapabilityFacetRefs: [\n 'meta-workflow:capability-facet/atomic-output-set',\n 'meta-workflow:capability-facet/sealed-input-projection',\n 'meta-workflow:capability-facet/strict-provider-schema',\n 'meta-workflow:capability-facet/trusted-normalization',\n ],\n authorityRequirementRef: 'application-creation:authority-requirement/market-analysis-result',\n budgetPolicyRef: 'application-creation:budget-policy/market-analysis',\n continuationPolicyRef: 'application-creation:continuation-policy/market-analysis',\n decisionPointDefinitionRefs: ['application-creation:decision-point/market-analysis-result'],\n },\n driverSelector: { driverRef: 'meta-workflow:driver/structured-artifact-action', driverVersion: 1 },\n inputProjectionContractSelector: { contractRef: 'application-creation:input-projection/accepted-vision', contractVersion: 1 },\n providerOutputSchemaSelector: { schemaRef: 'saas-specifications:schema/market-snapshot-generation', schemaVersion: 1 },\n normalizationContractSelector: { contractRef: 'saas-specifications:normalizer/market-snapshot-generation', contractVersion: 1 },\n outputContract: {\n schemaVersion: 1,\n outputContractRef: 'application-creation:output-contract/market-snapshot',\n outputContractVersion: 1,\n outputSchemaSelector: { schemaRef: 'saas-specifications:schema/market-snapshot', schemaVersion: 1 },\n contentClass: MetaWorkflow_OutputContentClass.STRUCTURED_RECORD,\n cardinality: MetaWorkflow_OutputContractCardinality.ONE,\n canonicalSerializationRef: 'meta-workflow:canonicalization/wildo-json',\n canonicalSerializationVersion: 1,\n validatorContractSelector: { contractRef: 'saas-specifications:validator/market-snapshot', contractVersion: 1 },\n acceptedArtifactClassificationRefs: ['application-creation:artifact-classification/candidate-specification-family-snapshot'],\n invalidOutputDisposition: MetaWorkflow_FailureDisposition.FAIL_BINDING,\n },\n outputSetCommitment: MetaWorkflow_StructuredArtifactOutputSetCommitment.ATOMIC,\n requiredLifecycleFacets: [],\n requiredFailureDispositions: [MetaWorkflow_FailureDisposition.FAIL_BINDING, MetaWorkflow_FailureDisposition.REQUEST_INPUT, MetaWorkflow_FailureDisposition.RETRY_NEW_BINDING],\n} satisfies MetaWorkflowStructuredArtifactActionSource;\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/market-analysis',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/market-analysis',\n protocolVersion: 1,\n promptAssemblyStrategy: MetaWorkflow_EvaluationPromptAssemblyStrategy.CANONICAL_PROTOCOL_EVIDENCE_V1,\n aggregationStrategy: MetaWorkflow_EvaluationAggregationStrategy.WORST_VERDICT_PRECEDENCE_V1,\n verdictPrecedence: [MetaWorkflow_EvaluationVerdict.GAP, MetaWorkflow_EvaluationVerdict.INDETERMINATE, MetaWorkflow_EvaluationVerdict.CONCERN, MetaWorkflow_EvaluationVerdict.PASS],\n aggregationPolicyRef: 'application-creation:aggregation/worst-market-analysis-verdict',\n criteria: [{\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/market-evidence-and-vision-coherence',\n // v2 (#2498): the category answers to what the creator said the product is, and a reframe is marked, never silent.\n criterionVersion: 2,\n instruction: 'Assess whether the validated market graph is meaningfully grounded in accepted vision and sealed research evidence, distinguishes facts from hypotheses, and is coherent enough for current-horizon requirements and capability work. Then check the category against what the creator stated, when it is in your evidence: it keeps every workflow stage they named, puts nothing they excluded at its centre, and a category naming a different kind of product from theirs carries a category note starting \"Reframe:\". A dropped stage, a centred exclusion, or an unmarked reframe is a GAP. Do not reward exhaustive taxonomy when the targeting or evidence basis is weak.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/market-evidence-and-vision-coherence',\n requirementVersion: 2,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/accepted-vision-research-and-market-candidate',\n minCount: 2,\n maxCount: 3,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-market-input-and-candidate',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-action-binding',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The market graph is valid, evidence-aware and coherent with the accepted vision.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The graph is usable but material targeting or evidence uncertainty is explicitly unresolved.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'The market graph materially contradicts the vision, lacks a usable target, presents unsupported claims as truth, or reframes the product the creator stated without marking it.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'Accepted vision, research evidence or candidate output is absent, stale or insufficient.',\n },\n }],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/market-analysis',\n policyVersion: 1,\n admissibleEvaluatorSelectors: [{ evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 }],\n defaultEvaluatorSelector: { evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 },\n outputContractSelector: { outputContractRef: 'meta-workflow:output-contract/structured-semantic-evaluation-candidate', outputContractVersion: 1 },\n fallbackPolicyRef: 'application-creation:evaluator-policy/fail-closed',\n escalationPolicyRef: 'application-creation:evaluator-policy/request-explicit-review',\n maximumAttempts: 2,\n timeoutPolicyRef: 'application-creation:evaluator-policy/bounded-semantic-evaluation',\n budgetPolicyRef: 'application-creation:evaluator-policy/current-work-cycle-budget',\n selectionPolicyRef: 'application-creation:evaluator-policy/scoped-risk-and-evidence',\n },\n decisionPointDefinition: {\n schemaVersion: 1,\n decisionPointRef: 'application-creation:decision-point/market-analysis-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/market-snapshot-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/market-snapshot-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/market-definition-change',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/market-analysis-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-market-analysis-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{ hardFloorRef: 'application-creation:hard-floor/market-snapshot-valid', evidenceRequirementRefs: ['application-creation:evidence-requirement/market-evidence-and-vision-coherence'] }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/market-analysis-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-market-snapshot',\n riskClassRef: 'application-creation:risk/market-accepted-family-mutation',\n decisionModePolicyRef: 'application-creation:authority-policy/explicit-operator-confirmation',\n assurancePolicyRef: 'application-creation:authority-policy/local-single-operator',\n channelPolicyRef: 'application-creation:authority-policy/interface-relay',\n principalPolicyRef: null,\n requiredDecisionMode: MetaWorkflow_AuthorityDecisionMode.EXPLICIT_OPERATOR_CONFIRMATION,\n minimumAssurance: MetaWorkflow_AuthorityAssuranceClass.LOCAL_OS_SESSION,\n admittedChannels: [MetaWorkflow_AuthorityInteractionChannel.INTERFACE_RELAY],\n requiredEvidenceRequirementRefs: ['application-creation:evidence-requirement/market-evidence-and-vision-coherence'],\n expiryPolicyRef: 'application-creation:authority-expiry/current-interface-session',\n noncePolicyRef: 'application-creation:authority-nonce/random-per-request',\n hardFloorPosture: MetaWorkflow_HardFloorPosture.NON_WAIVABLE,\n hardFloorOverrideAllowed: false,\n },\n continuationPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:continuation-policy/market-analysis',\n policyVersion: 1,\n mappings: [\n { decisionConsequence: MetaWorkflow_DecisionConsequence.CONTINUE, action: MetaWorkflow_ContinuationAction.CONTINUE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REVISE, action: MetaWorkflow_ContinuationAction.REVISE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE, action: MetaWorkflow_ContinuationAction.REQUEST_EVIDENCE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY, action: MetaWorkflow_ContinuationAction.REQUEST_AUTHORITY },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.BLOCK, action: MetaWorkflow_ContinuationAction.BLOCK },\n ],\n maximumRevisionAttempts: 3,\n maximumEvidenceRequests: 2,\n maximumAuthorityReviews: 1,\n fallbackAction: MetaWorkflow_ContinuationAction.BLOCK,\n },\n} satisfies MetaWorkflowEvaluationTreatmentSource;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.phase-gate/playbook.definition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,EAC7B,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAEnB,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiD9B,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6VW,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/top_down.phase-gate/playbook.definition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,EAC7B,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAEnB,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiD9B,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqWW,CAAC"}
@@ -98,8 +98,16 @@ export const evaluationTreatmentSource = {
98
98
  {
99
99
  schemaVersion: 1,
100
100
  criterionRef: 'application-creation:criterion/compliance-presence',
101
- criterionVersion: 1,
102
- instruction: 'Determine whether a product handling regulated or sensitive data declares at least one applicable compliance constraint. Do not invent regulation applicability; report indeterminate when the accepted evidence does not establish the data or sector posture.',
101
+ criterionVersion: 2,
102
+ instruction: "Determine whether the DEFINITION of a product handling regulated or sensitive data names its compliance seam: a compliance constraint the creator stated on the vision, or a compliance non-functional requirement. The regimes research establishes are not part of the definition — the compliance lane records them in its own `compliance-posture` family — so do not look for them here, and do not invent regulation applicability; report indeterminate when the accepted evidence does not establish the data or sector posture.",
103
+ /*
104
+ * WHAT A GAP MEANS, since #3362. It used to be cleared by the compliance posture landing on the vision; the
105
+ * posture now has its own family, which this gate deliberately does not read (reading it would re-open a
106
+ * definition leaf on every posture landing, which #3362 removed). So a GAP is a statement about the
107
+ * definition alone, and the root's `reopenOnVerdict` reads it as the signal to run the compliance lane. It
108
+ * fires once per settlement of the definition lane, and the compliance lane it re-opens is a no-op once its
109
+ * leaves have landed, so it cannot loop.
110
+ */
103
111
  /*
104
112
  * DELIBERATELY UNDECLARED, and the reason belongs beside the four that are declared (#1423).
105
113
  *
@@ -128,9 +136,9 @@ export const evaluationTreatmentSource = {
128
136
  aggregationPolicyRef: null,
129
137
  }],
130
138
  verdictGuidance: {
131
- [MetaWorkflow_EvaluationVerdict.PASS]: 'The evidence establishes either no regulated-data trigger or an applicable declared compliance constraint.',
132
- [MetaWorkflow_EvaluationVerdict.CONCERN]: 'A compliance constraint exists, but its applicability or coverage is weakly established.',
133
- [MetaWorkflow_EvaluationVerdict.GAP]: 'A regulated-data trigger is established and no applicable compliance constraint is declared.',
139
+ [MetaWorkflow_EvaluationVerdict.PASS]: 'The evidence establishes either no regulated-data trigger, or a compliance constraint the creator stated or a compliance requirement.',
140
+ [MetaWorkflow_EvaluationVerdict.CONCERN]: 'A compliance constraint or requirement exists, but its applicability or coverage is weakly established.',
141
+ [MetaWorkflow_EvaluationVerdict.GAP]: 'A regulated-data trigger is established and the definition names no compliance constraint or requirement: the compliance lane is the one to research and record the regimes.',
134
142
  [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The evidence cannot establish the regulated-data trigger or the applicable constraint posture.',
135
143
  },
136
144
  },
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.phase-gate/playbook.definition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACpC,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port {\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_HardFloorPosture,\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_PredicateKind,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_ContextSource,\n MetaWorkflow_InputRender,\n MetaWorkflow_Phase,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'top_down.phase-gate',\n version: '0.3.0',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Assess whether the validated top-down definition set is cross-artifact coherent enough for the current horizon. Deterministic family validation remains a non-bypassable eligibility floor; this playbook contributes an advisory semantic evaluation and never mutates application truth.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'market-snapshot' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'requirements' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'roadmap' } },\n ],\n inputs: [\n { family: 'vision-brief' },\n { family: 'market-snapshot' },\n { family: 'requirements' },\n { family: 'roadmap' },\n { family: 'feature-drafts' },\n // An INPUT, deliberately not a precondition: the gate should SEE the commercial intent when it\n // exists, and must not become ineligible for every application that has not sketched one.\n { family: 'business-model' },\n // INPUTS, not preconditions, for the same reason: an application with no brand yet is not incoherent.\n // When there IS a brand, its name's screening is part of what the definition promises.\n { family: 'brand-brief', render: MetaWorkflow_InputRender.MAP },\n { family: 'brand-name-screening' },\n // Where a deliberate name decision (kept despite a conflict, screening incomplete) must be recorded.\n { family: 'risk-register' },\n ],\n outputs: [],\n method: {\n /*\n * This gate exists to assess whether the top-down definition set is cross-artifact coherent, and\n * the coverage and dangling-reference halves of that are SET OPERATIONS over refs — computed\n * exactly and for free. Asking a model to re-derive them from five families is asking it to hold\n * every ref from five documents at once and compare them by eye: worse, slower, and already done.\n * The arithmetic goes IN so the model judges what arithmetic cannot — whether an uncovered\n * criterion is a deliberate deferral or an omission, and whether the cut is defensible.\n */\n contextSources: [MetaWorkflow_ContextSource.COHERENCE_REPORT],\n skillRefs: [],\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: {\n maxRuns: 3,\n },\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/top-down-phase-gate',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/top-down-phase-gate',\n protocolVersion: 1,\n promptAssemblyStrategy: MetaWorkflow_EvaluationPromptAssemblyStrategy.CANONICAL_PROTOCOL_EVIDENCE_V1,\n aggregationStrategy: MetaWorkflow_EvaluationAggregationStrategy.WORST_VERDICT_PRECEDENCE_V1,\n verdictPrecedence: [\n MetaWorkflow_EvaluationVerdict.GAP,\n MetaWorkflow_EvaluationVerdict.INDETERMINATE,\n MetaWorkflow_EvaluationVerdict.CONCERN,\n MetaWorkflow_EvaluationVerdict.PASS,\n ],\n aggregationPolicyRef: 'application-creation:aggregation/worst-top-down-coherence-verdict',\n criteria: [\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/capability-completeness',\n criterionVersion: 1,\n instruction:\n 'Determine whether every current-horizon market benefit is connected to at least one resolvable delivering feature. Treat an unwired benefit as a material gap; do not infer a connection from thematic similarity alone.',\n // Benefits and the features that deliver them, and nothing else: this criterion rules on one\n // wiring, and the requirements, the roadmap and the vision are not evidence about it (#1423).\n assessesAspects: ['market.benefit', 'feature-drafts.draft'],\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/capability-completeness',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/market-capability-wiring',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/all-current-horizon-benefits',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every current-horizon benefit has at least one resolvable delivering feature.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'All benefits are wired, but one or more connections are weak, indirect, or insufficiently explained.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one current-horizon benefit has no resolvable delivering feature.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The accepted evidence cannot establish the benefit-to-feature wiring completely.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/compliance-presence',\n criterionVersion: 1,\n instruction:\n 'Determine whether a product handling regulated or sensitive data declares at least one applicable compliance constraint. Do not invent regulation applicability; report indeterminate when the accepted evidence does not establish the data or sector posture.',\n /*\n * DELIBERATELY UNDECLARED, and the reason belongs beside the four that are declared (#1423).\n *\n * Its INDETERMINATE guidance is \"the accepted evidence does not establish the data or sector\n * posture\" — a judgement about the WHOLE accepted set, which nobody can narrow in advance\n * without deciding for it where a sector posture may be visible. Narrowing this one would\n * turn the author's guess into the criterion's blind spot.\n *\n * It also keeps the shared artifacts section alive, which is what carries `business-model`:\n * the gate declares it as an input so the commercial intent is SEEN, and no criterion\n * assesses it. A treatment where every criterion names a slice would drop it silently.\n */\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/compliance-presence',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/vision-compliance',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/regulated-data-and-compliance-constraints',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The evidence establishes either no regulated-data trigger or an applicable declared compliance constraint.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'A compliance constraint exists, but its applicability or coverage is weakly established.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'A regulated-data trigger is established and no applicable compliance constraint is declared.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The evidence cannot establish the regulated-data trigger or the applicable constraint posture.',\n },\n },\n /*\n * #2420. On app-creation-test-005 the gate passed with no business model and no brand: the brand criterion read\n * \"no brand-name finding\" as \"the line carries no brand\", and no criterion looked at the business model. The\n * runtime now holds the gate while either step can still run; what this criterion sees is the step that cannot\n * (its interview unanswered), which the coherence report computes as a definition-*-missing finding. Read from the\n * report alone, so `assessesAspects` is deliberately undeclared: the families in question are, by definition,\n * absent.\n */\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/definition-completeness',\n criterionVersion: 1,\n instruction:\n \"Determine whether the definition holds every family the application's declared line carries, reading the coherence report's definition findings — they are computed, not judged. A business model (definition-business-model-missing) or a brand brief (definition-brand-brief-missing) the line carries that has not landed is a gap: the definition is not finished, whatever the other families say, and the finding names the step to run (or the interview to answer). A family the line declares not applicable is never reported and is not a gap. Do not infer a missing family from anything other than these findings.\",\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/definition-completeness',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/line-carried-families',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/coherence-report-definition-findings',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The coherence report carries no definition-*-missing finding: every family the declared line carries has landed or is declared not applicable.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Not used: a family the line carries is either on record or missing.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'The coherence report names a business model or a brand brief the declared line carries that has not landed.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The coherence report is not in evidence, so which families have landed cannot be read.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/brand-name-screening-standing',\n criterionVersion: 3,\n instruction:\n \"Determine where the product's NAME stands, reading the coherence report's brand-name findings first — they are computed, not judged. On a line that carries a brand, a missing brand-name screening (brand-name-screening-missing) or a brand name no screening covers (brand-name-not-screened), or a conflict nobody chose to keep (brand-name-conflict-unacknowledged), is a gap in the definition: the brand identity's name question cannot be answered, or the name was never checked. A name chosen with the screening incomplete, with no register read at all (brand-name-no-register-read), or kept despite a conflict is a deliberate, recorded decision that must be visible — in the risk register, as an entry derived from the brand-name-trademark-standing signal, and in the launch list as a brand name not cleared — not a failure. Fewer than three offerable proposals, a creator-listed name the screening does not carry, a screening that read no register for any name (brand-name-screening-read-nothing), or a place the application declares it operates in that the screening does not list (brand-name-operating-jurisdiction-not-screened), is a concern. A line with no brand (no brand-name finding and no definition-brand-brief-missing finding is reported for it) has nothing to assess; a line that carries a brand whose brief has not landed (definition-brand-brief-missing) is assessed by the definition-completeness criterion, never passed here as a line with no brand.\",\n assessesAspects: ['brand.name', 'brand-name-screening.candidate'],\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/brand-name-screening-standing',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/brand-and-name-screening',\n minCount: 1,\n maxCount: 2,\n coveragePolicyRef: 'application-creation:evidence-policy/brand-name-and-its-screening',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The line carries no brand, or the brand name is a screened candidate whose screening is complete and clear.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The brand name was chosen with the screening incomplete or kept despite a conflict and the risk register carries it, or the screening offers fewer than three proposals or misses a name the creator listed.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'On a line with a brand, no screening is on record or the brand name was never screened; or a name kept despite a conflict is recorded nowhere, the risk register included.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The coherence report is not in evidence, so the brand name\\'s standing cannot be read.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/positioning-icp-coherence',\n criterionVersion: 1,\n instruction:\n 'Determine whether positioning pillars address the declared core ICPs without centring an anti-target segment. Preserve the authored ICP classifications and do not silently reclassify a segment.',\n // The ICP classifications are the thing it must NOT silently reclassify, so they are exactly\n // what it is shown — beside the pillars it weighs them against.\n assessesAspects: ['market.icp', 'market.positioning'],\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/positioning-icp-coherence',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/market-positioning',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/core-and-anti-target-icps',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Positioning addresses the core ICPs and does not centre an anti-target segment.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Positioning is broadly coherent but under-serves a core ICP or approaches an anti-target boundary.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'Positioning ignores the core ICPs or explicitly centres an anti-target segment.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The accepted evidence cannot connect positioning pillars to the classified ICP set.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/requirement-coverage',\n criterionVersion: 1,\n instruction:\n 'Determine whether every current-horizon functional requirement is delivered by a roadmap phase or explicitly deferred in accepted roadmap intent. Do not treat absence as deliberate deferral.',\n // Functional only: the non-functional requirements are not what this criterion counts, and a\n // judge shown both has to remember which half it was asked about.\n assessesAspects: ['requirements.functional', 'roadmap.phase'],\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/requirement-coverage',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/requirements-roadmap',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/all-current-horizon-functional-requirements',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every current-horizon functional requirement is delivered or explicitly deferred.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Coverage is complete, but one or more deferrals are weakly justified or difficult to trace.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one functional requirement is neither delivered nor explicitly deferred.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The accepted evidence cannot establish complete requirement-to-roadmap accounting.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/success-criterion-coverage',\n criterionVersion: 1,\n instruction:\n 'Determine whether every current-horizon vision success criterion is delivered by at least one roadmap phase. Keep success criteria distinct from implementation tasks or generic aspirations.',\n // The same roadmap as the criterion above, against a different half of the vision — two\n // declarations, two slices, and the shared family is rendered once per distinct selection.\n assessesAspects: ['vision.success-criterion', 'roadmap.phase'],\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/success-criterion-coverage',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/vision-roadmap',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/all-current-horizon-success-criteria',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every current-horizon success criterion is delivered by at least one roadmap phase.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'All criteria are covered, but one or more delivery links are weak or overly indirect.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one current-horizon success criterion is not delivered by any roadmap phase.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The accepted evidence cannot establish complete success-criterion-to-roadmap coverage.',\n },\n },\n ],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/top-down-phase-gate',\n policyVersion: 1,\n admissibleEvaluatorSelectors: [{\n evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence',\n evaluatorVersion: 1,\n }],\n defaultEvaluatorSelector: {\n evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence',\n evaluatorVersion: 1,\n },\n outputContractSelector: {\n outputContractRef: 'meta-workflow:output-contract/structured-semantic-evaluation-candidate',\n outputContractVersion: 1,\n },\n fallbackPolicyRef: 'application-creation:evaluator-policy/fail-closed',\n escalationPolicyRef: 'application-creation:evaluator-policy/request-explicit-review',\n maximumAttempts: 2,\n timeoutPolicyRef: 'application-creation:evaluator-policy/bounded-semantic-evaluation',\n budgetPolicyRef: 'application-creation:evaluator-policy/current-work-cycle-budget',\n selectionPolicyRef: 'application-creation:evaluator-policy/scoped-risk-and-evidence',\n },\n decisionPointDefinition: {\n schemaVersion: 1,\n decisionPointRef: 'application-creation:decision-point/top-down-phase-gate',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/top-down-definition-set-valid'],\n hardFloorRefs: ['application-creation:hard-floor/required-family-validity'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/current-horizon-transition',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/top-down-phase-gate',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-top-down-coherence-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{\n hardFloorRef: 'application-creation:hard-floor/required-family-validity',\n evidenceRequirementRefs: [\n 'application-creation:evidence-requirement/capability-completeness',\n 'application-creation:evidence-requirement/compliance-presence',\n 'application-creation:evidence-requirement/positioning-icp-coherence',\n 'application-creation:evidence-requirement/requirement-coverage',\n 'application-creation:evidence-requirement/success-criterion-coverage',\n ],\n }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/top-down-to-bottom-up-transition',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/journey-phase-transition',\n riskClassRef: 'application-creation:risk/bootstrap-non-regulated-phase-transition',\n decisionModePolicyRef: 'application-creation:authority-policy/explicit-operator-confirmation',\n assurancePolicyRef: 'application-creation:authority-policy/local-single-operator',\n channelPolicyRef: 'application-creation:authority-policy/interface-relay',\n principalPolicyRef: null,\n requiredDecisionMode: MetaWorkflow_AuthorityDecisionMode.EXPLICIT_OPERATOR_CONFIRMATION,\n minimumAssurance: MetaWorkflow_AuthorityAssuranceClass.LOCAL_OS_SESSION,\n admittedChannels: [MetaWorkflow_AuthorityInteractionChannel.INTERFACE_RELAY],\n requiredEvidenceRequirementRefs: [\n 'application-creation:evidence-requirement/capability-completeness',\n 'application-creation:evidence-requirement/compliance-presence',\n 'application-creation:evidence-requirement/positioning-icp-coherence',\n 'application-creation:evidence-requirement/requirement-coverage',\n 'application-creation:evidence-requirement/success-criterion-coverage',\n ],\n expiryPolicyRef: 'application-creation:authority-expiry/current-interface-session',\n noncePolicyRef: 'application-creation:authority-nonce/random-per-request',\n hardFloorPosture: MetaWorkflow_HardFloorPosture.NON_WAIVABLE,\n hardFloorOverrideAllowed: false,\n },\n continuationPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:continuation-policy/top-down-phase-gate',\n policyVersion: 1,\n mappings: [\n { decisionConsequence: MetaWorkflow_DecisionConsequence.CONTINUE, action: MetaWorkflow_ContinuationAction.CONTINUE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REVISE, action: MetaWorkflow_ContinuationAction.REVISE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE, action: MetaWorkflow_ContinuationAction.REQUEST_EVIDENCE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY, action: MetaWorkflow_ContinuationAction.REQUEST_AUTHORITY },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.BLOCK, action: MetaWorkflow_ContinuationAction.BLOCK },\n ],\n maximumRevisionAttempts: 3,\n maximumEvidenceRequests: 2,\n maximumAuthorityReviews: 1,\n fallbackAction: MetaWorkflow_ContinuationAction.BLOCK,\n },\n} satisfies MetaWorkflowEvaluationTreatmentSource;\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/top_down.phase-gate/playbook.definition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,EAC7B,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,GAEnB,MAAM,oDAAoD,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,qBAAqB;IAC1B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,QAAQ;IAClC,MAAM,EACJ,4RAA4R;IAC9R,aAAa,EAAE;QACb,EAAE,IAAI,EAAE,0B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S,EAAE,8DAA8D;QACzE,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE;YACR,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,+BAA+B,CAAC,QAAQ,EAAE;YACpH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,MAAM,EAAE,MAAM,EAAE,+BAA+B,CAAC,MAAM,EAAE;YAChH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,gBAAgB,EAAE,MAAM,EAAE,+BAA+B,CAAC,gBAAgB,EAAE;YACpI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,iBAAiB,EAAE,MAAM,EAAE,+BAA+B,CAAC,iBAAiB,EAAE;YACtI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,KAAK,EAAE,MAAM,EAAE,+BAA+B,CAAC,KAAK,EAAE;SAC/G;QACD,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import type { MetaWorkflowEvaluationTreatmentSource } from '@wildo-ai/saas-backend-lib/meta-workflow-runtime';\nimport {\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_HardFloorPosture,\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_PredicateKind,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_ContextSource,\n MetaWorkflow_InputRender,\n MetaWorkflow_Phase,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'top_down.phase-gate',\n version: '0.3.0',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Assess whether the validated top-down definition set is cross-artifact coherent enough for the current horizon. Deterministic family validation remains a non-bypassable eligibility floor; this playbook contributes an advisory semantic evaluation and never mutates application truth.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'market-snapshot' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'requirements' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'roadmap' } },\n ],\n inputs: [\n { family: 'vision-brief' },\n { family: 'market-snapshot' },\n { family: 'requirements' },\n { family: 'roadmap' },\n { family: 'feature-drafts' },\n // An INPUT, deliberately not a precondition: the gate should SEE the commercial intent when it\n // exists, and must not become ineligible for every application that has not sketched one.\n { family: 'business-model' },\n // INPUTS, not preconditions, for the same reason: an application with no brand yet is not incoherent.\n // When there IS a brand, its name's screening is part of what the definition promises.\n { family: 'brand-brief', render: MetaWorkflow_InputRender.MAP },\n { family: 'brand-name-screening' },\n // Where a deliberate name decision (kept despite a conflict, screening incomplete) must be recorded.\n { family: 'risk-register' },\n ],\n outputs: [],\n method: {\n /*\n * This gate exists to assess whether the top-down definition set is cross-artifact coherent, and\n * the coverage and dangling-reference halves of that are SET OPERATIONS over refs — computed\n * exactly and for free. Asking a model to re-derive them from five families is asking it to hold\n * every ref from five documents at once and compare them by eye: worse, slower, and already done.\n * The arithmetic goes IN so the model judges what arithmetic cannot — whether an uncovered\n * criterion is a deliberate deferral or an omission, and whether the cut is defensible.\n */\n contextSources: [MetaWorkflow_ContextSource.COHERENCE_REPORT],\n skillRefs: [],\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: {\n maxRuns: 3,\n },\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/top-down-phase-gate',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/top-down-phase-gate',\n protocolVersion: 1,\n promptAssemblyStrategy: MetaWorkflow_EvaluationPromptAssemblyStrategy.CANONICAL_PROTOCOL_EVIDENCE_V1,\n aggregationStrategy: MetaWorkflow_EvaluationAggregationStrategy.WORST_VERDICT_PRECEDENCE_V1,\n verdictPrecedence: [\n MetaWorkflow_EvaluationVerdict.GAP,\n MetaWorkflow_EvaluationVerdict.INDETERMINATE,\n MetaWorkflow_EvaluationVerdict.CONCERN,\n MetaWorkflow_EvaluationVerdict.PASS,\n ],\n aggregationPolicyRef: 'application-creation:aggregation/worst-top-down-coherence-verdict',\n criteria: [\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/capability-completeness',\n criterionVersion: 1,\n instruction:\n 'Determine whether every current-horizon market benefit is connected to at least one resolvable delivering feature. Treat an unwired benefit as a material gap; do not infer a connection from thematic similarity alone.',\n // Benefits and the features that deliver them, and nothing else: this criterion rules on one\n // wiring, and the requirements, the roadmap and the vision are not evidence about it (#1423).\n assessesAspects: ['market.benefit', 'feature-drafts.draft'],\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/capability-completeness',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/market-capability-wiring',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/all-current-horizon-benefits',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every current-horizon benefit has at least one resolvable delivering feature.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'All benefits are wired, but one or more connections are weak, indirect, or insufficiently explained.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one current-horizon benefit has no resolvable delivering feature.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The accepted evidence cannot establish the benefit-to-feature wiring completely.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/compliance-presence',\n criterionVersion: 2,\n instruction:\n \"Determine whether the DEFINITION of a product handling regulated or sensitive data names its compliance seam: a compliance constraint the creator stated on the vision, or a compliance non-functional requirement. The regimes research establishes are not part of the definition — the compliance lane records them in its own `compliance-posture` family — so do not look for them here, and do not invent regulation applicability; report indeterminate when the accepted evidence does not establish the data or sector posture.\",\n /*\n * WHAT A GAP MEANS, since #3362. It used to be cleared by the compliance posture landing on the vision; the\n * posture now has its own family, which this gate deliberately does not read (reading it would re-open a\n * definition leaf on every posture landing, which #3362 removed). So a GAP is a statement about the\n * definition alone, and the root's `reopenOnVerdict` reads it as the signal to run the compliance lane. It\n * fires once per settlement of the definition lane, and the compliance lane it re-opens is a no-op once its\n * leaves have landed, so it cannot loop.\n */\n /*\n * DELIBERATELY UNDECLARED, and the reason belongs beside the four that are declared (#1423).\n *\n * Its INDETERMINATE guidance is \"the accepted evidence does not establish the data or sector\n * posture\" — a judgement about the WHOLE accepted set, which nobody can narrow in advance\n * without deciding for it where a sector posture may be visible. Narrowing this one would\n * turn the author's guess into the criterion's blind spot.\n *\n * It also keeps the shared artifacts section alive, which is what carries `business-model`:\n * the gate declares it as an input so the commercial intent is SEEN, and no criterion\n * assesses it. A treatment where every criterion names a slice would drop it silently.\n */\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/compliance-presence',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/vision-compliance',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/regulated-data-and-compliance-constraints',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The evidence establishes either no regulated-data trigger, or a compliance constraint the creator stated or a compliance requirement.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'A compliance constraint or requirement exists, but its applicability or coverage is weakly established.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'A regulated-data trigger is established and the definition names no compliance constraint or requirement: the compliance lane is the one to research and record the regimes.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The evidence cannot establish the regulated-data trigger or the applicable constraint posture.',\n },\n },\n /*\n * #2420. On app-creation-test-005 the gate passed with no business model and no brand: the brand criterion read\n * \"no brand-name finding\" as \"the line carries no brand\", and no criterion looked at the business model. The\n * runtime now holds the gate while either step can still run; what this criterion sees is the step that cannot\n * (its interview unanswered), which the coherence report computes as a definition-*-missing finding. Read from the\n * report alone, so `assessesAspects` is deliberately undeclared: the families in question are, by definition,\n * absent.\n */\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/definition-completeness',\n criterionVersion: 1,\n instruction:\n \"Determine whether the definition holds every family the application's declared line carries, reading the coherence report's definition findings — they are computed, not judged. A business model (definition-business-model-missing) or a brand brief (definition-brand-brief-missing) the line carries that has not landed is a gap: the definition is not finished, whatever the other families say, and the finding names the step to run (or the interview to answer). A family the line declares not applicable is never reported and is not a gap. Do not infer a missing family from anything other than these findings.\",\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/definition-completeness',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/line-carried-families',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/coherence-report-definition-findings',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The coherence report carries no definition-*-missing finding: every family the declared line carries has landed or is declared not applicable.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Not used: a family the line carries is either on record or missing.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'The coherence report names a business model or a brand brief the declared line carries that has not landed.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The coherence report is not in evidence, so which families have landed cannot be read.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/brand-name-screening-standing',\n criterionVersion: 3,\n instruction:\n \"Determine where the product's NAME stands, reading the coherence report's brand-name findings first — they are computed, not judged. On a line that carries a brand, a missing brand-name screening (brand-name-screening-missing) or a brand name no screening covers (brand-name-not-screened), or a conflict nobody chose to keep (brand-name-conflict-unacknowledged), is a gap in the definition: the brand identity's name question cannot be answered, or the name was never checked. A name chosen with the screening incomplete, with no register read at all (brand-name-no-register-read), or kept despite a conflict is a deliberate, recorded decision that must be visible — in the risk register, as an entry derived from the brand-name-trademark-standing signal, and in the launch list as a brand name not cleared — not a failure. Fewer than three offerable proposals, a creator-listed name the screening does not carry, a screening that read no register for any name (brand-name-screening-read-nothing), or a place the application declares it operates in that the screening does not list (brand-name-operating-jurisdiction-not-screened), is a concern. A line with no brand (no brand-name finding and no definition-brand-brief-missing finding is reported for it) has nothing to assess; a line that carries a brand whose brief has not landed (definition-brand-brief-missing) is assessed by the definition-completeness criterion, never passed here as a line with no brand.\",\n assessesAspects: ['brand.name', 'brand-name-screening.candidate'],\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/brand-name-screening-standing',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/brand-and-name-screening',\n minCount: 1,\n maxCount: 2,\n coveragePolicyRef: 'application-creation:evidence-policy/brand-name-and-its-screening',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The line carries no brand, or the brand name is a screened candidate whose screening is complete and clear.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The brand name was chosen with the screening incomplete or kept despite a conflict and the risk register carries it, or the screening offers fewer than three proposals or misses a name the creator listed.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'On a line with a brand, no screening is on record or the brand name was never screened; or a name kept despite a conflict is recorded nowhere, the risk register included.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The coherence report is not in evidence, so the brand name\\'s standing cannot be read.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/positioning-icp-coherence',\n criterionVersion: 1,\n instruction:\n 'Determine whether positioning pillars address the declared core ICPs without centring an anti-target segment. Preserve the authored ICP classifications and do not silently reclassify a segment.',\n // The ICP classifications are the thing it must NOT silently reclassify, so they are exactly\n // what it is shown — beside the pillars it weighs them against.\n assessesAspects: ['market.icp', 'market.positioning'],\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/positioning-icp-coherence',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/market-positioning',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/core-and-anti-target-icps',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Positioning addresses the core ICPs and does not centre an anti-target segment.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Positioning is broadly coherent but under-serves a core ICP or approaches an anti-target boundary.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'Positioning ignores the core ICPs or explicitly centres an anti-target segment.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The accepted evidence cannot connect positioning pillars to the classified ICP set.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/requirement-coverage',\n criterionVersion: 1,\n instruction:\n 'Determine whether every current-horizon functional requirement is delivered by a roadmap phase or explicitly deferred in accepted roadmap intent. Do not treat absence as deliberate deferral.',\n // Functional only: the non-functional requirements are not what this criterion counts, and a\n // judge shown both has to remember which half it was asked about.\n assessesAspects: ['requirements.functional', 'roadmap.phase'],\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/requirement-coverage',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/requirements-roadmap',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/all-current-horizon-functional-requirements',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every current-horizon functional requirement is delivered or explicitly deferred.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Coverage is complete, but one or more deferrals are weakly justified or difficult to trace.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one functional requirement is neither delivered nor explicitly deferred.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The accepted evidence cannot establish complete requirement-to-roadmap accounting.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/success-criterion-coverage',\n criterionVersion: 1,\n instruction:\n 'Determine whether every current-horizon vision success criterion is delivered by at least one roadmap phase. Keep success criteria distinct from implementation tasks or generic aspirations.',\n // The same roadmap as the criterion above, against a different half of the vision — two\n // declarations, two slices, and the shared family is rendered once per distinct selection.\n assessesAspects: ['vision.success-criterion', 'roadmap.phase'],\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/success-criterion-coverage',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/vision-roadmap',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/all-current-horizon-success-criteria',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every current-horizon success criterion is delivered by at least one roadmap phase.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'All criteria are covered, but one or more delivery links are weak or overly indirect.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one current-horizon success criterion is not delivered by any roadmap phase.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The accepted evidence cannot establish complete success-criterion-to-roadmap coverage.',\n },\n },\n ],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/top-down-phase-gate',\n policyVersion: 1,\n admissibleEvaluatorSelectors: [{\n evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence',\n evaluatorVersion: 1,\n }],\n defaultEvaluatorSelector: {\n evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence',\n evaluatorVersion: 1,\n },\n outputContractSelector: {\n outputContractRef: 'meta-workflow:output-contract/structured-semantic-evaluation-candidate',\n outputContractVersion: 1,\n },\n fallbackPolicyRef: 'application-creation:evaluator-policy/fail-closed',\n escalationPolicyRef: 'application-creation:evaluator-policy/request-explicit-review',\n maximumAttempts: 2,\n timeoutPolicyRef: 'application-creation:evaluator-policy/bounded-semantic-evaluation',\n budgetPolicyRef: 'application-creation:evaluator-policy/current-work-cycle-budget',\n selectionPolicyRef: 'application-creation:evaluator-policy/scoped-risk-and-evidence',\n },\n decisionPointDefinition: {\n schemaVersion: 1,\n decisionPointRef: 'application-creation:decision-point/top-down-phase-gate',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/top-down-definition-set-valid'],\n hardFloorRefs: ['application-creation:hard-floor/required-family-validity'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/current-horizon-transition',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/top-down-phase-gate',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-top-down-coherence-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{\n hardFloorRef: 'application-creation:hard-floor/required-family-validity',\n evidenceRequirementRefs: [\n 'application-creation:evidence-requirement/capability-completeness',\n 'application-creation:evidence-requirement/compliance-presence',\n 'application-creation:evidence-requirement/positioning-icp-coherence',\n 'application-creation:evidence-requirement/requirement-coverage',\n 'application-creation:evidence-requirement/success-criterion-coverage',\n ],\n }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/top-down-to-bottom-up-transition',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/journey-phase-transition',\n riskClassRef: 'application-creation:risk/bootstrap-non-regulated-phase-transition',\n decisionModePolicyRef: 'application-creation:authority-policy/explicit-operator-confirmation',\n assurancePolicyRef: 'application-creation:authority-policy/local-single-operator',\n channelPolicyRef: 'application-creation:authority-policy/interface-relay',\n principalPolicyRef: null,\n requiredDecisionMode: MetaWorkflow_AuthorityDecisionMode.EXPLICIT_OPERATOR_CONFIRMATION,\n minimumAssurance: MetaWorkflow_AuthorityAssuranceClass.LOCAL_OS_SESSION,\n admittedChannels: [MetaWorkflow_AuthorityInteractionChannel.INTERFACE_RELAY],\n requiredEvidenceRequirementRefs: [\n 'application-creation:evidence-requirement/capability-completeness',\n 'application-creation:evidence-requirement/compliance-presence',\n 'application-creation:evidence-requirement/positioning-icp-coherence',\n 'application-creation:evidence-requirement/requirement-coverage',\n 'application-creation:evidence-requirement/success-criterion-coverage',\n ],\n expiryPolicyRef: 'application-creation:authority-expiry/current-interface-session',\n noncePolicyRef: 'application-creation:authority-nonce/random-per-request',\n hardFloorPosture: MetaWorkflow_HardFloorPosture.NON_WAIVABLE,\n hardFloorOverrideAllowed: false,\n },\n continuationPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:continuation-policy/top-down-phase-gate',\n policyVersion: 1,\n mappings: [\n { decisionConsequence: MetaWorkflow_DecisionConsequence.CONTINUE, action: MetaWorkflow_ContinuationAction.CONTINUE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REVISE, action: MetaWorkflow_ContinuationAction.REVISE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE, action: MetaWorkflow_ContinuationAction.REQUEST_EVIDENCE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY, action: MetaWorkflow_ContinuationAction.REQUEST_AUTHORITY },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.BLOCK, action: MetaWorkflow_ContinuationAction.BLOCK },\n ],\n maximumRevisionAttempts: 3,\n maximumEvidenceRequests: 2,\n maximumAuthorityReviews: 1,\n fallbackAction: MetaWorkflow_ContinuationAction.BLOCK,\n },\n} satisfies MetaWorkflowEvaluationTreatmentSource;\n"]}
@@ -1,4 +1,4 @@
1
- import { MetaWorkflow_AuthorityAssuranceClass, MetaWorkflow_AuthorityDecisionMode, MetaWorkflow_AuthorityInteractionChannel, MetaWorkflow_ContinuationAction, MetaWorkflow_DecisionConsequence, MetaWorkflow_DecisionRuleBoundaryClass, MetaWorkflow_EvaluationAggregationStrategy, MetaWorkflow_EvaluationPromptAssemblyStrategy, MetaWorkflow_EvaluationVerdict, MetaWorkflow_EvidenceRequirementKind, MetaWorkflow_FailureDisposition, MetaWorkflow_HardFloorPosture, MetaWorkflow_OutputContentClass, MetaWorkflow_OutputContractCardinality, MetaWorkflow_StructuredArtifactOutputSetCommitment, MetaWorkflow_ApprovalPolicy, MetaWorkflow_ArtifactIntent, MetaWorkflow_Executor, MetaWorkflow_FailurePolicy, MetaWorkflow_PredicateKind } from '@wildo-ai/saas-models/meta-workflows';
1
+ import { MetaWorkflow_AuthorityAssuranceClass, MetaWorkflow_AuthorityDecisionMode, MetaWorkflow_AuthorityInteractionChannel, MetaWorkflow_ContinuationAction, MetaWorkflow_DecisionConsequence, MetaWorkflow_DecisionRuleBoundaryClass, MetaWorkflow_EvaluationAggregationStrategy, MetaWorkflow_EvaluationPromptAssemblyStrategy, MetaWorkflow_EvaluationVerdict, MetaWorkflow_EvidenceRequirementKind, MetaWorkflow_FailureDisposition, MetaWorkflow_HardFloorPosture, MetaWorkflow_OutputContentClass, MetaWorkflow_OutputContractCardinality, MetaWorkflow_StructuredArtifactOutputSetCommitment, MetaWorkflow_ApprovalPolicy, MetaWorkflow_Executor, MetaWorkflow_FailurePolicy, MetaWorkflow_PredicateKind } from '@wildo-ai/saas-models/meta-workflows';
2
2
  import { MetaWorkflow_ContextSource, MetaWorkflow_Phase } from '@wildo-ai/saas-specifications/application-creation';
3
3
  export declare const playbookDefinition: {
4
4
  ref: string;
@@ -13,10 +13,10 @@ export declare const playbookDefinition: {
13
13
  }[];
14
14
  inputs: ({
15
15
  family: string;
16
- intent?: undefined;
16
+ aspects?: undefined;
17
17
  } | {
18
18
  family: string;
19
- intent: MetaWorkflow_ArtifactIntent.VALUE;
19
+ aspects: string[];
20
20
  })[];
21
21
  outputs: {
22
22
  family: string;
@@ -31,10 +31,6 @@ export declare const playbookDefinition: {
31
31
  approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT;
32
32
  budget: {
33
33
  maxRuns: number;
34
- maxInputTokens: number;
35
- maxOutputTokens: number;
36
- maxModelCalls: number;
37
- maxDurationMs: number;
38
34
  };
39
35
  onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG;
40
36
  };
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.requirements-definition/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,EAClD,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,0BAA0B,EAC1B,kBAAkB,EAEnB,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwD9B,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6EW,CAAC;AAEvD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwKW,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/top_down.requirements-definition/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,EAClD,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,0BAA0B,EAC1B,kBAAkB,EAEnB,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsD9B,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6EW,CAAC;AAEvD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwKW,CAAC"}
@@ -1,8 +1,8 @@
1
- import { MetaWorkflow_AuthorityAssuranceClass, MetaWorkflow_AuthorityDecisionMode, MetaWorkflow_AuthorityInteractionChannel, MetaWorkflow_ContinuationAction, MetaWorkflow_DecisionConsequence, MetaWorkflow_DecisionRuleBoundaryClass, MetaWorkflow_EvaluationAggregationStrategy, MetaWorkflow_EvaluationPromptAssemblyStrategy, MetaWorkflow_EvaluationVerdict, MetaWorkflow_EvidenceRequirementKind, MetaWorkflow_FailureDisposition, MetaWorkflow_HardFloorPosture, MetaWorkflow_OutputContentClass, MetaWorkflow_OutputContractCardinality, MetaWorkflow_StructuredArtifactOutputSetCommitment, MetaWorkflow_ApprovalPolicy, MetaWorkflow_ArtifactIntent, MetaWorkflow_Executor, MetaWorkflow_FailurePolicy, MetaWorkflow_PredicateKind, } from '@wildo-ai/saas-models/meta-workflows';
1
+ import { MetaWorkflow_AuthorityAssuranceClass, MetaWorkflow_AuthorityDecisionMode, MetaWorkflow_AuthorityInteractionChannel, MetaWorkflow_ContinuationAction, MetaWorkflow_DecisionConsequence, MetaWorkflow_DecisionRuleBoundaryClass, MetaWorkflow_EvaluationAggregationStrategy, MetaWorkflow_EvaluationPromptAssemblyStrategy, MetaWorkflow_EvaluationVerdict, MetaWorkflow_EvidenceRequirementKind, MetaWorkflow_FailureDisposition, MetaWorkflow_HardFloorPosture, MetaWorkflow_OutputContentClass, MetaWorkflow_OutputContractCardinality, MetaWorkflow_StructuredArtifactOutputSetCommitment, MetaWorkflow_ApprovalPolicy, MetaWorkflow_Executor, MetaWorkflow_FailurePolicy, MetaWorkflow_PredicateKind, } from '@wildo-ai/saas-models/meta-workflows';
2
2
  import { MetaWorkflow_ContextSource, MetaWorkflow_Phase, } from '@wildo-ai/saas-specifications/application-creation';
3
3
  export const playbookDefinition = {
4
4
  ref: 'top_down.requirements-definition',
5
- version: '0.2.0',
5
+ version: '0.3.0',
6
6
  phase: MetaWorkflow_Phase.TOP_DOWN,
7
7
  intent: 'Derive a validated, current-horizon requirements snapshot from accepted vision and market truth. The provider proposes strict semantic content; the trusted runtime stamps family refs/version and keeps provenance, scope, evidence and authority outside model output.',
8
8
  preconditions: [
@@ -11,7 +11,15 @@ export const playbookDefinition = {
11
11
  ],
12
12
  inputs: [
13
13
  { family: 'vision-brief' },
14
- { family: 'market-snapshot', intent: MetaWorkflow_ArtifactIntent.VALUE },
14
+ /*
15
+ * The slices the method reads (#3204): the ICPs and personas it serves, their jobs, pains and gains, and the
16
+ * category. NOT `market.benefit`, which the VALUE intent also covered: the benefits are derived from the pains and
17
+ * gains by the value proposition and wired to features by the capability map, and the capability map READS the
18
+ * requirements. Reading the benefits made the two stale for each other on every landing: on the resumed reference
19
+ * run 42254997609 the requirements were refreshed because the capability map had re-wired the benefits, which
20
+ * made the capability map a refresh again. The rest of the snapshot reaches the brief as a map.
21
+ */
22
+ { family: 'market-snapshot', aspects: ['market.category', 'market.icp', 'market.persona', 'market.job', 'market.pain', 'market.gain'] },
15
23
  // Its own family: its method refines its own prior output and keeps its refs, so it must be GIVEN that output (#1430). Input, not precondition: a first run, with no prior output, stays eligible.
16
24
  { family: 'requirements' },
17
25
  ],
@@ -37,19 +45,9 @@ export const playbookDefinition = {
37
45
  },
38
46
  executor: MetaWorkflow_Executor.COMPANION_AGENT,
39
47
  approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,
40
- // Generous MVP exploration envelope. `maxRuns` bounds high-level candidate
41
- // iterations; the forthcoming working-ceiling projection may use many
42
- // smaller model calls inside each iteration. These are safety stops against
43
- // loops and pathological inputs, not a normal cost-control posture.
48
+ // `maxRuns` bounds high-level candidate iterations (#1344): a stop against loops, not cost control.
44
49
  budget: {
45
50
  maxRuns: 3,
46
- maxInputTokens: 15_000_000,
47
- maxOutputTokens: 1_000_000,
48
- maxModelCalls: 48,
49
- // One hour in milliseconds. Native playbook definitions are parsed as
50
- // effect-free declarative data, so arithmetic expressions are deliberately
51
- // not part of their authoring language.
52
- maxDurationMs: 3_600_000,
53
51
  },
54
52
  onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,
55
53
  };
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.requirements-definition/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,EAClD,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,0BAA0B,EAC1B,kBAAkB,GAEnB,MAAM,oDAAoD,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,kCAAkC;IACvC,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,QAAQ;IAClC,MAAM,EACJ,0QAA0Q;IAC5Q,aAAa,EAAE;QACb,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;QACzF,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE;KAC7F;IACD,MAAM,EAAE;QACN,EAAE,MAAM,EAAE,cAAc,EAAE;QAC1B,E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;KACtD;CAC8C,CAAC","sourcesContent":["import type {\n MetaWorkflowEvaluationTreatmentSource,\n MetaWorkflowStructuredArtifactActionSource,\n} from '@wildo-ai/saas-backend-lib/meta-workflow-runtime';\nimport {\n MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_FailureDisposition,\n MetaWorkflow_HardFloorPosture,\n MetaWorkflow_OutputContentClass,\n MetaWorkflow_OutputContractCardinality,\n MetaWorkflow_StructuredArtifactOutputSetCommitment,\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_ArtifactIntent,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_PredicateKind,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_ContextSource,\n MetaWorkflow_Phase,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'top_down.requirements-definition',\n version: '0.2.0',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Derive a validated, current-horizon requirements snapshot from accepted vision and market truth. The provider proposes strict semantic content; the trusted runtime stamps family refs/version and keeps provenance, scope, evidence and authority outside model output.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'market-snapshot' } },\n ],\n inputs: [\n { family: 'vision-brief' },\n { family: 'market-snapshot', intent: MetaWorkflow_ArtifactIntent.VALUE },\n // Its own family: its method refines its own prior output and keeps its refs, so it must be GIVEN that output (#1430). Input, not precondition: a first run, with no prior output, stays eligible.\n { family: 'requirements' },\n ],\n outputs: [{\n family: 'requirements',\n schemaRef: 'saas-specifications:RequirementsSnapshot',\n description:\n 'The persisted RequirementsSnapshot normalized from strict RequirementsSnapshotGeneration output. It contains at least one functional requirement unless a separately sealed, evidence-bound exceptional disposition has settled authority.',\n }],\n method: {\n /*\n * What the creator stated in the other interviews (#2498, #2499): data classes, regimes, jurisdictions, the core\n * workflow, user groups, the scope boundary. 005's creator named VAT identifiers, site addresses, two national\n * e-invoicing regimes and four countries, and none of it reached this step. A section, never a gate: the step runs\n * whether or not those interviews were answered.\n *\n * The computed coherence report (#2500): its `high-severity-pains-unanswered` finding is the list of market pains the\n * requirements owe an answer, each with its severity and who feels it, derived by the same function the definition\n * lint uses. The producer answers that list instead of re-deriving it from the market, and the judge checks the\n * answer against the same list.\n */\n contextSources: [MetaWorkflow_ContextSource.CREATOR_STATED_FACTS, MetaWorkflow_ContextSource.COHERENCE_REPORT],\n skillRefs: [],\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n // Generous MVP exploration envelope. `maxRuns` bounds high-level candidate\n // iterations; the forthcoming working-ceiling projection may use many\n // smaller model calls inside each iteration. These are safety stops against\n // loops and pathological inputs, not a normal cost-control posture.\n budget: {\n maxRuns: 3,\n maxInputTokens: 15_000_000,\n maxOutputTokens: 1_000_000,\n maxModelCalls: 48,\n // One hour in milliseconds. Native playbook definitions are parsed as\n // effect-free declarative data, so arithmetic expressions are deliberately\n // not part of their authoring language.\n maxDurationMs: 3_600_000,\n },\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n\nexport const structuredArtifactActionSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:structured-artifact-action/requirements-definition',\n definitionVersion: 1,\n actionDefinition: {\n schemaVersion: 1,\n actionRef: 'application-creation:action/requirements-definition',\n actionVersion: 1,\n intentRef: 'application-creation:intent/derive-current-horizon-requirements',\n inputSelectorRefs: [\n 'application-creation:artifact-selector/accepted-market-snapshot',\n 'application-creation:artifact-selector/accepted-vision-brief',\n ],\n outcomeContractRefs: [\n 'application-creation:output-contract/requirements-snapshot',\n ],\n effectSafetyPolicyRef: 'application-creation:effect-safety/candidate-artifacts-before-acceptance',\n allowedCapabilityClassRefs: [\n 'meta-workflow:capability-class/structured-artifact-generation',\n ],\n requiredCapabilityFacetRefs: [\n 'meta-workflow:capability-facet/atomic-output-set',\n 'meta-workflow:capability-facet/sealed-input-projection',\n 'meta-workflow:capability-facet/strict-provider-schema',\n 'meta-workflow:capability-facet/trusted-normalization',\n ],\n authorityRequirementRef: 'application-creation:authority-requirement/requirements-definition-result',\n budgetPolicyRef: 'application-creation:budget-policy/requirements-definition',\n continuationPolicyRef: 'application-creation:continuation-policy/requirements-definition',\n decisionPointDefinitionRefs: [\n 'application-creation:decision-point/requirements-definition',\n ],\n },\n driverSelector: {\n driverRef: 'meta-workflow:driver/structured-artifact-action',\n driverVersion: 1,\n },\n inputProjectionContractSelector: {\n contractRef: 'application-creation:input-projection/accepted-vision-market',\n contractVersion: 1,\n },\n providerOutputSchemaSelector: {\n schemaRef: 'saas-specifications:schema/requirements-snapshot-generation',\n schemaVersion: 1,\n },\n normalizationContractSelector: {\n contractRef: 'saas-specifications:normalizer/requirements-snapshot-generation',\n contractVersion: 1,\n },\n outputContract: {\n schemaVersion: 1,\n outputContractRef: 'application-creation:output-contract/requirements-snapshot',\n outputContractVersion: 1,\n outputSchemaSelector: {\n schemaRef: 'saas-specifications:schema/requirements-snapshot',\n schemaVersion: 1,\n },\n contentClass: MetaWorkflow_OutputContentClass.STRUCTURED_RECORD,\n cardinality: MetaWorkflow_OutputContractCardinality.ONE,\n canonicalSerializationRef: 'meta-workflow:canonicalization/wildo-json',\n canonicalSerializationVersion: 1,\n validatorContractSelector: {\n contractRef: 'saas-specifications:validator/requirements-snapshot',\n contractVersion: 1,\n },\n acceptedArtifactClassificationRefs: [\n 'application-creation:artifact-classification/candidate-specification-family-snapshot',\n ],\n invalidOutputDisposition: MetaWorkflow_FailureDisposition.FAIL_BINDING,\n },\n outputSetCommitment: MetaWorkflow_StructuredArtifactOutputSetCommitment.ATOMIC,\n requiredLifecycleFacets: [],\n requiredFailureDispositions: [\n MetaWorkflow_FailureDisposition.FAIL_BINDING,\n MetaWorkflow_FailureDisposition.REQUEST_INPUT,\n MetaWorkflow_FailureDisposition.RETRY_NEW_BINDING,\n ],\n} satisfies MetaWorkflowStructuredArtifactActionSource;\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/requirements-definition',\n // v2 (2026-08-19): the horizon-readiness criterion judges the requirements CONTENT of the subject under judgment\n // (plus the sealed hard floor) instead of a deterministic readiness receipt computed on the accepted head.\n definitionVersion: 2,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/requirements-definition',\n protocolVersion: 1,\n promptAssemblyStrategy: MetaWorkflow_EvaluationPromptAssemblyStrategy.CANONICAL_PROTOCOL_EVIDENCE_V1,\n aggregationStrategy: MetaWorkflow_EvaluationAggregationStrategy.WORST_VERDICT_PRECEDENCE_V1,\n verdictPrecedence: [\n MetaWorkflow_EvaluationVerdict.GAP,\n MetaWorkflow_EvaluationVerdict.INDETERMINATE,\n MetaWorkflow_EvaluationVerdict.CONCERN,\n MetaWorkflow_EvaluationVerdict.PASS,\n ],\n aggregationPolicyRef: 'application-creation:aggregation/worst-requirements-definition-verdict',\n criteria: [\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/requirements-horizon-readiness',\n // v3 (#2500): a workflow's criteria name its states and transitions; create/read/edit criteria alone are thin.\n criterionVersion: 3,\n instruction:\n 'Judge whether the requirements under judgment — the working-subject source when one is named, otherwise the accepted current-horizon requirements — give the current horizon a non-vacuous, implementable basis: at least one validated functional requirement with a testable acceptance criterion, or an exact settled exceptional disposition. The sealed hard-floor assessment for this criterion is the deterministic minimum-content finding on that same subject; treat it as the floor, not as the whole judgment. A requirement describing a workflow (quotes, jobs, invoices, orders, tickets) whose criteria only list what can be created, read and edited, naming no state, transition, document, total or number the workflow has, is a CONCERN: the horizon then reads as a database rather than a product. Never infer readiness from prose, model confidence or snapshot parse success, and never judge an empty collection ready.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/requirements-horizon-readiness',\n requirementVersion: 2,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/requirements-current-horizon',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/current-horizon-requirements',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The requirements under judgment carry at least one validated, testable current-horizon functional requirement (or an exact settled exceptional disposition) and the sealed hard floor is satisfied.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The horizon has a basis, but it is thin or its acceptance language is weak enough that downstream scope would be guesswork.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'The requirements under judgment have no functional requirement and no exact settled exceptional disposition, or the sealed hard floor failed.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The current-horizon requirements evidence is absent, malformed, or does not bind the subject under judgment.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/requirements-definition-coherence',\n // v2 (#2499): the creator's stated facts are accepted truth beside the vision and the market, and each must be carried or excluded.\n // v3 (#2500): every high-severity market pain is relieved (painRefs) or excluded, and compliance guards are non-functional.\n criterionVersion: 3,\n instruction:\n 'Assess whether each requirement is traceable to accepted vision or market evidence, or to a fact the creator stated in another interview; states a distinct current-horizon obligation; and carries observable acceptance language where applicable. Then check the creator\\'s stated facts, when they are in your evidence: every data class, named regime, jurisdiction (with its languages), workflow stage, user group and scope boundary bearing on what the product must do is carried by a requirement or listed in excludedStatedFacts with a reason. A stated fact neither carried nor excluded is a GAP. Then check the market\\'s pains: every pain a targeted ICP (CORE or EXPANSION) or one of its personas weighs at severity 7 or more is named in some requirement\\'s painRefs or listed in excludedMarketPains with a reason; one that is neither is a GAP. The coherence report\\'s high-severity-pains-unanswered finding lists them, computed over the accepted requirements. Then check the targeted personas\\' responsibilities: one the product exists to help with that no requirement carries is a GAP; one outside any product\\'s scope needs nothing. A functional acceptance criterion that is a compliance guard (does not claim, is not presented as supported until) instead of a capability is a CONCERN: it belongs in a compliance non-functional requirement. Do not invent missing requirements or silently turn implementation ideas into product obligations.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/requirements-definition-coherence',\n requirementVersion: 2,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/requirements-vision-market',\n minCount: 1,\n // The coherence composite proves the accepted cross-family basis;\n // the direct candidate proves the exact result subject presented to authority.\n maxCount: 2,\n coveragePolicyRef: 'application-creation:evidence-policy/all-current-horizon-requirements',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The requirements are distinct, traceable and sufficiently observable for the current horizon.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The set is usable, but one or more obligations are weakly traced or ambiguously testable.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'A material current-horizon obligation is missing, contradictory, or not testable enough to guide downstream scope, or a fact the creator stated (or a high-severity market pain) is neither carried by a requirement nor explicitly excluded.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'Accepted vision/market evidence is insufficient to assess the requirements set.',\n },\n },\n ],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/requirements-definition',\n policyVersion: 1,\n admissibleEvaluatorSelectors: [{ evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 }],\n defaultEvaluatorSelector: { evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 },\n outputContractSelector: {\n outputContractRef: 'meta-workflow:output-contract/structured-semantic-evaluation-candidate',\n outputContractVersion: 1,\n },\n fallbackPolicyRef: 'application-creation:evaluator-policy/fail-closed',\n escalationPolicyRef: 'application-creation:evaluator-policy/request-explicit-review',\n maximumAttempts: 2,\n timeoutPolicyRef: 'application-creation:evaluator-policy/bounded-semantic-evaluation',\n budgetPolicyRef: 'application-creation:evaluator-policy/current-work-cycle-budget',\n selectionPolicyRef: 'application-creation:evaluator-policy/scoped-risk-and-evidence',\n },\n decisionPointDefinition: {\n schemaVersion: 1,\n decisionPointRef: 'application-creation:decision-point/requirements-definition',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/requirements-snapshot-produced'],\n hardFloorRefs: ['application-creation:hard-floor/requirements-horizon-readiness'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/current-horizon-definition',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/requirements-definition',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-requirements-definition-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{\n hardFloorRef: 'application-creation:hard-floor/requirements-horizon-readiness',\n evidenceRequirementRefs: ['application-creation:evidence-requirement/requirements-horizon-readiness'],\n }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/requirements-definition-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-requirements-snapshot',\n riskClassRef: 'application-creation:risk/requirements-accepted-family-mutation',\n decisionModePolicyRef: 'application-creation:authority-policy/explicit-operator-confirmation',\n assurancePolicyRef: 'application-creation:authority-policy/local-single-operator',\n channelPolicyRef: 'application-creation:authority-policy/interface-relay',\n principalPolicyRef: null,\n requiredDecisionMode: MetaWorkflow_AuthorityDecisionMode.EXPLICIT_OPERATOR_CONFIRMATION,\n minimumAssurance: MetaWorkflow_AuthorityAssuranceClass.LOCAL_OS_SESSION,\n admittedChannels: [MetaWorkflow_AuthorityInteractionChannel.INTERFACE_RELAY],\n requiredEvidenceRequirementRefs: [\n 'application-creation:evidence-requirement/requirements-horizon-readiness',\n 'application-creation:evidence-requirement/requirements-definition-coherence',\n ],\n expiryPolicyRef: 'application-creation:authority-expiry/current-interface-session',\n noncePolicyRef: 'application-creation:authority-nonce/random-per-request',\n hardFloorPosture: MetaWorkflow_HardFloorPosture.NON_WAIVABLE,\n hardFloorOverrideAllowed: false,\n },\n continuationPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:continuation-policy/requirements-definition',\n policyVersion: 1,\n mappings: [\n { decisionConsequence: MetaWorkflow_DecisionConsequence.CONTINUE, action: MetaWorkflow_ContinuationAction.CONTINUE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REVISE, action: MetaWorkflow_ContinuationAction.REVISE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE, action: MetaWorkflow_ContinuationAction.REQUEST_EVIDENCE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY, action: MetaWorkflow_ContinuationAction.REQUEST_AUTHORITY },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.BLOCK, action: MetaWorkflow_ContinuationAction.BLOCK },\n ],\n maximumRevisionAttempts: 3,\n maximumEvidenceRequests: 2,\n maximumAuthorityReviews: 1,\n fallbackAction: MetaWorkflow_ContinuationAction.BLOCK,\n },\n} satisfies MetaWorkflowEvaluationTreatmentSource;\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/top_down.requirements-definition/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,EAClD,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,0BAA0B,EAC1B,kBAAkB,GAEnB,MAAM,oDAAoD,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,kCAAkC;IACvC,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,QAAQ;IAClC,MAAM,EACJ,0QAA0Q;IAC5Q,aAAa,EAAE;QACb,EAAE,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A+B,CAAC,KAAK,EAAE;SAC/G;QACD,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import type {\n MetaWorkflowEvaluationTreatmentSource,\n MetaWorkflowStructuredArtifactActionSource,\n} from '@wildo-ai/saas-backend-lib/meta-workflow-runtime';\nimport {\n MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_FailureDisposition,\n MetaWorkflow_HardFloorPosture,\n MetaWorkflow_OutputContentClass,\n MetaWorkflow_OutputContractCardinality,\n MetaWorkflow_StructuredArtifactOutputSetCommitment,\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_PredicateKind,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_ContextSource,\n MetaWorkflow_Phase,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'top_down.requirements-definition',\n version: '0.3.0',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Derive a validated, current-horizon requirements snapshot from accepted vision and market truth. The provider proposes strict semantic content; the trusted runtime stamps family refs/version and keeps provenance, scope, evidence and authority outside model output.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'market-snapshot' } },\n ],\n inputs: [\n { family: 'vision-brief' },\n /*\n * The slices the method reads (#3204): the ICPs and personas it serves, their jobs, pains and gains, and the\n * category. NOT `market.benefit`, which the VALUE intent also covered: the benefits are derived from the pains and\n * gains by the value proposition and wired to features by the capability map, and the capability map READS the\n * requirements. Reading the benefits made the two stale for each other on every landing: on the resumed reference\n * run 42254997609 the requirements were refreshed because the capability map had re-wired the benefits, which\n * made the capability map a refresh again. The rest of the snapshot reaches the brief as a map.\n */\n { family: 'market-snapshot', aspects: ['market.category', 'market.icp', 'market.persona', 'market.job', 'market.pain', 'market.gain'] },\n // Its own family: its method refines its own prior output and keeps its refs, so it must be GIVEN that output (#1430). Input, not precondition: a first run, with no prior output, stays eligible.\n { family: 'requirements' },\n ],\n outputs: [{\n family: 'requirements',\n schemaRef: 'saas-specifications:RequirementsSnapshot',\n description:\n 'The persisted RequirementsSnapshot normalized from strict RequirementsSnapshotGeneration output. It contains at least one functional requirement unless a separately sealed, evidence-bound exceptional disposition has settled authority.',\n }],\n method: {\n /*\n * What the creator stated in the other interviews (#2498, #2499): data classes, regimes, jurisdictions, the core\n * workflow, user groups, the scope boundary. 005's creator named VAT identifiers, site addresses, two national\n * e-invoicing regimes and four countries, and none of it reached this step. A section, never a gate: the step runs\n * whether or not those interviews were answered.\n *\n * The computed coherence report (#2500): its `high-severity-pains-unanswered` finding is the list of market pains the\n * requirements owe an answer, each with its severity and who feels it, derived by the same function the definition\n * lint uses. The producer answers that list instead of re-deriving it from the market, and the judge checks the\n * answer against the same list.\n */\n contextSources: [MetaWorkflow_ContextSource.CREATOR_STATED_FACTS, MetaWorkflow_ContextSource.COHERENCE_REPORT],\n skillRefs: [],\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n // `maxRuns` bounds high-level candidate iterations (#1344): a stop against loops, not cost control.\n budget: {\n maxRuns: 3,\n },\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n\nexport const structuredArtifactActionSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:structured-artifact-action/requirements-definition',\n definitionVersion: 1,\n actionDefinition: {\n schemaVersion: 1,\n actionRef: 'application-creation:action/requirements-definition',\n actionVersion: 1,\n intentRef: 'application-creation:intent/derive-current-horizon-requirements',\n inputSelectorRefs: [\n 'application-creation:artifact-selector/accepted-market-snapshot',\n 'application-creation:artifact-selector/accepted-vision-brief',\n ],\n outcomeContractRefs: [\n 'application-creation:output-contract/requirements-snapshot',\n ],\n effectSafetyPolicyRef: 'application-creation:effect-safety/candidate-artifacts-before-acceptance',\n allowedCapabilityClassRefs: [\n 'meta-workflow:capability-class/structured-artifact-generation',\n ],\n requiredCapabilityFacetRefs: [\n 'meta-workflow:capability-facet/atomic-output-set',\n 'meta-workflow:capability-facet/sealed-input-projection',\n 'meta-workflow:capability-facet/strict-provider-schema',\n 'meta-workflow:capability-facet/trusted-normalization',\n ],\n authorityRequirementRef: 'application-creation:authority-requirement/requirements-definition-result',\n budgetPolicyRef: 'application-creation:budget-policy/requirements-definition',\n continuationPolicyRef: 'application-creation:continuation-policy/requirements-definition',\n decisionPointDefinitionRefs: [\n 'application-creation:decision-point/requirements-definition',\n ],\n },\n driverSelector: {\n driverRef: 'meta-workflow:driver/structured-artifact-action',\n driverVersion: 1,\n },\n inputProjectionContractSelector: {\n contractRef: 'application-creation:input-projection/accepted-vision-market',\n contractVersion: 1,\n },\n providerOutputSchemaSelector: {\n schemaRef: 'saas-specifications:schema/requirements-snapshot-generation',\n schemaVersion: 1,\n },\n normalizationContractSelector: {\n contractRef: 'saas-specifications:normalizer/requirements-snapshot-generation',\n contractVersion: 1,\n },\n outputContract: {\n schemaVersion: 1,\n outputContractRef: 'application-creation:output-contract/requirements-snapshot',\n outputContractVersion: 1,\n outputSchemaSelector: {\n schemaRef: 'saas-specifications:schema/requirements-snapshot',\n schemaVersion: 1,\n },\n contentClass: MetaWorkflow_OutputContentClass.STRUCTURED_RECORD,\n cardinality: MetaWorkflow_OutputContractCardinality.ONE,\n canonicalSerializationRef: 'meta-workflow:canonicalization/wildo-json',\n canonicalSerializationVersion: 1,\n validatorContractSelector: {\n contractRef: 'saas-specifications:validator/requirements-snapshot',\n contractVersion: 1,\n },\n acceptedArtifactClassificationRefs: [\n 'application-creation:artifact-classification/candidate-specification-family-snapshot',\n ],\n invalidOutputDisposition: MetaWorkflow_FailureDisposition.FAIL_BINDING,\n },\n outputSetCommitment: MetaWorkflow_StructuredArtifactOutputSetCommitment.ATOMIC,\n requiredLifecycleFacets: [],\n requiredFailureDispositions: [\n MetaWorkflow_FailureDisposition.FAIL_BINDING,\n MetaWorkflow_FailureDisposition.REQUEST_INPUT,\n MetaWorkflow_FailureDisposition.RETRY_NEW_BINDING,\n ],\n} satisfies MetaWorkflowStructuredArtifactActionSource;\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/requirements-definition',\n // v2 (2026-08-19): the horizon-readiness criterion judges the requirements CONTENT of the subject under judgment\n // (plus the sealed hard floor) instead of a deterministic readiness receipt computed on the accepted head.\n definitionVersion: 2,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/requirements-definition',\n protocolVersion: 1,\n promptAssemblyStrategy: MetaWorkflow_EvaluationPromptAssemblyStrategy.CANONICAL_PROTOCOL_EVIDENCE_V1,\n aggregationStrategy: MetaWorkflow_EvaluationAggregationStrategy.WORST_VERDICT_PRECEDENCE_V1,\n verdictPrecedence: [\n MetaWorkflow_EvaluationVerdict.GAP,\n MetaWorkflow_EvaluationVerdict.INDETERMINATE,\n MetaWorkflow_EvaluationVerdict.CONCERN,\n MetaWorkflow_EvaluationVerdict.PASS,\n ],\n aggregationPolicyRef: 'application-creation:aggregation/worst-requirements-definition-verdict',\n criteria: [\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/requirements-horizon-readiness',\n // v3 (#2500): a workflow's criteria name its states and transitions; create/read/edit criteria alone are thin.\n criterionVersion: 3,\n instruction:\n 'Judge whether the requirements under judgment — the working-subject source when one is named, otherwise the accepted current-horizon requirements — give the current horizon a non-vacuous, implementable basis: at least one validated functional requirement with a testable acceptance criterion, or an exact settled exceptional disposition. The sealed hard-floor assessment for this criterion is the deterministic minimum-content finding on that same subject; treat it as the floor, not as the whole judgment. A requirement describing a workflow (quotes, jobs, invoices, orders, tickets) whose criteria only list what can be created, read and edited, naming no state, transition, document, total or number the workflow has, is a CONCERN: the horizon then reads as a database rather than a product. Never infer readiness from prose, model confidence or snapshot parse success, and never judge an empty collection ready.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/requirements-horizon-readiness',\n requirementVersion: 2,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/requirements-current-horizon',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/current-horizon-requirements',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The requirements under judgment carry at least one validated, testable current-horizon functional requirement (or an exact settled exceptional disposition) and the sealed hard floor is satisfied.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The horizon has a basis, but it is thin or its acceptance language is weak enough that downstream scope would be guesswork.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'The requirements under judgment have no functional requirement and no exact settled exceptional disposition, or the sealed hard floor failed.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The current-horizon requirements evidence is absent, malformed, or does not bind the subject under judgment.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/requirements-definition-coherence',\n // v2 (#2499): the creator's stated facts are accepted truth beside the vision and the market, and each must be carried or excluded.\n // v3 (#2500): every high-severity market pain is relieved (painRefs) or excluded, and compliance guards are non-functional.\n criterionVersion: 3,\n instruction:\n 'Assess whether each requirement is traceable to accepted vision or market evidence, or to a fact the creator stated in another interview; states a distinct current-horizon obligation; and carries observable acceptance language where applicable. Then check the creator\\'s stated facts, when they are in your evidence: every data class, named regime, jurisdiction (with its languages), workflow stage, user group and scope boundary bearing on what the product must do is carried by a requirement or listed in excludedStatedFacts with a reason. A stated fact neither carried nor excluded is a GAP. Then check the market\\'s pains: every pain a targeted ICP (CORE or EXPANSION) or one of its personas weighs at severity 7 or more is named in some requirement\\'s painRefs or listed in excludedMarketPains with a reason; one that is neither is a GAP. The coherence report\\'s high-severity-pains-unanswered finding lists them, computed over the accepted requirements. Then check the targeted personas\\' responsibilities: one the product exists to help with that no requirement carries is a GAP; one outside any product\\'s scope needs nothing. A functional acceptance criterion that is a compliance guard (does not claim, is not presented as supported until) instead of a capability is a CONCERN: it belongs in a compliance non-functional requirement. Do not invent missing requirements or silently turn implementation ideas into product obligations.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/requirements-definition-coherence',\n requirementVersion: 2,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/requirements-vision-market',\n minCount: 1,\n // The coherence composite proves the accepted cross-family basis;\n // the direct candidate proves the exact result subject presented to authority.\n maxCount: 2,\n coveragePolicyRef: 'application-creation:evidence-policy/all-current-horizon-requirements',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The requirements are distinct, traceable and sufficiently observable for the current horizon.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The set is usable, but one or more obligations are weakly traced or ambiguously testable.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'A material current-horizon obligation is missing, contradictory, or not testable enough to guide downstream scope, or a fact the creator stated (or a high-severity market pain) is neither carried by a requirement nor explicitly excluded.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'Accepted vision/market evidence is insufficient to assess the requirements set.',\n },\n },\n ],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/requirements-definition',\n policyVersion: 1,\n admissibleEvaluatorSelectors: [{ evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 }],\n defaultEvaluatorSelector: { evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 },\n outputContractSelector: {\n outputContractRef: 'meta-workflow:output-contract/structured-semantic-evaluation-candidate',\n outputContractVersion: 1,\n },\n fallbackPolicyRef: 'application-creation:evaluator-policy/fail-closed',\n escalationPolicyRef: 'application-creation:evaluator-policy/request-explicit-review',\n maximumAttempts: 2,\n timeoutPolicyRef: 'application-creation:evaluator-policy/bounded-semantic-evaluation',\n budgetPolicyRef: 'application-creation:evaluator-policy/current-work-cycle-budget',\n selectionPolicyRef: 'application-creation:evaluator-policy/scoped-risk-and-evidence',\n },\n decisionPointDefinition: {\n schemaVersion: 1,\n decisionPointRef: 'application-creation:decision-point/requirements-definition',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/requirements-snapshot-produced'],\n hardFloorRefs: ['application-creation:hard-floor/requirements-horizon-readiness'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/current-horizon-definition',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/requirements-definition',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-requirements-definition-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{\n hardFloorRef: 'application-creation:hard-floor/requirements-horizon-readiness',\n evidenceRequirementRefs: ['application-creation:evidence-requirement/requirements-horizon-readiness'],\n }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/requirements-definition-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-requirements-snapshot',\n riskClassRef: 'application-creation:risk/requirements-accepted-family-mutation',\n decisionModePolicyRef: 'application-creation:authority-policy/explicit-operator-confirmation',\n assurancePolicyRef: 'application-creation:authority-policy/local-single-operator',\n channelPolicyRef: 'application-creation:authority-policy/interface-relay',\n principalPolicyRef: null,\n requiredDecisionMode: MetaWorkflow_AuthorityDecisionMode.EXPLICIT_OPERATOR_CONFIRMATION,\n minimumAssurance: MetaWorkflow_AuthorityAssuranceClass.LOCAL_OS_SESSION,\n admittedChannels: [MetaWorkflow_AuthorityInteractionChannel.INTERFACE_RELAY],\n requiredEvidenceRequirementRefs: [\n 'application-creation:evidence-requirement/requirements-horizon-readiness',\n 'application-creation:evidence-requirement/requirements-definition-coherence',\n ],\n expiryPolicyRef: 'application-creation:authority-expiry/current-interface-session',\n noncePolicyRef: 'application-creation:authority-nonce/random-per-request',\n hardFloorPosture: MetaWorkflow_HardFloorPosture.NON_WAIVABLE,\n hardFloorOverrideAllowed: false,\n },\n continuationPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:continuation-policy/requirements-definition',\n policyVersion: 1,\n mappings: [\n { decisionConsequence: MetaWorkflow_DecisionConsequence.CONTINUE, action: MetaWorkflow_ContinuationAction.CONTINUE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REVISE, action: MetaWorkflow_ContinuationAction.REVISE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE, action: MetaWorkflow_ContinuationAction.REQUEST_EVIDENCE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY, action: MetaWorkflow_ContinuationAction.REQUEST_AUTHORITY },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.BLOCK, action: MetaWorkflow_ContinuationAction.BLOCK },\n ],\n maximumRevisionAttempts: 3,\n maximumEvidenceRequests: 2,\n maximumAuthorityReviews: 1,\n fallbackAction: MetaWorkflow_ContinuationAction.BLOCK,\n },\n} satisfies MetaWorkflowEvaluationTreatmentSource;\n"]}
@@ -39,6 +39,9 @@ export declare const playbookDefinition: {
39
39
  }, {
40
40
  readonly family: "brand-name-screening";
41
41
  readonly "//": "The screening behind the `brand-name-trademark-standing` signal: the conflicting marks, registers and uncovered jurisdictions a derived entry states.";
42
+ }, {
43
+ readonly family: "risk-register";
44
+ readonly "//": "Its own family: a refresh refines the register in place and keeps each entry's ref, which other artifacts and committed work name, so it must be GIVEN its prior output (#3449, as #1430). Input, not precondition: a first run stays eligible.";
42
45
  }];
43
46
  readonly outputs: readonly [{
44
47
  readonly family: "risk-register";
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.risk-register/playbook.definition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,EAC9B,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCrB,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsLW,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/top_down.risk-register/playbook.definition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,EAC9B,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCrB,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsLW,CAAC"}