@wildo-ai/dev-companion 1.1.5 → 1.1.7

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 (1246) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
  3. package/dist/esm/__tests__/asset-noop.js.map +1 -1
  4. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
  5. package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +1 -1
  6. package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
  7. package/dist/esm/__tests__/internal-test-view.js.map +1 -1
  8. package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
  9. package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
  10. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  11. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +0 -1
  12. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  13. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  14. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +0 -1
  15. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  16. package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
  17. package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
  18. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +8 -0
  19. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  20. package/dist/esm/brand/services/brand-accept.companion.service.js +6 -0
  21. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  22. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts +21 -0
  23. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -0
  24. package/dist/esm/brand/services/brand-propagation.companion.utils.js +33 -0
  25. package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -0
  26. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  27. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  28. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  29. package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
  30. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  31. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  32. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  33. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  34. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
  35. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
  36. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +69 -1
  37. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  38. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +84 -3
  39. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  40. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
  41. package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
  42. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +8 -4
  43. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  44. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +9 -5
  45. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  46. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
  47. package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
  48. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
  49. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +1 -1
  50. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
  51. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +4 -0
  52. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
  53. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +25 -3
  54. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
  55. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +159 -11
  56. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  57. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +424 -41
  58. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  59. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +333 -60
  60. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  61. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +1029 -185
  62. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  63. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts +8 -2
  64. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
  65. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +8 -2
  66. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
  67. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  68. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  69. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts +20 -0
  70. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -0
  71. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js +29 -0
  72. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -0
  73. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +11 -0
  74. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  75. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +60 -7
  76. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  77. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +5 -4
  78. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  79. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +13 -4
  80. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  81. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
  82. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.js.map +1 -1
  83. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
  84. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  85. package/dist/esm/companion-api/companion-api.schemas.d.ts +193 -2
  86. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  87. package/dist/esm/companion-api/companion-api.schemas.js +20 -1
  88. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  89. package/dist/esm/companion-api/companion-error-guidance.models.d.ts +25 -0
  90. package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -0
  91. package/dist/esm/companion-api/companion-error-guidance.models.js +26 -0
  92. package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -0
  93. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts +44 -0
  94. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -0
  95. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js +111 -0
  96. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -0
  97. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
  98. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
  99. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +6 -14
  100. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
  101. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +6 -14
  102. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  103. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts +12 -0
  104. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -0
  105. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js +20 -0
  106. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -0
  107. package/dist/esm/companion-api/controllers/companion.controller.d.ts +104 -14
  108. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  109. package/dist/esm/companion-api/controllers/companion.controller.js +516 -122
  110. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  111. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  112. package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
  113. package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
  114. package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
  115. package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
  116. package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
  117. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
  118. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
  119. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
  120. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
  121. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
  122. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
  123. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
  124. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
  125. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
  126. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
  127. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
  128. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
  129. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
  130. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
  131. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
  132. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
  133. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
  134. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
  135. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
  136. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
  137. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
  138. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
  139. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  140. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  141. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
  142. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
  143. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
  144. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
  145. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  146. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +6 -38
  147. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  148. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
  149. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
  150. package/dist/esm/core/config/primary-language.companion.utils.d.ts +13 -0
  151. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  152. package/dist/esm/core/config/primary-language.companion.utils.js +19 -0
  153. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  154. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  155. package/dist/esm/core/context/companion-context.js.map +1 -1
  156. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  157. package/dist/esm/core/context/companion-package-loaders.companion.js +1 -39
  158. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  159. package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
  160. package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
  161. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  162. package/dist/esm/core/inject/models/container.js +4 -0
  163. package/dist/esm/core/inject/models/container.js.map +1 -1
  164. package/dist/esm/core/inject/models/service-types.d.ts +4 -0
  165. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  166. package/dist/esm/core/inject/models/service-types.js +4 -0
  167. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  168. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  169. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +16 -0
  170. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  171. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +1 -1
  172. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  173. package/dist/esm/core/introspection/models/companion-introspection.models.js +6 -0
  174. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  175. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts +41 -0
  176. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -0
  177. package/dist/esm/core/introspection/resources/application-secrets.companion.js +155 -0
  178. package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -0
  179. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +76 -0
  180. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -0
  181. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +197 -0
  182. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -0
  183. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +47 -0
  184. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -0
  185. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +199 -0
  186. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -0
  187. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
  188. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  189. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +42 -0
  190. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  191. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +173 -22
  192. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  193. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +78 -90
  194. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  195. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +288 -25
  196. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  197. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +22 -36
  198. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  199. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +49 -13
  200. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  201. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts +1 -1
  202. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  203. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +10 -15
  204. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  205. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
  206. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
  207. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  208. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  209. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  210. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  211. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  212. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  213. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  214. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
  215. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  216. package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
  217. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
  218. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
  219. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +2 -0
  220. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  221. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  222. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  223. package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
  224. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts +4 -0
  225. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  226. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
  227. package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
  228. package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
  229. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
  230. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
  231. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
  232. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
  233. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  234. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +77 -9
  235. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  236. package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
  237. package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
  238. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
  239. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
  240. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +45 -3
  241. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  242. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +8 -1
  243. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  244. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
  245. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
  246. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
  247. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
  248. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  249. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
  250. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  251. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  252. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +3 -2
  253. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  254. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js +8 -3
  255. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  256. package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
  257. package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
  258. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
  259. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
  260. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +30 -1
  261. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  262. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +128 -20
  263. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  264. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
  265. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
  266. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts +13 -0
  267. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  268. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +21 -17
  269. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  270. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
  271. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
  272. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
  273. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
  274. package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
  275. package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
  276. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  277. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  278. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  279. package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
  280. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  281. package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
  282. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
  283. package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
  284. package/dist/esm/core/runtime/companion-endpoint-record.d.ts +8 -0
  285. package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -0
  286. package/dist/esm/core/runtime/companion-endpoint-record.js +23 -0
  287. package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -0
  288. package/dist/esm/core/runtime/companion-env-file.d.ts +30 -0
  289. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -0
  290. package/dist/esm/core/runtime/companion-env-file.js +53 -0
  291. package/dist/esm/core/runtime/companion-env-file.js.map +1 -0
  292. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  293. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  294. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +5 -0
  295. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  296. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +11 -0
  297. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  298. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts +56 -0
  299. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -0
  300. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js +97 -0
  301. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -0
  302. package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
  303. package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
  304. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
  305. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
  306. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +43 -3
  307. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  308. package/dist/esm/core/runtime/services/start-companion-application.service.js +127 -22
  309. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  310. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
  311. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
  312. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +11 -1
  313. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  314. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +42 -19
  315. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  316. package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
  317. package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
  318. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
  319. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
  320. package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
  321. package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
  322. package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
  323. package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
  324. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  325. package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
  326. package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
  327. package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
  328. package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
  329. package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
  330. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
  331. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
  332. package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
  333. package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
  334. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
  335. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
  336. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  337. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
  338. package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
  339. package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
  340. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  341. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
  342. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  343. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
  344. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  345. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
  346. package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
  347. package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
  348. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  349. package/dist/esm/core/specifications/resource-specification-context.factory.js +10 -1
  350. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  351. package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
  352. package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
  353. package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
  354. package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
  355. package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
  356. package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
  357. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  358. package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
  359. package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
  360. package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
  361. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
  362. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
  363. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
  364. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
  365. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
  366. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
  367. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
  368. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
  369. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
  370. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
  371. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
  372. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
  373. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
  374. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
  375. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
  376. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
  377. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
  378. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
  379. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
  380. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
  381. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
  382. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
  383. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
  384. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
  385. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
  386. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
  387. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
  388. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
  389. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
  390. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
  391. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
  392. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
  393. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
  394. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
  395. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
  396. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
  397. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
  398. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
  399. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
  400. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
  401. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
  402. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
  403. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
  404. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
  405. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
  406. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
  407. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
  408. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
  409. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
  410. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
  411. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
  412. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
  413. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
  414. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
  415. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
  416. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
  417. package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
  418. package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
  419. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
  420. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
  421. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
  422. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
  423. package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
  424. package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
  425. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
  426. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
  427. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
  428. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
  429. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
  430. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
  431. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
  432. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
  433. package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
  434. package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
  435. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
  436. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
  437. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
  438. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
  439. package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
  440. package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
  441. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
  442. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
  443. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
  444. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
  445. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
  446. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
  447. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
  448. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
  449. package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
  450. package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
  451. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  452. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  453. package/dist/esm/core/traceability/companion-traceability.models.d.ts +1 -7
  454. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  455. package/dist/esm/core/traceability/companion-traceability.models.js +3 -5
  456. package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
  457. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  458. package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
  459. package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
  460. package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
  461. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
  462. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
  463. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  464. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +15 -14
  465. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  466. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +0 -23
  467. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  468. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +251 -50
  469. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  470. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  471. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +0 -2
  472. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  473. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  474. package/dist/esm/deliberations/services/deliberation.companion.service.js +3 -2
  475. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  476. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  477. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  478. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
  479. package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
  480. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  481. package/dist/esm/email/models/email-template.actors-system.definitions.js +0 -1
  482. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  483. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
  484. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  485. package/dist/esm/email/services/email-template.companion.service.d.ts +5 -3
  486. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  487. package/dist/esm/email/services/email-template.companion.service.js +53 -255
  488. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  489. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts +12 -0
  490. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  491. package/dist/esm/email/utils/email-labels-file-source.utils.js +62 -3
  492. package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
  493. package/dist/esm/email/utils/email-labels-tree.utils.d.ts +52 -0
  494. package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -0
  495. package/dist/esm/email/utils/email-labels-tree.utils.js +261 -0
  496. package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -0
  497. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  498. package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
  499. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +2 -0
  500. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
  501. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +21 -1
  502. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
  503. package/dist/esm/executions/services/companion-executions.companion.service.d.ts +18 -1
  504. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  505. package/dist/esm/executions/services/companion-executions.companion.service.js +187 -46
  506. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  507. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  508. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +0 -1
  509. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  510. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  511. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +0 -1
  512. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  513. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
  514. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
  515. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  516. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +10 -0
  517. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  518. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
  519. package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
  520. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
  521. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
  522. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
  523. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
  524. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
  525. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
  526. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
  527. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
  528. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
  529. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
  530. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +1 -8
  531. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  532. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js +2 -9
  533. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  534. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  535. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
  536. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
  537. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
  538. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  539. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
  540. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
  541. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
  542. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
  543. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
  544. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts +2 -0
  545. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  546. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js +3 -1
  547. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  548. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  549. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
  550. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts +32 -0
  551. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -0
  552. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js +32 -0
  553. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -0
  554. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +0 -1
  555. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  556. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js +0 -1
  557. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  558. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts +0 -7
  559. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  560. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js +0 -7
  561. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  562. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts +30 -4
  563. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
  564. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +31 -5
  565. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
  566. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
  567. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
  568. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
  569. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
  570. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
  571. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
  572. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
  573. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
  574. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts +0 -2
  575. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  576. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +0 -2
  577. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  578. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +4 -0
  579. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  580. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +5 -1
  581. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  582. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
  583. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
  584. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts +1 -15
  585. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  586. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js +1 -15
  587. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  588. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  589. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
  590. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
  591. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
  592. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
  593. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
  594. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
  595. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
  596. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
  597. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
  598. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  599. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
  600. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
  601. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
  602. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
  603. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
  604. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
  605. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
  606. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +0 -3
  607. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  608. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +0 -3
  609. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  610. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +49 -16
  611. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  612. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +49 -16
  613. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  614. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
  615. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
  616. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
  617. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
  618. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
  619. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
  620. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
  621. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
  622. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
  623. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
  624. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
  625. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
  626. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
  627. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
  628. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
  629. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
  630. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
  631. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
  632. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
  633. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
  634. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
  635. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
  636. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
  637. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
  638. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
  639. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
  640. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
  641. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
  642. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
  643. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
  644. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
  645. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
  646. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
  647. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
  648. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
  649. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
  650. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
  651. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
  652. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts +0 -5
  653. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  654. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +0 -5
  655. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  656. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
  657. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
  658. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
  659. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
  660. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
  661. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
  662. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  663. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
  664. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +3 -0
  665. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
  666. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +4 -1
  667. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
  668. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  669. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
  670. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts +7 -1
  671. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  672. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js +8 -2
  673. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  674. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  675. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
  676. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts +1 -0
  677. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  678. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js +2 -1
  679. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  680. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
  681. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
  682. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
  683. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
  684. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
  685. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
  686. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
  687. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
  688. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
  689. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
  690. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
  691. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
  692. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  693. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  694. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
  695. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
  696. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
  697. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
  698. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
  699. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
  700. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
  701. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
  702. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
  703. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
  704. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
  705. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
  706. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
  707. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
  708. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts +1 -0
  709. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  710. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js +2 -1
  711. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  712. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
  713. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
  714. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  715. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
  716. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
  717. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
  718. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
  719. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
  720. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
  721. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
  722. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
  723. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
  724. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts +12 -0
  725. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -0
  726. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js +12 -0
  727. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -0
  728. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
  729. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
  730. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
  731. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
  732. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
  733. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
  734. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
  735. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
  736. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
  737. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
  738. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
  739. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
  740. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
  741. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
  742. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
  743. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
  744. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
  745. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
  746. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
  747. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
  748. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +1 -0
  749. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  750. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +2 -1
  751. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  752. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts +10 -0
  753. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
  754. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +11 -1
  755. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
  756. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
  757. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
  758. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
  759. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
  760. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts +8 -0
  761. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  762. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js +9 -1
  763. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  764. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
  765. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
  766. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +3 -0
  767. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  768. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +4 -1
  769. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  770. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
  771. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
  772. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
  773. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
  774. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
  775. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
  776. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
  777. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
  778. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
  779. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
  780. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
  781. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
  782. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
  783. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
  784. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
  785. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
  786. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
  787. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
  788. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
  789. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
  790. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
  791. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
  792. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  793. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
  794. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
  795. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
  796. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  797. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
  798. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  799. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
  800. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
  801. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
  802. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
  803. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
  804. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  805. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  806. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
  807. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
  808. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
  809. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
  810. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
  811. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
  812. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
  813. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
  814. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
  815. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
  816. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  817. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  818. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  819. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  820. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
  821. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
  822. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  823. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
  824. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  825. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
  826. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  827. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
  828. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
  829. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
  830. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
  831. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
  832. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  833. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
  834. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  835. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
  836. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
  837. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
  838. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  839. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  840. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
  841. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
  842. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +2 -1
  843. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  844. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +3 -2
  845. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  846. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts +6 -0
  847. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  848. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js +7 -1
  849. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  850. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts +1 -0
  851. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  852. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +2 -1
  853. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  854. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
  855. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
  856. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
  857. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
  858. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
  859. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
  860. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
  861. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
  862. package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
  863. package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
  864. package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
  865. package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
  866. package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
  867. package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
  868. package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
  869. package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
  870. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  871. package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
  872. package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
  873. package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
  874. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
  875. package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
  876. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  877. package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
  878. package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
  879. package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
  880. package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
  881. package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
  882. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
  883. package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
  884. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts +0 -2
  885. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  886. package/dist/esm/i18n/components/progression_milestone_tracker.en.js +0 -2
  887. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  888. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +1 -0
  889. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  890. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +123 -19
  891. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  892. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
  893. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +12 -0
  894. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
  895. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
  896. package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
  897. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts +25 -0
  898. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -0
  899. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js +26 -0
  900. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -0
  901. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +26 -3
  902. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
  903. package/dist/esm/i18n/errors_messages/errors-messages.en.js +25 -3
  904. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
  905. package/dist/esm/i18n/index.d.ts +10 -8
  906. package/dist/esm/i18n/index.d.ts.map +1 -1
  907. package/dist/esm/i18n/index.js +10 -8
  908. package/dist/esm/i18n/index.js.map +1 -1
  909. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +10 -0
  910. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  911. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +2 -0
  912. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  913. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  914. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
  915. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  916. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
  917. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts +97 -0
  918. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -0
  919. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js +60 -0
  920. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -0
  921. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  922. package/dist/esm/i18n/resources/workbenchAspects.en.js +6 -0
  923. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  924. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
  925. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
  926. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +5 -0
  927. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
  928. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +1 -0
  929. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
  930. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  931. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  932. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +24 -0
  933. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
  934. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +8 -0
  935. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
  936. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
  937. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
  938. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
  939. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
  940. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
  941. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
  942. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +30 -0
  943. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  944. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +9 -0
  945. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  946. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +17 -4
  947. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
  948. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +32 -4
  949. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
  950. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
  951. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
  952. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +8 -2
  953. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
  954. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +6 -2
  955. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
  956. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +18 -7
  957. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
  958. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +17 -7
  959. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
  960. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +28 -3
  961. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  962. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +13 -3
  963. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  964. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +3 -2
  965. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  966. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +8 -2
  967. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  968. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +118 -8
  969. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  970. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +42 -16
  971. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  972. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  973. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
  974. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +12 -2
  975. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
  976. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +16 -2
  977. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
  978. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +10 -0
  979. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  980. package/dist/esm/i18n/system_enums/application-creation.en.js +11 -0
  981. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  982. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
  983. package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
  984. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
  985. package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
  986. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  987. package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
  988. package/dist/esm/i18n/system_enums/processor-register.en.d.ts +6 -0
  989. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
  990. package/dist/esm/i18n/system_enums/processor-register.en.js +6 -0
  991. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
  992. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
  993. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
  994. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
  995. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
  996. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
  997. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
  998. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +4 -1
  999. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  1000. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +5 -1
  1001. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  1002. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
  1003. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
  1004. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts +46 -0
  1005. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -0
  1006. package/dist/esm/i18n/system_enums/workbench-secrets.en.js +46 -0
  1007. package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -0
  1008. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +8 -0
  1009. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
  1010. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +13 -0
  1011. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
  1012. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts +61 -0
  1013. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -0
  1014. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js +22 -0
  1015. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -0
  1016. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +105 -24
  1017. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  1018. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +55 -24
  1019. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  1020. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  1021. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +0 -2
  1022. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  1023. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
  1024. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
  1025. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts +48 -0
  1026. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -0
  1027. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +145 -0
  1028. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -0
  1029. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +70 -18
  1030. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  1031. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +330 -113
  1032. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  1033. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +45 -0
  1034. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  1035. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +208 -6
  1036. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  1037. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +11 -2
  1038. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  1039. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +101 -18
  1040. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  1041. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +64 -1
  1042. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  1043. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +393 -70
  1044. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  1045. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
  1046. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
  1047. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +9 -5
  1048. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  1049. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  1050. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts +54 -0
  1051. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -0
  1052. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js +74 -0
  1053. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -0
  1054. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +3 -3
  1055. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  1056. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  1057. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  1058. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
  1059. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts +24 -0
  1060. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -0
  1061. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js +34 -0
  1062. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -0
  1063. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  1064. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
  1065. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
  1066. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
  1067. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  1068. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +5 -1
  1069. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  1070. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  1071. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  1072. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts +76 -0
  1073. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -0
  1074. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js +110 -0
  1075. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -0
  1076. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts +17 -0
  1077. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -0
  1078. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js +23 -0
  1079. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -0
  1080. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
  1081. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
  1082. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +36 -3
  1083. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  1084. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +77 -5
  1085. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  1086. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  1087. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
  1088. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts +38 -0
  1089. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -0
  1090. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js +66 -0
  1091. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -0
  1092. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
  1093. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
  1094. package/dist/esm/index.d.ts.map +1 -1
  1095. package/dist/esm/index.js +9 -3
  1096. package/dist/esm/index.js.map +1 -1
  1097. package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
  1098. package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
  1099. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
  1100. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +0 -1
  1101. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
  1102. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  1103. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +1 -3
  1104. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  1105. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts +11 -0
  1106. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -0
  1107. package/dist/esm/meta-workflows/models/application-line-catalog.models.js +17 -0
  1108. package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -0
  1109. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  1110. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +0 -1
  1111. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  1112. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
  1113. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +1 -1
  1114. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  1115. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
  1116. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
  1117. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
  1118. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
  1119. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +14 -0
  1120. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
  1121. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +18 -0
  1122. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
  1123. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts +14 -0
  1124. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -0
  1125. package/dist/esm/meta-workflows/models/human-decision-settler.models.js +18 -0
  1126. package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -0
  1127. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +31 -23
  1128. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  1129. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +36 -5
  1130. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  1131. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  1132. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +1 -3
  1133. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  1134. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +19 -0
  1135. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  1136. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +38 -6
  1137. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  1138. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +48 -3
  1139. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  1140. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +61 -8
  1141. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  1142. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
  1143. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
  1144. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
  1145. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
  1146. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +15 -1
  1147. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
  1148. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +50 -5
  1149. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
  1150. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +52 -9
  1151. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  1152. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +131 -59
  1153. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  1154. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts +19 -0
  1155. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -0
  1156. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js +36 -0
  1157. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -0
  1158. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +9 -0
  1159. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  1160. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +41 -17
  1161. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  1162. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +42 -2
  1163. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  1164. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +121 -4
  1165. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  1166. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +32 -0
  1167. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -0
  1168. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +161 -0
  1169. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -0
  1170. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
  1171. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
  1172. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +2 -0
  1173. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
  1174. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +1 -0
  1175. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
  1176. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +3 -2
  1177. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  1178. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +12 -3
  1179. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  1180. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -1
  1181. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  1182. package/dist/esm/meta-workflows/services/dossier.companion.service.js +227 -30
  1183. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  1184. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -1
  1185. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -1
  1186. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  1187. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  1188. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -1
  1189. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -1
  1190. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +29 -2
  1191. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  1192. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +68 -5
  1193. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  1194. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts +40 -0
  1195. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -0
  1196. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js +91 -0
  1197. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -0
  1198. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts +25 -0
  1199. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -0
  1200. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js +40 -0
  1201. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -0
  1202. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
  1203. package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
  1204. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
  1205. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
  1206. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts +90 -0
  1207. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -0
  1208. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +307 -0
  1209. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -0
  1210. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +29 -0
  1211. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  1212. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +44 -4
  1213. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  1214. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +360 -47
  1215. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  1216. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +1424 -246
  1217. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  1218. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
  1219. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
  1220. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
  1221. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
  1222. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
  1223. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
  1224. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  1225. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  1226. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  1227. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  1228. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
  1229. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
  1230. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
  1231. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
  1232. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  1233. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  1234. package/package.json +17 -17
  1235. package/dist/esm/__time-gov.probe.d.mts +0 -0
  1236. package/dist/esm/__time-gov.probe.d.mts.map +0 -0
  1237. package/dist/esm/__time-gov.probe.mjs.map +0 -0
  1238. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
  1239. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
  1240. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
  1241. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -0
  1242. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -0
  1243. package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -0
  1244. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
  1245. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
  1246. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"application-build-dispatch.companion.service.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/application-build-dispatch.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,U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UAAU;oBAChC,cAAc,EAAE,gGAAgG;0BAC5G,+DAA+D;iBACpE;gBACH,CAAC,CAAC,EAAE,CAAC;YACP,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAClF,IAAI,EAAE,mHAAmH;kBACrH,mFAAmF;SACxF;KACF,CAAC;AACJ,CAAC","sourcesContent":["import {\n type MetaWorkflow_ApplicationCodingTaskContract,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport { readdirSync } from 'node:fs';\nimport { readFile } from 'node:fs/promises';\nimport { join } from 'node:path';\n\nimport { inject, injectable } from 'inversify';\nimport { ApplicationSchemaPlanObligation } from '../../core/config/application-schema-plan-obligation.companion.utils';\nimport {\n WORKBENCH_TASK_CORRELATION_DOMAIN,\n Workbench_BuildDispatchPhase,\n Workbench_BuildTaskStuckReason,\n WorkbenchBuildPlanTaskStatus,\n WorkbenchTaskCorrelationRef,\n sanitizeWorkbenchCreationPlaneIdentity,\n} from '@wildo-ai/platform-core-shared';\n\nimport {\n composeBuildTaskCodingContract,\n slugifyRegistryIdentifier,\n type BuildTaskContextSource,\n decidedFamilyValuesFromCompanionExports,\n indexDecidedAspects,\n} from '@wildo-ai/application-creation-runtime';\nimport type { ActorExecutionOpenRequest, ActorsSystemBackendService, LoggerService, OpenedActorExecution } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES, describeCaughtError } from '@wildo-ai/saas-backend-lib';\nimport { Actor_Task_Topics, FlowsActors_Status } from '@wildo-ai/saas-models';\nimport {\n BUILD_PLAN_TASK_GRAPH_HARD_FLOOR_CODES,\n BuildPlanResourceStage,\n BuildPlanTaskGraphSchema,\n type BuildPlanTaskProduct,\n BuildPlanTaskTargetKind,\n BuildPlanTaskProductKind,\n MetaWorkflow_FunctionalTopic,\n PlacementDisposition,\n PlacementPlanSchema,\n PlacementSurface,\n selectReadyBuildPlanTasks,\n type PlacementPlan,\n validateBuildPlanTaskGraph,\n type BuildPlanTask,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nimport { relatedWorkspaceResources } from '../../core/introspection/workspace-element-index.companion';\nimport { describeWorkspaceFreshness, readWorkspaceElements } from '../../core/introspection/workspace-elements.companion';\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service';\nimport { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion';\nimport { waitForDevCompileQuiet } from '../../core/runtime/dev-compile-quiet.companion';\nimport { readBuildParallelism } from '@wildo-ai/platform-config-lib';\nimport { CodingRunConcurrency } from '../../claude-cli/models/concurrent-coding-runs.models';\nimport {\n CodingAgentDispatchCompanionService,\n type ApplicationCodingTaskSettledOutcome,\n} from '../../claude-cli/services/coding-agent-dispatch.companion.service';\nimport {\n CodingRunFailureAttribution,\n isApplicationCodingContractRefusal,\n resolveApplicationCodingTaskVerificationPlans,\n type ApplicationCodingTaskRunAdmission,\n} from '../../claude-cli/models/coding-agent-dispatch.models';\nimport { GitChangeSetCompanionService } from '../../claude-cli/services/git-change-set.companion.service';\nimport type { CompanionExecutionSessionContext } from '../../core/traceability/companion-traceability.models';\nimport { CompanionExecutionsCompanionService } from '../../executions/services/companion-executions.companion.service';\nimport { CompanionExecutionsListQuerySchema } from '../../companion-api/companion-api.schemas';\nimport { APPLICATION_CODING_SYSTEM_REF } from '../models/application-coding-agent.actors-system.definitions';\nimport { readUnavailableApplicationRuntimes, type UnavailableApplicationRuntime } from '../../core/runtime/application-runtime-liveness.companion';\nimport type { CarriedVerificationDiagnosis } from '../models/carried-verification-failure.models';\nimport {\n NothingToRearmError,\n readBuildTaskRearm,\n type BuildTaskRearm,\n type BuildTaskRearmReason,\n} from '../models/build-task-rearm.models';\nimport { APPLICATION_BUILD_GENERATION_STEP_ACTOR_REF, APPLICATION_BUILD_SYSTEM_REF } from '../models/application-build.actors-system.definitions';\nimport {\n ApplicationBuildGenerationStep,\n ApplicationBuildGenerationStepCompanionService,\n ApplicationBuildGenerationStepLandedKind,\n type ApplicationBuildGenerationStepRunResult,\n SchemaPlanSyncState,\n} from './application-build-generation-step.companion.service';\nimport {\n ApplicationBuildTaskNotACodingTaskError,\n resolveBuildPlanTaskCodingPolicy,\n BuildPlanTaskLandedProbeKind,\n buildPlanTaskLandedProbePaths,\n declarationsAppearAt,\n launcherShellIdentity,\n placementSubjectShellIdentity,\n resolveBuildTaskLandedProbes,\n resolveUndraftableDocumentRef,\n settingsDestinationShellIdentity,\n shellModuleContributionFile,\n shellSurfaceConfigFile,\n type BuildPlanTaskLandedProbe,\n} from './application-build-task-coding-policy.companion.service';\nimport type { AppShellPlacementContentResult } from '../../core/introspection/subprocess/app-shell-placement-content.behavior';\n\n/** No build plan, or nothing left to do. Named so the transport can say which. */\n\nexport class ApplicationBuildPlanUnavailableError extends Error {}\nexport class ApplicationBuildPlanExhaustedError extends Error {\n /**\n * The counts, carried STRUCTURALLY rather than only inside the sentence.\n *\n * A finished plan is something a surface wants to SAY — \"39 of 39 landed\" — and until these were\n * fields the only copy lived in prose the reader would have had to parse. A board that parses\n * another component's error message is a board that breaks when somebody improves the wording.\n */\n public constructor(message: string, public readonly taskCount: number, public readonly landedCount: number) {\n super(message);\n }\n}\n\n/**\n * Why a read door cannot ANSWER with an exception.\n *\n * `prepareNextBuildTask` serves two kinds of caller: the READS (`describeNextBuildTask`, and\n * `describeNextBuildTaskOrExhaustion` for a surface that must render \"there is none\") and the two\n * DISPATCH doors. The throw is right for a DISPATCH — the caller asked to run something, there is\n * nothing to run, and a door that silently did nothing would be worse. It is wrong for a READ: \"what\n * is next?\" answered by \"nothing, everything landed\" is an ANSWER, and the terminal success of the\n * whole build lane is not a failure to look. The same holds for \"nothing, every ready task is stuck\"\n * (#1451), whose answer is the remedy.\n *\n * Measured 2026-09-18, when Wonder CRM became the first application to finish a plan (39 of 39): the\n * workbench's `requestCompanion` threw on the non-2xx, `useCompanionRead` caught it into `error`, and\n * the board rendered `BoardReadError` — the primitive it defines as \"could not look\", against\n * `BoardEmpty` for \"looked, nothing there\". The last screen of the journey the workbench exists to\n * drive reported the finish as a fault.\n *\n * Reads tolerate, acceptance refuses — `continuity-drift-and-cas-basis.md` Rule 1's split — and\n * `application-creation-directive.md`'s test verbatim: if this refuses, what does the operator do\n * next? Nothing. There is no artifact to fix, so the state is REPRESENTABLE instead.\n */\nexport interface ApplicationBuildPlanExhaustion {\n readonly taskCount: number;\n readonly landedCount: number;\n}\n\n/**\n * What the read door answers: a plan to run, or the reason there is none. Never an exception for either.\n *\n * Three shapes, and exactly one holds: a `plan`; no plan and `exhausted` (every task landed); or no plan,\n * `stuckQueue`, and a non-empty `stuckTasks` (every ready task is stuck, #1451). `stuckTasks` is present beside a plan\n * too, naming what that selection passed over.\n */\n/**\n * How far the queue got when every ready task turned out to be stuck — the same progress a plan row\n * carries, so a stuck row can say \"3 of 5 landed, 2 ready\" instead of zeroes it does not mean.\n */\nexport interface ApplicationBuildStuckQueue {\n readonly taskCount: number;\n readonly readyTaskRefs: readonly string[];\n readonly landedTaskRefs: readonly string[];\n readonly unverifiableLandedTaskRefs: readonly string[];\n}\n\nexport interface ApplicationBuildDispatchDescription {\n readonly plan: ApplicationBuildDispatchPlan | null;\n /** Present exactly when `plan` is null because every task has landed. */\n readonly exhausted?: ApplicationBuildPlanExhaustion;\n /** Present exactly when `plan` is null because every ready task is stuck. */\n readonly stuckQueue?: ApplicationBuildStuckQueue;\n /** Every ready task dispatch passed over, and why. Empty when nothing was skipped. */\n readonly stuckTasks: readonly ApplicationBuildStuckTask[];\n}\n\n/** What one landing resolution found — every answer a caller needs, from the pass it asked for. */\ninterface LandedTaskResolution {\n readonly landed: ReadonlySet<string>;\n /** Landed WITHOUT proof: a task that declares no product and has a completed run. */\n readonly unverifiableLandedTaskRefs: readonly string[];\n /** Schema-plan-gated generation steps whose check could not be ANSWERED on this pass. */\n readonly unanswerableSchemaPlanTaskRefs: ReadonlySet<string>;\n}\n\n/** The ref of the `database-migrations` step the dispatch host derives when a plan owes it and omits it (#1027). */\nexport const HOST_DERIVED_DATABASE_MIGRATIONS_TASK_REF = 'build-task-database-migrations';\n\n/** The ref of the `documentation-publication` step the host derives for a plan that authors chapters (#1273). */\nexport const HOST_DERIVED_DOCUMENTATION_PUBLICATION_TASK_REF = 'build-task-documentation-publication';\n\n/*\n * How far a build dispatch got is `Workbench_BuildDispatchPhase` in `@wildo-ai/platform-core-shared` —\n * NOT declared here, and deliberately not re-exported from here either (a re-export outside a declared\n * public entrypoint is its own defect). It moved there because the WORKBENCH reads these values to\n * decide how a dispatch renders and a browser bundle cannot import this package; that enum's docstring\n * carries the semantics of each member and why the two executors settle at different ones.\n */\n\n/**\n * One dispatch, newest first in {@link ApplicationBuildDispatchCompanionService.readDetachedDispatches}.\n * A PROJECTION of the dispatch's actor-system execution since #1359, not a record anything keeps.\n */\nexport interface ApplicationBuildDetachedDispatchRecord {\n readonly taskRef: string;\n /** When the task was SELECTED — the execution's creation instant. */\n readonly startedAt: string;\n readonly phase: Workbench_BuildDispatchPhase;\n /** When the phase left SUBMITTED. */\n readonly settledAt?: string;\n /** The durable actor-task row an ADMITTED coding run writes its real outcome to. */\n readonly codingTaskId?: string;\n readonly error?: string;\n /** The conversation the dispatch was started from, when it was (#1454, Step 7). */\n readonly conversationId?: string;\n}\n\n/**\n * One ATTEMPT at a build task — one actor execution, read from its own durable row (#1521).\n *\n * Nothing new is written to produce this: every dispatch has been an execution since #1359, so the\n * attempt history already existed and was read only five-at-a-time, newest first, across the whole\n * plan. This groups it by task.\n */\nexport interface ApplicationBuildTaskAttempt {\n /** The execution's own task id — the row an operator opens to read the full outcome. */\n readonly runTaskId: string;\n readonly startedAt: string;\n readonly settledAt?: string;\n /** The execution's status, from the actor plane's own vocabulary. */\n readonly status: FlowsActors_Status;\n /** The coding lane's typed disposition, when the run recorded one (`ApplicationCodingTaskDisposition`). */\n readonly disposition?: string;\n readonly error?: string;\n /** Set when an operator put the task back in the queue after this run (#1535): the run no longer holds it. */\n readonly rearm?: BuildTaskRearm;\n /** Checks that were already red when this run started, each with its diagnosis (#1529). */\n readonly carriedFailures?: readonly CarriedVerificationDiagnosis[];\n /** Checks this run ran GREEN — what tells a repair that a carried red has since been cleared. */\n readonly passedCheckRefs?: readonly string[];\n /*\n * What the durable row already recorded about the run and nothing read (#1541): each answers a question\n * the first end-to-end run's post-mortem answered with a script over the raw rows.\n */\n /** What the run cost, as the agent reported it. */\n readonly cost?: { readonly amount: number; readonly currency: string };\n /** Checks the run FAILED, as this run's own (a carried red is in `carriedFailures`, not here). */\n readonly failedCheckRefs?: readonly string[];\n /** Why the agent's turn ended — `max_tokens` or `refusal` leave a change set that reads as complete and is not. */\n readonly agentStopReason?: string;\n /** Permission requests the ceiling or the task's scope refused. */\n readonly deniedPermissionCount?: number;\n /** Paths changed during the run outside the task's declared scope — recorded, never refused. */\n readonly outOfScopePaths?: readonly string[];\n /** Files the run itself changed (exclusive to the run, appeared during it, or committed during it). */\n readonly filesChanged?: number;\n /** The runs that shared the tree with this one, and the paths both changed (#1528). Absent for a run alone. */\n readonly concurrency?: { readonly overlappingTaskRefs: readonly string[]; readonly contendedPaths: readonly string[] };\n /** It failed while other runs were editing the tree, so the failure may be theirs; the budget forgives a bounded number. */\n readonly interferenceSuspected?: true;\n /**\n * The run ended without ever starting, by the host's act: refused at admission, or left selected by\n * a stopped process (#1581). Shown in the history, because it explains why nothing ran, and counted\n * by no summary figure, because it was no attempt of the task's. See `isSettledWithoutStarting`.\n */\n readonly refusedBeforeStart?: true;\n /**\n * Whose failure a failed run was (#1581): the budget forgives HOST failures up to a bound, so this is\n * what explains a task that failed three times and was still offered again.\n */\n readonly failureAttribution?: CodingRunFailureAttribution;\n}\n\n/** Whether an attempt was a real one: the run started. See {@link ApplicationBuildTaskAttempt.refusedBeforeStart}. */\nexport function isStartedBuildTaskAttempt(attempt: Pick<ApplicationBuildTaskAttempt, 'refusedBeforeStart'>): boolean {\n return attempt.refusedBeforeStart !== true;\n}\n\n/**\n * A red the build keeps meeting and no task caused — owed a repair, with its diagnosis (#1529).\n *\n * Grouped per check across every attempt that carried it, because that is the unit a repair fixes: one\n * broken generated file reds one check for every task that verifies against it.\n */\nexport interface ApplicationBuildRepairOwed {\n readonly checkRef: string;\n /** The first attempt that met it red — when the breakage is known to predate. */\n readonly firstSeenAt: string;\n readonly lastSeenAt: string;\n /** The tasks whose attempts met it red: the work this red has been taxing. */\n readonly affectedTaskRefs: readonly string[];\n /** From the most recent attempt that carried it. */\n readonly diagnosis: CarriedVerificationDiagnosis;\n}\n\n/** A landing probe that is NOT satisfied at HEAD — exactly what landing searched for, and where. */\nexport interface ApplicationBuildTaskUnmetProbe {\n readonly probe: BuildPlanTaskLandedProbe;\n /** For a shell probe: what the surface is missing, still carries, or could not be asked (#1538). */\n readonly shell?: ShellProbeExplanation;\n /**\n * Whether the WORKING TREE satisfies it. `true` = the product is written and not committed (an\n * acceptance question); `false` = it is absent (a declaration or a work question). These lead to\n * different remedies, and \"not landed\" alone cannot tell them apart.\n */\n readonly satisfiedInWorkingTree: boolean;\n}\n\n/**\n * Everything the build knows about ONE task, in one read (#1521).\n *\n * The case it exists for: \"not landed\" hid three facts — never dispatched, dispatched and FAILED, and\n * dispatched, SUCCEEDED, and unprovable — and the third burned hours on the #1273 run because it is\n * indistinguishable from the first on every other surface. Here they are three different shapes:\n * no attempts; a failed attempt; a completed attempt with `unmetProbes`.\n */\nexport interface ApplicationBuildTaskRecord {\n readonly taskRef: string;\n readonly targetKind: string;\n readonly status: WorkbenchBuildPlanTaskStatus;\n /** Newest first. Empty = never dispatched. */\n readonly attempts: readonly ApplicationBuildTaskAttempt[];\n /** READY tasks only: why dispatch passes over it, from the SAME classification the selector uses. */\n readonly stuck?: ApplicationBuildStuckTask;\n /** Not landed and attempted at least once: the probes HEAD does not satisfy. */\n readonly unmetProbes?: readonly ApplicationBuildTaskUnmetProbe[];\n /** A generation step that lands on schema-plan state rather than on files: that state, when not in sync. */\n readonly schemaPlanSyncState?: SchemaPlanSyncState;\n /** BLOCKED tasks only: the prerequisites that have not landed. */\n readonly waitingOn?: readonly string[];\n /** LANDED with no product to prove — RAN-not-PROVEN (`application-creation-directive.md`). */\n readonly unverifiable?: boolean;\n}\n\nexport interface ApplicationBuildTaskRecords {\n readonly tasks: readonly ApplicationBuildTaskRecord[];\n readonly summary: {\n readonly taskCount: number;\n readonly landed: number;\n readonly blocked: number;\n /** READY and no run ever STARTED — the work simply not reached yet. A refused dispatch starts nothing (#1581). */\n readonly readyNeverAttempted: number;\n /** READY, attempted, not stuck — a failed run the loop will re-offer. */\n readonly readyToRetry: number;\n /** READY and passed over, per typed reason. */\n readonly stuckByReason: Readonly<Record<Workbench_BuildTaskStuckReason, number>>;\n /** Runs that STARTED. A dispatch refused before admission is in its task's history and not here (#1581). */\n readonly attempts: number;\n /**\n * Attempts that COMPLETED on a task that has still not landed — dispatches that bought nothing.\n * The band-level stall signal: it grows while the landed count does not.\n */\n readonly completedAttemptsWithoutLanding: number;\n /** Tasks attempted more than once without landing — the per-task stall signal. */\n readonly repeatedlyAttemptedWithoutLanding: readonly string[];\n /** What the build has spent, per currency, and how much of it on tasks that have not landed (#1541). */\n readonly spend: ReturnType<typeof deriveBuildSpend>;\n /**\n * Parallel-build observability (#1528): the degree the lane runs at now, and across every attempt\n * how many overlapped another run, how many failed while suspected of interference, and which paths\n * two runs both changed.\n */\n readonly parallelism: {\n readonly degree: number;\n readonly overlappingAttempts: number;\n readonly interferenceSuspectedAttempts: number;\n readonly contendedPaths: readonly string[];\n };\n };\n /**\n * TRUE when an attempt listing reached its page cap, so some attempts may be missing. Said rather\n * than hidden: a count read off a truncated listing is a claim about the query, not the build.\n */\n readonly attemptsTruncated: boolean;\n /**\n * The application's runtimes a live dev-loop supervisor has PAUSED (#1537) — the application being\n * built cannot start. Said beside the build rather than gating it: most tasks build fine against a\n * dead backend, and refusing them would turn a visible problem into a stalled lane. Absent when no\n * supervisor could answer.\n */\n readonly unavailableRuntimes?: readonly UnavailableApplicationRuntime[];\n /**\n * Reds the build keeps meeting that no task caused (#1529), each with the files it names and what\n * generated them. A check that a LATER attempt ran green is cleared and not listed.\n */\n readonly repairsOwed: readonly ApplicationBuildRepairOwed[];\n}\n\n/** The actor-plane page cap the attempt listing reads under; hitting it sets `attemptsTruncated`. */\nconst BUILD_TASK_ATTEMPT_PAGE_CAP = 200;\n\n/**\n * How many of its OWN failures a build task may spend before dispatch stops offering it (#1536).\n * Three, because the first end-to-end run's two repeating tasks each failed three times identically:\n * a third identical failure says the dispatch, not luck, is the problem. Released by a re-arm.\n */\nexport const MAXIMUM_ATTRIBUTABLE_FAILED_ATTEMPTS = 3;\n\n/** How much of a failed check's output a retry is shown — enough for a compiler's first errors, not a log. */\nconst PREVIOUS_ATTEMPT_OUTPUT_TAIL_CHARS = 2000;\n\nfunction projectBuildTaskAttempt(execution: {\n readonly status: FlowsActors_Status;\n readonly createdAt: string;\n readonly finishedAt?: string;\n readonly standaloneTasks: readonly { readonly _id: string; readonly input?: unknown; readonly output?: unknown; readonly memory?: unknown; readonly startedAt?: string }[];\n}): { readonly taskRef: string; readonly attempt: ApplicationBuildTaskAttempt } | null {\n const task = execution.standaloneTasks[0];\n const taskRef = (task?.input as { taskRef?: unknown } | undefined)?.taskRef;\n if (!task || typeof taskRef !== 'string') return null;\n const output = task.output as {\n disposition?: unknown;\n failure?: { message?: unknown };\n carriedVerificationDiagnoses?: unknown;\n carriedVerificationFailures?: unknown;\n verification?: unknown;\n usage?: { cost?: { amount?: unknown; currency?: unknown } };\n agentStopReason?: unknown;\n deniedPermissionCount?: unknown;\n scopeAssessment?: { outOfScopePaths?: unknown };\n changeSetSummary?: { stats?: Record<string, unknown> };\n concurrency?: { overlappingTaskRefs?: unknown; contendedPaths?: unknown };\n interferenceSuspected?: unknown;\n failureAttribution?: unknown;\n } | undefined;\n const rearm = readBuildTaskRearm(task.memory);\n const carriedFailures = Array.isArray(output?.carriedVerificationDiagnoses)\n ? (output!.carriedVerificationDiagnoses as CarriedVerificationDiagnosis[]).filter((entry) => typeof entry?.checkRef === 'string')\n : [];\n const verification = Array.isArray(output?.verification)\n ? (output!.verification as { checkRef?: unknown; outcome?: { success?: unknown } }[]).filter((entry) => typeof entry?.checkRef === 'string')\n : [];\n const passedCheckRefs = verification.filter((entry) => entry.outcome?.success === true).map((entry) => String(entry.checkRef));\n const carriedRefs = new Set(Array.isArray(output?.carriedVerificationFailures) ? (output!.carriedVerificationFailures as unknown[]).map(String) : []);\n const failedCheckRefs = verification\n .filter((entry) => entry.outcome?.success === false && !carriedRefs.has(String(entry.checkRef)))\n .map((entry) => String(entry.checkRef));\n const cost = output?.usage?.cost;\n const stats = output?.changeSetSummary?.stats;\n const count = (value: unknown): number => (typeof value === 'number' && Number.isFinite(value) ? value : 0);\n const outOfScopePaths = Array.isArray(output?.scopeAssessment?.outOfScopePaths)\n ? (output!.scopeAssessment!.outOfScopePaths as unknown[]).map(String)\n : [];\n return {\n taskRef,\n attempt: {\n runTaskId: String(task._id),\n startedAt: execution.createdAt,\n ...(execution.finishedAt ? { settledAt: execution.finishedAt } : {}),\n status: execution.status,\n ...(typeof output?.disposition === 'string' ? { disposition: output.disposition } : {}),\n ...(typeof output?.failure?.message === 'string' ? { error: output.failure.message } : {}),\n ...(rearm ? { rearm } : {}),\n ...(carriedFailures.length > 0 ? { carriedFailures } : {}),\n ...(passedCheckRefs.length > 0 ? { passedCheckRefs } : {}),\n ...(typeof cost?.amount === 'number' && typeof cost.currency === 'string' ? { cost: { amount: cost.amount, currency: cost.currency } } : {}),\n ...(failedCheckRefs.length > 0 ? { failedCheckRefs } : {}),\n ...(typeof output?.agentStopReason === 'string' ? { agentStopReason: output.agentStopReason } : {}),\n ...(typeof output?.deniedPermissionCount === 'number' ? { deniedPermissionCount: output.deniedPermissionCount } : {}),\n ...(outOfScopePaths.length > 0 ? { outOfScopePaths } : {}),\n ...(stats ? { filesChanged: count(stats['runExclusive']) + count(stats['appearedDuringRun']) + count(stats['committedDuringRun']) } : {}),\n ...(Array.isArray(output?.concurrency?.overlappingTaskRefs) ? {\n concurrency: {\n overlappingTaskRefs: (output!.concurrency!.overlappingTaskRefs as unknown[]).map(String),\n contendedPaths: Array.isArray(output!.concurrency!.contendedPaths) ? (output!.concurrency!.contendedPaths as unknown[]).map(String) : [],\n },\n } : {}),\n ...(output?.interferenceSuspected === true ? { interferenceSuspected: true as const } : {}),\n ...(typeof output?.failureAttribution === 'string' ? { failureAttribution: output.failureAttribution as CodingRunFailureAttribution } : {}),\n ...(isSettledWithoutStarting(execution.status, task.startedAt, output) ? { refusedBeforeStart: true as const } : {}),\n },\n };\n}\n\n/**\n * A terminal run that never started and was no attempt of the task's: selected, then refused by the\n * host before admission — or left selected by a stopped process and swept.\n *\n * All required:\n * - settled ABORTED, or FAILED on a row written before #1581 — the only statuses such a run is given;\n * - no start instant: since the engine driver (2026-09-20) every open or admission stamps one;\n * - no disposition: every coding run that CONCLUDED records one, so an older row that ran but predates\n * the start instant is still read as the attempt it was;\n * - not attributed to the TASK: a refusal of the task's OWN contract never started either, and it IS\n * an attempt — the budget counts it, so the board must too (#1581, second review A3).\n */\nfunction isSettledWithoutStarting(\n status: FlowsActors_Status,\n taskStartedAt: string | undefined,\n output: { readonly disposition?: unknown; readonly failureAttribution?: unknown } | undefined,\n): boolean {\n if (typeof taskStartedAt === 'string' || output?.disposition !== undefined) return false;\n if (output?.failureAttribution === CodingRunFailureAttribution.TASK) return false;\n return status === FlowsActors_Status.ABORTED || status === FlowsActors_Status.FAILED;\n}\n\n/**\n * What the build has SPENT, per currency (#1541): every attempt's reported cost, and the part of it\n * spent on tasks that have not landed. Rounded at this boundary to the cent, because it accumulates.\n *\n * `attemptsWithoutReportedCost` counts SETTLED attempts whose run reported no cost (#1507): an agent may\n * report none, and those attempts are not in the totals — which are then a floor, and say so, rather\n * than quietly reading an unpriced attempt as free. An attempt still running has no cost yet and is not\n * counted.\n */\nexport function deriveBuildSpend(records: readonly Pick<ApplicationBuildTaskRecord, 'status' | 'attempts'>[]): {\n readonly total: Readonly<Record<string, number>>;\n readonly onTasksNotLanded: Readonly<Record<string, number>>;\n readonly attemptsWithoutReportedCost: number;\n} {\n const total: Record<string, number> = {};\n const onTasksNotLanded: Record<string, number> = {};\n let attemptsWithoutReportedCost = 0;\n for (const record of records) {\n for (const attempt of record.attempts) {\n // A refusal ran nothing and could report no cost: it is not an unpriced attempt (#1581).\n if (!isStartedBuildTaskAttempt(attempt)) continue;\n if (!attempt.cost) {\n if (attempt.settledAt !== undefined) attemptsWithoutReportedCost += 1;\n continue;\n }\n total[attempt.cost.currency] = (total[attempt.cost.currency] ?? 0) + attempt.cost.amount;\n if (record.status !== WorkbenchBuildPlanTaskStatus.LANDED) {\n onTasksNotLanded[attempt.cost.currency] = (onTasksNotLanded[attempt.cost.currency] ?? 0) + attempt.cost.amount;\n }\n }\n }\n const cents = (sums: Record<string, number>) => Object.fromEntries(Object.entries(sums).map(([currency, amount]) => [currency, Math.round(amount * 100) / 100]));\n return { total: cents(total), onTasksNotLanded: cents(onTasksNotLanded), attemptsWithoutReportedCost };\n}\n\n/**\n * The reds owed a repair, from every attempt's record (#1529). Pure over the attempts, so what counts as\n * \"still owed\" is pinned rather than implied: a check is cleared once any attempt that started AFTER the\n * last one carrying it ran it green.\n */\nexport function deriveRepairsOwed(attemptsByTask: ReadonlyMap<string, readonly ApplicationBuildTaskAttempt[]>): ApplicationBuildRepairOwed[] {\n const byCheck = new Map<string, { firstSeenAt: string; lastSeenAt: string; affected: Set<string>; diagnosis: CarriedVerificationDiagnosis }>();\n const passes: { checkRef: string; at: string }[] = [];\n for (const [taskRef, attempts] of attemptsByTask) {\n for (const attempt of attempts) {\n for (const checkRef of attempt.passedCheckRefs ?? []) passes.push({ checkRef, at: attempt.startedAt });\n for (const carried of attempt.carriedFailures ?? []) {\n const entry = byCheck.get(carried.checkRef);\n if (entry === undefined) {\n byCheck.set(carried.checkRef, { firstSeenAt: attempt.startedAt, lastSeenAt: attempt.startedAt, affected: new Set([taskRef]), diagnosis: carried });\n continue;\n }\n entry.affected.add(taskRef);\n if (attempt.startedAt < entry.firstSeenAt) entry.firstSeenAt = attempt.startedAt;\n if (attempt.startedAt > entry.lastSeenAt) {\n entry.lastSeenAt = attempt.startedAt;\n entry.diagnosis = carried;\n }\n }\n }\n }\n return [...byCheck]\n .filter(([checkRef, entry]) => !passes.some((pass) => pass.checkRef === checkRef && pass.at > entry.lastSeenAt))\n .map(([checkRef, entry]) => ({\n checkRef,\n firstSeenAt: entry.firstSeenAt,\n lastSeenAt: entry.lastSeenAt,\n affectedTaskRefs: [...entry.affected].sort(),\n diagnosis: entry.diagnosis,\n }))\n .sort((left, right) => left.firstSeenAt.localeCompare(right.firstSeenAt));\n}\n\n/** What the next dispatch WOULD be. Returned unconfirmed, so a creator sees the scope before anything runs. */\nexport interface ApplicationBuildDispatchPlan {\n readonly taskRef: string;\n readonly objective: string;\n readonly targetKind: string;\n /**\n * What the task DECLARES it will produce (#1432).\n *\n * Carried on the plan because the plan is what the coding-run judge is given, and its treatment asks\n * whether the run implemented the dispatched task's target and stage — a question nothing can answer\n * from a taskRef and a target kind. It is also what a creator reading an unconfirmed plan needs in\n * order to see the scope: the mutation prefixes say where the agent may write, and only this says\n * what is supposed to come out.\n */\n readonly produces: readonly BuildPlanTaskProduct[];\n /**\n * Present exactly when the next task is a companion generation step. A build plan INTERLEAVES two\n * executors — coding tasks for a coding agent, and companion generation steps (labels, seeds, emails)\n * the companion runs itself — and this route serves BOTH: `dispatch-next` routes by the task's own\n * `target.kind`. (An earlier version refused generation steps by name; now that an executor exists,\n * the refusal would be a hole in the build lane, not a boundary.)\n */\n readonly generationStepRef?: string;\n readonly allowedPathPrefixes: readonly string[];\n readonly prohibitedPathPrefixes: readonly string[];\n readonly requiredChecks: readonly string[];\n readonly installedSkillRefs: readonly string[];\n readonly readyTaskRefs: readonly string[];\n readonly landedTaskRefs: readonly string[];\n /**\n * The subset of `landedTaskRefs` that landed WITHOUT PROOF — a task declaring no product, which has\n * a completed run and therefore cannot be held against the queue, but whose work nothing verified.\n *\n * A subset rather than a separate state on purpose: for scheduling these tasks ARE landed, and a\n * caller that forgot this field would schedule correctly and merely report less. The opposite\n * shape — a third status the scheduler must interpret — is how a task nobody handled becomes a\n * task nobody runs.\n *\n * Empty is the healthy answer and the one a regenerated plan produces (#600): a task that declares\n * what it produces is proven landed or is not landed, with no third case.\n */\n readonly unverifiableLandedTaskRefs: readonly string[];\n}\n\n/**\n * A build task that has been SELECTED and composed, before either executor has touched it.\n *\n * Named rather than inlined on `prepareNextBuildTask` because both dispatch doors now pass one of\n * these to a shared executor — the seam that makes selection happen exactly once per dispatch.\n *\n * `stuckTasks` rides the selection that produced it, so a concurrent pass can never be reported in\n * its place (#1451).\n */\ntype PreparedBuildTask =\n | { readonly kind: 'CODING'; readonly plan: ApplicationBuildDispatchPlan; readonly contract: ReturnType<typeof composeBuildTaskCodingContract>; readonly stuckTasks: readonly ApplicationBuildStuckTask[] }\n | { readonly kind: 'GENERATION_STEP'; readonly plan: ApplicationBuildDispatchPlan; readonly task: BuildPlanTask; readonly stuckTasks: readonly ApplicationBuildStuckTask[] };\n\n\n/** How long a CONCURRENT admission waits for the compile watchers before starting anyway (#1528). */\nconst CONCURRENT_ADMISSION_COMPILE_QUIET_MS = 30_000;\n\n/** Dispatches one wave call may make per slot before it returns and lets the next call continue. */\nexport const WAVE_DISPATCHES_PER_DEGREE = 4;\n\n/** Why a wave stopped taking new tasks — it always still drains the runs already live. */\nexport enum ApplicationBuildWaveStop {\n /** No task is ready and no run is live: the plan is done, blocked, or every ready task is stuck. */\n NOTHING_READY = 'nothing-ready',\n /** The call reached its dispatch cap; the next call continues. */\n DISPATCH_CAP = 'dispatch-cap',\n /** The next ready task is a generation step this call already ran, and its landing is still unmet. */\n GENERATION_STEP_REPEATED = 'generation-step-repeated',\n /** An admission was refused; the refusal is on the dispatch entry. */\n DISPATCH_REFUSED = 'dispatch-refused',\n}\n\n/** One task a wave dispatched: a coding admission, a generation step, or the refusal that ended the filling. */\nexport interface ApplicationBuildWaveDispatch {\n readonly plan: ApplicationBuildDispatchPlan;\n readonly admission?: ApplicationCodingTaskRunAdmission;\n readonly generationStep?: ApplicationBuildGenerationStepRunResult;\n readonly error?: string;\n}\n\n/** What one wave call did (#1528). */\nexport interface ApplicationBuildWaveResult {\n readonly degree: number;\n readonly mode: CodingRunConcurrency;\n readonly dispatched: readonly ApplicationBuildWaveDispatch[];\n /** Each coding run's settled outcome, in settle order; `null` for a row that could not be classified. */\n readonly outcomes: readonly (ApplicationCodingTaskSettledOutcome | null)[];\n /** The end-of-wave repair: per completed task, how many paths were committed by reconciliation. */\n readonly reconciliation: readonly { readonly taskRef: string; readonly committedPaths: number; readonly error?: string }[];\n readonly stoppedFillingBecause: ApplicationBuildWaveStop;\n}\n\n/**\n * One dispatched build task's outcome — exactly one of the two executor results is present, matching the\n * plan's `targetKind`. `admission` for a coding run; `generationStep` for a companion generation step.\n */\nexport interface ApplicationBuildDispatchResult {\n readonly plan: ApplicationBuildDispatchPlan;\n readonly admission?: ApplicationCodingTaskRunAdmission;\n readonly generationStep?: ApplicationBuildGenerationStepRunResult;\n}\n\n/**\n * Dispatch the next ready build-plan task to a coding agent.\n *\n * ## The chain, and who owns each link\n *\n * | link | owner |\n * |---|---|\n * | which tasks have landed | GIT — a task has landed when the files it produces are committed |\n * | which are READY | `selectReadyBuildPlanTasks` in `_core` — pure, prerequisite-closed |\n * | what a task may touch | `resolveBuildPlanTaskCodingPolicy` — the ONLY place a `target.kind` becomes paths |\n * | the contract | `composeBuildTaskCodingContract` in the runtime — pure, schema-pinned |\n * | the run | `CodingAgentDispatchCompanionService` — mutation lock, git baseline, change-set capture |\n *\n * Nothing in that chain is decided by a model. The agent is handed a task and a boundary; it does not\n * choose either.\n *\n * ## There is no confirmation flag, and that was a correction\n *\n * `dispatchNextBuildTask` ran only when the caller also passed `confirmWorkspaceMutation: true`. It was\n * removed the day it was written, because it protected nothing the mechanism does not already protect:\n * the scope is derived from the task's CLOSED `target.kind` and cannot be widened, the mutation lock\n * admits one workspace-mutating run at a time, the run is bracketed by a git baseline snapshot and a\n * change-set capture so every touched path is visible and revertible, the required checks gate the\n * result, and acceptance is a separate act: the loop's commit under the autonomy posture, authored as\n * the companion and refusing what it cannot vouch for, or a person's (#1534).\n *\n * A caller that posts to this route is asking for a coding run — that IS the route. Making them say so\n * twice is the acceptance ceremony this whole migration exists to remove, and a field that feels like a\n * control while enforcing nothing is the exact failure mode recorded in the plan's objective.\n *\n * What was genuinely useful in it — seeing the scope before committing to a run — is a READ, and lives at\n * `describeNextBuildTask` below.\n */\n/**\n * A ready task that has already been run to a working result — the loop guard's typed refusal.\n *\n * Distinct from `ApplicationBuildPlanExhaustedError`, which means the OPPOSITE and is a healthy\n * terminal state. Conflating them would let an operator read a money-burning loop as \"the build is\n * finished\".\n */\nexport class ApplicationBuildTaskCompletedButUnlandedError extends Error {\n /**\n * `stuckTasks` is every ready task that cannot move, as typed facts. The message explains the FIRST;\n * the read door answers with all of them, so a board never has to parse this prose (#1451).\n */\n public constructor(\n message: string,\n public readonly taskRef: string,\n public readonly priorTaskId: string,\n public readonly stuckTasks: readonly ApplicationBuildStuckTask[],\n public readonly queue: ApplicationBuildStuckQueue,\n ) {\n super(message);\n this.name = 'ApplicationBuildTaskCompletedButUnlandedError';\n }\n}\n\n/**\n * A NAMED task was asked for and it is not READY (#1454, Step 7): landed already, blocked on a\n * prerequisite, or not in the plan. The graph still decides what may run; naming a task only lets\n * the creator pick among the ready ones. `standing` and the unmet refs are what the answer needs.\n */\nexport enum ApplicationBuildTaskStanding {\n /** The task has landed: its declared product is committed. */\n LANDED = 'landed',\n /** The task waits on a prerequisite that has not landed. */\n BLOCKED = 'blocked',\n /** The plan holds no such task. */\n UNKNOWN = 'unknown',\n}\n\nexport class ApplicationBuildTaskNotReadyError extends Error {\n public constructor(\n message: string,\n public readonly taskRef: string,\n public readonly standing: ApplicationBuildTaskStanding,\n public readonly unmetPrerequisiteTaskRefs: readonly string[],\n ) {\n super(message);\n this.name = 'ApplicationBuildTaskNotReadyError';\n }\n}\n\n/** Where a dispatch was started from, carried onto the run's row so the conversation shows it (#1454, Step 7). */\nexport interface ApplicationBuildDispatchOrigin {\n readonly conversationId?: string;\n}\n\n/**\n * Why a READY task cannot make progress is `Workbench_BuildTaskStuckReason` in\n * `@wildo-ai/platform-core-shared`. It moved there in #1451 so the board can render it; this service\n * is its only producer.\n */\nexport interface ApplicationBuildStuckTask {\n readonly taskRef: string;\n /** The run that proves it is stuck; empty for a task that is unbuildable before any run. */\n readonly priorTaskId: string;\n readonly completedAt?: string;\n readonly reason: Workbench_BuildTaskStuckReason;\n /** Set only for `COMPLETED_AWAITING_COMMIT`: the probed paths that are present but not committed. */\n readonly uncommittedPaths?: readonly string[];\n /** Set only for `NO_DOCUMENT_BLUEPRINT`, so the message can name the ref that has no blueprint. */\n readonly documentRef?: string;\n /**\n * The parked run's own question, carried so the refusal is complete on its own.\n *\n * Until #1359 this was the ONLY place the question survived a companion restart: the operator\n * surface read an in-process map that a restart emptied, exactly when this guard matters. The\n * surface now reads the run's waiting execution, so both hold it — and the message still carries\n * it, because a refusal that sends its reader elsewhere for the one fact it is about is a worse\n * refusal, whatever the elsewhere.\n */\n readonly question?: string;\n}\n\n\n/**\n * The committed tree as ONE landing resolution reads it: each path is asked at most once (#1005).\n *\n * A plan's tasks probe the same few files. A resource's schema, config and ui-behaviour tasks all read\n * that resource's files, so resolving probe by probe spawned git for the same path again and again. The\n * answer cannot change within one resolution, which is also what the landed set it builds assumes.\n */\n/**\n * The same two questions are also asked of the WORKING TREE (`createWorktreeReader`), only to explain a\n * stuck task — never to decide landing. There \"committed\" reads as \"present on disk\".\n */\ninterface CommittedTreeReader {\n isCommitted(subjectRelativePath: string): Promise<boolean>;\n readText(subjectRelativePath: string): Promise<string | undefined>;\n /**\n * Answer `isCommitted` for a whole path set up front, in a bounded number of git spawns.\n *\n * Pure acceleration: it seeds the same memo `isCommitted` would have filled one path at a time, so\n * a path this does not cover still resolves on demand and the answers are identical either way.\n */\n primeCommitted(subjectRelativePaths: readonly string[]): Promise<void>;\n /** The same, for committed TEXT: one `cat-file --batch` instead of one `show` per path. */\n primeTexts(subjectRelativePaths: readonly string[]): Promise<void>;\n /**\n * What the resolved shell carries and what the placement plan decided — ONE introspection per\n * landing resolution, however many shell probes ask (#1538). The paths it names are then asked of\n * THIS reader, so the committed reader and the working-tree reader give their own answers.\n */\n shellWitness(): Promise<ShellWitness>;\n}\n\n/**\n * The shell, as a landing probe needs it (#1538). Three-valued by construction: a witness that could\n * not be READ (no placement plan, no frontend, the introspection failed) is never a \"no\" — it lands\n * nothing and says why, the distinction `check:schema-plan-drift` draws between drift and could-not-ask.\n */\nexport type ShellWitness =\n | { readonly answered: false; readonly reason: string }\n | {\n readonly answered: true;\n /** Entry identities each surface carries in the RESOLVED configuration. */\n readonly carried: ReadonlyMap<PlacementSurface, ReadonlySet<string>>;\n /** The files each surface is composed from — the application's config and every contributing module's. */\n readonly contributingPaths: ReadonlyMap<PlacementSurface, readonly string[]>;\n /** Identities the plan PLACED on each surface. */\n readonly placed: ReadonlyMap<PlacementSurface, readonly string[]>;\n /** Identities the plan DECLINED — to be carried by no surface. */\n readonly declined: readonly string[];\n };\n\n/** Why a shell probe is or is not satisfied — what the build record reports for it. */\nexport interface ShellProbeExplanation {\n readonly satisfied: boolean;\n /** Set when the witness could not be read: the probe is then unsatisfied without being a \"no\". */\n readonly unanswerable?: string;\n /** Placed subjects the surface does not carry. */\n readonly missing: readonly string[];\n /** Declined subjects the surface still carries. */\n readonly declinedButPresent: readonly string[];\n /** Contributing files that differ from HEAD (committed reader) or are absent (working-tree reader). */\n readonly uncommittedPaths: readonly string[];\n}\n\n/**\n * Every path one landed probe consults.\n *\n * One definition, because the two callers must agree: the batch that PRIMES the committed-tree reader\n * and the pass that reports a task's produced-but-uncommitted paths. A probe set gathered differently\n * in the two places would leave exactly the paths they disagree about resolving one spawn-pair at a\n * time — the cost the batch exists to remove, reappearing only for the paths nobody compared.\n */\nfunction landedProbePaths(probe: BuildPlanTaskLandedProbe): readonly string[] {\n // Delegates to the policy module's exhaustive definition. This used to be a second, non-exhaustive\n // copy of it — the thing this docstring says must not exist — and a new probe kind was a type error\n // here rather than a decision there (#1538).\n return buildPlanTaskLandedProbePaths(probe);\n}\n\n/** The probes that read the resolved shell rather than a file (#1538). */\ntype ShellLandedProbe = Extract<BuildPlanTaskLandedProbe, { kind: BuildPlanTaskLandedProbeKind.SHELL_SURFACE_CARRIES_PLAN | BuildPlanTaskLandedProbeKind.SHELL_CARRIES_A_PLACEMENT }>;\nfunction isShellProbe(probe: BuildPlanTaskLandedProbe): probe is ShellLandedProbe {\n return probe.kind === BuildPlanTaskLandedProbeKind.SHELL_SURFACE_CARRIES_PLAN || probe.kind === BuildPlanTaskLandedProbeKind.SHELL_CARRIES_A_PLACEMENT;\n}\n\n/** Store the pending read BEFORE awaiting it, so probes of one path running in parallel share it. */\nfunction memoizeByPath<T>(cache: Map<string, Promise<T>>, subjectRelativePath: string, read: () => Promise<T>): Promise<T> {\n const cached = cache.get(subjectRelativePath);\n if (cached) return cached;\n const pending = read();\n cache.set(subjectRelativePath, pending);\n return pending;\n}\n\n/** How many dispatches the narrative carries. Five is what the in-memory list kept; the board renders that many. */\nconst DISPATCH_NARRATIVE_LENGTH = 5;\n\n/**\n * How far a dispatch got, read off its execution row — see `Workbench_BuildDispatchPhase` for what\n * each member means and why the two executors resolve at different moments.\n *\n * - **A coding run** (`application-coding.system`): `PENDING` is SUBMITTED. Once its task has a start\n * instant it is ADMITTED and STAYS so however it ends — the phase names the hand-off, and the\n * outcome is the task row `codingTaskId` points at. A run that ended WITHOUT ever starting is the\n * only coding FAILED: the dispatch threw before admission.\n * - **A generation step** (`application-build.system`): running is SUBMITTED (nothing has resolved\n * yet), `COMPLETED` is FINISHED, and any other ending — failed, or aborted by a restart — is FAILED.\n */\nexport function projectBuildDispatchPhase(row: { readonly systemRef: string; readonly status: FlowsActors_Status; readonly taskStarted: boolean }): Workbench_BuildDispatchPhase {\n if (row.systemRef === APPLICATION_CODING_SYSTEM_REF) {\n if (row.taskStarted) return Workbench_BuildDispatchPhase.ADMITTED;\n return row.status === FlowsActors_Status.PENDING ? Workbench_BuildDispatchPhase.SUBMITTED : Workbench_BuildDispatchPhase.FAILED;\n }\n if (row.status === FlowsActors_Status.COMPLETED) return Workbench_BuildDispatchPhase.FINISHED;\n return row.status === FlowsActors_Status.PROCESSING || row.status === FlowsActors_Status.PENDING\n ? Workbench_BuildDispatchPhase.SUBMITTED\n : Workbench_BuildDispatchPhase.FAILED;\n}\n\n/**\n * One execution row as a dispatch record, or `null` for a row that is not a build dispatch — an\n * execution with no task, or a task naming no build-plan task (a coding run dispatched by something\n * other than the build plan would be one).\n */\nfunction projectBuildDispatchRecord(execution: {\n readonly systemRef: string;\n readonly status: FlowsActors_Status;\n readonly createdAt: string;\n readonly finishedAt?: string;\n readonly standaloneTasks: readonly { readonly _id: string; readonly input?: unknown; readonly output?: unknown; readonly startedAt?: string }[];\n}): ApplicationBuildDetachedDispatchRecord | null {\n const task = execution.standaloneTasks[0];\n const input = task?.input as { taskRef?: unknown; conversationId?: unknown } | undefined;\n if (!task || typeof input?.taskRef !== 'string') return null;\n const taskStarted = typeof task.startedAt === 'string';\n const phase = projectBuildDispatchPhase({ systemRef: execution.systemRef, status: execution.status, taskStarted });\n const isCodingRun = execution.systemRef === APPLICATION_CODING_SYSTEM_REF;\n const failure = (task.output as { failure?: { message?: unknown } } | undefined)?.failure?.message;\n // When the phase LEFT `SUBMITTED`: admission for a coding run, the end of the step otherwise.\n const settledAt = phase === Workbench_BuildDispatchPhase.SUBMITTED ? undefined\n : isCodingRun && taskStarted ? task.startedAt\n : execution.finishedAt;\n return {\n taskRef: input.taskRef,\n startedAt: execution.createdAt,\n phase,\n ...(settledAt !== undefined ? { settledAt } : {}),\n ...(isCodingRun && taskStarted ? { codingTaskId: String(task._id) } : {}),\n ...(phase === Workbench_BuildDispatchPhase.FAILED && typeof failure === 'string' ? { error: failure } : {}),\n ...(typeof input.conversationId === 'string' ? { conversationId: input.conversationId } : {}),\n };\n}\n\n@injectable()\nexport class ApplicationBuildDispatchCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n public constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.CodingAgentDispatchService) private readonly dispatch: CodingAgentDispatchCompanionService,\n @inject(COMPANION_SERVICE_TYPES.GitChangeSetService) private readonly git: GitChangeSetCompanionService,\n @inject(COMPANION_SERVICE_TYPES.BuildGenerationStepService) private readonly generationSteps: ApplicationBuildGenerationStepCompanionService,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService) private readonly introspection: CompanionIntrospectionService,\n // The engine's execution driver and the rows it writes (#1359): every dispatch is an execution.\n @inject(SAAS_SERVICE_TYPES.ActorsSystemBackendService) private readonly actorsSystem: ActorsSystemBackendService,\n @inject(COMPANION_SERVICE_TYPES.ExecutionsService) private readonly executions: CompanionExecutionsCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('ApplicationBuildDispatchCompanionService');\n }\n\n /**\n * The application workspace's top-level entries — the raw material of a coding run's mutation\n * scope since #1268.\n *\n * ## Read per dispatch, and deliberately NOT cached\n *\n * The listing changes when a composition scenario adds a package (`wildo compose add-website`,\n * `add-technical-doc`, `add-minion`, `add-worker-node`), and the whole point of deriving it is that\n * a package added yesterday is writable today. A cache turns that into a REFUSAL — the run confined\n * away from the package it was asked to write — which is the defect the widening removes, arriving\n * back through the door marked \"performance\". One `readdir` per dispatch, against a dispatch that\n * runs a coding agent for minutes, is not a cost worth that.\n *\n * ## An unreadable workspace answers NOTHING rather than throwing\n *\n * The scope is ADDITIVE, so an empty answer degrades a run to its task-derived scope — today's\n * behaviour — instead of failing a dispatch over a directory listing. A workspace this process\n * cannot list is a condition the contract composer's own empty-scope refusal will catch if it\n * matters, and one that says nothing about whether this task can run.\n */\n private readApplicationWorkspaceEntries(): readonly string[] {\n try {\n return readdirSync(this.companionContext.saasRoot);\n } catch (error) {\n this.logDebug('Could not list the application workspace; a coding run keeps its task-derived scope', {\n saasRoot: this.companionContext.saasRoot,\n error: describeCaughtError(error),\n });\n return [];\n }\n }\n\n /**\n * What the next run would be, without running it. Pure read — nothing is locked, created or started.\n *\n * REQUIRES a task: an exhausted plan throws, exactly as the dispatch doors do. That is right for its\n * caller — a `dryRun` build-dispatch playbook, which is rehearsing a run and has nothing to rehearse\n * when the plan is finished.\n *\n * A surface that wants to SHOW the queue's state rather than act on it wants\n * `describeNextBuildTaskOrExhaustion` instead. The two are kept apart rather than merged because\n * \"give me the next task\" and \"tell me whether there is one\" are different questions, and only the\n * second can be answered by \"there is none\".\n */\n public async describeNextBuildTask(): Promise<ApplicationBuildDispatchPlan> {\n return (await this.prepareNextBuildTask()).plan;\n }\n\n /**\n * The same read, for a caller that must be able to render \"there is nothing left\".\n *\n * The catch narrows to TWO classes — exhausted, and every-ready-task-stuck — and that is the part\n * worth guarding. A catch-all would make every\n * genuine failure to look — an unreadable specifications export, a missing build plan, a broken\n * landing probe — report itself as a finished build, which is the most reassuring possible lie a\n * read can tell.\n */\n public async describeNextBuildTaskOrExhaustion(): Promise<ApplicationBuildDispatchDescription> {\n try {\n const prepared = await this.prepareNextBuildTask();\n return { plan: prepared.plan, stuckTasks: prepared.stuckTasks };\n } catch (error) {\n if (error instanceof ApplicationBuildPlanExhaustedError) {\n return { plan: null, exhausted: { taskCount: error.taskCount, landedCount: error.landedCount }, stuckTasks: [] };\n }\n /*\n * Every ready task is stuck — an ANSWER, for the same reason exhaustion is (#1451). It used to\n * escape this door, fail the creation board's row derivation, and render as \"could not look\"\n * at the one moment the board had a precise answer and a remedy to show. The dispatch doors\n * still throw it: there, the caller asked to run something and nothing can run.\n */\n if (error instanceof ApplicationBuildTaskCompletedButUnlandedError) {\n return { plan: null, stuckQueue: error.queue, stuckTasks: error.stuckTasks };\n }\n throw error;\n }\n }\n\n /**\n * The last few dispatches, newest first — read from the ACTOR PLANE since #1359.\n *\n * ## What this was, and why it moved\n *\n * An in-memory list of the last five dispatches, added 2026-09-04 when a 40-minute i18n generation\n * step outlived the HTTP request that started it and left an operator blind for half the run. It\n * was the right diagnosis and a second, weaker execution plane: a coding run already had a durable\n * row, a generation step had NONE, and a companion restart — ordinary here — emptied the list, so\n * the dispatch most worth explaining was the one nothing remembered.\n *\n * Every dispatch is now an actor-system execution from the moment its task is SELECTED — a coding\n * run on `application-coding.system` (opened `PENDING`, started at admission), a generation step\n * on `application-build.system` — and this method is a PROJECTION of those rows. It holds nothing.\n *\n * ## The phase is derived, and means what it always meant\n *\n * `Workbench_BuildDispatchPhase` stays the wire vocabulary until the board reads the actor rows\n * directly (#1362); {@link projectBuildDispatchPhase} maps a row onto it without changing a\n * member's meaning — in particular a coding run stays `ADMITTED` once it has started, however it\n * ends, because the phase names the HAND-OFF and the run's outcome is the task row it points at.\n */\n public async readDetachedDispatches(session?: CompanionExecutionSessionContext): Promise<readonly ApplicationBuildDetachedDispatchRecord[]> {\n const listed = await Promise.all([APPLICATION_CODING_SYSTEM_REF, APPLICATION_BUILD_SYSTEM_REF].map((systemRef) =>\n this.executions.listActorExecutions(CompanionExecutionsListQuerySchema.parse({ systemRef, limit: DISPATCH_NARRATIVE_LENGTH }), session)));\n return listed.flat()\n .map(projectBuildDispatchRecord)\n .filter((record): record is ApplicationBuildDetachedDispatchRecord => record !== null)\n .sort((left, right) => right.startedAt.localeCompare(left.startedAt))\n .slice(0, DISPATCH_NARRATIVE_LENGTH);\n }\n\n /**\n * Fire the next ready build task WITHOUT holding an HTTP request over it. Returns the selected\n * plan immediately. {@link readDetachedDispatches} then says how far it got: a companion generation\n * step reaches FINISHED there, while a coding task reaches ADMITTED with the durable actor-task row\n * that holds its actual outcome. The same single-flight properties hold — this is the same\n * execution, minus the requirement that a socket survive it.\n *\n * It SELECTS ONCE. Until 2026-09-17 it prepared a task for its own 202 and then called\n * `dispatchNextBuildTask`, which prepared AGAIN — two independent selections against a working\n * tree that a landing run can move between them, so the plan reported to the caller was not\n * guaranteed to be the plan that ran. Both halves now share one `prepared`.\n *\n * It OPENS BEFORE IT ANSWERS. The 202 says the dispatch is running, so its execution must exist\n * before the 202 is sent. It used to be opened inside {@link executePreparedBuildTask}, after this\n * method had returned: on 2026-09-24 (scratch-journey, `build-task-i18n-labels`) the supervisor\n * stopped the companion two seconds after the answer and before the open, and the dispatch left no\n * row at all. Nothing listed it, nothing swept it, and the caller had been told it was running.\n * Opened first, a run the process loses is an orphan the startup sweep settles visibly. A refusal\n * to open (the worktree is held) now reaches the caller instead of a debug log.\n */\n public submitBuildDispatchDetached(\n session?: CompanionExecutionSessionContext,\n ): Promise<ApplicationBuildDispatchPlan> {\n return this.prepareNextBuildTask().then(async (prepared) => {\n const opened = await this.openPreparedBuildTask(prepared, session);\n void this.executePreparedBuildTask(prepared, session, undefined, CodingRunConcurrency.SINGLE_FLIGHT, opened).catch((error: unknown) => {\n // The failure is ON THE ACTOR PLANE already, with this message: a coding dispatch refused\n // before admission settled ABORTED (FAILED when its own contract was invalid, #1581), a\n // generation step that threw settled FAILED. Logged because a detached run has no caller.\n this.logDebug('Detached build dispatch failed', { taskRef: prepared.plan.taskRef, error: describeCaughtError(error) });\n });\n return prepared.plan;\n });\n }\n\n /**\n * Run the next ready build-plan task, routed by its own `target.kind`: a coding task goes to the coding\n * agent (bounded by its scope, locked, captured and verified); a companion generation step runs the\n * companion's own pipeline for that step. One route, two executors — the interleaving IS the build loop.\n *\n * The workbench dispatches through THIS method and the CLI through its detached sibling; both leave\n * the same rows, because the record is a property of a DISPATCH and not of the door that asked.\n */\n public async dispatchNextBuildTask(\n session?: CompanionExecutionSessionContext,\n ): Promise<ApplicationBuildDispatchResult> {\n return this.executePreparedBuildTask(await this.prepareNextBuildTask(), session);\n }\n\n /**\n * Run THIS task (#1454, Step 7). Admitted only when it is READY: the same selection as\n * `dispatchNextBuildTask`, narrowed to one candidate, so every stuck-task rule still applies and a\n * task that is landed, blocked or unknown answers `ApplicationBuildTaskNotReadyError` instead of\n * running. `origin` is stamped on the run's row so the conversation it came from shows it.\n */\n public async dispatchBuildTask(\n taskRef: string,\n session?: CompanionExecutionSessionContext,\n origin?: ApplicationBuildDispatchOrigin,\n ): Promise<ApplicationBuildDispatchResult> {\n return this.executePreparedBuildTask(await this.prepareNextBuildTask({ taskRef }), session, origin);\n }\n\n /**\n * What running THIS task would mean, without running it: where it may write, what it must pass,\n * and how much context the coding run would carry — what an assistant says before asking for the\n * money. Throws exactly what `dispatchBuildTask` would refuse with.\n */\n public async describeBuildTaskDispatch(taskRef: string): Promise<{\n readonly plan: ApplicationBuildDispatchPlan;\n readonly stuckTasks: readonly ApplicationBuildStuckTask[];\n /** The coding contract's summed context estimate, in tokens; absent for a generation step. */\n readonly contextTokens?: number;\n }> {\n const prepared = await this.prepareNextBuildTask({ taskRef });\n const contextTokens = prepared.kind === 'CODING'\n ? (prepared.contract as { contextSelection?: { maximumTokenBudget?: number } }).contextSelection?.maximumTokenBudget\n : undefined;\n return { plan: prepared.plan, stuckTasks: prepared.stuckTasks, ...(contextTokens !== undefined ? { contextTokens } : {}) };\n }\n\n /**\n * Execute an ALREADY SELECTED task. The one seam both doors run through, so neither can drift from\n * the other about how a target kind is routed — and so selection happens exactly once per dispatch.\n *\n * Both routes are ENGINE-DRIVEN executions (#1359), which is what makes a dispatch visible from\n * selection to outcome without this service remembering anything.\n */\n /**\n * Open a prepared task's execution without running it: the generation step's own row, or the\n * coding run's `PENDING` selection row. For a caller that must answer only once the run is durable\n * ({@link submitBuildDispatchDetached}).\n */\n private async openPreparedBuildTask(\n prepared: PreparedBuildTask,\n session?: CompanionExecutionSessionContext,\n origin?: ApplicationBuildDispatchOrigin,\n mode: CodingRunConcurrency = CodingRunConcurrency.SINGLE_FLIGHT,\n ): Promise<OpenedActorExecution> {\n if (prepared.kind === 'GENERATION_STEP') {\n const openedStep = await this.actorsSystem.openActorExecution(this.buildGenerationStepExecutionRequest(prepared, session, origin));\n // Its row is on the dispatch history from this moment; see `executePreparedBuildTask`.\n this.dispatch.announceRunStateChanged();\n return openedStep;\n }\n // Announced by the coding service itself when it opens the PENDING execution.\n return this.dispatch.openSelectedApplicationCodingExecution(prepared.contract as MetaWorkflow_ApplicationCodingTaskContract, session, origin, mode);\n }\n\n /** The execution a generation step is: one task of the build system's programmatic actor. */\n private buildGenerationStepExecutionRequest(\n prepared: PreparedBuildTask,\n session?: CompanionExecutionSessionContext,\n origin?: ApplicationBuildDispatchOrigin,\n ): ActorExecutionOpenRequest<CompanionExecutionSessionContext | undefined> {\n return {\n systemRef: APPLICATION_BUILD_SYSTEM_REF,\n actorRef: APPLICATION_BUILD_GENERATION_STEP_ACTOR_REF,\n scope: session,\n task: {\n title: `Build generation step ${prepared.plan.taskRef}`,\n description: `Companion generation step ${String(prepared.plan.generationStepRef)} of the application build plan.`,\n topic: Actor_Task_Topics.IMPLEMENTATION,\n input: {\n taskRef: prepared.plan.taskRef,\n generationStepRef: prepared.plan.generationStepRef ?? null,\n ...(origin?.conversationId ? { conversationId: origin.conversationId } : {}),\n },\n // The same cross-plane join a coding task carries, so the board matches either kind of\n // dispatch to its build-plan row by one key.\n correlation: {\n domain: WORKBENCH_TASK_CORRELATION_DOMAIN,\n refs: { [WorkbenchTaskCorrelationRef.BUILD_PLAN_TASK]: sanitizeWorkbenchCreationPlaneIdentity(prepared.plan.taskRef) },\n },\n },\n };\n }\n\n private async executePreparedBuildTask(\n prepared: PreparedBuildTask,\n session?: CompanionExecutionSessionContext,\n origin?: ApplicationBuildDispatchOrigin,\n /** CONCURRENT only from {@link dispatchBuildWave} (#1528). */\n mode: CodingRunConcurrency = CodingRunConcurrency.SINGLE_FLIGHT,\n /** Already opened by {@link openPreparedBuildTask}; opened here otherwise. */\n opened?: OpenedActorExecution,\n ): Promise<ApplicationBuildDispatchResult> {\n if (prepared.kind === 'GENERATION_STEP') {\n this.logDebug('Running a companion generation step', {\n taskRef: prepared.plan.taskRef,\n generationStepRef: prepared.plan.generationStepRef,\n });\n /*\n * A generation step IS an execution of the build system's one PROGRAMMATIC actor: opened before\n * the pipeline starts, settled COMPLETED with what it produced, or FAILED with the pipeline's\n * own message when it throws (the driver rethrows it unchanged for this method's caller).\n */\n /*\n * Announced when the step's execution OPENS and again once its row is TERMINAL, however it ended\n * (#1310). The creation boards read that row: it is a line of the dispatch history while it\n * runs, and its ending is what a failed step's line and the next task it unblocks are read\n * from. A running step is NOT in the selection's in-flight set (that counts coding runs), so\n * the open announcement is about the history, not about readiness. When `opened` is supplied,\n * {@link openPreparedBuildTask} already announced the open.\n */\n const openedStep = opened ?? await this.actorsSystem.openActorExecution(this.buildGenerationStepExecutionRequest(prepared, session, origin));\n if (!opened) this.dispatch.announceRunStateChanged();\n const generationStep = await this.actorsSystem.completeActorExecution(\n openedStep,\n /*\n * Inside the coding lane's attribution window, and accepted under the autonomy posture there\n * (#1534): the step lands on COMMITTED paths and is exempt from the loop guard, so an\n * uncommitted step would be re-selected forever. See `runGenerationStepInWorktreeWindow`.\n */\n (opened) => this.dispatch.runGenerationStepInWorktreeWindow({\n taskRef: prepared.plan.taskRef,\n taskId: opened.taskId,\n execute: () => this.generationSteps.executeGenerationStep(prepared.task, session),\n ...(session ? { sessionContext: session } : {}),\n }),\n session,\n {\n // The step's PRODUCT is files on disk; the row names them so a reader need not re-derive where to look.\n concludeAs: (result) => ({\n status: FlowsActors_Status.COMPLETED,\n taskOutput: { generationStepRef: result.generationStepRef, evidencePaths: result.evidencePaths },\n }),\n },\n ).finally(() => this.dispatch.announceRunStateChanged());\n return { plan: prepared.plan, generationStep };\n }\n this.logDebug('Dispatching a build task to the coding agent', {\n taskRef: prepared.plan.taskRef,\n allowedPathPrefixes: prepared.plan.allowedPathPrefixes,\n });\n const contract = prepared.contract as MetaWorkflow_ApplicationCodingTaskContract;\n /*\n * Opened at SELECTION, `PENDING`: what follows can take minutes and can fail, and until #1359 that\n * stretch existed only in memory. The coding service STARTS this same execution at admission.\n */\n const selected = opened ?? await this.dispatch.openSelectedApplicationCodingExecution(contract, session, origin, mode);\n try {\n /*\n * The churn gate, and deliberately NOT the retry (#265): a coding turn MUTATES the workspace, so\n * a kill mid-turn leaves a change-set the attribution machinery must reconcile — re-dispatching\n * blind on top of that is how two half-runs interleave. The gate raises the odds the turn never\n * meets the respawn; a killed coding run stays what it is today, a visibly aborted task an\n * operator re-dispatches deliberately.\n */\n await waitForDevCompileQuiet({\n frameworkRepositoryRoot: this.companionContext.resolvedHomes.framework.repositoryRoot,\n log: (message, context) => this.logDebug(message, { taskRef: prepared.plan.taskRef, ...context }),\n /*\n * Siblings in a wave keep the compilers busy by design (#1528), so a concurrent admission waits\n * briefly rather than up to five minutes per slot. A run a respawn then kills stays what it is\n * everywhere: a visibly aborted task, retried.\n */\n ...(mode === CodingRunConcurrency.CONCURRENT ? { maximumWaitMs: CONCURRENT_ADMISSION_COMPILE_QUIET_MS } : {}),\n });\n const admission = await this.dispatch.runApplicationCodingTask(contract, session, selected, origin, mode);\n return { plan: prepared.plan, admission };\n } catch (error) {\n /*\n * The run never STARTED — a rejection from admission means exactly that, by the coding\n * service's contract — so the execution opened at selection is this method's to settle.\n * Best-effort: the dispatch's own error is what the caller must see, and a settle that also\n * fails leaves a PENDING row the startup reconcile sweeps.\n *\n * ABORTED, not FAILED (#1581). A refusal here — the worktree held by another run, the coding\n * agent unavailable — is the HOST declining to start the run, and the attempt budget counts\n * FAILED coding runs as the task's own failures (`listAttributableFailedRunsForBuildTask`).\n * Settled FAILED, three worktree-busy refusals retired a task that never ran. The message is\n * still on the row, and the board's dispatch record still reads it as a failed dispatch.\n *\n * One refusal IS the task's own: admission refused its CONTRACT (an unregistered verification\n * check, a malformed contract), marked by `isApplicationCodingContractRefusal`. Nothing about the\n * host would make it pass next time, so it settles FAILED with `failureAttribution: TASK`: the\n * budget counts it, and the board shows it as the attempt it is — otherwise it could never retire\n * and would hold the head of the queue on every dispatch.\n */\n const failure = { message: describeCaughtError(error).slice(0, 400) };\n await this.actorsSystem.settleActorExecution(\n selected,\n isApplicationCodingContractRefusal(error)\n ? { status: FlowsActors_Status.FAILED, taskOutput: { failure, failureAttribution: CodingRunFailureAttribution.TASK } }\n : { status: FlowsActors_Status.ABORTED, failure },\n session,\n ).catch((settleError: unknown) => {\n this.logDebug('A build dispatch failed before admission and its execution could not be settled', {\n taskRef: prepared.plan.taskRef, settleError: describeCaughtError(settleError),\n });\n }).finally(() => {\n /*\n * The PENDING row left the in-flight set (#1310, fifth review F1), which is an input of the\n * next-task selection, and no coding chain will announce this ending, because none started.\n * Announced whether or not the settle itself succeeded.\n */\n this.dispatch.announceRunStateChanged();\n });\n throw error;\n }\n }\n\n\n /**\n * Run the build with up to {@link readBuildParallelism} coding runs at once in the ONE worktree\n * (#1528) — a rolling pool rather than fixed batches: when a run settles its slot is refilled with\n * whatever is then ready, so a task that just landed unlocks its dependents in the same call.\n *\n * Optimistic by decision (Paul, 2026-09-24): runs share the tree and may edit the same files, the way\n * parallel Claude Code sessions do every day. What is prevented is only a task being built twice at\n * once (the per-task subject and the IN_FLIGHT skip). What is REPAIRED is at the end: once every run\n * has settled, {@link CodingAgentDispatchCompanionService.reconcileWaveAcceptance} commits what the\n * ordinary accept refused because siblings touched it. What is OBSERVED is on each run's row\n * (`concurrency`, `interferenceSuspected`).\n *\n * Bounded per call: at most {@link WAVE_DISPATCHES_PER_DEGREE} dispatches per slot, and a generation\n * step at most once — a step whose landing stays unmet would otherwise be re-selected forever. The\n * next call continues from wherever the build stands.\n *\n * With a degree of 1 this is one single-flight dispatch awaited to its outcome: exactly the lane as\n * it was.\n */\n public async dispatchBuildWave(session?: CompanionExecutionSessionContext): Promise<ApplicationBuildWaveResult> {\n const degree = readBuildParallelism(this.companionContext.saasRoot);\n const mode = degree > 1 ? CodingRunConcurrency.CONCURRENT : CodingRunConcurrency.SINGLE_FLIGHT;\n const maximumDispatches = degree * WAVE_DISPATCHES_PER_DEGREE;\n const dispatched: ApplicationBuildWaveDispatch[] = [];\n const inFlight = new Map<string, Promise<{ readonly taskId: string; readonly outcome: ApplicationCodingTaskSettledOutcome | null }>>();\n const generationStepsRun = new Set<string>();\n let stoppedFillingBecause: ApplicationBuildWaveStop | undefined;\n\n const fill = async (): Promise<void> => {\n while (stoppedFillingBecause === undefined && inFlight.size < degree) {\n if (dispatched.length >= maximumDispatches) {\n stoppedFillingBecause = ApplicationBuildWaveStop.DISPATCH_CAP;\n return;\n }\n let prepared: PreparedBuildTask;\n try {\n prepared = await this.prepareNextBuildTask();\n } catch (error) {\n if (error instanceof ApplicationBuildPlanExhaustedError || error instanceof ApplicationBuildTaskCompletedButUnlandedError) {\n // Nothing ready NOW. While runs are live that is a pause, not an end: a settle may unlock more.\n if (inFlight.size === 0) stoppedFillingBecause = ApplicationBuildWaveStop.NOTHING_READY;\n return;\n }\n throw error;\n }\n if (prepared.kind === 'GENERATION_STEP') {\n if (generationStepsRun.has(prepared.plan.taskRef)) {\n stoppedFillingBecause = ApplicationBuildWaveStop.GENERATION_STEP_REPEATED;\n return;\n }\n generationStepsRun.add(prepared.plan.taskRef);\n dispatched.push(await this.executePreparedBuildTask(prepared, session));\n continue;\n }\n try {\n const result = await this.executePreparedBuildTask(prepared, session, undefined, mode);\n dispatched.push(result);\n const taskId = result.admission!.taskId;\n inFlight.set(taskId, this.awaitCodingRunOutcome(taskId, session).then((outcome) => ({ taskId, outcome })));\n } catch (error) {\n // A refused admission is recorded and ends the filling; the live runs still drain.\n dispatched.push({ plan: prepared.plan, error: describeCaughtError(error) });\n stoppedFillingBecause = ApplicationBuildWaveStop.DISPATCH_REFUSED;\n return;\n }\n }\n };\n\n const outcomes: Array<ApplicationCodingTaskSettledOutcome | null> = [];\n await fill();\n while (inFlight.size > 0) {\n const settled = await Promise.race(inFlight.values());\n inFlight.delete(settled.taskId);\n outcomes.push(settled.outcome);\n await fill();\n }\n stoppedFillingBecause ??= ApplicationBuildWaveStop.NOTHING_READY;\n\n /*\n * REPAIR, now that nothing is writing. Every run that completed gets its writes committed again,\n * tolerating what siblings did to them — the merged tree IS the wave's result. Only when the wave\n * was concurrent: a single-flight run's own accept never meets a sibling.\n */\n const completedTaskRefs = mode === CodingRunConcurrency.CONCURRENT\n ? outcomes.flatMap((outcome) => (outcome?.status === FlowsActors_Status.COMPLETED && outcome.taskRef ? [outcome.taskRef] : []))\n : [];\n const reconciliation = completedTaskRefs.length > 0 ? await this.dispatch.reconcileWaveAcceptance(completedTaskRefs) : [];\n return { degree, mode, dispatched, outcomes, reconciliation, stoppedFillingBecause };\n }\n\n /**\n * Wait for one admitted coding run to SETTLE, then report what it actually did.\n *\n * `dispatchNextBuildTask` resolves at ADMISSION for a coding target — the lock is held, the durable\n * row exists, and the agent has not written a line yet. That is the right contract for a caller\n * that wants to watch (the detached record says `ADMITTED` and hands over the task id), and the\n * wrong one for a caller that REPORTS AN OUTCOME: the first playbook run through this tier recorded\n * `ok: true` at a `finishedAt` equal to the coding run's `startedAt`, so a green run described work\n * that was still executing and no evaluation could ever see a result.\n *\n * Two steps because they fail differently. The settlement is in-process and is `null` for a row this\n * process did not admit — a restart, or a previous generation — in which case there is nothing to\n * wait for and the durable row already holds whatever is knowable. The read is durable and answers\n * `null` only when the row cannot be classified at all, which a caller must report as \"unknown\",\n * never as a failed run.\n */\n public async awaitCodingRunOutcome(\n taskId: string,\n session?: CompanionExecutionSessionContext,\n ): Promise<ApplicationCodingTaskSettledOutcome | null> {\n const settlement = this.dispatch.awaitApplicationCodingTaskSettlement(taskId);\n if (settlement) await settlement;\n return this.dispatch.readApplicationCodingTaskOutcome(taskId, session);\n }\n\n /**\n * The task the dispatcher would select has ALREADY been run to a working result and is still\n * not landed — so selecting it again is a loop, not progress.\n *\n * Refused rather than re-dispatched because each iteration spawns a coding agent and costs real\n * money: measured 2026-09-10 on Wonder CRM at roughly $7.50 a turn, three turns, same task\n * (#606). Every run SUCCEEDED; what fails is the plan's ability to say the work landed.\n *\n * The remedy is never \"run it again\" — it is to fix what the task declares it PRODUCES, or to\n * fix the work so the declared product exists. Naming both in the message keeps an operator out\n * of the coding host, which is the wrong place to look: the run is not the defect.\n */\n private buildUnlandableTaskError(stuck: readonly ApplicationBuildStuckTask[], queue: ApplicationBuildStuckQueue): Error {\n const entry = stuck[0]!;\n const stuckCount = stuck.length;\n const { taskRef, priorTaskId, completedAt } = entry;\n const when = completedAt === undefined ? '' : ` at ${completedAt}`;\n const others = stuckCount > 1 ? ` ${stuckCount - 1} other ready task(s) are stuck the same way.` : '';\n /*\n * Four ways to be stuck, four DIFFERENT remedies — so they must not share prose. A message that\n * sent an operator to fix a `produces` declaration while a live question sat unanswered, or while\n * the real fault was a document the catalog does not define, is a message that costs a session.\n */\n if (entry.reason === Workbench_BuildTaskStuckReason.PARKED_AWAITING_ANSWER) {\n return new ApplicationBuildTaskCompletedButUnlandedError(\n `Build task \"${taskRef}\" is PARKED on an unanswered question (task ${priorTaskId}), so dispatching it `\n + 'again would abandon that run\\'s persisted session and lose the question with it. The question is: '\n + `${entry.question ?? '(not recorded on the durable row)'} — answer it through the coding-agent resume `\n + 'door, or retire the task from the plan if it cannot be built as declared. Do not re-dispatch.'\n + `${others}`,\n taskRef,\n priorTaskId,\n stuck,\n queue,\n );\n }\n if (entry.reason === Workbench_BuildTaskStuckReason.NO_DOCUMENT_BLUEPRINT) {\n return new ApplicationBuildTaskCompletedButUnlandedError(\n `Build task \"${taskRef}\" declares it produces the governed document \"${entry.documentRef}\", which the engine `\n + 'catalog does not define — so there is no blueprint saying what it must contain, and a run could only '\n + 'INVENT its structure, which the authoring skill forbids. No agent can complete it. Declare a document '\n + `the catalog defines (a candidate carries \\`document:<namespace>.<id>\\`), or retire the task.`\n + (entry.priorTaskId === ''\n ? ''\n : ` NOTE: a run for it is PARKED on a question (task ${entry.priorTaskId}); retiring the task abandons `\n + `that session. The question is: ${entry.question ?? '(not recorded)'}`)\n + others,\n taskRef,\n priorTaskId,\n stuck,\n queue,\n );\n }\n if (entry.reason === Workbench_BuildTaskStuckReason.IN_FLIGHT) {\n return new ApplicationBuildTaskCompletedButUnlandedError(\n `Build task \"${taskRef}\" is being built right now by a live coding run, so it is not offered again until `\n + `that run settles. Nothing to do: the next dispatch after it settles picks up wherever the build then stands.${others}`,\n taskRef,\n priorTaskId,\n stuck,\n queue,\n );\n }\n if (entry.reason === Workbench_BuildTaskStuckReason.ATTEMPTS_EXHAUSTED) {\n return new ApplicationBuildTaskCompletedButUnlandedError(\n `Build task \"${taskRef}\" has failed ${MAXIMUM_ATTRIBUTABLE_FAILED_ATTEMPTS} times (latest: task ${priorTaskId}${when}), `\n + 'each a failure of its own making, so it is not offered again as the same dispatch. Read the latest run\\'s '\n + 'failure (its verification output and closing report are on that task row), fix the cause, then put it back '\n + `with \\`wildo workbench rearm-task ${taskRef} --reason <why> --note <what was fixed>\\`.${others}`,\n taskRef,\n priorTaskId,\n stuck,\n queue,\n );\n }\n if (entry.reason === Workbench_BuildTaskStuckReason.COMPLETED_AWAITING_COMMIT) {\n return new ApplicationBuildTaskCompletedButUnlandedError(\n `Build task \"${taskRef}\" already completed${when} (task ${priorTaskId}) and its declared product IS in the `\n + `working tree, uncommitted: ${(entry.uncommittedPaths ?? []).join(', ')}. Landing means committed, because `\n + 'acceptance is a commit — review the run\\'s change set and commit it (with the rest of what the run '\n + `wrote), and the task lands. Do not re-dispatch, and do not change its \\`produces\\` declaration.${others}`,\n taskRef,\n priorTaskId,\n stuck,\n queue,\n );\n }\n return new ApplicationBuildTaskCompletedButUnlandedError(\n `Build task \"${taskRef}\" already completed${when} (task ${priorTaskId}) and is STILL not landed, so `\n + 'dispatching it again would re-run work that succeeded. Its landed probes are derived from what '\n + 'the task declares it `produces`, and they are unmet in the working tree as well as at HEAD: either '\n + 'that declaration is empty or wrong, or the run did not produce it. Fix the declaration or the work — do not re-dispatch. '\n + `Once the cause is fixed, put the task back with \\`wildo workbench rearm-task ${taskRef} --reason <why> --note <what was fixed>\\`.${others}`,\n taskRef,\n priorTaskId,\n stuck,\n queue,\n );\n }\n\n /**\n * Select the task to run: the NEXT ready one, or — with `selection` — the NAMED one, which must be\n * among the ready ones. The stuck-task rules below apply to either; naming a task never lets it\n * skip them.\n */\n /**\n * WHY a ready build task cannot make progress — or `null` when it can be dispatched.\n *\n * ONE classification, called by both the selector (`prepareNextBuildTask`, which skips a stuck task)\n * and the per-task record (`describeBuildTaskRecords`, which reports it). Until #1521 it lived inline\n * in the selection loop, so the only surface that ever saw a task's reason was the loop guard's\n * refusal, thrown away on every ordinary round. Two copies would be two answers to one question.\n *\n * Generation steps are not asked: their landing is a typed condition of their own, and one of them\n * is legitimately re-runnable.\n */\n private async classifyStuckBuildTask(\n candidate: BuildPlanTask,\n /** The build tasks with a live coding run, when the caller already read them once for a whole selection. */\n inFlightTaskRefs?: ReadonlySet<string>,\n ): Promise<ApplicationBuildStuckTask | null> {\n /*\n * FIRST, because it is the one reason that is progress rather than a fault: a run of this task is\n * live (#1528). Under a parallel wave the next selection must pass over it, or two agents build the\n * same task. The engine's per-task subject refuses the second one anyway; this keeps the wave from\n * spending a slot on the refusal.\n */\n const inFlight = inFlightTaskRefs !== undefined\n ? (inFlightTaskRefs.has(candidate.taskRef) ? { executionId: '' } : null)\n : await this.dispatch.findInFlightRunForBuildTask(candidate.taskRef);\n if (inFlight !== null) {\n return { taskRef: candidate.taskRef, priorTaskId: '', reason: Workbench_BuildTaskStuckReason.IN_FLIGHT };\n }\n /*\n * Asked BEFORE any durable-run lookup, because it is the one reason that does not need a run to\n * have happened: a task producing a document the catalog cannot describe is unbuildable from the\n * moment it is authored, and dispatching it spends a full agent turn to rediscover that. Wonder\n * CRM's plan carries two.\n */\n const undraftableDocumentRef = resolveUndraftableDocumentRef(candidate);\n if (undraftableDocumentRef !== undefined) {\n /*\n * A task can be BOTH unbuildable and parked — Wonder CRM's GDPR task is exactly that. The\n * document fault is the one that decides (no run can ever complete it), but retiring a task\n * with a live persisted session is a deliberate act, so the park is named rather than dropped.\n */\n const alsoParked = await this.dispatch.findParkedRunForBuildTask(candidate.taskRef);\n return {\n taskRef: candidate.taskRef,\n priorTaskId: alsoParked?.taskId ?? '',\n reason: Workbench_BuildTaskStuckReason.NO_DOCUMENT_BLUEPRINT,\n documentRef: undraftableDocumentRef,\n question: alsoParked?.question,\n };\n }\n const priorRun = await this.dispatch.findCompletedRunForBuildTask(candidate.taskRef);\n if (priorRun !== null) {\n const uncommittedPaths = await this.resolveProducedButUncommittedPaths(candidate);\n return {\n taskRef: candidate.taskRef,\n priorTaskId: priorRun.taskId,\n completedAt: priorRun.completedAt,\n reason: uncommittedPaths === undefined ? Workbench_BuildTaskStuckReason.COMPLETED_UNLANDED : Workbench_BuildTaskStuckReason.COMPLETED_AWAITING_COMMIT,\n uncommittedPaths,\n };\n }\n /*\n * A run that SUSPENDED is not a completed run, so the lookup above cannot see it — and without\n * this second question the task is offered again on every dispatch, forever. Measured\n * 2026-09-16 on Wonder CRM: `build-task-gdpr-data-handling-governance` parked on a question,\n * and the next dry run selected the same task. The anti-loop guard was answering honestly\n * about the wrong population.\n *\n * Skipped, never blocking: the parked run keeps its persisted session, its dependents keep\n * waiting, and the rest of the plan proceeds.\n */\n const parkedRun = await this.dispatch.findParkedRunForBuildTask(candidate.taskRef);\n if (parkedRun !== null) {\n return { taskRef: candidate.taskRef, priorTaskId: parkedRun.taskId, reason: Workbench_BuildTaskStuckReason.PARKED_AWAITING_ANSWER, question: parkedRun.question };\n }\n /*\n * The ATTEMPT BUDGET (#1536). A failed run is re-offered by design — it is exactly what an\n * operator should be able to retry — and until this nothing counted: on the first end-to-end run\n * two tasks ran three times each for $69, re-dispatched identically. Only the task's own failures\n * count (a check already red before a run no longer fails it), so this retires a task for what IT\n * did; the re-arm door releases it once the cause is fixed.\n */\n const failedRuns = await this.dispatch.listAttributableFailedRunsForBuildTask(candidate.taskRef);\n if (failedRuns.length >= MAXIMUM_ATTRIBUTABLE_FAILED_ATTEMPTS) {\n return {\n taskRef: candidate.taskRef,\n priorTaskId: failedRuns[0]!.taskId,\n ...(failedRuns[0]!.settledAt ? { completedAt: failedRuns[0]!.settledAt } : {}),\n reason: Workbench_BuildTaskStuckReason.ATTEMPTS_EXHAUSTED,\n };\n }\n return null;\n }\n\n private async prepareNextBuildTask(selection?: { readonly taskRef: string }): Promise<PreparedBuildTask> {\n const graph = await this.readBuildPlan();\n const resolution = await this.resolveLandedTaskRefs(graph.tasks);\n const landedTaskRefs = resolution.landed;\n\n const ready = selectReadyBuildPlanTasks(graph, landedTaskRefs);\n if (selection !== undefined && !ready.some((candidate) => candidate.taskRef === selection.taskRef)) {\n const named = graph.tasks.find((candidate) => candidate.taskRef === selection.taskRef);\n const standing = named === undefined ? ApplicationBuildTaskStanding.UNKNOWN\n : landedTaskRefs.has(named.taskRef) ? ApplicationBuildTaskStanding.LANDED\n : ApplicationBuildTaskStanding.BLOCKED;\n const unmet = named === undefined ? [] : named.prerequisiteTaskRefs.filter((prerequisite) => !landedTaskRefs.has(prerequisite));\n throw new ApplicationBuildTaskNotReadyError(\n standing === ApplicationBuildTaskStanding.UNKNOWN ? `The build plan holds no task \"${selection.taskRef}\".`\n : standing === ApplicationBuildTaskStanding.LANDED ? `Task ${selection.taskRef} has already landed.`\n : `Task ${selection.taskRef} is not ready: it waits on ${unmet.join(', ')}.`,\n selection.taskRef,\n standing,\n unmet,\n );\n }\n if (ready.length === 0) {\n throw new ApplicationBuildPlanExhaustedError(\n `Every task in the build plan has landed, or none is ready: ${graph.tasks.length} task(s), `\n + `${landedTaskRefs.size} landed.`,\n graph.tasks.length,\n landedTaskRefs.size,\n );\n }\n /*\n * The FIRST ready task, in graph order — routed by its own `target.kind`, never reordered.\n *\n * Deliberately not a choice among the ready set: the graph already encodes the ordering its author\n * intended, and something picking among ready tasks would be a second scheduler disagreeing with the\n * first. (An earlier version skipped generation steps to find a coding task and refused when none\n * remained — correct while no executor existed, a hole in the lane once one did: the first authored\n * generation step parked the Wonder Todos build behind a named 409 forever.)\n */\n /*\n * THE FIRST ready task in graph order — SKIPPING any that has already run and still cannot prove\n * it landed. Skipping is not reordering: the graph's order is preserved, a known-stuck task is\n * removed from it.\n *\n * Such a task declared a product and the run did not produce it, so the declaration or the work\n * is wrong. Re-offering it is the money-burning loop; REFUSING THE WHOLE QUEUE for it — which is\n * what this did until 2026-09-12 — is the gate `application-creation-directive.md` forbids, one\n * task later. One over-derived field would freeze an entire 42-task build.\n *\n * It is SKIPPED rather than MARKED, and the asymmetry against the no-product case above is the\n * whole design. A task declaring nothing can never be proven by any run, so marking it is the\n * only way the lane moves — measured at 1 of 42 reachable otherwise. A task whose product is\n * merely ABSENT is provable: fix the declaration or the work and it lands. So it stays NOT\n * landed, its dependents correctly wait, and every unrelated branch proceeds.\n */\n const stuck: ApplicationBuildStuckTask[] = [];\n let selected: BuildPlanTask | undefined;\n let unanswerableGenerationStep: BuildPlanTask | undefined;\n const candidates = selection === undefined ? ready : ready.filter((candidate) => candidate.taskRef === selection.taskRef);\n // Read ONCE per selection: a wave selects repeatedly over a wide ready set (#1528).\n const inFlightTaskRefs = new Set((await this.dispatch.listInFlightCodingRuns()).flatMap((run) => (run.taskRef ? [run.taskRef] : [])));\n for (const candidate of candidates) {\n /*\n * Generation steps are exempt: their landing is the generation-step service's own typed\n * condition rather than a product declaration, and one of them (`i18n-labels`) is legitimately\n * re-runnable when the locale set changes.\n */\n if (candidate.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {\n /*\n * …except one whose schema-plan check could not be ANSWERED (`SchemaPlanSyncState.UNANSWERABLE`).\n * It cannot land, and running it only throws (every cause is listed on that member — no built\n * registry and a planner-contract mismatch among them), so holding the head of the queue for it stops every other task: the\n * whole-queue refusal this loop exists not to be. Passed over, not dropped: when nothing else is\n * ready it is still selected below, so its executor's refusal names the cause.\n */\n if (resolution.unanswerableSchemaPlanTaskRefs.has(candidate.taskRef)) {\n unanswerableGenerationStep ??= candidate;\n continue;\n }\n selected = candidate;\n break;\n }\n const stuckEntry = await this.classifyStuckBuildTask(candidate, inFlightTaskRefs);\n if (stuckEntry !== null) {\n stuck.push(stuckEntry);\n continue;\n }\n selected = candidate;\n break;\n }\n if (selected === undefined && unanswerableGenerationStep !== undefined) {\n selected = unanswerableGenerationStep;\n } else if (unanswerableGenerationStep !== undefined) {\n this.logger.warn?.(\n 'Build dispatch passed over a migration step whose `wildo db diff --check` neither passed nor reported drift '\n + '(no accepted schema plan, no built backend registry, a CLI that could not import or spawn, a timeout, an '\n + 'unparseable lockfile, or an engine planner-contract mismatch — run `wildo db diff` to see which). The rest '\n + 'of the plan proceeds; the step is offered again once the check answers.',\n { deferredTaskRef: unanswerableGenerationStep.taskRef, selectedTaskRef: selected?.taskRef },\n );\n }\n if (selected === undefined) {\n /*\n * Everything ready has already run and none of it landed. A DISTINCT terminal from\n * `ApplicationBuildPlanExhaustedError`, which means the opposite and is healthy — conflating\n * them would let a wholly stuck build read as a finished one.\n */\n throw this.buildUnlandableTaskError(stuck, {\n taskCount: graph.tasks.length,\n readyTaskRefs: ready.map((entry) => entry.taskRef),\n landedTaskRefs: [...landedTaskRefs].sort(),\n unverifiableLandedTaskRefs: resolution.unverifiableLandedTaskRefs,\n });\n }\n // A task being built right now is not a finding (#1528); only the rest are worth a warning.\n if (stuck.some((entry) => entry.reason !== Workbench_BuildTaskStuckReason.IN_FLIGHT)) {\n const stuckByReason = Object.fromEntries(\n Object.values(Workbench_BuildTaskStuckReason).map((reason) => [reason, stuck.filter((entry) => entry.reason === reason).map((entry) => entry.taskRef)]),\n );\n this.logger.warn?.(\n `Build dispatch skipped ${stuck.length} ready task(s) that cannot make progress. Those that already RAN `\n + 'either wrote their product without committing it (commit it to land them) or declared a product the '\n + 'run did not produce (the declaration or the work is wrong). Those that are '\n + 'PARKED are waiting on an answer, and re-dispatching one would abandon its persisted session. Their '\n + 'dependents stay blocked while the rest of the plan proceeds.',\n { skippedTaskRefs: stuck.map((entry) => entry.taskRef), stuckByReason, selectedTaskRef: selected.taskRef },\n );\n }\n const task = selected;\n if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {\n const evidencePaths = await this.generationSteps.resolveGenerationStepEvidencePaths(task);\n const evidenceRoots = [...new Set(evidencePaths.map((evidencePath) => `${evidencePath.split('/').slice(0, -1).join('/')}/`))].sort();\n const plan: ApplicationBuildDispatchPlan = {\n taskRef: task.taskRef,\n objective: task.objective,\n targetKind: task.target.kind,\n produces: task.produces,\n generationStepRef: task.target.generationStepRef,\n allowedPathPrefixes: evidenceRoots,\n prohibitedPathPrefixes: [],\n // The pipelines validate their own output; skills are a coding agent's channel, not this executor's.\n requiredChecks: [],\n installedSkillRefs: [],\n readyTaskRefs: ready.map((entry) => entry.taskRef),\n landedTaskRefs: [...landedTaskRefs].sort(),\n unverifiableLandedTaskRefs: resolution.unverifiableLandedTaskRefs,\n };\n return { kind: 'GENERATION_STEP', plan, task, stuckTasks: stuck };\n }\n const boundary = resolveBuildPlanTaskCodingPolicy(\n task as Parameters<typeof resolveBuildPlanTaskCodingPolicy>[0],\n this.readApplicationWorkspaceEntries(),\n );\n const contract = composeBuildTaskCodingContract({\n task,\n boundary,\n contextSources: await this.buildContextSources(task, graph.tasks.length),\n objectiveRef: 'application-creation:objective/build-plan',\n });\n\n const plan: ApplicationBuildDispatchPlan = {\n taskRef: task.taskRef,\n objective: task.objective,\n targetKind: task.target!.kind,\n produces: task.produces,\n allowedPathPrefixes: contract.mutationScope.allowedPathPrefixes,\n prohibitedPathPrefixes: contract.mutationScope.prohibitedPathPrefixes,\n requiredChecks: contract.verificationIntent.requiredChecks,\n installedSkillRefs: contract.installedSkillRefs,\n readyTaskRefs: ready.map((entry) => entry.taskRef),\n landedTaskRefs: [...landedTaskRefs].sort(),\n unverifiableLandedTaskRefs: resolution.unverifiableLandedTaskRefs,\n };\n\n return { kind: 'CODING', plan, contract, stuckTasks: stuck };\n }\n\n /**\n * Which tasks have landed, read from GIT.\n *\n * A task has landed when every file it PRODUCES is committed — tracked, and with HEAD, index and worktree\n * in agreement. Not \"the file exists\": an untracked or half-edited file is work in progress, and treating\n * it as landed would let the next task build on something nobody accepted.\n *\n * This replaced a replay of a journal stream that had no writer anywhere, so the answer was permanently\n * \"nothing has landed\" and the loop could never advance past its first task. Git also answers correctly\n * after a restart, on a fresh clone, and on the other side of a branch switch — none of which an\n * in-memory journal can.\n */\n /**\n * How far the current build plan's execution has progressed — the eligibility board's input for the\n * \"plan complete ⇒ re-decompose is sequencing, not a live option\" gate. `undefined` when the\n * application has no (valid) build plan: absence of a plan is not zero-of-zero progress.\n */\n public async resolveBuildExecutionProgress(): Promise<{\n readonly totalTasks: number;\n readonly landedTasks: number;\n readonly readyTasksAllStuck?: readonly string[];\n } | undefined> {\n let plan: Awaited<ReturnType<typeof this.readBuildPlan>>;\n try {\n plan = await this.readBuildPlan();\n } catch {\n return undefined;\n }\n const { landed } = await this.resolveLandedTaskRefs(plan.tasks);\n const progress = { totalTasks: plan.tasks.length, landedTasks: landed.size };\n const readyTasksAllStuck = await this.resolveReadyTasksAllStuck(plan, landed);\n return readyTasksAllStuck === undefined ? progress : { ...progress, readyTasksAllStuck };\n }\n\n /**\n * The ready tasks, when EVERY one is stuck — the state in which `dispatchNextBuildTask` refuses\n * before starting anything (#1547). The eligibility board withholds the dispatch playbook on it, so an\n * unattended loop stops offering a run that can only fail.\n *\n * Asked with the SAME classification the selector uses, so the board and the dispatcher cannot\n * disagree about whether anything can run. A generation step is never stuck by that classification,\n * so a ready one means something is dispatchable. Undefined whenever the answer is not positively\n * \"all stuck\" — nothing ready, something dispatchable, or a classification that threw — because a gate\n * that closes on an unreadable answer withholds work that may well be runnable.\n */\n private async resolveReadyTasksAllStuck(\n plan: Awaited<ReturnType<typeof this.readBuildPlan>>,\n landed: ReadonlySet<string>,\n ): Promise<readonly string[] | undefined> {\n if (landed.size >= plan.tasks.length) return undefined;\n const ready = selectReadyBuildPlanTasks(plan, landed);\n if (ready.length === 0) return undefined;\n const stuck: string[] = [];\n for (const task of ready) {\n if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) return undefined;\n let entry: ApplicationBuildStuckTask | null;\n try {\n entry = await this.classifyStuckBuildTask(task);\n } catch {\n return undefined;\n }\n // A task being built right now is progress, not stuck: the plan is not blocked while a wave runs.\n if (entry === null || entry.reason === Workbench_BuildTaskStuckReason.IN_FLIGHT) return undefined;\n stuck.push(task.taskRef);\n }\n return stuck;\n }\n\n /**\n * What LANDED, and what of it was PROVEN — the maturity reading's evidence input (#1496).\n *\n * Exposed here rather than recomputed by the reading, because \"did this task land\" is a question\n * about committed bytes that this service already answers, and a second implementation of it is\n * how two surfaces come to disagree about whether a task is done.\n *\n * The two sets differ by `unverifiableLandedTaskRefs`: a task that declares no product cannot be\n * probed, so a completed durable run lands it as RAN-not-PROVEN rather than stalling the queue\n * (`application-creation-directive.md` — mark, never gate). A requirement whose only build work is\n * such a task stops at `BUILT`, which is the honest reading of it.\n *\n * `undefined` when the application has no build plan OR its plan cannot be read — absence is not\n * an empty landing, and a reading that treated it as one would report every requirement as unbuilt\n * for a reason that has nothing to do with the requirements.\n *\n * Absence is tested DIRECTLY, like `describeBuildPlanBoard` beside it and for its reason:\n * `readBuildPlan` throws the same class for a plan that exists and fails validation, so catching\n * alone would flatten \"could not look\" into \"nothing there\" — and here that difference is a\n * landed artifact saying an application has built nothing.\n */\n public async resolveLandedTaskEvidence(): Promise<{ readonly landedTaskRefs: readonly string[]; readonly provenTaskRefs: readonly string[] } | undefined> {\n if (!(await this.hasAuthoredBuildPlan())) return undefined;\n let plan: Awaited<ReturnType<typeof this.readBuildPlan>>;\n try {\n plan = await this.readBuildPlan();\n } catch {\n return undefined;\n }\n const resolution = await this.resolveLandedTaskRefs(plan.tasks);\n const unverifiable = new Set(resolution.unverifiableLandedTaskRefs);\n const landedTaskRefs = [...resolution.landed];\n return { landedTaskRefs, provenTaskRefs: landedTaskRefs.filter((taskRef) => !unverifiable.has(taskRef)) };\n }\n\n /**\n * The per-task build record an operator or an agent reads in ONE call (#1521).\n *\n * Composed entirely from what already exists — the plan, the landing resolution, the actor plane's\n * execution rows, and the stuck classification the selector uses — and stored nowhere. A second\n * ledger of attempts would be a second answer to \"what happened to this task\", and the rows the\n * engine already writes are the first.\n *\n * `undefined` when the application has no build plan, for the reason `resolveLandedTaskEvidence`\n * gives: absence is not an empty build.\n */\n /**\n * Put a build task back in the queue after the reason it did not land was fixed (#1535). The ref must\n * be a task of THIS build plan: re-arming a ref the plan does not carry would record a decision about\n * nothing, and a typo would read as success.\n */\n public async rearmBuildTask(\n taskRef: string,\n request: { readonly reason: BuildTaskRearmReason; readonly note: string },\n session?: CompanionExecutionSessionContext,\n ): Promise<{ readonly rearmedRunTaskIds: readonly string[]; readonly rearm: BuildTaskRearm }> {\n const plan = await this.readBuildPlan();\n if (!plan.tasks.some((task) => task.taskRef === taskRef)) {\n throw new NothingToRearmError(`\"${taskRef}\" is not a task of this application's build plan, so there is nothing to re-arm.`);\n }\n return this.dispatch.rearmBuildTask(taskRef, request, session);\n }\n\n public async describeBuildTaskRecords(session?: CompanionExecutionSessionContext): Promise<ApplicationBuildTaskRecords | undefined> {\n if (!(await this.hasAuthoredBuildPlan())) return undefined;\n const plan = await this.readBuildPlan();\n const resolution = await this.resolveLandedTaskRefs(plan.tasks);\n const ready = new Set(selectReadyBuildPlanTasks(plan, resolution.landed).map((task) => task.taskRef));\n const unverifiable = new Set(resolution.unverifiableLandedTaskRefs);\n\n const listed = await Promise.all([APPLICATION_CODING_SYSTEM_REF, APPLICATION_BUILD_SYSTEM_REF].map((systemRef) =>\n this.executions.listActorExecutions(CompanionExecutionsListQuerySchema.parse({ systemRef, limit: BUILD_TASK_ATTEMPT_PAGE_CAP }), session)));\n const attemptsTruncated = listed.some((page) => page.length >= BUILD_TASK_ATTEMPT_PAGE_CAP);\n const attemptsByTask = new Map<string, ApplicationBuildTaskAttempt[]>();\n for (const projected of listed.flat().map(projectBuildTaskAttempt)) {\n if (projected === null) continue;\n const list = attemptsByTask.get(projected.taskRef) ?? [];\n list.push(projected.attempt);\n attemptsByTask.set(projected.taskRef, list);\n }\n for (const list of attemptsByTask.values()) list.sort((left, right) => right.startedAt.localeCompare(left.startedAt));\n\n const committedTree = this.createCommittedTreeReader();\n const worktree = this.createWorktreeReader();\n const records: ApplicationBuildTaskRecord[] = [];\n for (const task of plan.tasks) {\n const attempts = attemptsByTask.get(task.taskRef) ?? [];\n const landed = resolution.landed.has(task.taskRef);\n const status = landed ? WorkbenchBuildPlanTaskStatus.LANDED\n : ready.has(task.taskRef) ? WorkbenchBuildPlanTaskStatus.READY\n : WorkbenchBuildPlanTaskStatus.BLOCKED;\n const isGenerationStep = task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP;\n const stuck = status === WorkbenchBuildPlanTaskStatus.READY && !isGenerationStep\n ? await this.classifyStuckBuildTask(task) : null;\n let unmetProbes: ApplicationBuildTaskUnmetProbe[] | undefined;\n let schemaPlanSyncState: SchemaPlanSyncState | undefined;\n if (!landed && attempts.some(isStartedBuildTaskAttempt)) {\n if (isGenerationStep) {\n const condition = await this.generationSteps.resolveGenerationStepLandedCondition(task);\n if (condition.kind === ApplicationBuildGenerationStepLandedKind.SCHEMA_PLAN_IN_SYNC) {\n schemaPlanSyncState = await this.generationSteps.readSchemaPlanSyncState();\n } else {\n unmetProbes = [];\n for (const path of condition.paths) {\n const probe: BuildPlanTaskLandedProbe = { kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE, path };\n if (await this.isLandedProbeSatisfied(probe, committedTree)) continue;\n unmetProbes.push({ probe, satisfiedInWorkingTree: await this.isLandedProbeSatisfied(probe, worktree) });\n }\n }\n } else {\n unmetProbes = [];\n for (const probe of resolveBuildTaskLandedProbes(task)) {\n if (await this.isLandedProbeSatisfied(probe, committedTree)) continue;\n unmetProbes.push({\n probe,\n satisfiedInWorkingTree: await this.isLandedProbeSatisfied(probe, worktree),\n ...(isShellProbe(probe) ? { shell: await this.explainShellProbe(probe, committedTree) } : {}),\n });\n }\n }\n }\n const waitingOn = status === WorkbenchBuildPlanTaskStatus.BLOCKED\n ? task.prerequisiteTaskRefs.filter((prerequisite) => !resolution.landed.has(prerequisite)) : undefined;\n records.push({\n taskRef: task.taskRef,\n targetKind: String(task.target?.kind ?? ''),\n status,\n attempts,\n ...(stuck !== null ? { stuck } : {}),\n ...(unmetProbes !== undefined ? { unmetProbes } : {}),\n ...(schemaPlanSyncState !== undefined ? { schemaPlanSyncState } : {}),\n ...(waitingOn !== undefined ? { waitingOn } : {}),\n ...(landed && unverifiable.has(task.taskRef) ? { unverifiable: true } : {}),\n });\n }\n\n const stuckByReason = Object.fromEntries(\n Object.values(Workbench_BuildTaskStuckReason).map((reason) => [reason, records.filter((record) => record.stuck?.reason === reason).length]),\n ) as Record<Workbench_BuildTaskStuckReason, number>;\n const notLanded = records.filter((record) => record.status !== WorkbenchBuildPlanTaskStatus.LANDED);\n // A dispatch refused before it started is shown in its task's history and counted by no figure below (#1581).\n const started = (record: ApplicationBuildTaskRecord) => record.attempts.filter(isStartedBuildTaskAttempt);\n const unavailableRuntimes = await readUnavailableApplicationRuntimes(this.companionContext.saasRoot);\n return {\n tasks: records,\n summary: {\n taskCount: records.length,\n landed: records.length - notLanded.length,\n blocked: records.filter((record) => record.status === WorkbenchBuildPlanTaskStatus.BLOCKED).length,\n readyNeverAttempted: records.filter((record) => record.status === WorkbenchBuildPlanTaskStatus.READY && started(record).length === 0).length,\n readyToRetry: records.filter((record) => record.status === WorkbenchBuildPlanTaskStatus.READY && started(record).length > 0 && !record.stuck).length,\n stuckByReason,\n attempts: records.reduce((total, record) => total + started(record).length, 0),\n completedAttemptsWithoutLanding: notLanded.reduce(\n (total, record) => total + record.attempts.filter((attempt) => attempt.status === FlowsActors_Status.COMPLETED).length, 0),\n repeatedlyAttemptedWithoutLanding: notLanded.filter((record) => started(record).length > 1).map((record) => record.taskRef),\n spend: deriveBuildSpend(records),\n parallelism: {\n degree: readBuildParallelism(this.companionContext.saasRoot),\n overlappingAttempts: records.reduce((total, record) => total + record.attempts.filter((attempt) => attempt.concurrency !== undefined).length, 0),\n interferenceSuspectedAttempts: records.reduce((total, record) => total + record.attempts.filter((attempt) => attempt.interferenceSuspected === true).length, 0),\n contendedPaths: [...new Set(records.flatMap((record) => record.attempts.flatMap((attempt) => attempt.concurrency?.contendedPaths ?? [])))].sort(),\n },\n },\n attemptsTruncated,\n ...(unavailableRuntimes === undefined ? {} : { unavailableRuntimes }),\n repairsOwed: deriveRepairsOwed(attemptsByTask),\n };\n }\n\n /**\n * Every build-plan task in the DISPATCH view — the creation board's `workbenchBuildPlanTasks`\n * rows (`workbench-creation-board-resources.md`, Phase 2).\n *\n * `status` is computed per read, never stored: `landed` = the task's evidence paths are all\n * committed (the same resolution the dispatcher itself selects by), `ready` = every prerequisite\n * landed and it has not, `blocked` = otherwise. Exactly one holds.\n *\n * An application with NO authored build plan answers ZERO TASKS rather than throwing: the plan\n * file legitimately does not exist until build-decompose runs, so \"nothing there yet\" is the\n * true answer. Absence is tested DIRECTLY (the exports carry no `buildPlanSpecification`) rather\n * than by catching `ApplicationBuildPlanUnavailableError`, because `readBuildPlan` throws that\n * SAME class for a plan that exists and fails schema or semantic validation — and flattening an\n * invalid plan into an empty board would be \"could not look\" wearing \"nothing there\".\n */\n public async describeBuildPlanBoard(): Promise<readonly {\n readonly taskRef: string;\n readonly objective: string;\n readonly targetKind: string;\n readonly functionalTopic: string;\n readonly status: WorkbenchBuildPlanTaskStatus;\n readonly prerequisiteTaskRefs: readonly string[];\n }[]> {\n if (!(await this.hasAuthoredBuildPlan())) return [];\n\n const plan = await this.readBuildPlan();\n const { landed } = await this.resolveLandedTaskRefs(plan.tasks);\n const ready = new Set(selectReadyBuildPlanTasks(plan, landed).map((task) => task.taskRef));\n return plan.tasks.map((task) => ({\n taskRef: task.taskRef,\n objective: task.objective,\n targetKind: String(task.target?.kind ?? ''),\n functionalTopic: String(task.functionalTopic),\n status: landed.has(task.taskRef) ? WorkbenchBuildPlanTaskStatus.LANDED\n : ready.has(task.taskRef) ? WorkbenchBuildPlanTaskStatus.READY\n : WorkbenchBuildPlanTaskStatus.BLOCKED,\n prerequisiteTaskRefs: task.prerequisiteTaskRefs,\n }));\n }\n\n /**\n * What ONE landing resolution found — returned rather than parked on the instance.\n *\n * These two were fields (`lastUnverifiableLandedTaskRefs`, `lastUnanswerableSchemaPlanTaskRefs`),\n * written as the probe's last statement and read by its caller one microtask later. The service is\n * a singleton in a process serving concurrent requests and the probe is spawn-heavy, so two\n * in-flight resolutions interleave at every await and the caller could read the OTHER pass's\n * answer — a requirement dropping from VERIFIED to BUILT because a workbench poll landed between\n * two lines. Returning them makes each caller's answer its own by construction (#1496's review).\n */\n private async resolveLandedTaskRefs(tasks: readonly BuildPlanTask[]): Promise<LandedTaskResolution> {\n const landed = new Set<string>();\n const unverifiable = new Set<string>();\n const unanswerable = new Set<string>();\n const committedTree = this.createCommittedTreeReader();\n /*\n * Ask git ONCE for the whole plan's probe paths, before the per-task loop asks for them one at a\n * time. Each `isCommitted` costs an `ls-files` + `status` PAIR of subprocesses, and a plan's\n * probes run to hundreds of distinct paths — so this loop was the companion's dominant cost and,\n * because a spawn storm starves the event loop, the reason `/health/ready` stopped answering\n * inside the ten seconds the workbench allows it (see `selectCommittedPaths`, which records the\n * measurement and the repo-root-prefix trap it contains).\n *\n * Only `COMMITTED_FILE` probes, because they are the only kind that asks `isCommitted` — the two\n * DECLARES kinds answer from `readText` instead, and priming their paths would ask git a question\n * whose answer is then discarded. It would be harmless and free inside the batch, which is\n * exactly why it has to be deliberate rather than convenient: it would also silently widen what\n * `application-build-dispatch-landing-path-reuse` measures.\n *\n * Generation-step conditions ARE gathered, by resolving them once into a map the loop then reads.\n * \"They are few, and they still resolve per path\" was true of the TASKS and wrong about the\n * PATHS: the i18n step's evidence is `planner units x enabled locales`, so three generation-step\n * tasks expanded to seventeen `status --porcelain` spawns per resolution — measured at the spawn\n * site 2026-09-22, where they were the largest source left after the probe paths were batched.\n * Resolving the condition here rather than inside the loop is what lets them join the same batch\n * without asking for each condition twice.\n */\n const generationStepConditions = new Map<string, Awaited<ReturnType<typeof this.generationSteps.resolveGenerationStepLandedCondition>>>();\n for (const task of tasks) {\n if (task.target?.kind !== BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) continue;\n generationStepConditions.set(task.taskRef, await this.generationSteps.resolveGenerationStepLandedCondition(task));\n }\n await committedTree.primeCommitted([\n ...tasks.flatMap((task) => resolveBuildTaskLandedProbes(task)\n .filter((probe) => probe.kind === BuildPlanTaskLandedProbeKind.COMMITTED_FILE)\n .flatMap(landedProbePaths)),\n ...[...generationStepConditions.values()].flatMap((condition) => (\n condition.kind === ApplicationBuildGenerationStepLandedKind.COMMITTED_PATHS ? condition.paths : []\n )),\n ]);\n /*\n * And ONE `cat-file --batch` for every path whose committed TEXT a DECLARES probe will read,\n * rather than a `git show` each. Measured at the spawn site 2026-09-22, these were 20 of 45\n * spawns in a ten-second window — four distinct paths, re-read once per resolution.\n *\n * `ANY_COMMITTED_FILE_DECLARES` short-circuits, so this reads candidates the lazy route might\n * have skipped. That is deliberate and it is not a cost: the whole set rides one subprocess, and\n * the bytes are the same bytes. What it buys is that the count no longer depends on which\n * candidate happened to satisfy the probe first.\n */\n await committedTree.primeTexts(tasks.flatMap((task) => resolveBuildTaskLandedProbes(task)\n .filter((probe) => probe.kind !== BuildPlanTaskLandedProbeKind.COMMITTED_FILE)\n .flatMap(landedProbePaths)));\n for (const task of tasks) {\n if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {\n /*\n * A generation step declares HOW it proves it landed, because not every step proves it with\n * files. Most name the exact unit files their pipelines write (see that service's JSDoc for\n * why a directory prefix would be dishonest). The migration step cannot — its artifact is\n * `backend-api/migrations/<timestamp>_<name>/migration.sql` and the timestamp is minted\n * during the run — so it lands on the STATE it exists to reach instead.\n *\n * Read the condition, never the evidence paths: for the migration step those name the\n * accepted lockfile, which predates the step, so landing on it would pass having verified\n * nothing.\n */\n // Resolved ONCE above, so its paths could join the batch; reading it again here would ask the\n // generation-step service the same question twice per resolution.\n const condition = generationStepConditions.get(task.taskRef)\n ?? await this.generationSteps.resolveGenerationStepLandedCondition(task);\n if (condition.kind === ApplicationBuildGenerationStepLandedKind.SCHEMA_PLAN_IN_SYNC) {\n const syncState = await this.generationSteps.readSchemaPlanSyncState();\n if (syncState === SchemaPlanSyncState.IN_SYNC) landed.add(task.taskRef);\n else if (syncState === SchemaPlanSyncState.UNANSWERABLE) unanswerable.add(task.taskRef);\n continue;\n }\n if (condition.paths.length === 0) continue;\n const committedPaths = await Promise.all(condition.paths.map((path) => committedTree.isCommitted(path)));\n if (committedPaths.every(Boolean)) landed.add(task.taskRef);\n continue;\n }\n const probes = resolveBuildTaskLandedProbes(task);\n if (probes.length === 0) {\n /*\n * A task that declares NO product cannot prove it landed — and that is a WORKFLOW gap, not a\n * gate. `application-creation-directive.md` asks the deciding question directly: if this\n * refuses, what does the operator do next? The answer here is \"declare what the task\n * produces\", which is authoring work — so it must MARK and let the loop continue, exactly as\n * an unapproved release travels with its advisory instead of stopping the build.\n *\n * It was a gate until 2026-09-12, and the cost is measured. Readiness is \"not landed\", so an\n * unprovable task is ready FOREVER and is permanently `ready[0]`: `dispatch-next` re-ran\n * `build-task-contact-schema` three times at roughly $7.50 a turn, and the loop guard below\n * then converted that into a permanent refusal at the same task. Both are stuck; neither is\n * honest about WHY. Against Wonder CRM's 42-task plan the two candidate fixes measure\n * 1 reachable (skip it, leave its dependents blocked) against 42 (run it once, mark it,\n * advance) — because every product-declaring task there sits behind one that declares none.\n *\n * So landing here means RAN, not PROVEN, and the difference is carried rather than hidden:\n * the ref goes into `unverifiableLandedTaskRefs`, which rides the dispatch plan to every\n * caller. Keyed on a COMPLETED durable run, never on the task's mere existence — a task\n * nobody has run has not landed by any reading, and admitting it would let the whole plan\n * report itself finished having done nothing.\n */\n const priorRun = await this.dispatch.findCompletedRunForBuildTask(task.taskRef);\n if (priorRun !== null) {\n landed.add(task.taskRef);\n unverifiable.add(task.taskRef);\n }\n continue;\n }\n const answered = await Promise.all(probes.map((probe) => this.isLandedProbeSatisfied(probe, committedTree)));\n if (answered.every(Boolean)) landed.add(task.taskRef);\n }\n return { landed, unverifiableLandedTaskRefs: [...unverifiable].sort(), unanswerableSchemaPlanTaskRefs: unanswerable };\n }\n\n /**\n * Which of a stuck task's probed paths hold its product in the WORKING TREE while failing at HEAD —\n * or `undefined` when the working tree does not satisfy the probes either.\n *\n * Explanation only, never landing: a task satisfied here is still NOT landed, because the worktree\n * is work in progress until it is committed. What this decides is which remedy the refusal names.\n * Asked only for a task that already ran and is stuck, so it costs nothing on the hot path.\n */\n private async resolveProducedButUncommittedPaths(task: BuildPlanTask): Promise<readonly string[] | undefined> {\n const probes = resolveBuildTaskLandedProbes(task);\n if (probes.length === 0) return undefined;\n const worktree = this.createWorktreeReader();\n const satisfied = await Promise.all(probes.map((probe) => this.isLandedProbeSatisfied(probe, worktree)));\n if (!satisfied.every(Boolean)) return undefined;\n const committedTree = this.createCommittedTreeReader();\n const paths = [...new Set(probes.flatMap(landedProbePaths))];\n const committed = await Promise.all(paths.map((path) => committedTree.isCommitted(path)));\n // A shell probe names no fixed path: the files that must be committed are the ones the RESOLVED\n // shell says compose the surface, so they come from its explanation (#1538).\n const shellUncommitted = (await Promise.all(probes.filter(isShellProbe).map((probe) => this.explainShellProbe(probe, committedTree))))\n .flatMap((explanation) => explanation.uncommittedPaths);\n return [...new Set([...paths.filter((_, index) => !committed[index]), ...shellUncommitted])].sort();\n }\n\n /** The working tree behind the same reader shape: a path \"is committed\" here when it exists on disk. Never throws. */\n private createWorktreeReader(): CommittedTreeReader {\n const texts = new Map<string, Promise<string | undefined>>();\n const readText = (path: string) => memoizeByPath(texts, path, () => readFile(join(this.companionContext.saasRoot, path), 'utf8').catch(() => undefined));\n return {\n isCommitted: async (path) => (await readText(path)) !== undefined,\n readText,\n // Reading the worktree spawns nothing, so there is no batch to win here.\n primeCommitted: async () => {},\n primeTexts: async () => {},\n shellWitness: this.memoizedShellWitness(),\n };\n }\n\n /** A fresh {@link CommittedTreeReader} for one landing resolution; never shared across resolutions. */\n private createCommittedTreeReader(): CommittedTreeReader {\n const committed = new Map<string, Promise<boolean>>();\n const texts = new Map<string, Promise<string | undefined>>();\n return {\n isCommitted: (path) => memoizeByPath(committed, path, () => this.git.isWorktreePathCommitted(path)),\n readText: (path) => memoizeByPath(texts, path, () => this.git.readCommittedText(path)),\n primeCommitted: async (paths) => {\n /*\n * One batched answer for the whole set, seeded into the SAME memo the per-path route fills.\n * Paths already resolved (or in flight) are left alone: their answer is the one this\n * resolution has been handing out, and replacing it mid-pass would let one landing decision\n * rest on two different readings of the tree.\n */\n const unanswered = [...new Set(paths)].filter((path) => !committed.has(path));\n if (unanswered.length === 0) return;\n const committedPaths = await this.git.selectCommittedPaths(unanswered);\n for (const path of unanswered) {\n if (!committed.has(path)) committed.set(path, Promise.resolve(committedPaths.has(path)));\n }\n },\n primeTexts: async (paths) => {\n // Same contract as `primeCommitted`: seed the memo `readText` fills, never replace an answer\n // this resolution has already handed out.\n const unread = [...new Set(paths)].filter((path) => !texts.has(path));\n if (unread.length === 0) return;\n const committedTexts = await this.git.readCommittedTexts(unread);\n for (const path of unread) {\n if (!texts.has(path)) texts.set(path, Promise.resolve(committedTexts.get(path)));\n }\n },\n shellWitness: this.memoizedShellWitness(),\n };\n }\n\n /**\n * Is one landed probe satisfied by the COMMITTED tree?\n *\n * Every answer is about committed bytes (`readCommittedText` returns nothing for an uncommitted or\n * half-edited path), so landing survives a restart, a fresh clone and a branch switch — git is the\n * accepted state, and two branches with different answers merge.\n *\n * A declaration is matched as a WHOLE WORD, not as a substring. `deal.schemas.ts` carries prose\n * naming its own build tasks, so a bare `includes` would find `pipelineStageId` inside a comment\n * that merely mentions it and report a task landed on its own documentation. Whole-word matching\n * still counts a mention in a comment — an AST question is the sound version and needs the\n * introspection subprocess — so this errs toward LANDED only for a file that names the symbol\n * without declaring it, and never for the scaffold shapes that produced #597, where the symbol is\n * absent entirely.\n */\n /** A once-per-reader memo of {@link resolveShellWitness}, so a landing resolution introspects at most once. */\n private memoizedShellWitness(): () => Promise<ShellWitness> {\n let pending: Promise<ShellWitness> | undefined;\n return () => (pending ??= this.resolveShellWitness());\n }\n\n /**\n * The resolved shell beside the placement plan (#1538): what each surface carries, by identity,\n * against what the plan PLACED there and what it DECLINED.\n *\n * Read through introspection because the identities exist only in the RESOLVED configuration: a\n * module's contribution merges into the shell at runtime, and the tree's text spells none of the\n * plan's refs. Every failure is an `answered: false` with its reason — never a throw, which would\n * abort the whole landing resolution for one surface, and never an empty \"carries nothing\", which\n * would read as a real no.\n */\n private async resolveShellWitness(): Promise<ShellWitness> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const authored = (exports as unknown as Record<string, unknown>).placementPlanSpecification;\n if (authored === undefined || authored === null) {\n return { answered: false, reason: 'The application has no placement plan, so nothing says what its shell should carry.' };\n }\n const plan = PlacementPlanSchema.safeParse(authored);\n if (!plan.success) {\n return { answered: false, reason: `The placement plan does not satisfy its schema: ${plan.error.issues.slice(0, 2).map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ')}` };\n }\n const serviceKey = this.introspection.describeCatalog().defaultFrontendServiceKey;\n if (!serviceKey) {\n return { answered: false, reason: 'The application declares no SaaS frontend to read its shell from.' };\n }\n let shell: AppShellPlacementContentResult;\n try {\n const result = await this.introspection.requestInfo({ serviceKey, behavior: 'app-shell-placement-content' });\n if (!result.success) return { answered: false, reason: `The shell could not be read: ${result.error.message}` };\n shell = result.data as AppShellPlacementContentResult;\n } catch (error) {\n return { answered: false, reason: `The shell could not be read: ${describeCaughtError(error)}` };\n }\n\n const carried = new Map<PlacementSurface, Set<string>>();\n const contributingPaths = new Map<PlacementSurface, string[]>();\n for (const row of shell.surfaces) {\n const identities = new Set<string>();\n for (const launcher of row.launchers) {\n const identity = launcherShellIdentity(launcher);\n if (identity !== undefined) identities.add(identity);\n }\n for (const destinationRef of row.destinationRefs) identities.add(settingsDestinationShellIdentity(destinationRef));\n carried.set(row.surface, identities);\n contributingPaths.set(row.surface, [shellSurfaceConfigFile(row.surface), ...row.contributingModuleIds.map(shellModuleContributionFile)]);\n }\n const expectations = derivePlacementPlanShellExpectations(plan.data);\n const placed = new Map([...expectations.placed].map(([surface, entries]) => [surface, entries.map((entry) => entry.shellIdentity)] as const));\n const declined = expectations.declined.map((entry) => entry.shellIdentity);\n return { answered: true, carried, contributingPaths, placed, declined };\n }\n\n /**\n * Why a shell probe is or is not satisfied (#1538) — the answer landing uses, and the detail the build\n * record and the stuck classification report. One function, so the three cannot disagree.\n */\n private async explainShellProbe(\n probe: ShellLandedProbe,\n tree: CommittedTreeReader,\n ): Promise<ShellProbeExplanation> {\n const witness = await tree.shellWitness();\n if (!witness.answered) {\n return { satisfied: false, unanswerable: witness.reason, missing: [], declinedButPresent: [], uncommittedPaths: [] };\n }\n const uncommittedOf = async (surface: PlacementSurface): Promise<string[]> => {\n const paths = witness.contributingPaths.get(surface) ?? [];\n const committed = await Promise.all(paths.map((path) => tree.isCommitted(path)));\n return paths.filter((_, index) => !committed[index]);\n };\n if (probe.kind === BuildPlanTaskLandedProbeKind.SHELL_SURFACE_CARRIES_PLAN) {\n const carried = witness.carried.get(probe.surface) ?? new Set<string>();\n const missing = (witness.placed.get(probe.surface) ?? []).filter((identity) => !carried.has(identity));\n const declinedButPresent = witness.declined.filter((identity) => carried.has(identity));\n const uncommittedPaths = await uncommittedOf(probe.surface);\n return {\n satisfied: missing.length === 0 && declinedButPresent.length === 0 && uncommittedPaths.length === 0,\n missing,\n declinedButPresent,\n uncommittedPaths,\n };\n }\n // SHELL_CARRIES_A_PLACEMENT: some surface carries some subject the plan placed on it, from files at HEAD.\n const allUncommitted: string[] = [];\n for (const [surface, identities] of witness.placed) {\n const carried = witness.carried.get(surface) ?? new Set<string>();\n if (!identities.some((identity) => carried.has(identity))) continue;\n const uncommittedPaths = await uncommittedOf(surface);\n if (uncommittedPaths.length === 0) return { satisfied: true, missing: [], declinedButPresent: [], uncommittedPaths: [] };\n allUncommitted.push(...uncommittedPaths);\n }\n return {\n satisfied: false,\n missing: allUncommitted.length > 0 ? [] : [...witness.placed.values()].flat(),\n declinedButPresent: [],\n uncommittedPaths: [...new Set(allUncommitted)],\n };\n }\n\n private async isLandedProbeSatisfied(probe: BuildPlanTaskLandedProbe, tree: CommittedTreeReader): Promise<boolean> {\n switch (probe.kind) {\n case BuildPlanTaskLandedProbeKind.COMMITTED_FILE:\n return tree.isCommitted(probe.path);\n case BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES: {\n const text = await tree.readText(probe.path);\n if (text === undefined) return false;\n /*\n * The probe's SITE says whether the declarations are a set or a relation, and where a relation\n * must sit (#1539). A relation read as a set reports a missing edge as landed (#1273 — six of\n * eleven relationship tasks).\n */\n return declarationsAppearAt(text, probe.declarations, probe.site);\n }\n case BuildPlanTaskLandedProbeKind.ANY_COMMITTED_FILE_DECLARES: {\n const texts = await Promise.all(probe.paths.map((path) => tree.readText(path)));\n return texts.some((text) => text !== undefined && declarationsAppearAt(text, probe.declarations, probe.site));\n }\n case BuildPlanTaskLandedProbeKind.SHELL_SURFACE_CARRIES_PLAN:\n case BuildPlanTaskLandedProbeKind.SHELL_CARRIES_A_PLACEMENT:\n return (await this.explainShellProbe(probe, tree)).satisfied;\n default: {\n const unhandled: never = probe;\n throw new Error(`Unhandled build-plan landed probe ${JSON.stringify(unhandled)}.`);\n }\n }\n }\n\n /**\n * Whether the application has AUTHORED a build plan at all — the one absence test every read of the plan shares.\n *\n * A plan legitimately does not exist until `build-decompose` has run, so every NEW application starts in this\n * state, and \"no plan yet\" is a true answer rather than a failure. It is tested DIRECTLY, never by catching\n * `ApplicationBuildPlanUnavailableError`, because `readBuildPlan` throws that same class for a plan that EXISTS\n * and fails validation — flattening an invalid plan into \"nothing there\" would be \"could not look\" wearing\n * \"nothing there\".\n *\n * Two reads use it: the board's task list, which had it inline, and the next-task projection, which did not —\n * so on every new application the board's dispatch-plan list answered 500 CONFIGURATION, logged at high\n * severity with an alert, on every poll (measured 2026-09-21, the first minutes of the end-to-end run #1273).\n */\n public async hasAuthoredBuildPlan(): Promise<boolean> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const authored = (exports as unknown as Record<string, unknown>).buildPlanSpecification;\n return authored !== undefined && authored !== null;\n }\n\n /** The application's accepted build plan, validated before anything is selected from it. */\n private async readBuildPlan(): ReturnType<typeof BuildPlanTaskGraphSchema.parseAsync> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const authored = (exports as unknown as Record<string, unknown>).buildPlanSpecification;\n if (authored === undefined || authored === null) {\n throw new ApplicationBuildPlanUnavailableError(\n 'This application has no build plan. Run the build-decompose playbook first.',\n );\n }\n const parsed = BuildPlanTaskGraphSchema.safeParse(authored);\n if (!parsed.success) {\n throw new ApplicationBuildPlanUnavailableError(\n `The application's build plan does not satisfy its schema: ${parsed.error.issues.slice(0, 3).map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ')}`,\n );\n }\n // Semantic validation too, not just the shape: a graph whose ordering is unsound would let\n // `selectReadyBuildPlanTasks` report a task ready before the work it depends on can have landed.\n //\n // Gated on the FLOOR codes, not on `findings.length > 0` as it was until 2026-09-09. That older\n // reading made this gate disagree with the landing gate about the same graph: an authoring\n // warning — a resource stage whose predecessor is absent from the plan, which is legitimate when\n // the tree already carries that stage — landed happily at the semantic authority and then made\n // the whole plan permanently undispatchable HERE, with the refusal naming a warning. One\n // classification, named once in `_core` beside the codes.\n const findings = validateBuildPlanTaskGraph(parsed.data);\n const blocking = findings.filter((finding) => BUILD_PLAN_TASK_GRAPH_HARD_FLOOR_CODES.includes(finding.code));\n if (blocking.length > 0) {\n throw new ApplicationBuildPlanUnavailableError(\n `The application's build plan fails semantic validation: ${blocking.slice(0, 3).map((finding) => finding.message).join('; ')}`,\n );\n }\n return this.withHostDerivedDocumentationPublicationStep(await this.withHostDerivedMigrationStep(parsed.data));\n }\n\n /**\n * The build plan as the DISPATCH HOST reads it: the authored graph, plus the `database-migrations`\n * generation step whenever the application owes one and the plan does not author it (#1027).\n *\n * ## Why the host derives it rather than trusting the plan\n *\n * `bottom_up.build-decompose`'s method requires that step for every PostgreSQL-backed application,\n * and Wonder CRM's regenerated plan (2026-09-13) carried none — while all six of its schema tasks\n * could only write `shared-lib/`, never `backend-api/migrations/`. Each accepted schema change would\n * have left the model ahead of the accepted plan, and the application's boot gate refuses a missing\n * column (`postgresql_table_schema_mismatch`), so the lane would have taken its own application down.\n *\n * The model was given the rule and never the fact the rule keys on: the brief's workspace truth does\n * not state the database engine, and the method's instruction to `rg` the infra config is a command a\n * generation call cannot run. The validator could not catch it either — it receives the graph alone.\n * And no judgement is involved: whether a migration step is owed is a TOTAL function of two facts the\n * host already holds (`derive-before-you-ask.md`, \"could a function have produced my answer?\").\n *\n * ## The population, and the shape\n *\n * - Owed, per `assessSchemaPlanObligation`, in two cases that differ in whether a schema stage matters:\n * - an ACCEPTED plan and at least one SCHEMA stage — schema changes are what create drift against it;\n * - a declared PostgreSQL store with NO plan yet (#1144), with or without a schema stage — the initial\n * migration is owed by the ENGINE's resources alone, and the backend cannot boot before it exists.\n * This case was invisible while the lockfile was the only fact read: the foundation playbook was\n * believed to write the baseline and never did.\n * An UNDETERMINED store with a schema stage derives the step too, so the obligation stays visible: its\n * sync state is unanswerable, so it is passed over while other work is ready, and when nothing is its\n * refusal names why the store could not be read. A MongoDB-backed application is never offered it.\n * - An AUTHORED `database-migrations` step always wins. The derivation fills an omission; it never\n * second-guesses a plan that states its own ordering.\n * - PREPENDED, with NO prerequisites. Its landing condition is `SCHEMA_PLAN_IN_SYNC`, so it is landed\n * whenever the model and the accepted plan agree and becomes the FIRST ready task the moment an\n * accepted schema change creates drift — which is when it has to run, before anything restarts the\n * backend against a table it cannot build. The method's \"after the last schema stage\" was rejected\n * as the ordering: a schema task the loop guard skips forever (a stuck task never lands) would hold\n * the migration step behind it forever too.\n * - The obligation is read only after an authored step is ruled out, and costs a `stat` whenever a plan\n * is accepted; the authored infra config is loaded only for an application with no lockfile.\n *\n * ## What it costs\n *\n * `SCHEMA_PLAN_IN_SYNC` runs `wildo db diff --check` on every landed resolution, so every build-plan\n * read for such an application now asks the schema planner. Only an IN_SYNC answer lands the step. A\n * DRIFTED answer puts it first. An UNANSWERABLE one (any answer that is neither pass nor drift; the\n * causes are listed on `SchemaPlanSyncState`) leaves it un-landed but PASSED OVER while other tasks are ready, because running it then only throws.\n * This said an unanswerable check \"reads as NOT in sync, the step is offered, and running it over a\n * clean plan generates nothing\" — true of a clean plan, false of an unanswerable one, where offering\n * it first made every dispatch fail and stopped the whole plan (review, 2026-09-13).\n */\n /**\n * A plan that authors documentation CHAPTERS owes a step that PUBLISHES them.\n *\n * Derived rather than authored, for the reason {@link withHostDerivedMigrationStep} is: the\n * obligation follows from what the plan CONTAINS, not from a decision the plan makes. An\n * application with a documentation chapter owes a portal; one without owes nothing.\n *\n * Measured on the first end-to-end journey run (#1273). The plan carried SIX\n * `DOCUMENTATION_CHAPTER` tasks and no publication step, so the chapters were authored and nothing\n * rendered them. The cost was not only an unbuilt portal: `technical-doc/src/pages/search.tsx`\n * imports the search index the publish writes, so that package could not typecheck at all, and\n * `check:technical-doc-typecheck` stayed red for the whole build — failing a documentation task on\n * a red it did not cause, at $19.33. Publishing by hand made 87 outputs and turned the check green\n * in one command.\n *\n * ## The prerequisites are the whole design\n *\n * Unlike the migration step, this one cannot run with `prerequisiteTaskRefs: []`:\n *\n * - **every chapter task**, or it renders a portal missing the chapters still being written;\n * - **`i18n-labels`**, and that one is not a nicety. Publication resolves the application's\n * organization-role documentation and REFUSES without the primary-locale label — *\"requires\n * primary-locale label 'roles.ORG_ADMIN.label'; generate the application's role labels before\n * publishing documentation\"*. Run before labels, it fails on exactly that, which is how the\n * first hand-run of this pipeline failed.\n *\n * Both are read off the graph, so a plan with no labels step simply contributes no such edge\n * rather than acquiring a dangling one.\n */\n private withHostDerivedDocumentationPublicationStep(\n graph: Awaited<ReturnType<typeof BuildPlanTaskGraphSchema.parseAsync>>,\n ): Awaited<ReturnType<typeof BuildPlanTaskGraphSchema.parseAsync>> {\n const authorsPublicationStep = graph.tasks.some((task) => task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP\n && task.target.generationStepRef === ApplicationBuildGenerationStep.DOCUMENTATION_PUBLICATION);\n if (authorsPublicationStep) return graph;\n\n const chapterTaskRefs = graph.tasks\n .filter((task) => (task.produces ?? []).some((product) => product.kind === BuildPlanTaskProductKind.DOCUMENTATION_CHAPTER))\n .map((task) => task.taskRef);\n if (chapterTaskRefs.length === 0) return graph;\n\n if (graph.tasks.some((task) => task.taskRef === HOST_DERIVED_DOCUMENTATION_PUBLICATION_TASK_REF)) {\n // Same refusal as the migration step's: deriving would duplicate a ref, which the graph schema\n // rejects — so say so rather than silently dropping the obligation.\n this.logger.warn?.(\n `The build plan owes a documentation-publication step, but \"${HOST_DERIVED_DOCUMENTATION_PUBLICATION_TASK_REF}\" already names another task; not deriving it.`,\n );\n return graph;\n }\n\n const labelStepRefs = graph.tasks\n .filter((task) => task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP\n && task.target.generationStepRef === ApplicationBuildGenerationStep.I18N_LABELS)\n .map((task) => task.taskRef);\n\n return BuildPlanTaskGraphSchema.parse({\n ...graph,\n tasks: [\n ...graph.tasks,\n {\n taskRef: HOST_DERIVED_DOCUMENTATION_PUBLICATION_TASK_REF,\n objective: 'Publish the application\\'s customer documentation portal, so the chapters this build authored are '\n + 'something a reader can reach. Derived by the dispatch host because the build plan authors documentation '\n + 'chapters and does not author the step that renders them.',\n target: {\n kind: BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP,\n generationStepRef: ApplicationBuildGenerationStep.DOCUMENTATION_PUBLICATION,\n },\n produces: [],\n functionalTopic: MetaWorkflow_FunctionalTopic.ASSEMBLE_VERIFY_AND_ITERATE,\n skillRefs: ['application-consumer-documentation-authoring'],\n prerequisiteTaskRefs: [...chapterTaskRefs, ...labelStepRefs],\n servesRefs: [],\n },\n ],\n });\n }\n\n private async withHostDerivedMigrationStep(\n graph: Awaited<ReturnType<typeof BuildPlanTaskGraphSchema.parseAsync>>,\n ): Promise<Awaited<ReturnType<typeof BuildPlanTaskGraphSchema.parseAsync>>> {\n const authorsMigrationStep = graph.tasks.some((task) => task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP\n && task.target.generationStepRef === ApplicationBuildGenerationStep.DATABASE_MIGRATIONS);\n if (authorsMigrationStep) return graph;\n const hasSchemaStage = graph.tasks.some((task) => task.target?.kind === BuildPlanTaskTargetKind.RESOURCE_STAGE\n && task.target.stage === BuildPlanResourceStage.SCHEMA);\n const { obligation } = await this.generationSteps.assessSchemaPlanObligation();\n const owed = obligation === ApplicationSchemaPlanObligation.BASELINE_OWED\n || (hasSchemaStage && (obligation === ApplicationSchemaPlanObligation.ACCEPTED_PLAN || obligation === ApplicationSchemaPlanObligation.UNDETERMINED));\n if (!owed) return graph;\n if (graph.tasks.some((task) => task.taskRef === HOST_DERIVED_DATABASE_MIGRATIONS_TASK_REF)) {\n // The ref is taken by a task that is NOT a migration step. Deriving would duplicate a ref, which\n // the graph schema refuses — so say so rather than silently dropping the obligation.\n this.logger.warn?.(\n `The build plan owes a database-migrations step, but \"${HOST_DERIVED_DATABASE_MIGRATIONS_TASK_REF}\" already names another task; not deriving it.`,\n );\n return graph;\n }\n return BuildPlanTaskGraphSchema.parse({\n ...graph,\n tasks: [\n {\n taskRef: HOST_DERIVED_DATABASE_MIGRATIONS_TASK_REF,\n objective: (obligation === ApplicationSchemaPlanObligation.BASELINE_OWED\n ? 'Generate the initial migration and its schema-plan baseline, so the tables this PostgreSQL application declares exist before its backend boots. '\n : 'Migrate the schema drift that accepted schema-stage changes created, so the application can still boot. ')\n + 'Derived by the dispatch host because the build plan owes this step and does not author it.',\n target: {\n kind: BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP,\n generationStepRef: ApplicationBuildGenerationStep.DATABASE_MIGRATIONS,\n },\n produces: [],\n functionalTopic: MetaWorkflow_FunctionalTopic.MODEL_DOMAIN_GRAPH,\n skillRefs: ['application-database-migrations'],\n prerequisiteTaskRefs: [],\n servesRefs: [],\n },\n ...graph.tasks,\n ],\n });\n }\n\n /**\n * What the run is allowed to see — the PUSH floor of the dispatch lane's context (issue #253).\n *\n * Widened 2026-09-02 from \"the task itself and nothing else yet\" to the lean mandatory core the\n * epic's re-analysis decided, and deliberately no further: everything an agent might need beyond\n * its target's blast radius is the PULL door's job (`wildo context …`, issue #252), which the\n * `live-queries` source below points at. Anticipating everything here would be the planner trap\n * (#254) re-entering through the push door. Everything is model-safe by construction — the\n * application's own accepted build plan, its own live registry, its own domain plan — and the\n * contract's composer re-asserts `SAFE_FOR_MODEL` on every source regardless.\n *\n * ## Failure posture: best-effort on the derived sources, deliberately\n *\n * The playbook lane's workspace-truth section fails CLOSED, because a tool-less planner with no\n * workspace truth invents module ids. A CODING agent is the opposite case on both counts: it has\n * tools (it can read the tree, and the door), so a missing derived source degrades speed rather\n * than truth — while refusing the dispatch because a subprocess hiccuped would block the build on\n * context the run could recover for itself. So: the TASK is always present, the derived sources\n * are added when their reads succeed, and a failed read is a WARN naming what was omitted.\n *\n * ## No new cache, verified rather than assumed\n *\n * The re-analysis asked for the introspection read to be cached across a 55-task plan. It already\n * is: `CompanionIntrospectionService.requestInfo` carries its own source-state derivation cache,\n * keyed on the observed workspace state — asking again after nothing changed is a cache hit, and\n * a landed task invalidates it by changing the sources it hashes. Adding a second cache here would\n * be a copy that can only ever disagree.\n */\n\n private async buildContextSources(task: BuildPlanTask, totalTasks: number): Promise<readonly BuildTaskContextSource[]> {\n const sources: BuildTaskContextSource[] = [buildTaskSelfDescriptionContextSource(task, totalTasks)];\n\n /*\n * WHAT THE LAST ATTEMPT RAN INTO (#1536). A retry used to be byte-identical to the attempt that\n * failed, which is the definition of the loop an attempt budget exists to stop: the one input the\n * next attempt lacks is how the previous one failed. Shown with the re-arm note when there is one,\n * because \"it failed like this, and this was fixed\" is exactly what a retry needs. Best-effort.\n */\n try {\n const [latest] = await this.dispatch.listAttributableFailedRunsForBuildTask(task.taskRef, undefined, { includeRearmed: true });\n if (latest !== undefined) sources.push(previousAttemptContextSource(latest));\n } catch (error) {\n this.logDebug('Previous-attempt source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n\n /*\n * The DOOR MENU — tier-0 of the pull half: the live-query ids and the two commands that expand\n * them. Ids only, not descriptions: `wildo context list` IS the descriptions, one command away,\n * and rendering ~27 descriptions into every dispatch prompt would spend the budget this source\n * exists to save. Read from the same catalog the CLI menu serves, so it cannot drift from what\n * the companion actually answers.\n */\n const catalog = this.introspection.describeCatalog();\n sources.push({\n sourceRef: 'application-creation:context/live-queries',\n originRef: 'application-creation:origin/dev-companion',\n content: {\n guidance: 'Live application state is one shell command away — prefer asking over re-deriving from the tree. '\n + '`wildo context list` prints the menu with descriptions; `wildo context info <behaviorId>` runs one query; '\n + '`wildo context journey` shows the creation journey; `wildo context coherence` the cross-family coherence report; '\n + '`wildo context elements map|get|related` retrieves the product decisions already made (ICPs, requirements, phases…) '\n + 'a subset at a time — map first, then get the refs your task needs.',\n behaviorIds: catalog.behaviors.map((behavior) => behavior.behaviorId),\n },\n });\n\n const moduleRef = task.target && 'moduleRef' in task.target ? task.target.moduleRef : undefined;\n const resourceRef = task.target && 'resourceRef' in task.target ? task.target.resourceRef : undefined;\n\n // WORKSPACE TRUTH, sliced to the target: the target module's real resources and present schema\n // fields, plus the exact list of every module id (counts stay exact — a slice that hid the\n // population would under-report, and an agent that invents a module id dispatches a no-op).\n try {\n const backendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => !service.frontendType)?.[0];\n if (backendServiceKey) {\n const result = await this.introspection.requestInfo({ serviceKey: backendServiceKey, behavior: 'resources-registry' });\n if (result.success) {\n const snapshot = result.data as {\n modules?: ReadonlyArray<{ moduleId: string; resourceTypes: readonly string[] }>;\n resourceSchemaFields?: Record<string, readonly string[]>;\n };\n const modules = snapshot.modules ?? [];\n const targetModule = moduleRef === undefined\n ? undefined\n : modules.find((sharedModule) => slugifyRegistryIdentifier(sharedModule.moduleId) === moduleRef);\n sources.push({\n sourceRef: 'application-creation:context/workspace-truth',\n originRef: 'application-creation:origin/resources-registry-introspection',\n content: {\n allModuleIds: modules.map((sharedModule) => sharedModule.moduleId),\n ...(targetModule\n ? {\n targetModule: {\n moduleId: targetModule.moduleId,\n resources: targetModule.resourceTypes.map((resourceType) => ({\n resourceType,\n slugRef: slugifyRegistryIdentifier(resourceType),\n presentSchemaFields: snapshot.resourceSchemaFields?.[resourceType] ?? [],\n })),\n },\n }\n : {}),\n note: 'A resource listed here already EXISTS as a registered skeleton — its task is enrichment, not creation. '\n + 'A domain-plan resource NOT listed here does not exist yet. Full registry: `wildo context info resources-registry`.',\n },\n });\n } else {\n this.logDebug('Workspace-truth source omitted from the dispatch context (introspection failed)', { taskRef: task.taskRef });\n }\n }\n } catch (error) {\n this.logger.warn('Workspace-truth source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n\n /*\n * THE TARGET RESOURCE AND WHAT IT IS CONNECTED TO (#1437).\n *\n * The module slice above answers \"what else is in this module\", which is neither what a\n * resource-targeted task needs nor all of it: it OVER-supplies the siblings the task never\n * touches, and UNDER-supplies the engine resources the target's own foreign keys point at —\n * `users`, `organizations`, the scope anchors, which are the most load-bearing edges a resource\n * has and are in no application module at all. It also carries field NAMES only: no\n * relationships, no operations, no specification prose.\n *\n * One hop from the target is the honest neighbourhood. Two hops reaches most of the application\n * through the scope anchors, which is the whole-registry answer with extra steps.\n *\n * Best-effort like every source here, and it costs a derivation the first time (~35 s) that\n * every later task on this application reads from cache. A dispatch runs for minutes and spends\n * real money; paying that once to stop the agent guessing at a relationship is the cheaper half.\n */\n if (resourceRef !== undefined) {\n try {\n const backendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => !service.frontendType)?.[0];\n if (backendServiceKey) {\n const { index, freshness } = await readWorkspaceElements(this.introspection, backendServiceKey);\n /*\n * The plan addresses resources by SLUG and the registry by `resourceType`; they differ\n * (`todoList` vs `todo-list`). Resolved by slugifying the index's own keys rather than by\n * un-slugifying the ref, because the slug is lossy and the registry is the authority on\n * which resources exist.\n */\n const resourceType = [...index.resources.keys()].find((candidate) => slugifyRegistryIdentifier(candidate) === resourceRef);\n const related = resourceType === undefined ? undefined : relatedWorkspaceResources(index, resourceType);\n if (related) {\n sources.push({\n sourceRef: 'application-creation:context/target-resource-neighbourhood',\n originRef: 'application-creation:origin/application-domain-model',\n content: {\n freshness: describeWorkspaceFreshness(freshness),\n target: resourceType,\n edges: related.edges,\n resources: related.resources,\n ...(related.unresolved.length > 0 ? { unresolvedNeighbours: related.unresolved } : {}),\n note: 'The target resource as it EXISTS today, with its fields, operations and relationships, plus the '\n + 'resources one hop away. Direction matters: `foreignKeyHolderResourceType` says which side carries the key. '\n + 'Ask for more with `wildo context workspace get <resourceType>` or `wildo context workspace related <resourceType>`.',\n },\n });\n } else {\n // Said rather than omitted: a target the registry does not carry is a CREATION task, and\n // an absent section would read as a failed read.\n this.logDebug('Target resource is not registered yet — no neighbourhood to supply', { taskRef: task.taskRef, resourceRef });\n }\n }\n } catch (error) {\n this.logger.warn('Target-resource neighbourhood omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n }\n\n // THE DOMAIN-PLAN SLICE for the target: WHAT this task's objective enriches toward, in the\n // application's own accepted words — the module semantics and, for a relationship task, the\n // relationship drafts touching the target. Absent plan (older app, or foundation not run) is\n // simply absent; nothing here invents a fallback.\n try {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const domainPlan = (exports as { domainPlanSpecification?: unknown }).domainPlanSpecification as {\n modules?: ReadonlyArray<{ relatedModuleId: string; mainResources?: readonly string[]; supportingResources?: readonly string[] }>;\n relationships?: ReadonlyArray<{ relationshipRef: string; sourceResourceRef: string; targetResourceRef: string }>;\n } | undefined;\n const planModules = domainPlan?.modules ?? [];\n const targetPlanModule = moduleRef === undefined\n ? undefined\n : planModules.find((planModule) => slugifyRegistryIdentifier(planModule.relatedModuleId) === moduleRef);\n if (targetPlanModule) {\n const moduleResourceSlugs = new Set(\n [...(targetPlanModule.mainResources ?? []), ...(targetPlanModule.supportingResources ?? [])]\n .map((resourceType) => slugifyRegistryIdentifier(resourceType)),\n );\n sources.push({\n sourceRef: 'application-creation:context/domain-plan-slice',\n originRef: 'application-creation:origin/domain-plan',\n content: {\n targetModule: targetPlanModule,\n ...(resourceRef !== undefined ? { targetResourceRef: resourceRef } : {}),\n relationshipsTouchingModule: (domainPlan?.relationships ?? []).filter((relationship) =>\n moduleResourceSlugs.has(slugifyRegistryIdentifier(relationship.sourceResourceRef))\n || moduleResourceSlugs.has(slugifyRegistryIdentifier(relationship.targetResourceRef))),\n },\n });\n }\n } catch (error) {\n this.logger.warn('Domain-plan slice omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n\n // WHAT THIS TASK IS FOR (#1419): the full text of every element its `servesRefs` names — the\n // requirements, phases, success criteria and constraints it answers to — and a map of the other\n // tasks building the same module. Without it the agent knew WHAT to build and not what it was for:\n // no acceptance criterion, no served success criterion, no constraint. A deterministic derivation\n // through the one decided-element index (#1416), so it sits inside the push floor of decision\n // #251 — nothing here chooses context.\n try {\n const servedSource = buildServedElementsContextSource(task, await loadSpecificationsCompanionExports(this.companionContext));\n if (servedSource !== null) sources.push(servedSource);\n } catch (error) {\n this.logger.warn('Served-elements source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n\n // WHAT A SHELL TASK MUST MAKE THE SHELL CARRY (#1554): the placement plan's decisions for its\n // surface, in the identities the landing probe compares. Same derivation as the probe's witness.\n if (task.target.kind === BuildPlanTaskTargetKind.SHELL_PLACEMENT) {\n try {\n sources.push(buildShellPlacementPlanContextSource(task.target.surface, await loadSpecificationsCompanionExports(this.companionContext)));\n } catch (error) {\n this.logger.warn('Shell-placement-plan source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n }\n\n return sources;\n }\n}\n\n/**\n * The previous FAILED attempt of a task, as a retry is shown it (#1536): its disposition, each check it\n * failed with the tail of that check's output, the agent's own closing words, and the re-arm note when\n * an operator released it. Read off the durable row; nothing new is recorded to produce it.\n */\nexport function previousAttemptContextSource(run: {\n readonly taskId: string;\n readonly settledAt?: string;\n readonly memory: unknown;\n readonly output: Record<string, unknown>;\n}): BuildTaskContextSource {\n const tail = (value: unknown): string | undefined =>\n typeof value === 'string' && value.length > 0 ? value.slice(-PREVIOUS_ATTEMPT_OUTPUT_TAIL_CHARS) : undefined;\n const verification = Array.isArray(run.output.verification) ? run.output.verification : [];\n const failedChecks = verification\n .filter((entry): entry is { checkRef?: unknown; outcome?: Record<string, unknown> } => typeof entry === 'object' && entry !== null)\n .filter((entry) => entry.outcome?.success === false)\n .map((entry) => ({\n checkRef: String(entry.checkRef ?? ''),\n ...(tail(entry.outcome?.message) ? { message: tail(entry.outcome?.message) } : {}),\n ...(tail(entry.outcome?.stdoutTail) ? { stdoutTail: tail(entry.outcome?.stdoutTail) } : {}),\n ...(tail(entry.outcome?.stderrTail) ? { stderrTail: tail(entry.outcome?.stderrTail) } : {}),\n }));\n const rearm = readBuildTaskRearm(run.memory);\n const failureMessage = (run.output.failure as { message?: unknown } | undefined)?.message;\n /*\n * Three different histories, told apart (#1581, second review A5). Telling the agent \"repeat the same\n * approach and it fails the same way\" is right only when the approach WAS judged: a turn the host took\n * away, or a dispatch refused before anything ran, judged nothing about the work.\n */\n const guidance = run.output.failureAttribution === CodingRunFailureAttribution.HOST\n ? 'The previous attempt of this task was stopped by the HOST, not by its work: the turn was taken away '\n + '(a provider limit, a killed process, an operator cancel) or the result could not be recorded. Nothing '\n + 'about the approach was judged; start the work normally, and read what it had reached if that helps.'\n : run.output.disposition === undefined && typeof failureMessage === 'string'\n ? 'A previous dispatch of this task was refused before it started, so nothing ran and nothing was judged. '\n + 'The refusal is below for context; it is not a verdict on any approach.'\n : 'This task was attempted before and FAILED. Read why before starting: repeating the same approach '\n + 'will fail the same way. Fix what the failure names; do not work around a check.';\n return {\n sourceRef: 'application-creation:context/previous-attempt',\n originRef: 'application-creation:origin/dev-companion',\n content: {\n guidance,\n runTaskId: run.taskId,\n ...(typeof run.output.failureAttribution === 'string' ? { failureAttribution: run.output.failureAttribution } : {}),\n ...(typeof failureMessage === 'string' ? { failure: failureMessage } : {}),\n ...(run.settledAt ? { failedAt: run.settledAt } : {}),\n ...(typeof run.output.disposition === 'string' ? { disposition: run.output.disposition } : {}),\n failedChecks,\n ...(tail(run.output.agentOutputTail) ? { agentClosingWords: tail(run.output.agentOutputTail) } : {}),\n ...(rearm ? { rearmedBecause: { reason: rearm.reason, note: rearm.note } } : {}),\n },\n };\n}\n\n/**\n * The task's own DETERMINISTIC self-description — no introspection, no LLM.\n *\n * The first (and mandatory) context source of every coding task: what the task is, what it must\n * produce, and how its landing will be judged. A pure function of the task, so what the agent is told\n * about its own accountability can be pinned without composing a dispatch.\n *\n * (It was first extracted so a RESUME could rebuild a contract cheaply; that caller went when a parked\n * run's resume moved onto its actor execution in 02e241ae, which carries the context itself.)\n */\nexport function buildTaskSelfDescriptionContextSource(task: BuildPlanTask, totalTasks: number): BuildTaskContextSource {\n return {\n sourceRef: 'application-creation:context/build-task',\n originRef: 'application-creation:origin/build-plan',\n content: {\n taskRef: task.taskRef,\n objective: task.objective,\n target: task.target,\n /*\n * WHAT THIS RUN IS ACCOUNTABLE FOR, and the agent has to be told.\n *\n * Landing is decided from `produces` (#597), so an agent that is not shown the artifacts it\n * must deliver can do excellent work on the objective's prose and still leave the task\n * unlanded — the host would re-offer it forever, and the cause would be invisible to\n * everyone. Handing it over costs nothing and is the same shape as `target`: a semantic\n * declaration the model reads, never a path it could author.\n */\n produces: task.produces,\n /*\n * HOW LANDING IS DECIDED, exactly (#1554). `produces` is the task's declaration; these are the\n * probes the host evaluates after the run, resolved by the same function landing calls. They\n * differ where the declaration is not what the tree spells: a SHELL_PLACEMENT task's refs name\n * the placement plan's decisions and appear in no file, so its probe asks what the composed\n * shell CARRIES (the `shell-placement-plan` source spells that out). An agent shown only\n * `produces` authored those refs as text, got one of two right by guessing from the objective,\n * and the run finished `completed_unlanded`.\n */\n landedWhen: resolveBuildTaskLandedProbes(task),\n functionalTopic: task.functionalTopic,\n skillRefs: task.skillRefs,\n prerequisiteTaskRefs: task.prerequisiteTaskRefs,\n positionInPlan: `one of ${totalTasks} tasks in the application's accepted build plan`,\n },\n };\n}\n\n/** One plan decision, with the identity the shell probe compares it by. */\nexport interface PlacementPlanShellExpectation {\n readonly decision: PlacementPlan['decisions'][number];\n readonly shellIdentity: string;\n}\n\n/** What a placement plan asks of the shell, decision by decision. */\nexport interface PlacementPlanShellExpectations {\n /** What the plan PLACED on each surface. */\n readonly placed: ReadonlyMap<PlacementSurface, readonly PlacementPlanShellExpectation[]>;\n /** What the plan DECLINED — to be carried by no surface. */\n readonly declined: readonly PlacementPlanShellExpectation[];\n}\n\n/**\n * The PLAN half of the shell witness (#1538), as a pure function of the plan.\n *\n * Two readers need it and must not disagree: the landing probe, which compares it with what the\n * composed shell carries, and the coding agent, which has to be told it BEFORE the run (#1554). One\n * derivation is what makes \"the agent was shown the criterion it is judged by\" true by construction\n * rather than by two loops agreeing.\n */\nexport function derivePlacementPlanShellExpectations(plan: PlacementPlan): PlacementPlanShellExpectations {\n const placed = new Map<PlacementSurface, PlacementPlanShellExpectation[]>();\n const declined: PlacementPlanShellExpectation[] = [];\n for (const decision of plan.decisions) {\n const entry = { decision, shellIdentity: placementSubjectShellIdentity(decision.subject) };\n if (decision.disposition === PlacementDisposition.DECLINED) {\n declined.push(entry);\n continue;\n }\n placed.set(decision.address.surface, [...(placed.get(decision.address.surface) ?? []), entry]);\n }\n return { placed, declined };\n}\n\n/**\n * A SHELL_PLACEMENT task's landing criterion, spelled for the agent that has to meet it (#1554).\n *\n * The task's `produces` names the plan's decision refs, which no file spells; the probe asks whether\n * the composed surface carries every subject the plan PLACED there and none it DECLINED, from\n * committed files. So the agent is handed the decisions themselves — subject, address and rationale —\n * each with the identity the probe compares, plus the command that reads the shell as the probe\n * reads it, so it can check its own work before finishing.\n *\n * Never `null` for a shell task: a missing or invalid plan is SAID, because \"nothing to place\" and\n * \"nothing says what to place\" lead the agent to opposite conclusions — the witness draws the same line.\n */\nexport function buildShellPlacementPlanContextSource(surface: PlacementSurface, companionExports: unknown): BuildTaskContextSource {\n const base = { sourceRef: 'application-creation:context/shell-placement-plan', originRef: 'application-creation:origin/specification-families' };\n const authored = (companionExports as Record<string, unknown> | null)?.['placementPlanSpecification'];\n const parsed = authored === undefined || authored === null ? undefined : PlacementPlanSchema.safeParse(authored);\n if (parsed === undefined || !parsed.success) {\n return {\n ...base,\n content: {\n surface,\n unanswerable: parsed === undefined\n ? 'The application has no placement plan, so nothing says what this surface should carry; the task cannot land until one exists.'\n : `The placement plan does not satisfy its schema (${parsed.error.issues.slice(0, 2).map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ')}); the task cannot land until it does.`,\n },\n };\n }\n const describe = ({ decision, shellIdentity }: PlacementPlanShellExpectation) => ({\n decisionRef: decision.decisionRef,\n subject: decision.subject,\n ...(decision.disposition === PlacementDisposition.PLACED ? { address: decision.address } : {}),\n rationale: decision.rationale,\n shellIdentity,\n });\n const expectations = derivePlacementPlanShellExpectations(parsed.data);\n return {\n ...base,\n content: {\n surface,\n landingCriterion: `This task lands when the ${surface} surface, as the composed shell resolves it, carries every subject `\n + 'placed on it below and none of the declined subjects, and every file that surface is composed from is committed. '\n + 'The declarationRefs in `produces` name these decisions; they are never spelled in the tree, so writing them as text lands nothing.',\n placedOnThisSurface: (expectations.placed.get(surface) ?? []).map(describe),\n declinedEverywhere: expectations.declined.map(describe),\n selfCheck: '`wildo context info app-shell-placement-content` reports what each surface carries, in the same identities as '\n + '`shellIdentity` above. Run it before finishing: a placed identity it does not list is still missing.',\n },\n };\n}\n\n/**\n * The elements a build task SERVES, resolved, plus a map of its module's other tasks (#1419).\n *\n * Reads the task's own `servesRefs` edge through the decided-element index, so resolution is the same\n * membership routing every other surface uses. A ref that resolves to nothing is REPORTED in the\n * source, never skipped: the agent must know the task claims to serve something the application has\n * not decided (Wonder CRM carries one), rather than conclude it serves nothing. `null` when the task\n * declares nothing to serve and has no sibling in its module — the source would be empty.\n */\nexport function buildServedElementsContextSource(task: BuildPlanTask, companionExports: unknown): BuildTaskContextSource | null {\n const index = indexDecidedAspects(decidedFamilyValuesFromCompanionExports(companionExports as Record<string, unknown>));\n const TASK_ASPECT = 'build-plan.task';\n const SERVES_FIELD = 'servesRefs';\n const served = index.links\n .filter((link) => link.field === SERVES_FIELD && link.from.aspectKey === TASK_ASPECT && link.from.ref === task.taskRef)\n .map((link) => ({\n aspectKey: link.to.aspectKey,\n family: link.to.family,\n ref: link.to.ref,\n element: link.to.item,\n }));\n const unresolved = index.unresolved\n .filter((entry) => entry.field === SERVES_FIELD && entry.fromAspectKey === TASK_ASPECT && entry.fromRef === task.taskRef)\n .map((entry) => entry.key);\n\n const moduleRef = task.target && 'moduleRef' in task.target ? task.target.moduleRef : undefined;\n const moduleTasks = moduleRef === undefined\n ? []\n : (index.aspects.get(TASK_ASPECT)?.elements ?? [])\n .filter((element) => element.ref !== task.taskRef)\n .filter((element) => {\n const target = (element.item as { target?: { moduleRef?: string } }).target;\n return target?.moduleRef === moduleRef;\n })\n .map((element) => ({ taskRef: element.ref, objective: element.label }));\n\n if (served.length === 0 && unresolved.length === 0 && moduleTasks.length === 0) return null;\n return {\n sourceRef: 'application-creation:context/served-elements',\n originRef: 'application-creation:origin/specification-families',\n content: {\n servedElements: served,\n ...(unresolved.length > 0\n ? {\n unresolvedServesRefs: unresolved,\n unresolvedNote: 'These servesRefs name nothing the application has decided. Do not invent what they would say; '\n + 'build what the resolved elements require, and report the gap.',\n }\n : {}),\n ...(moduleRef !== undefined ? { moduleRef, otherTasksInModule: moduleTasks } : {}),\n note: 'servedElements are what this task is accountable to — its acceptance criteria. otherTasksInModule is a map only: '\n + 'read a sibling with `wildo context elements get --refs <taskRef>` if you need it.',\n },\n };\n}\n"]}
1
+ {"version":3,"file":"application-build-dispatch.companion.service.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-dispatch.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,+BAA+B,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,yDAAyD,CAAC;AAC5H,OAAO,EAAE,6BAA6B,EAAE,oBAAoB,EAAE,MAAM,uDAAuD,CAAC;AAC5H,OAAO,EACL,iCAAiC,EACjC,4BAA4B,EAC5B,8BAA8B,EAC9B,4BAA4B,EAC5B,2BAA2B,EAC3B,sCAAsC,GACvC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EACL,8BAA8B,EAC9B,yBAAyB,EAEzB,uCAAuC,EACvC,mBAAmB,GACpB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EACL,sCAAsC,EACtC,sBAAsB,EACtB,wBAAwB,EAExB,uBAAuB,EACvB,wBAAwB,EACxB,4BAA4B,EAC5B,oBAAoB,EACpB,mBAAmB,EAEnB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,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,KAAK,IAAI,CAAC,OAAO,CAAC;aACjD,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE;YAClB,MAAM,MAAM,GAAI,OAAO,CAAC,IAA4C,CAAC,MAAM,CAAC;YAC5E,OAAO,MAAM,EAAE,SAAS,KAAK,SAAS,CAAC;QACzC,CAAC,CAAC;aACD,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAE5E,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAC5F,OAAO;QACL,SAAS,EAAE,8CAA8C;QACzD,SAAS,EAAE,oDAAoD;QAC/D,OAAO,EAAE;YACP,cAAc,EAAE,MAAM;YACtB,GAAG,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC;gBACvB,CAAC,CAAC;oBACE,oBAAoB,EAAE,UAAU;oBAChC,cAAc,EAAE,gGAAgG;0BAC5G,+DAA+D;iBACpE;gBACH,CAAC,CAAC,EAAE,CAAC;YACP,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAClF,IAAI,EAAE,mHAAmH;kBACrH,mFAAmF;SACxF;KACF,CAAC;AACJ,CAAC","sourcesContent":["import {\n type MetaWorkflow_ApplicationCodingTaskContract,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport { readdirSync } from 'node:fs';\nimport { readFile } from 'node:fs/promises';\nimport { join } from 'node:path';\n\nimport { inject, injectable } from 'inversify';\nimport { ApplicationSchemaPlanObligation } from '../../core/config/application-schema-plan-obligation.companion.utils';\nimport { experienceTaskSkillRefs, taskHasExperienceProduct } from './application-build-experience-skills.companion.service';\nimport { buildWebsitePlanContextSource, websiteTaskSkillRefs } from './application-build-website-context.companion.service';\nimport {\n WORKBENCH_TASK_CORRELATION_DOMAIN,\n Workbench_BuildDispatchPhase,\n Workbench_BuildTaskStuckReason,\n WorkbenchBuildPlanTaskStatus,\n WorkbenchTaskCorrelationRef,\n sanitizeWorkbenchCreationPlaneIdentity,\n} from '@wildo-ai/platform-core-shared';\n\nimport {\n composeBuildTaskCodingContract,\n slugifyRegistryIdentifier,\n type BuildTaskContextSource,\n decidedFamilyValuesFromCompanionExports,\n indexDecidedAspects,\n} from '@wildo-ai/application-creation-runtime';\nimport type { ActorExecutionOpenRequest, ActorsSystemBackendService, LoggerService, OpenedActorExecution } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES, describeCaughtError } from '@wildo-ai/saas-backend-lib';\nimport { Actor_Task_Topics, FlowsActors_Status } from '@wildo-ai/saas-models';\nimport {\n BUILD_PLAN_TASK_GRAPH_HARD_FLOOR_CODES,\n BuildPlanResourceStage,\n BuildPlanTaskGraphSchema,\n type BuildPlanTaskProduct,\n BuildPlanTaskTargetKind,\n BuildPlanTaskProductKind,\n MetaWorkflow_FunctionalTopic,\n PlacementDisposition,\n PlacementPlanSchema,\n PlacementSurface,\n selectReadyBuildPlanTasks,\n type PlacementPlan,\n validateBuildPlanTaskGraph,\n type BuildPlanTask,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nimport { relatedWorkspaceResources } from '../../core/introspection/workspace-element-index.companion';\nimport { describeWorkspaceFreshness, readWorkspaceElements } from '../../core/introspection/workspace-elements.companion';\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service';\nimport { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion';\nimport { waitForDevCompileQuiet } from '../../core/runtime/dev-compile-quiet.companion';\nimport { readBuildParallelism } from '@wildo-ai/platform-config-lib';\nimport { CodingRunConcurrency } from '../../claude-cli/models/concurrent-coding-runs.models';\nimport {\n CodingAgentDispatchCompanionService,\n type ApplicationCodingTaskSettledOutcome,\n} from '../../claude-cli/services/coding-agent-dispatch.companion.service';\nimport {\n CodingRunFailureAttribution,\n CodingRunStart,\n deriveCodingRunStart,\n isApplicationCodingContractRefusal,\n resolveApplicationCodingTaskVerificationPlans,\n type ApplicationCodingTaskRunAdmission,\n} from '../../claude-cli/models/coding-agent-dispatch.models';\nimport { GitChangeSetCompanionService } from '../../claude-cli/services/git-change-set.companion.service';\nimport type { CompanionExecutionSessionContext } from '../../core/traceability/companion-traceability.models';\nimport { CompanionExecutionsCompanionService } from '../../executions/services/companion-executions.companion.service';\nimport { CompanionExecutionsListQuerySchema } from '../../companion-api/companion-api.schemas';\nimport { APPLICATION_CODING_SYSTEM_REF } from '../models/application-coding-agent.actors-system.definitions';\nimport { readUnavailableApplicationRuntimes, type UnavailableApplicationRuntime } from '../../core/runtime/application-runtime-liveness.companion';\nimport type { CarriedVerificationDiagnosis } from '../models/carried-verification-failure.models';\nimport {\n NothingToRearmError,\n readBuildTaskRearm,\n type BuildTaskRearm,\n type BuildTaskRearmReason,\n} from '../models/build-task-rearm.models';\nimport { APPLICATION_BUILD_GENERATION_STEP_ACTOR_REF, APPLICATION_BUILD_SYSTEM_REF } from '../models/application-build.actors-system.definitions';\nimport {\n ApplicationBuildGenerationStep,\n ApplicationBuildGenerationStepCompanionService,\n ApplicationBuildGenerationStepLandedKind,\n type ApplicationBuildGenerationStepRunResult,\n SchemaPlanSyncState,\n} from './application-build-generation-step.companion.service';\nimport {\n ApplicationBuildTaskNotACodingTaskError,\n resolveBuildPlanTaskCodingPolicy,\n BuildPlanTaskLandedProbeKind,\n buildPlanTaskLandedProbePaths,\n declarationsAppearAt,\n launcherShellIdentity,\n placementSubjectShellIdentity,\n productDerivedSkillRefs,\n resolveBuildTaskLandedProbes,\n resolveUndraftableDocumentRef,\n settingsDestinationShellIdentity,\n shellModuleContributionFile,\n shellSurfaceConfigFile,\n type BuildPlanTaskLandedProbe,\n} from './application-build-task-coding-policy.companion.service';\nimport type { AppShellPlacementContentResult } from '../../core/introspection/subprocess/app-shell-placement-content.behavior';\n\n/** No build plan, or nothing left to do. Named so the transport can say which. */\n\nexport class ApplicationBuildPlanUnavailableError extends Error {}\nexport class ApplicationBuildPlanExhaustedError extends Error {\n /**\n * The counts, carried STRUCTURALLY rather than only inside the sentence.\n *\n * A finished plan is something a surface wants to SAY — \"39 of 39 landed\" — and until these were\n * fields the only copy lived in prose the reader would have had to parse. A board that parses\n * another component's error message is a board that breaks when somebody improves the wording.\n */\n public constructor(message: string, public readonly taskCount: number, public readonly landedCount: number) {\n super(message);\n }\n}\n\n/**\n * Why a read door cannot ANSWER with an exception.\n *\n * `prepareNextBuildTask` serves two kinds of caller: the READS (`describeNextBuildTask`, and\n * `describeNextBuildTaskOrExhaustion` for a surface that must render \"there is none\") and the two\n * DISPATCH doors. The throw is right for a DISPATCH — the caller asked to run something, there is\n * nothing to run, and a door that silently did nothing would be worse. It is wrong for a READ: \"what\n * is next?\" answered by \"nothing, everything landed\" is an ANSWER, and the terminal success of the\n * whole build lane is not a failure to look. The same holds for \"nothing, every ready task is stuck\"\n * (#1451), whose answer is the remedy.\n *\n * Measured 2026-09-18, when Wonder CRM became the first application to finish a plan (39 of 39): the\n * workbench's `requestCompanion` threw on the non-2xx, `useCompanionRead` caught it into `error`, and\n * the board rendered `BoardReadError` — the primitive it defines as \"could not look\", against\n * `BoardEmpty` for \"looked, nothing there\". The last screen of the journey the workbench exists to\n * drive reported the finish as a fault.\n *\n * Reads tolerate, acceptance refuses — `continuity-drift-and-cas-basis.md` Rule 1's split — and\n * `application-creation-directive.md`'s test verbatim: if this refuses, what does the operator do\n * next? Nothing. There is no artifact to fix, so the state is REPRESENTABLE instead.\n */\nexport interface ApplicationBuildPlanExhaustion {\n readonly taskCount: number;\n readonly landedCount: number;\n}\n\n/**\n * What the read door answers: a plan to run, or the reason there is none. Never an exception for either.\n *\n * Three shapes, and exactly one holds: a `plan`; no plan and `exhausted` (every task landed); or no plan,\n * `stuckQueue`, and a non-empty `stuckTasks` (every ready task is stuck, #1451). `stuckTasks` is present beside a plan\n * too, naming what that selection passed over.\n */\n/**\n * How far the queue got when every ready task turned out to be stuck — the same progress a plan row\n * carries, so a stuck row can say \"3 of 5 landed, 2 ready\" instead of zeroes it does not mean.\n */\nexport interface ApplicationBuildStuckQueue {\n readonly taskCount: number;\n readonly readyTaskRefs: readonly string[];\n readonly landedTaskRefs: readonly string[];\n readonly unverifiableLandedTaskRefs: readonly string[];\n}\n\nexport interface ApplicationBuildDispatchDescription {\n readonly plan: ApplicationBuildDispatchPlan | null;\n /** Present exactly when `plan` is null because every task has landed. */\n readonly exhausted?: ApplicationBuildPlanExhaustion;\n /** Present exactly when `plan` is null because every ready task is stuck. */\n readonly stuckQueue?: ApplicationBuildStuckQueue;\n /** Every ready task dispatch passed over, and why. Empty when nothing was skipped. */\n readonly stuckTasks: readonly ApplicationBuildStuckTask[];\n}\n\n/** What one landing resolution found — every answer a caller needs, from the pass it asked for. */\ninterface LandedTaskResolution {\n readonly landed: ReadonlySet<string>;\n /** Landed WITHOUT proof: a task that declares no product and has a completed run. */\n readonly unverifiableLandedTaskRefs: readonly string[];\n /** Schema-plan-gated generation steps whose check could not be ANSWERED on this pass. */\n readonly unanswerableSchemaPlanTaskRefs: ReadonlySet<string>;\n}\n\n/** The ref of the `database-migrations` step the dispatch host derives when a plan owes it and omits it (#1027). */\nexport const HOST_DERIVED_DATABASE_MIGRATIONS_TASK_REF = 'build-task-database-migrations';\n\n/** The ref of the `documentation-publication` step the host derives for a plan that authors chapters (#1273). */\nexport const HOST_DERIVED_DOCUMENTATION_PUBLICATION_TASK_REF = 'build-task-documentation-publication';\n\n/*\n * How far a build dispatch got is `Workbench_BuildDispatchPhase` in `@wildo-ai/platform-core-shared` —\n * NOT declared here, and deliberately not re-exported from here either (a re-export outside a declared\n * public entrypoint is its own defect). It moved there because the WORKBENCH reads these values to\n * decide how a dispatch renders and a browser bundle cannot import this package; that enum's docstring\n * carries the semantics of each member and why the two executors settle at different ones.\n */\n\n/**\n * One dispatch, newest first in {@link ApplicationBuildDispatchCompanionService.readDetachedDispatches}.\n * A PROJECTION of the dispatch's actor-system execution since #1359, not a record anything keeps.\n */\nexport interface ApplicationBuildDetachedDispatchRecord {\n readonly taskRef: string;\n /** When the task was SELECTED — the execution's creation instant. */\n readonly startedAt: string;\n readonly phase: Workbench_BuildDispatchPhase;\n /** When the phase left SUBMITTED. */\n readonly settledAt?: string;\n /** The durable actor-task row an ADMITTED coding run writes its real outcome to. */\n readonly codingTaskId?: string;\n readonly error?: string;\n /** The conversation the dispatch was started from, when it was (#1454, Step 7). */\n readonly conversationId?: string;\n}\n\n/**\n * One ATTEMPT at a build task — one actor execution, read from its own durable row (#1521).\n *\n * Nothing new is written to produce this: every dispatch has been an execution since #1359, so the\n * attempt history already existed and was read only five-at-a-time, newest first, across the whole\n * plan. This groups it by task.\n */\nexport interface ApplicationBuildTaskAttempt {\n /** The execution's own task id — the row an operator opens to read the full outcome. */\n readonly runTaskId: string;\n readonly startedAt: string;\n readonly settledAt?: string;\n /** The execution's status, from the actor plane's own vocabulary. */\n readonly status: FlowsActors_Status;\n /** The coding lane's typed disposition, when the run recorded one (`ApplicationCodingTaskDisposition`). */\n readonly disposition?: string;\n readonly error?: string;\n /** Set when an operator put the task back in the queue after this run (#1535): the run no longer holds it. */\n readonly rearm?: BuildTaskRearm;\n /** Checks that were already red when this run started, each with its diagnosis (#1529). */\n readonly carriedFailures?: readonly CarriedVerificationDiagnosis[];\n /** Checks this run ran GREEN — what tells a repair that a carried red has since been cleared. */\n readonly passedCheckRefs?: readonly string[];\n /*\n * What the durable row already recorded about the run and nothing read (#1541): each answers a question\n * the first end-to-end run's post-mortem answered with a script over the raw rows.\n */\n /** What the run cost, as the agent reported it. */\n readonly cost?: { readonly amount: number; readonly currency: string };\n /** Checks the run FAILED, as this run's own (a carried red is in `carriedFailures`, not here). */\n readonly failedCheckRefs?: readonly string[];\n /** Why the agent's turn ended — `max_tokens` or `refusal` leave a change set that reads as complete and is not. */\n readonly agentStopReason?: string;\n /** Permission requests the ceiling or the task's scope refused. */\n readonly deniedPermissionCount?: number;\n /** Paths changed during the run outside the task's declared scope — recorded, never refused. */\n readonly outOfScopePaths?: readonly string[];\n /** Files the run itself changed (exclusive to the run, appeared during it, or committed during it). */\n readonly filesChanged?: number;\n /** The runs that shared the tree with this one, and the paths both changed (#1528). Absent for a run alone. */\n readonly concurrency?: { readonly overlappingTaskRefs: readonly string[]; readonly contendedPaths: readonly string[] };\n /** It failed while other runs were editing the tree, so the failure may be theirs; the budget forgives a bounded number. */\n readonly interferenceSuspected?: true;\n /**\n * The run ended without ever starting, by the HOST's act: refused at admission, or left selected by\n * a stopped process (#1581). Shown in the history, because it explains why nothing ran, and counted\n * by no summary figure, because it was no attempt of the task's (`CodingRunStart.REFUSED_BY_HOST`).\n */\n readonly refusedBeforeStart?: true;\n /**\n * Nothing ran: either a host refusal (above) or admission refusing the task's OWN contract, which IS\n * an attempt the budget counts. Either way no agent worked, so the run could report no cost.\n */\n readonly ranNothing?: true;\n /**\n * Whose failure a failed run was (#1581): the budget forgives HOST failures up to a bound, so this is\n * what explains a task that failed three times and was still offered again.\n */\n readonly failureAttribution?: CodingRunFailureAttribution;\n}\n\n/**\n * Whether an attempt COUNTS as one of the task's: everything but a host refusal. A refusal of the task's\n * own contract counts although nothing ran, because the attempt budget counts it (#1581).\n */\nexport function isCountedBuildTaskAttempt(attempt: Pick<ApplicationBuildTaskAttempt, 'refusedBeforeStart'>): boolean {\n return attempt.refusedBeforeStart !== true;\n}\n\n/**\n * A red the build keeps meeting and no task caused — owed a repair, with its diagnosis (#1529).\n *\n * Grouped per check across every attempt that carried it, because that is the unit a repair fixes: one\n * broken generated file reds one check for every task that verifies against it.\n */\nexport interface ApplicationBuildRepairOwed {\n readonly checkRef: string;\n /** The first attempt that met it red — when the breakage is known to predate. */\n readonly firstSeenAt: string;\n readonly lastSeenAt: string;\n /** The tasks whose attempts met it red: the work this red has been taxing. */\n readonly affectedTaskRefs: readonly string[];\n /** From the most recent attempt that carried it. */\n readonly diagnosis: CarriedVerificationDiagnosis;\n}\n\n/** A landing probe that is NOT satisfied at HEAD — exactly what landing searched for, and where. */\nexport interface ApplicationBuildTaskUnmetProbe {\n readonly probe: BuildPlanTaskLandedProbe;\n /** For a shell probe: what the surface is missing, still carries, or could not be asked (#1538). */\n readonly shell?: ShellProbeExplanation;\n /**\n * Whether the WORKING TREE satisfies it. `true` = the product is written and not committed (an\n * acceptance question); `false` = it is absent (a declaration or a work question). These lead to\n * different remedies, and \"not landed\" alone cannot tell them apart.\n */\n readonly satisfiedInWorkingTree: boolean;\n}\n\n/**\n * Everything the build knows about ONE task, in one read (#1521).\n *\n * The case it exists for: \"not landed\" hid three facts — never dispatched, dispatched and FAILED, and\n * dispatched, SUCCEEDED, and unprovable — and the third burned hours on the #1273 run because it is\n * indistinguishable from the first on every other surface. Here they are three different shapes:\n * no attempts; a failed attempt; a completed attempt with `unmetProbes`.\n */\nexport interface ApplicationBuildTaskRecord {\n readonly taskRef: string;\n readonly targetKind: string;\n readonly status: WorkbenchBuildPlanTaskStatus;\n /** Newest first. Empty = never dispatched. */\n readonly attempts: readonly ApplicationBuildTaskAttempt[];\n /** READY tasks only: why dispatch passes over it, from the SAME classification the selector uses. */\n readonly stuck?: ApplicationBuildStuckTask;\n /** Not landed and attempted at least once: the probes HEAD does not satisfy. */\n readonly unmetProbes?: readonly ApplicationBuildTaskUnmetProbe[];\n /** A generation step that lands on schema-plan state rather than on files: that state, when not in sync. */\n readonly schemaPlanSyncState?: SchemaPlanSyncState;\n /** BLOCKED tasks only: the prerequisites that have not landed. */\n readonly waitingOn?: readonly string[];\n /** LANDED with no product to prove — RAN-not-PROVEN (`application-creation-directive.md`). */\n readonly unverifiable?: boolean;\n}\n\nexport interface ApplicationBuildTaskRecords {\n readonly tasks: readonly ApplicationBuildTaskRecord[];\n readonly summary: {\n readonly taskCount: number;\n readonly landed: number;\n readonly blocked: number;\n /** READY and no run ever STARTED — the work simply not reached yet. A refused dispatch starts nothing (#1581). */\n readonly readyNeverAttempted: number;\n /** READY, attempted, not stuck — a failed run the loop will re-offer. */\n readonly readyToRetry: number;\n /** READY and passed over, per typed reason. */\n readonly stuckByReason: Readonly<Record<Workbench_BuildTaskStuckReason, number>>;\n /** Runs that STARTED. A dispatch refused before admission is in its task's history and not here (#1581). */\n readonly attempts: number;\n /**\n * Attempts that COMPLETED on a task that has still not landed — dispatches that bought nothing.\n * The band-level stall signal: it grows while the landed count does not.\n */\n readonly completedAttemptsWithoutLanding: number;\n /** Tasks attempted more than once without landing — the per-task stall signal. */\n readonly repeatedlyAttemptedWithoutLanding: readonly string[];\n /** What the build has spent, per currency, and how much of it on tasks that have not landed (#1541). */\n readonly spend: ReturnType<typeof deriveBuildSpend>;\n /**\n * Parallel-build observability (#1528): the degree the lane runs at now, and across every attempt\n * how many overlapped another run, how many failed while suspected of interference, and which paths\n * two runs both changed.\n */\n readonly parallelism: {\n readonly degree: number;\n readonly overlappingAttempts: number;\n readonly interferenceSuspectedAttempts: number;\n readonly contendedPaths: readonly string[];\n };\n };\n /**\n * TRUE when an attempt listing reached its page cap, so some attempts may be missing. Said rather\n * than hidden: a count read off a truncated listing is a claim about the query, not the build.\n */\n readonly attemptsTruncated: boolean;\n /**\n * The application's runtimes a live dev-loop supervisor has PAUSED (#1537) — the application being\n * built cannot start. Said beside the build rather than gating it: most tasks build fine against a\n * dead backend, and refusing them would turn a visible problem into a stalled lane. Absent when no\n * supervisor could answer.\n */\n readonly unavailableRuntimes?: readonly UnavailableApplicationRuntime[];\n /**\n * Reds the build keeps meeting that no task caused (#1529), each with the files it names and what\n * generated them. A check that a LATER attempt ran green is cleared and not listed.\n */\n readonly repairsOwed: readonly ApplicationBuildRepairOwed[];\n}\n\n/** The actor-plane page cap the attempt listing reads under; hitting it sets `attemptsTruncated`. */\nconst BUILD_TASK_ATTEMPT_PAGE_CAP = 200;\n\n/**\n * How many of its OWN failures a build task may spend before dispatch stops offering it (#1536).\n * Three, because the first end-to-end run's two repeating tasks each failed three times identically:\n * a third identical failure says the dispatch, not luck, is the problem. Released by a re-arm.\n */\nexport const MAXIMUM_ATTRIBUTABLE_FAILED_ATTEMPTS = 3;\n\n/** How much of a failed check's output a retry is shown — enough for a compiler's first errors, not a log. */\nconst PREVIOUS_ATTEMPT_OUTPUT_TAIL_CHARS = 2000;\n\nfunction projectBuildTaskAttempt(execution: {\n readonly status: FlowsActors_Status;\n readonly createdAt: string;\n readonly finishedAt?: string;\n readonly standaloneTasks: readonly { readonly _id: string; readonly input?: unknown; readonly output?: unknown; readonly memory?: unknown; readonly startedAt?: string }[];\n}): { readonly taskRef: string; readonly attempt: ApplicationBuildTaskAttempt } | null {\n const task = execution.standaloneTasks[0];\n const taskRef = (task?.input as { taskRef?: unknown } | undefined)?.taskRef;\n if (!task || typeof taskRef !== 'string') return null;\n const output = task.output as {\n disposition?: unknown;\n failure?: { message?: unknown };\n carriedVerificationDiagnoses?: unknown;\n carriedVerificationFailures?: unknown;\n verification?: unknown;\n usage?: { cost?: { amount?: unknown; currency?: unknown } };\n agentStopReason?: unknown;\n deniedPermissionCount?: unknown;\n scopeAssessment?: { outOfScopePaths?: unknown };\n changeSetSummary?: { stats?: Record<string, unknown> };\n concurrency?: { overlappingTaskRefs?: unknown; contendedPaths?: unknown };\n interferenceSuspected?: unknown;\n failureAttribution?: unknown;\n } | undefined;\n const rearm = readBuildTaskRearm(task.memory);\n const carriedFailures = Array.isArray(output?.carriedVerificationDiagnoses)\n ? (output!.carriedVerificationDiagnoses as CarriedVerificationDiagnosis[]).filter((entry) => typeof entry?.checkRef === 'string')\n : [];\n const verification = Array.isArray(output?.verification)\n ? (output!.verification as { checkRef?: unknown; outcome?: { success?: unknown } }[]).filter((entry) => typeof entry?.checkRef === 'string')\n : [];\n const passedCheckRefs = verification.filter((entry) => entry.outcome?.success === true).map((entry) => String(entry.checkRef));\n const carriedRefs = new Set(Array.isArray(output?.carriedVerificationFailures) ? (output!.carriedVerificationFailures as unknown[]).map(String) : []);\n const failedCheckRefs = verification\n .filter((entry) => entry.outcome?.success === false && !carriedRefs.has(String(entry.checkRef)))\n .map((entry) => String(entry.checkRef));\n const cost = output?.usage?.cost;\n const stats = output?.changeSetSummary?.stats;\n const count = (value: unknown): number => (typeof value === 'number' && Number.isFinite(value) ? value : 0);\n const outOfScopePaths = Array.isArray(output?.scopeAssessment?.outOfScopePaths)\n ? (output!.scopeAssessment!.outOfScopePaths as unknown[]).map(String)\n : [];\n return {\n taskRef,\n attempt: {\n runTaskId: String(task._id),\n startedAt: execution.createdAt,\n ...(execution.finishedAt ? { settledAt: execution.finishedAt } : {}),\n status: execution.status,\n ...(typeof output?.disposition === 'string' ? { disposition: output.disposition } : {}),\n ...(typeof output?.failure?.message === 'string' ? { error: output.failure.message } : {}),\n ...(rearm ? { rearm } : {}),\n ...(carriedFailures.length > 0 ? { carriedFailures } : {}),\n ...(passedCheckRefs.length > 0 ? { passedCheckRefs } : {}),\n ...(typeof cost?.amount === 'number' && typeof cost.currency === 'string' ? { cost: { amount: cost.amount, currency: cost.currency } } : {}),\n ...(failedCheckRefs.length > 0 ? { failedCheckRefs } : {}),\n ...(typeof output?.agentStopReason === 'string' ? { agentStopReason: output.agentStopReason } : {}),\n ...(typeof output?.deniedPermissionCount === 'number' ? { deniedPermissionCount: output.deniedPermissionCount } : {}),\n ...(outOfScopePaths.length > 0 ? { outOfScopePaths } : {}),\n ...(stats ? { filesChanged: count(stats['runExclusive']) + count(stats['appearedDuringRun']) + count(stats['committedDuringRun']) } : {}),\n ...(Array.isArray(output?.concurrency?.overlappingTaskRefs) ? {\n concurrency: {\n overlappingTaskRefs: (output!.concurrency!.overlappingTaskRefs as unknown[]).map(String),\n contendedPaths: Array.isArray(output!.concurrency!.contendedPaths) ? (output!.concurrency!.contendedPaths as unknown[]).map(String) : [],\n },\n } : {}),\n ...(output?.interferenceSuspected === true ? { interferenceSuspected: true as const } : {}),\n ...(typeof output?.failureAttribution === 'string' ? { failureAttribution: output.failureAttribution as CodingRunFailureAttribution } : {}),\n ...refusalMarks(deriveCodingRunStart({ status: execution.status, ...(task.startedAt ? { startedAt: task.startedAt } : {}), ...(output ? { output } : {}) })),\n },\n };\n}\n\n/** What an attempt's record says about a run that never started (`deriveCodingRunStart`, #1581). */\nfunction refusalMarks(start: CodingRunStart): { refusedBeforeStart?: true; ranNothing?: true } {\n if (start === CodingRunStart.REFUSED_BY_HOST) return { refusedBeforeStart: true, ranNothing: true };\n if (start === CodingRunStart.REFUSED_CONTRACT) return { ranNothing: true };\n return {};\n}\n\n/**\n * What the build has SPENT, per currency (#1541): every attempt's reported cost, and the part of it\n * spent on tasks that have not landed. Rounded at this boundary to the cent, because it accumulates.\n *\n * `attemptsWithoutReportedCost` counts SETTLED attempts whose run reported no cost (#1507): an agent may\n * report none, and those attempts are not in the totals — which are then a floor, and say so, rather\n * than quietly reading an unpriced attempt as free. An attempt still running has no cost yet and is not\n * counted.\n */\nexport function deriveBuildSpend(records: readonly Pick<ApplicationBuildTaskRecord, 'status' | 'attempts'>[]): {\n readonly total: Readonly<Record<string, number>>;\n readonly onTasksNotLanded: Readonly<Record<string, number>>;\n readonly attemptsWithoutReportedCost: number;\n} {\n const total: Record<string, number> = {};\n const onTasksNotLanded: Record<string, number> = {};\n let attemptsWithoutReportedCost = 0;\n for (const record of records) {\n for (const attempt of record.attempts) {\n // A run that never started could report no cost: it is not an unpriced attempt (#1581).\n if (attempt.ranNothing === true) continue;\n if (!attempt.cost) {\n if (attempt.settledAt !== undefined) attemptsWithoutReportedCost += 1;\n continue;\n }\n total[attempt.cost.currency] = (total[attempt.cost.currency] ?? 0) + attempt.cost.amount;\n if (record.status !== WorkbenchBuildPlanTaskStatus.LANDED) {\n onTasksNotLanded[attempt.cost.currency] = (onTasksNotLanded[attempt.cost.currency] ?? 0) + attempt.cost.amount;\n }\n }\n }\n const cents = (sums: Record<string, number>) => Object.fromEntries(Object.entries(sums).map(([currency, amount]) => [currency, Math.round(amount * 100) / 100]));\n return { total: cents(total), onTasksNotLanded: cents(onTasksNotLanded), attemptsWithoutReportedCost };\n}\n\n/**\n * The reds owed a repair, from every attempt's record (#1529). Pure over the attempts, so what counts as\n * \"still owed\" is pinned rather than implied: a check is cleared once any attempt that started AFTER the\n * last one carrying it ran it green.\n */\nexport function deriveRepairsOwed(attemptsByTask: ReadonlyMap<string, readonly ApplicationBuildTaskAttempt[]>): ApplicationBuildRepairOwed[] {\n const byCheck = new Map<string, { firstSeenAt: string; lastSeenAt: string; affected: Set<string>; diagnosis: CarriedVerificationDiagnosis }>();\n const passes: { checkRef: string; at: string }[] = [];\n for (const [taskRef, attempts] of attemptsByTask) {\n for (const attempt of attempts) {\n for (const checkRef of attempt.passedCheckRefs ?? []) passes.push({ checkRef, at: attempt.startedAt });\n for (const carried of attempt.carriedFailures ?? []) {\n const entry = byCheck.get(carried.checkRef);\n if (entry === undefined) {\n byCheck.set(carried.checkRef, { firstSeenAt: attempt.startedAt, lastSeenAt: attempt.startedAt, affected: new Set([taskRef]), diagnosis: carried });\n continue;\n }\n entry.affected.add(taskRef);\n if (attempt.startedAt < entry.firstSeenAt) entry.firstSeenAt = attempt.startedAt;\n if (attempt.startedAt > entry.lastSeenAt) {\n entry.lastSeenAt = attempt.startedAt;\n entry.diagnosis = carried;\n }\n }\n }\n }\n return [...byCheck]\n .filter(([checkRef, entry]) => !passes.some((pass) => pass.checkRef === checkRef && pass.at > entry.lastSeenAt))\n .map(([checkRef, entry]) => ({\n checkRef,\n firstSeenAt: entry.firstSeenAt,\n lastSeenAt: entry.lastSeenAt,\n affectedTaskRefs: [...entry.affected].sort(),\n diagnosis: entry.diagnosis,\n }))\n .sort((left, right) => left.firstSeenAt.localeCompare(right.firstSeenAt));\n}\n\n/** What the next dispatch WOULD be. Returned unconfirmed, so a creator sees the scope before anything runs. */\nexport interface ApplicationBuildDispatchPlan {\n readonly taskRef: string;\n readonly objective: string;\n readonly targetKind: string;\n /**\n * What the task DECLARES it will produce (#1432).\n *\n * Carried on the plan because the plan is what the coding-run judge is given, and its treatment asks\n * whether the run implemented the dispatched task's target and stage — a question nothing can answer\n * from a taskRef and a target kind. It is also what a creator reading an unconfirmed plan needs in\n * order to see the scope: the mutation prefixes say where the agent may write, and only this says\n * what is supposed to come out.\n */\n readonly produces: readonly BuildPlanTaskProduct[];\n /**\n * Present exactly when the next task is a companion generation step. A build plan INTERLEAVES two\n * executors — coding tasks for a coding agent, and companion generation steps (labels, seeds, emails)\n * the companion runs itself — and this route serves BOTH: `dispatch-next` routes by the task's own\n * `target.kind`. (An earlier version refused generation steps by name; now that an executor exists,\n * the refusal would be a hole in the build lane, not a boundary.)\n */\n readonly generationStepRef?: string;\n readonly allowedPathPrefixes: readonly string[];\n readonly prohibitedPathPrefixes: readonly string[];\n readonly requiredChecks: readonly string[];\n readonly installedSkillRefs: readonly string[];\n readonly readyTaskRefs: readonly string[];\n readonly landedTaskRefs: readonly string[];\n /**\n * The subset of `landedTaskRefs` that landed WITHOUT PROOF — a task declaring no product, which has\n * a completed run and therefore cannot be held against the queue, but whose work nothing verified.\n *\n * A subset rather than a separate state on purpose: for scheduling these tasks ARE landed, and a\n * caller that forgot this field would schedule correctly and merely report less. The opposite\n * shape — a third status the scheduler must interpret — is how a task nobody handled becomes a\n * task nobody runs.\n *\n * Empty is the healthy answer and the one a regenerated plan produces (#600): a task that declares\n * what it produces is proven landed or is not landed, with no third case.\n */\n readonly unverifiableLandedTaskRefs: readonly string[];\n}\n\n/**\n * A build task that has been SELECTED and composed, before either executor has touched it.\n *\n * Named rather than inlined on `prepareNextBuildTask` because both dispatch doors now pass one of\n * these to a shared executor — the seam that makes selection happen exactly once per dispatch.\n *\n * `stuckTasks` rides the selection that produced it, so a concurrent pass can never be reported in\n * its place (#1451).\n */\ntype PreparedBuildTask =\n | { readonly kind: 'CODING'; readonly plan: ApplicationBuildDispatchPlan; readonly contract: ReturnType<typeof composeBuildTaskCodingContract>; readonly stuckTasks: readonly ApplicationBuildStuckTask[] }\n | { readonly kind: 'GENERATION_STEP'; readonly plan: ApplicationBuildDispatchPlan; readonly task: BuildPlanTask; readonly stuckTasks: readonly ApplicationBuildStuckTask[] };\n\n\n/** How long a CONCURRENT admission waits for the compile watchers before starting anyway (#1528). */\nconst CONCURRENT_ADMISSION_COMPILE_QUIET_MS = 30_000;\n\n/** Dispatches one wave call may make per slot before it returns and lets the next call continue. */\nexport const WAVE_DISPATCHES_PER_DEGREE = 4;\n\n/** Why a wave stopped taking new tasks — it always still drains the runs already live. */\nexport enum ApplicationBuildWaveStop {\n /** No task is ready and no run is live: the plan is done, blocked, or every ready task is stuck. */\n NOTHING_READY = 'nothing-ready',\n /** The call reached its dispatch cap; the next call continues. */\n DISPATCH_CAP = 'dispatch-cap',\n /** The next ready task is a generation step this call already ran, and its landing is still unmet. */\n GENERATION_STEP_REPEATED = 'generation-step-repeated',\n /** An admission was refused; the refusal is on the dispatch entry. */\n DISPATCH_REFUSED = 'dispatch-refused',\n}\n\n/** One task a wave dispatched: a coding admission, a generation step, or the refusal that ended the filling. */\nexport interface ApplicationBuildWaveDispatch {\n readonly plan: ApplicationBuildDispatchPlan;\n readonly admission?: ApplicationCodingTaskRunAdmission;\n readonly generationStep?: ApplicationBuildGenerationStepRunResult;\n readonly error?: string;\n}\n\n/** What one wave call did (#1528). */\nexport interface ApplicationBuildWaveResult {\n readonly degree: number;\n readonly mode: CodingRunConcurrency;\n readonly dispatched: readonly ApplicationBuildWaveDispatch[];\n /** Each coding run's settled outcome, in settle order; `null` for a row that could not be classified. */\n readonly outcomes: readonly (ApplicationCodingTaskSettledOutcome | null)[];\n /**\n * The end-of-wave repair (#1805): per run it named, how many paths its ONE commit carried (0 for a run\n * that contributed nothing to it).\n */\n readonly reconciliation: readonly { readonly taskId: string; readonly committedPaths: number; readonly error?: string }[];\n readonly stoppedFillingBecause: ApplicationBuildWaveStop;\n}\n\n/**\n * One dispatched build task's outcome — exactly one of the two executor results is present, matching the\n * plan's `targetKind`. `admission` for a coding run; `generationStep` for a companion generation step.\n */\nexport interface ApplicationBuildDispatchResult {\n readonly plan: ApplicationBuildDispatchPlan;\n readonly admission?: ApplicationCodingTaskRunAdmission;\n readonly generationStep?: ApplicationBuildGenerationStepRunResult;\n}\n\n/**\n * Dispatch the next ready build-plan task to a coding agent.\n *\n * ## The chain, and who owns each link\n *\n * | link | owner |\n * |---|---|\n * | which tasks have landed | GIT — a task has landed when the files it produces are committed |\n * | which are READY | `selectReadyBuildPlanTasks` in `_core` — pure, prerequisite-closed |\n * | what a task may touch | `resolveBuildPlanTaskCodingPolicy` — the ONLY place a `target.kind` becomes paths |\n * | the contract | `composeBuildTaskCodingContract` in the runtime — pure, schema-pinned |\n * | the run | `CodingAgentDispatchCompanionService` — mutation lock, git baseline, change-set capture |\n *\n * Nothing in that chain is decided by a model. The agent is handed a task and a boundary; it does not\n * choose either.\n *\n * ## There is no confirmation flag, and that was a correction\n *\n * `dispatchNextBuildTask` ran only when the caller also passed `confirmWorkspaceMutation: true`. It was\n * removed the day it was written, because it protected nothing the mechanism does not already protect:\n * the scope is derived from the task's CLOSED `target.kind` and cannot be widened, the mutation lock\n * admits one workspace-mutating run at a time, the run is bracketed by a git baseline snapshot and a\n * change-set capture so every touched path is visible and revertible, the required checks gate the\n * result, and acceptance is a separate act: the loop's commit under the autonomy posture, authored as\n * the companion and refusing what it cannot vouch for, or a person's (#1534).\n *\n * A caller that posts to this route is asking for a coding run — that IS the route. Making them say so\n * twice is the acceptance ceremony this whole migration exists to remove, and a field that feels like a\n * control while enforcing nothing is the exact failure mode recorded in the plan's objective.\n *\n * What was genuinely useful in it — seeing the scope before committing to a run — is a READ, and lives at\n * `describeNextBuildTask` below.\n */\n/**\n * A ready task that has already been run to a working result — the loop guard's typed refusal.\n *\n * Distinct from `ApplicationBuildPlanExhaustedError`, which means the OPPOSITE and is a healthy\n * terminal state. Conflating them would let an operator read a money-burning loop as \"the build is\n * finished\".\n */\nexport class ApplicationBuildTaskCompletedButUnlandedError extends Error {\n /**\n * `stuckTasks` is every ready task that cannot move, as typed facts. The message explains the FIRST;\n * the read door answers with all of them, so a board never has to parse this prose (#1451).\n */\n public constructor(\n message: string,\n public readonly taskRef: string,\n public readonly priorTaskId: string,\n public readonly stuckTasks: readonly ApplicationBuildStuckTask[],\n public readonly queue: ApplicationBuildStuckQueue,\n ) {\n super(message);\n this.name = 'ApplicationBuildTaskCompletedButUnlandedError';\n }\n}\n\n/**\n * A NAMED task was asked for and it is not READY (#1454, Step 7): landed already, blocked on a\n * prerequisite, or not in the plan. The graph still decides what may run; naming a task only lets\n * the creator pick among the ready ones. `standing` and the unmet refs are what the answer needs.\n */\nexport enum ApplicationBuildTaskStanding {\n /** The task has landed: its declared product is committed. */\n LANDED = 'landed',\n /** The task waits on a prerequisite that has not landed. */\n BLOCKED = 'blocked',\n /** The plan holds no such task. */\n UNKNOWN = 'unknown',\n}\n\nexport class ApplicationBuildTaskNotReadyError extends Error {\n public constructor(\n message: string,\n public readonly taskRef: string,\n public readonly standing: ApplicationBuildTaskStanding,\n public readonly unmetPrerequisiteTaskRefs: readonly string[],\n ) {\n super(message);\n this.name = 'ApplicationBuildTaskNotReadyError';\n }\n}\n\n/** Where a dispatch was started from, carried onto the run's row so the conversation shows it (#1454, Step 7). */\nexport interface ApplicationBuildDispatchOrigin {\n readonly conversationId?: string;\n}\n\n/**\n * Why a READY task cannot make progress is `Workbench_BuildTaskStuckReason` in\n * `@wildo-ai/platform-core-shared`. It moved there in #1451 so the board can render it; this service\n * is its only producer.\n */\nexport interface ApplicationBuildStuckTask {\n readonly taskRef: string;\n /** The run that proves it is stuck; empty for a task that is unbuildable before any run. */\n readonly priorTaskId: string;\n readonly completedAt?: string;\n readonly reason: Workbench_BuildTaskStuckReason;\n /** Set only for `COMPLETED_AWAITING_COMMIT`: the probed paths that are present but not committed. */\n readonly uncommittedPaths?: readonly string[];\n /** Set only for `NO_DOCUMENT_BLUEPRINT`, so the message can name the ref that has no blueprint. */\n readonly documentRef?: string;\n /**\n * The parked run's own question, carried so the refusal is complete on its own.\n *\n * Until #1359 this was the ONLY place the question survived a companion restart: the operator\n * surface read an in-process map that a restart emptied, exactly when this guard matters. The\n * surface now reads the run's waiting execution, so both hold it — and the message still carries\n * it, because a refusal that sends its reader elsewhere for the one fact it is about is a worse\n * refusal, whatever the elsewhere.\n */\n readonly question?: string;\n}\n\n\n/**\n * The committed tree as ONE landing resolution reads it: each path is asked at most once (#1005).\n *\n * A plan's tasks probe the same few files. A resource's schema, config and ui-behaviour tasks all read\n * that resource's files, so resolving probe by probe spawned git for the same path again and again. The\n * answer cannot change within one resolution, which is also what the landed set it builds assumes.\n */\n/**\n * The same two questions are also asked of the WORKING TREE (`createWorktreeReader`), only to explain a\n * stuck task — never to decide landing. There \"committed\" reads as \"present on disk\".\n */\ninterface CommittedTreeReader {\n isCommitted(subjectRelativePath: string): Promise<boolean>;\n readText(subjectRelativePath: string): Promise<string | undefined>;\n /**\n * Answer `isCommitted` for a whole path set up front, in a bounded number of git spawns.\n *\n * Pure acceleration: it seeds the same memo `isCommitted` would have filled one path at a time, so\n * a path this does not cover still resolves on demand and the answers are identical either way.\n */\n primeCommitted(subjectRelativePaths: readonly string[]): Promise<void>;\n /** The same, for committed TEXT: one `cat-file --batch` instead of one `show` per path. */\n primeTexts(subjectRelativePaths: readonly string[]): Promise<void>;\n /**\n * What the resolved shell carries and what the placement plan decided — ONE introspection per\n * landing resolution, however many shell probes ask (#1538). The paths it names are then asked of\n * THIS reader, so the committed reader and the working-tree reader give their own answers.\n */\n shellWitness(): Promise<ShellWitness>;\n}\n\n/**\n * The shell, as a landing probe needs it (#1538). Three-valued by construction: a witness that could\n * not be READ (no placement plan, no frontend, the introspection failed) is never a \"no\" — it lands\n * nothing and says why, the distinction `check:schema-plan-drift` draws between drift and could-not-ask.\n */\nexport type ShellWitness =\n | { readonly answered: false; readonly reason: string }\n | {\n readonly answered: true;\n /** Entry identities each surface carries in the RESOLVED configuration. */\n readonly carried: ReadonlyMap<PlacementSurface, ReadonlySet<string>>;\n /** The files each surface is composed from — the application's config and every contributing module's. */\n readonly contributingPaths: ReadonlyMap<PlacementSurface, readonly string[]>;\n /** Identities the plan PLACED on each surface. */\n readonly placed: ReadonlyMap<PlacementSurface, readonly string[]>;\n /** Identities the plan DECLINED — to be carried by no surface. */\n readonly declined: readonly string[];\n };\n\n/** Why a shell probe is or is not satisfied — what the build record reports for it. */\nexport interface ShellProbeExplanation {\n readonly satisfied: boolean;\n /** Set when the witness could not be read: the probe is then unsatisfied without being a \"no\". */\n readonly unanswerable?: string;\n /** Placed subjects the surface does not carry. */\n readonly missing: readonly string[];\n /** Declined subjects the surface still carries. */\n readonly declinedButPresent: readonly string[];\n /** Contributing files that differ from HEAD (committed reader) or are absent (working-tree reader). */\n readonly uncommittedPaths: readonly string[];\n}\n\n/**\n * Every path one landed probe consults.\n *\n * One definition, because the two callers must agree: the batch that PRIMES the committed-tree reader\n * and the pass that reports a task's produced-but-uncommitted paths. A probe set gathered differently\n * in the two places would leave exactly the paths they disagree about resolving one spawn-pair at a\n * time — the cost the batch exists to remove, reappearing only for the paths nobody compared.\n */\nfunction landedProbePaths(probe: BuildPlanTaskLandedProbe): readonly string[] {\n // Delegates to the policy module's exhaustive definition. This used to be a second, non-exhaustive\n // copy of it — the thing this docstring says must not exist — and a new probe kind was a type error\n // here rather than a decision there (#1538).\n return buildPlanTaskLandedProbePaths(probe);\n}\n\n/** The probes that read the resolved shell rather than a file (#1538). */\ntype ShellLandedProbe = Extract<BuildPlanTaskLandedProbe, { kind: BuildPlanTaskLandedProbeKind.SHELL_SURFACE_CARRIES_PLAN | BuildPlanTaskLandedProbeKind.SHELL_CARRIES_A_PLACEMENT }>;\nfunction isShellProbe(probe: BuildPlanTaskLandedProbe): probe is ShellLandedProbe {\n return probe.kind === BuildPlanTaskLandedProbeKind.SHELL_SURFACE_CARRIES_PLAN || probe.kind === BuildPlanTaskLandedProbeKind.SHELL_CARRIES_A_PLACEMENT;\n}\n\n/** Store the pending read BEFORE awaiting it, so probes of one path running in parallel share it. */\nfunction memoizeByPath<T>(cache: Map<string, Promise<T>>, subjectRelativePath: string, read: () => Promise<T>): Promise<T> {\n const cached = cache.get(subjectRelativePath);\n if (cached) return cached;\n const pending = read();\n cache.set(subjectRelativePath, pending);\n return pending;\n}\n\n/** How many dispatches the narrative carries. Five is what the in-memory list kept; the board renders that many. */\nconst DISPATCH_NARRATIVE_LENGTH = 5;\n\n/**\n * How far a dispatch got, read off its execution row — see `Workbench_BuildDispatchPhase` for what\n * each member means and why the two executors resolve at different moments.\n *\n * - **A coding run** (`application-coding.system`): `PENDING` is SUBMITTED. Once its task has a start\n * instant it is ADMITTED and STAYS so however it ends — the phase names the hand-off, and the\n * outcome is the task row `codingTaskId` points at. A run that ended WITHOUT ever starting is the\n * only coding FAILED: the dispatch threw before admission.\n * - **A generation step** (`application-build.system`): running is SUBMITTED (nothing has resolved\n * yet), `COMPLETED` is FINISHED, and any other ending — failed, or aborted by a restart — is FAILED.\n */\nexport function projectBuildDispatchPhase(row: { readonly systemRef: string; readonly status: FlowsActors_Status; readonly taskStarted: boolean }): Workbench_BuildDispatchPhase {\n if (row.systemRef === APPLICATION_CODING_SYSTEM_REF) {\n if (row.taskStarted) return Workbench_BuildDispatchPhase.ADMITTED;\n return row.status === FlowsActors_Status.PENDING ? Workbench_BuildDispatchPhase.SUBMITTED : Workbench_BuildDispatchPhase.FAILED;\n }\n if (row.status === FlowsActors_Status.COMPLETED) return Workbench_BuildDispatchPhase.FINISHED;\n return row.status === FlowsActors_Status.PROCESSING || row.status === FlowsActors_Status.PENDING\n ? Workbench_BuildDispatchPhase.SUBMITTED\n : Workbench_BuildDispatchPhase.FAILED;\n}\n\n/**\n * One execution row as a dispatch record, or `null` for a row that is not a build dispatch — an\n * execution with no task, or a task naming no build-plan task (a coding run dispatched by something\n * other than the build plan would be one).\n */\nfunction projectBuildDispatchRecord(execution: {\n readonly systemRef: string;\n readonly status: FlowsActors_Status;\n readonly createdAt: string;\n readonly finishedAt?: string;\n readonly standaloneTasks: readonly { readonly _id: string; readonly input?: unknown; readonly output?: unknown; readonly startedAt?: string }[];\n}): ApplicationBuildDetachedDispatchRecord | null {\n const task = execution.standaloneTasks[0];\n const input = task?.input as { taskRef?: unknown; conversationId?: unknown } | undefined;\n if (!task || typeof input?.taskRef !== 'string') return null;\n const taskStarted = typeof task.startedAt === 'string';\n const phase = projectBuildDispatchPhase({ systemRef: execution.systemRef, status: execution.status, taskStarted });\n const isCodingRun = execution.systemRef === APPLICATION_CODING_SYSTEM_REF;\n const failure = (task.output as { failure?: { message?: unknown } } | undefined)?.failure?.message;\n // When the phase LEFT `SUBMITTED`: admission for a coding run, the end of the step otherwise.\n const settledAt = phase === Workbench_BuildDispatchPhase.SUBMITTED ? undefined\n : isCodingRun && taskStarted ? task.startedAt\n : execution.finishedAt;\n return {\n taskRef: input.taskRef,\n startedAt: execution.createdAt,\n phase,\n ...(settledAt !== undefined ? { settledAt } : {}),\n ...(isCodingRun && taskStarted ? { codingTaskId: String(task._id) } : {}),\n ...(phase === Workbench_BuildDispatchPhase.FAILED && typeof failure === 'string' ? { error: failure } : {}),\n ...(typeof input.conversationId === 'string' ? { conversationId: input.conversationId } : {}),\n };\n}\n\n@injectable()\nexport class ApplicationBuildDispatchCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n public constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.CodingAgentDispatchService) private readonly dispatch: CodingAgentDispatchCompanionService,\n @inject(COMPANION_SERVICE_TYPES.GitChangeSetService) private readonly git: GitChangeSetCompanionService,\n @inject(COMPANION_SERVICE_TYPES.BuildGenerationStepService) private readonly generationSteps: ApplicationBuildGenerationStepCompanionService,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService) private readonly introspection: CompanionIntrospectionService,\n // The engine's execution driver and the rows it writes (#1359): every dispatch is an execution.\n @inject(SAAS_SERVICE_TYPES.ActorsSystemBackendService) private readonly actorsSystem: ActorsSystemBackendService,\n @inject(COMPANION_SERVICE_TYPES.ExecutionsService) private readonly executions: CompanionExecutionsCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('ApplicationBuildDispatchCompanionService');\n }\n\n /**\n * The application workspace's top-level entries — the raw material of a coding run's mutation\n * scope since #1268.\n *\n * ## Read per dispatch, and deliberately NOT cached\n *\n * The listing changes when a composition scenario adds a package (`wildo compose add-website`,\n * `add-technical-doc`, `add-minion`, `add-worker-node`), and the whole point of deriving it is that\n * a package added yesterday is writable today. A cache turns that into a REFUSAL — the run confined\n * away from the package it was asked to write — which is the defect the widening removes, arriving\n * back through the door marked \"performance\". One `readdir` per dispatch, against a dispatch that\n * runs a coding agent for minutes, is not a cost worth that.\n *\n * ## An unreadable workspace answers NOTHING rather than throwing\n *\n * The scope is ADDITIVE, so an empty answer degrades a run to its task-derived scope — today's\n * behaviour — instead of failing a dispatch over a directory listing. A workspace this process\n * cannot list is a condition the contract composer's own empty-scope refusal will catch if it\n * matters, and one that says nothing about whether this task can run.\n */\n private readApplicationWorkspaceEntries(): readonly string[] {\n try {\n return readdirSync(this.companionContext.saasRoot);\n } catch (error) {\n this.logDebug('Could not list the application workspace; a coding run keeps its task-derived scope', {\n saasRoot: this.companionContext.saasRoot,\n error: describeCaughtError(error),\n });\n return [];\n }\n }\n\n /**\n * What the next run would be, without running it. Pure read — nothing is locked, created or started.\n *\n * REQUIRES a task: an exhausted plan throws, exactly as the dispatch doors do. That is right for its\n * caller — a `dryRun` build-dispatch playbook, which is rehearsing a run and has nothing to rehearse\n * when the plan is finished.\n *\n * A surface that wants to SHOW the queue's state rather than act on it wants\n * `describeNextBuildTaskOrExhaustion` instead. The two are kept apart rather than merged because\n * \"give me the next task\" and \"tell me whether there is one\" are different questions, and only the\n * second can be answered by \"there is none\".\n */\n public async describeNextBuildTask(): Promise<ApplicationBuildDispatchPlan> {\n return (await this.prepareNextBuildTask()).plan;\n }\n\n /**\n * The same read, for a caller that must be able to render \"there is nothing left\".\n *\n * The catch narrows to TWO classes — exhausted, and every-ready-task-stuck — and that is the part\n * worth guarding. A catch-all would make every\n * genuine failure to look — an unreadable specifications export, a missing build plan, a broken\n * landing probe — report itself as a finished build, which is the most reassuring possible lie a\n * read can tell.\n */\n public async describeNextBuildTaskOrExhaustion(): Promise<ApplicationBuildDispatchDescription> {\n try {\n const prepared = await this.prepareNextBuildTask();\n return { plan: prepared.plan, stuckTasks: prepared.stuckTasks };\n } catch (error) {\n if (error instanceof ApplicationBuildPlanExhaustedError) {\n return { plan: null, exhausted: { taskCount: error.taskCount, landedCount: error.landedCount }, stuckTasks: [] };\n }\n /*\n * Every ready task is stuck — an ANSWER, for the same reason exhaustion is (#1451). It used to\n * escape this door, fail the creation board's row derivation, and render as \"could not look\"\n * at the one moment the board had a precise answer and a remedy to show. The dispatch doors\n * still throw it: there, the caller asked to run something and nothing can run.\n */\n if (error instanceof ApplicationBuildTaskCompletedButUnlandedError) {\n return { plan: null, stuckQueue: error.queue, stuckTasks: error.stuckTasks };\n }\n throw error;\n }\n }\n\n /**\n * The last few dispatches, newest first — read from the ACTOR PLANE since #1359.\n *\n * ## What this was, and why it moved\n *\n * An in-memory list of the last five dispatches, added 2026-09-04 when a 40-minute i18n generation\n * step outlived the HTTP request that started it and left an operator blind for half the run. It\n * was the right diagnosis and a second, weaker execution plane: a coding run already had a durable\n * row, a generation step had NONE, and a companion restart — ordinary here — emptied the list, so\n * the dispatch most worth explaining was the one nothing remembered.\n *\n * Every dispatch is now an actor-system execution from the moment its task is SELECTED — a coding\n * run on `application-coding.system` (opened `PENDING`, started at admission), a generation step\n * on `application-build.system` — and this method is a PROJECTION of those rows. It holds nothing.\n *\n * ## The phase is derived, and means what it always meant\n *\n * `Workbench_BuildDispatchPhase` stays the wire vocabulary until the board reads the actor rows\n * directly (#1362); {@link projectBuildDispatchPhase} maps a row onto it without changing a\n * member's meaning — in particular a coding run stays `ADMITTED` once it has started, however it\n * ends, because the phase names the HAND-OFF and the run's outcome is the task row it points at.\n */\n public async readDetachedDispatches(session?: CompanionExecutionSessionContext): Promise<readonly ApplicationBuildDetachedDispatchRecord[]> {\n const listed = await Promise.all([APPLICATION_CODING_SYSTEM_REF, APPLICATION_BUILD_SYSTEM_REF].map((systemRef) =>\n this.executions.listActorExecutions(CompanionExecutionsListQuerySchema.parse({ systemRef, limit: DISPATCH_NARRATIVE_LENGTH }), session)));\n return listed.flat()\n .map(projectBuildDispatchRecord)\n .filter((record): record is ApplicationBuildDetachedDispatchRecord => record !== null)\n .sort((left, right) => right.startedAt.localeCompare(left.startedAt))\n .slice(0, DISPATCH_NARRATIVE_LENGTH);\n }\n\n /**\n * Fire the next ready build task WITHOUT holding an HTTP request over it. Returns the selected\n * plan immediately. {@link readDetachedDispatches} then says how far it got: a companion generation\n * step reaches FINISHED there, while a coding task reaches ADMITTED with the durable actor-task row\n * that holds its actual outcome. The same single-flight properties hold — this is the same\n * execution, minus the requirement that a socket survive it.\n *\n * It SELECTS ONCE. Until 2026-09-17 it prepared a task for its own 202 and then called\n * `dispatchNextBuildTask`, which prepared AGAIN — two independent selections against a working\n * tree that a landing run can move between them, so the plan reported to the caller was not\n * guaranteed to be the plan that ran. Both halves now share one `prepared`.\n *\n * It OPENS BEFORE IT ANSWERS. The 202 says the dispatch is running, so its execution must exist\n * before the 202 is sent. It used to be opened inside {@link executePreparedBuildTask}, after this\n * method had returned: on 2026-09-24 (scratch-journey, `build-task-i18n-labels`) the supervisor\n * stopped the companion two seconds after the answer and before the open, and the dispatch left no\n * row at all. Nothing listed it, nothing swept it, and the caller had been told it was running.\n * Opened first, a run the process loses is an orphan the startup sweep settles visibly. A refusal\n * to open (the worktree is held) now reaches the caller instead of a debug log.\n */\n public submitBuildDispatchDetached(\n session?: CompanionExecutionSessionContext,\n /**\n * Run THIS task instead of the next ready one — `wildo build run <taskRef>` (#1652). The same\n * readiness applies: a task that is not ready is refused before anything opens, exactly as\n * {@link dispatchBuildTask} refuses it.\n */\n selection?: { readonly taskRef: string },\n ): Promise<ApplicationBuildDispatchPlan> {\n return this.prepareNextBuildTask(selection).then(async (prepared) => {\n const opened = await this.openPreparedBuildTask(prepared, session);\n void this.executePreparedBuildTask(prepared, session, undefined, CodingRunConcurrency.SINGLE_FLIGHT, opened).catch((error: unknown) => {\n // The failure is ON THE ACTOR PLANE already, with this message: a coding dispatch refused\n // before admission settled ABORTED (FAILED when its own contract was invalid, #1581), a\n // generation step that threw settled FAILED. Logged because a detached run has no caller.\n this.logDebug('Detached build dispatch failed', { taskRef: prepared.plan.taskRef, error: describeCaughtError(error) });\n });\n return prepared.plan;\n });\n }\n\n /**\n * Run the next ready build-plan task, routed by its own `target.kind`: a coding task goes to the coding\n * agent (bounded by its scope, locked, captured and verified); a companion generation step runs the\n * companion's own pipeline for that step. One route, two executors — the interleaving IS the build loop.\n *\n * The workbench dispatches through THIS method and the CLI through its detached sibling; both leave\n * the same rows, because the record is a property of a DISPATCH and not of the door that asked.\n */\n public async dispatchNextBuildTask(\n session?: CompanionExecutionSessionContext,\n ): Promise<ApplicationBuildDispatchResult> {\n return this.executePreparedBuildTask(await this.prepareNextBuildTask(), session);\n }\n\n /**\n * Run THIS task (#1454, Step 7). Admitted only when it is READY: the same selection as\n * `dispatchNextBuildTask`, narrowed to one candidate, so every stuck-task rule still applies and a\n * task that is landed, blocked or unknown answers `ApplicationBuildTaskNotReadyError` instead of\n * running. `origin` is stamped on the run's row so the conversation it came from shows it.\n */\n public async dispatchBuildTask(\n taskRef: string,\n session?: CompanionExecutionSessionContext,\n origin?: ApplicationBuildDispatchOrigin,\n ): Promise<ApplicationBuildDispatchResult> {\n return this.executePreparedBuildTask(await this.prepareNextBuildTask({ taskRef }), session, origin);\n }\n\n /**\n * What running THIS task would mean, without running it: where it may write, what it must pass,\n * and how much context the coding run would carry — what an assistant says before asking for the\n * money. Throws exactly what `dispatchBuildTask` would refuse with.\n */\n public async describeBuildTaskDispatch(taskRef: string): Promise<{\n readonly plan: ApplicationBuildDispatchPlan;\n readonly stuckTasks: readonly ApplicationBuildStuckTask[];\n /** The coding contract's summed context estimate, in tokens; absent for a generation step. */\n readonly contextTokens?: number;\n }> {\n const prepared = await this.prepareNextBuildTask({ taskRef });\n const contextTokens = prepared.kind === 'CODING'\n ? (prepared.contract as { contextSelection?: { maximumTokenBudget?: number } }).contextSelection?.maximumTokenBudget\n : undefined;\n return { plan: prepared.plan, stuckTasks: prepared.stuckTasks, ...(contextTokens !== undefined ? { contextTokens } : {}) };\n }\n\n /**\n * Execute an ALREADY SELECTED task. The one seam both doors run through, so neither can drift from\n * the other about how a target kind is routed — and so selection happens exactly once per dispatch.\n *\n * Both routes are ENGINE-DRIVEN executions (#1359), which is what makes a dispatch visible from\n * selection to outcome without this service remembering anything.\n */\n /**\n * Open a prepared task's execution without running it: the generation step's own row, or the\n * coding run's `PENDING` selection row. For a caller that must answer only once the run is durable\n * ({@link submitBuildDispatchDetached}).\n */\n private async openPreparedBuildTask(\n prepared: PreparedBuildTask,\n session?: CompanionExecutionSessionContext,\n origin?: ApplicationBuildDispatchOrigin,\n mode: CodingRunConcurrency = CodingRunConcurrency.SINGLE_FLIGHT,\n ): Promise<OpenedActorExecution> {\n if (prepared.kind === 'GENERATION_STEP') {\n const openedStep = await this.actorsSystem.openActorExecution(this.buildGenerationStepExecutionRequest(prepared, session, origin));\n // Its row is on the dispatch history from this moment; see `executePreparedBuildTask`.\n this.dispatch.announceRunStateChanged();\n return openedStep;\n }\n // Announced by the coding service itself when it opens the PENDING execution.\n return this.dispatch.openSelectedApplicationCodingExecution(prepared.contract as MetaWorkflow_ApplicationCodingTaskContract, session, origin, mode);\n }\n\n /** The execution a generation step is: one task of the build system's programmatic actor. */\n private buildGenerationStepExecutionRequest(\n prepared: PreparedBuildTask,\n session?: CompanionExecutionSessionContext,\n origin?: ApplicationBuildDispatchOrigin,\n ): ActorExecutionOpenRequest<CompanionExecutionSessionContext | undefined> {\n return {\n systemRef: APPLICATION_BUILD_SYSTEM_REF,\n actorRef: APPLICATION_BUILD_GENERATION_STEP_ACTOR_REF,\n scope: session,\n task: {\n title: `Build generation step ${prepared.plan.taskRef}`,\n description: `Companion generation step ${String(prepared.plan.generationStepRef)} of the application build plan.`,\n topic: Actor_Task_Topics.IMPLEMENTATION,\n input: {\n taskRef: prepared.plan.taskRef,\n generationStepRef: prepared.plan.generationStepRef ?? null,\n ...(origin?.conversationId ? { conversationId: origin.conversationId } : {}),\n },\n // The same cross-plane join a coding task carries, so the board matches either kind of\n // dispatch to its build-plan row by one key.\n correlation: {\n domain: WORKBENCH_TASK_CORRELATION_DOMAIN,\n refs: { [WorkbenchTaskCorrelationRef.BUILD_PLAN_TASK]: sanitizeWorkbenchCreationPlaneIdentity(prepared.plan.taskRef) },\n },\n },\n };\n }\n\n private async executePreparedBuildTask(\n prepared: PreparedBuildTask,\n session?: CompanionExecutionSessionContext,\n origin?: ApplicationBuildDispatchOrigin,\n /** CONCURRENT only from {@link dispatchBuildWave} (#1528). */\n mode: CodingRunConcurrency = CodingRunConcurrency.SINGLE_FLIGHT,\n /** Already opened by {@link openPreparedBuildTask}; opened here otherwise. */\n opened?: OpenedActorExecution,\n ): Promise<ApplicationBuildDispatchResult> {\n if (prepared.kind === 'GENERATION_STEP') {\n this.logDebug('Running a companion generation step', {\n taskRef: prepared.plan.taskRef,\n generationStepRef: prepared.plan.generationStepRef,\n });\n /*\n * A generation step IS an execution of the build system's one PROGRAMMATIC actor: opened before\n * the pipeline starts, settled COMPLETED with what it produced, or FAILED with the pipeline's\n * own message when it throws (the driver rethrows it unchanged for this method's caller).\n */\n /*\n * Announced when the step's execution OPENS and again once its row is TERMINAL, however it ended\n * (#1310). The creation boards read that row: it is a line of the dispatch history while it\n * runs, and its ending is what a failed step's line and the next task it unblocks are read\n * from. A running step is NOT in the selection's in-flight set (that counts coding runs), so\n * the open announcement is about the history, not about readiness. When `opened` is supplied,\n * {@link openPreparedBuildTask} already announced the open.\n */\n const openedStep = opened ?? await this.actorsSystem.openActorExecution(this.buildGenerationStepExecutionRequest(prepared, session, origin));\n if (!opened) this.dispatch.announceRunStateChanged();\n const generationStep = await this.actorsSystem.completeActorExecution(\n openedStep,\n /*\n * Inside the coding lane's attribution window, and accepted under the autonomy posture there\n * (#1534): the step lands on COMMITTED paths and is exempt from the loop guard, so an\n * uncommitted step would be re-selected forever. See `runGenerationStepInWorktreeWindow`.\n */\n (opened) => this.dispatch.runGenerationStepInWorktreeWindow({\n taskRef: prepared.plan.taskRef,\n taskId: opened.taskId,\n execute: () => this.generationSteps.executeGenerationStep(prepared.task, session),\n ...(session ? { sessionContext: session } : {}),\n }),\n session,\n {\n // The step's PRODUCT is files on disk; the row names them so a reader need not re-derive where to look.\n concludeAs: (result) => ({\n status: FlowsActors_Status.COMPLETED,\n taskOutput: { generationStepRef: result.generationStepRef, evidencePaths: result.evidencePaths },\n }),\n },\n ).finally(() => this.dispatch.announceRunStateChanged());\n return { plan: prepared.plan, generationStep };\n }\n this.logDebug('Dispatching a build task to the coding agent', {\n taskRef: prepared.plan.taskRef,\n allowedPathPrefixes: prepared.plan.allowedPathPrefixes,\n });\n const contract = prepared.contract as MetaWorkflow_ApplicationCodingTaskContract;\n /*\n * Opened at SELECTION, `PENDING`: what follows can take minutes and can fail, and until #1359 that\n * stretch existed only in memory. The coding service STARTS this same execution at admission.\n */\n const selected = opened ?? await this.dispatch.openSelectedApplicationCodingExecution(contract, session, origin, mode);\n try {\n /*\n * The churn gate, and deliberately NOT the retry (#265): a coding turn MUTATES the workspace, so\n * a kill mid-turn leaves a change-set the attribution machinery must reconcile — re-dispatching\n * blind on top of that is how two half-runs interleave. The gate raises the odds the turn never\n * meets the respawn; a killed coding run stays what it is today, a visibly aborted task an\n * operator re-dispatches deliberately.\n */\n await waitForDevCompileQuiet({\n frameworkRepositoryRoot: this.companionContext.resolvedHomes.framework.repositoryRoot,\n log: (message, context) => this.logDebug(message, { taskRef: prepared.plan.taskRef, ...context }),\n /*\n * Siblings in a wave keep the compilers busy by design (#1528), so a concurrent admission waits\n * briefly rather than up to five minutes per slot. A run a respawn then kills stays what it is\n * everywhere: a visibly aborted task, retried.\n */\n ...(mode === CodingRunConcurrency.CONCURRENT ? { maximumWaitMs: CONCURRENT_ADMISSION_COMPILE_QUIET_MS } : {}),\n });\n const admission = await this.dispatch.runApplicationCodingTask(contract, session, selected, origin, mode);\n return { plan: prepared.plan, admission };\n } catch (error) {\n /*\n * The run never STARTED — a rejection from admission means exactly that, by the coding\n * service's contract — so the execution opened at selection is this method's to settle.\n * Best-effort: the dispatch's own error is what the caller must see, and a settle that also\n * fails leaves a PENDING row the startup reconcile sweeps.\n *\n * ABORTED, not FAILED (#1581). A refusal here — the worktree held by another run — is the HOST\n * declining to start the run, and the attempt budget counts\n * FAILED coding runs as the task's own failures (`listAttributableFailedRunsForBuildTask`).\n * Settled FAILED, three worktree-busy refusals retired a task that never ran. The message is\n * still on the row, and the board's dispatch record still reads it as a failed dispatch.\n *\n * One refusal IS the task's own: admission refused its CONTRACT — in practice an unregistered\n * verification check, since a contract that does not parse is refused at open, before this row\n * exists — marked by `isApplicationCodingContractRefusal`. Nothing about the\n * host would make it pass next time, so it settles FAILED with `failureAttribution: TASK`: the\n * budget counts it, and the board shows it as the attempt it is — otherwise it could never retire\n * and would hold the head of the queue on every dispatch.\n */\n const failure = { message: describeCaughtError(error).slice(0, 400) };\n await this.actorsSystem.settleActorExecution(\n selected,\n isApplicationCodingContractRefusal(error)\n ? { status: FlowsActors_Status.FAILED, taskOutput: { failure, failureAttribution: CodingRunFailureAttribution.TASK } }\n : { status: FlowsActors_Status.ABORTED, failure },\n session,\n ).catch((settleError: unknown) => {\n this.logDebug('A build dispatch failed before admission and its execution could not be settled', {\n taskRef: prepared.plan.taskRef, settleError: describeCaughtError(settleError),\n });\n }).finally(() => {\n /*\n * The PENDING row left the in-flight set (#1310, fifth review F1), which is an input of the\n * next-task selection, and no coding chain will announce this ending, because none started.\n * Announced whether or not the settle itself succeeded.\n */\n this.dispatch.announceRunStateChanged();\n });\n throw error;\n }\n }\n\n\n /**\n * Run the build with up to {@link readBuildParallelism} coding runs at once in the ONE worktree\n * (#1528) — a rolling pool rather than fixed batches: when a run settles its slot is refilled with\n * whatever is then ready, so a task that just landed unlocks its dependents in the same call.\n *\n * Optimistic by decision (Paul, 2026-09-24): runs share the tree and may edit the same files, the way\n * parallel Claude Code sessions do every day. What is prevented is only a task being built twice at\n * once (the per-task subject and the IN_FLIGHT skip). What is REPAIRED is at the end: once every run\n * has settled, {@link CodingAgentDispatchCompanionService.reconcileWaveAcceptance} commits what the\n * runs' own accepts left, as one change naming every run whose writes it may carry (#1805). What is\n * OBSERVED is on each run's row\n * (`concurrency`, `interferenceSuspected`).\n *\n * Bounded per call: at most {@link WAVE_DISPATCHES_PER_DEGREE} dispatches per slot, and a generation\n * step at most once — a step whose landing stays unmet would otherwise be re-selected forever. The\n * next call continues from wherever the build stands.\n *\n * With a degree of 1 this is one single-flight dispatch awaited to its outcome: exactly the lane as\n * it was.\n */\n public async dispatchBuildWave(session?: CompanionExecutionSessionContext): Promise<ApplicationBuildWaveResult> {\n const degree = readBuildParallelism(this.companionContext.saasRoot);\n const mode = degree > 1 ? CodingRunConcurrency.CONCURRENT : CodingRunConcurrency.SINGLE_FLIGHT;\n const maximumDispatches = degree * WAVE_DISPATCHES_PER_DEGREE;\n const dispatched: ApplicationBuildWaveDispatch[] = [];\n const inFlight = new Map<string, Promise<{ readonly taskId: string; readonly outcome: ApplicationCodingTaskSettledOutcome | null }>>();\n const generationStepsRun = new Set<string>();\n let stoppedFillingBecause: ApplicationBuildWaveStop | undefined;\n // When the wave began: a concurrent run that recorded writes since then shared its tree (#1805).\n const startedAt = new Date().toISOString();\n\n const fill = async (): Promise<void> => {\n while (stoppedFillingBecause === undefined && inFlight.size < degree) {\n if (dispatched.length >= maximumDispatches) {\n stoppedFillingBecause = ApplicationBuildWaveStop.DISPATCH_CAP;\n return;\n }\n let prepared: PreparedBuildTask;\n try {\n prepared = await this.prepareNextBuildTask();\n } catch (error) {\n if (error instanceof ApplicationBuildPlanExhaustedError || error instanceof ApplicationBuildTaskCompletedButUnlandedError) {\n // Nothing ready NOW. While runs are live that is a pause, not an end: a settle may unlock more.\n if (inFlight.size === 0) stoppedFillingBecause = ApplicationBuildWaveStop.NOTHING_READY;\n return;\n }\n throw error;\n }\n if (prepared.kind === 'GENERATION_STEP') {\n if (generationStepsRun.has(prepared.plan.taskRef)) {\n stoppedFillingBecause = ApplicationBuildWaveStop.GENERATION_STEP_REPEATED;\n return;\n }\n generationStepsRun.add(prepared.plan.taskRef);\n dispatched.push(await this.executePreparedBuildTask(prepared, session));\n continue;\n }\n try {\n const result = await this.executePreparedBuildTask(prepared, session, undefined, mode);\n dispatched.push(result);\n const taskId = result.admission!.taskId;\n inFlight.set(taskId, this.awaitCodingRunOutcome(taskId, session).then((outcome) => ({ taskId, outcome })));\n } catch (error) {\n // A refused admission is recorded and ends the filling; the live runs still drain.\n dispatched.push({ plan: prepared.plan, error: describeCaughtError(error) });\n stoppedFillingBecause = ApplicationBuildWaveStop.DISPATCH_REFUSED;\n return;\n }\n }\n };\n\n const outcomes: Array<ApplicationCodingTaskSettledOutcome | null> = [];\n const settledTaskIds: string[] = [];\n await fill();\n while (inFlight.size > 0) {\n const settled = await Promise.race(inFlight.values());\n inFlight.delete(settled.taskId);\n outcomes.push(settled.outcome);\n settledTaskIds.push(settled.taskId);\n await fill();\n }\n stoppedFillingBecause ??= ApplicationBuildWaveStop.NOTHING_READY;\n\n /*\n * REPAIR, now that nothing is writing: what the runs' own accepts left in the tree is committed as ONE\n * change naming every run whose writes it may carry — failed runs INCLUDED, since a failed run's files\n * sit in the same tree and a finisher's capture holds them (#1805). Only when the wave was concurrent:\n * a single-flight run's own accept never meets a sibling.\n */\n const reconciliation = mode === CodingRunConcurrency.CONCURRENT && settledTaskIds.length > 0\n ? await this.dispatch.reconcileWaveAcceptance({ startedAt, taskIds: settledTaskIds })\n : [];\n return { degree, mode, dispatched, outcomes, reconciliation, stoppedFillingBecause };\n }\n\n /**\n * Wait for one admitted coding run to SETTLE, then report what it actually did.\n *\n * `dispatchNextBuildTask` resolves at ADMISSION for a coding target — the lock is held, the durable\n * row exists, and the agent has not written a line yet. That is the right contract for a caller\n * that wants to watch (the detached record says `ADMITTED` and hands over the task id), and the\n * wrong one for a caller that REPORTS AN OUTCOME: the first playbook run through this tier recorded\n * `ok: true` at a `finishedAt` equal to the coding run's `startedAt`, so a green run described work\n * that was still executing and no evaluation could ever see a result.\n *\n * Two steps because they fail differently. The settlement is in-process and is `null` for a row this\n * process did not admit — a restart, or a previous generation — in which case there is nothing to\n * wait for and the durable row already holds whatever is knowable. The read is durable and answers\n * `null` only when the row cannot be classified at all, which a caller must report as \"unknown\",\n * never as a failed run.\n */\n public async awaitCodingRunOutcome(\n taskId: string,\n session?: CompanionExecutionSessionContext,\n ): Promise<ApplicationCodingTaskSettledOutcome | null> {\n const settlement = this.dispatch.awaitApplicationCodingTaskSettlement(taskId);\n if (settlement) await settlement;\n return this.dispatch.readApplicationCodingTaskOutcome(taskId, session);\n }\n\n /**\n * The task the dispatcher would select has ALREADY been run to a working result and is still\n * not landed — so selecting it again is a loop, not progress.\n *\n * Refused rather than re-dispatched because each iteration spawns a coding agent and costs real\n * money: measured 2026-09-10 on Wonder CRM at roughly $7.50 a turn, three turns, same task\n * (#606). Every run SUCCEEDED; what fails is the plan's ability to say the work landed.\n *\n * The remedy is never \"run it again\" — it is to fix what the task declares it PRODUCES, or to\n * fix the work so the declared product exists. Naming both in the message keeps an operator out\n * of the coding host, which is the wrong place to look: the run is not the defect.\n */\n private buildUnlandableTaskError(stuck: readonly ApplicationBuildStuckTask[], queue: ApplicationBuildStuckQueue): Error {\n const entry = stuck[0]!;\n const stuckCount = stuck.length;\n const { taskRef, priorTaskId, completedAt } = entry;\n const when = completedAt === undefined ? '' : ` at ${completedAt}`;\n const others = stuckCount > 1 ? ` ${stuckCount - 1} other ready task(s) are stuck the same way.` : '';\n /*\n * Four ways to be stuck, four DIFFERENT remedies — so they must not share prose. A message that\n * sent an operator to fix a `produces` declaration while a live question sat unanswered, or while\n * the real fault was a document the catalog does not define, is a message that costs a session.\n */\n if (entry.reason === Workbench_BuildTaskStuckReason.PARKED_AWAITING_ANSWER) {\n return new ApplicationBuildTaskCompletedButUnlandedError(\n `Build task \"${taskRef}\" is PARKED on an unanswered question (task ${priorTaskId}), so dispatching it `\n + 'again would abandon that run\\'s persisted session and lose the question with it. The question is: '\n + `${entry.question ?? '(not recorded on the durable row)'} — answer it through the coding-agent resume `\n + 'door, or retire the task from the plan if it cannot be built as declared. Do not re-dispatch.'\n + `${others}`,\n taskRef,\n priorTaskId,\n stuck,\n queue,\n );\n }\n if (entry.reason === Workbench_BuildTaskStuckReason.NO_DOCUMENT_BLUEPRINT) {\n return new ApplicationBuildTaskCompletedButUnlandedError(\n `Build task \"${taskRef}\" declares it produces the governed document \"${entry.documentRef}\", which the engine `\n + 'catalog does not define — so there is no blueprint saying what it must contain, and a run could only '\n + 'INVENT its structure, which the authoring skill forbids. No agent can complete it. Declare a document '\n + `the catalog defines (a candidate carries \\`document:<namespace>.<id>\\`), or retire the task.`\n + (entry.priorTaskId === ''\n ? ''\n : ` NOTE: a run for it is PARKED on a question (task ${entry.priorTaskId}); retiring the task abandons `\n + `that session. The question is: ${entry.question ?? '(not recorded)'}`)\n + others,\n taskRef,\n priorTaskId,\n stuck,\n queue,\n );\n }\n if (entry.reason === Workbench_BuildTaskStuckReason.IN_FLIGHT) {\n return new ApplicationBuildTaskCompletedButUnlandedError(\n `Build task \"${taskRef}\" is being built right now by a live coding run, so it is not offered again until `\n + `that run settles. Nothing to do: the next dispatch after it settles picks up wherever the build then stands.${others}`,\n taskRef,\n priorTaskId,\n stuck,\n queue,\n );\n }\n if (entry.reason === Workbench_BuildTaskStuckReason.ATTEMPTS_EXHAUSTED) {\n return new ApplicationBuildTaskCompletedButUnlandedError(\n `Build task \"${taskRef}\" has failed ${MAXIMUM_ATTRIBUTABLE_FAILED_ATTEMPTS} times (latest: task ${priorTaskId}${when}), `\n + 'each a failure of its own making, so it is not offered again as the same dispatch. Read the latest run\\'s '\n + 'failure (its verification output and closing report are on that task row), fix the cause, then put it back '\n + `with \\`wildo build rearm ${taskRef} --reason <why> --note <what was fixed>\\`.${others}`,\n taskRef,\n priorTaskId,\n stuck,\n queue,\n );\n }\n if (entry.reason === Workbench_BuildTaskStuckReason.COMPLETED_AWAITING_COMMIT) {\n return new ApplicationBuildTaskCompletedButUnlandedError(\n `Build task \"${taskRef}\" already completed${when} (task ${priorTaskId}) and its declared product IS in the `\n + `working tree, uncommitted: ${(entry.uncommittedPaths ?? []).join(', ')}. Landing means committed, because `\n + 'acceptance is a commit — review the run\\'s change set and commit it (with the rest of what the run '\n + `wrote), and the task lands. Do not re-dispatch, and do not change its \\`produces\\` declaration.${others}`,\n taskRef,\n priorTaskId,\n stuck,\n queue,\n );\n }\n return new ApplicationBuildTaskCompletedButUnlandedError(\n `Build task \"${taskRef}\" already completed${when} (task ${priorTaskId}) and is STILL not landed, so `\n + 'dispatching it again would re-run work that succeeded. Its landed probes are derived from what '\n + 'the task declares it `produces`, and they are unmet in the working tree as well as at HEAD: either '\n + 'that declaration is empty or wrong, or the run did not produce it. Fix the declaration or the work — do not re-dispatch. '\n + `Once the cause is fixed, put the task back with \\`wildo build rearm ${taskRef} --reason <why> --note <what was fixed>\\`.${others}`,\n taskRef,\n priorTaskId,\n stuck,\n queue,\n );\n }\n\n /**\n * Select the task to run: the NEXT ready one, or — with `selection` — the NAMED one, which must be\n * among the ready ones. The stuck-task rules below apply to either; naming a task never lets it\n * skip them.\n */\n /**\n * WHY a ready build task cannot make progress — or `null` when it can be dispatched.\n *\n * ONE classification, called by both the selector (`prepareNextBuildTask`, which skips a stuck task)\n * and the per-task record (`describeBuildTaskRecords`, which reports it). Until #1521 it lived inline\n * in the selection loop, so the only surface that ever saw a task's reason was the loop guard's\n * refusal, thrown away on every ordinary round. Two copies would be two answers to one question.\n *\n * Generation steps are not asked: their landing is a typed condition of their own, and one of them\n * is legitimately re-runnable.\n */\n private async classifyStuckBuildTask(\n candidate: BuildPlanTask,\n /** The build tasks with a live coding run, when the caller already read them once for a whole selection. */\n inFlightTaskRefs?: ReadonlySet<string>,\n ): Promise<ApplicationBuildStuckTask | null> {\n /*\n * FIRST, because it is the one reason that is progress rather than a fault: a run of this task is\n * live (#1528). Under a parallel wave the next selection must pass over it, or two agents build the\n * same task. The engine's per-task subject refuses the second one anyway; this keeps the wave from\n * spending a slot on the refusal.\n */\n const inFlight = inFlightTaskRefs !== undefined\n ? (inFlightTaskRefs.has(candidate.taskRef) ? { executionId: '' } : null)\n : await this.dispatch.findInFlightRunForBuildTask(candidate.taskRef);\n if (inFlight !== null) {\n return { taskRef: candidate.taskRef, priorTaskId: '', reason: Workbench_BuildTaskStuckReason.IN_FLIGHT };\n }\n /*\n * Asked BEFORE any durable-run lookup, because it is the one reason that does not need a run to\n * have happened: a task producing a document the catalog cannot describe is unbuildable from the\n * moment it is authored, and dispatching it spends a full agent turn to rediscover that. Wonder\n * CRM's plan carries two.\n */\n const undraftableDocumentRef = resolveUndraftableDocumentRef(candidate);\n if (undraftableDocumentRef !== undefined) {\n /*\n * A task can be BOTH unbuildable and parked — Wonder CRM's GDPR task is exactly that. The\n * document fault is the one that decides (no run can ever complete it), but retiring a task\n * with a live persisted session is a deliberate act, so the park is named rather than dropped.\n */\n const alsoParked = await this.dispatch.findParkedRunForBuildTask(candidate.taskRef);\n return {\n taskRef: candidate.taskRef,\n priorTaskId: alsoParked?.taskId ?? '',\n reason: Workbench_BuildTaskStuckReason.NO_DOCUMENT_BLUEPRINT,\n documentRef: undraftableDocumentRef,\n question: alsoParked?.question,\n };\n }\n const priorRun = await this.dispatch.findCompletedRunForBuildTask(candidate.taskRef);\n if (priorRun !== null) {\n const uncommittedPaths = await this.resolveProducedButUncommittedPaths(candidate);\n return {\n taskRef: candidate.taskRef,\n priorTaskId: priorRun.taskId,\n completedAt: priorRun.completedAt,\n reason: uncommittedPaths === undefined ? Workbench_BuildTaskStuckReason.COMPLETED_UNLANDED : Workbench_BuildTaskStuckReason.COMPLETED_AWAITING_COMMIT,\n uncommittedPaths,\n };\n }\n /*\n * A run that SUSPENDED is not a completed run, so the lookup above cannot see it — and without\n * this second question the task is offered again on every dispatch, forever. Measured\n * 2026-09-16 on Wonder CRM: `build-task-gdpr-data-handling-governance` parked on a question,\n * and the next dry run selected the same task. The anti-loop guard was answering honestly\n * about the wrong population.\n *\n * Skipped, never blocking: the parked run keeps its persisted session, its dependents keep\n * waiting, and the rest of the plan proceeds.\n */\n const parkedRun = await this.dispatch.findParkedRunForBuildTask(candidate.taskRef);\n if (parkedRun !== null) {\n return { taskRef: candidate.taskRef, priorTaskId: parkedRun.taskId, reason: Workbench_BuildTaskStuckReason.PARKED_AWAITING_ANSWER, question: parkedRun.question };\n }\n /*\n * The ATTEMPT BUDGET (#1536). A failed run is re-offered by design — it is exactly what an\n * operator should be able to retry — and until this nothing counted: on the first end-to-end run\n * two tasks ran three times each for $69, re-dispatched identically. Only the task's own failures\n * count (a check already red before a run no longer fails it), so this retires a task for what IT\n * did; the re-arm door releases it once the cause is fixed.\n */\n const failedRuns = await this.dispatch.listAttributableFailedRunsForBuildTask(candidate.taskRef);\n if (failedRuns.length >= MAXIMUM_ATTRIBUTABLE_FAILED_ATTEMPTS) {\n return {\n taskRef: candidate.taskRef,\n priorTaskId: failedRuns[0]!.taskId,\n ...(failedRuns[0]!.settledAt ? { completedAt: failedRuns[0]!.settledAt } : {}),\n reason: Workbench_BuildTaskStuckReason.ATTEMPTS_EXHAUSTED,\n };\n }\n return null;\n }\n\n private async prepareNextBuildTask(selection?: { readonly taskRef: string }): Promise<PreparedBuildTask> {\n const graph = await this.readBuildPlan();\n const resolution = await this.resolveLandedTaskRefs(graph.tasks);\n const landedTaskRefs = resolution.landed;\n\n const ready = selectReadyBuildPlanTasks(graph, landedTaskRefs);\n if (selection !== undefined && !ready.some((candidate) => candidate.taskRef === selection.taskRef)) {\n const named = graph.tasks.find((candidate) => candidate.taskRef === selection.taskRef);\n const standing = named === undefined ? ApplicationBuildTaskStanding.UNKNOWN\n : landedTaskRefs.has(named.taskRef) ? ApplicationBuildTaskStanding.LANDED\n : ApplicationBuildTaskStanding.BLOCKED;\n const unmet = named === undefined ? [] : named.prerequisiteTaskRefs.filter((prerequisite) => !landedTaskRefs.has(prerequisite));\n throw new ApplicationBuildTaskNotReadyError(\n standing === ApplicationBuildTaskStanding.UNKNOWN ? `The build plan holds no task \"${selection.taskRef}\".`\n : standing === ApplicationBuildTaskStanding.LANDED ? `Task ${selection.taskRef} has already landed.`\n : `Task ${selection.taskRef} is not ready: it waits on ${unmet.join(', ')}.`,\n selection.taskRef,\n standing,\n unmet,\n );\n }\n if (ready.length === 0) {\n throw new ApplicationBuildPlanExhaustedError(\n `Every task in the build plan has landed, or none is ready: ${graph.tasks.length} task(s), `\n + `${landedTaskRefs.size} landed.`,\n graph.tasks.length,\n landedTaskRefs.size,\n );\n }\n /*\n * The FIRST ready task, in graph order — routed by its own `target.kind`, never reordered.\n *\n * Deliberately not a choice among the ready set: the graph already encodes the ordering its author\n * intended, and something picking among ready tasks would be a second scheduler disagreeing with the\n * first. (An earlier version skipped generation steps to find a coding task and refused when none\n * remained — correct while no executor existed, a hole in the lane once one did: the first authored\n * generation step parked the Wonder Todos build behind a named 409 forever.)\n */\n /*\n * THE FIRST ready task in graph order — SKIPPING any that has already run and still cannot prove\n * it landed. Skipping is not reordering: the graph's order is preserved, a known-stuck task is\n * removed from it.\n *\n * Such a task declared a product and the run did not produce it, so the declaration or the work\n * is wrong. Re-offering it is the money-burning loop; REFUSING THE WHOLE QUEUE for it — which is\n * what this did until 2026-09-12 — is the gate `application-creation-directive.md` forbids, one\n * task later. One over-derived field would freeze an entire 42-task build.\n *\n * It is SKIPPED rather than MARKED, and the asymmetry against the no-product case above is the\n * whole design. A task declaring nothing can never be proven by any run, so marking it is the\n * only way the lane moves — measured at 1 of 42 reachable otherwise. A task whose product is\n * merely ABSENT is provable: fix the declaration or the work and it lands. So it stays NOT\n * landed, its dependents correctly wait, and every unrelated branch proceeds.\n */\n const stuck: ApplicationBuildStuckTask[] = [];\n let selected: BuildPlanTask | undefined;\n let unanswerableGenerationStep: BuildPlanTask | undefined;\n const candidates = selection === undefined ? ready : ready.filter((candidate) => candidate.taskRef === selection.taskRef);\n // Read ONCE per selection: a wave selects repeatedly over a wide ready set (#1528).\n const inFlightTaskRefs = new Set((await this.dispatch.listInFlightCodingRuns()).flatMap((run) => (run.taskRef ? [run.taskRef] : [])));\n for (const candidate of candidates) {\n /*\n * Generation steps are exempt: their landing is the generation-step service's own typed\n * condition rather than a product declaration, and one of them (`i18n-labels`) is legitimately\n * re-runnable when the locale set changes.\n */\n if (candidate.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {\n /*\n * …except one whose schema-plan check could not be ANSWERED (`SchemaPlanSyncState.UNANSWERABLE`).\n * It cannot land, and running it only throws (every cause is listed on that member — no built\n * registry and a planner-contract mismatch among them), so holding the head of the queue for it stops every other task: the\n * whole-queue refusal this loop exists not to be. Passed over, not dropped: when nothing else is\n * ready it is still selected below, so its executor's refusal names the cause.\n */\n if (resolution.unanswerableSchemaPlanTaskRefs.has(candidate.taskRef)) {\n unanswerableGenerationStep ??= candidate;\n continue;\n }\n selected = candidate;\n break;\n }\n const stuckEntry = await this.classifyStuckBuildTask(candidate, inFlightTaskRefs);\n if (stuckEntry !== null) {\n stuck.push(stuckEntry);\n continue;\n }\n selected = candidate;\n break;\n }\n if (selected === undefined && unanswerableGenerationStep !== undefined) {\n selected = unanswerableGenerationStep;\n } else if (unanswerableGenerationStep !== undefined) {\n this.logger.warn?.(\n 'Build dispatch passed over a migration step whose `wildo db diff --check` neither passed nor reported drift '\n + '(no accepted schema plan, no built backend registry, a CLI that could not import or spawn, a timeout, an '\n + 'unparseable lockfile, or an engine planner-contract mismatch — run `wildo db diff` to see which). The rest '\n + 'of the plan proceeds; the step is offered again once the check answers.',\n { deferredTaskRef: unanswerableGenerationStep.taskRef, selectedTaskRef: selected?.taskRef },\n );\n }\n if (selected === undefined) {\n /*\n * Everything ready has already run and none of it landed. A DISTINCT terminal from\n * `ApplicationBuildPlanExhaustedError`, which means the opposite and is healthy — conflating\n * them would let a wholly stuck build read as a finished one.\n */\n throw this.buildUnlandableTaskError(stuck, {\n taskCount: graph.tasks.length,\n readyTaskRefs: ready.map((entry) => entry.taskRef),\n landedTaskRefs: [...landedTaskRefs].sort(),\n unverifiableLandedTaskRefs: resolution.unverifiableLandedTaskRefs,\n });\n }\n // A task being built right now is not a finding (#1528); only the rest are worth a warning.\n if (stuck.some((entry) => entry.reason !== Workbench_BuildTaskStuckReason.IN_FLIGHT)) {\n const stuckByReason = Object.fromEntries(\n Object.values(Workbench_BuildTaskStuckReason).map((reason) => [reason, stuck.filter((entry) => entry.reason === reason).map((entry) => entry.taskRef)]),\n );\n this.logger.warn?.(\n `Build dispatch skipped ${stuck.length} ready task(s) that cannot make progress. Those that already RAN `\n + 'either wrote their product without committing it (commit it to land them) or declared a product the '\n + 'run did not produce (the declaration or the work is wrong). Those that are '\n + 'PARKED are waiting on an answer, and re-dispatching one would abandon its persisted session. Their '\n + 'dependents stay blocked while the rest of the plan proceeds.',\n { skippedTaskRefs: stuck.map((entry) => entry.taskRef), stuckByReason, selectedTaskRef: selected.taskRef },\n );\n }\n const task = selected;\n if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {\n const evidencePaths = await this.generationSteps.resolveGenerationStepEvidencePaths(task);\n const evidenceRoots = [...new Set(evidencePaths.map((evidencePath) => `${evidencePath.split('/').slice(0, -1).join('/')}/`))].sort();\n const plan: ApplicationBuildDispatchPlan = {\n taskRef: task.taskRef,\n objective: task.objective,\n targetKind: task.target.kind,\n produces: task.produces,\n generationStepRef: task.target.generationStepRef,\n allowedPathPrefixes: evidenceRoots,\n prohibitedPathPrefixes: [],\n // The pipelines validate their own output; skills are a coding agent's channel, not this executor's.\n requiredChecks: [],\n installedSkillRefs: [],\n readyTaskRefs: ready.map((entry) => entry.taskRef),\n landedTaskRefs: [...landedTaskRefs].sort(),\n unverifiableLandedTaskRefs: resolution.unverifiableLandedTaskRefs,\n };\n return { kind: 'GENERATION_STEP', plan, task, stuckTasks: stuck };\n }\n const boundary = resolveBuildPlanTaskCodingPolicy(\n task as Parameters<typeof resolveBuildPlanTaskCodingPolicy>[0],\n this.readApplicationWorkspaceEntries(),\n );\n const contract = await this.composeTaskCodingContract(task, boundary, graph.tasks.length);\n\n const plan: ApplicationBuildDispatchPlan = {\n taskRef: task.taskRef,\n objective: task.objective,\n targetKind: task.target!.kind,\n produces: task.produces,\n allowedPathPrefixes: contract.mutationScope.allowedPathPrefixes,\n prohibitedPathPrefixes: contract.mutationScope.prohibitedPathPrefixes,\n requiredChecks: contract.verificationIntent.requiredChecks,\n installedSkillRefs: contract.installedSkillRefs,\n readyTaskRefs: ready.map((entry) => entry.taskRef),\n landedTaskRefs: [...landedTaskRefs].sort(),\n unverifiableLandedTaskRefs: resolution.unverifiableLandedTaskRefs,\n };\n\n return { kind: 'CODING', plan, contract, stuckTasks: stuck };\n }\n\n /**\n * Which tasks have landed, read from GIT.\n *\n * A task has landed when every file it PRODUCES is committed — tracked, and with HEAD, index and worktree\n * in agreement. Not \"the file exists\": an untracked or half-edited file is work in progress, and treating\n * it as landed would let the next task build on something nobody accepted.\n *\n * This replaced a replay of a journal stream that had no writer anywhere, so the answer was permanently\n * \"nothing has landed\" and the loop could never advance past its first task. Git also answers correctly\n * after a restart, on a fresh clone, and on the other side of a branch switch — none of which an\n * in-memory journal can.\n */\n /**\n * How far the current build plan's execution has progressed — the eligibility board's input for the\n * \"plan complete ⇒ re-decompose is sequencing, not a live option\" gate. `undefined` when the\n * application has no (valid) build plan: absence of a plan is not zero-of-zero progress.\n */\n public async resolveBuildExecutionProgress(): Promise<{\n readonly totalTasks: number;\n readonly landedTasks: number;\n readonly readyTasksAllStuck?: readonly string[];\n } | undefined> {\n let plan: Awaited<ReturnType<typeof this.readBuildPlan>>;\n try {\n plan = await this.readBuildPlan();\n } catch {\n return undefined;\n }\n const { landed } = await this.resolveLandedTaskRefs(plan.tasks);\n const progress = { totalTasks: plan.tasks.length, landedTasks: landed.size };\n const readyTasksAllStuck = await this.resolveReadyTasksAllStuck(plan, landed);\n return readyTasksAllStuck === undefined ? progress : { ...progress, readyTasksAllStuck };\n }\n\n /**\n * The ready tasks, when EVERY one is stuck — the state in which `dispatchNextBuildTask` refuses\n * before starting anything (#1547). The eligibility board withholds the dispatch playbook on it, so an\n * unattended loop stops offering a run that can only fail.\n *\n * Asked with the SAME classification the selector uses, so the board and the dispatcher cannot\n * disagree about whether anything can run. A generation step is never stuck by that classification,\n * so a ready one means something is dispatchable. Undefined whenever the answer is not positively\n * \"all stuck\" — nothing ready, something dispatchable, or a classification that threw — because a gate\n * that closes on an unreadable answer withholds work that may well be runnable.\n */\n private async resolveReadyTasksAllStuck(\n plan: Awaited<ReturnType<typeof this.readBuildPlan>>,\n landed: ReadonlySet<string>,\n ): Promise<readonly string[] | undefined> {\n if (landed.size >= plan.tasks.length) return undefined;\n const ready = selectReadyBuildPlanTasks(plan, landed);\n if (ready.length === 0) return undefined;\n const stuck: string[] = [];\n for (const task of ready) {\n if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) return undefined;\n let entry: ApplicationBuildStuckTask | null;\n try {\n entry = await this.classifyStuckBuildTask(task);\n } catch {\n return undefined;\n }\n // A task being built right now is progress, not stuck: the plan is not blocked while a wave runs.\n if (entry === null || entry.reason === Workbench_BuildTaskStuckReason.IN_FLIGHT) return undefined;\n stuck.push(task.taskRef);\n }\n return stuck;\n }\n\n /**\n * What LANDED, and what of it was PROVEN — the maturity reading's evidence input (#1496).\n *\n * Exposed here rather than recomputed by the reading, because \"did this task land\" is a question\n * about committed bytes that this service already answers, and a second implementation of it is\n * how two surfaces come to disagree about whether a task is done.\n *\n * The two sets differ by `unverifiableLandedTaskRefs`: a task that declares no product cannot be\n * probed, so a completed durable run lands it as RAN-not-PROVEN rather than stalling the queue\n * (`application-creation-directive.md` — mark, never gate). A requirement whose only build work is\n * such a task stops at `BUILT`, which is the honest reading of it.\n *\n * `undefined` when the application has no build plan OR its plan cannot be read — absence is not\n * an empty landing, and a reading that treated it as one would report every requirement as unbuilt\n * for a reason that has nothing to do with the requirements.\n *\n * Absence is tested DIRECTLY, like `describeBuildPlanBoard` beside it and for its reason:\n * `readBuildPlan` throws the same class for a plan that exists and fails validation, so catching\n * alone would flatten \"could not look\" into \"nothing there\" — and here that difference is a\n * landed artifact saying an application has built nothing.\n */\n public async resolveLandedTaskEvidence(): Promise<{ readonly landedTaskRefs: readonly string[]; readonly provenTaskRefs: readonly string[] } | undefined> {\n if (!(await this.hasAuthoredBuildPlan())) return undefined;\n let plan: Awaited<ReturnType<typeof this.readBuildPlan>>;\n try {\n plan = await this.readBuildPlan();\n } catch {\n return undefined;\n }\n const resolution = await this.resolveLandedTaskRefs(plan.tasks);\n const unverifiable = new Set(resolution.unverifiableLandedTaskRefs);\n const landedTaskRefs = [...resolution.landed];\n return { landedTaskRefs, provenTaskRefs: landedTaskRefs.filter((taskRef) => !unverifiable.has(taskRef)) };\n }\n\n /**\n * The per-task build record an operator or an agent reads in ONE call (#1521).\n *\n * Composed entirely from what already exists — the plan, the landing resolution, the actor plane's\n * execution rows, and the stuck classification the selector uses — and stored nowhere. A second\n * ledger of attempts would be a second answer to \"what happened to this task\", and the rows the\n * engine already writes are the first.\n *\n * `undefined` when the application has no build plan, for the reason `resolveLandedTaskEvidence`\n * gives: absence is not an empty build.\n */\n /**\n * Put a build task back in the queue after the reason it did not land was fixed (#1535). The ref must\n * be a task of THIS build plan: re-arming a ref the plan does not carry would record a decision about\n * nothing, and a typo would read as success.\n */\n public async rearmBuildTask(\n taskRef: string,\n request: { readonly reason: BuildTaskRearmReason; readonly note: string },\n session?: CompanionExecutionSessionContext,\n ): Promise<{ readonly rearmedRunTaskIds: readonly string[]; readonly rearm: BuildTaskRearm }> {\n const plan = await this.readBuildPlan();\n if (!plan.tasks.some((task) => task.taskRef === taskRef)) {\n throw new NothingToRearmError(`\"${taskRef}\" is not a task of this application's build plan, so there is nothing to re-arm.`);\n }\n return this.dispatch.rearmBuildTask(taskRef, request, session);\n }\n\n public async describeBuildTaskRecords(session?: CompanionExecutionSessionContext): Promise<ApplicationBuildTaskRecords | undefined> {\n if (!(await this.hasAuthoredBuildPlan())) return undefined;\n const plan = await this.readBuildPlan();\n const resolution = await this.resolveLandedTaskRefs(plan.tasks);\n const ready = new Set(selectReadyBuildPlanTasks(plan, resolution.landed).map((task) => task.taskRef));\n const unverifiable = new Set(resolution.unverifiableLandedTaskRefs);\n\n const listed = await Promise.all([APPLICATION_CODING_SYSTEM_REF, APPLICATION_BUILD_SYSTEM_REF].map((systemRef) =>\n this.executions.listActorExecutions(CompanionExecutionsListQuerySchema.parse({ systemRef, limit: BUILD_TASK_ATTEMPT_PAGE_CAP }), session)));\n const attemptsTruncated = listed.some((page) => page.length >= BUILD_TASK_ATTEMPT_PAGE_CAP);\n const attemptsByTask = new Map<string, ApplicationBuildTaskAttempt[]>();\n for (const projected of listed.flat().map(projectBuildTaskAttempt)) {\n if (projected === null) continue;\n const list = attemptsByTask.get(projected.taskRef) ?? [];\n list.push(projected.attempt);\n attemptsByTask.set(projected.taskRef, list);\n }\n for (const list of attemptsByTask.values()) list.sort((left, right) => right.startedAt.localeCompare(left.startedAt));\n\n const committedTree = this.createCommittedTreeReader();\n const worktree = this.createWorktreeReader();\n const records: ApplicationBuildTaskRecord[] = [];\n for (const task of plan.tasks) {\n const attempts = attemptsByTask.get(task.taskRef) ?? [];\n const landed = resolution.landed.has(task.taskRef);\n const status = landed ? WorkbenchBuildPlanTaskStatus.LANDED\n : ready.has(task.taskRef) ? WorkbenchBuildPlanTaskStatus.READY\n : WorkbenchBuildPlanTaskStatus.BLOCKED;\n const isGenerationStep = task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP;\n const stuck = status === WorkbenchBuildPlanTaskStatus.READY && !isGenerationStep\n ? await this.classifyStuckBuildTask(task) : null;\n let unmetProbes: ApplicationBuildTaskUnmetProbe[] | undefined;\n let schemaPlanSyncState: SchemaPlanSyncState | undefined;\n if (!landed && attempts.some(isCountedBuildTaskAttempt)) {\n if (isGenerationStep) {\n const condition = await this.generationSteps.resolveGenerationStepLandedCondition(task);\n if (condition.kind === ApplicationBuildGenerationStepLandedKind.SCHEMA_PLAN_IN_SYNC) {\n schemaPlanSyncState = await this.generationSteps.readSchemaPlanSyncState();\n } else {\n unmetProbes = [];\n for (const path of condition.paths) {\n const probe: BuildPlanTaskLandedProbe = { kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE, path };\n if (await this.isLandedProbeSatisfied(probe, committedTree)) continue;\n unmetProbes.push({ probe, satisfiedInWorkingTree: await this.isLandedProbeSatisfied(probe, worktree) });\n }\n }\n } else {\n unmetProbes = [];\n for (const probe of resolveBuildTaskLandedProbes(task)) {\n if (await this.isLandedProbeSatisfied(probe, committedTree)) continue;\n unmetProbes.push({\n probe,\n satisfiedInWorkingTree: await this.isLandedProbeSatisfied(probe, worktree),\n ...(isShellProbe(probe) ? { shell: await this.explainShellProbe(probe, committedTree) } : {}),\n });\n }\n }\n }\n const waitingOn = status === WorkbenchBuildPlanTaskStatus.BLOCKED\n ? task.prerequisiteTaskRefs.filter((prerequisite) => !resolution.landed.has(prerequisite)) : undefined;\n records.push({\n taskRef: task.taskRef,\n targetKind: String(task.target?.kind ?? ''),\n status,\n attempts,\n ...(stuck !== null ? { stuck } : {}),\n ...(unmetProbes !== undefined ? { unmetProbes } : {}),\n ...(schemaPlanSyncState !== undefined ? { schemaPlanSyncState } : {}),\n ...(waitingOn !== undefined ? { waitingOn } : {}),\n ...(landed && unverifiable.has(task.taskRef) ? { unverifiable: true } : {}),\n });\n }\n\n const stuckByReason = Object.fromEntries(\n Object.values(Workbench_BuildTaskStuckReason).map((reason) => [reason, records.filter((record) => record.stuck?.reason === reason).length]),\n ) as Record<Workbench_BuildTaskStuckReason, number>;\n const notLanded = records.filter((record) => record.status !== WorkbenchBuildPlanTaskStatus.LANDED);\n // A dispatch refused before it started is shown in its task's history and counted by no figure below (#1581).\n const started = (record: ApplicationBuildTaskRecord) => record.attempts.filter(isCountedBuildTaskAttempt);\n const unavailableRuntimes = await readUnavailableApplicationRuntimes(this.companionContext.saasRoot);\n return {\n tasks: records,\n summary: {\n taskCount: records.length,\n landed: records.length - notLanded.length,\n blocked: records.filter((record) => record.status === WorkbenchBuildPlanTaskStatus.BLOCKED).length,\n readyNeverAttempted: records.filter((record) => record.status === WorkbenchBuildPlanTaskStatus.READY && started(record).length === 0).length,\n readyToRetry: records.filter((record) => record.status === WorkbenchBuildPlanTaskStatus.READY && started(record).length > 0 && !record.stuck).length,\n stuckByReason,\n attempts: records.reduce((total, record) => total + started(record).length, 0),\n completedAttemptsWithoutLanding: notLanded.reduce(\n (total, record) => total + record.attempts.filter((attempt) => attempt.status === FlowsActors_Status.COMPLETED).length, 0),\n repeatedlyAttemptedWithoutLanding: notLanded.filter((record) => started(record).length > 1).map((record) => record.taskRef),\n spend: deriveBuildSpend(records),\n parallelism: {\n degree: readBuildParallelism(this.companionContext.saasRoot),\n overlappingAttempts: records.reduce((total, record) => total + record.attempts.filter((attempt) => attempt.concurrency !== undefined).length, 0),\n interferenceSuspectedAttempts: records.reduce((total, record) => total + record.attempts.filter((attempt) => attempt.interferenceSuspected === true).length, 0),\n contendedPaths: [...new Set(records.flatMap((record) => record.attempts.flatMap((attempt) => attempt.concurrency?.contendedPaths ?? [])))].sort(),\n },\n },\n attemptsTruncated,\n ...(unavailableRuntimes === undefined ? {} : { unavailableRuntimes }),\n repairsOwed: deriveRepairsOwed(attemptsByTask),\n };\n }\n\n /**\n * Every build-plan task in the DISPATCH view — the creation board's `workbenchBuildPlanTasks`\n * rows (`workbench-creation-board-resources.md`, Phase 2).\n *\n * `status` is computed per read, never stored: `landed` = the task's evidence paths are all\n * committed (the same resolution the dispatcher itself selects by), `ready` = every prerequisite\n * landed and it has not, `blocked` = otherwise. Exactly one holds.\n *\n * An application with NO authored build plan answers ZERO TASKS rather than throwing: the plan\n * file legitimately does not exist until build-decompose runs, so \"nothing there yet\" is the\n * true answer. Absence is tested DIRECTLY (the exports carry no `buildPlanSpecification`) rather\n * than by catching `ApplicationBuildPlanUnavailableError`, because `readBuildPlan` throws that\n * SAME class for a plan that exists and fails schema or semantic validation — and flattening an\n * invalid plan into an empty board would be \"could not look\" wearing \"nothing there\".\n */\n public async describeBuildPlanBoard(): Promise<readonly {\n readonly taskRef: string;\n readonly objective: string;\n readonly targetKind: string;\n readonly functionalTopic: string;\n readonly status: WorkbenchBuildPlanTaskStatus;\n readonly prerequisiteTaskRefs: readonly string[];\n }[]> {\n if (!(await this.hasAuthoredBuildPlan())) return [];\n\n const plan = await this.readBuildPlan();\n const { landed } = await this.resolveLandedTaskRefs(plan.tasks);\n const ready = new Set(selectReadyBuildPlanTasks(plan, landed).map((task) => task.taskRef));\n return plan.tasks.map((task) => ({\n taskRef: task.taskRef,\n objective: task.objective,\n targetKind: String(task.target?.kind ?? ''),\n functionalTopic: String(task.functionalTopic),\n status: landed.has(task.taskRef) ? WorkbenchBuildPlanTaskStatus.LANDED\n : ready.has(task.taskRef) ? WorkbenchBuildPlanTaskStatus.READY\n : WorkbenchBuildPlanTaskStatus.BLOCKED,\n prerequisiteTaskRefs: task.prerequisiteTaskRefs,\n }));\n }\n\n /**\n * What ONE landing resolution found — returned rather than parked on the instance.\n *\n * These two were fields (`lastUnverifiableLandedTaskRefs`, `lastUnanswerableSchemaPlanTaskRefs`),\n * written as the probe's last statement and read by its caller one microtask later. The service is\n * a singleton in a process serving concurrent requests and the probe is spawn-heavy, so two\n * in-flight resolutions interleave at every await and the caller could read the OTHER pass's\n * answer — a requirement dropping from VERIFIED to BUILT because a workbench poll landed between\n * two lines. Returning them makes each caller's answer its own by construction (#1496's review).\n */\n private async resolveLandedTaskRefs(tasks: readonly BuildPlanTask[]): Promise<LandedTaskResolution> {\n const landed = new Set<string>();\n const unverifiable = new Set<string>();\n const unanswerable = new Set<string>();\n const committedTree = this.createCommittedTreeReader();\n /*\n * Ask git ONCE for the whole plan's probe paths, before the per-task loop asks for them one at a\n * time. Each `isCommitted` costs an `ls-files` + `status` PAIR of subprocesses, and a plan's\n * probes run to hundreds of distinct paths — so this loop was the companion's dominant cost and,\n * because a spawn storm starves the event loop, the reason `/health/ready` stopped answering\n * inside the ten seconds the workbench allows it (see `selectCommittedPaths`, which records the\n * measurement and the repo-root-prefix trap it contains).\n *\n * Only `COMMITTED_FILE` probes, because they are the only kind that asks `isCommitted` — the two\n * DECLARES kinds answer from `readText` instead, and priming their paths would ask git a question\n * whose answer is then discarded. It would be harmless and free inside the batch, which is\n * exactly why it has to be deliberate rather than convenient: it would also silently widen what\n * `application-build-dispatch-landing-path-reuse` measures.\n *\n * Generation-step conditions ARE gathered, by resolving them once into a map the loop then reads.\n * \"They are few, and they still resolve per path\" was true of the TASKS and wrong about the\n * PATHS: the i18n step's evidence is `planner units x enabled locales`, so three generation-step\n * tasks expanded to seventeen `status --porcelain` spawns per resolution — measured at the spawn\n * site 2026-09-22, where they were the largest source left after the probe paths were batched.\n * Resolving the condition here rather than inside the loop is what lets them join the same batch\n * without asking for each condition twice.\n */\n const generationStepConditions = new Map<string, Awaited<ReturnType<typeof this.generationSteps.resolveGenerationStepLandedCondition>>>();\n for (const task of tasks) {\n if (task.target?.kind !== BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) continue;\n generationStepConditions.set(task.taskRef, await this.generationSteps.resolveGenerationStepLandedCondition(task));\n }\n await committedTree.primeCommitted([\n ...tasks.flatMap((task) => resolveBuildTaskLandedProbes(task)\n .filter((probe) => probe.kind === BuildPlanTaskLandedProbeKind.COMMITTED_FILE)\n .flatMap(landedProbePaths)),\n ...[...generationStepConditions.values()].flatMap((condition) => (\n condition.kind === ApplicationBuildGenerationStepLandedKind.COMMITTED_PATHS ? condition.paths : []\n )),\n ]);\n /*\n * And ONE `cat-file --batch` for every path whose committed TEXT a DECLARES probe will read,\n * rather than a `git show` each. Measured at the spawn site 2026-09-22, these were 20 of 45\n * spawns in a ten-second window — four distinct paths, re-read once per resolution.\n *\n * `ANY_COMMITTED_FILE_DECLARES` short-circuits, so this reads candidates the lazy route might\n * have skipped. That is deliberate and it is not a cost: the whole set rides one subprocess, and\n * the bytes are the same bytes. What it buys is that the count no longer depends on which\n * candidate happened to satisfy the probe first.\n */\n await committedTree.primeTexts(tasks.flatMap((task) => resolveBuildTaskLandedProbes(task)\n .filter((probe) => probe.kind !== BuildPlanTaskLandedProbeKind.COMMITTED_FILE)\n .flatMap(landedProbePaths)));\n for (const task of tasks) {\n if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {\n /*\n * A generation step declares HOW it proves it landed, because not every step proves it with\n * files. Most name the exact unit files their pipelines write (see that service's JSDoc for\n * why a directory prefix would be dishonest). The migration step cannot — its artifact is\n * `backend-api/migrations/<timestamp>_<name>/migration.sql` and the timestamp is minted\n * during the run — so it lands on the STATE it exists to reach instead.\n *\n * Read the condition, never the evidence paths: for the migration step those name the\n * accepted lockfile, which predates the step, so landing on it would pass having verified\n * nothing.\n */\n // Resolved ONCE above, so its paths could join the batch; reading it again here would ask the\n // generation-step service the same question twice per resolution.\n const condition = generationStepConditions.get(task.taskRef)\n ?? await this.generationSteps.resolveGenerationStepLandedCondition(task);\n if (condition.kind === ApplicationBuildGenerationStepLandedKind.SCHEMA_PLAN_IN_SYNC) {\n const syncState = await this.generationSteps.readSchemaPlanSyncState();\n if (syncState === SchemaPlanSyncState.IN_SYNC) landed.add(task.taskRef);\n else if (syncState === SchemaPlanSyncState.UNANSWERABLE) unanswerable.add(task.taskRef);\n continue;\n }\n if (condition.paths.length === 0) continue;\n const committedPaths = await Promise.all(condition.paths.map((path) => committedTree.isCommitted(path)));\n if (committedPaths.every(Boolean)) landed.add(task.taskRef);\n continue;\n }\n const probes = resolveBuildTaskLandedProbes(task);\n if (probes.length === 0) {\n /*\n * A task that declares NO product cannot prove it landed — and that is a WORKFLOW gap, not a\n * gate. `application-creation-directive.md` asks the deciding question directly: if this\n * refuses, what does the operator do next? The answer here is \"declare what the task\n * produces\", which is authoring work — so it must MARK and let the loop continue, exactly as\n * an unapproved release travels with its advisory instead of stopping the build.\n *\n * It was a gate until 2026-09-12, and the cost is measured. Readiness is \"not landed\", so an\n * unprovable task is ready FOREVER and is permanently `ready[0]`: `dispatch-next` re-ran\n * `build-task-contact-schema` three times at roughly $7.50 a turn, and the loop guard below\n * then converted that into a permanent refusal at the same task. Both are stuck; neither is\n * honest about WHY. Against Wonder CRM's 42-task plan the two candidate fixes measure\n * 1 reachable (skip it, leave its dependents blocked) against 42 (run it once, mark it,\n * advance) — because every product-declaring task there sits behind one that declares none.\n *\n * So landing here means RAN, not PROVEN, and the difference is carried rather than hidden:\n * the ref goes into `unverifiableLandedTaskRefs`, which rides the dispatch plan to every\n * caller. Keyed on a COMPLETED durable run, never on the task's mere existence — a task\n * nobody has run has not landed by any reading, and admitting it would let the whole plan\n * report itself finished having done nothing.\n */\n const priorRun = await this.dispatch.findCompletedRunForBuildTask(task.taskRef);\n if (priorRun !== null) {\n landed.add(task.taskRef);\n unverifiable.add(task.taskRef);\n }\n continue;\n }\n const answered = await Promise.all(probes.map((probe) => this.isLandedProbeSatisfied(probe, committedTree)));\n if (answered.every(Boolean)) landed.add(task.taskRef);\n }\n return { landed, unverifiableLandedTaskRefs: [...unverifiable].sort(), unanswerableSchemaPlanTaskRefs: unanswerable };\n }\n\n /**\n * Which of a stuck task's probed paths hold its product in the WORKING TREE while failing at HEAD —\n * or `undefined` when the working tree does not satisfy the probes either.\n *\n * Explanation only, never landing: a task satisfied here is still NOT landed, because the worktree\n * is work in progress until it is committed. What this decides is which remedy the refusal names.\n * Asked only for a task that already ran and is stuck, so it costs nothing on the hot path.\n */\n private async resolveProducedButUncommittedPaths(task: BuildPlanTask): Promise<readonly string[] | undefined> {\n const probes = resolveBuildTaskLandedProbes(task);\n if (probes.length === 0) return undefined;\n const worktree = this.createWorktreeReader();\n const satisfied = await Promise.all(probes.map((probe) => this.isLandedProbeSatisfied(probe, worktree)));\n if (!satisfied.every(Boolean)) return undefined;\n const committedTree = this.createCommittedTreeReader();\n const paths = [...new Set(probes.flatMap(landedProbePaths))];\n const committed = await Promise.all(paths.map((path) => committedTree.isCommitted(path)));\n // A shell probe names no fixed path: the files that must be committed are the ones the RESOLVED\n // shell says compose the surface, so they come from its explanation (#1538).\n const shellUncommitted = (await Promise.all(probes.filter(isShellProbe).map((probe) => this.explainShellProbe(probe, committedTree))))\n .flatMap((explanation) => explanation.uncommittedPaths);\n return [...new Set([...paths.filter((_, index) => !committed[index]), ...shellUncommitted])].sort();\n }\n\n /** The working tree behind the same reader shape: a path \"is committed\" here when it exists on disk. Never throws. */\n private createWorktreeReader(): CommittedTreeReader {\n const texts = new Map<string, Promise<string | undefined>>();\n const readText = (path: string) => memoizeByPath(texts, path, () => readFile(join(this.companionContext.saasRoot, path), 'utf8').catch(() => undefined));\n return {\n isCommitted: async (path) => (await readText(path)) !== undefined,\n readText,\n // Reading the worktree spawns nothing, so there is no batch to win here.\n primeCommitted: async () => {},\n primeTexts: async () => {},\n shellWitness: this.memoizedShellWitness(),\n };\n }\n\n /** A fresh {@link CommittedTreeReader} for one landing resolution; never shared across resolutions. */\n private createCommittedTreeReader(): CommittedTreeReader {\n const committed = new Map<string, Promise<boolean>>();\n const texts = new Map<string, Promise<string | undefined>>();\n return {\n isCommitted: (path) => memoizeByPath(committed, path, () => this.git.isWorktreePathCommitted(path)),\n readText: (path) => memoizeByPath(texts, path, () => this.git.readCommittedText(path)),\n primeCommitted: async (paths) => {\n /*\n * One batched answer for the whole set, seeded into the SAME memo the per-path route fills.\n * Paths already resolved (or in flight) are left alone: their answer is the one this\n * resolution has been handing out, and replacing it mid-pass would let one landing decision\n * rest on two different readings of the tree.\n */\n const unanswered = [...new Set(paths)].filter((path) => !committed.has(path));\n if (unanswered.length === 0) return;\n const committedPaths = await this.git.selectCommittedPaths(unanswered);\n for (const path of unanswered) {\n if (!committed.has(path)) committed.set(path, Promise.resolve(committedPaths.has(path)));\n }\n },\n primeTexts: async (paths) => {\n // Same contract as `primeCommitted`: seed the memo `readText` fills, never replace an answer\n // this resolution has already handed out.\n const unread = [...new Set(paths)].filter((path) => !texts.has(path));\n if (unread.length === 0) return;\n const committedTexts = await this.git.readCommittedTexts(unread);\n for (const path of unread) {\n if (!texts.has(path)) texts.set(path, Promise.resolve(committedTexts.get(path)));\n }\n },\n shellWitness: this.memoizedShellWitness(),\n };\n }\n\n /**\n * Is one landed probe satisfied by the COMMITTED tree?\n *\n * Every answer is about committed bytes (`readCommittedText` returns nothing for an uncommitted or\n * half-edited path), so landing survives a restart, a fresh clone and a branch switch — git is the\n * accepted state, and two branches with different answers merge.\n *\n * A declaration is matched as a WHOLE WORD, not as a substring. `deal.schemas.ts` carries prose\n * naming its own build tasks, so a bare `includes` would find `pipelineStageId` inside a comment\n * that merely mentions it and report a task landed on its own documentation. Whole-word matching\n * still counts a mention in a comment — an AST question is the sound version and needs the\n * introspection subprocess — so this errs toward LANDED only for a file that names the symbol\n * without declaring it, and never for the scaffold shapes that produced #597, where the symbol is\n * absent entirely.\n */\n /** A once-per-reader memo of {@link resolveShellWitness}, so a landing resolution introspects at most once. */\n private memoizedShellWitness(): () => Promise<ShellWitness> {\n let pending: Promise<ShellWitness> | undefined;\n return () => (pending ??= this.resolveShellWitness());\n }\n\n /**\n * The resolved shell beside the placement plan (#1538): what each surface carries, by identity,\n * against what the plan PLACED there and what it DECLINED.\n *\n * Read through introspection because the identities exist only in the RESOLVED configuration: a\n * module's contribution merges into the shell at runtime, and the tree's text spells none of the\n * plan's refs. Every failure is an `answered: false` with its reason — never a throw, which would\n * abort the whole landing resolution for one surface, and never an empty \"carries nothing\", which\n * would read as a real no.\n */\n private async resolveShellWitness(): Promise<ShellWitness> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const authored = (exports as unknown as Record<string, unknown>).placementPlanSpecification;\n if (authored === undefined || authored === null) {\n return { answered: false, reason: 'The application has no placement plan, so nothing says what its shell should carry.' };\n }\n const plan = PlacementPlanSchema.safeParse(authored);\n if (!plan.success) {\n return { answered: false, reason: `The placement plan does not satisfy its schema: ${plan.error.issues.slice(0, 2).map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ')}` };\n }\n const serviceKey = this.introspection.describeCatalog().defaultFrontendServiceKey;\n if (!serviceKey) {\n return { answered: false, reason: 'The application declares no SaaS frontend to read its shell from.' };\n }\n let shell: AppShellPlacementContentResult;\n try {\n const result = await this.introspection.requestInfo({ serviceKey, behavior: 'app-shell-placement-content' });\n if (!result.success) return { answered: false, reason: `The shell could not be read: ${result.error.message}` };\n shell = result.data as AppShellPlacementContentResult;\n } catch (error) {\n return { answered: false, reason: `The shell could not be read: ${describeCaughtError(error)}` };\n }\n\n const carried = new Map<PlacementSurface, Set<string>>();\n const contributingPaths = new Map<PlacementSurface, string[]>();\n for (const row of shell.surfaces) {\n const identities = new Set<string>();\n for (const launcher of row.launchers) {\n const identity = launcherShellIdentity(launcher);\n if (identity !== undefined) identities.add(identity);\n }\n for (const destinationRef of row.destinationRefs) identities.add(settingsDestinationShellIdentity(destinationRef));\n carried.set(row.surface, identities);\n contributingPaths.set(row.surface, [shellSurfaceConfigFile(row.surface), ...row.contributingModuleIds.map(shellModuleContributionFile)]);\n }\n const expectations = derivePlacementPlanShellExpectations(plan.data);\n const placed = new Map([...expectations.placed].map(([surface, entries]) => [surface, entries.map((entry) => entry.shellIdentity)] as const));\n const declined = expectations.declined.map((entry) => entry.shellIdentity);\n return { answered: true, carried, contributingPaths, placed, declined };\n }\n\n /**\n * Why a shell probe is or is not satisfied (#1538) — the answer landing uses, and the detail the build\n * record and the stuck classification report. One function, so the three cannot disagree.\n */\n private async explainShellProbe(\n probe: ShellLandedProbe,\n tree: CommittedTreeReader,\n ): Promise<ShellProbeExplanation> {\n const witness = await tree.shellWitness();\n if (!witness.answered) {\n return { satisfied: false, unanswerable: witness.reason, missing: [], declinedButPresent: [], uncommittedPaths: [] };\n }\n const uncommittedOf = async (surface: PlacementSurface): Promise<string[]> => {\n const paths = witness.contributingPaths.get(surface) ?? [];\n const committed = await Promise.all(paths.map((path) => tree.isCommitted(path)));\n return paths.filter((_, index) => !committed[index]);\n };\n if (probe.kind === BuildPlanTaskLandedProbeKind.SHELL_SURFACE_CARRIES_PLAN) {\n const carried = witness.carried.get(probe.surface) ?? new Set<string>();\n const missing = (witness.placed.get(probe.surface) ?? []).filter((identity) => !carried.has(identity));\n const declinedButPresent = witness.declined.filter((identity) => carried.has(identity));\n const uncommittedPaths = await uncommittedOf(probe.surface);\n return {\n satisfied: missing.length === 0 && declinedButPresent.length === 0 && uncommittedPaths.length === 0,\n missing,\n declinedButPresent,\n uncommittedPaths,\n };\n }\n // SHELL_CARRIES_A_PLACEMENT: some surface carries some subject the plan placed on it, from files at HEAD.\n const allUncommitted: string[] = [];\n for (const [surface, identities] of witness.placed) {\n const carried = witness.carried.get(surface) ?? new Set<string>();\n if (!identities.some((identity) => carried.has(identity))) continue;\n const uncommittedPaths = await uncommittedOf(surface);\n if (uncommittedPaths.length === 0) return { satisfied: true, missing: [], declinedButPresent: [], uncommittedPaths: [] };\n allUncommitted.push(...uncommittedPaths);\n }\n return {\n satisfied: false,\n missing: allUncommitted.length > 0 ? [] : [...witness.placed.values()].flat(),\n declinedButPresent: [],\n uncommittedPaths: [...new Set(allUncommitted)],\n };\n }\n\n private async isLandedProbeSatisfied(probe: BuildPlanTaskLandedProbe, tree: CommittedTreeReader): Promise<boolean> {\n switch (probe.kind) {\n case BuildPlanTaskLandedProbeKind.COMMITTED_FILE:\n return tree.isCommitted(probe.path);\n case BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES: {\n const text = await tree.readText(probe.path);\n if (text === undefined) return false;\n /*\n * The probe's SITE says whether the declarations are a set or a relation, and where a relation\n * must sit (#1539). A relation read as a set reports a missing edge as landed (#1273 — six of\n * eleven relationship tasks).\n */\n return declarationsAppearAt(text, probe.declarations, probe.site);\n }\n case BuildPlanTaskLandedProbeKind.ANY_COMMITTED_FILE_DECLARES: {\n const texts = await Promise.all(probe.paths.map((path) => tree.readText(path)));\n return texts.some((text) => text !== undefined && declarationsAppearAt(text, probe.declarations, probe.site));\n }\n case BuildPlanTaskLandedProbeKind.SHELL_SURFACE_CARRIES_PLAN:\n case BuildPlanTaskLandedProbeKind.SHELL_CARRIES_A_PLACEMENT:\n return (await this.explainShellProbe(probe, tree)).satisfied;\n default: {\n const unhandled: never = probe;\n throw new Error(`Unhandled build-plan landed probe ${JSON.stringify(unhandled)}.`);\n }\n }\n }\n\n /**\n * Whether the application has AUTHORED a build plan at all — the one absence test every read of the plan shares.\n *\n * A plan legitimately does not exist until `build-decompose` has run, so every NEW application starts in this\n * state, and \"no plan yet\" is a true answer rather than a failure. It is tested DIRECTLY, never by catching\n * `ApplicationBuildPlanUnavailableError`, because `readBuildPlan` throws that same class for a plan that EXISTS\n * and fails validation — flattening an invalid plan into \"nothing there\" would be \"could not look\" wearing\n * \"nothing there\".\n *\n * Two reads use it: the board's task list, which had it inline, and the next-task projection, which did not —\n * so on every new application the board's dispatch-plan list answered 500 CONFIGURATION, logged at high\n * severity with an alert, on every poll (measured 2026-09-21, the first minutes of the end-to-end run #1273).\n */\n public async hasAuthoredBuildPlan(): Promise<boolean> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const authored = (exports as unknown as Record<string, unknown>).buildPlanSpecification;\n return authored !== undefined && authored !== null;\n }\n\n /** The application's accepted build plan, validated before anything is selected from it. */\n private async readBuildPlan(): ReturnType<typeof BuildPlanTaskGraphSchema.parseAsync> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const authored = (exports as unknown as Record<string, unknown>).buildPlanSpecification;\n if (authored === undefined || authored === null) {\n throw new ApplicationBuildPlanUnavailableError(\n 'This application has no build plan. Run the build-decompose playbook first.',\n );\n }\n const parsed = BuildPlanTaskGraphSchema.safeParse(authored);\n if (!parsed.success) {\n throw new ApplicationBuildPlanUnavailableError(\n `The application's build plan does not satisfy its schema: ${parsed.error.issues.slice(0, 3).map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ')}`,\n );\n }\n // Semantic validation too, not just the shape: a graph whose ordering is unsound would let\n // `selectReadyBuildPlanTasks` report a task ready before the work it depends on can have landed.\n //\n // Gated on the FLOOR codes, not on `findings.length > 0` as it was until 2026-09-09. That older\n // reading made this gate disagree with the landing gate about the same graph: an authoring\n // warning — a resource stage whose predecessor is absent from the plan, which is legitimate when\n // the tree already carries that stage — landed happily at the semantic authority and then made\n // the whole plan permanently undispatchable HERE, with the refusal naming a warning. One\n // classification, named once in `_core` beside the codes.\n const findings = validateBuildPlanTaskGraph(parsed.data);\n const blocking = findings.filter((finding) => BUILD_PLAN_TASK_GRAPH_HARD_FLOOR_CODES.includes(finding.code));\n if (blocking.length > 0) {\n throw new ApplicationBuildPlanUnavailableError(\n `The application's build plan fails semantic validation: ${blocking.slice(0, 3).map((finding) => finding.message).join('; ')}`,\n );\n }\n return this.withHostDerivedDocumentationPublicationStep(await this.withHostDerivedMigrationStep(parsed.data));\n }\n\n /**\n * The build plan as the DISPATCH HOST reads it: the authored graph, plus the `database-migrations`\n * generation step whenever the application owes one and the plan does not author it (#1027).\n *\n * ## Why the host derives it rather than trusting the plan\n *\n * `bottom_up.build-decompose`'s method requires that step for every PostgreSQL-backed application,\n * and Wonder CRM's regenerated plan (2026-09-13) carried none — while all six of its schema tasks\n * could only write `shared-lib/`, never `backend-api/migrations/`. Each accepted schema change would\n * have left the model ahead of the accepted plan, and the application's boot gate refuses a missing\n * column (`postgresql_table_schema_mismatch`), so the lane would have taken its own application down.\n *\n * The model was given the rule and never the fact the rule keys on: the brief's workspace truth does\n * not state the database engine, and the method's instruction to `rg` the infra config is a command a\n * generation call cannot run. The validator could not catch it either — it receives the graph alone.\n * And no judgement is involved: whether a migration step is owed is a TOTAL function of two facts the\n * host already holds (`derive-before-you-ask.md`, \"could a function have produced my answer?\").\n *\n * ## The population, and the shape\n *\n * - Owed, per `assessSchemaPlanObligation`, in two cases that differ in whether a schema stage matters:\n * - an ACCEPTED plan and at least one SCHEMA stage — schema changes are what create drift against it;\n * - a declared PostgreSQL store with NO plan yet (#1144), with or without a schema stage — the initial\n * migration is owed by the ENGINE's resources alone, and the backend cannot boot before it exists.\n * This case was invisible while the lockfile was the only fact read: the foundation playbook was\n * believed to write the baseline and never did.\n * An UNDETERMINED store with a schema stage derives the step too, so the obligation stays visible: its\n * sync state is unanswerable, so it is passed over while other work is ready, and when nothing is its\n * refusal names why the store could not be read. A MongoDB-backed application is never offered it.\n * - An AUTHORED `database-migrations` step always wins. The derivation fills an omission; it never\n * second-guesses a plan that states its own ordering.\n * - PREPENDED, with NO prerequisites. Its landing condition is `SCHEMA_PLAN_IN_SYNC`, so it is landed\n * whenever the model and the accepted plan agree and becomes the FIRST ready task the moment an\n * accepted schema change creates drift — which is when it has to run, before anything restarts the\n * backend against a table it cannot build. The method's \"after the last schema stage\" was rejected\n * as the ordering: a schema task the loop guard skips forever (a stuck task never lands) would hold\n * the migration step behind it forever too.\n * - The obligation is read only after an authored step is ruled out, and costs a `stat` whenever a plan\n * is accepted; the authored infra config is loaded only for an application with no lockfile.\n *\n * ## What it costs\n *\n * `SCHEMA_PLAN_IN_SYNC` runs `wildo db diff --check` on every landed resolution, so every build-plan\n * read for such an application now asks the schema planner. Only an IN_SYNC answer lands the step. A\n * DRIFTED answer puts it first. An UNANSWERABLE one (any answer that is neither pass nor drift; the\n * causes are listed on `SchemaPlanSyncState`) leaves it un-landed but PASSED OVER while other tasks are ready, because running it then only throws.\n * This said an unanswerable check \"reads as NOT in sync, the step is offered, and running it over a\n * clean plan generates nothing\" — true of a clean plan, false of an unanswerable one, where offering\n * it first made every dispatch fail and stopped the whole plan (review, 2026-09-13).\n */\n /**\n * A plan that authors documentation CHAPTERS owes a step that PUBLISHES them.\n *\n * Derived rather than authored, for the reason {@link withHostDerivedMigrationStep} is: the\n * obligation follows from what the plan CONTAINS, not from a decision the plan makes. An\n * application with a documentation chapter owes a portal; one without owes nothing.\n *\n * Measured on the first end-to-end journey run (#1273). The plan carried SIX\n * `DOCUMENTATION_CHAPTER` tasks and no publication step, so the chapters were authored and nothing\n * rendered them. The cost was not only an unbuilt portal: `technical-doc/src/pages/search.tsx`\n * imports the search index the publish writes, so that package could not typecheck at all, and\n * `check:technical-doc-typecheck` stayed red for the whole build — failing a documentation task on\n * a red it did not cause, at $19.33. Publishing by hand made 87 outputs and turned the check green\n * in one command.\n *\n * ## The prerequisites are the whole design\n *\n * Unlike the migration step, this one cannot run with `prerequisiteTaskRefs: []`:\n *\n * - **every chapter task**, or it renders a portal missing the chapters still being written;\n * - **`i18n-labels`**, and that one is not a nicety. Publication resolves the application's\n * organization-role documentation and REFUSES without the primary-locale label — *\"requires\n * primary-locale label 'roles.ORG_ADMIN.label'; generate the application's role labels before\n * publishing documentation\"*. Run before labels, it fails on exactly that, which is how the\n * first hand-run of this pipeline failed.\n *\n * Both are read off the graph, so a plan with no labels step simply contributes no such edge\n * rather than acquiring a dangling one.\n */\n private withHostDerivedDocumentationPublicationStep(\n graph: Awaited<ReturnType<typeof BuildPlanTaskGraphSchema.parseAsync>>,\n ): Awaited<ReturnType<typeof BuildPlanTaskGraphSchema.parseAsync>> {\n const authorsPublicationStep = graph.tasks.some((task) => task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP\n && task.target.generationStepRef === ApplicationBuildGenerationStep.DOCUMENTATION_PUBLICATION);\n if (authorsPublicationStep) return graph;\n\n const chapterTaskRefs = graph.tasks\n .filter((task) => (task.produces ?? []).some((product) => product.kind === BuildPlanTaskProductKind.DOCUMENTATION_CHAPTER))\n .map((task) => task.taskRef);\n if (chapterTaskRefs.length === 0) return graph;\n\n if (graph.tasks.some((task) => task.taskRef === HOST_DERIVED_DOCUMENTATION_PUBLICATION_TASK_REF)) {\n // Same refusal as the migration step's: deriving would duplicate a ref, which the graph schema\n // rejects — so say so rather than silently dropping the obligation.\n this.logger.warn?.(\n `The build plan owes a documentation-publication step, but \"${HOST_DERIVED_DOCUMENTATION_PUBLICATION_TASK_REF}\" already names another task; not deriving it.`,\n );\n return graph;\n }\n\n const labelStepRefs = graph.tasks\n .filter((task) => task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP\n && task.target.generationStepRef === ApplicationBuildGenerationStep.I18N_LABELS)\n .map((task) => task.taskRef);\n\n return BuildPlanTaskGraphSchema.parse({\n ...graph,\n tasks: [\n ...graph.tasks,\n {\n taskRef: HOST_DERIVED_DOCUMENTATION_PUBLICATION_TASK_REF,\n objective: 'Publish the application\\'s customer documentation portal, so the chapters this build authored are '\n + 'something a reader can reach. Derived by the dispatch host because the build plan authors documentation '\n + 'chapters and does not author the step that renders them.',\n target: {\n kind: BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP,\n generationStepRef: ApplicationBuildGenerationStep.DOCUMENTATION_PUBLICATION,\n },\n produces: [],\n functionalTopic: MetaWorkflow_FunctionalTopic.ASSEMBLE_VERIFY_AND_ITERATE,\n skillRefs: ['application-consumer-documentation-authoring'],\n prerequisiteTaskRefs: [...chapterTaskRefs, ...labelStepRefs],\n servesRefs: [],\n },\n ],\n });\n }\n\n private async withHostDerivedMigrationStep(\n graph: Awaited<ReturnType<typeof BuildPlanTaskGraphSchema.parseAsync>>,\n ): Promise<Awaited<ReturnType<typeof BuildPlanTaskGraphSchema.parseAsync>>> {\n const authorsMigrationStep = graph.tasks.some((task) => task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP\n && task.target.generationStepRef === ApplicationBuildGenerationStep.DATABASE_MIGRATIONS);\n if (authorsMigrationStep) return graph;\n const hasSchemaStage = graph.tasks.some((task) => task.target?.kind === BuildPlanTaskTargetKind.RESOURCE_STAGE\n && task.target.stage === BuildPlanResourceStage.SCHEMA);\n const { obligation } = await this.generationSteps.assessSchemaPlanObligation();\n const owed = obligation === ApplicationSchemaPlanObligation.BASELINE_OWED\n || (hasSchemaStage && (obligation === ApplicationSchemaPlanObligation.ACCEPTED_PLAN || obligation === ApplicationSchemaPlanObligation.UNDETERMINED));\n if (!owed) return graph;\n if (graph.tasks.some((task) => task.taskRef === HOST_DERIVED_DATABASE_MIGRATIONS_TASK_REF)) {\n // The ref is taken by a task that is NOT a migration step. Deriving would duplicate a ref, which\n // the graph schema refuses — so say so rather than silently dropping the obligation.\n this.logger.warn?.(\n `The build plan owes a database-migrations step, but \"${HOST_DERIVED_DATABASE_MIGRATIONS_TASK_REF}\" already names another task; not deriving it.`,\n );\n return graph;\n }\n return BuildPlanTaskGraphSchema.parse({\n ...graph,\n tasks: [\n {\n taskRef: HOST_DERIVED_DATABASE_MIGRATIONS_TASK_REF,\n objective: (obligation === ApplicationSchemaPlanObligation.BASELINE_OWED\n ? 'Generate the initial migration and its schema-plan baseline, so the tables this PostgreSQL application declares exist before its backend boots. '\n : 'Migrate the schema drift that accepted schema-stage changes created, so the application can still boot. ')\n + 'Derived by the dispatch host because the build plan owes this step and does not author it.',\n target: {\n kind: BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP,\n generationStepRef: ApplicationBuildGenerationStep.DATABASE_MIGRATIONS,\n },\n produces: [],\n functionalTopic: MetaWorkflow_FunctionalTopic.MODEL_DOMAIN_GRAPH,\n skillRefs: ['application-database-migrations'],\n prerequisiteTaskRefs: [],\n servesRefs: [],\n },\n ...graph.tasks,\n ],\n });\n }\n\n /**\n * What the run is allowed to see — the PUSH floor of the dispatch lane's context (issue #253).\n *\n * Widened 2026-09-02 from \"the task itself and nothing else yet\" to the lean mandatory core the\n * epic's re-analysis decided, and deliberately no further: everything an agent might need beyond\n * its target's blast radius is the PULL door's job (`wildo context …`, issue #252), which the\n * `live-queries` source below points at. Anticipating everything here would be the planner trap\n * (#254) re-entering through the push door. Everything is model-safe by construction — the\n * application's own accepted build plan, its own live registry, its own domain plan — and the\n * contract's composer re-asserts `SAFE_FOR_MODEL` on every source regardless.\n *\n * ## Failure posture: best-effort on the derived sources, deliberately\n *\n * The playbook lane's workspace-truth section fails CLOSED, because a tool-less planner with no\n * workspace truth invents module ids. A CODING agent is the opposite case on both counts: it has\n * tools (it can read the tree, and the door), so a missing derived source degrades speed rather\n * than truth — while refusing the dispatch because a subprocess hiccuped would block the build on\n * context the run could recover for itself. So: the TASK is always present, the derived sources\n * are added when their reads succeed, and a failed read is a WARN naming what was omitted.\n *\n * ## No new cache, verified rather than assumed\n *\n * The re-analysis asked for the introspection read to be cached across a 55-task plan. It already\n * is: `CompanionIntrospectionService.requestInfo` carries its own source-state derivation cache,\n * keyed on the observed workspace state — asking again after nothing changed is a cache hit, and\n * a landed task invalidates it by changing the sources it hashes. Adding a second cache here would\n * be a copy that can only ever disagree.\n */\n\n /** The coding contract for one task: its skills resolved once, and carried by both the contract and its self-description. */\n private async composeTaskCodingContract(\n task: BuildPlanTask,\n boundary: Parameters<typeof composeBuildTaskCodingContract>[0]['boundary'],\n totalTasks: number,\n ): Promise<ReturnType<typeof composeBuildTaskCodingContract>> {\n const skillRefs = await this.resolveTaskSkillRefs(task);\n return composeBuildTaskCodingContract({\n task,\n boundary,\n contextSources: await this.buildContextSources(task, totalTasks, skillRefs),\n objectiveRef: 'application-creation:objective/build-plan',\n installedSkillRefs: skillRefs,\n });\n }\n\n /**\n * The skills a coding task is authored with — the ONE list the contract's `installedSkillRefs`, the\n * task self-description and the dispatch plan all carry. A website task's are DERIVED from the website\n * plan (a section is authored with the skill its kind names), and an experience task's from its\n * products (a view, a frontend configuration, a milestone, a piece of guidance — #1660), not trusted\n * from the decomposer's model; every other task keeps what it declared.\n *\n * One list on purpose: the agent's prompt loads `installedSkillRefs` and treats context sources as\n * data, so a derivation that reached only the self-description was a skill the agent was never told to\n * load — the first version of this fix did exactly that.\n *\n * Whichever list that is, the skills the task's PRODUCTS require are added to it (#1832): an inbound\n * channel handler is authored with `inbound-channels` on every path, including a task that also carries\n * an experience product and so takes the experience derivation.\n */\n private async resolveTaskSkillRefs(task: BuildPlanTask): Promise<readonly string[]> {\n return [...new Set([...(await this.resolveTargetSkillRefs(task)), ...productDerivedSkillRefs(task)])];\n }\n\n private async resolveTargetSkillRefs(task: BuildPlanTask): Promise<readonly string[]> {\n if (task.target.kind === BuildPlanTaskTargetKind.WEBSITE) {\n try {\n return websiteTaskSkillRefs(task, await loadSpecificationsCompanionExports(this.companionContext));\n } catch (error) {\n this.logger.warn('Website skill derivation skipped; the task keeps its declared skills', { taskRef: task.taskRef, error: String(error) });\n return task.skillRefs;\n }\n }\n if (taskHasExperienceProduct(task)) {\n try {\n return experienceTaskSkillRefs(task, await loadSpecificationsCompanionExports(this.companionContext));\n } catch (error) {\n // Only an execution view needs the plan; every other experience product still derives from itself.\n this.logger.warn('Experience plan unreadable; skills derived from the products alone', { taskRef: task.taskRef, error: String(error) });\n return experienceTaskSkillRefs(task, undefined);\n }\n }\n return task.skillRefs;\n }\n\n private async buildContextSources(task: BuildPlanTask, totalTasks: number, skillRefs: readonly string[]): Promise<readonly BuildTaskContextSource[]> {\n const sources: BuildTaskContextSource[] = [buildTaskSelfDescriptionContextSource(task, totalTasks, skillRefs)];\n\n /*\n * WHAT THE LAST ATTEMPT RAN INTO (#1536). A retry used to be byte-identical to the attempt that\n * failed, which is the definition of the loop an attempt budget exists to stop: the one input the\n * next attempt lacks is how the previous one failed. Shown with the re-arm note when there is one,\n * because \"it failed like this, and this was fixed\" is exactly what a retry needs. Best-effort.\n */\n try {\n const [latest] = await this.dispatch.listAttributableFailedRunsForBuildTask(task.taskRef, undefined, { includeRearmed: true });\n if (latest !== undefined) sources.push(previousAttemptContextSource(latest));\n } catch (error) {\n this.logDebug('Previous-attempt source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n\n /*\n * The DOOR MENU — tier-0 of the pull half: the live-query ids and the two commands that expand\n * them. Ids only, not descriptions: `wildo context list` IS the descriptions, one command away,\n * and rendering ~27 descriptions into every dispatch prompt would spend the budget this source\n * exists to save. Read from the same catalog the CLI menu serves, so it cannot drift from what\n * the companion actually answers.\n */\n const catalog = this.introspection.describeCatalog();\n sources.push({\n sourceRef: 'application-creation:context/live-queries',\n originRef: 'application-creation:origin/dev-companion',\n content: {\n guidance: 'Live application state is one shell command away — prefer asking over re-deriving from the tree. '\n + '`wildo context list` prints the menu with descriptions; `wildo context info <behaviorId>` runs one query; '\n + '`wildo context journey` shows the creation journey; `wildo context coherence` the cross-family coherence report; '\n + '`wildo context elements map|get|related` retrieves the product decisions already made (ICPs, requirements, phases…) '\n + 'a subset at a time — map first, then get the refs your task needs.',\n behaviorIds: catalog.behaviors.map((behavior) => behavior.behaviorId),\n },\n });\n\n const moduleRef = task.target && 'moduleRef' in task.target ? task.target.moduleRef : undefined;\n const resourceRef = task.target && 'resourceRef' in task.target ? task.target.resourceRef : undefined;\n\n // WORKSPACE TRUTH, sliced to the target: the target module's real resources and present schema\n // fields, plus the exact list of every module id (counts stay exact — a slice that hid the\n // population would under-report, and an agent that invents a module id dispatches a no-op).\n try {\n const backendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => !service.frontendType)?.[0];\n if (backendServiceKey) {\n const result = await this.introspection.requestInfo({ serviceKey: backendServiceKey, behavior: 'resources-registry' });\n if (result.success) {\n const snapshot = result.data as {\n modules?: ReadonlyArray<{ moduleId: string; resourceTypes: readonly string[] }>;\n resourceSchemaFields?: Record<string, readonly string[]>;\n };\n const modules = snapshot.modules ?? [];\n const targetModule = moduleRef === undefined\n ? undefined\n : modules.find((sharedModule) => slugifyRegistryIdentifier(sharedModule.moduleId) === moduleRef);\n sources.push({\n sourceRef: 'application-creation:context/workspace-truth',\n originRef: 'application-creation:origin/resources-registry-introspection',\n content: {\n allModuleIds: modules.map((sharedModule) => sharedModule.moduleId),\n ...(targetModule\n ? {\n targetModule: {\n moduleId: targetModule.moduleId,\n resources: targetModule.resourceTypes.map((resourceType) => ({\n resourceType,\n slugRef: slugifyRegistryIdentifier(resourceType),\n presentSchemaFields: snapshot.resourceSchemaFields?.[resourceType] ?? [],\n })),\n },\n }\n : {}),\n note: 'A resource listed here already EXISTS as a registered skeleton — its task is enrichment, not creation. '\n + 'A domain-plan resource NOT listed here does not exist yet. Full registry: `wildo context info resources-registry`.',\n },\n });\n } else {\n this.logDebug('Workspace-truth source omitted from the dispatch context (introspection failed)', { taskRef: task.taskRef });\n }\n }\n } catch (error) {\n this.logger.warn('Workspace-truth source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n\n /*\n * THE TARGET RESOURCE AND WHAT IT IS CONNECTED TO (#1437).\n *\n * The module slice above answers \"what else is in this module\", which is neither what a\n * resource-targeted task needs nor all of it: it OVER-supplies the siblings the task never\n * touches, and UNDER-supplies the engine resources the target's own foreign keys point at —\n * `users`, `organizations`, the scope anchors, which are the most load-bearing edges a resource\n * has and are in no application module at all. It also carries field NAMES only: no\n * relationships, no operations, no specification prose.\n *\n * One hop from the target is the honest neighbourhood. Two hops reaches most of the application\n * through the scope anchors, which is the whole-registry answer with extra steps.\n *\n * Best-effort like every source here, and it costs a derivation the first time (~35 s) that\n * every later task on this application reads from cache. A dispatch runs for minutes and spends\n * real money; paying that once to stop the agent guessing at a relationship is the cheaper half.\n */\n if (resourceRef !== undefined) {\n try {\n const backendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => !service.frontendType)?.[0];\n if (backendServiceKey) {\n const { index, freshness } = await readWorkspaceElements(this.introspection, backendServiceKey);\n /*\n * The plan addresses resources by SLUG and the registry by `resourceType`; they differ\n * (`todoList` vs `todo-list`). Resolved by slugifying the index's own keys rather than by\n * un-slugifying the ref, because the slug is lossy and the registry is the authority on\n * which resources exist.\n */\n const resourceType = [...index.resources.keys()].find((candidate) => slugifyRegistryIdentifier(candidate) === resourceRef);\n const related = resourceType === undefined ? undefined : relatedWorkspaceResources(index, resourceType);\n if (related) {\n sources.push({\n sourceRef: 'application-creation:context/target-resource-neighbourhood',\n originRef: 'application-creation:origin/application-domain-model',\n content: {\n freshness: describeWorkspaceFreshness(freshness),\n target: resourceType,\n edges: related.edges,\n resources: related.resources,\n ...(related.unresolved.length > 0 ? { unresolvedNeighbours: related.unresolved } : {}),\n note: 'The target resource as it EXISTS today, with its fields, operations and relationships, plus the '\n + 'resources one hop away. Direction matters: `foreignKeyHolderResourceType` says which side carries the key. '\n + 'Ask for more with `wildo context workspace get <resourceType>` or `wildo context workspace related <resourceType>`.',\n },\n });\n } else {\n // Said rather than omitted: a target the registry does not carry is a CREATION task, and\n // an absent section would read as a failed read.\n this.logDebug('Target resource is not registered yet — no neighbourhood to supply', { taskRef: task.taskRef, resourceRef });\n }\n }\n } catch (error) {\n this.logger.warn('Target-resource neighbourhood omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n }\n\n // THE DOMAIN-PLAN SLICE for the target: WHAT this task's objective enriches toward, in the\n // application's own accepted words — the module semantics and, for a relationship task, the\n // relationship drafts touching the target. Absent plan (older app, or foundation not run) is\n // simply absent; nothing here invents a fallback.\n try {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const domainPlan = (exports as { domainPlanSpecification?: unknown }).domainPlanSpecification as {\n modules?: ReadonlyArray<{ relatedModuleId: string; mainResources?: readonly string[]; supportingResources?: readonly string[] }>;\n relationships?: ReadonlyArray<{ relationshipRef: string; sourceResourceRef: string; targetResourceRef: string }>;\n } | undefined;\n const planModules = domainPlan?.modules ?? [];\n const targetPlanModule = moduleRef === undefined\n ? undefined\n : planModules.find((planModule) => slugifyRegistryIdentifier(planModule.relatedModuleId) === moduleRef);\n if (targetPlanModule) {\n const moduleResourceSlugs = new Set(\n [...(targetPlanModule.mainResources ?? []), ...(targetPlanModule.supportingResources ?? [])]\n .map((resourceType) => slugifyRegistryIdentifier(resourceType)),\n );\n sources.push({\n sourceRef: 'application-creation:context/domain-plan-slice',\n originRef: 'application-creation:origin/domain-plan',\n content: {\n targetModule: targetPlanModule,\n ...(resourceRef !== undefined ? { targetResourceRef: resourceRef } : {}),\n relationshipsTouchingModule: (domainPlan?.relationships ?? []).filter((relationship) =>\n moduleResourceSlugs.has(slugifyRegistryIdentifier(relationship.sourceResourceRef))\n || moduleResourceSlugs.has(slugifyRegistryIdentifier(relationship.targetResourceRef))),\n },\n });\n }\n } catch (error) {\n this.logger.warn('Domain-plan slice omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n\n // WHAT THIS TASK IS FOR (#1419): the full text of every element its `servesRefs` names — the\n // requirements, phases, success criteria and constraints it answers to — and a map of the other\n // tasks building the same module. Without it the agent knew WHAT to build and not what it was for:\n // no acceptance criterion, no served success criterion, no constraint. A deterministic derivation\n // through the one decided-element index (#1416), so it sits inside the push floor of decision\n // #251 — nothing here chooses context.\n try {\n const servedSource = buildServedElementsContextSource(task, await loadSpecificationsCompanionExports(this.companionContext));\n if (servedSource !== null) sources.push(servedSource);\n } catch (error) {\n this.logger.warn('Served-elements source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n\n // WHAT A WEBSITE TASK IS BUILDING: its page or section as the website plan decided it, and the\n // boundary between a page task and its section tasks. See `buildWebsitePlanContextSource`.\n if (task.target.kind === BuildPlanTaskTargetKind.WEBSITE) {\n try {\n const websiteSource = buildWebsitePlanContextSource(task, await loadSpecificationsCompanionExports(this.companionContext));\n if (websiteSource !== null) sources.push(websiteSource);\n } catch (error) {\n this.logger.warn('Website-plan source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n }\n\n // WHAT A SHELL TASK MUST MAKE THE SHELL CARRY (#1554): the placement plan's decisions for its\n // surface, in the identities the landing probe compares. Same derivation as the probe's witness.\n if (task.target.kind === BuildPlanTaskTargetKind.SHELL_PLACEMENT) {\n try {\n sources.push(buildShellPlacementPlanContextSource(task.target.surface, await loadSpecificationsCompanionExports(this.companionContext)));\n } catch (error) {\n this.logger.warn('Shell-placement-plan source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n }\n\n return sources;\n }\n}\n\n/**\n * The previous FAILED attempt of a task, as a retry is shown it (#1536): its disposition, each check it\n * failed with the tail of that check's output, the agent's own closing words, and the re-arm note when\n * an operator released it. Read off the durable row; nothing new is recorded to produce it.\n */\nexport function previousAttemptContextSource(run: {\n readonly taskId: string;\n readonly settledAt?: string;\n /** When the run started; absent for one that never did (`deriveCodingRunStart`). */\n readonly startedAt?: string;\n readonly memory: unknown;\n readonly output: Record<string, unknown>;\n}): BuildTaskContextSource {\n const tail = (value: unknown): string | undefined =>\n typeof value === 'string' && value.length > 0 ? value.slice(-PREVIOUS_ATTEMPT_OUTPUT_TAIL_CHARS) : undefined;\n const verification = Array.isArray(run.output.verification) ? run.output.verification : [];\n const failedChecks = verification\n .filter((entry): entry is { checkRef?: unknown; outcome?: Record<string, unknown> } => typeof entry === 'object' && entry !== null)\n .filter((entry) => entry.outcome?.success === false)\n .map((entry) => ({\n checkRef: String(entry.checkRef ?? ''),\n ...(tail(entry.outcome?.message) ? { message: tail(entry.outcome?.message) } : {}),\n ...(tail(entry.outcome?.stdoutTail) ? { stdoutTail: tail(entry.outcome?.stdoutTail) } : {}),\n ...(tail(entry.outcome?.stderrTail) ? { stderrTail: tail(entry.outcome?.stderrTail) } : {}),\n }));\n const rearm = readBuildTaskRearm(run.memory);\n const failureMessage = (run.output.failure as { message?: unknown } | undefined)?.message;\n /*\n * Three different histories, told apart (#1581, second review A5). Telling the agent \"repeat the same\n * approach and it fails the same way\" is right only when the approach WAS judged: a turn the host took\n * away, or a dispatch refused before anything ran, judged nothing about the work.\n */\n // The budget lists FAILED runs only; whether one ever started is the shared derivation's answer.\n const start = deriveCodingRunStart({ status: FlowsActors_Status.FAILED, ...(run.startedAt ? { startedAt: run.startedAt } : {}), output: run.output });\n const guidance = start === CodingRunStart.REFUSED_CONTRACT\n ? 'A previous dispatch of this task was refused at admission for its OWN contract — nothing ran. The '\n + 'refusal below names what the contract gets wrong (for example a verification check this host does '\n + 'not register); dispatching it unchanged is refused the same way.'\n : start === CodingRunStart.REFUSED_BY_HOST\n ? 'A previous dispatch of this task was refused before it started, so nothing ran and nothing was judged. '\n + 'The refusal is below for context; it is not a verdict on any approach.'\n : run.output.failureAttribution === CodingRunFailureAttribution.HOST\n ? 'The previous attempt of this task was stopped by the HOST, not by its work: the turn was taken away '\n + '(a provider limit, a killed process, an operator cancel) or the result could not be recorded. Nothing '\n + 'about the approach was judged; start the work normally, and read what it had reached if that helps.'\n : 'This task was attempted before and FAILED. Read why before starting: repeating the same approach '\n + 'will fail the same way. Fix what the failure names; do not work around a check.';\n return {\n sourceRef: 'application-creation:context/previous-attempt',\n originRef: 'application-creation:origin/dev-companion',\n content: {\n guidance,\n runTaskId: run.taskId,\n ...(typeof run.output.failureAttribution === 'string' ? { failureAttribution: run.output.failureAttribution } : {}),\n ...(typeof failureMessage === 'string' ? { failure: failureMessage } : {}),\n ...(run.settledAt ? { failedAt: run.settledAt } : {}),\n ...(typeof run.output.disposition === 'string' ? { disposition: run.output.disposition } : {}),\n failedChecks,\n ...(tail(run.output.agentOutputTail) ? { agentClosingWords: tail(run.output.agentOutputTail) } : {}),\n ...(rearm ? { rearmedBecause: { reason: rearm.reason, note: rearm.note } } : {}),\n },\n };\n}\n\n/**\n * The task's own DETERMINISTIC self-description — no introspection, no LLM.\n *\n * The first (and mandatory) context source of every coding task: what the task is, what it must\n * produce, and how its landing will be judged. A pure function of the task, so what the agent is told\n * about its own accountability can be pinned without composing a dispatch.\n *\n * (It was first extracted so a RESUME could rebuild a contract cheaply; that caller went when a parked\n * run's resume moved onto its actor execution in 02e241ae, which carries the context itself.)\n */\nexport function buildTaskSelfDescriptionContextSource(\n task: BuildPlanTask,\n totalTasks: number,\n /** The skills the agent is told to author with — the task's own unless the host derived better (a website task). */\n skillRefs: readonly string[] = task.skillRefs,\n): BuildTaskContextSource {\n return {\n sourceRef: 'application-creation:context/build-task',\n originRef: 'application-creation:origin/build-plan',\n content: {\n taskRef: task.taskRef,\n objective: task.objective,\n target: task.target,\n /*\n * WHAT THIS RUN IS ACCOUNTABLE FOR, and the agent has to be told.\n *\n * Landing is decided from `produces` (#597), so an agent that is not shown the artifacts it\n * must deliver can do excellent work on the objective's prose and still leave the task\n * unlanded — the host would re-offer it forever, and the cause would be invisible to\n * everyone. Handing it over costs nothing and is the same shape as `target`: a semantic\n * declaration the model reads, never a path it could author.\n */\n produces: task.produces,\n /*\n * HOW LANDING IS DECIDED, exactly (#1554). `produces` is the task's declaration; these are the\n * probes the host evaluates after the run, resolved by the same function landing calls. They\n * differ where the declaration is not what the tree spells: a SHELL_PLACEMENT task's refs name\n * the placement plan's decisions and appear in no file, so its probe asks what the composed\n * shell CARRIES (the `shell-placement-plan` source spells that out). An agent shown only\n * `produces` authored those refs as text, got one of two right by guessing from the objective,\n * and the run finished `completed_unlanded`.\n */\n landedWhen: resolveBuildTaskLandedProbes(task),\n functionalTopic: task.functionalTopic,\n skillRefs,\n prerequisiteTaskRefs: task.prerequisiteTaskRefs,\n positionInPlan: `one of ${totalTasks} tasks in the application's accepted build plan`,\n },\n };\n}\n\n/** One plan decision, with the identity the shell probe compares it by. */\nexport interface PlacementPlanShellExpectation {\n readonly decision: PlacementPlan['decisions'][number];\n readonly shellIdentity: string;\n}\n\n/** What a placement plan asks of the shell, decision by decision. */\nexport interface PlacementPlanShellExpectations {\n /** What the plan PLACED on each surface. */\n readonly placed: ReadonlyMap<PlacementSurface, readonly PlacementPlanShellExpectation[]>;\n /** What the plan DECLINED — to be carried by no surface. */\n readonly declined: readonly PlacementPlanShellExpectation[];\n}\n\n/**\n * The PLAN half of the shell witness (#1538), as a pure function of the plan.\n *\n * Two readers need it and must not disagree: the landing probe, which compares it with what the\n * composed shell carries, and the coding agent, which has to be told it BEFORE the run (#1554). One\n * derivation is what makes \"the agent was shown the criterion it is judged by\" true by construction\n * rather than by two loops agreeing.\n */\nexport function derivePlacementPlanShellExpectations(plan: PlacementPlan): PlacementPlanShellExpectations {\n const placed = new Map<PlacementSurface, PlacementPlanShellExpectation[]>();\n const declined: PlacementPlanShellExpectation[] = [];\n for (const decision of plan.decisions) {\n const entry = { decision, shellIdentity: placementSubjectShellIdentity(decision.subject) };\n if (decision.disposition === PlacementDisposition.DECLINED) {\n declined.push(entry);\n continue;\n }\n placed.set(decision.address.surface, [...(placed.get(decision.address.surface) ?? []), entry]);\n }\n return { placed, declined };\n}\n\n/**\n * A SHELL_PLACEMENT task's landing criterion, spelled for the agent that has to meet it (#1554).\n *\n * The task's `produces` names the plan's decision refs, which no file spells; the probe asks whether\n * the composed surface carries every subject the plan PLACED there and none it DECLINED, from\n * committed files. So the agent is handed the decisions themselves — subject, address and rationale —\n * each with the identity the probe compares, plus the command that reads the shell as the probe\n * reads it, so it can check its own work before finishing.\n *\n * Never `null` for a shell task: a missing or invalid plan is SAID, because \"nothing to place\" and\n * \"nothing says what to place\" lead the agent to opposite conclusions — the witness draws the same line.\n */\nexport function buildShellPlacementPlanContextSource(surface: PlacementSurface, companionExports: unknown): BuildTaskContextSource {\n const base = { sourceRef: 'application-creation:context/shell-placement-plan', originRef: 'application-creation:origin/specification-families' };\n const authored = (companionExports as Record<string, unknown> | null)?.['placementPlanSpecification'];\n const parsed = authored === undefined || authored === null ? undefined : PlacementPlanSchema.safeParse(authored);\n if (parsed === undefined || !parsed.success) {\n return {\n ...base,\n content: {\n surface,\n unanswerable: parsed === undefined\n ? 'The application has no placement plan, so nothing says what this surface should carry; the task cannot land until one exists.'\n : `The placement plan does not satisfy its schema (${parsed.error.issues.slice(0, 2).map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ')}); the task cannot land until it does.`,\n },\n };\n }\n const describe = ({ decision, shellIdentity }: PlacementPlanShellExpectation) => ({\n decisionRef: decision.decisionRef,\n subject: decision.subject,\n ...(decision.disposition === PlacementDisposition.PLACED ? { address: decision.address } : {}),\n rationale: decision.rationale,\n shellIdentity,\n });\n const expectations = derivePlacementPlanShellExpectations(parsed.data);\n return {\n ...base,\n content: {\n surface,\n landingCriterion: `This task lands when the ${surface} surface, as the composed shell resolves it, carries every subject `\n + 'placed on it below and none of the declined subjects, and every file that surface is composed from is committed. '\n + 'The declarationRefs in `produces` name these decisions; they are never spelled in the tree, so writing them as text lands nothing.',\n placedOnThisSurface: (expectations.placed.get(surface) ?? []).map(describe),\n declinedEverywhere: expectations.declined.map(describe),\n selfCheck: '`wildo context info app-shell-placement-content` reports what each surface carries, in the same identities as '\n + '`shellIdentity` above. Run it before finishing: a placed identity it does not list is still missing.',\n },\n };\n}\n\n/**\n * The elements a build task SERVES, resolved, plus a map of its module's other tasks (#1419).\n *\n * Reads the task's own `servesRefs` edge through the decided-element index, so resolution is the same\n * membership routing every other surface uses. A ref that resolves to nothing is REPORTED in the\n * source, never skipped: the agent must know the task claims to serve something the application has\n * not decided (Wonder CRM carries one), rather than conclude it serves nothing. `null` when the task\n * declares nothing to serve and has no sibling in its module — the source would be empty.\n */\nexport function buildServedElementsContextSource(task: BuildPlanTask, companionExports: unknown): BuildTaskContextSource | null {\n const index = indexDecidedAspects(decidedFamilyValuesFromCompanionExports(companionExports as Record<string, unknown>));\n const TASK_ASPECT = 'build-plan.task';\n const SERVES_FIELD = 'servesRefs';\n const served = index.links\n .filter((link) => link.field === SERVES_FIELD && link.from.aspectKey === TASK_ASPECT && link.from.ref === task.taskRef)\n .map((link) => ({\n aspectKey: link.to.aspectKey,\n family: link.to.family,\n ref: link.to.ref,\n element: link.to.item,\n }));\n const unresolved = index.unresolved\n .filter((entry) => entry.field === SERVES_FIELD && entry.fromAspectKey === TASK_ASPECT && entry.fromRef === task.taskRef)\n .map((entry) => entry.key);\n\n const moduleRef = task.target && 'moduleRef' in task.target ? task.target.moduleRef : undefined;\n const moduleTasks = moduleRef === undefined\n ? []\n : (index.aspects.get(TASK_ASPECT)?.elements ?? [])\n .filter((element) => element.ref !== task.taskRef)\n .filter((element) => {\n const target = (element.item as { target?: { moduleRef?: string } }).target;\n return target?.moduleRef === moduleRef;\n })\n .map((element) => ({ taskRef: element.ref, objective: element.label }));\n\n if (served.length === 0 && unresolved.length === 0 && moduleTasks.length === 0) return null;\n return {\n sourceRef: 'application-creation:context/served-elements',\n originRef: 'application-creation:origin/specification-families',\n content: {\n servedElements: served,\n ...(unresolved.length > 0\n ? {\n unresolvedServesRefs: unresolved,\n unresolvedNote: 'These servesRefs name nothing the application has decided. Do not invent what they would say; '\n + 'build what the resolved elements require, and report the gap.',\n }\n : {}),\n ...(moduleRef !== undefined ? { moduleRef, otherTasksInModule: moduleTasks } : {}),\n note: 'servedElements are what this task is accountable to — its acceptance criteria. otherTasksInModule is a map only: '\n + 'read a sibling with `wildo context elements get --refs <taskRef>` if you need it.',\n },\n };\n}\n"]}