@wildo-ai/dev-companion 1.1.3 → 1.1.5

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 (1095) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/__time-gov.probe.d.mts +0 -0
  3. package/dist/esm/__time-gov.probe.d.mts.map +0 -0
  4. package/dist/esm/__time-gov.probe.mjs.map +0 -0
  5. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  6. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +9 -3
  7. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  8. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +3 -24
  9. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  10. package/dist/esm/brand/services/brand-accept.companion.service.js +34 -53
  11. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  12. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts +7 -0
  13. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  14. package/dist/esm/brand/services/logo-deliberation.companion.service.js +9 -8
  15. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  16. package/dist/esm/brand/services/logo-generation.companion.service.d.ts +6 -3
  17. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  18. package/dist/esm/brand/services/logo-generation.companion.service.js +11 -12
  19. package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
  20. package/dist/esm/brand/utils/derived-brand-assets.d.ts +0 -1
  21. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  22. package/dist/esm/brand/utils/derived-brand-assets.js +1 -2
  23. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  24. package/dist/esm/brand/utils/stage-brand-candidate.d.ts +7 -9
  25. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  26. package/dist/esm/brand/utils/stage-brand-candidate.js +8 -11
  27. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  28. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts +143 -0
  29. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -0
  30. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +84 -0
  31. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -0
  32. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +177 -14
  33. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  34. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +215 -8
  35. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  36. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts +85 -0
  37. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -0
  38. package/dist/esm/claude-cli/models/coding-session-frame-retention.js +122 -0
  39. package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -0
  40. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +98 -0
  41. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -0
  42. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +135 -0
  43. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -0
  44. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts +94 -0
  45. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -0
  46. package/dist/esm/claude-cli/models/parked-question-answer.models.js +137 -0
  47. package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -0
  48. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts +16 -0
  49. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -0
  50. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +46 -0
  51. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -0
  52. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +46 -0
  53. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -0
  54. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +135 -0
  55. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -0
  56. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +131 -0
  57. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -0
  58. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +371 -0
  59. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -0
  60. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +717 -76
  61. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  62. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +2056 -388
  63. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  64. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts +109 -0
  65. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -0
  66. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +186 -0
  67. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -0
  68. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +227 -29
  69. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  70. package/dist/esm/claude-cli/services/git-change-set.companion.service.js +666 -125
  71. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  72. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +57 -10
  73. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  74. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +127 -10
  75. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  76. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +16 -0
  77. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  78. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +17 -0
  79. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  80. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js +8 -1
  81. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  82. package/dist/esm/companion-api/companion-api.schemas.d.ts +164 -87
  83. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  84. package/dist/esm/companion-api/companion-api.schemas.js +52 -6
  85. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  86. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +90 -0
  87. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -0
  88. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +109 -0
  89. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -0
  90. package/dist/esm/companion-api/controllers/companion.controller.d.ts +201 -16
  91. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  92. package/dist/esm/companion-api/controllers/companion.controller.js +660 -117
  93. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  94. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts +47 -5
  95. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  96. package/dist/esm/core/auth/companion-auth-floor.companion.service.js +47 -5
  97. package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
  98. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts +34 -0
  99. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -0
  100. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js +65 -0
  101. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -0
  102. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts +11 -1
  103. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  104. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  105. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  106. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +10 -2
  107. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  108. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts +54 -0
  109. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -0
  110. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js +78 -0
  111. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -0
  112. package/dist/esm/core/config/primary-language.companion.utils.d.ts +13 -0
  113. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  114. package/dist/esm/core/config/primary-language.companion.utils.js +12 -0
  115. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  116. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  117. package/dist/esm/core/context/companion-context.js +4 -0
  118. package/dist/esm/core/context/companion-context.js.map +1 -1
  119. package/dist/esm/core/context/companion-package-loaders.companion.d.ts +57 -0
  120. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  121. package/dist/esm/core/context/companion-package-loaders.companion.js +181 -7
  122. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  123. package/dist/esm/core/context/draft-family-values.companion.d.ts +23 -0
  124. package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -0
  125. package/dist/esm/core/context/draft-family-values.companion.js +49 -0
  126. package/dist/esm/core/context/draft-family-values.companion.js.map +1 -0
  127. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  128. package/dist/esm/core/inject/models/container.js +28 -11
  129. package/dist/esm/core/inject/models/container.js.map +1 -1
  130. package/dist/esm/core/inject/models/service-types.d.ts +12 -3
  131. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  132. package/dist/esm/core/inject/models/service-types.js +14 -3
  133. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  134. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  135. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +74 -2
  136. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  137. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +37 -1
  138. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  139. package/dist/esm/core/introspection/models/companion-introspection.models.js +55 -0
  140. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  141. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +93 -0
  142. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -0
  143. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +290 -0
  144. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -0
  145. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  146. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +636 -18
  147. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  148. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +592 -17
  149. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  150. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +1425 -94
  151. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  152. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +61 -4
  153. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  154. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +136 -10
  155. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  156. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  157. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +11 -0
  158. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  159. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +21 -0
  160. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  161. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +63 -4
  162. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  163. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  164. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +11 -3
  165. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  166. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +15 -5
  167. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  168. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +28 -15
  169. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  170. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts +24 -0
  171. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  172. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js +29 -5
  173. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
  174. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts +116 -0
  175. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -0
  176. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js +223 -0
  177. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -0
  178. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +13 -15
  179. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  180. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  181. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts +2 -1
  182. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  183. package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
  184. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  185. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +85 -51
  186. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  187. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +14 -5
  188. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  189. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +14 -5
  190. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  191. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts +33 -0
  192. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -0
  193. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js +59 -0
  194. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -0
  195. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts +12 -0
  196. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  197. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
  198. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
  199. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
  200. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +46 -102
  201. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  202. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +15 -0
  203. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  204. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js +140 -46
  205. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  206. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +65 -2
  207. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  208. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +292 -49
  209. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  210. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts +79 -0
  211. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -0
  212. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js +49 -0
  213. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -0
  214. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  215. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +314 -212
  216. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  217. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts +72 -0
  218. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -0
  219. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js +123 -0
  220. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -0
  221. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts +184 -0
  222. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -0
  223. package/dist/esm/core/introspection/workspace-element-index.companion.js +311 -0
  224. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -0
  225. package/dist/esm/core/introspection/workspace-elements.companion.d.ts +54 -0
  226. package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -0
  227. package/dist/esm/core/introspection/workspace-elements.companion.js +43 -0
  228. package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -0
  229. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts +23 -0
  230. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  231. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js +23 -0
  232. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  233. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts +7 -0
  234. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  235. package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
  236. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +3 -0
  237. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  238. package/dist/esm/core/lock/wildo-saas-lock.schemas.js +1 -0
  239. package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
  240. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts +31 -0
  241. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -0
  242. package/dist/esm/core/runtime/application-runtime-liveness.companion.js +53 -0
  243. package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -0
  244. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  245. package/dist/esm/core/runtime/companion-startup-assembly.js +35 -1
  246. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  247. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts +54 -0
  248. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -0
  249. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js +54 -0
  250. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -0
  251. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +26 -14
  252. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  253. package/dist/esm/core/runtime/services/start-companion-application.service.js +243 -67
  254. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  255. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +3 -3
  256. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  257. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +35 -10
  258. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  259. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts +0 -4
  260. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  261. package/dist/esm/core/specifications/cross-registry-rendering.shared.js +0 -4
  262. package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
  263. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  264. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
  265. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  266. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js +6 -34
  267. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
  268. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  269. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
  270. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  271. package/dist/esm/core/specifications/resource-specification-context.factory.js +2 -0
  272. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  273. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts +4 -2
  274. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  275. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js +16 -6
  276. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  277. package/dist/esm/core/traceability/companion-traceability.service.d.ts +21 -1
  278. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  279. package/dist/esm/core/traceability/companion-traceability.service.js +25 -1
  280. package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
  281. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts +45 -0
  282. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -0
  283. package/dist/esm/core/utils/derived-input-signature.companion.utils.js +96 -0
  284. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -0
  285. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts +35 -0
  286. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -0
  287. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +118 -0
  288. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -0
  289. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +34 -0
  290. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -0
  291. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +280 -0
  292. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -0
  293. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  294. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +13 -3
  295. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  296. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts +19 -1
  297. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  298. package/dist/esm/deliberations/services/deliberation.companion.service.js +61 -10
  299. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  300. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts +3 -1
  301. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  302. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js +7 -4
  303. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  304. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  305. package/dist/esm/email/models/email-template.actors-system.definitions.js +4 -2
  306. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  307. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts +1 -1
  308. package/dist/esm/email/services/email-spec-context-loader.companion.service.js +1 -1
  309. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  310. package/dist/esm/email/services/email-template.companion.service.d.ts +30 -0
  311. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  312. package/dist/esm/email/services/email-template.companion.service.js +92 -19
  313. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  314. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +34 -0
  315. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -0
  316. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +130 -0
  317. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -0
  318. package/dist/esm/executions/services/companion-executions.companion.service.d.ts +117 -5
  319. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  320. package/dist/esm/executions/services/companion-executions.companion.service.js +263 -10
  321. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  322. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  323. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +7 -3
  324. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  325. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  326. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +11 -5
  327. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  328. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +14 -24
  329. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  330. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +69 -68
  331. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  332. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts +8 -0
  333. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -0
  334. package/dist/esm/expert-personas/services/persona-source-ownership.js +83 -0
  335. package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -0
  336. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts +1 -1
  337. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js +1 -1
  338. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
  339. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts +4 -4
  340. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js +4 -4
  341. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
  342. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts +2 -2
  343. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js +2 -2
  344. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
  345. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +4 -2
  346. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  347. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js +5 -3
  348. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  349. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts +2 -1
  350. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  351. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js +2 -1
  352. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
  353. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts +1 -1
  354. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js +1 -1
  355. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
  356. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts +6 -5
  357. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  358. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js +7 -6
  359. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
  360. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts +3 -3
  361. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js +3 -3
  362. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
  363. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts +2 -2
  364. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js +2 -2
  365. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  366. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts +2 -1
  367. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  368. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js +2 -1
  369. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
  370. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +1 -1
  371. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js +1 -1
  372. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  373. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts +1 -1
  374. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js +1 -1
  375. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  376. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts +43 -0
  377. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -0
  378. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +43 -0
  379. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -0
  380. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts +26 -0
  381. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -0
  382. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js +26 -0
  383. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -0
  384. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts +18 -0
  385. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -0
  386. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js +18 -0
  387. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -0
  388. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts +3 -3
  389. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js +3 -3
  390. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
  391. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts +1 -1
  392. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js +1 -1
  393. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
  394. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts +2 -2
  395. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +2 -2
  396. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  397. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +4 -1
  398. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  399. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +4 -1
  400. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  401. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts +10 -10
  402. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js +10 -10
  403. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
  404. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts +25 -13
  405. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  406. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js +26 -14
  407. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  408. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts +1 -0
  409. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  410. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js +2 -1
  411. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
  412. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts +17 -0
  413. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -0
  414. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js +17 -0
  415. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -0
  416. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts +5 -5
  417. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js +5 -5
  418. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
  419. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts +1 -1
  420. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js +1 -1
  421. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
  422. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts +1 -1
  423. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js +1 -1
  424. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
  425. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts +16 -2
  426. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  427. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js +16 -2
  428. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
  429. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts +3 -3
  430. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js +3 -3
  431. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
  432. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts +8 -8
  433. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js +8 -8
  434. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
  435. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +14 -14
  436. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +14 -14
  437. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  438. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +22 -6
  439. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  440. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +23 -7
  441. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  442. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts +2 -2
  443. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js +2 -2
  444. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
  445. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts +1 -1
  446. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js +1 -1
  447. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
  448. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts +1 -1
  449. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js +1 -1
  450. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
  451. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts +1 -1
  452. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js +1 -1
  453. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
  454. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts +2 -2
  455. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js +2 -2
  456. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
  457. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts +21 -0
  458. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -0
  459. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js +21 -0
  460. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -0
  461. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts +1 -1
  462. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js +1 -1
  463. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
  464. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts +1 -1
  465. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js +1 -1
  466. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
  467. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts +2 -2
  468. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js +2 -2
  469. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
  470. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts +1 -1
  471. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js +1 -1
  472. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
  473. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts +4 -5
  474. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  475. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +4 -5
  476. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  477. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts +4 -4
  478. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js +4 -4
  479. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
  480. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts +2 -2
  481. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js +2 -2
  482. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
  483. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts +1 -1
  484. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js +1 -1
  485. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
  486. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts +1 -0
  487. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  488. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js +2 -1
  489. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
  490. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +12 -6
  491. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
  492. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +12 -6
  493. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
  494. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts +1 -0
  495. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  496. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js +2 -1
  497. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
  498. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts +3 -2
  499. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  500. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js +4 -3
  501. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  502. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts +3 -2
  503. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  504. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js +4 -3
  505. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
  506. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts +3 -1
  507. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  508. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js +4 -2
  509. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  510. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts +3 -3
  511. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js +3 -3
  512. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
  513. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts +1 -1
  514. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js +1 -1
  515. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
  516. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts +3 -3
  517. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js +3 -3
  518. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  519. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts +15 -0
  520. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -0
  521. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js +15 -0
  522. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -0
  523. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts +12 -0
  524. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -0
  525. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js +12 -0
  526. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -0
  527. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts +1 -1
  528. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js +1 -1
  529. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
  530. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts +1 -1
  531. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js +1 -1
  532. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
  533. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts +4 -3
  534. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  535. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js +4 -3
  536. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  537. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts +1 -1
  538. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js +1 -1
  539. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
  540. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts +3 -0
  541. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  542. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js +4 -1
  543. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
  544. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts +1 -1
  545. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js +1 -1
  546. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
  547. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts +1 -1
  548. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js +1 -1
  549. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
  550. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts +1 -1
  551. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js +1 -1
  552. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
  553. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts +1 -1
  554. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js +1 -1
  555. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
  556. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts +1 -1
  557. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js +1 -1
  558. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
  559. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts +1 -1
  560. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js +1 -1
  561. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
  562. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts +22 -0
  563. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -0
  564. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js +22 -0
  565. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -0
  566. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts +2 -2
  567. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js +2 -2
  568. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
  569. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts +6 -6
  570. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js +6 -6
  571. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
  572. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts +3 -3
  573. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js +3 -3
  574. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
  575. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +15 -8
  576. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  577. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +16 -9
  578. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  579. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts +20 -0
  580. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -0
  581. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +20 -0
  582. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -0
  583. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts +1 -1
  584. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js +1 -1
  585. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
  586. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts +39 -20
  587. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  588. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js +39 -20
  589. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  590. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts +5 -5
  591. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js +5 -5
  592. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
  593. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts +1 -1
  594. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js +1 -1
  595. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
  596. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts +13 -0
  597. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -0
  598. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js +13 -0
  599. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -0
  600. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts +13 -0
  601. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -0
  602. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js +13 -0
  603. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -0
  604. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts +3 -3
  605. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js +3 -3
  606. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
  607. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts +15 -0
  608. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -0
  609. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js +15 -0
  610. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -0
  611. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts +5 -3
  612. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  613. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js +6 -4
  614. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
  615. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts +10 -9
  616. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  617. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js +11 -10
  618. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
  619. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts +39 -0
  620. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -0
  621. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js +39 -0
  622. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -0
  623. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts +5 -5
  624. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js +5 -5
  625. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
  626. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts +6 -6
  627. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js +6 -6
  628. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  629. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts +7 -7
  630. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js +7 -7
  631. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
  632. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts +1 -1
  633. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js +1 -1
  634. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
  635. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts +1 -1
  636. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js +1 -1
  637. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
  638. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts +4 -4
  639. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js +4 -4
  640. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
  641. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts +24 -0
  642. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -0
  643. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js +24 -0
  644. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -0
  645. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts +6 -4
  646. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  647. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js +6 -4
  648. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  649. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts +14 -10
  650. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  651. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js +14 -10
  652. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  653. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts +6 -6
  654. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js +6 -6
  655. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
  656. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts +11 -8
  657. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  658. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js +12 -9
  659. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
  660. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts +9 -8
  661. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  662. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js +9 -8
  663. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
  664. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts +25 -9
  665. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  666. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js +25 -9
  667. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
  668. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts +1 -1
  669. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js +1 -1
  670. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
  671. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts +2 -2
  672. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js +2 -2
  673. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
  674. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts +1 -0
  675. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  676. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js +2 -1
  677. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
  678. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts +25 -24
  679. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  680. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js +26 -25
  681. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
  682. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts +1 -1
  683. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js +1 -1
  684. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
  685. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts +3 -1
  686. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  687. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js +4 -2
  688. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  689. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts +2 -2
  690. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js +2 -2
  691. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
  692. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +11 -11
  693. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +11 -11
  694. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  695. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts +1 -1
  696. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js +1 -1
  697. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  698. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts +12 -0
  699. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  700. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +13 -1
  701. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  702. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts +6 -6
  703. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js +6 -6
  704. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
  705. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts +2 -2
  706. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js +2 -2
  707. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
  708. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts +2 -2
  709. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js +2 -2
  710. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
  711. package/dist/esm/i18n/components/guidance_banner.en.d.ts +1 -1
  712. package/dist/esm/i18n/components/guidance_banner.en.js +1 -1
  713. package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
  714. package/dist/esm/i18n/components/guidance_checklist.en.d.ts +2 -2
  715. package/dist/esm/i18n/components/guidance_checklist.en.js +2 -2
  716. package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
  717. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts +1 -0
  718. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  719. package/dist/esm/i18n/components/guidance_checklist_item.en.js +2 -1
  720. package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
  721. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts +1 -1
  722. package/dist/esm/i18n/components/guidance_onboarding_view.en.js +1 -1
  723. package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
  724. package/dist/esm/i18n/components/guidance_survey.en.d.ts +1 -0
  725. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  726. package/dist/esm/i18n/components/guidance_survey.en.js +2 -1
  727. package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
  728. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts +1 -1
  729. package/dist/esm/i18n/components/progression_achievement_badge.en.js +1 -1
  730. package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
  731. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts +5 -1
  732. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  733. package/dist/esm/i18n/components/progression_milestone_tracker.en.js +6 -2
  734. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  735. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -13
  736. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -1
  737. package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -1
  738. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +17 -0
  739. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -0
  740. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +252 -0
  741. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -0
  742. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts +15 -0
  743. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -0
  744. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +58 -0
  745. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -0
  746. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +96 -0
  747. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -0
  748. package/dist/esm/i18n/errors_messages/errors-messages.en.js +54 -0
  749. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -0
  750. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +2014 -1
  751. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  752. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +516 -0
  753. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  754. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +878 -8
  755. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  756. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +247 -0
  757. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
  758. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +504 -1
  759. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  760. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +153 -0
  761. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
  762. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts +78 -0
  763. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -0
  764. package/dist/esm/i18n/resources/workbenchAspects.en.js +255 -0
  765. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -0
  766. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +149 -0
  767. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -0
  768. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +79 -0
  769. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -0
  770. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +89 -0
  771. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -0
  772. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +74 -0
  773. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -0
  774. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +70 -5
  775. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  776. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +67 -0
  777. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  778. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +80 -0
  779. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -0
  780. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +50 -0
  781. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -0
  782. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts +95 -0
  783. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -0
  784. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js +54 -0
  785. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -0
  786. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts +95 -0
  787. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -0
  788. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js +51 -0
  789. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -0
  790. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts +1 -1
  791. package/dist/esm/i18n/resources/workbenchDomainResources.en.js +2 -2
  792. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
  793. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +108 -0
  794. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -0
  795. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +61 -0
  796. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -0
  797. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +99 -0
  798. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -0
  799. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +87 -0
  800. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -0
  801. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts +121 -0
  802. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -0
  803. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js +84 -0
  804. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -0
  805. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +83 -0
  806. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -0
  807. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +71 -0
  808. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -0
  809. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +159 -0
  810. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -0
  811. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +103 -0
  812. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -0
  813. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +142 -6
  814. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  815. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +103 -0
  816. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  817. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +94 -4
  818. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  819. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +79 -0
  820. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  821. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +5074 -257
  822. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  823. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +1201 -44
  824. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  825. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts +86 -3
  826. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  827. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js +90 -0
  828. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
  829. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +97 -0
  830. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -0
  831. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +77 -0
  832. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -0
  833. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +272 -0
  834. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -0
  835. package/dist/esm/i18n/system_enums/application-creation.en.js +319 -0
  836. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -0
  837. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts +154 -0
  838. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -0
  839. package/dist/esm/i18n/system_enums/compliance-programme.en.js +154 -0
  840. package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -0
  841. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts +54 -0
  842. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -0
  843. package/dist/esm/i18n/system_enums/flows-actors.en.js +54 -0
  844. package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -0
  845. package/dist/esm/i18n/system_enums/market.en.d.ts +12 -2
  846. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  847. package/dist/esm/i18n/system_enums/market.en.js +12 -2
  848. package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
  849. package/dist/esm/i18n/system_enums/processor-register.en.d.ts +43 -0
  850. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -0
  851. package/dist/esm/i18n/system_enums/processor-register.en.js +43 -0
  852. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -0
  853. package/dist/esm/i18n/system_enums/risk-register.en.d.ts +56 -0
  854. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -0
  855. package/dist/esm/i18n/system_enums/risk-register.en.js +56 -0
  856. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -0
  857. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +50 -0
  858. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -0
  859. package/dist/esm/i18n/system_enums/workbench-build.en.js +55 -0
  860. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -0
  861. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +47 -0
  862. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -0
  863. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +48 -0
  864. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -0
  865. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +18 -0
  866. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -0
  867. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +18 -0
  868. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -0
  869. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts +29 -0
  870. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -0
  871. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js +29 -0
  872. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -0
  873. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +24 -0
  874. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -0
  875. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +24 -0
  876. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -0
  877. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +106 -0
  878. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  879. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +69 -0
  880. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  881. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  882. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +8 -3
  883. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  884. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +68 -4
  885. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  886. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +320 -88
  887. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  888. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +11 -11
  889. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  890. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +61 -44
  891. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  892. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +139 -2
  893. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  894. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +521 -42
  895. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  896. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  897. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +156 -36
  898. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  899. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts +91 -0
  900. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -0
  901. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js +149 -0
  902. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -0
  903. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +27 -0
  904. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -0
  905. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js +44 -0
  906. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -0
  907. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +27 -0
  908. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  909. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js +27 -0
  910. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  911. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts +12 -0
  912. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  913. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js +58 -1
  914. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
  915. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  916. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js +19 -0
  917. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
  918. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts +143 -0
  919. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -0
  920. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js +179 -0
  921. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -0
  922. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts +154 -0
  923. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -0
  924. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +174 -0
  925. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -0
  926. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  927. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js +10 -0
  928. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  929. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +108 -1
  930. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  931. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +289 -104
  932. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  933. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts +11 -0
  934. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  935. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js +27 -3
  936. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
  937. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts +29 -0
  938. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -0
  939. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +59 -0
  940. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -0
  941. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts +117 -3
  942. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  943. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +277 -55
  944. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  945. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts +27 -1
  946. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  947. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +43 -8
  948. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  949. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts +50 -0
  950. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -0
  951. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +116 -0
  952. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -0
  953. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +46 -0
  954. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -0
  955. package/dist/esm/meta-workflows/models/build-task-rearm.models.js +43 -0
  956. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -0
  957. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts +34 -0
  958. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -0
  959. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js +59 -0
  960. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -0
  961. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +65 -0
  962. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -0
  963. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +83 -0
  964. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -0
  965. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +69 -7
  966. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  967. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +70 -7
  968. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  969. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  970. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +36 -9
  971. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  972. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +208 -0
  973. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -0
  974. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +273 -0
  975. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -0
  976. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +356 -0
  977. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -0
  978. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +417 -0
  979. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -0
  980. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts +14 -0
  981. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -0
  982. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js +21 -0
  983. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -0
  984. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
  985. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +3 -1
  986. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
  987. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +65 -0
  988. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -0
  989. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +148 -0
  990. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -0
  991. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +933 -36
  992. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  993. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +2092 -134
  994. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  995. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +183 -23
  996. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  997. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +422 -6
  998. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  999. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +402 -16
  1000. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  1001. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +1398 -70
  1002. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  1003. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts +47 -0
  1004. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -0
  1005. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +103 -0
  1006. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -0
  1007. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +29 -0
  1008. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -0
  1009. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +88 -0
  1010. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -0
  1011. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +47 -0
  1012. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -0
  1013. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +102 -0
  1014. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -0
  1015. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
  1016. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
  1017. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
  1018. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +81 -0
  1019. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -0
  1020. package/dist/esm/meta-workflows/services/dossier.companion.service.js +231 -0
  1021. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -0
  1022. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts +36 -0
  1023. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -0
  1024. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js +72 -0
  1025. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -0
  1026. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts +82 -1
  1027. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  1028. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js +200 -31
  1029. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  1030. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts +16 -0
  1031. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -0
  1032. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js +29 -0
  1033. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -0
  1034. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +196 -1
  1035. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  1036. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +380 -10
  1037. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  1038. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts +2 -0
  1039. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -0
  1040. package/dist/esm/meta-workflows/services/landed-module-import.companion.js +36 -0
  1041. package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -0
  1042. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +57 -0
  1043. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  1044. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +83 -3
  1045. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  1046. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +980 -167
  1047. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  1048. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +3410 -409
  1049. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  1050. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts +100 -0
  1051. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -0
  1052. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +156 -0
  1053. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -0
  1054. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts +49 -0
  1055. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -0
  1056. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js +93 -0
  1057. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -0
  1058. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts +45 -0
  1059. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -0
  1060. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js +145 -0
  1061. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -0
  1062. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +148 -9
  1063. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  1064. package/dist/esm/technical-doc/services/technical-doc.companion.service.js +317 -85
  1065. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  1066. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts +27 -6
  1067. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  1068. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js +211 -20
  1069. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  1070. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts +2 -1
  1071. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  1072. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js +10 -2
  1073. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  1074. package/package.json +18 -18
  1075. package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts +0 -44
  1076. package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts.map +0 -1
  1077. package/dist/esm/core/runtime/companion-startup-composition-fence.js +0 -85
  1078. package/dist/esm/core/runtime/companion-startup-composition-fence.js.map +0 -1
  1079. package/dist/esm/expert-personas/utils/canonical-json.d.ts +0 -25
  1080. package/dist/esm/expert-personas/utils/canonical-json.d.ts.map +0 -1
  1081. package/dist/esm/expert-personas/utils/canonical-json.js +0 -45
  1082. package/dist/esm/expert-personas/utils/canonical-json.js.map +0 -1
  1083. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts +0 -17
  1084. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts.map +0 -1
  1085. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js +0 -17
  1086. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js.map +0 -1
  1087. package/dist/esm/i18n/composite_views/app.creation-board.en.js +0 -91
  1088. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts +0 -92
  1089. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts.map +0 -1
  1090. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.js +0 -178
  1091. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.js.map +0 -1
  1092. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts +0 -107
  1093. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +0 -1
  1094. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js +0 -188
  1095. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js.map +0 -1
@@ -10,26 +10,232 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  var __param = (this && this.__param) || function (paramIndex, decorator) {
11
11
  return function (target, key) { decorator(target, key, paramIndex); }
12
12
  };
13
+ import { readdirSync } from 'node:fs';
14
+ import { readFile } from 'node:fs/promises';
15
+ import { join } from 'node:path';
13
16
  import { inject, injectable } from 'inversify';
14
- import { WorkbenchBuildPlanTaskStatus } from '@wildo-ai/platform-core-shared';
15
- import { composeBuildTaskCodingContract, slugifyRegistryIdentifier, } from '@wildo-ai/application-creation-runtime';
16
- import { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';
17
- import { MetaWorkflow_ContextSourceRole } from '@wildo-ai/saas-models/meta-workflows';
18
- import { BuildPlanTaskGraphSchema, BuildPlanTaskTargetKind, selectReadyBuildPlanTasks, validateBuildPlanTaskGraph, } from '@wildo-ai/saas-specifications/application-creation';
17
+ import { ApplicationSchemaPlanObligation } from '../../core/config/application-schema-plan-obligation.companion.utils.js';
18
+ import { WORKBENCH_TASK_CORRELATION_DOMAIN, Workbench_BuildDispatchPhase, Workbench_BuildTaskStuckReason, WorkbenchBuildPlanTaskStatus, WorkbenchTaskCorrelationRef, sanitizeWorkbenchCreationPlaneIdentity, } from '@wildo-ai/platform-core-shared';
19
+ import { composeBuildTaskCodingContract, slugifyRegistryIdentifier, decidedFamilyValuesFromCompanionExports, indexDecidedAspects, } from '@wildo-ai/application-creation-runtime';
20
+ import { SAAS_SERVICE_TYPES, describeCaughtError } from '@wildo-ai/saas-backend-lib';
21
+ import { Actor_Task_Topics, FlowsActors_Status } from '@wildo-ai/saas-models';
22
+ import { BUILD_PLAN_TASK_GRAPH_HARD_FLOOR_CODES, BuildPlanResourceStage, BuildPlanTaskGraphSchema, BuildPlanTaskTargetKind, BuildPlanTaskProductKind, MetaWorkflow_FunctionalTopic, PlacementDisposition, PlacementPlanSchema, selectReadyBuildPlanTasks, validateBuildPlanTaskGraph, } from '@wildo-ai/saas-specifications/application-creation';
23
+ import { relatedWorkspaceResources } from '../../core/introspection/workspace-element-index.companion.js';
24
+ import { describeWorkspaceFreshness, readWorkspaceElements } from '../../core/introspection/workspace-elements.companion.js';
19
25
  import { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types.js';
20
26
  import { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service.js';
21
27
  import { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion.js';
22
28
  import { waitForDevCompileQuiet } from '../../core/runtime/dev-compile-quiet.companion.js';
29
+ import { readBuildParallelism } from '@wildo-ai/platform-config-lib';
30
+ import { CodingRunConcurrency } from '../../claude-cli/models/concurrent-coding-runs.models.js';
23
31
  import { CodingAgentDispatchCompanionService, } from '../../claude-cli/services/coding-agent-dispatch.companion.service.js';
24
- import { resolveApplicationCodingTaskVerificationPlans, } from '../../claude-cli/models/coding-agent-dispatch.models.js';
32
+ import { CodingRunFailureAttribution, isApplicationCodingContractRefusal, } from '../../claude-cli/models/coding-agent-dispatch.models.js';
25
33
  import { GitChangeSetCompanionService } from '../../claude-cli/services/git-change-set.companion.service.js';
26
- import { ApplicationBuildGenerationStepCompanionService, } from './application-build-generation-step.companion.service.js';
27
- import { resolveBuildPlanTaskCodingPolicy, resolveBuildTaskLandedEvidencePaths, } from './application-build-task-coding-policy.companion.service.js';
34
+ import { CompanionExecutionsCompanionService } from '../../executions/services/companion-executions.companion.service.js';
35
+ import { CompanionExecutionsListQuerySchema } from '../../companion-api/companion-api.schemas.js';
36
+ import { APPLICATION_CODING_SYSTEM_REF } from '../models/application-coding-agent.actors-system.definitions.js';
37
+ import { readUnavailableApplicationRuntimes } from '../../core/runtime/application-runtime-liveness.companion.js';
38
+ import { NothingToRearmError, readBuildTaskRearm, } from '../models/build-task-rearm.models.js';
39
+ import { APPLICATION_BUILD_GENERATION_STEP_ACTOR_REF, APPLICATION_BUILD_SYSTEM_REF } from '../models/application-build.actors-system.definitions.js';
40
+ import { ApplicationBuildGenerationStep, ApplicationBuildGenerationStepCompanionService, ApplicationBuildGenerationStepLandedKind, SchemaPlanSyncState, } from './application-build-generation-step.companion.service.js';
41
+ import { resolveBuildPlanTaskCodingPolicy, BuildPlanTaskLandedProbeKind, buildPlanTaskLandedProbePaths, declarationsAppearAt, launcherShellIdentity, placementSubjectShellIdentity, resolveBuildTaskLandedProbes, resolveUndraftableDocumentRef, settingsDestinationShellIdentity, shellModuleContributionFile, shellSurfaceConfigFile, } from './application-build-task-coding-policy.companion.service.js';
28
42
  /** No build plan, or nothing left to do. Named so the transport can say which. */
29
43
  export class ApplicationBuildPlanUnavailableError extends Error {
30
44
  }
31
45
  export class ApplicationBuildPlanExhaustedError extends Error {
46
+ taskCount;
47
+ landedCount;
48
+ /**
49
+ * The counts, carried STRUCTURALLY rather than only inside the sentence.
50
+ *
51
+ * A finished plan is something a surface wants to SAY — "39 of 39 landed" — and until these were
52
+ * fields the only copy lived in prose the reader would have had to parse. A board that parses
53
+ * another component's error message is a board that breaks when somebody improves the wording.
54
+ */
55
+ constructor(message, taskCount, landedCount) {
56
+ super(message);
57
+ this.taskCount = taskCount;
58
+ this.landedCount = landedCount;
59
+ }
60
+ }
61
+ /** The ref of the `database-migrations` step the dispatch host derives when a plan owes it and omits it (#1027). */
62
+ export const HOST_DERIVED_DATABASE_MIGRATIONS_TASK_REF = 'build-task-database-migrations';
63
+ /** The ref of the `documentation-publication` step the host derives for a plan that authors chapters (#1273). */
64
+ export const HOST_DERIVED_DOCUMENTATION_PUBLICATION_TASK_REF = 'build-task-documentation-publication';
65
+ /** Whether an attempt was a real one: the run started. See {@link ApplicationBuildTaskAttempt.refusedBeforeStart}. */
66
+ export function isStartedBuildTaskAttempt(attempt) {
67
+ return attempt.refusedBeforeStart !== true;
68
+ }
69
+ /** The actor-plane page cap the attempt listing reads under; hitting it sets `attemptsTruncated`. */
70
+ const BUILD_TASK_ATTEMPT_PAGE_CAP = 200;
71
+ /**
72
+ * How many of its OWN failures a build task may spend before dispatch stops offering it (#1536).
73
+ * Three, because the first end-to-end run's two repeating tasks each failed three times identically:
74
+ * a third identical failure says the dispatch, not luck, is the problem. Released by a re-arm.
75
+ */
76
+ export const MAXIMUM_ATTRIBUTABLE_FAILED_ATTEMPTS = 3;
77
+ /** How much of a failed check's output a retry is shown — enough for a compiler's first errors, not a log. */
78
+ const PREVIOUS_ATTEMPT_OUTPUT_TAIL_CHARS = 2000;
79
+ function projectBuildTaskAttempt(execution) {
80
+ const task = execution.standaloneTasks[0];
81
+ const taskRef = task?.input?.taskRef;
82
+ if (!task || typeof taskRef !== 'string')
83
+ return null;
84
+ const output = task.output;
85
+ const rearm = readBuildTaskRearm(task.memory);
86
+ const carriedFailures = Array.isArray(output?.carriedVerificationDiagnoses)
87
+ ? output.carriedVerificationDiagnoses.filter((entry) => typeof entry?.checkRef === 'string')
88
+ : [];
89
+ const verification = Array.isArray(output?.verification)
90
+ ? output.verification.filter((entry) => typeof entry?.checkRef === 'string')
91
+ : [];
92
+ const passedCheckRefs = verification.filter((entry) => entry.outcome?.success === true).map((entry) => String(entry.checkRef));
93
+ const carriedRefs = new Set(Array.isArray(output?.carriedVerificationFailures) ? output.carriedVerificationFailures.map(String) : []);
94
+ const failedCheckRefs = verification
95
+ .filter((entry) => entry.outcome?.success === false && !carriedRefs.has(String(entry.checkRef)))
96
+ .map((entry) => String(entry.checkRef));
97
+ const cost = output?.usage?.cost;
98
+ const stats = output?.changeSetSummary?.stats;
99
+ const count = (value) => (typeof value === 'number' && Number.isFinite(value) ? value : 0);
100
+ const outOfScopePaths = Array.isArray(output?.scopeAssessment?.outOfScopePaths)
101
+ ? output.scopeAssessment.outOfScopePaths.map(String)
102
+ : [];
103
+ return {
104
+ taskRef,
105
+ attempt: {
106
+ runTaskId: String(task._id),
107
+ startedAt: execution.createdAt,
108
+ ...(execution.finishedAt ? { settledAt: execution.finishedAt } : {}),
109
+ status: execution.status,
110
+ ...(typeof output?.disposition === 'string' ? { disposition: output.disposition } : {}),
111
+ ...(typeof output?.failure?.message === 'string' ? { error: output.failure.message } : {}),
112
+ ...(rearm ? { rearm } : {}),
113
+ ...(carriedFailures.length > 0 ? { carriedFailures } : {}),
114
+ ...(passedCheckRefs.length > 0 ? { passedCheckRefs } : {}),
115
+ ...(typeof cost?.amount === 'number' && typeof cost.currency === 'string' ? { cost: { amount: cost.amount, currency: cost.currency } } : {}),
116
+ ...(failedCheckRefs.length > 0 ? { failedCheckRefs } : {}),
117
+ ...(typeof output?.agentStopReason === 'string' ? { agentStopReason: output.agentStopReason } : {}),
118
+ ...(typeof output?.deniedPermissionCount === 'number' ? { deniedPermissionCount: output.deniedPermissionCount } : {}),
119
+ ...(outOfScopePaths.length > 0 ? { outOfScopePaths } : {}),
120
+ ...(stats ? { filesChanged: count(stats['runExclusive']) + count(stats['appearedDuringRun']) + count(stats['committedDuringRun']) } : {}),
121
+ ...(Array.isArray(output?.concurrency?.overlappingTaskRefs) ? {
122
+ concurrency: {
123
+ overlappingTaskRefs: output.concurrency.overlappingTaskRefs.map(String),
124
+ contendedPaths: Array.isArray(output.concurrency.contendedPaths) ? output.concurrency.contendedPaths.map(String) : [],
125
+ },
126
+ } : {}),
127
+ ...(output?.interferenceSuspected === true ? { interferenceSuspected: true } : {}),
128
+ ...(typeof output?.failureAttribution === 'string' ? { failureAttribution: output.failureAttribution } : {}),
129
+ ...(isSettledWithoutStarting(execution.status, task.startedAt, output) ? { refusedBeforeStart: true } : {}),
130
+ },
131
+ };
32
132
  }
133
+ /**
134
+ * A terminal run that never started and was no attempt of the task's: selected, then refused by the
135
+ * host before admission — or left selected by a stopped process and swept.
136
+ *
137
+ * All required:
138
+ * - settled ABORTED, or FAILED on a row written before #1581 — the only statuses such a run is given;
139
+ * - no start instant: since the engine driver (2026-09-20) every open or admission stamps one;
140
+ * - no disposition: every coding run that CONCLUDED records one, so an older row that ran but predates
141
+ * the start instant is still read as the attempt it was;
142
+ * - not attributed to the TASK: a refusal of the task's OWN contract never started either, and it IS
143
+ * an attempt — the budget counts it, so the board must too (#1581, second review A3).
144
+ */
145
+ function isSettledWithoutStarting(status, taskStartedAt, output) {
146
+ if (typeof taskStartedAt === 'string' || output?.disposition !== undefined)
147
+ return false;
148
+ if (output?.failureAttribution === CodingRunFailureAttribution.TASK)
149
+ return false;
150
+ return status === FlowsActors_Status.ABORTED || status === FlowsActors_Status.FAILED;
151
+ }
152
+ /**
153
+ * What the build has SPENT, per currency (#1541): every attempt's reported cost, and the part of it
154
+ * spent on tasks that have not landed. Rounded at this boundary to the cent, because it accumulates.
155
+ *
156
+ * `attemptsWithoutReportedCost` counts SETTLED attempts whose run reported no cost (#1507): an agent may
157
+ * report none, and those attempts are not in the totals — which are then a floor, and say so, rather
158
+ * than quietly reading an unpriced attempt as free. An attempt still running has no cost yet and is not
159
+ * counted.
160
+ */
161
+ export function deriveBuildSpend(records) {
162
+ const total = {};
163
+ const onTasksNotLanded = {};
164
+ let attemptsWithoutReportedCost = 0;
165
+ for (const record of records) {
166
+ for (const attempt of record.attempts) {
167
+ // A refusal ran nothing and could report no cost: it is not an unpriced attempt (#1581).
168
+ if (!isStartedBuildTaskAttempt(attempt))
169
+ continue;
170
+ if (!attempt.cost) {
171
+ if (attempt.settledAt !== undefined)
172
+ attemptsWithoutReportedCost += 1;
173
+ continue;
174
+ }
175
+ total[attempt.cost.currency] = (total[attempt.cost.currency] ?? 0) + attempt.cost.amount;
176
+ if (record.status !== WorkbenchBuildPlanTaskStatus.LANDED) {
177
+ onTasksNotLanded[attempt.cost.currency] = (onTasksNotLanded[attempt.cost.currency] ?? 0) + attempt.cost.amount;
178
+ }
179
+ }
180
+ }
181
+ const cents = (sums) => Object.fromEntries(Object.entries(sums).map(([currency, amount]) => [currency, Math.round(amount * 100) / 100]));
182
+ return { total: cents(total), onTasksNotLanded: cents(onTasksNotLanded), attemptsWithoutReportedCost };
183
+ }
184
+ /**
185
+ * The reds owed a repair, from every attempt's record (#1529). Pure over the attempts, so what counts as
186
+ * "still owed" is pinned rather than implied: a check is cleared once any attempt that started AFTER the
187
+ * last one carrying it ran it green.
188
+ */
189
+ export function deriveRepairsOwed(attemptsByTask) {
190
+ const byCheck = new Map();
191
+ const passes = [];
192
+ for (const [taskRef, attempts] of attemptsByTask) {
193
+ for (const attempt of attempts) {
194
+ for (const checkRef of attempt.passedCheckRefs ?? [])
195
+ passes.push({ checkRef, at: attempt.startedAt });
196
+ for (const carried of attempt.carriedFailures ?? []) {
197
+ const entry = byCheck.get(carried.checkRef);
198
+ if (entry === undefined) {
199
+ byCheck.set(carried.checkRef, { firstSeenAt: attempt.startedAt, lastSeenAt: attempt.startedAt, affected: new Set([taskRef]), diagnosis: carried });
200
+ continue;
201
+ }
202
+ entry.affected.add(taskRef);
203
+ if (attempt.startedAt < entry.firstSeenAt)
204
+ entry.firstSeenAt = attempt.startedAt;
205
+ if (attempt.startedAt > entry.lastSeenAt) {
206
+ entry.lastSeenAt = attempt.startedAt;
207
+ entry.diagnosis = carried;
208
+ }
209
+ }
210
+ }
211
+ }
212
+ return [...byCheck]
213
+ .filter(([checkRef, entry]) => !passes.some((pass) => pass.checkRef === checkRef && pass.at > entry.lastSeenAt))
214
+ .map(([checkRef, entry]) => ({
215
+ checkRef,
216
+ firstSeenAt: entry.firstSeenAt,
217
+ lastSeenAt: entry.lastSeenAt,
218
+ affectedTaskRefs: [...entry.affected].sort(),
219
+ diagnosis: entry.diagnosis,
220
+ }))
221
+ .sort((left, right) => left.firstSeenAt.localeCompare(right.firstSeenAt));
222
+ }
223
+ /** How long a CONCURRENT admission waits for the compile watchers before starting anyway (#1528). */
224
+ const CONCURRENT_ADMISSION_COMPILE_QUIET_MS = 30_000;
225
+ /** Dispatches one wave call may make per slot before it returns and lets the next call continue. */
226
+ export const WAVE_DISPATCHES_PER_DEGREE = 4;
227
+ /** Why a wave stopped taking new tasks — it always still drains the runs already live. */
228
+ export var ApplicationBuildWaveStop;
229
+ (function (ApplicationBuildWaveStop) {
230
+ /** No task is ready and no run is live: the plan is done, blocked, or every ready task is stuck. */
231
+ ApplicationBuildWaveStop["NOTHING_READY"] = "nothing-ready";
232
+ /** The call reached its dispatch cap; the next call continues. */
233
+ ApplicationBuildWaveStop["DISPATCH_CAP"] = "dispatch-cap";
234
+ /** The next ready task is a generation step this call already ran, and its landing is still unmet. */
235
+ ApplicationBuildWaveStop["GENERATION_STEP_REPEATED"] = "generation-step-repeated";
236
+ /** An admission was refused; the refusal is on the dispatch entry. */
237
+ ApplicationBuildWaveStop["DISPATCH_REFUSED"] = "dispatch-refused";
238
+ })(ApplicationBuildWaveStop || (ApplicationBuildWaveStop = {}));
33
239
  /**
34
240
  * Dispatch the next ready build-plan task to a coding agent.
35
241
  *
@@ -53,7 +259,8 @@ export class ApplicationBuildPlanExhaustedError extends Error {
53
259
  * the scope is derived from the task's CLOSED `target.kind` and cannot be widened, the mutation lock
54
260
  * admits one workspace-mutating run at a time, the run is bracketed by a git baseline snapshot and a
55
261
  * change-set capture so every touched path is visible and revertible, the required checks gate the
56
- * result, and nothing is ACCEPTED until a human commits.
262
+ * result, and acceptance is a separate act: the loop's commit under the autonomy posture, authored as
263
+ * the companion and refusing what it cannot vouch for, or a person's (#1534).
57
264
  *
58
265
  * A caller that posts to this route is asking for a coding run — that IS the route. Making them say so
59
266
  * twice is the acceptance ceremony this whole migration exists to remove, and a field that feels like a
@@ -62,6 +269,136 @@ export class ApplicationBuildPlanExhaustedError extends Error {
62
269
  * What was genuinely useful in it — seeing the scope before committing to a run — is a READ, and lives at
63
270
  * `describeNextBuildTask` below.
64
271
  */
272
+ /**
273
+ * A ready task that has already been run to a working result — the loop guard's typed refusal.
274
+ *
275
+ * Distinct from `ApplicationBuildPlanExhaustedError`, which means the OPPOSITE and is a healthy
276
+ * terminal state. Conflating them would let an operator read a money-burning loop as "the build is
277
+ * finished".
278
+ */
279
+ export class ApplicationBuildTaskCompletedButUnlandedError extends Error {
280
+ taskRef;
281
+ priorTaskId;
282
+ stuckTasks;
283
+ queue;
284
+ /**
285
+ * `stuckTasks` is every ready task that cannot move, as typed facts. The message explains the FIRST;
286
+ * the read door answers with all of them, so a board never has to parse this prose (#1451).
287
+ */
288
+ constructor(message, taskRef, priorTaskId, stuckTasks, queue) {
289
+ super(message);
290
+ this.taskRef = taskRef;
291
+ this.priorTaskId = priorTaskId;
292
+ this.stuckTasks = stuckTasks;
293
+ this.queue = queue;
294
+ this.name = 'ApplicationBuildTaskCompletedButUnlandedError';
295
+ }
296
+ }
297
+ /**
298
+ * A NAMED task was asked for and it is not READY (#1454, Step 7): landed already, blocked on a
299
+ * prerequisite, or not in the plan. The graph still decides what may run; naming a task only lets
300
+ * the creator pick among the ready ones. `standing` and the unmet refs are what the answer needs.
301
+ */
302
+ export var ApplicationBuildTaskStanding;
303
+ (function (ApplicationBuildTaskStanding) {
304
+ /** The task has landed: its declared product is committed. */
305
+ ApplicationBuildTaskStanding["LANDED"] = "landed";
306
+ /** The task waits on a prerequisite that has not landed. */
307
+ ApplicationBuildTaskStanding["BLOCKED"] = "blocked";
308
+ /** The plan holds no such task. */
309
+ ApplicationBuildTaskStanding["UNKNOWN"] = "unknown";
310
+ })(ApplicationBuildTaskStanding || (ApplicationBuildTaskStanding = {}));
311
+ export class ApplicationBuildTaskNotReadyError extends Error {
312
+ taskRef;
313
+ standing;
314
+ unmetPrerequisiteTaskRefs;
315
+ constructor(message, taskRef, standing, unmetPrerequisiteTaskRefs) {
316
+ super(message);
317
+ this.taskRef = taskRef;
318
+ this.standing = standing;
319
+ this.unmetPrerequisiteTaskRefs = unmetPrerequisiteTaskRefs;
320
+ this.name = 'ApplicationBuildTaskNotReadyError';
321
+ }
322
+ }
323
+ /**
324
+ * Every path one landed probe consults.
325
+ *
326
+ * One definition, because the two callers must agree: the batch that PRIMES the committed-tree reader
327
+ * and the pass that reports a task's produced-but-uncommitted paths. A probe set gathered differently
328
+ * in the two places would leave exactly the paths they disagree about resolving one spawn-pair at a
329
+ * time — the cost the batch exists to remove, reappearing only for the paths nobody compared.
330
+ */
331
+ function landedProbePaths(probe) {
332
+ // Delegates to the policy module's exhaustive definition. This used to be a second, non-exhaustive
333
+ // copy of it — the thing this docstring says must not exist — and a new probe kind was a type error
334
+ // here rather than a decision there (#1538).
335
+ return buildPlanTaskLandedProbePaths(probe);
336
+ }
337
+ function isShellProbe(probe) {
338
+ return probe.kind === BuildPlanTaskLandedProbeKind.SHELL_SURFACE_CARRIES_PLAN || probe.kind === BuildPlanTaskLandedProbeKind.SHELL_CARRIES_A_PLACEMENT;
339
+ }
340
+ /** Store the pending read BEFORE awaiting it, so probes of one path running in parallel share it. */
341
+ function memoizeByPath(cache, subjectRelativePath, read) {
342
+ const cached = cache.get(subjectRelativePath);
343
+ if (cached)
344
+ return cached;
345
+ const pending = read();
346
+ cache.set(subjectRelativePath, pending);
347
+ return pending;
348
+ }
349
+ /** How many dispatches the narrative carries. Five is what the in-memory list kept; the board renders that many. */
350
+ const DISPATCH_NARRATIVE_LENGTH = 5;
351
+ /**
352
+ * How far a dispatch got, read off its execution row — see `Workbench_BuildDispatchPhase` for what
353
+ * each member means and why the two executors resolve at different moments.
354
+ *
355
+ * - **A coding run** (`application-coding.system`): `PENDING` is SUBMITTED. Once its task has a start
356
+ * instant it is ADMITTED and STAYS so however it ends — the phase names the hand-off, and the
357
+ * outcome is the task row `codingTaskId` points at. A run that ended WITHOUT ever starting is the
358
+ * only coding FAILED: the dispatch threw before admission.
359
+ * - **A generation step** (`application-build.system`): running is SUBMITTED (nothing has resolved
360
+ * yet), `COMPLETED` is FINISHED, and any other ending — failed, or aborted by a restart — is FAILED.
361
+ */
362
+ export function projectBuildDispatchPhase(row) {
363
+ if (row.systemRef === APPLICATION_CODING_SYSTEM_REF) {
364
+ if (row.taskStarted)
365
+ return Workbench_BuildDispatchPhase.ADMITTED;
366
+ return row.status === FlowsActors_Status.PENDING ? Workbench_BuildDispatchPhase.SUBMITTED : Workbench_BuildDispatchPhase.FAILED;
367
+ }
368
+ if (row.status === FlowsActors_Status.COMPLETED)
369
+ return Workbench_BuildDispatchPhase.FINISHED;
370
+ return row.status === FlowsActors_Status.PROCESSING || row.status === FlowsActors_Status.PENDING
371
+ ? Workbench_BuildDispatchPhase.SUBMITTED
372
+ : Workbench_BuildDispatchPhase.FAILED;
373
+ }
374
+ /**
375
+ * One execution row as a dispatch record, or `null` for a row that is not a build dispatch — an
376
+ * execution with no task, or a task naming no build-plan task (a coding run dispatched by something
377
+ * other than the build plan would be one).
378
+ */
379
+ function projectBuildDispatchRecord(execution) {
380
+ const task = execution.standaloneTasks[0];
381
+ const input = task?.input;
382
+ if (!task || typeof input?.taskRef !== 'string')
383
+ return null;
384
+ const taskStarted = typeof task.startedAt === 'string';
385
+ const phase = projectBuildDispatchPhase({ systemRef: execution.systemRef, status: execution.status, taskStarted });
386
+ const isCodingRun = execution.systemRef === APPLICATION_CODING_SYSTEM_REF;
387
+ const failure = task.output?.failure?.message;
388
+ // When the phase LEFT `SUBMITTED`: admission for a coding run, the end of the step otherwise.
389
+ const settledAt = phase === Workbench_BuildDispatchPhase.SUBMITTED ? undefined
390
+ : isCodingRun && taskStarted ? task.startedAt
391
+ : execution.finishedAt;
392
+ return {
393
+ taskRef: input.taskRef,
394
+ startedAt: execution.createdAt,
395
+ phase,
396
+ ...(settledAt !== undefined ? { settledAt } : {}),
397
+ ...(isCodingRun && taskStarted ? { codingTaskId: String(task._id) } : {}),
398
+ ...(phase === Workbench_BuildDispatchPhase.FAILED && typeof failure === 'string' ? { error: failure } : {}),
399
+ ...(typeof input.conversationId === 'string' ? { conversationId: input.conversationId } : {}),
400
+ };
401
+ }
65
402
  let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCompanionService {
66
403
  logger;
67
404
  companionContext;
@@ -69,115 +406,639 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
69
406
  git;
70
407
  generationSteps;
71
408
  introspection;
409
+ actorsSystem;
410
+ executions;
72
411
  logDebug;
73
- constructor(logger, companionContext, dispatch, git, generationSteps, introspection) {
412
+ constructor(logger, companionContext, dispatch, git, generationSteps, introspection, actorsSystem, executions) {
74
413
  this.logger = logger;
75
414
  this.companionContext = companionContext;
76
415
  this.dispatch = dispatch;
77
416
  this.git = git;
78
417
  this.generationSteps = generationSteps;
79
418
  this.introspection = introspection;
419
+ this.actorsSystem = actorsSystem;
420
+ this.executions = executions;
80
421
  this.logDebug = this.logger.debugByType('ApplicationBuildDispatchCompanionService');
81
422
  }
82
- /** What the next run would be, without running it. Pure read — nothing is locked, created or started. */
83
- async describeNextBuildTask(input = {}) {
84
- return (await this.prepareNextBuildTask(input)).plan;
423
+ /**
424
+ * The application workspace's top-level entries — the raw material of a coding run's mutation
425
+ * scope since #1268.
426
+ *
427
+ * ## Read per dispatch, and deliberately NOT cached
428
+ *
429
+ * The listing changes when a composition scenario adds a package (`wildo compose add-website`,
430
+ * `add-technical-doc`, `add-minion`, `add-worker-node`), and the whole point of deriving it is that
431
+ * a package added yesterday is writable today. A cache turns that into a REFUSAL — the run confined
432
+ * away from the package it was asked to write — which is the defect the widening removes, arriving
433
+ * back through the door marked "performance". One `readdir` per dispatch, against a dispatch that
434
+ * runs a coding agent for minutes, is not a cost worth that.
435
+ *
436
+ * ## An unreadable workspace answers NOTHING rather than throwing
437
+ *
438
+ * The scope is ADDITIVE, so an empty answer degrades a run to its task-derived scope — today's
439
+ * behaviour — instead of failing a dispatch over a directory listing. A workspace this process
440
+ * cannot list is a condition the contract composer's own empty-scope refusal will catch if it
441
+ * matters, and one that says nothing about whether this task can run.
442
+ */
443
+ readApplicationWorkspaceEntries() {
444
+ try {
445
+ return readdirSync(this.companionContext.saasRoot);
446
+ }
447
+ catch (error) {
448
+ this.logDebug('Could not list the application workspace; a coding run keeps its task-derived scope', {
449
+ saasRoot: this.companionContext.saasRoot,
450
+ error: describeCaughtError(error),
451
+ });
452
+ return [];
453
+ }
454
+ }
455
+ /**
456
+ * What the next run would be, without running it. Pure read — nothing is locked, created or started.
457
+ *
458
+ * REQUIRES a task: an exhausted plan throws, exactly as the dispatch doors do. That is right for its
459
+ * caller — a `dryRun` build-dispatch playbook, which is rehearsing a run and has nothing to rehearse
460
+ * when the plan is finished.
461
+ *
462
+ * A surface that wants to SHOW the queue's state rather than act on it wants
463
+ * `describeNextBuildTaskOrExhaustion` instead. The two are kept apart rather than merged because
464
+ * "give me the next task" and "tell me whether there is one" are different questions, and only the
465
+ * second can be answered by "there is none".
466
+ */
467
+ async describeNextBuildTask() {
468
+ return (await this.prepareNextBuildTask()).plan;
469
+ }
470
+ /**
471
+ * The same read, for a caller that must be able to render "there is nothing left".
472
+ *
473
+ * The catch narrows to TWO classes — exhausted, and every-ready-task-stuck — and that is the part
474
+ * worth guarding. A catch-all would make every
475
+ * genuine failure to look — an unreadable specifications export, a missing build plan, a broken
476
+ * landing probe — report itself as a finished build, which is the most reassuring possible lie a
477
+ * read can tell.
478
+ */
479
+ async describeNextBuildTaskOrExhaustion() {
480
+ try {
481
+ const prepared = await this.prepareNextBuildTask();
482
+ return { plan: prepared.plan, stuckTasks: prepared.stuckTasks };
483
+ }
484
+ catch (error) {
485
+ if (error instanceof ApplicationBuildPlanExhaustedError) {
486
+ return { plan: null, exhausted: { taskCount: error.taskCount, landedCount: error.landedCount }, stuckTasks: [] };
487
+ }
488
+ /*
489
+ * Every ready task is stuck — an ANSWER, for the same reason exhaustion is (#1451). It used to
490
+ * escape this door, fail the creation board's row derivation, and render as "could not look"
491
+ * at the one moment the board had a precise answer and a remedy to show. The dispatch doors
492
+ * still throw it: there, the caller asked to run something and nothing can run.
493
+ */
494
+ if (error instanceof ApplicationBuildTaskCompletedButUnlandedError) {
495
+ return { plan: null, stuckQueue: error.queue, stuckTasks: error.stuckTasks };
496
+ }
497
+ throw error;
498
+ }
499
+ }
500
+ /**
501
+ * The last few dispatches, newest first — read from the ACTOR PLANE since #1359.
502
+ *
503
+ * ## What this was, and why it moved
504
+ *
505
+ * An in-memory list of the last five dispatches, added 2026-09-04 when a 40-minute i18n generation
506
+ * step outlived the HTTP request that started it and left an operator blind for half the run. It
507
+ * was the right diagnosis and a second, weaker execution plane: a coding run already had a durable
508
+ * row, a generation step had NONE, and a companion restart — ordinary here — emptied the list, so
509
+ * the dispatch most worth explaining was the one nothing remembered.
510
+ *
511
+ * Every dispatch is now an actor-system execution from the moment its task is SELECTED — a coding
512
+ * run on `application-coding.system` (opened `PENDING`, started at admission), a generation step
513
+ * on `application-build.system` — and this method is a PROJECTION of those rows. It holds nothing.
514
+ *
515
+ * ## The phase is derived, and means what it always meant
516
+ *
517
+ * `Workbench_BuildDispatchPhase` stays the wire vocabulary until the board reads the actor rows
518
+ * directly (#1362); {@link projectBuildDispatchPhase} maps a row onto it without changing a
519
+ * member's meaning — in particular a coding run stays `ADMITTED` once it has started, however it
520
+ * ends, because the phase names the HAND-OFF and the run's outcome is the task row it points at.
521
+ */
522
+ async readDetachedDispatches(session) {
523
+ const listed = await Promise.all([APPLICATION_CODING_SYSTEM_REF, APPLICATION_BUILD_SYSTEM_REF].map((systemRef) => this.executions.listActorExecutions(CompanionExecutionsListQuerySchema.parse({ systemRef, limit: DISPATCH_NARRATIVE_LENGTH }), session)));
524
+ return listed.flat()
525
+ .map(projectBuildDispatchRecord)
526
+ .filter((record) => record !== null)
527
+ .sort((left, right) => right.startedAt.localeCompare(left.startedAt))
528
+ .slice(0, DISPATCH_NARRATIVE_LENGTH);
529
+ }
530
+ /**
531
+ * Fire the next ready build task WITHOUT holding an HTTP request over it. Returns the selected
532
+ * plan immediately. {@link readDetachedDispatches} then says how far it got: a companion generation
533
+ * step reaches FINISHED there, while a coding task reaches ADMITTED with the durable actor-task row
534
+ * that holds its actual outcome. The same single-flight properties hold — this is the same
535
+ * execution, minus the requirement that a socket survive it.
536
+ *
537
+ * It SELECTS ONCE. Until 2026-09-17 it prepared a task for its own 202 and then called
538
+ * `dispatchNextBuildTask`, which prepared AGAIN — two independent selections against a working
539
+ * tree that a landing run can move between them, so the plan reported to the caller was not
540
+ * guaranteed to be the plan that ran. Both halves now share one `prepared`.
541
+ *
542
+ * It OPENS BEFORE IT ANSWERS. The 202 says the dispatch is running, so its execution must exist
543
+ * before the 202 is sent. It used to be opened inside {@link executePreparedBuildTask}, after this
544
+ * method had returned: on 2026-09-24 (scratch-journey, `build-task-i18n-labels`) the supervisor
545
+ * stopped the companion two seconds after the answer and before the open, and the dispatch left no
546
+ * row at all. Nothing listed it, nothing swept it, and the caller had been told it was running.
547
+ * Opened first, a run the process loses is an orphan the startup sweep settles visibly. A refusal
548
+ * to open (the worktree is held) now reaches the caller instead of a debug log.
549
+ */
550
+ submitBuildDispatchDetached(session) {
551
+ return this.prepareNextBuildTask().then(async (prepared) => {
552
+ const opened = await this.openPreparedBuildTask(prepared, session);
553
+ void this.executePreparedBuildTask(prepared, session, undefined, CodingRunConcurrency.SINGLE_FLIGHT, opened).catch((error) => {
554
+ // The failure is ON THE ACTOR PLANE already, with this message: a coding dispatch refused
555
+ // before admission settled ABORTED (FAILED when its own contract was invalid, #1581), a
556
+ // generation step that threw settled FAILED. Logged because a detached run has no caller.
557
+ this.logDebug('Detached build dispatch failed', { taskRef: prepared.plan.taskRef, error: describeCaughtError(error) });
558
+ });
559
+ return prepared.plan;
560
+ });
85
561
  }
86
562
  /**
87
563
  * Run the next ready build-plan task, routed by its own `target.kind`: a coding task goes to the coding
88
564
  * agent (bounded by its scope, locked, captured and verified); a companion generation step runs the
89
565
  * companion's own pipeline for that step. One route, two executors — the interleaving IS the build loop.
566
+ *
567
+ * The workbench dispatches through THIS method and the CLI through its detached sibling; both leave
568
+ * the same rows, because the record is a property of a DISPATCH and not of the door that asked.
90
569
  */
91
- async dispatchNextBuildTask(input = {}, session) {
92
- const prepared = await this.prepareNextBuildTask(input);
570
+ async dispatchNextBuildTask(session) {
571
+ return this.executePreparedBuildTask(await this.prepareNextBuildTask(), session);
572
+ }
573
+ /**
574
+ * Run THIS task (#1454, Step 7). Admitted only when it is READY: the same selection as
575
+ * `dispatchNextBuildTask`, narrowed to one candidate, so every stuck-task rule still applies and a
576
+ * task that is landed, blocked or unknown answers `ApplicationBuildTaskNotReadyError` instead of
577
+ * running. `origin` is stamped on the run's row so the conversation it came from shows it.
578
+ */
579
+ async dispatchBuildTask(taskRef, session, origin) {
580
+ return this.executePreparedBuildTask(await this.prepareNextBuildTask({ taskRef }), session, origin);
581
+ }
582
+ /**
583
+ * What running THIS task would mean, without running it: where it may write, what it must pass,
584
+ * and how much context the coding run would carry — what an assistant says before asking for the
585
+ * money. Throws exactly what `dispatchBuildTask` would refuse with.
586
+ */
587
+ async describeBuildTaskDispatch(taskRef) {
588
+ const prepared = await this.prepareNextBuildTask({ taskRef });
589
+ const contextTokens = prepared.kind === 'CODING'
590
+ ? prepared.contract.contextSelection?.maximumTokenBudget
591
+ : undefined;
592
+ return { plan: prepared.plan, stuckTasks: prepared.stuckTasks, ...(contextTokens !== undefined ? { contextTokens } : {}) };
593
+ }
594
+ /**
595
+ * Execute an ALREADY SELECTED task. The one seam both doors run through, so neither can drift from
596
+ * the other about how a target kind is routed — and so selection happens exactly once per dispatch.
597
+ *
598
+ * Both routes are ENGINE-DRIVEN executions (#1359), which is what makes a dispatch visible from
599
+ * selection to outcome without this service remembering anything.
600
+ */
601
+ /**
602
+ * Open a prepared task's execution without running it: the generation step's own row, or the
603
+ * coding run's `PENDING` selection row. For a caller that must answer only once the run is durable
604
+ * ({@link submitBuildDispatchDetached}).
605
+ */
606
+ async openPreparedBuildTask(prepared, session, origin, mode = CodingRunConcurrency.SINGLE_FLIGHT) {
607
+ if (prepared.kind === 'GENERATION_STEP') {
608
+ const openedStep = await this.actorsSystem.openActorExecution(this.buildGenerationStepExecutionRequest(prepared, session, origin));
609
+ // Its row is on the dispatch history from this moment; see `executePreparedBuildTask`.
610
+ this.dispatch.announceRunStateChanged();
611
+ return openedStep;
612
+ }
613
+ // Announced by the coding service itself when it opens the PENDING execution.
614
+ return this.dispatch.openSelectedApplicationCodingExecution(prepared.contract, session, origin, mode);
615
+ }
616
+ /** The execution a generation step is: one task of the build system's programmatic actor. */
617
+ buildGenerationStepExecutionRequest(prepared, session, origin) {
618
+ return {
619
+ systemRef: APPLICATION_BUILD_SYSTEM_REF,
620
+ actorRef: APPLICATION_BUILD_GENERATION_STEP_ACTOR_REF,
621
+ scope: session,
622
+ task: {
623
+ title: `Build generation step ${prepared.plan.taskRef}`,
624
+ description: `Companion generation step ${String(prepared.plan.generationStepRef)} of the application build plan.`,
625
+ topic: Actor_Task_Topics.IMPLEMENTATION,
626
+ input: {
627
+ taskRef: prepared.plan.taskRef,
628
+ generationStepRef: prepared.plan.generationStepRef ?? null,
629
+ ...(origin?.conversationId ? { conversationId: origin.conversationId } : {}),
630
+ },
631
+ // The same cross-plane join a coding task carries, so the board matches either kind of
632
+ // dispatch to its build-plan row by one key.
633
+ correlation: {
634
+ domain: WORKBENCH_TASK_CORRELATION_DOMAIN,
635
+ refs: { [WorkbenchTaskCorrelationRef.BUILD_PLAN_TASK]: sanitizeWorkbenchCreationPlaneIdentity(prepared.plan.taskRef) },
636
+ },
637
+ },
638
+ };
639
+ }
640
+ async executePreparedBuildTask(prepared, session, origin,
641
+ /** CONCURRENT only from {@link dispatchBuildWave} (#1528). */
642
+ mode = CodingRunConcurrency.SINGLE_FLIGHT,
643
+ /** Already opened by {@link openPreparedBuildTask}; opened here otherwise. */
644
+ opened) {
93
645
  if (prepared.kind === 'GENERATION_STEP') {
94
646
  this.logDebug('Running a companion generation step', {
95
647
  taskRef: prepared.plan.taskRef,
96
648
  generationStepRef: prepared.plan.generationStepRef,
97
649
  });
98
- const generationStep = await this.generationSteps.executeGenerationStep(prepared.task, session);
650
+ /*
651
+ * A generation step IS an execution of the build system's one PROGRAMMATIC actor: opened before
652
+ * the pipeline starts, settled COMPLETED with what it produced, or FAILED with the pipeline's
653
+ * own message when it throws (the driver rethrows it unchanged for this method's caller).
654
+ */
655
+ /*
656
+ * Announced when the step's execution OPENS and again once its row is TERMINAL, however it ended
657
+ * (#1310). The creation boards read that row: it is a line of the dispatch history while it
658
+ * runs, and its ending is what a failed step's line and the next task it unblocks are read
659
+ * from. A running step is NOT in the selection's in-flight set (that counts coding runs), so
660
+ * the open announcement is about the history, not about readiness. When `opened` is supplied,
661
+ * {@link openPreparedBuildTask} already announced the open.
662
+ */
663
+ const openedStep = opened ?? await this.actorsSystem.openActorExecution(this.buildGenerationStepExecutionRequest(prepared, session, origin));
664
+ if (!opened)
665
+ this.dispatch.announceRunStateChanged();
666
+ const generationStep = await this.actorsSystem.completeActorExecution(openedStep,
667
+ /*
668
+ * Inside the coding lane's attribution window, and accepted under the autonomy posture there
669
+ * (#1534): the step lands on COMMITTED paths and is exempt from the loop guard, so an
670
+ * uncommitted step would be re-selected forever. See `runGenerationStepInWorktreeWindow`.
671
+ */
672
+ (opened) => this.dispatch.runGenerationStepInWorktreeWindow({
673
+ taskRef: prepared.plan.taskRef,
674
+ taskId: opened.taskId,
675
+ execute: () => this.generationSteps.executeGenerationStep(prepared.task, session),
676
+ ...(session ? { sessionContext: session } : {}),
677
+ }), session, {
678
+ // The step's PRODUCT is files on disk; the row names them so a reader need not re-derive where to look.
679
+ concludeAs: (result) => ({
680
+ status: FlowsActors_Status.COMPLETED,
681
+ taskOutput: { generationStepRef: result.generationStepRef, evidencePaths: result.evidencePaths },
682
+ }),
683
+ }).finally(() => this.dispatch.announceRunStateChanged());
99
684
  return { plan: prepared.plan, generationStep };
100
685
  }
101
686
  this.logDebug('Dispatching a build task to the coding agent', {
102
687
  taskRef: prepared.plan.taskRef,
103
688
  allowedPathPrefixes: prepared.plan.allowedPathPrefixes,
104
689
  });
690
+ const contract = prepared.contract;
105
691
  /*
106
- * The churn gate, and deliberately NOT the retry (#265): a coding turn MUTATES the workspace, so
107
- * a kill mid-turn leaves a change-set the attribution machinery must reconcile — re-dispatching
108
- * blind on top of that is how two half-runs interleave. The gate raises the odds the turn never
109
- * meets the respawn; a killed coding run stays what it is today, a visibly aborted task an
110
- * operator re-dispatches deliberately.
692
+ * Opened at SELECTION, `PENDING`: what follows can take minutes and can fail, and until #1359 that
693
+ * stretch existed only in memory. The coding service STARTS this same execution at admission.
111
694
  */
112
- await waitForDevCompileQuiet({
113
- frameworkRepositoryRoot: this.companionContext.resolvedHomes.framework.repositoryRoot,
114
- log: (message, context) => this.logDebug(message, { taskRef: prepared.plan.taskRef, ...context }),
115
- });
116
- const admission = await this.dispatch.runApplicationCodingTask(prepared.contract);
117
- return { plan: prepared.plan, admission };
695
+ const selected = opened ?? await this.dispatch.openSelectedApplicationCodingExecution(contract, session, origin, mode);
696
+ try {
697
+ /*
698
+ * The churn gate, and deliberately NOT the retry (#265): a coding turn MUTATES the workspace, so
699
+ * a kill mid-turn leaves a change-set the attribution machinery must reconcile — re-dispatching
700
+ * blind on top of that is how two half-runs interleave. The gate raises the odds the turn never
701
+ * meets the respawn; a killed coding run stays what it is today, a visibly aborted task an
702
+ * operator re-dispatches deliberately.
703
+ */
704
+ await waitForDevCompileQuiet({
705
+ frameworkRepositoryRoot: this.companionContext.resolvedHomes.framework.repositoryRoot,
706
+ log: (message, context) => this.logDebug(message, { taskRef: prepared.plan.taskRef, ...context }),
707
+ /*
708
+ * Siblings in a wave keep the compilers busy by design (#1528), so a concurrent admission waits
709
+ * briefly rather than up to five minutes per slot. A run a respawn then kills stays what it is
710
+ * everywhere: a visibly aborted task, retried.
711
+ */
712
+ ...(mode === CodingRunConcurrency.CONCURRENT ? { maximumWaitMs: CONCURRENT_ADMISSION_COMPILE_QUIET_MS } : {}),
713
+ });
714
+ const admission = await this.dispatch.runApplicationCodingTask(contract, session, selected, origin, mode);
715
+ return { plan: prepared.plan, admission };
716
+ }
717
+ catch (error) {
718
+ /*
719
+ * The run never STARTED — a rejection from admission means exactly that, by the coding
720
+ * service's contract — so the execution opened at selection is this method's to settle.
721
+ * Best-effort: the dispatch's own error is what the caller must see, and a settle that also
722
+ * fails leaves a PENDING row the startup reconcile sweeps.
723
+ *
724
+ * ABORTED, not FAILED (#1581). A refusal here — the worktree held by another run, the coding
725
+ * agent unavailable — is the HOST declining to start the run, and the attempt budget counts
726
+ * FAILED coding runs as the task's own failures (`listAttributableFailedRunsForBuildTask`).
727
+ * Settled FAILED, three worktree-busy refusals retired a task that never ran. The message is
728
+ * still on the row, and the board's dispatch record still reads it as a failed dispatch.
729
+ *
730
+ * One refusal IS the task's own: admission refused its CONTRACT (an unregistered verification
731
+ * check, a malformed contract), marked by `isApplicationCodingContractRefusal`. Nothing about the
732
+ * host would make it pass next time, so it settles FAILED with `failureAttribution: TASK`: the
733
+ * budget counts it, and the board shows it as the attempt it is — otherwise it could never retire
734
+ * and would hold the head of the queue on every dispatch.
735
+ */
736
+ const failure = { message: describeCaughtError(error).slice(0, 400) };
737
+ await this.actorsSystem.settleActorExecution(selected, isApplicationCodingContractRefusal(error)
738
+ ? { status: FlowsActors_Status.FAILED, taskOutput: { failure, failureAttribution: CodingRunFailureAttribution.TASK } }
739
+ : { status: FlowsActors_Status.ABORTED, failure }, session).catch((settleError) => {
740
+ this.logDebug('A build dispatch failed before admission and its execution could not be settled', {
741
+ taskRef: prepared.plan.taskRef, settleError: describeCaughtError(settleError),
742
+ });
743
+ }).finally(() => {
744
+ /*
745
+ * The PENDING row left the in-flight set (#1310, fifth review F1), which is an input of the
746
+ * next-task selection, and no coding chain will announce this ending, because none started.
747
+ * Announced whether or not the settle itself succeeded.
748
+ */
749
+ this.dispatch.announceRunStateChanged();
750
+ });
751
+ throw error;
752
+ }
118
753
  }
119
754
  /**
120
- * Reconstruct the answerable state for a parked coding task whose IN-PROCESS
121
- * state was lost to a companion restart, by RE-SELECTING it from the build plan.
755
+ * Run the build with up to {@link readBuildParallelism} coding runs at once in the ONE worktree
756
+ * (#1528) — a rolling pool rather than fixed batches: when a run settles its slot is refilled with
757
+ * whatever is then ready, so a task that just landed unlocks its dependents in the same call.
758
+ *
759
+ * Optimistic by decision (Paul, 2026-09-24): runs share the tree and may edit the same files, the way
760
+ * parallel Claude Code sessions do every day. What is prevented is only a task being built twice at
761
+ * once (the per-task subject and the IN_FLIGHT skip). What is REPAIRED is at the end: once every run
762
+ * has settled, {@link CodingAgentDispatchCompanionService.reconcileWaveAcceptance} commits what the
763
+ * ordinary accept refused because siblings touched it. What is OBSERVED is on each run's row
764
+ * (`concurrency`, `interferenceSuspected`).
122
765
  *
123
- * The durable row still names its build-plan `taskRef` and carries the persisted
124
- * `suspension`; from those this re-composes the same bounded contract (mutation
125
- * scope + verification plan come from the task and its coding policy, unchanged
126
- * by a restart) against a DETERMINISTIC self-description context — the resume
127
- * discards context anyway, since the agent's persisted session holds the real
128
- * one. A fresh baseline is captured for the change-set the resume will produce.
766
+ * Bounded per call: at most {@link WAVE_DISPATCHES_PER_DEGREE} dispatches per slot, and a generation
767
+ * step at most once — a step whose landing stays unmet would otherwise be re-selected forever. The
768
+ * next call continues from wherever the build stands.
129
769
  *
130
- * Returns `null` when the task cannot be answered this way: not a parked coding
131
- * row, the agent does not support resume, the build task no longer exists, or it
132
- * is not a coding target. The caller then refuses rather than starting an
133
- * unrelated or unbounded run.
770
+ * With a degree of 1 this is one single-flight dispatch awaited to its outcome: exactly the lane as
771
+ * it was.
134
772
  */
135
- async reconstructParkedCodingTaskForResume(taskId, sessionContext) {
136
- const meta = await this.dispatch.loadPersistedParkedCodingTask(taskId, sessionContext);
137
- if (!meta || !meta.suspension.resumable)
138
- return null;
139
- const graph = await this.readBuildPlan();
140
- const task = graph.tasks.find((entry) => entry.taskRef === meta.taskRef);
141
- if (!task || task.target === undefined || task.target.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {
142
- return null;
773
+ async dispatchBuildWave(session) {
774
+ const degree = readBuildParallelism(this.companionContext.saasRoot);
775
+ const mode = degree > 1 ? CodingRunConcurrency.CONCURRENT : CodingRunConcurrency.SINGLE_FLIGHT;
776
+ const maximumDispatches = degree * WAVE_DISPATCHES_PER_DEGREE;
777
+ const dispatched = [];
778
+ const inFlight = new Map();
779
+ const generationStepsRun = new Set();
780
+ let stoppedFillingBecause;
781
+ const fill = async () => {
782
+ while (stoppedFillingBecause === undefined && inFlight.size < degree) {
783
+ if (dispatched.length >= maximumDispatches) {
784
+ stoppedFillingBecause = ApplicationBuildWaveStop.DISPATCH_CAP;
785
+ return;
786
+ }
787
+ let prepared;
788
+ try {
789
+ prepared = await this.prepareNextBuildTask();
790
+ }
791
+ catch (error) {
792
+ if (error instanceof ApplicationBuildPlanExhaustedError || error instanceof ApplicationBuildTaskCompletedButUnlandedError) {
793
+ // Nothing ready NOW. While runs are live that is a pause, not an end: a settle may unlock more.
794
+ if (inFlight.size === 0)
795
+ stoppedFillingBecause = ApplicationBuildWaveStop.NOTHING_READY;
796
+ return;
797
+ }
798
+ throw error;
799
+ }
800
+ if (prepared.kind === 'GENERATION_STEP') {
801
+ if (generationStepsRun.has(prepared.plan.taskRef)) {
802
+ stoppedFillingBecause = ApplicationBuildWaveStop.GENERATION_STEP_REPEATED;
803
+ return;
804
+ }
805
+ generationStepsRun.add(prepared.plan.taskRef);
806
+ dispatched.push(await this.executePreparedBuildTask(prepared, session));
807
+ continue;
808
+ }
809
+ try {
810
+ const result = await this.executePreparedBuildTask(prepared, session, undefined, mode);
811
+ dispatched.push(result);
812
+ const taskId = result.admission.taskId;
813
+ inFlight.set(taskId, this.awaitCodingRunOutcome(taskId, session).then((outcome) => ({ taskId, outcome })));
814
+ }
815
+ catch (error) {
816
+ // A refused admission is recorded and ends the filling; the live runs still drain.
817
+ dispatched.push({ plan: prepared.plan, error: describeCaughtError(error) });
818
+ stoppedFillingBecause = ApplicationBuildWaveStop.DISPATCH_REFUSED;
819
+ return;
820
+ }
821
+ }
822
+ };
823
+ const outcomes = [];
824
+ await fill();
825
+ while (inFlight.size > 0) {
826
+ const settled = await Promise.race(inFlight.values());
827
+ inFlight.delete(settled.taskId);
828
+ outcomes.push(settled.outcome);
829
+ await fill();
143
830
  }
144
- let contract;
145
- try {
146
- const boundary = resolveBuildPlanTaskCodingPolicy(task);
147
- contract = composeBuildTaskCodingContract({
148
- task,
149
- boundary,
150
- // The deterministic self-description only: a resume does not re-send the
151
- // task prompt, so re-running the full live-query/introspection assembly
152
- // would spend a model call to build context nothing reads.
153
- contextSources: [this.buildTaskSelfDescriptionContextSource(task, graph.tasks.length)],
154
- objectiveRef: 'application-creation:objective/build-plan',
155
- maximumTokenBudget: DEFAULT_CONTEXT_TOKEN_BUDGET,
156
- });
831
+ stoppedFillingBecause ??= ApplicationBuildWaveStop.NOTHING_READY;
832
+ /*
833
+ * REPAIR, now that nothing is writing. Every run that completed gets its writes committed again,
834
+ * tolerating what siblings did to them — the merged tree IS the wave's result. Only when the wave
835
+ * was concurrent: a single-flight run's own accept never meets a sibling.
836
+ */
837
+ const completedTaskRefs = mode === CodingRunConcurrency.CONCURRENT
838
+ ? outcomes.flatMap((outcome) => (outcome?.status === FlowsActors_Status.COMPLETED && outcome.taskRef ? [outcome.taskRef] : []))
839
+ : [];
840
+ const reconciliation = completedTaskRefs.length > 0 ? await this.dispatch.reconcileWaveAcceptance(completedTaskRefs) : [];
841
+ return { degree, mode, dispatched, outcomes, reconciliation, stoppedFillingBecause };
842
+ }
843
+ /**
844
+ * Wait for one admitted coding run to SETTLE, then report what it actually did.
845
+ *
846
+ * `dispatchNextBuildTask` resolves at ADMISSION for a coding target — the lock is held, the durable
847
+ * row exists, and the agent has not written a line yet. That is the right contract for a caller
848
+ * that wants to watch (the detached record says `ADMITTED` and hands over the task id), and the
849
+ * wrong one for a caller that REPORTS AN OUTCOME: the first playbook run through this tier recorded
850
+ * `ok: true` at a `finishedAt` equal to the coding run's `startedAt`, so a green run described work
851
+ * that was still executing and no evaluation could ever see a result.
852
+ *
853
+ * Two steps because they fail differently. The settlement is in-process and is `null` for a row this
854
+ * process did not admit — a restart, or a previous generation — in which case there is nothing to
855
+ * wait for and the durable row already holds whatever is knowable. The read is durable and answers
856
+ * `null` only when the row cannot be classified at all, which a caller must report as "unknown",
857
+ * never as a failed run.
858
+ */
859
+ async awaitCodingRunOutcome(taskId, session) {
860
+ const settlement = this.dispatch.awaitApplicationCodingTaskSettlement(taskId);
861
+ if (settlement)
862
+ await settlement;
863
+ return this.dispatch.readApplicationCodingTaskOutcome(taskId, session);
864
+ }
865
+ /**
866
+ * The task the dispatcher would select has ALREADY been run to a working result and is still
867
+ * not landed — so selecting it again is a loop, not progress.
868
+ *
869
+ * Refused rather than re-dispatched because each iteration spawns a coding agent and costs real
870
+ * money: measured 2026-09-10 on Wonder CRM at roughly $7.50 a turn, three turns, same task
871
+ * (#606). Every run SUCCEEDED; what fails is the plan's ability to say the work landed.
872
+ *
873
+ * The remedy is never "run it again" — it is to fix what the task declares it PRODUCES, or to
874
+ * fix the work so the declared product exists. Naming both in the message keeps an operator out
875
+ * of the coding host, which is the wrong place to look: the run is not the defect.
876
+ */
877
+ buildUnlandableTaskError(stuck, queue) {
878
+ const entry = stuck[0];
879
+ const stuckCount = stuck.length;
880
+ const { taskRef, priorTaskId, completedAt } = entry;
881
+ const when = completedAt === undefined ? '' : ` at ${completedAt}`;
882
+ const others = stuckCount > 1 ? ` ${stuckCount - 1} other ready task(s) are stuck the same way.` : '';
883
+ /*
884
+ * Four ways to be stuck, four DIFFERENT remedies — so they must not share prose. A message that
885
+ * sent an operator to fix a `produces` declaration while a live question sat unanswered, or while
886
+ * the real fault was a document the catalog does not define, is a message that costs a session.
887
+ */
888
+ if (entry.reason === Workbench_BuildTaskStuckReason.PARKED_AWAITING_ANSWER) {
889
+ return new ApplicationBuildTaskCompletedButUnlandedError(`Build task "${taskRef}" is PARKED on an unanswered question (task ${priorTaskId}), so dispatching it `
890
+ + 'again would abandon that run\'s persisted session and lose the question with it. The question is: '
891
+ + `${entry.question ?? '(not recorded on the durable row)'} — answer it through the coding-agent resume `
892
+ + 'door, or retire the task from the plan if it cannot be built as declared. Do not re-dispatch.'
893
+ + `${others}`, taskRef, priorTaskId, stuck, queue);
157
894
  }
158
- catch {
159
- // A task that no longer composes to a bounded run (empty scope, no checks,
160
- // wrong target) is not answerable — refuse rather than resume unbounded.
161
- return null;
895
+ if (entry.reason === Workbench_BuildTaskStuckReason.NO_DOCUMENT_BLUEPRINT) {
896
+ return new ApplicationBuildTaskCompletedButUnlandedError(`Build task "${taskRef}" declares it produces the governed document "${entry.documentRef}", which the engine `
897
+ + 'catalog does not define — so there is no blueprint saying what it must contain, and a run could only '
898
+ + 'INVENT its structure, which the authoring skill forbids. No agent can complete it. Declare a document '
899
+ + `the catalog defines (a candidate carries \`document:<namespace>.<id>\`), or retire the task.`
900
+ + (entry.priorTaskId === ''
901
+ ? ''
902
+ : ` NOTE: a run for it is PARKED on a question (task ${entry.priorTaskId}); retiring the task abandons `
903
+ + `that session. The question is: ${entry.question ?? '(not recorded)'}`)
904
+ + others, taskRef, priorTaskId, stuck, queue);
162
905
  }
163
- const verificationPlans = resolveApplicationCodingTaskVerificationPlans(contract.verificationIntent.requiredChecks);
164
- const baseline = await this.git.captureWorktreeSnapshot();
165
- return {
166
- durableTask: meta.durableTask,
167
- task: contract,
168
- verificationPlans,
169
- baseline,
170
- suspension: meta.suspension,
171
- parkedAt: new Date().toISOString(),
172
- };
906
+ if (entry.reason === Workbench_BuildTaskStuckReason.IN_FLIGHT) {
907
+ return new ApplicationBuildTaskCompletedButUnlandedError(`Build task "${taskRef}" is being built right now by a live coding run, so it is not offered again until `
908
+ + `that run settles. Nothing to do: the next dispatch after it settles picks up wherever the build then stands.${others}`, taskRef, priorTaskId, stuck, queue);
909
+ }
910
+ if (entry.reason === Workbench_BuildTaskStuckReason.ATTEMPTS_EXHAUSTED) {
911
+ return new ApplicationBuildTaskCompletedButUnlandedError(`Build task "${taskRef}" has failed ${MAXIMUM_ATTRIBUTABLE_FAILED_ATTEMPTS} times (latest: task ${priorTaskId}${when}), `
912
+ + 'each a failure of its own making, so it is not offered again as the same dispatch. Read the latest run\'s '
913
+ + 'failure (its verification output and closing report are on that task row), fix the cause, then put it back '
914
+ + `with \`wildo workbench rearm-task ${taskRef} --reason <why> --note <what was fixed>\`.${others}`, taskRef, priorTaskId, stuck, queue);
915
+ }
916
+ if (entry.reason === Workbench_BuildTaskStuckReason.COMPLETED_AWAITING_COMMIT) {
917
+ return new ApplicationBuildTaskCompletedButUnlandedError(`Build task "${taskRef}" already completed${when} (task ${priorTaskId}) and its declared product IS in the `
918
+ + `working tree, uncommitted: ${(entry.uncommittedPaths ?? []).join(', ')}. Landing means committed, because `
919
+ + 'acceptance is a commit — review the run\'s change set and commit it (with the rest of what the run '
920
+ + `wrote), and the task lands. Do not re-dispatch, and do not change its \`produces\` declaration.${others}`, taskRef, priorTaskId, stuck, queue);
921
+ }
922
+ return new ApplicationBuildTaskCompletedButUnlandedError(`Build task "${taskRef}" already completed${when} (task ${priorTaskId}) and is STILL not landed, so `
923
+ + 'dispatching it again would re-run work that succeeded. Its landed probes are derived from what '
924
+ + 'the task declares it `produces`, and they are unmet in the working tree as well as at HEAD: either '
925
+ + 'that declaration is empty or wrong, or the run did not produce it. Fix the declaration or the work — do not re-dispatch. '
926
+ + `Once the cause is fixed, put the task back with \`wildo workbench rearm-task ${taskRef} --reason <why> --note <what was fixed>\`.${others}`, taskRef, priorTaskId, stuck, queue);
927
+ }
928
+ /**
929
+ * Select the task to run: the NEXT ready one, or — with `selection` — the NAMED one, which must be
930
+ * among the ready ones. The stuck-task rules below apply to either; naming a task never lets it
931
+ * skip them.
932
+ */
933
+ /**
934
+ * WHY a ready build task cannot make progress — or `null` when it can be dispatched.
935
+ *
936
+ * ONE classification, called by both the selector (`prepareNextBuildTask`, which skips a stuck task)
937
+ * and the per-task record (`describeBuildTaskRecords`, which reports it). Until #1521 it lived inline
938
+ * in the selection loop, so the only surface that ever saw a task's reason was the loop guard's
939
+ * refusal, thrown away on every ordinary round. Two copies would be two answers to one question.
940
+ *
941
+ * Generation steps are not asked: their landing is a typed condition of their own, and one of them
942
+ * is legitimately re-runnable.
943
+ */
944
+ async classifyStuckBuildTask(candidate,
945
+ /** The build tasks with a live coding run, when the caller already read them once for a whole selection. */
946
+ inFlightTaskRefs) {
947
+ /*
948
+ * FIRST, because it is the one reason that is progress rather than a fault: a run of this task is
949
+ * live (#1528). Under a parallel wave the next selection must pass over it, or two agents build the
950
+ * same task. The engine's per-task subject refuses the second one anyway; this keeps the wave from
951
+ * spending a slot on the refusal.
952
+ */
953
+ const inFlight = inFlightTaskRefs !== undefined
954
+ ? (inFlightTaskRefs.has(candidate.taskRef) ? { executionId: '' } : null)
955
+ : await this.dispatch.findInFlightRunForBuildTask(candidate.taskRef);
956
+ if (inFlight !== null) {
957
+ return { taskRef: candidate.taskRef, priorTaskId: '', reason: Workbench_BuildTaskStuckReason.IN_FLIGHT };
958
+ }
959
+ /*
960
+ * Asked BEFORE any durable-run lookup, because it is the one reason that does not need a run to
961
+ * have happened: a task producing a document the catalog cannot describe is unbuildable from the
962
+ * moment it is authored, and dispatching it spends a full agent turn to rediscover that. Wonder
963
+ * CRM's plan carries two.
964
+ */
965
+ const undraftableDocumentRef = resolveUndraftableDocumentRef(candidate);
966
+ if (undraftableDocumentRef !== undefined) {
967
+ /*
968
+ * A task can be BOTH unbuildable and parked — Wonder CRM's GDPR task is exactly that. The
969
+ * document fault is the one that decides (no run can ever complete it), but retiring a task
970
+ * with a live persisted session is a deliberate act, so the park is named rather than dropped.
971
+ */
972
+ const alsoParked = await this.dispatch.findParkedRunForBuildTask(candidate.taskRef);
973
+ return {
974
+ taskRef: candidate.taskRef,
975
+ priorTaskId: alsoParked?.taskId ?? '',
976
+ reason: Workbench_BuildTaskStuckReason.NO_DOCUMENT_BLUEPRINT,
977
+ documentRef: undraftableDocumentRef,
978
+ question: alsoParked?.question,
979
+ };
980
+ }
981
+ const priorRun = await this.dispatch.findCompletedRunForBuildTask(candidate.taskRef);
982
+ if (priorRun !== null) {
983
+ const uncommittedPaths = await this.resolveProducedButUncommittedPaths(candidate);
984
+ return {
985
+ taskRef: candidate.taskRef,
986
+ priorTaskId: priorRun.taskId,
987
+ completedAt: priorRun.completedAt,
988
+ reason: uncommittedPaths === undefined ? Workbench_BuildTaskStuckReason.COMPLETED_UNLANDED : Workbench_BuildTaskStuckReason.COMPLETED_AWAITING_COMMIT,
989
+ uncommittedPaths,
990
+ };
991
+ }
992
+ /*
993
+ * A run that SUSPENDED is not a completed run, so the lookup above cannot see it — and without
994
+ * this second question the task is offered again on every dispatch, forever. Measured
995
+ * 2026-09-16 on Wonder CRM: `build-task-gdpr-data-handling-governance` parked on a question,
996
+ * and the next dry run selected the same task. The anti-loop guard was answering honestly
997
+ * about the wrong population.
998
+ *
999
+ * Skipped, never blocking: the parked run keeps its persisted session, its dependents keep
1000
+ * waiting, and the rest of the plan proceeds.
1001
+ */
1002
+ const parkedRun = await this.dispatch.findParkedRunForBuildTask(candidate.taskRef);
1003
+ if (parkedRun !== null) {
1004
+ return { taskRef: candidate.taskRef, priorTaskId: parkedRun.taskId, reason: Workbench_BuildTaskStuckReason.PARKED_AWAITING_ANSWER, question: parkedRun.question };
1005
+ }
1006
+ /*
1007
+ * The ATTEMPT BUDGET (#1536). A failed run is re-offered by design — it is exactly what an
1008
+ * operator should be able to retry — and until this nothing counted: on the first end-to-end run
1009
+ * two tasks ran three times each for $69, re-dispatched identically. Only the task's own failures
1010
+ * count (a check already red before a run no longer fails it), so this retires a task for what IT
1011
+ * did; the re-arm door releases it once the cause is fixed.
1012
+ */
1013
+ const failedRuns = await this.dispatch.listAttributableFailedRunsForBuildTask(candidate.taskRef);
1014
+ if (failedRuns.length >= MAXIMUM_ATTRIBUTABLE_FAILED_ATTEMPTS) {
1015
+ return {
1016
+ taskRef: candidate.taskRef,
1017
+ priorTaskId: failedRuns[0].taskId,
1018
+ ...(failedRuns[0].settledAt ? { completedAt: failedRuns[0].settledAt } : {}),
1019
+ reason: Workbench_BuildTaskStuckReason.ATTEMPTS_EXHAUSTED,
1020
+ };
1021
+ }
1022
+ return null;
173
1023
  }
174
- async prepareNextBuildTask(input) {
1024
+ async prepareNextBuildTask(selection) {
175
1025
  const graph = await this.readBuildPlan();
176
- const landedTaskRefs = await this.resolveLandedTaskRefs(graph.tasks);
1026
+ const resolution = await this.resolveLandedTaskRefs(graph.tasks);
1027
+ const landedTaskRefs = resolution.landed;
177
1028
  const ready = selectReadyBuildPlanTasks(graph, landedTaskRefs);
1029
+ if (selection !== undefined && !ready.some((candidate) => candidate.taskRef === selection.taskRef)) {
1030
+ const named = graph.tasks.find((candidate) => candidate.taskRef === selection.taskRef);
1031
+ const standing = named === undefined ? ApplicationBuildTaskStanding.UNKNOWN
1032
+ : landedTaskRefs.has(named.taskRef) ? ApplicationBuildTaskStanding.LANDED
1033
+ : ApplicationBuildTaskStanding.BLOCKED;
1034
+ const unmet = named === undefined ? [] : named.prerequisiteTaskRefs.filter((prerequisite) => !landedTaskRefs.has(prerequisite));
1035
+ throw new ApplicationBuildTaskNotReadyError(standing === ApplicationBuildTaskStanding.UNKNOWN ? `The build plan holds no task "${selection.taskRef}".`
1036
+ : standing === ApplicationBuildTaskStanding.LANDED ? `Task ${selection.taskRef} has already landed.`
1037
+ : `Task ${selection.taskRef} is not ready: it waits on ${unmet.join(', ')}.`, selection.taskRef, standing, unmet);
1038
+ }
178
1039
  if (ready.length === 0) {
179
1040
  throw new ApplicationBuildPlanExhaustedError(`Every task in the build plan has landed, or none is ready: ${graph.tasks.length} task(s), `
180
- + `${landedTaskRefs.size} landed.`);
1041
+ + `${landedTaskRefs.size} landed.`, graph.tasks.length, landedTaskRefs.size);
181
1042
  }
182
1043
  /*
183
1044
  * The FIRST ready task, in graph order — routed by its own `target.kind`, never reordered.
@@ -188,7 +1049,89 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
188
1049
  * remained — correct while no executor existed, a hole in the lane once one did: the first authored
189
1050
  * generation step parked the Wonder Todos build behind a named 409 forever.)
190
1051
  */
191
- const task = ready[0];
1052
+ /*
1053
+ * THE FIRST ready task in graph order — SKIPPING any that has already run and still cannot prove
1054
+ * it landed. Skipping is not reordering: the graph's order is preserved, a known-stuck task is
1055
+ * removed from it.
1056
+ *
1057
+ * Such a task declared a product and the run did not produce it, so the declaration or the work
1058
+ * is wrong. Re-offering it is the money-burning loop; REFUSING THE WHOLE QUEUE for it — which is
1059
+ * what this did until 2026-09-12 — is the gate `application-creation-directive.md` forbids, one
1060
+ * task later. One over-derived field would freeze an entire 42-task build.
1061
+ *
1062
+ * It is SKIPPED rather than MARKED, and the asymmetry against the no-product case above is the
1063
+ * whole design. A task declaring nothing can never be proven by any run, so marking it is the
1064
+ * only way the lane moves — measured at 1 of 42 reachable otherwise. A task whose product is
1065
+ * merely ABSENT is provable: fix the declaration or the work and it lands. So it stays NOT
1066
+ * landed, its dependents correctly wait, and every unrelated branch proceeds.
1067
+ */
1068
+ const stuck = [];
1069
+ let selected;
1070
+ let unanswerableGenerationStep;
1071
+ const candidates = selection === undefined ? ready : ready.filter((candidate) => candidate.taskRef === selection.taskRef);
1072
+ // Read ONCE per selection: a wave selects repeatedly over a wide ready set (#1528).
1073
+ const inFlightTaskRefs = new Set((await this.dispatch.listInFlightCodingRuns()).flatMap((run) => (run.taskRef ? [run.taskRef] : [])));
1074
+ for (const candidate of candidates) {
1075
+ /*
1076
+ * Generation steps are exempt: their landing is the generation-step service's own typed
1077
+ * condition rather than a product declaration, and one of them (`i18n-labels`) is legitimately
1078
+ * re-runnable when the locale set changes.
1079
+ */
1080
+ if (candidate.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {
1081
+ /*
1082
+ * …except one whose schema-plan check could not be ANSWERED (`SchemaPlanSyncState.UNANSWERABLE`).
1083
+ * It cannot land, and running it only throws (every cause is listed on that member — no built
1084
+ * registry and a planner-contract mismatch among them), so holding the head of the queue for it stops every other task: the
1085
+ * whole-queue refusal this loop exists not to be. Passed over, not dropped: when nothing else is
1086
+ * ready it is still selected below, so its executor's refusal names the cause.
1087
+ */
1088
+ if (resolution.unanswerableSchemaPlanTaskRefs.has(candidate.taskRef)) {
1089
+ unanswerableGenerationStep ??= candidate;
1090
+ continue;
1091
+ }
1092
+ selected = candidate;
1093
+ break;
1094
+ }
1095
+ const stuckEntry = await this.classifyStuckBuildTask(candidate, inFlightTaskRefs);
1096
+ if (stuckEntry !== null) {
1097
+ stuck.push(stuckEntry);
1098
+ continue;
1099
+ }
1100
+ selected = candidate;
1101
+ break;
1102
+ }
1103
+ if (selected === undefined && unanswerableGenerationStep !== undefined) {
1104
+ selected = unanswerableGenerationStep;
1105
+ }
1106
+ else if (unanswerableGenerationStep !== undefined) {
1107
+ this.logger.warn?.('Build dispatch passed over a migration step whose `wildo db diff --check` neither passed nor reported drift '
1108
+ + '(no accepted schema plan, no built backend registry, a CLI that could not import or spawn, a timeout, an '
1109
+ + 'unparseable lockfile, or an engine planner-contract mismatch — run `wildo db diff` to see which). The rest '
1110
+ + 'of the plan proceeds; the step is offered again once the check answers.', { deferredTaskRef: unanswerableGenerationStep.taskRef, selectedTaskRef: selected?.taskRef });
1111
+ }
1112
+ if (selected === undefined) {
1113
+ /*
1114
+ * Everything ready has already run and none of it landed. A DISTINCT terminal from
1115
+ * `ApplicationBuildPlanExhaustedError`, which means the opposite and is healthy — conflating
1116
+ * them would let a wholly stuck build read as a finished one.
1117
+ */
1118
+ throw this.buildUnlandableTaskError(stuck, {
1119
+ taskCount: graph.tasks.length,
1120
+ readyTaskRefs: ready.map((entry) => entry.taskRef),
1121
+ landedTaskRefs: [...landedTaskRefs].sort(),
1122
+ unverifiableLandedTaskRefs: resolution.unverifiableLandedTaskRefs,
1123
+ });
1124
+ }
1125
+ // A task being built right now is not a finding (#1528); only the rest are worth a warning.
1126
+ if (stuck.some((entry) => entry.reason !== Workbench_BuildTaskStuckReason.IN_FLIGHT)) {
1127
+ const stuckByReason = Object.fromEntries(Object.values(Workbench_BuildTaskStuckReason).map((reason) => [reason, stuck.filter((entry) => entry.reason === reason).map((entry) => entry.taskRef)]));
1128
+ this.logger.warn?.(`Build dispatch skipped ${stuck.length} ready task(s) that cannot make progress. Those that already RAN `
1129
+ + 'either wrote their product without committing it (commit it to land them) or declared a product the '
1130
+ + 'run did not produce (the declaration or the work is wrong). Those that are '
1131
+ + 'PARKED are waiting on an answer, and re-dispatching one would abandon its persisted session. Their '
1132
+ + 'dependents stay blocked while the rest of the plan proceeds.', { skippedTaskRefs: stuck.map((entry) => entry.taskRef), stuckByReason, selectedTaskRef: selected.taskRef });
1133
+ }
1134
+ const task = selected;
192
1135
  if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {
193
1136
  const evidencePaths = await this.generationSteps.resolveGenerationStepEvidencePaths(task);
194
1137
  const evidenceRoots = [...new Set(evidencePaths.map((evidencePath) => `${evidencePath.split('/').slice(0, -1).join('/')}/`))].sort();
@@ -196,6 +1139,7 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
196
1139
  taskRef: task.taskRef,
197
1140
  objective: task.objective,
198
1141
  targetKind: task.target.kind,
1142
+ produces: task.produces,
199
1143
  generationStepRef: task.target.generationStepRef,
200
1144
  allowedPathPrefixes: evidenceRoots,
201
1145
  prohibitedPathPrefixes: [],
@@ -204,29 +1148,31 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
204
1148
  installedSkillRefs: [],
205
1149
  readyTaskRefs: ready.map((entry) => entry.taskRef),
206
1150
  landedTaskRefs: [...landedTaskRefs].sort(),
1151
+ unverifiableLandedTaskRefs: resolution.unverifiableLandedTaskRefs,
207
1152
  };
208
- return { kind: 'GENERATION_STEP', plan, task };
1153
+ return { kind: 'GENERATION_STEP', plan, task, stuckTasks: stuck };
209
1154
  }
210
- const boundary = resolveBuildPlanTaskCodingPolicy(task);
1155
+ const boundary = resolveBuildPlanTaskCodingPolicy(task, this.readApplicationWorkspaceEntries());
211
1156
  const contract = composeBuildTaskCodingContract({
212
1157
  task,
213
1158
  boundary,
214
1159
  contextSources: await this.buildContextSources(task, graph.tasks.length),
215
1160
  objectiveRef: 'application-creation:objective/build-plan',
216
- maximumTokenBudget: input.maximumTokenBudget ?? DEFAULT_CONTEXT_TOKEN_BUDGET,
217
1161
  });
218
1162
  const plan = {
219
1163
  taskRef: task.taskRef,
220
1164
  objective: task.objective,
221
1165
  targetKind: task.target.kind,
1166
+ produces: task.produces,
222
1167
  allowedPathPrefixes: contract.mutationScope.allowedPathPrefixes,
223
1168
  prohibitedPathPrefixes: contract.mutationScope.prohibitedPathPrefixes,
224
1169
  requiredChecks: contract.verificationIntent.requiredChecks,
225
1170
  installedSkillRefs: contract.installedSkillRefs,
226
1171
  readyTaskRefs: ready.map((entry) => entry.taskRef),
227
1172
  landedTaskRefs: [...landedTaskRefs].sort(),
1173
+ unverifiableLandedTaskRefs: resolution.unverifiableLandedTaskRefs,
228
1174
  };
229
- return { kind: 'CODING', plan, contract };
1175
+ return { kind: 'CODING', plan, contract, stuckTasks: stuck };
230
1176
  }
231
1177
  /**
232
1178
  * Which tasks have landed, read from GIT.
@@ -253,8 +1199,210 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
253
1199
  catch {
254
1200
  return undefined;
255
1201
  }
256
- const landed = await this.resolveLandedTaskRefs(plan.tasks);
257
- return { totalTasks: plan.tasks.length, landedTasks: landed.size };
1202
+ const { landed } = await this.resolveLandedTaskRefs(plan.tasks);
1203
+ const progress = { totalTasks: plan.tasks.length, landedTasks: landed.size };
1204
+ const readyTasksAllStuck = await this.resolveReadyTasksAllStuck(plan, landed);
1205
+ return readyTasksAllStuck === undefined ? progress : { ...progress, readyTasksAllStuck };
1206
+ }
1207
+ /**
1208
+ * The ready tasks, when EVERY one is stuck — the state in which `dispatchNextBuildTask` refuses
1209
+ * before starting anything (#1547). The eligibility board withholds the dispatch playbook on it, so an
1210
+ * unattended loop stops offering a run that can only fail.
1211
+ *
1212
+ * Asked with the SAME classification the selector uses, so the board and the dispatcher cannot
1213
+ * disagree about whether anything can run. A generation step is never stuck by that classification,
1214
+ * so a ready one means something is dispatchable. Undefined whenever the answer is not positively
1215
+ * "all stuck" — nothing ready, something dispatchable, or a classification that threw — because a gate
1216
+ * that closes on an unreadable answer withholds work that may well be runnable.
1217
+ */
1218
+ async resolveReadyTasksAllStuck(plan, landed) {
1219
+ if (landed.size >= plan.tasks.length)
1220
+ return undefined;
1221
+ const ready = selectReadyBuildPlanTasks(plan, landed);
1222
+ if (ready.length === 0)
1223
+ return undefined;
1224
+ const stuck = [];
1225
+ for (const task of ready) {
1226
+ if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP)
1227
+ return undefined;
1228
+ let entry;
1229
+ try {
1230
+ entry = await this.classifyStuckBuildTask(task);
1231
+ }
1232
+ catch {
1233
+ return undefined;
1234
+ }
1235
+ // A task being built right now is progress, not stuck: the plan is not blocked while a wave runs.
1236
+ if (entry === null || entry.reason === Workbench_BuildTaskStuckReason.IN_FLIGHT)
1237
+ return undefined;
1238
+ stuck.push(task.taskRef);
1239
+ }
1240
+ return stuck;
1241
+ }
1242
+ /**
1243
+ * What LANDED, and what of it was PROVEN — the maturity reading's evidence input (#1496).
1244
+ *
1245
+ * Exposed here rather than recomputed by the reading, because "did this task land" is a question
1246
+ * about committed bytes that this service already answers, and a second implementation of it is
1247
+ * how two surfaces come to disagree about whether a task is done.
1248
+ *
1249
+ * The two sets differ by `unverifiableLandedTaskRefs`: a task that declares no product cannot be
1250
+ * probed, so a completed durable run lands it as RAN-not-PROVEN rather than stalling the queue
1251
+ * (`application-creation-directive.md` — mark, never gate). A requirement whose only build work is
1252
+ * such a task stops at `BUILT`, which is the honest reading of it.
1253
+ *
1254
+ * `undefined` when the application has no build plan OR its plan cannot be read — absence is not
1255
+ * an empty landing, and a reading that treated it as one would report every requirement as unbuilt
1256
+ * for a reason that has nothing to do with the requirements.
1257
+ *
1258
+ * Absence is tested DIRECTLY, like `describeBuildPlanBoard` beside it and for its reason:
1259
+ * `readBuildPlan` throws the same class for a plan that exists and fails validation, so catching
1260
+ * alone would flatten "could not look" into "nothing there" — and here that difference is a
1261
+ * landed artifact saying an application has built nothing.
1262
+ */
1263
+ async resolveLandedTaskEvidence() {
1264
+ if (!(await this.hasAuthoredBuildPlan()))
1265
+ return undefined;
1266
+ let plan;
1267
+ try {
1268
+ plan = await this.readBuildPlan();
1269
+ }
1270
+ catch {
1271
+ return undefined;
1272
+ }
1273
+ const resolution = await this.resolveLandedTaskRefs(plan.tasks);
1274
+ const unverifiable = new Set(resolution.unverifiableLandedTaskRefs);
1275
+ const landedTaskRefs = [...resolution.landed];
1276
+ return { landedTaskRefs, provenTaskRefs: landedTaskRefs.filter((taskRef) => !unverifiable.has(taskRef)) };
1277
+ }
1278
+ /**
1279
+ * The per-task build record an operator or an agent reads in ONE call (#1521).
1280
+ *
1281
+ * Composed entirely from what already exists — the plan, the landing resolution, the actor plane's
1282
+ * execution rows, and the stuck classification the selector uses — and stored nowhere. A second
1283
+ * ledger of attempts would be a second answer to "what happened to this task", and the rows the
1284
+ * engine already writes are the first.
1285
+ *
1286
+ * `undefined` when the application has no build plan, for the reason `resolveLandedTaskEvidence`
1287
+ * gives: absence is not an empty build.
1288
+ */
1289
+ /**
1290
+ * Put a build task back in the queue after the reason it did not land was fixed (#1535). The ref must
1291
+ * be a task of THIS build plan: re-arming a ref the plan does not carry would record a decision about
1292
+ * nothing, and a typo would read as success.
1293
+ */
1294
+ async rearmBuildTask(taskRef, request, session) {
1295
+ const plan = await this.readBuildPlan();
1296
+ if (!plan.tasks.some((task) => task.taskRef === taskRef)) {
1297
+ throw new NothingToRearmError(`"${taskRef}" is not a task of this application's build plan, so there is nothing to re-arm.`);
1298
+ }
1299
+ return this.dispatch.rearmBuildTask(taskRef, request, session);
1300
+ }
1301
+ async describeBuildTaskRecords(session) {
1302
+ if (!(await this.hasAuthoredBuildPlan()))
1303
+ return undefined;
1304
+ const plan = await this.readBuildPlan();
1305
+ const resolution = await this.resolveLandedTaskRefs(plan.tasks);
1306
+ const ready = new Set(selectReadyBuildPlanTasks(plan, resolution.landed).map((task) => task.taskRef));
1307
+ const unverifiable = new Set(resolution.unverifiableLandedTaskRefs);
1308
+ const listed = await Promise.all([APPLICATION_CODING_SYSTEM_REF, APPLICATION_BUILD_SYSTEM_REF].map((systemRef) => this.executions.listActorExecutions(CompanionExecutionsListQuerySchema.parse({ systemRef, limit: BUILD_TASK_ATTEMPT_PAGE_CAP }), session)));
1309
+ const attemptsTruncated = listed.some((page) => page.length >= BUILD_TASK_ATTEMPT_PAGE_CAP);
1310
+ const attemptsByTask = new Map();
1311
+ for (const projected of listed.flat().map(projectBuildTaskAttempt)) {
1312
+ if (projected === null)
1313
+ continue;
1314
+ const list = attemptsByTask.get(projected.taskRef) ?? [];
1315
+ list.push(projected.attempt);
1316
+ attemptsByTask.set(projected.taskRef, list);
1317
+ }
1318
+ for (const list of attemptsByTask.values())
1319
+ list.sort((left, right) => right.startedAt.localeCompare(left.startedAt));
1320
+ const committedTree = this.createCommittedTreeReader();
1321
+ const worktree = this.createWorktreeReader();
1322
+ const records = [];
1323
+ for (const task of plan.tasks) {
1324
+ const attempts = attemptsByTask.get(task.taskRef) ?? [];
1325
+ const landed = resolution.landed.has(task.taskRef);
1326
+ const status = landed ? WorkbenchBuildPlanTaskStatus.LANDED
1327
+ : ready.has(task.taskRef) ? WorkbenchBuildPlanTaskStatus.READY
1328
+ : WorkbenchBuildPlanTaskStatus.BLOCKED;
1329
+ const isGenerationStep = task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP;
1330
+ const stuck = status === WorkbenchBuildPlanTaskStatus.READY && !isGenerationStep
1331
+ ? await this.classifyStuckBuildTask(task) : null;
1332
+ let unmetProbes;
1333
+ let schemaPlanSyncState;
1334
+ if (!landed && attempts.some(isStartedBuildTaskAttempt)) {
1335
+ if (isGenerationStep) {
1336
+ const condition = await this.generationSteps.resolveGenerationStepLandedCondition(task);
1337
+ if (condition.kind === ApplicationBuildGenerationStepLandedKind.SCHEMA_PLAN_IN_SYNC) {
1338
+ schemaPlanSyncState = await this.generationSteps.readSchemaPlanSyncState();
1339
+ }
1340
+ else {
1341
+ unmetProbes = [];
1342
+ for (const path of condition.paths) {
1343
+ const probe = { kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE, path };
1344
+ if (await this.isLandedProbeSatisfied(probe, committedTree))
1345
+ continue;
1346
+ unmetProbes.push({ probe, satisfiedInWorkingTree: await this.isLandedProbeSatisfied(probe, worktree) });
1347
+ }
1348
+ }
1349
+ }
1350
+ else {
1351
+ unmetProbes = [];
1352
+ for (const probe of resolveBuildTaskLandedProbes(task)) {
1353
+ if (await this.isLandedProbeSatisfied(probe, committedTree))
1354
+ continue;
1355
+ unmetProbes.push({
1356
+ probe,
1357
+ satisfiedInWorkingTree: await this.isLandedProbeSatisfied(probe, worktree),
1358
+ ...(isShellProbe(probe) ? { shell: await this.explainShellProbe(probe, committedTree) } : {}),
1359
+ });
1360
+ }
1361
+ }
1362
+ }
1363
+ const waitingOn = status === WorkbenchBuildPlanTaskStatus.BLOCKED
1364
+ ? task.prerequisiteTaskRefs.filter((prerequisite) => !resolution.landed.has(prerequisite)) : undefined;
1365
+ records.push({
1366
+ taskRef: task.taskRef,
1367
+ targetKind: String(task.target?.kind ?? ''),
1368
+ status,
1369
+ attempts,
1370
+ ...(stuck !== null ? { stuck } : {}),
1371
+ ...(unmetProbes !== undefined ? { unmetProbes } : {}),
1372
+ ...(schemaPlanSyncState !== undefined ? { schemaPlanSyncState } : {}),
1373
+ ...(waitingOn !== undefined ? { waitingOn } : {}),
1374
+ ...(landed && unverifiable.has(task.taskRef) ? { unverifiable: true } : {}),
1375
+ });
1376
+ }
1377
+ const stuckByReason = Object.fromEntries(Object.values(Workbench_BuildTaskStuckReason).map((reason) => [reason, records.filter((record) => record.stuck?.reason === reason).length]));
1378
+ const notLanded = records.filter((record) => record.status !== WorkbenchBuildPlanTaskStatus.LANDED);
1379
+ // A dispatch refused before it started is shown in its task's history and counted by no figure below (#1581).
1380
+ const started = (record) => record.attempts.filter(isStartedBuildTaskAttempt);
1381
+ const unavailableRuntimes = await readUnavailableApplicationRuntimes(this.companionContext.saasRoot);
1382
+ return {
1383
+ tasks: records,
1384
+ summary: {
1385
+ taskCount: records.length,
1386
+ landed: records.length - notLanded.length,
1387
+ blocked: records.filter((record) => record.status === WorkbenchBuildPlanTaskStatus.BLOCKED).length,
1388
+ readyNeverAttempted: records.filter((record) => record.status === WorkbenchBuildPlanTaskStatus.READY && started(record).length === 0).length,
1389
+ readyToRetry: records.filter((record) => record.status === WorkbenchBuildPlanTaskStatus.READY && started(record).length > 0 && !record.stuck).length,
1390
+ stuckByReason,
1391
+ attempts: records.reduce((total, record) => total + started(record).length, 0),
1392
+ completedAttemptsWithoutLanding: notLanded.reduce((total, record) => total + record.attempts.filter((attempt) => attempt.status === FlowsActors_Status.COMPLETED).length, 0),
1393
+ repeatedlyAttemptedWithoutLanding: notLanded.filter((record) => started(record).length > 1).map((record) => record.taskRef),
1394
+ spend: deriveBuildSpend(records),
1395
+ parallelism: {
1396
+ degree: readBuildParallelism(this.companionContext.saasRoot),
1397
+ overlappingAttempts: records.reduce((total, record) => total + record.attempts.filter((attempt) => attempt.concurrency !== undefined).length, 0),
1398
+ interferenceSuspectedAttempts: records.reduce((total, record) => total + record.attempts.filter((attempt) => attempt.interferenceSuspected === true).length, 0),
1399
+ contendedPaths: [...new Set(records.flatMap((record) => record.attempts.flatMap((attempt) => attempt.concurrency?.contendedPaths ?? [])))].sort(),
1400
+ },
1401
+ },
1402
+ attemptsTruncated,
1403
+ ...(unavailableRuntimes === undefined ? {} : { unavailableRuntimes }),
1404
+ repairsOwed: deriveRepairsOwed(attemptsByTask),
1405
+ };
258
1406
  }
259
1407
  /**
260
1408
  * Every build-plan task in the DISPATCH view — the creation board's `workbenchBuildPlanTasks`
@@ -272,12 +1420,10 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
272
1420
  * invalid plan into an empty board would be "could not look" wearing "nothing there".
273
1421
  */
274
1422
  async describeBuildPlanBoard() {
275
- const exports = await loadSpecificationsCompanionExports(this.companionContext);
276
- const authored = exports.buildPlanSpecification;
277
- if (authored === undefined || authored === null)
1423
+ if (!(await this.hasAuthoredBuildPlan()))
278
1424
  return [];
279
1425
  const plan = await this.readBuildPlan();
280
- const landed = await this.resolveLandedTaskRefs(plan.tasks);
1426
+ const { landed } = await this.resolveLandedTaskRefs(plan.tasks);
281
1427
  const ready = new Set(selectReadyBuildPlanTasks(plan, landed).map((task) => task.taskRef));
282
1428
  return plan.tasks.map((task) => ({
283
1429
  taskRef: task.taskRef,
@@ -290,21 +1436,374 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
290
1436
  prerequisiteTaskRefs: task.prerequisiteTaskRefs,
291
1437
  }));
292
1438
  }
1439
+ /**
1440
+ * What ONE landing resolution found — returned rather than parked on the instance.
1441
+ *
1442
+ * These two were fields (`lastUnverifiableLandedTaskRefs`, `lastUnanswerableSchemaPlanTaskRefs`),
1443
+ * written as the probe's last statement and read by its caller one microtask later. The service is
1444
+ * a singleton in a process serving concurrent requests and the probe is spawn-heavy, so two
1445
+ * in-flight resolutions interleave at every await and the caller could read the OTHER pass's
1446
+ * answer — a requirement dropping from VERIFIED to BUILT because a workbench poll landed between
1447
+ * two lines. Returning them makes each caller's answer its own by construction (#1496's review).
1448
+ */
293
1449
  async resolveLandedTaskRefs(tasks) {
294
1450
  const landed = new Set();
1451
+ const unverifiable = new Set();
1452
+ const unanswerable = new Set();
1453
+ const committedTree = this.createCommittedTreeReader();
1454
+ /*
1455
+ * Ask git ONCE for the whole plan's probe paths, before the per-task loop asks for them one at a
1456
+ * time. Each `isCommitted` costs an `ls-files` + `status` PAIR of subprocesses, and a plan's
1457
+ * probes run to hundreds of distinct paths — so this loop was the companion's dominant cost and,
1458
+ * because a spawn storm starves the event loop, the reason `/health/ready` stopped answering
1459
+ * inside the ten seconds the workbench allows it (see `selectCommittedPaths`, which records the
1460
+ * measurement and the repo-root-prefix trap it contains).
1461
+ *
1462
+ * Only `COMMITTED_FILE` probes, because they are the only kind that asks `isCommitted` — the two
1463
+ * DECLARES kinds answer from `readText` instead, and priming their paths would ask git a question
1464
+ * whose answer is then discarded. It would be harmless and free inside the batch, which is
1465
+ * exactly why it has to be deliberate rather than convenient: it would also silently widen what
1466
+ * `application-build-dispatch-landing-path-reuse` measures.
1467
+ *
1468
+ * Generation-step conditions ARE gathered, by resolving them once into a map the loop then reads.
1469
+ * "They are few, and they still resolve per path" was true of the TASKS and wrong about the
1470
+ * PATHS: the i18n step's evidence is `planner units x enabled locales`, so three generation-step
1471
+ * tasks expanded to seventeen `status --porcelain` spawns per resolution — measured at the spawn
1472
+ * site 2026-09-22, where they were the largest source left after the probe paths were batched.
1473
+ * Resolving the condition here rather than inside the loop is what lets them join the same batch
1474
+ * without asking for each condition twice.
1475
+ */
1476
+ const generationStepConditions = new Map();
1477
+ for (const task of tasks) {
1478
+ if (task.target?.kind !== BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP)
1479
+ continue;
1480
+ generationStepConditions.set(task.taskRef, await this.generationSteps.resolveGenerationStepLandedCondition(task));
1481
+ }
1482
+ await committedTree.primeCommitted([
1483
+ ...tasks.flatMap((task) => resolveBuildTaskLandedProbes(task)
1484
+ .filter((probe) => probe.kind === BuildPlanTaskLandedProbeKind.COMMITTED_FILE)
1485
+ .flatMap(landedProbePaths)),
1486
+ ...[...generationStepConditions.values()].flatMap((condition) => (condition.kind === ApplicationBuildGenerationStepLandedKind.COMMITTED_PATHS ? condition.paths : [])),
1487
+ ]);
1488
+ /*
1489
+ * And ONE `cat-file --batch` for every path whose committed TEXT a DECLARES probe will read,
1490
+ * rather than a `git show` each. Measured at the spawn site 2026-09-22, these were 20 of 45
1491
+ * spawns in a ten-second window — four distinct paths, re-read once per resolution.
1492
+ *
1493
+ * `ANY_COMMITTED_FILE_DECLARES` short-circuits, so this reads candidates the lazy route might
1494
+ * have skipped. That is deliberate and it is not a cost: the whole set rides one subprocess, and
1495
+ * the bytes are the same bytes. What it buys is that the count no longer depends on which
1496
+ * candidate happened to satisfy the probe first.
1497
+ */
1498
+ await committedTree.primeTexts(tasks.flatMap((task) => resolveBuildTaskLandedProbes(task)
1499
+ .filter((probe) => probe.kind !== BuildPlanTaskLandedProbeKind.COMMITTED_FILE)
1500
+ .flatMap(landedProbePaths)));
295
1501
  for (const task of tasks) {
296
- const evidencePaths = task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP
297
- // Planner-derived: the exact unit files the step's pipelines write (see that service's JSDoc for
298
- // why a directory prefix would be dishonest here).
299
- ? await this.generationSteps.resolveGenerationStepEvidencePaths(task)
300
- : resolveBuildTaskLandedEvidencePaths(task);
301
- if (evidencePaths.length === 0)
1502
+ if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {
1503
+ /*
1504
+ * A generation step declares HOW it proves it landed, because not every step proves it with
1505
+ * files. Most name the exact unit files their pipelines write (see that service's JSDoc for
1506
+ * why a directory prefix would be dishonest). The migration step cannot — its artifact is
1507
+ * `backend-api/migrations/<timestamp>_<name>/migration.sql` and the timestamp is minted
1508
+ * during the run — so it lands on the STATE it exists to reach instead.
1509
+ *
1510
+ * Read the condition, never the evidence paths: for the migration step those name the
1511
+ * accepted lockfile, which predates the step, so landing on it would pass having verified
1512
+ * nothing.
1513
+ */
1514
+ // Resolved ONCE above, so its paths could join the batch; reading it again here would ask the
1515
+ // generation-step service the same question twice per resolution.
1516
+ const condition = generationStepConditions.get(task.taskRef)
1517
+ ?? await this.generationSteps.resolveGenerationStepLandedCondition(task);
1518
+ if (condition.kind === ApplicationBuildGenerationStepLandedKind.SCHEMA_PLAN_IN_SYNC) {
1519
+ const syncState = await this.generationSteps.readSchemaPlanSyncState();
1520
+ if (syncState === SchemaPlanSyncState.IN_SYNC)
1521
+ landed.add(task.taskRef);
1522
+ else if (syncState === SchemaPlanSyncState.UNANSWERABLE)
1523
+ unanswerable.add(task.taskRef);
1524
+ continue;
1525
+ }
1526
+ if (condition.paths.length === 0)
1527
+ continue;
1528
+ const committedPaths = await Promise.all(condition.paths.map((path) => committedTree.isCommitted(path)));
1529
+ if (committedPaths.every(Boolean))
1530
+ landed.add(task.taskRef);
302
1531
  continue;
303
- const committed = await Promise.all(evidencePaths.map((path) => this.git.isWorktreePathCommitted(path)));
304
- if (committed.every(Boolean))
1532
+ }
1533
+ const probes = resolveBuildTaskLandedProbes(task);
1534
+ if (probes.length === 0) {
1535
+ /*
1536
+ * A task that declares NO product cannot prove it landed — and that is a WORKFLOW gap, not a
1537
+ * gate. `application-creation-directive.md` asks the deciding question directly: if this
1538
+ * refuses, what does the operator do next? The answer here is "declare what the task
1539
+ * produces", which is authoring work — so it must MARK and let the loop continue, exactly as
1540
+ * an unapproved release travels with its advisory instead of stopping the build.
1541
+ *
1542
+ * It was a gate until 2026-09-12, and the cost is measured. Readiness is "not landed", so an
1543
+ * unprovable task is ready FOREVER and is permanently `ready[0]`: `dispatch-next` re-ran
1544
+ * `build-task-contact-schema` three times at roughly $7.50 a turn, and the loop guard below
1545
+ * then converted that into a permanent refusal at the same task. Both are stuck; neither is
1546
+ * honest about WHY. Against Wonder CRM's 42-task plan the two candidate fixes measure
1547
+ * 1 reachable (skip it, leave its dependents blocked) against 42 (run it once, mark it,
1548
+ * advance) — because every product-declaring task there sits behind one that declares none.
1549
+ *
1550
+ * So landing here means RAN, not PROVEN, and the difference is carried rather than hidden:
1551
+ * the ref goes into `unverifiableLandedTaskRefs`, which rides the dispatch plan to every
1552
+ * caller. Keyed on a COMPLETED durable run, never on the task's mere existence — a task
1553
+ * nobody has run has not landed by any reading, and admitting it would let the whole plan
1554
+ * report itself finished having done nothing.
1555
+ */
1556
+ const priorRun = await this.dispatch.findCompletedRunForBuildTask(task.taskRef);
1557
+ if (priorRun !== null) {
1558
+ landed.add(task.taskRef);
1559
+ unverifiable.add(task.taskRef);
1560
+ }
1561
+ continue;
1562
+ }
1563
+ const answered = await Promise.all(probes.map((probe) => this.isLandedProbeSatisfied(probe, committedTree)));
1564
+ if (answered.every(Boolean))
305
1565
  landed.add(task.taskRef);
306
1566
  }
307
- return landed;
1567
+ return { landed, unverifiableLandedTaskRefs: [...unverifiable].sort(), unanswerableSchemaPlanTaskRefs: unanswerable };
1568
+ }
1569
+ /**
1570
+ * Which of a stuck task's probed paths hold its product in the WORKING TREE while failing at HEAD —
1571
+ * or `undefined` when the working tree does not satisfy the probes either.
1572
+ *
1573
+ * Explanation only, never landing: a task satisfied here is still NOT landed, because the worktree
1574
+ * is work in progress until it is committed. What this decides is which remedy the refusal names.
1575
+ * Asked only for a task that already ran and is stuck, so it costs nothing on the hot path.
1576
+ */
1577
+ async resolveProducedButUncommittedPaths(task) {
1578
+ const probes = resolveBuildTaskLandedProbes(task);
1579
+ if (probes.length === 0)
1580
+ return undefined;
1581
+ const worktree = this.createWorktreeReader();
1582
+ const satisfied = await Promise.all(probes.map((probe) => this.isLandedProbeSatisfied(probe, worktree)));
1583
+ if (!satisfied.every(Boolean))
1584
+ return undefined;
1585
+ const committedTree = this.createCommittedTreeReader();
1586
+ const paths = [...new Set(probes.flatMap(landedProbePaths))];
1587
+ const committed = await Promise.all(paths.map((path) => committedTree.isCommitted(path)));
1588
+ // A shell probe names no fixed path: the files that must be committed are the ones the RESOLVED
1589
+ // shell says compose the surface, so they come from its explanation (#1538).
1590
+ const shellUncommitted = (await Promise.all(probes.filter(isShellProbe).map((probe) => this.explainShellProbe(probe, committedTree))))
1591
+ .flatMap((explanation) => explanation.uncommittedPaths);
1592
+ return [...new Set([...paths.filter((_, index) => !committed[index]), ...shellUncommitted])].sort();
1593
+ }
1594
+ /** The working tree behind the same reader shape: a path "is committed" here when it exists on disk. Never throws. */
1595
+ createWorktreeReader() {
1596
+ const texts = new Map();
1597
+ const readText = (path) => memoizeByPath(texts, path, () => readFile(join(this.companionContext.saasRoot, path), 'utf8').catch(() => undefined));
1598
+ return {
1599
+ isCommitted: async (path) => (await readText(path)) !== undefined,
1600
+ readText,
1601
+ // Reading the worktree spawns nothing, so there is no batch to win here.
1602
+ primeCommitted: async () => { },
1603
+ primeTexts: async () => { },
1604
+ shellWitness: this.memoizedShellWitness(),
1605
+ };
1606
+ }
1607
+ /** A fresh {@link CommittedTreeReader} for one landing resolution; never shared across resolutions. */
1608
+ createCommittedTreeReader() {
1609
+ const committed = new Map();
1610
+ const texts = new Map();
1611
+ return {
1612
+ isCommitted: (path) => memoizeByPath(committed, path, () => this.git.isWorktreePathCommitted(path)),
1613
+ readText: (path) => memoizeByPath(texts, path, () => this.git.readCommittedText(path)),
1614
+ primeCommitted: async (paths) => {
1615
+ /*
1616
+ * One batched answer for the whole set, seeded into the SAME memo the per-path route fills.
1617
+ * Paths already resolved (or in flight) are left alone: their answer is the one this
1618
+ * resolution has been handing out, and replacing it mid-pass would let one landing decision
1619
+ * rest on two different readings of the tree.
1620
+ */
1621
+ const unanswered = [...new Set(paths)].filter((path) => !committed.has(path));
1622
+ if (unanswered.length === 0)
1623
+ return;
1624
+ const committedPaths = await this.git.selectCommittedPaths(unanswered);
1625
+ for (const path of unanswered) {
1626
+ if (!committed.has(path))
1627
+ committed.set(path, Promise.resolve(committedPaths.has(path)));
1628
+ }
1629
+ },
1630
+ primeTexts: async (paths) => {
1631
+ // Same contract as `primeCommitted`: seed the memo `readText` fills, never replace an answer
1632
+ // this resolution has already handed out.
1633
+ const unread = [...new Set(paths)].filter((path) => !texts.has(path));
1634
+ if (unread.length === 0)
1635
+ return;
1636
+ const committedTexts = await this.git.readCommittedTexts(unread);
1637
+ for (const path of unread) {
1638
+ if (!texts.has(path))
1639
+ texts.set(path, Promise.resolve(committedTexts.get(path)));
1640
+ }
1641
+ },
1642
+ shellWitness: this.memoizedShellWitness(),
1643
+ };
1644
+ }
1645
+ /**
1646
+ * Is one landed probe satisfied by the COMMITTED tree?
1647
+ *
1648
+ * Every answer is about committed bytes (`readCommittedText` returns nothing for an uncommitted or
1649
+ * half-edited path), so landing survives a restart, a fresh clone and a branch switch — git is the
1650
+ * accepted state, and two branches with different answers merge.
1651
+ *
1652
+ * A declaration is matched as a WHOLE WORD, not as a substring. `deal.schemas.ts` carries prose
1653
+ * naming its own build tasks, so a bare `includes` would find `pipelineStageId` inside a comment
1654
+ * that merely mentions it and report a task landed on its own documentation. Whole-word matching
1655
+ * still counts a mention in a comment — an AST question is the sound version and needs the
1656
+ * introspection subprocess — so this errs toward LANDED only for a file that names the symbol
1657
+ * without declaring it, and never for the scaffold shapes that produced #597, where the symbol is
1658
+ * absent entirely.
1659
+ */
1660
+ /** A once-per-reader memo of {@link resolveShellWitness}, so a landing resolution introspects at most once. */
1661
+ memoizedShellWitness() {
1662
+ let pending;
1663
+ return () => (pending ??= this.resolveShellWitness());
1664
+ }
1665
+ /**
1666
+ * The resolved shell beside the placement plan (#1538): what each surface carries, by identity,
1667
+ * against what the plan PLACED there and what it DECLINED.
1668
+ *
1669
+ * Read through introspection because the identities exist only in the RESOLVED configuration: a
1670
+ * module's contribution merges into the shell at runtime, and the tree's text spells none of the
1671
+ * plan's refs. Every failure is an `answered: false` with its reason — never a throw, which would
1672
+ * abort the whole landing resolution for one surface, and never an empty "carries nothing", which
1673
+ * would read as a real no.
1674
+ */
1675
+ async resolveShellWitness() {
1676
+ const exports = await loadSpecificationsCompanionExports(this.companionContext);
1677
+ const authored = exports.placementPlanSpecification;
1678
+ if (authored === undefined || authored === null) {
1679
+ return { answered: false, reason: 'The application has no placement plan, so nothing says what its shell should carry.' };
1680
+ }
1681
+ const plan = PlacementPlanSchema.safeParse(authored);
1682
+ if (!plan.success) {
1683
+ 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('; ')}` };
1684
+ }
1685
+ const serviceKey = this.introspection.describeCatalog().defaultFrontendServiceKey;
1686
+ if (!serviceKey) {
1687
+ return { answered: false, reason: 'The application declares no SaaS frontend to read its shell from.' };
1688
+ }
1689
+ let shell;
1690
+ try {
1691
+ const result = await this.introspection.requestInfo({ serviceKey, behavior: 'app-shell-placement-content' });
1692
+ if (!result.success)
1693
+ return { answered: false, reason: `The shell could not be read: ${result.error.message}` };
1694
+ shell = result.data;
1695
+ }
1696
+ catch (error) {
1697
+ return { answered: false, reason: `The shell could not be read: ${describeCaughtError(error)}` };
1698
+ }
1699
+ const carried = new Map();
1700
+ const contributingPaths = new Map();
1701
+ for (const row of shell.surfaces) {
1702
+ const identities = new Set();
1703
+ for (const launcher of row.launchers) {
1704
+ const identity = launcherShellIdentity(launcher);
1705
+ if (identity !== undefined)
1706
+ identities.add(identity);
1707
+ }
1708
+ for (const destinationRef of row.destinationRefs)
1709
+ identities.add(settingsDestinationShellIdentity(destinationRef));
1710
+ carried.set(row.surface, identities);
1711
+ contributingPaths.set(row.surface, [shellSurfaceConfigFile(row.surface), ...row.contributingModuleIds.map(shellModuleContributionFile)]);
1712
+ }
1713
+ const expectations = derivePlacementPlanShellExpectations(plan.data);
1714
+ const placed = new Map([...expectations.placed].map(([surface, entries]) => [surface, entries.map((entry) => entry.shellIdentity)]));
1715
+ const declined = expectations.declined.map((entry) => entry.shellIdentity);
1716
+ return { answered: true, carried, contributingPaths, placed, declined };
1717
+ }
1718
+ /**
1719
+ * Why a shell probe is or is not satisfied (#1538) — the answer landing uses, and the detail the build
1720
+ * record and the stuck classification report. One function, so the three cannot disagree.
1721
+ */
1722
+ async explainShellProbe(probe, tree) {
1723
+ const witness = await tree.shellWitness();
1724
+ if (!witness.answered) {
1725
+ return { satisfied: false, unanswerable: witness.reason, missing: [], declinedButPresent: [], uncommittedPaths: [] };
1726
+ }
1727
+ const uncommittedOf = async (surface) => {
1728
+ const paths = witness.contributingPaths.get(surface) ?? [];
1729
+ const committed = await Promise.all(paths.map((path) => tree.isCommitted(path)));
1730
+ return paths.filter((_, index) => !committed[index]);
1731
+ };
1732
+ if (probe.kind === BuildPlanTaskLandedProbeKind.SHELL_SURFACE_CARRIES_PLAN) {
1733
+ const carried = witness.carried.get(probe.surface) ?? new Set();
1734
+ const missing = (witness.placed.get(probe.surface) ?? []).filter((identity) => !carried.has(identity));
1735
+ const declinedButPresent = witness.declined.filter((identity) => carried.has(identity));
1736
+ const uncommittedPaths = await uncommittedOf(probe.surface);
1737
+ return {
1738
+ satisfied: missing.length === 0 && declinedButPresent.length === 0 && uncommittedPaths.length === 0,
1739
+ missing,
1740
+ declinedButPresent,
1741
+ uncommittedPaths,
1742
+ };
1743
+ }
1744
+ // SHELL_CARRIES_A_PLACEMENT: some surface carries some subject the plan placed on it, from files at HEAD.
1745
+ const allUncommitted = [];
1746
+ for (const [surface, identities] of witness.placed) {
1747
+ const carried = witness.carried.get(surface) ?? new Set();
1748
+ if (!identities.some((identity) => carried.has(identity)))
1749
+ continue;
1750
+ const uncommittedPaths = await uncommittedOf(surface);
1751
+ if (uncommittedPaths.length === 0)
1752
+ return { satisfied: true, missing: [], declinedButPresent: [], uncommittedPaths: [] };
1753
+ allUncommitted.push(...uncommittedPaths);
1754
+ }
1755
+ return {
1756
+ satisfied: false,
1757
+ missing: allUncommitted.length > 0 ? [] : [...witness.placed.values()].flat(),
1758
+ declinedButPresent: [],
1759
+ uncommittedPaths: [...new Set(allUncommitted)],
1760
+ };
1761
+ }
1762
+ async isLandedProbeSatisfied(probe, tree) {
1763
+ switch (probe.kind) {
1764
+ case BuildPlanTaskLandedProbeKind.COMMITTED_FILE:
1765
+ return tree.isCommitted(probe.path);
1766
+ case BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES: {
1767
+ const text = await tree.readText(probe.path);
1768
+ if (text === undefined)
1769
+ return false;
1770
+ /*
1771
+ * The probe's SITE says whether the declarations are a set or a relation, and where a relation
1772
+ * must sit (#1539). A relation read as a set reports a missing edge as landed (#1273 — six of
1773
+ * eleven relationship tasks).
1774
+ */
1775
+ return declarationsAppearAt(text, probe.declarations, probe.site);
1776
+ }
1777
+ case BuildPlanTaskLandedProbeKind.ANY_COMMITTED_FILE_DECLARES: {
1778
+ const texts = await Promise.all(probe.paths.map((path) => tree.readText(path)));
1779
+ return texts.some((text) => text !== undefined && declarationsAppearAt(text, probe.declarations, probe.site));
1780
+ }
1781
+ case BuildPlanTaskLandedProbeKind.SHELL_SURFACE_CARRIES_PLAN:
1782
+ case BuildPlanTaskLandedProbeKind.SHELL_CARRIES_A_PLACEMENT:
1783
+ return (await this.explainShellProbe(probe, tree)).satisfied;
1784
+ default: {
1785
+ const unhandled = probe;
1786
+ throw new Error(`Unhandled build-plan landed probe ${JSON.stringify(unhandled)}.`);
1787
+ }
1788
+ }
1789
+ }
1790
+ /**
1791
+ * Whether the application has AUTHORED a build plan at all — the one absence test every read of the plan shares.
1792
+ *
1793
+ * A plan legitimately does not exist until `build-decompose` has run, so every NEW application starts in this
1794
+ * state, and "no plan yet" is a true answer rather than a failure. It is tested DIRECTLY, never by catching
1795
+ * `ApplicationBuildPlanUnavailableError`, because `readBuildPlan` throws that same class for a plan that EXISTS
1796
+ * and fails validation — flattening an invalid plan into "nothing there" would be "could not look" wearing
1797
+ * "nothing there".
1798
+ *
1799
+ * Two reads use it: the board's task list, which had it inline, and the next-task projection, which did not —
1800
+ * so on every new application the board's dispatch-plan list answered 500 CONFIGURATION, logged at high
1801
+ * severity with an alert, on every poll (measured 2026-09-21, the first minutes of the end-to-end run #1273).
1802
+ */
1803
+ async hasAuthoredBuildPlan() {
1804
+ const exports = await loadSpecificationsCompanionExports(this.companionContext);
1805
+ const authored = exports.buildPlanSpecification;
1806
+ return authored !== undefined && authored !== null;
308
1807
  }
309
1808
  /** The application's accepted build plan, validated before anything is selected from it. */
310
1809
  async readBuildPlan() {
@@ -317,13 +1816,183 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
317
1816
  if (!parsed.success) {
318
1817
  throw new ApplicationBuildPlanUnavailableError(`The application's build plan does not satisfy its schema: ${parsed.error.issues.slice(0, 3).map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ')}`);
319
1818
  }
320
- // Semantic validation too, not just the shape: a graph with a dangling prerequisite would let
321
- // `selectReadyBuildPlanTasks` report a task ready whose dependency can never land.
1819
+ // Semantic validation too, not just the shape: a graph whose ordering is unsound would let
1820
+ // `selectReadyBuildPlanTasks` report a task ready before the work it depends on can have landed.
1821
+ //
1822
+ // Gated on the FLOOR codes, not on `findings.length > 0` as it was until 2026-09-09. That older
1823
+ // reading made this gate disagree with the landing gate about the same graph: an authoring
1824
+ // warning — a resource stage whose predecessor is absent from the plan, which is legitimate when
1825
+ // the tree already carries that stage — landed happily at the semantic authority and then made
1826
+ // the whole plan permanently undispatchable HERE, with the refusal naming a warning. One
1827
+ // classification, named once in `_core` beside the codes.
322
1828
  const findings = validateBuildPlanTaskGraph(parsed.data);
323
- if (findings.length > 0) {
324
- throw new ApplicationBuildPlanUnavailableError(`The application's build plan fails semantic validation: ${findings.slice(0, 3).map((finding) => finding.message).join('; ')}`);
1829
+ const blocking = findings.filter((finding) => BUILD_PLAN_TASK_GRAPH_HARD_FLOOR_CODES.includes(finding.code));
1830
+ if (blocking.length > 0) {
1831
+ throw new ApplicationBuildPlanUnavailableError(`The application's build plan fails semantic validation: ${blocking.slice(0, 3).map((finding) => finding.message).join('; ')}`);
1832
+ }
1833
+ return this.withHostDerivedDocumentationPublicationStep(await this.withHostDerivedMigrationStep(parsed.data));
1834
+ }
1835
+ /**
1836
+ * The build plan as the DISPATCH HOST reads it: the authored graph, plus the `database-migrations`
1837
+ * generation step whenever the application owes one and the plan does not author it (#1027).
1838
+ *
1839
+ * ## Why the host derives it rather than trusting the plan
1840
+ *
1841
+ * `bottom_up.build-decompose`'s method requires that step for every PostgreSQL-backed application,
1842
+ * and Wonder CRM's regenerated plan (2026-09-13) carried none — while all six of its schema tasks
1843
+ * could only write `shared-lib/`, never `backend-api/migrations/`. Each accepted schema change would
1844
+ * have left the model ahead of the accepted plan, and the application's boot gate refuses a missing
1845
+ * column (`postgresql_table_schema_mismatch`), so the lane would have taken its own application down.
1846
+ *
1847
+ * The model was given the rule and never the fact the rule keys on: the brief's workspace truth does
1848
+ * not state the database engine, and the method's instruction to `rg` the infra config is a command a
1849
+ * generation call cannot run. The validator could not catch it either — it receives the graph alone.
1850
+ * And no judgement is involved: whether a migration step is owed is a TOTAL function of two facts the
1851
+ * host already holds (`derive-before-you-ask.md`, "could a function have produced my answer?").
1852
+ *
1853
+ * ## The population, and the shape
1854
+ *
1855
+ * - Owed, per `assessSchemaPlanObligation`, in two cases that differ in whether a schema stage matters:
1856
+ * - an ACCEPTED plan and at least one SCHEMA stage — schema changes are what create drift against it;
1857
+ * - a declared PostgreSQL store with NO plan yet (#1144), with or without a schema stage — the initial
1858
+ * migration is owed by the ENGINE's resources alone, and the backend cannot boot before it exists.
1859
+ * This case was invisible while the lockfile was the only fact read: the foundation playbook was
1860
+ * believed to write the baseline and never did.
1861
+ * An UNDETERMINED store with a schema stage derives the step too, so the obligation stays visible: its
1862
+ * sync state is unanswerable, so it is passed over while other work is ready, and when nothing is its
1863
+ * refusal names why the store could not be read. A MongoDB-backed application is never offered it.
1864
+ * - An AUTHORED `database-migrations` step always wins. The derivation fills an omission; it never
1865
+ * second-guesses a plan that states its own ordering.
1866
+ * - PREPENDED, with NO prerequisites. Its landing condition is `SCHEMA_PLAN_IN_SYNC`, so it is landed
1867
+ * whenever the model and the accepted plan agree and becomes the FIRST ready task the moment an
1868
+ * accepted schema change creates drift — which is when it has to run, before anything restarts the
1869
+ * backend against a table it cannot build. The method's "after the last schema stage" was rejected
1870
+ * as the ordering: a schema task the loop guard skips forever (a stuck task never lands) would hold
1871
+ * the migration step behind it forever too.
1872
+ * - The obligation is read only after an authored step is ruled out, and costs a `stat` whenever a plan
1873
+ * is accepted; the authored infra config is loaded only for an application with no lockfile.
1874
+ *
1875
+ * ## What it costs
1876
+ *
1877
+ * `SCHEMA_PLAN_IN_SYNC` runs `wildo db diff --check` on every landed resolution, so every build-plan
1878
+ * read for such an application now asks the schema planner. Only an IN_SYNC answer lands the step. A
1879
+ * DRIFTED answer puts it first. An UNANSWERABLE one (any answer that is neither pass nor drift; the
1880
+ * causes are listed on `SchemaPlanSyncState`) leaves it un-landed but PASSED OVER while other tasks are ready, because running it then only throws.
1881
+ * This said an unanswerable check "reads as NOT in sync, the step is offered, and running it over a
1882
+ * clean plan generates nothing" — true of a clean plan, false of an unanswerable one, where offering
1883
+ * it first made every dispatch fail and stopped the whole plan (review, 2026-09-13).
1884
+ */
1885
+ /**
1886
+ * A plan that authors documentation CHAPTERS owes a step that PUBLISHES them.
1887
+ *
1888
+ * Derived rather than authored, for the reason {@link withHostDerivedMigrationStep} is: the
1889
+ * obligation follows from what the plan CONTAINS, not from a decision the plan makes. An
1890
+ * application with a documentation chapter owes a portal; one without owes nothing.
1891
+ *
1892
+ * Measured on the first end-to-end journey run (#1273). The plan carried SIX
1893
+ * `DOCUMENTATION_CHAPTER` tasks and no publication step, so the chapters were authored and nothing
1894
+ * rendered them. The cost was not only an unbuilt portal: `technical-doc/src/pages/search.tsx`
1895
+ * imports the search index the publish writes, so that package could not typecheck at all, and
1896
+ * `check:technical-doc-typecheck` stayed red for the whole build — failing a documentation task on
1897
+ * a red it did not cause, at $19.33. Publishing by hand made 87 outputs and turned the check green
1898
+ * in one command.
1899
+ *
1900
+ * ## The prerequisites are the whole design
1901
+ *
1902
+ * Unlike the migration step, this one cannot run with `prerequisiteTaskRefs: []`:
1903
+ *
1904
+ * - **every chapter task**, or it renders a portal missing the chapters still being written;
1905
+ * - **`i18n-labels`**, and that one is not a nicety. Publication resolves the application's
1906
+ * organization-role documentation and REFUSES without the primary-locale label — *"requires
1907
+ * primary-locale label 'roles.ORG_ADMIN.label'; generate the application's role labels before
1908
+ * publishing documentation"*. Run before labels, it fails on exactly that, which is how the
1909
+ * first hand-run of this pipeline failed.
1910
+ *
1911
+ * Both are read off the graph, so a plan with no labels step simply contributes no such edge
1912
+ * rather than acquiring a dangling one.
1913
+ */
1914
+ withHostDerivedDocumentationPublicationStep(graph) {
1915
+ const authorsPublicationStep = graph.tasks.some((task) => task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP
1916
+ && task.target.generationStepRef === ApplicationBuildGenerationStep.DOCUMENTATION_PUBLICATION);
1917
+ if (authorsPublicationStep)
1918
+ return graph;
1919
+ const chapterTaskRefs = graph.tasks
1920
+ .filter((task) => (task.produces ?? []).some((product) => product.kind === BuildPlanTaskProductKind.DOCUMENTATION_CHAPTER))
1921
+ .map((task) => task.taskRef);
1922
+ if (chapterTaskRefs.length === 0)
1923
+ return graph;
1924
+ if (graph.tasks.some((task) => task.taskRef === HOST_DERIVED_DOCUMENTATION_PUBLICATION_TASK_REF)) {
1925
+ // Same refusal as the migration step's: deriving would duplicate a ref, which the graph schema
1926
+ // rejects — so say so rather than silently dropping the obligation.
1927
+ this.logger.warn?.(`The build plan owes a documentation-publication step, but "${HOST_DERIVED_DOCUMENTATION_PUBLICATION_TASK_REF}" already names another task; not deriving it.`);
1928
+ return graph;
325
1929
  }
326
- return parsed.data;
1930
+ const labelStepRefs = graph.tasks
1931
+ .filter((task) => task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP
1932
+ && task.target.generationStepRef === ApplicationBuildGenerationStep.I18N_LABELS)
1933
+ .map((task) => task.taskRef);
1934
+ return BuildPlanTaskGraphSchema.parse({
1935
+ ...graph,
1936
+ tasks: [
1937
+ ...graph.tasks,
1938
+ {
1939
+ taskRef: HOST_DERIVED_DOCUMENTATION_PUBLICATION_TASK_REF,
1940
+ objective: 'Publish the application\'s customer documentation portal, so the chapters this build authored are '
1941
+ + 'something a reader can reach. Derived by the dispatch host because the build plan authors documentation '
1942
+ + 'chapters and does not author the step that renders them.',
1943
+ target: {
1944
+ kind: BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP,
1945
+ generationStepRef: ApplicationBuildGenerationStep.DOCUMENTATION_PUBLICATION,
1946
+ },
1947
+ produces: [],
1948
+ functionalTopic: MetaWorkflow_FunctionalTopic.ASSEMBLE_VERIFY_AND_ITERATE,
1949
+ skillRefs: ['application-consumer-documentation-authoring'],
1950
+ prerequisiteTaskRefs: [...chapterTaskRefs, ...labelStepRefs],
1951
+ servesRefs: [],
1952
+ },
1953
+ ],
1954
+ });
1955
+ }
1956
+ async withHostDerivedMigrationStep(graph) {
1957
+ const authorsMigrationStep = graph.tasks.some((task) => task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP
1958
+ && task.target.generationStepRef === ApplicationBuildGenerationStep.DATABASE_MIGRATIONS);
1959
+ if (authorsMigrationStep)
1960
+ return graph;
1961
+ const hasSchemaStage = graph.tasks.some((task) => task.target?.kind === BuildPlanTaskTargetKind.RESOURCE_STAGE
1962
+ && task.target.stage === BuildPlanResourceStage.SCHEMA);
1963
+ const { obligation } = await this.generationSteps.assessSchemaPlanObligation();
1964
+ const owed = obligation === ApplicationSchemaPlanObligation.BASELINE_OWED
1965
+ || (hasSchemaStage && (obligation === ApplicationSchemaPlanObligation.ACCEPTED_PLAN || obligation === ApplicationSchemaPlanObligation.UNDETERMINED));
1966
+ if (!owed)
1967
+ return graph;
1968
+ if (graph.tasks.some((task) => task.taskRef === HOST_DERIVED_DATABASE_MIGRATIONS_TASK_REF)) {
1969
+ // The ref is taken by a task that is NOT a migration step. Deriving would duplicate a ref, which
1970
+ // the graph schema refuses — so say so rather than silently dropping the obligation.
1971
+ this.logger.warn?.(`The build plan owes a database-migrations step, but "${HOST_DERIVED_DATABASE_MIGRATIONS_TASK_REF}" already names another task; not deriving it.`);
1972
+ return graph;
1973
+ }
1974
+ return BuildPlanTaskGraphSchema.parse({
1975
+ ...graph,
1976
+ tasks: [
1977
+ {
1978
+ taskRef: HOST_DERIVED_DATABASE_MIGRATIONS_TASK_REF,
1979
+ objective: (obligation === ApplicationSchemaPlanObligation.BASELINE_OWED
1980
+ ? 'Generate the initial migration and its schema-plan baseline, so the tables this PostgreSQL application declares exist before its backend boots. '
1981
+ : 'Migrate the schema drift that accepted schema-stage changes created, so the application can still boot. ')
1982
+ + 'Derived by the dispatch host because the build plan owes this step and does not author it.',
1983
+ target: {
1984
+ kind: BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP,
1985
+ generationStepRef: ApplicationBuildGenerationStep.DATABASE_MIGRATIONS,
1986
+ },
1987
+ produces: [],
1988
+ functionalTopic: MetaWorkflow_FunctionalTopic.MODEL_DOMAIN_GRAPH,
1989
+ skillRefs: ['application-database-migrations'],
1990
+ prerequisiteTaskRefs: [],
1991
+ servesRefs: [],
1992
+ },
1993
+ ...graph.tasks,
1994
+ ],
1995
+ });
327
1996
  }
328
1997
  /**
329
1998
  * What the run is allowed to see — the PUSH floor of the dispatch lane's context (issue #253).
@@ -353,32 +2022,22 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
353
2022
  * a landed task invalidates it by changing the sources it hashes. Adding a second cache here would
354
2023
  * be a copy that can only ever disagree.
355
2024
  */
356
- /**
357
- * The task's own DETERMINISTIC self-description — no introspection, no LLM.
358
- *
359
- * The first (and mandatory) context source of every coding task, extracted so
360
- * a RESUME can rebuild a schema-valid contract without re-running the expensive
361
- * live-query / module-introspection assembly whose output a resume discards
362
- * anyway (the agent's session already holds the real context).
363
- */
364
- buildTaskSelfDescriptionContextSource(task, totalTasks) {
365
- return {
366
- sourceRef: 'application-creation:context/build-task',
367
- originRef: 'application-creation:origin/build-plan',
368
- role: MetaWorkflow_ContextSourceRole.MANDATORY,
369
- content: {
370
- taskRef: task.taskRef,
371
- objective: task.objective,
372
- target: task.target,
373
- functionalTopic: task.functionalTopic,
374
- skillRefs: task.skillRefs,
375
- prerequisiteTaskRefs: task.prerequisiteTaskRefs,
376
- positionInPlan: `one of ${totalTasks} tasks in the application's accepted build plan`,
377
- },
378
- };
379
- }
380
2025
  async buildContextSources(task, totalTasks) {
381
- const sources = [this.buildTaskSelfDescriptionContextSource(task, totalTasks)];
2026
+ const sources = [buildTaskSelfDescriptionContextSource(task, totalTasks)];
2027
+ /*
2028
+ * WHAT THE LAST ATTEMPT RAN INTO (#1536). A retry used to be byte-identical to the attempt that
2029
+ * failed, which is the definition of the loop an attempt budget exists to stop: the one input the
2030
+ * next attempt lacks is how the previous one failed. Shown with the re-arm note when there is one,
2031
+ * because "it failed like this, and this was fixed" is exactly what a retry needs. Best-effort.
2032
+ */
2033
+ try {
2034
+ const [latest] = await this.dispatch.listAttributableFailedRunsForBuildTask(task.taskRef, undefined, { includeRearmed: true });
2035
+ if (latest !== undefined)
2036
+ sources.push(previousAttemptContextSource(latest));
2037
+ }
2038
+ catch (error) {
2039
+ this.logDebug('Previous-attempt source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });
2040
+ }
382
2041
  /*
383
2042
  * The DOOR MENU — tier-0 of the pull half: the live-query ids and the two commands that expand
384
2043
  * them. Ids only, not descriptions: `wildo context list` IS the descriptions, one command away,
@@ -390,11 +2049,12 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
390
2049
  sources.push({
391
2050
  sourceRef: 'application-creation:context/live-queries',
392
2051
  originRef: 'application-creation:origin/dev-companion',
393
- role: MetaWorkflow_ContextSourceRole.MANDATORY,
394
2052
  content: {
395
2053
  guidance: 'Live application state is one shell command away — prefer asking over re-deriving from the tree. '
396
2054
  + '`wildo context list` prints the menu with descriptions; `wildo context info <behaviorId>` runs one query; '
397
- + '`wildo context journey` shows the creation journey; `wildo context coherence` the cross-family coherence report.',
2055
+ + '`wildo context journey` shows the creation journey; `wildo context coherence` the cross-family coherence report; '
2056
+ + '`wildo context elements map|get|related` retrieves the product decisions already made (ICPs, requirements, phases…) '
2057
+ + 'a subset at a time — map first, then get the refs your task needs.',
398
2058
  behaviorIds: catalog.behaviors.map((behavior) => behavior.behaviorId),
399
2059
  },
400
2060
  });
@@ -417,7 +2077,6 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
417
2077
  sources.push({
418
2078
  sourceRef: 'application-creation:context/workspace-truth',
419
2079
  originRef: 'application-creation:origin/resources-registry-introspection',
420
- role: MetaWorkflow_ContextSourceRole.MANDATORY,
421
2080
  content: {
422
2081
  allModuleIds: modules.map((sharedModule) => sharedModule.moduleId),
423
2082
  ...(targetModule
@@ -445,6 +2104,64 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
445
2104
  catch (error) {
446
2105
  this.logger.warn('Workspace-truth source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });
447
2106
  }
2107
+ /*
2108
+ * THE TARGET RESOURCE AND WHAT IT IS CONNECTED TO (#1437).
2109
+ *
2110
+ * The module slice above answers "what else is in this module", which is neither what a
2111
+ * resource-targeted task needs nor all of it: it OVER-supplies the siblings the task never
2112
+ * touches, and UNDER-supplies the engine resources the target's own foreign keys point at —
2113
+ * `users`, `organizations`, the scope anchors, which are the most load-bearing edges a resource
2114
+ * has and are in no application module at all. It also carries field NAMES only: no
2115
+ * relationships, no operations, no specification prose.
2116
+ *
2117
+ * One hop from the target is the honest neighbourhood. Two hops reaches most of the application
2118
+ * through the scope anchors, which is the whole-registry answer with extra steps.
2119
+ *
2120
+ * Best-effort like every source here, and it costs a derivation the first time (~35 s) that
2121
+ * every later task on this application reads from cache. A dispatch runs for minutes and spends
2122
+ * real money; paying that once to stop the agent guessing at a relationship is the cheaper half.
2123
+ */
2124
+ if (resourceRef !== undefined) {
2125
+ try {
2126
+ const backendServiceKey = Object.entries(this.companionContext.servicesByKey)
2127
+ .find(([, service]) => !service.frontendType)?.[0];
2128
+ if (backendServiceKey) {
2129
+ const { index, freshness } = await readWorkspaceElements(this.introspection, backendServiceKey);
2130
+ /*
2131
+ * The plan addresses resources by SLUG and the registry by `resourceType`; they differ
2132
+ * (`todoList` vs `todo-list`). Resolved by slugifying the index's own keys rather than by
2133
+ * un-slugifying the ref, because the slug is lossy and the registry is the authority on
2134
+ * which resources exist.
2135
+ */
2136
+ const resourceType = [...index.resources.keys()].find((candidate) => slugifyRegistryIdentifier(candidate) === resourceRef);
2137
+ const related = resourceType === undefined ? undefined : relatedWorkspaceResources(index, resourceType);
2138
+ if (related) {
2139
+ sources.push({
2140
+ sourceRef: 'application-creation:context/target-resource-neighbourhood',
2141
+ originRef: 'application-creation:origin/application-domain-model',
2142
+ content: {
2143
+ freshness: describeWorkspaceFreshness(freshness),
2144
+ target: resourceType,
2145
+ edges: related.edges,
2146
+ resources: related.resources,
2147
+ ...(related.unresolved.length > 0 ? { unresolvedNeighbours: related.unresolved } : {}),
2148
+ note: 'The target resource as it EXISTS today, with its fields, operations and relationships, plus the '
2149
+ + 'resources one hop away. Direction matters: `foreignKeyHolderResourceType` says which side carries the key. '
2150
+ + 'Ask for more with `wildo context workspace get <resourceType>` or `wildo context workspace related <resourceType>`.',
2151
+ },
2152
+ });
2153
+ }
2154
+ else {
2155
+ // Said rather than omitted: a target the registry does not carry is a CREATION task, and
2156
+ // an absent section would read as a failed read.
2157
+ this.logDebug('Target resource is not registered yet — no neighbourhood to supply', { taskRef: task.taskRef, resourceRef });
2158
+ }
2159
+ }
2160
+ }
2161
+ catch (error) {
2162
+ this.logger.warn('Target-resource neighbourhood omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });
2163
+ }
2164
+ }
448
2165
  // THE DOMAIN-PLAN SLICE for the target: WHAT this task's objective enriches toward, in the
449
2166
  // application's own accepted words — the module semantics and, for a relationship task, the
450
2167
  // relationship drafts touching the target. Absent plan (older app, or foundation not run) is
@@ -462,7 +2179,6 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
462
2179
  sources.push({
463
2180
  sourceRef: 'application-creation:context/domain-plan-slice',
464
2181
  originRef: 'application-creation:origin/domain-plan',
465
- role: MetaWorkflow_ContextSourceRole.MANDATORY,
466
2182
  content: {
467
2183
  targetModule: targetPlanModule,
468
2184
  ...(resourceRef !== undefined ? { targetResourceRef: resourceRef } : {}),
@@ -475,6 +2191,30 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
475
2191
  catch (error) {
476
2192
  this.logger.warn('Domain-plan slice omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });
477
2193
  }
2194
+ // WHAT THIS TASK IS FOR (#1419): the full text of every element its `servesRefs` names — the
2195
+ // requirements, phases, success criteria and constraints it answers to — and a map of the other
2196
+ // tasks building the same module. Without it the agent knew WHAT to build and not what it was for:
2197
+ // no acceptance criterion, no served success criterion, no constraint. A deterministic derivation
2198
+ // through the one decided-element index (#1416), so it sits inside the push floor of decision
2199
+ // #251 — nothing here chooses context.
2200
+ try {
2201
+ const servedSource = buildServedElementsContextSource(task, await loadSpecificationsCompanionExports(this.companionContext));
2202
+ if (servedSource !== null)
2203
+ sources.push(servedSource);
2204
+ }
2205
+ catch (error) {
2206
+ this.logger.warn('Served-elements source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });
2207
+ }
2208
+ // WHAT A SHELL TASK MUST MAKE THE SHELL CARRY (#1554): the placement plan's decisions for its
2209
+ // surface, in the identities the landing probe compares. Same derivation as the probe's witness.
2210
+ if (task.target.kind === BuildPlanTaskTargetKind.SHELL_PLACEMENT) {
2211
+ try {
2212
+ sources.push(buildShellPlacementPlanContextSource(task.target.surface, await loadSpecificationsCompanionExports(this.companionContext)));
2213
+ }
2214
+ catch (error) {
2215
+ this.logger.warn('Shell-placement-plan source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });
2216
+ }
2217
+ }
478
2218
  return sources;
479
2219
  }
480
2220
  };
@@ -486,12 +2226,230 @@ ApplicationBuildDispatchCompanionService = __decorate([
486
2226
  __param(3, inject(COMPANION_SERVICE_TYPES.GitChangeSetService)),
487
2227
  __param(4, inject(COMPANION_SERVICE_TYPES.BuildGenerationStepService)),
488
2228
  __param(5, inject(COMPANION_SERVICE_TYPES.IntrospectionService)),
2229
+ __param(6, inject(SAAS_SERVICE_TYPES.ActorsSystemBackendService)),
2230
+ __param(7, inject(COMPANION_SERVICE_TYPES.ExecutionsService)),
489
2231
  __metadata("design:paramtypes", [Function, Object, CodingAgentDispatchCompanionService,
490
2232
  GitChangeSetCompanionService,
491
2233
  ApplicationBuildGenerationStepCompanionService,
492
- CompanionIntrospectionService])
2234
+ CompanionIntrospectionService, Function, CompanionExecutionsCompanionService])
493
2235
  ], ApplicationBuildDispatchCompanionService);
494
2236
  export { ApplicationBuildDispatchCompanionService };
495
- /** Context ceiling for one dispatch. Stated here because only the host knows what the agent can accept. */
496
- const DEFAULT_CONTEXT_TOKEN_BUDGET = 120_000;
2237
+ /**
2238
+ * The previous FAILED attempt of a task, as a retry is shown it (#1536): its disposition, each check it
2239
+ * failed with the tail of that check's output, the agent's own closing words, and the re-arm note when
2240
+ * an operator released it. Read off the durable row; nothing new is recorded to produce it.
2241
+ */
2242
+ export function previousAttemptContextSource(run) {
2243
+ const tail = (value) => typeof value === 'string' && value.length > 0 ? value.slice(-PREVIOUS_ATTEMPT_OUTPUT_TAIL_CHARS) : undefined;
2244
+ const verification = Array.isArray(run.output.verification) ? run.output.verification : [];
2245
+ const failedChecks = verification
2246
+ .filter((entry) => typeof entry === 'object' && entry !== null)
2247
+ .filter((entry) => entry.outcome?.success === false)
2248
+ .map((entry) => ({
2249
+ checkRef: String(entry.checkRef ?? ''),
2250
+ ...(tail(entry.outcome?.message) ? { message: tail(entry.outcome?.message) } : {}),
2251
+ ...(tail(entry.outcome?.stdoutTail) ? { stdoutTail: tail(entry.outcome?.stdoutTail) } : {}),
2252
+ ...(tail(entry.outcome?.stderrTail) ? { stderrTail: tail(entry.outcome?.stderrTail) } : {}),
2253
+ }));
2254
+ const rearm = readBuildTaskRearm(run.memory);
2255
+ const failureMessage = run.output.failure?.message;
2256
+ /*
2257
+ * Three different histories, told apart (#1581, second review A5). Telling the agent "repeat the same
2258
+ * approach and it fails the same way" is right only when the approach WAS judged: a turn the host took
2259
+ * away, or a dispatch refused before anything ran, judged nothing about the work.
2260
+ */
2261
+ const guidance = run.output.failureAttribution === CodingRunFailureAttribution.HOST
2262
+ ? 'The previous attempt of this task was stopped by the HOST, not by its work: the turn was taken away '
2263
+ + '(a provider limit, a killed process, an operator cancel) or the result could not be recorded. Nothing '
2264
+ + 'about the approach was judged; start the work normally, and read what it had reached if that helps.'
2265
+ : run.output.disposition === undefined && typeof failureMessage === 'string'
2266
+ ? 'A previous dispatch of this task was refused before it started, so nothing ran and nothing was judged. '
2267
+ + 'The refusal is below for context; it is not a verdict on any approach.'
2268
+ : 'This task was attempted before and FAILED. Read why before starting: repeating the same approach '
2269
+ + 'will fail the same way. Fix what the failure names; do not work around a check.';
2270
+ return {
2271
+ sourceRef: 'application-creation:context/previous-attempt',
2272
+ originRef: 'application-creation:origin/dev-companion',
2273
+ content: {
2274
+ guidance,
2275
+ runTaskId: run.taskId,
2276
+ ...(typeof run.output.failureAttribution === 'string' ? { failureAttribution: run.output.failureAttribution } : {}),
2277
+ ...(typeof failureMessage === 'string' ? { failure: failureMessage } : {}),
2278
+ ...(run.settledAt ? { failedAt: run.settledAt } : {}),
2279
+ ...(typeof run.output.disposition === 'string' ? { disposition: run.output.disposition } : {}),
2280
+ failedChecks,
2281
+ ...(tail(run.output.agentOutputTail) ? { agentClosingWords: tail(run.output.agentOutputTail) } : {}),
2282
+ ...(rearm ? { rearmedBecause: { reason: rearm.reason, note: rearm.note } } : {}),
2283
+ },
2284
+ };
2285
+ }
2286
+ /**
2287
+ * The task's own DETERMINISTIC self-description — no introspection, no LLM.
2288
+ *
2289
+ * The first (and mandatory) context source of every coding task: what the task is, what it must
2290
+ * produce, and how its landing will be judged. A pure function of the task, so what the agent is told
2291
+ * about its own accountability can be pinned without composing a dispatch.
2292
+ *
2293
+ * (It was first extracted so a RESUME could rebuild a contract cheaply; that caller went when a parked
2294
+ * run's resume moved onto its actor execution in 02e241ae, which carries the context itself.)
2295
+ */
2296
+ export function buildTaskSelfDescriptionContextSource(task, totalTasks) {
2297
+ return {
2298
+ sourceRef: 'application-creation:context/build-task',
2299
+ originRef: 'application-creation:origin/build-plan',
2300
+ content: {
2301
+ taskRef: task.taskRef,
2302
+ objective: task.objective,
2303
+ target: task.target,
2304
+ /*
2305
+ * WHAT THIS RUN IS ACCOUNTABLE FOR, and the agent has to be told.
2306
+ *
2307
+ * Landing is decided from `produces` (#597), so an agent that is not shown the artifacts it
2308
+ * must deliver can do excellent work on the objective's prose and still leave the task
2309
+ * unlanded — the host would re-offer it forever, and the cause would be invisible to
2310
+ * everyone. Handing it over costs nothing and is the same shape as `target`: a semantic
2311
+ * declaration the model reads, never a path it could author.
2312
+ */
2313
+ produces: task.produces,
2314
+ /*
2315
+ * HOW LANDING IS DECIDED, exactly (#1554). `produces` is the task's declaration; these are the
2316
+ * probes the host evaluates after the run, resolved by the same function landing calls. They
2317
+ * differ where the declaration is not what the tree spells: a SHELL_PLACEMENT task's refs name
2318
+ * the placement plan's decisions and appear in no file, so its probe asks what the composed
2319
+ * shell CARRIES (the `shell-placement-plan` source spells that out). An agent shown only
2320
+ * `produces` authored those refs as text, got one of two right by guessing from the objective,
2321
+ * and the run finished `completed_unlanded`.
2322
+ */
2323
+ landedWhen: resolveBuildTaskLandedProbes(task),
2324
+ functionalTopic: task.functionalTopic,
2325
+ skillRefs: task.skillRefs,
2326
+ prerequisiteTaskRefs: task.prerequisiteTaskRefs,
2327
+ positionInPlan: `one of ${totalTasks} tasks in the application's accepted build plan`,
2328
+ },
2329
+ };
2330
+ }
2331
+ /**
2332
+ * The PLAN half of the shell witness (#1538), as a pure function of the plan.
2333
+ *
2334
+ * Two readers need it and must not disagree: the landing probe, which compares it with what the
2335
+ * composed shell carries, and the coding agent, which has to be told it BEFORE the run (#1554). One
2336
+ * derivation is what makes "the agent was shown the criterion it is judged by" true by construction
2337
+ * rather than by two loops agreeing.
2338
+ */
2339
+ export function derivePlacementPlanShellExpectations(plan) {
2340
+ const placed = new Map();
2341
+ const declined = [];
2342
+ for (const decision of plan.decisions) {
2343
+ const entry = { decision, shellIdentity: placementSubjectShellIdentity(decision.subject) };
2344
+ if (decision.disposition === PlacementDisposition.DECLINED) {
2345
+ declined.push(entry);
2346
+ continue;
2347
+ }
2348
+ placed.set(decision.address.surface, [...(placed.get(decision.address.surface) ?? []), entry]);
2349
+ }
2350
+ return { placed, declined };
2351
+ }
2352
+ /**
2353
+ * A SHELL_PLACEMENT task's landing criterion, spelled for the agent that has to meet it (#1554).
2354
+ *
2355
+ * The task's `produces` names the plan's decision refs, which no file spells; the probe asks whether
2356
+ * the composed surface carries every subject the plan PLACED there and none it DECLINED, from
2357
+ * committed files. So the agent is handed the decisions themselves — subject, address and rationale —
2358
+ * each with the identity the probe compares, plus the command that reads the shell as the probe
2359
+ * reads it, so it can check its own work before finishing.
2360
+ *
2361
+ * Never `null` for a shell task: a missing or invalid plan is SAID, because "nothing to place" and
2362
+ * "nothing says what to place" lead the agent to opposite conclusions — the witness draws the same line.
2363
+ */
2364
+ export function buildShellPlacementPlanContextSource(surface, companionExports) {
2365
+ const base = { sourceRef: 'application-creation:context/shell-placement-plan', originRef: 'application-creation:origin/specification-families' };
2366
+ const authored = companionExports?.['placementPlanSpecification'];
2367
+ const parsed = authored === undefined || authored === null ? undefined : PlacementPlanSchema.safeParse(authored);
2368
+ if (parsed === undefined || !parsed.success) {
2369
+ return {
2370
+ ...base,
2371
+ content: {
2372
+ surface,
2373
+ unanswerable: parsed === undefined
2374
+ ? 'The application has no placement plan, so nothing says what this surface should carry; the task cannot land until one exists.'
2375
+ : `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.`,
2376
+ },
2377
+ };
2378
+ }
2379
+ const describe = ({ decision, shellIdentity }) => ({
2380
+ decisionRef: decision.decisionRef,
2381
+ subject: decision.subject,
2382
+ ...(decision.disposition === PlacementDisposition.PLACED ? { address: decision.address } : {}),
2383
+ rationale: decision.rationale,
2384
+ shellIdentity,
2385
+ });
2386
+ const expectations = derivePlacementPlanShellExpectations(parsed.data);
2387
+ return {
2388
+ ...base,
2389
+ content: {
2390
+ surface,
2391
+ landingCriterion: `This task lands when the ${surface} surface, as the composed shell resolves it, carries every subject `
2392
+ + 'placed on it below and none of the declined subjects, and every file that surface is composed from is committed. '
2393
+ + 'The declarationRefs in `produces` name these decisions; they are never spelled in the tree, so writing them as text lands nothing.',
2394
+ placedOnThisSurface: (expectations.placed.get(surface) ?? []).map(describe),
2395
+ declinedEverywhere: expectations.declined.map(describe),
2396
+ selfCheck: '`wildo context info app-shell-placement-content` reports what each surface carries, in the same identities as '
2397
+ + '`shellIdentity` above. Run it before finishing: a placed identity it does not list is still missing.',
2398
+ },
2399
+ };
2400
+ }
2401
+ /**
2402
+ * The elements a build task SERVES, resolved, plus a map of its module's other tasks (#1419).
2403
+ *
2404
+ * Reads the task's own `servesRefs` edge through the decided-element index, so resolution is the same
2405
+ * membership routing every other surface uses. A ref that resolves to nothing is REPORTED in the
2406
+ * source, never skipped: the agent must know the task claims to serve something the application has
2407
+ * not decided (Wonder CRM carries one), rather than conclude it serves nothing. `null` when the task
2408
+ * declares nothing to serve and has no sibling in its module — the source would be empty.
2409
+ */
2410
+ export function buildServedElementsContextSource(task, companionExports) {
2411
+ const index = indexDecidedAspects(decidedFamilyValuesFromCompanionExports(companionExports));
2412
+ const TASK_ASPECT = 'build-plan.task';
2413
+ const SERVES_FIELD = 'servesRefs';
2414
+ const served = index.links
2415
+ .filter((link) => link.field === SERVES_FIELD && link.from.aspectKey === TASK_ASPECT && link.from.ref === task.taskRef)
2416
+ .map((link) => ({
2417
+ aspectKey: link.to.aspectKey,
2418
+ family: link.to.family,
2419
+ ref: link.to.ref,
2420
+ element: link.to.item,
2421
+ }));
2422
+ const unresolved = index.unresolved
2423
+ .filter((entry) => entry.field === SERVES_FIELD && entry.fromAspectKey === TASK_ASPECT && entry.fromRef === task.taskRef)
2424
+ .map((entry) => entry.key);
2425
+ const moduleRef = task.target && 'moduleRef' in task.target ? task.target.moduleRef : undefined;
2426
+ const moduleTasks = moduleRef === undefined
2427
+ ? []
2428
+ : (index.aspects.get(TASK_ASPECT)?.elements ?? [])
2429
+ .filter((element) => element.ref !== task.taskRef)
2430
+ .filter((element) => {
2431
+ const target = element.item.target;
2432
+ return target?.moduleRef === moduleRef;
2433
+ })
2434
+ .map((element) => ({ taskRef: element.ref, objective: element.label }));
2435
+ if (served.length === 0 && unresolved.length === 0 && moduleTasks.length === 0)
2436
+ return null;
2437
+ return {
2438
+ sourceRef: 'application-creation:context/served-elements',
2439
+ originRef: 'application-creation:origin/specification-families',
2440
+ content: {
2441
+ servedElements: served,
2442
+ ...(unresolved.length > 0
2443
+ ? {
2444
+ unresolvedServesRefs: unresolved,
2445
+ unresolvedNote: 'These servesRefs name nothing the application has decided. Do not invent what they would say; '
2446
+ + 'build what the resolved elements require, and report the gap.',
2447
+ }
2448
+ : {}),
2449
+ ...(moduleRef !== undefined ? { moduleRef, otherTasksInModule: moduleTasks } : {}),
2450
+ note: 'servedElements are what this task is accountable to — its acceptance criteria. otherTasksInModule is a map only: '
2451
+ + 'read a sibling with `wildo context elements get --refs <taskRef>` if you need it.',
2452
+ },
2453
+ };
2454
+ }
497
2455
  //# sourceMappingURL=application-build-dispatch.companion.service.js.map