@wildo-ai/framework-knowledge 1.1.8 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/dist/claude-marketplace/plugins/wildo/.claude-plugin/plugin.json +1 -1
  2. package/dist/claude-marketplace/plugins/wildo/references/composites-and-the-loop.md +9 -2
  3. package/dist/claude-marketplace/plugins/wildo/references/creation-state.md +21 -0
  4. package/dist/claude-marketplace/plugins/wildo/references/derived-artifacts.md +121 -0
  5. package/dist/claude-marketplace/plugins/wildo/references/runs-judges-and-questions.md +29 -5
  6. package/dist/claude-marketplace/plugins/wildo/skills/answer/SKILL.md +29 -2
  7. package/dist/claude-marketplace/plugins/wildo/skills/build/SKILL.md +69 -24
  8. package/dist/claude-marketplace/plugins/wildo/skills/doctor/SKILL.md +10 -0
  9. package/dist/claude-marketplace/plugins/wildo/skills/run/SKILL.md +21 -5
  10. package/dist/claude-marketplace/plugins/wildo/skills/start/SKILL.md +31 -5
  11. package/dist/claude-marketplace/plugins/wildo/skills/status/SKILL.md +2 -0
  12. package/dist/claude-marketplace/plugins/wildo/skills/why/SKILL.md +11 -1
  13. package/dist/esm/framework-knowledge.definitions.d.ts +1 -1
  14. package/dist/esm/framework-knowledge.definitions.d.ts.map +1 -1
  15. package/dist/esm/framework-knowledge.definitions.js +11 -1
  16. package/dist/esm/framework-knowledge.definitions.js.map +1 -1
  17. package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.d.ts +2 -2
  18. package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.js +2 -2
  19. package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.js.map +1 -1
  20. package/dist/esm/playbooks/bottom_up.build/playbook.definition.d.ts +11 -11
  21. package/dist/esm/playbooks/bottom_up.build/playbook.definition.d.ts.map +1 -1
  22. package/dist/esm/playbooks/bottom_up.build/playbook.definition.js +29 -22
  23. package/dist/esm/playbooks/bottom_up.build/playbook.definition.js.map +1 -1
  24. package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.d.ts +3 -3
  25. package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.d.ts.map +1 -1
  26. package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.js +59 -10
  27. package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.js.map +1 -1
  28. package/dist/esm/playbooks/bottom_up.build-dispatch/playbook.definition.d.ts +1 -1
  29. package/dist/esm/playbooks/bottom_up.build-dispatch/playbook.definition.js +3 -3
  30. package/dist/esm/playbooks/bottom_up.build-dispatch/playbook.definition.js.map +1 -1
  31. package/dist/esm/playbooks/bottom_up.build-scale/playbook.definition.d.ts +1 -1
  32. package/dist/esm/playbooks/bottom_up.build-scale/playbook.definition.js +1 -1
  33. package/dist/esm/playbooks/bottom_up.build-scale/playbook.definition.js.map +1 -1
  34. package/dist/esm/playbooks/bottom_up.conception/playbook.definition.js +1 -1
  35. package/dist/esm/playbooks/bottom_up.conception/playbook.definition.js.map +1 -1
  36. package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.d.ts +2 -1
  37. package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.d.ts.map +1 -1
  38. package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.js +5 -5
  39. package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.js.map +1 -1
  40. package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.d.ts +8 -0
  41. package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.d.ts.map +1 -1
  42. package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.js +12 -4
  43. package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.js.map +1 -1
  44. package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.d.ts +25 -27
  45. package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.d.ts.map +1 -1
  46. package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.js +85 -43
  47. package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.js.map +1 -1
  48. package/dist/esm/playbooks/top_down.brand-name-research/playbook.definition.d.ts +40 -0
  49. package/dist/esm/playbooks/top_down.brand-name-research/playbook.definition.d.ts.map +1 -0
  50. package/dist/esm/playbooks/top_down.brand-name-research/playbook.definition.js +41 -0
  51. package/dist/esm/playbooks/top_down.brand-name-research/playbook.definition.js.map +1 -0
  52. package/dist/esm/playbooks/top_down.brand-name-screening-produce/playbook.definition.d.ts +199 -0
  53. package/dist/esm/playbooks/top_down.brand-name-screening-produce/playbook.definition.d.ts.map +1 -0
  54. package/dist/esm/playbooks/top_down.brand-name-screening-produce/playbook.definition.js +201 -0
  55. package/dist/esm/playbooks/top_down.brand-name-screening-produce/playbook.definition.js.map +1 -0
  56. package/dist/esm/playbooks/top_down.brand-naming/playbook.definition.d.ts +67 -0
  57. package/dist/esm/playbooks/top_down.brand-naming/playbook.definition.d.ts.map +1 -0
  58. package/dist/esm/playbooks/top_down.brand-naming/playbook.definition.js +76 -0
  59. package/dist/esm/playbooks/top_down.brand-naming/playbook.definition.js.map +1 -0
  60. package/dist/esm/playbooks/top_down.business-model/playbook.definition.d.ts +3 -1
  61. package/dist/esm/playbooks/top_down.business-model/playbook.definition.d.ts.map +1 -1
  62. package/dist/esm/playbooks/top_down.business-model/playbook.definition.js +27 -18
  63. package/dist/esm/playbooks/top_down.business-model/playbook.definition.js.map +1 -1
  64. package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.d.ts +11 -1
  65. package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.d.ts.map +1 -1
  66. package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.js +11 -11
  67. package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.js.map +1 -1
  68. package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.d.ts +2 -0
  69. package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.d.ts.map +1 -1
  70. package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.js +3 -1
  71. package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.js.map +1 -1
  72. package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.d.ts +2 -0
  73. package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.d.ts.map +1 -1
  74. package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.js +3 -1
  75. package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.js.map +1 -1
  76. package/dist/esm/playbooks/top_down.definition/playbook.definition.d.ts +5 -2
  77. package/dist/esm/playbooks/top_down.definition/playbook.definition.d.ts.map +1 -1
  78. package/dist/esm/playbooks/top_down.definition/playbook.definition.js +16 -4
  79. package/dist/esm/playbooks/top_down.definition/playbook.definition.js.map +1 -1
  80. package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.d.ts +7 -3
  81. package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.d.ts.map +1 -1
  82. package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.js +36 -2
  83. package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.js.map +1 -1
  84. package/dist/esm/playbooks/top_down.risk-register/playbook.definition.d.ts +7 -1
  85. package/dist/esm/playbooks/top_down.risk-register/playbook.definition.d.ts.map +1 -1
  86. package/dist/esm/playbooks/top_down.risk-register/playbook.definition.js +4 -2
  87. package/dist/esm/playbooks/top_down.risk-register/playbook.definition.js.map +1 -1
  88. package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.d.ts +9 -3
  89. package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.d.ts.map +1 -1
  90. package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.js +3 -3
  91. package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.js.map +1 -1
  92. package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.d.ts +35 -2
  93. package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.d.ts.map +1 -1
  94. package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.js +30 -17
  95. package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.js.map +1 -1
  96. package/dist/knowledge/assurance-authority-bases/wildo-safe-baseline-v1/authority-basis.json +1 -1
  97. package/dist/knowledge/assurance-authority-bases/wildo-safe-baseline-v1/external-framework-mapping.json +1 -1
  98. package/dist/knowledge/manifest.json +8 -8
  99. package/dist/knowledge/playbooks/bottom_up.assemble-verify/method.md +22 -7
  100. package/dist/knowledge/playbooks/bottom_up.assemble-verify/playbook.json +3 -3
  101. package/dist/knowledge/playbooks/bottom_up.build/method.md +17 -15
  102. package/dist/knowledge/playbooks/bottom_up.build/playbook.json +4 -3
  103. package/dist/knowledge/playbooks/bottom_up.build-decompose/evaluation-protocol.json +1 -1
  104. package/dist/knowledge/playbooks/bottom_up.build-decompose/evaluation-treatment.json +1 -1
  105. package/dist/knowledge/playbooks/bottom_up.build-decompose/method.md +117 -28
  106. package/dist/knowledge/playbooks/bottom_up.build-decompose/playbook.json +4 -4
  107. package/dist/knowledge/playbooks/bottom_up.build-dispatch/method.md +133 -59
  108. package/dist/knowledge/playbooks/bottom_up.build-dispatch/playbook.json +2 -2
  109. package/dist/knowledge/playbooks/bottom_up.build-scale/method.md +169 -276
  110. package/dist/knowledge/playbooks/bottom_up.build-scale/playbook.json +2 -2
  111. package/dist/knowledge/playbooks/bottom_up.capability-composition/method.md +8 -1
  112. package/dist/knowledge/playbooks/bottom_up.capability-composition/playbook.json +1 -1
  113. package/dist/knowledge/playbooks/bottom_up.conception/method.md +3 -2
  114. package/dist/knowledge/playbooks/bottom_up.conception/playbook.json +2 -2
  115. package/dist/knowledge/playbooks/bottom_up.domain-plan/evaluation-protocol.json +1 -1
  116. package/dist/knowledge/playbooks/bottom_up.domain-plan/evaluation-treatment.json +1 -1
  117. package/dist/knowledge/playbooks/bottom_up.domain-plan/method.md +22 -6
  118. package/dist/knowledge/playbooks/bottom_up.domain-plan/playbook.json +4 -3
  119. package/dist/knowledge/playbooks/bottom_up.foundation/playbook.json +13 -5
  120. package/dist/knowledge/playbooks/refinement.compliance-document-candidate/method.md +5 -2
  121. package/dist/knowledge/playbooks/refinement.compliance-document-candidate/playbook.json +1 -1
  122. package/dist/knowledge/playbooks/top_down.brand-identity/evaluation-protocol.json +1 -1
  123. package/dist/knowledge/playbooks/top_down.brand-identity/evaluation-treatment.json +1 -1
  124. package/dist/knowledge/playbooks/top_down.brand-identity/method.md +71 -37
  125. package/dist/knowledge/playbooks/top_down.brand-identity/playbook.json +35 -38
  126. package/dist/knowledge/playbooks/top_down.brand-name-research/method.md +105 -0
  127. package/dist/knowledge/playbooks/top_down.brand-name-research/playbook.json +55 -0
  128. package/dist/knowledge/playbooks/top_down.brand-name-screening-produce/evaluation-protocol.json +1 -0
  129. package/dist/knowledge/playbooks/top_down.brand-name-screening-produce/evaluation-treatment.json +1 -0
  130. package/dist/knowledge/playbooks/top_down.brand-name-screening-produce/method.md +78 -0
  131. package/dist/knowledge/playbooks/top_down.brand-name-screening-produce/playbook.json +63 -0
  132. package/dist/knowledge/playbooks/top_down.brand-naming/method.md +56 -0
  133. package/dist/knowledge/playbooks/top_down.brand-naming/playbook.json +65 -0
  134. package/dist/knowledge/playbooks/top_down.business-model/evaluation-protocol.json +1 -1
  135. package/dist/knowledge/playbooks/top_down.business-model/evaluation-treatment.json +1 -1
  136. package/dist/knowledge/playbooks/top_down.business-model/method.md +60 -6
  137. package/dist/knowledge/playbooks/top_down.business-model/playbook.json +15 -10
  138. package/dist/knowledge/playbooks/top_down.compliance-analysis/playbook.json +30 -10
  139. package/dist/knowledge/playbooks/top_down.compliance-conception/playbook.json +3 -1
  140. package/dist/knowledge/playbooks/top_down.compliance-posture/playbook.json +4 -1
  141. package/dist/knowledge/playbooks/top_down.definition/method.md +8 -3
  142. package/dist/knowledge/playbooks/top_down.definition/playbook.json +6 -4
  143. package/dist/knowledge/playbooks/top_down.phase-gate/evaluation-protocol.json +1 -1
  144. package/dist/knowledge/playbooks/top_down.phase-gate/evaluation-treatment.json +1 -1
  145. package/dist/knowledge/playbooks/top_down.phase-gate/playbook.json +11 -1
  146. package/dist/knowledge/playbooks/top_down.risk-register/method.md +21 -0
  147. package/dist/knowledge/playbooks/top_down.risk-register/playbook.json +8 -2
  148. package/dist/knowledge/playbooks/top_down.scope-roadmap/playbook.json +4 -2
  149. package/dist/knowledge/playbooks/top_down.vision-elicitation/method.md +10 -0
  150. package/dist/knowledge/playbooks/top_down.vision-elicitation/playbook.json +40 -17
  151. package/dist/knowledge/references/brand.name-choice.config.md +127 -0
  152. package/dist/knowledge/references/brand.name-screening.config.md +253 -0
  153. package/dist/knowledge/references/build-plan.task-graph.config.md +64 -11
  154. package/dist/knowledge/references/business-model.pricing-plan.config.md +16 -0
  155. package/dist/knowledge/references/business-model.snapshot.config.md +64 -0
  156. package/dist/knowledge/references/business-model.snapshot.validation.md +68 -4
  157. package/dist/knowledge/references/capability-composition.config.md +67 -4
  158. package/dist/knowledge/references/example.data-seeding.minimal.md +29 -1
  159. package/dist/knowledge/references/market.snapshot.validation.md +1 -1
  160. package/dist/knowledge/references/saas.data-seeding.bootstrap-wiring.md +7 -1
  161. package/dist/knowledge/references/saas.data-seeding.definition-input.md +6 -0
  162. package/dist/knowledge/references/saas.models.queue.scheduled-recovery.md +81 -2
  163. package/dist/knowledge/references/saas.specifications.companion-exports.contract.md +10 -0
  164. package/dist/knowledge/references/saas.website.astro.label-loader.md +9 -0
  165. package/dist/knowledge/references/saas.website.factories.define-section.md +4 -0
  166. package/dist/knowledge/references/saas.website.page-manifest.schema.md +12 -3
  167. package/dist/knowledge/references/saas.website.page-sections.component.md +72 -0
  168. package/dist/knowledge/references/saas.website.sections.definition-schema.md +11 -0
  169. package/dist/knowledge/registries/assurance-authority-bases.json +1 -1
  170. package/dist/knowledge/registries/framework-topics.json +38 -1
  171. package/dist/knowledge/registries/playbooks.json +68 -20
  172. package/dist/knowledge/registries/source-tags.json +748 -695
  173. package/dist/knowledge/rules/live-context-door.md +5 -2
  174. package/dist/knowledge/skills/INDEX.md +2 -1
  175. package/dist/knowledge/skills/application-database-migrations/SKILL.md +1 -1
  176. package/dist/knowledge/skills/brand-name-screening/SKILL.md +154 -0
  177. package/dist/knowledge/skills/brand-name-screening/references/framework-brand-name-screening-api.md +394 -0
  178. package/dist/knowledge/skills/brand-name-screening/references/screening-procedure.md +65 -0
  179. package/dist/knowledge/skills/compliance-document-authoring/references/document-composition-privacy-notice.md +5 -2
  180. package/dist/knowledge/skills/config-saas/SKILL.md +31 -4
  181. package/dist/knowledge/skills/config-saas/references/compliance-declarations.md +14 -1
  182. package/dist/knowledge/skills/config-saas/references/framework-background-work-api.md +81 -2
  183. package/dist/knowledge/skills/email-add-template/SKILL.md +1 -1
  184. package/dist/knowledge/skills/i18n-rerun-pipeline/SKILL.md +1 -1
  185. package/dist/knowledge/skills/inbound-channels/SKILL.md +2 -2
  186. package/dist/knowledge/skills/local-environment-bootstrap/SKILL.md +11 -1
  187. package/dist/knowledge/skills/local-environment-bootstrap/references/derived-artifact-currency.md +122 -0
  188. package/dist/knowledge/skills/local-environment-bootstrap/references/framework-upgrade-and-dependency-alignment.md +11 -0
  189. package/dist/knowledge/skills/local-environment-bootstrap/references/wildo-cli-bootstrap-commands.md +9 -2
  190. package/dist/knowledge/skills/market-companion-prompt-enrichment/SKILL.md +11 -1
  191. package/dist/knowledge/skills/market-companion-prompt-enrichment/references/framework-companion-behavior-api.md +11 -1
  192. package/dist/knowledge/skills/market-message-templates-authoring/references/framework-message-template-api.md +1 -1
  193. package/dist/knowledge/skills/market-snapshot-validation/SKILL.md +1 -1
  194. package/dist/knowledge/skills/market-snapshot-validation/references/framework-snapshot-validation-api.md +1 -1
  195. package/dist/knowledge/skills/module-companion-exports/references/companion-exports-by-package.md +10 -0
  196. package/dist/knowledge/skills/module-relationships/SKILL.md +6 -4
  197. package/dist/knowledge/skills/seeding-authoring/SKILL.md +51 -3
  198. package/dist/knowledge/skills/seeding-authoring/references/framework-data-seeding-api.md +6 -0
  199. package/dist/knowledge/skills/seeding-operations/references/framework-data-seeding-operations-api.md +7 -1
  200. package/dist/knowledge/skills/spec-companion-exports/references/framework-companion-exports-contract-api.md +10 -0
  201. package/dist/knowledge/skills/website-factory-advanced/SKILL.md +4 -0
  202. package/dist/knowledge/skills/website-page-authoring/SKILL.md +84 -3
  203. package/dist/knowledge/skills/website-section-contact/SKILL.md +15 -0
  204. package/dist/knowledge/skills/website-section-contact/references/define-website-section-api.md +15 -0
  205. package/dist/knowledge/skills/website-section-cta/SKILL.md +15 -0
  206. package/dist/knowledge/skills/website-section-cta/references/define-website-section-api.md +15 -0
  207. package/dist/knowledge/skills/website-section-faq/SKILL.md +15 -0
  208. package/dist/knowledge/skills/website-section-faq/references/define-website-section-api.md +15 -0
  209. package/dist/knowledge/skills/website-section-feature-benefit-summary/SKILL.md +15 -0
  210. package/dist/knowledge/skills/website-section-feature-benefit-summary/references/define-website-section-api.md +15 -0
  211. package/dist/knowledge/skills/website-section-feature-detail/SKILL.md +15 -0
  212. package/dist/knowledge/skills/website-section-feature-detail/references/define-website-section-api.md +15 -0
  213. package/dist/knowledge/skills/website-section-footer-cta/SKILL.md +15 -0
  214. package/dist/knowledge/skills/website-section-footer-cta/references/define-website-section-api.md +15 -0
  215. package/dist/knowledge/skills/website-section-hero/SKILL.md +27 -9
  216. package/dist/knowledge/skills/website-section-hero/references/define-website-section-api.md +15 -0
  217. package/dist/knowledge/skills/website-section-pricing/SKILL.md +15 -0
  218. package/dist/knowledge/skills/website-section-pricing/references/define-website-section-api.md +15 -0
  219. package/dist/knowledge/skills/website-section-social-proof/SKILL.md +15 -0
  220. package/dist/knowledge/skills/website-section-social-proof/references/define-website-section-api.md +15 -0
  221. package/dist/knowledge/skills/website-seo-aeo-geo/SKILL.md +1 -1
  222. package/dist/knowledge/skills/website-seo-aeo-geo/references/aeo-api.md +11 -0
  223. package/dist/knowledge/topic-index.json +169 -43
  224. package/dist/tsconfig.build.tsbuildinfo +1 -1
  225. package/dist/tsconfig.tsbuildinfo +1 -1
  226. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.conception/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,wBAAwB,EACxB,kBAAkB,GAEnB,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,sBAAsB;IAC3B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,SAAS;IACnC,MAAM,EACJ,2mDAA2mD;IAC7mD,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;QAC5F,EAAE,IAAI,EAAE,0BAA0B,CAAC,iBAAiB,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE;KACxF;IACD,oGAAoG;IACpG,6DAA6D;IAC7D,MAAM,EAAE;QACN,EAAE,MAAM,EAAE,cAAc,EAAE;QAC1B,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,wBAAwB,CAAC,GAAG,EAAE;QAChE,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,wBAAwB,CAAC,GAAG,EAAE;QACnE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,wBAAwB,CAAC,GAAG,EAAE;QAC3D,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,wBAAwB,CAAC,GAAG,EAAE;QAClE,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,wBAAwB,CAAC,GAAG,EAAE;QAC/D,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,wBAAwB,CAAC,GAAG,EAAE;QAClE;;;;;WAKG;QACH,EAAE,MAAM,EAAE,wBAAwB,EAAE;QACpC,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,wBAAwB,CAAC,GAAG,EAAE;QAChE,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,wBAAwB,CAAC,GAAG,EAAE;KACvE;IACD,2FAA2F;IAC3F,+FAA+F;IAC/F,OAAO,EAAE,EAAE;IACX,MAAM,EAAE;QACN,SAAS,EAAE,EAAE;QACb,YAAY,EAAE;YACZ;;;eAGG;YACH,MAAM,EAAE;gBACN,0BAA0B;gBAC1B,+FAA+F;gBAC/F,gGAAgG;gBAChG,8BAA8B;gBAC9B,wBAAwB;gBACxB,2BAA2B;gBAC3B;;;;;;;;;;mBAUG;gBACH,4BAA4B;gBAC5B,sBAAsB;gBACtB,kCAAkC;gBAClC,0BAA0B;gBAC1B,uBAAuB;aACxB;YACD;;;;;eAKG;YACH,iBAAiB,EAAE,EAAE;YACrB,wBAAwB,EAAE,CAAC;YAC3B;;;;;;eAMG;YACH,iBAAiB,EAAE,SAAS;SAC7B;KACF;IACD;;;;;;OAMG;IACH,QAAQ,EAAE,2BAA2B,CAAC,cAAc;IACpD,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,0BAA0B,CAAC,aAAa;CAGpD,CAAC","sourcesContent":["import {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_PredicateKind,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_InputRender,\n MetaWorkflow_Phase,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\n/**\n * The CONCEPTION LANE — from a landed definition to an accepted placement plan (#1500, epic #1506).\n *\n * Until this existed `bottom_up.domain-plan`, `bottom_up.foundation` and `bottom_up.placement-plan`\n * were run one at a time: the decomposer could run before placement (#1265 R-6, an application with\n * no navigation), placement's panel failed closed with nobody to staff it (#572), and a module the\n * plan could not route had no way back to the plan. This lane runs the four steps that CONCEIVE the\n * application's structure as one choreography and ends on one decision: the conception is accepted,\n * or returned.\n *\n * ## Order is the leaves' preconditions\n *\n * `domain-plan` needs the requirements and the market snapshot; `expert-personas` needs the vision and\n * the snapshot and staffs the panels `placement-plan` convenes; `foundation` needs the domain plan\n * and composes the application from it; `placement-plan` needs the domain plan. Nothing here says\n * \"domain plan first\" — the runtime recomputes what may run after every round, and a re-run of the\n * lane on an application whose domain plan already exists goes straight to what is missing.\n *\n * ## The lane's OWN gate is the definition lane's output\n *\n * READINESS on the two families the domain plan derives from (declared as inputs, per audit rule 24),\n * and a SEQUENCING expectation of the roadmap — the last family the definition lane lands before its\n * phase gate. A conception without a roadmap is a legitimate choice (the domain plan's own gate does\n * not need one), so it is `artifact_expected`: the board says \"you are early\", and an explicit run\n * proceeds. When the decision boundary (#111) lands, the definition lane's ACCEPTANCE becomes the\n * thing this gate reads; today the roadmap is the closest fact on record.\n *\n * ## Two children are RUNNER-OWNED and both are safe to re-offer\n *\n * `foundation` and `expert-personas` are bespoke executors, not generations: the runner short-circuits\n * them before any brief is composed. Both land nothing the runtime marks delivered, so the loop offers\n * them again each round, and both are idempotent by their own contracts — foundation plans\n * byte-identical targets as SKIPS and refuses on a collision rather than overwriting authored work;\n * expert-personas never re-derives a committed charter and reports a role whose inputs have not\n * landed as WAITING. The intent below tells the selector not to spend a round on either once it has\n * run; their idempotence is what makes a wrong selection cheap rather than harmful.\n *\n * ## `domain-plan` may SUSPEND for a clarification\n *\n * It declares `suspendsForClarification`: a run that reaches a decision only the creator can make\n * checkpoints and waits on `/playbooks/suspended`. Inside this lane that child returns nothing and the\n * round records it; the lane runs whatever else is eligible (nothing, on a fresh application — every\n * other child needs the plan) and stops on NOTHING_ELIGIBLE. Answer the clarification, re-run the lane:\n * the resumed plan lands, and the next round has three eligible children.\n *\n * ## Interviews are answered in the DOSSIER\n *\n * `domain-plan` asks one question (tenancy) and `foundation` five (primary scope, operating entity,\n * operating jurisdictions, and the billing and SMS provider choices — #1488, answer `none` to decide later). A child whose interview the dossier does not answer is not eligible in\n * this run; the lane runs the rest and the board reports the leaf as waiting for the creator — the\n * same contract as the definition lane, for the same mechanical reason (#1454, Step 5).\n *\n * ## Loop-back — the mechanism exists; what declares it is a child, and this lane has none yet\n *\n * | signal | re-opens | how, once it can |\n * |---|---|---|\n * | placement's panel or judge names a module or resource the plan cannot route | `bottom_up.domain-plan` | a `step_available` gate on placement's verdict (#1498), the same shape as the market produce gate |\n * | the build lane's coherence GAP names a module or relationship | `bottom_up.domain-plan`, through the root | the root routes the build lane's verdict here (#1503, after #1497) |\n * | requirements or market newer than the landed plan | `bottom_up.domain-plan` | the staleness gate (#57) |\n *\n * Each is one additive declaration on the CHILD that re-runs — never on this lane, which declares\n * `admits` and not a child's preconditions. Both mechanisms landed 2026-09-22; what is missing is a\n * revise child to carry them, and `application-creation-directive.md` is why one has not been\n * authored: the lane has never been driven live, so a loop-back for a gap nobody has seen would be\n * three guesses about what a real one looks like. See the definition lane for the same reasoning\n * written out.\n *\n * ## The SURFACE plans are conception, not build (#1493, #1492, #1494 — joined 2026-09-22)\n *\n * `experience-plan`, `website-plan` and `documentation-plan` each decide what a surface CONTAINS —\n * the views and their interaction, the site's sections, the documentation's shape. They belong here\n * and not in the build lane for one mechanical reason: `bottom_up.build-decompose` declares all three\n * as INPUTS, so they are read when the build plan is authored. A surface planned after decomposition\n * is a surface the build plan has no task for.\n *\n * **Declared as inputs and NOT as preconditions, on the decomposer's side and on this lane's.** An\n * application with no website has no website plan, and a build that refused to decompose without one\n * would refuse every application that does not want a site. The capability composition is what says\n * whether each surface exists — which is why two of the three gate on it and the lane runs it first.\n *\n * ## `capability-composition` joined the lane the day it landed (#1491, 2026-09-22)\n *\n * It sits between the domain plan and the foundation, which is where the lane needed it: it decides\n * which of the composition scenarios an application needs, and the foundation is what applies\n * them. Its own gate is `artifact_expected: domain-plan` — SEQUENCING, so a creator may compose\n * before a plan exists and inside this lane it is offered from round one. The lane's intent is what\n * orders it after the plan, as it does for every other pair here.\n *\n * Its record is its own family, so it is marked delivered when it lands and is not re-offered; it\n * declares that family as an INPUT too, which is what lets a later run refine the composition rather\n * than restart it.\n */\nexport const playbookDefinition = {\n ref: 'bottom_up.conception',\n version: '0.1.2',\n phase: MetaWorkflow_Phase.BOTTOM_UP,\n intent:\n 'Drive the CONCEPTION of the application as one lane: the domain plan from the requirements and the market, the expert personas that staff the panels, the capability composition the application needs, the foundation composed from the plan and that composition, the surface plans for whatever the composition says this application presents — its experience, its website, its documentation — and the placement plan the panel decides — ending on one decision: the conception is accepted, or returned to the domain plan. An umbrella: it authors nothing itself; every child declares what it needs and the runtime recomputes what may run after each round. Select what is MISSING from the accepted truth shown to you: a family already on record is not re-derived unless the plan it was derived from has been re-derived in this run. The foundation and the expert personas are runner-owned steps that land no family: run each ONCE, when its inputs are on record, and do not spend a round on either again — the round history shows they ran. Run independent children in the same round. STOP when the placement plan is on record AND every surface the capability composition decided NEEDED (a website, a documentation portal) has its plan on record: the placement plan is this lane\\'s closing decision, but it needs only the domain plan, so it can land before a surface plan — and a surface decided and never planned is one the build decomposition emits no task for. A child whose interview the creator has not answered, or whose run suspended on a clarification, is not offered; run everything else and stop when nothing eligible advances the conception.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'requirements' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'market-snapshot' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_EXPECTED, selector: { family: 'roadmap' } },\n ],\n // For the SELECTOR (see the definition lane for why a composite's inputs reach exactly one reader):\n // the vision whole, everything else as a map of what exists.\n inputs: [\n { family: 'vision-brief' },\n { family: 'requirements', render: MetaWorkflow_InputRender.MAP },\n { family: 'market-snapshot', render: MetaWorkflow_InputRender.MAP },\n { family: 'roadmap', render: MetaWorkflow_InputRender.MAP },\n { family: 'business-model', render: MetaWorkflow_InputRender.MAP },\n { family: 'domain-plan', render: MetaWorkflow_InputRender.MAP },\n { family: 'placement-plan', render: MetaWorkflow_InputRender.MAP },\n /*\n * What the stop rule checks: a surface the composition decided NEEDED has its plan on record. The\n * composition is read WHOLE — one decision per scenario, and the dispositions are the point — and the two\n * surface plans as MAPS, which is enough to see that they exist and carry pages or chapters. Before\n * these, the selector was told to check something its brief did not contain.\n */\n { family: 'capability-composition' },\n { family: 'website-plan', render: MetaWorkflow_InputRender.MAP },\n { family: 'documentation-plan', render: MetaWorkflow_InputRender.MAP },\n ],\n // Nothing — the lane's write scope is resolved transitively through `admits`: domain-plan,\n // placement-plan, and the application itself (the foundation composes it in the working tree).\n outputs: [],\n method: {\n skillRefs: [],\n choreography: {\n /*\n * UNORDERED. Listed closing-move-first on purpose, the umbrellas' own trap check: read as a\n * sequence this would try to place modules before any plan named them, and fail loudly.\n */\n admits: [\n 'bottom_up.placement-plan',\n // The SURFACE plans — what the application presents, each over the composition that decided it\n // exists. They are conception, not build: the decomposer READS all three (#1493, #1492, #1494).\n 'bottom_up.documentation-plan',\n 'bottom_up.website-plan',\n 'bottom_up.experience-plan',\n /*\n * And what the application RUNS beside its backend — workers, minions, provider bindings\n * (#1495). Conception for the same reason as the three above, and it must come BEFORE the\n * foundation in practice rather than in this list: the foundation composes one package per\n * surface this plan declares, so a foundation that ran first composes none. The runtime\n * decides the order from each child's own preconditions; the ordering here is reading order.\n *\n * Its absence was measured 2026-09-22: the leaf existed, was audited, was named by no\n * composite, and a choreography's child set IS its `admits` — so the whole worker/minion\n * chain was unreachable in a journey while every test around it was green.\n */\n 'bottom_up.integration-plan',\n 'bottom_up.foundation',\n 'bottom_up.capability-composition',\n 'top_down.expert-personas',\n 'bottom_up.domain-plan',\n ],\n /*\n * One round per child on a fresh application (plan → personas + composition → foundation +\n * the three surface plans → placement = 5), plus a clarification suspension and a plan\n * re-derivation when placement sends it back. Twelve is headroom, not a plan. A breaker: it\n * stops a loop spinning, never refuses work.\n */\n maximumIterations: 12,\n maximumLanesPerIteration: 3,\n /*\n * Ninety minutes. Placement's panel runs three candidates through two reviewers, the foundation\n * composes scenarios and applies migrations, and a domain plan with a clarification round-trips\n * through the creator. Longer than the companion's HTTP ceiling (30 min): submit with\n * `async: true` and read the outcome from `/playbooks/runs`. Literal: the evaluator computes no\n * expressions.\n */\n maximumDurationMs: 5_400_000,\n },\n },\n /*\n * The lane's closing decision — the conception is accepted, or returned.\n *\n * LIVE since #111 landed: the runtime derives this lane's boundary from the field and the companion\n * projects one `approve_result` decision on the human-decision plane, which the posture then\n * resolves (YOLO notifies and proceeds). `onFailure` is read at the same boundary.\n */\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: {},\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.conception/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,wBAAwB,EACxB,kBAAkB,GAEnB,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,sBAAsB;IAC3B,OAAO,EAAE,OAAO;IAChB,K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AE;QACb,YAAY,EAAE;YACZ;;;eAGG;YACH,MAAM,EAAE;gBACN,0BAA0B;gBAC1B,+FAA+F;gBAC/F,gGAAgG;gBAChG,8BAA8B;gBAC9B,wBAAwB;gBACxB,2BAA2B;gBAC3B;;;;;;;;;;mBAUG;gBACH,4BAA4B;gBAC5B,sBAAsB;gBACtB,kCAAkC;gBAClC,0BAA0B;gBAC1B,uBAAuB;aACxB;YACD;;;;;eAKG;YACH,iBAAiB,EAAE,EAAE;YACrB,wBAAwB,EAAE,CAAC;YAC3B;;;;;;eAMG;YACH,iBAAiB,EAAE,SAAS;SAC7B;KACF;IACD;;;;;;OAMG;IACH,QAAQ,EAAE,2BAA2B,CAAC,cAAc;IACpD,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,0BAA0B,CAAC,aAAa;CAGpD,CAAC","sourcesContent":["import {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_PredicateKind,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_InputRender,\n MetaWorkflow_Phase,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\n/**\n * The CONCEPTION LANE — from a landed definition to an accepted placement plan (#1500, epic #1506).\n *\n * Until this existed `bottom_up.domain-plan`, `bottom_up.foundation` and `bottom_up.placement-plan`\n * were run one at a time: the decomposer could run before placement (#1265 R-6, an application with\n * no navigation), placement's panel failed closed with nobody to staff it (#572), and a module the\n * plan could not route had no way back to the plan. This lane runs the four steps that CONCEIVE the\n * application's structure as one choreography and ends on one decision: the conception is accepted,\n * or returned.\n *\n * ## Order is the leaves' preconditions\n *\n * `domain-plan` needs the requirements and the market snapshot; `expert-personas` needs the vision and\n * the snapshot and staffs the panels `placement-plan` convenes; `foundation` needs the domain plan\n * and composes the application from it; `placement-plan` needs the domain plan. Nothing here says\n * \"domain plan first\" — the runtime recomputes what may run after every round, and a re-run of the\n * lane on an application whose domain plan already exists goes straight to what is missing.\n *\n * ## The lane's OWN gate is the definition lane's output\n *\n * READINESS on the two families the domain plan derives from (declared as inputs, per audit rule 24),\n * and a SEQUENCING expectation of the roadmap — the last family the definition lane lands before its\n * phase gate. A conception without a roadmap is a legitimate choice (the domain plan's own gate does\n * not need one), so it is `artifact_expected`: the board says \"you are early\", and an explicit run\n * proceeds. When the decision boundary (#111) lands, the definition lane's ACCEPTANCE becomes the\n * thing this gate reads; today the roadmap is the closest fact on record.\n *\n * ## Two children are RUNNER-OWNED and both are safe to re-offer\n *\n * `foundation` and `expert-personas` are bespoke executors, not generations: the runner short-circuits\n * them before any brief is composed. Both land nothing the runtime marks delivered, so the loop offers\n * them again each round, and both are idempotent by their own contracts — foundation plans\n * byte-identical targets as SKIPS and refuses on a collision rather than overwriting authored work;\n * expert-personas never re-derives a committed charter and reports a role whose inputs have not\n * landed as WAITING. The intent below tells the selector not to spend a round on either once it has\n * run; their idempotence is what makes a wrong selection cheap rather than harmful.\n *\n * ## `domain-plan` may SUSPEND for a clarification\n *\n * It declares `suspendsForClarification`: a run that reaches a decision only the creator can make\n * checkpoints and waits on `/playbooks/suspended`. Inside this lane that child returns nothing and the\n * round records it; the lane runs whatever else is eligible (nothing, on a fresh application — every\n * other child needs the plan) and stops on NOTHING_ELIGIBLE. Answer the clarification, re-run the lane:\n * the resumed plan lands, and the next round has three eligible children.\n *\n * ## Interviews are answered in the DOSSIER\n *\n * `domain-plan` asks one question (tenancy) and `foundation` five (primary scope, operating entity,\n * operating jurisdictions, and the billing and SMS provider choices — #1488, answer `none` to decide later). A child whose interview the dossier does not answer is not eligible in\n * this run; the lane runs the rest and the board reports the leaf as waiting for the creator — the\n * same contract as the definition lane, for the same mechanical reason (#1454, Step 5).\n *\n * ## Loop-back — the mechanism exists; what declares it is a child, and this lane has none yet\n *\n * | signal | re-opens | how, once it can |\n * |---|---|---|\n * | placement's panel or judge names a module or resource the plan cannot route | `bottom_up.domain-plan` | a `step_available` gate on placement's verdict (#1498), the same shape as the market produce gate |\n * | the build lane's coherence GAP names a module or relationship | `bottom_up.domain-plan`, through the root | the root routes the build lane's verdict here (#1503, after #1497) |\n * | requirements or market newer than the landed plan | `bottom_up.domain-plan` | the staleness gate (#57) |\n *\n * Each is one additive declaration on the CHILD that re-runs — never on this lane, which declares\n * `admits` and not a child's preconditions. Both mechanisms landed 2026-09-22; what is missing is a\n * revise child to carry them, and `application-creation-directive.md` is why one has not been\n * authored: the lane has never been driven live, so a loop-back for a gap nobody has seen would be\n * three guesses about what a real one looks like. See the definition lane for the same reasoning\n * written out.\n *\n * ## The SURFACE plans are conception, not build (#1493, #1492, #1494 — joined 2026-09-22)\n *\n * `experience-plan`, `website-plan` and `documentation-plan` each decide what a surface CONTAINS —\n * the views and their interaction, the site's sections, the documentation's shape. They belong here\n * and not in the build lane for one mechanical reason: `bottom_up.build-decompose` declares all three\n * as INPUTS, so they are read when the build plan is authored. A surface planned after decomposition\n * is a surface the build plan has no task for.\n *\n * **Declared as inputs and NOT as preconditions, on the decomposer's side and on this lane's.** An\n * application with no website has no website plan, and a build that refused to decompose without one\n * would refuse every application that does not want a site. The capability composition is what says\n * whether each surface exists — which is why two of the three gate on it and the lane runs it first.\n *\n * ## `capability-composition` joined the lane the day it landed (#1491, 2026-09-22)\n *\n * It sits between the domain plan and the foundation, which is where the lane needed it: it decides\n * which of the composition scenarios an application needs, and the foundation is what applies\n * them. Its own gate is `artifact_expected: domain-plan` — SEQUENCING, so a creator may compose\n * before a plan exists and inside this lane it is offered from round one. The lane's intent is what\n * orders it after the plan, as it does for every other pair here.\n *\n * Its record is its own family, so it is marked delivered when it lands and is not re-offered; it\n * declares that family as an INPUT too, which is what lets a later run refine the composition rather\n * than restart it.\n */\nexport const playbookDefinition = {\n ref: 'bottom_up.conception',\n version: '0.1.2',\n phase: MetaWorkflow_Phase.BOTTOM_UP,\n intent:\n 'Drive the CONCEPTION of the application as one lane: the domain plan from the requirements and the market, the expert personas that staff the panels, the capability composition the application needs, the foundation composed from the plan and that composition, the surface plans for whatever the composition says this application presents — its experience, its website, its documentation — and the placement plan the panel decides — ending on one decision: the conception is accepted, or returned to the domain plan. An umbrella: it authors nothing itself; every child declares what it needs and the runtime recomputes what may run after each round. Select what is MISSING from the accepted truth shown to you. A child already on record whose inputs have not changed since it landed is not offered at all; every option is marked FIRST RUN, or REFRESH with the input that moved. The foundation and the expert personas are runner-owned steps that land no family: run each ONCE, when its inputs are on record, and do not spend a round on either again — the round history shows they ran. Run independent children in the same round. STOP when the placement plan is on record AND every surface the capability composition decided NEEDED (a website, a documentation portal) has its plan on record: the placement plan is this lane\\'s closing decision, but it needs only the domain plan, so it can land before a surface plan — and a surface decided and never planned is one the build decomposition emits no task for. A child whose interview the creator has not answered, or whose run suspended on a clarification, is not offered; run everything else and stop when nothing eligible advances the conception.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'requirements' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'market-snapshot' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_EXPECTED, selector: { family: 'roadmap' } },\n ],\n // For the SELECTOR (see the definition lane for why a composite's inputs reach exactly one reader):\n // the vision whole, everything else as a map of what exists.\n inputs: [\n { family: 'vision-brief' },\n { family: 'requirements', render: MetaWorkflow_InputRender.MAP },\n { family: 'market-snapshot', render: MetaWorkflow_InputRender.MAP },\n { family: 'roadmap', render: MetaWorkflow_InputRender.MAP },\n { family: 'business-model', render: MetaWorkflow_InputRender.MAP },\n { family: 'domain-plan', render: MetaWorkflow_InputRender.MAP },\n { family: 'placement-plan', render: MetaWorkflow_InputRender.MAP },\n /*\n * What the stop rule checks: a surface the composition decided NEEDED has its plan on record. The\n * composition is read WHOLE — one decision per scenario, and the dispositions are the point — and the two\n * surface plans as MAPS, which is enough to see that they exist and carry pages or chapters. Before\n * these, the selector was told to check something its brief did not contain.\n */\n { family: 'capability-composition' },\n { family: 'website-plan', render: MetaWorkflow_InputRender.MAP },\n { family: 'documentation-plan', render: MetaWorkflow_InputRender.MAP },\n ],\n // Nothing — the lane's write scope is resolved transitively through `admits`: domain-plan,\n // placement-plan, and the application itself (the foundation composes it in the working tree).\n outputs: [],\n method: {\n skillRefs: [],\n choreography: {\n /*\n * UNORDERED. Listed closing-move-first on purpose, the umbrellas' own trap check: read as a\n * sequence this would try to place modules before any plan named them, and fail loudly.\n */\n admits: [\n 'bottom_up.placement-plan',\n // The SURFACE plans — what the application presents, each over the composition that decided it\n // exists. They are conception, not build: the decomposer READS all three (#1493, #1492, #1494).\n 'bottom_up.documentation-plan',\n 'bottom_up.website-plan',\n 'bottom_up.experience-plan',\n /*\n * And what the application RUNS beside its backend — workers, minions, provider bindings\n * (#1495). Conception for the same reason as the three above, and it must come BEFORE the\n * foundation in practice rather than in this list: the foundation composes one package per\n * surface this plan declares, so a foundation that ran first composes none. The runtime\n * decides the order from each child's own preconditions; the ordering here is reading order.\n *\n * Its absence was measured 2026-09-22: the leaf existed, was audited, was named by no\n * composite, and a choreography's child set IS its `admits` — so the whole worker/minion\n * chain was unreachable in a journey while every test around it was green.\n */\n 'bottom_up.integration-plan',\n 'bottom_up.foundation',\n 'bottom_up.capability-composition',\n 'top_down.expert-personas',\n 'bottom_up.domain-plan',\n ],\n /*\n * One round per child on a fresh application (plan → personas + composition → foundation +\n * the three surface plans → placement = 5), plus a clarification suspension and a plan\n * re-derivation when placement sends it back. Twelve is headroom, not a plan. A breaker: it\n * stops a loop spinning, never refuses work.\n */\n maximumIterations: 12,\n maximumLanesPerIteration: 3,\n /*\n * Ninety minutes. Placement's panel runs three candidates through two reviewers, the foundation\n * composes scenarios and applies migrations, and a domain plan with a clarification round-trips\n * through the creator. Longer than the companion's HTTP ceiling (30 min): submit with\n * `async: true` and read the outcome from `/playbooks/runs`. Literal: the evaluator computes no\n * expressions.\n */\n maximumDurationMs: 5_400_000,\n },\n },\n /*\n * The lane's closing decision — the conception is accepted, or returned.\n *\n * LIVE since #111 landed: the runtime derives this lane's boundary from the field and the companion\n * projects one `approve_result` decision on the human-decision plane, which the posture then\n * resolves (YOLO notifies and proceeds). `onFailure` is read at the same boundary.\n */\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: {},\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  import { HumanDecision_FieldKind } from '@wildo-ai/saas-models';
2
- 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';
2
+ 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, MetaWorkflow_ElicitationQuestionDepth } from '@wildo-ai/saas-models/meta-workflows';
3
3
  import { MetaWorkflow_Phase, DomainPlanEvaluationCriterionRef, DomainPlanEvaluationEvidenceCoveragePolicyRef, DomainPlanEvaluationEvidenceFreshnessPolicyRef, DomainPlanEvaluationEvidenceRequirementRef, DomainPlanEvaluationEvidenceSubjectRef } from '@wildo-ai/saas-specifications/application-creation';
4
4
  export declare const playbookDefinition: {
5
5
  ref: string;
@@ -33,6 +33,7 @@ export declare const playbookDefinition: {
33
33
  question: string;
34
34
  kind: HumanDecision_FieldKind.CHOICE;
35
35
  options: string[];
36
+ depth: MetaWorkflow_ElicitationQuestionDepth.ESSENTIAL;
36
37
  }[];
37
38
  };
38
39
  };
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.domain-plan/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAK/B,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,EAEL,kBAAkB,EAClB,gCAAgC,EAChC,6CAA6C,EAC7C,8CAA8C,EAC9C,0CAA0C,EAC1C,sCAAsC,EAEvC,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+E9B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDW,CAAC;AAEvD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyRW,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.domain-plan/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAK/B,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,EAC1B,qCAAqC,EACtC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAEL,kBAAkB,EAClB,gCAAgC,EAChC,6CAA6C,EAC7C,8CAA8C,EAC9C,0CAA0C,EAC1C,sCAAsC,EAEvC,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+E9B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDW,CAAC;AAEvD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyRW,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { HumanDecision_FieldKind, } from '@wildo-ai/saas-models';
2
- 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';
2
+ 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, MetaWorkflow_ElicitationQuestionDepth, } from '@wildo-ai/saas-models/meta-workflows';
3
3
  import { MetaWorkflow_Phase, DomainPlanEvaluationCriterionRef, DomainPlanEvaluationEvidenceCoveragePolicyRef, DomainPlanEvaluationEvidenceFreshnessPolicyRef, DomainPlanEvaluationEvidenceRequirementRef, DomainPlanEvaluationEvidenceSubjectRef, } from '@wildo-ai/saas-specifications/application-creation';
4
4
  export const playbookDefinition = {
5
5
  ref: 'bottom_up.domain-plan',
6
- version: '0.2.1',
6
+ version: '0.3.0',
7
7
  phase: MetaWorkflow_Phase.BOTTOM_UP,
8
8
  intent: 'Turn the approved definition set into one atomic, planning-depth domain output set: module decomposition with per-module resource inventory plus typed inter-resource relationship intents. The output remains staged until deterministic validation, semantic evaluation and distinct result authority complete.',
9
9
  preconditions: [
@@ -66,7 +66,7 @@ export const playbookDefinition = {
66
66
  */
67
67
  question: 'Do people use this application together, in shared workspaces or teams, or does each person only see their own data? Choose organizations if they work together, users if each person\'s data is their own.',
68
68
  kind: HumanDecision_FieldKind.CHOICE,
69
- options: ['organizations', 'users'],
69
+ options: ['organizations', 'users'], depth: MetaWorkflow_ElicitationQuestionDepth.ESSENTIAL,
70
70
  },
71
71
  ],
72
72
  },
@@ -270,8 +270,8 @@ export const evaluationTreatmentSource = {
270
270
  {
271
271
  schemaVersion: 1,
272
272
  criterionRef: DomainPlanEvaluationCriterionRef.RELATIONSHIP_INTEGRITY,
273
- criterionVersion: 1,
274
- instruction: 'Assess whether the typed relationship intents are semantically necessary and coherent with the inventoried resources, conceptual cardinality and ownership direction. Do not resolve them into physical foreign keys.',
273
+ criterionVersion: 2,
274
+ instruction: 'Assess whether the typed relationship intents are semantically necessary and coherent with the inventoried resources, conceptual cardinality and ownership direction. Read every cardinality from the source resource to the target resource (how many sources to how many targets): an edge from the resource holding the reference to the resource it references, where many holders share one referenced row, is many-to-one and is correct. Deterministic validation has already refused a one-sided cardinality whose "one" end holds the reference; do not re-report that. Do not resolve the intents into physical foreign keys.',
275
275
  evidenceRequirements: [{
276
276
  schemaVersion: 1,
277
277
  requirementRef: DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.domain-plan/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAK/B,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,EAEL,kBAAkB,EAClB,gCAAgC,EAChC,6CAA6C,EAC7C,8CAA8C,EAC9C,0CAA0C,EAC1C,sCAAsC,GAEvC,MAAM,oDAAoD,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,uBAAuB;IAC5B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,SAAS;IACnC,MAAM,EACJ,mTAAmT;IACrT,aAAa,EAAE;QACb,EAAE,IAAI,EAAE,0BAA0B,CAAC,eAAe,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;QAC1F,EAAE,IAAI,EAAE,0BAA0B,CAAC,eAAe,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE;KAC9F;IACD,MAAM,EAAE;QACN,EAAE,MAAM,EAA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BAAiB,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 {\n HumanDecision_FieldKind,\n} from '@wildo-ai/saas-models';\nimport 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_FunctionalTopic,\n MetaWorkflow_Phase,\n DomainPlanEvaluationCriterionRef,\n DomainPlanEvaluationEvidenceCoveragePolicyRef,\n DomainPlanEvaluationEvidenceFreshnessPolicyRef,\n DomainPlanEvaluationEvidenceRequirementRef,\n DomainPlanEvaluationEvidenceSubjectRef,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'bottom_up.domain-plan',\n version: '0.2.1',\n phase: MetaWorkflow_Phase.BOTTOM_UP,\n intent:\n 'Turn the approved definition set into one atomic, planning-depth domain output set: module decomposition with per-module resource inventory plus typed inter-resource relationship intents. The output remains staged until deterministic validation, semantic evaluation and distinct result authority complete.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_EXISTS, selector: { family: 'requirements' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_EXISTS, selector: { family: 'market-snapshot' } },\n ],\n inputs: [\n { family: 'requirements' },\n // VALUE, not AUDIENCE (#1428): the method's load-bearing market input is the BENEFITS wired to their\n // delivering features (method.md:63-66). AUDIENCE removed exactly those and kept personas it never names.\n { family: 'market-snapshot', intent: MetaWorkflow_ArtifactIntent.VALUE },\n { family: 'feature-drafts' },\n { family: 'roadmap' },\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: 'domain-plan' },\n ],\n outputs: [\n {\n family: 'domain-plan',\n schemaRef: 'saas-specifications:DomainPlanOutputSet',\n description:\n 'THE atomic domain plan: the module decomposition AND the inter-resource relationship drafts, one value, one landed file. (The former separate relationship-drafts family was collapsed into this output 2026-08-24 — the two were never independently meaningful, and the deterministic validator crosses them.) A working edit until it is committed.',\n },\n ],\n method: {\n /*\n * The mid-run clarification channel, opt-in.\n *\n * This is where the decisions a product owner owns actually live: the tenancy model had to be\n * hard-coded as an interview question by hand, and the plan this playbook produced made\n * `next-step` one-to-one with two different parents — precisely the shape a derivation should\n * have stopped and asked about rather than choosing silently.\n */\n suspendsForClarification: true,\n skillRefs: ['resource-add-module', 'resource-add-resource', 'module-relationships'],\n /*\n * The tenancy question moved here from `bottom_up.foundation`, which runs AFTER this artifact\n * exists.\n *\n * Foundation's comment described the domain plan as deliberately scope-free, and that is true of\n * its FIELDS and false of its CONTENT: wonder-crm's plan (2026-08-27) modelled tenancy unasked —\n * a `workspace` module owning a `workspace` resource, a `team-membership` module owning\n * `workspace-member`, and `deal` referencing `workspace-member` for owner assignment. The creator\n * was asked \"organizations or users?\" afterwards, and answering `users` would have left two\n * modules and a relationship that nothing reconciles.\n *\n * So it is asked HERE, where the decision is first used, and the answer is carried in the\n * committed plan (`DomainPlanOutputSet.tenancy`) rather than in a run's transient answers.\n * Foundation reads the plan and only falls back to its own question for plans authored before\n * the field existed.\n */\n elicitation: {\n questions: [\n {\n ref: 'tenancy',\n /*\n * Written for the person answering it (#1454, gap 4): what it asks is whether people work\n * TOGETHER. What the answer switches on — the ORGANIZATIONS capability, every resource scoped\n * to an organization — is this step's business, stated in its method, not the creator's.\n */\n question:\n 'Do people use this application together, in shared workspaces or teams, or does each person only see their own data? Choose organizations if they work together, users if each person\\'s data is their own.',\n kind: HumanDecision_FieldKind.CHOICE,\n options: ['organizations', 'users'],\n },\n ],\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'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n\n/**\n * Portable generation boundary for the atomic domain-plan output set.\n *\n * The generic Driver stops at a validated candidate artifact. The existing\n * application-owned staging, semantic evaluation, result authority and\n * accepted-family mutation path remains the only destination-landing owner.\n */\nexport const structuredArtifactActionSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:structured-artifact-action/domain-plan-output-set',\n definitionVersion: 1,\n actionDefinition: {\n schemaVersion: 1,\n actionRef: 'application-creation:action/generate-domain-plan-output-set',\n actionVersion: 1,\n intentRef: 'application-creation:intent/derive-domain-plan-and-relationship-drafts',\n inputSelectorRefs: [\n 'application-creation:artifact-selector/accepted-vision-brief',\n 'application-creation:artifact-selector/accepted-market-snapshot',\n 'application-creation:artifact-selector/accepted-requirements',\n 'application-creation:artifact-selector/accepted-feature-drafts',\n 'application-creation:artifact-selector/accepted-roadmap',\n ],\n outcomeContractRefs: ['application-creation:output-contract/domain-plan-output-set'],\n effectSafetyPolicyRef: 'application-creation:effect-safety/candidate-artifact-before-domain-plan-staging',\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: null,\n budgetPolicyRef: 'application-creation:budget-policy/domain-plan-output-set-generation',\n continuationPolicyRef: 'application-creation:continuation-policy/domain-plan-output-set-generation',\n decisionPointDefinitionRefs: ['application-creation:decision-point/domain-plan-output-set-result'],\n },\n driverSelector: { driverRef: 'meta-workflow:driver/structured-artifact-action', driverVersion: 1 },\n inputProjectionContractSelector: {\n contractRef: 'application-creation:input-projection/accepted-domain-plan-definition-set',\n contractVersion: 1,\n },\n providerOutputSchemaSelector: { schemaRef: 'saas-specifications:schema/domain-plan-output-set-generation', schemaVersion: 1 },\n normalizationContractSelector: { contractRef: 'saas-specifications:normalizer/domain-plan-output-set-generation', contractVersion: 1 },\n outputContract: {\n schemaVersion: 1,\n outputContractRef: 'application-creation:output-contract/domain-plan-output-set',\n outputContractVersion: 1,\n outputSchemaSelector: { schemaRef: 'saas-specifications:schema/domain-plan-output-set', 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/domain-plan-output-set', contractVersion: 1 },\n acceptedArtifactClassificationRefs: ['application-creation:artifact-classification/candidate-atomic-domain-plan-output-set'],\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/domain-plan-output-set-result',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/domain-plan-output-set-result',\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-domain-plan-coherence-verdict',\n criteria: [\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.REQUIREMENT_COVERAGE,\n criterionVersion: 1,\n instruction:\n 'Determine whether every current-horizon functional requirement is served by at least one module capability and resource inventory. Treat a requirement without a resolvable module home as a material gap.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.REQUIREMENT_COVERAGE,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every current-horizon functional requirement has a coherent module and resource home.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Coverage is complete but one or more requirement-to-module links are weak or indirect.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one current-horizon functional requirement has no resolvable module home.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish complete requirement coverage.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.FEATURE_COVERAGE,\n criterionVersion: 1,\n instruction:\n 'Determine whether every feature draft and benefit-delivering feature is realizable by the proposed module capabilities and resource inventories. Do not infer a home from naming similarity alone.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.FEATURE_COVERAGE,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every feature and benefit-delivering capability has a resolvable domain home.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'All features have homes, but one or more mappings are weak or insufficiently explained.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one feature or benefit-delivering capability has no resolvable domain home.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish complete feature coverage.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.MODULE_JUSTIFICATION,\n criterionVersion: 1,\n instruction:\n 'Determine whether every proposed module is justified by accepted requirements or features and represents one coherent business capability. Flag speculative or mixed-purpose modules.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.MODULE_JUSTIFICATION,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every proposed module is justified and capability-coherent.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'One or more modules are weakly justified or combine boundaries that should be reconsidered.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one module is speculative or materially incoherent with the definition set.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish why every module exists.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.INVENTORY_PLAUSIBILITY,\n criterionVersion: 1,\n instruction:\n 'Assess whether main resources form each module semantic center, supporting resources remain genuinely supporting, and ownership boundaries are plausible. Deterministic uniqueness has already passed and must not be reinterpreted.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.INVENTORY_PLAUSIBILITY,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Each module inventory has a plausible semantic center and supporting boundary.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The inventories are usable but one or more main/supporting classifications are questionable.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one inventory materially contradicts its declared module capability.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish plausible module inventories.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.RELATIONSHIP_INTEGRITY,\n criterionVersion: 1,\n instruction:\n 'Assess whether the typed relationship intents are semantically necessary and coherent with the inventoried resources, conceptual cardinality and ownership direction. Do not resolve them into physical foreign keys.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The relationship intents coherently connect the proposed resource inventory.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The relationships are structurally valid but one or more semantic intents need refinement.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one necessary relationship is missing or one declared relationship is materially incoherent.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish semantic relationship integrity.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.BOUNDARY_DISCIPLINE,\n criterionVersion: 1,\n instruction:\n 'Determine whether the output remains at planning depth: modules, resource inventories and relationship intents only. Treat schema fields, concrete foreign-key placement or generated implementation code as scope leakage.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.BOUNDARY_DISCIPLINE,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The output remains within the declared planning-depth boundary.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The output is usable but contains limited premature implementation detail.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'The output materially crosses into schema, foreign-key or implementation authoring.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish the output depth boundary.',\n },\n },\n ],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/domain-plan-output-set-result',\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/domain-plan-output-set-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/domain-plan-output-set-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/domain-plan-output-set-structurally-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/domain-plan-accepted-landing',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/domain-plan-output-set-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-domain-plan-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/domain-plan-output-set-structurally-valid',\n evidenceRequirementRefs: [\n DomainPlanEvaluationEvidenceRequirementRef.BOUNDARY_DISCIPLINE,\n DomainPlanEvaluationEvidenceRequirementRef.FEATURE_COVERAGE,\n DomainPlanEvaluationEvidenceRequirementRef.INVENTORY_PLAUSIBILITY,\n DomainPlanEvaluationEvidenceRequirementRef.MODULE_JUSTIFICATION,\n DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,\n DomainPlanEvaluationEvidenceRequirementRef.REQUIREMENT_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/domain-plan-output-set-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-domain-plan-output-set',\n riskClassRef: 'application-creation:risk/domain-plan-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 DomainPlanEvaluationEvidenceRequirementRef.BOUNDARY_DISCIPLINE,\n DomainPlanEvaluationEvidenceRequirementRef.FEATURE_COVERAGE,\n DomainPlanEvaluationEvidenceRequirementRef.INVENTORY_PLAUSIBILITY,\n DomainPlanEvaluationEvidenceRequirementRef.MODULE_JUSTIFICATION,\n DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,\n DomainPlanEvaluationEvidenceRequirementRef.REQUIREMENT_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/domain-plan-output-set-result',\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/bottom_up.domain-plan/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAK/B,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,EAC1B,qCAAqC,GACtC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAEL,kBAAkB,EAClB,gCAAgC,EAChC,6CAA6C,EAC7C,8CAA8C,EAC9C,0CAA0C,EAC1C,sCAAsC,GAEvC,MAAM,oDAAoD,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,uBAAuB;IAC5B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,SAAS;IACnC,MAAM,EACJ,mTAAmT;IACrT,aAAa,EAAE;QACb,EAAE,IAAI,EAAE,0BAA0B,CAAC,eAAe,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;QAC1F,EAAE,IAAI,EAAE,0BAA0B,CAAC,eAAe,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE;KAC9F;IACD,MAAM,EAAE;QACN,EAAE,MAAM,EAAE,cAAc,EAAE;QAC1B,qGAAqG;QACrG,0GAA0G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BAAiB,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 {\n HumanDecision_FieldKind,\n} from '@wildo-ai/saas-models';\nimport 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 MetaWorkflow_ElicitationQuestionDepth,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_FunctionalTopic,\n MetaWorkflow_Phase,\n DomainPlanEvaluationCriterionRef,\n DomainPlanEvaluationEvidenceCoveragePolicyRef,\n DomainPlanEvaluationEvidenceFreshnessPolicyRef,\n DomainPlanEvaluationEvidenceRequirementRef,\n DomainPlanEvaluationEvidenceSubjectRef,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'bottom_up.domain-plan',\n version: '0.3.0',\n phase: MetaWorkflow_Phase.BOTTOM_UP,\n intent:\n 'Turn the approved definition set into one atomic, planning-depth domain output set: module decomposition with per-module resource inventory plus typed inter-resource relationship intents. The output remains staged until deterministic validation, semantic evaluation and distinct result authority complete.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_EXISTS, selector: { family: 'requirements' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_EXISTS, selector: { family: 'market-snapshot' } },\n ],\n inputs: [\n { family: 'requirements' },\n // VALUE, not AUDIENCE (#1428): the method's load-bearing market input is the BENEFITS wired to their\n // delivering features (method.md:63-66). AUDIENCE removed exactly those and kept personas it never names.\n { family: 'market-snapshot', intent: MetaWorkflow_ArtifactIntent.VALUE },\n { family: 'feature-drafts' },\n { family: 'roadmap' },\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: 'domain-plan' },\n ],\n outputs: [\n {\n family: 'domain-plan',\n schemaRef: 'saas-specifications:DomainPlanOutputSet',\n description:\n 'THE atomic domain plan: the module decomposition AND the inter-resource relationship drafts, one value, one landed file. (The former separate relationship-drafts family was collapsed into this output 2026-08-24 — the two were never independently meaningful, and the deterministic validator crosses them.) A working edit until it is committed.',\n },\n ],\n method: {\n /*\n * The mid-run clarification channel, opt-in.\n *\n * This is where the decisions a product owner owns actually live: the tenancy model had to be\n * hard-coded as an interview question by hand, and the plan this playbook produced made\n * `next-step` one-to-one with two different parents — precisely the shape a derivation should\n * have stopped and asked about rather than choosing silently.\n */\n suspendsForClarification: true,\n skillRefs: ['resource-add-module', 'resource-add-resource', 'module-relationships'],\n /*\n * The tenancy question moved here from `bottom_up.foundation`, which runs AFTER this artifact\n * exists.\n *\n * Foundation's comment described the domain plan as deliberately scope-free, and that is true of\n * its FIELDS and false of its CONTENT: wonder-crm's plan (2026-08-27) modelled tenancy unasked —\n * a `workspace` module owning a `workspace` resource, a `team-membership` module owning\n * `workspace-member`, and `deal` referencing `workspace-member` for owner assignment. The creator\n * was asked \"organizations or users?\" afterwards, and answering `users` would have left two\n * modules and a relationship that nothing reconciles.\n *\n * So it is asked HERE, where the decision is first used, and the answer is carried in the\n * committed plan (`DomainPlanOutputSet.tenancy`) rather than in a run's transient answers.\n * Foundation reads the plan and only falls back to its own question for plans authored before\n * the field existed.\n */\n elicitation: {\n questions: [\n {\n ref: 'tenancy',\n /*\n * Written for the person answering it (#1454, gap 4): what it asks is whether people work\n * TOGETHER. What the answer switches on — the ORGANIZATIONS capability, every resource scoped\n * to an organization — is this step's business, stated in its method, not the creator's.\n */\n question:\n 'Do people use this application together, in shared workspaces or teams, or does each person only see their own data? Choose organizations if they work together, users if each person\\'s data is their own.',\n kind: HumanDecision_FieldKind.CHOICE,\n options: ['organizations', 'users'], depth: MetaWorkflow_ElicitationQuestionDepth.ESSENTIAL,\n },\n ],\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'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n\n/**\n * Portable generation boundary for the atomic domain-plan output set.\n *\n * The generic Driver stops at a validated candidate artifact. The existing\n * application-owned staging, semantic evaluation, result authority and\n * accepted-family mutation path remains the only destination-landing owner.\n */\nexport const structuredArtifactActionSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:structured-artifact-action/domain-plan-output-set',\n definitionVersion: 1,\n actionDefinition: {\n schemaVersion: 1,\n actionRef: 'application-creation:action/generate-domain-plan-output-set',\n actionVersion: 1,\n intentRef: 'application-creation:intent/derive-domain-plan-and-relationship-drafts',\n inputSelectorRefs: [\n 'application-creation:artifact-selector/accepted-vision-brief',\n 'application-creation:artifact-selector/accepted-market-snapshot',\n 'application-creation:artifact-selector/accepted-requirements',\n 'application-creation:artifact-selector/accepted-feature-drafts',\n 'application-creation:artifact-selector/accepted-roadmap',\n ],\n outcomeContractRefs: ['application-creation:output-contract/domain-plan-output-set'],\n effectSafetyPolicyRef: 'application-creation:effect-safety/candidate-artifact-before-domain-plan-staging',\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: null,\n budgetPolicyRef: 'application-creation:budget-policy/domain-plan-output-set-generation',\n continuationPolicyRef: 'application-creation:continuation-policy/domain-plan-output-set-generation',\n decisionPointDefinitionRefs: ['application-creation:decision-point/domain-plan-output-set-result'],\n },\n driverSelector: { driverRef: 'meta-workflow:driver/structured-artifact-action', driverVersion: 1 },\n inputProjectionContractSelector: {\n contractRef: 'application-creation:input-projection/accepted-domain-plan-definition-set',\n contractVersion: 1,\n },\n providerOutputSchemaSelector: { schemaRef: 'saas-specifications:schema/domain-plan-output-set-generation', schemaVersion: 1 },\n normalizationContractSelector: { contractRef: 'saas-specifications:normalizer/domain-plan-output-set-generation', contractVersion: 1 },\n outputContract: {\n schemaVersion: 1,\n outputContractRef: 'application-creation:output-contract/domain-plan-output-set',\n outputContractVersion: 1,\n outputSchemaSelector: { schemaRef: 'saas-specifications:schema/domain-plan-output-set', 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/domain-plan-output-set', contractVersion: 1 },\n acceptedArtifactClassificationRefs: ['application-creation:artifact-classification/candidate-atomic-domain-plan-output-set'],\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/domain-plan-output-set-result',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/domain-plan-output-set-result',\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-domain-plan-coherence-verdict',\n criteria: [\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.REQUIREMENT_COVERAGE,\n criterionVersion: 1,\n instruction:\n 'Determine whether every current-horizon functional requirement is served by at least one module capability and resource inventory. Treat a requirement without a resolvable module home as a material gap.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.REQUIREMENT_COVERAGE,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every current-horizon functional requirement has a coherent module and resource home.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Coverage is complete but one or more requirement-to-module links are weak or indirect.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one current-horizon functional requirement has no resolvable module home.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish complete requirement coverage.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.FEATURE_COVERAGE,\n criterionVersion: 1,\n instruction:\n 'Determine whether every feature draft and benefit-delivering feature is realizable by the proposed module capabilities and resource inventories. Do not infer a home from naming similarity alone.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.FEATURE_COVERAGE,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every feature and benefit-delivering capability has a resolvable domain home.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'All features have homes, but one or more mappings are weak or insufficiently explained.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one feature or benefit-delivering capability has no resolvable domain home.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish complete feature coverage.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.MODULE_JUSTIFICATION,\n criterionVersion: 1,\n instruction:\n 'Determine whether every proposed module is justified by accepted requirements or features and represents one coherent business capability. Flag speculative or mixed-purpose modules.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.MODULE_JUSTIFICATION,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every proposed module is justified and capability-coherent.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'One or more modules are weakly justified or combine boundaries that should be reconsidered.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one module is speculative or materially incoherent with the definition set.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish why every module exists.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.INVENTORY_PLAUSIBILITY,\n criterionVersion: 1,\n instruction:\n 'Assess whether main resources form each module semantic center, supporting resources remain genuinely supporting, and ownership boundaries are plausible. Deterministic uniqueness has already passed and must not be reinterpreted.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.INVENTORY_PLAUSIBILITY,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Each module inventory has a plausible semantic center and supporting boundary.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The inventories are usable but one or more main/supporting classifications are questionable.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one inventory materially contradicts its declared module capability.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish plausible module inventories.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.RELATIONSHIP_INTEGRITY,\n criterionVersion: 2,\n instruction:\n 'Assess whether the typed relationship intents are semantically necessary and coherent with the inventoried resources, conceptual cardinality and ownership direction. Read every cardinality from the source resource to the target resource (how many sources to how many targets): an edge from the resource holding the reference to the resource it references, where many holders share one referenced row, is many-to-one and is correct. Deterministic validation has already refused a one-sided cardinality whose \"one\" end holds the reference; do not re-report that. Do not resolve the intents into physical foreign keys.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The relationship intents coherently connect the proposed resource inventory.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The relationships are structurally valid but one or more semantic intents need refinement.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one necessary relationship is missing or one declared relationship is materially incoherent.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish semantic relationship integrity.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.BOUNDARY_DISCIPLINE,\n criterionVersion: 1,\n instruction:\n 'Determine whether the output remains at planning depth: modules, resource inventories and relationship intents only. Treat schema fields, concrete foreign-key placement or generated implementation code as scope leakage.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.BOUNDARY_DISCIPLINE,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The output remains within the declared planning-depth boundary.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The output is usable but contains limited premature implementation detail.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'The output materially crosses into schema, foreign-key or implementation authoring.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish the output depth boundary.',\n },\n },\n ],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/domain-plan-output-set-result',\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/domain-plan-output-set-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/domain-plan-output-set-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/domain-plan-output-set-structurally-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/domain-plan-accepted-landing',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/domain-plan-output-set-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-domain-plan-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/domain-plan-output-set-structurally-valid',\n evidenceRequirementRefs: [\n DomainPlanEvaluationEvidenceRequirementRef.BOUNDARY_DISCIPLINE,\n DomainPlanEvaluationEvidenceRequirementRef.FEATURE_COVERAGE,\n DomainPlanEvaluationEvidenceRequirementRef.INVENTORY_PLAUSIBILITY,\n DomainPlanEvaluationEvidenceRequirementRef.MODULE_JUSTIFICATION,\n DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,\n DomainPlanEvaluationEvidenceRequirementRef.REQUIREMENT_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/domain-plan-output-set-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-domain-plan-output-set',\n riskClassRef: 'application-creation:risk/domain-plan-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 DomainPlanEvaluationEvidenceRequirementRef.BOUNDARY_DISCIPLINE,\n DomainPlanEvaluationEvidenceRequirementRef.FEATURE_COVERAGE,\n DomainPlanEvaluationEvidenceRequirementRef.INVENTORY_PLAUSIBILITY,\n DomainPlanEvaluationEvidenceRequirementRef.MODULE_JUSTIFICATION,\n DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,\n DomainPlanEvaluationEvidenceRequirementRef.REQUIREMENT_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/domain-plan-output-set-result',\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"]}
@@ -51,6 +51,7 @@ export declare const playbookDefinition: {
51
51
  readonly question: "Do people use this application together, in shared workspaces or teams, or does each person only see their own data? Choose organizations if they work together, users if each person's data is their own.";
52
52
  readonly kind: "choice";
53
53
  readonly options: readonly ["organizations", "users"];
54
+ readonly depth: "essential";
54
55
  readonly sameDecisionAs: {
55
56
  readonly playbookRef: "bottom_up.domain-plan";
56
57
  readonly questionRef: "tenancy";
@@ -59,20 +60,27 @@ export declare const playbookDefinition: {
59
60
  readonly ref: "operating-entity";
60
61
  readonly question: "Which legal entity operates this service? Give the registered company name, its registered address, and the route a person uses to reach you about privacy (an email, a URL or a postal address). Answer only the parts you actually know today — anything you leave out is recorded as outstanding and nothing is blocked by it. Do NOT supply a placeholder or a plausible-looking value: a produced privacy notice quotes these as fact, and the address is what a person would use to serve a legal request on a real company.";
61
62
  readonly kind: "free_text";
63
+ readonly depth: "essential";
64
+ readonly whenUnknown: "ask";
65
+ readonly regulatedDomain: true;
62
66
  }, {
63
67
  readonly ref: "operating-jurisdictions";
64
68
  readonly question: "Which jurisdictions does this application operate in, and why does each one reach it — are you established there, do you sell there, or do you hold data about people there? Use country codes (`fr`, `us`), the supranational `eu`, or a subdivision (`us-ca`). Answer \"not decided\" if the market is genuinely unsettled; an absent answer is read as unanswered, never as \"nowhere\".";
65
69
  readonly kind: "free_text";
70
+ readonly depth: "essential";
71
+ readonly regulatedDomain: true;
66
72
  }, {
67
73
  readonly ref: "billing-provider";
68
74
  readonly question: "Which billing provider should this application charge its users through? Answer `none` to decide later; the capability stays off until a provider is chosen.";
69
75
  readonly kind: "choice";
70
76
  readonly options: readonly ["stripe", "none"];
77
+ readonly depth: "detail";
71
78
  }, {
72
79
  readonly ref: "sms-provider";
73
80
  readonly question: "Which SMS provider should this application send text messages through (phone verification, SMS second factor)? Answer `none` if the product sends no SMS, or to decide later.";
74
81
  readonly kind: "choice";
75
82
  readonly options: readonly ["twilio", "none"];
83
+ readonly depth: "detail";
76
84
  }];
77
85
  };
78
86
  };
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.foundation/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsMrB,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.foundation/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8MrB,CAAC"}
@@ -125,6 +125,7 @@ export const playbookDefinition = {
125
125
  "question": "Do people use this application together, in shared workspaces or teams, or does each person only see their own data? Choose organizations if they work together, users if each person's data is their own.",
126
126
  "kind": "choice",
127
127
  "options": ["organizations", "users"],
128
+ "depth": "essential",
128
129
  /*
129
130
  * ONE decision, asked once (#1454, gap 4): the domain plan's tenancy question owns it, and
130
131
  * this fallback reads that answer. The dossier listed the two as separate open questions,
@@ -161,12 +162,17 @@ export const playbookDefinition = {
161
162
  {
162
163
  "ref": "operating-entity",
163
164
  "question": "Which legal entity operates this service? Give the registered company name, its registered address, and the route a person uses to reach you about privacy (an email, a URL or a postal address). Answer only the parts you actually know today — anything you leave out is recorded as outstanding and nothing is blocked by it. Do NOT supply a placeholder or a plausible-looking value: a produced privacy notice quotes these as fact, and the address is what a person would use to serve a legal request on a real company.",
164
- "kind": "free_text"
165
+ "kind": "free_text",
166
+ "depth": "essential",
167
+ "whenUnknown": "ask",
168
+ "regulatedDomain": true
165
169
  },
166
170
  {
167
171
  "ref": "operating-jurisdictions",
168
172
  "question": "Which jurisdictions does this application operate in, and why does each one reach it — are you established there, do you sell there, or do you hold data about people there? Use country codes (`fr`, `us`), the supranational `eu`, or a subdivision (`us-ca`). Answer \"not decided\" if the market is genuinely unsettled; an absent answer is read as unanswered, never as \"nowhere\".",
169
- "kind": "free_text"
173
+ "kind": "free_text",
174
+ "depth": "essential",
175
+ "regulatedDomain": true
170
176
  },
171
177
  /*
172
178
  * The creator's PROVIDER choices (#1488). Which vendor an application charges or texts through is
@@ -188,13 +194,15 @@ export const playbookDefinition = {
188
194
  "ref": "billing-provider",
189
195
  "question": "Which billing provider should this application charge its users through? Answer `none` to decide later; the capability stays off until a provider is chosen.",
190
196
  "kind": "choice",
191
- "options": ["stripe", "none"]
197
+ "options": ["stripe", "none"],
198
+ "depth": "detail"
192
199
  },
193
200
  {
194
201
  "ref": "sms-provider",
195
202
  "question": "Which SMS provider should this application send text messages through (phone verification, SMS second factor)? Answer `none` if the product sends no SMS, or to decide later.",
196
203
  "kind": "choice",
197
- "options": ["twilio", "none"]
204
+ "options": ["twilio", "none"],
205
+ "depth": "detail"
198
206
  }
199
207
  ]
200
208
  }
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.foundation/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ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,UAAU,EAAE,ogBAAogB;oBAChhB,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,yBAAyB;oBAChC,UAAU,EAAE,6XAA6X;oBACzY,MAAM,EAAE,WAAW;iBACpB;gBACD;;;;;;;;;;;;;;;mBAeG;gBACH;oBACE,KAAK,EAAE,kBAAkB;oBACzB,UAAU,EAAE,8JAA8J;oBAC1K,MAAM,EAAE,QAAQ;oBAChB,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;iBAC9B;gBACD;oBACE,KAAK,EAAE,cAAc;oBACrB,UAAU,EAAE,+KAA+K;oBAC3L,MAAM,EAAE,QAAQ;oBAChB,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;iBAC9B;aACF;SACF;KACF;IACC,UAAU,EAAE,gBAAgB;IAC9B,QAAQ,EAAE;QACR,SAAS,EAAE,CAAC;KACb;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * The structured method remains intentionally rich: its intent, inputs, output\n * contracts, elicitation, deterministic verification and skill routing are the\n * application knowledge a later generic assessment loop composes. This source\n * intentionally omits the superseded per-playbook evaluation-treatment object;\n * generation records that absence rather than fabricating legacy judge behavior.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.foundation\",\n \"version\": \"0.2.5\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Bottom-up foundation \\u2014 turn the approved domain plan and top-down definitions into a configured, bootable application skeleton. For a fresh application, use wildo init in an empty destination before refining its generated configuration; preserve existing projects and use their repair/composition paths. Author capabilities, modules and providers from the approved plan, verify application knowledge delivery (wildo assets sync refreshes installed assets), then run wildo setup --non-interactive and wildo local init with their prerequisites. These tools exist; their successful invocation and postconditions must be observed in the current run. The registered foundation executor composes module/resource shells and tenancy configuration; it does not run this full init/assets/setup sequence. This methodology states the prerequisites and postconditions to fulfil around that execution. It emits no artifact: the deliverable is the application source, configured module registrations and verified initialization. Record the reasons for configuration choices beside those choices. Runs after the domain plan is approved in the bottom_up phase; business resource implementation belongs to the later build work.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"domain-plan\" } },\n /*\n * SEQUENCING, not readiness (#1434). `artifact_exists` asserts this playbook needs the vision's\n * CONTENT, and it does not read a word of it: the run short-circuits into the foundation\n * executor before any brief is composed, and the executor reads the domain plan and the landed\n * business model. The audit rule that reports a readiness gate whose family is undeclared named\n * both remedies — declare it, or weaken the gate \"if the order is all that matters\" — and here\n * the order is all that matters.\n *\n * Nothing is lost by weakening it. The vision is enforced TRANSITIVELY and harder than this gate\n * ever did: `top_down.market-snapshot-produce` and `top_down.requirements-definition` both gate\n * on `vision-brief` at readiness, and `bottom_up.domain-plan` gates on both of those — so an\n * approved domain plan, which this playbook DOES require at readiness, cannot exist without one.\n */\n { \"kind\": \"artifact_expected\", \"selector\": { \"family\": \"vision-brief\" } },\n /*\n * CONTENT, not sequencing — and this gate is why (#1544).\n *\n * `appendBackgroundExecutionScenarios` composes one `add-worker-node` / `add-worker-rust` /\n * `add-minion` per surface the INTEGRATION PLAN declares, deriving every variable from that\n * declaration. It reads the plan leniently on purpose: absent or unparseable means the\n * application declares nothing to run beside its backend, which is the ordinary case. That\n * leniency is correct and stays — what it cannot do is tell \"declares nothing\" from \"has not\n * been produced yet\", and both come back as silence.\n *\n * Measured on the first end-to-end run: this playbook ran at 06:58:03 and concluded three\n * seconds later; `bottom_up.integration-plan` started at 06:58:47 — 44 seconds AFTER — and\n * declared one minion, `minion-compose-weekly-team-digest`. Nothing was composed. The build\n * decomposer then emitted `build-task-weekly-digest-minion` against a package that no step\n * would ever create, and nine hours later there was still no `minions/` directory and\n * `applicationMinions = {}`.\n *\n * `artifact_exists` rather than `artifact_expected`, by the distinction the vision gate above\n * draws: this playbook reads the plan's CONTENT, not merely its position in the order.\n *\n * Safe to gate on. The integration-plan playbook produces a plan for every application,\n * `workers: []` and `minions: []` included — an application with no background execution is a\n * plan that says so, not an absent one. So this cannot make the foundation permanently\n * ineligible; it can only hold it until the answer exists.\n */\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"integration-plan\" } },\n /*\n * The same gate for the same reason, one input over. `capability-composition` decides which\n * scenarios are NEEDED — the loop above it throws when a scenario is marked needed and the\n * foundation has no invocation for it — so composing before it lands composes from an empty\n * decision set, silently and with the same shape. Not measured failing; gated because it is the\n * same invariant at its other site (`invariant-call-site-enumeration.md`).\n */\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"capability-composition\" } }\n ],\n /*\n * TWO, measured rather than aspirational (#1434) — THREE since #1491, see the third entry.\n *\n * This playbook does not compose a brief at all: `executePlaybookRun` short-circuits it into the\n * foundation executor before any section is composed, so a declared input reaches no model. The\n * executor reads the domain plan (handed to it) and the landed business model (read itself), and\n * derives the three capabilities that are derivable from those two values.\n *\n * `vision-brief`, `market-snapshot`, `requirements` and `roadmap` were declared and reached\n * nothing — while the method told a reader that the vision's compliance constraints were \"the\n * primary driver of capability selection\". A declaration nothing reads is a promise nothing\n * keeps, and four of the six were exactly that.\n *\n * `vision-brief` stays a PRECONDITION, which is a different statement: the foundation must not run\n * before a vision exists, and that gate is real whether or not anything reads its content here.\n */\n \"inputs\": [\n { \"family\": \"domain-plan\" },\n { \"family\": \"business-model\" },\n /*\n * THIRD, since #1491: which optional packages (the website, the documentation portal) this\n * application needs, decided by `bottom_up.capability-composition` and applied here after the\n * domain scenarios. An INPUT, not a precondition, for the same reason as the business model: a\n * foundation run with no composition yet composes the domain and applies no optional package,\n * and the executor reads it through the `capabilityComposition` slot rather than a brief.\n */\n { \"family\": \"capability-composition\" },\n /*\n * FOURTH, since #1495: what runs beside the backend. The executor fans one `add-worker-node`,\n * `add-worker-rust` or `add-minion` out of this plan per surface it declares — the same shape as\n * the module and resource fan-out, and an INPUT for the same reason as the two above: a run with\n * no integration plan composes no background package, and a plan landing later re-stales this\n * step rather than gating it.\n */\n { \"family\": \"integration-plan\" }\n ],\n \"outputs\": [],\n \"method\": {\n \"skillRefs\": [\n \"config-saas\",\n \"module-registration\",\n \"infra-environment-config\",\n \"local-environment-bootstrap\",\n \"application-database-migrations\"\n ],\n \"elicitation\": {\n \"questions\": [\n /*\n * THE FALLBACK, since 2026-08-28. `bottom_up.domain-plan` now asks this and carries the\n * answer in the committed plan (`DomainPlanOutputSet.tenancy`), because the plan MODELS\n * tenancy — wonder-crm's invented a workspace module and a membership before anyone was\n * asked — so asking after the model is shaped lets a second answer contradict it.\n *\n * The executor reads the plan first and reaches this question only for a plan authored\n * before the field existed. Keep it: those plans are real (wonder-crm, wonder-todos) and\n * must stay composable.\n */\n {\n \"ref\": \"primary-scope\",\n \"question\": \"Do people use this application together, in shared workspaces or teams, or does each person only see their own data? Choose organizations if they work together, users if each person's data is their own.\",\n \"kind\": \"choice\",\n \"options\": [\"organizations\", \"users\"],\n /*\n * ONE decision, asked once (#1454, gap 4): the domain plan's tenancy question owns it, and\n * this fallback reads that answer. The dossier listed the two as separate open questions,\n * worded differently, for the same choice.\n */\n \"sameDecisionAs\": { \"playbookRef\": \"bottom_up.domain-plan\", \"questionRef\": \"tenancy\" }\n },\n /*\n * The operator's own legal identity (issue #235), asked HERE because this is the playbook that\n * writes `wildo.saas.config.ts` and already carries the `config-saas` skill — an answer\n * elicited anywhere else would have nowhere to land, since a companion-agent playbook produces\n * an artifact and writes no files.\n *\n * KEPT on 2026-09-22 (#1454, Step 5), after \"bind them to the typed config keys, or stop\n * asking\" was weighed. The executor reads neither answer — it reads only `primary-scope` —\n * and the questions are nonetheless the elicitation path into a typed, committed key, which\n * is what `compliance-is-derived-from-the-product.md` rule 2 asks for (never a form that\n * stays a form). What changed is where the answers LIVE: the DOSSIER keeps them, so they are\n * asked once and read by every run that needs them.\n *\n * CORRECTED 2026-09-22 (#1434), same day: that reasoning originally said \"this is a\n * CODING-AGENT playbook, and the agent's brief carries the rendered interview\". This playbook\n * composes NO BRIEF — `executePlaybookRun` short-circuits it into the foundation executor\n * before any section is composed — so no agent reads `method.md` Step 4 here. The decision to\n * keep the questions stands on the dossier, which is a real reader; the delivery path named\n * beside it was not.\n *\n * Both questions are deliberately ANSWERABLE IN PART. Every part of\n * `operatorComplianceIdentity` is independently declarable (#228), so a creator who knows the\n * registered name and not the lawful bases records the name — and Paul's decision (#225) is\n * explicit that filling the entity must never block. A question that demanded the whole thing\n * would reintroduce the blocking this lane just removed, one layer up.\n */\n {\n \"ref\": \"operating-entity\",\n \"question\": \"Which legal entity operates this service? Give the registered company name, its registered address, and the route a person uses to reach you about privacy (an email, a URL or a postal address). Answer only the parts you actually know today — anything you leave out is recorded as outstanding and nothing is blocked by it. Do NOT supply a placeholder or a plausible-looking value: a produced privacy notice quotes these as fact, and the address is what a person would use to serve a legal request on a real company.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"operating-jurisdictions\",\n \"question\": \"Which jurisdictions does this application operate in, and why does each one reach it — are you established there, do you sell there, or do you hold data about people there? Use country codes (`fr`, `us`), the supranational `eu`, or a subdivision (`us-ca`). Answer \\\"not decided\\\" if the market is genuinely unsettled; an absent answer is read as unanswered, never as \\\"nowhere\\\".\",\n \"kind\": \"free_text\"\n },\n /*\n * The creator's PROVIDER choices (#1488). Which vendor an application charges or texts through is\n * a class-3 product decision — the field does not converge on one answer — so it is asked, as a\n * typed CHOICE, and the answer is kept in the dossier and read by the foundation executor, which\n * declares the provider, selects it as primary and enables the capability. The credentials the\n * provider needs are recorded as OWED on the run result: the boot floor reads declaration and\n * selection, never secrets, so the application boots and the provider answers once they are set.\n *\n * The OPTIONS are the engine providers serving the capability (ENGINE origin, backend scope), and\n * `foundation-executor.companion.service.test.ts` pins these authored lists to that derivation plus the\n * `none` member, so a vendor added to the catalogue fails the pin until it is offered here.\n *\n * `none` is an OPTION, not an absence: the elicitation contract refuses a run whose interview is not\n * fully answered, and a CHOICE accepts only its options, so \"decide later\" has to be sayable. It leaves\n * the capability owed exactly as before (#1272).\n */\n {\n \"ref\": \"billing-provider\",\n \"question\": \"Which billing provider should this application charge its users through? Answer `none` to decide later; the capability stays off until a provider is chosen.\",\n \"kind\": \"choice\",\n \"options\": [\"stripe\", \"none\"]\n },\n {\n \"ref\": \"sms-provider\",\n \"question\": \"Which SMS provider should this application send text messages through (phone verification, SMS second factor)? Answer `none` if the product sends no SMS, or to decide later.\",\n \"kind\": \"choice\",\n \"options\": [\"twilio\", \"none\"]\n }\n ]\n }\n },\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.foundation/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,gsCAAgsC;IAC1sC,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE;QACtE;;;;;;;;;;;;WAYG;QACH,EAAE,MAAM,EAAE,mBAAmB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE;QACzE;;;;;;;;;;;;;;;;;;;;;;;;WAwBG;QACH,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE;QAC3E;;;;;;WAMG;QACH,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,wBAAwB,EAAE,EAAE;KAClF;IACD;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,aAAa,EAAE;QAC3B,EAAE,QAAQ,EAAE,gBAAgB,EAAE;QAC9B;;;;;;WAMG;QACH,EAAE,QAA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CAAC;oBAC7B,OAAO,EAAE,QAAQ;iBAClB;aACF;SACF;KACF;IACC,UAAU,EAAE,gBAAgB;IAC9B,QAAQ,EAAE;QACR,SAAS,EAAE,CAAC;KACb;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * The structured method remains intentionally rich: its intent, inputs, output\n * contracts, elicitation, deterministic verification and skill routing are the\n * application knowledge a later generic assessment loop composes. This source\n * intentionally omits the superseded per-playbook evaluation-treatment object;\n * generation records that absence rather than fabricating legacy judge behavior.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.foundation\",\n \"version\": \"0.2.5\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Bottom-up foundation \\u2014 turn the approved domain plan and top-down definitions into a configured, bootable application skeleton. For a fresh application, use wildo init in an empty destination before refining its generated configuration; preserve existing projects and use their repair/composition paths. Author capabilities, modules and providers from the approved plan, verify application knowledge delivery (wildo assets sync refreshes installed assets), then run wildo setup --non-interactive and wildo local init with their prerequisites. These tools exist; their successful invocation and postconditions must be observed in the current run. The registered foundation executor composes module/resource shells and tenancy configuration; it does not run this full init/assets/setup sequence. This methodology states the prerequisites and postconditions to fulfil around that execution. It emits no artifact: the deliverable is the application source, configured module registrations and verified initialization. Record the reasons for configuration choices beside those choices. Runs after the domain plan is approved in the bottom_up phase; business resource implementation belongs to the later build work.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"domain-plan\" } },\n /*\n * SEQUENCING, not readiness (#1434). `artifact_exists` asserts this playbook needs the vision's\n * CONTENT, and it does not read a word of it: the run short-circuits into the foundation\n * executor before any brief is composed, and the executor reads the domain plan and the landed\n * business model. The audit rule that reports a readiness gate whose family is undeclared named\n * both remedies — declare it, or weaken the gate \"if the order is all that matters\" — and here\n * the order is all that matters.\n *\n * Nothing is lost by weakening it. The vision is enforced TRANSITIVELY and harder than this gate\n * ever did: `top_down.market-snapshot-produce` and `top_down.requirements-definition` both gate\n * on `vision-brief` at readiness, and `bottom_up.domain-plan` gates on both of those — so an\n * approved domain plan, which this playbook DOES require at readiness, cannot exist without one.\n */\n { \"kind\": \"artifact_expected\", \"selector\": { \"family\": \"vision-brief\" } },\n /*\n * CONTENT, not sequencing — and this gate is why (#1544).\n *\n * `appendBackgroundExecutionScenarios` composes one `add-worker-node` / `add-worker-rust` /\n * `add-minion` per surface the INTEGRATION PLAN declares, deriving every variable from that\n * declaration. It reads the plan leniently on purpose: absent or unparseable means the\n * application declares nothing to run beside its backend, which is the ordinary case. That\n * leniency is correct and stays — what it cannot do is tell \"declares nothing\" from \"has not\n * been produced yet\", and both come back as silence.\n *\n * Measured on the first end-to-end run: this playbook ran at 06:58:03 and concluded three\n * seconds later; `bottom_up.integration-plan` started at 06:58:47 — 44 seconds AFTER — and\n * declared one minion, `minion-compose-weekly-team-digest`. Nothing was composed. The build\n * decomposer then emitted `build-task-weekly-digest-minion` against a package that no step\n * would ever create, and nine hours later there was still no `minions/` directory and\n * `applicationMinions = {}`.\n *\n * `artifact_exists` rather than `artifact_expected`, by the distinction the vision gate above\n * draws: this playbook reads the plan's CONTENT, not merely its position in the order.\n *\n * Safe to gate on. The integration-plan playbook produces a plan for every application,\n * `workers: []` and `minions: []` included — an application with no background execution is a\n * plan that says so, not an absent one. So this cannot make the foundation permanently\n * ineligible; it can only hold it until the answer exists.\n */\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"integration-plan\" } },\n /*\n * The same gate for the same reason, one input over. `capability-composition` decides which\n * scenarios are NEEDED — the loop above it throws when a scenario is marked needed and the\n * foundation has no invocation for it — so composing before it lands composes from an empty\n * decision set, silently and with the same shape. Not measured failing; gated because it is the\n * same invariant at its other site (`invariant-call-site-enumeration.md`).\n */\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"capability-composition\" } }\n ],\n /*\n * TWO, measured rather than aspirational (#1434) — THREE since #1491, see the third entry.\n *\n * This playbook does not compose a brief at all: `executePlaybookRun` short-circuits it into the\n * foundation executor before any section is composed, so a declared input reaches no model. The\n * executor reads the domain plan (handed to it) and the landed business model (read itself), and\n * derives the three capabilities that are derivable from those two values.\n *\n * `vision-brief`, `market-snapshot`, `requirements` and `roadmap` were declared and reached\n * nothing — while the method told a reader that the vision's compliance constraints were \"the\n * primary driver of capability selection\". A declaration nothing reads is a promise nothing\n * keeps, and four of the six were exactly that.\n *\n * `vision-brief` stays a PRECONDITION, which is a different statement: the foundation must not run\n * before a vision exists, and that gate is real whether or not anything reads its content here.\n */\n \"inputs\": [\n { \"family\": \"domain-plan\" },\n { \"family\": \"business-model\" },\n /*\n * THIRD, since #1491: which optional packages (the website, the documentation portal) this\n * application needs, decided by `bottom_up.capability-composition` and applied here after the\n * domain scenarios. An INPUT, not a precondition, for the same reason as the business model: a\n * foundation run with no composition yet composes the domain and applies no optional package,\n * and the executor reads it through the `capabilityComposition` slot rather than a brief.\n */\n { \"family\": \"capability-composition\" },\n /*\n * FOURTH, since #1495: what runs beside the backend. The executor fans one `add-worker-node`,\n * `add-worker-rust` or `add-minion` out of this plan per surface it declares — the same shape as\n * the module and resource fan-out, and an INPUT for the same reason as the two above: a run with\n * no integration plan composes no background package, and a plan landing later re-stales this\n * step rather than gating it.\n */\n { \"family\": \"integration-plan\" }\n ],\n \"outputs\": [],\n \"method\": {\n \"skillRefs\": [\n \"config-saas\",\n \"module-registration\",\n \"infra-environment-config\",\n \"local-environment-bootstrap\",\n \"application-database-migrations\"\n ],\n \"elicitation\": {\n \"questions\": [\n /*\n * THE FALLBACK, since 2026-08-28. `bottom_up.domain-plan` now asks this and carries the\n * answer in the committed plan (`DomainPlanOutputSet.tenancy`), because the plan MODELS\n * tenancy — wonder-crm's invented a workspace module and a membership before anyone was\n * asked — so asking after the model is shaped lets a second answer contradict it.\n *\n * The executor reads the plan first and reaches this question only for a plan authored\n * before the field existed. Keep it: those plans are real (wonder-crm, wonder-todos) and\n * must stay composable.\n */\n {\n \"ref\": \"primary-scope\",\n \"question\": \"Do people use this application together, in shared workspaces or teams, or does each person only see their own data? Choose organizations if they work together, users if each person's data is their own.\",\n \"kind\": \"choice\",\n \"options\": [\"organizations\", \"users\"],\n \"depth\": \"essential\",\n /*\n * ONE decision, asked once (#1454, gap 4): the domain plan's tenancy question owns it, and\n * this fallback reads that answer. The dossier listed the two as separate open questions,\n * worded differently, for the same choice.\n */\n \"sameDecisionAs\": { \"playbookRef\": \"bottom_up.domain-plan\", \"questionRef\": \"tenancy\" }\n },\n /*\n * The operator's own legal identity (issue #235), asked HERE because this is the playbook that\n * writes `wildo.saas.config.ts` and already carries the `config-saas` skill — an answer\n * elicited anywhere else would have nowhere to land, since a companion-agent playbook produces\n * an artifact and writes no files.\n *\n * KEPT on 2026-09-22 (#1454, Step 5), after \"bind them to the typed config keys, or stop\n * asking\" was weighed. The executor reads neither answer — it reads only `primary-scope` —\n * and the questions are nonetheless the elicitation path into a typed, committed key, which\n * is what `compliance-is-derived-from-the-product.md` rule 2 asks for (never a form that\n * stays a form). What changed is where the answers LIVE: the DOSSIER keeps them, so they are\n * asked once and read by every run that needs them.\n *\n * CORRECTED 2026-09-22 (#1434), same day: that reasoning originally said \"this is a\n * CODING-AGENT playbook, and the agent's brief carries the rendered interview\". This playbook\n * composes NO BRIEF — `executePlaybookRun` short-circuits it into the foundation executor\n * before any section is composed — so no agent reads `method.md` Step 4 here. The decision to\n * keep the questions stands on the dossier, which is a real reader; the delivery path named\n * beside it was not.\n *\n * Both questions are deliberately ANSWERABLE IN PART. Every part of\n * `operatorComplianceIdentity` is independently declarable (#228), so a creator who knows the\n * registered name and not the lawful bases records the name — and Paul's decision (#225) is\n * explicit that filling the entity must never block. A question that demanded the whole thing\n * would reintroduce the blocking this lane just removed, one layer up.\n */\n {\n \"ref\": \"operating-entity\",\n \"question\": \"Which legal entity operates this service? Give the registered company name, its registered address, and the route a person uses to reach you about privacy (an email, a URL or a postal address). Answer only the parts you actually know today — anything you leave out is recorded as outstanding and nothing is blocked by it. Do NOT supply a placeholder or a plausible-looking value: a produced privacy notice quotes these as fact, and the address is what a person would use to serve a legal request on a real company.\",\n \"kind\": \"free_text\",\n \"depth\": \"essential\",\n \"whenUnknown\": \"ask\",\n \"regulatedDomain\": true\n },\n {\n \"ref\": \"operating-jurisdictions\",\n \"question\": \"Which jurisdictions does this application operate in, and why does each one reach it — are you established there, do you sell there, or do you hold data about people there? Use country codes (`fr`, `us`), the supranational `eu`, or a subdivision (`us-ca`). Answer \\\"not decided\\\" if the market is genuinely unsettled; an absent answer is read as unanswered, never as \\\"nowhere\\\".\",\n \"kind\": \"free_text\",\n \"depth\": \"essential\",\n \"regulatedDomain\": true\n },\n /*\n * The creator's PROVIDER choices (#1488). Which vendor an application charges or texts through is\n * a class-3 product decision — the field does not converge on one answer — so it is asked, as a\n * typed CHOICE, and the answer is kept in the dossier and read by the foundation executor, which\n * declares the provider, selects it as primary and enables the capability. The credentials the\n * provider needs are recorded as OWED on the run result: the boot floor reads declaration and\n * selection, never secrets, so the application boots and the provider answers once they are set.\n *\n * The OPTIONS are the engine providers serving the capability (ENGINE origin, backend scope), and\n * `foundation-executor.companion.service.test.ts` pins these authored lists to that derivation plus the\n * `none` member, so a vendor added to the catalogue fails the pin until it is offered here.\n *\n * `none` is an OPTION, not an absence: the elicitation contract refuses a run whose interview is not\n * fully answered, and a CHOICE accepts only its options, so \"decide later\" has to be sayable. It leaves\n * the capability owed exactly as before (#1272).\n */\n {\n \"ref\": \"billing-provider\",\n \"question\": \"Which billing provider should this application charge its users through? Answer `none` to decide later; the capability stays off until a provider is chosen.\",\n \"kind\": \"choice\",\n \"options\": [\"stripe\", \"none\"],\n \"depth\": \"detail\"\n },\n {\n \"ref\": \"sms-provider\",\n \"question\": \"Which SMS provider should this application send text messages through (phone verification, SMS second factor)? Answer `none` if the product sends no SMS, or to decide later.\",\n \"kind\": \"choice\",\n \"options\": [\"twilio\", \"none\"],\n \"depth\": \"detail\"\n }\n ]\n }\n },\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n"]}