@wildo-ai/dev-companion 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 (325) hide show
  1. package/bin/companion-supervisor.d.mts +33 -0
  2. package/bin/companion-supervisor.mjs +174 -0
  3. package/bin/wildo-dev-companion-supervised.mjs +16 -0
  4. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  5. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +8 -2
  6. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  7. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  8. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +8 -2
  9. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  10. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +1 -1
  11. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  12. package/dist/esm/brand/services/brand-accept.companion.service.js +9 -11
  13. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  14. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts +21 -0
  15. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
  16. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +33 -1
  17. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
  18. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +41 -2
  19. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  20. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +43 -1
  21. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  22. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +57 -1
  23. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  24. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +75 -1
  25. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  26. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +90 -5
  27. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  28. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +242 -22
  29. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  30. package/dist/esm/companion-api/companion-api.schemas.d.ts +23 -2
  31. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  32. package/dist/esm/companion-api/companion-api.schemas.js +13 -2
  33. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  34. package/dist/esm/companion-api/controllers/companion.controller.d.ts +63 -7
  35. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  36. package/dist/esm/companion-api/controllers/companion.controller.js +315 -39
  37. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  38. package/dist/esm/core/config/primary-language.companion.utils.d.ts +5 -4
  39. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  40. package/dist/esm/core/config/primary-language.companion.utils.js +5 -4
  41. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  42. package/dist/esm/core/context/application-module-generations.companion.d.ts +103 -0
  43. package/dist/esm/core/context/application-module-generations.companion.d.ts.map +1 -0
  44. package/dist/esm/core/context/application-module-generations.companion.js +313 -0
  45. package/dist/esm/core/context/application-module-generations.companion.js.map +1 -0
  46. package/dist/esm/core/context/companion-package-loaders.companion.d.ts +19 -19
  47. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  48. package/dist/esm/core/context/companion-package-loaders.companion.js +52 -40
  49. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  50. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  51. package/dist/esm/core/inject/models/container.js +4 -0
  52. package/dist/esm/core/inject/models/container.js.map +1 -1
  53. package/dist/esm/core/inject/models/service-types.d.ts +4 -0
  54. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  55. package/dist/esm/core/inject/models/service-types.js +4 -0
  56. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  57. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +15 -1
  58. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
  59. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +38 -3
  60. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
  61. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +21 -0
  62. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
  63. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +64 -25
  64. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -1
  65. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
  66. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +2 -0
  67. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  68. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +0 -28
  69. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  70. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +192 -19
  71. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  72. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  73. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +27 -5
  74. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  75. package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts +47 -0
  76. package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts.map +1 -0
  77. package/dist/esm/core/introspection/resources/launch-blockers.companion.js +98 -0
  78. package/dist/esm/core/introspection/resources/launch-blockers.companion.js.map +1 -0
  79. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +6 -1
  80. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  81. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +20 -1
  82. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  83. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts +34 -8
  84. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  85. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +61 -12
  86. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  87. package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts +44 -0
  88. package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts.map +1 -0
  89. package/dist/esm/core/introspection/services/introspection-input-closure.companion.js +104 -0
  90. package/dist/esm/core/introspection/services/introspection-input-closure.companion.js.map +1 -0
  91. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +41 -22
  92. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  93. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +64 -47
  94. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  95. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts +7 -1
  96. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  97. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js +13 -4
  98. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
  99. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  100. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +7 -0
  101. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  102. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +4 -4
  103. package/dist/esm/core/runtime/companion-env-file.d.ts +39 -9
  104. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
  105. package/dist/esm/core/runtime/companion-env-file.js +75 -16
  106. package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
  107. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +7 -3
  108. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  109. package/dist/esm/core/runtime/services/start-companion-application.service.js +29 -11
  110. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  111. package/dist/esm/core/utils/bounded-concurrency.utils.d.ts +17 -0
  112. package/dist/esm/core/utils/bounded-concurrency.utils.d.ts.map +1 -0
  113. package/dist/esm/core/utils/bounded-concurrency.utils.js +37 -0
  114. package/dist/esm/core/utils/bounded-concurrency.utils.js.map +1 -0
  115. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts +10 -1
  116. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
  117. package/dist/esm/core/utils/derived-input-signature.companion.utils.js +9 -2
  118. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
  119. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  120. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +2 -0
  121. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  122. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  123. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +66 -6
  124. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  125. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts +0 -17
  126. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  127. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +10 -4
  128. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  129. package/dist/esm/email/services/email-template.companion.service.d.ts +6 -1
  130. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  131. package/dist/esm/email/services/email-template.companion.service.js +4 -1
  132. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  133. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  134. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +8 -2
  135. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  136. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  137. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +8 -2
  138. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  139. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  140. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +7 -7
  141. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  142. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  143. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +41 -1
  144. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  145. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  146. package/dist/esm/i18n/resources/workbenchAspects.en.js +7 -0
  147. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  148. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +5 -0
  149. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
  150. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +5 -0
  151. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
  152. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +1 -1
  153. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  154. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +2 -1
  155. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  156. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +46 -0
  157. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  158. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +12 -0
  159. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  160. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +266 -0
  161. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  162. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +91 -5
  163. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  164. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +41 -0
  165. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  166. package/dist/esm/i18n/system_enums/application-creation.en.js +45 -1
  167. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  168. package/dist/esm/i18n/system_enums/localization.en.d.ts +82 -0
  169. package/dist/esm/i18n/system_enums/localization.en.d.ts.map +1 -0
  170. package/dist/esm/i18n/system_enums/localization.en.js +82 -0
  171. package/dist/esm/i18n/system_enums/localization.en.js.map +1 -0
  172. package/dist/esm/i18n/system_enums/risk-register.en.d.ts +1 -0
  173. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
  174. package/dist/esm/i18n/system_enums/risk-register.en.js +1 -0
  175. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
  176. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +10 -0
  177. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  178. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +13 -0
  179. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  180. package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts +43 -0
  181. package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts.map +1 -0
  182. package/dist/esm/i18n-labelling/models/labelling-progress.models.js +34 -0
  183. package/dist/esm/i18n-labelling/models/labelling-progress.models.js.map +1 -0
  184. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +8 -0
  185. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  186. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +97 -56
  187. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  188. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +18 -0
  189. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  190. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +269 -153
  191. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  192. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts +41 -0
  193. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts.map +1 -0
  194. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js +47 -0
  195. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js.map +1 -0
  196. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts +12 -0
  197. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  198. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js +10 -2
  199. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  200. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts +89 -0
  201. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts.map +1 -0
  202. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js +229 -0
  203. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js.map +1 -0
  204. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +67 -1
  205. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
  206. package/dist/esm/meta-workflows/models/build-task-rearm.models.js +64 -0
  207. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
  208. package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts +308 -0
  209. package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts.map +1 -0
  210. package/dist/esm/meta-workflows/models/creation-intervention.models.js +365 -0
  211. package/dist/esm/meta-workflows/models/creation-intervention.models.js.map +1 -0
  212. package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts +61 -0
  213. package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts.map +1 -0
  214. package/dist/esm/meta-workflows/models/generation-step-progress.models.js +58 -0
  215. package/dist/esm/meta-workflows/models/generation-step-progress.models.js.map +1 -0
  216. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +10 -6
  217. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  218. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +11 -6
  219. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  220. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +3 -0
  221. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  222. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +8 -1
  223. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  224. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +26 -0
  225. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  226. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +66 -10
  227. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  228. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts +13 -0
  229. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts.map +1 -0
  230. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js +33 -0
  231. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js.map +1 -0
  232. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts +145 -0
  233. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts.map +1 -0
  234. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js +179 -0
  235. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js.map +1 -0
  236. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +376 -17
  237. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  238. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +805 -39
  239. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  240. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +93 -7
  241. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  242. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +142 -25
  243. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  244. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +120 -3
  245. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  246. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +325 -16
  247. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  248. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
  249. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +15 -6
  250. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
  251. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
  252. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +10 -11
  253. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
  254. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  255. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +10 -11
  256. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  257. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts +82 -0
  258. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -0
  259. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +291 -0
  260. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -0
  261. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts +60 -0
  262. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts.map +1 -0
  263. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js +66 -0
  264. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js.map +1 -0
  265. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts +53 -0
  266. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -0
  267. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +164 -0
  268. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -0
  269. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts +37 -0
  270. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts.map +1 -0
  271. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js +52 -0
  272. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js.map +1 -0
  273. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -14
  274. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  275. package/dist/esm/meta-workflows/services/dossier.companion.service.js +180 -28
  276. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  277. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +2 -3
  278. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  279. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +2 -8
  280. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  281. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts +67 -0
  282. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts.map +1 -0
  283. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js +64 -0
  284. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js.map +1 -0
  285. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
  286. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +11 -3
  287. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -1
  288. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +92 -4
  289. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  290. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +328 -7
  291. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  292. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +105 -6
  293. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  294. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +309 -39
  295. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  296. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts +62 -1
  297. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
  298. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +152 -2
  299. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
  300. package/package.json +22 -18
  301. package/dist/esm/.tsbuildinfo +0 -1
  302. package/dist/esm/__tests__/asset-noop.d.ts +0 -3
  303. package/dist/esm/__tests__/asset-noop.d.ts.map +0 -1
  304. package/dist/esm/__tests__/asset-noop.js +0 -2
  305. package/dist/esm/__tests__/asset-noop.js.map +0 -1
  306. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts +0 -2
  307. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +0 -1
  308. package/dist/esm/__tests__/chdir-dogfood-app.setup.js +0 -44
  309. package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +0 -1
  310. package/dist/esm/__tests__/internal-test-view.d.ts +0 -39
  311. package/dist/esm/__tests__/internal-test-view.d.ts.map +0 -1
  312. package/dist/esm/__tests__/internal-test-view.js +0 -2
  313. package/dist/esm/__tests__/internal-test-view.js.map +0 -1
  314. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +0 -50
  315. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +0 -1
  316. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +0 -157
  317. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +0 -1
  318. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts +0 -8
  319. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +0 -1
  320. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +0 -43
  321. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +0 -1
  322. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +0 -79
  323. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +0 -1
  324. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +0 -193
  325. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +0 -1
@@ -19,7 +19,7 @@ import { PLAYBOOK_STEP_SCHEMA_NAMESPACES } from '../models/playbook-step-schema-
19
19
  import { inject, injectable } from 'inversify';
20
20
  import { AI_ENGINE_CAPABILITIES, AI_ENGINE_CAPABILITIES_IN_THE_CONTRACTED_SERVICE, RecipientCategoriesNotDerivableReason, ENGINE_CLIENT_STORAGE_ENTRIES, DataRetentionClass, ErasureRetentionMode, ResourceRetentionBindingSchema, StatutoryRetentionGroundSchema, undeclaredAiUseCapabilities, undeclaredRetentionClasses, vendorHostedProviderRefs, uninventoriedClientStorageSurfaces, BillingConfigurationSchema, OperatorComplianceIdentityPart, outstandingOperatorComplianceIdentityParts, ApplicationOperatorComplianceIdentitySchema, ApplicationProviderComplianceChoicesSchema, ApplicationRetentionScheduleSchema, ApplicationOperatingJurisdictionsSchema, appAssertedProcessingRegions, establishedProviderComplianceProfile, PersonalDataCategory, ProviderComplianceChoiceAssessment, ProviderDeploymentModel, engineCapabilityIsAuthoringOnly, EngineCapability, deriveNextReviewOn, ReviewCadence, parseRetentionEnforcementEvidenceJson, } from '@wildo-ai/saas-models';
21
21
  import { ApplicationAuthoredDocumentFactSpecificationSchema, ApplicationDocumentFactSpecificationSchema, ApplicationProcessorRegisterSchema, computeApplicationDocumentFacts, complianceFactStaleness, ComplianceFactCurrency, processorAgreementStanding, computeRecipientPopulation, joinRecipientPopulationToRegister, APPLICATION_PROVIDER_PACKAGE_MANIFEST_PATHSPEC, applicationProviderPackagesFromManifests, ProviderScopeKey, RecipientDataPathKind, RecipientPopulationClass, RecipientPopulationMemberKind, SystemOfRecordDataFlowKind, deriveRecipientDisclosures, systemOfRecordPersonalDataOriginsOf, systemOfRecordVendorsOf, typedClientSearchNeedles, typedClientSitesFromGrepLines, overlayComputedDocumentFacts, ProcessorRegisterEntryKind, processorProcessingRegions, registerEstablishesNoProcessorRecipients, MetaWorkflow_ContextSource, collectComplianceDocumentFactAvailability, deriveComplianceRegimes, ApplicationLineDeclarationState, } from '@wildo-ai/saas-specifications/application-creation';
22
- import { AssuranceEvidenceJudgementVerdict, AssuranceEvidenceRunKind, AssuranceEvidenceRunSchema, deriveCapabilitySignal, deriveMcpExposureSignal, derivePersonalDataSignals, deriveProviderHostingSignal, deriveRetentionSignal, } from '@wildo-ai/saas-specifications/assurance';
22
+ import { AssuranceEvidenceJudgementVerdict, AssuranceEvidenceRunKind, AssuranceEvidenceRunSchema, deriveBrandNameTrademarkSignal, deriveCapabilitySignal, deriveMcpExposureSignal, derivePersonalDataSignals, deriveProviderHostingSignal, deriveRetentionSignal, } from '@wildo-ai/saas-specifications/assurance';
23
23
  import { execFileSync } from 'node:child_process';
24
24
  import { existsSync, readdirSync, readFileSync, writeFileSync } from 'node:fs';
25
25
  import { readFile } from 'node:fs/promises';
@@ -29,14 +29,15 @@ import { join } from 'node:path';
29
29
  import { loadDraftFamilyValues } from '../../core/context/draft-family-values.companion.js';
30
30
  import { InFlightWorkHeartbeat } from '../../core/runtime/in-flight-work-heartbeat.companion.js';
31
31
  import { getFrameworkKnowledgePlaybook, listFrameworkKnowledgePlaybooks, listFrameworkKnowledgeSkillSummaries, readFrameworkKnowledgeSkillBody } from '@wildo-ai/framework-knowledge';
32
- import { MetaWorkflow_EvaluationTreatmentDefinitionSchema, MetaWorkflow_Executor, MetaWorkflow_ClarificationAction, } from '@wildo-ai/saas-models/meta-workflows';
33
- import { APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS, composeElicitationSection, dispatchOutcomeStepRef, BUILD_DECOMPOSE_INPUT_FAMILIES, STANDARD_APPLICATION_SPECIFICATION_SEMANTIC_AUTHORITY, evaluatePlaybookCatalogEligibility, buildApplicationCoherenceReport, collectHeldDraftUndeclaredFactCitations, composeAssuranceDocumentBlueprintBrief, composeAssuranceDocumentFactObligationsBrief, renderAssuranceDocumentClaimGuardsForJudge, composeAssuranceEvidenceBrief, composeAuthoredDocumentFactsBrief, composeAssuranceProgramAuthorityBrief, composeApplicationRoleGraphBrief, deriveOneFamilyFreshness, resolveStepOutputSchema, runPlaybookChoreography, countCheckpointedRounds, describeStaleOutput, PlaybookLaneBoundaryDecision, collectPlaybookLaneBoundaries, isJudgeVerdictStepRef, buildPlaybookReviewGuide, evaluatePlaybookEligibility, applicationLineRefusalOf, getFamilyPackageRelativePath, resolvePlaybookOutputLandingTarget, getLandableArtifactFamilies, isPlaybookGenerationSuspension, renderApplicationCoherenceReport, renderDeclaredInputFamily, composeDeclaredInputWithheldAspects, composeMarketFitScoresSection, composeRiskSignalsSection, widenDeclaredInputAspects, collectConvenedExpertRoles, committedCharterRoleRefs, renderPlaybookReviewGuide, runPlaybookGeneration, readPlaybookOutputLandingBaselines, PlaybookOutputLandingConflictError, DEFAULT_MAXIMUM_CLARIFICATION_ROUNDS, accumulateClarificationRequests, validateClarificationAnswers, composeClarificationAnswersSection, runPlaybookJudge, runPlaybookLoop, composeBillingCommercialModelBrief, composeOperatingJurisdictionCoverageBrief, projectPlaybookElicitationAsDecision, readAnswersForPlaybookQuestions, resolveElicitationAnswers, buildCreatorInputAnsweredAtByPlaybook, resolveApplicationLineScope, collectFamiliesDeactivatedByDecisions, isFamilyNotApplicable, describeApplicationActiveSet, narrowRefinementRound, refinementDependencyMaps, } from '@wildo-ai/application-creation-runtime';
32
+ import { MetaWorkflow_EvaluationTreatmentDefinitionSchema, MetaWorkflow_EvaluationVerdict, MetaWorkflow_Executor, MetaWorkflow_ClarificationAction, } from '@wildo-ai/saas-models/meta-workflows';
33
+ import { APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS, composeElicitationSection, dispatchOutcomeStepRef, BUILD_DECOMPOSE_INPUT_FAMILIES, STANDARD_APPLICATION_SPECIFICATION_SEMANTIC_AUTHORITY, evaluatePlaybookCatalogEligibility, buildApplicationCoherenceReport, collectHeldDraftUndeclaredFactCitations, composeAssuranceDocumentBlueprintBrief, composeAssuranceDocumentFactObligationsBrief, renderAssuranceDocumentClaimGuardsForJudge, composeAssuranceEvidenceBrief, composeAuthoredDocumentFactsBrief, composeAssuranceProgramAuthorityBrief, composeApplicationRoleGraphBrief, deriveOneFamilyFreshness, resolveStepOutputSchema, runPlaybookChoreography, countCheckpointedRounds, describeStaleOutput, describePlaybookRerun, measureChangedAspects, PlaybookLaneBoundaryDecision, collectPlaybookLaneBoundaries, isJudgeVerdictStepRef, buildPlaybookReviewGuide, evaluatePlaybookEligibility, applicationLineRefusalOf, getFamilyPackageRelativePath, resolvePlaybookOutputLandingTarget, getLandableArtifactFamilies, isPlaybookGenerationSuspension, renderApplicationCoherenceReport, renderDeclaredInputFamily, composeDeclaredInputWithheldAspects, composeMarketFitScoresSection, composeRiskSignalsSection, widenDeclaredInputAspects, collectConvenedExpertRoles, committedCharterRoleRefs, renderPlaybookReviewGuide, runPlaybookGeneration, readPlaybookOutputLandingBaselines, PlaybookOutputLandingConflictError, DEFAULT_MAXIMUM_CLARIFICATION_ROUNDS, accumulateClarificationRequests, validateClarificationAnswers, composeClarificationAnswersSection, runPlaybookJudge, runPlaybookLoop, PlaybookGenerationPurpose, composeBillingCommercialModelBrief, composeOperatingJurisdictionCoverageBrief, projectPlaybookElicitationAsDecision, answersNoLongerOffered, materializeElicitationOptions, readAnswersForPlaybookQuestions, resolveElicitationAnswers, buildCreatorInputAnsweredAtByPlaybook, resolveApplicationLineScope, collectFamiliesDeactivatedByDecisions, isFamilyNotApplicable, describeApplicationActiveSet, narrowRefinementRound, refinementDependencyMaps, } from '@wildo-ai/application-creation-runtime';
34
34
  // The provider REGISTRY, not the engine map: importing the package root runs its bootstrap, which
35
35
  // registers the engine specifications, and an application's own registered provider specifications
36
36
  // join the same registry — so one accessor covers both authorities.
37
37
  import { listRegisteredProviderSpecifications, getExpertRoleTemplate, ExpertShapingInputKind, } from '@wildo-ai/saas-specifications';
38
38
  import { actorExecutionSuspensionRef, isActorExecutionNotSuspendedError, isActorExecutionSubjectBusyError, describeCaughtError } from '@wildo-ai/saas-backend-lib';
39
39
  import { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';
40
+ import { getCompanionServedLanguages } from '../../core/config/primary-language.companion.utils.js';
40
41
  import { secondaryLineDefinitionOfEntry, ApplicationSpecificationFamily, JourneyArtifactValidationState, MetaWorkflowPlaybookSchema, playbookInstanceId, } from '@wildo-ai/saas-specifications/application-creation';
41
42
  import { describeStructuredValidationIssue, readCodingModelDestinations, readStructuredGenerationFailure, } from '@wildo-ai/external-connectors-models';
42
43
  import { readBuildParallelism, resolveProviderComplianceProfiles } from '@wildo-ai/platform-config-lib';
@@ -46,7 +47,8 @@ import { ApplicationSchemaPlanObligation, assessApplicationSchemaPlanObligation,
46
47
  import { composeEngineSettingsDestinationLines } from './engine-settings-destination-catalog.companion.js';
47
48
  import { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types.js';
48
49
  import { PlaybookRunWriteRegisterCompanionService } from './playbook-run-write-register.companion.service.js';
49
- import { ApplicationBuildDispatchCompanionService, } from './application-build-dispatch.companion.service.js';
50
+ import { ApplicationBuildDispatchCompanionService, ApplicationBuildWaveInFlightError, } from './application-build-dispatch.companion.service.js';
51
+ import { resolveApplicationAssemblyCheckRefs } from './application-assembly-checks.companion.utils.js';
50
52
  import { GitChangeSetCompanionService } from '../../claude-cli/services/git-change-set.companion.service.js';
51
53
  import { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service.js';
52
54
  import { FoundationExecutorCompanionService } from './foundation-executor.companion.service.js';
@@ -62,12 +64,15 @@ import { CompositeRoundRelaunchDecision, compositeRoundMayRelaunch, compositeRou
62
64
  import { findOverlappingRootRuns, projectLastPlaybookLoop, projectPlaybookRunRecords, readPlaybookRunMeasurement, summarizePlaybookLoopResult, summarizePlaybookRunResult } from '../models/playbook-run-record.models.js';
63
65
  import { PLAYBOOK_SPEND_NOT_OBSERVED, mergePlaybookSpend } from '@wildo-ai/application-creation-runtime';
64
66
  import { PlaybookSpendMeterCompanionService } from './playbook-spend-meter.companion.service.js';
67
+ import { DossierCompanionService } from './dossier.companion.service.js';
68
+ import { proposeInterviewAnswers } from './interview-answer-proposal.companion.js';
69
+ import { INTERVIEW_ANSWER_PROPOSER_REF, } from '@wildo-ai/application-creation-runtime';
65
70
  import { CompanionExecutionsListQuerySchema } from '../../companion-api/companion-api.schemas.js';
66
71
  import { CompanionTraceabilityLevel } from '../../core/traceability/companion-traceability.models.js';
67
72
  import { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service.js';
68
73
  import { createPlaybookExecutionTrace } from './playbook-execution-trace.companion.service.js';
69
74
  import { loadBackendCompanionExports, loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion.js';
70
- import { choreographyEndedByEnvironment, isInfrastructureShapedAgentFailure, waitForDevCompileQuiet, } from '../../core/runtime/dev-compile-quiet.companion.js';
75
+ import { choreographyEndedByEnvironment, isInfrastructureShapedAgentFailure, isProviderAccountAgentFailure, waitForDevCompileQuiet, } from '../../core/runtime/dev-compile-quiet.companion.js';
71
76
  import { META_WORKFLOWS_CORRELATION_DOMAIN, MetaWorkflowsExclusiveSubject, compositeExclusiveSubject, isCompositeExclusiveSubject, META_WORKFLOWS_PLAYBOOK_LOOP_ACTOR_REF, META_WORKFLOWS_PLAYBOOK_RUN_ACTOR_REF, META_WORKFLOWS_STRUCTURED_ARTIFACT_GENERATOR_AGENT_REF, META_WORKFLOWS_SYSTEM_REF, META_WORKFLOW_TRACE_STEP_KIND, PLAYBOOK_RUN_PHASE_TRACE_STEP_KIND } from '../models/meta-workflows-lane.models.js';
72
77
  import { Actor_Task_Topics, AppFrontendType, FlowsActors_Status, HumanDecision_RequesterKind, HumanDecision_RouteKind } from '@wildo-ai/saas-models';
73
78
  import { WorkbenchTaskCorrelationRef, Workbench_PlaybookRunOutcomeStatus } from '@wildo-ai/platform-core-shared';
@@ -90,6 +95,7 @@ function choreographyProgressToContext(snapshot) {
90
95
  completedIterations: snapshot.completedIterations,
91
96
  stepResults: snapshot.stepResults.map(([ref, value]) => ({ ref, value })),
92
97
  delivered: [...snapshot.delivered],
98
+ ...(snapshot.reopened && snapshot.reopened.length > 0 ? { reopened: [...snapshot.reopened] } : {}),
93
99
  ...(snapshot.nested && snapshot.nested.length > 0 ? { nested: snapshot.nested.map(choreographyProgressToContext) } : {}),
94
100
  };
95
101
  }
@@ -100,6 +106,7 @@ function choreographyProgressFromContext(context) {
100
106
  completedIterations: context.completedIterations,
101
107
  stepResults: context.stepResults.map((entry) => [entry.ref, entry.value]),
102
108
  delivered: context.delivered,
109
+ ...(context.reopened && context.reopened.length > 0 ? { reopened: context.reopened } : {}),
103
110
  ...(context.nested && context.nested.length > 0 ? { nested: context.nested.map(choreographyProgressFromContext) } : {}),
104
111
  };
105
112
  }
@@ -200,15 +207,15 @@ function playbookDeclaresContextSource(playbook, source) {
200
207
  * the defect #119 closed, where an unhonoured tier fell through and produced a result the
201
208
  * declaration never asked for.
202
209
  *
203
- * Why these checks: topic 7 asks whether the built application ASSEMBLES, so the unit is the
204
- * application's four workspace packages, not the one package a coding task happened to touch. The
210
+ * Why these checks: topic 7 asks whether the built application ASSEMBLES, so the unit is EVERY workspace
211
+ * package the application has, not the one package a coding task happened to touch. The
205
212
  * dispatch lane already typechecks the mutated package per task; this is the whole-app question that
206
213
  * no per-task check can answer, which is why it is not a duplicate of a live check.
207
214
  *
208
215
  * `check:schema-plan-in-sync` joined them on 2026-09-07 because "it compiles" and "it can start" are
209
216
  * different questions and only the first was being asked. On a PostgreSQL-backed application a table
210
217
  * is built by a MIGRATION and by nothing else, so a resource whose migration was never generated
211
- * typechecks green in all four packages and then refuses to boot with
218
+ * typechecks green in every package and then refuses to boot with
212
219
  * `postgresql_table_schema_mismatch`. A typecheck structurally cannot see it: there is no type in
213
220
  * the program that knows whether a table exists. It is deliberately LAST — a drift report is most
214
221
  * readable once the compile questions are settled — and it is safe on every application, MongoDB
@@ -216,13 +223,12 @@ function playbookDeclaresContextSource(playbook, source) {
216
223
  * code (see `runSchemaPlanDriftVerification`).
217
224
  */
218
225
  const DETERMINISTIC_CLI_VERIFICATION_CHECKS = {
219
- 'bottom_up.assemble-verify': [
220
- 'check:specifications-typecheck',
221
- 'check:shared-lib-typecheck',
222
- 'check:backend-api-typecheck',
223
- 'check:app-typecheck',
224
- 'check:schema-plan-in-sync',
225
- ],
226
+ /*
227
+ * DERIVED from the application's packages (#2222). This was a list of the four packages every application has,
228
+ * and it went stale the day `website` and `technical-doc` packages became composable (#1490): the question
229
+ * "does the application assemble" skipped a website that did not compile (`app-creation-test-004`).
230
+ */
231
+ 'bottom_up.assemble-verify': resolveApplicationAssemblyCheckRefs,
226
232
  };
227
233
  /** The zero-output playbook the composite foundation executor owns (J-2 item 2). */
228
234
  const FOUNDATION_PLAYBOOK_REF = 'bottom_up.foundation';
@@ -1250,10 +1256,11 @@ function renderOperatorComplianceIdentity(identity) {
1250
1256
  return [
1251
1257
  '',
1252
1258
  'Operator compliance identity: NOT DECLARED. The legal entity, its registered address, the privacy',
1253
- 'contact route, the operator\'s role per population of data, and the lawful basis per purpose are all',
1254
- 'absent from the application configuration. State them as outstanding and name the surface: they are',
1255
- 'declared in `wildo.saas.config.ts` under `operatorComplianceIdentity`. Do NOT invent an entity name,',
1256
- 'an address or a contact — those are what a subject uses to exercise a right against a real company.',
1259
+ 'contact route, the operator\'s role per population of data, the lawful basis per purpose, and where the',
1260
+ 'operator hosts the data are all absent from the application configuration. State them as outstanding',
1261
+ 'and name the surface: they are declared in `wildo.saas.config.ts` under `operatorComplianceIdentity`.',
1262
+ 'Do NOT invent an entity name, an address or a contact — those are what a subject uses to exercise a',
1263
+ 'right against a real company.',
1257
1264
  ];
1258
1265
  }
1259
1266
  /*
@@ -1313,6 +1320,10 @@ function renderOperatorComplianceIdentity(identity) {
1313
1320
  ? 'Identity verification for rights requests: OUTSTANDING — `operatorComplianceIdentity.subjectRequestIdentityVerification`. '
1314
1321
  + 'Do NOT describe a verification step nobody has decided; a stated procedure is one a requester will rely on.'
1315
1322
  : `Identity verification for rights requests: ${identity.subjectRequestIdentityVerification}`,
1323
+ identity.hostingRegions === undefined
1324
+ ? 'Where the operator hosts the data: OUTSTANDING — `operatorComplianceIdentity.hostingRegions`. Do NOT name a region or a '
1325
+ + 'country nobody declared; an international-transfer statement starts from it.'
1326
+ : `The operator hosts the data in: ${identity.hostingRegions.join(', ')}.`,
1316
1327
  ...(outstanding.length === 0
1317
1328
  ? []
1318
1329
  : [
@@ -1350,6 +1361,12 @@ function renderClientStorage(frontendSurfaceKeys, inventory) {
1350
1361
  : []),
1351
1362
  ];
1352
1363
  }
1364
+ /**
1365
+ * The playbook a build WAVE runs as (#2208). Any playbook declaring the CODING_AGENT tier runs the wave
1366
+ * when the build parallelism is above one; this is the one the build console starts, because it is the
1367
+ * dispatch step of the build lane and asks for nothing but a build plan.
1368
+ */
1369
+ export const BUILD_WAVE_PLAYBOOK_REF = 'bottom_up.build-dispatch';
1353
1370
  /**
1354
1371
  * How the engine reads what a playbook run RETURNED — exported so the lane's tests wire the
1355
1372
  * production reading rather than a copy of it.
@@ -1487,8 +1504,10 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
1487
1504
  executions;
1488
1505
  actorsSystem;
1489
1506
  spendMeter;
1507
+ appConfigService;
1508
+ dossier;
1490
1509
  logDebug;
1491
- constructor(logger, companionContext, researchDispatch, agents, traceability, writeRegister, buildDispatch, codingAgentDispatch, git, introspection, foundationExecutor, capabilityCompositionExecutor, applicationMaturityExecutor, expertPersonas, structuredDeliberation, executions, actorsSystem, spendMeter) {
1510
+ constructor(logger, companionContext, researchDispatch, agents, traceability, writeRegister, buildDispatch, codingAgentDispatch, git, introspection, foundationExecutor, capabilityCompositionExecutor, applicationMaturityExecutor, expertPersonas, structuredDeliberation, executions, actorsSystem, spendMeter, appConfigService, dossier) {
1492
1511
  this.logger = logger;
1493
1512
  this.companionContext = companionContext;
1494
1513
  this.researchDispatch = researchDispatch;
@@ -1507,8 +1526,51 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
1507
1526
  this.executions = executions;
1508
1527
  this.actorsSystem = actorsSystem;
1509
1528
  this.spendMeter = spendMeter;
1529
+ this.appConfigService = appConfigService;
1530
+ this.dossier = dossier;
1510
1531
  this.logDebug = this.logger.debugByType('PlaybookRunCompanionService');
1511
1532
  }
1533
+ /**
1534
+ * Everything an interview proposal reads and calls (#2129), bound in ONE place so the console, the workbench,
1535
+ * the conversation and the unattended runs cannot each assemble a different proposer — and so a port added
1536
+ * here (the landed families the asking playbook reads) reaches all of them at once.
1537
+ */
1538
+ interviewAnswerProposalPorts() {
1539
+ return {
1540
+ readAnswerablePlaybook: (playbookRef) => this.dossier.readAnswerablePlaybook(playbookRef),
1541
+ listInterviewPlaybooks: () => this.dossier.listInterviewPlaybooks(),
1542
+ readCreatorInputs: () => this.dossier.readCreatorInputs(),
1543
+ readArtifactsByFamily: async () => (await this.readArtifactState()).artifactsByFamily,
1544
+ generate: (input) => this.generateStructured(input),
1545
+ };
1546
+ }
1547
+ /**
1548
+ * The unattended runs' interview step (#2129): propose the questions a quick interview leaves to the proposer,
1549
+ * and record each proposal as ASSUMED, authored by the proposer, with its rationale. Nobody reviewed them, which
1550
+ * is exactly what the standing says; the console lists them to revisit and the trace names each one.
1551
+ */
1552
+ async assumeInterviewAnswers(request) {
1553
+ const result = await proposeInterviewAnswers(this.interviewAnswerProposalPorts(), request);
1554
+ const assumed = [];
1555
+ const unproposed = [...result.unproposed];
1556
+ for (const proposal of result.proposals) {
1557
+ try {
1558
+ await this.dossier.recordAnswer({
1559
+ playbookRef: request.playbookRef,
1560
+ questionRef: proposal.questionRef,
1561
+ value: proposal.value,
1562
+ answeredByRef: INTERVIEW_ANSWER_PROPOSER_REF,
1563
+ standing: ApplicationCreationSpecs.ApplicationCreatorInputAnswerStanding.ASSUMED,
1564
+ assumptionRationale: proposal.rationale,
1565
+ });
1566
+ assumed.push(proposal.questionRef);
1567
+ }
1568
+ catch (error) {
1569
+ unproposed.push({ questionRef: proposal.questionRef, reason: error instanceof Error ? error.message : String(error) });
1570
+ }
1571
+ }
1572
+ return { assumed, unproposed };
1573
+ }
1512
1574
  /**
1513
1575
  * The eligibility board: every compiled playbook, whether it can run RIGHT NOW, and why not.
1514
1576
  *
@@ -1540,8 +1602,13 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
1540
1602
  */
1541
1603
  const state = await this.readArtifactState();
1542
1604
  const creatorInputs = state.artifactsByFamily.get(ApplicationSpecificationFamily.CREATOR_INPUTS);
1543
- const answeredQuestionRefs = new Set(readAnswersForPlaybookQuestions(playbook, creatorInputs).map((answer) => answer.questionRef));
1544
- return projectPlaybookElicitationAsDecision({ playbook, requestedAt: new Date().toISOString(), answeredQuestionRefs });
1605
+ // A computed CHOICE (the brand-name choice) shows the options computed from what has landed now.
1606
+ const materialized = materializeElicitationOptions(playbook, { readFamily: (family) => state.artifactsByFamily.get(family) }).playbook;
1607
+ const recorded = readAnswersForPlaybookQuestions(playbook, creatorInputs);
1608
+ // An answer no longer among the computed options would be refused by the run, so the gate asks it again.
1609
+ const noLongerOffered = answersNoLongerOffered(materialized, recorded);
1610
+ const answeredQuestionRefs = new Set(recorded.map((answer) => answer.questionRef).filter((ref) => !noLongerOffered.has(ref)));
1611
+ return projectPlaybookElicitationAsDecision({ playbook: materialized, requestedAt: new Date().toISOString(), answeredQuestionRefs });
1545
1612
  }
1546
1613
  async listPlaybookEligibility() {
1547
1614
  // A catalog entry that does not satisfy its own contract is omitted rather than fatal — one malformed
@@ -1671,6 +1738,8 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
1671
1738
  playbooks,
1672
1739
  landableFamilies: this.resolveLandableFamilies(),
1673
1740
  readArtifactState: () => this.traceRunPhase(input.session, 'choreography-artifact-state', () => this.readArtifactState()),
1741
+ // A quick interview's skipped questions are assumed rather than waited on (#2129), for every lane of the tree.
1742
+ assumeInterviewAnswers: (request) => this.assumeInterviewAnswers(request),
1674
1743
  // Before the first tree read: a composite whose children its line runs none of stops here (#1639).
1675
1744
  readApplicationLineScope: () => this.traceRunPhase(input.session, 'application-line-scope', () => this.readApplicationLineScope()),
1676
1745
  // Every selection and child dispatch is measured, so the row records spend per iteration and per child (#1507).
@@ -1682,6 +1751,17 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
1682
1751
  * withheld on a phase gate its parent had already been admitted past.
1683
1752
  */
1684
1753
  proceedPastSequencing: true,
1754
+ /*
1755
+ * An opened INSTANCE (a refinement or feature-development line) is a request to re-do work on record,
1756
+ * so its own round offers children that are CURRENT (review N1). The default instance withholds them.
1757
+ */
1758
+ ...(input.instanceKey !== undefined ? { offersCurrentChildren: true } : {}),
1759
+ /*
1760
+ * The two classifiers `choreographyEndedByEnvironment` already trusts: a child taken by
1761
+ * infrastructure or a provider quota never counts toward withholding it for repeating a failure,
1762
+ * because a retry once the environment recovers can succeed over identical inputs.
1763
+ */
1764
+ isEnvironmentalFailure: (failure) => isInfrastructureShapedAgentFailure(failure) || isProviderAccountAgentFailure(failure),
1685
1765
  runChild: async (playbookRef, objective, stepResults, dispatchingCompositeRef) => {
1686
1766
  const parentElicitationSection = withInstancePurposeSection(await this.composeDispatchingElicitationSection({
1687
1767
  dispatchingCompositeRef,
@@ -1905,6 +1985,9 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
1905
1985
  const child = playbooks.find((entry) => entry.ref === input.playbookRef);
1906
1986
  if (!child)
1907
1987
  throw new UnknownPlaybookError(`Choreography child "${input.playbookRef}" is not in the compiled catalog.`);
1988
+ // Every child, before it starts: a research agent is dispatched here directly, never through a playbook
1989
+ // run, and it is the expensive kind of call the spend-rate breaker exists for.
1990
+ this.spendMeter.assertSpendRateBelowRunawayBreaker();
1908
1991
  if (child.executor === MetaWorkflow_Executor.RESEARCH_AGENT) {
1909
1992
  const stepOutput = child.stepOutputs?.[0];
1910
1993
  if (!stepOutput) {
@@ -2076,6 +2159,8 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
2076
2159
  taskRefs: run.taskRefs,
2077
2160
  outcomes: run.wave.outcomes.map((outcome) => (outcome ? { taskRef: outcome.taskRef, status: outcome.status } : 'unreadable')),
2078
2161
  stoppedFillingBecause: run.wave.stoppedFillingBecause,
2162
+ // #2222: whether a finished plan's application assembles, so the selector never reads "all landed" as done.
2163
+ ...(run.wave.assembly ? { assembly: { passed: run.wave.assembly.passed, failedCheckRefs: run.wave.assembly.failed.map((entry) => entry.checkRef) } } : {}),
2079
2164
  }]]),
2080
2165
  };
2081
2166
  }
@@ -2113,11 +2198,12 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
2113
2198
  * carry a caller's per-question overrides and must not be recomposed without them;
2114
2199
  * - a LANE that declares an interview is dispatching → that lane's own, from the dossier;
2115
2200
  * - a lane that declares NONE → the INHERITED section, so an ancestor's answers keep reaching a lane
2116
- * that asks nothing of its own. That is every composite in the catalog but one, and it is why this
2117
- * is additive rather than a change of behaviour.
2201
+ * that asks nothing of its own. That is most composites in the catalog (`top_down.compliance-analysis`
2202
+ * and `top_down.brand-naming` are lanes that do ask), and it is why this is additive rather than a change
2203
+ * of behaviour. No count here on purpose: the catalog moves, and a number in prose is one to re-measure.
2118
2204
  *
2119
2205
  * Not memoized, deliberately: the read is one file and only a lane that DECLARES an interview reaches
2120
- * it, of which the catalog has one. A cache here would be state to invalidate for a cost nothing has
2206
+ * it, of which the catalog has few. A cache here would be state to invalidate for a cost nothing has
2121
2207
  * measured.
2122
2208
  *
2123
2209
  * `composeElicitationSection` REFUSES a missing answer, and that refusal is unreachable from here
@@ -2133,7 +2219,7 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
2133
2219
  const state = await this.readArtifactState();
2134
2220
  const section = composeElicitationSection({
2135
2221
  playbookRef: lane.ref,
2136
- elicitation: lane.method.elicitation,
2222
+ elicitation: materializeElicitationOptions(lane, { readFamily: (family) => state.artifactsByFamily.get(family) }).playbook.method?.elicitation,
2137
2223
  answers: resolveElicitationAnswers({
2138
2224
  playbookRef: lane.ref,
2139
2225
  playbook: lane,
@@ -2400,8 +2486,17 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
2400
2486
  'A family marked STALE was derived before one of its inputs last changed, so re-running would produce',
2401
2487
  'something different — a reason to re-derive, not an instruction to. A STALE family that WAITS on other',
2402
2488
  'stale families is not next: refresh those first, or it is stale again the moment they are re-derived.',
2489
+ /*
2490
+ * Why each option is on the table (2026-10-01): a FIRST RUN, a REFRESH that names what moved, or a
2491
+ * child the question does not apply to. A CURRENT child (on record, nothing it reads changed) is withheld
2492
+ * by the runtime, except in an opened line instance, which exists to re-do that work.
2493
+ */
2494
+ 'A FIRST RUN adds what is missing. A REFRESH re-derives from the input named beside it. A CURRENT child is',
2495
+ 'on record with nothing it reads changed: it is offered only by a line opened to re-do that work.',
2403
2496
  ...request.eligible.map((entry) => {
2497
+ const rerun = describePlaybookRerun(entry.rerun);
2404
2498
  const notes = [
2499
+ ...(rerun !== undefined ? [rerun] : []),
2405
2500
  ...((entry.wouldReplace ?? []).length > 0 ? [`REPLACES existing ${entry.wouldReplace.join(', ')}`] : []),
2406
2501
  ...(entry.staleOutputs ?? []).map((stale) => describeStaleOutput(stale)),
2407
2502
  ];
@@ -2474,9 +2569,32 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
2474
2569
  * creator is about to commit rather than the last build. Pure downstream of that read: it computes
2475
2570
  * and returns, and nothing branches on it.
2476
2571
  */
2572
+ /**
2573
+ * The facts the coherence report needs and no family declares. The served languages come from the
2574
+ * same reader the capability composition decides `add-locale` from (`getCompanionServedLanguages`), so
2575
+ * the report and the composition compare the market against one answer.
2576
+ *
2577
+ * TOLERANT on purpose: the report is advisory and "must never be the thing that breaks". A
2578
+ * configuration that is not readable yet (`AppConfigurationService.config` throws until it is
2579
+ * initialized) answers NO host facts, which removes only the language question — never a guessed
2580
+ * English, which `getCompanionServedLanguages` would return for a missing configuration and which
2581
+ * would invent a contradiction the application does not have.
2582
+ */
2583
+ coherenceHostFacts() {
2584
+ let config;
2585
+ try {
2586
+ config = this.appConfigService?.config;
2587
+ }
2588
+ catch {
2589
+ return {};
2590
+ }
2591
+ if (config === undefined || config === null)
2592
+ return {};
2593
+ return { servedLanguages: getCompanionServedLanguages(config) };
2594
+ }
2477
2595
  async buildCoherenceReport() {
2478
2596
  const state = await this.readArtifactState();
2479
- const report = buildApplicationCoherenceReport(this.withComputedDocumentFacts(coherenceInputFor(state), state));
2597
+ const report = buildApplicationCoherenceReport(this.withComputedDocumentFacts(coherenceInputFor(state), state), this.coherenceHostFacts());
2480
2598
  return { report, markdown: renderApplicationCoherenceReport(report) };
2481
2599
  }
2482
2600
  /**
@@ -2618,6 +2736,7 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
2618
2736
  deriveRetentionSignal({ declaredClasses: declaredRetention, undeclared: undeclaredRetention }),
2619
2737
  deriveProviderHostingSignal({ vendorHosted, selfHosted, undeclared: undeclaredHosting }),
2620
2738
  ...await this.deriveResourceBackedRiskSignals(playbook),
2739
+ await this.deriveBrandNameTrademarkRiskSignal(),
2621
2740
  ];
2622
2741
  return composeRiskSignalsSection(signals);
2623
2742
  }
@@ -2626,6 +2745,19 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
2626
2745
  return '';
2627
2746
  }
2628
2747
  }
2748
+ /**
2749
+ * The brand name against its trademark screening, from the families this run reads — the engine derivation
2750
+ * parses the raw values itself, so this home and the assurance report cannot disagree about it.
2751
+ */
2752
+ async deriveBrandNameTrademarkRiskSignal() {
2753
+ const state = await this.readArtifactState();
2754
+ return deriveBrandNameTrademarkSignal({
2755
+ brand: state.artifactsByFamily.get(ApplicationSpecificationFamily.BRAND_BRIEF),
2756
+ screening: state.artifactsByFamily.get(ApplicationSpecificationFamily.BRAND_NAME_SCREENING),
2757
+ market: state.artifactsByFamily.get(ApplicationSpecificationFamily.MARKET_SNAPSHOT),
2758
+ creatorInputs: state.artifactsByFamily.get(ApplicationSpecificationFamily.CREATOR_INPUTS),
2759
+ });
2760
+ }
2629
2761
  /**
2630
2762
  * The two signals that need materialized resources, or NOTHING when the subprocess cannot answer.
2631
2763
  *
@@ -2663,7 +2795,7 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
2663
2795
  if (!playbookDeclaresContextSource(playbook, MetaWorkflow_ContextSource.COHERENCE_REPORT))
2664
2796
  return '';
2665
2797
  try {
2666
- const report = buildApplicationCoherenceReport(this.withComputedDocumentFacts(coherenceInputFor(state), state));
2798
+ const report = buildApplicationCoherenceReport(this.withComputedDocumentFacts(coherenceInputFor(state), state), this.coherenceHostFacts());
2667
2799
  return [
2668
2800
  '# Cross-family coherence (COMPUTED, not your judgement)',
2669
2801
  'The coverage and dangling-reference arithmetic below was computed exactly from the landed',
@@ -2905,7 +3037,7 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
2905
3037
  const after = coherenceInputFor(priorState);
2906
3038
  for (const landed of landedValues)
2907
3039
  after.set(landed.family, landed.value);
2908
- const rendered = renderApplicationCoherenceReport(buildApplicationCoherenceReport(this.withComputedDocumentFacts(after, priorState)));
3040
+ const rendered = renderApplicationCoherenceReport(buildApplicationCoherenceReport(this.withComputedDocumentFacts(after, priorState), this.coherenceHostFacts()));
2909
3041
  const packageRelativePath = 'src/COHERENCE.md';
2910
3042
  const absolutePath = path.join(specificationsPackageRoot, packageRelativePath);
2911
3043
  const existedBefore = existsSync(absolutePath);
@@ -3204,6 +3336,7 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
3204
3336
  for (const entry of deactivatedFamilies)
3205
3337
  artifactsByFamily.delete(entry.family);
3206
3338
  const familyGitFreshness = await this.resolveFamilyGitFreshness([...artifactsByFamily.keys()]);
3339
+ const landingHistory = await this.resolveLandingHistory([...artifactsByFamily.keys()], specificationsPackageRoot);
3207
3340
  const buildPlanExecution = artifactsByFamily.has('build-plan')
3208
3341
  ? await this.resolveBuildPlanExecutionState(familyGitFreshness)
3209
3342
  : undefined;
@@ -3224,6 +3357,7 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
3224
3357
  applicationLine: ignoredLandedFamilies.length > 0 ? { ...applicationLine, ignoredLandedFamilies } : applicationLine,
3225
3358
  ...(deactivatedFamilies.length > 0 ? { deactivatedFamilies } : {}),
3226
3359
  familyGitFreshness,
3360
+ ...(landingHistory ? { landingHistory } : {}),
3227
3361
  ...(creatorInputAnsweredAtByPlaybook.size > 0 ? { creatorInputAnsweredAtByPlaybook } : {}),
3228
3362
  ...(draftArtifactsByFamily.size > 0 ? { draftArtifactsByFamily } : {}),
3229
3363
  ...(computedDocumentFactAnswers.length > 0 ? { computedDocumentFactAnswers } : {}),
@@ -3256,6 +3390,24 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
3256
3390
  */
3257
3391
  return loadDraftFamilyValues(specificationsPackageRoot);
3258
3392
  }
3393
+ /**
3394
+ * When each playbook last landed and when each present family last changed, from the run-write
3395
+ * register — what lets an unattended selection withhold a playbook whose inputs have not moved
3396
+ * (`PlaybookEligibility.rerun`, 2026-10-01). Families are keyed by their landing file, app-root-relative,
3397
+ * which is how the register records a run's writes.
3398
+ */
3399
+ async resolveLandingHistory(families, specificationsPackageRoot) {
3400
+ const familyFiles = new Map();
3401
+ if (specificationsPackageRoot) {
3402
+ const specificationsRelativeRoot = path.relative(this.companionContext.saasRoot, specificationsPackageRoot);
3403
+ for (const family of families) {
3404
+ const packageRelativePath = getFamilyPackageRelativePath(family);
3405
+ if (packageRelativePath)
3406
+ familyFiles.set(family, path.posix.join(specificationsRelativeRoot, packageRelativePath));
3407
+ }
3408
+ }
3409
+ return this.writeRegister.deriveLandingHistory(familyFiles);
3410
+ }
3259
3411
  /**
3260
3412
  * What git says about each family's path: does it carry working edits, and when was it last
3261
3413
  * committed. The two facts {@link deriveOneFamilyFreshness} interprets.
@@ -3451,6 +3603,8 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
3451
3603
  playbooks,
3452
3604
  landableFamilies: this.resolveLandableFamilies(),
3453
3605
  readArtifactState: () => this.readArtifactState(),
3606
+ // A quick interview's skipped questions are assumed rather than waited on (#2129).
3607
+ assumeInterviewAnswers: (request) => this.assumeInterviewAnswers(request),
3454
3608
  // Lanes of one iteration call this CONCURRENTLY. Safe because admitted lanes are output-disjoint
3455
3609
  // by construction and the write register records per run — where "output" is a lane's TRANSITIVE
3456
3610
  // write scope (`resolvePlaybookWriteScope`), so a composite lane is judged by what its children
@@ -4195,6 +4349,8 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
4195
4349
  }
4196
4350
  async executePlaybookRunCounted(input, priorLeg) {
4197
4351
  const startedAtMs = Date.now();
4352
+ // Before any work: a loop spending at an enormous rate starts nothing new (a runaway breaker, not a budget).
4353
+ this.spendMeter.assertSpendRateBelowRunawayBreaker();
4198
4354
  const measured = await this.spendMeter.measure(() => this.executePlaybookRunUnmeasured(input));
4199
4355
  /*
4200
4356
  * A composite RESUMED from a checkpoint ran only its later iterations here; the earlier ones were paid
@@ -4261,6 +4417,8 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
4261
4417
  * named and found.
4262
4418
  */
4263
4419
  const runId = input.runId;
4420
+ // When the run began reading what it derives from — recorded with its writes, see the register's `startedAt`.
4421
+ const runStartedAt = new Date().toISOString();
4264
4422
  const hydrated = getFrameworkKnowledgePlaybook(input.playbookRef);
4265
4423
  if (!hydrated) {
4266
4424
  throw new UnknownPlaybookError(`No compiled playbook is registered under "${input.playbookRef}".`);
@@ -4360,10 +4518,17 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
4360
4518
  ...(input.instanceKey ? { instanceKey: input.instanceKey } : {}),
4361
4519
  });
4362
4520
  // Refuses a missing, unknown, duplicated or out-of-vocabulary answer — see its own header.
4521
+ /*
4522
+ * Computed options resolved against the families this run reads, so a computed CHOICE answer (the brand
4523
+ * name) is re-checked against the screening as it stands NOW — a candidate re-screened into a conflict
4524
+ * since the answer was given is refused here rather than carried into the brief.
4525
+ */
4526
+ const materializedElicitation = materializeElicitationOptions(playbook, { readFamily: (family) => artifactState.artifactsByFamily.get(family) });
4363
4527
  const elicitationSection = composeElicitationSection({
4364
4528
  playbookRef: input.playbookRef,
4365
- elicitation: playbook.method?.elicitation,
4529
+ elicitation: materializedElicitation.playbook.method?.elicitation,
4366
4530
  answers: elicitationAnswers,
4531
+ unavailableOptions: materializedElicitation.unavailableOptions,
4367
4532
  });
4368
4533
  /*
4369
4534
  * The CHOREOGRAPHY branch — a composite runs its children instead of producing anything itself.
@@ -4442,7 +4607,8 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
4442
4607
  * A PARALLEL BUILD (#1528): with a build parallelism above one, this tier runs a rolling wave of
4443
4608
  * coding runs in the shared worktree instead of one dispatch, and returns once it has drained.
4444
4609
  * The per-run advisory judge is not composed here — each run's own row carries its outcome,
4445
- * `concurrency` and `interferenceSuspected`, and the wave's end-of-run repair is on the result.
4610
+ * `concurrency` and `interferenceSuspected`, and the wave's end-of-run repairs are on the result: the
4611
+ * reconciliation, and the single-flight re-runs of tasks a sibling overwrote (`interferenceRepairs`, #2210).
4446
4612
  * A dry run never takes this branch: it dispatches nothing, whatever the degree.
4447
4613
  */
4448
4614
  // No application root means nothing to parallelize: one dispatch, as a degree of 1 would.
@@ -4584,7 +4750,7 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
4584
4750
  * was written". Reporting the resolved set keeps the flag honest and cheap.
4585
4751
  */
4586
4752
  if (playbook.executor === MetaWorkflow_Executor.DETERMINISTIC_CLI) {
4587
- const checkRefs = DETERMINISTIC_CLI_VERIFICATION_CHECKS[input.playbookRef];
4753
+ const checkRefs = DETERMINISTIC_CLI_VERIFICATION_CHECKS[input.playbookRef]?.(this.companionContext?.saasRoot);
4588
4754
  if (!checkRefs) {
4589
4755
  throw new PlaybookNotReadyError(`"${input.playbookRef}" declares executor ${MetaWorkflow_Executor.DETERMINISTIC_CLI} but no verification `
4590
4756
  + 'check set is registered for it. Translating a check ref into a runnable command is reviewed host '
@@ -5078,6 +5244,19 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
5078
5244
  runId,
5079
5245
  playbookRef: input.playbookRef,
5080
5246
  ...(input.session ? { traceSessionId: input.session.sessionId } : {}),
5247
+ startedAt: runStartedAt,
5248
+ playbookVersion: playbook.version,
5249
+ // What this landing measurably changed, per family (#2146): the rerun verdict reads it, not the declaration.
5250
+ ...(() => {
5251
+ // Every landed family is named: `null` records a change measured but not confinable to aspects (review R1).
5252
+ const aspectsChanged = {};
5253
+ for (const landed of result.landedValues) {
5254
+ const changed = measureChangedAspects(landed.family, artifactState.artifactsByFamily.get(landed.family), landed.value);
5255
+ aspectsChanged[landed.family] = changed === undefined ? null : [...changed];
5256
+ }
5257
+ return Object.keys(aspectsChanged).length > 0 ? { aspectsChanged } : {};
5258
+ })(),
5259
+ ...((briefAdequacy?.addedAspects.length ?? 0) > 0 ? { readAspectsAdded: [...briefAdequacy.addedAspects] } : {}),
5081
5260
  at: new Date().toISOString(),
5082
5261
  files: [
5083
5262
  ...result.landed.map((entry) => ({
@@ -5172,6 +5351,20 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
5172
5351
  })
5173
5352
  : { judged: false, skipped: `Compiled evaluation treatment does not satisfy its contract: ${treatment.error.issues[0]?.message ?? 'unknown issue'}` };
5174
5353
  this.logDebug('Playbook judge answered', { playbookRef: input.playbookRef, judge });
5354
+ /*
5355
+ * A GAP verdict is recorded ON THE LANDING (#2142), so the next unattended round can tell a rejected,
5356
+ * unchanged playbook (stuck) from an accepted one (finished): both are CURRENT, and withheld alike.
5357
+ * Only when the writes were recorded (`revertHandle`); best-effort, like the record itself — a lost
5358
+ * stamp makes the playbook read as finished, which re-offers nothing.
5359
+ */
5360
+ if (revertHandle !== undefined && judge.judged && judge.overall === MetaWorkflow_EvaluationVerdict.GAP) {
5361
+ const criteria = judge.criteria
5362
+ .filter((criterion) => criterion.verdict === MetaWorkflow_EvaluationVerdict.GAP)
5363
+ .map((criterion) => ({ criterionRef: criterion.criterionRef, ...(criterion.rationale.length > 0 ? { rationale: criterion.rationale } : {}) }));
5364
+ await this.writeRegister.markJudgedGap(revertHandle, criteria).catch((error) => {
5365
+ this.logDebug('Run write-register GAP stamp failed (non-fatal)', { runId: revertHandle, error: String(error) });
5366
+ });
5367
+ }
5175
5368
  }
5176
5369
  // The pre-images and rendered bytes stay in the register; the response and downstream readers get the
5177
5370
  // slim landing records they always had.
@@ -6590,6 +6783,7 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
6590
6783
  composeInputTruthSection(playbook, state) {
6591
6784
  const sections = [];
6592
6785
  const notApplicable = [];
6786
+ const absent = [];
6593
6787
  const valuesByFamily = this.decidedFamilyValues(state);
6594
6788
  for (const declaredInput of playbook.inputs ?? []) {
6595
6789
  /*
@@ -6602,13 +6796,21 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
6602
6796
  continue;
6603
6797
  }
6604
6798
  const value = valuesByFamily[declaredInput.family];
6605
- if (value === undefined || value === null)
6799
+ if (value === undefined || value === null) {
6800
+ /*
6801
+ * ABSENT is stated, not dropped (#2235): a model — or the judge reading this same section as its evidence —
6802
+ * that meets no heading for a declared input cannot tell "not written yet" from "not shown". A file-only
6803
+ * marker is present, so it stays unstated, as before.
6804
+ */
6805
+ if (state.artifactsByFamily.get(declaredInput.family) !== FILE_PRESENT_WITHOUT_VALUE)
6806
+ absent.push(declaredInput.family);
6606
6807
  continue;
6808
+ }
6607
6809
  // The playbook's DECLARATION decides how much of the family it reads — its aspects, or its intent.
6608
6810
  // Absent = everything, which is what every playbook did before either existed.
6609
6811
  sections.push(`## Input family: ${declaredInput.family}\n${renderDeclaredInputFamily(declaredInput, value, valuesByFamily)}`);
6610
6812
  }
6611
- if (sections.length === 0 && notApplicable.length === 0)
6813
+ if (sections.length === 0 && notApplicable.length === 0 && absent.length === 0)
6612
6814
  return '';
6613
6815
  const line = state.applicationLine?.declaration;
6614
6816
  const lineName = line?.state === ApplicationLineDeclarationState.DECLARED ? line.line : 'declared';
@@ -6621,6 +6823,11 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
6621
6823
  'The application has none and none is owed. Do not infer, invent or ask for their content, and leave',
6622
6824
  'every reference into them empty (for example, requirements name no ICP when the market does not apply).']
6623
6825
  : []),
6826
+ ...(absent.length > 0
6827
+ ? ['', `These declared input families have NO accepted content yet: ${absent.map((family) => `\`${family}\``).join(', ')}.`,
6828
+ 'They are absent, not unread. Do not infer or invent their content; where the method says what to do without one,',
6829
+ 'do exactly that.']
6830
+ : []),
6624
6831
  ...(sections.length > 0 ? ['', sections.join('\n\n')] : []),
6625
6832
  ].join('\n');
6626
6833
  }
@@ -6891,6 +7098,51 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
6891
7098
  async submitPlaybookRunDetached(input) {
6892
7099
  return this.submitPlaybookRoundDetached(input, 1);
6893
7100
  }
7101
+ /**
7102
+ * Start a parallel build WAVE detached, or answer `undefined` when this application builds one task
7103
+ * at a time (#2208). The build console's `wildo build run` asks this first, so the verb people and
7104
+ * agents reach for runs the lane in its normal mode: the build parallelism defaults to
7105
+ * `DEFAULT_BUILD_PARALLELISM` (5), and before this the console could only ever start one task.
7106
+ *
7107
+ * The wave is a run of {@link BUILD_WAVE_PLAYBOOK_REF}, the one door to `dispatchBuildWave` (the
7108
+ * CODING_AGENT tier of {@link runPlaybook}). A second door that called the wave directly was
7109
+ * rejected: it would leave no run record, so the feed and `lastCompleted` would never report it.
7110
+ *
7111
+ * The degree is read HERE, through the same `readBuildParallelism` the tier reads, so the console
7112
+ * keeps no copy of the setting. The tier reads it again when the run starts; a degree lowered to one
7113
+ * in between makes that run a single dispatch, which is still correct.
7114
+ *
7115
+ * It REFUSES BEFORE SUBMITTING. A detached run reports a refusal only later, in the feed, while the
7116
+ * one-task door refuses at once (no build plan, plan exhausted with its assembly verdict, every ready
7117
+ * task stuck). So the next task is described through the same qualifying read the one-task door uses,
7118
+ * which throws those same errors to the caller now.
7119
+ *
7120
+ * And it refuses a SECOND wave (#2208 review M1): one already running in `dispatchBuildWave`, or one
7121
+ * submitted and not yet there — a detached wave run is registered at submission, before its wave starts,
7122
+ * so two quick `wildo build run` calls would otherwise both pass the first check.
7123
+ */
7124
+ async submitBuildWaveDetached(session) {
7125
+ const saasRoot = this.companionContext?.saasRoot;
7126
+ if (saasRoot === undefined)
7127
+ return undefined;
7128
+ const degree = readBuildParallelism(saasRoot);
7129
+ if (degree <= 1)
7130
+ return undefined;
7131
+ this.buildDispatch.assertNoBuildWaveInFlight();
7132
+ const submitted = [...this.runningDetachedRuns.values()]
7133
+ .find((run) => getFrameworkKnowledgePlaybook(run.playbookRef)?.playbook?.executor
7134
+ === MetaWorkflow_Executor.CODING_AGENT);
7135
+ if (submitted !== undefined)
7136
+ throw new ApplicationBuildWaveInFlightError(submitted.startedAt);
7137
+ const nextReady = await this.buildDispatch.describeNextBuildTaskBeforeRunning();
7138
+ const submission = await this.submitPlaybookRunDetached({ playbookRef: BUILD_WAVE_PLAYBOOK_REF, ...(session ? { session } : {}) });
7139
+ return {
7140
+ degree,
7141
+ runId: submission.runId,
7142
+ playbookRef: submission.playbookRef,
7143
+ nextReadyTask: { taskRef: nextReady.taskRef, objective: nextReady.objective },
7144
+ };
7145
+ }
6894
7146
  /**
6895
7147
  * One ROUND of a detached run. A composite that ends on its breaker is followed by the next round
6896
7148
  * when {@link decideCompositeRoundRelaunch} says so (#1542), which is why the round number travels.
@@ -7102,9 +7354,9 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
7102
7354
  assertPlaybookModelCallBreaker() {
7103
7355
  if (!this.modelCallBreaker.providerBudgetNoted) {
7104
7356
  this.modelCallBreaker.providerBudgetNoted = true;
7105
- this.logger.warn('Playbook lane model calls have NO budget limit in the companion — only a runaway circuit '
7106
- + 'breaker (default 1000 calls/hour, WILDO_PLAYBOOK_MODEL_CALL_HOURLY_BREAKER to change). '
7107
- + 'Set real spend limits at the model provider account.');
7357
+ this.logger.warn('Playbook lane model calls have NO budget limit in the companion — only two runaway circuit '
7358
+ + 'breakers: 1000 calls/hour (WILDO_PLAYBOOK_MODEL_CALL_HOURLY_BREAKER) and 500 USD of reported spend '
7359
+ + 'per hour (WILDO_PLAYBOOK_SPEND_HOURLY_BREAKER_USD). Set real spend limits at the model provider account.');
7108
7360
  }
7109
7361
  const hour = new Date().toISOString().slice(0, 13);
7110
7362
  if (this.modelCallBreaker.hour !== hour)
@@ -7148,7 +7400,14 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
7148
7400
  return this.buildGenerationPort();
7149
7401
  const base = this.buildGenerationPort();
7150
7402
  return {
7151
- generate: async ({ prompt, schema, label }) => {
7403
+ generate: async ({ prompt, schema, label, purpose }) => {
7404
+ /*
7405
+ * A CORRECTION is never deliberated (#2219 review): it is a short patch against an answer already
7406
+ * chosen, and N candidate patches each told to differ from the obvious reading would argue against
7407
+ * the correction itself, at N times the cost.
7408
+ */
7409
+ if (purpose === PlaybookGenerationPurpose.CORRECTION)
7410
+ return base.generate({ prompt, schema, label, purpose });
7152
7411
  /*
7153
7412
  * Candidates are generated through the SAME constrained port, so each is
7154
7413
  * already schema-valid before the panel sees it. The only variation is an
@@ -7223,10 +7482,19 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
7223
7482
  },
7224
7483
  };
7225
7484
  }
7485
+ /**
7486
+ * ONE schema-constrained model call outside any run — the interview-answer proposer (#2129). It is the lane's
7487
+ * own generation port, so the call reaches the same generator agent and is counted by the same runaway
7488
+ * breaker as every run's calls; a second door to the model would be a second, uncounted one.
7489
+ */
7490
+ generateStructured(input) {
7491
+ return this.buildGenerationPort().generate(input);
7492
+ }
7226
7493
  buildGenerationPort() {
7227
7494
  return {
7228
7495
  generate: async ({ prompt, schema, label }) => {
7229
7496
  this.assertPlaybookModelCallBreaker();
7497
+ this.spendMeter.assertSpendRateBelowRunawayBreaker();
7230
7498
  const invocation = {
7231
7499
  agentRef: META_WORKFLOWS_STRUCTURED_ARTIFACT_GENERATOR_AGENT_REF,
7232
7500
  initiator: {},
@@ -7309,6 +7577,8 @@ PlaybookRunCompanionService = PlaybookRunCompanionService_1 = __decorate([
7309
7577
  __param(15, inject(COMPANION_SERVICE_TYPES.ExecutionsService)),
7310
7578
  __param(16, inject(SAAS_SERVICE_TYPES.ActorsSystemBackendService)),
7311
7579
  __param(17, inject(COMPANION_SERVICE_TYPES.PlaybookSpendMeter)),
7580
+ __param(18, inject(SAAS_SERVICE_TYPES.AppConfigService)),
7581
+ __param(19, inject(COMPANION_SERVICE_TYPES.DossierService)),
7312
7582
  __metadata("design:paramtypes", [Function, Object, ResearchAgentDispatchCompanionService, Function, CompanionTraceabilityService,
7313
7583
  PlaybookRunWriteRegisterCompanionService,
7314
7584
  ApplicationBuildDispatchCompanionService,
@@ -7320,7 +7590,7 @@ PlaybookRunCompanionService = PlaybookRunCompanionService_1 = __decorate([
7320
7590
  ApplicationMaturityExecutorCompanionService,
7321
7591
  ExpertPersonaCompanionService,
7322
7592
  StructuredDeliberationCompanionService,
7323
- CompanionExecutionsCompanionService, Function, PlaybookSpendMeterCompanionService])
7593
+ CompanionExecutionsCompanionService, Function, PlaybookSpendMeterCompanionService, Function, DossierCompanionService])
7324
7594
  ], PlaybookRunCompanionService);
7325
7595
  export { PlaybookRunCompanionService };
7326
7596
  //# sourceMappingURL=playbook-run.companion.service.js.map